blob: b9c93934f95c5904e650c177ab7f0dc37b95fb39 [file] [log] [blame]
John Criswell7a73b802003-06-30 21:59:07 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Reid Spencere9de0912004-08-20 09:03:57 +00003# Generated by GNU Autoconf 2.59 for LLVM 1.4.
John Criswell7a73b802003-06-30 21:59:07 +00004#
5# Report bugs to <llvmbugs@cs.uiuc.edu>.
6#
Reid Spencer2b51a082004-08-04 00:34:49 +00007# Copyright (C) 2003 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00008# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
John Criswell0c38eaf2003-09-10 15:17:25 +000010## --------------------- ##
11## M4sh Initialization. ##
12## --------------------- ##
13
14# Be Bourne compatible
15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 set -o posix
23fi
Reid Spencer2b51a082004-08-04 00:34:49 +000024DUALCASE=1; export DUALCASE # for MKS sh
John Criswell0c38eaf2003-09-10 15:17:25 +000025
26# Support unset when possible.
Reid Spencer2b51a082004-08-04 00:34:49 +000027if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
John Criswell0c38eaf2003-09-10 15:17:25 +000028 as_unset=unset
29else
30 as_unset=false
31fi
32
33
34# Work around bugs in pre-3.0 UWIN ksh.
35$as_unset ENV MAIL MAILPATH
36PS1='$ '
37PS2='> '
38PS4='+ '
39
40# NLS nuisances.
41for as_var in \
42 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 LC_TELEPHONE LC_TIME
45do
Reid Spencer2b51a082004-08-04 00:34:49 +000046 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
John Criswell0c38eaf2003-09-10 15:17:25 +000047 eval $as_var=C; export $as_var
48 else
49 $as_unset $as_var
50 fi
51done
52
53# Required to use basename.
54if expr a : '\(a\)' >/dev/null 2>&1; then
55 as_expr=expr
56else
57 as_expr=false
58fi
59
60if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61 as_basename=basename
62else
63 as_basename=false
64fi
65
66
67# Name of the executable.
68as_me=`$as_basename "$0" ||
69$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
73echo X/"$0" |
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
77 s/.*/./; q'`
78
79
80# PATH needs CR, and LINENO needs CR and PATH.
81# Avoid depending upon Character Ranges.
82as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85as_cr_digits='0123456789'
86as_cr_alnum=$as_cr_Letters$as_cr_digits
87
88# The user is always right.
89if test "${PATH_SEPARATOR+set}" != set; then
90 echo "#! /bin/sh" >conf$$.sh
91 echo "exit 0" >>conf$$.sh
92 chmod +x conf$$.sh
93 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94 PATH_SEPARATOR=';'
95 else
96 PATH_SEPARATOR=:
97 fi
98 rm -f conf$$.sh
99fi
100
101
102 as_lineno_1=$LINENO
103 as_lineno_2=$LINENO
104 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105 test "x$as_lineno_1" != "x$as_lineno_2" &&
106 test "x$as_lineno_3" = "x$as_lineno_2" || {
107 # Find who we are. Look in the path if we contain no path at all
108 # relative or not.
109 case $0 in
110 *[\\/]* ) as_myself=$0 ;;
111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112for as_dir in $PATH
113do
114 IFS=$as_save_IFS
115 test -z "$as_dir" && as_dir=.
116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117done
118
119 ;;
120 esac
121 # We did not find ourselves, most probably we were run as `sh COMMAND'
122 # in which case we are not to be found in the path.
123 if test "x$as_myself" = x; then
124 as_myself=$0
125 fi
126 if test ! -f "$as_myself"; then
127 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128 { (exit 1); exit 1; }; }
129 fi
130 case $CONFIG_SHELL in
131 '')
132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134do
135 IFS=$as_save_IFS
136 test -z "$as_dir" && as_dir=.
137 for as_base in sh bash ksh sh5; do
138 case $as_dir in
139 /*)
140 if ("$as_dir/$as_base" -c '
141 as_lineno_1=$LINENO
142 as_lineno_2=$LINENO
143 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144 test "x$as_lineno_1" != "x$as_lineno_2" &&
145 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
146 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148 CONFIG_SHELL=$as_dir/$as_base
149 export CONFIG_SHELL
150 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151 fi;;
152 esac
153 done
154done
155;;
156 esac
157
158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159 # uniformly replaced by the line number. The first 'sed' inserts a
160 # line-number line before each line; the second 'sed' does the real
161 # work. The second script uses 'N' to pair each line-number line
162 # with the numbered line, and appends trailing '-' during
163 # substitution so that $LINENO is not a special case at line end.
164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
166 sed '=' <$as_myself |
167 sed '
168 N
169 s,$,-,
170 : loop
171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 t loop
173 s,-$,,
174 s,^['$as_cr_digits']*\n,,
175 ' >$as_me.lineno &&
176 chmod +x $as_me.lineno ||
177 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178 { (exit 1); exit 1; }; }
179
180 # Don't try to exec as it changes $[0], causing all sort of problems
181 # (the dirname of $[0] is not the place where we might find the
182 # original and so on. Autoconf is especially sensible to this).
183 . ./$as_me.lineno
184 # Exit status is that of the last command.
185 exit
186}
187
188
189case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190 *c*,-n*) ECHO_N= ECHO_C='
191' ECHO_T=' ' ;;
192 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194esac
195
196if expr a : '\(a\)' >/dev/null 2>&1; then
197 as_expr=expr
198else
199 as_expr=false
200fi
201
202rm -f conf$$ conf$$.exe conf$$.file
203echo >conf$$.file
204if ln -s conf$$.file conf$$ 2>/dev/null; then
205 # We could just check for DJGPP; but this test a) works b) is more generic
206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207 if test -f conf$$.exe; then
208 # Don't use ln at all; we don't have any links
209 as_ln_s='cp -p'
210 else
211 as_ln_s='ln -s'
212 fi
213elif ln conf$$.file conf$$ 2>/dev/null; then
214 as_ln_s=ln
215else
216 as_ln_s='cp -p'
217fi
218rm -f conf$$ conf$$.exe conf$$.file
219
220if mkdir -p . 2>/dev/null; then
221 as_mkdir_p=:
222else
Reid Spencer2b51a082004-08-04 00:34:49 +0000223 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +0000224 as_mkdir_p=false
225fi
226
227as_executable_p="test -f"
228
229# Sed expression to map a string onto a valid CPP name.
Reid Spencer2b51a082004-08-04 00:34:49 +0000230as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell0c38eaf2003-09-10 15:17:25 +0000231
232# Sed expression to map a string onto a valid variable name.
Reid Spencer2b51a082004-08-04 00:34:49 +0000233as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell0c38eaf2003-09-10 15:17:25 +0000234
235
236# IFS
237# We need space, tab and new line, in precisely that order.
238as_nl='
239'
240IFS=" $as_nl"
241
242# CDPATH.
243$as_unset CDPATH
244
John Criswell7a73b802003-06-30 21:59:07 +0000245
John Criswell7a73b802003-06-30 21:59:07 +0000246
247# Check that we are running under the correct shell.
248SHELL=${CONFIG_SHELL-/bin/sh}
249
250case X$ECHO in
251X*--fallback-echo)
252 # Remove one level of quotation (which was required for Make).
253 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
254 ;;
255esac
256
257echo=${ECHO-echo}
258if test "X$1" = X--no-reexec; then
259 # Discard the --no-reexec flag, and continue.
260 shift
261elif test "X$1" = X--fallback-echo; then
262 # Avoid inline document here, it may be left over
263 :
John Criswell47fdd832003-07-14 16:52:07 +0000264elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
John Criswell7a73b802003-06-30 21:59:07 +0000265 # Yippee, $echo works!
266 :
267else
268 # Restart under the correct shell.
269 exec $SHELL "$0" --no-reexec ${1+"$@"}
270fi
271
272if test "X$1" = X--fallback-echo; then
273 # used as fallback echo
274 shift
275 cat <<EOF
John Criswell47fdd832003-07-14 16:52:07 +0000276$*
John Criswell7a73b802003-06-30 21:59:07 +0000277EOF
278 exit 0
279fi
280
281# The HP-UX ksh and POSIX shell print the target directory to stdout
282# if CDPATH is set.
283if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
284
285if test -z "$ECHO"; then
286if test "X${echo_test_string+set}" != Xset; then
287# find a string as large as possible, as long as the shell can cope with it
288 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
289 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
290 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
291 echo_test_string="`eval $cmd`" &&
292 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
293 then
294 break
295 fi
296 done
297fi
298
299if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
300 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
301 test "X$echo_testing_string" = "X$echo_test_string"; then
302 :
303else
304 # The Solaris, AIX, and Digital Unix default echo programs unquote
305 # backslashes. This makes it impossible to quote backslashes using
306 # echo "$something" | sed 's/\\/\\\\/g'
307 #
308 # So, first we look for a working echo in the user's PATH.
309
John Criswell47fdd832003-07-14 16:52:07 +0000310 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +0000311 for dir in $PATH /usr/ucb; do
John Criswell47fdd832003-07-14 16:52:07 +0000312 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +0000313 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
314 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
315 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
316 test "X$echo_testing_string" = "X$echo_test_string"; then
317 echo="$dir/echo"
318 break
319 fi
320 done
John Criswell47fdd832003-07-14 16:52:07 +0000321 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +0000322
323 if test "X$echo" = Xecho; then
324 # We didn't find a better echo, so look for alternatives.
325 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
326 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
327 test "X$echo_testing_string" = "X$echo_test_string"; then
328 # This shell has a builtin print -r that does the trick.
329 echo='print -r'
330 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
331 test "X$CONFIG_SHELL" != X/bin/ksh; then
332 # If we have ksh, try running configure again with it.
333 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
334 export ORIGINAL_CONFIG_SHELL
335 CONFIG_SHELL=/bin/ksh
336 export CONFIG_SHELL
337 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
338 else
339 # Try using printf.
340 echo='printf %s\n'
341 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
342 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
343 test "X$echo_testing_string" = "X$echo_test_string"; then
344 # Cool, printf works
345 :
346 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
347 test "X$echo_testing_string" = 'X\t' &&
348 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
349 test "X$echo_testing_string" = "X$echo_test_string"; then
350 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
351 export CONFIG_SHELL
352 SHELL="$CONFIG_SHELL"
353 export SHELL
354 echo="$CONFIG_SHELL $0 --fallback-echo"
355 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
356 test "X$echo_testing_string" = 'X\t' &&
357 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
358 test "X$echo_testing_string" = "X$echo_test_string"; then
359 echo="$CONFIG_SHELL $0 --fallback-echo"
360 else
361 # maybe with a smaller string...
362 prev=:
363
364 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
365 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
366 then
367 break
368 fi
369 prev="$cmd"
370 done
371
372 if test "$prev" != 'sed 50q "$0"'; then
373 echo_test_string=`eval $prev`
374 export echo_test_string
375 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
376 else
377 # Oops. We lost completely, so just stick with echo.
378 echo=echo
379 fi
380 fi
381 fi
382 fi
383fi
384fi
385
386# Copy echo and quote the copy suitably for passing to libtool from
387# the Makefile, instead of quoting the original, which is used later.
388ECHO=$echo
389if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
390 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
391fi
392
393
394
John Criswell47fdd832003-07-14 16:52:07 +0000395
396tagnames=`echo "$tagnames,CXX" | sed 's/^,//'`
397
398tagnames=`echo "$tagnames,F77" | sed 's/^,//'`
399
John Criswell7a73b802003-06-30 21:59:07 +0000400# Name of the host.
401# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
402# so uname gets run too.
403ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
404
405exec 6>&1
406
407#
408# Initializations.
409#
410ac_default_prefix=/usr/local
John Criswell0c38eaf2003-09-10 15:17:25 +0000411ac_config_libobj_dir=.
John Criswell7a73b802003-06-30 21:59:07 +0000412cross_compiling=no
413subdirs=
414MFLAGS=
415MAKEFLAGS=
416SHELL=${CONFIG_SHELL-/bin/sh}
417
418# Maximum number of lines to put in a shell here document.
419# This variable seems obsolete. It should probably be removed, and
420# only ac_max_sed_lines should be used.
421: ${ac_max_here_lines=38}
422
423# Identity of this package.
Reid Spencer2b51a082004-08-04 00:34:49 +0000424PACKAGE_NAME='LLVM'
425PACKAGE_TARNAME='-llvm-'
Reid Spencere9de0912004-08-20 09:03:57 +0000426PACKAGE_VERSION='1.4'
427PACKAGE_STRING='LLVM 1.4'
John Criswell7a73b802003-06-30 21:59:07 +0000428PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
429
John Criswell33a911a2003-11-25 20:36:46 +0000430ac_subdirs_all="$ac_subdirs_all projects/${i}"
John Criswell7a73b802003-06-30 21:59:07 +0000431# Factoring default headers for most tests.
432ac_includes_default="\
433#include <stdio.h>
434#if HAVE_SYS_TYPES_H
435# include <sys/types.h>
436#endif
437#if HAVE_SYS_STAT_H
438# include <sys/stat.h>
439#endif
440#if STDC_HEADERS
441# include <stdlib.h>
442# include <stddef.h>
443#else
444# if HAVE_STDLIB_H
445# include <stdlib.h>
446# endif
447#endif
448#if HAVE_STRING_H
449# if !STDC_HEADERS && HAVE_MEMORY_H
450# include <memory.h>
451# endif
452# include <string.h>
453#endif
454#if HAVE_STRINGS_H
455# include <strings.h>
456#endif
457#if HAVE_INTTYPES_H
458# include <inttypes.h>
459#else
460# if HAVE_STDINT_H
461# include <stdint.h>
462# endif
463#endif
464#if HAVE_UNISTD_H
465# include <unistd.h>
466#endif"
467
468ac_unique_file=""Makefile.config.in""
Reid Spencere9de0912004-08-20 09:03:57 +0000469ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS subdirs INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os OS LLVMGCCDIR ARCH CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT CC CFLAGS ac_ct_CC CPP ifGNUmake LEX LEXLIB LEX_OUTPUT_ROOT YACC BISON EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL DOT ETAGS ETAGSFLAGS PYTHON QMTEST HAVE_PTHREAD_MUTEX_LOCK INCLUDE_SYS_TYPES_H INCLUDE_INTTYPES_H INCLUDE_STDINT_H ENDIAN HAVE_STD_EXT_HASH_MAP HAVE_GNU_EXT_HASH_MAP HAVE_GLOBAL_HASH_MAP HAVE_STD_EXT_HASH_SET HAVE_GNU_EXT_HASH_SET HAVE_GLOBAL_HASH_SET HAVE_STD_ITERATOR HAVE_BI_ITERATOR HAVE_FWD_ITERATOR ALLOCA MMAP_FILE ENABLE_OPTIMIZED SPEC95_ROOT USE_SPEC95 SPEC2000_ROOT USE_SPEC2000 POVRAY_ROOT USE_POVRAY UPB DISABLE_LLC_DIFFS JIT LLVMCC1 LLVMCC1PLUS BCR PAPIDIR SHLIBEXT LLVM_PREFIX LLVM_BINDIR LLVM_LIBDIR LLVM_DATADIR LLVM_DOCSDIR LLVM_ETCDIR LLVM_INCLUDEDIR LLVM_INFODIR LLVM_MANDIR LLVM_CONFIGTIME LIBOBJS LTLIBOBJS'
John Criswell0c38eaf2003-09-10 15:17:25 +0000470ac_subst_files=''
John Criswell7a73b802003-06-30 21:59:07 +0000471
472# Initialize some variables set by options.
473ac_init_help=
474ac_init_version=false
475# The variables have the same names as the options, with
476# dashes changed to underlines.
477cache_file=/dev/null
478exec_prefix=NONE
479no_create=
480no_recursion=
481prefix=NONE
482program_prefix=NONE
483program_suffix=NONE
484program_transform_name=s,x,x,
485silent=
486site=
487srcdir=
488verbose=
489x_includes=NONE
490x_libraries=NONE
491
492# Installation directory options.
493# These are left unexpanded so users can "make install exec_prefix=/foo"
494# and all the variables that are supposed to be based on exec_prefix
495# by default will actually change.
496# Use braces instead of parens because sh, perl, etc. also accept them.
497bindir='${exec_prefix}/bin'
498sbindir='${exec_prefix}/sbin'
499libexecdir='${exec_prefix}/libexec'
500datadir='${prefix}/share'
501sysconfdir='${prefix}/etc'
502sharedstatedir='${prefix}/com'
503localstatedir='${prefix}/var'
504libdir='${exec_prefix}/lib'
505includedir='${prefix}/include'
506oldincludedir='/usr/include'
507infodir='${prefix}/info'
508mandir='${prefix}/man'
509
510ac_prev=
511for ac_option
512do
513 # If the previous option needs an argument, assign it.
514 if test -n "$ac_prev"; then
515 eval "$ac_prev=\$ac_option"
516 ac_prev=
517 continue
518 fi
519
520 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
521
522 # Accept the important Cygnus configure options, so we can diagnose typos.
523
524 case $ac_option in
525
526 -bindir | --bindir | --bindi | --bind | --bin | --bi)
527 ac_prev=bindir ;;
528 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
529 bindir=$ac_optarg ;;
530
531 -build | --build | --buil | --bui | --bu)
532 ac_prev=build_alias ;;
533 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
534 build_alias=$ac_optarg ;;
535
536 -cache-file | --cache-file | --cache-fil | --cache-fi \
537 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
538 ac_prev=cache_file ;;
539 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
540 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
541 cache_file=$ac_optarg ;;
542
543 --config-cache | -C)
544 cache_file=config.cache ;;
545
546 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
547 ac_prev=datadir ;;
548 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
549 | --da=*)
550 datadir=$ac_optarg ;;
551
552 -disable-* | --disable-*)
553 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
554 # Reject names that are not valid shell variable names.
555 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
556 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
557 { (exit 1); exit 1; }; }
558 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
559 eval "enable_$ac_feature=no" ;;
560
561 -enable-* | --enable-*)
562 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
563 # Reject names that are not valid shell variable names.
564 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
565 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
566 { (exit 1); exit 1; }; }
567 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
568 case $ac_option in
569 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
570 *) ac_optarg=yes ;;
571 esac
572 eval "enable_$ac_feature='$ac_optarg'" ;;
573
574 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
575 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
576 | --exec | --exe | --ex)
577 ac_prev=exec_prefix ;;
578 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
579 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
580 | --exec=* | --exe=* | --ex=*)
581 exec_prefix=$ac_optarg ;;
582
583 -gas | --gas | --ga | --g)
584 # Obsolete; use --with-gas.
585 with_gas=yes ;;
586
587 -help | --help | --hel | --he | -h)
588 ac_init_help=long ;;
589 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
590 ac_init_help=recursive ;;
591 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
592 ac_init_help=short ;;
593
594 -host | --host | --hos | --ho)
595 ac_prev=host_alias ;;
596 -host=* | --host=* | --hos=* | --ho=*)
597 host_alias=$ac_optarg ;;
598
599 -includedir | --includedir | --includedi | --included | --include \
600 | --includ | --inclu | --incl | --inc)
601 ac_prev=includedir ;;
602 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
603 | --includ=* | --inclu=* | --incl=* | --inc=*)
604 includedir=$ac_optarg ;;
605
606 -infodir | --infodir | --infodi | --infod | --info | --inf)
607 ac_prev=infodir ;;
608 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
609 infodir=$ac_optarg ;;
610
611 -libdir | --libdir | --libdi | --libd)
612 ac_prev=libdir ;;
613 -libdir=* | --libdir=* | --libdi=* | --libd=*)
614 libdir=$ac_optarg ;;
615
616 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
617 | --libexe | --libex | --libe)
618 ac_prev=libexecdir ;;
619 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
620 | --libexe=* | --libex=* | --libe=*)
621 libexecdir=$ac_optarg ;;
622
623 -localstatedir | --localstatedir | --localstatedi | --localstated \
624 | --localstate | --localstat | --localsta | --localst \
625 | --locals | --local | --loca | --loc | --lo)
626 ac_prev=localstatedir ;;
627 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
628 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
629 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
630 localstatedir=$ac_optarg ;;
631
632 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
633 ac_prev=mandir ;;
634 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
635 mandir=$ac_optarg ;;
636
637 -nfp | --nfp | --nf)
638 # Obsolete; use --without-fp.
639 with_fp=no ;;
640
641 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
642 | --no-cr | --no-c | -n)
643 no_create=yes ;;
644
645 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
646 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
647 no_recursion=yes ;;
648
649 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
650 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
651 | --oldin | --oldi | --old | --ol | --o)
652 ac_prev=oldincludedir ;;
653 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
654 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
655 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
656 oldincludedir=$ac_optarg ;;
657
658 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
659 ac_prev=prefix ;;
660 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
661 prefix=$ac_optarg ;;
662
663 -program-prefix | --program-prefix | --program-prefi | --program-pref \
664 | --program-pre | --program-pr | --program-p)
665 ac_prev=program_prefix ;;
666 -program-prefix=* | --program-prefix=* | --program-prefi=* \
667 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
668 program_prefix=$ac_optarg ;;
669
670 -program-suffix | --program-suffix | --program-suffi | --program-suff \
671 | --program-suf | --program-su | --program-s)
672 ac_prev=program_suffix ;;
673 -program-suffix=* | --program-suffix=* | --program-suffi=* \
674 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
675 program_suffix=$ac_optarg ;;
676
677 -program-transform-name | --program-transform-name \
678 | --program-transform-nam | --program-transform-na \
679 | --program-transform-n | --program-transform- \
680 | --program-transform | --program-transfor \
681 | --program-transfo | --program-transf \
682 | --program-trans | --program-tran \
683 | --progr-tra | --program-tr | --program-t)
684 ac_prev=program_transform_name ;;
685 -program-transform-name=* | --program-transform-name=* \
686 | --program-transform-nam=* | --program-transform-na=* \
687 | --program-transform-n=* | --program-transform-=* \
688 | --program-transform=* | --program-transfor=* \
689 | --program-transfo=* | --program-transf=* \
690 | --program-trans=* | --program-tran=* \
691 | --progr-tra=* | --program-tr=* | --program-t=*)
692 program_transform_name=$ac_optarg ;;
693
694 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
695 | -silent | --silent | --silen | --sile | --sil)
696 silent=yes ;;
697
698 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
699 ac_prev=sbindir ;;
700 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
701 | --sbi=* | --sb=*)
702 sbindir=$ac_optarg ;;
703
704 -sharedstatedir | --sharedstatedir | --sharedstatedi \
705 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
706 | --sharedst | --shareds | --shared | --share | --shar \
707 | --sha | --sh)
708 ac_prev=sharedstatedir ;;
709 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
710 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
711 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
712 | --sha=* | --sh=*)
713 sharedstatedir=$ac_optarg ;;
714
715 -site | --site | --sit)
716 ac_prev=site ;;
717 -site=* | --site=* | --sit=*)
718 site=$ac_optarg ;;
719
720 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
721 ac_prev=srcdir ;;
722 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
723 srcdir=$ac_optarg ;;
724
725 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
726 | --syscon | --sysco | --sysc | --sys | --sy)
727 ac_prev=sysconfdir ;;
728 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
729 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
730 sysconfdir=$ac_optarg ;;
731
732 -target | --target | --targe | --targ | --tar | --ta | --t)
733 ac_prev=target_alias ;;
734 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
735 target_alias=$ac_optarg ;;
736
737 -v | -verbose | --verbose | --verbos | --verbo | --verb)
738 verbose=yes ;;
739
740 -version | --version | --versio | --versi | --vers | -V)
741 ac_init_version=: ;;
742
743 -with-* | --with-*)
744 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
745 # Reject names that are not valid shell variable names.
746 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
747 { echo "$as_me: error: invalid package name: $ac_package" >&2
748 { (exit 1); exit 1; }; }
749 ac_package=`echo $ac_package| sed 's/-/_/g'`
750 case $ac_option in
751 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
752 *) ac_optarg=yes ;;
753 esac
754 eval "with_$ac_package='$ac_optarg'" ;;
755
756 -without-* | --without-*)
757 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
758 # Reject names that are not valid shell variable names.
759 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
760 { echo "$as_me: error: invalid package name: $ac_package" >&2
761 { (exit 1); exit 1; }; }
762 ac_package=`echo $ac_package | sed 's/-/_/g'`
763 eval "with_$ac_package=no" ;;
764
765 --x)
766 # Obsolete; use --with-x.
767 with_x=yes ;;
768
769 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
770 | --x-incl | --x-inc | --x-in | --x-i)
771 ac_prev=x_includes ;;
772 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
773 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
774 x_includes=$ac_optarg ;;
775
776 -x-libraries | --x-libraries | --x-librarie | --x-librari \
777 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
778 ac_prev=x_libraries ;;
779 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
780 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
781 x_libraries=$ac_optarg ;;
782
783 -*) { echo "$as_me: error: unrecognized option: $ac_option
784Try \`$0 --help' for more information." >&2
785 { (exit 1); exit 1; }; }
786 ;;
787
788 *=*)
789 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
790 # Reject names that are not valid shell variable names.
791 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
792 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
793 { (exit 1); exit 1; }; }
794 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
795 eval "$ac_envvar='$ac_optarg'"
796 export $ac_envvar ;;
797
798 *)
799 # FIXME: should be removed in autoconf 3.0.
800 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
801 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
802 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
803 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
804 ;;
805
806 esac
807done
808
809if test -n "$ac_prev"; then
810 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
811 { echo "$as_me: error: missing argument to $ac_option" >&2
812 { (exit 1); exit 1; }; }
813fi
814
815# Be sure to have absolute paths.
816for ac_var in exec_prefix prefix
817do
818 eval ac_val=$`echo $ac_var`
819 case $ac_val in
820 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
821 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
822 { (exit 1); exit 1; }; };;
823 esac
824done
825
826# Be sure to have absolute paths.
827for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
Reid Spencer2b51a082004-08-04 00:34:49 +0000828 localstatedir libdir includedir oldincludedir infodir mandir
John Criswell7a73b802003-06-30 21:59:07 +0000829do
830 eval ac_val=$`echo $ac_var`
831 case $ac_val in
832 [\\/$]* | ?:[\\/]* ) ;;
833 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
834 { (exit 1); exit 1; }; };;
835 esac
836done
837
838# There might be people who depend on the old broken behavior: `$host'
839# used to hold the argument of --host etc.
840# FIXME: To remove some day.
841build=$build_alias
842host=$host_alias
843target=$target_alias
844
845# FIXME: To remove some day.
846if test "x$host_alias" != x; then
847 if test "x$build_alias" = x; then
848 cross_compiling=maybe
849 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
850 If a cross compiler is detected then cross compile mode will be used." >&2
851 elif test "x$build_alias" != "x$host_alias"; then
852 cross_compiling=yes
853 fi
854fi
855
856ac_tool_prefix=
857test -n "$host_alias" && ac_tool_prefix=$host_alias-
858
859test "$silent" = yes && exec 6>/dev/null
860
861
862# Find the source files, if location was not specified.
863if test -z "$srcdir"; then
864 ac_srcdir_defaulted=yes
865 # Try the directory containing this script, then its parent.
866 ac_confdir=`(dirname "$0") 2>/dev/null ||
867$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2b51a082004-08-04 00:34:49 +0000868 X"$0" : 'X\(//\)[^/]' \| \
869 X"$0" : 'X\(//\)$' \| \
870 X"$0" : 'X\(/\)' \| \
871 . : '\(.\)' 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +0000872echo X"$0" |
873 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
874 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
875 /^X\(\/\/\)$/{ s//\1/; q; }
876 /^X\(\/\).*/{ s//\1/; q; }
877 s/.*/./; q'`
878 srcdir=$ac_confdir
879 if test ! -r $srcdir/$ac_unique_file; then
880 srcdir=..
881 fi
882else
883 ac_srcdir_defaulted=no
884fi
885if test ! -r $srcdir/$ac_unique_file; then
886 if test "$ac_srcdir_defaulted" = yes; then
887 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
888 { (exit 1); exit 1; }; }
889 else
890 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
891 { (exit 1); exit 1; }; }
892 fi
893fi
John Criswell0c38eaf2003-09-10 15:17:25 +0000894(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
895 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
896 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +0000897srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
898ac_env_build_alias_set=${build_alias+set}
899ac_env_build_alias_value=$build_alias
900ac_cv_env_build_alias_set=${build_alias+set}
901ac_cv_env_build_alias_value=$build_alias
902ac_env_host_alias_set=${host_alias+set}
903ac_env_host_alias_value=$host_alias
904ac_cv_env_host_alias_set=${host_alias+set}
905ac_cv_env_host_alias_value=$host_alias
906ac_env_target_alias_set=${target_alias+set}
907ac_env_target_alias_value=$target_alias
908ac_cv_env_target_alias_set=${target_alias+set}
909ac_cv_env_target_alias_value=$target_alias
910ac_env_CXX_set=${CXX+set}
911ac_env_CXX_value=$CXX
912ac_cv_env_CXX_set=${CXX+set}
913ac_cv_env_CXX_value=$CXX
914ac_env_CXXFLAGS_set=${CXXFLAGS+set}
915ac_env_CXXFLAGS_value=$CXXFLAGS
916ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
917ac_cv_env_CXXFLAGS_value=$CXXFLAGS
918ac_env_LDFLAGS_set=${LDFLAGS+set}
919ac_env_LDFLAGS_value=$LDFLAGS
920ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
921ac_cv_env_LDFLAGS_value=$LDFLAGS
922ac_env_CPPFLAGS_set=${CPPFLAGS+set}
923ac_env_CPPFLAGS_value=$CPPFLAGS
924ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
925ac_cv_env_CPPFLAGS_value=$CPPFLAGS
926ac_env_CC_set=${CC+set}
927ac_env_CC_value=$CC
928ac_cv_env_CC_set=${CC+set}
929ac_cv_env_CC_value=$CC
930ac_env_CFLAGS_set=${CFLAGS+set}
931ac_env_CFLAGS_value=$CFLAGS
932ac_cv_env_CFLAGS_set=${CFLAGS+set}
933ac_cv_env_CFLAGS_value=$CFLAGS
934ac_env_CPP_set=${CPP+set}
935ac_env_CPP_value=$CPP
936ac_cv_env_CPP_set=${CPP+set}
937ac_cv_env_CPP_value=$CPP
John Criswell47fdd832003-07-14 16:52:07 +0000938ac_env_CXXCPP_set=${CXXCPP+set}
939ac_env_CXXCPP_value=$CXXCPP
940ac_cv_env_CXXCPP_set=${CXXCPP+set}
941ac_cv_env_CXXCPP_value=$CXXCPP
942ac_env_F77_set=${F77+set}
943ac_env_F77_value=$F77
944ac_cv_env_F77_set=${F77+set}
945ac_cv_env_F77_value=$F77
946ac_env_FFLAGS_set=${FFLAGS+set}
947ac_env_FFLAGS_value=$FFLAGS
948ac_cv_env_FFLAGS_set=${FFLAGS+set}
949ac_cv_env_FFLAGS_value=$FFLAGS
John Criswell7a73b802003-06-30 21:59:07 +0000950
951#
952# Report the --help message.
953#
954if test "$ac_init_help" = "long"; then
955 # Omit some internal or obsolete options to make the list less imposing.
956 # This message is too long to be a string in the A/UX 3.1 sh.
957 cat <<_ACEOF
Reid Spencere9de0912004-08-20 09:03:57 +0000958\`configure' configures LLVM 1.4 to adapt to many kinds of systems.
John Criswell7a73b802003-06-30 21:59:07 +0000959
960Usage: $0 [OPTION]... [VAR=VALUE]...
961
962To assign environment variables (e.g., CC, CFLAGS...), specify them as
963VAR=VALUE. See below for descriptions of some of the useful variables.
964
965Defaults for the options are specified in brackets.
966
967Configuration:
968 -h, --help display this help and exit
969 --help=short display options specific to this package
970 --help=recursive display the short help of all the included packages
971 -V, --version display version information and exit
972 -q, --quiet, --silent do not print \`checking...' messages
973 --cache-file=FILE cache test results in FILE [disabled]
974 -C, --config-cache alias for \`--cache-file=config.cache'
975 -n, --no-create do not create output files
976 --srcdir=DIR find the sources in DIR [configure dir or \`..']
977
978_ACEOF
979
980 cat <<_ACEOF
981Installation directories:
982 --prefix=PREFIX install architecture-independent files in PREFIX
Reid Spencer2b51a082004-08-04 00:34:49 +0000983 [$ac_default_prefix]
John Criswell7a73b802003-06-30 21:59:07 +0000984 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Reid Spencer2b51a082004-08-04 00:34:49 +0000985 [PREFIX]
John Criswell7a73b802003-06-30 21:59:07 +0000986
987By default, \`make install' will install all the files in
988\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
989an installation prefix other than \`$ac_default_prefix' using \`--prefix',
990for instance \`--prefix=\$HOME'.
991
992For better control, use the options below.
993
994Fine tuning of the installation directories:
995 --bindir=DIR user executables [EPREFIX/bin]
996 --sbindir=DIR system admin executables [EPREFIX/sbin]
997 --libexecdir=DIR program executables [EPREFIX/libexec]
998 --datadir=DIR read-only architecture-independent data [PREFIX/share]
999 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1000 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1001 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1002 --libdir=DIR object code libraries [EPREFIX/lib]
1003 --includedir=DIR C header files [PREFIX/include]
1004 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1005 --infodir=DIR info documentation [PREFIX/info]
1006 --mandir=DIR man documentation [PREFIX/man]
1007_ACEOF
1008
1009 cat <<\_ACEOF
1010
1011System types:
1012 --build=BUILD configure for building on BUILD [guessed]
1013 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1014 --target=TARGET configure for building compilers for TARGET [HOST]
1015_ACEOF
1016fi
1017
1018if test -n "$ac_init_help"; then
1019 case $ac_init_help in
Reid Spencere9de0912004-08-20 09:03:57 +00001020 short | recursive ) echo "Configuration of LLVM 1.4:";;
John Criswell7a73b802003-06-30 21:59:07 +00001021 esac
1022 cat <<\_ACEOF
1023
1024Optional Features:
1025 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1026 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
John Criswell47fdd832003-07-14 16:52:07 +00001027 --enable-shared[=PKGS]
1028 build shared libraries [default=yes]
1029 --enable-static[=PKGS]
1030 build static libraries [default=yes]
1031 --enable-fast-install[=PKGS]
1032 optimize for fast installation [default=yes]
John Criswell7a73b802003-06-30 21:59:07 +00001033 --disable-libtool-lock avoid locking (might break parallel builds)
John Criswell7a73b802003-06-30 21:59:07 +00001034 --enable-optimized Compile with optimizations enabled (default is NO)
Brian Gaekee773b862004-04-16 17:13:44 +00001035 --enable-spec95=ARG Use spec95 as a benchmark (srcs in DIR)
1036 --enable-spec2000=ARG Use spec2000 as a benchmark (srcs in DIR)
1037 --enable-povray=ARG Use povray as a benchmark (srcs in DIR)
John Criswell7a73b802003-06-30 21:59:07 +00001038 --enable-precompiled_bytecode
1039 Use pre-compiled bytecode (default is NO)
John Criswellf02dbf02003-07-22 20:07:49 +00001040 --enable-llc_diffs Enable LLC Diffs when testing (default is YES)
John Criswellc78022e2003-07-29 19:11:58 +00001041 --enable-jit Enable Just In Time Compiling (default is YES)
John Criswell7a73b802003-06-30 21:59:07 +00001042
1043Optional Packages:
1044 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1045 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
John Criswell47fdd832003-07-14 16:52:07 +00001046 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1047 --with-pic try to use only PIC/non-PIC objects [default=use
1048 both]
1049 --with-tags[=TAGS]
1050 include additional configurations [automatic]
John Criswell7a73b802003-06-30 21:59:07 +00001051 --with-llvmgccdir Location of LLVM GCC front-end
1052 --with-bcrepos Location of Bytecode Repository
1053 --with-papi Location of PAPI
John Criswell7a73b802003-06-30 21:59:07 +00001054
1055Some influential environment variables:
1056 CXX C++ compiler command
1057 CXXFLAGS C++ compiler flags
1058 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1059 nonstandard directory <lib dir>
1060 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1061 headers in a nonstandard directory <include dir>
1062 CC C compiler command
1063 CFLAGS C compiler flags
1064 CPP C preprocessor
John Criswell47fdd832003-07-14 16:52:07 +00001065 CXXCPP C++ preprocessor
1066 F77 Fortran 77 compiler command
1067 FFLAGS Fortran 77 compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001068
1069Use these variables to override the choices made by `configure' or to help
1070it to find libraries and programs with nonstandard names/locations.
1071
1072Report bugs to <llvmbugs@cs.uiuc.edu>.
1073_ACEOF
1074fi
1075
1076if test "$ac_init_help" = "recursive"; then
1077 # If there are subdirs, report their specific --help.
1078 ac_popdir=`pwd`
1079 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1080 test -d $ac_dir || continue
1081 ac_builddir=.
1082
1083if test "$ac_dir" != .; then
1084 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1085 # A "../" for each directory in $ac_dir_suffix.
1086 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1087else
1088 ac_dir_suffix= ac_top_builddir=
1089fi
1090
1091case $srcdir in
1092 .) # No --srcdir option. We are building in place.
1093 ac_srcdir=.
1094 if test -z "$ac_top_builddir"; then
1095 ac_top_srcdir=.
1096 else
1097 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1098 fi ;;
1099 [\\/]* | ?:[\\/]* ) # Absolute path.
1100 ac_srcdir=$srcdir$ac_dir_suffix;
1101 ac_top_srcdir=$srcdir ;;
1102 *) # Relative path.
1103 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1104 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1105esac
Reid Spencer2b51a082004-08-04 00:34:49 +00001106
1107# Do not use `cd foo && pwd` to compute absolute paths, because
1108# the directories may not exist.
1109case `pwd` in
1110.) ac_abs_builddir="$ac_dir";;
1111*)
1112 case "$ac_dir" in
1113 .) ac_abs_builddir=`pwd`;;
1114 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1115 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1116 esac;;
1117esac
1118case $ac_abs_builddir in
1119.) ac_abs_top_builddir=${ac_top_builddir}.;;
1120*)
1121 case ${ac_top_builddir}. in
1122 .) ac_abs_top_builddir=$ac_abs_builddir;;
1123 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1124 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1125 esac;;
1126esac
1127case $ac_abs_builddir in
1128.) ac_abs_srcdir=$ac_srcdir;;
1129*)
1130 case $ac_srcdir in
1131 .) ac_abs_srcdir=$ac_abs_builddir;;
1132 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1133 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1134 esac;;
1135esac
1136case $ac_abs_builddir in
1137.) ac_abs_top_srcdir=$ac_top_srcdir;;
1138*)
1139 case $ac_top_srcdir in
1140 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1141 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1142 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1143 esac;;
1144esac
John Criswell7a73b802003-06-30 21:59:07 +00001145
1146 cd $ac_dir
1147 # Check for guested configure; otherwise get Cygnus style configure.
1148 if test -f $ac_srcdir/configure.gnu; then
1149 echo
1150 $SHELL $ac_srcdir/configure.gnu --help=recursive
1151 elif test -f $ac_srcdir/configure; then
1152 echo
1153 $SHELL $ac_srcdir/configure --help=recursive
1154 elif test -f $ac_srcdir/configure.ac ||
Reid Spencer2b51a082004-08-04 00:34:49 +00001155 test -f $ac_srcdir/configure.in; then
John Criswell7a73b802003-06-30 21:59:07 +00001156 echo
1157 $ac_configure --help
1158 else
1159 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1160 fi
1161 cd $ac_popdir
1162 done
1163fi
1164
1165test -n "$ac_init_help" && exit 0
1166if $ac_init_version; then
1167 cat <<\_ACEOF
Reid Spencere9de0912004-08-20 09:03:57 +00001168LLVM configure 1.4
Reid Spencer2b51a082004-08-04 00:34:49 +00001169generated by GNU Autoconf 2.59
John Criswell7a73b802003-06-30 21:59:07 +00001170
Reid Spencer2b51a082004-08-04 00:34:49 +00001171Copyright (C) 2003 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00001172This configure script is free software; the Free Software Foundation
1173gives unlimited permission to copy, distribute and modify it.
1174_ACEOF
1175 exit 0
1176fi
1177exec 5>config.log
1178cat >&5 <<_ACEOF
1179This file contains any messages produced by compilers while
1180running configure, to aid debugging if configure makes a mistake.
1181
Reid Spencere9de0912004-08-20 09:03:57 +00001182It was created by LLVM $as_me 1.4, which was
Reid Spencer2b51a082004-08-04 00:34:49 +00001183generated by GNU Autoconf 2.59. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001184
1185 $ $0 $@
1186
1187_ACEOF
1188{
1189cat <<_ASUNAME
1190## --------- ##
1191## Platform. ##
1192## --------- ##
1193
1194hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1195uname -m = `(uname -m) 2>/dev/null || echo unknown`
1196uname -r = `(uname -r) 2>/dev/null || echo unknown`
1197uname -s = `(uname -s) 2>/dev/null || echo unknown`
1198uname -v = `(uname -v) 2>/dev/null || echo unknown`
1199
1200/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1201/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1202
1203/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1204/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1205/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1206hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1207/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1208/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1209/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1210
1211_ASUNAME
1212
1213as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1214for as_dir in $PATH
1215do
1216 IFS=$as_save_IFS
1217 test -z "$as_dir" && as_dir=.
1218 echo "PATH: $as_dir"
1219done
1220
1221} >&5
1222
1223cat >&5 <<_ACEOF
1224
1225
1226## ----------- ##
1227## Core tests. ##
1228## ----------- ##
1229
1230_ACEOF
1231
1232
1233# Keep a trace of the command line.
1234# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001235# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001236# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001237# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001238ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001239ac_configure_args0=
1240ac_configure_args1=
John Criswell7a73b802003-06-30 21:59:07 +00001241ac_sep=
John Criswell0c38eaf2003-09-10 15:17:25 +00001242ac_must_keep_next=false
1243for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001244do
John Criswell0c38eaf2003-09-10 15:17:25 +00001245 for ac_arg
1246 do
1247 case $ac_arg in
1248 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1249 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1250 | -silent | --silent | --silen | --sile | --sil)
1251 continue ;;
1252 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1253 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1254 esac
1255 case $ac_pass in
1256 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1257 2)
1258 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1259 if test $ac_must_keep_next = true; then
Reid Spencer2b51a082004-08-04 00:34:49 +00001260 ac_must_keep_next=false # Got value, back to normal.
John Criswell0c38eaf2003-09-10 15:17:25 +00001261 else
Reid Spencer2b51a082004-08-04 00:34:49 +00001262 case $ac_arg in
1263 *=* | --config-cache | -C | -disable-* | --disable-* \
1264 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1265 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1266 | -with-* | --with-* | -without-* | --without-* | --x)
1267 case "$ac_configure_args0 " in
1268 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1269 esac
1270 ;;
1271 -* ) ac_must_keep_next=true ;;
1272 esac
John Criswell0c38eaf2003-09-10 15:17:25 +00001273 fi
1274 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1275 # Get rid of the leading space.
1276 ac_sep=" "
1277 ;;
1278 esac
1279 done
John Criswell7a73b802003-06-30 21:59:07 +00001280done
John Criswell0c38eaf2003-09-10 15:17:25 +00001281$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1282$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
John Criswell7a73b802003-06-30 21:59:07 +00001283
1284# When interrupted or exit'd, cleanup temporary files, and complete
1285# config.log. We remove comments because anyway the quotes in there
1286# would cause problems or look ugly.
1287# WARNING: Be sure not to use single quotes in there, as some shells,
1288# such as our DU 5.0 friend, will then `close' the trap.
1289trap 'exit_status=$?
1290 # Save into config.log some information that might help in debugging.
1291 {
1292 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001293
John Criswell7a73b802003-06-30 21:59:07 +00001294 cat <<\_ASBOX
1295## ---------------- ##
1296## Cache variables. ##
1297## ---------------- ##
1298_ASBOX
1299 echo
1300 # The following way of writing the cache mishandles newlines in values,
1301{
1302 (set) 2>&1 |
1303 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1304 *ac_space=\ *)
1305 sed -n \
Reid Spencer2b51a082004-08-04 00:34:49 +00001306 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1307 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
John Criswell7a73b802003-06-30 21:59:07 +00001308 ;;
1309 *)
1310 sed -n \
Reid Spencer2b51a082004-08-04 00:34:49 +00001311 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
John Criswell7a73b802003-06-30 21:59:07 +00001312 ;;
1313 esac;
1314}
1315 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001316
1317 cat <<\_ASBOX
1318## ----------------- ##
1319## Output variables. ##
1320## ----------------- ##
1321_ASBOX
1322 echo
1323 for ac_var in $ac_subst_vars
1324 do
1325 eval ac_val=$`echo $ac_var`
1326 echo "$ac_var='"'"'$ac_val'"'"'"
1327 done | sort
1328 echo
1329
1330 if test -n "$ac_subst_files"; then
1331 cat <<\_ASBOX
1332## ------------- ##
1333## Output files. ##
1334## ------------- ##
1335_ASBOX
1336 echo
1337 for ac_var in $ac_subst_files
1338 do
1339 eval ac_val=$`echo $ac_var`
Reid Spencer2b51a082004-08-04 00:34:49 +00001340 echo "$ac_var='"'"'$ac_val'"'"'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001341 done | sort
1342 echo
1343 fi
1344
John Criswell7a73b802003-06-30 21:59:07 +00001345 if test -s confdefs.h; then
1346 cat <<\_ASBOX
1347## ----------- ##
1348## confdefs.h. ##
1349## ----------- ##
1350_ASBOX
1351 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001352 sed "/^$/d" confdefs.h | sort
John Criswell7a73b802003-06-30 21:59:07 +00001353 echo
1354 fi
1355 test "$ac_signal" != 0 &&
1356 echo "$as_me: caught signal $ac_signal"
1357 echo "$as_me: exit $exit_status"
1358 } >&5
Reid Spencer2b51a082004-08-04 00:34:49 +00001359 rm -f core *.core &&
John Criswell7a73b802003-06-30 21:59:07 +00001360 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1361 exit $exit_status
1362 ' 0
1363for ac_signal in 1 2 13 15; do
1364 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1365done
1366ac_signal=0
1367
1368# confdefs.h avoids OS command line length limits that DEFS can exceed.
1369rm -rf conftest* confdefs.h
1370# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1371echo >confdefs.h
1372
1373# Predefined preprocessor variables.
1374
1375cat >>confdefs.h <<_ACEOF
1376#define PACKAGE_NAME "$PACKAGE_NAME"
1377_ACEOF
1378
1379
1380cat >>confdefs.h <<_ACEOF
1381#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1382_ACEOF
1383
1384
1385cat >>confdefs.h <<_ACEOF
1386#define PACKAGE_VERSION "$PACKAGE_VERSION"
1387_ACEOF
1388
1389
1390cat >>confdefs.h <<_ACEOF
1391#define PACKAGE_STRING "$PACKAGE_STRING"
1392_ACEOF
1393
1394
1395cat >>confdefs.h <<_ACEOF
1396#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1397_ACEOF
1398
1399
1400# Let the site file select an alternate cache file if it wants to.
1401# Prefer explicitly selected file to automatically selected ones.
1402if test -z "$CONFIG_SITE"; then
1403 if test "x$prefix" != xNONE; then
1404 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1405 else
1406 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1407 fi
1408fi
1409for ac_site_file in $CONFIG_SITE; do
1410 if test -r "$ac_site_file"; then
1411 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1412echo "$as_me: loading site script $ac_site_file" >&6;}
1413 sed 's/^/| /' "$ac_site_file" >&5
1414 . "$ac_site_file"
1415 fi
1416done
1417
1418if test -r "$cache_file"; then
1419 # Some versions of bash will fail to source /dev/null (special
1420 # files actually), so we avoid doing that.
1421 if test -f "$cache_file"; then
1422 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1423echo "$as_me: loading cache $cache_file" >&6;}
1424 case $cache_file in
1425 [\\/]* | ?:[\\/]* ) . $cache_file;;
1426 *) . ./$cache_file;;
1427 esac
1428 fi
1429else
1430 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1431echo "$as_me: creating cache $cache_file" >&6;}
1432 >$cache_file
1433fi
1434
1435# Check that the precious variables saved in the cache have kept the same
1436# value.
1437ac_cache_corrupted=false
1438for ac_var in `(set) 2>&1 |
Reid Spencer2b51a082004-08-04 00:34:49 +00001439 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
John Criswell7a73b802003-06-30 21:59:07 +00001440 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1441 eval ac_new_set=\$ac_env_${ac_var}_set
1442 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1443 eval ac_new_val="\$ac_env_${ac_var}_value"
1444 case $ac_old_set,$ac_new_set in
1445 set,)
1446 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1447echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1448 ac_cache_corrupted=: ;;
1449 ,set)
1450 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1451echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1452 ac_cache_corrupted=: ;;
1453 ,);;
1454 *)
1455 if test "x$ac_old_val" != "x$ac_new_val"; then
Reid Spencer2b51a082004-08-04 00:34:49 +00001456 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001457echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
Reid Spencer2b51a082004-08-04 00:34:49 +00001458 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001459echo "$as_me: former value: $ac_old_val" >&2;}
Reid Spencer2b51a082004-08-04 00:34:49 +00001460 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001461echo "$as_me: current value: $ac_new_val" >&2;}
Reid Spencer2b51a082004-08-04 00:34:49 +00001462 ac_cache_corrupted=:
John Criswell7a73b802003-06-30 21:59:07 +00001463 fi;;
1464 esac
1465 # Pass precious variables to config.status.
1466 if test "$ac_new_set" = set; then
1467 case $ac_new_val in
1468 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1469 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1470 *) ac_arg=$ac_var=$ac_new_val ;;
1471 esac
1472 case " $ac_configure_args " in
1473 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1474 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1475 esac
1476 fi
1477done
1478if $ac_cache_corrupted; then
1479 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1480echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1481 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1482echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1483 { (exit 1); exit 1; }; }
1484fi
1485
1486ac_ext=c
1487ac_cpp='$CPP $CPPFLAGS'
1488ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1489ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1490ac_compiler_gnu=$ac_cv_c_compiler_gnu
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
John Criswell0c38eaf2003-09-10 15:17:25 +00001518
John Criswell7a73b802003-06-30 21:59:07 +00001519ac_aux_dir=
John Criswell392aaa32003-07-22 19:18:09 +00001520for ac_dir in autoconf $srcdir/autoconf; do
John Criswell7a73b802003-06-30 21:59:07 +00001521 if test -f $ac_dir/install-sh; then
1522 ac_aux_dir=$ac_dir
1523 ac_install_sh="$ac_aux_dir/install-sh -c"
1524 break
1525 elif test -f $ac_dir/install.sh; then
1526 ac_aux_dir=$ac_dir
1527 ac_install_sh="$ac_aux_dir/install.sh -c"
1528 break
1529 elif test -f $ac_dir/shtool; then
1530 ac_aux_dir=$ac_dir
1531 ac_install_sh="$ac_aux_dir/shtool install -c"
1532 break
1533 fi
1534done
1535if test -z "$ac_aux_dir"; then
John Criswell392aaa32003-07-22 19:18:09 +00001536 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1537echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001538 { (exit 1); exit 1; }; }
1539fi
1540ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1541ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1542ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1543
John Criswell392aaa32003-07-22 19:18:09 +00001544
John Criswell1b824322003-09-15 17:19:42 +00001545if test ${srcdir} != "."
John Criswell93e1c722003-09-15 17:04:06 +00001546then
John Criswell1b824322003-09-15 17:19:42 +00001547 if test -f ${srcdir}/include/Config/config.h
1548 then
1549 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
John Criswell93e1c722003-09-15 17:04:06 +00001550echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1551 { (exit 1); exit 1; }; }
John Criswell1b824322003-09-15 17:19:42 +00001552 fi
John Criswell93e1c722003-09-15 17:04:06 +00001553fi
1554
John Criswell33a911a2003-11-25 20:36:46 +00001555for i in `ls ${srcdir}/projects`
1556do
1557 if test ${i} != "CVS"
1558 then
John Criswell2f2741b2003-12-12 20:15:23 +00001559 if test -f ${srcdir}/projects/${i}/configure
John Criswell33a911a2003-11-25 20:36:46 +00001560 then
John Criswell7ec78aa2003-10-16 01:49:00 +00001561
1562
John Criswell33a911a2003-11-25 20:36:46 +00001563subdirs="$subdirs projects/${i}"
John Criswell7ec78aa2003-10-16 01:49:00 +00001564
John Criswell33a911a2003-11-25 20:36:46 +00001565 fi
1566 fi
1567done
John Criswell559a6c12003-09-30 16:31:48 +00001568
John Criswell0c38eaf2003-09-10 15:17:25 +00001569 ac_config_headers="$ac_config_headers include/Config/config.h"
John Criswell392aaa32003-07-22 19:18:09 +00001570
John Criswelldc76e322004-07-23 15:40:57 +00001571
1572 ac_config_files="$ac_config_files Makefile.config include/Support/DataTypes.h include/Support/ThreadSupport.h include/Support/hash_map include/Support/hash_set include/Support/iterator"
1573
1574
John Criswell0c38eaf2003-09-10 15:17:25 +00001575 ac_config_commands="$ac_config_commands Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001576
1577
John Criswell0c38eaf2003-09-10 15:17:25 +00001578 ac_config_commands="$ac_config_commands Makefile.common"
John Criswellc764fbc2003-09-06 15:17:13 +00001579
1580
Reid Spencer5f285392004-08-24 16:32:21 +00001581 ac_config_commands="$ac_config_commands examples/Makefile"
1582
1583
John Criswell0c38eaf2003-09-10 15:17:25 +00001584 ac_config_commands="$ac_config_commands lib/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001585
1586
John Criswell0c38eaf2003-09-10 15:17:25 +00001587 ac_config_commands="$ac_config_commands runtime/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001588
1589
John Criswell0c38eaf2003-09-10 15:17:25 +00001590 ac_config_commands="$ac_config_commands test/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001591
1592
John Criswell0c38eaf2003-09-10 15:17:25 +00001593 ac_config_commands="$ac_config_commands test/Makefile.tests"
John Criswellc764fbc2003-09-06 15:17:13 +00001594
1595
John Criswellf424d742003-10-07 21:13:47 +00001596 ac_config_commands="$ac_config_commands test/QMTest/llvm.py"
1597
1598
1599 ac_config_commands="$ac_config_commands test/QMTest/llvmdb.py"
John Criswell08acb9b2003-09-16 02:12:45 +00001600
1601
John Criswell0c38eaf2003-09-10 15:17:25 +00001602 ac_config_commands="$ac_config_commands test/Programs/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001603
1604
John Criswell0c38eaf2003-09-10 15:17:25 +00001605 ac_config_commands="$ac_config_commands test/Programs/Makefile.programs"
John Criswellc764fbc2003-09-06 15:17:13 +00001606
1607
John Criswell8a54a1e2004-06-22 21:35:10 +00001608 ac_config_commands="$ac_config_commands test/Programs/Makefile.tests"
1609
1610
John Criswell0c38eaf2003-09-10 15:17:25 +00001611 ac_config_commands="$ac_config_commands test/Programs/TEST.aa.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001612
1613
John Criswell0c38eaf2003-09-10 15:17:25 +00001614 ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.report"
John Criswellc764fbc2003-09-06 15:17:13 +00001615
1616
John Criswell0c38eaf2003-09-10 15:17:25 +00001617 ac_config_commands="$ac_config_commands test/Programs/TEST.aa.report"
John Criswellc764fbc2003-09-06 15:17:13 +00001618
1619
John Criswell0c38eaf2003-09-10 15:17:25 +00001620 ac_config_commands="$ac_config_commands test/Programs/TEST.example.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001621
1622
John Criswell0c38eaf2003-09-10 15:17:25 +00001623 ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001624
1625
John Criswell0c38eaf2003-09-10 15:17:25 +00001626 ac_config_commands="$ac_config_commands test/Programs/TEST.buildrepo.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001627
1628
John Criswell0c38eaf2003-09-10 15:17:25 +00001629 ac_config_commands="$ac_config_commands test/Programs/TEST.jit.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001630
1631
John Criswell0c38eaf2003-09-10 15:17:25 +00001632 ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.report"
John Criswellc764fbc2003-09-06 15:17:13 +00001633
1634
John Criswell0c38eaf2003-09-10 15:17:25 +00001635 ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001636
1637
John Criswell0c38eaf2003-09-10 15:17:25 +00001638 ac_config_commands="$ac_config_commands test/Programs/TEST.jit.report"
John Criswellc764fbc2003-09-06 15:17:13 +00001639
1640
John Criswell0c38eaf2003-09-10 15:17:25 +00001641 ac_config_commands="$ac_config_commands test/Programs/TEST.typesafe.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001642
1643
John Criswell0c38eaf2003-09-10 15:17:25 +00001644 ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.gnuplot"
John Criswellc764fbc2003-09-06 15:17:13 +00001645
1646
John Criswell878be7d2004-02-24 21:43:38 +00001647 ac_config_commands="$ac_config_commands test/Programs/TEST.vtl.Makefile"
1648
1649
John Criswell0c38eaf2003-09-10 15:17:25 +00001650 ac_config_commands="$ac_config_commands test/Programs/External/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001651
1652
John Criswell0c38eaf2003-09-10 15:17:25 +00001653 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001654
1655
John Criswell613758d2003-09-11 18:03:50 +00001656 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile.spec"
1657
1658
Alkis Evlogimenos271143f2004-02-26 04:14:10 +00001659 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile.spec2000"
1660
1661
John Criswellcf2e9f72004-02-10 22:36:35 +00001662 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile.spec95"
1663
1664
John Criswell0c38eaf2003-09-10 15:17:25 +00001665 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001666
1667
John Criswell0c38eaf2003-09-10 15:17:25 +00001668 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile.multisrc"
John Criswellc764fbc2003-09-06 15:17:13 +00001669
1670
Misha Brukman811ce9f2003-11-12 22:16:51 +00001671 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in"
1672
1673
1674 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile"
1675
1676
1677 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in"
1678
1679
1680 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile"
1681
1682
1683 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in"
1684
1685
1686 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile"
1687
1688
1689 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in"
1690
1691
1692 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile"
1693
1694
1695 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in"
1696
1697
1698 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile"
1699
1700
1701 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in"
1702
1703
1704 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile"
1705
1706
1707 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in"
1708
1709
John Criswell0c38eaf2003-09-10 15:17:25 +00001710 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001711
1712
John Criswell0c38eaf2003-09-10 15:17:25 +00001713 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile.singlesrc"
John Criswellc764fbc2003-09-06 15:17:13 +00001714
1715
Alkis Evlogimenos271143f2004-02-26 04:14:10 +00001716 ac_config_commands="$ac_config_commands test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile"
1717
1718
John Criswell0c38eaf2003-09-10 15:17:25 +00001719 ac_config_commands="$ac_config_commands tools/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001720
1721
Brian Gaekec45be042003-10-07 06:01:34 +00001722 ac_config_commands="$ac_config_commands utils/Makefile"
1723
1724
John Criswell0c38eaf2003-09-10 15:17:25 +00001725 ac_config_commands="$ac_config_commands projects/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001726
1727
John Criswell392aaa32003-07-22 19:18:09 +00001728
John Criswell7a73b802003-06-30 21:59:07 +00001729# Find a good install program. We prefer a C program (faster),
1730# so one script is as good as another. But avoid the broken or
1731# incompatible versions:
1732# SysV /etc/install, /usr/sbin/install
1733# SunOS /usr/etc/install
1734# IRIX /sbin/install
1735# AIX /bin/install
1736# AmigaOS /C/install, which installs bootblocks on floppy discs
1737# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1738# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1739# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
Reid Spencer2b51a082004-08-04 00:34:49 +00001740# OS/2's system install, which has a completely different semantic
John Criswell7a73b802003-06-30 21:59:07 +00001741# ./install, which can be erroneously created by make from ./install.sh.
1742echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1743echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1744if test -z "$INSTALL"; then
1745if test "${ac_cv_path_install+set}" = set; then
1746 echo $ECHO_N "(cached) $ECHO_C" >&6
1747else
1748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1749for as_dir in $PATH
1750do
1751 IFS=$as_save_IFS
1752 test -z "$as_dir" && as_dir=.
1753 # Account for people who put trailing slashes in PATH elements.
1754case $as_dir/ in
1755 ./ | .// | /cC/* | \
1756 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Reid Spencer2b51a082004-08-04 00:34:49 +00001757 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
John Criswell7a73b802003-06-30 21:59:07 +00001758 /usr/ucb/* ) ;;
1759 *)
1760 # OSF1 and SCO ODT 3.0 have their own names for install.
1761 # Don't use installbsd from OSF since it installs stuff as root
1762 # by default.
1763 for ac_prog in ginstall scoinst install; do
1764 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencer2b51a082004-08-04 00:34:49 +00001765 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1766 if test $ac_prog = install &&
1767 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1768 # AIX install. It has an incompatible calling convention.
1769 :
1770 elif test $ac_prog = install &&
1771 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1772 # program-specific install script used by HP pwplus--don't use.
1773 :
1774 else
1775 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1776 break 3
1777 fi
1778 fi
John Criswell7a73b802003-06-30 21:59:07 +00001779 done
1780 done
1781 ;;
1782esac
1783done
1784
1785
1786fi
1787 if test "${ac_cv_path_install+set}" = set; then
1788 INSTALL=$ac_cv_path_install
1789 else
1790 # As a last resort, use the slow shell script. We don't cache a
1791 # path for INSTALL within a source directory, because that will
1792 # break other packages using the cache if that directory is
1793 # removed, or if the path is relative.
1794 INSTALL=$ac_install_sh
1795 fi
1796fi
1797echo "$as_me:$LINENO: result: $INSTALL" >&5
1798echo "${ECHO_T}$INSTALL" >&6
1799
1800# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1801# It thinks the first close brace ends the variable substitution.
1802test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1803
1804test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1805
1806test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1807
1808
1809# Make sure we can run config.sub.
1810$ac_config_sub sun4 >/dev/null 2>&1 ||
1811 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1812echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1813 { (exit 1); exit 1; }; }
1814
1815echo "$as_me:$LINENO: checking build system type" >&5
1816echo $ECHO_N "checking build system type... $ECHO_C" >&6
1817if test "${ac_cv_build+set}" = set; then
1818 echo $ECHO_N "(cached) $ECHO_C" >&6
1819else
1820 ac_cv_build_alias=$build_alias
1821test -z "$ac_cv_build_alias" &&
1822 ac_cv_build_alias=`$ac_config_guess`
1823test -z "$ac_cv_build_alias" &&
1824 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1825echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1826 { (exit 1); exit 1; }; }
1827ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1828 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1829echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1830 { (exit 1); exit 1; }; }
1831
1832fi
1833echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1834echo "${ECHO_T}$ac_cv_build" >&6
1835build=$ac_cv_build
1836build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1837build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1838build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1839
1840
1841echo "$as_me:$LINENO: checking host system type" >&5
1842echo $ECHO_N "checking host system type... $ECHO_C" >&6
1843if test "${ac_cv_host+set}" = set; then
1844 echo $ECHO_N "(cached) $ECHO_C" >&6
1845else
1846 ac_cv_host_alias=$host_alias
1847test -z "$ac_cv_host_alias" &&
1848 ac_cv_host_alias=$ac_cv_build_alias
1849ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1850 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1851echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1852 { (exit 1); exit 1; }; }
1853
1854fi
1855echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1856echo "${ECHO_T}$ac_cv_host" >&6
1857host=$ac_cv_host
1858host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1859host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1860host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1861
1862
1863echo "$as_me:$LINENO: checking target system type" >&5
1864echo $ECHO_N "checking target system type... $ECHO_C" >&6
1865if test "${ac_cv_target+set}" = set; then
1866 echo $ECHO_N "(cached) $ECHO_C" >&6
1867else
1868 ac_cv_target_alias=$target_alias
1869test "x$ac_cv_target_alias" = "x" &&
1870 ac_cv_target_alias=$ac_cv_host_alias
1871ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1872 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1873echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1874 { (exit 1); exit 1; }; }
1875
1876fi
1877echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1878echo "${ECHO_T}$ac_cv_target" >&6
1879target=$ac_cv_target
1880target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1881target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1882target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1883
1884
1885# The aliases save the names the user supplied, while $host etc.
1886# will get canonicalized.
1887test -n "$target_alias" &&
1888 test "$program_prefix$program_suffix$program_transform_name" = \
1889 NONENONEs,x,x, &&
1890 program_prefix=${target_alias}-
1891
1892case $build in
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001893 *-*-linux*)
1894 OS=Linux
John Criswell7a73b802003-06-30 21:59:07 +00001895
Reid Spencerde8c47f2004-08-29 19:35:28 +00001896 platform_type="Linux"
1897 if test -d /home/vadve/lattner/local/x86/llvm-gcc
1898 then
1899 LLVMGCCDIR=/home/vadve/lattner/local/x86/llvm-gcc/
John Criswell7a73b802003-06-30 21:59:07 +00001900
Reid Spencerde8c47f2004-08-29 19:35:28 +00001901 fi
1902 ;;
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001903 *-*-solaris*)
1904 OS=SunOS
John Criswell7a73b802003-06-30 21:59:07 +00001905
Reid Spencerde8c47f2004-08-29 19:35:28 +00001906 platform_type="SunOS"
1907 if test -d /home/vadve/lattner/local/sparc/llvm-gcc
1908 then
1909 LLVMGCCDIR=/home/vadve/lattner/local/sparc/llvm-gcc/
John Criswell7a73b802003-06-30 21:59:07 +00001910
Reid Spencerde8c47f2004-08-29 19:35:28 +00001911 fi
1912 ;;
John Criswelld6621562004-06-07 14:26:24 +00001913 *-*-cygwin*)
1914 OS=Cygwin
1915
Reid Spencerde8c47f2004-08-29 19:35:28 +00001916 platform_type="Cygwin"
1917 ;;
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001918 *-*-darwin*)
1919 OS=Darwin
1920
Reid Spencerde8c47f2004-08-29 19:35:28 +00001921 platform_type="Darwin"
1922 ;;
Misha Brukmandb84a092004-06-22 15:35:32 +00001923 *-*-aix*)
1924 OS=AIX
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001925
Reid Spencerde8c47f2004-08-29 19:35:28 +00001926 platform_type="AIX"
1927 ;;
Reid Spencer886e9512004-08-31 01:34:10 +00001928 *-*-interix*)
1929 OS=SunOS
1930
1931 platform_type="SunOS"
1932 ;;
Reid Spencerde8c47f2004-08-29 19:35:28 +00001933 *-*-win32*)
1934 OS=Win32
John Criswell7a73b802003-06-30 21:59:07 +00001935
Reid Spencerde8c47f2004-08-29 19:35:28 +00001936 platform_type="Win32"
1937 ;;
1938 *)
1939 OS=Unknown
1940
1941 platform_type="Unknown"
1942 ;;
John Criswell7a73b802003-06-30 21:59:07 +00001943esac
1944
Reid Spencer886e9512004-08-31 01:34:10 +00001945if test $platform_type -eq "Unknown" ; then
1946 { { echo "$as_me:$LINENO: error: Platform is unknown, configure can't continue" >&5
1947echo "$as_me: error: Platform is unknown, configure can't continue" >&2;}
1948 { (exit 1); exit 1; }; }
1949fi
1950
Reid Spencerde8c47f2004-08-29 19:35:28 +00001951 ac_config_links="$ac_config_links lib/System/platform:lib/System/$platform_type"
1952
1953
John Criswell7a73b802003-06-30 21:59:07 +00001954case $target in
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001955 sparc*-*-solaris*) target=sparcv9-sun-solaris2.8
John Criswell7a73b802003-06-30 21:59:07 +00001956
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001957 ;;
John Criswell7a73b802003-06-30 21:59:07 +00001958esac
1959
John Criswell76595452003-07-01 22:07:39 +00001960case $target in
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001961 i*86-*) ARCH=x86
John Criswell76595452003-07-01 22:07:39 +00001962
1963 ;;
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001964 sparc*-*) ARCH=Sparc
1965
1966 ;;
1967 powerpc*-*) ARCH=PowerPC
1968
1969 ;;
1970 *) ARCH=Unknown
John Criswell76595452003-07-01 22:07:39 +00001971
1972 ;;
1973esac
1974
John Criswell7a73b802003-06-30 21:59:07 +00001975ac_ext=cc
1976ac_cpp='$CXXCPP $CPPFLAGS'
1977ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1978ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1979ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1980if test -n "$ac_tool_prefix"; then
1981 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1982 do
1983 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1984set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1985echo "$as_me:$LINENO: checking for $ac_word" >&5
1986echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1987if test "${ac_cv_prog_CXX+set}" = set; then
1988 echo $ECHO_N "(cached) $ECHO_C" >&6
1989else
1990 if test -n "$CXX"; then
1991 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1992else
1993as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1994for as_dir in $PATH
1995do
1996 IFS=$as_save_IFS
1997 test -z "$as_dir" && as_dir=.
1998 for ac_exec_ext in '' $ac_executable_extensions; do
1999 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2000 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2001 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2002 break 2
2003 fi
2004done
2005done
2006
2007fi
2008fi
2009CXX=$ac_cv_prog_CXX
2010if test -n "$CXX"; then
2011 echo "$as_me:$LINENO: result: $CXX" >&5
2012echo "${ECHO_T}$CXX" >&6
2013else
2014 echo "$as_me:$LINENO: result: no" >&5
2015echo "${ECHO_T}no" >&6
2016fi
2017
2018 test -n "$CXX" && break
2019 done
2020fi
2021if test -z "$CXX"; then
2022 ac_ct_CXX=$CXX
2023 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2024do
2025 # Extract the first word of "$ac_prog", so it can be a program name with args.
2026set dummy $ac_prog; ac_word=$2
2027echo "$as_me:$LINENO: checking for $ac_word" >&5
2028echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2029if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2030 echo $ECHO_N "(cached) $ECHO_C" >&6
2031else
2032 if test -n "$ac_ct_CXX"; then
2033 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2034else
2035as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2036for as_dir in $PATH
2037do
2038 IFS=$as_save_IFS
2039 test -z "$as_dir" && as_dir=.
2040 for ac_exec_ext in '' $ac_executable_extensions; do
2041 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2042 ac_cv_prog_ac_ct_CXX="$ac_prog"
2043 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2044 break 2
2045 fi
2046done
2047done
2048
2049fi
2050fi
2051ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2052if test -n "$ac_ct_CXX"; then
2053 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2054echo "${ECHO_T}$ac_ct_CXX" >&6
2055else
2056 echo "$as_me:$LINENO: result: no" >&5
2057echo "${ECHO_T}no" >&6
2058fi
2059
2060 test -n "$ac_ct_CXX" && break
2061done
2062test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2063
2064 CXX=$ac_ct_CXX
2065fi
2066
2067
2068# Provide some information about the compiler.
2069echo "$as_me:$LINENO:" \
2070 "checking for C++ compiler version" >&5
2071ac_compiler=`set X $ac_compile; echo $2`
2072{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2073 (eval $ac_compiler --version </dev/null >&5) 2>&5
2074 ac_status=$?
2075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2076 (exit $ac_status); }
2077{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2078 (eval $ac_compiler -v </dev/null >&5) 2>&5
2079 ac_status=$?
2080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2081 (exit $ac_status); }
2082{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2083 (eval $ac_compiler -V </dev/null >&5) 2>&5
2084 ac_status=$?
2085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2086 (exit $ac_status); }
2087
2088cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002089/* confdefs.h. */
2090_ACEOF
2091cat confdefs.h >>conftest.$ac_ext
2092cat >>conftest.$ac_ext <<_ACEOF
2093/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002094
John Criswell7a73b802003-06-30 21:59:07 +00002095int
2096main ()
2097{
2098
2099 ;
2100 return 0;
2101}
2102_ACEOF
2103ac_clean_files_save=$ac_clean_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002104ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002105# Try to create an executable without -o first, disregard a.out.
2106# It will help us diagnose broken compilers, and finding out an intuition
2107# of exeext.
Reid Spencer2b51a082004-08-04 00:34:49 +00002108echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2109echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002110ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2111if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2112 (eval $ac_link_default) 2>&5
2113 ac_status=$?
2114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2115 (exit $ac_status); }; then
2116 # Find the output, starting from the most likely. This scheme is
2117# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2118# resort.
2119
2120# Be careful to initialize this variable, since it used to be cached.
2121# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2122ac_cv_exeext=
John Criswell0c38eaf2003-09-10 15:17:25 +00002123# b.out is created by i960 compilers.
2124for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2125do
2126 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002127 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002128 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
Reid Spencer2b51a082004-08-04 00:34:49 +00002129 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002130 conftest.$ac_ext )
Reid Spencer2b51a082004-08-04 00:34:49 +00002131 # This is the source file.
2132 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002133 [ab].out )
Reid Spencer2b51a082004-08-04 00:34:49 +00002134 # We found the default executable, but exeext='' is most
2135 # certainly right.
2136 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002137 *.* )
Reid Spencer2b51a082004-08-04 00:34:49 +00002138 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2139 # FIXME: I believe we export ac_cv_exeext for Libtool,
2140 # but it would be cool to find out if it's true. Does anybody
2141 # maintain Libtool? --akim.
2142 export ac_cv_exeext
2143 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002144 * )
Reid Spencer2b51a082004-08-04 00:34:49 +00002145 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002146 esac
2147done
2148else
2149 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002150sed 's/^/| /' conftest.$ac_ext >&5
2151
2152{ { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2153See \`config.log' for more details." >&5
2154echo "$as_me: error: C++ compiler cannot create executables
2155See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002156 { (exit 77); exit 77; }; }
2157fi
2158
2159ac_exeext=$ac_cv_exeext
2160echo "$as_me:$LINENO: result: $ac_file" >&5
2161echo "${ECHO_T}$ac_file" >&6
2162
2163# Check the compiler produces executables we can run. If not, either
2164# the compiler is broken, or we cross compile.
2165echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2166echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2167# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2168# If not cross compiling, check that we can run a simple program.
2169if test "$cross_compiling" != yes; then
2170 if { ac_try='./$ac_file'
2171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2172 (eval $ac_try) 2>&5
2173 ac_status=$?
2174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2175 (exit $ac_status); }; }; then
2176 cross_compiling=no
2177 else
2178 if test "$cross_compiling" = maybe; then
2179 cross_compiling=yes
2180 else
2181 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002182If you meant to cross compile, use \`--host'.
2183See \`config.log' for more details." >&5
John Criswell7a73b802003-06-30 21:59:07 +00002184echo "$as_me: error: cannot run C++ compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002185If you meant to cross compile, use \`--host'.
2186See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002187 { (exit 1); exit 1; }; }
2188 fi
2189 fi
2190fi
2191echo "$as_me:$LINENO: result: yes" >&5
2192echo "${ECHO_T}yes" >&6
2193
John Criswell0c38eaf2003-09-10 15:17:25 +00002194rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002195ac_clean_files=$ac_clean_files_save
2196# Check the compiler produces executables we can run. If not, either
2197# the compiler is broken, or we cross compile.
2198echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2199echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2200echo "$as_me:$LINENO: result: $cross_compiling" >&5
2201echo "${ECHO_T}$cross_compiling" >&6
2202
2203echo "$as_me:$LINENO: checking for suffix of executables" >&5
2204echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2205if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2206 (eval $ac_link) 2>&5
2207 ac_status=$?
2208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2209 (exit $ac_status); }; then
2210 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2211# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2212# work properly (i.e., refer to `conftest.exe'), while it won't with
2213# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002214for ac_file in conftest.exe conftest conftest.*; do
2215 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002216 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002217 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002218 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencer2b51a082004-08-04 00:34:49 +00002219 export ac_cv_exeext
2220 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002221 * ) break;;
2222 esac
2223done
2224else
John Criswell0c38eaf2003-09-10 15:17:25 +00002225 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2226See \`config.log' for more details." >&5
2227echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2228See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002229 { (exit 1); exit 1; }; }
2230fi
2231
2232rm -f conftest$ac_cv_exeext
2233echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2234echo "${ECHO_T}$ac_cv_exeext" >&6
2235
2236rm -f conftest.$ac_ext
2237EXEEXT=$ac_cv_exeext
2238ac_exeext=$EXEEXT
2239echo "$as_me:$LINENO: checking for suffix of object files" >&5
2240echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2241if test "${ac_cv_objext+set}" = set; then
2242 echo $ECHO_N "(cached) $ECHO_C" >&6
2243else
2244 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002245/* confdefs.h. */
2246_ACEOF
2247cat confdefs.h >>conftest.$ac_ext
2248cat >>conftest.$ac_ext <<_ACEOF
2249/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002250
John Criswell7a73b802003-06-30 21:59:07 +00002251int
2252main ()
2253{
2254
2255 ;
2256 return 0;
2257}
2258_ACEOF
2259rm -f conftest.o conftest.obj
2260if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2261 (eval $ac_compile) 2>&5
2262 ac_status=$?
2263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2264 (exit $ac_status); }; then
2265 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2266 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002267 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002268 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2269 break;;
2270 esac
2271done
2272else
2273 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002274sed 's/^/| /' conftest.$ac_ext >&5
2275
2276{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2277See \`config.log' for more details." >&5
2278echo "$as_me: error: cannot compute suffix of object files: cannot compile
2279See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002280 { (exit 1); exit 1; }; }
2281fi
2282
2283rm -f conftest.$ac_cv_objext conftest.$ac_ext
2284fi
2285echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2286echo "${ECHO_T}$ac_cv_objext" >&6
2287OBJEXT=$ac_cv_objext
2288ac_objext=$OBJEXT
2289echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2290echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2291if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2292 echo $ECHO_N "(cached) $ECHO_C" >&6
2293else
2294 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002295/* confdefs.h. */
2296_ACEOF
2297cat confdefs.h >>conftest.$ac_ext
2298cat >>conftest.$ac_ext <<_ACEOF
2299/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002300
John Criswell7a73b802003-06-30 21:59:07 +00002301int
2302main ()
2303{
2304#ifndef __GNUC__
2305 choke me
2306#endif
2307
2308 ;
2309 return 0;
2310}
2311_ACEOF
2312rm -f conftest.$ac_objext
2313if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +00002314 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002315 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +00002316 grep -v '^ *+' conftest.er1 >conftest.err
2317 rm -f conftest.er1
2318 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2320 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +00002321 { ac_try='test -z "$ac_cxx_werror_flag"
2322 || test ! -s conftest.err'
2323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2324 (eval $ac_try) 2>&5
2325 ac_status=$?
2326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2327 (exit $ac_status); }; } &&
2328 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2330 (eval $ac_try) 2>&5
2331 ac_status=$?
2332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2333 (exit $ac_status); }; }; then
2334 ac_compiler_gnu=yes
2335else
2336 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002337sed 's/^/| /' conftest.$ac_ext >&5
2338
John Criswell7a73b802003-06-30 21:59:07 +00002339ac_compiler_gnu=no
2340fi
Reid Spencer2b51a082004-08-04 00:34:49 +00002341rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002342ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2343
2344fi
2345echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2346echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2347GXX=`test $ac_compiler_gnu = yes && echo yes`
2348ac_test_CXXFLAGS=${CXXFLAGS+set}
2349ac_save_CXXFLAGS=$CXXFLAGS
2350CXXFLAGS="-g"
2351echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2352echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2353if test "${ac_cv_prog_cxx_g+set}" = set; then
2354 echo $ECHO_N "(cached) $ECHO_C" >&6
2355else
2356 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002357/* confdefs.h. */
2358_ACEOF
2359cat confdefs.h >>conftest.$ac_ext
2360cat >>conftest.$ac_ext <<_ACEOF
2361/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002362
John Criswell7a73b802003-06-30 21:59:07 +00002363int
2364main ()
2365{
2366
2367 ;
2368 return 0;
2369}
2370_ACEOF
2371rm -f conftest.$ac_objext
2372if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +00002373 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002374 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +00002375 grep -v '^ *+' conftest.er1 >conftest.err
2376 rm -f conftest.er1
2377 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2379 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +00002380 { ac_try='test -z "$ac_cxx_werror_flag"
2381 || test ! -s conftest.err'
2382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2383 (eval $ac_try) 2>&5
2384 ac_status=$?
2385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2386 (exit $ac_status); }; } &&
2387 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2389 (eval $ac_try) 2>&5
2390 ac_status=$?
2391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2392 (exit $ac_status); }; }; then
2393 ac_cv_prog_cxx_g=yes
2394else
2395 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002396sed 's/^/| /' conftest.$ac_ext >&5
2397
John Criswell7a73b802003-06-30 21:59:07 +00002398ac_cv_prog_cxx_g=no
2399fi
Reid Spencer2b51a082004-08-04 00:34:49 +00002400rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002401fi
2402echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2403echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2404if test "$ac_test_CXXFLAGS" = set; then
2405 CXXFLAGS=$ac_save_CXXFLAGS
2406elif test $ac_cv_prog_cxx_g = yes; then
2407 if test "$GXX" = yes; then
2408 CXXFLAGS="-g -O2"
2409 else
2410 CXXFLAGS="-g"
2411 fi
2412else
2413 if test "$GXX" = yes; then
2414 CXXFLAGS="-O2"
2415 else
2416 CXXFLAGS=
2417 fi
2418fi
2419for ac_declaration in \
Reid Spencer2b51a082004-08-04 00:34:49 +00002420 '' \
John Criswell7a73b802003-06-30 21:59:07 +00002421 'extern "C" void std::exit (int) throw (); using std::exit;' \
2422 'extern "C" void std::exit (int); using std::exit;' \
2423 'extern "C" void exit (int) throw ();' \
2424 'extern "C" void exit (int);' \
2425 'void exit (int);'
2426do
2427 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002428/* confdefs.h. */
2429_ACEOF
2430cat confdefs.h >>conftest.$ac_ext
2431cat >>conftest.$ac_ext <<_ACEOF
2432/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002433$ac_declaration
Reid Spencer2b51a082004-08-04 00:34:49 +00002434#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00002435int
2436main ()
2437{
2438exit (42);
2439 ;
2440 return 0;
2441}
2442_ACEOF
2443rm -f conftest.$ac_objext
2444if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +00002445 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002446 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +00002447 grep -v '^ *+' conftest.er1 >conftest.err
2448 rm -f conftest.er1
2449 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2451 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +00002452 { ac_try='test -z "$ac_cxx_werror_flag"
2453 || test ! -s conftest.err'
2454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2455 (eval $ac_try) 2>&5
2456 ac_status=$?
2457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2458 (exit $ac_status); }; } &&
2459 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2461 (eval $ac_try) 2>&5
2462 ac_status=$?
2463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2464 (exit $ac_status); }; }; then
2465 :
2466else
2467 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002468sed 's/^/| /' conftest.$ac_ext >&5
2469
John Criswell7a73b802003-06-30 21:59:07 +00002470continue
2471fi
Reid Spencer2b51a082004-08-04 00:34:49 +00002472rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002473 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002474/* confdefs.h. */
2475_ACEOF
2476cat confdefs.h >>conftest.$ac_ext
2477cat >>conftest.$ac_ext <<_ACEOF
2478/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002479$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00002480int
2481main ()
2482{
2483exit (42);
2484 ;
2485 return 0;
2486}
2487_ACEOF
2488rm -f conftest.$ac_objext
2489if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +00002490 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002491 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +00002492 grep -v '^ *+' conftest.er1 >conftest.err
2493 rm -f conftest.er1
2494 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2496 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +00002497 { ac_try='test -z "$ac_cxx_werror_flag"
2498 || test ! -s conftest.err'
2499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2500 (eval $ac_try) 2>&5
2501 ac_status=$?
2502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2503 (exit $ac_status); }; } &&
2504 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2506 (eval $ac_try) 2>&5
2507 ac_status=$?
2508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2509 (exit $ac_status); }; }; then
2510 break
2511else
2512 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002513sed 's/^/| /' conftest.$ac_ext >&5
2514
John Criswell7a73b802003-06-30 21:59:07 +00002515fi
Reid Spencer2b51a082004-08-04 00:34:49 +00002516rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002517done
2518rm -f conftest*
2519if test -n "$ac_declaration"; then
2520 echo '#ifdef __cplusplus' >>confdefs.h
2521 echo $ac_declaration >>confdefs.h
2522 echo '#endif' >>confdefs.h
2523fi
2524
2525ac_ext=c
2526ac_cpp='$CPP $CPPFLAGS'
2527ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2528ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2529ac_compiler_gnu=$ac_cv_c_compiler_gnu
2530
2531ac_ext=c
2532ac_cpp='$CPP $CPPFLAGS'
2533ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2534ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2535ac_compiler_gnu=$ac_cv_c_compiler_gnu
2536if test -n "$ac_tool_prefix"; then
2537 for ac_prog in gcc
2538 do
2539 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2540set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2541echo "$as_me:$LINENO: checking for $ac_word" >&5
2542echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2543if test "${ac_cv_prog_CC+set}" = set; then
2544 echo $ECHO_N "(cached) $ECHO_C" >&6
2545else
2546 if test -n "$CC"; then
2547 ac_cv_prog_CC="$CC" # Let the user override the test.
2548else
2549as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2550for as_dir in $PATH
2551do
2552 IFS=$as_save_IFS
2553 test -z "$as_dir" && as_dir=.
2554 for ac_exec_ext in '' $ac_executable_extensions; do
2555 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2556 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2557 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2558 break 2
2559 fi
2560done
2561done
2562
2563fi
2564fi
2565CC=$ac_cv_prog_CC
2566if test -n "$CC"; then
2567 echo "$as_me:$LINENO: result: $CC" >&5
2568echo "${ECHO_T}$CC" >&6
2569else
2570 echo "$as_me:$LINENO: result: no" >&5
2571echo "${ECHO_T}no" >&6
2572fi
2573
2574 test -n "$CC" && break
2575 done
2576fi
2577if test -z "$CC"; then
2578 ac_ct_CC=$CC
2579 for ac_prog in gcc
2580do
2581 # Extract the first word of "$ac_prog", so it can be a program name with args.
2582set dummy $ac_prog; ac_word=$2
2583echo "$as_me:$LINENO: checking for $ac_word" >&5
2584echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2585if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2586 echo $ECHO_N "(cached) $ECHO_C" >&6
2587else
2588 if test -n "$ac_ct_CC"; then
2589 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2590else
2591as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2592for as_dir in $PATH
2593do
2594 IFS=$as_save_IFS
2595 test -z "$as_dir" && as_dir=.
2596 for ac_exec_ext in '' $ac_executable_extensions; do
2597 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2598 ac_cv_prog_ac_ct_CC="$ac_prog"
2599 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2600 break 2
2601 fi
2602done
2603done
2604
2605fi
2606fi
2607ac_ct_CC=$ac_cv_prog_ac_ct_CC
2608if test -n "$ac_ct_CC"; then
2609 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2610echo "${ECHO_T}$ac_ct_CC" >&6
2611else
2612 echo "$as_me:$LINENO: result: no" >&5
2613echo "${ECHO_T}no" >&6
2614fi
2615
2616 test -n "$ac_ct_CC" && break
2617done
2618
2619 CC=$ac_ct_CC
2620fi
2621
2622
John Criswell0c38eaf2003-09-10 15:17:25 +00002623test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2624See \`config.log' for more details." >&5
2625echo "$as_me: error: no acceptable C compiler found in \$PATH
2626See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002627 { (exit 1); exit 1; }; }
2628
2629# Provide some information about the compiler.
2630echo "$as_me:$LINENO:" \
2631 "checking for C compiler version" >&5
2632ac_compiler=`set X $ac_compile; echo $2`
2633{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2634 (eval $ac_compiler --version </dev/null >&5) 2>&5
2635 ac_status=$?
2636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2637 (exit $ac_status); }
2638{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2639 (eval $ac_compiler -v </dev/null >&5) 2>&5
2640 ac_status=$?
2641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2642 (exit $ac_status); }
2643{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2644 (eval $ac_compiler -V </dev/null >&5) 2>&5
2645 ac_status=$?
2646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2647 (exit $ac_status); }
2648
2649echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2650echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2651if test "${ac_cv_c_compiler_gnu+set}" = set; then
2652 echo $ECHO_N "(cached) $ECHO_C" >&6
2653else
2654 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002655/* confdefs.h. */
2656_ACEOF
2657cat confdefs.h >>conftest.$ac_ext
2658cat >>conftest.$ac_ext <<_ACEOF
2659/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002660
John Criswell7a73b802003-06-30 21:59:07 +00002661int
2662main ()
2663{
2664#ifndef __GNUC__
2665 choke me
2666#endif
2667
2668 ;
2669 return 0;
2670}
2671_ACEOF
2672rm -f conftest.$ac_objext
2673if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +00002674 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002675 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +00002676 grep -v '^ *+' conftest.er1 >conftest.err
2677 rm -f conftest.er1
2678 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2680 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +00002681 { ac_try='test -z "$ac_c_werror_flag"
2682 || test ! -s conftest.err'
2683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2684 (eval $ac_try) 2>&5
2685 ac_status=$?
2686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2687 (exit $ac_status); }; } &&
2688 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2690 (eval $ac_try) 2>&5
2691 ac_status=$?
2692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2693 (exit $ac_status); }; }; then
2694 ac_compiler_gnu=yes
2695else
2696 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002697sed 's/^/| /' conftest.$ac_ext >&5
2698
John Criswell7a73b802003-06-30 21:59:07 +00002699ac_compiler_gnu=no
2700fi
Reid Spencer2b51a082004-08-04 00:34:49 +00002701rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002702ac_cv_c_compiler_gnu=$ac_compiler_gnu
2703
2704fi
2705echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2706echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2707GCC=`test $ac_compiler_gnu = yes && echo yes`
2708ac_test_CFLAGS=${CFLAGS+set}
2709ac_save_CFLAGS=$CFLAGS
2710CFLAGS="-g"
2711echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2712echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2713if test "${ac_cv_prog_cc_g+set}" = set; then
2714 echo $ECHO_N "(cached) $ECHO_C" >&6
2715else
2716 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002717/* confdefs.h. */
2718_ACEOF
2719cat confdefs.h >>conftest.$ac_ext
2720cat >>conftest.$ac_ext <<_ACEOF
2721/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002722
John Criswell7a73b802003-06-30 21:59:07 +00002723int
2724main ()
2725{
2726
2727 ;
2728 return 0;
2729}
2730_ACEOF
2731rm -f conftest.$ac_objext
2732if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +00002733 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002734 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +00002735 grep -v '^ *+' conftest.er1 >conftest.err
2736 rm -f conftest.er1
2737 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2739 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +00002740 { ac_try='test -z "$ac_c_werror_flag"
2741 || test ! -s conftest.err'
2742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2743 (eval $ac_try) 2>&5
2744 ac_status=$?
2745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2746 (exit $ac_status); }; } &&
2747 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2749 (eval $ac_try) 2>&5
2750 ac_status=$?
2751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2752 (exit $ac_status); }; }; then
2753 ac_cv_prog_cc_g=yes
2754else
2755 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002756sed 's/^/| /' conftest.$ac_ext >&5
2757
John Criswell7a73b802003-06-30 21:59:07 +00002758ac_cv_prog_cc_g=no
2759fi
Reid Spencer2b51a082004-08-04 00:34:49 +00002760rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002761fi
2762echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2763echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2764if test "$ac_test_CFLAGS" = set; then
2765 CFLAGS=$ac_save_CFLAGS
2766elif test $ac_cv_prog_cc_g = yes; then
2767 if test "$GCC" = yes; then
2768 CFLAGS="-g -O2"
2769 else
2770 CFLAGS="-g"
2771 fi
2772else
2773 if test "$GCC" = yes; then
2774 CFLAGS="-O2"
2775 else
2776 CFLAGS=
2777 fi
2778fi
John Criswell0c38eaf2003-09-10 15:17:25 +00002779echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2780echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2781if test "${ac_cv_prog_cc_stdc+set}" = set; then
2782 echo $ECHO_N "(cached) $ECHO_C" >&6
2783else
2784 ac_cv_prog_cc_stdc=no
2785ac_save_CC=$CC
2786cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002787/* confdefs.h. */
2788_ACEOF
2789cat confdefs.h >>conftest.$ac_ext
2790cat >>conftest.$ac_ext <<_ACEOF
2791/* end confdefs.h. */
2792#include <stdarg.h>
2793#include <stdio.h>
2794#include <sys/types.h>
2795#include <sys/stat.h>
2796/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2797struct buf { int x; };
2798FILE * (*rcsopen) (struct buf *, struct stat *, int);
2799static char *e (p, i)
2800 char **p;
2801 int i;
2802{
2803 return p[i];
2804}
2805static char *f (char * (*g) (char **, int), char **p, ...)
2806{
2807 char *s;
2808 va_list v;
2809 va_start (v,p);
2810 s = g (p, va_arg (v,int));
2811 va_end (v);
2812 return s;
2813}
Reid Spencer2b51a082004-08-04 00:34:49 +00002814
2815/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2816 function prototypes and stuff, but not '\xHH' hex character constants.
2817 These don't provoke an error unfortunately, instead are silently treated
2818 as 'x'. The following induces an error, until -std1 is added to get
2819 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2820 array size at least. It's necessary to write '\x00'==0 to get something
2821 that's true only with -std1. */
2822int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2823
John Criswell0c38eaf2003-09-10 15:17:25 +00002824int test (int i, double x);
2825struct s1 {int (*f) (int a);};
2826struct s2 {int (*f) (double a);};
2827int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2828int argc;
2829char **argv;
2830int
2831main ()
2832{
2833return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2834 ;
2835 return 0;
2836}
2837_ACEOF
2838# Don't try gcc -ansi; that turns off useful extensions and
2839# breaks some systems' header files.
2840# AIX -qlanglvl=ansi
2841# Ultrix and OSF/1 -std1
2842# HP-UX 10.20 and later -Ae
2843# HP-UX older versions -Aa -D_HPUX_SOURCE
2844# SVR4 -Xc -D__EXTENSIONS__
2845for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2846do
2847 CC="$ac_save_CC $ac_arg"
2848 rm -f conftest.$ac_objext
2849if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +00002850 (eval $ac_compile) 2>conftest.er1
John Criswell0c38eaf2003-09-10 15:17:25 +00002851 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +00002852 grep -v '^ *+' conftest.er1 >conftest.err
2853 rm -f conftest.er1
2854 cat conftest.err >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2856 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +00002857 { ac_try='test -z "$ac_c_werror_flag"
2858 || test ! -s conftest.err'
2859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2860 (eval $ac_try) 2>&5
2861 ac_status=$?
2862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2863 (exit $ac_status); }; } &&
2864 { ac_try='test -s conftest.$ac_objext'
John Criswell0c38eaf2003-09-10 15:17:25 +00002865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2866 (eval $ac_try) 2>&5
2867 ac_status=$?
2868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2869 (exit $ac_status); }; }; then
2870 ac_cv_prog_cc_stdc=$ac_arg
2871break
2872else
2873 echo "$as_me: failed program was:" >&5
2874sed 's/^/| /' conftest.$ac_ext >&5
2875
2876fi
Reid Spencer2b51a082004-08-04 00:34:49 +00002877rm -f conftest.err conftest.$ac_objext
John Criswell0c38eaf2003-09-10 15:17:25 +00002878done
2879rm -f conftest.$ac_ext conftest.$ac_objext
2880CC=$ac_save_CC
2881
2882fi
2883
2884case "x$ac_cv_prog_cc_stdc" in
2885 x|xno)
2886 echo "$as_me:$LINENO: result: none needed" >&5
2887echo "${ECHO_T}none needed" >&6 ;;
2888 *)
2889 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2890echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2891 CC="$CC $ac_cv_prog_cc_stdc" ;;
2892esac
2893
John Criswell7a73b802003-06-30 21:59:07 +00002894# Some people use a C++ compiler to compile C. Since we use `exit',
2895# in C++ we need to declare it. In case someone uses the same compiler
2896# for both compiling C and C++ we need to have the C++ compiler decide
2897# the declaration of exit, since it's the most demanding environment.
2898cat >conftest.$ac_ext <<_ACEOF
2899#ifndef __cplusplus
2900 choke me
2901#endif
2902_ACEOF
2903rm -f conftest.$ac_objext
2904if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +00002905 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002906 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +00002907 grep -v '^ *+' conftest.er1 >conftest.err
2908 rm -f conftest.er1
2909 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2911 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +00002912 { ac_try='test -z "$ac_c_werror_flag"
2913 || test ! -s conftest.err'
2914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2915 (eval $ac_try) 2>&5
2916 ac_status=$?
2917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2918 (exit $ac_status); }; } &&
2919 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2921 (eval $ac_try) 2>&5
2922 ac_status=$?
2923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2924 (exit $ac_status); }; }; then
2925 for ac_declaration in \
Reid Spencer2b51a082004-08-04 00:34:49 +00002926 '' \
John Criswell7a73b802003-06-30 21:59:07 +00002927 'extern "C" void std::exit (int) throw (); using std::exit;' \
2928 'extern "C" void std::exit (int); using std::exit;' \
2929 'extern "C" void exit (int) throw ();' \
2930 'extern "C" void exit (int);' \
2931 'void exit (int);'
2932do
2933 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002934/* confdefs.h. */
2935_ACEOF
2936cat confdefs.h >>conftest.$ac_ext
2937cat >>conftest.$ac_ext <<_ACEOF
2938/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002939$ac_declaration
Reid Spencer2b51a082004-08-04 00:34:49 +00002940#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00002941int
2942main ()
2943{
2944exit (42);
2945 ;
2946 return 0;
2947}
2948_ACEOF
2949rm -f conftest.$ac_objext
2950if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +00002951 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002952 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +00002953 grep -v '^ *+' conftest.er1 >conftest.err
2954 rm -f conftest.er1
2955 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2957 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +00002958 { ac_try='test -z "$ac_c_werror_flag"
2959 || test ! -s conftest.err'
2960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2961 (eval $ac_try) 2>&5
2962 ac_status=$?
2963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2964 (exit $ac_status); }; } &&
2965 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2967 (eval $ac_try) 2>&5
2968 ac_status=$?
2969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2970 (exit $ac_status); }; }; then
2971 :
2972else
2973 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002974sed 's/^/| /' conftest.$ac_ext >&5
2975
John Criswell7a73b802003-06-30 21:59:07 +00002976continue
2977fi
Reid Spencer2b51a082004-08-04 00:34:49 +00002978rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002979 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002980/* confdefs.h. */
2981_ACEOF
2982cat confdefs.h >>conftest.$ac_ext
2983cat >>conftest.$ac_ext <<_ACEOF
2984/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002985$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00002986int
2987main ()
2988{
2989exit (42);
2990 ;
2991 return 0;
2992}
2993_ACEOF
2994rm -f conftest.$ac_objext
2995if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +00002996 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002997 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +00002998 grep -v '^ *+' conftest.er1 >conftest.err
2999 rm -f conftest.er1
3000 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3002 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +00003003 { ac_try='test -z "$ac_c_werror_flag"
3004 || test ! -s conftest.err'
3005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3006 (eval $ac_try) 2>&5
3007 ac_status=$?
3008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3009 (exit $ac_status); }; } &&
3010 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00003011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3012 (eval $ac_try) 2>&5
3013 ac_status=$?
3014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3015 (exit $ac_status); }; }; then
3016 break
3017else
3018 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003019sed 's/^/| /' conftest.$ac_ext >&5
3020
John Criswell7a73b802003-06-30 21:59:07 +00003021fi
Reid Spencer2b51a082004-08-04 00:34:49 +00003022rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003023done
3024rm -f conftest*
3025if test -n "$ac_declaration"; then
3026 echo '#ifdef __cplusplus' >>confdefs.h
3027 echo $ac_declaration >>confdefs.h
3028 echo '#endif' >>confdefs.h
3029fi
3030
3031else
3032 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003033sed 's/^/| /' conftest.$ac_ext >&5
3034
John Criswell7a73b802003-06-30 21:59:07 +00003035fi
Reid Spencer2b51a082004-08-04 00:34:49 +00003036rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003037ac_ext=c
3038ac_cpp='$CPP $CPPFLAGS'
3039ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3040ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3041ac_compiler_gnu=$ac_cv_c_compiler_gnu
3042
3043ac_ext=c
3044ac_cpp='$CPP $CPPFLAGS'
3045ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3046ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3047ac_compiler_gnu=$ac_cv_c_compiler_gnu
3048echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3049echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3050# On Suns, sometimes $CPP names a directory.
3051if test -n "$CPP" && test -d "$CPP"; then
3052 CPP=
3053fi
3054if test -z "$CPP"; then
3055 if test "${ac_cv_prog_CPP+set}" = set; then
3056 echo $ECHO_N "(cached) $ECHO_C" >&6
3057else
3058 # Double quotes because CPP needs to be expanded
3059 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3060 do
3061 ac_preproc_ok=false
3062for ac_c_preproc_warn_flag in '' yes
3063do
3064 # Use a header file that comes with gcc, so configuring glibc
3065 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00003066 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3067 # <limits.h> exists even on freestanding compilers.
John Criswell7a73b802003-06-30 21:59:07 +00003068 # On the NeXT, cc -E runs the code through the compiler's parser,
3069 # not just through cpp. "Syntax error" is here to catch this case.
3070 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003071/* confdefs.h. */
3072_ACEOF
3073cat confdefs.h >>conftest.$ac_ext
3074cat >>conftest.$ac_ext <<_ACEOF
3075/* end confdefs.h. */
3076#ifdef __STDC__
3077# include <limits.h>
3078#else
3079# include <assert.h>
3080#endif
Reid Spencer2b51a082004-08-04 00:34:49 +00003081 Syntax error
John Criswell7a73b802003-06-30 21:59:07 +00003082_ACEOF
3083if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3084 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3085 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003086 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003087 rm -f conftest.er1
3088 cat conftest.err >&5
3089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3090 (exit $ac_status); } >/dev/null; then
3091 if test -s conftest.err; then
3092 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2b51a082004-08-04 00:34:49 +00003093 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +00003094 else
3095 ac_cpp_err=
3096 fi
3097else
3098 ac_cpp_err=yes
3099fi
3100if test -z "$ac_cpp_err"; then
3101 :
3102else
3103 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003104sed 's/^/| /' conftest.$ac_ext >&5
3105
John Criswell7a73b802003-06-30 21:59:07 +00003106 # Broken: fails on valid input.
3107continue
3108fi
3109rm -f conftest.err conftest.$ac_ext
3110
3111 # OK, works on sane cases. Now check whether non-existent headers
3112 # can be detected and how.
3113 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003114/* confdefs.h. */
3115_ACEOF
3116cat confdefs.h >>conftest.$ac_ext
3117cat >>conftest.$ac_ext <<_ACEOF
3118/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003119#include <ac_nonexistent.h>
3120_ACEOF
3121if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3122 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3123 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003124 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003125 rm -f conftest.er1
3126 cat conftest.err >&5
3127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3128 (exit $ac_status); } >/dev/null; then
3129 if test -s conftest.err; then
3130 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2b51a082004-08-04 00:34:49 +00003131 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +00003132 else
3133 ac_cpp_err=
3134 fi
3135else
3136 ac_cpp_err=yes
3137fi
3138if test -z "$ac_cpp_err"; then
3139 # Broken: success on invalid input.
3140continue
3141else
3142 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003143sed 's/^/| /' conftest.$ac_ext >&5
3144
John Criswell7a73b802003-06-30 21:59:07 +00003145 # Passes both tests.
3146ac_preproc_ok=:
3147break
3148fi
3149rm -f conftest.err conftest.$ac_ext
3150
3151done
3152# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3153rm -f conftest.err conftest.$ac_ext
3154if $ac_preproc_ok; then
3155 break
3156fi
3157
3158 done
3159 ac_cv_prog_CPP=$CPP
3160
3161fi
3162 CPP=$ac_cv_prog_CPP
3163else
3164 ac_cv_prog_CPP=$CPP
3165fi
3166echo "$as_me:$LINENO: result: $CPP" >&5
3167echo "${ECHO_T}$CPP" >&6
3168ac_preproc_ok=false
3169for ac_c_preproc_warn_flag in '' yes
3170do
3171 # Use a header file that comes with gcc, so configuring glibc
3172 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00003173 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3174 # <limits.h> exists even on freestanding compilers.
John Criswell7a73b802003-06-30 21:59:07 +00003175 # On the NeXT, cc -E runs the code through the compiler's parser,
3176 # not just through cpp. "Syntax error" is here to catch this case.
3177 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003178/* confdefs.h. */
3179_ACEOF
3180cat confdefs.h >>conftest.$ac_ext
3181cat >>conftest.$ac_ext <<_ACEOF
3182/* end confdefs.h. */
3183#ifdef __STDC__
3184# include <limits.h>
3185#else
3186# include <assert.h>
3187#endif
Reid Spencer2b51a082004-08-04 00:34:49 +00003188 Syntax error
John Criswell7a73b802003-06-30 21:59:07 +00003189_ACEOF
3190if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3191 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3192 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003193 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003194 rm -f conftest.er1
3195 cat conftest.err >&5
3196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3197 (exit $ac_status); } >/dev/null; then
3198 if test -s conftest.err; then
3199 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2b51a082004-08-04 00:34:49 +00003200 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +00003201 else
3202 ac_cpp_err=
3203 fi
3204else
3205 ac_cpp_err=yes
3206fi
3207if test -z "$ac_cpp_err"; then
3208 :
3209else
3210 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003211sed 's/^/| /' conftest.$ac_ext >&5
3212
John Criswell7a73b802003-06-30 21:59:07 +00003213 # Broken: fails on valid input.
3214continue
3215fi
3216rm -f conftest.err conftest.$ac_ext
3217
3218 # OK, works on sane cases. Now check whether non-existent headers
3219 # can be detected and how.
3220 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003221/* confdefs.h. */
3222_ACEOF
3223cat confdefs.h >>conftest.$ac_ext
3224cat >>conftest.$ac_ext <<_ACEOF
3225/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003226#include <ac_nonexistent.h>
3227_ACEOF
3228if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3229 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3230 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003231 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003232 rm -f conftest.er1
3233 cat conftest.err >&5
3234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3235 (exit $ac_status); } >/dev/null; then
3236 if test -s conftest.err; then
3237 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2b51a082004-08-04 00:34:49 +00003238 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +00003239 else
3240 ac_cpp_err=
3241 fi
3242else
3243 ac_cpp_err=yes
3244fi
3245if test -z "$ac_cpp_err"; then
3246 # Broken: success on invalid input.
3247continue
3248else
3249 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003250sed 's/^/| /' conftest.$ac_ext >&5
3251
John Criswell7a73b802003-06-30 21:59:07 +00003252 # Passes both tests.
3253ac_preproc_ok=:
3254break
3255fi
3256rm -f conftest.err conftest.$ac_ext
3257
3258done
3259# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3260rm -f conftest.err conftest.$ac_ext
3261if $ac_preproc_ok; then
3262 :
3263else
John Criswell0c38eaf2003-09-10 15:17:25 +00003264 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3265See \`config.log' for more details." >&5
3266echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3267See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00003268 { (exit 1); exit 1; }; }
3269fi
3270
3271ac_ext=c
3272ac_cpp='$CPP $CPPFLAGS'
3273ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3274ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3275ac_compiler_gnu=$ac_cv_c_compiler_gnu
3276
3277
3278if test "$GCC" != "yes"
3279then
3280 { { echo "$as_me:$LINENO: error: gcc required but not found" >&5
3281echo "$as_me: error: gcc required but not found" >&2;}
3282 { (exit 1); exit 1; }; }
3283fi
John Criswell7a73b802003-06-30 21:59:07 +00003284if test "$GXX" != "yes"
3285then
3286 { { echo "$as_me:$LINENO: error: g++ required but not found" >&5
3287echo "$as_me: error: g++ required but not found" >&2;}
3288 { (exit 1); exit 1; }; }
3289fi
3290
John Criswellde00db22003-08-25 16:49:54 +00003291gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
3292if test "$gccmajor" -lt "3"
3293then
Brian Gaeke26be9c52004-01-13 06:43:16 +00003294 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
3295echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
John Criswellde00db22003-08-25 16:49:54 +00003296 { (exit 1); exit 1; }; }
3297fi
3298
John Criswell7a73b802003-06-30 21:59:07 +00003299 echo "$as_me:$LINENO: checking for GNU make" >&5
3300echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
3301if test "${_cv_gnu_make_command+set}" = set; then
3302 echo $ECHO_N "(cached) $ECHO_C" >&6
3303else
3304 _cv_gnu_make_command='' ;
3305 for a in "$MAKE" make gmake gnumake ; do
3306 if test -z "$a" ; then continue ; fi ;
3307 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
3308 _cv_gnu_make_command=$a ;
3309 break;
3310 fi
3311 done ;
3312
3313fi
3314echo "$as_me:$LINENO: result: $_cv_gnu_make_command" >&5
3315echo "${ECHO_T}$_cv_gnu_make_command" >&6 ;
3316 if test "x$_cv_gnu_make_command" != "x" ; then
3317 ifGNUmake='' ;
3318 else
3319 ifGNUmake='#' ;
3320 echo "$as_me:$LINENO: result: \"Not found\"" >&5
3321echo "${ECHO_T}\"Not found\"" >&6;
3322 fi
3323
3324
3325if test -z "$_cv_gnu_make_command"
3326then
3327 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
3328echo "$as_me: error: GNU Make required but not found" >&2;}
3329 { (exit 1); exit 1; }; }
3330fi
3331
3332
3333echo "$as_me:$LINENO: checking " >&5
3334echo $ECHO_N "checking ... $ECHO_C" >&6
3335if test "${ac_cv_has_flex+set}" = set; then
3336 echo $ECHO_N "(cached) $ECHO_C" >&6
3337else
3338 for ac_prog in flex lex
3339do
3340 # Extract the first word of "$ac_prog", so it can be a program name with args.
3341set dummy $ac_prog; ac_word=$2
3342echo "$as_me:$LINENO: checking for $ac_word" >&5
3343echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3344if test "${ac_cv_prog_LEX+set}" = set; then
3345 echo $ECHO_N "(cached) $ECHO_C" >&6
3346else
3347 if test -n "$LEX"; then
3348 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3349else
3350as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3351for as_dir in $PATH
3352do
3353 IFS=$as_save_IFS
3354 test -z "$as_dir" && as_dir=.
3355 for ac_exec_ext in '' $ac_executable_extensions; do
3356 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3357 ac_cv_prog_LEX="$ac_prog"
3358 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3359 break 2
3360 fi
3361done
3362done
3363
3364fi
3365fi
3366LEX=$ac_cv_prog_LEX
3367if test -n "$LEX"; then
3368 echo "$as_me:$LINENO: result: $LEX" >&5
3369echo "${ECHO_T}$LEX" >&6
3370else
3371 echo "$as_me:$LINENO: result: no" >&5
3372echo "${ECHO_T}no" >&6
3373fi
3374
3375 test -n "$LEX" && break
3376done
3377test -n "$LEX" || LEX=":"
3378
3379if test -z "$LEXLIB"
3380then
3381 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3382echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3383if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3384 echo $ECHO_N "(cached) $ECHO_C" >&6
3385else
3386 ac_check_lib_save_LIBS=$LIBS
3387LIBS="-lfl $LIBS"
3388cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003389/* confdefs.h. */
3390_ACEOF
3391cat confdefs.h >>conftest.$ac_ext
3392cat >>conftest.$ac_ext <<_ACEOF
3393/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003394
3395/* Override any gcc2 internal prototype to avoid an error. */
3396#ifdef __cplusplus
3397extern "C"
3398#endif
3399/* We use char because int might match the return type of a gcc2
3400 builtin and then its argument prototype would still apply. */
3401char yywrap ();
John Criswell7a73b802003-06-30 21:59:07 +00003402int
3403main ()
3404{
3405yywrap ();
3406 ;
3407 return 0;
3408}
3409_ACEOF
3410rm -f conftest.$ac_objext conftest$ac_exeext
3411if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +00003412 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003413 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +00003414 grep -v '^ *+' conftest.er1 >conftest.err
3415 rm -f conftest.er1
3416 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3418 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +00003419 { ac_try='test -z "$ac_c_werror_flag"
3420 || test ! -s conftest.err'
3421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3422 (eval $ac_try) 2>&5
3423 ac_status=$?
3424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3425 (exit $ac_status); }; } &&
3426 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00003427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3428 (eval $ac_try) 2>&5
3429 ac_status=$?
3430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3431 (exit $ac_status); }; }; then
3432 ac_cv_lib_fl_yywrap=yes
3433else
3434 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003435sed 's/^/| /' conftest.$ac_ext >&5
3436
John Criswell7a73b802003-06-30 21:59:07 +00003437ac_cv_lib_fl_yywrap=no
3438fi
Reid Spencer2b51a082004-08-04 00:34:49 +00003439rm -f conftest.err conftest.$ac_objext \
3440 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003441LIBS=$ac_check_lib_save_LIBS
3442fi
3443echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3444echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3445if test $ac_cv_lib_fl_yywrap = yes; then
3446 LEXLIB="-lfl"
3447else
3448 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3449echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3450if test "${ac_cv_lib_l_yywrap+set}" = set; then
3451 echo $ECHO_N "(cached) $ECHO_C" >&6
3452else
3453 ac_check_lib_save_LIBS=$LIBS
3454LIBS="-ll $LIBS"
3455cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003456/* confdefs.h. */
3457_ACEOF
3458cat confdefs.h >>conftest.$ac_ext
3459cat >>conftest.$ac_ext <<_ACEOF
3460/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003461
3462/* Override any gcc2 internal prototype to avoid an error. */
3463#ifdef __cplusplus
3464extern "C"
3465#endif
3466/* We use char because int might match the return type of a gcc2
3467 builtin and then its argument prototype would still apply. */
3468char yywrap ();
John Criswell7a73b802003-06-30 21:59:07 +00003469int
3470main ()
3471{
3472yywrap ();
3473 ;
3474 return 0;
3475}
3476_ACEOF
3477rm -f conftest.$ac_objext conftest$ac_exeext
3478if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +00003479 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003480 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +00003481 grep -v '^ *+' conftest.er1 >conftest.err
3482 rm -f conftest.er1
3483 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3485 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +00003486 { ac_try='test -z "$ac_c_werror_flag"
3487 || test ! -s conftest.err'
3488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3489 (eval $ac_try) 2>&5
3490 ac_status=$?
3491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3492 (exit $ac_status); }; } &&
3493 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00003494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3495 (eval $ac_try) 2>&5
3496 ac_status=$?
3497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3498 (exit $ac_status); }; }; then
3499 ac_cv_lib_l_yywrap=yes
3500else
3501 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003502sed 's/^/| /' conftest.$ac_ext >&5
3503
John Criswell7a73b802003-06-30 21:59:07 +00003504ac_cv_lib_l_yywrap=no
3505fi
Reid Spencer2b51a082004-08-04 00:34:49 +00003506rm -f conftest.err conftest.$ac_objext \
3507 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003508LIBS=$ac_check_lib_save_LIBS
3509fi
3510echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3511echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3512if test $ac_cv_lib_l_yywrap = yes; then
3513 LEXLIB="-ll"
3514fi
3515
3516fi
3517
3518fi
3519
3520if test "x$LEX" != "x:"; then
3521 echo "$as_me:$LINENO: checking lex output file root" >&5
3522echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3523if test "${ac_cv_prog_lex_root+set}" = set; then
3524 echo $ECHO_N "(cached) $ECHO_C" >&6
3525else
3526 # The minimal lex program is just a single line: %%. But some broken lexes
3527# (Solaris, I think it was) want two %% lines, so accommodate them.
3528cat >conftest.l <<_ACEOF
3529%%
3530%%
3531_ACEOF
3532{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3533 (eval $LEX conftest.l) 2>&5
3534 ac_status=$?
3535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3536 (exit $ac_status); }
3537if test -f lex.yy.c; then
3538 ac_cv_prog_lex_root=lex.yy
3539elif test -f lexyy.c; then
3540 ac_cv_prog_lex_root=lexyy
3541else
3542 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3543echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3544 { (exit 1); exit 1; }; }
3545fi
3546fi
3547echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3548echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3549rm -f conftest.l
3550LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3551
3552echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3553echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3554if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3555 echo $ECHO_N "(cached) $ECHO_C" >&6
3556else
3557 # POSIX says lex can declare yytext either as a pointer or an array; the
3558# default is implementation-dependent. Figure out which it is, since
3559# not all implementations provide the %pointer and %array declarations.
3560ac_cv_prog_lex_yytext_pointer=no
3561echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3562ac_save_LIBS=$LIBS
3563LIBS="$LIBS $LEXLIB"
3564cat >conftest.$ac_ext <<_ACEOF
3565`cat $LEX_OUTPUT_ROOT.c`
3566_ACEOF
3567rm -f conftest.$ac_objext conftest$ac_exeext
3568if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +00003569 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003570 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +00003571 grep -v '^ *+' conftest.er1 >conftest.err
3572 rm -f conftest.er1
3573 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3575 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +00003576 { ac_try='test -z "$ac_c_werror_flag"
3577 || test ! -s conftest.err'
3578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3579 (eval $ac_try) 2>&5
3580 ac_status=$?
3581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3582 (exit $ac_status); }; } &&
3583 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00003584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3585 (eval $ac_try) 2>&5
3586 ac_status=$?
3587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3588 (exit $ac_status); }; }; then
3589 ac_cv_prog_lex_yytext_pointer=yes
3590else
3591 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003592sed 's/^/| /' conftest.$ac_ext >&5
3593
John Criswell7a73b802003-06-30 21:59:07 +00003594fi
Reid Spencer2b51a082004-08-04 00:34:49 +00003595rm -f conftest.err conftest.$ac_objext \
3596 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003597LIBS=$ac_save_LIBS
3598rm -f "${LEX_OUTPUT_ROOT}.c"
3599
3600fi
3601echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3602echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3603if test $ac_cv_prog_lex_yytext_pointer = yes; then
3604
3605cat >>confdefs.h <<\_ACEOF
3606#define YYTEXT_POINTER 1
3607_ACEOF
3608
3609fi
3610
3611fi
3612
3613fi
3614echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
3615echo "${ECHO_T}$ac_cv_has_flex" >&6
3616if test "$LEX" != "flex"; then
3617 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
3618echo "$as_me: error: flex not found but required" >&2;}
3619 { (exit 1); exit 1; }; }
3620fi
3621
3622echo "$as_me:$LINENO: checking " >&5
3623echo $ECHO_N "checking ... $ECHO_C" >&6
3624if test "${ac_cv_has_bison+set}" = set; then
3625 echo $ECHO_N "(cached) $ECHO_C" >&6
3626else
3627 for ac_prog in 'bison -y' byacc
3628do
3629 # Extract the first word of "$ac_prog", so it can be a program name with args.
3630set dummy $ac_prog; ac_word=$2
3631echo "$as_me:$LINENO: checking for $ac_word" >&5
3632echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3633if test "${ac_cv_prog_YACC+set}" = set; then
3634 echo $ECHO_N "(cached) $ECHO_C" >&6
3635else
3636 if test -n "$YACC"; then
3637 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3638else
3639as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3640for as_dir in $PATH
3641do
3642 IFS=$as_save_IFS
3643 test -z "$as_dir" && as_dir=.
3644 for ac_exec_ext in '' $ac_executable_extensions; do
3645 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3646 ac_cv_prog_YACC="$ac_prog"
3647 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3648 break 2
3649 fi
3650done
3651done
3652
3653fi
3654fi
3655YACC=$ac_cv_prog_YACC
3656if test -n "$YACC"; then
3657 echo "$as_me:$LINENO: result: $YACC" >&5
3658echo "${ECHO_T}$YACC" >&6
3659else
3660 echo "$as_me:$LINENO: result: no" >&5
3661echo "${ECHO_T}no" >&6
3662fi
3663
3664 test -n "$YACC" && break
3665done
3666test -n "$YACC" || YACC="yacc"
3667
3668
3669fi
3670echo "$as_me:$LINENO: result: $ac_cv_has_bison" >&5
3671echo "${ECHO_T}$ac_cv_has_bison" >&6
3672if test "$YACC" != "bison -y"; then
3673 { { echo "$as_me:$LINENO: error: bison not found but required" >&5
3674echo "$as_me: error: bison not found but required" >&2;}
3675 { (exit 1); exit 1; }; }
3676else
Brian Gaeke12810632004-01-13 06:52:10 +00003677 BISON=bison
John Criswell7a73b802003-06-30 21:59:07 +00003678
3679fi
3680
John Criswell7a73b802003-06-30 21:59:07 +00003681# Check whether --enable-shared or --disable-shared was given.
3682if test "${enable_shared+set}" = set; then
3683 enableval="$enable_shared"
3684 p=${PACKAGE-default}
John Criswell47fdd832003-07-14 16:52:07 +00003685 case $enableval in
3686 yes) enable_shared=yes ;;
3687 no) enable_shared=no ;;
3688 *)
3689 enable_shared=no
3690 # Look at the argument we got. We use all the common list separators.
3691 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3692 for pkg in $enableval; do
3693 IFS="$lt_save_ifs"
3694 if test "X$pkg" = "X$p"; then
3695 enable_shared=yes
3696 fi
3697 done
3698 IFS="$lt_save_ifs"
3699 ;;
3700 esac
John Criswell7a73b802003-06-30 21:59:07 +00003701else
3702 enable_shared=yes
3703fi;
John Criswell47fdd832003-07-14 16:52:07 +00003704
John Criswell7a73b802003-06-30 21:59:07 +00003705# Check whether --enable-static or --disable-static was given.
3706if test "${enable_static+set}" = set; then
3707 enableval="$enable_static"
3708 p=${PACKAGE-default}
John Criswell47fdd832003-07-14 16:52:07 +00003709 case $enableval in
3710 yes) enable_static=yes ;;
3711 no) enable_static=no ;;
3712 *)
3713 enable_static=no
3714 # Look at the argument we got. We use all the common list separators.
3715 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3716 for pkg in $enableval; do
3717 IFS="$lt_save_ifs"
3718 if test "X$pkg" = "X$p"; then
3719 enable_static=yes
3720 fi
3721 done
3722 IFS="$lt_save_ifs"
3723 ;;
3724 esac
John Criswell7a73b802003-06-30 21:59:07 +00003725else
3726 enable_static=yes
3727fi;
John Criswell47fdd832003-07-14 16:52:07 +00003728
John Criswell7a73b802003-06-30 21:59:07 +00003729# Check whether --enable-fast-install or --disable-fast-install was given.
3730if test "${enable_fast_install+set}" = set; then
3731 enableval="$enable_fast_install"
3732 p=${PACKAGE-default}
John Criswell47fdd832003-07-14 16:52:07 +00003733 case $enableval in
3734 yes) enable_fast_install=yes ;;
3735 no) enable_fast_install=no ;;
3736 *)
3737 enable_fast_install=no
3738 # Look at the argument we got. We use all the common list separators.
3739 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3740 for pkg in $enableval; do
3741 IFS="$lt_save_ifs"
3742 if test "X$pkg" = "X$p"; then
3743 enable_fast_install=yes
3744 fi
3745 done
3746 IFS="$lt_save_ifs"
3747 ;;
3748 esac
John Criswell7a73b802003-06-30 21:59:07 +00003749else
3750 enable_fast_install=yes
3751fi;
John Criswell47fdd832003-07-14 16:52:07 +00003752
3753echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3754echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3755if test "${lt_cv_path_SED+set}" = set; then
3756 echo $ECHO_N "(cached) $ECHO_C" >&6
3757else
3758 # Loop through the user's path and test for sed and gsed.
3759# Then use that list of sed's as ones to test for truncation.
3760as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3761for as_dir in $PATH
3762do
3763 IFS=$as_save_IFS
3764 test -z "$as_dir" && as_dir=.
3765 for lt_ac_prog in sed gsed; do
3766 for ac_exec_ext in '' $ac_executable_extensions; do
3767 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3768 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3769 fi
3770 done
3771 done
3772done
3773lt_ac_max=0
3774lt_ac_count=0
3775# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3776# along with /bin/sed that truncates output.
3777for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3778 test ! -f $lt_ac_sed && break
3779 cat /dev/null > conftest.in
3780 lt_ac_count=0
3781 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3782 # Check for GNU sed and select it if it is found.
3783 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3784 lt_cv_path_SED=$lt_ac_sed
3785 break
3786 fi
3787 while true; do
3788 cat conftest.in conftest.in >conftest.tmp
3789 mv conftest.tmp conftest.in
3790 cp conftest.in conftest.nl
3791 echo >>conftest.nl
3792 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3793 cmp -s conftest.out conftest.nl || break
3794 # 10000 chars as input seems more than enough
3795 test $lt_ac_count -gt 10 && break
3796 lt_ac_count=`expr $lt_ac_count + 1`
3797 if test $lt_ac_count -gt $lt_ac_max; then
3798 lt_ac_max=$lt_ac_count
3799 lt_cv_path_SED=$lt_ac_sed
3800 fi
3801 done
3802done
3803SED=$lt_cv_path_SED
3804
John Criswell7a73b802003-06-30 21:59:07 +00003805fi
3806
John Criswell47fdd832003-07-14 16:52:07 +00003807echo "$as_me:$LINENO: result: $SED" >&5
3808echo "${ECHO_T}$SED" >&6
3809
3810echo "$as_me:$LINENO: checking for egrep" >&5
3811echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3812if test "${ac_cv_prog_egrep+set}" = set; then
3813 echo $ECHO_N "(cached) $ECHO_C" >&6
3814else
3815 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3816 then ac_cv_prog_egrep='grep -E'
3817 else ac_cv_prog_egrep='egrep'
3818 fi
3819fi
3820echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3821echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3822 EGREP=$ac_cv_prog_egrep
3823
3824
John Criswell7a73b802003-06-30 21:59:07 +00003825
3826# Check whether --with-gnu-ld or --without-gnu-ld was given.
3827if test "${with_gnu_ld+set}" = set; then
3828 withval="$with_gnu_ld"
3829 test "$withval" = no || with_gnu_ld=yes
3830else
3831 with_gnu_ld=no
3832fi;
3833ac_prog=ld
3834if test "$GCC" = yes; then
3835 # Check if gcc -print-prog-name=ld gives a path.
John Criswell47fdd832003-07-14 16:52:07 +00003836 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3837echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00003838 case $host in
3839 *-*-mingw*)
3840 # gcc leaves a trailing carriage return which upsets mingw
3841 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3842 *)
3843 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3844 esac
3845 case $ac_prog in
3846 # Accept absolute paths.
John Criswell47fdd832003-07-14 16:52:07 +00003847 [\\/]* | ?:[\\/]*)
John Criswell7a73b802003-06-30 21:59:07 +00003848 re_direlt='/[^/][^/]*/\.\./'
3849 # Canonicalize the path of ld
John Criswell47fdd832003-07-14 16:52:07 +00003850 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
John Criswell7a73b802003-06-30 21:59:07 +00003851 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
John Criswell47fdd832003-07-14 16:52:07 +00003852 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
John Criswell7a73b802003-06-30 21:59:07 +00003853 done
3854 test -z "$LD" && LD="$ac_prog"
3855 ;;
3856 "")
3857 # If it fails, then pretend we aren't using GCC.
3858 ac_prog=ld
3859 ;;
3860 *)
3861 # If it is relative, then search for the first ld in PATH.
3862 with_gnu_ld=unknown
3863 ;;
3864 esac
3865elif test "$with_gnu_ld" = yes; then
3866 echo "$as_me:$LINENO: checking for GNU ld" >&5
3867echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3868else
3869 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3870echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3871fi
3872if test "${lt_cv_path_LD+set}" = set; then
3873 echo $ECHO_N "(cached) $ECHO_C" >&6
3874else
3875 if test -z "$LD"; then
John Criswell47fdd832003-07-14 16:52:07 +00003876 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +00003877 for ac_dir in $PATH; do
John Criswell47fdd832003-07-14 16:52:07 +00003878 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00003879 test -z "$ac_dir" && ac_dir=.
3880 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3881 lt_cv_path_LD="$ac_dir/$ac_prog"
3882 # Check to see if the program is GNU ld. I'd rather use --version,
3883 # but apparently some GNU ld's only accept -v.
3884 # Break only if it was the GNU/non-GNU ld that we prefer.
John Criswell47fdd832003-07-14 16:52:07 +00003885 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3886 *GNU* | *'with BFD'*)
John Criswell7a73b802003-06-30 21:59:07 +00003887 test "$with_gnu_ld" != no && break
John Criswell47fdd832003-07-14 16:52:07 +00003888 ;;
3889 *)
John Criswell7a73b802003-06-30 21:59:07 +00003890 test "$with_gnu_ld" != yes && break
John Criswell47fdd832003-07-14 16:52:07 +00003891 ;;
3892 esac
John Criswell7a73b802003-06-30 21:59:07 +00003893 fi
3894 done
John Criswell47fdd832003-07-14 16:52:07 +00003895 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00003896else
3897 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3898fi
3899fi
3900
3901LD="$lt_cv_path_LD"
3902if test -n "$LD"; then
3903 echo "$as_me:$LINENO: result: $LD" >&5
3904echo "${ECHO_T}$LD" >&6
3905else
3906 echo "$as_me:$LINENO: result: no" >&5
3907echo "${ECHO_T}no" >&6
3908fi
3909test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3910echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3911 { (exit 1); exit 1; }; }
3912echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3913echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3914if test "${lt_cv_prog_gnu_ld+set}" = set; then
3915 echo $ECHO_N "(cached) $ECHO_C" >&6
3916else
3917 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
John Criswell47fdd832003-07-14 16:52:07 +00003918case `"$LD" -v 2>&1 </dev/null` in
3919*GNU* | *'with BFD'*)
John Criswell7a73b802003-06-30 21:59:07 +00003920 lt_cv_prog_gnu_ld=yes
John Criswell47fdd832003-07-14 16:52:07 +00003921 ;;
3922*)
John Criswell7a73b802003-06-30 21:59:07 +00003923 lt_cv_prog_gnu_ld=no
John Criswell47fdd832003-07-14 16:52:07 +00003924 ;;
3925esac
John Criswell7a73b802003-06-30 21:59:07 +00003926fi
3927echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3928echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3929with_gnu_ld=$lt_cv_prog_gnu_ld
3930
3931
3932echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3933echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3934if test "${lt_cv_ld_reload_flag+set}" = set; then
3935 echo $ECHO_N "(cached) $ECHO_C" >&6
3936else
3937 lt_cv_ld_reload_flag='-r'
3938fi
3939echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3940echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3941reload_flag=$lt_cv_ld_reload_flag
John Criswell47fdd832003-07-14 16:52:07 +00003942case $reload_flag in
3943"" | " "*) ;;
3944*) reload_flag=" $reload_flag" ;;
3945esac
3946reload_cmds='$LD$reload_flag -o $output$reload_objs'
John Criswell7a73b802003-06-30 21:59:07 +00003947
3948echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3949echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3950if test "${lt_cv_path_NM+set}" = set; then
3951 echo $ECHO_N "(cached) $ECHO_C" >&6
3952else
3953 if test -n "$NM"; then
3954 # Let the user override the test.
3955 lt_cv_path_NM="$NM"
3956else
John Criswell47fdd832003-07-14 16:52:07 +00003957 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +00003958 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
John Criswell47fdd832003-07-14 16:52:07 +00003959 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00003960 test -z "$ac_dir" && ac_dir=.
John Criswell47fdd832003-07-14 16:52:07 +00003961 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3962 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
John Criswell7a73b802003-06-30 21:59:07 +00003963 # Check to see if the nm accepts a BSD-compat flag.
3964 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3965 # nm: unknown option "B" ignored
3966 # Tru64's nm complains that /dev/null is an invalid object file
John Criswell47fdd832003-07-14 16:52:07 +00003967 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3968 */dev/null* | *'Invalid file or object type'*)
John Criswell7a73b802003-06-30 21:59:07 +00003969 lt_cv_path_NM="$tmp_nm -B"
3970 break
John Criswell47fdd832003-07-14 16:52:07 +00003971 ;;
3972 *)
3973 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3974 */dev/null*)
3975 lt_cv_path_NM="$tmp_nm -p"
3976 break
3977 ;;
3978 *)
3979 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3980 continue # so that we can try to find one that supports BSD flags
3981 ;;
3982 esac
3983 esac
John Criswell7a73b802003-06-30 21:59:07 +00003984 fi
3985 done
John Criswell47fdd832003-07-14 16:52:07 +00003986 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00003987 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3988fi
3989fi
John Criswell47fdd832003-07-14 16:52:07 +00003990echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3991echo "${ECHO_T}$lt_cv_path_NM" >&6
John Criswell7a73b802003-06-30 21:59:07 +00003992NM="$lt_cv_path_NM"
John Criswell7a73b802003-06-30 21:59:07 +00003993
3994echo "$as_me:$LINENO: checking whether ln -s works" >&5
3995echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3996LN_S=$as_ln_s
3997if test "$LN_S" = "ln -s"; then
3998 echo "$as_me:$LINENO: result: yes" >&5
3999echo "${ECHO_T}yes" >&6
4000else
4001 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4002echo "${ECHO_T}no, using $LN_S" >&6
4003fi
4004
John Criswell47fdd832003-07-14 16:52:07 +00004005echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4006echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00004007if test "${lt_cv_deplibs_check_method+set}" = set; then
4008 echo $ECHO_N "(cached) $ECHO_C" >&6
4009else
4010 lt_cv_file_magic_cmd='$MAGIC_CMD'
4011lt_cv_file_magic_test_file=
4012lt_cv_deplibs_check_method='unknown'
4013# Need to set the preceding variable on all platforms that support
4014# interlibrary dependencies.
4015# 'none' -- dependencies not supported.
4016# `unknown' -- same as none, but documents that we really don't know.
4017# 'pass_all' -- all dependencies passed with no checks.
4018# 'test_compile' -- check by making test program.
4019# 'file_magic [[regex]]' -- check by looking for files in library path
John Criswell47fdd832003-07-14 16:52:07 +00004020# which responds to the $file_magic_cmd with a given extended regex.
John Criswell7a73b802003-06-30 21:59:07 +00004021# If you have `file' or equivalent on your system and you're not sure
4022# whether `pass_all' will *always* work, you probably want this one.
4023
4024case $host_os in
4025aix4* | aix5*)
4026 lt_cv_deplibs_check_method=pass_all
4027 ;;
4028
4029beos*)
4030 lt_cv_deplibs_check_method=pass_all
4031 ;;
4032
4033bsdi4*)
4034 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4035 lt_cv_file_magic_cmd='/usr/bin/file -L'
4036 lt_cv_file_magic_test_file=/shlib/libc.so
4037 ;;
4038
4039cygwin* | mingw* | pw32*)
John Criswell47fdd832003-07-14 16:52:07 +00004040 # win32_libid is a shell function defined in ltmain.sh
4041 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4042 lt_cv_file_magic_cmd='win32_libid'
John Criswell7a73b802003-06-30 21:59:07 +00004043 ;;
4044
4045darwin* | rhapsody*)
John Criswell47fdd832003-07-14 16:52:07 +00004046 # this will be overwritten by pass_all, but leave it in just in case
John Criswell7a73b802003-06-30 21:59:07 +00004047 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
4048 lt_cv_file_magic_cmd='/usr/bin/file -L'
4049 case "$host_os" in
4050 rhapsody* | darwin1.[012])
John Criswell47fdd832003-07-14 16:52:07 +00004051 lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
John Criswell7a73b802003-06-30 21:59:07 +00004052 ;;
4053 *) # Darwin 1.3 on
4054 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
4055 ;;
4056 esac
John Criswell47fdd832003-07-14 16:52:07 +00004057 lt_cv_deplibs_check_method=pass_all
John Criswell7a73b802003-06-30 21:59:07 +00004058 ;;
4059
4060freebsd*)
4061 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4062 case $host_cpu in
4063 i*86 )
4064 # Not sure whether the presence of OpenBSD here was a mistake.
4065 # Let's accept both of them until this is cleared up.
4066 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4067 lt_cv_file_magic_cmd=/usr/bin/file
4068 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4069 ;;
4070 esac
4071 else
4072 lt_cv_deplibs_check_method=pass_all
4073 fi
4074 ;;
4075
4076gnu*)
4077 lt_cv_deplibs_check_method=pass_all
4078 ;;
4079
John Criswell47fdd832003-07-14 16:52:07 +00004080hpux10.20* | hpux11*)
John Criswell7a73b802003-06-30 21:59:07 +00004081 lt_cv_file_magic_cmd=/usr/bin/file
John Criswell47fdd832003-07-14 16:52:07 +00004082 case "$host_cpu" in
4083 ia64*)
4084 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4085 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4086 ;;
4087 hppa*64*)
4088 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]'
4089 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4090 ;;
4091 *)
4092 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4093 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4094 ;;
4095 esac
John Criswell7a73b802003-06-30 21:59:07 +00004096 ;;
4097
John Criswell47fdd832003-07-14 16:52:07 +00004098irix5* | irix6* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +00004099 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00004100 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +00004101 # this will be overridden with pass_all, but let us keep it just in case
4102 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4103 ;;
4104 *)
4105 case $LD in
4106 *-32|*"-32 ") libmagic=32-bit;;
4107 *-n32|*"-n32 ") libmagic=N32;;
4108 *-64|*"-64 ") libmagic=64-bit;;
4109 *) libmagic=never-match;;
4110 esac
4111 # this will be overridden with pass_all, but let us keep it just in case
4112 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4113 ;;
4114 esac
4115 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4116 lt_cv_deplibs_check_method=pass_all
4117 ;;
4118
4119# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +00004120linux*)
John Criswell7a73b802003-06-30 21:59:07 +00004121 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +00004122 alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*)
John Criswell7a73b802003-06-30 21:59:07 +00004123 lt_cv_deplibs_check_method=pass_all ;;
4124 *)
4125 # glibc up to 2.1.1 does not perform some relocations on ARM
4126 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4127 esac
4128 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4129 ;;
4130
4131netbsd*)
4132 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +00004133 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
John Criswell7a73b802003-06-30 21:59:07 +00004134 else
John Criswell47fdd832003-07-14 16:52:07 +00004135 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
John Criswell7a73b802003-06-30 21:59:07 +00004136 fi
4137 ;;
4138
4139newos6*)
4140 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4141 lt_cv_file_magic_cmd=/usr/bin/file
4142 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4143 ;;
4144
John Criswell47fdd832003-07-14 16:52:07 +00004145nto-qnx)
4146 lt_cv_deplibs_check_method=unknown
4147 ;;
4148
John Criswell7a73b802003-06-30 21:59:07 +00004149openbsd*)
4150 lt_cv_file_magic_cmd=/usr/bin/file
4151 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4152 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4153 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4154 else
4155 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4156 fi
4157 ;;
4158
4159osf3* | osf4* | osf5*)
4160 # this will be overridden with pass_all, but let us keep it just in case
4161 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4162 lt_cv_file_magic_test_file=/shlib/libc.so
4163 lt_cv_deplibs_check_method=pass_all
4164 ;;
4165
4166sco3.2v5*)
4167 lt_cv_deplibs_check_method=pass_all
4168 ;;
4169
4170solaris*)
4171 lt_cv_deplibs_check_method=pass_all
4172 lt_cv_file_magic_test_file=/lib/libc.so
4173 ;;
4174
John Criswell7a73b802003-06-30 21:59:07 +00004175sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4176 case $host_vendor in
4177 motorola)
4178 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]'
4179 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4180 ;;
4181 ncr)
4182 lt_cv_deplibs_check_method=pass_all
4183 ;;
4184 sequent)
4185 lt_cv_file_magic_cmd='/bin/file'
4186 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4187 ;;
4188 sni)
4189 lt_cv_file_magic_cmd='/bin/file'
4190 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4191 lt_cv_file_magic_test_file=/lib/libc.so
4192 ;;
John Criswell47fdd832003-07-14 16:52:07 +00004193 siemens)
4194 lt_cv_deplibs_check_method=pass_all
4195 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004196 esac
4197 ;;
John Criswell47fdd832003-07-14 16:52:07 +00004198
4199sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4200 lt_cv_deplibs_check_method=pass_all
4201 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004202esac
4203
4204fi
4205echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4206echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4207file_magic_cmd=$lt_cv_file_magic_cmd
4208deplibs_check_method=$lt_cv_deplibs_check_method
John Criswell47fdd832003-07-14 16:52:07 +00004209test -z "$deplibs_check_method" && deplibs_check_method=unknown
John Criswell7a73b802003-06-30 21:59:07 +00004210
4211
4212
4213
John Criswell47fdd832003-07-14 16:52:07 +00004214# If no C compiler was specified, use CC.
4215LTCC=${LTCC-"$CC"}
John Criswell7a73b802003-06-30 21:59:07 +00004216
John Criswell47fdd832003-07-14 16:52:07 +00004217# Allow CC to be a program name with arguments.
4218compiler=$CC
John Criswell7a73b802003-06-30 21:59:07 +00004219
John Criswell47fdd832003-07-14 16:52:07 +00004220# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4221if test "${enable_libtool_lock+set}" = set; then
4222 enableval="$enable_libtool_lock"
John Criswell7a73b802003-06-30 21:59:07 +00004223
John Criswell47fdd832003-07-14 16:52:07 +00004224fi;
4225test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
John Criswell7a73b802003-06-30 21:59:07 +00004226
John Criswell47fdd832003-07-14 16:52:07 +00004227# Some flags need to be propagated to the compiler or linker for good
4228# libtool support.
4229case $host in
4230ia64-*-hpux*)
4231 # Find out which ABI we are using.
4232 echo 'int i;' > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004233 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4234 (eval $ac_compile) 2>&5
4235 ac_status=$?
4236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4237 (exit $ac_status); }; then
John Criswell47fdd832003-07-14 16:52:07 +00004238 case `/usr/bin/file conftest.$ac_objext` in
4239 *ELF-32*)
4240 HPUX_IA64_MODE="32"
4241 ;;
4242 *ELF-64*)
4243 HPUX_IA64_MODE="64"
4244 ;;
4245 esac
4246 fi
4247 rm -rf conftest*
4248 ;;
4249*-*-irix6*)
4250 # Find out which ABI we are using.
Reid Spencer886e9512004-08-31 01:34:10 +00004251 echo '#line 4251 "configure"' > conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +00004252 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4253 (eval $ac_compile) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00004254 ac_status=$?
4255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00004256 (exit $ac_status); }; then
4257 if test "$lt_cv_prog_gnu_ld" = yes; then
4258 case `/usr/bin/file conftest.$ac_objext` in
4259 *32-bit*)
4260 LD="${LD-ld} -melf32bsmip"
4261 ;;
4262 *N32*)
4263 LD="${LD-ld} -melf32bmipn32"
4264 ;;
4265 *64-bit*)
4266 LD="${LD-ld} -melf64bmip"
4267 ;;
4268 esac
4269 else
4270 case `/usr/bin/file conftest.$ac_objext` in
4271 *32-bit*)
4272 LD="${LD-ld} -32"
4273 ;;
4274 *N32*)
4275 LD="${LD-ld} -n32"
4276 ;;
4277 *64-bit*)
4278 LD="${LD-ld} -64"
4279 ;;
4280 esac
4281 fi
4282 fi
4283 rm -rf conftest*
4284 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004285
John Criswell47fdd832003-07-14 16:52:07 +00004286x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4287 # Find out which ABI we are using.
4288 echo 'int i;' > conftest.$ac_ext
4289 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4290 (eval $ac_compile) 2>&5
4291 ac_status=$?
4292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4293 (exit $ac_status); }; then
4294 case "`/usr/bin/file conftest.o`" in
4295 *32-bit*)
4296 case $host in
4297 x86_64-*linux*)
4298 LD="${LD-ld} -m elf_i386"
4299 ;;
4300 ppc64-*linux*)
4301 LD="${LD-ld} -m elf32ppclinux"
4302 ;;
4303 s390x-*linux*)
4304 LD="${LD-ld} -m elf_s390"
4305 ;;
4306 sparc64-*linux*)
4307 LD="${LD-ld} -m elf32_sparc"
4308 ;;
4309 esac
4310 ;;
4311 *64-bit*)
4312 case $host in
4313 x86_64-*linux*)
4314 LD="${LD-ld} -m elf_x86_64"
4315 ;;
4316 ppc*-*linux*|powerpc*-*linux*)
4317 LD="${LD-ld} -m elf64ppc"
4318 ;;
4319 s390*-*linux*)
4320 LD="${LD-ld} -m elf64_s390"
4321 ;;
4322 sparc*-*linux*)
4323 LD="${LD-ld} -m elf64_sparc"
4324 ;;
4325 esac
4326 ;;
4327 esac
4328 fi
4329 rm -rf conftest*
4330 ;;
4331
4332*-*-sco3.2v5*)
4333 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4334 SAVE_CFLAGS="$CFLAGS"
4335 CFLAGS="$CFLAGS -belf"
4336 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4337echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4338if test "${lt_cv_cc_needs_belf+set}" = set; then
4339 echo $ECHO_N "(cached) $ECHO_C" >&6
4340else
4341 ac_ext=c
4342ac_cpp='$CPP $CPPFLAGS'
4343ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4344ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4345ac_compiler_gnu=$ac_cv_c_compiler_gnu
4346
4347 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004348/* confdefs.h. */
4349_ACEOF
4350cat confdefs.h >>conftest.$ac_ext
4351cat >>conftest.$ac_ext <<_ACEOF
4352/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00004353
John Criswell47fdd832003-07-14 16:52:07 +00004354int
4355main ()
John Criswell7a73b802003-06-30 21:59:07 +00004356{
John Criswell7a73b802003-06-30 21:59:07 +00004357
John Criswell47fdd832003-07-14 16:52:07 +00004358 ;
4359 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00004360}
John Criswell47fdd832003-07-14 16:52:07 +00004361_ACEOF
4362rm -f conftest.$ac_objext conftest$ac_exeext
4363if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +00004364 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004365 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +00004366 grep -v '^ *+' conftest.er1 >conftest.err
4367 rm -f conftest.er1
4368 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00004369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00004370 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +00004371 { ac_try='test -z "$ac_c_werror_flag"
4372 || test ! -s conftest.err'
4373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4374 (eval $ac_try) 2>&5
4375 ac_status=$?
4376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4377 (exit $ac_status); }; } &&
4378 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +00004379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4380 (eval $ac_try) 2>&5
4381 ac_status=$?
4382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4383 (exit $ac_status); }; }; then
4384 lt_cv_cc_needs_belf=yes
John Criswell7a73b802003-06-30 21:59:07 +00004385else
John Criswell47fdd832003-07-14 16:52:07 +00004386 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004387sed 's/^/| /' conftest.$ac_ext >&5
4388
John Criswell47fdd832003-07-14 16:52:07 +00004389lt_cv_cc_needs_belf=no
John Criswell7a73b802003-06-30 21:59:07 +00004390fi
Reid Spencer2b51a082004-08-04 00:34:49 +00004391rm -f conftest.err conftest.$ac_objext \
4392 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +00004393 ac_ext=c
4394ac_cpp='$CPP $CPPFLAGS'
4395ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4396ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4397ac_compiler_gnu=$ac_cv_c_compiler_gnu
4398
John Criswell7a73b802003-06-30 21:59:07 +00004399fi
John Criswell47fdd832003-07-14 16:52:07 +00004400echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4401echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4402 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4403 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4404 CFLAGS="$SAVE_CFLAGS"
4405 fi
4406 ;;
4407
4408esac
4409
4410need_locks="$enable_libtool_lock"
4411
John Criswell7a73b802003-06-30 21:59:07 +00004412
4413
4414echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4415echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4416if test "${ac_cv_header_stdc+set}" = set; then
4417 echo $ECHO_N "(cached) $ECHO_C" >&6
4418else
4419 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004420/* confdefs.h. */
4421_ACEOF
4422cat confdefs.h >>conftest.$ac_ext
4423cat >>conftest.$ac_ext <<_ACEOF
4424/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004425#include <stdlib.h>
4426#include <stdarg.h>
4427#include <string.h>
4428#include <float.h>
4429
John Criswell0c38eaf2003-09-10 15:17:25 +00004430int
4431main ()
4432{
4433
4434 ;
4435 return 0;
4436}
John Criswell7a73b802003-06-30 21:59:07 +00004437_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004438rm -f conftest.$ac_objext
4439if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +00004440 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004441 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +00004442 grep -v '^ *+' conftest.er1 >conftest.err
4443 rm -f conftest.er1
4444 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00004445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004446 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +00004447 { ac_try='test -z "$ac_c_werror_flag"
4448 || test ! -s conftest.err'
4449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4450 (eval $ac_try) 2>&5
4451 ac_status=$?
4452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4453 (exit $ac_status); }; } &&
4454 { ac_try='test -s conftest.$ac_objext'
John Criswell0c38eaf2003-09-10 15:17:25 +00004455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4456 (eval $ac_try) 2>&5
4457 ac_status=$?
4458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4459 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00004460 ac_cv_header_stdc=yes
4461else
4462 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004463sed 's/^/| /' conftest.$ac_ext >&5
4464
4465ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00004466fi
Reid Spencer2b51a082004-08-04 00:34:49 +00004467rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004468
4469if test $ac_cv_header_stdc = yes; then
4470 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4471 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004472/* confdefs.h. */
4473_ACEOF
4474cat confdefs.h >>conftest.$ac_ext
4475cat >>conftest.$ac_ext <<_ACEOF
4476/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004477#include <string.h>
4478
4479_ACEOF
4480if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00004481 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00004482 :
4483else
4484 ac_cv_header_stdc=no
4485fi
4486rm -f conftest*
4487
4488fi
4489
4490if test $ac_cv_header_stdc = yes; then
4491 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4492 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004493/* confdefs.h. */
4494_ACEOF
4495cat confdefs.h >>conftest.$ac_ext
4496cat >>conftest.$ac_ext <<_ACEOF
4497/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004498#include <stdlib.h>
4499
4500_ACEOF
4501if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00004502 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00004503 :
4504else
4505 ac_cv_header_stdc=no
4506fi
4507rm -f conftest*
4508
4509fi
4510
4511if test $ac_cv_header_stdc = yes; then
4512 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4513 if test "$cross_compiling" = yes; then
4514 :
4515else
4516 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004517/* confdefs.h. */
4518_ACEOF
4519cat confdefs.h >>conftest.$ac_ext
4520cat >>conftest.$ac_ext <<_ACEOF
4521/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004522#include <ctype.h>
4523#if ((' ' & 0x0FF) == 0x020)
4524# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4525# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4526#else
John Criswell0c38eaf2003-09-10 15:17:25 +00004527# define ISLOWER(c) \
Reid Spencer2b51a082004-08-04 00:34:49 +00004528 (('a' <= (c) && (c) <= 'i') \
4529 || ('j' <= (c) && (c) <= 'r') \
4530 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00004531# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4532#endif
4533
4534#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4535int
4536main ()
4537{
4538 int i;
4539 for (i = 0; i < 256; i++)
4540 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2b51a082004-08-04 00:34:49 +00004541 || toupper (i) != TOUPPER (i))
John Criswell7a73b802003-06-30 21:59:07 +00004542 exit(2);
4543 exit (0);
4544}
4545_ACEOF
4546rm -f conftest$ac_exeext
4547if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4548 (eval $ac_link) 2>&5
4549 ac_status=$?
4550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4551 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4553 (eval $ac_try) 2>&5
4554 ac_status=$?
4555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4556 (exit $ac_status); }; }; then
4557 :
4558else
4559 echo "$as_me: program exited with status $ac_status" >&5
4560echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004561sed 's/^/| /' conftest.$ac_ext >&5
4562
John Criswell7a73b802003-06-30 21:59:07 +00004563( exit $ac_status )
4564ac_cv_header_stdc=no
4565fi
Reid Spencer2b51a082004-08-04 00:34:49 +00004566rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004567fi
4568fi
4569fi
4570echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4571echo "${ECHO_T}$ac_cv_header_stdc" >&6
4572if test $ac_cv_header_stdc = yes; then
4573
4574cat >>confdefs.h <<\_ACEOF
4575#define STDC_HEADERS 1
4576_ACEOF
4577
4578fi
4579
4580# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4581
4582
4583
4584
4585
4586
4587
4588
4589
4590for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
Reid Spencer2b51a082004-08-04 00:34:49 +00004591 inttypes.h stdint.h unistd.h
John Criswell7a73b802003-06-30 21:59:07 +00004592do
4593as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4594echo "$as_me:$LINENO: checking for $ac_header" >&5
4595echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4596if eval "test \"\${$as_ac_Header+set}\" = set"; then
4597 echo $ECHO_N "(cached) $ECHO_C" >&6
4598else
4599 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004600/* confdefs.h. */
4601_ACEOF
4602cat confdefs.h >>conftest.$ac_ext
4603cat >>conftest.$ac_ext <<_ACEOF
4604/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004605$ac_includes_default
4606
4607#include <$ac_header>
4608_ACEOF
4609rm -f conftest.$ac_objext
4610if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +00004611 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004612 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +00004613 grep -v '^ *+' conftest.er1 >conftest.err
4614 rm -f conftest.er1
4615 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00004616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4617 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +00004618 { ac_try='test -z "$ac_c_werror_flag"
4619 || test ! -s conftest.err'
4620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4621 (eval $ac_try) 2>&5
4622 ac_status=$?
4623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4624 (exit $ac_status); }; } &&
4625 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00004626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4627 (eval $ac_try) 2>&5
4628 ac_status=$?
4629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4630 (exit $ac_status); }; }; then
4631 eval "$as_ac_Header=yes"
4632else
4633 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004634sed 's/^/| /' conftest.$ac_ext >&5
4635
John Criswell7a73b802003-06-30 21:59:07 +00004636eval "$as_ac_Header=no"
4637fi
Reid Spencer2b51a082004-08-04 00:34:49 +00004638rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004639fi
4640echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4641echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4642if test `eval echo '${'$as_ac_Header'}'` = yes; then
4643 cat >>confdefs.h <<_ACEOF
4644#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4645_ACEOF
4646
4647fi
4648
4649done
4650
4651
4652
4653for ac_header in dlfcn.h
4654do
4655as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4656if eval "test \"\${$as_ac_Header+set}\" = set"; then
4657 echo "$as_me:$LINENO: checking for $ac_header" >&5
4658echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4659if eval "test \"\${$as_ac_Header+set}\" = set"; then
4660 echo $ECHO_N "(cached) $ECHO_C" >&6
4661fi
4662echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4663echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4664else
4665 # Is the header compilable?
4666echo "$as_me:$LINENO: checking $ac_header usability" >&5
4667echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4668cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004669/* confdefs.h. */
4670_ACEOF
4671cat confdefs.h >>conftest.$ac_ext
4672cat >>conftest.$ac_ext <<_ACEOF
4673/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004674$ac_includes_default
4675#include <$ac_header>
4676_ACEOF
4677rm -f conftest.$ac_objext
4678if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +00004679 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004680 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +00004681 grep -v '^ *+' conftest.er1 >conftest.err
4682 rm -f conftest.er1
4683 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00004684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4685 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +00004686 { ac_try='test -z "$ac_c_werror_flag"
4687 || test ! -s conftest.err'
4688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4689 (eval $ac_try) 2>&5
4690 ac_status=$?
4691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4692 (exit $ac_status); }; } &&
4693 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00004694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4695 (eval $ac_try) 2>&5
4696 ac_status=$?
4697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4698 (exit $ac_status); }; }; then
4699 ac_header_compiler=yes
4700else
4701 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004702sed 's/^/| /' conftest.$ac_ext >&5
4703
John Criswell7a73b802003-06-30 21:59:07 +00004704ac_header_compiler=no
4705fi
Reid Spencer2b51a082004-08-04 00:34:49 +00004706rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004707echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4708echo "${ECHO_T}$ac_header_compiler" >&6
4709
4710# Is the header present?
4711echo "$as_me:$LINENO: checking $ac_header presence" >&5
4712echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4713cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004714/* confdefs.h. */
4715_ACEOF
4716cat confdefs.h >>conftest.$ac_ext
4717cat >>conftest.$ac_ext <<_ACEOF
4718/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004719#include <$ac_header>
4720_ACEOF
4721if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4722 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4723 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004724 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00004725 rm -f conftest.er1
4726 cat conftest.err >&5
4727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4728 (exit $ac_status); } >/dev/null; then
4729 if test -s conftest.err; then
4730 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2b51a082004-08-04 00:34:49 +00004731 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +00004732 else
4733 ac_cpp_err=
4734 fi
4735else
4736 ac_cpp_err=yes
4737fi
4738if test -z "$ac_cpp_err"; then
4739 ac_header_preproc=yes
4740else
4741 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004742sed 's/^/| /' conftest.$ac_ext >&5
4743
John Criswell7a73b802003-06-30 21:59:07 +00004744 ac_header_preproc=no
4745fi
4746rm -f conftest.err conftest.$ac_ext
4747echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4748echo "${ECHO_T}$ac_header_preproc" >&6
4749
4750# So? What about this header?
Reid Spencer2b51a082004-08-04 00:34:49 +00004751case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4752 yes:no: )
John Criswell7a73b802003-06-30 21:59:07 +00004753 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4754echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2b51a082004-08-04 00:34:49 +00004755 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4756echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4757 ac_header_preproc=yes
John Criswell0c38eaf2003-09-10 15:17:25 +00004758 ;;
Reid Spencer2b51a082004-08-04 00:34:49 +00004759 no:yes:* )
John Criswell7a73b802003-06-30 21:59:07 +00004760 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4761echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2b51a082004-08-04 00:34:49 +00004762 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4763echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4764 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4765echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4766 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4767echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00004768 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004769echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2b51a082004-08-04 00:34:49 +00004770 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4771echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
John Criswell0c38eaf2003-09-10 15:17:25 +00004772 (
4773 cat <<\_ASBOX
Reid Spencer2b51a082004-08-04 00:34:49 +00004774## ----------------------------------- ##
4775## Report this to llvmbugs@cs.uiuc.edu ##
4776## ----------------------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +00004777_ASBOX
4778 ) |
4779 sed "s/^/$as_me: WARNING: /" >&2
4780 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004781esac
4782echo "$as_me:$LINENO: checking for $ac_header" >&5
4783echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4784if eval "test \"\${$as_ac_Header+set}\" = set"; then
4785 echo $ECHO_N "(cached) $ECHO_C" >&6
4786else
Reid Spencer2b51a082004-08-04 00:34:49 +00004787 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +00004788fi
4789echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4790echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4791
4792fi
4793if test `eval echo '${'$as_ac_Header'}'` = yes; then
4794 cat >>confdefs.h <<_ACEOF
4795#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4796_ACEOF
4797
4798fi
4799
4800done
4801
John Criswell47fdd832003-07-14 16:52:07 +00004802ac_ext=cc
4803ac_cpp='$CXXCPP $CPPFLAGS'
4804ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4805ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4806ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4807echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4808echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4809if test -z "$CXXCPP"; then
4810 if test "${ac_cv_prog_CXXCPP+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00004811 echo $ECHO_N "(cached) $ECHO_C" >&6
4812else
John Criswell47fdd832003-07-14 16:52:07 +00004813 # Double quotes because CXXCPP needs to be expanded
4814 for CXXCPP in "$CXX -E" "/lib/cpp"
4815 do
4816 ac_preproc_ok=false
4817for ac_cxx_preproc_warn_flag in '' yes
4818do
4819 # Use a header file that comes with gcc, so configuring glibc
4820 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00004821 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4822 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +00004823 # On the NeXT, cc -E runs the code through the compiler's parser,
4824 # not just through cpp. "Syntax error" is here to catch this case.
4825 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004826/* confdefs.h. */
4827_ACEOF
4828cat confdefs.h >>conftest.$ac_ext
4829cat >>conftest.$ac_ext <<_ACEOF
4830/* end confdefs.h. */
4831#ifdef __STDC__
4832# include <limits.h>
4833#else
4834# include <assert.h>
4835#endif
Reid Spencer2b51a082004-08-04 00:34:49 +00004836 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +00004837_ACEOF
4838if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4839 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4840 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004841 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00004842 rm -f conftest.er1
4843 cat conftest.err >&5
4844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4845 (exit $ac_status); } >/dev/null; then
4846 if test -s conftest.err; then
4847 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2b51a082004-08-04 00:34:49 +00004848 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +00004849 else
John Criswell47fdd832003-07-14 16:52:07 +00004850 ac_cpp_err=
John Criswell7a73b802003-06-30 21:59:07 +00004851 fi
John Criswell47fdd832003-07-14 16:52:07 +00004852else
4853 ac_cpp_err=yes
4854fi
4855if test -z "$ac_cpp_err"; then
4856 :
4857else
4858 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004859sed 's/^/| /' conftest.$ac_ext >&5
4860
John Criswell47fdd832003-07-14 16:52:07 +00004861 # Broken: fails on valid input.
4862continue
4863fi
4864rm -f conftest.err conftest.$ac_ext
4865
4866 # OK, works on sane cases. Now check whether non-existent headers
4867 # can be detected and how.
4868 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004869/* confdefs.h. */
4870_ACEOF
4871cat confdefs.h >>conftest.$ac_ext
4872cat >>conftest.$ac_ext <<_ACEOF
4873/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00004874#include <ac_nonexistent.h>
4875_ACEOF
4876if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4877 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4878 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004879 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00004880 rm -f conftest.er1
4881 cat conftest.err >&5
4882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4883 (exit $ac_status); } >/dev/null; then
4884 if test -s conftest.err; then
4885 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2b51a082004-08-04 00:34:49 +00004886 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +00004887 else
4888 ac_cpp_err=
4889 fi
4890else
4891 ac_cpp_err=yes
4892fi
4893if test -z "$ac_cpp_err"; then
4894 # Broken: success on invalid input.
4895continue
4896else
4897 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004898sed 's/^/| /' conftest.$ac_ext >&5
4899
John Criswell47fdd832003-07-14 16:52:07 +00004900 # Passes both tests.
4901ac_preproc_ok=:
4902break
4903fi
4904rm -f conftest.err conftest.$ac_ext
4905
4906done
4907# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4908rm -f conftest.err conftest.$ac_ext
4909if $ac_preproc_ok; then
4910 break
John Criswell7a73b802003-06-30 21:59:07 +00004911fi
4912
John Criswell47fdd832003-07-14 16:52:07 +00004913 done
4914 ac_cv_prog_CXXCPP=$CXXCPP
4915
4916fi
4917 CXXCPP=$ac_cv_prog_CXXCPP
4918else
4919 ac_cv_prog_CXXCPP=$CXXCPP
4920fi
4921echo "$as_me:$LINENO: result: $CXXCPP" >&5
4922echo "${ECHO_T}$CXXCPP" >&6
4923ac_preproc_ok=false
4924for ac_cxx_preproc_warn_flag in '' yes
4925do
4926 # Use a header file that comes with gcc, so configuring glibc
4927 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00004928 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4929 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +00004930 # On the NeXT, cc -E runs the code through the compiler's parser,
4931 # not just through cpp. "Syntax error" is here to catch this case.
4932 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004933/* confdefs.h. */
4934_ACEOF
4935cat confdefs.h >>conftest.$ac_ext
4936cat >>conftest.$ac_ext <<_ACEOF
4937/* end confdefs.h. */
4938#ifdef __STDC__
4939# include <limits.h>
4940#else
4941# include <assert.h>
4942#endif
Reid Spencer2b51a082004-08-04 00:34:49 +00004943 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +00004944_ACEOF
4945if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4946 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4947 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004948 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00004949 rm -f conftest.er1
4950 cat conftest.err >&5
4951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4952 (exit $ac_status); } >/dev/null; then
4953 if test -s conftest.err; then
4954 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2b51a082004-08-04 00:34:49 +00004955 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +00004956 else
4957 ac_cpp_err=
4958 fi
4959else
4960 ac_cpp_err=yes
4961fi
4962if test -z "$ac_cpp_err"; then
4963 :
4964else
4965 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004966sed 's/^/| /' conftest.$ac_ext >&5
4967
John Criswell47fdd832003-07-14 16:52:07 +00004968 # Broken: fails on valid input.
4969continue
4970fi
4971rm -f conftest.err conftest.$ac_ext
4972
4973 # OK, works on sane cases. Now check whether non-existent headers
4974 # can be detected and how.
4975 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004976/* confdefs.h. */
4977_ACEOF
4978cat confdefs.h >>conftest.$ac_ext
4979cat >>conftest.$ac_ext <<_ACEOF
4980/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00004981#include <ac_nonexistent.h>
4982_ACEOF
4983if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4984 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4985 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004986 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00004987 rm -f conftest.er1
4988 cat conftest.err >&5
4989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4990 (exit $ac_status); } >/dev/null; then
4991 if test -s conftest.err; then
4992 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2b51a082004-08-04 00:34:49 +00004993 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +00004994 else
4995 ac_cpp_err=
4996 fi
4997else
4998 ac_cpp_err=yes
4999fi
5000if test -z "$ac_cpp_err"; then
5001 # Broken: success on invalid input.
5002continue
5003else
5004 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005005sed 's/^/| /' conftest.$ac_ext >&5
5006
John Criswell47fdd832003-07-14 16:52:07 +00005007 # Passes both tests.
5008ac_preproc_ok=:
5009break
5010fi
5011rm -f conftest.err conftest.$ac_ext
5012
5013done
5014# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5015rm -f conftest.err conftest.$ac_ext
5016if $ac_preproc_ok; then
5017 :
5018else
John Criswell0c38eaf2003-09-10 15:17:25 +00005019 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5020See \`config.log' for more details." >&5
5021echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5022See \`config.log' for more details." >&2;}
John Criswell47fdd832003-07-14 16:52:07 +00005023 { (exit 1); exit 1; }; }
5024fi
5025
5026ac_ext=cc
5027ac_cpp='$CXXCPP $CPPFLAGS'
5028ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5029ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5030ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5031
5032
5033ac_ext=f
5034ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5035ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5036ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5037if test -n "$ac_tool_prefix"; then
Reid Spencer2b51a082004-08-04 00:34:49 +00005038 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 +00005039 do
5040 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5041set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5042echo "$as_me:$LINENO: checking for $ac_word" >&5
5043echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5044if test "${ac_cv_prog_F77+set}" = set; then
5045 echo $ECHO_N "(cached) $ECHO_C" >&6
5046else
5047 if test -n "$F77"; then
5048 ac_cv_prog_F77="$F77" # Let the user override the test.
5049else
5050as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5051for as_dir in $PATH
5052do
5053 IFS=$as_save_IFS
5054 test -z "$as_dir" && as_dir=.
5055 for ac_exec_ext in '' $ac_executable_extensions; do
5056 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5057 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5058 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5059 break 2
5060 fi
5061done
5062done
5063
5064fi
5065fi
5066F77=$ac_cv_prog_F77
5067if test -n "$F77"; then
5068 echo "$as_me:$LINENO: result: $F77" >&5
5069echo "${ECHO_T}$F77" >&6
5070else
5071 echo "$as_me:$LINENO: result: no" >&5
5072echo "${ECHO_T}no" >&6
5073fi
5074
5075 test -n "$F77" && break
5076 done
5077fi
5078if test -z "$F77"; then
5079 ac_ct_F77=$F77
Reid Spencer2b51a082004-08-04 00:34:49 +00005080 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 +00005081do
5082 # Extract the first word of "$ac_prog", so it can be a program name with args.
5083set dummy $ac_prog; ac_word=$2
5084echo "$as_me:$LINENO: checking for $ac_word" >&5
5085echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5086if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5087 echo $ECHO_N "(cached) $ECHO_C" >&6
5088else
5089 if test -n "$ac_ct_F77"; then
5090 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5091else
5092as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5093for as_dir in $PATH
5094do
5095 IFS=$as_save_IFS
5096 test -z "$as_dir" && as_dir=.
5097 for ac_exec_ext in '' $ac_executable_extensions; do
5098 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5099 ac_cv_prog_ac_ct_F77="$ac_prog"
5100 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5101 break 2
5102 fi
5103done
5104done
5105
5106fi
5107fi
5108ac_ct_F77=$ac_cv_prog_ac_ct_F77
5109if test -n "$ac_ct_F77"; then
5110 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5111echo "${ECHO_T}$ac_ct_F77" >&6
5112else
5113 echo "$as_me:$LINENO: result: no" >&5
5114echo "${ECHO_T}no" >&6
5115fi
5116
5117 test -n "$ac_ct_F77" && break
5118done
5119
5120 F77=$ac_ct_F77
5121fi
5122
5123
5124# Provide some information about the compiler.
Reid Spencer886e9512004-08-31 01:34:10 +00005125echo "$as_me:5125:" \
John Criswell47fdd832003-07-14 16:52:07 +00005126 "checking for Fortran 77 compiler version" >&5
5127ac_compiler=`set X $ac_compile; echo $2`
5128{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5129 (eval $ac_compiler --version </dev/null >&5) 2>&5
5130 ac_status=$?
5131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5132 (exit $ac_status); }
5133{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5134 (eval $ac_compiler -v </dev/null >&5) 2>&5
5135 ac_status=$?
5136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5137 (exit $ac_status); }
5138{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5139 (eval $ac_compiler -V </dev/null >&5) 2>&5
5140 ac_status=$?
5141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5142 (exit $ac_status); }
Reid Spencer2b51a082004-08-04 00:34:49 +00005143rm -f a.out
John Criswell47fdd832003-07-14 16:52:07 +00005144
5145# If we don't use `.F' as extension, the preprocessor is not run on the
Reid Spencer2b51a082004-08-04 00:34:49 +00005146# input file. (Note that this only needs to work for GNU compilers.)
John Criswell47fdd832003-07-14 16:52:07 +00005147ac_save_ext=$ac_ext
5148ac_ext=F
5149echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5150echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5151if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5152 echo $ECHO_N "(cached) $ECHO_C" >&6
5153else
5154 cat >conftest.$ac_ext <<_ACEOF
5155 program main
5156#ifndef __GNUC__
5157 choke me
5158#endif
5159
5160 end
5161_ACEOF
5162rm -f conftest.$ac_objext
5163if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +00005164 (eval $ac_compile) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +00005165 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +00005166 grep -v '^ *+' conftest.er1 >conftest.err
5167 rm -f conftest.er1
5168 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +00005169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5170 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +00005171 { ac_try='test -z "$ac_f77_werror_flag"
5172 || test ! -s conftest.err'
5173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5174 (eval $ac_try) 2>&5
5175 ac_status=$?
5176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5177 (exit $ac_status); }; } &&
5178 { ac_try='test -s conftest.$ac_objext'
John Criswell47fdd832003-07-14 16:52:07 +00005179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5180 (eval $ac_try) 2>&5
5181 ac_status=$?
5182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5183 (exit $ac_status); }; }; then
5184 ac_compiler_gnu=yes
5185else
5186 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005187sed 's/^/| /' conftest.$ac_ext >&5
5188
John Criswell47fdd832003-07-14 16:52:07 +00005189ac_compiler_gnu=no
5190fi
Reid Spencer2b51a082004-08-04 00:34:49 +00005191rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +00005192ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5193
5194fi
5195echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5196echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5197ac_ext=$ac_save_ext
John Criswell47fdd832003-07-14 16:52:07 +00005198ac_test_FFLAGS=${FFLAGS+set}
5199ac_save_FFLAGS=$FFLAGS
5200FFLAGS=
5201echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5202echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5203if test "${ac_cv_prog_f77_g+set}" = set; then
5204 echo $ECHO_N "(cached) $ECHO_C" >&6
5205else
5206 FFLAGS=-g
5207cat >conftest.$ac_ext <<_ACEOF
5208 program main
5209
5210 end
5211_ACEOF
5212rm -f conftest.$ac_objext
5213if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +00005214 (eval $ac_compile) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +00005215 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +00005216 grep -v '^ *+' conftest.er1 >conftest.err
5217 rm -f conftest.er1
5218 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +00005219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5220 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +00005221 { ac_try='test -z "$ac_f77_werror_flag"
5222 || test ! -s conftest.err'
5223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5224 (eval $ac_try) 2>&5
5225 ac_status=$?
5226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5227 (exit $ac_status); }; } &&
5228 { ac_try='test -s conftest.$ac_objext'
John Criswell47fdd832003-07-14 16:52:07 +00005229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5230 (eval $ac_try) 2>&5
5231 ac_status=$?
5232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5233 (exit $ac_status); }; }; then
5234 ac_cv_prog_f77_g=yes
5235else
5236 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005237sed 's/^/| /' conftest.$ac_ext >&5
5238
John Criswell47fdd832003-07-14 16:52:07 +00005239ac_cv_prog_f77_g=no
5240fi
Reid Spencer2b51a082004-08-04 00:34:49 +00005241rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +00005242
5243fi
5244echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5245echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5246if test "$ac_test_FFLAGS" = set; then
5247 FFLAGS=$ac_save_FFLAGS
5248elif test $ac_cv_prog_f77_g = yes; then
Reid Spencer2b51a082004-08-04 00:34:49 +00005249 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +00005250 FFLAGS="-g -O2"
5251 else
5252 FFLAGS="-g"
5253 fi
5254else
Reid Spencer2b51a082004-08-04 00:34:49 +00005255 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +00005256 FFLAGS="-O2"
5257 else
5258 FFLAGS=
5259 fi
5260fi
Reid Spencer2b51a082004-08-04 00:34:49 +00005261
5262G77=`test $ac_compiler_gnu = yes && echo yes`
John Criswell47fdd832003-07-14 16:52:07 +00005263ac_ext=c
5264ac_cpp='$CPP $CPPFLAGS'
5265ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5266ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5267ac_compiler_gnu=$ac_cv_c_compiler_gnu
5268
5269
5270
5271# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5272
5273# find the maximum length of command line arguments
5274echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5275echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5276if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5277 echo $ECHO_N "(cached) $ECHO_C" >&6
5278else
5279 i=0
5280 testring="ABCD"
5281
5282 case $build_os in
5283 msdosdjgpp*)
5284 # On DJGPP, this test can blow up pretty badly due to problems in libc
5285 # (any single argument exceeding 2000 bytes causes a buffer overrun
5286 # during glob expansion). Even if it were fixed, the result of this
5287 # check would be larger than it should be.
5288 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5289 ;;
5290
5291 gnu*)
5292 # Under GNU Hurd, this test is not required because there is
5293 # no limit to the length of command line arguments.
5294 # Libtool will interpret -1 as no limit whatsoever
5295 lt_cv_sys_max_cmd_len=-1;
5296 ;;
5297
5298 cygwin* | mingw*)
5299 # On Win9x/ME, this test blows up -- it succeeds, but takes
5300 # about 5 minutes as the teststring grows exponentially.
5301 # Worse, since 9x/ME are not pre-emptively multitasking,
5302 # you end up with a "frozen" computer, even though with patience
5303 # the test eventually succeeds (with a max line length of 256k).
5304 # Instead, let's just punt: use the minimum linelength reported by
5305 # all of the supported platforms: 8192 (on NT/2K/XP).
5306 lt_cv_sys_max_cmd_len=8192;
5307 ;;
5308
5309 *)
5310 # If test is not a shell built-in, we'll probably end up computing a
5311 # maximum length that is only half of the actual maximum length, but
5312 # we can't tell.
5313 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5314 = "XX$testring") >/dev/null 2>&1 &&
5315 new_result=`expr "X$testring" : ".*" 2>&1` &&
5316 lt_cv_sys_max_cmd_len=$new_result &&
5317 test $i != 17 # 1/2 MB should be enough
5318 do
5319 i=`expr $i + 1`
5320 testring=$testring$testring
5321 done
5322 testring=
5323 # Add a significant safety factor because C++ compilers can tack on massive
5324 # amounts of additional arguments before passing them to the linker.
5325 # It appears as though 1/2 is a usable value.
5326 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5327 ;;
5328 esac
5329
5330fi
5331
5332if test -n $lt_cv_sys_max_cmd_len ; then
5333 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5334echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5335else
5336 echo "$as_me:$LINENO: result: none" >&5
5337echo "${ECHO_T}none" >&6
5338fi
5339
5340
5341
5342
5343# Check for command to grab the raw symbol name followed by C symbol from nm.
5344echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5345echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5346if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5347 echo $ECHO_N "(cached) $ECHO_C" >&6
5348else
5349
5350# These are sane defaults that work on at least a few old systems.
5351# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5352
5353# Character class describing NM global symbol codes.
5354symcode='[BCDEGRST]'
5355
5356# Regexp to match symbols that can be accessed directly from C.
5357sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5358
5359# Transform the above into a raw symbol and a C symbol.
5360symxfrm='\1 \2\3 \3'
5361
5362# Transform an extracted symbol line into a proper C declaration
5363lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5364
5365# Transform an extracted symbol line into symbol name and symbol address
5366lt_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'"
5367
5368# Define system-specific variables.
5369case $host_os in
5370aix*)
5371 symcode='[BCDT]'
5372 ;;
5373cygwin* | mingw* | pw32*)
5374 symcode='[ABCDGISTW]'
5375 ;;
5376hpux*) # Its linker distinguishes data from code symbols
5377 if test "$host_cpu" = ia64; then
5378 symcode='[ABCDEGRST]'
5379 fi
5380 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5381 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'"
5382 ;;
5383irix* | nonstopux*)
5384 symcode='[BCDEGRST]'
5385 ;;
5386osf*)
5387 symcode='[BCDEGQRST]'
5388 ;;
5389solaris* | sysv5*)
5390 symcode='[BDT]'
5391 ;;
5392sysv4)
5393 symcode='[DFNSTU]'
5394 ;;
5395esac
5396
5397# Handle CRLF in mingw tool chain
5398opt_cr=
5399case $build_os in
5400mingw*)
5401 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5402 ;;
5403esac
5404
5405# If we're using GNU nm, then use its standard symbol codes.
5406case `$NM -V 2>&1` in
5407*GNU* | *'with BFD'*)
5408 symcode='[ABCDGISTW]' ;;
5409esac
5410
5411# Try without a prefix undercore, then with it.
5412for ac_symprfx in "" "_"; do
5413
5414 # Write the raw and C identifiers.
5415 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5416
5417 # Check to see that the pipe works correctly.
5418 pipe_works=no
5419
5420 rm -f conftest*
5421 cat > conftest.$ac_ext <<EOF
5422#ifdef __cplusplus
5423extern "C" {
5424#endif
5425char nm_test_var;
5426void nm_test_func(){}
5427#ifdef __cplusplus
5428}
5429#endif
5430int main(){nm_test_var='a';nm_test_func();return(0);}
5431EOF
5432
5433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5434 (eval $ac_compile) 2>&5
5435 ac_status=$?
5436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5437 (exit $ac_status); }; then
5438 # Now try to grab the symbols.
5439 nlist=conftest.nm
5440 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5441 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5442 ac_status=$?
5443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5444 (exit $ac_status); } && test -s "$nlist"; then
5445 # Try sorting and uniquifying the output.
5446 if sort "$nlist" | uniq > "$nlist"T; then
5447 mv -f "$nlist"T "$nlist"
5448 else
5449 rm -f "$nlist"T
5450 fi
5451
5452 # Make sure that we snagged all the symbols we need.
5453 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5454 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5455 cat <<EOF > conftest.$ac_ext
5456#ifdef __cplusplus
5457extern "C" {
5458#endif
5459
5460EOF
5461 # Now generate the symbol file.
5462 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5463
5464 cat <<EOF >> conftest.$ac_ext
5465#if defined (__STDC__) && __STDC__
5466# define lt_ptr_t void *
5467#else
5468# define lt_ptr_t char *
5469# define const
5470#endif
5471
5472/* The mapping between symbol names and symbols. */
5473const struct {
5474 const char *name;
5475 lt_ptr_t address;
5476}
5477lt_preloaded_symbols[] =
5478{
5479EOF
5480 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5481 cat <<\EOF >> conftest.$ac_ext
5482 {0, (lt_ptr_t) 0}
5483};
5484
5485#ifdef __cplusplus
5486}
5487#endif
5488EOF
5489 # Now try linking the two files.
5490 mv conftest.$ac_objext conftstm.$ac_objext
5491 lt_save_LIBS="$LIBS"
5492 lt_save_CFLAGS="$CFLAGS"
5493 LIBS="conftstm.$ac_objext"
5494 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5495 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5496 (eval $ac_link) 2>&5
5497 ac_status=$?
5498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5499 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5500 pipe_works=yes
5501 fi
5502 LIBS="$lt_save_LIBS"
5503 CFLAGS="$lt_save_CFLAGS"
5504 else
5505 echo "cannot find nm_test_func in $nlist" >&5
5506 fi
5507 else
5508 echo "cannot find nm_test_var in $nlist" >&5
5509 fi
5510 else
5511 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5512 fi
5513 else
5514 echo "$progname: failed program was:" >&5
5515 cat conftest.$ac_ext >&5
5516 fi
5517 rm -f conftest* conftst*
5518
5519 # Do not use the global_symbol_pipe unless it works.
5520 if test "$pipe_works" = yes; then
5521 break
5522 else
5523 lt_cv_sys_global_symbol_pipe=
5524 fi
5525done
5526
5527fi
5528
5529if test -z "$lt_cv_sys_global_symbol_pipe"; then
5530 lt_cv_sys_global_symbol_to_cdecl=
5531fi
5532if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5533 echo "$as_me:$LINENO: result: failed" >&5
5534echo "${ECHO_T}failed" >&6
5535else
5536 echo "$as_me:$LINENO: result: ok" >&5
5537echo "${ECHO_T}ok" >&6
5538fi
5539
5540echo "$as_me:$LINENO: checking for objdir" >&5
5541echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5542if test "${lt_cv_objdir+set}" = set; then
5543 echo $ECHO_N "(cached) $ECHO_C" >&6
5544else
5545 rm -f .libs 2>/dev/null
5546mkdir .libs 2>/dev/null
5547if test -d .libs; then
5548 lt_cv_objdir=.libs
5549else
5550 # MS-DOS does not allow filenames that begin with a dot.
5551 lt_cv_objdir=_libs
5552fi
5553rmdir .libs 2>/dev/null
5554fi
5555echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5556echo "${ECHO_T}$lt_cv_objdir" >&6
5557objdir=$lt_cv_objdir
5558
5559
5560
5561
5562
5563case $host_os in
5564aix3*)
5565 # AIX sometimes has problems with the GCC collect2 program. For some
5566 # reason, if we set the COLLECT_NAMES environment variable, the problems
5567 # vanish in a puff of smoke.
5568 if test "X${COLLECT_NAMES+set}" != Xset; then
5569 COLLECT_NAMES=
5570 export COLLECT_NAMES
John Criswell7a73b802003-06-30 21:59:07 +00005571 fi
5572 ;;
5573esac
5574
John Criswell47fdd832003-07-14 16:52:07 +00005575# Sed substitution that helps us do robust quoting. It backslashifies
5576# metacharacters that are still active within double-quoted strings.
5577Xsed='sed -e s/^X//'
5578sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5579
5580# Same as above, but do not quote variable references.
5581double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5582
5583# Sed substitution to delay expansion of an escaped shell variable in a
5584# double_quote_subst'ed string.
5585delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5586
5587# Sed substitution to avoid accidental globbing in evaled expressions
5588no_glob_subst='s/\*/\\\*/g'
5589
5590# Constants:
5591rm="rm -f"
5592
5593# Global variables:
John Criswell8d4221e2003-07-23 16:52:50 +00005594default_ofile=mklib
John Criswell47fdd832003-07-14 16:52:07 +00005595can_build_shared=yes
5596
5597# All known linkers require a `.a' archive for static linking (except M$VC,
5598# which needs '.lib').
5599libext=a
5600ltmain="$ac_aux_dir/ltmain.sh"
5601ofile="$default_ofile"
5602with_gnu_ld="$lt_cv_prog_gnu_ld"
5603
5604if test -n "$ac_tool_prefix"; then
5605 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5606set dummy ${ac_tool_prefix}ar; ac_word=$2
5607echo "$as_me:$LINENO: checking for $ac_word" >&5
5608echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5609if test "${ac_cv_prog_AR+set}" = set; then
5610 echo $ECHO_N "(cached) $ECHO_C" >&6
5611else
5612 if test -n "$AR"; then
5613 ac_cv_prog_AR="$AR" # Let the user override the test.
5614else
5615as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5616for as_dir in $PATH
5617do
5618 IFS=$as_save_IFS
5619 test -z "$as_dir" && as_dir=.
5620 for ac_exec_ext in '' $ac_executable_extensions; do
5621 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5622 ac_cv_prog_AR="${ac_tool_prefix}ar"
5623 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5624 break 2
5625 fi
5626done
5627done
5628
5629fi
5630fi
5631AR=$ac_cv_prog_AR
5632if test -n "$AR"; then
5633 echo "$as_me:$LINENO: result: $AR" >&5
5634echo "${ECHO_T}$AR" >&6
5635else
5636 echo "$as_me:$LINENO: result: no" >&5
5637echo "${ECHO_T}no" >&6
5638fi
5639
5640fi
5641if test -z "$ac_cv_prog_AR"; then
5642 ac_ct_AR=$AR
5643 # Extract the first word of "ar", so it can be a program name with args.
5644set dummy ar; ac_word=$2
5645echo "$as_me:$LINENO: checking for $ac_word" >&5
5646echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5647if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5648 echo $ECHO_N "(cached) $ECHO_C" >&6
5649else
5650 if test -n "$ac_ct_AR"; then
5651 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5652else
5653as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5654for as_dir in $PATH
5655do
5656 IFS=$as_save_IFS
5657 test -z "$as_dir" && as_dir=.
5658 for ac_exec_ext in '' $ac_executable_extensions; do
5659 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5660 ac_cv_prog_ac_ct_AR="ar"
5661 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5662 break 2
5663 fi
5664done
5665done
5666
5667 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5668fi
5669fi
5670ac_ct_AR=$ac_cv_prog_ac_ct_AR
5671if test -n "$ac_ct_AR"; then
5672 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5673echo "${ECHO_T}$ac_ct_AR" >&6
5674else
5675 echo "$as_me:$LINENO: result: no" >&5
5676echo "${ECHO_T}no" >&6
5677fi
5678
5679 AR=$ac_ct_AR
5680else
5681 AR="$ac_cv_prog_AR"
5682fi
5683
John Criswell7a73b802003-06-30 21:59:07 +00005684if test -n "$ac_tool_prefix"; then
5685 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5686set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5687echo "$as_me:$LINENO: checking for $ac_word" >&5
5688echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5689if test "${ac_cv_prog_RANLIB+set}" = set; then
5690 echo $ECHO_N "(cached) $ECHO_C" >&6
5691else
5692 if test -n "$RANLIB"; then
5693 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5694else
5695as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5696for as_dir in $PATH
5697do
5698 IFS=$as_save_IFS
5699 test -z "$as_dir" && as_dir=.
5700 for ac_exec_ext in '' $ac_executable_extensions; do
5701 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5702 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5703 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5704 break 2
5705 fi
5706done
5707done
5708
5709fi
5710fi
5711RANLIB=$ac_cv_prog_RANLIB
5712if test -n "$RANLIB"; then
5713 echo "$as_me:$LINENO: result: $RANLIB" >&5
5714echo "${ECHO_T}$RANLIB" >&6
5715else
5716 echo "$as_me:$LINENO: result: no" >&5
5717echo "${ECHO_T}no" >&6
5718fi
5719
5720fi
5721if test -z "$ac_cv_prog_RANLIB"; then
5722 ac_ct_RANLIB=$RANLIB
5723 # Extract the first word of "ranlib", so it can be a program name with args.
5724set dummy ranlib; ac_word=$2
5725echo "$as_me:$LINENO: checking for $ac_word" >&5
5726echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5727if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5728 echo $ECHO_N "(cached) $ECHO_C" >&6
5729else
5730 if test -n "$ac_ct_RANLIB"; then
5731 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5732else
5733as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5734for as_dir in $PATH
5735do
5736 IFS=$as_save_IFS
5737 test -z "$as_dir" && as_dir=.
5738 for ac_exec_ext in '' $ac_executable_extensions; do
5739 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5740 ac_cv_prog_ac_ct_RANLIB="ranlib"
5741 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5742 break 2
5743 fi
5744done
5745done
5746
5747 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5748fi
5749fi
5750ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5751if test -n "$ac_ct_RANLIB"; then
5752 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5753echo "${ECHO_T}$ac_ct_RANLIB" >&6
5754else
5755 echo "$as_me:$LINENO: result: no" >&5
5756echo "${ECHO_T}no" >&6
5757fi
5758
5759 RANLIB=$ac_ct_RANLIB
5760else
5761 RANLIB="$ac_cv_prog_RANLIB"
5762fi
5763
5764if test -n "$ac_tool_prefix"; then
5765 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5766set dummy ${ac_tool_prefix}strip; ac_word=$2
5767echo "$as_me:$LINENO: checking for $ac_word" >&5
5768echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5769if test "${ac_cv_prog_STRIP+set}" = set; then
5770 echo $ECHO_N "(cached) $ECHO_C" >&6
5771else
5772 if test -n "$STRIP"; then
5773 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5774else
5775as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5776for as_dir in $PATH
5777do
5778 IFS=$as_save_IFS
5779 test -z "$as_dir" && as_dir=.
5780 for ac_exec_ext in '' $ac_executable_extensions; do
5781 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5782 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5783 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5784 break 2
5785 fi
5786done
5787done
5788
5789fi
5790fi
5791STRIP=$ac_cv_prog_STRIP
5792if test -n "$STRIP"; then
5793 echo "$as_me:$LINENO: result: $STRIP" >&5
5794echo "${ECHO_T}$STRIP" >&6
5795else
5796 echo "$as_me:$LINENO: result: no" >&5
5797echo "${ECHO_T}no" >&6
5798fi
5799
5800fi
5801if test -z "$ac_cv_prog_STRIP"; then
5802 ac_ct_STRIP=$STRIP
5803 # Extract the first word of "strip", so it can be a program name with args.
5804set dummy strip; ac_word=$2
5805echo "$as_me:$LINENO: checking for $ac_word" >&5
5806echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5807if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5808 echo $ECHO_N "(cached) $ECHO_C" >&6
5809else
5810 if test -n "$ac_ct_STRIP"; then
5811 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5812else
5813as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5814for as_dir in $PATH
5815do
5816 IFS=$as_save_IFS
5817 test -z "$as_dir" && as_dir=.
5818 for ac_exec_ext in '' $ac_executable_extensions; do
5819 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5820 ac_cv_prog_ac_ct_STRIP="strip"
5821 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5822 break 2
5823 fi
5824done
5825done
5826
5827 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5828fi
5829fi
5830ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5831if test -n "$ac_ct_STRIP"; then
5832 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5833echo "${ECHO_T}$ac_ct_STRIP" >&6
5834else
5835 echo "$as_me:$LINENO: result: no" >&5
5836echo "${ECHO_T}no" >&6
5837fi
5838
5839 STRIP=$ac_ct_STRIP
5840else
5841 STRIP="$ac_cv_prog_STRIP"
5842fi
5843
5844
John Criswell7a73b802003-06-30 21:59:07 +00005845old_CC="$CC"
5846old_CFLAGS="$CFLAGS"
5847
5848# Set sane defaults for various variables
5849test -z "$AR" && AR=ar
5850test -z "$AR_FLAGS" && AR_FLAGS=cru
5851test -z "$AS" && AS=as
5852test -z "$CC" && CC=cc
John Criswell47fdd832003-07-14 16:52:07 +00005853test -z "$LTCC" && LTCC=$CC
John Criswell7a73b802003-06-30 21:59:07 +00005854test -z "$DLLTOOL" && DLLTOOL=dlltool
5855test -z "$LD" && LD=ld
5856test -z "$LN_S" && LN_S="ln -s"
5857test -z "$MAGIC_CMD" && MAGIC_CMD=file
5858test -z "$NM" && NM=nm
John Criswell47fdd832003-07-14 16:52:07 +00005859test -z "$SED" && SED=sed
John Criswell7a73b802003-06-30 21:59:07 +00005860test -z "$OBJDUMP" && OBJDUMP=objdump
5861test -z "$RANLIB" && RANLIB=:
5862test -z "$STRIP" && STRIP=:
5863test -z "$ac_objext" && ac_objext=o
5864
John Criswell7a73b802003-06-30 21:59:07 +00005865# Determine commands to create old-style static archives.
5866old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5867old_postinstall_cmds='chmod 644 $oldlib'
5868old_postuninstall_cmds=
5869
5870if test -n "$RANLIB"; then
5871 case $host_os in
5872 openbsd*)
5873 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5874 ;;
5875 *)
5876 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5877 ;;
5878 esac
5879 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5880fi
5881
John Criswell47fdd832003-07-14 16:52:07 +00005882# Only perform the check for file, if the check method requires it
5883case $deplibs_check_method in
5884file_magic*)
5885 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5886 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5887echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5888if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5889 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00005890else
John Criswell47fdd832003-07-14 16:52:07 +00005891 case $MAGIC_CMD in
5892[\\/*] | ?:[\\/]*)
5893 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5894 ;;
5895*)
5896 lt_save_MAGIC_CMD="$MAGIC_CMD"
5897 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5898 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5899 for ac_dir in $ac_dummy; do
5900 IFS="$lt_save_ifs"
5901 test -z "$ac_dir" && ac_dir=.
5902 if test -f $ac_dir/${ac_tool_prefix}file; then
5903 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5904 if test -n "$file_magic_test_file"; then
5905 case $deplibs_check_method in
5906 "file_magic "*)
5907 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5908 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5909 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5910 $EGREP "$file_magic_regex" > /dev/null; then
5911 :
5912 else
5913 cat <<EOF 1>&2
5914
5915*** Warning: the command libtool uses to detect shared libraries,
5916*** $file_magic_cmd, produces output that libtool cannot recognize.
5917*** The result is that libtool may fail to recognize shared libraries
5918*** as such. This will affect the creation of libtool libraries that
5919*** depend on shared libraries, but programs linked with such libtool
5920*** libraries will work regardless of this problem. Nevertheless, you
5921*** may want to report the problem to your system manager and/or to
5922*** bug-libtool@gnu.org
5923
5924EOF
5925 fi ;;
5926 esac
5927 fi
5928 break
5929 fi
5930 done
5931 IFS="$lt_save_ifs"
5932 MAGIC_CMD="$lt_save_MAGIC_CMD"
5933 ;;
5934esac
John Criswell7a73b802003-06-30 21:59:07 +00005935fi
John Criswell7a73b802003-06-30 21:59:07 +00005936
John Criswell47fdd832003-07-14 16:52:07 +00005937MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5938if test -n "$MAGIC_CMD"; then
5939 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5940echo "${ECHO_T}$MAGIC_CMD" >&6
5941else
5942 echo "$as_me:$LINENO: result: no" >&5
5943echo "${ECHO_T}no" >&6
5944fi
John Criswell7a73b802003-06-30 21:59:07 +00005945
John Criswell47fdd832003-07-14 16:52:07 +00005946if test -z "$lt_cv_path_MAGIC_CMD"; then
5947 if test -n "$ac_tool_prefix"; then
5948 echo "$as_me:$LINENO: checking for file" >&5
5949echo $ECHO_N "checking for file... $ECHO_C" >&6
5950if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5951 echo $ECHO_N "(cached) $ECHO_C" >&6
5952else
5953 case $MAGIC_CMD in
5954[\\/*] | ?:[\\/]*)
5955 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5956 ;;
5957*)
5958 lt_save_MAGIC_CMD="$MAGIC_CMD"
5959 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5960 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5961 for ac_dir in $ac_dummy; do
5962 IFS="$lt_save_ifs"
5963 test -z "$ac_dir" && ac_dir=.
5964 if test -f $ac_dir/file; then
5965 lt_cv_path_MAGIC_CMD="$ac_dir/file"
5966 if test -n "$file_magic_test_file"; then
5967 case $deplibs_check_method in
5968 "file_magic "*)
5969 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5970 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5971 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5972 $EGREP "$file_magic_regex" > /dev/null; then
5973 :
5974 else
5975 cat <<EOF 1>&2
5976
5977*** Warning: the command libtool uses to detect shared libraries,
5978*** $file_magic_cmd, produces output that libtool cannot recognize.
5979*** The result is that libtool may fail to recognize shared libraries
5980*** as such. This will affect the creation of libtool libraries that
5981*** depend on shared libraries, but programs linked with such libtool
5982*** libraries will work regardless of this problem. Nevertheless, you
5983*** may want to report the problem to your system manager and/or to
5984*** bug-libtool@gnu.org
5985
5986EOF
5987 fi ;;
5988 esac
5989 fi
5990 break
5991 fi
5992 done
5993 IFS="$lt_save_ifs"
5994 MAGIC_CMD="$lt_save_MAGIC_CMD"
5995 ;;
5996esac
5997fi
5998
5999MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6000if test -n "$MAGIC_CMD"; then
6001 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6002echo "${ECHO_T}$MAGIC_CMD" >&6
6003else
6004 echo "$as_me:$LINENO: result: no" >&5
6005echo "${ECHO_T}no" >&6
6006fi
6007
6008 else
6009 MAGIC_CMD=:
6010 fi
6011fi
6012
6013 fi
6014 ;;
6015esac
6016
6017enable_dlopen=no
6018enable_win32_dll=no
6019
6020# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6021if test "${enable_libtool_lock+set}" = set; then
6022 enableval="$enable_libtool_lock"
6023
6024fi;
6025test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6026
John Criswell7a73b802003-06-30 21:59:07 +00006027
6028# Check whether --with-pic or --without-pic was given.
6029if test "${with_pic+set}" = set; then
6030 withval="$with_pic"
6031 pic_mode="$withval"
6032else
6033 pic_mode=default
6034fi;
6035test -z "$pic_mode" && pic_mode=default
6036
John Criswell47fdd832003-07-14 16:52:07 +00006037# Use C for the default configuration in the libtool script
6038tagname=
6039lt_save_CC="$CC"
6040ac_ext=c
6041ac_cpp='$CPP $CPPFLAGS'
6042ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6043ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6044ac_compiler_gnu=$ac_cv_c_compiler_gnu
6045
6046
6047# Source file extension for C test sources.
6048ac_ext=c
6049
6050# Object file extension for compiled C test sources.
6051objext=o
6052objext=$objext
6053
6054# Code to be used in simple compile tests
6055lt_simple_compile_test_code="int some_variable = 0;\n"
6056
6057# Code to be used in simple link tests
6058lt_simple_link_test_code='int main(){return(0);}\n'
6059
6060
6061# If no C compiler was specified, use CC.
6062LTCC=${LTCC-"$CC"}
6063
6064# Allow CC to be a program name with arguments.
6065compiler=$CC
6066
6067
6068#
6069# Check for any special shared library compilation flags.
6070#
6071lt_prog_cc_shlib=
6072if test "$GCC" = no; then
6073 case $host_os in
6074 sco3.2v5*)
6075 lt_prog_cc_shlib='-belf'
6076 ;;
6077 esac
6078fi
6079if test -n "$lt_prog_cc_shlib"; then
6080 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6081echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6082 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
6083 else
6084 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6085echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6086 lt_cv_prog_cc_can_build_shared=no
6087 fi
6088fi
6089
6090
6091#
6092# Check to make sure the static flag actually works.
6093#
6094echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6095echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6096if test "${lt_prog_compiler_static_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00006097 echo $ECHO_N "(cached) $ECHO_C" >&6
6098else
John Criswell47fdd832003-07-14 16:52:07 +00006099 lt_prog_compiler_static_works=no
6100 save_LDFLAGS="$LDFLAGS"
6101 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6102 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6103 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6104 # The compiler can only warn and ignore the option if not recognized
6105 # So say no if there are warnings
6106 if test -s conftest.err; then
6107 # Append any errors to the config.log.
6108 cat conftest.err 1>&5
6109 else
6110 lt_prog_compiler_static_works=yes
6111 fi
6112 fi
6113 $rm conftest*
6114 LDFLAGS="$save_LDFLAGS"
6115
6116fi
6117echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6118echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6119
6120if test x"$lt_prog_compiler_static_works" = xyes; then
6121 :
6122else
6123 lt_prog_compiler_static=
6124fi
6125
6126
6127
Reid Spencer2b51a082004-08-04 00:34:49 +00006128## CAVEAT EMPTOR:
6129## There is no encapsulation within the following macros, do not change
6130## the running order or otherwise move them around unless you know exactly
6131## what you are doing...
John Criswell47fdd832003-07-14 16:52:07 +00006132
6133lt_prog_compiler_no_builtin_flag=
6134
6135if test "$GCC" = yes; then
6136 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6137
6138 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6139echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6140if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6141 echo $ECHO_N "(cached) $ECHO_C" >&6
6142else
6143 lt_cv_prog_compiler_rtti_exceptions=no
6144 ac_outfile=conftest.$ac_objext
6145 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6146 lt_compiler_flag="-fno-rtti -fno-exceptions"
6147 # Insert the option either (1) after the last *FLAGS variable, or
6148 # (2) before a word containing "conftest.", or (3) at the end.
6149 # Note that $ac_compile itself does not contain backslashes and begins
6150 # with a dollar sign (not a hyphen), so the echo should work correctly.
6151 # The option is referenced via a variable to avoid confusing sed.
6152 lt_compile=`echo "$ac_compile" | $SED \
6153 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6154 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6155 -e 's:$: $lt_compiler_flag:'`
Reid Spencer886e9512004-08-31 01:34:10 +00006156 (eval echo "\"\$as_me:6156: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +00006157 (eval "$lt_compile" 2>conftest.err)
6158 ac_status=$?
6159 cat conftest.err >&5
Reid Spencer886e9512004-08-31 01:34:10 +00006160 echo "$as_me:6160: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00006161 if (exit $ac_status) && test -s "$ac_outfile"; then
6162 # The compiler can only warn and ignore the option if not recognized
6163 # So say no if there are warnings
6164 if test ! -s conftest.err; then
6165 lt_cv_prog_compiler_rtti_exceptions=yes
6166 fi
6167 fi
6168 $rm conftest*
6169
6170fi
6171echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6172echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6173
6174if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6175 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6176else
6177 :
6178fi
6179
6180fi
6181
6182lt_prog_compiler_wl=
6183lt_prog_compiler_pic=
6184lt_prog_compiler_static=
6185
6186echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6187echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006188
6189 if test "$GCC" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +00006190 lt_prog_compiler_wl='-Wl,'
6191 lt_prog_compiler_static='-static'
John Criswell7a73b802003-06-30 21:59:07 +00006192
6193 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00006194 aix*)
6195 # All AIX code is PIC.
6196 if test "$host_cpu" = ia64; then
6197 # AIX 5 now supports IA64 processor
6198 lt_prog_compiler_static='-Bstatic'
6199 fi
John Criswell7a73b802003-06-30 21:59:07 +00006200 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006201
John Criswell7a73b802003-06-30 21:59:07 +00006202 amigaos*)
6203 # FIXME: we need at least 68020 code to build shared libraries, but
6204 # adding the `-m68020' flag to GCC prevents building anything better,
6205 # like `-m68040'.
John Criswell47fdd832003-07-14 16:52:07 +00006206 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
John Criswell7a73b802003-06-30 21:59:07 +00006207 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006208
6209 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
John Criswell7a73b802003-06-30 21:59:07 +00006210 # PIC is the default for these OSes.
6211 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006212
6213 mingw* | pw32* | os2*)
6214 # This hack is so that the source file can tell whether it is being
6215 # built for inclusion in a dll (and should export symbols for example).
6216 lt_prog_compiler_pic='-DDLL_EXPORT'
6217 ;;
6218
John Criswell7a73b802003-06-30 21:59:07 +00006219 darwin* | rhapsody*)
6220 # PIC is the default on this platform
6221 # Common symbols not allowed in MH_DYLIB files
John Criswell47fdd832003-07-14 16:52:07 +00006222 lt_prog_compiler_pic='-fno-common'
John Criswell7a73b802003-06-30 21:59:07 +00006223 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006224
6225 msdosdjgpp*)
6226 # Just because we use GCC doesn't mean we suddenly get shared libraries
6227 # on systems that don't support them.
6228 lt_prog_compiler_can_build_shared=no
6229 enable_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00006230 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006231
John Criswell7a73b802003-06-30 21:59:07 +00006232 sysv4*MP*)
6233 if test -d /usr/nec; then
John Criswell47fdd832003-07-14 16:52:07 +00006234 lt_prog_compiler_pic=-Kconform_pic
John Criswell7a73b802003-06-30 21:59:07 +00006235 fi
6236 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006237
6238 hpux*)
6239 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6240 # not for PA HP-UX.
6241 case "$host_cpu" in
6242 hppa*64*|ia64*)
6243 # +Z the default
6244 ;;
6245 *)
6246 lt_prog_compiler_pic='-fPIC'
6247 ;;
6248 esac
6249 ;;
6250
John Criswell7a73b802003-06-30 21:59:07 +00006251 *)
John Criswell47fdd832003-07-14 16:52:07 +00006252 lt_prog_compiler_pic='-fPIC'
John Criswell7a73b802003-06-30 21:59:07 +00006253 ;;
6254 esac
6255 else
John Criswell47fdd832003-07-14 16:52:07 +00006256 # PORTME Check for flag to pass linker flags through the system compiler.
John Criswell7a73b802003-06-30 21:59:07 +00006257 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00006258 aix*)
6259 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +00006260 if test "$host_cpu" = ia64; then
6261 # AIX 5 now supports IA64 processor
John Criswell47fdd832003-07-14 16:52:07 +00006262 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006263 else
John Criswell47fdd832003-07-14 16:52:07 +00006264 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
John Criswell7a73b802003-06-30 21:59:07 +00006265 fi
6266 ;;
6267
John Criswell47fdd832003-07-14 16:52:07 +00006268 mingw* | pw32* | os2*)
6269 # This hack is so that the source file can tell whether it is being
6270 # built for inclusion in a dll (and should export symbols for example).
6271 lt_prog_compiler_pic='-DDLL_EXPORT'
6272 ;;
6273
John Criswell7a73b802003-06-30 21:59:07 +00006274 hpux9* | hpux10* | hpux11*)
John Criswell47fdd832003-07-14 16:52:07 +00006275 lt_prog_compiler_wl='-Wl,'
6276 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6277 # not for PA HP-UX.
6278 case "$host_cpu" in
6279 hppa*64*|ia64*)
6280 # +Z the default
6281 ;;
6282 *)
6283 lt_prog_compiler_pic='+Z'
6284 ;;
6285 esac
6286 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6287 lt_prog_compiler_static='${wl}-a ${wl}archive'
John Criswell7a73b802003-06-30 21:59:07 +00006288 ;;
6289
John Criswell47fdd832003-07-14 16:52:07 +00006290 irix5* | irix6* | nonstopux*)
6291 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +00006292 # PIC (with -KPIC) is the default.
John Criswell47fdd832003-07-14 16:52:07 +00006293 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +00006294 ;;
6295
6296 newsos6)
John Criswell47fdd832003-07-14 16:52:07 +00006297 lt_prog_compiler_pic='-KPIC'
6298 lt_prog_compiler_static='-Bstatic'
6299 ;;
6300
6301 linux*)
6302 case $CC in
6303 icc|ecc)
6304 lt_prog_compiler_wl='-Wl,'
6305 lt_prog_compiler_pic='-KPIC'
6306 lt_prog_compiler_static='-static'
6307 ;;
6308 ccc)
6309 lt_prog_compiler_wl='-Wl,'
6310 # All Alpha code is PIC.
6311 lt_prog_compiler_static='-non_shared'
6312 ;;
6313 esac
John Criswell7a73b802003-06-30 21:59:07 +00006314 ;;
6315
6316 osf3* | osf4* | osf5*)
John Criswell47fdd832003-07-14 16:52:07 +00006317 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +00006318 # All OSF/1 code is PIC.
John Criswell47fdd832003-07-14 16:52:07 +00006319 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +00006320 ;;
6321
6322 sco3.2v5*)
John Criswell47fdd832003-07-14 16:52:07 +00006323 lt_prog_compiler_pic='-Kpic'
6324 lt_prog_compiler_static='-dn'
John Criswell7a73b802003-06-30 21:59:07 +00006325 ;;
6326
6327 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +00006328 lt_prog_compiler_wl='-Wl,'
6329 lt_prog_compiler_pic='-KPIC'
6330 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006331 ;;
6332
6333 sunos4*)
John Criswell47fdd832003-07-14 16:52:07 +00006334 lt_prog_compiler_wl='-Qoption ld '
6335 lt_prog_compiler_pic='-PIC'
6336 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006337 ;;
6338
6339 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
John Criswell47fdd832003-07-14 16:52:07 +00006340 lt_prog_compiler_wl='-Wl,'
6341 lt_prog_compiler_pic='-KPIC'
6342 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006343 ;;
6344
6345 sysv4*MP*)
6346 if test -d /usr/nec ;then
John Criswell47fdd832003-07-14 16:52:07 +00006347 lt_prog_compiler_pic='-Kconform_pic'
6348 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006349 fi
6350 ;;
6351
John Criswell47fdd832003-07-14 16:52:07 +00006352 uts4*)
6353 lt_prog_compiler_pic='-pic'
6354 lt_prog_compiler_static='-Bstatic'
6355 ;;
6356
John Criswell7a73b802003-06-30 21:59:07 +00006357 *)
John Criswell47fdd832003-07-14 16:52:07 +00006358 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00006359 ;;
6360 esac
6361 fi
6362
John Criswell47fdd832003-07-14 16:52:07 +00006363echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6364echo "${ECHO_T}$lt_prog_compiler_pic" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006365
John Criswell47fdd832003-07-14 16:52:07 +00006366#
6367# Check to make sure the PIC flag actually works.
6368#
6369if test -n "$lt_prog_compiler_pic"; then
6370 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6371echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6372if test "${lt_prog_compiler_pic_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00006373 echo $ECHO_N "(cached) $ECHO_C" >&6
6374else
John Criswell47fdd832003-07-14 16:52:07 +00006375 lt_prog_compiler_pic_works=no
6376 ac_outfile=conftest.$ac_objext
6377 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6378 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6379 # Insert the option either (1) after the last *FLAGS variable, or
6380 # (2) before a word containing "conftest.", or (3) at the end.
6381 # Note that $ac_compile itself does not contain backslashes and begins
6382 # with a dollar sign (not a hyphen), so the echo should work correctly.
6383 # The option is referenced via a variable to avoid confusing sed.
6384 lt_compile=`echo "$ac_compile" | $SED \
6385 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6386 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6387 -e 's:$: $lt_compiler_flag:'`
Reid Spencer886e9512004-08-31 01:34:10 +00006388 (eval echo "\"\$as_me:6388: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +00006389 (eval "$lt_compile" 2>conftest.err)
6390 ac_status=$?
6391 cat conftest.err >&5
Reid Spencer886e9512004-08-31 01:34:10 +00006392 echo "$as_me:6392: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00006393 if (exit $ac_status) && test -s "$ac_outfile"; then
6394 # The compiler can only warn and ignore the option if not recognized
6395 # So say no if there are warnings
6396 if test ! -s conftest.err; then
6397 lt_prog_compiler_pic_works=yes
6398 fi
6399 fi
6400 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +00006401
John Criswell47fdd832003-07-14 16:52:07 +00006402fi
6403echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6404echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006405
John Criswell47fdd832003-07-14 16:52:07 +00006406if test x"$lt_prog_compiler_pic_works" = xyes; then
6407 case $lt_prog_compiler_pic in
6408 "" | " "*) ;;
6409 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6410 esac
John Criswell7a73b802003-06-30 21:59:07 +00006411else
John Criswell47fdd832003-07-14 16:52:07 +00006412 lt_prog_compiler_pic=
6413 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00006414fi
6415
John Criswell7a73b802003-06-30 21:59:07 +00006416fi
John Criswell47fdd832003-07-14 16:52:07 +00006417case "$host_os" in
6418 # For platforms which do not support PIC, -DPIC is meaningless:
6419 *djgpp*)
6420 lt_prog_compiler_pic=
6421 ;;
6422 *)
6423 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6424 ;;
6425esac
John Criswell7a73b802003-06-30 21:59:07 +00006426
John Criswell7a73b802003-06-30 21:59:07 +00006427echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6428echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
John Criswell47fdd832003-07-14 16:52:07 +00006429if test "${lt_cv_prog_compiler_c_o+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00006430 echo $ECHO_N "(cached) $ECHO_C" >&6
6431else
John Criswell47fdd832003-07-14 16:52:07 +00006432 lt_cv_prog_compiler_c_o=no
6433 $rm -r conftest 2>/dev/null
6434 mkdir conftest
6435 cd conftest
6436 mkdir out
6437 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00006438
John Criswell47fdd832003-07-14 16:52:07 +00006439 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
6440 # that will create temporary files in the current directory regardless of
6441 # the output directory. Thus, making CWD read-only will cause this test
6442 # to fail, enabling locking or at least warning the user not to do parallel
6443 # builds.
6444 chmod -w .
6445
6446 lt_compiler_flag="-o out/conftest2.$ac_objext"
6447 # Insert the option either (1) after the last *FLAGS variable, or
6448 # (2) before a word containing "conftest.", or (3) at the end.
6449 # Note that $ac_compile itself does not contain backslashes and begins
6450 # with a dollar sign (not a hyphen), so the echo should work correctly.
6451 lt_compile=`echo "$ac_compile" | $SED \
6452 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6453 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6454 -e 's:$: $lt_compiler_flag:'`
Reid Spencer886e9512004-08-31 01:34:10 +00006455 (eval echo "\"\$as_me:6455: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +00006456 (eval "$lt_compile" 2>out/conftest.err)
6457 ac_status=$?
6458 cat out/conftest.err >&5
Reid Spencer886e9512004-08-31 01:34:10 +00006459 echo "$as_me:6459: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00006460 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6461 then
6462 # The compiler can only warn and ignore the option if not recognized
6463 # So say no if there are warnings
6464 if test ! -s out/conftest.err; then
6465 lt_cv_prog_compiler_c_o=yes
6466 fi
6467 fi
6468 chmod u+w .
6469 $rm conftest* out/*
6470 rmdir out
6471 cd ..
6472 rmdir conftest
6473 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +00006474
6475fi
John Criswell47fdd832003-07-14 16:52:07 +00006476echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6477echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006478
John Criswell7a73b802003-06-30 21:59:07 +00006479
John Criswell7a73b802003-06-30 21:59:07 +00006480hard_links="nottested"
John Criswell47fdd832003-07-14 16:52:07 +00006481if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
John Criswell7a73b802003-06-30 21:59:07 +00006482 # do not overwrite the value of need_locks provided by the user
6483 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6484echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6485 hard_links=yes
6486 $rm conftest*
6487 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6488 touch conftest.a
6489 ln conftest.a conftest.b 2>&5 || hard_links=no
6490 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6491 echo "$as_me:$LINENO: result: $hard_links" >&5
6492echo "${ECHO_T}$hard_links" >&6
6493 if test "$hard_links" = no; then
6494 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6495echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6496 need_locks=warn
6497 fi
6498else
6499 need_locks=no
6500fi
John Criswell7a73b802003-06-30 21:59:07 +00006501
John Criswell47fdd832003-07-14 16:52:07 +00006502echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6503echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6504
6505 runpath_var=
6506 allow_undefined_flag=
6507 enable_shared_with_static_runtimes=no
6508 archive_cmds=
6509 archive_expsym_cmds=
6510 old_archive_From_new_cmds=
6511 old_archive_from_expsyms_cmds=
6512 export_dynamic_flag_spec=
6513 whole_archive_flag_spec=
6514 thread_safe_flag_spec=
6515 hardcode_libdir_flag_spec=
6516 hardcode_libdir_flag_spec_ld=
6517 hardcode_libdir_separator=
6518 hardcode_direct=no
6519 hardcode_minus_L=no
6520 hardcode_shlibpath_var=unsupported
6521 link_all_deplibs=unknown
6522 hardcode_automatic=no
6523 module_cmds=
6524 module_expsym_cmds=
6525 always_export_symbols=no
6526 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6527 # include_expsyms should be a list of space-separated symbols to be *always*
6528 # included in the symbol list
6529 include_expsyms=
6530 # exclude_expsyms can be an extended regexp of symbols to exclude
6531 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6532 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6533 # as well as any symbol that contains `d'.
6534 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6535 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6536 # platforms (ab)use it in PIC code, but their linkers get confused if
6537 # the symbol is explicitly referenced. Since portable code cannot
6538 # rely on this symbol name, it's probably fine to never include it in
6539 # preloaded symbol tables.
6540 extract_expsyms_cmds=
6541
6542 case $host_os in
6543 cygwin* | mingw* | pw32*)
6544 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6545 # When not using gcc, we currently assume that we are using
6546 # Microsoft Visual C++.
6547 if test "$GCC" != yes; then
6548 with_gnu_ld=no
6549 fi
6550 ;;
6551 openbsd*)
6552 with_gnu_ld=no
6553 ;;
6554 esac
6555
6556 ld_shlibs=yes
6557 if test "$with_gnu_ld" = yes; then
6558 # If archive_cmds runs LD, not CC, wlarc should be empty
6559 wlarc='${wl}'
6560
6561 # See if GNU ld supports shared libraries.
6562 case $host_os in
6563 aix3* | aix4* | aix5*)
6564 # On AIX/PPC, the GNU linker is very broken
6565 if test "$host_cpu" != ia64; then
6566 ld_shlibs=no
6567 cat <<EOF 1>&2
6568
6569*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6570*** to be unable to reliably create shared libraries on AIX.
6571*** Therefore, libtool is disabling shared libraries support. If you
6572*** really care for shared libraries, you may want to modify your PATH
6573*** so that a non-GNU linker is found, and then restart.
6574
6575EOF
6576 fi
6577 ;;
6578
6579 amigaos*)
6580 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)'
6581 hardcode_libdir_flag_spec='-L$libdir'
6582 hardcode_minus_L=yes
6583
6584 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6585 # that the semantics of dynamic libraries on AmigaOS, at least up
6586 # to version 4, is to share data among multiple programs linked
6587 # with the same dynamic library. Since this doesn't match the
6588 # behavior of shared libraries on other platforms, we can't use
6589 # them.
6590 ld_shlibs=no
6591 ;;
6592
6593 beos*)
6594 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6595 allow_undefined_flag=unsupported
6596 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6597 # support --undefined. This deserves some investigation. FIXME
6598 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6599 else
6600 ld_shlibs=no
6601 fi
6602 ;;
6603
6604 cygwin* | mingw* | pw32*)
6605 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6606 # as there is no search path for DLLs.
6607 hardcode_libdir_flag_spec='-L$libdir'
6608 allow_undefined_flag=unsupported
6609 always_export_symbols=no
6610 enable_shared_with_static_runtimes=yes
6611 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6612
6613 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6614 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6615 # If the export-symbols file already is a .def file (1st line
6616 # is EXPORTS), use it as is; otherwise, prepend...
6617 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6618 cp $export_symbols $output_objdir/$soname.def;
6619 else
6620 echo EXPORTS > $output_objdir/$soname.def;
6621 cat $export_symbols >> $output_objdir/$soname.def;
6622 fi~
6623 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6624 else
6625 ld_shlibs=no
6626 fi
6627 ;;
6628
6629 netbsd*)
6630 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6631 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6632 wlarc=
6633 else
6634 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6635 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6636 fi
6637 ;;
6638
6639 solaris* | sysv5*)
6640 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6641 ld_shlibs=no
6642 cat <<EOF 1>&2
6643
6644*** Warning: The releases 2.8.* of the GNU linker cannot reliably
6645*** create shared libraries on Solaris systems. Therefore, libtool
6646*** is disabling shared libraries support. We urge you to upgrade GNU
6647*** binutils to release 2.9.1 or newer. Another option is to modify
6648*** your PATH or compiler configuration so that the native linker is
6649*** used, and then restart.
6650
6651EOF
6652 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6653 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6654 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6655 else
6656 ld_shlibs=no
6657 fi
6658 ;;
6659
6660 sunos4*)
6661 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6662 wlarc=
6663 hardcode_direct=yes
6664 hardcode_shlibpath_var=no
6665 ;;
6666
6667 *)
6668 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6669 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6670 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6671 else
6672 ld_shlibs=no
6673 fi
6674 ;;
6675 esac
6676
6677 if test "$ld_shlibs" = yes; then
6678 runpath_var=LD_RUN_PATH
6679 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6680 export_dynamic_flag_spec='${wl}--export-dynamic'
6681 # ancient GNU ld didn't support --whole-archive et. al.
6682 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6683 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6684 else
6685 whole_archive_flag_spec=
6686 fi
6687 fi
6688 else
6689 # PORTME fill in a description of your system's linker (not GNU ld)
6690 case $host_os in
6691 aix3*)
6692 allow_undefined_flag=unsupported
6693 always_export_symbols=yes
6694 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'
6695 # Note: this linker hardcodes the directories in LIBPATH if there
6696 # are no directories specified by -L.
6697 hardcode_minus_L=yes
6698 if test "$GCC" = yes && test -z "$link_static_flag"; then
6699 # Neither direct hardcoding nor static linking is supported with a
6700 # broken collect2.
6701 hardcode_direct=unsupported
6702 fi
6703 ;;
6704
6705 aix4* | aix5*)
6706 if test "$host_cpu" = ia64; then
6707 # On IA64, the linker does run time linking by default, so we don't
6708 # have to do anything special.
6709 aix_use_runtimelinking=no
6710 exp_sym_flag='-Bexport'
6711 no_entry_flag=""
6712 else
6713 # If we're using GNU nm, then we don't want the "-C" option.
6714 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6715 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6716 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'
6717 else
6718 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'
6719 fi
6720 aix_use_runtimelinking=no
6721
6722 # Test if we are trying to use run time linking or normal
6723 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6724 # need to do runtime linking.
6725 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6726 for ld_flag in $LDFLAGS; do
6727 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6728 aix_use_runtimelinking=yes
6729 break
6730 fi
6731 done
6732 esac
6733
6734 exp_sym_flag='-bexport'
6735 no_entry_flag='-bnoentry'
6736 fi
6737
6738 # When large executables or shared objects are built, AIX ld can
6739 # have problems creating the table of contents. If linking a library
6740 # or program results in "error TOC overflow" add -mminimal-toc to
6741 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6742 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6743
6744 archive_cmds=''
6745 hardcode_direct=yes
6746 hardcode_libdir_separator=':'
6747 link_all_deplibs=yes
6748
6749 if test "$GCC" = yes; then
6750 case $host_os in aix4.012|aix4.012.*)
6751 # We only want to do this on AIX 4.2 and lower, the check
6752 # below for broken collect2 doesn't work under 4.3+
6753 collect2name=`${CC} -print-prog-name=collect2`
6754 if test -f "$collect2name" && \
6755 strings "$collect2name" | grep resolve_lib_name >/dev/null
6756 then
6757 # We have reworked collect2
6758 hardcode_direct=yes
6759 else
6760 # We have old collect2
6761 hardcode_direct=unsupported
6762 # It fails to find uninstalled libraries when the uninstalled
6763 # path is not listed in the libpath. Setting hardcode_minus_L
6764 # to unsupported forces relinking
6765 hardcode_minus_L=yes
6766 hardcode_libdir_flag_spec='-L$libdir'
6767 hardcode_libdir_separator=
6768 fi
6769 esac
6770 shared_flag='-shared'
6771 else
6772 # not using gcc
6773 if test "$host_cpu" = ia64; then
6774 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6775 # chokes on -Wl,-G. The following line is correct:
6776 shared_flag='-G'
6777 else
6778 if test "$aix_use_runtimelinking" = yes; then
6779 shared_flag='${wl}-G'
6780 else
6781 shared_flag='${wl}-bM:SRE'
6782 fi
6783 fi
6784 fi
6785
6786 # It seems that -bexpall does not export symbols beginning with
6787 # underscore (_), so it is better to generate a list of symbols to export.
6788 always_export_symbols=yes
6789 if test "$aix_use_runtimelinking" = yes; then
6790 # Warning - without using the other runtime loading flags (-brtl),
6791 # -berok will link without error, but may produce a broken library.
6792 allow_undefined_flag='-berok'
6793 # Determine the default libpath from the value encoded in an empty executable.
6794 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00006795/* confdefs.h. */
6796_ACEOF
6797cat confdefs.h >>conftest.$ac_ext
6798cat >>conftest.$ac_ext <<_ACEOF
6799/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006800
John Criswell7a73b802003-06-30 21:59:07 +00006801int
6802main ()
6803{
John Criswell47fdd832003-07-14 16:52:07 +00006804
John Criswell7a73b802003-06-30 21:59:07 +00006805 ;
6806 return 0;
6807}
6808_ACEOF
John Criswell47fdd832003-07-14 16:52:07 +00006809rm -f conftest.$ac_objext conftest$ac_exeext
6810if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +00006811 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00006812 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +00006813 grep -v '^ *+' conftest.er1 >conftest.err
6814 rm -f conftest.er1
6815 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00006816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6817 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +00006818 { ac_try='test -z "$ac_c_werror_flag"
6819 || test ! -s conftest.err'
6820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6821 (eval $ac_try) 2>&5
6822 ac_status=$?
6823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6824 (exit $ac_status); }; } &&
6825 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00006826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6827 (eval $ac_try) 2>&5
6828 ac_status=$?
6829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6830 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00006831
John Criswell47fdd832003-07-14 16:52:07 +00006832aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6833}'`
6834# Check for a 64-bit object if we didn't find anything.
6835if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6836}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +00006837else
6838 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006839sed 's/^/| /' conftest.$ac_ext >&5
6840
John Criswell7a73b802003-06-30 21:59:07 +00006841fi
Reid Spencer2b51a082004-08-04 00:34:49 +00006842rm -f conftest.err conftest.$ac_objext \
6843 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +00006844if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +00006845
John Criswell47fdd832003-07-14 16:52:07 +00006846 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6847 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"
6848 else
6849 if test "$host_cpu" = ia64; then
6850 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6851 allow_undefined_flag="-z nodefs"
6852 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"
6853 else
6854 # Determine the default libpath from the value encoded in an empty executable.
6855 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00006856/* confdefs.h. */
6857_ACEOF
6858cat confdefs.h >>conftest.$ac_ext
6859cat >>conftest.$ac_ext <<_ACEOF
6860/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006861
John Criswell47fdd832003-07-14 16:52:07 +00006862int
6863main ()
6864{
John Criswell7a73b802003-06-30 21:59:07 +00006865
John Criswell47fdd832003-07-14 16:52:07 +00006866 ;
6867 return 0;
6868}
6869_ACEOF
6870rm -f conftest.$ac_objext conftest$ac_exeext
6871if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +00006872 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +00006873 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +00006874 grep -v '^ *+' conftest.er1 >conftest.err
6875 rm -f conftest.er1
6876 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +00006877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6878 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +00006879 { ac_try='test -z "$ac_c_werror_flag"
6880 || test ! -s conftest.err'
6881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6882 (eval $ac_try) 2>&5
6883 ac_status=$?
6884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6885 (exit $ac_status); }; } &&
6886 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +00006887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6888 (eval $ac_try) 2>&5
6889 ac_status=$?
6890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6891 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00006892
John Criswell47fdd832003-07-14 16:52:07 +00006893aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6894}'`
6895# Check for a 64-bit object if we didn't find anything.
6896if 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; }
6897}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +00006898else
John Criswell47fdd832003-07-14 16:52:07 +00006899 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006900sed 's/^/| /' conftest.$ac_ext >&5
6901
John Criswell47fdd832003-07-14 16:52:07 +00006902fi
Reid Spencer2b51a082004-08-04 00:34:49 +00006903rm -f conftest.err conftest.$ac_objext \
6904 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +00006905if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +00006906
John Criswell47fdd832003-07-14 16:52:07 +00006907 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6908 # Warning - without using the other run time loading flags,
6909 # -berok will link without error, but may produce a broken library.
6910 no_undefined_flag=' ${wl}-bernotok'
6911 allow_undefined_flag=' ${wl}-berok'
6912 # -bexpall does not export symbols beginning with underscore (_)
6913 always_export_symbols=yes
6914 # Exported symbols can be pulled into shared objects from archives
6915 whole_archive_flag_spec=' '
6916 archive_cmds_need_lc=yes
6917 # This is similar to how AIX traditionally builds it's shared libraries.
6918 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 +00006919 fi
6920 fi
John Criswell7a73b802003-06-30 21:59:07 +00006921 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006922
6923 amigaos*)
6924 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)'
6925 hardcode_libdir_flag_spec='-L$libdir'
6926 hardcode_minus_L=yes
6927 # see comment about different semantics on the GNU ld section
6928 ld_shlibs=no
John Criswell7a73b802003-06-30 21:59:07 +00006929 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006930
John Criswell47fdd832003-07-14 16:52:07 +00006931 bsdi4*)
6932 export_dynamic_flag_spec=-rdynamic
6933 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006934
John Criswell47fdd832003-07-14 16:52:07 +00006935 cygwin* | mingw* | pw32*)
6936 # When not using gcc, we currently assume that we are using
6937 # Microsoft Visual C++.
6938 # hardcode_libdir_flag_spec is actually meaningless, as there is
6939 # no search path for DLLs.
6940 hardcode_libdir_flag_spec=' '
6941 allow_undefined_flag=unsupported
6942 # Tell ltmain to make .lib files, not .a files.
6943 libext=lib
6944 # Tell ltmain to make .dll files, not .so files.
6945 shrext=".dll"
6946 # FIXME: Setting linknames here is a bad hack.
6947 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
6948 # The linker will automatically build a .lib file if we build a DLL.
6949 old_archive_From_new_cmds='true'
6950 # FIXME: Should let the user specify the lib program.
6951 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6952 fix_srcfile_path='`cygpath -w "$srcfile"`'
6953 enable_shared_with_static_runtimes=yes
6954 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006955
John Criswell47fdd832003-07-14 16:52:07 +00006956 darwin* | rhapsody*)
6957 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
6958 archive_cmds_need_lc=no
John Criswell7a73b802003-06-30 21:59:07 +00006959 case "$host_os" in
John Criswell47fdd832003-07-14 16:52:07 +00006960 rhapsody* | darwin1.[012])
6961 allow_undefined_flag='-undefined suppress'
6962 ;;
6963 *) # Darwin 1.3 on
6964 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
John Criswell7a73b802003-06-30 21:59:07 +00006965 ;;
6966 esac
John Criswell47fdd832003-07-14 16:52:07 +00006967 # FIXME: Relying on posixy $() will cause problems for
6968 # cross-compilation, but unfortunately the echo tests do not
6969 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
6970 # `"' quotes if we put them in here... so don't!
6971 lt_int_apple_cc_single_mod=no
6972 output_verbose_link_cmd='echo'
6973 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
6974 lt_int_apple_cc_single_mod=yes
6975 fi
6976 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6977 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6978 else
6979 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'
6980 fi
6981 module_cmds='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
6982 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6983 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6984 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}'
6985 else
6986 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}'
6987 fi
6988 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}'
6989 hardcode_direct=no
6990 hardcode_automatic=yes
6991 hardcode_shlibpath_var=unsupported
6992 whole_archive_flag_spec='-all_load $convenience'
6993 link_all_deplibs=yes
John Criswell7a73b802003-06-30 21:59:07 +00006994 fi
John Criswell47fdd832003-07-14 16:52:07 +00006995 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006996
John Criswell47fdd832003-07-14 16:52:07 +00006997 dgux*)
John Criswell7a73b802003-06-30 21:59:07 +00006998 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
John Criswell47fdd832003-07-14 16:52:07 +00006999 hardcode_libdir_flag_spec='-L$libdir'
7000 hardcode_shlibpath_var=no
7001 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007002
John Criswell47fdd832003-07-14 16:52:07 +00007003 freebsd1*)
7004 ld_shlibs=no
7005 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007006
John Criswell47fdd832003-07-14 16:52:07 +00007007 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7008 # support. Future versions do this automatically, but an explicit c++rt0.o
7009 # does not break anything, and helps significantly (at the cost of a little
7010 # extra space).
7011 freebsd2.2*)
7012 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7013 hardcode_libdir_flag_spec='-R$libdir'
7014 hardcode_direct=yes
7015 hardcode_shlibpath_var=no
7016 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007017
John Criswell47fdd832003-07-14 16:52:07 +00007018 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7019 freebsd2*)
7020 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7021 hardcode_direct=yes
7022 hardcode_minus_L=yes
7023 hardcode_shlibpath_var=no
7024 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007025
John Criswell47fdd832003-07-14 16:52:07 +00007026 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7027 freebsd*)
7028 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7029 hardcode_libdir_flag_spec='-R$libdir'
7030 hardcode_direct=yes
7031 hardcode_shlibpath_var=no
7032 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007033
John Criswell47fdd832003-07-14 16:52:07 +00007034 hpux9*)
7035 if test "$GCC" = yes; then
7036 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'
7037 else
7038 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'
7039 fi
7040 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7041 hardcode_libdir_separator=:
7042 hardcode_direct=yes
7043
7044 # hardcode_minus_L: Not really in the search PATH,
7045 # but as the default location of the library.
7046 hardcode_minus_L=yes
7047 export_dynamic_flag_spec='${wl}-E'
7048 ;;
7049
7050 hpux10* | hpux11*)
7051 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7052 case "$host_cpu" in
7053 hppa*64*|ia64*)
7054 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7055 ;;
7056 *)
7057 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7058 ;;
7059 esac
7060 else
7061 case "$host_cpu" in
7062 hppa*64*|ia64*)
7063 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7064 ;;
7065 *)
7066 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7067 ;;
7068 esac
7069 fi
7070 if test "$with_gnu_ld" = no; then
7071 case "$host_cpu" in
7072 hppa*64*)
7073 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7074 hardcode_libdir_flag_spec_ld='+b $libdir'
7075 hardcode_libdir_separator=:
7076 hardcode_direct=no
7077 hardcode_shlibpath_var=no
7078 ;;
7079 ia64*)
7080 hardcode_libdir_flag_spec='-L$libdir'
7081 hardcode_direct=no
7082 hardcode_shlibpath_var=no
7083
7084 # hardcode_minus_L: Not really in the search PATH,
7085 # but as the default location of the library.
7086 hardcode_minus_L=yes
7087 ;;
7088 *)
7089 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7090 hardcode_libdir_separator=:
7091 hardcode_direct=yes
7092 export_dynamic_flag_spec='${wl}-E'
7093
7094 # hardcode_minus_L: Not really in the search PATH,
7095 # but as the default location of the library.
7096 hardcode_minus_L=yes
7097 ;;
7098 esac
7099 fi
7100 ;;
7101
7102 irix5* | irix6* | nonstopux*)
7103 if test "$GCC" = yes; then
7104 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'
7105 else
7106 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'
7107 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7108 fi
7109 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7110 hardcode_libdir_separator=:
7111 link_all_deplibs=yes
7112 ;;
7113
7114 netbsd*)
7115 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7116 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7117 else
7118 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7119 fi
7120 hardcode_libdir_flag_spec='-R$libdir'
7121 hardcode_direct=yes
7122 hardcode_shlibpath_var=no
7123 ;;
7124
7125 newsos6)
7126 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7127 hardcode_direct=yes
7128 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7129 hardcode_libdir_separator=:
7130 hardcode_shlibpath_var=no
7131 ;;
7132
7133 openbsd*)
7134 hardcode_direct=yes
7135 hardcode_shlibpath_var=no
7136 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7137 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7138 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7139 export_dynamic_flag_spec='${wl}-E'
7140 else
7141 case $host_os in
7142 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7143 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7144 hardcode_libdir_flag_spec='-R$libdir'
7145 ;;
7146 *)
7147 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7148 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7149 ;;
7150 esac
7151 fi
7152 ;;
7153
7154 os2*)
7155 hardcode_libdir_flag_spec='-L$libdir'
7156 hardcode_minus_L=yes
7157 allow_undefined_flag=unsupported
7158 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'
7159 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7160 ;;
7161
7162 osf3*)
7163 if test "$GCC" = yes; then
7164 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7165 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7166 else
7167 allow_undefined_flag=' -expect_unresolved \*'
7168 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7169 fi
7170 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7171 hardcode_libdir_separator=:
7172 ;;
7173
7174 osf4* | osf5*) # as osf3* with the addition of -msym flag
7175 if test "$GCC" = yes; then
7176 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7177 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7178 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7179 else
7180 allow_undefined_flag=' -expect_unresolved \*'
7181 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7182 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7183 $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'
7184
7185 # Both c and cxx compiler support -rpath directly
7186 hardcode_libdir_flag_spec='-rpath $libdir'
7187 fi
7188 hardcode_libdir_separator=:
7189 ;;
7190
7191 sco3.2v5*)
John Criswell7a73b802003-06-30 21:59:07 +00007192 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7193 hardcode_shlibpath_var=no
John Criswell47fdd832003-07-14 16:52:07 +00007194 export_dynamic_flag_spec='${wl}-Bexport'
John Criswell7a73b802003-06-30 21:59:07 +00007195 runpath_var=LD_RUN_PATH
7196 hardcode_runpath_var=yes
John Criswell47fdd832003-07-14 16:52:07 +00007197 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007198
John Criswell47fdd832003-07-14 16:52:07 +00007199 solaris*)
7200 no_undefined_flag=' -z text'
7201 if test "$GCC" = yes; then
7202 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7203 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7204 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7205 else
7206 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7207 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7208 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7209 fi
7210 hardcode_libdir_flag_spec='-R$libdir'
7211 hardcode_shlibpath_var=no
7212 case $host_os in
7213 solaris2.[0-5] | solaris2.[0-5].*) ;;
7214 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7215 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7216 esac
7217 link_all_deplibs=yes
7218 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007219
John Criswell47fdd832003-07-14 16:52:07 +00007220 sunos4*)
7221 if test "x$host_vendor" = xsequent; then
7222 # Use $CC to link under sequent, because it throws in some extra .o
7223 # files that make .init and .fini sections work.
7224 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7225 else
7226 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7227 fi
7228 hardcode_libdir_flag_spec='-L$libdir'
7229 hardcode_direct=yes
7230 hardcode_minus_L=yes
7231 hardcode_shlibpath_var=no
7232 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007233
John Criswell47fdd832003-07-14 16:52:07 +00007234 sysv4)
7235 case $host_vendor in
7236 sni)
7237 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7238 hardcode_direct=yes # is this really true???
7239 ;;
7240 siemens)
7241 ## LD is ld it makes a PLAMLIB
7242 ## CC just makes a GrossModule.
7243 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7244 reload_cmds='$CC -r -o $output$reload_objs'
7245 hardcode_direct=no
7246 ;;
7247 motorola)
7248 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7249 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7250 ;;
7251 esac
7252 runpath_var='LD_RUN_PATH'
7253 hardcode_shlibpath_var=no
7254 ;;
7255
7256 sysv4.3*)
7257 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7258 hardcode_shlibpath_var=no
7259 export_dynamic_flag_spec='-Bexport'
7260 ;;
7261
7262 sysv4*MP*)
7263 if test -d /usr/nec; then
7264 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7265 hardcode_shlibpath_var=no
7266 runpath_var=LD_RUN_PATH
7267 hardcode_runpath_var=yes
7268 ld_shlibs=yes
7269 fi
7270 ;;
7271
7272 sysv4.2uw2*)
7273 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7274 hardcode_direct=yes
7275 hardcode_minus_L=no
7276 hardcode_shlibpath_var=no
7277 hardcode_runpath_var=yes
7278 runpath_var=LD_RUN_PATH
7279 ;;
7280
7281 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7282 no_undefined_flag='${wl}-z ${wl}text'
7283 if test "$GCC" = yes; then
7284 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7285 else
7286 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7287 fi
7288 runpath_var='LD_RUN_PATH'
7289 hardcode_shlibpath_var=no
7290 ;;
7291
7292 sysv5*)
7293 no_undefined_flag=' -z text'
7294 # $CC -shared without GNU ld will not create a library from C++
7295 # object files and a static libstdc++, better avoid it by now
7296 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7297 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7298 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7299 hardcode_libdir_flag_spec=
7300 hardcode_shlibpath_var=no
7301 runpath_var='LD_RUN_PATH'
7302 ;;
7303
7304 uts4*)
7305 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7306 hardcode_libdir_flag_spec='-L$libdir'
7307 hardcode_shlibpath_var=no
7308 ;;
7309
7310 *)
7311 ld_shlibs=no
7312 ;;
7313 esac
7314 fi
7315
John Criswell7a73b802003-06-30 21:59:07 +00007316echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7317echo "${ECHO_T}$ld_shlibs" >&6
7318test "$ld_shlibs" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00007319
John Criswell47fdd832003-07-14 16:52:07 +00007320variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7321if test "$GCC" = yes; then
7322 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7323fi
7324
7325#
7326# Do we need to explicitly link libc?
7327#
7328case "x$archive_cmds_need_lc" in
7329x|xyes)
7330 # Assume -lc should be added
7331 archive_cmds_need_lc=yes
7332
7333 if test "$enable_shared" = yes && test "$GCC" = yes; then
7334 case $archive_cmds in
7335 *'~'*)
7336 # FIXME: we may have to deal with multi-command sequences.
7337 ;;
7338 '$CC '*)
7339 # Test whether the compiler implicitly links with -lc since on some
7340 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7341 # to ld, don't add -lc before -lgcc.
7342 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7343echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7344 $rm conftest*
7345 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7346
7347 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7348 (eval $ac_compile) 2>&5
7349 ac_status=$?
7350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7351 (exit $ac_status); } 2>conftest.err; then
7352 soname=conftest
7353 lib=conftest
7354 libobjs=conftest.$ac_objext
7355 deplibs=
7356 wl=$lt_prog_compiler_wl
7357 compiler_flags=-v
7358 linker_flags=-v
7359 verstring=
7360 output_objdir=.
7361 libname=conftest
7362 lt_save_allow_undefined_flag=$allow_undefined_flag
7363 allow_undefined_flag=
7364 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7365 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7366 ac_status=$?
7367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7368 (exit $ac_status); }
7369 then
7370 archive_cmds_need_lc=no
7371 else
7372 archive_cmds_need_lc=yes
7373 fi
7374 allow_undefined_flag=$lt_save_allow_undefined_flag
7375 else
7376 cat conftest.err 1>&5
7377 fi
7378 $rm conftest*
7379 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7380echo "${ECHO_T}$archive_cmds_need_lc" >&6
7381 ;;
7382 esac
7383 fi
7384 ;;
7385esac
7386
John Criswell7a73b802003-06-30 21:59:07 +00007387echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7388echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7389hardcode_action=
7390if test -n "$hardcode_libdir_flag_spec" || \
John Criswell47fdd832003-07-14 16:52:07 +00007391 test -n "$runpath_var " || \
7392 test "X$hardcode_automatic"="Xyes" ; then
John Criswell7a73b802003-06-30 21:59:07 +00007393
7394 # We can hardcode non-existant directories.
7395 if test "$hardcode_direct" != no &&
7396 # If the only mechanism to avoid hardcoding is shlibpath_var, we
7397 # have to relink, otherwise we might link with an installed library
7398 # when we should be linking with a yet-to-be-installed one
John Criswell47fdd832003-07-14 16:52:07 +00007399 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
John Criswell7a73b802003-06-30 21:59:07 +00007400 test "$hardcode_minus_L" != no; then
7401 # Linking always hardcodes the temporary library directory.
7402 hardcode_action=relink
7403 else
7404 # We can link without hardcoding, and we can hardcode nonexisting dirs.
7405 hardcode_action=immediate
7406 fi
7407else
7408 # We cannot hardcode anything, or else we can only hardcode existing
7409 # directories.
7410 hardcode_action=unsupported
7411fi
7412echo "$as_me:$LINENO: result: $hardcode_action" >&5
7413echo "${ECHO_T}$hardcode_action" >&6
John Criswell7a73b802003-06-30 21:59:07 +00007414
John Criswell47fdd832003-07-14 16:52:07 +00007415if test "$hardcode_action" = relink; then
7416 # Fast installation is not supported
7417 enable_fast_install=no
7418elif test "$shlibpath_overrides_runpath" = yes ||
7419 test "$enable_shared" = no; then
7420 # Fast installation is not necessary
7421 enable_fast_install=needless
7422fi
7423
John Criswell7a73b802003-06-30 21:59:07 +00007424striplib=
7425old_striplib=
7426echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7427echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7428if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7429 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7430 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7431 echo "$as_me:$LINENO: result: yes" >&5
7432echo "${ECHO_T}yes" >&6
7433else
John Criswell47fdd832003-07-14 16:52:07 +00007434# FIXME - insert some real tests, host_os isn't really good enough
7435 case $host_os in
7436 darwin*)
7437 if test -n "$STRIP" ; then
7438 striplib="$STRIP -x"
7439 echo "$as_me:$LINENO: result: yes" >&5
7440echo "${ECHO_T}yes" >&6
7441 else
John Criswell7a73b802003-06-30 21:59:07 +00007442 echo "$as_me:$LINENO: result: no" >&5
7443echo "${ECHO_T}no" >&6
7444fi
John Criswell47fdd832003-07-14 16:52:07 +00007445 ;;
7446 *)
7447 echo "$as_me:$LINENO: result: no" >&5
7448echo "${ECHO_T}no" >&6
7449 ;;
7450 esac
7451fi
John Criswell7a73b802003-06-30 21:59:07 +00007452
John Criswell7a73b802003-06-30 21:59:07 +00007453echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7454echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7455library_names_spec=
7456libname_spec='lib$name'
7457soname_spec=
John Criswell47fdd832003-07-14 16:52:07 +00007458shrext=".so"
John Criswell7a73b802003-06-30 21:59:07 +00007459postinstall_cmds=
7460postuninstall_cmds=
7461finish_cmds=
7462finish_eval=
7463shlibpath_var=
7464shlibpath_overrides_runpath=unknown
7465version_type=none
7466dynamic_linker="$host_os ld.so"
7467sys_lib_dlsearch_path_spec="/lib /usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +00007468if test "$GCC" = yes; then
7469 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7470 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7471 # if the path contains ";" then we assume it to be the separator
7472 # otherwise default to the standard path separator (i.e. ":") - it is
7473 # assumed that no part of a normal pathname contains ";" but that should
7474 # okay in the real world where ";" in dirpaths is itself problematic.
7475 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7476 else
7477 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7478 fi
7479else
7480 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7481fi
7482need_lib_prefix=unknown
7483hardcode_into_libs=no
7484
7485# when you set need_version to no, make sure it does not cause -set_version
7486# flags to be left without arguments
7487need_version=unknown
John Criswell7a73b802003-06-30 21:59:07 +00007488
7489case $host_os in
7490aix3*)
7491 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007492 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +00007493 shlibpath_var=LIBPATH
7494
John Criswell47fdd832003-07-14 16:52:07 +00007495 # AIX 3 has no versioning support, so we append a major version to the name.
7496 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007497 ;;
7498
7499aix4* | aix5*)
7500 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007501 need_lib_prefix=no
7502 need_version=no
7503 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +00007504 if test "$host_cpu" = ia64; then
7505 # AIX 5 supports IA64
John Criswell47fdd832003-07-14 16:52:07 +00007506 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007507 shlibpath_var=LD_LIBRARY_PATH
7508 else
7509 # With GCC up to 2.95.x, collect2 would create an import file
7510 # for dependence libraries. The import file would start with
7511 # the line `#! .'. This would cause the generated library to
7512 # depend on `.', always an invalid library. This was fixed in
7513 # development snapshots of GCC prior to 3.0.
7514 case $host_os in
7515 aix4 | aix4.[01] | aix4.[01].*)
John Criswell47fdd832003-07-14 16:52:07 +00007516 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7517 echo ' yes '
7518 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7519 :
7520 else
7521 can_build_shared=no
7522 fi
7523 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007524 esac
John Criswell47fdd832003-07-14 16:52:07 +00007525 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7526 # soname into executable. Probably we can add versioning support to
7527 # collect2, so additional links can be useful in future.
John Criswell7a73b802003-06-30 21:59:07 +00007528 if test "$aix_use_runtimelinking" = yes; then
7529 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7530 # instead of lib<name>.a to let people know that these are not
7531 # typical AIX shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +00007532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007533 else
7534 # We preserve .a as extension for shared libraries through AIX4.2
7535 # and later when we are not doing run time linking.
7536 library_names_spec='${libname}${release}.a $libname.a'
John Criswell47fdd832003-07-14 16:52:07 +00007537 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007538 fi
7539 shlibpath_var=LIBPATH
7540 fi
7541 ;;
7542
7543amigaos*)
7544 library_names_spec='$libname.ixlibrary $libname.a'
7545 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7546 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'
7547 ;;
7548
7549beos*)
John Criswell47fdd832003-07-14 16:52:07 +00007550 library_names_spec='${libname}${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007551 dynamic_linker="$host_os ld.so"
7552 shlibpath_var=LIBRARY_PATH
7553 ;;
7554
7555bsdi4*)
7556 version_type=linux
7557 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007558 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7559 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007560 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7561 shlibpath_var=LD_LIBRARY_PATH
7562 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7563 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
John Criswell7a73b802003-06-30 21:59:07 +00007564 # the default ld.so.conf also contains /usr/contrib/lib and
7565 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7566 # libtool to hard-code these into programs
7567 ;;
7568
7569cygwin* | mingw* | pw32*)
7570 version_type=windows
John Criswell47fdd832003-07-14 16:52:07 +00007571 shrext=".dll"
John Criswell7a73b802003-06-30 21:59:07 +00007572 need_version=no
7573 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +00007574
John Criswell7a73b802003-06-30 21:59:07 +00007575 case $GCC,$host_os in
John Criswell47fdd832003-07-14 16:52:07 +00007576 yes,cygwin* | yes,mingw* | yes,pw32*)
John Criswell7a73b802003-06-30 21:59:07 +00007577 library_names_spec='$libname.dll.a'
John Criswell47fdd832003-07-14 16:52:07 +00007578 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7579 postinstall_cmds='base_file=`basename \${file}`~
7580 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
John Criswell7a73b802003-06-30 21:59:07 +00007581 dldir=$destdir/`dirname \$dlpath`~
7582 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +00007583 $install_prog $dir/$dlname \$dldir/$dlname'
7584 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
John Criswell7a73b802003-06-30 21:59:07 +00007585 dlpath=$dir/\$dldll~
7586 $rm \$dlpath'
John Criswell47fdd832003-07-14 16:52:07 +00007587 shlibpath_overrides_runpath=yes
7588
7589 case $host_os in
7590 cygwin*)
7591 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7592 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7593 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
7594 ;;
7595 mingw*)
7596 # MinGW DLLs use traditional 'lib' prefix
7597 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7598 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7599 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7600 # It is most probably a Windows format PATH printed by
7601 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7602 # path with ; separators, and with drive letters. We can handle the
7603 # drive letters (cygwin fileutils understands them), so leave them,
7604 # especially as we might pass files found there to a mingw objdump,
7605 # which wouldn't understand a cygwinified path. Ahh.
7606 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7607 else
7608 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7609 fi
7610 ;;
7611 pw32*)
7612 # pw32 DLLs use 'pw' prefix rather than 'lib'
7613 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7614 ;;
7615 esac
John Criswell7a73b802003-06-30 21:59:07 +00007616 ;;
John Criswell47fdd832003-07-14 16:52:07 +00007617
John Criswell7a73b802003-06-30 21:59:07 +00007618 *)
John Criswell47fdd832003-07-14 16:52:07 +00007619 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
John Criswell7a73b802003-06-30 21:59:07 +00007620 ;;
7621 esac
7622 dynamic_linker='Win32 ld.exe'
7623 # FIXME: first we should search . and the directory the executable is in
7624 shlibpath_var=PATH
7625 ;;
7626
7627darwin* | rhapsody*)
7628 dynamic_linker="$host_os dyld"
7629 version_type=darwin
7630 need_lib_prefix=no
7631 need_version=no
7632 # FIXME: Relying on posixy $() will cause problems for
7633 # cross-compilation, but unfortunately the echo tests do not
7634 # yet detect zsh echo's removal of \ escapes.
John Criswell47fdd832003-07-14 16:52:07 +00007635 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7636 soname_spec='${libname}${release}${major}$shared_ext'
John Criswell7a73b802003-06-30 21:59:07 +00007637 shlibpath_overrides_runpath=yes
7638 shlibpath_var=DYLD_LIBRARY_PATH
John Criswell47fdd832003-07-14 16:52:07 +00007639 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
7640 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7641 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7642 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"`
7643 fi
7644 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7645 ;;
7646
7647dgux*)
7648 version_type=linux
7649 need_lib_prefix=no
7650 need_version=no
7651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7652 soname_spec='${libname}${release}${shared_ext}$major'
7653 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +00007654 ;;
7655
7656freebsd1*)
7657 dynamic_linker=no
7658 ;;
7659
7660freebsd*)
7661 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7662 version_type=freebsd-$objformat
7663 case $version_type in
7664 freebsd-elf*)
John Criswell47fdd832003-07-14 16:52:07 +00007665 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007666 need_version=no
7667 need_lib_prefix=no
7668 ;;
7669 freebsd-*)
John Criswell47fdd832003-07-14 16:52:07 +00007670 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +00007671 need_version=yes
7672 ;;
7673 esac
7674 shlibpath_var=LD_LIBRARY_PATH
7675 case $host_os in
7676 freebsd2*)
7677 shlibpath_overrides_runpath=yes
7678 ;;
John Criswell47fdd832003-07-14 16:52:07 +00007679 freebsd3.01* | freebsdelf3.01*)
7680 shlibpath_overrides_runpath=yes
7681 hardcode_into_libs=yes
7682 ;;
7683 *) # from 3.2 on
John Criswell7a73b802003-06-30 21:59:07 +00007684 shlibpath_overrides_runpath=no
7685 hardcode_into_libs=yes
7686 ;;
7687 esac
7688 ;;
7689
7690gnu*)
7691 version_type=linux
7692 need_lib_prefix=no
7693 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7695 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007696 shlibpath_var=LD_LIBRARY_PATH
7697 hardcode_into_libs=yes
7698 ;;
7699
7700hpux9* | hpux10* | hpux11*)
7701 # Give a soname corresponding to the major version so that dld.sl refuses to
7702 # link against other versions.
John Criswell7a73b802003-06-30 21:59:07 +00007703 version_type=sunos
7704 need_lib_prefix=no
7705 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007706 case "$host_cpu" in
7707 ia64*)
7708 shrext='.so'
7709 hardcode_into_libs=yes
7710 dynamic_linker="$host_os dld.so"
7711 shlibpath_var=LD_LIBRARY_PATH
7712 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7713 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7714 soname_spec='${libname}${release}${shared_ext}$major'
7715 if test "X$HPUX_IA64_MODE" = X32; then
7716 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7717 else
7718 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7719 fi
7720 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7721 ;;
7722 hppa*64*)
7723 shrext='.sl'
7724 hardcode_into_libs=yes
7725 dynamic_linker="$host_os dld.sl"
7726 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7727 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7729 soname_spec='${libname}${release}${shared_ext}$major'
7730 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7731 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7732 ;;
7733 *)
7734 shrext='.sl'
7735 dynamic_linker="$host_os dld.sl"
7736 shlibpath_var=SHLIB_PATH
7737 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7739 soname_spec='${libname}${release}${shared_ext}$major'
7740 ;;
7741 esac
John Criswell7a73b802003-06-30 21:59:07 +00007742 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7743 postinstall_cmds='chmod 555 $lib'
7744 ;;
7745
John Criswell47fdd832003-07-14 16:52:07 +00007746irix5* | irix6* | nonstopux*)
7747 case $host_os in
7748 nonstopux*) version_type=nonstopux ;;
7749 *)
7750 if test "$lt_cv_prog_gnu_ld" = yes; then
7751 version_type=linux
7752 else
7753 version_type=irix
7754 fi ;;
7755 esac
John Criswell7a73b802003-06-30 21:59:07 +00007756 need_lib_prefix=no
7757 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007758 soname_spec='${libname}${release}${shared_ext}$major'
7759 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 +00007760 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00007761 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +00007762 libsuff= shlibsuff=
7763 ;;
7764 *)
7765 case $LD in # libtool.m4 will add one of these switches to LD
John Criswell47fdd832003-07-14 16:52:07 +00007766 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7767 libsuff= shlibsuff= libmagic=32-bit;;
7768 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7769 libsuff=32 shlibsuff=N32 libmagic=N32;;
7770 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7771 libsuff=64 shlibsuff=64 libmagic=64-bit;;
John Criswell7a73b802003-06-30 21:59:07 +00007772 *) libsuff= shlibsuff= libmagic=never-match;;
7773 esac
7774 ;;
7775 esac
7776 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7777 shlibpath_overrides_runpath=no
7778 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7779 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
John Criswell47fdd832003-07-14 16:52:07 +00007780 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +00007781 ;;
7782
7783# No shared lib support for Linux oldld, aout, or coff.
John Criswell47fdd832003-07-14 16:52:07 +00007784linux*oldld* | linux*aout* | linux*coff*)
John Criswell7a73b802003-06-30 21:59:07 +00007785 dynamic_linker=no
7786 ;;
7787
7788# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +00007789linux*)
John Criswell7a73b802003-06-30 21:59:07 +00007790 version_type=linux
7791 need_lib_prefix=no
7792 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7794 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007795 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7796 shlibpath_var=LD_LIBRARY_PATH
7797 shlibpath_overrides_runpath=no
7798 # This implies no fast_install, which is unacceptable.
7799 # Some rework will be needed to allow for fast_install
7800 # before this can be enabled.
7801 hardcode_into_libs=yes
7802
7803 # We used to test for /lib/ld.so.1 and disable shared libraries on
7804 # powerpc, because MkLinux only supported shared libraries with the
7805 # GNU dynamic linker. Since this was broken with cross compilers,
7806 # most powerpc-linux boxes support dynamic linking these days and
7807 # people can always --disable-shared, the test was removed, and we
7808 # assume the GNU/Linux dynamic linker is in use.
7809 dynamic_linker='GNU/Linux ld.so'
7810 ;;
7811
7812netbsd*)
7813 version_type=sunos
7814 need_lib_prefix=no
7815 need_version=no
7816 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
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:/sbin" ldconfig -m $libdir'
7819 dynamic_linker='NetBSD (a.out) ld.so'
7820 else
John Criswell47fdd832003-07-14 16:52:07 +00007821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
7822 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007823 dynamic_linker='NetBSD ld.elf_so'
7824 fi
7825 shlibpath_var=LD_LIBRARY_PATH
7826 shlibpath_overrides_runpath=yes
7827 hardcode_into_libs=yes
7828 ;;
7829
7830newsos6)
7831 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7833 shlibpath_var=LD_LIBRARY_PATH
7834 shlibpath_overrides_runpath=yes
7835 ;;
7836
7837nto-qnx)
7838 version_type=linux
7839 need_lib_prefix=no
7840 need_version=no
7841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7842 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007843 shlibpath_var=LD_LIBRARY_PATH
7844 shlibpath_overrides_runpath=yes
7845 ;;
7846
7847openbsd*)
7848 version_type=sunos
7849 need_lib_prefix=no
7850 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007851 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7852 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7853 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +00007854 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 +00007855 case $host_os in
7856 openbsd2.[89] | openbsd2.[89].*)
7857 shlibpath_overrides_runpath=no
7858 ;;
7859 *)
7860 shlibpath_overrides_runpath=yes
7861 ;;
7862 esac
John Criswell7a73b802003-06-30 21:59:07 +00007863 else
7864 shlibpath_overrides_runpath=yes
7865 fi
John Criswell7a73b802003-06-30 21:59:07 +00007866 ;;
7867
7868os2*)
7869 libname_spec='$name'
John Criswell47fdd832003-07-14 16:52:07 +00007870 shrext=".dll"
John Criswell7a73b802003-06-30 21:59:07 +00007871 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +00007872 library_names_spec='$libname${shared_ext} $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +00007873 dynamic_linker='OS/2 ld.exe'
7874 shlibpath_var=LIBPATH
7875 ;;
7876
7877osf3* | osf4* | osf5*)
7878 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +00007879 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +00007880 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007881 soname_spec='${libname}${release}${shared_ext}$major'
7882 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007883 shlibpath_var=LD_LIBRARY_PATH
7884 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7885 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7886 ;;
7887
7888sco3.2v5*)
7889 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +00007890 soname_spec='${libname}${release}${shared_ext}$major'
7891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007892 shlibpath_var=LD_LIBRARY_PATH
7893 ;;
7894
7895solaris*)
7896 version_type=linux
7897 need_lib_prefix=no
7898 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007899 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7900 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007901 shlibpath_var=LD_LIBRARY_PATH
7902 shlibpath_overrides_runpath=yes
7903 hardcode_into_libs=yes
7904 # ldd complains unless libraries are executable
7905 postinstall_cmds='chmod +x $lib'
7906 ;;
7907
7908sunos4*)
7909 version_type=sunos
John Criswell47fdd832003-07-14 16:52:07 +00007910 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +00007911 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7912 shlibpath_var=LD_LIBRARY_PATH
7913 shlibpath_overrides_runpath=yes
7914 if test "$with_gnu_ld" = yes; then
7915 need_lib_prefix=no
7916 fi
7917 need_version=yes
7918 ;;
7919
7920sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7921 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007922 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7923 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007924 shlibpath_var=LD_LIBRARY_PATH
7925 case $host_vendor in
7926 sni)
7927 shlibpath_overrides_runpath=no
John Criswell47fdd832003-07-14 16:52:07 +00007928 need_lib_prefix=no
7929 export_dynamic_flag_spec='${wl}-Blargedynsym'
7930 runpath_var=LD_RUN_PATH
7931 ;;
7932 siemens)
7933 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +00007934 ;;
7935 motorola)
7936 need_lib_prefix=no
7937 need_version=no
7938 shlibpath_overrides_runpath=no
7939 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7940 ;;
7941 esac
7942 ;;
7943
John Criswell7a73b802003-06-30 21:59:07 +00007944sysv4*MP*)
7945 if test -d /usr/nec ;then
7946 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007947 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7948 soname_spec='$libname${shared_ext}.$major'
John Criswell7a73b802003-06-30 21:59:07 +00007949 shlibpath_var=LD_LIBRARY_PATH
7950 fi
7951 ;;
7952
John Criswell47fdd832003-07-14 16:52:07 +00007953uts4*)
7954 version_type=linux
7955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7956 soname_spec='${libname}${release}${shared_ext}$major'
7957 shlibpath_var=LD_LIBRARY_PATH
7958 ;;
7959
John Criswell7a73b802003-06-30 21:59:07 +00007960*)
7961 dynamic_linker=no
7962 ;;
7963esac
7964echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7965echo "${ECHO_T}$dynamic_linker" >&6
7966test "$dynamic_linker" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00007967
7968if test "x$enable_dlopen" != xyes; then
7969 enable_dlopen=unknown
7970 enable_dlopen_self=unknown
7971 enable_dlopen_self_static=unknown
7972else
7973 lt_cv_dlopen=no
7974 lt_cv_dlopen_libs=
7975
7976 case $host_os in
7977 beos*)
7978 lt_cv_dlopen="load_add_on"
7979 lt_cv_dlopen_libs=
7980 lt_cv_dlopen_self=yes
7981 ;;
7982
John Criswell47fdd832003-07-14 16:52:07 +00007983 mingw* | pw32*)
John Criswell7a73b802003-06-30 21:59:07 +00007984 lt_cv_dlopen="LoadLibrary"
7985 lt_cv_dlopen_libs=
7986 ;;
7987
John Criswell47fdd832003-07-14 16:52:07 +00007988 cygwin*)
7989 lt_cv_dlopen="dlopen"
7990 lt_cv_dlopen_libs=
7991 ;;
7992
7993 darwin*)
7994 # if libdl is installed we need to link against it
7995 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7996echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7997if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7998 echo $ECHO_N "(cached) $ECHO_C" >&6
7999else
8000 ac_check_lib_save_LIBS=$LIBS
8001LIBS="-ldl $LIBS"
8002cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00008003/* confdefs.h. */
8004_ACEOF
8005cat confdefs.h >>conftest.$ac_ext
8006cat >>conftest.$ac_ext <<_ACEOF
8007/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00008008
8009/* Override any gcc2 internal prototype to avoid an error. */
8010#ifdef __cplusplus
8011extern "C"
8012#endif
8013/* We use char because int might match the return type of a gcc2
8014 builtin and then its argument prototype would still apply. */
8015char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +00008016int
8017main ()
8018{
8019dlopen ();
8020 ;
8021 return 0;
8022}
8023_ACEOF
8024rm -f conftest.$ac_objext conftest$ac_exeext
8025if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +00008026 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +00008027 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +00008028 grep -v '^ *+' conftest.er1 >conftest.err
8029 rm -f conftest.er1
8030 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +00008031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8032 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +00008033 { ac_try='test -z "$ac_c_werror_flag"
8034 || test ! -s conftest.err'
8035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8036 (eval $ac_try) 2>&5
8037 ac_status=$?
8038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8039 (exit $ac_status); }; } &&
8040 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +00008041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8042 (eval $ac_try) 2>&5
8043 ac_status=$?
8044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8045 (exit $ac_status); }; }; then
8046 ac_cv_lib_dl_dlopen=yes
8047else
8048 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008049sed 's/^/| /' conftest.$ac_ext >&5
8050
John Criswell47fdd832003-07-14 16:52:07 +00008051ac_cv_lib_dl_dlopen=no
8052fi
Reid Spencer2b51a082004-08-04 00:34:49 +00008053rm -f conftest.err conftest.$ac_objext \
8054 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +00008055LIBS=$ac_check_lib_save_LIBS
8056fi
8057echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8058echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8059if test $ac_cv_lib_dl_dlopen = yes; then
8060 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8061else
8062
8063 lt_cv_dlopen="dyld"
8064 lt_cv_dlopen_libs=
8065 lt_cv_dlopen_self=yes
8066
8067fi
8068
8069 ;;
8070
John Criswell7a73b802003-06-30 21:59:07 +00008071 *)
8072 echo "$as_me:$LINENO: checking for shl_load" >&5
8073echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8074if test "${ac_cv_func_shl_load+set}" = set; then
8075 echo $ECHO_N "(cached) $ECHO_C" >&6
8076else
8077 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00008078/* confdefs.h. */
8079_ACEOF
8080cat confdefs.h >>conftest.$ac_ext
8081cat >>conftest.$ac_ext <<_ACEOF
8082/* end confdefs.h. */
Reid Spencer2b51a082004-08-04 00:34:49 +00008083/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8084 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8085#define shl_load innocuous_shl_load
8086
John Criswell7a73b802003-06-30 21:59:07 +00008087/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +00008088 which can conflict with char shl_load (); below.
8089 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8090 <limits.h> exists even on freestanding compilers. */
Reid Spencer2b51a082004-08-04 00:34:49 +00008091
John Criswell0c38eaf2003-09-10 15:17:25 +00008092#ifdef __STDC__
8093# include <limits.h>
8094#else
8095# include <assert.h>
8096#endif
Reid Spencer2b51a082004-08-04 00:34:49 +00008097
8098#undef shl_load
8099
John Criswell7a73b802003-06-30 21:59:07 +00008100/* Override any gcc2 internal prototype to avoid an error. */
8101#ifdef __cplusplus
8102extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +00008103{
John Criswell7a73b802003-06-30 21:59:07 +00008104#endif
8105/* We use char because int might match the return type of a gcc2
8106 builtin and then its argument prototype would still apply. */
8107char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +00008108/* The GNU C library defines this for functions which it implements
8109 to always fail with ENOSYS. Some functions are actually named
8110 something starting with __ and the normal name is an alias. */
8111#if defined (__stub_shl_load) || defined (__stub___shl_load)
8112choke me
8113#else
John Criswell0c38eaf2003-09-10 15:17:25 +00008114char (*f) () = shl_load;
8115#endif
8116#ifdef __cplusplus
8117}
John Criswell7a73b802003-06-30 21:59:07 +00008118#endif
8119
John Criswell0c38eaf2003-09-10 15:17:25 +00008120int
8121main ()
8122{
8123return f != shl_load;
John Criswell7a73b802003-06-30 21:59:07 +00008124 ;
8125 return 0;
8126}
8127_ACEOF
8128rm -f conftest.$ac_objext conftest$ac_exeext
8129if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +00008130 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00008131 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +00008132 grep -v '^ *+' conftest.er1 >conftest.err
8133 rm -f conftest.er1
8134 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00008135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8136 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +00008137 { ac_try='test -z "$ac_c_werror_flag"
8138 || test ! -s conftest.err'
8139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8140 (eval $ac_try) 2>&5
8141 ac_status=$?
8142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8143 (exit $ac_status); }; } &&
8144 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00008145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8146 (eval $ac_try) 2>&5
8147 ac_status=$?
8148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8149 (exit $ac_status); }; }; then
8150 ac_cv_func_shl_load=yes
8151else
8152 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008153sed 's/^/| /' conftest.$ac_ext >&5
8154
John Criswell7a73b802003-06-30 21:59:07 +00008155ac_cv_func_shl_load=no
8156fi
Reid Spencer2b51a082004-08-04 00:34:49 +00008157rm -f conftest.err conftest.$ac_objext \
8158 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00008159fi
8160echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8161echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8162if test $ac_cv_func_shl_load = yes; then
8163 lt_cv_dlopen="shl_load"
8164else
8165 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8166echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8167if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8168 echo $ECHO_N "(cached) $ECHO_C" >&6
8169else
8170 ac_check_lib_save_LIBS=$LIBS
8171LIBS="-ldld $LIBS"
8172cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00008173/* confdefs.h. */
8174_ACEOF
8175cat confdefs.h >>conftest.$ac_ext
8176cat >>conftest.$ac_ext <<_ACEOF
8177/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008178
8179/* Override any gcc2 internal prototype to avoid an error. */
8180#ifdef __cplusplus
8181extern "C"
8182#endif
8183/* We use char because int might match the return type of a gcc2
8184 builtin and then its argument prototype would still apply. */
8185char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +00008186int
8187main ()
8188{
8189shl_load ();
8190 ;
8191 return 0;
8192}
8193_ACEOF
8194rm -f conftest.$ac_objext conftest$ac_exeext
8195if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +00008196 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00008197 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +00008198 grep -v '^ *+' conftest.er1 >conftest.err
8199 rm -f conftest.er1
8200 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00008201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8202 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +00008203 { ac_try='test -z "$ac_c_werror_flag"
8204 || test ! -s conftest.err'
8205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8206 (eval $ac_try) 2>&5
8207 ac_status=$?
8208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8209 (exit $ac_status); }; } &&
8210 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00008211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8212 (eval $ac_try) 2>&5
8213 ac_status=$?
8214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8215 (exit $ac_status); }; }; then
8216 ac_cv_lib_dld_shl_load=yes
8217else
8218 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008219sed 's/^/| /' conftest.$ac_ext >&5
8220
John Criswell7a73b802003-06-30 21:59:07 +00008221ac_cv_lib_dld_shl_load=no
8222fi
Reid Spencer2b51a082004-08-04 00:34:49 +00008223rm -f conftest.err conftest.$ac_objext \
8224 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00008225LIBS=$ac_check_lib_save_LIBS
8226fi
8227echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8228echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8229if test $ac_cv_lib_dld_shl_load = yes; then
8230 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8231else
8232 echo "$as_me:$LINENO: checking for dlopen" >&5
8233echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8234if test "${ac_cv_func_dlopen+set}" = set; then
8235 echo $ECHO_N "(cached) $ECHO_C" >&6
8236else
8237 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00008238/* confdefs.h. */
8239_ACEOF
8240cat confdefs.h >>conftest.$ac_ext
8241cat >>conftest.$ac_ext <<_ACEOF
8242/* end confdefs.h. */
Reid Spencer2b51a082004-08-04 00:34:49 +00008243/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8244 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8245#define dlopen innocuous_dlopen
8246
John Criswell7a73b802003-06-30 21:59:07 +00008247/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +00008248 which can conflict with char dlopen (); below.
8249 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8250 <limits.h> exists even on freestanding compilers. */
Reid Spencer2b51a082004-08-04 00:34:49 +00008251
John Criswell0c38eaf2003-09-10 15:17:25 +00008252#ifdef __STDC__
8253# include <limits.h>
8254#else
8255# include <assert.h>
8256#endif
Reid Spencer2b51a082004-08-04 00:34:49 +00008257
8258#undef dlopen
8259
John Criswell7a73b802003-06-30 21:59:07 +00008260/* Override any gcc2 internal prototype to avoid an error. */
8261#ifdef __cplusplus
8262extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +00008263{
John Criswell7a73b802003-06-30 21:59:07 +00008264#endif
8265/* We use char because int might match the return type of a gcc2
8266 builtin and then its argument prototype would still apply. */
8267char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +00008268/* The GNU C library defines this for functions which it implements
8269 to always fail with ENOSYS. Some functions are actually named
8270 something starting with __ and the normal name is an alias. */
8271#if defined (__stub_dlopen) || defined (__stub___dlopen)
8272choke me
8273#else
John Criswell0c38eaf2003-09-10 15:17:25 +00008274char (*f) () = dlopen;
8275#endif
8276#ifdef __cplusplus
8277}
John Criswell7a73b802003-06-30 21:59:07 +00008278#endif
8279
John Criswell0c38eaf2003-09-10 15:17:25 +00008280int
8281main ()
8282{
8283return f != dlopen;
John Criswell7a73b802003-06-30 21:59:07 +00008284 ;
8285 return 0;
8286}
8287_ACEOF
8288rm -f conftest.$ac_objext conftest$ac_exeext
8289if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +00008290 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00008291 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +00008292 grep -v '^ *+' conftest.er1 >conftest.err
8293 rm -f conftest.er1
8294 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00008295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8296 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +00008297 { ac_try='test -z "$ac_c_werror_flag"
8298 || test ! -s conftest.err'
8299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8300 (eval $ac_try) 2>&5
8301 ac_status=$?
8302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8303 (exit $ac_status); }; } &&
8304 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00008305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8306 (eval $ac_try) 2>&5
8307 ac_status=$?
8308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8309 (exit $ac_status); }; }; then
8310 ac_cv_func_dlopen=yes
8311else
8312 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008313sed 's/^/| /' conftest.$ac_ext >&5
8314
John Criswell7a73b802003-06-30 21:59:07 +00008315ac_cv_func_dlopen=no
8316fi
Reid Spencer2b51a082004-08-04 00:34:49 +00008317rm -f conftest.err conftest.$ac_objext \
8318 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00008319fi
8320echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8321echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8322if test $ac_cv_func_dlopen = yes; then
8323 lt_cv_dlopen="dlopen"
8324else
8325 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8326echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8327if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8328 echo $ECHO_N "(cached) $ECHO_C" >&6
8329else
8330 ac_check_lib_save_LIBS=$LIBS
8331LIBS="-ldl $LIBS"
8332cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00008333/* confdefs.h. */
8334_ACEOF
8335cat confdefs.h >>conftest.$ac_ext
8336cat >>conftest.$ac_ext <<_ACEOF
8337/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008338
8339/* Override any gcc2 internal prototype to avoid an error. */
8340#ifdef __cplusplus
8341extern "C"
8342#endif
8343/* We use char because int might match the return type of a gcc2
8344 builtin and then its argument prototype would still apply. */
8345char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +00008346int
8347main ()
8348{
8349dlopen ();
8350 ;
8351 return 0;
8352}
8353_ACEOF
8354rm -f conftest.$ac_objext conftest$ac_exeext
8355if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +00008356 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00008357 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +00008358 grep -v '^ *+' conftest.er1 >conftest.err
8359 rm -f conftest.er1
8360 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00008361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8362 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +00008363 { ac_try='test -z "$ac_c_werror_flag"
8364 || test ! -s conftest.err'
8365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8366 (eval $ac_try) 2>&5
8367 ac_status=$?
8368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8369 (exit $ac_status); }; } &&
8370 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00008371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8372 (eval $ac_try) 2>&5
8373 ac_status=$?
8374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8375 (exit $ac_status); }; }; then
8376 ac_cv_lib_dl_dlopen=yes
8377else
8378 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008379sed 's/^/| /' conftest.$ac_ext >&5
8380
John Criswell7a73b802003-06-30 21:59:07 +00008381ac_cv_lib_dl_dlopen=no
8382fi
Reid Spencer2b51a082004-08-04 00:34:49 +00008383rm -f conftest.err conftest.$ac_objext \
8384 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00008385LIBS=$ac_check_lib_save_LIBS
8386fi
8387echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8388echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8389if test $ac_cv_lib_dl_dlopen = yes; then
8390 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8391else
8392 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8393echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8394if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8395 echo $ECHO_N "(cached) $ECHO_C" >&6
8396else
8397 ac_check_lib_save_LIBS=$LIBS
8398LIBS="-lsvld $LIBS"
8399cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00008400/* confdefs.h. */
8401_ACEOF
8402cat confdefs.h >>conftest.$ac_ext
8403cat >>conftest.$ac_ext <<_ACEOF
8404/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008405
8406/* Override any gcc2 internal prototype to avoid an error. */
8407#ifdef __cplusplus
8408extern "C"
8409#endif
8410/* We use char because int might match the return type of a gcc2
8411 builtin and then its argument prototype would still apply. */
8412char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +00008413int
8414main ()
8415{
8416dlopen ();
8417 ;
8418 return 0;
8419}
8420_ACEOF
8421rm -f conftest.$ac_objext conftest$ac_exeext
8422if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +00008423 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00008424 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +00008425 grep -v '^ *+' conftest.er1 >conftest.err
8426 rm -f conftest.er1
8427 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00008428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8429 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +00008430 { ac_try='test -z "$ac_c_werror_flag"
8431 || test ! -s conftest.err'
8432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8433 (eval $ac_try) 2>&5
8434 ac_status=$?
8435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8436 (exit $ac_status); }; } &&
8437 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00008438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8439 (eval $ac_try) 2>&5
8440 ac_status=$?
8441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8442 (exit $ac_status); }; }; then
8443 ac_cv_lib_svld_dlopen=yes
8444else
8445 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008446sed 's/^/| /' conftest.$ac_ext >&5
8447
John Criswell7a73b802003-06-30 21:59:07 +00008448ac_cv_lib_svld_dlopen=no
8449fi
Reid Spencer2b51a082004-08-04 00:34:49 +00008450rm -f conftest.err conftest.$ac_objext \
8451 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00008452LIBS=$ac_check_lib_save_LIBS
8453fi
8454echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8455echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8456if test $ac_cv_lib_svld_dlopen = yes; then
8457 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8458else
8459 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8460echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8461if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8462 echo $ECHO_N "(cached) $ECHO_C" >&6
8463else
8464 ac_check_lib_save_LIBS=$LIBS
8465LIBS="-ldld $LIBS"
8466cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00008467/* confdefs.h. */
8468_ACEOF
8469cat confdefs.h >>conftest.$ac_ext
8470cat >>conftest.$ac_ext <<_ACEOF
8471/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008472
8473/* Override any gcc2 internal prototype to avoid an error. */
8474#ifdef __cplusplus
8475extern "C"
8476#endif
8477/* We use char because int might match the return type of a gcc2
8478 builtin and then its argument prototype would still apply. */
8479char dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +00008480int
8481main ()
8482{
8483dld_link ();
8484 ;
8485 return 0;
8486}
8487_ACEOF
8488rm -f conftest.$ac_objext conftest$ac_exeext
8489if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +00008490 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00008491 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +00008492 grep -v '^ *+' conftest.er1 >conftest.err
8493 rm -f conftest.er1
8494 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00008495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8496 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +00008497 { ac_try='test -z "$ac_c_werror_flag"
8498 || test ! -s conftest.err'
8499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8500 (eval $ac_try) 2>&5
8501 ac_status=$?
8502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8503 (exit $ac_status); }; } &&
8504 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00008505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8506 (eval $ac_try) 2>&5
8507 ac_status=$?
8508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8509 (exit $ac_status); }; }; then
8510 ac_cv_lib_dld_dld_link=yes
8511else
8512 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008513sed 's/^/| /' conftest.$ac_ext >&5
8514
John Criswell7a73b802003-06-30 21:59:07 +00008515ac_cv_lib_dld_dld_link=no
8516fi
Reid Spencer2b51a082004-08-04 00:34:49 +00008517rm -f conftest.err conftest.$ac_objext \
8518 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00008519LIBS=$ac_check_lib_save_LIBS
8520fi
8521echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8522echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8523if test $ac_cv_lib_dld_dld_link = yes; then
8524 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8525fi
8526
8527
8528fi
8529
8530
8531fi
8532
8533
8534fi
8535
8536
8537fi
8538
8539
8540fi
8541
8542 ;;
8543 esac
8544
8545 if test "x$lt_cv_dlopen" != xno; then
8546 enable_dlopen=yes
8547 else
8548 enable_dlopen=no
8549 fi
8550
8551 case $lt_cv_dlopen in
8552 dlopen)
8553 save_CPPFLAGS="$CPPFLAGS"
John Criswell47fdd832003-07-14 16:52:07 +00008554 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
John Criswell7a73b802003-06-30 21:59:07 +00008555
8556 save_LDFLAGS="$LDFLAGS"
8557 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8558
8559 save_LIBS="$LIBS"
8560 LIBS="$lt_cv_dlopen_libs $LIBS"
8561
8562 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8563echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8564if test "${lt_cv_dlopen_self+set}" = set; then
8565 echo $ECHO_N "(cached) $ECHO_C" >&6
8566else
8567 if test "$cross_compiling" = yes; then :
8568 lt_cv_dlopen_self=cross
8569else
John Criswell47fdd832003-07-14 16:52:07 +00008570 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +00008571 lt_status=$lt_dlunknown
8572 cat > conftest.$ac_ext <<EOF
Reid Spencer886e9512004-08-31 01:34:10 +00008573#line 8573 "configure"
John Criswell7a73b802003-06-30 21:59:07 +00008574#include "confdefs.h"
8575
8576#if HAVE_DLFCN_H
8577#include <dlfcn.h>
8578#endif
8579
8580#include <stdio.h>
8581
8582#ifdef RTLD_GLOBAL
8583# define LT_DLGLOBAL RTLD_GLOBAL
8584#else
8585# ifdef DL_GLOBAL
8586# define LT_DLGLOBAL DL_GLOBAL
8587# else
8588# define LT_DLGLOBAL 0
8589# endif
8590#endif
8591
8592/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8593 find out it does not work in some platform. */
8594#ifndef LT_DLLAZY_OR_NOW
8595# ifdef RTLD_LAZY
8596# define LT_DLLAZY_OR_NOW RTLD_LAZY
8597# else
8598# ifdef DL_LAZY
8599# define LT_DLLAZY_OR_NOW DL_LAZY
8600# else
8601# ifdef RTLD_NOW
8602# define LT_DLLAZY_OR_NOW RTLD_NOW
8603# else
8604# ifdef DL_NOW
8605# define LT_DLLAZY_OR_NOW DL_NOW
8606# else
8607# define LT_DLLAZY_OR_NOW 0
8608# endif
8609# endif
8610# endif
8611# endif
8612#endif
8613
8614#ifdef __cplusplus
8615extern "C" void exit (int);
8616#endif
8617
8618void fnord() { int i=42;}
8619int main ()
8620{
8621 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8622 int status = $lt_dlunknown;
8623
8624 if (self)
8625 {
8626 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8627 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8628 /* dlclose (self); */
8629 }
8630
8631 exit (status);
8632}
8633EOF
8634 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8635 (eval $ac_link) 2>&5
8636 ac_status=$?
8637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8638 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8639 (./conftest; exit; ) 2>/dev/null
8640 lt_status=$?
8641 case x$lt_status in
8642 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8643 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8644 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8645 esac
8646 else :
8647 # compilation failed
8648 lt_cv_dlopen_self=no
8649 fi
8650fi
8651rm -fr conftest*
8652
8653
8654fi
8655echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8656echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8657
8658 if test "x$lt_cv_dlopen_self" = xyes; then
8659 LDFLAGS="$LDFLAGS $link_static_flag"
8660 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8661echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8662if test "${lt_cv_dlopen_self_static+set}" = set; then
8663 echo $ECHO_N "(cached) $ECHO_C" >&6
8664else
8665 if test "$cross_compiling" = yes; then :
8666 lt_cv_dlopen_self_static=cross
8667else
John Criswell47fdd832003-07-14 16:52:07 +00008668 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +00008669 lt_status=$lt_dlunknown
8670 cat > conftest.$ac_ext <<EOF
Reid Spencer886e9512004-08-31 01:34:10 +00008671#line 8671 "configure"
John Criswell7a73b802003-06-30 21:59:07 +00008672#include "confdefs.h"
8673
8674#if HAVE_DLFCN_H
8675#include <dlfcn.h>
8676#endif
8677
8678#include <stdio.h>
8679
8680#ifdef RTLD_GLOBAL
8681# define LT_DLGLOBAL RTLD_GLOBAL
8682#else
8683# ifdef DL_GLOBAL
8684# define LT_DLGLOBAL DL_GLOBAL
8685# else
8686# define LT_DLGLOBAL 0
8687# endif
8688#endif
8689
8690/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8691 find out it does not work in some platform. */
8692#ifndef LT_DLLAZY_OR_NOW
8693# ifdef RTLD_LAZY
8694# define LT_DLLAZY_OR_NOW RTLD_LAZY
8695# else
8696# ifdef DL_LAZY
8697# define LT_DLLAZY_OR_NOW DL_LAZY
8698# else
8699# ifdef RTLD_NOW
8700# define LT_DLLAZY_OR_NOW RTLD_NOW
8701# else
8702# ifdef DL_NOW
8703# define LT_DLLAZY_OR_NOW DL_NOW
8704# else
8705# define LT_DLLAZY_OR_NOW 0
8706# endif
8707# endif
8708# endif
8709# endif
8710#endif
8711
8712#ifdef __cplusplus
8713extern "C" void exit (int);
8714#endif
8715
8716void fnord() { int i=42;}
8717int main ()
8718{
8719 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8720 int status = $lt_dlunknown;
8721
8722 if (self)
8723 {
8724 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8725 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8726 /* dlclose (self); */
8727 }
8728
8729 exit (status);
8730}
8731EOF
8732 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8733 (eval $ac_link) 2>&5
8734 ac_status=$?
8735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8736 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8737 (./conftest; exit; ) 2>/dev/null
8738 lt_status=$?
8739 case x$lt_status in
8740 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8741 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8742 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8743 esac
8744 else :
8745 # compilation failed
8746 lt_cv_dlopen_self_static=no
8747 fi
8748fi
8749rm -fr conftest*
8750
8751
8752fi
8753echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8754echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8755 fi
8756
8757 CPPFLAGS="$save_CPPFLAGS"
8758 LDFLAGS="$save_LDFLAGS"
8759 LIBS="$save_LIBS"
8760 ;;
8761 esac
8762
8763 case $lt_cv_dlopen_self in
8764 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8765 *) enable_dlopen_self=unknown ;;
8766 esac
8767
8768 case $lt_cv_dlopen_self_static in
8769 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8770 *) enable_dlopen_self_static=unknown ;;
8771 esac
8772fi
8773
8774
John Criswell47fdd832003-07-14 16:52:07 +00008775# Report which librarie types wil actually be built
8776echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8777echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8778echo "$as_me:$LINENO: result: $can_build_shared" >&5
8779echo "${ECHO_T}$can_build_shared" >&6
John Criswell7a73b802003-06-30 21:59:07 +00008780
John Criswell47fdd832003-07-14 16:52:07 +00008781echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8782echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8783test "$can_build_shared" = "no" && enable_shared=no
8784
8785# On AIX, shared libraries and static libraries use the same namespace, and
8786# are all built from PIC.
8787case "$host_os" in
8788aix3*)
8789 test "$enable_shared" = yes && enable_static=no
8790 if test -n "$RANLIB"; then
8791 archive_cmds="$archive_cmds~\$RANLIB \$lib"
8792 postinstall_cmds='$RANLIB $lib'
8793 fi
8794 ;;
8795
8796aix4*)
8797 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8798 test "$enable_shared" = yes && enable_static=no
8799 fi
8800 ;;
8801 darwin* | rhapsody*)
8802 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
8803 archive_cmds_need_lc=no
8804 case "$host_os" in
8805 rhapsody* | darwin1.[012])
8806 allow_undefined_flag='-undefined suppress'
8807 ;;
8808 *) # Darwin 1.3 on
8809 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
8810 ;;
8811 esac
8812 # FIXME: Relying on posixy $() will cause problems for
8813 # cross-compilation, but unfortunately the echo tests do not
8814 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
8815 # `"' quotes if we put them in here... so don't!
8816 output_verbose_link_cmd='echo'
8817 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8818 module_cmds='$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
8819 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8820 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}'
8821 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}'
8822 hardcode_direct=no
8823 hardcode_automatic=yes
8824 hardcode_shlibpath_var=unsupported
8825 whole_archive_flag_spec='-all_load $convenience'
8826 link_all_deplibs=yes
John Criswell7a73b802003-06-30 21:59:07 +00008827 fi
John Criswell7a73b802003-06-30 21:59:07 +00008828 ;;
John Criswell47fdd832003-07-14 16:52:07 +00008829esac
8830echo "$as_me:$LINENO: result: $enable_shared" >&5
8831echo "${ECHO_T}$enable_shared" >&6
John Criswell7a73b802003-06-30 21:59:07 +00008832
John Criswell47fdd832003-07-14 16:52:07 +00008833echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8834echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8835# Make sure either enable_shared or enable_static is yes.
8836test "$enable_shared" = yes || enable_static=yes
8837echo "$as_me:$LINENO: result: $enable_static" >&5
8838echo "${ECHO_T}$enable_static" >&6
8839
8840# The else clause should only fire when bootstrapping the
John Criswell7a73b802003-06-30 21:59:07 +00008841# libtool distribution, otherwise you forgot to ship ltmain.sh
8842# with your package, and you will get complaints that there are
8843# no rules to generate ltmain.sh.
8844if test -f "$ltmain"; then
John Criswell47fdd832003-07-14 16:52:07 +00008845 # See if we are running on zsh, and set the options which allow our commands through
8846 # without removal of \ escapes.
8847 if test -n "${ZSH_VERSION+set}" ; then
8848 setopt NO_GLOB_SUBST
8849 fi
John Criswell7a73b802003-06-30 21:59:07 +00008850 # Now quote all the things that may contain metacharacters while being
8851 # careful not to overquote the AC_SUBSTed values. We take copies of the
8852 # variables and quote the copies for generation of the libtool script.
John Criswell47fdd832003-07-14 16:52:07 +00008853 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
8854 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8855 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8856 deplibs_check_method reload_flag reload_cmds need_locks \
8857 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8858 lt_cv_sys_global_symbol_to_c_name_address \
John Criswell7a73b802003-06-30 21:59:07 +00008859 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
John Criswell47fdd832003-07-14 16:52:07 +00008860 old_postinstall_cmds old_postuninstall_cmds \
8861 compiler \
8862 CC \
8863 LD \
8864 lt_prog_compiler_wl \
8865 lt_prog_compiler_pic \
8866 lt_prog_compiler_static \
8867 lt_prog_compiler_no_builtin_flag \
8868 export_dynamic_flag_spec \
8869 thread_safe_flag_spec \
8870 whole_archive_flag_spec \
8871 enable_shared_with_static_runtimes \
8872 old_archive_cmds \
8873 old_archive_from_new_cmds \
8874 predep_objects \
8875 postdep_objects \
8876 predeps \
8877 postdeps \
8878 compiler_lib_search_path \
8879 archive_cmds \
8880 archive_expsym_cmds \
8881 postinstall_cmds \
8882 postuninstall_cmds \
8883 old_archive_from_expsyms_cmds \
8884 allow_undefined_flag \
8885 no_undefined_flag \
8886 export_symbols_cmds \
8887 hardcode_libdir_flag_spec \
8888 hardcode_libdir_flag_spec_ld \
8889 hardcode_libdir_separator \
8890 hardcode_automatic \
8891 module_cmds \
8892 module_expsym_cmds \
8893 lt_cv_prog_compiler_c_o \
8894 exclude_expsyms \
8895 include_expsyms; do
John Criswell7a73b802003-06-30 21:59:07 +00008896
8897 case $var in
John Criswell47fdd832003-07-14 16:52:07 +00008898 old_archive_cmds | \
8899 old_archive_from_new_cmds | \
8900 archive_cmds | \
8901 archive_expsym_cmds | \
8902 module_cmds | \
8903 module_expsym_cmds | \
8904 old_archive_from_expsyms_cmds | \
8905 export_symbols_cmds | \
8906 extract_expsyms_cmds | reload_cmds | finish_cmds | \
John Criswell7a73b802003-06-30 21:59:07 +00008907 postinstall_cmds | postuninstall_cmds | \
John Criswell47fdd832003-07-14 16:52:07 +00008908 old_postinstall_cmds | old_postuninstall_cmds | \
8909 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
John Criswell7a73b802003-06-30 21:59:07 +00008910 # Double-quote double-evaled strings.
8911 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8912 ;;
8913 *)
8914 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8915 ;;
8916 esac
8917 done
8918
John Criswell47fdd832003-07-14 16:52:07 +00008919 case $lt_echo in
8920 *'\$0 --fallback-echo"')
8921 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8922 ;;
8923 esac
8924
8925cfgfile="${ofile}T"
8926 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8927 $rm -f "$cfgfile"
8928 { echo "$as_me:$LINENO: creating $ofile" >&5
8929echo "$as_me: creating $ofile" >&6;}
8930
8931 cat <<__EOF__ >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +00008932#! $SHELL
8933
John Criswell47fdd832003-07-14 16:52:07 +00008934# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
John Criswell7a73b802003-06-30 21:59:07 +00008935# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8936# NOTE: Changes made to this file will be lost: look at ltmain.sh.
8937#
John Criswell47fdd832003-07-14 16:52:07 +00008938# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8939# Free Software Foundation, Inc.
8940#
8941# This file is part of GNU Libtool:
John Criswell7a73b802003-06-30 21:59:07 +00008942# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8943#
8944# This program is free software; you can redistribute it and/or modify
8945# it under the terms of the GNU General Public License as published by
8946# the Free Software Foundation; either version 2 of the License, or
8947# (at your option) any later version.
8948#
8949# This program is distributed in the hope that it will be useful, but
8950# WITHOUT ANY WARRANTY; without even the implied warranty of
8951# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
8952# General Public License for more details.
8953#
8954# You should have received a copy of the GNU General Public License
8955# along with this program; if not, write to the Free Software
8956# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8957#
8958# As a special exception to the GNU General Public License, if you
8959# distribute this file as part of a program that contains a
8960# configuration script generated by Autoconf, you may include it under
8961# the same distribution terms that you use for the rest of that program.
8962
John Criswell47fdd832003-07-14 16:52:07 +00008963# A sed program that does not truncate output.
8964SED=$lt_SED
8965
John Criswell7a73b802003-06-30 21:59:07 +00008966# Sed that helps us avoid accidentally triggering echo(1) options like -n.
John Criswell47fdd832003-07-14 16:52:07 +00008967Xsed="$SED -e s/^X//"
John Criswell7a73b802003-06-30 21:59:07 +00008968
8969# The HP-UX ksh and POSIX shell print the target directory to stdout
8970# if CDPATH is set.
8971if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8972
John Criswell47fdd832003-07-14 16:52:07 +00008973# The names of the tagged configurations supported by this script.
8974available_tags=
8975
John Criswell7a73b802003-06-30 21:59:07 +00008976# ### BEGIN LIBTOOL CONFIG
8977
8978# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8979
8980# Shell to use when invoking shell scripts.
8981SHELL=$lt_SHELL
8982
8983# Whether or not to build shared libraries.
8984build_libtool_libs=$enable_shared
8985
8986# Whether or not to build static libraries.
8987build_old_libs=$enable_static
8988
8989# Whether or not to add -lc for building shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +00008990build_libtool_need_lc=$archive_cmds_need_lc
8991
8992# Whether or not to disallow shared libs when runtime libs are static
8993allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
John Criswell7a73b802003-06-30 21:59:07 +00008994
8995# Whether or not to optimize for fast installation.
8996fast_install=$enable_fast_install
8997
8998# The host system.
8999host_alias=$host_alias
9000host=$host
9001
9002# An echo program that does not interpret backslashes.
9003echo=$lt_echo
9004
9005# The archiver.
9006AR=$lt_AR
9007AR_FLAGS=$lt_AR_FLAGS
9008
John Criswell47fdd832003-07-14 16:52:07 +00009009# A C compiler.
9010LTCC=$lt_LTCC
9011
9012# A language-specific compiler.
9013CC=$lt_compiler
John Criswell7a73b802003-06-30 21:59:07 +00009014
9015# Is the compiler the GNU C compiler?
9016with_gcc=$GCC
9017
John Criswell47fdd832003-07-14 16:52:07 +00009018# An ERE matcher.
9019EGREP=$lt_EGREP
9020
John Criswell7a73b802003-06-30 21:59:07 +00009021# The linker used to build libraries.
9022LD=$lt_LD
9023
9024# Whether we need hard or soft links.
9025LN_S=$lt_LN_S
9026
9027# A BSD-compatible nm program.
9028NM=$lt_NM
9029
9030# A symbol stripping program
9031STRIP=$STRIP
9032
9033# Used to examine libraries when file_magic_cmd begins "file"
9034MAGIC_CMD=$MAGIC_CMD
9035
9036# Used on cygwin: DLL creation program.
9037DLLTOOL="$DLLTOOL"
9038
9039# Used on cygwin: object dumper.
9040OBJDUMP="$OBJDUMP"
9041
9042# Used on cygwin: assembler.
9043AS="$AS"
9044
9045# The name of the directory that contains temporary libtool files.
9046objdir=$objdir
9047
9048# How to create reloadable object files.
9049reload_flag=$lt_reload_flag
9050reload_cmds=$lt_reload_cmds
9051
9052# How to pass a linker flag through the compiler.
John Criswell47fdd832003-07-14 16:52:07 +00009053wl=$lt_lt_prog_compiler_wl
John Criswell7a73b802003-06-30 21:59:07 +00009054
9055# Object file suffix (normally "o").
9056objext="$ac_objext"
9057
9058# Old archive suffix (normally "a").
9059libext="$libext"
9060
John Criswell47fdd832003-07-14 16:52:07 +00009061# Shared library suffix (normally ".so").
9062shrext='$shrext'
9063
John Criswell7a73b802003-06-30 21:59:07 +00009064# Executable file suffix (normally "").
9065exeext="$exeext"
9066
9067# Additional compiler flags for building library objects.
John Criswell47fdd832003-07-14 16:52:07 +00009068pic_flag=$lt_lt_prog_compiler_pic
John Criswell7a73b802003-06-30 21:59:07 +00009069pic_mode=$pic_mode
9070
John Criswell47fdd832003-07-14 16:52:07 +00009071# What is the maximum length of a command?
9072max_cmd_len=$lt_cv_sys_max_cmd_len
John Criswell7a73b802003-06-30 21:59:07 +00009073
John Criswell47fdd832003-07-14 16:52:07 +00009074# Does compiler simultaneously support -c and -o options?
9075compiler_c_o=$lt_lt_cv_prog_compiler_c_o
John Criswell7a73b802003-06-30 21:59:07 +00009076
9077# Must we lock files when doing compilation ?
9078need_locks=$lt_need_locks
9079
9080# Do we need the lib prefix for modules?
9081need_lib_prefix=$need_lib_prefix
9082
9083# Do we need a version for libraries?
9084need_version=$need_version
9085
9086# Whether dlopen is supported.
9087dlopen_support=$enable_dlopen
9088
9089# Whether dlopen of programs is supported.
9090dlopen_self=$enable_dlopen_self
9091
9092# Whether dlopen of statically linked programs is supported.
9093dlopen_self_static=$enable_dlopen_self_static
9094
9095# Compiler flag to prevent dynamic linking.
John Criswell47fdd832003-07-14 16:52:07 +00009096link_static_flag=$lt_lt_prog_compiler_static
John Criswell7a73b802003-06-30 21:59:07 +00009097
9098# Compiler flag to turn off builtin functions.
John Criswell47fdd832003-07-14 16:52:07 +00009099no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
John Criswell7a73b802003-06-30 21:59:07 +00009100
9101# Compiler flag to allow reflexive dlopens.
9102export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9103
9104# Compiler flag to generate shared objects directly from archives.
9105whole_archive_flag_spec=$lt_whole_archive_flag_spec
9106
9107# Compiler flag to generate thread-safe objects.
9108thread_safe_flag_spec=$lt_thread_safe_flag_spec
9109
9110# Library versioning type.
9111version_type=$version_type
9112
9113# Format of library name prefix.
9114libname_spec=$lt_libname_spec
9115
9116# List of archive names. First name is the real one, the rest are links.
9117# The last name is the one that the linker finds with -lNAME.
9118library_names_spec=$lt_library_names_spec
9119
9120# The coded name of the library, if different from the real name.
9121soname_spec=$lt_soname_spec
9122
9123# Commands used to build and install an old-style archive.
9124RANLIB=$lt_RANLIB
9125old_archive_cmds=$lt_old_archive_cmds
9126old_postinstall_cmds=$lt_old_postinstall_cmds
9127old_postuninstall_cmds=$lt_old_postuninstall_cmds
9128
9129# Create an old-style archive from a shared archive.
9130old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9131
9132# Create a temporary old-style archive to link instead of a shared archive.
9133old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9134
9135# Commands used to build and install a shared archive.
9136archive_cmds=$lt_archive_cmds
9137archive_expsym_cmds=$lt_archive_expsym_cmds
9138postinstall_cmds=$lt_postinstall_cmds
9139postuninstall_cmds=$lt_postuninstall_cmds
9140
John Criswell47fdd832003-07-14 16:52:07 +00009141# Commands used to build a loadable module (assumed same as above if empty)
9142module_cmds=$lt_module_cmds
9143module_expsym_cmds=$lt_module_expsym_cmds
9144
John Criswell7a73b802003-06-30 21:59:07 +00009145# Commands to strip libraries.
9146old_striplib=$lt_old_striplib
9147striplib=$lt_striplib
9148
John Criswell47fdd832003-07-14 16:52:07 +00009149# Dependencies to place before the objects being linked to create a
9150# shared library.
9151predep_objects=$lt_predep_objects
9152
9153# Dependencies to place after the objects being linked to create a
9154# shared library.
9155postdep_objects=$lt_postdep_objects
9156
9157# Dependencies to place before the objects being linked to create a
9158# shared library.
9159predeps=$lt_predeps
9160
9161# Dependencies to place after the objects being linked to create a
9162# shared library.
9163postdeps=$lt_postdeps
9164
9165# The library search path used internally by the compiler when linking
9166# a shared library.
9167compiler_lib_search_path=$lt_compiler_lib_search_path
9168
John Criswell7a73b802003-06-30 21:59:07 +00009169# Method to check whether dependent libraries are shared objects.
9170deplibs_check_method=$lt_deplibs_check_method
9171
9172# Command to use when deplibs_check_method == file_magic.
9173file_magic_cmd=$lt_file_magic_cmd
9174
9175# Flag that allows shared libraries with undefined symbols to be built.
9176allow_undefined_flag=$lt_allow_undefined_flag
9177
9178# Flag that forces no undefined symbols.
9179no_undefined_flag=$lt_no_undefined_flag
9180
9181# Commands used to finish a libtool library installation in a directory.
9182finish_cmds=$lt_finish_cmds
9183
9184# Same as above, but a single script fragment to be evaled but not shown.
9185finish_eval=$lt_finish_eval
9186
9187# Take the output of nm and produce a listing of raw symbols and C names.
John Criswell47fdd832003-07-14 16:52:07 +00009188global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
John Criswell7a73b802003-06-30 21:59:07 +00009189
9190# Transform the output of nm in a proper C declaration
John Criswell47fdd832003-07-14 16:52:07 +00009191global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
John Criswell7a73b802003-06-30 21:59:07 +00009192
9193# Transform the output of nm in a C name address pair
John Criswell47fdd832003-07-14 16:52:07 +00009194global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
John Criswell7a73b802003-06-30 21:59:07 +00009195
9196# This is the shared library runtime path variable.
9197runpath_var=$runpath_var
9198
9199# This is the shared library path variable.
9200shlibpath_var=$shlibpath_var
9201
9202# Is shlibpath searched before the hard-coded library search path?
9203shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9204
9205# How to hardcode a shared library path into an executable.
9206hardcode_action=$hardcode_action
9207
9208# Whether we should hardcode library paths into libraries.
9209hardcode_into_libs=$hardcode_into_libs
9210
9211# Flag to hardcode \$libdir into a binary during linking.
9212# This must work even if \$libdir does not exist.
9213hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9214
John Criswell47fdd832003-07-14 16:52:07 +00009215# If ld is used when linking, flag to hardcode \$libdir into
9216# a binary during linking. This must work even if \$libdir does
9217# not exist.
9218hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9219
John Criswell7a73b802003-06-30 21:59:07 +00009220# Whether we need a single -rpath flag with a separated argument.
9221hardcode_libdir_separator=$lt_hardcode_libdir_separator
9222
John Criswell47fdd832003-07-14 16:52:07 +00009223# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
John Criswell7a73b802003-06-30 21:59:07 +00009224# resulting binary.
9225hardcode_direct=$hardcode_direct
9226
9227# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9228# resulting binary.
9229hardcode_minus_L=$hardcode_minus_L
9230
9231# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9232# the resulting binary.
9233hardcode_shlibpath_var=$hardcode_shlibpath_var
9234
John Criswell47fdd832003-07-14 16:52:07 +00009235# Set to yes if building a shared library automatically hardcodes DIR into the library
9236# and all subsequent libraries and executables linked against it.
9237hardcode_automatic=$hardcode_automatic
9238
John Criswell7a73b802003-06-30 21:59:07 +00009239# Variables whose values should be saved in libtool wrapper scripts and
9240# restored at relink time.
9241variables_saved_for_relink="$variables_saved_for_relink"
9242
9243# Whether libtool must link a program against all its dependency libraries.
9244link_all_deplibs=$link_all_deplibs
9245
9246# Compile-time system search path for libraries
9247sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9248
9249# Run-time system search path for libraries
9250sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9251
9252# Fix the shell variable \$srcfile for the compiler.
9253fix_srcfile_path="$fix_srcfile_path"
9254
9255# Set to yes if exported symbols are required.
9256always_export_symbols=$always_export_symbols
9257
9258# The commands to list exported symbols.
9259export_symbols_cmds=$lt_export_symbols_cmds
9260
9261# The commands to extract the exported symbol list from a shared archive.
9262extract_expsyms_cmds=$lt_extract_expsyms_cmds
9263
9264# Symbols that should not be listed in the preloaded symbols.
9265exclude_expsyms=$lt_exclude_expsyms
9266
9267# Symbols that must always be exported.
9268include_expsyms=$lt_include_expsyms
9269
9270# ### END LIBTOOL CONFIG
9271
9272__EOF__
9273
John Criswell47fdd832003-07-14 16:52:07 +00009274
John Criswell7a73b802003-06-30 21:59:07 +00009275 case $host_os in
9276 aix3*)
John Criswell47fdd832003-07-14 16:52:07 +00009277 cat <<\EOF >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +00009278
9279# AIX sometimes has problems with the GCC collect2 program. For some
9280# reason, if we set the COLLECT_NAMES environment variable, the problems
9281# vanish in a puff of smoke.
9282if test "X${COLLECT_NAMES+set}" != Xset; then
9283 COLLECT_NAMES=
9284 export COLLECT_NAMES
9285fi
9286EOF
9287 ;;
9288 esac
9289
John Criswell7a73b802003-06-30 21:59:07 +00009290 # We use sed instead of cat because bash on DJGPP gets confused if
9291 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9292 # text mode, it properly converts lines to CR/LF. This bash problem
9293 # is reportedly fixed, but why not run on old versions too?
John Criswell47fdd832003-07-14 16:52:07 +00009294 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
John Criswell7a73b802003-06-30 21:59:07 +00009295
John Criswell47fdd832003-07-14 16:52:07 +00009296 mv -f "$cfgfile" "$ofile" || \
9297 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
John Criswell7a73b802003-06-30 21:59:07 +00009298 chmod +x "$ofile"
John Criswell47fdd832003-07-14 16:52:07 +00009299
9300else
9301 # If there is no Makefile yet, we rely on a make rule to execute
9302 # `config.status --recheck' to rerun these tests and create the
9303 # libtool script then.
9304 test -f Makefile && make "$ltmain"
John Criswell7a73b802003-06-30 21:59:07 +00009305fi
John Criswell7a73b802003-06-30 21:59:07 +00009306
9307
John Criswell47fdd832003-07-14 16:52:07 +00009308ac_ext=c
9309ac_cpp='$CPP $CPPFLAGS'
9310ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9311ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9312ac_compiler_gnu=$ac_cv_c_compiler_gnu
9313
9314CC="$lt_save_CC"
9315
9316
9317# Check whether --with-tags or --without-tags was given.
9318if test "${with_tags+set}" = set; then
9319 withval="$with_tags"
9320 tagnames="$withval"
9321fi;
9322
9323if test -f "$ltmain" && test -n "$tagnames"; then
9324 if test ! -f "${ofile}"; then
9325 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9326echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9327 fi
9328
9329 if test -z "$LTCC"; then
9330 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9331 if test -z "$LTCC"; then
9332 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9333echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9334 else
9335 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9336echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9337 fi
9338 fi
9339
9340 # Extract list of available tagged configurations in $ofile.
9341 # Note that this assumes the entire list is on one line.
9342 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9343
9344 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9345 for tagname in $tagnames; do
9346 IFS="$lt_save_ifs"
9347 # Check whether tagname contains only valid characters
9348 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9349 "") ;;
9350 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9351echo "$as_me: error: invalid tag name: $tagname" >&2;}
9352 { (exit 1); exit 1; }; }
9353 ;;
9354 esac
9355
9356 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9357 then
9358 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9359echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9360 { (exit 1); exit 1; }; }
9361 fi
9362
9363 # Update the list of available tags.
9364 if test -n "$tagname"; then
9365 echo appending configuration tag \"$tagname\" to $ofile
9366
9367 case $tagname in
9368 CXX)
9369 if test -n "$CXX" && test "X$CXX" != "Xno"; then
9370 ac_ext=cc
9371ac_cpp='$CXXCPP $CPPFLAGS'
9372ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9373ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9374ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9375
9376
9377
9378
9379archive_cmds_need_lc_CXX=no
9380allow_undefined_flag_CXX=
9381always_export_symbols_CXX=no
9382archive_expsym_cmds_CXX=
9383export_dynamic_flag_spec_CXX=
9384hardcode_direct_CXX=no
9385hardcode_libdir_flag_spec_CXX=
9386hardcode_libdir_flag_spec_ld_CXX=
9387hardcode_libdir_separator_CXX=
9388hardcode_minus_L_CXX=no
9389hardcode_automatic_CXX=no
9390module_cmds_CXX=
9391module_expsym_cmds_CXX=
9392link_all_deplibs_CXX=unknown
9393old_archive_cmds_CXX=$old_archive_cmds
9394no_undefined_flag_CXX=
9395whole_archive_flag_spec_CXX=
9396enable_shared_with_static_runtimes_CXX=no
9397
9398# Dependencies to place before and after the object being linked:
9399predep_objects_CXX=
9400postdep_objects_CXX=
9401predeps_CXX=
9402postdeps_CXX=
9403compiler_lib_search_path_CXX=
9404
9405# Source file extension for C++ test sources.
9406ac_ext=cc
9407
9408# Object file extension for compiled C++ test sources.
9409objext=o
9410objext_CXX=$objext
9411
9412# Code to be used in simple compile tests
9413lt_simple_compile_test_code="int some_variable = 0;\n"
9414
9415# Code to be used in simple link tests
9416lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9417
9418# ltmain only uses $CC for tagged configurations so make sure $CC is set.
9419
9420# If no C compiler was specified, use CC.
9421LTCC=${LTCC-"$CC"}
9422
9423# Allow CC to be a program name with arguments.
9424compiler=$CC
9425
9426
9427# Allow CC to be a program name with arguments.
9428lt_save_CC=$CC
9429lt_save_LD=$LD
9430lt_save_GCC=$GCC
9431GCC=$GXX
9432lt_save_with_gnu_ld=$with_gnu_ld
9433lt_save_path_LD=$lt_cv_path_LD
9434if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9435 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9436else
9437 unset lt_cv_prog_gnu_ld
9438fi
9439if test -n "${lt_cv_path_LDCXX+set}"; then
9440 lt_cv_path_LD=$lt_cv_path_LDCXX
9441else
9442 unset lt_cv_path_LD
9443fi
9444test -z "${LDCXX+set}" || LD=$LDCXX
9445CC=${CXX-"c++"}
9446compiler=$CC
9447compiler_CXX=$CC
9448cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9449
9450# We don't want -fno-exception wen compiling C++ code, so set the
9451# no_builtin_flag separately
9452if test "$GXX" = yes; then
9453 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9454else
9455 lt_prog_compiler_no_builtin_flag_CXX=
9456fi
9457
9458if test "$GXX" = yes; then
9459 # Set up default GNU C++ configuration
9460
9461
9462# Check whether --with-gnu-ld or --without-gnu-ld was given.
9463if test "${with_gnu_ld+set}" = set; then
9464 withval="$with_gnu_ld"
9465 test "$withval" = no || with_gnu_ld=yes
9466else
9467 with_gnu_ld=no
9468fi;
9469ac_prog=ld
9470if test "$GCC" = yes; then
9471 # Check if gcc -print-prog-name=ld gives a path.
9472 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9473echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9474 case $host in
9475 *-*-mingw*)
9476 # gcc leaves a trailing carriage return which upsets mingw
9477 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9478 *)
9479 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9480 esac
9481 case $ac_prog in
9482 # Accept absolute paths.
9483 [\\/]* | ?:[\\/]*)
9484 re_direlt='/[^/][^/]*/\.\./'
9485 # Canonicalize the path of ld
9486 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9487 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9488 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9489 done
9490 test -z "$LD" && LD="$ac_prog"
9491 ;;
9492 "")
9493 # If it fails, then pretend we aren't using GCC.
9494 ac_prog=ld
9495 ;;
9496 *)
9497 # If it is relative, then search for the first ld in PATH.
9498 with_gnu_ld=unknown
9499 ;;
9500 esac
9501elif test "$with_gnu_ld" = yes; then
9502 echo "$as_me:$LINENO: checking for GNU ld" >&5
9503echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9504else
9505 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9506echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9507fi
9508if test "${lt_cv_path_LD+set}" = set; then
9509 echo $ECHO_N "(cached) $ECHO_C" >&6
9510else
9511 if test -z "$LD"; then
9512 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9513 for ac_dir in $PATH; do
9514 IFS="$lt_save_ifs"
9515 test -z "$ac_dir" && ac_dir=.
9516 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9517 lt_cv_path_LD="$ac_dir/$ac_prog"
9518 # Check to see if the program is GNU ld. I'd rather use --version,
9519 # but apparently some GNU ld's only accept -v.
9520 # Break only if it was the GNU/non-GNU ld that we prefer.
9521 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9522 *GNU* | *'with BFD'*)
9523 test "$with_gnu_ld" != no && break
9524 ;;
9525 *)
9526 test "$with_gnu_ld" != yes && break
9527 ;;
9528 esac
9529 fi
9530 done
9531 IFS="$lt_save_ifs"
9532else
9533 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9534fi
9535fi
9536
9537LD="$lt_cv_path_LD"
9538if test -n "$LD"; then
9539 echo "$as_me:$LINENO: result: $LD" >&5
9540echo "${ECHO_T}$LD" >&6
9541else
9542 echo "$as_me:$LINENO: result: no" >&5
9543echo "${ECHO_T}no" >&6
9544fi
9545test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9546echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9547 { (exit 1); exit 1; }; }
9548echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9549echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9550if test "${lt_cv_prog_gnu_ld+set}" = set; then
9551 echo $ECHO_N "(cached) $ECHO_C" >&6
9552else
9553 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9554case `"$LD" -v 2>&1 </dev/null` in
9555*GNU* | *'with BFD'*)
9556 lt_cv_prog_gnu_ld=yes
9557 ;;
9558*)
9559 lt_cv_prog_gnu_ld=no
9560 ;;
9561esac
9562fi
9563echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9564echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9565with_gnu_ld=$lt_cv_prog_gnu_ld
9566
9567
9568
9569 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9570 # archiving commands below assume that GNU ld is being used.
9571 if test "$with_gnu_ld" = yes; then
9572 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9573 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'
9574
9575 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9576 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9577
9578 # If archive_cmds runs LD, not CC, wlarc should be empty
9579 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9580 # investigate it a little bit more. (MM)
9581 wlarc='${wl}'
9582
9583 # ancient GNU ld didn't support --whole-archive et. al.
9584 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9585 grep 'no-whole-archive' > /dev/null; then
9586 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9587 else
9588 whole_archive_flag_spec_CXX=
9589 fi
9590 else
9591 with_gnu_ld=no
9592 wlarc=
9593
9594 # A generic and very simple default shared library creation
9595 # command for GNU C++ for the case where it uses the native
9596 # linker, instead of GNU ld. If possible, this setting should
9597 # overridden to take advantage of the native linker features on
9598 # the platform it is being used on.
9599 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9600 fi
9601
9602 # Commands to make compiler produce verbose output that lists
9603 # what "hidden" libraries, object files and flags are used when
9604 # linking a shared library.
9605 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9606
9607else
9608 GXX=no
9609 with_gnu_ld=no
9610 wlarc=
9611fi
9612
9613# PORTME: fill in a description of your system's C++ link characteristics
9614echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9615echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9616ld_shlibs_CXX=yes
9617case $host_os in
9618 aix3*)
9619 # FIXME: insert proper C++ library support
9620 ld_shlibs_CXX=no
9621 ;;
9622 aix4* | aix5*)
9623 if test "$host_cpu" = ia64; then
9624 # On IA64, the linker does run time linking by default, so we don't
9625 # have to do anything special.
9626 aix_use_runtimelinking=no
9627 exp_sym_flag='-Bexport'
9628 no_entry_flag=""
9629 else
9630 aix_use_runtimelinking=no
9631
9632 # Test if we are trying to use run time linking or normal
9633 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9634 # need to do runtime linking.
9635 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9636 for ld_flag in $LDFLAGS; do
9637 case $ld_flag in
9638 *-brtl*)
9639 aix_use_runtimelinking=yes
9640 break
9641 ;;
9642 esac
9643 done
9644 esac
9645
9646 exp_sym_flag='-bexport'
9647 no_entry_flag='-bnoentry'
9648 fi
9649
9650 # When large executables or shared objects are built, AIX ld can
9651 # have problems creating the table of contents. If linking a library
9652 # or program results in "error TOC overflow" add -mminimal-toc to
9653 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9654 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9655
9656 archive_cmds_CXX=''
9657 hardcode_direct_CXX=yes
9658 hardcode_libdir_separator_CXX=':'
9659 link_all_deplibs_CXX=yes
9660
9661 if test "$GXX" = yes; then
9662 case $host_os in aix4.012|aix4.012.*)
9663 # We only want to do this on AIX 4.2 and lower, the check
9664 # below for broken collect2 doesn't work under 4.3+
9665 collect2name=`${CC} -print-prog-name=collect2`
9666 if test -f "$collect2name" && \
9667 strings "$collect2name" | grep resolve_lib_name >/dev/null
9668 then
9669 # We have reworked collect2
9670 hardcode_direct_CXX=yes
9671 else
9672 # We have old collect2
9673 hardcode_direct_CXX=unsupported
9674 # It fails to find uninstalled libraries when the uninstalled
9675 # path is not listed in the libpath. Setting hardcode_minus_L
9676 # to unsupported forces relinking
9677 hardcode_minus_L_CXX=yes
9678 hardcode_libdir_flag_spec_CXX='-L$libdir'
9679 hardcode_libdir_separator_CXX=
9680 fi
9681 esac
9682 shared_flag='-shared'
9683 else
9684 # not using gcc
9685 if test "$host_cpu" = ia64; then
9686 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9687 # chokes on -Wl,-G. The following line is correct:
9688 shared_flag='-G'
9689 else
9690 if test "$aix_use_runtimelinking" = yes; then
9691 shared_flag='${wl}-G'
9692 else
9693 shared_flag='${wl}-bM:SRE'
9694 fi
9695 fi
9696 fi
9697
9698 # It seems that -bexpall does not export symbols beginning with
9699 # underscore (_), so it is better to generate a list of symbols to export.
9700 always_export_symbols_CXX=yes
9701 if test "$aix_use_runtimelinking" = yes; then
9702 # Warning - without using the other runtime loading flags (-brtl),
9703 # -berok will link without error, but may produce a broken library.
9704 allow_undefined_flag_CXX='-berok'
9705 # Determine the default libpath from the value encoded in an empty executable.
9706 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00009707/* confdefs.h. */
9708_ACEOF
9709cat confdefs.h >>conftest.$ac_ext
9710cat >>conftest.$ac_ext <<_ACEOF
9711/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00009712
John Criswell47fdd832003-07-14 16:52:07 +00009713int
9714main ()
9715{
9716
9717 ;
9718 return 0;
9719}
9720_ACEOF
9721rm -f conftest.$ac_objext conftest$ac_exeext
9722if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +00009723 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +00009724 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +00009725 grep -v '^ *+' conftest.er1 >conftest.err
9726 rm -f conftest.er1
9727 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +00009728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9729 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +00009730 { ac_try='test -z "$ac_cxx_werror_flag"
9731 || test ! -s conftest.err'
9732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9733 (eval $ac_try) 2>&5
9734 ac_status=$?
9735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9736 (exit $ac_status); }; } &&
9737 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +00009738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9739 (eval $ac_try) 2>&5
9740 ac_status=$?
9741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9742 (exit $ac_status); }; }; then
9743
9744aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9745}'`
9746# Check for a 64-bit object if we didn't find anything.
9747if 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; }
9748}'`; fi
9749else
9750 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00009751sed 's/^/| /' conftest.$ac_ext >&5
9752
John Criswell47fdd832003-07-14 16:52:07 +00009753fi
Reid Spencer2b51a082004-08-04 00:34:49 +00009754rm -f conftest.err conftest.$ac_objext \
9755 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +00009756if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9757
9758 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9759
9760 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"
9761 else
9762 if test "$host_cpu" = ia64; then
9763 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9764 allow_undefined_flag_CXX="-z nodefs"
9765 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"
9766 else
9767 # Determine the default libpath from the value encoded in an empty executable.
9768 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00009769/* confdefs.h. */
9770_ACEOF
9771cat confdefs.h >>conftest.$ac_ext
9772cat >>conftest.$ac_ext <<_ACEOF
9773/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00009774
John Criswell47fdd832003-07-14 16:52:07 +00009775int
9776main ()
9777{
9778
9779 ;
9780 return 0;
9781}
9782_ACEOF
9783rm -f conftest.$ac_objext conftest$ac_exeext
9784if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +00009785 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +00009786 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +00009787 grep -v '^ *+' conftest.er1 >conftest.err
9788 rm -f conftest.er1
9789 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +00009790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9791 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +00009792 { ac_try='test -z "$ac_cxx_werror_flag"
9793 || test ! -s conftest.err'
9794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9795 (eval $ac_try) 2>&5
9796 ac_status=$?
9797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9798 (exit $ac_status); }; } &&
9799 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +00009800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9801 (eval $ac_try) 2>&5
9802 ac_status=$?
9803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9804 (exit $ac_status); }; }; then
9805
9806aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9807}'`
9808# Check for a 64-bit object if we didn't find anything.
9809if 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; }
9810}'`; fi
9811else
9812 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00009813sed 's/^/| /' conftest.$ac_ext >&5
9814
John Criswell47fdd832003-07-14 16:52:07 +00009815fi
Reid Spencer2b51a082004-08-04 00:34:49 +00009816rm -f conftest.err conftest.$ac_objext \
9817 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +00009818if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9819
9820 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9821 # Warning - without using the other run time loading flags,
9822 # -berok will link without error, but may produce a broken library.
9823 no_undefined_flag_CXX=' ${wl}-bernotok'
9824 allow_undefined_flag_CXX=' ${wl}-berok'
9825 # -bexpall does not export symbols beginning with underscore (_)
9826 always_export_symbols_CXX=yes
9827 # Exported symbols can be pulled into shared objects from archives
9828 whole_archive_flag_spec_CXX=' '
9829 archive_cmds_need_lc_CXX=yes
9830 # This is similar to how AIX traditionally builds it's shared libraries.
9831 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'
9832 fi
9833 fi
9834 ;;
9835 chorus*)
9836 case $cc_basename in
9837 *)
9838 # FIXME: insert proper C++ library support
9839 ld_shlibs_CXX=no
9840 ;;
9841 esac
9842 ;;
9843
9844 cygwin* | mingw* | pw32*)
9845 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9846 # as there is no search path for DLLs.
9847 hardcode_libdir_flag_spec_CXX='-L$libdir'
9848 allow_undefined_flag_CXX=unsupported
9849 always_export_symbols_CXX=no
9850 enable_shared_with_static_runtimes_CXX=yes
9851
9852 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9853 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'
9854 # If the export-symbols file already is a .def file (1st line
9855 # is EXPORTS), use it as is; otherwise, prepend...
9856 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9857 cp $export_symbols $output_objdir/$soname.def;
9858 else
9859 echo EXPORTS > $output_objdir/$soname.def;
9860 cat $export_symbols >> $output_objdir/$soname.def;
9861 fi~
9862 $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'
9863 else
9864 ld_shlibs_CXX=no
9865 fi
9866 ;;
9867
9868 darwin* | rhapsody*)
9869 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
9870 archive_cmds_need_lc_CXX=no
9871 case "$host_os" in
9872 rhapsody* | darwin1.[012])
9873 allow_undefined_flag_CXX='-undefined suppress'
9874 ;;
9875 *) # Darwin 1.3 on
9876 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9877 ;;
9878 esac
9879 lt_int_apple_cc_single_mod=no
9880 output_verbose_link_cmd='echo'
9881 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9882 lt_int_apple_cc_single_mod=yes
9883 fi
9884 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9885 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9886 else
9887 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'
9888 fi
9889 module_cmds_CXX='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
9890
9891 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9892 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9893 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}'
9894 else
9895 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}'
9896 fi
9897 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}'
9898 hardcode_direct_CXX=no
9899 hardcode_automatic_CXX=yes
9900 hardcode_shlibpath_var_CXX=unsupported
9901 whole_archive_flag_spec_CXX='-all_load $convenience'
9902 link_all_deplibs_CXX=yes
9903 fi
9904 ;;
9905
9906 dgux*)
9907 case $cc_basename in
9908 ec++)
9909 # FIXME: insert proper C++ library support
9910 ld_shlibs_CXX=no
9911 ;;
9912 ghcx)
9913 # Green Hills C++ Compiler
9914 # FIXME: insert proper C++ library support
9915 ld_shlibs_CXX=no
9916 ;;
9917 *)
9918 # FIXME: insert proper C++ library support
9919 ld_shlibs_CXX=no
9920 ;;
9921 esac
9922 ;;
9923 freebsd12*)
9924 # C++ shared libraries reported to be fairly broken before switch to ELF
9925 ld_shlibs_CXX=no
9926 ;;
9927 freebsd-elf*)
9928 archive_cmds_need_lc_CXX=no
9929 ;;
9930 freebsd*)
9931 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9932 # conventions
9933 ld_shlibs_CXX=yes
9934 ;;
9935 gnu*)
9936 ;;
9937 hpux9*)
9938 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9939 hardcode_libdir_separator_CXX=:
9940 export_dynamic_flag_spec_CXX='${wl}-E'
9941 hardcode_direct_CXX=yes
9942 hardcode_minus_L_CXX=yes # Not in the search PATH,
9943 # but as the default
9944 # location of the library.
9945
9946 case $cc_basename in
9947 CC)
9948 # FIXME: insert proper C++ library support
9949 ld_shlibs_CXX=no
9950 ;;
9951 aCC)
9952 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'
9953 # Commands to make compiler produce verbose output that lists
9954 # what "hidden" libraries, object files and flags are used when
9955 # linking a shared library.
9956 #
9957 # There doesn't appear to be a way to prevent this compiler from
9958 # explicitly linking system object files so we need to strip them
9959 # from the output so that they don't get included in the library
9960 # dependencies.
9961 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'
9962 ;;
9963 *)
9964 if test "$GXX" = yes; then
9965 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'
9966 else
9967 # FIXME: insert proper C++ library support
9968 ld_shlibs_CXX=no
9969 fi
9970 ;;
9971 esac
9972 ;;
9973 hpux10*|hpux11*)
9974 if test $with_gnu_ld = no; then
9975 case "$host_cpu" in
9976 hppa*64*)
9977 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9978 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
9979 hardcode_libdir_separator_CXX=:
9980 ;;
9981 ia64*)
9982 hardcode_libdir_flag_spec_CXX='-L$libdir'
9983 ;;
9984 *)
9985 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9986 hardcode_libdir_separator_CXX=:
9987 export_dynamic_flag_spec_CXX='${wl}-E'
9988 ;;
9989 esac
9990 fi
9991 case "$host_cpu" in
9992 hppa*64*)
9993 hardcode_direct_CXX=no
9994 hardcode_shlibpath_var_CXX=no
9995 ;;
9996 ia64*)
9997 hardcode_direct_CXX=no
9998 hardcode_shlibpath_var_CXX=no
9999 hardcode_minus_L_CXX=yes # Not in the search PATH,
10000 # but as the default
10001 # location of the library.
10002 ;;
10003 *)
10004 hardcode_direct_CXX=yes
10005 hardcode_minus_L_CXX=yes # Not in the search PATH,
10006 # but as the default
10007 # location of the library.
10008 ;;
10009 esac
10010
10011 case $cc_basename in
10012 CC)
10013 # FIXME: insert proper C++ library support
10014 ld_shlibs_CXX=no
10015 ;;
10016 aCC)
10017 case "$host_cpu" in
10018 hppa*64*|ia64*)
10019 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10020 ;;
10021 *)
10022 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10023 ;;
10024 esac
10025 # Commands to make compiler produce verbose output that lists
10026 # what "hidden" libraries, object files and flags are used when
10027 # linking a shared library.
10028 #
10029 # There doesn't appear to be a way to prevent this compiler from
10030 # explicitly linking system object files so we need to strip them
10031 # from the output so that they don't get included in the library
10032 # dependencies.
10033 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'
10034 ;;
10035 *)
10036 if test "$GXX" = yes; then
10037 if test $with_gnu_ld = no; then
10038 case "$host_cpu" in
10039 ia64*|hppa*64*)
10040 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10041 ;;
10042 *)
10043 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'
10044 ;;
10045 esac
10046 fi
10047 else
10048 # FIXME: insert proper C++ library support
10049 ld_shlibs_CXX=no
10050 fi
10051 ;;
10052 esac
10053 ;;
10054 irix5* | irix6*)
10055 case $cc_basename in
10056 CC)
10057 # SGI C++
10058 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'
10059
10060 # Archives containing C++ object files must be created using
10061 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10062 # necessary to make sure instantiated templates are included
10063 # in the archive.
10064 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10065 ;;
10066 *)
10067 if test "$GXX" = yes; then
10068 if test "$with_gnu_ld" = no; then
10069 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'
10070 else
10071 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'
10072 fi
10073 fi
10074 link_all_deplibs_CXX=yes
10075 ;;
10076 esac
10077 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10078 hardcode_libdir_separator_CXX=:
10079 ;;
10080 linux*)
10081 case $cc_basename in
10082 KCC)
10083 # Kuck and Associates, Inc. (KAI) C++ Compiler
10084
10085 # KCC will only create a shared library if the output file
10086 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10087 # to its proper name (with version) after linking.
10088 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'
10089 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'
10090 # Commands to make compiler produce verbose output that lists
10091 # what "hidden" libraries, object files and flags are used when
10092 # linking a shared library.
10093 #
10094 # There doesn't appear to be a way to prevent this compiler from
10095 # explicitly linking system object files so we need to strip them
10096 # from the output so that they don't get included in the library
10097 # dependencies.
10098 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'
10099
10100 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10101 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10102
10103 # Archives containing C++ object files must be created using
10104 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10105 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10106 ;;
10107 icpc)
10108 # Intel C++
10109 with_gnu_ld=yes
10110 archive_cmds_need_lc_CXX=no
10111 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10112 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'
10113 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10114 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10115 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10116 ;;
10117 cxx)
10118 # Compaq C++
10119 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10120 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'
10121
10122 runpath_var=LD_RUN_PATH
10123 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10124 hardcode_libdir_separator_CXX=:
10125
10126 # Commands to make compiler produce verbose output that lists
10127 # what "hidden" libraries, object files and flags are used when
10128 # linking a shared library.
10129 #
10130 # There doesn't appear to be a way to prevent this compiler from
10131 # explicitly linking system object files so we need to strip them
10132 # from the output so that they don't get included in the library
10133 # dependencies.
10134 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'
10135 ;;
10136 esac
10137 ;;
10138 lynxos*)
10139 # FIXME: insert proper C++ library support
10140 ld_shlibs_CXX=no
10141 ;;
10142 m88k*)
10143 # FIXME: insert proper C++ library support
10144 ld_shlibs_CXX=no
10145 ;;
10146 mvs*)
10147 case $cc_basename in
10148 cxx)
10149 # FIXME: insert proper C++ library support
10150 ld_shlibs_CXX=no
10151 ;;
10152 *)
10153 # FIXME: insert proper C++ library support
10154 ld_shlibs_CXX=no
10155 ;;
10156 esac
10157 ;;
10158 netbsd*)
10159 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10160 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10161 wlarc=
10162 hardcode_libdir_flag_spec_CXX='-R$libdir'
10163 hardcode_direct_CXX=yes
10164 hardcode_shlibpath_var_CXX=no
10165 fi
10166 # Workaround some broken pre-1.5 toolchains
10167 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10168 ;;
10169 osf3*)
10170 case $cc_basename in
10171 KCC)
10172 # Kuck and Associates, Inc. (KAI) C++ Compiler
10173
10174 # KCC will only create a shared library if the output file
10175 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10176 # to its proper name (with version) after linking.
10177 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'
10178
10179 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10180 hardcode_libdir_separator_CXX=:
10181
10182 # Archives containing C++ object files must be created using
10183 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10184 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10185
10186 ;;
10187 RCC)
10188 # Rational C++ 2.4.1
10189 # FIXME: insert proper C++ library support
10190 ld_shlibs_CXX=no
10191 ;;
10192 cxx)
10193 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10194 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'
10195
10196 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10197 hardcode_libdir_separator_CXX=:
10198
10199 # Commands to make compiler produce verbose output that lists
10200 # what "hidden" libraries, object files and flags are used when
10201 # linking a shared library.
10202 #
10203 # There doesn't appear to be a way to prevent this compiler from
10204 # explicitly linking system object files so we need to strip them
10205 # from the output so that they don't get included in the library
10206 # dependencies.
10207 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'
10208 ;;
10209 *)
10210 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10211 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10212 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'
10213
10214 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10215 hardcode_libdir_separator_CXX=:
10216
10217 # Commands to make compiler produce verbose output that lists
10218 # what "hidden" libraries, object files and flags are used when
10219 # linking a shared library.
10220 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10221
10222 else
10223 # FIXME: insert proper C++ library support
10224 ld_shlibs_CXX=no
10225 fi
10226 ;;
10227 esac
10228 ;;
10229 osf4* | osf5*)
10230 case $cc_basename in
10231 KCC)
10232 # Kuck and Associates, Inc. (KAI) C++ Compiler
10233
10234 # KCC will only create a shared library if the output file
10235 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10236 # to its proper name (with version) after linking.
10237 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'
10238
10239 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10240 hardcode_libdir_separator_CXX=:
10241
10242 # Archives containing C++ object files must be created using
10243 # the KAI C++ compiler.
10244 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10245 ;;
10246 RCC)
10247 # Rational C++ 2.4.1
10248 # FIXME: insert proper C++ library support
10249 ld_shlibs_CXX=no
10250 ;;
10251 cxx)
10252 allow_undefined_flag_CXX=' -expect_unresolved \*'
10253 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'
10254 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10255 echo "-hidden">> $lib.exp~
10256 $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~
10257 $rm $lib.exp'
10258
10259 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10260 hardcode_libdir_separator_CXX=:
10261
10262 # Commands to make compiler produce verbose output that lists
10263 # what "hidden" libraries, object files and flags are used when
10264 # linking a shared library.
10265 #
10266 # There doesn't appear to be a way to prevent this compiler from
10267 # explicitly linking system object files so we need to strip them
10268 # from the output so that they don't get included in the library
10269 # dependencies.
10270 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'
10271 ;;
10272 *)
10273 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10274 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10275 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'
10276
10277 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10278 hardcode_libdir_separator_CXX=:
10279
10280 # Commands to make compiler produce verbose output that lists
10281 # what "hidden" libraries, object files and flags are used when
10282 # linking a shared library.
10283 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10284
10285 else
10286 # FIXME: insert proper C++ library support
10287 ld_shlibs_CXX=no
10288 fi
10289 ;;
10290 esac
10291 ;;
10292 psos*)
10293 # FIXME: insert proper C++ library support
10294 ld_shlibs_CXX=no
10295 ;;
10296 sco*)
10297 archive_cmds_need_lc_CXX=no
10298 case $cc_basename in
10299 CC)
10300 # FIXME: insert proper C++ library support
10301 ld_shlibs_CXX=no
10302 ;;
10303 *)
10304 # FIXME: insert proper C++ library support
10305 ld_shlibs_CXX=no
10306 ;;
10307 esac
10308 ;;
10309 sunos4*)
10310 case $cc_basename in
10311 CC)
10312 # Sun C++ 4.x
10313 # FIXME: insert proper C++ library support
10314 ld_shlibs_CXX=no
10315 ;;
10316 lcc)
10317 # Lucid
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 solaris*)
10328 case $cc_basename in
10329 CC)
10330 # Sun C++ 4.2, 5.x and Centerline C++
10331 no_undefined_flag_CXX=' -zdefs'
10332 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10333 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10334 $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'
10335
10336 hardcode_libdir_flag_spec_CXX='-R$libdir'
10337 hardcode_shlibpath_var_CXX=no
10338 case $host_os in
10339 solaris2.0-5 | solaris2.0-5.*) ;;
10340 *)
10341 # The C++ compiler is used as linker so we must use $wl
10342 # flag to pass the commands to the underlying system
10343 # linker.
10344 # Supported since Solaris 2.6 (maybe 2.5.1?)
10345 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10346 ;;
10347 esac
10348 link_all_deplibs_CXX=yes
10349
10350 # Commands to make compiler produce verbose output that lists
10351 # what "hidden" libraries, object files and flags are used when
10352 # linking a shared library.
10353 #
10354 # There doesn't appear to be a way to prevent this compiler from
10355 # explicitly linking system object files so we need to strip them
10356 # from the output so that they don't get included in the library
10357 # dependencies.
10358 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'
10359
10360 # Archives containing C++ object files must be created using
10361 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10362 # necessary to make sure instantiated templates are included
10363 # in the archive.
10364 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10365 ;;
10366 gcx)
10367 # Green Hills C++ Compiler
10368 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10369
10370 # The C++ compiler must be used to create the archive.
10371 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10372 ;;
10373 *)
10374 # GNU C++ compiler with Solaris linker
10375 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10376 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10377 if $CC --version | grep -v '^2\.7' > /dev/null; then
10378 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10379 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10380 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10381
10382 # Commands to make compiler produce verbose output that lists
10383 # what "hidden" libraries, object files and flags are used when
10384 # linking a shared library.
10385 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10386 else
10387 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10388 # platform.
10389 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10390 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10391 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10392
10393 # Commands to make compiler produce verbose output that lists
10394 # what "hidden" libraries, object files and flags are used when
10395 # linking a shared library.
10396 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10397 fi
10398
10399 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10400 fi
10401 ;;
10402 esac
10403 ;;
10404 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10405 archive_cmds_need_lc_CXX=no
10406 ;;
10407 tandem*)
10408 case $cc_basename in
10409 NCC)
10410 # NonStop-UX NCC 3.20
10411 # FIXME: insert proper C++ library support
10412 ld_shlibs_CXX=no
10413 ;;
10414 *)
10415 # FIXME: insert proper C++ library support
10416 ld_shlibs_CXX=no
10417 ;;
10418 esac
10419 ;;
10420 vxworks*)
10421 # FIXME: insert proper C++ library support
10422 ld_shlibs_CXX=no
10423 ;;
10424 *)
10425 # FIXME: insert proper C++ library support
10426 ld_shlibs_CXX=no
10427 ;;
10428esac
10429echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10430echo "${ECHO_T}$ld_shlibs_CXX" >&6
10431test "$ld_shlibs_CXX" = no && can_build_shared=no
10432
10433GCC_CXX="$GXX"
10434LD_CXX="$LD"
10435
Reid Spencer2b51a082004-08-04 00:34:49 +000010436## CAVEAT EMPTOR:
10437## There is no encapsulation within the following macros, do not change
10438## the running order or otherwise move them around unless you know exactly
10439## what you are doing...
John Criswell47fdd832003-07-14 16:52:07 +000010440
10441cat > conftest.$ac_ext <<EOF
10442class Foo
10443{
10444public:
10445 Foo (void) { a = 0; }
10446private:
10447 int a;
10448};
10449EOF
10450
10451if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10452 (eval $ac_compile) 2>&5
10453 ac_status=$?
10454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10455 (exit $ac_status); }; then
10456 # Parse the compiler output and extract the necessary
10457 # objects, libraries and library flags.
10458
10459 # Sentinel used to keep track of whether or not we are before
10460 # the conftest object file.
10461 pre_test_object_deps_done=no
10462
10463 # The `*' in the case matches for architectures that use `case' in
10464 # $output_verbose_cmd can trigger glob expansion during the loop
10465 # eval without this substitution.
10466 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10467
10468 for p in `eval $output_verbose_link_cmd`; do
10469 case $p in
10470
10471 -L* | -R* | -l*)
10472 # Some compilers place space between "-{L,R}" and the path.
10473 # Remove the space.
10474 if test $p = "-L" \
10475 || test $p = "-R"; then
10476 prev=$p
10477 continue
10478 else
10479 prev=
10480 fi
10481
10482 if test "$pre_test_object_deps_done" = no; then
10483 case $p in
10484 -L* | -R*)
10485 # Internal compiler library paths should come after those
10486 # provided the user. The postdeps already come after the
10487 # user supplied libs so there is no need to process them.
10488 if test -z "$compiler_lib_search_path_CXX"; then
10489 compiler_lib_search_path_CXX="${prev}${p}"
10490 else
10491 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10492 fi
10493 ;;
10494 # The "-l" case would never come before the object being
10495 # linked, so don't bother handling this case.
10496 esac
10497 else
10498 if test -z "$postdeps_CXX"; then
10499 postdeps_CXX="${prev}${p}"
10500 else
10501 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10502 fi
10503 fi
10504 ;;
10505
10506 *.$objext)
10507 # This assumes that the test object file only shows up
10508 # once in the compiler output.
10509 if test "$p" = "conftest.$objext"; then
10510 pre_test_object_deps_done=yes
10511 continue
10512 fi
10513
10514 if test "$pre_test_object_deps_done" = no; then
10515 if test -z "$predep_objects_CXX"; then
10516 predep_objects_CXX="$p"
10517 else
10518 predep_objects_CXX="$predep_objects_CXX $p"
10519 fi
10520 else
10521 if test -z "$postdep_objects_CXX"; then
10522 postdep_objects_CXX="$p"
10523 else
10524 postdep_objects_CXX="$postdep_objects_CXX $p"
10525 fi
10526 fi
10527 ;;
10528
10529 *) ;; # Ignore the rest.
10530
10531 esac
10532 done
10533
10534 # Clean up.
10535 rm -f a.out a.exe
10536else
10537 echo "libtool.m4: error: problem compiling CXX test program"
10538fi
10539
10540$rm -f confest.$objext
10541
10542case " $postdeps_CXX " in
10543*" -lc "*) archive_cmds_need_lc_CXX=no ;;
10544esac
10545
10546lt_prog_compiler_wl_CXX=
10547lt_prog_compiler_pic_CXX=
10548lt_prog_compiler_static_CXX=
10549
10550echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10551echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10552
10553 # C++ specific cases for pic, static, wl, etc.
10554 if test "$GXX" = yes; then
10555 lt_prog_compiler_wl_CXX='-Wl,'
10556 lt_prog_compiler_static_CXX='-static'
10557
10558 case $host_os in
10559 aix*)
10560 # All AIX code is PIC.
10561 if test "$host_cpu" = ia64; then
10562 # AIX 5 now supports IA64 processor
10563 lt_prog_compiler_static_CXX='-Bstatic'
10564 fi
10565 ;;
10566 amigaos*)
10567 # FIXME: we need at least 68020 code to build shared libraries, but
10568 # adding the `-m68020' flag to GCC prevents building anything better,
10569 # like `-m68040'.
10570 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10571 ;;
10572 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10573 # PIC is the default for these OSes.
10574 ;;
10575 mingw* | os2* | pw32*)
10576 # This hack is so that the source file can tell whether it is being
10577 # built for inclusion in a dll (and should export symbols for example).
10578 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10579 ;;
10580 darwin* | rhapsody*)
10581 # PIC is the default on this platform
10582 # Common symbols not allowed in MH_DYLIB files
10583 lt_prog_compiler_pic_CXX='-fno-common'
10584 ;;
10585 *djgpp*)
10586 # DJGPP does not support shared libraries at all
10587 lt_prog_compiler_pic_CXX=
10588 ;;
10589 sysv4*MP*)
10590 if test -d /usr/nec; then
10591 lt_prog_compiler_pic_CXX=-Kconform_pic
10592 fi
10593 ;;
10594 hpux*)
10595 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10596 # not for PA HP-UX.
10597 case "$host_cpu" in
10598 hppa*64*|ia64*)
10599 ;;
10600 *)
10601 lt_prog_compiler_pic_CXX='-fPIC'
10602 ;;
10603 esac
10604 ;;
10605 *)
10606 lt_prog_compiler_pic_CXX='-fPIC'
10607 ;;
10608 esac
10609 else
10610 case $host_os in
10611 aix4* | aix5*)
10612 # All AIX code is PIC.
10613 if test "$host_cpu" = ia64; then
10614 # AIX 5 now supports IA64 processor
10615 lt_prog_compiler_static_CXX='-Bstatic'
10616 else
10617 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10618 fi
10619 ;;
10620 chorus*)
10621 case $cc_basename in
10622 cxch68)
10623 # Green Hills C++ Compiler
10624 # _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"
10625 ;;
10626 esac
10627 ;;
10628 dgux*)
10629 case $cc_basename in
10630 ec++)
10631 lt_prog_compiler_pic_CXX='-KPIC'
10632 ;;
10633 ghcx)
10634 # Green Hills C++ Compiler
10635 lt_prog_compiler_pic_CXX='-pic'
10636 ;;
10637 *)
10638 ;;
10639 esac
10640 ;;
10641 freebsd*)
10642 # FreeBSD uses GNU C++
10643 ;;
10644 hpux9* | hpux10* | hpux11*)
10645 case $cc_basename in
10646 CC)
10647 lt_prog_compiler_wl_CXX='-Wl,'
10648 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10649 if test "$host_cpu" != ia64; then
10650 lt_prog_compiler_pic_CXX='+Z'
10651 fi
10652 ;;
10653 aCC)
10654 lt_prog_compiler_wl_CXX='-Wl,'
10655 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10656 case "$host_cpu" in
10657 hppa*64*|ia64*)
10658 # +Z the default
10659 ;;
10660 *)
10661 lt_prog_compiler_pic_CXX='+Z'
10662 ;;
10663 esac
10664 ;;
10665 *)
10666 ;;
10667 esac
10668 ;;
10669 irix5* | irix6* | nonstopux*)
10670 case $cc_basename in
10671 CC)
10672 lt_prog_compiler_wl_CXX='-Wl,'
10673 lt_prog_compiler_static_CXX='-non_shared'
10674 # CC pic flag -KPIC is the default.
10675 ;;
10676 *)
10677 ;;
10678 esac
10679 ;;
10680 linux*)
10681 case $cc_basename in
10682 KCC)
10683 # KAI C++ Compiler
10684 lt_prog_compiler_wl_CXX='--backend -Wl,'
10685 lt_prog_compiler_pic_CXX='-fPIC'
10686 ;;
10687 icpc)
10688 # Intel C++
10689 lt_prog_compiler_wl_CXX='-Wl,'
10690 lt_prog_compiler_pic_CXX='-KPIC'
10691 lt_prog_compiler_static_CXX='-static'
10692 ;;
10693 cxx)
10694 # Compaq C++
10695 # Make sure the PIC flag is empty. It appears that all Alpha
10696 # Linux and Compaq Tru64 Unix objects are PIC.
10697 lt_prog_compiler_pic_CXX=
10698 lt_prog_compiler_static_CXX='-non_shared'
10699 ;;
10700 *)
10701 ;;
10702 esac
10703 ;;
10704 lynxos*)
10705 ;;
10706 m88k*)
10707 ;;
10708 mvs*)
10709 case $cc_basename in
10710 cxx)
10711 lt_prog_compiler_pic_CXX='-W c,exportall'
10712 ;;
10713 *)
10714 ;;
10715 esac
10716 ;;
10717 netbsd*)
10718 ;;
10719 osf3* | osf4* | osf5*)
10720 case $cc_basename in
10721 KCC)
10722 lt_prog_compiler_wl_CXX='--backend -Wl,'
10723 ;;
10724 RCC)
10725 # Rational C++ 2.4.1
10726 lt_prog_compiler_pic_CXX='-pic'
10727 ;;
10728 cxx)
10729 # Digital/Compaq C++
10730 lt_prog_compiler_wl_CXX='-Wl,'
10731 # Make sure the PIC flag is empty. It appears that all Alpha
10732 # Linux and Compaq Tru64 Unix objects are PIC.
10733 lt_prog_compiler_pic_CXX=
10734 lt_prog_compiler_static_CXX='-non_shared'
10735 ;;
10736 *)
10737 ;;
10738 esac
10739 ;;
10740 psos*)
10741 ;;
10742 sco*)
10743 case $cc_basename in
10744 CC)
10745 lt_prog_compiler_pic_CXX='-fPIC'
10746 ;;
10747 *)
10748 ;;
10749 esac
10750 ;;
10751 solaris*)
10752 case $cc_basename in
10753 CC)
10754 # Sun C++ 4.2, 5.x and Centerline C++
10755 lt_prog_compiler_pic_CXX='-KPIC'
10756 lt_prog_compiler_static_CXX='-Bstatic'
10757 lt_prog_compiler_wl_CXX='-Qoption ld '
10758 ;;
10759 gcx)
10760 # Green Hills C++ Compiler
10761 lt_prog_compiler_pic_CXX='-PIC'
10762 ;;
10763 *)
10764 ;;
10765 esac
10766 ;;
10767 sunos4*)
10768 case $cc_basename in
10769 CC)
10770 # Sun C++ 4.x
10771 lt_prog_compiler_pic_CXX='-pic'
10772 lt_prog_compiler_static_CXX='-Bstatic'
10773 ;;
10774 lcc)
10775 # Lucid
10776 lt_prog_compiler_pic_CXX='-pic'
10777 ;;
10778 *)
10779 ;;
10780 esac
10781 ;;
10782 tandem*)
10783 case $cc_basename in
10784 NCC)
10785 # NonStop-UX NCC 3.20
10786 lt_prog_compiler_pic_CXX='-KPIC'
10787 ;;
10788 *)
10789 ;;
10790 esac
10791 ;;
10792 unixware*)
10793 ;;
10794 vxworks*)
10795 ;;
10796 *)
10797 lt_prog_compiler_can_build_shared_CXX=no
10798 ;;
10799 esac
10800 fi
10801
10802echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10803echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10804
10805#
10806# Check to make sure the PIC flag actually works.
10807#
10808if test -n "$lt_prog_compiler_pic_CXX"; then
10809 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10810echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10811if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10812 echo $ECHO_N "(cached) $ECHO_C" >&6
10813else
10814 lt_prog_compiler_pic_works_CXX=no
10815 ac_outfile=conftest.$ac_objext
10816 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10817 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10818 # Insert the option either (1) after the last *FLAGS variable, or
10819 # (2) before a word containing "conftest.", or (3) at the end.
10820 # Note that $ac_compile itself does not contain backslashes and begins
10821 # with a dollar sign (not a hyphen), so the echo should work correctly.
10822 # The option is referenced via a variable to avoid confusing sed.
10823 lt_compile=`echo "$ac_compile" | $SED \
10824 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10825 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10826 -e 's:$: $lt_compiler_flag:'`
Reid Spencer886e9512004-08-31 01:34:10 +000010827 (eval echo "\"\$as_me:10827: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000010828 (eval "$lt_compile" 2>conftest.err)
10829 ac_status=$?
10830 cat conftest.err >&5
Reid Spencer886e9512004-08-31 01:34:10 +000010831 echo "$as_me:10831: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000010832 if (exit $ac_status) && test -s "$ac_outfile"; then
10833 # The compiler can only warn and ignore the option if not recognized
10834 # So say no if there are warnings
10835 if test ! -s conftest.err; then
10836 lt_prog_compiler_pic_works_CXX=yes
10837 fi
10838 fi
10839 $rm conftest*
10840
10841fi
10842echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10843echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10844
10845if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10846 case $lt_prog_compiler_pic_CXX in
10847 "" | " "*) ;;
10848 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10849 esac
10850else
10851 lt_prog_compiler_pic_CXX=
10852 lt_prog_compiler_can_build_shared_CXX=no
10853fi
10854
10855fi
10856case "$host_os" in
10857 # For platforms which do not support PIC, -DPIC is meaningless:
10858 *djgpp*)
10859 lt_prog_compiler_pic_CXX=
10860 ;;
10861 *)
10862 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10863 ;;
10864esac
10865
10866echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10867echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10868if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10869 echo $ECHO_N "(cached) $ECHO_C" >&6
10870else
10871 lt_cv_prog_compiler_c_o_CXX=no
10872 $rm -r conftest 2>/dev/null
10873 mkdir conftest
10874 cd conftest
10875 mkdir out
10876 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10877
10878 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
10879 # that will create temporary files in the current directory regardless of
10880 # the output directory. Thus, making CWD read-only will cause this test
10881 # to fail, enabling locking or at least warning the user not to do parallel
10882 # builds.
10883 chmod -w .
10884
10885 lt_compiler_flag="-o out/conftest2.$ac_objext"
10886 # Insert the option either (1) after the last *FLAGS variable, or
10887 # (2) before a word containing "conftest.", or (3) at the end.
10888 # Note that $ac_compile itself does not contain backslashes and begins
10889 # with a dollar sign (not a hyphen), so the echo should work correctly.
10890 lt_compile=`echo "$ac_compile" | $SED \
10891 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10892 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10893 -e 's:$: $lt_compiler_flag:'`
Reid Spencer886e9512004-08-31 01:34:10 +000010894 (eval echo "\"\$as_me:10894: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000010895 (eval "$lt_compile" 2>out/conftest.err)
10896 ac_status=$?
10897 cat out/conftest.err >&5
Reid Spencer886e9512004-08-31 01:34:10 +000010898 echo "$as_me:10898: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000010899 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10900 then
10901 # The compiler can only warn and ignore the option if not recognized
10902 # So say no if there are warnings
10903 if test ! -s out/conftest.err; then
10904 lt_cv_prog_compiler_c_o_CXX=yes
10905 fi
10906 fi
10907 chmod u+w .
10908 $rm conftest* out/*
10909 rmdir out
10910 cd ..
10911 rmdir conftest
10912 $rm conftest*
10913
10914fi
10915echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10916echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10917
10918
10919hard_links="nottested"
10920if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10921 # do not overwrite the value of need_locks provided by the user
10922 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10923echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10924 hard_links=yes
10925 $rm conftest*
10926 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10927 touch conftest.a
10928 ln conftest.a conftest.b 2>&5 || hard_links=no
10929 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10930 echo "$as_me:$LINENO: result: $hard_links" >&5
10931echo "${ECHO_T}$hard_links" >&6
10932 if test "$hard_links" = no; then
10933 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10934echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10935 need_locks=warn
10936 fi
10937else
10938 need_locks=no
10939fi
10940
10941echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10942echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10943
10944 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10945 case $host_os in
10946 aix4* | aix5*)
10947 # If we're using GNU nm, then we don't want the "-C" option.
10948 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10949 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10950 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'
10951 else
10952 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'
10953 fi
10954 ;;
10955 pw32*)
10956 export_symbols_cmds_CXX="$ltdll_cmds"
10957 ;;
10958 cygwin* | mingw*)
10959 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10960 ;;
10961 *)
10962 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10963 ;;
10964 esac
10965
10966echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10967echo "${ECHO_T}$ld_shlibs_CXX" >&6
10968test "$ld_shlibs_CXX" = no && can_build_shared=no
10969
10970variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10971if test "$GCC" = yes; then
10972 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10973fi
10974
10975#
10976# Do we need to explicitly link libc?
10977#
10978case "x$archive_cmds_need_lc_CXX" in
10979x|xyes)
10980 # Assume -lc should be added
10981 archive_cmds_need_lc_CXX=yes
10982
10983 if test "$enable_shared" = yes && test "$GCC" = yes; then
10984 case $archive_cmds_CXX in
10985 *'~'*)
10986 # FIXME: we may have to deal with multi-command sequences.
10987 ;;
10988 '$CC '*)
10989 # Test whether the compiler implicitly links with -lc since on some
10990 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10991 # to ld, don't add -lc before -lgcc.
10992 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10993echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10994 $rm conftest*
10995 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10996
10997 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10998 (eval $ac_compile) 2>&5
10999 ac_status=$?
11000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11001 (exit $ac_status); } 2>conftest.err; then
11002 soname=conftest
11003 lib=conftest
11004 libobjs=conftest.$ac_objext
11005 deplibs=
11006 wl=$lt_prog_compiler_wl_CXX
11007 compiler_flags=-v
11008 linker_flags=-v
11009 verstring=
11010 output_objdir=.
11011 libname=conftest
11012 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11013 allow_undefined_flag_CXX=
11014 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11015 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11016 ac_status=$?
11017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11018 (exit $ac_status); }
11019 then
11020 archive_cmds_need_lc_CXX=no
11021 else
11022 archive_cmds_need_lc_CXX=yes
11023 fi
11024 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11025 else
11026 cat conftest.err 1>&5
11027 fi
11028 $rm conftest*
11029 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11030echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11031 ;;
11032 esac
11033 fi
11034 ;;
11035esac
11036
11037echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11038echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11039hardcode_action_CXX=
11040if test -n "$hardcode_libdir_flag_spec_CXX" || \
11041 test -n "$runpath_var CXX" || \
11042 test "X$hardcode_automatic_CXX"="Xyes" ; then
11043
11044 # We can hardcode non-existant directories.
11045 if test "$hardcode_direct_CXX" != no &&
11046 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11047 # have to relink, otherwise we might link with an installed library
11048 # when we should be linking with a yet-to-be-installed one
11049 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11050 test "$hardcode_minus_L_CXX" != no; then
11051 # Linking always hardcodes the temporary library directory.
11052 hardcode_action_CXX=relink
11053 else
11054 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11055 hardcode_action_CXX=immediate
11056 fi
11057else
11058 # We cannot hardcode anything, or else we can only hardcode existing
11059 # directories.
11060 hardcode_action_CXX=unsupported
11061fi
11062echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11063echo "${ECHO_T}$hardcode_action_CXX" >&6
11064
11065if test "$hardcode_action_CXX" = relink; then
11066 # Fast installation is not supported
11067 enable_fast_install=no
11068elif test "$shlibpath_overrides_runpath" = yes ||
11069 test "$enable_shared" = no; then
11070 # Fast installation is not necessary
11071 enable_fast_install=needless
11072fi
11073
11074striplib=
11075old_striplib=
11076echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11077echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11078if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11079 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11080 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11081 echo "$as_me:$LINENO: result: yes" >&5
11082echo "${ECHO_T}yes" >&6
11083else
11084# FIXME - insert some real tests, host_os isn't really good enough
11085 case $host_os in
11086 darwin*)
11087 if test -n "$STRIP" ; then
11088 striplib="$STRIP -x"
11089 echo "$as_me:$LINENO: result: yes" >&5
11090echo "${ECHO_T}yes" >&6
11091 else
11092 echo "$as_me:$LINENO: result: no" >&5
11093echo "${ECHO_T}no" >&6
11094fi
11095 ;;
11096 *)
11097 echo "$as_me:$LINENO: result: no" >&5
11098echo "${ECHO_T}no" >&6
11099 ;;
11100 esac
11101fi
11102
11103echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11104echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11105library_names_spec=
11106libname_spec='lib$name'
11107soname_spec=
11108shrext=".so"
11109postinstall_cmds=
11110postuninstall_cmds=
11111finish_cmds=
11112finish_eval=
11113shlibpath_var=
11114shlibpath_overrides_runpath=unknown
11115version_type=none
11116dynamic_linker="$host_os ld.so"
11117sys_lib_dlsearch_path_spec="/lib /usr/lib"
11118if test "$GCC" = yes; then
11119 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11120 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11121 # if the path contains ";" then we assume it to be the separator
11122 # otherwise default to the standard path separator (i.e. ":") - it is
11123 # assumed that no part of a normal pathname contains ";" but that should
11124 # okay in the real world where ";" in dirpaths is itself problematic.
11125 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11126 else
11127 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11128 fi
11129else
11130 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11131fi
11132need_lib_prefix=unknown
11133hardcode_into_libs=no
11134
11135# when you set need_version to no, make sure it does not cause -set_version
11136# flags to be left without arguments
11137need_version=unknown
11138
11139case $host_os in
11140aix3*)
11141 version_type=linux
11142 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11143 shlibpath_var=LIBPATH
11144
11145 # AIX 3 has no versioning support, so we append a major version to the name.
11146 soname_spec='${libname}${release}${shared_ext}$major'
11147 ;;
11148
11149aix4* | aix5*)
11150 version_type=linux
11151 need_lib_prefix=no
11152 need_version=no
11153 hardcode_into_libs=yes
11154 if test "$host_cpu" = ia64; then
11155 # AIX 5 supports IA64
11156 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11157 shlibpath_var=LD_LIBRARY_PATH
11158 else
11159 # With GCC up to 2.95.x, collect2 would create an import file
11160 # for dependence libraries. The import file would start with
11161 # the line `#! .'. This would cause the generated library to
11162 # depend on `.', always an invalid library. This was fixed in
11163 # development snapshots of GCC prior to 3.0.
11164 case $host_os in
11165 aix4 | aix4.[01] | aix4.[01].*)
11166 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11167 echo ' yes '
11168 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11169 :
11170 else
11171 can_build_shared=no
11172 fi
11173 ;;
11174 esac
11175 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11176 # soname into executable. Probably we can add versioning support to
11177 # collect2, so additional links can be useful in future.
11178 if test "$aix_use_runtimelinking" = yes; then
11179 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11180 # instead of lib<name>.a to let people know that these are not
11181 # typical AIX shared libraries.
11182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11183 else
11184 # We preserve .a as extension for shared libraries through AIX4.2
11185 # and later when we are not doing run time linking.
11186 library_names_spec='${libname}${release}.a $libname.a'
11187 soname_spec='${libname}${release}${shared_ext}$major'
11188 fi
11189 shlibpath_var=LIBPATH
11190 fi
11191 ;;
11192
11193amigaos*)
11194 library_names_spec='$libname.ixlibrary $libname.a'
11195 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11196 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'
11197 ;;
11198
11199beos*)
11200 library_names_spec='${libname}${shared_ext}'
11201 dynamic_linker="$host_os ld.so"
11202 shlibpath_var=LIBRARY_PATH
11203 ;;
11204
11205bsdi4*)
11206 version_type=linux
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 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11211 shlibpath_var=LD_LIBRARY_PATH
11212 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11213 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11214 # the default ld.so.conf also contains /usr/contrib/lib and
11215 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11216 # libtool to hard-code these into programs
11217 ;;
11218
11219cygwin* | mingw* | pw32*)
11220 version_type=windows
11221 shrext=".dll"
11222 need_version=no
11223 need_lib_prefix=no
11224
11225 case $GCC,$host_os in
11226 yes,cygwin* | yes,mingw* | yes,pw32*)
11227 library_names_spec='$libname.dll.a'
11228 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11229 postinstall_cmds='base_file=`basename \${file}`~
11230 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11231 dldir=$destdir/`dirname \$dlpath`~
11232 test -d \$dldir || mkdir -p \$dldir~
11233 $install_prog $dir/$dlname \$dldir/$dlname'
11234 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11235 dlpath=$dir/\$dldll~
11236 $rm \$dlpath'
11237 shlibpath_overrides_runpath=yes
11238
11239 case $host_os in
11240 cygwin*)
11241 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11242 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11243 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
11244 ;;
11245 mingw*)
11246 # MinGW DLLs use traditional 'lib' prefix
11247 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11248 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11249 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11250 # It is most probably a Windows format PATH printed by
11251 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11252 # path with ; separators, and with drive letters. We can handle the
11253 # drive letters (cygwin fileutils understands them), so leave them,
11254 # especially as we might pass files found there to a mingw objdump,
11255 # which wouldn't understand a cygwinified path. Ahh.
11256 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11257 else
11258 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11259 fi
11260 ;;
11261 pw32*)
11262 # pw32 DLLs use 'pw' prefix rather than 'lib'
11263 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11264 ;;
11265 esac
11266 ;;
11267
11268 *)
11269 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11270 ;;
11271 esac
11272 dynamic_linker='Win32 ld.exe'
11273 # FIXME: first we should search . and the directory the executable is in
11274 shlibpath_var=PATH
11275 ;;
11276
11277darwin* | rhapsody*)
11278 dynamic_linker="$host_os dyld"
11279 version_type=darwin
11280 need_lib_prefix=no
11281 need_version=no
11282 # FIXME: Relying on posixy $() will cause problems for
11283 # cross-compilation, but unfortunately the echo tests do not
11284 # yet detect zsh echo's removal of \ escapes.
11285 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11286 soname_spec='${libname}${release}${major}$shared_ext'
11287 shlibpath_overrides_runpath=yes
11288 shlibpath_var=DYLD_LIBRARY_PATH
11289 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
11290 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11291 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
11292 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"`
11293 fi
11294 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11295 ;;
11296
11297dgux*)
11298 version_type=linux
11299 need_lib_prefix=no
11300 need_version=no
11301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11302 soname_spec='${libname}${release}${shared_ext}$major'
11303 shlibpath_var=LD_LIBRARY_PATH
11304 ;;
11305
11306freebsd1*)
11307 dynamic_linker=no
11308 ;;
11309
11310freebsd*)
11311 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11312 version_type=freebsd-$objformat
11313 case $version_type in
11314 freebsd-elf*)
11315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11316 need_version=no
11317 need_lib_prefix=no
11318 ;;
11319 freebsd-*)
11320 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11321 need_version=yes
11322 ;;
11323 esac
11324 shlibpath_var=LD_LIBRARY_PATH
11325 case $host_os in
11326 freebsd2*)
11327 shlibpath_overrides_runpath=yes
11328 ;;
11329 freebsd3.01* | freebsdelf3.01*)
11330 shlibpath_overrides_runpath=yes
11331 hardcode_into_libs=yes
11332 ;;
11333 *) # from 3.2 on
11334 shlibpath_overrides_runpath=no
11335 hardcode_into_libs=yes
11336 ;;
11337 esac
11338 ;;
11339
11340gnu*)
11341 version_type=linux
11342 need_lib_prefix=no
11343 need_version=no
11344 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11345 soname_spec='${libname}${release}${shared_ext}$major'
11346 shlibpath_var=LD_LIBRARY_PATH
11347 hardcode_into_libs=yes
11348 ;;
11349
11350hpux9* | hpux10* | hpux11*)
11351 # Give a soname corresponding to the major version so that dld.sl refuses to
11352 # link against other versions.
11353 version_type=sunos
11354 need_lib_prefix=no
11355 need_version=no
11356 case "$host_cpu" in
11357 ia64*)
11358 shrext='.so'
11359 hardcode_into_libs=yes
11360 dynamic_linker="$host_os dld.so"
11361 shlibpath_var=LD_LIBRARY_PATH
11362 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11364 soname_spec='${libname}${release}${shared_ext}$major'
11365 if test "X$HPUX_IA64_MODE" = X32; then
11366 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11367 else
11368 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11369 fi
11370 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11371 ;;
11372 hppa*64*)
11373 shrext='.sl'
11374 hardcode_into_libs=yes
11375 dynamic_linker="$host_os dld.sl"
11376 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11377 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11379 soname_spec='${libname}${release}${shared_ext}$major'
11380 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11381 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11382 ;;
11383 *)
11384 shrext='.sl'
11385 dynamic_linker="$host_os dld.sl"
11386 shlibpath_var=SHLIB_PATH
11387 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11389 soname_spec='${libname}${release}${shared_ext}$major'
11390 ;;
11391 esac
11392 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11393 postinstall_cmds='chmod 555 $lib'
11394 ;;
11395
11396irix5* | irix6* | nonstopux*)
11397 case $host_os in
11398 nonstopux*) version_type=nonstopux ;;
11399 *)
11400 if test "$lt_cv_prog_gnu_ld" = yes; then
11401 version_type=linux
11402 else
11403 version_type=irix
11404 fi ;;
11405 esac
11406 need_lib_prefix=no
11407 need_version=no
11408 soname_spec='${libname}${release}${shared_ext}$major'
11409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11410 case $host_os in
11411 irix5* | nonstopux*)
11412 libsuff= shlibsuff=
11413 ;;
11414 *)
11415 case $LD in # libtool.m4 will add one of these switches to LD
11416 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11417 libsuff= shlibsuff= libmagic=32-bit;;
11418 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11419 libsuff=32 shlibsuff=N32 libmagic=N32;;
11420 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11421 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11422 *) libsuff= shlibsuff= libmagic=never-match;;
11423 esac
11424 ;;
11425 esac
11426 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11427 shlibpath_overrides_runpath=no
11428 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11429 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11430 hardcode_into_libs=yes
11431 ;;
11432
11433# No shared lib support for Linux oldld, aout, or coff.
11434linux*oldld* | linux*aout* | linux*coff*)
11435 dynamic_linker=no
11436 ;;
11437
11438# This must be Linux ELF.
11439linux*)
11440 version_type=linux
11441 need_lib_prefix=no
11442 need_version=no
11443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11444 soname_spec='${libname}${release}${shared_ext}$major'
11445 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11446 shlibpath_var=LD_LIBRARY_PATH
11447 shlibpath_overrides_runpath=no
11448 # This implies no fast_install, which is unacceptable.
11449 # Some rework will be needed to allow for fast_install
11450 # before this can be enabled.
11451 hardcode_into_libs=yes
11452
11453 # We used to test for /lib/ld.so.1 and disable shared libraries on
11454 # powerpc, because MkLinux only supported shared libraries with the
11455 # GNU dynamic linker. Since this was broken with cross compilers,
11456 # most powerpc-linux boxes support dynamic linking these days and
11457 # people can always --disable-shared, the test was removed, and we
11458 # assume the GNU/Linux dynamic linker is in use.
11459 dynamic_linker='GNU/Linux ld.so'
11460 ;;
11461
11462netbsd*)
11463 version_type=sunos
11464 need_lib_prefix=no
11465 need_version=no
11466 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11467 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11468 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11469 dynamic_linker='NetBSD (a.out) ld.so'
11470 else
11471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
11472 soname_spec='${libname}${release}${shared_ext}$major'
11473 dynamic_linker='NetBSD ld.elf_so'
11474 fi
11475 shlibpath_var=LD_LIBRARY_PATH
11476 shlibpath_overrides_runpath=yes
11477 hardcode_into_libs=yes
11478 ;;
11479
11480newsos6)
11481 version_type=linux
11482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11483 shlibpath_var=LD_LIBRARY_PATH
11484 shlibpath_overrides_runpath=yes
11485 ;;
11486
11487nto-qnx)
11488 version_type=linux
11489 need_lib_prefix=no
11490 need_version=no
11491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11492 soname_spec='${libname}${release}${shared_ext}$major'
11493 shlibpath_var=LD_LIBRARY_PATH
11494 shlibpath_overrides_runpath=yes
11495 ;;
11496
11497openbsd*)
11498 version_type=sunos
11499 need_lib_prefix=no
11500 need_version=no
11501 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11502 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11503 shlibpath_var=LD_LIBRARY_PATH
11504 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11505 case $host_os in
11506 openbsd2.[89] | openbsd2.[89].*)
11507 shlibpath_overrides_runpath=no
11508 ;;
11509 *)
11510 shlibpath_overrides_runpath=yes
11511 ;;
11512 esac
11513 else
11514 shlibpath_overrides_runpath=yes
11515 fi
11516 ;;
11517
11518os2*)
11519 libname_spec='$name'
11520 shrext=".dll"
11521 need_lib_prefix=no
11522 library_names_spec='$libname${shared_ext} $libname.a'
11523 dynamic_linker='OS/2 ld.exe'
11524 shlibpath_var=LIBPATH
11525 ;;
11526
11527osf3* | osf4* | osf5*)
11528 version_type=osf
11529 need_lib_prefix=no
11530 need_version=no
11531 soname_spec='${libname}${release}${shared_ext}$major'
11532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11533 shlibpath_var=LD_LIBRARY_PATH
11534 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11535 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11536 ;;
11537
11538sco3.2v5*)
11539 version_type=osf
11540 soname_spec='${libname}${release}${shared_ext}$major'
11541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11542 shlibpath_var=LD_LIBRARY_PATH
11543 ;;
11544
11545solaris*)
11546 version_type=linux
11547 need_lib_prefix=no
11548 need_version=no
11549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11550 soname_spec='${libname}${release}${shared_ext}$major'
11551 shlibpath_var=LD_LIBRARY_PATH
11552 shlibpath_overrides_runpath=yes
11553 hardcode_into_libs=yes
11554 # ldd complains unless libraries are executable
11555 postinstall_cmds='chmod +x $lib'
11556 ;;
11557
11558sunos4*)
11559 version_type=sunos
11560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11561 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11562 shlibpath_var=LD_LIBRARY_PATH
11563 shlibpath_overrides_runpath=yes
11564 if test "$with_gnu_ld" = yes; then
11565 need_lib_prefix=no
11566 fi
11567 need_version=yes
11568 ;;
11569
11570sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11571 version_type=linux
11572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11573 soname_spec='${libname}${release}${shared_ext}$major'
11574 shlibpath_var=LD_LIBRARY_PATH
11575 case $host_vendor in
11576 sni)
11577 shlibpath_overrides_runpath=no
11578 need_lib_prefix=no
11579 export_dynamic_flag_spec='${wl}-Blargedynsym'
11580 runpath_var=LD_RUN_PATH
11581 ;;
11582 siemens)
11583 need_lib_prefix=no
11584 ;;
11585 motorola)
11586 need_lib_prefix=no
11587 need_version=no
11588 shlibpath_overrides_runpath=no
11589 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11590 ;;
11591 esac
11592 ;;
11593
11594sysv4*MP*)
11595 if test -d /usr/nec ;then
11596 version_type=linux
11597 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11598 soname_spec='$libname${shared_ext}.$major'
11599 shlibpath_var=LD_LIBRARY_PATH
11600 fi
11601 ;;
11602
11603uts4*)
11604 version_type=linux
11605 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11606 soname_spec='${libname}${release}${shared_ext}$major'
11607 shlibpath_var=LD_LIBRARY_PATH
11608 ;;
11609
11610*)
11611 dynamic_linker=no
11612 ;;
11613esac
11614echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11615echo "${ECHO_T}$dynamic_linker" >&6
11616test "$dynamic_linker" = no && can_build_shared=no
11617
11618if test "x$enable_dlopen" != xyes; then
11619 enable_dlopen=unknown
11620 enable_dlopen_self=unknown
11621 enable_dlopen_self_static=unknown
11622else
11623 lt_cv_dlopen=no
11624 lt_cv_dlopen_libs=
11625
11626 case $host_os in
11627 beos*)
11628 lt_cv_dlopen="load_add_on"
11629 lt_cv_dlopen_libs=
11630 lt_cv_dlopen_self=yes
11631 ;;
11632
11633 mingw* | pw32*)
11634 lt_cv_dlopen="LoadLibrary"
11635 lt_cv_dlopen_libs=
11636 ;;
11637
11638 cygwin*)
11639 lt_cv_dlopen="dlopen"
11640 lt_cv_dlopen_libs=
11641 ;;
11642
11643 darwin*)
11644 # if libdl is installed we need to link against it
11645 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11646echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11647if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11648 echo $ECHO_N "(cached) $ECHO_C" >&6
11649else
11650 ac_check_lib_save_LIBS=$LIBS
11651LIBS="-ldl $LIBS"
11652cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000011653/* confdefs.h. */
11654_ACEOF
11655cat confdefs.h >>conftest.$ac_ext
11656cat >>conftest.$ac_ext <<_ACEOF
11657/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011658
11659/* Override any gcc2 internal prototype to avoid an error. */
11660#ifdef __cplusplus
11661extern "C"
11662#endif
11663/* We use char because int might match the return type of a gcc2
11664 builtin and then its argument prototype would still apply. */
11665char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011666int
11667main ()
11668{
11669dlopen ();
11670 ;
11671 return 0;
11672}
11673_ACEOF
11674rm -f conftest.$ac_objext conftest$ac_exeext
11675if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000011676 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000011677 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000011678 grep -v '^ *+' conftest.er1 >conftest.err
11679 rm -f conftest.er1
11680 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000011681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11682 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000011683 { ac_try='test -z "$ac_cxx_werror_flag"
11684 || test ! -s conftest.err'
11685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11686 (eval $ac_try) 2>&5
11687 ac_status=$?
11688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11689 (exit $ac_status); }; } &&
11690 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000011691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11692 (eval $ac_try) 2>&5
11693 ac_status=$?
11694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11695 (exit $ac_status); }; }; then
11696 ac_cv_lib_dl_dlopen=yes
11697else
11698 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011699sed 's/^/| /' conftest.$ac_ext >&5
11700
John Criswell47fdd832003-07-14 16:52:07 +000011701ac_cv_lib_dl_dlopen=no
11702fi
Reid Spencer2b51a082004-08-04 00:34:49 +000011703rm -f conftest.err conftest.$ac_objext \
11704 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000011705LIBS=$ac_check_lib_save_LIBS
11706fi
11707echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11708echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11709if test $ac_cv_lib_dl_dlopen = yes; then
11710 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11711else
11712
11713 lt_cv_dlopen="dyld"
11714 lt_cv_dlopen_libs=
11715 lt_cv_dlopen_self=yes
11716
11717fi
11718
11719 ;;
11720
11721 *)
11722 echo "$as_me:$LINENO: checking for shl_load" >&5
11723echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11724if test "${ac_cv_func_shl_load+set}" = set; then
11725 echo $ECHO_N "(cached) $ECHO_C" >&6
11726else
11727 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000011728/* confdefs.h. */
11729_ACEOF
11730cat confdefs.h >>conftest.$ac_ext
11731cat >>conftest.$ac_ext <<_ACEOF
11732/* end confdefs.h. */
Reid Spencer2b51a082004-08-04 00:34:49 +000011733/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11734 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11735#define shl_load innocuous_shl_load
11736
John Criswell47fdd832003-07-14 16:52:07 +000011737/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000011738 which can conflict with char shl_load (); below.
11739 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11740 <limits.h> exists even on freestanding compilers. */
Reid Spencer2b51a082004-08-04 00:34:49 +000011741
John Criswell0c38eaf2003-09-10 15:17:25 +000011742#ifdef __STDC__
11743# include <limits.h>
11744#else
11745# include <assert.h>
11746#endif
Reid Spencer2b51a082004-08-04 00:34:49 +000011747
11748#undef shl_load
11749
John Criswell47fdd832003-07-14 16:52:07 +000011750/* Override any gcc2 internal prototype to avoid an error. */
11751#ifdef __cplusplus
11752extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000011753{
John Criswell47fdd832003-07-14 16:52:07 +000011754#endif
11755/* We use char because int might match the return type of a gcc2
11756 builtin and then its argument prototype would still apply. */
11757char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000011758/* The GNU C library defines this for functions which it implements
11759 to always fail with ENOSYS. Some functions are actually named
11760 something starting with __ and the normal name is an alias. */
11761#if defined (__stub_shl_load) || defined (__stub___shl_load)
11762choke me
11763#else
John Criswell0c38eaf2003-09-10 15:17:25 +000011764char (*f) () = shl_load;
11765#endif
11766#ifdef __cplusplus
11767}
John Criswell47fdd832003-07-14 16:52:07 +000011768#endif
11769
John Criswell0c38eaf2003-09-10 15:17:25 +000011770int
11771main ()
11772{
11773return f != shl_load;
John Criswell47fdd832003-07-14 16:52:07 +000011774 ;
11775 return 0;
11776}
11777_ACEOF
11778rm -f conftest.$ac_objext conftest$ac_exeext
11779if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000011780 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000011781 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000011782 grep -v '^ *+' conftest.er1 >conftest.err
11783 rm -f conftest.er1
11784 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000011785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11786 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000011787 { ac_try='test -z "$ac_cxx_werror_flag"
11788 || test ! -s conftest.err'
11789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11790 (eval $ac_try) 2>&5
11791 ac_status=$?
11792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11793 (exit $ac_status); }; } &&
11794 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000011795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11796 (eval $ac_try) 2>&5
11797 ac_status=$?
11798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11799 (exit $ac_status); }; }; then
11800 ac_cv_func_shl_load=yes
11801else
11802 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011803sed 's/^/| /' conftest.$ac_ext >&5
11804
John Criswell47fdd832003-07-14 16:52:07 +000011805ac_cv_func_shl_load=no
11806fi
Reid Spencer2b51a082004-08-04 00:34:49 +000011807rm -f conftest.err conftest.$ac_objext \
11808 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000011809fi
11810echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11811echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11812if test $ac_cv_func_shl_load = yes; then
11813 lt_cv_dlopen="shl_load"
11814else
11815 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11816echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11817if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11818 echo $ECHO_N "(cached) $ECHO_C" >&6
11819else
11820 ac_check_lib_save_LIBS=$LIBS
11821LIBS="-ldld $LIBS"
11822cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000011823/* confdefs.h. */
11824_ACEOF
11825cat confdefs.h >>conftest.$ac_ext
11826cat >>conftest.$ac_ext <<_ACEOF
11827/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011828
11829/* Override any gcc2 internal prototype to avoid an error. */
11830#ifdef __cplusplus
11831extern "C"
11832#endif
11833/* We use char because int might match the return type of a gcc2
11834 builtin and then its argument prototype would still apply. */
11835char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000011836int
11837main ()
11838{
11839shl_load ();
11840 ;
11841 return 0;
11842}
11843_ACEOF
11844rm -f conftest.$ac_objext conftest$ac_exeext
11845if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000011846 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000011847 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000011848 grep -v '^ *+' conftest.er1 >conftest.err
11849 rm -f conftest.er1
11850 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000011851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11852 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000011853 { ac_try='test -z "$ac_cxx_werror_flag"
11854 || test ! -s conftest.err'
11855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11856 (eval $ac_try) 2>&5
11857 ac_status=$?
11858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11859 (exit $ac_status); }; } &&
11860 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000011861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11862 (eval $ac_try) 2>&5
11863 ac_status=$?
11864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11865 (exit $ac_status); }; }; then
11866 ac_cv_lib_dld_shl_load=yes
11867else
11868 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011869sed 's/^/| /' conftest.$ac_ext >&5
11870
John Criswell47fdd832003-07-14 16:52:07 +000011871ac_cv_lib_dld_shl_load=no
11872fi
Reid Spencer2b51a082004-08-04 00:34:49 +000011873rm -f conftest.err conftest.$ac_objext \
11874 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000011875LIBS=$ac_check_lib_save_LIBS
11876fi
11877echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11878echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11879if test $ac_cv_lib_dld_shl_load = yes; then
11880 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11881else
11882 echo "$as_me:$LINENO: checking for dlopen" >&5
11883echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11884if test "${ac_cv_func_dlopen+set}" = set; then
11885 echo $ECHO_N "(cached) $ECHO_C" >&6
11886else
11887 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000011888/* confdefs.h. */
11889_ACEOF
11890cat confdefs.h >>conftest.$ac_ext
11891cat >>conftest.$ac_ext <<_ACEOF
11892/* end confdefs.h. */
Reid Spencer2b51a082004-08-04 00:34:49 +000011893/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11894 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11895#define dlopen innocuous_dlopen
11896
John Criswell47fdd832003-07-14 16:52:07 +000011897/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000011898 which can conflict with char dlopen (); below.
11899 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11900 <limits.h> exists even on freestanding compilers. */
Reid Spencer2b51a082004-08-04 00:34:49 +000011901
John Criswell0c38eaf2003-09-10 15:17:25 +000011902#ifdef __STDC__
11903# include <limits.h>
11904#else
11905# include <assert.h>
11906#endif
Reid Spencer2b51a082004-08-04 00:34:49 +000011907
11908#undef dlopen
11909
John Criswell47fdd832003-07-14 16:52:07 +000011910/* Override any gcc2 internal prototype to avoid an error. */
11911#ifdef __cplusplus
11912extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000011913{
John Criswell47fdd832003-07-14 16:52:07 +000011914#endif
11915/* We use char because int might match the return type of a gcc2
11916 builtin and then its argument prototype would still apply. */
11917char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011918/* The GNU C library defines this for functions which it implements
11919 to always fail with ENOSYS. Some functions are actually named
11920 something starting with __ and the normal name is an alias. */
11921#if defined (__stub_dlopen) || defined (__stub___dlopen)
11922choke me
11923#else
John Criswell0c38eaf2003-09-10 15:17:25 +000011924char (*f) () = dlopen;
11925#endif
11926#ifdef __cplusplus
11927}
John Criswell47fdd832003-07-14 16:52:07 +000011928#endif
11929
John Criswell0c38eaf2003-09-10 15:17:25 +000011930int
11931main ()
11932{
11933return f != dlopen;
John Criswell47fdd832003-07-14 16:52:07 +000011934 ;
11935 return 0;
11936}
11937_ACEOF
11938rm -f conftest.$ac_objext conftest$ac_exeext
11939if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000011940 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000011941 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000011942 grep -v '^ *+' conftest.er1 >conftest.err
11943 rm -f conftest.er1
11944 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000011945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11946 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000011947 { ac_try='test -z "$ac_cxx_werror_flag"
11948 || test ! -s conftest.err'
11949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11950 (eval $ac_try) 2>&5
11951 ac_status=$?
11952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11953 (exit $ac_status); }; } &&
11954 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000011955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11956 (eval $ac_try) 2>&5
11957 ac_status=$?
11958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11959 (exit $ac_status); }; }; then
11960 ac_cv_func_dlopen=yes
11961else
11962 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011963sed 's/^/| /' conftest.$ac_ext >&5
11964
John Criswell47fdd832003-07-14 16:52:07 +000011965ac_cv_func_dlopen=no
11966fi
Reid Spencer2b51a082004-08-04 00:34:49 +000011967rm -f conftest.err conftest.$ac_objext \
11968 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000011969fi
11970echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11971echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11972if test $ac_cv_func_dlopen = yes; then
11973 lt_cv_dlopen="dlopen"
11974else
11975 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11976echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11977if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11978 echo $ECHO_N "(cached) $ECHO_C" >&6
11979else
11980 ac_check_lib_save_LIBS=$LIBS
11981LIBS="-ldl $LIBS"
11982cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000011983/* confdefs.h. */
11984_ACEOF
11985cat confdefs.h >>conftest.$ac_ext
11986cat >>conftest.$ac_ext <<_ACEOF
11987/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011988
11989/* Override any gcc2 internal prototype to avoid an error. */
11990#ifdef __cplusplus
11991extern "C"
11992#endif
11993/* We use char because int might match the return type of a gcc2
11994 builtin and then its argument prototype would still apply. */
11995char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011996int
11997main ()
11998{
11999dlopen ();
12000 ;
12001 return 0;
12002}
12003_ACEOF
12004rm -f conftest.$ac_objext conftest$ac_exeext
12005if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000012006 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012007 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000012008 grep -v '^ *+' conftest.er1 >conftest.err
12009 rm -f conftest.er1
12010 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000012011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12012 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000012013 { ac_try='test -z "$ac_cxx_werror_flag"
12014 || test ! -s conftest.err'
12015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12016 (eval $ac_try) 2>&5
12017 ac_status=$?
12018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12019 (exit $ac_status); }; } &&
12020 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000012021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12022 (eval $ac_try) 2>&5
12023 ac_status=$?
12024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12025 (exit $ac_status); }; }; then
12026 ac_cv_lib_dl_dlopen=yes
12027else
12028 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012029sed 's/^/| /' conftest.$ac_ext >&5
12030
John Criswell47fdd832003-07-14 16:52:07 +000012031ac_cv_lib_dl_dlopen=no
12032fi
Reid Spencer2b51a082004-08-04 00:34:49 +000012033rm -f conftest.err conftest.$ac_objext \
12034 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000012035LIBS=$ac_check_lib_save_LIBS
12036fi
12037echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12038echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12039if test $ac_cv_lib_dl_dlopen = yes; then
12040 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12041else
12042 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12043echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12044if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12045 echo $ECHO_N "(cached) $ECHO_C" >&6
12046else
12047 ac_check_lib_save_LIBS=$LIBS
12048LIBS="-lsvld $LIBS"
12049cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012050/* confdefs.h. */
12051_ACEOF
12052cat confdefs.h >>conftest.$ac_ext
12053cat >>conftest.$ac_ext <<_ACEOF
12054/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000012055
12056/* Override any gcc2 internal prototype to avoid an error. */
12057#ifdef __cplusplus
12058extern "C"
12059#endif
12060/* We use char because int might match the return type of a gcc2
12061 builtin and then its argument prototype would still apply. */
12062char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000012063int
12064main ()
12065{
12066dlopen ();
12067 ;
12068 return 0;
12069}
12070_ACEOF
12071rm -f conftest.$ac_objext conftest$ac_exeext
12072if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000012073 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012074 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000012075 grep -v '^ *+' conftest.er1 >conftest.err
12076 rm -f conftest.er1
12077 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000012078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12079 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000012080 { ac_try='test -z "$ac_cxx_werror_flag"
12081 || test ! -s conftest.err'
12082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12083 (eval $ac_try) 2>&5
12084 ac_status=$?
12085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12086 (exit $ac_status); }; } &&
12087 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000012088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12089 (eval $ac_try) 2>&5
12090 ac_status=$?
12091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12092 (exit $ac_status); }; }; then
12093 ac_cv_lib_svld_dlopen=yes
12094else
12095 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012096sed 's/^/| /' conftest.$ac_ext >&5
12097
John Criswell47fdd832003-07-14 16:52:07 +000012098ac_cv_lib_svld_dlopen=no
12099fi
Reid Spencer2b51a082004-08-04 00:34:49 +000012100rm -f conftest.err conftest.$ac_objext \
12101 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000012102LIBS=$ac_check_lib_save_LIBS
12103fi
12104echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12105echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12106if test $ac_cv_lib_svld_dlopen = yes; then
12107 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12108else
12109 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12110echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12111if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12112 echo $ECHO_N "(cached) $ECHO_C" >&6
12113else
12114 ac_check_lib_save_LIBS=$LIBS
12115LIBS="-ldld $LIBS"
12116cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012117/* confdefs.h. */
12118_ACEOF
12119cat confdefs.h >>conftest.$ac_ext
12120cat >>conftest.$ac_ext <<_ACEOF
12121/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000012122
12123/* Override any gcc2 internal prototype to avoid an error. */
12124#ifdef __cplusplus
12125extern "C"
12126#endif
12127/* We use char because int might match the return type of a gcc2
12128 builtin and then its argument prototype would still apply. */
12129char dld_link ();
John Criswell47fdd832003-07-14 16:52:07 +000012130int
12131main ()
12132{
12133dld_link ();
12134 ;
12135 return 0;
12136}
12137_ACEOF
12138rm -f conftest.$ac_objext conftest$ac_exeext
12139if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000012140 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012141 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000012142 grep -v '^ *+' conftest.er1 >conftest.err
12143 rm -f conftest.er1
12144 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000012145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12146 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000012147 { ac_try='test -z "$ac_cxx_werror_flag"
12148 || test ! -s conftest.err'
12149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12150 (eval $ac_try) 2>&5
12151 ac_status=$?
12152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12153 (exit $ac_status); }; } &&
12154 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000012155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12156 (eval $ac_try) 2>&5
12157 ac_status=$?
12158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12159 (exit $ac_status); }; }; then
12160 ac_cv_lib_dld_dld_link=yes
12161else
12162 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012163sed 's/^/| /' conftest.$ac_ext >&5
12164
John Criswell47fdd832003-07-14 16:52:07 +000012165ac_cv_lib_dld_dld_link=no
12166fi
Reid Spencer2b51a082004-08-04 00:34:49 +000012167rm -f conftest.err conftest.$ac_objext \
12168 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000012169LIBS=$ac_check_lib_save_LIBS
12170fi
12171echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12172echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12173if test $ac_cv_lib_dld_dld_link = yes; then
12174 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12175fi
12176
12177
12178fi
12179
12180
12181fi
12182
12183
12184fi
12185
12186
12187fi
12188
12189
12190fi
12191
12192 ;;
12193 esac
12194
12195 if test "x$lt_cv_dlopen" != xno; then
12196 enable_dlopen=yes
12197 else
12198 enable_dlopen=no
12199 fi
12200
12201 case $lt_cv_dlopen in
12202 dlopen)
12203 save_CPPFLAGS="$CPPFLAGS"
12204 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12205
12206 save_LDFLAGS="$LDFLAGS"
12207 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12208
12209 save_LIBS="$LIBS"
12210 LIBS="$lt_cv_dlopen_libs $LIBS"
12211
12212 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12213echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12214if test "${lt_cv_dlopen_self+set}" = set; then
12215 echo $ECHO_N "(cached) $ECHO_C" >&6
12216else
12217 if test "$cross_compiling" = yes; then :
12218 lt_cv_dlopen_self=cross
12219else
12220 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12221 lt_status=$lt_dlunknown
12222 cat > conftest.$ac_ext <<EOF
Reid Spencer886e9512004-08-31 01:34:10 +000012223#line 12223 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000012224#include "confdefs.h"
12225
12226#if HAVE_DLFCN_H
12227#include <dlfcn.h>
12228#endif
12229
12230#include <stdio.h>
12231
12232#ifdef RTLD_GLOBAL
12233# define LT_DLGLOBAL RTLD_GLOBAL
12234#else
12235# ifdef DL_GLOBAL
12236# define LT_DLGLOBAL DL_GLOBAL
12237# else
12238# define LT_DLGLOBAL 0
12239# endif
12240#endif
12241
12242/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12243 find out it does not work in some platform. */
12244#ifndef LT_DLLAZY_OR_NOW
12245# ifdef RTLD_LAZY
12246# define LT_DLLAZY_OR_NOW RTLD_LAZY
12247# else
12248# ifdef DL_LAZY
12249# define LT_DLLAZY_OR_NOW DL_LAZY
12250# else
12251# ifdef RTLD_NOW
12252# define LT_DLLAZY_OR_NOW RTLD_NOW
12253# else
12254# ifdef DL_NOW
12255# define LT_DLLAZY_OR_NOW DL_NOW
12256# else
12257# define LT_DLLAZY_OR_NOW 0
12258# endif
12259# endif
12260# endif
12261# endif
12262#endif
12263
12264#ifdef __cplusplus
12265extern "C" void exit (int);
12266#endif
12267
12268void fnord() { int i=42;}
12269int main ()
12270{
12271 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12272 int status = $lt_dlunknown;
12273
12274 if (self)
12275 {
12276 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12277 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12278 /* dlclose (self); */
12279 }
12280
12281 exit (status);
12282}
12283EOF
12284 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12285 (eval $ac_link) 2>&5
12286 ac_status=$?
12287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12288 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12289 (./conftest; exit; ) 2>/dev/null
12290 lt_status=$?
12291 case x$lt_status in
12292 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12293 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12294 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12295 esac
12296 else :
12297 # compilation failed
12298 lt_cv_dlopen_self=no
12299 fi
12300fi
12301rm -fr conftest*
12302
12303
12304fi
12305echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12306echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12307
12308 if test "x$lt_cv_dlopen_self" = xyes; then
12309 LDFLAGS="$LDFLAGS $link_static_flag"
12310 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12311echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12312if test "${lt_cv_dlopen_self_static+set}" = set; then
12313 echo $ECHO_N "(cached) $ECHO_C" >&6
12314else
12315 if test "$cross_compiling" = yes; then :
12316 lt_cv_dlopen_self_static=cross
12317else
12318 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12319 lt_status=$lt_dlunknown
12320 cat > conftest.$ac_ext <<EOF
Reid Spencer886e9512004-08-31 01:34:10 +000012321#line 12321 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000012322#include "confdefs.h"
12323
12324#if HAVE_DLFCN_H
12325#include <dlfcn.h>
12326#endif
12327
12328#include <stdio.h>
12329
12330#ifdef RTLD_GLOBAL
12331# define LT_DLGLOBAL RTLD_GLOBAL
12332#else
12333# ifdef DL_GLOBAL
12334# define LT_DLGLOBAL DL_GLOBAL
12335# else
12336# define LT_DLGLOBAL 0
12337# endif
12338#endif
12339
12340/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12341 find out it does not work in some platform. */
12342#ifndef LT_DLLAZY_OR_NOW
12343# ifdef RTLD_LAZY
12344# define LT_DLLAZY_OR_NOW RTLD_LAZY
12345# else
12346# ifdef DL_LAZY
12347# define LT_DLLAZY_OR_NOW DL_LAZY
12348# else
12349# ifdef RTLD_NOW
12350# define LT_DLLAZY_OR_NOW RTLD_NOW
12351# else
12352# ifdef DL_NOW
12353# define LT_DLLAZY_OR_NOW DL_NOW
12354# else
12355# define LT_DLLAZY_OR_NOW 0
12356# endif
12357# endif
12358# endif
12359# endif
12360#endif
12361
12362#ifdef __cplusplus
12363extern "C" void exit (int);
12364#endif
12365
12366void fnord() { int i=42;}
12367int main ()
12368{
12369 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12370 int status = $lt_dlunknown;
12371
12372 if (self)
12373 {
12374 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12375 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12376 /* dlclose (self); */
12377 }
12378
12379 exit (status);
12380}
12381EOF
12382 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12383 (eval $ac_link) 2>&5
12384 ac_status=$?
12385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12386 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12387 (./conftest; exit; ) 2>/dev/null
12388 lt_status=$?
12389 case x$lt_status in
12390 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12391 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12392 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12393 esac
12394 else :
12395 # compilation failed
12396 lt_cv_dlopen_self_static=no
12397 fi
12398fi
12399rm -fr conftest*
12400
12401
12402fi
12403echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12404echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12405 fi
12406
12407 CPPFLAGS="$save_CPPFLAGS"
12408 LDFLAGS="$save_LDFLAGS"
12409 LIBS="$save_LIBS"
12410 ;;
12411 esac
12412
12413 case $lt_cv_dlopen_self in
12414 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12415 *) enable_dlopen_self=unknown ;;
12416 esac
12417
12418 case $lt_cv_dlopen_self_static in
12419 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12420 *) enable_dlopen_self_static=unknown ;;
12421 esac
12422fi
12423
12424
12425# The else clause should only fire when bootstrapping the
12426# libtool distribution, otherwise you forgot to ship ltmain.sh
12427# with your package, and you will get complaints that there are
12428# no rules to generate ltmain.sh.
12429if test -f "$ltmain"; then
12430 # See if we are running on zsh, and set the options which allow our commands through
12431 # without removal of \ escapes.
12432 if test -n "${ZSH_VERSION+set}" ; then
12433 setopt NO_GLOB_SUBST
12434 fi
12435 # Now quote all the things that may contain metacharacters while being
12436 # careful not to overquote the AC_SUBSTed values. We take copies of the
12437 # variables and quote the copies for generation of the libtool script.
12438 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
12439 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12440 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12441 deplibs_check_method reload_flag reload_cmds need_locks \
12442 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12443 lt_cv_sys_global_symbol_to_c_name_address \
12444 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12445 old_postinstall_cmds old_postuninstall_cmds \
12446 compiler_CXX \
12447 CC_CXX \
12448 LD_CXX \
12449 lt_prog_compiler_wl_CXX \
12450 lt_prog_compiler_pic_CXX \
12451 lt_prog_compiler_static_CXX \
12452 lt_prog_compiler_no_builtin_flag_CXX \
12453 export_dynamic_flag_spec_CXX \
12454 thread_safe_flag_spec_CXX \
12455 whole_archive_flag_spec_CXX \
12456 enable_shared_with_static_runtimes_CXX \
12457 old_archive_cmds_CXX \
12458 old_archive_from_new_cmds_CXX \
12459 predep_objects_CXX \
12460 postdep_objects_CXX \
12461 predeps_CXX \
12462 postdeps_CXX \
12463 compiler_lib_search_path_CXX \
12464 archive_cmds_CXX \
12465 archive_expsym_cmds_CXX \
12466 postinstall_cmds_CXX \
12467 postuninstall_cmds_CXX \
12468 old_archive_from_expsyms_cmds_CXX \
12469 allow_undefined_flag_CXX \
12470 no_undefined_flag_CXX \
12471 export_symbols_cmds_CXX \
12472 hardcode_libdir_flag_spec_CXX \
12473 hardcode_libdir_flag_spec_ld_CXX \
12474 hardcode_libdir_separator_CXX \
12475 hardcode_automatic_CXX \
12476 module_cmds_CXX \
12477 module_expsym_cmds_CXX \
12478 lt_cv_prog_compiler_c_o_CXX \
12479 exclude_expsyms_CXX \
12480 include_expsyms_CXX; do
12481
12482 case $var in
12483 old_archive_cmds_CXX | \
12484 old_archive_from_new_cmds_CXX | \
12485 archive_cmds_CXX | \
12486 archive_expsym_cmds_CXX | \
12487 module_cmds_CXX | \
12488 module_expsym_cmds_CXX | \
12489 old_archive_from_expsyms_cmds_CXX | \
12490 export_symbols_cmds_CXX | \
12491 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12492 postinstall_cmds | postuninstall_cmds | \
12493 old_postinstall_cmds | old_postuninstall_cmds | \
12494 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12495 # Double-quote double-evaled strings.
12496 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12497 ;;
12498 *)
12499 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12500 ;;
12501 esac
12502 done
12503
12504 case $lt_echo in
12505 *'\$0 --fallback-echo"')
12506 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12507 ;;
12508 esac
12509
12510cfgfile="$ofile"
12511
12512 cat <<__EOF__ >> "$cfgfile"
12513# ### BEGIN LIBTOOL TAG CONFIG: $tagname
12514
12515# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12516
12517# Shell to use when invoking shell scripts.
12518SHELL=$lt_SHELL
12519
12520# Whether or not to build shared libraries.
12521build_libtool_libs=$enable_shared
12522
12523# Whether or not to build static libraries.
12524build_old_libs=$enable_static
12525
12526# Whether or not to add -lc for building shared libraries.
12527build_libtool_need_lc=$archive_cmds_need_lc_CXX
12528
12529# Whether or not to disallow shared libs when runtime libs are static
12530allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12531
12532# Whether or not to optimize for fast installation.
12533fast_install=$enable_fast_install
12534
12535# The host system.
12536host_alias=$host_alias
12537host=$host
12538
12539# An echo program that does not interpret backslashes.
12540echo=$lt_echo
12541
12542# The archiver.
12543AR=$lt_AR
12544AR_FLAGS=$lt_AR_FLAGS
12545
12546# A C compiler.
12547LTCC=$lt_LTCC
12548
12549# A language-specific compiler.
12550CC=$lt_compiler_CXX
12551
12552# Is the compiler the GNU C compiler?
12553with_gcc=$GCC_CXX
12554
12555# An ERE matcher.
12556EGREP=$lt_EGREP
12557
12558# The linker used to build libraries.
12559LD=$lt_LD_CXX
12560
12561# Whether we need hard or soft links.
12562LN_S=$lt_LN_S
12563
12564# A BSD-compatible nm program.
12565NM=$lt_NM
12566
12567# A symbol stripping program
12568STRIP=$STRIP
12569
12570# Used to examine libraries when file_magic_cmd begins "file"
12571MAGIC_CMD=$MAGIC_CMD
12572
12573# Used on cygwin: DLL creation program.
12574DLLTOOL="$DLLTOOL"
12575
12576# Used on cygwin: object dumper.
12577OBJDUMP="$OBJDUMP"
12578
12579# Used on cygwin: assembler.
12580AS="$AS"
12581
12582# The name of the directory that contains temporary libtool files.
12583objdir=$objdir
12584
12585# How to create reloadable object files.
12586reload_flag=$lt_reload_flag
12587reload_cmds=$lt_reload_cmds
12588
12589# How to pass a linker flag through the compiler.
12590wl=$lt_lt_prog_compiler_wl_CXX
12591
12592# Object file suffix (normally "o").
12593objext="$ac_objext"
12594
12595# Old archive suffix (normally "a").
12596libext="$libext"
12597
12598# Shared library suffix (normally ".so").
12599shrext='$shrext'
12600
12601# Executable file suffix (normally "").
12602exeext="$exeext"
12603
12604# Additional compiler flags for building library objects.
12605pic_flag=$lt_lt_prog_compiler_pic_CXX
12606pic_mode=$pic_mode
12607
12608# What is the maximum length of a command?
12609max_cmd_len=$lt_cv_sys_max_cmd_len
12610
12611# Does compiler simultaneously support -c and -o options?
12612compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12613
12614# Must we lock files when doing compilation ?
12615need_locks=$lt_need_locks
12616
12617# Do we need the lib prefix for modules?
12618need_lib_prefix=$need_lib_prefix
12619
12620# Do we need a version for libraries?
12621need_version=$need_version
12622
12623# Whether dlopen is supported.
12624dlopen_support=$enable_dlopen
12625
12626# Whether dlopen of programs is supported.
12627dlopen_self=$enable_dlopen_self
12628
12629# Whether dlopen of statically linked programs is supported.
12630dlopen_self_static=$enable_dlopen_self_static
12631
12632# Compiler flag to prevent dynamic linking.
12633link_static_flag=$lt_lt_prog_compiler_static_CXX
12634
12635# Compiler flag to turn off builtin functions.
12636no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12637
12638# Compiler flag to allow reflexive dlopens.
12639export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12640
12641# Compiler flag to generate shared objects directly from archives.
12642whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12643
12644# Compiler flag to generate thread-safe objects.
12645thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12646
12647# Library versioning type.
12648version_type=$version_type
12649
12650# Format of library name prefix.
12651libname_spec=$lt_libname_spec
12652
12653# List of archive names. First name is the real one, the rest are links.
12654# The last name is the one that the linker finds with -lNAME.
12655library_names_spec=$lt_library_names_spec
12656
12657# The coded name of the library, if different from the real name.
12658soname_spec=$lt_soname_spec
12659
12660# Commands used to build and install an old-style archive.
12661RANLIB=$lt_RANLIB
12662old_archive_cmds=$lt_old_archive_cmds_CXX
12663old_postinstall_cmds=$lt_old_postinstall_cmds
12664old_postuninstall_cmds=$lt_old_postuninstall_cmds
12665
12666# Create an old-style archive from a shared archive.
12667old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12668
12669# Create a temporary old-style archive to link instead of a shared archive.
12670old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12671
12672# Commands used to build and install a shared archive.
12673archive_cmds=$lt_archive_cmds_CXX
12674archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12675postinstall_cmds=$lt_postinstall_cmds
12676postuninstall_cmds=$lt_postuninstall_cmds
12677
12678# Commands used to build a loadable module (assumed same as above if empty)
12679module_cmds=$lt_module_cmds_CXX
12680module_expsym_cmds=$lt_module_expsym_cmds_CXX
12681
12682# Commands to strip libraries.
12683old_striplib=$lt_old_striplib
12684striplib=$lt_striplib
12685
12686# Dependencies to place before the objects being linked to create a
12687# shared library.
12688predep_objects=$lt_predep_objects_CXX
12689
12690# Dependencies to place after the objects being linked to create a
12691# shared library.
12692postdep_objects=$lt_postdep_objects_CXX
12693
12694# Dependencies to place before the objects being linked to create a
12695# shared library.
12696predeps=$lt_predeps_CXX
12697
12698# Dependencies to place after the objects being linked to create a
12699# shared library.
12700postdeps=$lt_postdeps_CXX
12701
12702# The library search path used internally by the compiler when linking
12703# a shared library.
12704compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12705
12706# Method to check whether dependent libraries are shared objects.
12707deplibs_check_method=$lt_deplibs_check_method
12708
12709# Command to use when deplibs_check_method == file_magic.
12710file_magic_cmd=$lt_file_magic_cmd
12711
12712# Flag that allows shared libraries with undefined symbols to be built.
12713allow_undefined_flag=$lt_allow_undefined_flag_CXX
12714
12715# Flag that forces no undefined symbols.
12716no_undefined_flag=$lt_no_undefined_flag_CXX
12717
12718# Commands used to finish a libtool library installation in a directory.
12719finish_cmds=$lt_finish_cmds
12720
12721# Same as above, but a single script fragment to be evaled but not shown.
12722finish_eval=$lt_finish_eval
12723
12724# Take the output of nm and produce a listing of raw symbols and C names.
12725global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12726
12727# Transform the output of nm in a proper C declaration
12728global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12729
12730# Transform the output of nm in a C name address pair
12731global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12732
12733# This is the shared library runtime path variable.
12734runpath_var=$runpath_var
12735
12736# This is the shared library path variable.
12737shlibpath_var=$shlibpath_var
12738
12739# Is shlibpath searched before the hard-coded library search path?
12740shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12741
12742# How to hardcode a shared library path into an executable.
12743hardcode_action=$hardcode_action_CXX
12744
12745# Whether we should hardcode library paths into libraries.
12746hardcode_into_libs=$hardcode_into_libs
12747
12748# Flag to hardcode \$libdir into a binary during linking.
12749# This must work even if \$libdir does not exist.
12750hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12751
12752# If ld is used when linking, flag to hardcode \$libdir into
12753# a binary during linking. This must work even if \$libdir does
12754# not exist.
12755hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12756
12757# Whether we need a single -rpath flag with a separated argument.
12758hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12759
12760# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12761# resulting binary.
12762hardcode_direct=$hardcode_direct_CXX
12763
12764# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12765# resulting binary.
12766hardcode_minus_L=$hardcode_minus_L_CXX
12767
12768# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12769# the resulting binary.
12770hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12771
12772# Set to yes if building a shared library automatically hardcodes DIR into the library
12773# and all subsequent libraries and executables linked against it.
12774hardcode_automatic=$hardcode_automatic_CXX
12775
12776# Variables whose values should be saved in libtool wrapper scripts and
12777# restored at relink time.
12778variables_saved_for_relink="$variables_saved_for_relink"
12779
12780# Whether libtool must link a program against all its dependency libraries.
12781link_all_deplibs=$link_all_deplibs_CXX
12782
12783# Compile-time system search path for libraries
12784sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12785
12786# Run-time system search path for libraries
12787sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12788
12789# Fix the shell variable \$srcfile for the compiler.
12790fix_srcfile_path="$fix_srcfile_path_CXX"
12791
12792# Set to yes if exported symbols are required.
12793always_export_symbols=$always_export_symbols_CXX
12794
12795# The commands to list exported symbols.
12796export_symbols_cmds=$lt_export_symbols_cmds_CXX
12797
12798# The commands to extract the exported symbol list from a shared archive.
12799extract_expsyms_cmds=$lt_extract_expsyms_cmds
12800
12801# Symbols that should not be listed in the preloaded symbols.
12802exclude_expsyms=$lt_exclude_expsyms_CXX
12803
12804# Symbols that must always be exported.
12805include_expsyms=$lt_include_expsyms_CXX
12806
12807# ### END LIBTOOL TAG CONFIG: $tagname
12808
12809__EOF__
12810
12811
12812else
12813 # If there is no Makefile yet, we rely on a make rule to execute
12814 # `config.status --recheck' to rerun these tests and create the
12815 # libtool script then.
12816 test -f Makefile && make "$ltmain"
12817fi
12818
12819
12820ac_ext=c
12821ac_cpp='$CPP $CPPFLAGS'
12822ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12823ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12824ac_compiler_gnu=$ac_cv_c_compiler_gnu
12825
12826CC=$lt_save_CC
12827LDCXX=$LD
12828LD=$lt_save_LD
12829GCC=$lt_save_GCC
12830with_gnu_ldcxx=$with_gnu_ld
12831with_gnu_ld=$lt_save_with_gnu_ld
12832lt_cv_path_LDCXX=$lt_cv_path_LD
12833lt_cv_path_LD=$lt_save_path_LD
12834lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12835lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12836
12837 else
12838 tagname=""
12839 fi
12840 ;;
12841
12842 F77)
12843 if test -n "$F77" && test "X$F77" != "Xno"; then
12844
12845ac_ext=f
12846ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12847ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12848ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12849
12850
12851archive_cmds_need_lc_F77=no
12852allow_undefined_flag_F77=
12853always_export_symbols_F77=no
12854archive_expsym_cmds_F77=
12855export_dynamic_flag_spec_F77=
12856hardcode_direct_F77=no
12857hardcode_libdir_flag_spec_F77=
12858hardcode_libdir_flag_spec_ld_F77=
12859hardcode_libdir_separator_F77=
12860hardcode_minus_L_F77=no
12861hardcode_automatic_F77=no
12862module_cmds_F77=
12863module_expsym_cmds_F77=
12864link_all_deplibs_F77=unknown
12865old_archive_cmds_F77=$old_archive_cmds
12866no_undefined_flag_F77=
12867whole_archive_flag_spec_F77=
12868enable_shared_with_static_runtimes_F77=no
12869
12870# Source file extension for f77 test sources.
12871ac_ext=f
12872
12873# Object file extension for compiled f77 test sources.
12874objext=o
12875objext_F77=$objext
12876
12877# Code to be used in simple compile tests
12878lt_simple_compile_test_code=" subroutine t\n return\n end\n"
12879
12880# Code to be used in simple link tests
12881lt_simple_link_test_code=" program t\n end\n"
12882
12883# ltmain only uses $CC for tagged configurations so make sure $CC is set.
12884
12885# If no C compiler was specified, use CC.
12886LTCC=${LTCC-"$CC"}
12887
12888# Allow CC to be a program name with arguments.
12889compiler=$CC
12890
12891
12892# Allow CC to be a program name with arguments.
12893lt_save_CC="$CC"
12894CC=${F77-"f77"}
12895compiler=$CC
12896compiler_F77=$CC
12897cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12898
12899echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12900echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12901echo "$as_me:$LINENO: result: $can_build_shared" >&5
12902echo "${ECHO_T}$can_build_shared" >&6
12903
12904echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12905echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12906test "$can_build_shared" = "no" && enable_shared=no
12907
12908# On AIX, shared libraries and static libraries use the same namespace, and
12909# are all built from PIC.
12910case "$host_os" in
12911aix3*)
12912 test "$enable_shared" = yes && enable_static=no
12913 if test -n "$RANLIB"; then
12914 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12915 postinstall_cmds='$RANLIB $lib'
12916 fi
12917 ;;
12918aix4*)
12919 test "$enable_shared" = yes && enable_static=no
12920 ;;
12921esac
12922echo "$as_me:$LINENO: result: $enable_shared" >&5
12923echo "${ECHO_T}$enable_shared" >&6
12924
12925echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12926echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12927# Make sure either enable_shared or enable_static is yes.
12928test "$enable_shared" = yes || enable_static=yes
12929echo "$as_me:$LINENO: result: $enable_static" >&5
12930echo "${ECHO_T}$enable_static" >&6
12931
12932test "$ld_shlibs_F77" = no && can_build_shared=no
12933
12934GCC_F77="$G77"
12935LD_F77="$LD"
12936
12937lt_prog_compiler_wl_F77=
12938lt_prog_compiler_pic_F77=
12939lt_prog_compiler_static_F77=
12940
12941echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12942echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12943
12944 if test "$GCC" = yes; then
12945 lt_prog_compiler_wl_F77='-Wl,'
12946 lt_prog_compiler_static_F77='-static'
12947
12948 case $host_os in
12949 aix*)
12950 # All AIX code is PIC.
12951 if test "$host_cpu" = ia64; then
12952 # AIX 5 now supports IA64 processor
12953 lt_prog_compiler_static_F77='-Bstatic'
12954 fi
12955 ;;
12956
12957 amigaos*)
12958 # FIXME: we need at least 68020 code to build shared libraries, but
12959 # adding the `-m68020' flag to GCC prevents building anything better,
12960 # like `-m68040'.
12961 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12962 ;;
12963
12964 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12965 # PIC is the default for these OSes.
12966 ;;
12967
12968 mingw* | pw32* | os2*)
12969 # This hack is so that the source file can tell whether it is being
12970 # built for inclusion in a dll (and should export symbols for example).
12971 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12972 ;;
12973
12974 darwin* | rhapsody*)
12975 # PIC is the default on this platform
12976 # Common symbols not allowed in MH_DYLIB files
12977 lt_prog_compiler_pic_F77='-fno-common'
12978 ;;
12979
12980 msdosdjgpp*)
12981 # Just because we use GCC doesn't mean we suddenly get shared libraries
12982 # on systems that don't support them.
12983 lt_prog_compiler_can_build_shared_F77=no
12984 enable_shared=no
12985 ;;
12986
12987 sysv4*MP*)
12988 if test -d /usr/nec; then
12989 lt_prog_compiler_pic_F77=-Kconform_pic
12990 fi
12991 ;;
12992
12993 hpux*)
12994 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12995 # not for PA HP-UX.
12996 case "$host_cpu" in
12997 hppa*64*|ia64*)
12998 # +Z the default
12999 ;;
13000 *)
13001 lt_prog_compiler_pic_F77='-fPIC'
13002 ;;
13003 esac
13004 ;;
13005
13006 *)
13007 lt_prog_compiler_pic_F77='-fPIC'
13008 ;;
13009 esac
13010 else
13011 # PORTME Check for flag to pass linker flags through the system compiler.
13012 case $host_os in
13013 aix*)
13014 lt_prog_compiler_wl_F77='-Wl,'
13015 if test "$host_cpu" = ia64; then
13016 # AIX 5 now supports IA64 processor
13017 lt_prog_compiler_static_F77='-Bstatic'
13018 else
13019 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13020 fi
13021 ;;
13022
13023 mingw* | pw32* | os2*)
13024 # This hack is so that the source file can tell whether it is being
13025 # built for inclusion in a dll (and should export symbols for example).
13026 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13027 ;;
13028
13029 hpux9* | hpux10* | hpux11*)
13030 lt_prog_compiler_wl_F77='-Wl,'
13031 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13032 # not for PA HP-UX.
13033 case "$host_cpu" in
13034 hppa*64*|ia64*)
13035 # +Z the default
13036 ;;
13037 *)
13038 lt_prog_compiler_pic_F77='+Z'
13039 ;;
13040 esac
13041 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13042 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13043 ;;
13044
13045 irix5* | irix6* | nonstopux*)
13046 lt_prog_compiler_wl_F77='-Wl,'
13047 # PIC (with -KPIC) is the default.
13048 lt_prog_compiler_static_F77='-non_shared'
13049 ;;
13050
13051 newsos6)
13052 lt_prog_compiler_pic_F77='-KPIC'
13053 lt_prog_compiler_static_F77='-Bstatic'
13054 ;;
13055
13056 linux*)
13057 case $CC in
13058 icc|ecc)
13059 lt_prog_compiler_wl_F77='-Wl,'
13060 lt_prog_compiler_pic_F77='-KPIC'
13061 lt_prog_compiler_static_F77='-static'
13062 ;;
13063 ccc)
13064 lt_prog_compiler_wl_F77='-Wl,'
13065 # All Alpha code is PIC.
13066 lt_prog_compiler_static_F77='-non_shared'
13067 ;;
13068 esac
13069 ;;
13070
13071 osf3* | osf4* | osf5*)
13072 lt_prog_compiler_wl_F77='-Wl,'
13073 # All OSF/1 code is PIC.
13074 lt_prog_compiler_static_F77='-non_shared'
13075 ;;
13076
13077 sco3.2v5*)
13078 lt_prog_compiler_pic_F77='-Kpic'
13079 lt_prog_compiler_static_F77='-dn'
13080 ;;
13081
13082 solaris*)
13083 lt_prog_compiler_wl_F77='-Wl,'
13084 lt_prog_compiler_pic_F77='-KPIC'
13085 lt_prog_compiler_static_F77='-Bstatic'
13086 ;;
13087
13088 sunos4*)
13089 lt_prog_compiler_wl_F77='-Qoption ld '
13090 lt_prog_compiler_pic_F77='-PIC'
13091 lt_prog_compiler_static_F77='-Bstatic'
13092 ;;
13093
13094 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13095 lt_prog_compiler_wl_F77='-Wl,'
13096 lt_prog_compiler_pic_F77='-KPIC'
13097 lt_prog_compiler_static_F77='-Bstatic'
13098 ;;
13099
13100 sysv4*MP*)
13101 if test -d /usr/nec ;then
13102 lt_prog_compiler_pic_F77='-Kconform_pic'
13103 lt_prog_compiler_static_F77='-Bstatic'
13104 fi
13105 ;;
13106
13107 uts4*)
13108 lt_prog_compiler_pic_F77='-pic'
13109 lt_prog_compiler_static_F77='-Bstatic'
13110 ;;
13111
13112 *)
13113 lt_prog_compiler_can_build_shared_F77=no
13114 ;;
13115 esac
13116 fi
13117
13118echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13119echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13120
13121#
13122# Check to make sure the PIC flag actually works.
13123#
13124if test -n "$lt_prog_compiler_pic_F77"; then
13125 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13126echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13127if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13128 echo $ECHO_N "(cached) $ECHO_C" >&6
13129else
13130 lt_prog_compiler_pic_works_F77=no
13131 ac_outfile=conftest.$ac_objext
13132 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13133 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13134 # Insert the option either (1) after the last *FLAGS variable, or
13135 # (2) before a word containing "conftest.", or (3) at the end.
13136 # Note that $ac_compile itself does not contain backslashes and begins
13137 # with a dollar sign (not a hyphen), so the echo should work correctly.
13138 # The option is referenced via a variable to avoid confusing sed.
13139 lt_compile=`echo "$ac_compile" | $SED \
13140 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13141 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13142 -e 's:$: $lt_compiler_flag:'`
Reid Spencer886e9512004-08-31 01:34:10 +000013143 (eval echo "\"\$as_me:13143: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000013144 (eval "$lt_compile" 2>conftest.err)
13145 ac_status=$?
13146 cat conftest.err >&5
Reid Spencer886e9512004-08-31 01:34:10 +000013147 echo "$as_me:13147: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000013148 if (exit $ac_status) && test -s "$ac_outfile"; then
13149 # The compiler can only warn and ignore the option if not recognized
13150 # So say no if there are warnings
13151 if test ! -s conftest.err; then
13152 lt_prog_compiler_pic_works_F77=yes
13153 fi
13154 fi
13155 $rm conftest*
13156
13157fi
13158echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13159echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13160
13161if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13162 case $lt_prog_compiler_pic_F77 in
13163 "" | " "*) ;;
13164 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13165 esac
13166else
13167 lt_prog_compiler_pic_F77=
13168 lt_prog_compiler_can_build_shared_F77=no
13169fi
13170
13171fi
13172case "$host_os" in
13173 # For platforms which do not support PIC, -DPIC is meaningless:
13174 *djgpp*)
13175 lt_prog_compiler_pic_F77=
13176 ;;
13177 *)
13178 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13179 ;;
13180esac
13181
13182echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13183echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13184if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13185 echo $ECHO_N "(cached) $ECHO_C" >&6
13186else
13187 lt_cv_prog_compiler_c_o_F77=no
13188 $rm -r conftest 2>/dev/null
13189 mkdir conftest
13190 cd conftest
13191 mkdir out
13192 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13193
13194 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
13195 # that will create temporary files in the current directory regardless of
13196 # the output directory. Thus, making CWD read-only will cause this test
13197 # to fail, enabling locking or at least warning the user not to do parallel
13198 # builds.
13199 chmod -w .
13200
13201 lt_compiler_flag="-o out/conftest2.$ac_objext"
13202 # Insert the option either (1) after the last *FLAGS variable, or
13203 # (2) before a word containing "conftest.", or (3) at the end.
13204 # Note that $ac_compile itself does not contain backslashes and begins
13205 # with a dollar sign (not a hyphen), so the echo should work correctly.
13206 lt_compile=`echo "$ac_compile" | $SED \
13207 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13208 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13209 -e 's:$: $lt_compiler_flag:'`
Reid Spencer886e9512004-08-31 01:34:10 +000013210 (eval echo "\"\$as_me:13210: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000013211 (eval "$lt_compile" 2>out/conftest.err)
13212 ac_status=$?
13213 cat out/conftest.err >&5
Reid Spencer886e9512004-08-31 01:34:10 +000013214 echo "$as_me:13214: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000013215 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13216 then
13217 # The compiler can only warn and ignore the option if not recognized
13218 # So say no if there are warnings
13219 if test ! -s out/conftest.err; then
13220 lt_cv_prog_compiler_c_o_F77=yes
13221 fi
13222 fi
13223 chmod u+w .
13224 $rm conftest* out/*
13225 rmdir out
13226 cd ..
13227 rmdir conftest
13228 $rm conftest*
13229
13230fi
13231echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13232echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13233
13234
13235hard_links="nottested"
13236if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13237 # do not overwrite the value of need_locks provided by the user
13238 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13239echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13240 hard_links=yes
13241 $rm conftest*
13242 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13243 touch conftest.a
13244 ln conftest.a conftest.b 2>&5 || hard_links=no
13245 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13246 echo "$as_me:$LINENO: result: $hard_links" >&5
13247echo "${ECHO_T}$hard_links" >&6
13248 if test "$hard_links" = no; then
13249 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13250echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13251 need_locks=warn
13252 fi
13253else
13254 need_locks=no
13255fi
13256
13257echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13258echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13259
13260 runpath_var=
13261 allow_undefined_flag_F77=
13262 enable_shared_with_static_runtimes_F77=no
13263 archive_cmds_F77=
13264 archive_expsym_cmds_F77=
13265 old_archive_From_new_cmds_F77=
13266 old_archive_from_expsyms_cmds_F77=
13267 export_dynamic_flag_spec_F77=
13268 whole_archive_flag_spec_F77=
13269 thread_safe_flag_spec_F77=
13270 hardcode_libdir_flag_spec_F77=
13271 hardcode_libdir_flag_spec_ld_F77=
13272 hardcode_libdir_separator_F77=
13273 hardcode_direct_F77=no
13274 hardcode_minus_L_F77=no
13275 hardcode_shlibpath_var_F77=unsupported
13276 link_all_deplibs_F77=unknown
13277 hardcode_automatic_F77=no
13278 module_cmds_F77=
13279 module_expsym_cmds_F77=
13280 always_export_symbols_F77=no
13281 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13282 # include_expsyms should be a list of space-separated symbols to be *always*
13283 # included in the symbol list
13284 include_expsyms_F77=
13285 # exclude_expsyms can be an extended regexp of symbols to exclude
13286 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13287 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13288 # as well as any symbol that contains `d'.
13289 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13290 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13291 # platforms (ab)use it in PIC code, but their linkers get confused if
13292 # the symbol is explicitly referenced. Since portable code cannot
13293 # rely on this symbol name, it's probably fine to never include it in
13294 # preloaded symbol tables.
13295 extract_expsyms_cmds=
13296
13297 case $host_os in
13298 cygwin* | mingw* | pw32*)
13299 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13300 # When not using gcc, we currently assume that we are using
13301 # Microsoft Visual C++.
13302 if test "$GCC" != yes; then
13303 with_gnu_ld=no
13304 fi
13305 ;;
13306 openbsd*)
13307 with_gnu_ld=no
13308 ;;
13309 esac
13310
13311 ld_shlibs_F77=yes
13312 if test "$with_gnu_ld" = yes; then
13313 # If archive_cmds runs LD, not CC, wlarc should be empty
13314 wlarc='${wl}'
13315
13316 # See if GNU ld supports shared libraries.
13317 case $host_os in
13318 aix3* | aix4* | aix5*)
13319 # On AIX/PPC, the GNU linker is very broken
13320 if test "$host_cpu" != ia64; then
13321 ld_shlibs_F77=no
13322 cat <<EOF 1>&2
13323
13324*** Warning: the GNU linker, at least up to release 2.9.1, is reported
13325*** to be unable to reliably create shared libraries on AIX.
13326*** Therefore, libtool is disabling shared libraries support. If you
13327*** really care for shared libraries, you may want to modify your PATH
13328*** so that a non-GNU linker is found, and then restart.
13329
13330EOF
13331 fi
13332 ;;
13333
13334 amigaos*)
13335 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)'
13336 hardcode_libdir_flag_spec_F77='-L$libdir'
13337 hardcode_minus_L_F77=yes
13338
13339 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13340 # that the semantics of dynamic libraries on AmigaOS, at least up
13341 # to version 4, is to share data among multiple programs linked
13342 # with the same dynamic library. Since this doesn't match the
13343 # behavior of shared libraries on other platforms, we can't use
13344 # them.
13345 ld_shlibs_F77=no
13346 ;;
13347
13348 beos*)
13349 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13350 allow_undefined_flag_F77=unsupported
13351 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13352 # support --undefined. This deserves some investigation. FIXME
13353 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13354 else
13355 ld_shlibs_F77=no
13356 fi
13357 ;;
13358
13359 cygwin* | mingw* | pw32*)
13360 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13361 # as there is no search path for DLLs.
13362 hardcode_libdir_flag_spec_F77='-L$libdir'
13363 allow_undefined_flag_F77=unsupported
13364 always_export_symbols_F77=no
13365 enable_shared_with_static_runtimes_F77=yes
13366 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13367
13368 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13369 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13370 # If the export-symbols file already is a .def file (1st line
13371 # is EXPORTS), use it as is; otherwise, prepend...
13372 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13373 cp $export_symbols $output_objdir/$soname.def;
13374 else
13375 echo EXPORTS > $output_objdir/$soname.def;
13376 cat $export_symbols >> $output_objdir/$soname.def;
13377 fi~
13378 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13379 else
13380 ld_shlibs=no
13381 fi
13382 ;;
13383
13384 netbsd*)
13385 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13386 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13387 wlarc=
13388 else
13389 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13390 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13391 fi
13392 ;;
13393
13394 solaris* | sysv5*)
13395 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13396 ld_shlibs_F77=no
13397 cat <<EOF 1>&2
13398
13399*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13400*** create shared libraries on Solaris systems. Therefore, libtool
13401*** is disabling shared libraries support. We urge you to upgrade GNU
13402*** binutils to release 2.9.1 or newer. Another option is to modify
13403*** your PATH or compiler configuration so that the native linker is
13404*** used, and then restart.
13405
13406EOF
13407 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13408 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13409 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13410 else
13411 ld_shlibs_F77=no
13412 fi
13413 ;;
13414
13415 sunos4*)
13416 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13417 wlarc=
13418 hardcode_direct_F77=yes
13419 hardcode_shlibpath_var_F77=no
13420 ;;
13421
13422 *)
13423 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13424 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13425 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13426 else
13427 ld_shlibs_F77=no
13428 fi
13429 ;;
13430 esac
13431
13432 if test "$ld_shlibs_F77" = yes; then
13433 runpath_var=LD_RUN_PATH
13434 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13435 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13436 # ancient GNU ld didn't support --whole-archive et. al.
13437 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13438 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13439 else
13440 whole_archive_flag_spec_F77=
13441 fi
13442 fi
13443 else
13444 # PORTME fill in a description of your system's linker (not GNU ld)
13445 case $host_os in
13446 aix3*)
13447 allow_undefined_flag_F77=unsupported
13448 always_export_symbols_F77=yes
13449 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'
13450 # Note: this linker hardcodes the directories in LIBPATH if there
13451 # are no directories specified by -L.
13452 hardcode_minus_L_F77=yes
13453 if test "$GCC" = yes && test -z "$link_static_flag"; then
13454 # Neither direct hardcoding nor static linking is supported with a
13455 # broken collect2.
13456 hardcode_direct_F77=unsupported
13457 fi
13458 ;;
13459
13460 aix4* | aix5*)
13461 if test "$host_cpu" = ia64; then
13462 # On IA64, the linker does run time linking by default, so we don't
13463 # have to do anything special.
13464 aix_use_runtimelinking=no
13465 exp_sym_flag='-Bexport'
13466 no_entry_flag=""
13467 else
13468 # If we're using GNU nm, then we don't want the "-C" option.
13469 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13470 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13471 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'
13472 else
13473 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'
13474 fi
13475 aix_use_runtimelinking=no
13476
13477 # Test if we are trying to use run time linking or normal
13478 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13479 # need to do runtime linking.
13480 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13481 for ld_flag in $LDFLAGS; do
13482 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13483 aix_use_runtimelinking=yes
13484 break
13485 fi
13486 done
13487 esac
13488
13489 exp_sym_flag='-bexport'
13490 no_entry_flag='-bnoentry'
13491 fi
13492
13493 # When large executables or shared objects are built, AIX ld can
13494 # have problems creating the table of contents. If linking a library
13495 # or program results in "error TOC overflow" add -mminimal-toc to
13496 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13497 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13498
13499 archive_cmds_F77=''
13500 hardcode_direct_F77=yes
13501 hardcode_libdir_separator_F77=':'
13502 link_all_deplibs_F77=yes
13503
13504 if test "$GCC" = yes; then
13505 case $host_os in aix4.012|aix4.012.*)
13506 # We only want to do this on AIX 4.2 and lower, the check
13507 # below for broken collect2 doesn't work under 4.3+
13508 collect2name=`${CC} -print-prog-name=collect2`
13509 if test -f "$collect2name" && \
13510 strings "$collect2name" | grep resolve_lib_name >/dev/null
13511 then
13512 # We have reworked collect2
13513 hardcode_direct_F77=yes
13514 else
13515 # We have old collect2
13516 hardcode_direct_F77=unsupported
13517 # It fails to find uninstalled libraries when the uninstalled
13518 # path is not listed in the libpath. Setting hardcode_minus_L
13519 # to unsupported forces relinking
13520 hardcode_minus_L_F77=yes
13521 hardcode_libdir_flag_spec_F77='-L$libdir'
13522 hardcode_libdir_separator_F77=
13523 fi
13524 esac
13525 shared_flag='-shared'
13526 else
13527 # not using gcc
13528 if test "$host_cpu" = ia64; then
13529 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13530 # chokes on -Wl,-G. The following line is correct:
13531 shared_flag='-G'
13532 else
13533 if test "$aix_use_runtimelinking" = yes; then
13534 shared_flag='${wl}-G'
13535 else
13536 shared_flag='${wl}-bM:SRE'
13537 fi
13538 fi
13539 fi
13540
13541 # It seems that -bexpall does not export symbols beginning with
13542 # underscore (_), so it is better to generate a list of symbols to export.
13543 always_export_symbols_F77=yes
13544 if test "$aix_use_runtimelinking" = yes; then
13545 # Warning - without using the other runtime loading flags (-brtl),
13546 # -berok will link without error, but may produce a broken library.
13547 allow_undefined_flag_F77='-berok'
13548 # Determine the default libpath from the value encoded in an empty executable.
13549 cat >conftest.$ac_ext <<_ACEOF
13550 program main
13551
13552 end
13553_ACEOF
13554rm -f conftest.$ac_objext conftest$ac_exeext
13555if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000013556 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013557 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000013558 grep -v '^ *+' conftest.er1 >conftest.err
13559 rm -f conftest.er1
13560 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000013561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13562 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000013563 { ac_try='test -z "$ac_f77_werror_flag"
13564 || test ! -s conftest.err'
13565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13566 (eval $ac_try) 2>&5
13567 ac_status=$?
13568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13569 (exit $ac_status); }; } &&
13570 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000013571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13572 (eval $ac_try) 2>&5
13573 ac_status=$?
13574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13575 (exit $ac_status); }; }; then
13576
13577aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13578}'`
13579# Check for a 64-bit object if we didn't find anything.
13580if 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; }
13581}'`; fi
13582else
13583 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013584sed 's/^/| /' conftest.$ac_ext >&5
13585
John Criswell47fdd832003-07-14 16:52:07 +000013586fi
Reid Spencer2b51a082004-08-04 00:34:49 +000013587rm -f conftest.err conftest.$ac_objext \
13588 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000013589if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13590
13591 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13592 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"
13593 else
13594 if test "$host_cpu" = ia64; then
13595 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13596 allow_undefined_flag_F77="-z nodefs"
13597 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"
13598 else
13599 # Determine the default libpath from the value encoded in an empty executable.
13600 cat >conftest.$ac_ext <<_ACEOF
13601 program main
13602
13603 end
13604_ACEOF
13605rm -f conftest.$ac_objext conftest$ac_exeext
13606if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000013607 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013608 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000013609 grep -v '^ *+' conftest.er1 >conftest.err
13610 rm -f conftest.er1
13611 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000013612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13613 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000013614 { ac_try='test -z "$ac_f77_werror_flag"
13615 || test ! -s conftest.err'
13616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13617 (eval $ac_try) 2>&5
13618 ac_status=$?
13619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13620 (exit $ac_status); }; } &&
13621 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000013622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13623 (eval $ac_try) 2>&5
13624 ac_status=$?
13625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13626 (exit $ac_status); }; }; then
13627
13628aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13629}'`
13630# Check for a 64-bit object if we didn't find anything.
13631if 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; }
13632}'`; fi
13633else
13634 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013635sed 's/^/| /' conftest.$ac_ext >&5
13636
John Criswell47fdd832003-07-14 16:52:07 +000013637fi
Reid Spencer2b51a082004-08-04 00:34:49 +000013638rm -f conftest.err conftest.$ac_objext \
13639 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000013640if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13641
13642 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13643 # Warning - without using the other run time loading flags,
13644 # -berok will link without error, but may produce a broken library.
13645 no_undefined_flag_F77=' ${wl}-bernotok'
13646 allow_undefined_flag_F77=' ${wl}-berok'
13647 # -bexpall does not export symbols beginning with underscore (_)
13648 always_export_symbols_F77=yes
13649 # Exported symbols can be pulled into shared objects from archives
13650 whole_archive_flag_spec_F77=' '
13651 archive_cmds_need_lc_F77=yes
13652 # This is similar to how AIX traditionally builds it's shared libraries.
13653 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'
13654 fi
13655 fi
13656 ;;
13657
13658 amigaos*)
13659 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)'
13660 hardcode_libdir_flag_spec_F77='-L$libdir'
13661 hardcode_minus_L_F77=yes
13662 # see comment about different semantics on the GNU ld section
13663 ld_shlibs_F77=no
13664 ;;
13665
13666 bsdi4*)
13667 export_dynamic_flag_spec_F77=-rdynamic
13668 ;;
13669
13670 cygwin* | mingw* | pw32*)
13671 # When not using gcc, we currently assume that we are using
13672 # Microsoft Visual C++.
13673 # hardcode_libdir_flag_spec is actually meaningless, as there is
13674 # no search path for DLLs.
13675 hardcode_libdir_flag_spec_F77=' '
13676 allow_undefined_flag_F77=unsupported
13677 # Tell ltmain to make .lib files, not .a files.
13678 libext=lib
13679 # Tell ltmain to make .dll files, not .so files.
13680 shrext=".dll"
13681 # FIXME: Setting linknames here is a bad hack.
13682 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13683 # The linker will automatically build a .lib file if we build a DLL.
13684 old_archive_From_new_cmds_F77='true'
13685 # FIXME: Should let the user specify the lib program.
13686 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13687 fix_srcfile_path='`cygpath -w "$srcfile"`'
13688 enable_shared_with_static_runtimes_F77=yes
13689 ;;
13690
13691 darwin* | rhapsody*)
13692 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13693 archive_cmds_need_lc_F77=no
13694 case "$host_os" in
13695 rhapsody* | darwin1.[012])
13696 allow_undefined_flag_F77='-undefined suppress'
13697 ;;
13698 *) # Darwin 1.3 on
13699 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13700 ;;
13701 esac
13702 # FIXME: Relying on posixy $() will cause problems for
13703 # cross-compilation, but unfortunately the echo tests do not
13704 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
13705 # `"' quotes if we put them in here... so don't!
13706 lt_int_apple_cc_single_mod=no
13707 output_verbose_link_cmd='echo'
13708 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13709 lt_int_apple_cc_single_mod=yes
13710 fi
13711 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13712 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13713 else
13714 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'
13715 fi
13716 module_cmds_F77='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
13717 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13718 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13719 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}'
13720 else
13721 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}'
13722 fi
13723 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}'
13724 hardcode_direct_F77=no
13725 hardcode_automatic_F77=yes
13726 hardcode_shlibpath_var_F77=unsupported
13727 whole_archive_flag_spec_F77='-all_load $convenience'
13728 link_all_deplibs_F77=yes
13729 fi
13730 ;;
13731
13732 dgux*)
13733 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13734 hardcode_libdir_flag_spec_F77='-L$libdir'
13735 hardcode_shlibpath_var_F77=no
13736 ;;
13737
13738 freebsd1*)
13739 ld_shlibs_F77=no
13740 ;;
13741
13742 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13743 # support. Future versions do this automatically, but an explicit c++rt0.o
13744 # does not break anything, and helps significantly (at the cost of a little
13745 # extra space).
13746 freebsd2.2*)
13747 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13748 hardcode_libdir_flag_spec_F77='-R$libdir'
13749 hardcode_direct_F77=yes
13750 hardcode_shlibpath_var_F77=no
13751 ;;
13752
13753 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13754 freebsd2*)
13755 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13756 hardcode_direct_F77=yes
13757 hardcode_minus_L_F77=yes
13758 hardcode_shlibpath_var_F77=no
13759 ;;
13760
13761 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13762 freebsd*)
13763 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13764 hardcode_libdir_flag_spec_F77='-R$libdir'
13765 hardcode_direct_F77=yes
13766 hardcode_shlibpath_var_F77=no
13767 ;;
13768
13769 hpux9*)
13770 if test "$GCC" = yes; then
13771 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'
13772 else
13773 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'
13774 fi
13775 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13776 hardcode_libdir_separator_F77=:
13777 hardcode_direct_F77=yes
13778
13779 # hardcode_minus_L: Not really in the search PATH,
13780 # but as the default location of the library.
13781 hardcode_minus_L_F77=yes
13782 export_dynamic_flag_spec_F77='${wl}-E'
13783 ;;
13784
13785 hpux10* | hpux11*)
13786 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13787 case "$host_cpu" in
13788 hppa*64*|ia64*)
13789 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13790 ;;
13791 *)
13792 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13793 ;;
13794 esac
13795 else
13796 case "$host_cpu" in
13797 hppa*64*|ia64*)
13798 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13799 ;;
13800 *)
13801 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13802 ;;
13803 esac
13804 fi
13805 if test "$with_gnu_ld" = no; then
13806 case "$host_cpu" in
13807 hppa*64*)
13808 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13809 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13810 hardcode_libdir_separator_F77=:
13811 hardcode_direct_F77=no
13812 hardcode_shlibpath_var_F77=no
13813 ;;
13814 ia64*)
13815 hardcode_libdir_flag_spec_F77='-L$libdir'
13816 hardcode_direct_F77=no
13817 hardcode_shlibpath_var_F77=no
13818
13819 # hardcode_minus_L: Not really in the search PATH,
13820 # but as the default location of the library.
13821 hardcode_minus_L_F77=yes
13822 ;;
13823 *)
13824 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13825 hardcode_libdir_separator_F77=:
13826 hardcode_direct_F77=yes
13827 export_dynamic_flag_spec_F77='${wl}-E'
13828
13829 # hardcode_minus_L: Not really in the search PATH,
13830 # but as the default location of the library.
13831 hardcode_minus_L_F77=yes
13832 ;;
13833 esac
13834 fi
13835 ;;
13836
13837 irix5* | irix6* | nonstopux*)
13838 if test "$GCC" = yes; then
13839 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'
13840 else
13841 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'
13842 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13843 fi
13844 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13845 hardcode_libdir_separator_F77=:
13846 link_all_deplibs_F77=yes
13847 ;;
13848
13849 netbsd*)
13850 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13851 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13852 else
13853 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13854 fi
13855 hardcode_libdir_flag_spec_F77='-R$libdir'
13856 hardcode_direct_F77=yes
13857 hardcode_shlibpath_var_F77=no
13858 ;;
13859
13860 newsos6)
13861 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13862 hardcode_direct_F77=yes
13863 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13864 hardcode_libdir_separator_F77=:
13865 hardcode_shlibpath_var_F77=no
13866 ;;
13867
13868 openbsd*)
13869 hardcode_direct_F77=yes
13870 hardcode_shlibpath_var_F77=no
13871 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13872 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13873 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13874 export_dynamic_flag_spec_F77='${wl}-E'
13875 else
13876 case $host_os in
13877 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13878 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13879 hardcode_libdir_flag_spec_F77='-R$libdir'
13880 ;;
13881 *)
13882 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13883 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13884 ;;
13885 esac
13886 fi
13887 ;;
13888
13889 os2*)
13890 hardcode_libdir_flag_spec_F77='-L$libdir'
13891 hardcode_minus_L_F77=yes
13892 allow_undefined_flag_F77=unsupported
13893 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'
13894 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13895 ;;
13896
13897 osf3*)
13898 if test "$GCC" = yes; then
13899 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13900 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'
13901 else
13902 allow_undefined_flag_F77=' -expect_unresolved \*'
13903 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'
13904 fi
13905 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13906 hardcode_libdir_separator_F77=:
13907 ;;
13908
13909 osf4* | osf5*) # as osf3* with the addition of -msym flag
13910 if test "$GCC" = yes; then
13911 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13912 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'
13913 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13914 else
13915 allow_undefined_flag_F77=' -expect_unresolved \*'
13916 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'
13917 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~
13918 $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'
13919
13920 # Both c and cxx compiler support -rpath directly
13921 hardcode_libdir_flag_spec_F77='-rpath $libdir'
13922 fi
13923 hardcode_libdir_separator_F77=:
13924 ;;
13925
13926 sco3.2v5*)
13927 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13928 hardcode_shlibpath_var_F77=no
13929 export_dynamic_flag_spec_F77='${wl}-Bexport'
13930 runpath_var=LD_RUN_PATH
13931 hardcode_runpath_var=yes
13932 ;;
13933
13934 solaris*)
13935 no_undefined_flag_F77=' -z text'
13936 if test "$GCC" = yes; then
13937 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13938 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13939 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13940 else
13941 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13942 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13943 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13944 fi
13945 hardcode_libdir_flag_spec_F77='-R$libdir'
13946 hardcode_shlibpath_var_F77=no
13947 case $host_os in
13948 solaris2.[0-5] | solaris2.[0-5].*) ;;
13949 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13950 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13951 esac
13952 link_all_deplibs_F77=yes
13953 ;;
13954
13955 sunos4*)
13956 if test "x$host_vendor" = xsequent; then
13957 # Use $CC to link under sequent, because it throws in some extra .o
13958 # files that make .init and .fini sections work.
13959 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13960 else
13961 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13962 fi
13963 hardcode_libdir_flag_spec_F77='-L$libdir'
13964 hardcode_direct_F77=yes
13965 hardcode_minus_L_F77=yes
13966 hardcode_shlibpath_var_F77=no
13967 ;;
13968
13969 sysv4)
13970 case $host_vendor in
13971 sni)
13972 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13973 hardcode_direct_F77=yes # is this really true???
13974 ;;
13975 siemens)
13976 ## LD is ld it makes a PLAMLIB
13977 ## CC just makes a GrossModule.
13978 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13979 reload_cmds_F77='$CC -r -o $output$reload_objs'
13980 hardcode_direct_F77=no
13981 ;;
13982 motorola)
13983 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13984 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13985 ;;
13986 esac
13987 runpath_var='LD_RUN_PATH'
13988 hardcode_shlibpath_var_F77=no
13989 ;;
13990
13991 sysv4.3*)
13992 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13993 hardcode_shlibpath_var_F77=no
13994 export_dynamic_flag_spec_F77='-Bexport'
13995 ;;
13996
13997 sysv4*MP*)
13998 if test -d /usr/nec; then
13999 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14000 hardcode_shlibpath_var_F77=no
14001 runpath_var=LD_RUN_PATH
14002 hardcode_runpath_var=yes
14003 ld_shlibs_F77=yes
14004 fi
14005 ;;
14006
14007 sysv4.2uw2*)
14008 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14009 hardcode_direct_F77=yes
14010 hardcode_minus_L_F77=no
14011 hardcode_shlibpath_var_F77=no
14012 hardcode_runpath_var=yes
14013 runpath_var=LD_RUN_PATH
14014 ;;
14015
14016 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
14017 no_undefined_flag_F77='${wl}-z ${wl}text'
14018 if test "$GCC" = yes; then
14019 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14020 else
14021 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14022 fi
14023 runpath_var='LD_RUN_PATH'
14024 hardcode_shlibpath_var_F77=no
14025 ;;
14026
14027 sysv5*)
14028 no_undefined_flag_F77=' -z text'
14029 # $CC -shared without GNU ld will not create a library from C++
14030 # object files and a static libstdc++, better avoid it by now
14031 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14032 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14033 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14034 hardcode_libdir_flag_spec_F77=
14035 hardcode_shlibpath_var_F77=no
14036 runpath_var='LD_RUN_PATH'
14037 ;;
14038
14039 uts4*)
14040 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14041 hardcode_libdir_flag_spec_F77='-L$libdir'
14042 hardcode_shlibpath_var_F77=no
14043 ;;
14044
14045 *)
14046 ld_shlibs_F77=no
14047 ;;
14048 esac
14049 fi
14050
14051echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14052echo "${ECHO_T}$ld_shlibs_F77" >&6
14053test "$ld_shlibs_F77" = no && can_build_shared=no
14054
14055variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14056if test "$GCC" = yes; then
14057 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14058fi
14059
14060#
14061# Do we need to explicitly link libc?
14062#
14063case "x$archive_cmds_need_lc_F77" in
14064x|xyes)
14065 # Assume -lc should be added
14066 archive_cmds_need_lc_F77=yes
14067
14068 if test "$enable_shared" = yes && test "$GCC" = yes; then
14069 case $archive_cmds_F77 in
14070 *'~'*)
14071 # FIXME: we may have to deal with multi-command sequences.
14072 ;;
14073 '$CC '*)
14074 # Test whether the compiler implicitly links with -lc since on some
14075 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14076 # to ld, don't add -lc before -lgcc.
14077 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14078echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14079 $rm conftest*
14080 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14081
14082 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14083 (eval $ac_compile) 2>&5
14084 ac_status=$?
14085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14086 (exit $ac_status); } 2>conftest.err; then
14087 soname=conftest
14088 lib=conftest
14089 libobjs=conftest.$ac_objext
14090 deplibs=
14091 wl=$lt_prog_compiler_wl_F77
14092 compiler_flags=-v
14093 linker_flags=-v
14094 verstring=
14095 output_objdir=.
14096 libname=conftest
14097 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14098 allow_undefined_flag_F77=
14099 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14100 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14101 ac_status=$?
14102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14103 (exit $ac_status); }
14104 then
14105 archive_cmds_need_lc_F77=no
14106 else
14107 archive_cmds_need_lc_F77=yes
14108 fi
14109 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14110 else
14111 cat conftest.err 1>&5
14112 fi
14113 $rm conftest*
14114 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14115echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14116 ;;
14117 esac
14118 fi
14119 ;;
14120esac
14121
14122echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14123echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14124hardcode_action_F77=
14125if test -n "$hardcode_libdir_flag_spec_F77" || \
14126 test -n "$runpath_var F77" || \
14127 test "X$hardcode_automatic_F77"="Xyes" ; then
14128
14129 # We can hardcode non-existant directories.
14130 if test "$hardcode_direct_F77" != no &&
14131 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14132 # have to relink, otherwise we might link with an installed library
14133 # when we should be linking with a yet-to-be-installed one
14134 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14135 test "$hardcode_minus_L_F77" != no; then
14136 # Linking always hardcodes the temporary library directory.
14137 hardcode_action_F77=relink
14138 else
14139 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14140 hardcode_action_F77=immediate
14141 fi
14142else
14143 # We cannot hardcode anything, or else we can only hardcode existing
14144 # directories.
14145 hardcode_action_F77=unsupported
14146fi
14147echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14148echo "${ECHO_T}$hardcode_action_F77" >&6
14149
14150if test "$hardcode_action_F77" = relink; then
14151 # Fast installation is not supported
14152 enable_fast_install=no
14153elif test "$shlibpath_overrides_runpath" = yes ||
14154 test "$enable_shared" = no; then
14155 # Fast installation is not necessary
14156 enable_fast_install=needless
14157fi
14158
14159striplib=
14160old_striplib=
14161echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14162echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14163if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14164 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14165 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14166 echo "$as_me:$LINENO: result: yes" >&5
14167echo "${ECHO_T}yes" >&6
14168else
14169# FIXME - insert some real tests, host_os isn't really good enough
14170 case $host_os in
14171 darwin*)
14172 if test -n "$STRIP" ; then
14173 striplib="$STRIP -x"
14174 echo "$as_me:$LINENO: result: yes" >&5
14175echo "${ECHO_T}yes" >&6
14176 else
14177 echo "$as_me:$LINENO: result: no" >&5
14178echo "${ECHO_T}no" >&6
14179fi
14180 ;;
14181 *)
14182 echo "$as_me:$LINENO: result: no" >&5
14183echo "${ECHO_T}no" >&6
14184 ;;
14185 esac
14186fi
14187
14188echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14189echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14190library_names_spec=
14191libname_spec='lib$name'
14192soname_spec=
14193shrext=".so"
14194postinstall_cmds=
14195postuninstall_cmds=
14196finish_cmds=
14197finish_eval=
14198shlibpath_var=
14199shlibpath_overrides_runpath=unknown
14200version_type=none
14201dynamic_linker="$host_os ld.so"
14202sys_lib_dlsearch_path_spec="/lib /usr/lib"
14203if test "$GCC" = yes; then
14204 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14205 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14206 # if the path contains ";" then we assume it to be the separator
14207 # otherwise default to the standard path separator (i.e. ":") - it is
14208 # assumed that no part of a normal pathname contains ";" but that should
14209 # okay in the real world where ";" in dirpaths is itself problematic.
14210 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14211 else
14212 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14213 fi
14214else
14215 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14216fi
14217need_lib_prefix=unknown
14218hardcode_into_libs=no
14219
14220# when you set need_version to no, make sure it does not cause -set_version
14221# flags to be left without arguments
14222need_version=unknown
14223
14224case $host_os in
14225aix3*)
14226 version_type=linux
14227 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14228 shlibpath_var=LIBPATH
14229
14230 # AIX 3 has no versioning support, so we append a major version to the name.
14231 soname_spec='${libname}${release}${shared_ext}$major'
14232 ;;
14233
14234aix4* | aix5*)
14235 version_type=linux
14236 need_lib_prefix=no
14237 need_version=no
14238 hardcode_into_libs=yes
14239 if test "$host_cpu" = ia64; then
14240 # AIX 5 supports IA64
14241 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14242 shlibpath_var=LD_LIBRARY_PATH
14243 else
14244 # With GCC up to 2.95.x, collect2 would create an import file
14245 # for dependence libraries. The import file would start with
14246 # the line `#! .'. This would cause the generated library to
14247 # depend on `.', always an invalid library. This was fixed in
14248 # development snapshots of GCC prior to 3.0.
14249 case $host_os in
14250 aix4 | aix4.[01] | aix4.[01].*)
14251 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14252 echo ' yes '
14253 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14254 :
14255 else
14256 can_build_shared=no
14257 fi
14258 ;;
14259 esac
14260 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14261 # soname into executable. Probably we can add versioning support to
14262 # collect2, so additional links can be useful in future.
14263 if test "$aix_use_runtimelinking" = yes; then
14264 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14265 # instead of lib<name>.a to let people know that these are not
14266 # typical AIX shared libraries.
14267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14268 else
14269 # We preserve .a as extension for shared libraries through AIX4.2
14270 # and later when we are not doing run time linking.
14271 library_names_spec='${libname}${release}.a $libname.a'
14272 soname_spec='${libname}${release}${shared_ext}$major'
14273 fi
14274 shlibpath_var=LIBPATH
14275 fi
14276 ;;
14277
14278amigaos*)
14279 library_names_spec='$libname.ixlibrary $libname.a'
14280 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14281 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'
14282 ;;
14283
14284beos*)
14285 library_names_spec='${libname}${shared_ext}'
14286 dynamic_linker="$host_os ld.so"
14287 shlibpath_var=LIBRARY_PATH
14288 ;;
14289
14290bsdi4*)
14291 version_type=linux
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 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14296 shlibpath_var=LD_LIBRARY_PATH
14297 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14298 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14299 # the default ld.so.conf also contains /usr/contrib/lib and
14300 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14301 # libtool to hard-code these into programs
14302 ;;
14303
14304cygwin* | mingw* | pw32*)
14305 version_type=windows
14306 shrext=".dll"
14307 need_version=no
14308 need_lib_prefix=no
14309
14310 case $GCC,$host_os in
14311 yes,cygwin* | yes,mingw* | yes,pw32*)
14312 library_names_spec='$libname.dll.a'
14313 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14314 postinstall_cmds='base_file=`basename \${file}`~
14315 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14316 dldir=$destdir/`dirname \$dlpath`~
14317 test -d \$dldir || mkdir -p \$dldir~
14318 $install_prog $dir/$dlname \$dldir/$dlname'
14319 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14320 dlpath=$dir/\$dldll~
14321 $rm \$dlpath'
14322 shlibpath_overrides_runpath=yes
14323
14324 case $host_os in
14325 cygwin*)
14326 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14327 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14328 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
14329 ;;
14330 mingw*)
14331 # MinGW DLLs use traditional 'lib' prefix
14332 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14333 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14334 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14335 # It is most probably a Windows format PATH printed by
14336 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14337 # path with ; separators, and with drive letters. We can handle the
14338 # drive letters (cygwin fileutils understands them), so leave them,
14339 # especially as we might pass files found there to a mingw objdump,
14340 # which wouldn't understand a cygwinified path. Ahh.
14341 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14342 else
14343 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14344 fi
14345 ;;
14346 pw32*)
14347 # pw32 DLLs use 'pw' prefix rather than 'lib'
14348 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14349 ;;
14350 esac
14351 ;;
14352
14353 *)
14354 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14355 ;;
14356 esac
14357 dynamic_linker='Win32 ld.exe'
14358 # FIXME: first we should search . and the directory the executable is in
14359 shlibpath_var=PATH
14360 ;;
14361
14362darwin* | rhapsody*)
14363 dynamic_linker="$host_os dyld"
14364 version_type=darwin
14365 need_lib_prefix=no
14366 need_version=no
14367 # FIXME: Relying on posixy $() will cause problems for
14368 # cross-compilation, but unfortunately the echo tests do not
14369 # yet detect zsh echo's removal of \ escapes.
14370 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14371 soname_spec='${libname}${release}${major}$shared_ext'
14372 shlibpath_overrides_runpath=yes
14373 shlibpath_var=DYLD_LIBRARY_PATH
14374 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
14375 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14376 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
14377 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"`
14378 fi
14379 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14380 ;;
14381
14382dgux*)
14383 version_type=linux
14384 need_lib_prefix=no
14385 need_version=no
14386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14387 soname_spec='${libname}${release}${shared_ext}$major'
14388 shlibpath_var=LD_LIBRARY_PATH
14389 ;;
14390
14391freebsd1*)
14392 dynamic_linker=no
14393 ;;
14394
14395freebsd*)
14396 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14397 version_type=freebsd-$objformat
14398 case $version_type in
14399 freebsd-elf*)
14400 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14401 need_version=no
14402 need_lib_prefix=no
14403 ;;
14404 freebsd-*)
14405 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14406 need_version=yes
14407 ;;
14408 esac
14409 shlibpath_var=LD_LIBRARY_PATH
14410 case $host_os in
14411 freebsd2*)
14412 shlibpath_overrides_runpath=yes
14413 ;;
14414 freebsd3.01* | freebsdelf3.01*)
14415 shlibpath_overrides_runpath=yes
14416 hardcode_into_libs=yes
14417 ;;
14418 *) # from 3.2 on
14419 shlibpath_overrides_runpath=no
14420 hardcode_into_libs=yes
14421 ;;
14422 esac
14423 ;;
14424
14425gnu*)
14426 version_type=linux
14427 need_lib_prefix=no
14428 need_version=no
14429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14430 soname_spec='${libname}${release}${shared_ext}$major'
14431 shlibpath_var=LD_LIBRARY_PATH
14432 hardcode_into_libs=yes
14433 ;;
14434
14435hpux9* | hpux10* | hpux11*)
14436 # Give a soname corresponding to the major version so that dld.sl refuses to
14437 # link against other versions.
14438 version_type=sunos
14439 need_lib_prefix=no
14440 need_version=no
14441 case "$host_cpu" in
14442 ia64*)
14443 shrext='.so'
14444 hardcode_into_libs=yes
14445 dynamic_linker="$host_os dld.so"
14446 shlibpath_var=LD_LIBRARY_PATH
14447 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14449 soname_spec='${libname}${release}${shared_ext}$major'
14450 if test "X$HPUX_IA64_MODE" = X32; then
14451 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14452 else
14453 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14454 fi
14455 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14456 ;;
14457 hppa*64*)
14458 shrext='.sl'
14459 hardcode_into_libs=yes
14460 dynamic_linker="$host_os dld.sl"
14461 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14462 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14464 soname_spec='${libname}${release}${shared_ext}$major'
14465 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14466 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14467 ;;
14468 *)
14469 shrext='.sl'
14470 dynamic_linker="$host_os dld.sl"
14471 shlibpath_var=SHLIB_PATH
14472 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14474 soname_spec='${libname}${release}${shared_ext}$major'
14475 ;;
14476 esac
14477 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14478 postinstall_cmds='chmod 555 $lib'
14479 ;;
14480
14481irix5* | irix6* | nonstopux*)
14482 case $host_os in
14483 nonstopux*) version_type=nonstopux ;;
14484 *)
14485 if test "$lt_cv_prog_gnu_ld" = yes; then
14486 version_type=linux
14487 else
14488 version_type=irix
14489 fi ;;
14490 esac
14491 need_lib_prefix=no
14492 need_version=no
14493 soname_spec='${libname}${release}${shared_ext}$major'
14494 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14495 case $host_os in
14496 irix5* | nonstopux*)
14497 libsuff= shlibsuff=
14498 ;;
14499 *)
14500 case $LD in # libtool.m4 will add one of these switches to LD
14501 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14502 libsuff= shlibsuff= libmagic=32-bit;;
14503 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14504 libsuff=32 shlibsuff=N32 libmagic=N32;;
14505 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14506 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14507 *) libsuff= shlibsuff= libmagic=never-match;;
14508 esac
14509 ;;
14510 esac
14511 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14512 shlibpath_overrides_runpath=no
14513 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14514 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14515 hardcode_into_libs=yes
14516 ;;
14517
14518# No shared lib support for Linux oldld, aout, or coff.
14519linux*oldld* | linux*aout* | linux*coff*)
14520 dynamic_linker=no
14521 ;;
14522
14523# This must be Linux ELF.
14524linux*)
14525 version_type=linux
14526 need_lib_prefix=no
14527 need_version=no
14528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14529 soname_spec='${libname}${release}${shared_ext}$major'
14530 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14531 shlibpath_var=LD_LIBRARY_PATH
14532 shlibpath_overrides_runpath=no
14533 # This implies no fast_install, which is unacceptable.
14534 # Some rework will be needed to allow for fast_install
14535 # before this can be enabled.
14536 hardcode_into_libs=yes
14537
14538 # We used to test for /lib/ld.so.1 and disable shared libraries on
14539 # powerpc, because MkLinux only supported shared libraries with the
14540 # GNU dynamic linker. Since this was broken with cross compilers,
14541 # most powerpc-linux boxes support dynamic linking these days and
14542 # people can always --disable-shared, the test was removed, and we
14543 # assume the GNU/Linux dynamic linker is in use.
14544 dynamic_linker='GNU/Linux ld.so'
14545 ;;
14546
14547netbsd*)
14548 version_type=sunos
14549 need_lib_prefix=no
14550 need_version=no
14551 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14552 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14553 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14554 dynamic_linker='NetBSD (a.out) ld.so'
14555 else
14556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
14557 soname_spec='${libname}${release}${shared_ext}$major'
14558 dynamic_linker='NetBSD ld.elf_so'
14559 fi
14560 shlibpath_var=LD_LIBRARY_PATH
14561 shlibpath_overrides_runpath=yes
14562 hardcode_into_libs=yes
14563 ;;
14564
14565newsos6)
14566 version_type=linux
14567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14568 shlibpath_var=LD_LIBRARY_PATH
14569 shlibpath_overrides_runpath=yes
14570 ;;
14571
14572nto-qnx)
14573 version_type=linux
14574 need_lib_prefix=no
14575 need_version=no
14576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14577 soname_spec='${libname}${release}${shared_ext}$major'
14578 shlibpath_var=LD_LIBRARY_PATH
14579 shlibpath_overrides_runpath=yes
14580 ;;
14581
14582openbsd*)
14583 version_type=sunos
14584 need_lib_prefix=no
14585 need_version=no
14586 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14587 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14588 shlibpath_var=LD_LIBRARY_PATH
14589 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14590 case $host_os in
14591 openbsd2.[89] | openbsd2.[89].*)
14592 shlibpath_overrides_runpath=no
14593 ;;
14594 *)
14595 shlibpath_overrides_runpath=yes
14596 ;;
14597 esac
14598 else
14599 shlibpath_overrides_runpath=yes
14600 fi
14601 ;;
14602
14603os2*)
14604 libname_spec='$name'
14605 shrext=".dll"
14606 need_lib_prefix=no
14607 library_names_spec='$libname${shared_ext} $libname.a'
14608 dynamic_linker='OS/2 ld.exe'
14609 shlibpath_var=LIBPATH
14610 ;;
14611
14612osf3* | osf4* | osf5*)
14613 version_type=osf
14614 need_lib_prefix=no
14615 need_version=no
14616 soname_spec='${libname}${release}${shared_ext}$major'
14617 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14618 shlibpath_var=LD_LIBRARY_PATH
14619 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14620 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14621 ;;
14622
14623sco3.2v5*)
14624 version_type=osf
14625 soname_spec='${libname}${release}${shared_ext}$major'
14626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14627 shlibpath_var=LD_LIBRARY_PATH
14628 ;;
14629
14630solaris*)
14631 version_type=linux
14632 need_lib_prefix=no
14633 need_version=no
14634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14635 soname_spec='${libname}${release}${shared_ext}$major'
14636 shlibpath_var=LD_LIBRARY_PATH
14637 shlibpath_overrides_runpath=yes
14638 hardcode_into_libs=yes
14639 # ldd complains unless libraries are executable
14640 postinstall_cmds='chmod +x $lib'
14641 ;;
14642
14643sunos4*)
14644 version_type=sunos
14645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14646 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14647 shlibpath_var=LD_LIBRARY_PATH
14648 shlibpath_overrides_runpath=yes
14649 if test "$with_gnu_ld" = yes; then
14650 need_lib_prefix=no
14651 fi
14652 need_version=yes
14653 ;;
14654
14655sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14656 version_type=linux
14657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14658 soname_spec='${libname}${release}${shared_ext}$major'
14659 shlibpath_var=LD_LIBRARY_PATH
14660 case $host_vendor in
14661 sni)
14662 shlibpath_overrides_runpath=no
14663 need_lib_prefix=no
14664 export_dynamic_flag_spec='${wl}-Blargedynsym'
14665 runpath_var=LD_RUN_PATH
14666 ;;
14667 siemens)
14668 need_lib_prefix=no
14669 ;;
14670 motorola)
14671 need_lib_prefix=no
14672 need_version=no
14673 shlibpath_overrides_runpath=no
14674 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14675 ;;
14676 esac
14677 ;;
14678
14679sysv4*MP*)
14680 if test -d /usr/nec ;then
14681 version_type=linux
14682 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14683 soname_spec='$libname${shared_ext}.$major'
14684 shlibpath_var=LD_LIBRARY_PATH
14685 fi
14686 ;;
14687
14688uts4*)
14689 version_type=linux
14690 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14691 soname_spec='${libname}${release}${shared_ext}$major'
14692 shlibpath_var=LD_LIBRARY_PATH
14693 ;;
14694
14695*)
14696 dynamic_linker=no
14697 ;;
14698esac
14699echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14700echo "${ECHO_T}$dynamic_linker" >&6
14701test "$dynamic_linker" = no && can_build_shared=no
14702
14703
14704# The else clause should only fire when bootstrapping the
14705# libtool distribution, otherwise you forgot to ship ltmain.sh
14706# with your package, and you will get complaints that there are
14707# no rules to generate ltmain.sh.
14708if test -f "$ltmain"; then
14709 # See if we are running on zsh, and set the options which allow our commands through
14710 # without removal of \ escapes.
14711 if test -n "${ZSH_VERSION+set}" ; then
14712 setopt NO_GLOB_SUBST
14713 fi
14714 # Now quote all the things that may contain metacharacters while being
14715 # careful not to overquote the AC_SUBSTed values. We take copies of the
14716 # variables and quote the copies for generation of the libtool script.
14717 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
14718 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14719 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14720 deplibs_check_method reload_flag reload_cmds need_locks \
14721 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14722 lt_cv_sys_global_symbol_to_c_name_address \
14723 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14724 old_postinstall_cmds old_postuninstall_cmds \
14725 compiler_F77 \
14726 CC_F77 \
14727 LD_F77 \
14728 lt_prog_compiler_wl_F77 \
14729 lt_prog_compiler_pic_F77 \
14730 lt_prog_compiler_static_F77 \
14731 lt_prog_compiler_no_builtin_flag_F77 \
14732 export_dynamic_flag_spec_F77 \
14733 thread_safe_flag_spec_F77 \
14734 whole_archive_flag_spec_F77 \
14735 enable_shared_with_static_runtimes_F77 \
14736 old_archive_cmds_F77 \
14737 old_archive_from_new_cmds_F77 \
14738 predep_objects_F77 \
14739 postdep_objects_F77 \
14740 predeps_F77 \
14741 postdeps_F77 \
14742 compiler_lib_search_path_F77 \
14743 archive_cmds_F77 \
14744 archive_expsym_cmds_F77 \
14745 postinstall_cmds_F77 \
14746 postuninstall_cmds_F77 \
14747 old_archive_from_expsyms_cmds_F77 \
14748 allow_undefined_flag_F77 \
14749 no_undefined_flag_F77 \
14750 export_symbols_cmds_F77 \
14751 hardcode_libdir_flag_spec_F77 \
14752 hardcode_libdir_flag_spec_ld_F77 \
14753 hardcode_libdir_separator_F77 \
14754 hardcode_automatic_F77 \
14755 module_cmds_F77 \
14756 module_expsym_cmds_F77 \
14757 lt_cv_prog_compiler_c_o_F77 \
14758 exclude_expsyms_F77 \
14759 include_expsyms_F77; do
14760
14761 case $var in
14762 old_archive_cmds_F77 | \
14763 old_archive_from_new_cmds_F77 | \
14764 archive_cmds_F77 | \
14765 archive_expsym_cmds_F77 | \
14766 module_cmds_F77 | \
14767 module_expsym_cmds_F77 | \
14768 old_archive_from_expsyms_cmds_F77 | \
14769 export_symbols_cmds_F77 | \
14770 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14771 postinstall_cmds | postuninstall_cmds | \
14772 old_postinstall_cmds | old_postuninstall_cmds | \
14773 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14774 # Double-quote double-evaled strings.
14775 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14776 ;;
14777 *)
14778 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14779 ;;
14780 esac
14781 done
14782
14783 case $lt_echo in
14784 *'\$0 --fallback-echo"')
14785 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14786 ;;
14787 esac
14788
14789cfgfile="$ofile"
14790
14791 cat <<__EOF__ >> "$cfgfile"
14792# ### BEGIN LIBTOOL TAG CONFIG: $tagname
14793
14794# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14795
14796# Shell to use when invoking shell scripts.
14797SHELL=$lt_SHELL
14798
14799# Whether or not to build shared libraries.
14800build_libtool_libs=$enable_shared
14801
14802# Whether or not to build static libraries.
14803build_old_libs=$enable_static
14804
14805# Whether or not to add -lc for building shared libraries.
14806build_libtool_need_lc=$archive_cmds_need_lc_F77
14807
14808# Whether or not to disallow shared libs when runtime libs are static
14809allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14810
14811# Whether or not to optimize for fast installation.
14812fast_install=$enable_fast_install
14813
14814# The host system.
14815host_alias=$host_alias
14816host=$host
14817
14818# An echo program that does not interpret backslashes.
14819echo=$lt_echo
14820
14821# The archiver.
14822AR=$lt_AR
14823AR_FLAGS=$lt_AR_FLAGS
14824
14825# A C compiler.
14826LTCC=$lt_LTCC
14827
14828# A language-specific compiler.
14829CC=$lt_compiler_F77
14830
14831# Is the compiler the GNU C compiler?
14832with_gcc=$GCC_F77
14833
14834# An ERE matcher.
14835EGREP=$lt_EGREP
14836
14837# The linker used to build libraries.
14838LD=$lt_LD_F77
14839
14840# Whether we need hard or soft links.
14841LN_S=$lt_LN_S
14842
14843# A BSD-compatible nm program.
14844NM=$lt_NM
14845
14846# A symbol stripping program
14847STRIP=$STRIP
14848
14849# Used to examine libraries when file_magic_cmd begins "file"
14850MAGIC_CMD=$MAGIC_CMD
14851
14852# Used on cygwin: DLL creation program.
14853DLLTOOL="$DLLTOOL"
14854
14855# Used on cygwin: object dumper.
14856OBJDUMP="$OBJDUMP"
14857
14858# Used on cygwin: assembler.
14859AS="$AS"
14860
14861# The name of the directory that contains temporary libtool files.
14862objdir=$objdir
14863
14864# How to create reloadable object files.
14865reload_flag=$lt_reload_flag
14866reload_cmds=$lt_reload_cmds
14867
14868# How to pass a linker flag through the compiler.
14869wl=$lt_lt_prog_compiler_wl_F77
14870
14871# Object file suffix (normally "o").
14872objext="$ac_objext"
14873
14874# Old archive suffix (normally "a").
14875libext="$libext"
14876
14877# Shared library suffix (normally ".so").
14878shrext='$shrext'
14879
14880# Executable file suffix (normally "").
14881exeext="$exeext"
14882
14883# Additional compiler flags for building library objects.
14884pic_flag=$lt_lt_prog_compiler_pic_F77
14885pic_mode=$pic_mode
14886
14887# What is the maximum length of a command?
14888max_cmd_len=$lt_cv_sys_max_cmd_len
14889
14890# Does compiler simultaneously support -c and -o options?
14891compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14892
14893# Must we lock files when doing compilation ?
14894need_locks=$lt_need_locks
14895
14896# Do we need the lib prefix for modules?
14897need_lib_prefix=$need_lib_prefix
14898
14899# Do we need a version for libraries?
14900need_version=$need_version
14901
14902# Whether dlopen is supported.
14903dlopen_support=$enable_dlopen
14904
14905# Whether dlopen of programs is supported.
14906dlopen_self=$enable_dlopen_self
14907
14908# Whether dlopen of statically linked programs is supported.
14909dlopen_self_static=$enable_dlopen_self_static
14910
14911# Compiler flag to prevent dynamic linking.
14912link_static_flag=$lt_lt_prog_compiler_static_F77
14913
14914# Compiler flag to turn off builtin functions.
14915no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14916
14917# Compiler flag to allow reflexive dlopens.
14918export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14919
14920# Compiler flag to generate shared objects directly from archives.
14921whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14922
14923# Compiler flag to generate thread-safe objects.
14924thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14925
14926# Library versioning type.
14927version_type=$version_type
14928
14929# Format of library name prefix.
14930libname_spec=$lt_libname_spec
14931
14932# List of archive names. First name is the real one, the rest are links.
14933# The last name is the one that the linker finds with -lNAME.
14934library_names_spec=$lt_library_names_spec
14935
14936# The coded name of the library, if different from the real name.
14937soname_spec=$lt_soname_spec
14938
14939# Commands used to build and install an old-style archive.
14940RANLIB=$lt_RANLIB
14941old_archive_cmds=$lt_old_archive_cmds_F77
14942old_postinstall_cmds=$lt_old_postinstall_cmds
14943old_postuninstall_cmds=$lt_old_postuninstall_cmds
14944
14945# Create an old-style archive from a shared archive.
14946old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14947
14948# Create a temporary old-style archive to link instead of a shared archive.
14949old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14950
14951# Commands used to build and install a shared archive.
14952archive_cmds=$lt_archive_cmds_F77
14953archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14954postinstall_cmds=$lt_postinstall_cmds
14955postuninstall_cmds=$lt_postuninstall_cmds
14956
14957# Commands used to build a loadable module (assumed same as above if empty)
14958module_cmds=$lt_module_cmds_F77
14959module_expsym_cmds=$lt_module_expsym_cmds_F77
14960
14961# Commands to strip libraries.
14962old_striplib=$lt_old_striplib
14963striplib=$lt_striplib
14964
14965# Dependencies to place before the objects being linked to create a
14966# shared library.
14967predep_objects=$lt_predep_objects_F77
14968
14969# Dependencies to place after the objects being linked to create a
14970# shared library.
14971postdep_objects=$lt_postdep_objects_F77
14972
14973# Dependencies to place before the objects being linked to create a
14974# shared library.
14975predeps=$lt_predeps_F77
14976
14977# Dependencies to place after the objects being linked to create a
14978# shared library.
14979postdeps=$lt_postdeps_F77
14980
14981# The library search path used internally by the compiler when linking
14982# a shared library.
14983compiler_lib_search_path=$lt_compiler_lib_search_path_F77
14984
14985# Method to check whether dependent libraries are shared objects.
14986deplibs_check_method=$lt_deplibs_check_method
14987
14988# Command to use when deplibs_check_method == file_magic.
14989file_magic_cmd=$lt_file_magic_cmd
14990
14991# Flag that allows shared libraries with undefined symbols to be built.
14992allow_undefined_flag=$lt_allow_undefined_flag_F77
14993
14994# Flag that forces no undefined symbols.
14995no_undefined_flag=$lt_no_undefined_flag_F77
14996
14997# Commands used to finish a libtool library installation in a directory.
14998finish_cmds=$lt_finish_cmds
14999
15000# Same as above, but a single script fragment to be evaled but not shown.
15001finish_eval=$lt_finish_eval
15002
15003# Take the output of nm and produce a listing of raw symbols and C names.
15004global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15005
15006# Transform the output of nm in a proper C declaration
15007global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15008
15009# Transform the output of nm in a C name address pair
15010global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15011
15012# This is the shared library runtime path variable.
15013runpath_var=$runpath_var
15014
15015# This is the shared library path variable.
15016shlibpath_var=$shlibpath_var
15017
15018# Is shlibpath searched before the hard-coded library search path?
15019shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15020
15021# How to hardcode a shared library path into an executable.
15022hardcode_action=$hardcode_action_F77
15023
15024# Whether we should hardcode library paths into libraries.
15025hardcode_into_libs=$hardcode_into_libs
15026
15027# Flag to hardcode \$libdir into a binary during linking.
15028# This must work even if \$libdir does not exist.
15029hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15030
15031# If ld is used when linking, flag to hardcode \$libdir into
15032# a binary during linking. This must work even if \$libdir does
15033# not exist.
15034hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15035
15036# Whether we need a single -rpath flag with a separated argument.
15037hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15038
15039# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15040# resulting binary.
15041hardcode_direct=$hardcode_direct_F77
15042
15043# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15044# resulting binary.
15045hardcode_minus_L=$hardcode_minus_L_F77
15046
15047# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15048# the resulting binary.
15049hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15050
15051# Set to yes if building a shared library automatically hardcodes DIR into the library
15052# and all subsequent libraries and executables linked against it.
15053hardcode_automatic=$hardcode_automatic_F77
15054
15055# Variables whose values should be saved in libtool wrapper scripts and
15056# restored at relink time.
15057variables_saved_for_relink="$variables_saved_for_relink"
15058
15059# Whether libtool must link a program against all its dependency libraries.
15060link_all_deplibs=$link_all_deplibs_F77
15061
15062# Compile-time system search path for libraries
15063sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15064
15065# Run-time system search path for libraries
15066sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15067
15068# Fix the shell variable \$srcfile for the compiler.
15069fix_srcfile_path="$fix_srcfile_path_F77"
15070
15071# Set to yes if exported symbols are required.
15072always_export_symbols=$always_export_symbols_F77
15073
15074# The commands to list exported symbols.
15075export_symbols_cmds=$lt_export_symbols_cmds_F77
15076
15077# The commands to extract the exported symbol list from a shared archive.
15078extract_expsyms_cmds=$lt_extract_expsyms_cmds
15079
15080# Symbols that should not be listed in the preloaded symbols.
15081exclude_expsyms=$lt_exclude_expsyms_F77
15082
15083# Symbols that must always be exported.
15084include_expsyms=$lt_include_expsyms_F77
15085
15086# ### END LIBTOOL TAG CONFIG: $tagname
15087
15088__EOF__
15089
15090
15091else
15092 # If there is no Makefile yet, we rely on a make rule to execute
15093 # `config.status --recheck' to rerun these tests and create the
15094 # libtool script then.
15095 test -f Makefile && make "$ltmain"
15096fi
15097
15098
15099ac_ext=c
15100ac_cpp='$CPP $CPPFLAGS'
15101ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15102ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15103ac_compiler_gnu=$ac_cv_c_compiler_gnu
15104
15105CC="$lt_save_CC"
15106
15107 else
15108 tagname=""
15109 fi
15110 ;;
15111
15112 GCJ)
15113 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15114
15115
15116
15117# Source file extension for Java test sources.
15118ac_ext=java
15119
15120# Object file extension for compiled Java test sources.
15121objext=o
15122objext_GCJ=$objext
15123
15124# Code to be used in simple compile tests
15125lt_simple_compile_test_code="class foo {}\n"
15126
15127# Code to be used in simple link tests
15128lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15129
15130# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15131
15132# If no C compiler was specified, use CC.
15133LTCC=${LTCC-"$CC"}
15134
15135# Allow CC to be a program name with arguments.
15136compiler=$CC
15137
15138
15139# Allow CC to be a program name with arguments.
15140lt_save_CC="$CC"
15141CC=${GCJ-"gcj"}
15142compiler=$CC
15143compiler_GCJ=$CC
15144
15145# GCJ did not exist at the time GCC didn't implicitly link libc in.
15146archive_cmds_need_lc_GCJ=no
15147
Reid Spencer2b51a082004-08-04 00:34:49 +000015148## CAVEAT EMPTOR:
15149## There is no encapsulation within the following macros, do not change
15150## the running order or otherwise move them around unless you know exactly
15151## what you are doing...
John Criswell47fdd832003-07-14 16:52:07 +000015152
15153lt_prog_compiler_no_builtin_flag_GCJ=
15154
15155if test "$GCC" = yes; then
15156 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15157
15158 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15159echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15160if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15161 echo $ECHO_N "(cached) $ECHO_C" >&6
15162else
15163 lt_cv_prog_compiler_rtti_exceptions=no
15164 ac_outfile=conftest.$ac_objext
15165 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15166 lt_compiler_flag="-fno-rtti -fno-exceptions"
15167 # Insert the option either (1) after the last *FLAGS variable, or
15168 # (2) before a word containing "conftest.", or (3) at the end.
15169 # Note that $ac_compile itself does not contain backslashes and begins
15170 # with a dollar sign (not a hyphen), so the echo should work correctly.
15171 # The option is referenced via a variable to avoid confusing sed.
15172 lt_compile=`echo "$ac_compile" | $SED \
15173 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15174 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15175 -e 's:$: $lt_compiler_flag:'`
Reid Spencer886e9512004-08-31 01:34:10 +000015176 (eval echo "\"\$as_me:15176: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000015177 (eval "$lt_compile" 2>conftest.err)
15178 ac_status=$?
15179 cat conftest.err >&5
Reid Spencer886e9512004-08-31 01:34:10 +000015180 echo "$as_me:15180: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000015181 if (exit $ac_status) && test -s "$ac_outfile"; then
15182 # The compiler can only warn and ignore the option if not recognized
15183 # So say no if there are warnings
15184 if test ! -s conftest.err; then
15185 lt_cv_prog_compiler_rtti_exceptions=yes
15186 fi
15187 fi
15188 $rm conftest*
15189
15190fi
15191echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15192echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15193
15194if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15195 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15196else
15197 :
15198fi
15199
15200fi
15201
15202lt_prog_compiler_wl_GCJ=
15203lt_prog_compiler_pic_GCJ=
15204lt_prog_compiler_static_GCJ=
15205
15206echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15207echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15208
15209 if test "$GCC" = yes; then
15210 lt_prog_compiler_wl_GCJ='-Wl,'
15211 lt_prog_compiler_static_GCJ='-static'
15212
15213 case $host_os in
15214 aix*)
15215 # All AIX code is PIC.
15216 if test "$host_cpu" = ia64; then
15217 # AIX 5 now supports IA64 processor
15218 lt_prog_compiler_static_GCJ='-Bstatic'
15219 fi
15220 ;;
15221
15222 amigaos*)
15223 # FIXME: we need at least 68020 code to build shared libraries, but
15224 # adding the `-m68020' flag to GCC prevents building anything better,
15225 # like `-m68040'.
15226 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15227 ;;
15228
15229 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15230 # PIC is the default for these OSes.
15231 ;;
15232
15233 mingw* | pw32* | os2*)
15234 # This hack is so that the source file can tell whether it is being
15235 # built for inclusion in a dll (and should export symbols for example).
15236 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15237 ;;
15238
15239 darwin* | rhapsody*)
15240 # PIC is the default on this platform
15241 # Common symbols not allowed in MH_DYLIB files
15242 lt_prog_compiler_pic_GCJ='-fno-common'
15243 ;;
15244
15245 msdosdjgpp*)
15246 # Just because we use GCC doesn't mean we suddenly get shared libraries
15247 # on systems that don't support them.
15248 lt_prog_compiler_can_build_shared_GCJ=no
15249 enable_shared=no
15250 ;;
15251
15252 sysv4*MP*)
15253 if test -d /usr/nec; then
15254 lt_prog_compiler_pic_GCJ=-Kconform_pic
15255 fi
15256 ;;
15257
15258 hpux*)
15259 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15260 # not for PA HP-UX.
15261 case "$host_cpu" in
15262 hppa*64*|ia64*)
15263 # +Z the default
15264 ;;
15265 *)
15266 lt_prog_compiler_pic_GCJ='-fPIC'
15267 ;;
15268 esac
15269 ;;
15270
15271 *)
15272 lt_prog_compiler_pic_GCJ='-fPIC'
15273 ;;
15274 esac
15275 else
15276 # PORTME Check for flag to pass linker flags through the system compiler.
15277 case $host_os in
15278 aix*)
15279 lt_prog_compiler_wl_GCJ='-Wl,'
15280 if test "$host_cpu" = ia64; then
15281 # AIX 5 now supports IA64 processor
15282 lt_prog_compiler_static_GCJ='-Bstatic'
15283 else
15284 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15285 fi
15286 ;;
15287
15288 mingw* | pw32* | os2*)
15289 # This hack is so that the source file can tell whether it is being
15290 # built for inclusion in a dll (and should export symbols for example).
15291 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15292 ;;
15293
15294 hpux9* | hpux10* | hpux11*)
15295 lt_prog_compiler_wl_GCJ='-Wl,'
15296 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15297 # not for PA HP-UX.
15298 case "$host_cpu" in
15299 hppa*64*|ia64*)
15300 # +Z the default
15301 ;;
15302 *)
15303 lt_prog_compiler_pic_GCJ='+Z'
15304 ;;
15305 esac
15306 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15307 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15308 ;;
15309
15310 irix5* | irix6* | nonstopux*)
15311 lt_prog_compiler_wl_GCJ='-Wl,'
15312 # PIC (with -KPIC) is the default.
15313 lt_prog_compiler_static_GCJ='-non_shared'
15314 ;;
15315
15316 newsos6)
15317 lt_prog_compiler_pic_GCJ='-KPIC'
15318 lt_prog_compiler_static_GCJ='-Bstatic'
15319 ;;
15320
15321 linux*)
15322 case $CC in
15323 icc|ecc)
15324 lt_prog_compiler_wl_GCJ='-Wl,'
15325 lt_prog_compiler_pic_GCJ='-KPIC'
15326 lt_prog_compiler_static_GCJ='-static'
15327 ;;
15328 ccc)
15329 lt_prog_compiler_wl_GCJ='-Wl,'
15330 # All Alpha code is PIC.
15331 lt_prog_compiler_static_GCJ='-non_shared'
15332 ;;
15333 esac
15334 ;;
15335
15336 osf3* | osf4* | osf5*)
15337 lt_prog_compiler_wl_GCJ='-Wl,'
15338 # All OSF/1 code is PIC.
15339 lt_prog_compiler_static_GCJ='-non_shared'
15340 ;;
15341
15342 sco3.2v5*)
15343 lt_prog_compiler_pic_GCJ='-Kpic'
15344 lt_prog_compiler_static_GCJ='-dn'
15345 ;;
15346
15347 solaris*)
15348 lt_prog_compiler_wl_GCJ='-Wl,'
15349 lt_prog_compiler_pic_GCJ='-KPIC'
15350 lt_prog_compiler_static_GCJ='-Bstatic'
15351 ;;
15352
15353 sunos4*)
15354 lt_prog_compiler_wl_GCJ='-Qoption ld '
15355 lt_prog_compiler_pic_GCJ='-PIC'
15356 lt_prog_compiler_static_GCJ='-Bstatic'
15357 ;;
15358
15359 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15360 lt_prog_compiler_wl_GCJ='-Wl,'
15361 lt_prog_compiler_pic_GCJ='-KPIC'
15362 lt_prog_compiler_static_GCJ='-Bstatic'
15363 ;;
15364
15365 sysv4*MP*)
15366 if test -d /usr/nec ;then
15367 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15368 lt_prog_compiler_static_GCJ='-Bstatic'
15369 fi
15370 ;;
15371
15372 uts4*)
15373 lt_prog_compiler_pic_GCJ='-pic'
15374 lt_prog_compiler_static_GCJ='-Bstatic'
15375 ;;
15376
15377 *)
15378 lt_prog_compiler_can_build_shared_GCJ=no
15379 ;;
15380 esac
15381 fi
15382
15383echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15384echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15385
15386#
15387# Check to make sure the PIC flag actually works.
15388#
15389if test -n "$lt_prog_compiler_pic_GCJ"; then
15390 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15391echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15392if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15393 echo $ECHO_N "(cached) $ECHO_C" >&6
15394else
15395 lt_prog_compiler_pic_works_GCJ=no
15396 ac_outfile=conftest.$ac_objext
15397 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15398 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15399 # Insert the option either (1) after the last *FLAGS variable, or
15400 # (2) before a word containing "conftest.", or (3) at the end.
15401 # Note that $ac_compile itself does not contain backslashes and begins
15402 # with a dollar sign (not a hyphen), so the echo should work correctly.
15403 # The option is referenced via a variable to avoid confusing sed.
15404 lt_compile=`echo "$ac_compile" | $SED \
15405 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15406 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15407 -e 's:$: $lt_compiler_flag:'`
Reid Spencer886e9512004-08-31 01:34:10 +000015408 (eval echo "\"\$as_me:15408: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000015409 (eval "$lt_compile" 2>conftest.err)
15410 ac_status=$?
15411 cat conftest.err >&5
Reid Spencer886e9512004-08-31 01:34:10 +000015412 echo "$as_me:15412: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000015413 if (exit $ac_status) && test -s "$ac_outfile"; then
15414 # The compiler can only warn and ignore the option if not recognized
15415 # So say no if there are warnings
15416 if test ! -s conftest.err; then
15417 lt_prog_compiler_pic_works_GCJ=yes
15418 fi
15419 fi
15420 $rm conftest*
15421
15422fi
15423echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15424echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15425
15426if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15427 case $lt_prog_compiler_pic_GCJ in
15428 "" | " "*) ;;
15429 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15430 esac
15431else
15432 lt_prog_compiler_pic_GCJ=
15433 lt_prog_compiler_can_build_shared_GCJ=no
15434fi
15435
15436fi
15437case "$host_os" in
15438 # For platforms which do not support PIC, -DPIC is meaningless:
15439 *djgpp*)
15440 lt_prog_compiler_pic_GCJ=
15441 ;;
15442 *)
15443 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15444 ;;
15445esac
15446
15447echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15448echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15449if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15450 echo $ECHO_N "(cached) $ECHO_C" >&6
15451else
15452 lt_cv_prog_compiler_c_o_GCJ=no
15453 $rm -r conftest 2>/dev/null
15454 mkdir conftest
15455 cd conftest
15456 mkdir out
15457 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15458
15459 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
15460 # that will create temporary files in the current directory regardless of
15461 # the output directory. Thus, making CWD read-only will cause this test
15462 # to fail, enabling locking or at least warning the user not to do parallel
15463 # builds.
15464 chmod -w .
15465
15466 lt_compiler_flag="-o out/conftest2.$ac_objext"
15467 # Insert the option either (1) after the last *FLAGS variable, or
15468 # (2) before a word containing "conftest.", or (3) at the end.
15469 # Note that $ac_compile itself does not contain backslashes and begins
15470 # with a dollar sign (not a hyphen), so the echo should work correctly.
15471 lt_compile=`echo "$ac_compile" | $SED \
15472 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15473 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15474 -e 's:$: $lt_compiler_flag:'`
Reid Spencer886e9512004-08-31 01:34:10 +000015475 (eval echo "\"\$as_me:15475: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000015476 (eval "$lt_compile" 2>out/conftest.err)
15477 ac_status=$?
15478 cat out/conftest.err >&5
Reid Spencer886e9512004-08-31 01:34:10 +000015479 echo "$as_me:15479: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000015480 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15481 then
15482 # The compiler can only warn and ignore the option if not recognized
15483 # So say no if there are warnings
15484 if test ! -s out/conftest.err; then
15485 lt_cv_prog_compiler_c_o_GCJ=yes
15486 fi
15487 fi
15488 chmod u+w .
15489 $rm conftest* out/*
15490 rmdir out
15491 cd ..
15492 rmdir conftest
15493 $rm conftest*
15494
15495fi
15496echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15497echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15498
15499
15500hard_links="nottested"
15501if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15502 # do not overwrite the value of need_locks provided by the user
15503 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15504echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15505 hard_links=yes
15506 $rm conftest*
15507 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15508 touch conftest.a
15509 ln conftest.a conftest.b 2>&5 || hard_links=no
15510 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15511 echo "$as_me:$LINENO: result: $hard_links" >&5
15512echo "${ECHO_T}$hard_links" >&6
15513 if test "$hard_links" = no; then
15514 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15515echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15516 need_locks=warn
15517 fi
15518else
15519 need_locks=no
15520fi
15521
15522echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15523echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15524
15525 runpath_var=
15526 allow_undefined_flag_GCJ=
15527 enable_shared_with_static_runtimes_GCJ=no
15528 archive_cmds_GCJ=
15529 archive_expsym_cmds_GCJ=
15530 old_archive_From_new_cmds_GCJ=
15531 old_archive_from_expsyms_cmds_GCJ=
15532 export_dynamic_flag_spec_GCJ=
15533 whole_archive_flag_spec_GCJ=
15534 thread_safe_flag_spec_GCJ=
15535 hardcode_libdir_flag_spec_GCJ=
15536 hardcode_libdir_flag_spec_ld_GCJ=
15537 hardcode_libdir_separator_GCJ=
15538 hardcode_direct_GCJ=no
15539 hardcode_minus_L_GCJ=no
15540 hardcode_shlibpath_var_GCJ=unsupported
15541 link_all_deplibs_GCJ=unknown
15542 hardcode_automatic_GCJ=no
15543 module_cmds_GCJ=
15544 module_expsym_cmds_GCJ=
15545 always_export_symbols_GCJ=no
15546 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15547 # include_expsyms should be a list of space-separated symbols to be *always*
15548 # included in the symbol list
15549 include_expsyms_GCJ=
15550 # exclude_expsyms can be an extended regexp of symbols to exclude
15551 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15552 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15553 # as well as any symbol that contains `d'.
15554 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15555 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15556 # platforms (ab)use it in PIC code, but their linkers get confused if
15557 # the symbol is explicitly referenced. Since portable code cannot
15558 # rely on this symbol name, it's probably fine to never include it in
15559 # preloaded symbol tables.
15560 extract_expsyms_cmds=
15561
15562 case $host_os in
15563 cygwin* | mingw* | pw32*)
15564 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15565 # When not using gcc, we currently assume that we are using
15566 # Microsoft Visual C++.
15567 if test "$GCC" != yes; then
15568 with_gnu_ld=no
15569 fi
15570 ;;
15571 openbsd*)
15572 with_gnu_ld=no
15573 ;;
15574 esac
15575
15576 ld_shlibs_GCJ=yes
15577 if test "$with_gnu_ld" = yes; then
15578 # If archive_cmds runs LD, not CC, wlarc should be empty
15579 wlarc='${wl}'
15580
15581 # See if GNU ld supports shared libraries.
15582 case $host_os in
15583 aix3* | aix4* | aix5*)
15584 # On AIX/PPC, the GNU linker is very broken
15585 if test "$host_cpu" != ia64; then
15586 ld_shlibs_GCJ=no
15587 cat <<EOF 1>&2
15588
15589*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15590*** to be unable to reliably create shared libraries on AIX.
15591*** Therefore, libtool is disabling shared libraries support. If you
15592*** really care for shared libraries, you may want to modify your PATH
15593*** so that a non-GNU linker is found, and then restart.
15594
15595EOF
15596 fi
15597 ;;
15598
15599 amigaos*)
15600 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)'
15601 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15602 hardcode_minus_L_GCJ=yes
15603
15604 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15605 # that the semantics of dynamic libraries on AmigaOS, at least up
15606 # to version 4, is to share data among multiple programs linked
15607 # with the same dynamic library. Since this doesn't match the
15608 # behavior of shared libraries on other platforms, we can't use
15609 # them.
15610 ld_shlibs_GCJ=no
15611 ;;
15612
15613 beos*)
15614 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15615 allow_undefined_flag_GCJ=unsupported
15616 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15617 # support --undefined. This deserves some investigation. FIXME
15618 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15619 else
15620 ld_shlibs_GCJ=no
15621 fi
15622 ;;
15623
15624 cygwin* | mingw* | pw32*)
15625 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15626 # as there is no search path for DLLs.
15627 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15628 allow_undefined_flag_GCJ=unsupported
15629 always_export_symbols_GCJ=no
15630 enable_shared_with_static_runtimes_GCJ=yes
15631 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15632
15633 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15634 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15635 # If the export-symbols file already is a .def file (1st line
15636 # is EXPORTS), use it as is; otherwise, prepend...
15637 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15638 cp $export_symbols $output_objdir/$soname.def;
15639 else
15640 echo EXPORTS > $output_objdir/$soname.def;
15641 cat $export_symbols >> $output_objdir/$soname.def;
15642 fi~
15643 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15644 else
15645 ld_shlibs=no
15646 fi
15647 ;;
15648
15649 netbsd*)
15650 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15651 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15652 wlarc=
15653 else
15654 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15655 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15656 fi
15657 ;;
15658
15659 solaris* | sysv5*)
15660 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15661 ld_shlibs_GCJ=no
15662 cat <<EOF 1>&2
15663
15664*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15665*** create shared libraries on Solaris systems. Therefore, libtool
15666*** is disabling shared libraries support. We urge you to upgrade GNU
15667*** binutils to release 2.9.1 or newer. Another option is to modify
15668*** your PATH or compiler configuration so that the native linker is
15669*** used, and then restart.
15670
15671EOF
15672 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15673 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15674 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15675 else
15676 ld_shlibs_GCJ=no
15677 fi
15678 ;;
15679
15680 sunos4*)
15681 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15682 wlarc=
15683 hardcode_direct_GCJ=yes
15684 hardcode_shlibpath_var_GCJ=no
15685 ;;
15686
15687 *)
15688 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15689 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15690 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15691 else
15692 ld_shlibs_GCJ=no
15693 fi
15694 ;;
15695 esac
15696
15697 if test "$ld_shlibs_GCJ" = yes; then
15698 runpath_var=LD_RUN_PATH
15699 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15700 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15701 # ancient GNU ld didn't support --whole-archive et. al.
15702 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15703 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15704 else
15705 whole_archive_flag_spec_GCJ=
15706 fi
15707 fi
15708 else
15709 # PORTME fill in a description of your system's linker (not GNU ld)
15710 case $host_os in
15711 aix3*)
15712 allow_undefined_flag_GCJ=unsupported
15713 always_export_symbols_GCJ=yes
15714 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'
15715 # Note: this linker hardcodes the directories in LIBPATH if there
15716 # are no directories specified by -L.
15717 hardcode_minus_L_GCJ=yes
15718 if test "$GCC" = yes && test -z "$link_static_flag"; then
15719 # Neither direct hardcoding nor static linking is supported with a
15720 # broken collect2.
15721 hardcode_direct_GCJ=unsupported
15722 fi
15723 ;;
15724
15725 aix4* | aix5*)
15726 if test "$host_cpu" = ia64; then
15727 # On IA64, the linker does run time linking by default, so we don't
15728 # have to do anything special.
15729 aix_use_runtimelinking=no
15730 exp_sym_flag='-Bexport'
15731 no_entry_flag=""
15732 else
15733 # If we're using GNU nm, then we don't want the "-C" option.
15734 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15735 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15736 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'
15737 else
15738 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'
15739 fi
15740 aix_use_runtimelinking=no
15741
15742 # Test if we are trying to use run time linking or normal
15743 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15744 # need to do runtime linking.
15745 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15746 for ld_flag in $LDFLAGS; do
15747 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15748 aix_use_runtimelinking=yes
15749 break
15750 fi
15751 done
15752 esac
15753
15754 exp_sym_flag='-bexport'
15755 no_entry_flag='-bnoentry'
15756 fi
15757
15758 # When large executables or shared objects are built, AIX ld can
15759 # have problems creating the table of contents. If linking a library
15760 # or program results in "error TOC overflow" add -mminimal-toc to
15761 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15762 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15763
15764 archive_cmds_GCJ=''
15765 hardcode_direct_GCJ=yes
15766 hardcode_libdir_separator_GCJ=':'
15767 link_all_deplibs_GCJ=yes
15768
15769 if test "$GCC" = yes; then
15770 case $host_os in aix4.012|aix4.012.*)
15771 # We only want to do this on AIX 4.2 and lower, the check
15772 # below for broken collect2 doesn't work under 4.3+
15773 collect2name=`${CC} -print-prog-name=collect2`
15774 if test -f "$collect2name" && \
15775 strings "$collect2name" | grep resolve_lib_name >/dev/null
15776 then
15777 # We have reworked collect2
15778 hardcode_direct_GCJ=yes
15779 else
15780 # We have old collect2
15781 hardcode_direct_GCJ=unsupported
15782 # It fails to find uninstalled libraries when the uninstalled
15783 # path is not listed in the libpath. Setting hardcode_minus_L
15784 # to unsupported forces relinking
15785 hardcode_minus_L_GCJ=yes
15786 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15787 hardcode_libdir_separator_GCJ=
15788 fi
15789 esac
15790 shared_flag='-shared'
15791 else
15792 # not using gcc
15793 if test "$host_cpu" = ia64; then
15794 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15795 # chokes on -Wl,-G. The following line is correct:
15796 shared_flag='-G'
15797 else
15798 if test "$aix_use_runtimelinking" = yes; then
15799 shared_flag='${wl}-G'
15800 else
15801 shared_flag='${wl}-bM:SRE'
15802 fi
15803 fi
15804 fi
15805
15806 # It seems that -bexpall does not export symbols beginning with
15807 # underscore (_), so it is better to generate a list of symbols to export.
15808 always_export_symbols_GCJ=yes
15809 if test "$aix_use_runtimelinking" = yes; then
15810 # Warning - without using the other runtime loading flags (-brtl),
15811 # -berok will link without error, but may produce a broken library.
15812 allow_undefined_flag_GCJ='-berok'
15813 # Determine the default libpath from the value encoded in an empty executable.
15814 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015815/* confdefs.h. */
15816_ACEOF
15817cat confdefs.h >>conftest.$ac_ext
15818cat >>conftest.$ac_ext <<_ACEOF
15819/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000015820
John Criswell47fdd832003-07-14 16:52:07 +000015821int
15822main ()
15823{
15824
15825 ;
15826 return 0;
15827}
15828_ACEOF
15829rm -f conftest.$ac_objext conftest$ac_exeext
15830if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000015831 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000015832 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000015833 grep -v '^ *+' conftest.er1 >conftest.err
15834 rm -f conftest.er1
15835 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000015836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15837 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000015838 { ac_try='test -z "$ac_c_werror_flag"
15839 || test ! -s conftest.err'
15840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15841 (eval $ac_try) 2>&5
15842 ac_status=$?
15843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15844 (exit $ac_status); }; } &&
15845 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000015846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15847 (eval $ac_try) 2>&5
15848 ac_status=$?
15849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15850 (exit $ac_status); }; }; then
15851
15852aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15853}'`
15854# Check for a 64-bit object if we didn't find anything.
15855if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15856}'`; fi
15857else
15858 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015859sed 's/^/| /' conftest.$ac_ext >&5
15860
John Criswell47fdd832003-07-14 16:52:07 +000015861fi
Reid Spencer2b51a082004-08-04 00:34:49 +000015862rm -f conftest.err conftest.$ac_objext \
15863 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015864if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15865
15866 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15867 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"
15868 else
15869 if test "$host_cpu" = ia64; then
15870 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
15871 allow_undefined_flag_GCJ="-z nodefs"
15872 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"
15873 else
15874 # Determine the default libpath from the value encoded in an empty executable.
15875 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015876/* confdefs.h. */
15877_ACEOF
15878cat confdefs.h >>conftest.$ac_ext
15879cat >>conftest.$ac_ext <<_ACEOF
15880/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000015881
John Criswell47fdd832003-07-14 16:52:07 +000015882int
15883main ()
15884{
15885
15886 ;
15887 return 0;
15888}
15889_ACEOF
15890rm -f conftest.$ac_objext conftest$ac_exeext
15891if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000015892 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000015893 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000015894 grep -v '^ *+' conftest.er1 >conftest.err
15895 rm -f conftest.er1
15896 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000015897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15898 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000015899 { ac_try='test -z "$ac_c_werror_flag"
15900 || test ! -s conftest.err'
15901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15902 (eval $ac_try) 2>&5
15903 ac_status=$?
15904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15905 (exit $ac_status); }; } &&
15906 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000015907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15908 (eval $ac_try) 2>&5
15909 ac_status=$?
15910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15911 (exit $ac_status); }; }; then
15912
15913aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15914}'`
15915# Check for a 64-bit object if we didn't find anything.
15916if 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; }
15917}'`; fi
15918else
15919 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015920sed 's/^/| /' conftest.$ac_ext >&5
15921
John Criswell47fdd832003-07-14 16:52:07 +000015922fi
Reid Spencer2b51a082004-08-04 00:34:49 +000015923rm -f conftest.err conftest.$ac_objext \
15924 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015925if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15926
15927 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15928 # Warning - without using the other run time loading flags,
15929 # -berok will link without error, but may produce a broken library.
15930 no_undefined_flag_GCJ=' ${wl}-bernotok'
15931 allow_undefined_flag_GCJ=' ${wl}-berok'
15932 # -bexpall does not export symbols beginning with underscore (_)
15933 always_export_symbols_GCJ=yes
15934 # Exported symbols can be pulled into shared objects from archives
15935 whole_archive_flag_spec_GCJ=' '
15936 archive_cmds_need_lc_GCJ=yes
15937 # This is similar to how AIX traditionally builds it's shared libraries.
15938 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'
15939 fi
15940 fi
15941 ;;
15942
15943 amigaos*)
15944 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)'
15945 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15946 hardcode_minus_L_GCJ=yes
15947 # see comment about different semantics on the GNU ld section
15948 ld_shlibs_GCJ=no
15949 ;;
15950
15951 bsdi4*)
15952 export_dynamic_flag_spec_GCJ=-rdynamic
15953 ;;
15954
15955 cygwin* | mingw* | pw32*)
15956 # When not using gcc, we currently assume that we are using
15957 # Microsoft Visual C++.
15958 # hardcode_libdir_flag_spec is actually meaningless, as there is
15959 # no search path for DLLs.
15960 hardcode_libdir_flag_spec_GCJ=' '
15961 allow_undefined_flag_GCJ=unsupported
15962 # Tell ltmain to make .lib files, not .a files.
15963 libext=lib
15964 # Tell ltmain to make .dll files, not .so files.
15965 shrext=".dll"
15966 # FIXME: Setting linknames here is a bad hack.
15967 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15968 # The linker will automatically build a .lib file if we build a DLL.
15969 old_archive_From_new_cmds_GCJ='true'
15970 # FIXME: Should let the user specify the lib program.
15971 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
15972 fix_srcfile_path='`cygpath -w "$srcfile"`'
15973 enable_shared_with_static_runtimes_GCJ=yes
15974 ;;
15975
15976 darwin* | rhapsody*)
15977 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
15978 archive_cmds_need_lc_GCJ=no
15979 case "$host_os" in
15980 rhapsody* | darwin1.[012])
15981 allow_undefined_flag_GCJ='-undefined suppress'
15982 ;;
15983 *) # Darwin 1.3 on
15984 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15985 ;;
15986 esac
15987 # FIXME: Relying on posixy $() will cause problems for
15988 # cross-compilation, but unfortunately the echo tests do not
15989 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
15990 # `"' quotes if we put them in here... so don't!
15991 lt_int_apple_cc_single_mod=no
15992 output_verbose_link_cmd='echo'
15993 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15994 lt_int_apple_cc_single_mod=yes
15995 fi
15996 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15997 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15998 else
15999 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'
16000 fi
16001 module_cmds_GCJ='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
16002 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16003 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16004 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}'
16005 else
16006 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}'
16007 fi
16008 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}'
16009 hardcode_direct_GCJ=no
16010 hardcode_automatic_GCJ=yes
16011 hardcode_shlibpath_var_GCJ=unsupported
16012 whole_archive_flag_spec_GCJ='-all_load $convenience'
16013 link_all_deplibs_GCJ=yes
16014 fi
16015 ;;
16016
16017 dgux*)
16018 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16019 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16020 hardcode_shlibpath_var_GCJ=no
16021 ;;
16022
16023 freebsd1*)
16024 ld_shlibs_GCJ=no
16025 ;;
16026
16027 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16028 # support. Future versions do this automatically, but an explicit c++rt0.o
16029 # does not break anything, and helps significantly (at the cost of a little
16030 # extra space).
16031 freebsd2.2*)
16032 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16033 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16034 hardcode_direct_GCJ=yes
16035 hardcode_shlibpath_var_GCJ=no
16036 ;;
16037
16038 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16039 freebsd2*)
16040 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16041 hardcode_direct_GCJ=yes
16042 hardcode_minus_L_GCJ=yes
16043 hardcode_shlibpath_var_GCJ=no
16044 ;;
16045
16046 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16047 freebsd*)
16048 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16049 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16050 hardcode_direct_GCJ=yes
16051 hardcode_shlibpath_var_GCJ=no
16052 ;;
16053
16054 hpux9*)
16055 if test "$GCC" = yes; then
16056 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'
16057 else
16058 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'
16059 fi
16060 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16061 hardcode_libdir_separator_GCJ=:
16062 hardcode_direct_GCJ=yes
16063
16064 # hardcode_minus_L: Not really in the search PATH,
16065 # but as the default location of the library.
16066 hardcode_minus_L_GCJ=yes
16067 export_dynamic_flag_spec_GCJ='${wl}-E'
16068 ;;
16069
16070 hpux10* | hpux11*)
16071 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16072 case "$host_cpu" in
16073 hppa*64*|ia64*)
16074 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16075 ;;
16076 *)
16077 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16078 ;;
16079 esac
16080 else
16081 case "$host_cpu" in
16082 hppa*64*|ia64*)
16083 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16084 ;;
16085 *)
16086 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16087 ;;
16088 esac
16089 fi
16090 if test "$with_gnu_ld" = no; then
16091 case "$host_cpu" in
16092 hppa*64*)
16093 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16094 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16095 hardcode_libdir_separator_GCJ=:
16096 hardcode_direct_GCJ=no
16097 hardcode_shlibpath_var_GCJ=no
16098 ;;
16099 ia64*)
16100 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16101 hardcode_direct_GCJ=no
16102 hardcode_shlibpath_var_GCJ=no
16103
16104 # hardcode_minus_L: Not really in the search PATH,
16105 # but as the default location of the library.
16106 hardcode_minus_L_GCJ=yes
16107 ;;
16108 *)
16109 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16110 hardcode_libdir_separator_GCJ=:
16111 hardcode_direct_GCJ=yes
16112 export_dynamic_flag_spec_GCJ='${wl}-E'
16113
16114 # hardcode_minus_L: Not really in the search PATH,
16115 # but as the default location of the library.
16116 hardcode_minus_L_GCJ=yes
16117 ;;
16118 esac
16119 fi
16120 ;;
16121
16122 irix5* | irix6* | nonstopux*)
16123 if test "$GCC" = yes; then
16124 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'
16125 else
16126 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'
16127 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16128 fi
16129 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16130 hardcode_libdir_separator_GCJ=:
16131 link_all_deplibs_GCJ=yes
16132 ;;
16133
16134 netbsd*)
16135 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16136 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16137 else
16138 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16139 fi
16140 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16141 hardcode_direct_GCJ=yes
16142 hardcode_shlibpath_var_GCJ=no
16143 ;;
16144
16145 newsos6)
16146 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16147 hardcode_direct_GCJ=yes
16148 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16149 hardcode_libdir_separator_GCJ=:
16150 hardcode_shlibpath_var_GCJ=no
16151 ;;
16152
16153 openbsd*)
16154 hardcode_direct_GCJ=yes
16155 hardcode_shlibpath_var_GCJ=no
16156 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16157 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16158 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16159 export_dynamic_flag_spec_GCJ='${wl}-E'
16160 else
16161 case $host_os in
16162 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16163 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16164 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16165 ;;
16166 *)
16167 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16168 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16169 ;;
16170 esac
16171 fi
16172 ;;
16173
16174 os2*)
16175 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16176 hardcode_minus_L_GCJ=yes
16177 allow_undefined_flag_GCJ=unsupported
16178 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'
16179 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16180 ;;
16181
16182 osf3*)
16183 if test "$GCC" = yes; then
16184 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16185 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'
16186 else
16187 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16188 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'
16189 fi
16190 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16191 hardcode_libdir_separator_GCJ=:
16192 ;;
16193
16194 osf4* | osf5*) # as osf3* with the addition of -msym flag
16195 if test "$GCC" = yes; then
16196 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16197 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'
16198 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16199 else
16200 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16201 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'
16202 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~
16203 $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'
16204
16205 # Both c and cxx compiler support -rpath directly
16206 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16207 fi
16208 hardcode_libdir_separator_GCJ=:
16209 ;;
16210
16211 sco3.2v5*)
16212 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16213 hardcode_shlibpath_var_GCJ=no
16214 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16215 runpath_var=LD_RUN_PATH
16216 hardcode_runpath_var=yes
16217 ;;
16218
16219 solaris*)
16220 no_undefined_flag_GCJ=' -z text'
16221 if test "$GCC" = yes; then
16222 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16223 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16224 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16225 else
16226 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16227 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16228 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16229 fi
16230 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16231 hardcode_shlibpath_var_GCJ=no
16232 case $host_os in
16233 solaris2.[0-5] | solaris2.[0-5].*) ;;
16234 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16235 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16236 esac
16237 link_all_deplibs_GCJ=yes
16238 ;;
16239
16240 sunos4*)
16241 if test "x$host_vendor" = xsequent; then
16242 # Use $CC to link under sequent, because it throws in some extra .o
16243 # files that make .init and .fini sections work.
16244 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16245 else
16246 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16247 fi
16248 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16249 hardcode_direct_GCJ=yes
16250 hardcode_minus_L_GCJ=yes
16251 hardcode_shlibpath_var_GCJ=no
16252 ;;
16253
16254 sysv4)
16255 case $host_vendor in
16256 sni)
16257 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16258 hardcode_direct_GCJ=yes # is this really true???
16259 ;;
16260 siemens)
16261 ## LD is ld it makes a PLAMLIB
16262 ## CC just makes a GrossModule.
16263 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16264 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16265 hardcode_direct_GCJ=no
16266 ;;
16267 motorola)
16268 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16269 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16270 ;;
16271 esac
16272 runpath_var='LD_RUN_PATH'
16273 hardcode_shlibpath_var_GCJ=no
16274 ;;
16275
16276 sysv4.3*)
16277 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16278 hardcode_shlibpath_var_GCJ=no
16279 export_dynamic_flag_spec_GCJ='-Bexport'
16280 ;;
16281
16282 sysv4*MP*)
16283 if test -d /usr/nec; then
16284 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16285 hardcode_shlibpath_var_GCJ=no
16286 runpath_var=LD_RUN_PATH
16287 hardcode_runpath_var=yes
16288 ld_shlibs_GCJ=yes
16289 fi
16290 ;;
16291
16292 sysv4.2uw2*)
16293 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16294 hardcode_direct_GCJ=yes
16295 hardcode_minus_L_GCJ=no
16296 hardcode_shlibpath_var_GCJ=no
16297 hardcode_runpath_var=yes
16298 runpath_var=LD_RUN_PATH
16299 ;;
16300
16301 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16302 no_undefined_flag_GCJ='${wl}-z ${wl}text'
16303 if test "$GCC" = yes; then
16304 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16305 else
16306 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16307 fi
16308 runpath_var='LD_RUN_PATH'
16309 hardcode_shlibpath_var_GCJ=no
16310 ;;
16311
16312 sysv5*)
16313 no_undefined_flag_GCJ=' -z text'
16314 # $CC -shared without GNU ld will not create a library from C++
16315 # object files and a static libstdc++, better avoid it by now
16316 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16317 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16318 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16319 hardcode_libdir_flag_spec_GCJ=
16320 hardcode_shlibpath_var_GCJ=no
16321 runpath_var='LD_RUN_PATH'
16322 ;;
16323
16324 uts4*)
16325 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16326 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16327 hardcode_shlibpath_var_GCJ=no
16328 ;;
16329
16330 *)
16331 ld_shlibs_GCJ=no
16332 ;;
16333 esac
16334 fi
16335
16336echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16337echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16338test "$ld_shlibs_GCJ" = no && can_build_shared=no
16339
16340variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16341if test "$GCC" = yes; then
16342 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16343fi
16344
16345#
16346# Do we need to explicitly link libc?
16347#
16348case "x$archive_cmds_need_lc_GCJ" in
16349x|xyes)
16350 # Assume -lc should be added
16351 archive_cmds_need_lc_GCJ=yes
16352
16353 if test "$enable_shared" = yes && test "$GCC" = yes; then
16354 case $archive_cmds_GCJ in
16355 *'~'*)
16356 # FIXME: we may have to deal with multi-command sequences.
16357 ;;
16358 '$CC '*)
16359 # Test whether the compiler implicitly links with -lc since on some
16360 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16361 # to ld, don't add -lc before -lgcc.
16362 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16363echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16364 $rm conftest*
16365 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16366
16367 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16368 (eval $ac_compile) 2>&5
16369 ac_status=$?
16370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16371 (exit $ac_status); } 2>conftest.err; then
16372 soname=conftest
16373 lib=conftest
16374 libobjs=conftest.$ac_objext
16375 deplibs=
16376 wl=$lt_prog_compiler_wl_GCJ
16377 compiler_flags=-v
16378 linker_flags=-v
16379 verstring=
16380 output_objdir=.
16381 libname=conftest
16382 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16383 allow_undefined_flag_GCJ=
16384 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16385 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16386 ac_status=$?
16387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16388 (exit $ac_status); }
16389 then
16390 archive_cmds_need_lc_GCJ=no
16391 else
16392 archive_cmds_need_lc_GCJ=yes
16393 fi
16394 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16395 else
16396 cat conftest.err 1>&5
16397 fi
16398 $rm conftest*
16399 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16400echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16401 ;;
16402 esac
16403 fi
16404 ;;
16405esac
16406
16407echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16408echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16409hardcode_action_GCJ=
16410if test -n "$hardcode_libdir_flag_spec_GCJ" || \
16411 test -n "$runpath_var GCJ" || \
16412 test "X$hardcode_automatic_GCJ"="Xyes" ; then
16413
16414 # We can hardcode non-existant directories.
16415 if test "$hardcode_direct_GCJ" != no &&
16416 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16417 # have to relink, otherwise we might link with an installed library
16418 # when we should be linking with a yet-to-be-installed one
16419 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
16420 test "$hardcode_minus_L_GCJ" != no; then
16421 # Linking always hardcodes the temporary library directory.
16422 hardcode_action_GCJ=relink
16423 else
16424 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16425 hardcode_action_GCJ=immediate
16426 fi
16427else
16428 # We cannot hardcode anything, or else we can only hardcode existing
16429 # directories.
16430 hardcode_action_GCJ=unsupported
16431fi
16432echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
16433echo "${ECHO_T}$hardcode_action_GCJ" >&6
16434
16435if test "$hardcode_action_GCJ" = relink; then
16436 # Fast installation is not supported
16437 enable_fast_install=no
16438elif test "$shlibpath_overrides_runpath" = yes ||
16439 test "$enable_shared" = no; then
16440 # Fast installation is not necessary
16441 enable_fast_install=needless
16442fi
16443
16444striplib=
16445old_striplib=
16446echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16447echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
16448if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16449 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16450 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16451 echo "$as_me:$LINENO: result: yes" >&5
16452echo "${ECHO_T}yes" >&6
16453else
16454# FIXME - insert some real tests, host_os isn't really good enough
16455 case $host_os in
16456 darwin*)
16457 if test -n "$STRIP" ; then
16458 striplib="$STRIP -x"
16459 echo "$as_me:$LINENO: result: yes" >&5
16460echo "${ECHO_T}yes" >&6
16461 else
16462 echo "$as_me:$LINENO: result: no" >&5
16463echo "${ECHO_T}no" >&6
16464fi
16465 ;;
16466 *)
16467 echo "$as_me:$LINENO: result: no" >&5
16468echo "${ECHO_T}no" >&6
16469 ;;
16470 esac
16471fi
16472
16473echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16474echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16475library_names_spec=
16476libname_spec='lib$name'
16477soname_spec=
16478shrext=".so"
16479postinstall_cmds=
16480postuninstall_cmds=
16481finish_cmds=
16482finish_eval=
16483shlibpath_var=
16484shlibpath_overrides_runpath=unknown
16485version_type=none
16486dynamic_linker="$host_os ld.so"
16487sys_lib_dlsearch_path_spec="/lib /usr/lib"
16488if test "$GCC" = yes; then
16489 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16490 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16491 # if the path contains ";" then we assume it to be the separator
16492 # otherwise default to the standard path separator (i.e. ":") - it is
16493 # assumed that no part of a normal pathname contains ";" but that should
16494 # okay in the real world where ";" in dirpaths is itself problematic.
16495 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16496 else
16497 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16498 fi
16499else
16500 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16501fi
16502need_lib_prefix=unknown
16503hardcode_into_libs=no
16504
16505# when you set need_version to no, make sure it does not cause -set_version
16506# flags to be left without arguments
16507need_version=unknown
16508
16509case $host_os in
16510aix3*)
16511 version_type=linux
16512 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16513 shlibpath_var=LIBPATH
16514
16515 # AIX 3 has no versioning support, so we append a major version to the name.
16516 soname_spec='${libname}${release}${shared_ext}$major'
16517 ;;
16518
16519aix4* | aix5*)
16520 version_type=linux
16521 need_lib_prefix=no
16522 need_version=no
16523 hardcode_into_libs=yes
16524 if test "$host_cpu" = ia64; then
16525 # AIX 5 supports IA64
16526 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16527 shlibpath_var=LD_LIBRARY_PATH
16528 else
16529 # With GCC up to 2.95.x, collect2 would create an import file
16530 # for dependence libraries. The import file would start with
16531 # the line `#! .'. This would cause the generated library to
16532 # depend on `.', always an invalid library. This was fixed in
16533 # development snapshots of GCC prior to 3.0.
16534 case $host_os in
16535 aix4 | aix4.[01] | aix4.[01].*)
16536 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16537 echo ' yes '
16538 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16539 :
16540 else
16541 can_build_shared=no
16542 fi
16543 ;;
16544 esac
16545 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16546 # soname into executable. Probably we can add versioning support to
16547 # collect2, so additional links can be useful in future.
16548 if test "$aix_use_runtimelinking" = yes; then
16549 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16550 # instead of lib<name>.a to let people know that these are not
16551 # typical AIX shared libraries.
16552 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16553 else
16554 # We preserve .a as extension for shared libraries through AIX4.2
16555 # and later when we are not doing run time linking.
16556 library_names_spec='${libname}${release}.a $libname.a'
16557 soname_spec='${libname}${release}${shared_ext}$major'
16558 fi
16559 shlibpath_var=LIBPATH
16560 fi
16561 ;;
16562
16563amigaos*)
16564 library_names_spec='$libname.ixlibrary $libname.a'
16565 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16566 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'
16567 ;;
16568
16569beos*)
16570 library_names_spec='${libname}${shared_ext}'
16571 dynamic_linker="$host_os ld.so"
16572 shlibpath_var=LIBRARY_PATH
16573 ;;
16574
16575bsdi4*)
16576 version_type=linux
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 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16581 shlibpath_var=LD_LIBRARY_PATH
16582 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16583 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16584 # the default ld.so.conf also contains /usr/contrib/lib and
16585 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16586 # libtool to hard-code these into programs
16587 ;;
16588
16589cygwin* | mingw* | pw32*)
16590 version_type=windows
16591 shrext=".dll"
16592 need_version=no
16593 need_lib_prefix=no
16594
16595 case $GCC,$host_os in
16596 yes,cygwin* | yes,mingw* | yes,pw32*)
16597 library_names_spec='$libname.dll.a'
16598 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16599 postinstall_cmds='base_file=`basename \${file}`~
16600 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16601 dldir=$destdir/`dirname \$dlpath`~
16602 test -d \$dldir || mkdir -p \$dldir~
16603 $install_prog $dir/$dlname \$dldir/$dlname'
16604 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16605 dlpath=$dir/\$dldll~
16606 $rm \$dlpath'
16607 shlibpath_overrides_runpath=yes
16608
16609 case $host_os in
16610 cygwin*)
16611 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16612 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16613 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
16614 ;;
16615 mingw*)
16616 # MinGW DLLs use traditional 'lib' prefix
16617 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16618 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16619 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16620 # It is most probably a Windows format PATH printed by
16621 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16622 # path with ; separators, and with drive letters. We can handle the
16623 # drive letters (cygwin fileutils understands them), so leave them,
16624 # especially as we might pass files found there to a mingw objdump,
16625 # which wouldn't understand a cygwinified path. Ahh.
16626 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16627 else
16628 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16629 fi
16630 ;;
16631 pw32*)
16632 # pw32 DLLs use 'pw' prefix rather than 'lib'
16633 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16634 ;;
16635 esac
16636 ;;
16637
16638 *)
16639 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16640 ;;
16641 esac
16642 dynamic_linker='Win32 ld.exe'
16643 # FIXME: first we should search . and the directory the executable is in
16644 shlibpath_var=PATH
16645 ;;
16646
16647darwin* | rhapsody*)
16648 dynamic_linker="$host_os dyld"
16649 version_type=darwin
16650 need_lib_prefix=no
16651 need_version=no
16652 # FIXME: Relying on posixy $() will cause problems for
16653 # cross-compilation, but unfortunately the echo tests do not
16654 # yet detect zsh echo's removal of \ escapes.
16655 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16656 soname_spec='${libname}${release}${major}$shared_ext'
16657 shlibpath_overrides_runpath=yes
16658 shlibpath_var=DYLD_LIBRARY_PATH
16659 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
16660 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16661 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
16662 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"`
16663 fi
16664 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16665 ;;
16666
16667dgux*)
16668 version_type=linux
16669 need_lib_prefix=no
16670 need_version=no
16671 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16672 soname_spec='${libname}${release}${shared_ext}$major'
16673 shlibpath_var=LD_LIBRARY_PATH
16674 ;;
16675
16676freebsd1*)
16677 dynamic_linker=no
16678 ;;
16679
16680freebsd*)
16681 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16682 version_type=freebsd-$objformat
16683 case $version_type in
16684 freebsd-elf*)
16685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16686 need_version=no
16687 need_lib_prefix=no
16688 ;;
16689 freebsd-*)
16690 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16691 need_version=yes
16692 ;;
16693 esac
16694 shlibpath_var=LD_LIBRARY_PATH
16695 case $host_os in
16696 freebsd2*)
16697 shlibpath_overrides_runpath=yes
16698 ;;
16699 freebsd3.01* | freebsdelf3.01*)
16700 shlibpath_overrides_runpath=yes
16701 hardcode_into_libs=yes
16702 ;;
16703 *) # from 3.2 on
16704 shlibpath_overrides_runpath=no
16705 hardcode_into_libs=yes
16706 ;;
16707 esac
16708 ;;
16709
16710gnu*)
16711 version_type=linux
16712 need_lib_prefix=no
16713 need_version=no
16714 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16715 soname_spec='${libname}${release}${shared_ext}$major'
16716 shlibpath_var=LD_LIBRARY_PATH
16717 hardcode_into_libs=yes
16718 ;;
16719
16720hpux9* | hpux10* | hpux11*)
16721 # Give a soname corresponding to the major version so that dld.sl refuses to
16722 # link against other versions.
16723 version_type=sunos
16724 need_lib_prefix=no
16725 need_version=no
16726 case "$host_cpu" in
16727 ia64*)
16728 shrext='.so'
16729 hardcode_into_libs=yes
16730 dynamic_linker="$host_os dld.so"
16731 shlibpath_var=LD_LIBRARY_PATH
16732 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16733 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16734 soname_spec='${libname}${release}${shared_ext}$major'
16735 if test "X$HPUX_IA64_MODE" = X32; then
16736 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16737 else
16738 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16739 fi
16740 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16741 ;;
16742 hppa*64*)
16743 shrext='.sl'
16744 hardcode_into_libs=yes
16745 dynamic_linker="$host_os dld.sl"
16746 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16747 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16749 soname_spec='${libname}${release}${shared_ext}$major'
16750 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16751 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16752 ;;
16753 *)
16754 shrext='.sl'
16755 dynamic_linker="$host_os dld.sl"
16756 shlibpath_var=SHLIB_PATH
16757 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16758 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16759 soname_spec='${libname}${release}${shared_ext}$major'
16760 ;;
16761 esac
16762 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16763 postinstall_cmds='chmod 555 $lib'
16764 ;;
16765
16766irix5* | irix6* | nonstopux*)
16767 case $host_os in
16768 nonstopux*) version_type=nonstopux ;;
16769 *)
16770 if test "$lt_cv_prog_gnu_ld" = yes; then
16771 version_type=linux
16772 else
16773 version_type=irix
16774 fi ;;
16775 esac
16776 need_lib_prefix=no
16777 need_version=no
16778 soname_spec='${libname}${release}${shared_ext}$major'
16779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16780 case $host_os in
16781 irix5* | nonstopux*)
16782 libsuff= shlibsuff=
16783 ;;
16784 *)
16785 case $LD in # libtool.m4 will add one of these switches to LD
16786 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16787 libsuff= shlibsuff= libmagic=32-bit;;
16788 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16789 libsuff=32 shlibsuff=N32 libmagic=N32;;
16790 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16791 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16792 *) libsuff= shlibsuff= libmagic=never-match;;
16793 esac
16794 ;;
16795 esac
16796 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16797 shlibpath_overrides_runpath=no
16798 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16799 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16800 hardcode_into_libs=yes
16801 ;;
16802
16803# No shared lib support for Linux oldld, aout, or coff.
16804linux*oldld* | linux*aout* | linux*coff*)
16805 dynamic_linker=no
16806 ;;
16807
16808# This must be Linux ELF.
16809linux*)
16810 version_type=linux
16811 need_lib_prefix=no
16812 need_version=no
16813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16814 soname_spec='${libname}${release}${shared_ext}$major'
16815 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16816 shlibpath_var=LD_LIBRARY_PATH
16817 shlibpath_overrides_runpath=no
16818 # This implies no fast_install, which is unacceptable.
16819 # Some rework will be needed to allow for fast_install
16820 # before this can be enabled.
16821 hardcode_into_libs=yes
16822
16823 # We used to test for /lib/ld.so.1 and disable shared libraries on
16824 # powerpc, because MkLinux only supported shared libraries with the
16825 # GNU dynamic linker. Since this was broken with cross compilers,
16826 # most powerpc-linux boxes support dynamic linking these days and
16827 # people can always --disable-shared, the test was removed, and we
16828 # assume the GNU/Linux dynamic linker is in use.
16829 dynamic_linker='GNU/Linux ld.so'
16830 ;;
16831
16832netbsd*)
16833 version_type=sunos
16834 need_lib_prefix=no
16835 need_version=no
16836 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16838 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16839 dynamic_linker='NetBSD (a.out) ld.so'
16840 else
16841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
16842 soname_spec='${libname}${release}${shared_ext}$major'
16843 dynamic_linker='NetBSD ld.elf_so'
16844 fi
16845 shlibpath_var=LD_LIBRARY_PATH
16846 shlibpath_overrides_runpath=yes
16847 hardcode_into_libs=yes
16848 ;;
16849
16850newsos6)
16851 version_type=linux
16852 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16853 shlibpath_var=LD_LIBRARY_PATH
16854 shlibpath_overrides_runpath=yes
16855 ;;
16856
16857nto-qnx)
16858 version_type=linux
16859 need_lib_prefix=no
16860 need_version=no
16861 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16862 soname_spec='${libname}${release}${shared_ext}$major'
16863 shlibpath_var=LD_LIBRARY_PATH
16864 shlibpath_overrides_runpath=yes
16865 ;;
16866
16867openbsd*)
16868 version_type=sunos
16869 need_lib_prefix=no
16870 need_version=no
16871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16872 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16873 shlibpath_var=LD_LIBRARY_PATH
16874 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16875 case $host_os in
16876 openbsd2.[89] | openbsd2.[89].*)
16877 shlibpath_overrides_runpath=no
16878 ;;
16879 *)
16880 shlibpath_overrides_runpath=yes
16881 ;;
16882 esac
16883 else
16884 shlibpath_overrides_runpath=yes
16885 fi
16886 ;;
16887
16888os2*)
16889 libname_spec='$name'
16890 shrext=".dll"
16891 need_lib_prefix=no
16892 library_names_spec='$libname${shared_ext} $libname.a'
16893 dynamic_linker='OS/2 ld.exe'
16894 shlibpath_var=LIBPATH
16895 ;;
16896
16897osf3* | osf4* | osf5*)
16898 version_type=osf
16899 need_lib_prefix=no
16900 need_version=no
16901 soname_spec='${libname}${release}${shared_ext}$major'
16902 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16903 shlibpath_var=LD_LIBRARY_PATH
16904 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16905 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16906 ;;
16907
16908sco3.2v5*)
16909 version_type=osf
16910 soname_spec='${libname}${release}${shared_ext}$major'
16911 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16912 shlibpath_var=LD_LIBRARY_PATH
16913 ;;
16914
16915solaris*)
16916 version_type=linux
16917 need_lib_prefix=no
16918 need_version=no
16919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16920 soname_spec='${libname}${release}${shared_ext}$major'
16921 shlibpath_var=LD_LIBRARY_PATH
16922 shlibpath_overrides_runpath=yes
16923 hardcode_into_libs=yes
16924 # ldd complains unless libraries are executable
16925 postinstall_cmds='chmod +x $lib'
16926 ;;
16927
16928sunos4*)
16929 version_type=sunos
16930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16931 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16932 shlibpath_var=LD_LIBRARY_PATH
16933 shlibpath_overrides_runpath=yes
16934 if test "$with_gnu_ld" = yes; then
16935 need_lib_prefix=no
16936 fi
16937 need_version=yes
16938 ;;
16939
16940sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16941 version_type=linux
16942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16943 soname_spec='${libname}${release}${shared_ext}$major'
16944 shlibpath_var=LD_LIBRARY_PATH
16945 case $host_vendor in
16946 sni)
16947 shlibpath_overrides_runpath=no
16948 need_lib_prefix=no
16949 export_dynamic_flag_spec='${wl}-Blargedynsym'
16950 runpath_var=LD_RUN_PATH
16951 ;;
16952 siemens)
16953 need_lib_prefix=no
16954 ;;
16955 motorola)
16956 need_lib_prefix=no
16957 need_version=no
16958 shlibpath_overrides_runpath=no
16959 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16960 ;;
16961 esac
16962 ;;
16963
16964sysv4*MP*)
16965 if test -d /usr/nec ;then
16966 version_type=linux
16967 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16968 soname_spec='$libname${shared_ext}.$major'
16969 shlibpath_var=LD_LIBRARY_PATH
16970 fi
16971 ;;
16972
16973uts4*)
16974 version_type=linux
16975 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16976 soname_spec='${libname}${release}${shared_ext}$major'
16977 shlibpath_var=LD_LIBRARY_PATH
16978 ;;
16979
16980*)
16981 dynamic_linker=no
16982 ;;
16983esac
16984echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16985echo "${ECHO_T}$dynamic_linker" >&6
16986test "$dynamic_linker" = no && can_build_shared=no
16987
16988if test "x$enable_dlopen" != xyes; then
16989 enable_dlopen=unknown
16990 enable_dlopen_self=unknown
16991 enable_dlopen_self_static=unknown
16992else
16993 lt_cv_dlopen=no
16994 lt_cv_dlopen_libs=
16995
16996 case $host_os in
16997 beos*)
16998 lt_cv_dlopen="load_add_on"
16999 lt_cv_dlopen_libs=
17000 lt_cv_dlopen_self=yes
17001 ;;
17002
17003 mingw* | pw32*)
17004 lt_cv_dlopen="LoadLibrary"
17005 lt_cv_dlopen_libs=
17006 ;;
17007
17008 cygwin*)
17009 lt_cv_dlopen="dlopen"
17010 lt_cv_dlopen_libs=
17011 ;;
17012
17013 darwin*)
17014 # if libdl is installed we need to link against it
17015 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17016echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17017if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17018 echo $ECHO_N "(cached) $ECHO_C" >&6
17019else
17020 ac_check_lib_save_LIBS=$LIBS
17021LIBS="-ldl $LIBS"
17022cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017023/* confdefs.h. */
17024_ACEOF
17025cat confdefs.h >>conftest.$ac_ext
17026cat >>conftest.$ac_ext <<_ACEOF
17027/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017028
17029/* Override any gcc2 internal prototype to avoid an error. */
17030#ifdef __cplusplus
17031extern "C"
17032#endif
17033/* We use char because int might match the return type of a gcc2
17034 builtin and then its argument prototype would still apply. */
17035char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017036int
17037main ()
17038{
17039dlopen ();
17040 ;
17041 return 0;
17042}
17043_ACEOF
17044rm -f conftest.$ac_objext conftest$ac_exeext
17045if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000017046 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017047 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000017048 grep -v '^ *+' conftest.er1 >conftest.err
17049 rm -f conftest.er1
17050 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17052 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000017053 { ac_try='test -z "$ac_c_werror_flag"
17054 || test ! -s conftest.err'
17055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17056 (eval $ac_try) 2>&5
17057 ac_status=$?
17058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17059 (exit $ac_status); }; } &&
17060 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17062 (eval $ac_try) 2>&5
17063 ac_status=$?
17064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17065 (exit $ac_status); }; }; then
17066 ac_cv_lib_dl_dlopen=yes
17067else
17068 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017069sed 's/^/| /' conftest.$ac_ext >&5
17070
John Criswell47fdd832003-07-14 16:52:07 +000017071ac_cv_lib_dl_dlopen=no
17072fi
Reid Spencer2b51a082004-08-04 00:34:49 +000017073rm -f conftest.err conftest.$ac_objext \
17074 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017075LIBS=$ac_check_lib_save_LIBS
17076fi
17077echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17078echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17079if test $ac_cv_lib_dl_dlopen = yes; then
17080 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17081else
17082
17083 lt_cv_dlopen="dyld"
17084 lt_cv_dlopen_libs=
17085 lt_cv_dlopen_self=yes
17086
17087fi
17088
17089 ;;
17090
17091 *)
17092 echo "$as_me:$LINENO: checking for shl_load" >&5
17093echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17094if test "${ac_cv_func_shl_load+set}" = set; then
17095 echo $ECHO_N "(cached) $ECHO_C" >&6
17096else
17097 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017098/* confdefs.h. */
17099_ACEOF
17100cat confdefs.h >>conftest.$ac_ext
17101cat >>conftest.$ac_ext <<_ACEOF
17102/* end confdefs.h. */
Reid Spencer2b51a082004-08-04 00:34:49 +000017103/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17104 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17105#define shl_load innocuous_shl_load
17106
John Criswell47fdd832003-07-14 16:52:07 +000017107/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000017108 which can conflict with char shl_load (); below.
17109 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17110 <limits.h> exists even on freestanding compilers. */
Reid Spencer2b51a082004-08-04 00:34:49 +000017111
John Criswell0c38eaf2003-09-10 15:17:25 +000017112#ifdef __STDC__
17113# include <limits.h>
17114#else
17115# include <assert.h>
17116#endif
Reid Spencer2b51a082004-08-04 00:34:49 +000017117
17118#undef shl_load
17119
John Criswell47fdd832003-07-14 16:52:07 +000017120/* Override any gcc2 internal prototype to avoid an error. */
17121#ifdef __cplusplus
17122extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000017123{
John Criswell47fdd832003-07-14 16:52:07 +000017124#endif
17125/* We use char because int might match the return type of a gcc2
17126 builtin and then its argument prototype would still apply. */
17127char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000017128/* The GNU C library defines this for functions which it implements
17129 to always fail with ENOSYS. Some functions are actually named
17130 something starting with __ and the normal name is an alias. */
17131#if defined (__stub_shl_load) || defined (__stub___shl_load)
17132choke me
17133#else
John Criswell0c38eaf2003-09-10 15:17:25 +000017134char (*f) () = shl_load;
17135#endif
17136#ifdef __cplusplus
17137}
John Criswell47fdd832003-07-14 16:52:07 +000017138#endif
17139
John Criswell0c38eaf2003-09-10 15:17:25 +000017140int
17141main ()
17142{
17143return f != shl_load;
John Criswell47fdd832003-07-14 16:52:07 +000017144 ;
17145 return 0;
17146}
17147_ACEOF
17148rm -f conftest.$ac_objext conftest$ac_exeext
17149if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000017150 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017151 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000017152 grep -v '^ *+' conftest.er1 >conftest.err
17153 rm -f conftest.er1
17154 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17156 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000017157 { ac_try='test -z "$ac_c_werror_flag"
17158 || test ! -s conftest.err'
17159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17160 (eval $ac_try) 2>&5
17161 ac_status=$?
17162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17163 (exit $ac_status); }; } &&
17164 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17166 (eval $ac_try) 2>&5
17167 ac_status=$?
17168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17169 (exit $ac_status); }; }; then
17170 ac_cv_func_shl_load=yes
17171else
17172 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017173sed 's/^/| /' conftest.$ac_ext >&5
17174
John Criswell47fdd832003-07-14 16:52:07 +000017175ac_cv_func_shl_load=no
17176fi
Reid Spencer2b51a082004-08-04 00:34:49 +000017177rm -f conftest.err conftest.$ac_objext \
17178 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017179fi
17180echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17181echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17182if test $ac_cv_func_shl_load = yes; then
17183 lt_cv_dlopen="shl_load"
17184else
17185 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17186echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17187if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17188 echo $ECHO_N "(cached) $ECHO_C" >&6
17189else
17190 ac_check_lib_save_LIBS=$LIBS
17191LIBS="-ldld $LIBS"
17192cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017193/* confdefs.h. */
17194_ACEOF
17195cat confdefs.h >>conftest.$ac_ext
17196cat >>conftest.$ac_ext <<_ACEOF
17197/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017198
17199/* Override any gcc2 internal prototype to avoid an error. */
17200#ifdef __cplusplus
17201extern "C"
17202#endif
17203/* We use char because int might match the return type of a gcc2
17204 builtin and then its argument prototype would still apply. */
17205char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000017206int
17207main ()
17208{
17209shl_load ();
17210 ;
17211 return 0;
17212}
17213_ACEOF
17214rm -f conftest.$ac_objext conftest$ac_exeext
17215if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000017216 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017217 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000017218 grep -v '^ *+' conftest.er1 >conftest.err
17219 rm -f conftest.er1
17220 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17222 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000017223 { ac_try='test -z "$ac_c_werror_flag"
17224 || test ! -s conftest.err'
17225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17226 (eval $ac_try) 2>&5
17227 ac_status=$?
17228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17229 (exit $ac_status); }; } &&
17230 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17232 (eval $ac_try) 2>&5
17233 ac_status=$?
17234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17235 (exit $ac_status); }; }; then
17236 ac_cv_lib_dld_shl_load=yes
17237else
17238 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017239sed 's/^/| /' conftest.$ac_ext >&5
17240
John Criswell47fdd832003-07-14 16:52:07 +000017241ac_cv_lib_dld_shl_load=no
17242fi
Reid Spencer2b51a082004-08-04 00:34:49 +000017243rm -f conftest.err conftest.$ac_objext \
17244 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017245LIBS=$ac_check_lib_save_LIBS
17246fi
17247echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17248echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17249if test $ac_cv_lib_dld_shl_load = yes; then
17250 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17251else
17252 echo "$as_me:$LINENO: checking for dlopen" >&5
17253echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17254if test "${ac_cv_func_dlopen+set}" = set; then
17255 echo $ECHO_N "(cached) $ECHO_C" >&6
17256else
17257 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017258/* confdefs.h. */
17259_ACEOF
17260cat confdefs.h >>conftest.$ac_ext
17261cat >>conftest.$ac_ext <<_ACEOF
17262/* end confdefs.h. */
Reid Spencer2b51a082004-08-04 00:34:49 +000017263/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17264 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17265#define dlopen innocuous_dlopen
17266
John Criswell47fdd832003-07-14 16:52:07 +000017267/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000017268 which can conflict with char dlopen (); below.
17269 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17270 <limits.h> exists even on freestanding compilers. */
Reid Spencer2b51a082004-08-04 00:34:49 +000017271
John Criswell0c38eaf2003-09-10 15:17:25 +000017272#ifdef __STDC__
17273# include <limits.h>
17274#else
17275# include <assert.h>
17276#endif
Reid Spencer2b51a082004-08-04 00:34:49 +000017277
17278#undef dlopen
17279
John Criswell47fdd832003-07-14 16:52:07 +000017280/* Override any gcc2 internal prototype to avoid an error. */
17281#ifdef __cplusplus
17282extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000017283{
John Criswell47fdd832003-07-14 16:52:07 +000017284#endif
17285/* We use char because int might match the return type of a gcc2
17286 builtin and then its argument prototype would still apply. */
17287char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017288/* The GNU C library defines this for functions which it implements
17289 to always fail with ENOSYS. Some functions are actually named
17290 something starting with __ and the normal name is an alias. */
17291#if defined (__stub_dlopen) || defined (__stub___dlopen)
17292choke me
17293#else
John Criswell0c38eaf2003-09-10 15:17:25 +000017294char (*f) () = dlopen;
17295#endif
17296#ifdef __cplusplus
17297}
John Criswell47fdd832003-07-14 16:52:07 +000017298#endif
17299
John Criswell0c38eaf2003-09-10 15:17:25 +000017300int
17301main ()
17302{
17303return f != dlopen;
John Criswell47fdd832003-07-14 16:52:07 +000017304 ;
17305 return 0;
17306}
17307_ACEOF
17308rm -f conftest.$ac_objext conftest$ac_exeext
17309if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000017310 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017311 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000017312 grep -v '^ *+' conftest.er1 >conftest.err
17313 rm -f conftest.er1
17314 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17316 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000017317 { ac_try='test -z "$ac_c_werror_flag"
17318 || test ! -s conftest.err'
17319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17320 (eval $ac_try) 2>&5
17321 ac_status=$?
17322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17323 (exit $ac_status); }; } &&
17324 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17326 (eval $ac_try) 2>&5
17327 ac_status=$?
17328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17329 (exit $ac_status); }; }; then
17330 ac_cv_func_dlopen=yes
17331else
17332 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017333sed 's/^/| /' conftest.$ac_ext >&5
17334
John Criswell47fdd832003-07-14 16:52:07 +000017335ac_cv_func_dlopen=no
17336fi
Reid Spencer2b51a082004-08-04 00:34:49 +000017337rm -f conftest.err conftest.$ac_objext \
17338 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017339fi
17340echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17341echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17342if test $ac_cv_func_dlopen = yes; then
17343 lt_cv_dlopen="dlopen"
17344else
17345 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17346echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17347if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17348 echo $ECHO_N "(cached) $ECHO_C" >&6
17349else
17350 ac_check_lib_save_LIBS=$LIBS
17351LIBS="-ldl $LIBS"
17352cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017353/* confdefs.h. */
17354_ACEOF
17355cat confdefs.h >>conftest.$ac_ext
17356cat >>conftest.$ac_ext <<_ACEOF
17357/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017358
17359/* Override any gcc2 internal prototype to avoid an error. */
17360#ifdef __cplusplus
17361extern "C"
17362#endif
17363/* We use char because int might match the return type of a gcc2
17364 builtin and then its argument prototype would still apply. */
17365char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017366int
17367main ()
17368{
17369dlopen ();
17370 ;
17371 return 0;
17372}
17373_ACEOF
17374rm -f conftest.$ac_objext conftest$ac_exeext
17375if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000017376 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017377 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000017378 grep -v '^ *+' conftest.er1 >conftest.err
17379 rm -f conftest.er1
17380 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17382 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000017383 { ac_try='test -z "$ac_c_werror_flag"
17384 || test ! -s conftest.err'
17385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17386 (eval $ac_try) 2>&5
17387 ac_status=$?
17388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17389 (exit $ac_status); }; } &&
17390 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17392 (eval $ac_try) 2>&5
17393 ac_status=$?
17394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17395 (exit $ac_status); }; }; then
17396 ac_cv_lib_dl_dlopen=yes
17397else
17398 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017399sed 's/^/| /' conftest.$ac_ext >&5
17400
John Criswell47fdd832003-07-14 16:52:07 +000017401ac_cv_lib_dl_dlopen=no
17402fi
Reid Spencer2b51a082004-08-04 00:34:49 +000017403rm -f conftest.err conftest.$ac_objext \
17404 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017405LIBS=$ac_check_lib_save_LIBS
17406fi
17407echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17408echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17409if test $ac_cv_lib_dl_dlopen = yes; then
17410 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17411else
17412 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17413echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17414if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17415 echo $ECHO_N "(cached) $ECHO_C" >&6
17416else
17417 ac_check_lib_save_LIBS=$LIBS
17418LIBS="-lsvld $LIBS"
17419cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017420/* confdefs.h. */
17421_ACEOF
17422cat confdefs.h >>conftest.$ac_ext
17423cat >>conftest.$ac_ext <<_ACEOF
17424/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017425
17426/* Override any gcc2 internal prototype to avoid an error. */
17427#ifdef __cplusplus
17428extern "C"
17429#endif
17430/* We use char because int might match the return type of a gcc2
17431 builtin and then its argument prototype would still apply. */
17432char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017433int
17434main ()
17435{
17436dlopen ();
17437 ;
17438 return 0;
17439}
17440_ACEOF
17441rm -f conftest.$ac_objext conftest$ac_exeext
17442if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000017443 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017444 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000017445 grep -v '^ *+' conftest.er1 >conftest.err
17446 rm -f conftest.er1
17447 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17449 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000017450 { ac_try='test -z "$ac_c_werror_flag"
17451 || test ! -s conftest.err'
17452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17453 (eval $ac_try) 2>&5
17454 ac_status=$?
17455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17456 (exit $ac_status); }; } &&
17457 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17459 (eval $ac_try) 2>&5
17460 ac_status=$?
17461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17462 (exit $ac_status); }; }; then
17463 ac_cv_lib_svld_dlopen=yes
17464else
17465 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017466sed 's/^/| /' conftest.$ac_ext >&5
17467
John Criswell47fdd832003-07-14 16:52:07 +000017468ac_cv_lib_svld_dlopen=no
17469fi
Reid Spencer2b51a082004-08-04 00:34:49 +000017470rm -f conftest.err conftest.$ac_objext \
17471 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017472LIBS=$ac_check_lib_save_LIBS
17473fi
17474echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17475echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17476if test $ac_cv_lib_svld_dlopen = yes; then
17477 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17478else
17479 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17480echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17481if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17482 echo $ECHO_N "(cached) $ECHO_C" >&6
17483else
17484 ac_check_lib_save_LIBS=$LIBS
17485LIBS="-ldld $LIBS"
17486cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017487/* confdefs.h. */
17488_ACEOF
17489cat confdefs.h >>conftest.$ac_ext
17490cat >>conftest.$ac_ext <<_ACEOF
17491/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017492
17493/* Override any gcc2 internal prototype to avoid an error. */
17494#ifdef __cplusplus
17495extern "C"
17496#endif
17497/* We use char because int might match the return type of a gcc2
17498 builtin and then its argument prototype would still apply. */
17499char dld_link ();
John Criswell47fdd832003-07-14 16:52:07 +000017500int
17501main ()
17502{
17503dld_link ();
17504 ;
17505 return 0;
17506}
17507_ACEOF
17508rm -f conftest.$ac_objext conftest$ac_exeext
17509if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000017510 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017511 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000017512 grep -v '^ *+' conftest.er1 >conftest.err
17513 rm -f conftest.er1
17514 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17516 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000017517 { ac_try='test -z "$ac_c_werror_flag"
17518 || test ! -s conftest.err'
17519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17520 (eval $ac_try) 2>&5
17521 ac_status=$?
17522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17523 (exit $ac_status); }; } &&
17524 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17526 (eval $ac_try) 2>&5
17527 ac_status=$?
17528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17529 (exit $ac_status); }; }; then
17530 ac_cv_lib_dld_dld_link=yes
17531else
17532 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017533sed 's/^/| /' conftest.$ac_ext >&5
17534
John Criswell47fdd832003-07-14 16:52:07 +000017535ac_cv_lib_dld_dld_link=no
17536fi
Reid Spencer2b51a082004-08-04 00:34:49 +000017537rm -f conftest.err conftest.$ac_objext \
17538 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017539LIBS=$ac_check_lib_save_LIBS
17540fi
17541echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17542echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17543if test $ac_cv_lib_dld_dld_link = yes; then
17544 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17545fi
17546
17547
17548fi
17549
17550
17551fi
17552
17553
17554fi
17555
17556
17557fi
17558
17559
17560fi
17561
17562 ;;
17563 esac
17564
17565 if test "x$lt_cv_dlopen" != xno; then
17566 enable_dlopen=yes
17567 else
17568 enable_dlopen=no
17569 fi
17570
17571 case $lt_cv_dlopen in
17572 dlopen)
17573 save_CPPFLAGS="$CPPFLAGS"
17574 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17575
17576 save_LDFLAGS="$LDFLAGS"
17577 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17578
17579 save_LIBS="$LIBS"
17580 LIBS="$lt_cv_dlopen_libs $LIBS"
17581
17582 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17583echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17584if test "${lt_cv_dlopen_self+set}" = set; then
17585 echo $ECHO_N "(cached) $ECHO_C" >&6
17586else
17587 if test "$cross_compiling" = yes; then :
17588 lt_cv_dlopen_self=cross
17589else
17590 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17591 lt_status=$lt_dlunknown
17592 cat > conftest.$ac_ext <<EOF
Reid Spencer886e9512004-08-31 01:34:10 +000017593#line 17593 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000017594#include "confdefs.h"
17595
17596#if HAVE_DLFCN_H
17597#include <dlfcn.h>
17598#endif
17599
17600#include <stdio.h>
17601
17602#ifdef RTLD_GLOBAL
17603# define LT_DLGLOBAL RTLD_GLOBAL
17604#else
17605# ifdef DL_GLOBAL
17606# define LT_DLGLOBAL DL_GLOBAL
17607# else
17608# define LT_DLGLOBAL 0
17609# endif
17610#endif
17611
17612/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17613 find out it does not work in some platform. */
17614#ifndef LT_DLLAZY_OR_NOW
17615# ifdef RTLD_LAZY
17616# define LT_DLLAZY_OR_NOW RTLD_LAZY
17617# else
17618# ifdef DL_LAZY
17619# define LT_DLLAZY_OR_NOW DL_LAZY
17620# else
17621# ifdef RTLD_NOW
17622# define LT_DLLAZY_OR_NOW RTLD_NOW
17623# else
17624# ifdef DL_NOW
17625# define LT_DLLAZY_OR_NOW DL_NOW
17626# else
17627# define LT_DLLAZY_OR_NOW 0
17628# endif
17629# endif
17630# endif
17631# endif
17632#endif
17633
17634#ifdef __cplusplus
17635extern "C" void exit (int);
17636#endif
17637
17638void fnord() { int i=42;}
17639int main ()
17640{
17641 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17642 int status = $lt_dlunknown;
17643
17644 if (self)
17645 {
17646 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17647 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17648 /* dlclose (self); */
17649 }
17650
17651 exit (status);
17652}
17653EOF
17654 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17655 (eval $ac_link) 2>&5
17656 ac_status=$?
17657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17658 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17659 (./conftest; exit; ) 2>/dev/null
17660 lt_status=$?
17661 case x$lt_status in
17662 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17663 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17664 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17665 esac
17666 else :
17667 # compilation failed
17668 lt_cv_dlopen_self=no
17669 fi
17670fi
17671rm -fr conftest*
17672
17673
17674fi
17675echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17676echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17677
17678 if test "x$lt_cv_dlopen_self" = xyes; then
17679 LDFLAGS="$LDFLAGS $link_static_flag"
17680 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17681echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17682if test "${lt_cv_dlopen_self_static+set}" = set; then
17683 echo $ECHO_N "(cached) $ECHO_C" >&6
17684else
17685 if test "$cross_compiling" = yes; then :
17686 lt_cv_dlopen_self_static=cross
17687else
17688 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17689 lt_status=$lt_dlunknown
17690 cat > conftest.$ac_ext <<EOF
Reid Spencer886e9512004-08-31 01:34:10 +000017691#line 17691 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000017692#include "confdefs.h"
17693
17694#if HAVE_DLFCN_H
17695#include <dlfcn.h>
17696#endif
17697
17698#include <stdio.h>
17699
17700#ifdef RTLD_GLOBAL
17701# define LT_DLGLOBAL RTLD_GLOBAL
17702#else
17703# ifdef DL_GLOBAL
17704# define LT_DLGLOBAL DL_GLOBAL
17705# else
17706# define LT_DLGLOBAL 0
17707# endif
17708#endif
17709
17710/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17711 find out it does not work in some platform. */
17712#ifndef LT_DLLAZY_OR_NOW
17713# ifdef RTLD_LAZY
17714# define LT_DLLAZY_OR_NOW RTLD_LAZY
17715# else
17716# ifdef DL_LAZY
17717# define LT_DLLAZY_OR_NOW DL_LAZY
17718# else
17719# ifdef RTLD_NOW
17720# define LT_DLLAZY_OR_NOW RTLD_NOW
17721# else
17722# ifdef DL_NOW
17723# define LT_DLLAZY_OR_NOW DL_NOW
17724# else
17725# define LT_DLLAZY_OR_NOW 0
17726# endif
17727# endif
17728# endif
17729# endif
17730#endif
17731
17732#ifdef __cplusplus
17733extern "C" void exit (int);
17734#endif
17735
17736void fnord() { int i=42;}
17737int main ()
17738{
17739 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17740 int status = $lt_dlunknown;
17741
17742 if (self)
17743 {
17744 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17745 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17746 /* dlclose (self); */
17747 }
17748
17749 exit (status);
17750}
17751EOF
17752 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17753 (eval $ac_link) 2>&5
17754 ac_status=$?
17755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17756 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17757 (./conftest; exit; ) 2>/dev/null
17758 lt_status=$?
17759 case x$lt_status in
17760 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17761 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17762 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17763 esac
17764 else :
17765 # compilation failed
17766 lt_cv_dlopen_self_static=no
17767 fi
17768fi
17769rm -fr conftest*
17770
17771
17772fi
17773echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17774echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17775 fi
17776
17777 CPPFLAGS="$save_CPPFLAGS"
17778 LDFLAGS="$save_LDFLAGS"
17779 LIBS="$save_LIBS"
17780 ;;
17781 esac
17782
17783 case $lt_cv_dlopen_self in
17784 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17785 *) enable_dlopen_self=unknown ;;
17786 esac
17787
17788 case $lt_cv_dlopen_self_static in
17789 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17790 *) enable_dlopen_self_static=unknown ;;
17791 esac
17792fi
17793
17794
17795# The else clause should only fire when bootstrapping the
17796# libtool distribution, otherwise you forgot to ship ltmain.sh
17797# with your package, and you will get complaints that there are
17798# no rules to generate ltmain.sh.
17799if test -f "$ltmain"; then
17800 # See if we are running on zsh, and set the options which allow our commands through
17801 # without removal of \ escapes.
17802 if test -n "${ZSH_VERSION+set}" ; then
17803 setopt NO_GLOB_SUBST
17804 fi
17805 # Now quote all the things that may contain metacharacters while being
17806 # careful not to overquote the AC_SUBSTed values. We take copies of the
17807 # variables and quote the copies for generation of the libtool script.
17808 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17809 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17810 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17811 deplibs_check_method reload_flag reload_cmds need_locks \
17812 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17813 lt_cv_sys_global_symbol_to_c_name_address \
17814 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17815 old_postinstall_cmds old_postuninstall_cmds \
17816 compiler_GCJ \
17817 CC_GCJ \
17818 LD_GCJ \
17819 lt_prog_compiler_wl_GCJ \
17820 lt_prog_compiler_pic_GCJ \
17821 lt_prog_compiler_static_GCJ \
17822 lt_prog_compiler_no_builtin_flag_GCJ \
17823 export_dynamic_flag_spec_GCJ \
17824 thread_safe_flag_spec_GCJ \
17825 whole_archive_flag_spec_GCJ \
17826 enable_shared_with_static_runtimes_GCJ \
17827 old_archive_cmds_GCJ \
17828 old_archive_from_new_cmds_GCJ \
17829 predep_objects_GCJ \
17830 postdep_objects_GCJ \
17831 predeps_GCJ \
17832 postdeps_GCJ \
17833 compiler_lib_search_path_GCJ \
17834 archive_cmds_GCJ \
17835 archive_expsym_cmds_GCJ \
17836 postinstall_cmds_GCJ \
17837 postuninstall_cmds_GCJ \
17838 old_archive_from_expsyms_cmds_GCJ \
17839 allow_undefined_flag_GCJ \
17840 no_undefined_flag_GCJ \
17841 export_symbols_cmds_GCJ \
17842 hardcode_libdir_flag_spec_GCJ \
17843 hardcode_libdir_flag_spec_ld_GCJ \
17844 hardcode_libdir_separator_GCJ \
17845 hardcode_automatic_GCJ \
17846 module_cmds_GCJ \
17847 module_expsym_cmds_GCJ \
17848 lt_cv_prog_compiler_c_o_GCJ \
17849 exclude_expsyms_GCJ \
17850 include_expsyms_GCJ; do
17851
17852 case $var in
17853 old_archive_cmds_GCJ | \
17854 old_archive_from_new_cmds_GCJ | \
17855 archive_cmds_GCJ | \
17856 archive_expsym_cmds_GCJ | \
17857 module_cmds_GCJ | \
17858 module_expsym_cmds_GCJ | \
17859 old_archive_from_expsyms_cmds_GCJ | \
17860 export_symbols_cmds_GCJ | \
17861 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17862 postinstall_cmds | postuninstall_cmds | \
17863 old_postinstall_cmds | old_postuninstall_cmds | \
17864 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17865 # Double-quote double-evaled strings.
17866 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17867 ;;
17868 *)
17869 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17870 ;;
17871 esac
17872 done
17873
17874 case $lt_echo in
17875 *'\$0 --fallback-echo"')
17876 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17877 ;;
17878 esac
17879
17880cfgfile="$ofile"
17881
17882 cat <<__EOF__ >> "$cfgfile"
17883# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17884
17885# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17886
17887# Shell to use when invoking shell scripts.
17888SHELL=$lt_SHELL
17889
17890# Whether or not to build shared libraries.
17891build_libtool_libs=$enable_shared
17892
17893# Whether or not to build static libraries.
17894build_old_libs=$enable_static
17895
17896# Whether or not to add -lc for building shared libraries.
17897build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17898
17899# Whether or not to disallow shared libs when runtime libs are static
17900allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17901
17902# Whether or not to optimize for fast installation.
17903fast_install=$enable_fast_install
17904
17905# The host system.
17906host_alias=$host_alias
17907host=$host
17908
17909# An echo program that does not interpret backslashes.
17910echo=$lt_echo
17911
17912# The archiver.
17913AR=$lt_AR
17914AR_FLAGS=$lt_AR_FLAGS
17915
17916# A C compiler.
17917LTCC=$lt_LTCC
17918
17919# A language-specific compiler.
17920CC=$lt_compiler_GCJ
17921
17922# Is the compiler the GNU C compiler?
17923with_gcc=$GCC_GCJ
17924
17925# An ERE matcher.
17926EGREP=$lt_EGREP
17927
17928# The linker used to build libraries.
17929LD=$lt_LD_GCJ
17930
17931# Whether we need hard or soft links.
17932LN_S=$lt_LN_S
17933
17934# A BSD-compatible nm program.
17935NM=$lt_NM
17936
17937# A symbol stripping program
17938STRIP=$STRIP
17939
17940# Used to examine libraries when file_magic_cmd begins "file"
17941MAGIC_CMD=$MAGIC_CMD
17942
17943# Used on cygwin: DLL creation program.
17944DLLTOOL="$DLLTOOL"
17945
17946# Used on cygwin: object dumper.
17947OBJDUMP="$OBJDUMP"
17948
17949# Used on cygwin: assembler.
17950AS="$AS"
17951
17952# The name of the directory that contains temporary libtool files.
17953objdir=$objdir
17954
17955# How to create reloadable object files.
17956reload_flag=$lt_reload_flag
17957reload_cmds=$lt_reload_cmds
17958
17959# How to pass a linker flag through the compiler.
17960wl=$lt_lt_prog_compiler_wl_GCJ
17961
17962# Object file suffix (normally "o").
17963objext="$ac_objext"
17964
17965# Old archive suffix (normally "a").
17966libext="$libext"
17967
17968# Shared library suffix (normally ".so").
17969shrext='$shrext'
17970
17971# Executable file suffix (normally "").
17972exeext="$exeext"
17973
17974# Additional compiler flags for building library objects.
17975pic_flag=$lt_lt_prog_compiler_pic_GCJ
17976pic_mode=$pic_mode
17977
17978# What is the maximum length of a command?
17979max_cmd_len=$lt_cv_sys_max_cmd_len
17980
17981# Does compiler simultaneously support -c and -o options?
17982compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17983
17984# Must we lock files when doing compilation ?
17985need_locks=$lt_need_locks
17986
17987# Do we need the lib prefix for modules?
17988need_lib_prefix=$need_lib_prefix
17989
17990# Do we need a version for libraries?
17991need_version=$need_version
17992
17993# Whether dlopen is supported.
17994dlopen_support=$enable_dlopen
17995
17996# Whether dlopen of programs is supported.
17997dlopen_self=$enable_dlopen_self
17998
17999# Whether dlopen of statically linked programs is supported.
18000dlopen_self_static=$enable_dlopen_self_static
18001
18002# Compiler flag to prevent dynamic linking.
18003link_static_flag=$lt_lt_prog_compiler_static_GCJ
18004
18005# Compiler flag to turn off builtin functions.
18006no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18007
18008# Compiler flag to allow reflexive dlopens.
18009export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18010
18011# Compiler flag to generate shared objects directly from archives.
18012whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18013
18014# Compiler flag to generate thread-safe objects.
18015thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18016
18017# Library versioning type.
18018version_type=$version_type
18019
18020# Format of library name prefix.
18021libname_spec=$lt_libname_spec
18022
18023# List of archive names. First name is the real one, the rest are links.
18024# The last name is the one that the linker finds with -lNAME.
18025library_names_spec=$lt_library_names_spec
18026
18027# The coded name of the library, if different from the real name.
18028soname_spec=$lt_soname_spec
18029
18030# Commands used to build and install an old-style archive.
18031RANLIB=$lt_RANLIB
18032old_archive_cmds=$lt_old_archive_cmds_GCJ
18033old_postinstall_cmds=$lt_old_postinstall_cmds
18034old_postuninstall_cmds=$lt_old_postuninstall_cmds
18035
18036# Create an old-style archive from a shared archive.
18037old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18038
18039# Create a temporary old-style archive to link instead of a shared archive.
18040old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18041
18042# Commands used to build and install a shared archive.
18043archive_cmds=$lt_archive_cmds_GCJ
18044archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18045postinstall_cmds=$lt_postinstall_cmds
18046postuninstall_cmds=$lt_postuninstall_cmds
18047
18048# Commands used to build a loadable module (assumed same as above if empty)
18049module_cmds=$lt_module_cmds_GCJ
18050module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18051
18052# Commands to strip libraries.
18053old_striplib=$lt_old_striplib
18054striplib=$lt_striplib
18055
18056# Dependencies to place before the objects being linked to create a
18057# shared library.
18058predep_objects=$lt_predep_objects_GCJ
18059
18060# Dependencies to place after the objects being linked to create a
18061# shared library.
18062postdep_objects=$lt_postdep_objects_GCJ
18063
18064# Dependencies to place before the objects being linked to create a
18065# shared library.
18066predeps=$lt_predeps_GCJ
18067
18068# Dependencies to place after the objects being linked to create a
18069# shared library.
18070postdeps=$lt_postdeps_GCJ
18071
18072# The library search path used internally by the compiler when linking
18073# a shared library.
18074compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18075
18076# Method to check whether dependent libraries are shared objects.
18077deplibs_check_method=$lt_deplibs_check_method
18078
18079# Command to use when deplibs_check_method == file_magic.
18080file_magic_cmd=$lt_file_magic_cmd
18081
18082# Flag that allows shared libraries with undefined symbols to be built.
18083allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18084
18085# Flag that forces no undefined symbols.
18086no_undefined_flag=$lt_no_undefined_flag_GCJ
18087
18088# Commands used to finish a libtool library installation in a directory.
18089finish_cmds=$lt_finish_cmds
18090
18091# Same as above, but a single script fragment to be evaled but not shown.
18092finish_eval=$lt_finish_eval
18093
18094# Take the output of nm and produce a listing of raw symbols and C names.
18095global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18096
18097# Transform the output of nm in a proper C declaration
18098global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18099
18100# Transform the output of nm in a C name address pair
18101global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18102
18103# This is the shared library runtime path variable.
18104runpath_var=$runpath_var
18105
18106# This is the shared library path variable.
18107shlibpath_var=$shlibpath_var
18108
18109# Is shlibpath searched before the hard-coded library search path?
18110shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18111
18112# How to hardcode a shared library path into an executable.
18113hardcode_action=$hardcode_action_GCJ
18114
18115# Whether we should hardcode library paths into libraries.
18116hardcode_into_libs=$hardcode_into_libs
18117
18118# Flag to hardcode \$libdir into a binary during linking.
18119# This must work even if \$libdir does not exist.
18120hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18121
18122# If ld is used when linking, flag to hardcode \$libdir into
18123# a binary during linking. This must work even if \$libdir does
18124# not exist.
18125hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18126
18127# Whether we need a single -rpath flag with a separated argument.
18128hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18129
18130# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18131# resulting binary.
18132hardcode_direct=$hardcode_direct_GCJ
18133
18134# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18135# resulting binary.
18136hardcode_minus_L=$hardcode_minus_L_GCJ
18137
18138# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18139# the resulting binary.
18140hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18141
18142# Set to yes if building a shared library automatically hardcodes DIR into the library
18143# and all subsequent libraries and executables linked against it.
18144hardcode_automatic=$hardcode_automatic_GCJ
18145
18146# Variables whose values should be saved in libtool wrapper scripts and
18147# restored at relink time.
18148variables_saved_for_relink="$variables_saved_for_relink"
18149
18150# Whether libtool must link a program against all its dependency libraries.
18151link_all_deplibs=$link_all_deplibs_GCJ
18152
18153# Compile-time system search path for libraries
18154sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18155
18156# Run-time system search path for libraries
18157sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18158
18159# Fix the shell variable \$srcfile for the compiler.
18160fix_srcfile_path="$fix_srcfile_path_GCJ"
18161
18162# Set to yes if exported symbols are required.
18163always_export_symbols=$always_export_symbols_GCJ
18164
18165# The commands to list exported symbols.
18166export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18167
18168# The commands to extract the exported symbol list from a shared archive.
18169extract_expsyms_cmds=$lt_extract_expsyms_cmds
18170
18171# Symbols that should not be listed in the preloaded symbols.
18172exclude_expsyms=$lt_exclude_expsyms_GCJ
18173
18174# Symbols that must always be exported.
18175include_expsyms=$lt_include_expsyms_GCJ
18176
18177# ### END LIBTOOL TAG CONFIG: $tagname
18178
18179__EOF__
18180
18181
18182else
18183 # If there is no Makefile yet, we rely on a make rule to execute
18184 # `config.status --recheck' to rerun these tests and create the
18185 # libtool script then.
18186 test -f Makefile && make "$ltmain"
18187fi
18188
18189
18190ac_ext=c
18191ac_cpp='$CPP $CPPFLAGS'
18192ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18193ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18194ac_compiler_gnu=$ac_cv_c_compiler_gnu
18195
18196CC="$lt_save_CC"
18197
18198 else
18199 tagname=""
18200 fi
18201 ;;
18202
18203 RC)
18204
18205
18206
18207# Source file extension for RC test sources.
18208ac_ext=rc
18209
18210# Object file extension for compiled RC test sources.
18211objext=o
18212objext_RC=$objext
18213
18214# Code to be used in simple compile tests
18215lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18216
18217# Code to be used in simple link tests
18218lt_simple_link_test_code="$lt_simple_compile_test_code"
18219
18220# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18221
18222# If no C compiler was specified, use CC.
18223LTCC=${LTCC-"$CC"}
18224
18225# Allow CC to be a program name with arguments.
18226compiler=$CC
18227
18228
18229# Allow CC to be a program name with arguments.
18230lt_save_CC="$CC"
18231CC=${RC-"windres"}
18232compiler=$CC
18233compiler_RC=$CC
18234lt_cv_prog_compiler_c_o_RC=yes
18235
18236# The else clause should only fire when bootstrapping the
18237# libtool distribution, otherwise you forgot to ship ltmain.sh
18238# with your package, and you will get complaints that there are
18239# no rules to generate ltmain.sh.
18240if test -f "$ltmain"; then
18241 # See if we are running on zsh, and set the options which allow our commands through
18242 # without removal of \ escapes.
18243 if test -n "${ZSH_VERSION+set}" ; then
18244 setopt NO_GLOB_SUBST
18245 fi
18246 # Now quote all the things that may contain metacharacters while being
18247 # careful not to overquote the AC_SUBSTed values. We take copies of the
18248 # variables and quote the copies for generation of the libtool script.
18249 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
18250 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18251 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18252 deplibs_check_method reload_flag reload_cmds need_locks \
18253 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18254 lt_cv_sys_global_symbol_to_c_name_address \
18255 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18256 old_postinstall_cmds old_postuninstall_cmds \
18257 compiler_RC \
18258 CC_RC \
18259 LD_RC \
18260 lt_prog_compiler_wl_RC \
18261 lt_prog_compiler_pic_RC \
18262 lt_prog_compiler_static_RC \
18263 lt_prog_compiler_no_builtin_flag_RC \
18264 export_dynamic_flag_spec_RC \
18265 thread_safe_flag_spec_RC \
18266 whole_archive_flag_spec_RC \
18267 enable_shared_with_static_runtimes_RC \
18268 old_archive_cmds_RC \
18269 old_archive_from_new_cmds_RC \
18270 predep_objects_RC \
18271 postdep_objects_RC \
18272 predeps_RC \
18273 postdeps_RC \
18274 compiler_lib_search_path_RC \
18275 archive_cmds_RC \
18276 archive_expsym_cmds_RC \
18277 postinstall_cmds_RC \
18278 postuninstall_cmds_RC \
18279 old_archive_from_expsyms_cmds_RC \
18280 allow_undefined_flag_RC \
18281 no_undefined_flag_RC \
18282 export_symbols_cmds_RC \
18283 hardcode_libdir_flag_spec_RC \
18284 hardcode_libdir_flag_spec_ld_RC \
18285 hardcode_libdir_separator_RC \
18286 hardcode_automatic_RC \
18287 module_cmds_RC \
18288 module_expsym_cmds_RC \
18289 lt_cv_prog_compiler_c_o_RC \
18290 exclude_expsyms_RC \
18291 include_expsyms_RC; do
18292
18293 case $var in
18294 old_archive_cmds_RC | \
18295 old_archive_from_new_cmds_RC | \
18296 archive_cmds_RC | \
18297 archive_expsym_cmds_RC | \
18298 module_cmds_RC | \
18299 module_expsym_cmds_RC | \
18300 old_archive_from_expsyms_cmds_RC | \
18301 export_symbols_cmds_RC | \
18302 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18303 postinstall_cmds | postuninstall_cmds | \
18304 old_postinstall_cmds | old_postuninstall_cmds | \
18305 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18306 # Double-quote double-evaled strings.
18307 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18308 ;;
18309 *)
18310 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18311 ;;
18312 esac
18313 done
18314
18315 case $lt_echo in
18316 *'\$0 --fallback-echo"')
18317 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18318 ;;
18319 esac
18320
18321cfgfile="$ofile"
18322
18323 cat <<__EOF__ >> "$cfgfile"
18324# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18325
18326# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18327
18328# Shell to use when invoking shell scripts.
18329SHELL=$lt_SHELL
18330
18331# Whether or not to build shared libraries.
18332build_libtool_libs=$enable_shared
18333
18334# Whether or not to build static libraries.
18335build_old_libs=$enable_static
18336
18337# Whether or not to add -lc for building shared libraries.
18338build_libtool_need_lc=$archive_cmds_need_lc_RC
18339
18340# Whether or not to disallow shared libs when runtime libs are static
18341allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18342
18343# Whether or not to optimize for fast installation.
18344fast_install=$enable_fast_install
18345
18346# The host system.
18347host_alias=$host_alias
18348host=$host
18349
18350# An echo program that does not interpret backslashes.
18351echo=$lt_echo
18352
18353# The archiver.
18354AR=$lt_AR
18355AR_FLAGS=$lt_AR_FLAGS
18356
18357# A C compiler.
18358LTCC=$lt_LTCC
18359
18360# A language-specific compiler.
18361CC=$lt_compiler_RC
18362
18363# Is the compiler the GNU C compiler?
18364with_gcc=$GCC_RC
18365
18366# An ERE matcher.
18367EGREP=$lt_EGREP
18368
18369# The linker used to build libraries.
18370LD=$lt_LD_RC
18371
18372# Whether we need hard or soft links.
18373LN_S=$lt_LN_S
18374
18375# A BSD-compatible nm program.
18376NM=$lt_NM
18377
18378# A symbol stripping program
18379STRIP=$STRIP
18380
18381# Used to examine libraries when file_magic_cmd begins "file"
18382MAGIC_CMD=$MAGIC_CMD
18383
18384# Used on cygwin: DLL creation program.
18385DLLTOOL="$DLLTOOL"
18386
18387# Used on cygwin: object dumper.
18388OBJDUMP="$OBJDUMP"
18389
18390# Used on cygwin: assembler.
18391AS="$AS"
18392
18393# The name of the directory that contains temporary libtool files.
18394objdir=$objdir
18395
18396# How to create reloadable object files.
18397reload_flag=$lt_reload_flag
18398reload_cmds=$lt_reload_cmds
18399
18400# How to pass a linker flag through the compiler.
18401wl=$lt_lt_prog_compiler_wl_RC
18402
18403# Object file suffix (normally "o").
18404objext="$ac_objext"
18405
18406# Old archive suffix (normally "a").
18407libext="$libext"
18408
18409# Shared library suffix (normally ".so").
18410shrext='$shrext'
18411
18412# Executable file suffix (normally "").
18413exeext="$exeext"
18414
18415# Additional compiler flags for building library objects.
18416pic_flag=$lt_lt_prog_compiler_pic_RC
18417pic_mode=$pic_mode
18418
18419# What is the maximum length of a command?
18420max_cmd_len=$lt_cv_sys_max_cmd_len
18421
18422# Does compiler simultaneously support -c and -o options?
18423compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18424
18425# Must we lock files when doing compilation ?
18426need_locks=$lt_need_locks
18427
18428# Do we need the lib prefix for modules?
18429need_lib_prefix=$need_lib_prefix
18430
18431# Do we need a version for libraries?
18432need_version=$need_version
18433
18434# Whether dlopen is supported.
18435dlopen_support=$enable_dlopen
18436
18437# Whether dlopen of programs is supported.
18438dlopen_self=$enable_dlopen_self
18439
18440# Whether dlopen of statically linked programs is supported.
18441dlopen_self_static=$enable_dlopen_self_static
18442
18443# Compiler flag to prevent dynamic linking.
18444link_static_flag=$lt_lt_prog_compiler_static_RC
18445
18446# Compiler flag to turn off builtin functions.
18447no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18448
18449# Compiler flag to allow reflexive dlopens.
18450export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18451
18452# Compiler flag to generate shared objects directly from archives.
18453whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18454
18455# Compiler flag to generate thread-safe objects.
18456thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18457
18458# Library versioning type.
18459version_type=$version_type
18460
18461# Format of library name prefix.
18462libname_spec=$lt_libname_spec
18463
18464# List of archive names. First name is the real one, the rest are links.
18465# The last name is the one that the linker finds with -lNAME.
18466library_names_spec=$lt_library_names_spec
18467
18468# The coded name of the library, if different from the real name.
18469soname_spec=$lt_soname_spec
18470
18471# Commands used to build and install an old-style archive.
18472RANLIB=$lt_RANLIB
18473old_archive_cmds=$lt_old_archive_cmds_RC
18474old_postinstall_cmds=$lt_old_postinstall_cmds
18475old_postuninstall_cmds=$lt_old_postuninstall_cmds
18476
18477# Create an old-style archive from a shared archive.
18478old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18479
18480# Create a temporary old-style archive to link instead of a shared archive.
18481old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18482
18483# Commands used to build and install a shared archive.
18484archive_cmds=$lt_archive_cmds_RC
18485archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18486postinstall_cmds=$lt_postinstall_cmds
18487postuninstall_cmds=$lt_postuninstall_cmds
18488
18489# Commands used to build a loadable module (assumed same as above if empty)
18490module_cmds=$lt_module_cmds_RC
18491module_expsym_cmds=$lt_module_expsym_cmds_RC
18492
18493# Commands to strip libraries.
18494old_striplib=$lt_old_striplib
18495striplib=$lt_striplib
18496
18497# Dependencies to place before the objects being linked to create a
18498# shared library.
18499predep_objects=$lt_predep_objects_RC
18500
18501# Dependencies to place after the objects being linked to create a
18502# shared library.
18503postdep_objects=$lt_postdep_objects_RC
18504
18505# Dependencies to place before the objects being linked to create a
18506# shared library.
18507predeps=$lt_predeps_RC
18508
18509# Dependencies to place after the objects being linked to create a
18510# shared library.
18511postdeps=$lt_postdeps_RC
18512
18513# The library search path used internally by the compiler when linking
18514# a shared library.
18515compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18516
18517# Method to check whether dependent libraries are shared objects.
18518deplibs_check_method=$lt_deplibs_check_method
18519
18520# Command to use when deplibs_check_method == file_magic.
18521file_magic_cmd=$lt_file_magic_cmd
18522
18523# Flag that allows shared libraries with undefined symbols to be built.
18524allow_undefined_flag=$lt_allow_undefined_flag_RC
18525
18526# Flag that forces no undefined symbols.
18527no_undefined_flag=$lt_no_undefined_flag_RC
18528
18529# Commands used to finish a libtool library installation in a directory.
18530finish_cmds=$lt_finish_cmds
18531
18532# Same as above, but a single script fragment to be evaled but not shown.
18533finish_eval=$lt_finish_eval
18534
18535# Take the output of nm and produce a listing of raw symbols and C names.
18536global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18537
18538# Transform the output of nm in a proper C declaration
18539global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18540
18541# Transform the output of nm in a C name address pair
18542global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18543
18544# This is the shared library runtime path variable.
18545runpath_var=$runpath_var
18546
18547# This is the shared library path variable.
18548shlibpath_var=$shlibpath_var
18549
18550# Is shlibpath searched before the hard-coded library search path?
18551shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18552
18553# How to hardcode a shared library path into an executable.
18554hardcode_action=$hardcode_action_RC
18555
18556# Whether we should hardcode library paths into libraries.
18557hardcode_into_libs=$hardcode_into_libs
18558
18559# Flag to hardcode \$libdir into a binary during linking.
18560# This must work even if \$libdir does not exist.
18561hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18562
18563# If ld is used when linking, flag to hardcode \$libdir into
18564# a binary during linking. This must work even if \$libdir does
18565# not exist.
18566hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18567
18568# Whether we need a single -rpath flag with a separated argument.
18569hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18570
18571# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18572# resulting binary.
18573hardcode_direct=$hardcode_direct_RC
18574
18575# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18576# resulting binary.
18577hardcode_minus_L=$hardcode_minus_L_RC
18578
18579# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18580# the resulting binary.
18581hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18582
18583# Set to yes if building a shared library automatically hardcodes DIR into the library
18584# and all subsequent libraries and executables linked against it.
18585hardcode_automatic=$hardcode_automatic_RC
18586
18587# Variables whose values should be saved in libtool wrapper scripts and
18588# restored at relink time.
18589variables_saved_for_relink="$variables_saved_for_relink"
18590
18591# Whether libtool must link a program against all its dependency libraries.
18592link_all_deplibs=$link_all_deplibs_RC
18593
18594# Compile-time system search path for libraries
18595sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18596
18597# Run-time system search path for libraries
18598sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18599
18600# Fix the shell variable \$srcfile for the compiler.
18601fix_srcfile_path="$fix_srcfile_path_RC"
18602
18603# Set to yes if exported symbols are required.
18604always_export_symbols=$always_export_symbols_RC
18605
18606# The commands to list exported symbols.
18607export_symbols_cmds=$lt_export_symbols_cmds_RC
18608
18609# The commands to extract the exported symbol list from a shared archive.
18610extract_expsyms_cmds=$lt_extract_expsyms_cmds
18611
18612# Symbols that should not be listed in the preloaded symbols.
18613exclude_expsyms=$lt_exclude_expsyms_RC
18614
18615# Symbols that must always be exported.
18616include_expsyms=$lt_include_expsyms_RC
18617
18618# ### END LIBTOOL TAG CONFIG: $tagname
18619
18620__EOF__
18621
18622
18623else
18624 # If there is no Makefile yet, we rely on a make rule to execute
18625 # `config.status --recheck' to rerun these tests and create the
18626 # libtool script then.
18627 test -f Makefile && make "$ltmain"
18628fi
18629
18630
18631ac_ext=c
18632ac_cpp='$CPP $CPPFLAGS'
18633ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18634ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18635ac_compiler_gnu=$ac_cv_c_compiler_gnu
18636
18637CC="$lt_save_CC"
18638
18639 ;;
18640
18641 *)
18642 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18643echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18644 { (exit 1); exit 1; }; }
18645 ;;
18646 esac
18647
18648 # Append the new tag name to the list of available tags.
18649 if test -n "$tagname" ; then
18650 available_tags="$available_tags $tagname"
18651 fi
18652 fi
18653 done
18654 IFS="$lt_save_ifs"
18655
18656 # Now substitute the updated list of available tags.
18657 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18658 mv "${ofile}T" "$ofile"
18659 chmod +x "$ofile"
18660 else
18661 rm -f "${ofile}T"
18662 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18663echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18664 { (exit 1); exit 1; }; }
18665 fi
18666fi
John Criswell7a73b802003-06-30 21:59:07 +000018667
18668
18669
18670# This can be used to rebuild libtool when needed
18671LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18672
18673# Always use our own libtool.
John Criswell8d4221e2003-07-23 16:52:50 +000018674LIBTOOL='$(SHELL) $(top_builddir)/mklib'
John Criswell7a73b802003-06-30 21:59:07 +000018675
18676# Prevent multiple expansion
18677
18678
18679
John Criswell47fdd832003-07-14 16:52:07 +000018680
18681
18682
18683
18684
18685
18686
18687
18688
18689
18690
18691
18692
18693
18694
18695
18696
18697
John Criswell7a73b802003-06-30 21:59:07 +000018698# Extract the first word of "dot", so it can be a program name with args.
18699set dummy dot; ac_word=$2
18700echo "$as_me:$LINENO: checking for $ac_word" >&5
18701echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18702if test "${ac_cv_path_DOT+set}" = set; then
18703 echo $ECHO_N "(cached) $ECHO_C" >&6
18704else
18705 case $DOT in
18706 [\\/]* | ?:[\\/]*)
18707 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
18708 ;;
18709 *)
18710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18711for as_dir in $PATH
18712do
18713 IFS=$as_save_IFS
18714 test -z "$as_dir" && as_dir=.
18715 for ac_exec_ext in '' $ac_executable_extensions; do
18716 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18717 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
18718 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18719 break 2
18720 fi
18721done
18722done
18723
Brian Gaeke26be9c52004-01-13 06:43:16 +000018724 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="true dot"
John Criswell7a73b802003-06-30 21:59:07 +000018725 ;;
18726esac
18727fi
18728DOT=$ac_cv_path_DOT
18729
18730if test -n "$DOT"; then
18731 echo "$as_me:$LINENO: result: $DOT" >&5
18732echo "${ECHO_T}$DOT" >&6
18733else
18734 echo "$as_me:$LINENO: result: no" >&5
18735echo "${ECHO_T}no" >&6
18736fi
18737
18738# Extract the first word of "etags", so it can be a program name with args.
18739set dummy etags; 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_ETAGS+set}" = set; then
18743 echo $ECHO_N "(cached) $ECHO_C" >&6
18744else
18745 case $ETAGS in
18746 [\\/]* | ?:[\\/]*)
18747 ac_cv_path_ETAGS="$ETAGS" # 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_ETAGS="$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_ETAGS" && ac_cv_path_ETAGS="true etags"
John Criswell7a73b802003-06-30 21:59:07 +000018765 ;;
18766esac
18767fi
18768ETAGS=$ac_cv_path_ETAGS
18769
18770if test -n "$ETAGS"; then
18771 echo "$as_me:$LINENO: result: $ETAGS" >&5
18772echo "${ECHO_T}$ETAGS" >&6
18773else
18774 echo "$as_me:$LINENO: result: no" >&5
18775echo "${ECHO_T}no" >&6
18776fi
18777
Brian Gaekeafa3fbf2004-01-22 21:55:02 +000018778etags_version=`$ETAGS --version 2>&1`
18779case "$etags_version" in
18780 *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
18781 *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
18782 *) ETAGSFLAGS="" ;;
18783esac
18784ETAGSFLAGS=$ETAGSFLAGS
18785
John Criswellde00db22003-08-25 16:49:54 +000018786# Extract the first word of "python", so it can be a program name with args.
18787set dummy python; ac_word=$2
18788echo "$as_me:$LINENO: checking for $ac_word" >&5
18789echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18790if test "${ac_cv_path_PYTHON+set}" = set; then
18791 echo $ECHO_N "(cached) $ECHO_C" >&6
18792else
18793 case $PYTHON in
18794 [\\/]* | ?:[\\/]*)
18795 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
18796 ;;
18797 *)
18798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18799for as_dir in $PATH
18800do
18801 IFS=$as_save_IFS
18802 test -z "$as_dir" && as_dir=.
18803 for ac_exec_ext in '' $ac_executable_extensions; do
18804 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18805 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
18806 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18807 break 2
18808 fi
18809done
18810done
18811
Brian Gaeke26be9c52004-01-13 06:43:16 +000018812 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="true python"
John Criswellde00db22003-08-25 16:49:54 +000018813 ;;
18814esac
18815fi
18816PYTHON=$ac_cv_path_PYTHON
18817
18818if test -n "$PYTHON"; then
18819 echo "$as_me:$LINENO: result: $PYTHON" >&5
18820echo "${ECHO_T}$PYTHON" >&6
18821else
18822 echo "$as_me:$LINENO: result: no" >&5
18823echo "${ECHO_T}no" >&6
18824fi
18825
Brian Gaeke26be9c52004-01-13 06:43:16 +000018826if test "$PYTHON" = "false"
John Criswell39827c82003-09-23 15:28:52 +000018827then
Brian Gaeke26be9c52004-01-13 06:43:16 +000018828 { echo "$as_me:$LINENO: WARNING: Python is required for the test suite, but it was not found" >&5
18829echo "$as_me: WARNING: Python is required for the test suite, but it was not found" >&2;}
John Criswell39827c82003-09-23 15:28:52 +000018830fi
John Criswellde00db22003-08-25 16:49:54 +000018831# Extract the first word of "qmtest", so it can be a program name with args.
18832set dummy qmtest; ac_word=$2
18833echo "$as_me:$LINENO: checking for $ac_word" >&5
18834echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18835if test "${ac_cv_path_QMTEST+set}" = set; then
18836 echo $ECHO_N "(cached) $ECHO_C" >&6
18837else
18838 case $QMTEST in
18839 [\\/]* | ?:[\\/]*)
18840 ac_cv_path_QMTEST="$QMTEST" # Let the user override the test with a path.
18841 ;;
18842 *)
18843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18844for as_dir in $PATH
18845do
18846 IFS=$as_save_IFS
18847 test -z "$as_dir" && as_dir=.
18848 for ac_exec_ext in '' $ac_executable_extensions; do
18849 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18850 ac_cv_path_QMTEST="$as_dir/$ac_word$ac_exec_ext"
18851 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18852 break 2
18853 fi
18854done
18855done
18856
Brian Gaeke26be9c52004-01-13 06:43:16 +000018857 test -z "$ac_cv_path_QMTEST" && ac_cv_path_QMTEST="true qmtest"
John Criswellde00db22003-08-25 16:49:54 +000018858 ;;
18859esac
18860fi
18861QMTEST=$ac_cv_path_QMTEST
18862
18863if test -n "$QMTEST"; then
18864 echo "$as_me:$LINENO: result: $QMTEST" >&5
18865echo "${ECHO_T}$QMTEST" >&6
18866else
18867 echo "$as_me:$LINENO: result: no" >&5
18868echo "${ECHO_T}no" >&6
18869fi
18870
Brian Gaeke26be9c52004-01-13 06:43:16 +000018871if test "$QMTEST" = "false"
John Criswell39827c82003-09-23 15:28:52 +000018872then
Brian Gaeke26be9c52004-01-13 06:43:16 +000018873 { echo "$as_me:$LINENO: WARNING: QMTest is required for the test suite, but it was not found" >&5
18874echo "$as_me: WARNING: QMTest is required for the test suite, but it was not found" >&2;}
John Criswell39827c82003-09-23 15:28:52 +000018875fi
John Criswellde00db22003-08-25 16:49:54 +000018876
18877pyversion=`$PYTHON -V 2>&1 | cut -d\ -f2`
18878pymajor=`echo $pyversion | cut -d. -f1`
18879pyminor=`echo $pyversion | cut -d. -f2`
18880
18881if test "$pymajor" -ge "2"
18882then
18883 if test "$pymajor" -eq "2"
18884 then
18885 if test "$pyminor" -lt "2"
18886 then
Brian Gaeke26be9c52004-01-13 06:43:16 +000018887 { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5
18888echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;}
John Criswellde00db22003-08-25 16:49:54 +000018889 fi
18890 fi
18891else
Brian Gaeke26be9c52004-01-13 06:43:16 +000018892 { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5
18893echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;}
John Criswellde00db22003-08-25 16:49:54 +000018894fi
John Criswell7a73b802003-06-30 21:59:07 +000018895
18896
18897
18898
John Criswell7a73b802003-06-30 21:59:07 +000018899echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
18900echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
18901if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
18902 echo $ECHO_N "(cached) $ECHO_C" >&6
18903else
18904 ac_check_lib_save_LIBS=$LIBS
18905LIBS="-lelf $LIBS"
18906cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018907/* confdefs.h. */
18908_ACEOF
18909cat confdefs.h >>conftest.$ac_ext
18910cat >>conftest.$ac_ext <<_ACEOF
18911/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000018912
18913/* Override any gcc2 internal prototype to avoid an error. */
18914#ifdef __cplusplus
18915extern "C"
18916#endif
18917/* We use char because int might match the return type of a gcc2
18918 builtin and then its argument prototype would still apply. */
18919char elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000018920int
18921main ()
18922{
18923elf_begin ();
18924 ;
18925 return 0;
18926}
18927_ACEOF
18928rm -f conftest.$ac_objext conftest$ac_exeext
18929if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000018930 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000018931 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000018932 grep -v '^ *+' conftest.er1 >conftest.err
18933 rm -f conftest.er1
18934 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000018935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18936 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000018937 { ac_try='test -z "$ac_c_werror_flag"
18938 || test ! -s conftest.err'
18939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18940 (eval $ac_try) 2>&5
18941 ac_status=$?
18942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18943 (exit $ac_status); }; } &&
18944 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000018945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18946 (eval $ac_try) 2>&5
18947 ac_status=$?
18948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18949 (exit $ac_status); }; }; then
18950 ac_cv_lib_elf_elf_begin=yes
18951else
18952 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018953sed 's/^/| /' conftest.$ac_ext >&5
18954
John Criswell7a73b802003-06-30 21:59:07 +000018955ac_cv_lib_elf_elf_begin=no
18956fi
Reid Spencer2b51a082004-08-04 00:34:49 +000018957rm -f conftest.err conftest.$ac_objext \
18958 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000018959LIBS=$ac_check_lib_save_LIBS
18960fi
18961echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
18962echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
18963if test $ac_cv_lib_elf_elf_begin = yes; then
18964 cat >>confdefs.h <<_ACEOF
18965#define HAVE_LIBELF 1
18966_ACEOF
18967
18968 LIBS="-lelf $LIBS"
18969
18970fi
18971
18972
18973echo "$as_me:$LINENO: checking for library containing dlopen" >&5
18974echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
18975if test "${ac_cv_search_dlopen+set}" = set; then
18976 echo $ECHO_N "(cached) $ECHO_C" >&6
18977else
18978 ac_func_search_save_LIBS=$LIBS
18979ac_cv_search_dlopen=no
18980cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018981/* confdefs.h. */
18982_ACEOF
18983cat confdefs.h >>conftest.$ac_ext
18984cat >>conftest.$ac_ext <<_ACEOF
18985/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000018986
18987/* Override any gcc2 internal prototype to avoid an error. */
18988#ifdef __cplusplus
18989extern "C"
18990#endif
18991/* We use char because int might match the return type of a gcc2
18992 builtin and then its argument prototype would still apply. */
18993char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000018994int
18995main ()
18996{
18997dlopen ();
18998 ;
18999 return 0;
19000}
19001_ACEOF
19002rm -f conftest.$ac_objext conftest$ac_exeext
19003if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000019004 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000019005 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000019006 grep -v '^ *+' conftest.er1 >conftest.err
19007 rm -f conftest.er1
19008 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000019009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19010 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000019011 { ac_try='test -z "$ac_c_werror_flag"
19012 || test ! -s conftest.err'
19013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19014 (eval $ac_try) 2>&5
19015 ac_status=$?
19016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19017 (exit $ac_status); }; } &&
19018 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000019019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19020 (eval $ac_try) 2>&5
19021 ac_status=$?
19022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19023 (exit $ac_status); }; }; then
19024 ac_cv_search_dlopen="none required"
19025else
19026 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019027sed 's/^/| /' conftest.$ac_ext >&5
19028
John Criswell7a73b802003-06-30 21:59:07 +000019029fi
Reid Spencer2b51a082004-08-04 00:34:49 +000019030rm -f conftest.err conftest.$ac_objext \
19031 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000019032if test "$ac_cv_search_dlopen" = no; then
19033 for ac_lib in dl; do
19034 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19035 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000019036/* confdefs.h. */
19037_ACEOF
19038cat confdefs.h >>conftest.$ac_ext
19039cat >>conftest.$ac_ext <<_ACEOF
19040/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019041
19042/* Override any gcc2 internal prototype to avoid an error. */
19043#ifdef __cplusplus
19044extern "C"
19045#endif
19046/* We use char because int might match the return type of a gcc2
19047 builtin and then its argument prototype would still apply. */
19048char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000019049int
19050main ()
19051{
19052dlopen ();
19053 ;
19054 return 0;
19055}
19056_ACEOF
19057rm -f conftest.$ac_objext conftest$ac_exeext
19058if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000019059 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000019060 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000019061 grep -v '^ *+' conftest.er1 >conftest.err
19062 rm -f conftest.er1
19063 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000019064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19065 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000019066 { ac_try='test -z "$ac_c_werror_flag"
19067 || test ! -s conftest.err'
19068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19069 (eval $ac_try) 2>&5
19070 ac_status=$?
19071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19072 (exit $ac_status); }; } &&
19073 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000019074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19075 (eval $ac_try) 2>&5
19076 ac_status=$?
19077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19078 (exit $ac_status); }; }; then
19079 ac_cv_search_dlopen="-l$ac_lib"
19080break
19081else
19082 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019083sed 's/^/| /' conftest.$ac_ext >&5
19084
John Criswell7a73b802003-06-30 21:59:07 +000019085fi
Reid Spencer2b51a082004-08-04 00:34:49 +000019086rm -f conftest.err conftest.$ac_objext \
19087 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000019088 done
19089fi
19090LIBS=$ac_func_search_save_LIBS
19091fi
19092echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
19093echo "${ECHO_T}$ac_cv_search_dlopen" >&6
19094if test "$ac_cv_search_dlopen" != no; then
19095 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000019096
19097cat >>confdefs.h <<\_ACEOF
Brian Gaekec45be042003-10-07 06:01:34 +000019098#define HAVE_DLOPEN 1
19099_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000019100
19101else
Brian Gaekec45be042003-10-07 06:01:34 +000019102 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
19103echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000019104fi
19105
19106
19107echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
19108echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
19109if test "${ac_cv_search_mallinfo+set}" = set; then
19110 echo $ECHO_N "(cached) $ECHO_C" >&6
19111else
19112 ac_func_search_save_LIBS=$LIBS
19113ac_cv_search_mallinfo=no
19114cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000019115/* confdefs.h. */
19116_ACEOF
19117cat confdefs.h >>conftest.$ac_ext
19118cat >>conftest.$ac_ext <<_ACEOF
19119/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019120
19121/* Override any gcc2 internal prototype to avoid an error. */
19122#ifdef __cplusplus
19123extern "C"
19124#endif
19125/* We use char because int might match the return type of a gcc2
19126 builtin and then its argument prototype would still apply. */
19127char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000019128int
19129main ()
19130{
19131mallinfo ();
19132 ;
19133 return 0;
19134}
19135_ACEOF
19136rm -f conftest.$ac_objext conftest$ac_exeext
19137if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000019138 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000019139 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000019140 grep -v '^ *+' conftest.er1 >conftest.err
19141 rm -f conftest.er1
19142 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000019143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19144 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000019145 { ac_try='test -z "$ac_c_werror_flag"
19146 || test ! -s conftest.err'
19147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19148 (eval $ac_try) 2>&5
19149 ac_status=$?
19150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19151 (exit $ac_status); }; } &&
19152 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000019153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19154 (eval $ac_try) 2>&5
19155 ac_status=$?
19156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19157 (exit $ac_status); }; }; then
19158 ac_cv_search_mallinfo="none required"
19159else
19160 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019161sed 's/^/| /' conftest.$ac_ext >&5
19162
John Criswell7a73b802003-06-30 21:59:07 +000019163fi
Reid Spencer2b51a082004-08-04 00:34:49 +000019164rm -f conftest.err conftest.$ac_objext \
19165 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000019166if test "$ac_cv_search_mallinfo" = no; then
19167 for ac_lib in malloc; do
19168 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19169 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000019170/* confdefs.h. */
19171_ACEOF
19172cat confdefs.h >>conftest.$ac_ext
19173cat >>conftest.$ac_ext <<_ACEOF
19174/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019175
19176/* Override any gcc2 internal prototype to avoid an error. */
19177#ifdef __cplusplus
19178extern "C"
19179#endif
19180/* We use char because int might match the return type of a gcc2
19181 builtin and then its argument prototype would still apply. */
19182char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000019183int
19184main ()
19185{
19186mallinfo ();
19187 ;
19188 return 0;
19189}
19190_ACEOF
19191rm -f conftest.$ac_objext conftest$ac_exeext
19192if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000019193 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000019194 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000019195 grep -v '^ *+' conftest.er1 >conftest.err
19196 rm -f conftest.er1
19197 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000019198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19199 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000019200 { ac_try='test -z "$ac_c_werror_flag"
19201 || test ! -s conftest.err'
19202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19203 (eval $ac_try) 2>&5
19204 ac_status=$?
19205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19206 (exit $ac_status); }; } &&
19207 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000019208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19209 (eval $ac_try) 2>&5
19210 ac_status=$?
19211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19212 (exit $ac_status); }; }; then
19213 ac_cv_search_mallinfo="-l$ac_lib"
19214break
19215else
19216 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019217sed 's/^/| /' conftest.$ac_ext >&5
19218
John Criswell7a73b802003-06-30 21:59:07 +000019219fi
Reid Spencer2b51a082004-08-04 00:34:49 +000019220rm -f conftest.err conftest.$ac_objext \
19221 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000019222 done
19223fi
19224LIBS=$ac_func_search_save_LIBS
19225fi
19226echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
19227echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
19228if test "$ac_cv_search_mallinfo" != no; then
19229 test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000019230
19231cat >>confdefs.h <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000019232#define HAVE_MALLINFO 1
19233_ACEOF
19234
19235fi
19236
19237
Brian Gaeke5f268f72003-12-05 19:29:01 +000019238echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
19239echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
19240if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
19241 echo $ECHO_N "(cached) $ECHO_C" >&6
19242else
19243 ac_func_search_save_LIBS=$LIBS
19244ac_cv_search_pthread_mutex_lock=no
19245cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000019246/* confdefs.h. */
19247_ACEOF
19248cat confdefs.h >>conftest.$ac_ext
19249cat >>conftest.$ac_ext <<_ACEOF
19250/* end confdefs.h. */
19251
19252/* Override any gcc2 internal prototype to avoid an error. */
19253#ifdef __cplusplus
19254extern "C"
19255#endif
19256/* We use char because int might match the return type of a gcc2
19257 builtin and then its argument prototype would still apply. */
19258char pthread_mutex_lock ();
19259int
19260main ()
19261{
19262pthread_mutex_lock ();
19263 ;
19264 return 0;
19265}
19266_ACEOF
19267rm -f conftest.$ac_objext conftest$ac_exeext
19268if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000019269 (eval $ac_link) 2>conftest.er1
Brian Gaeke5f268f72003-12-05 19:29:01 +000019270 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000019271 grep -v '^ *+' conftest.er1 >conftest.err
19272 rm -f conftest.er1
19273 cat conftest.err >&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000019274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19275 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000019276 { ac_try='test -z "$ac_c_werror_flag"
19277 || test ! -s conftest.err'
19278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19279 (eval $ac_try) 2>&5
19280 ac_status=$?
19281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19282 (exit $ac_status); }; } &&
19283 { ac_try='test -s conftest$ac_exeext'
Brian Gaeke5f268f72003-12-05 19:29:01 +000019284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19285 (eval $ac_try) 2>&5
19286 ac_status=$?
19287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19288 (exit $ac_status); }; }; then
19289 ac_cv_search_pthread_mutex_lock="none required"
19290else
19291 echo "$as_me: failed program was:" >&5
19292sed 's/^/| /' conftest.$ac_ext >&5
19293
19294fi
Reid Spencer2b51a082004-08-04 00:34:49 +000019295rm -f conftest.err conftest.$ac_objext \
19296 conftest$ac_exeext conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000019297if test "$ac_cv_search_pthread_mutex_lock" = no; then
19298 for ac_lib in pthread; do
19299 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19300 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000019301/* confdefs.h. */
19302_ACEOF
19303cat confdefs.h >>conftest.$ac_ext
19304cat >>conftest.$ac_ext <<_ACEOF
19305/* end confdefs.h. */
19306
19307/* Override any gcc2 internal prototype to avoid an error. */
19308#ifdef __cplusplus
19309extern "C"
19310#endif
19311/* We use char because int might match the return type of a gcc2
19312 builtin and then its argument prototype would still apply. */
19313char pthread_mutex_lock ();
19314int
19315main ()
19316{
19317pthread_mutex_lock ();
19318 ;
19319 return 0;
19320}
19321_ACEOF
19322rm -f conftest.$ac_objext conftest$ac_exeext
19323if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000019324 (eval $ac_link) 2>conftest.er1
Brian Gaeke5f268f72003-12-05 19:29:01 +000019325 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000019326 grep -v '^ *+' conftest.er1 >conftest.err
19327 rm -f conftest.er1
19328 cat conftest.err >&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000019329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19330 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000019331 { ac_try='test -z "$ac_c_werror_flag"
19332 || test ! -s conftest.err'
19333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19334 (eval $ac_try) 2>&5
19335 ac_status=$?
19336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19337 (exit $ac_status); }; } &&
19338 { ac_try='test -s conftest$ac_exeext'
Brian Gaeke5f268f72003-12-05 19:29:01 +000019339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19340 (eval $ac_try) 2>&5
19341 ac_status=$?
19342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19343 (exit $ac_status); }; }; then
19344 ac_cv_search_pthread_mutex_lock="-l$ac_lib"
19345break
19346else
19347 echo "$as_me: failed program was:" >&5
19348sed 's/^/| /' conftest.$ac_ext >&5
19349
19350fi
Reid Spencer2b51a082004-08-04 00:34:49 +000019351rm -f conftest.err conftest.$ac_objext \
19352 conftest$ac_exeext conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000019353 done
19354fi
19355LIBS=$ac_func_search_save_LIBS
19356fi
19357echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
19358echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
19359if test "$ac_cv_search_pthread_mutex_lock" != no; then
19360 test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
Brian Gaekec9a410c2004-02-23 21:30:37 +000019361 HAVE_PTHREAD_MUTEX_LOCK=1
19362else
19363 HAVE_PTHREAD_MUTEX_LOCK=0
Brian Gaeke5f268f72003-12-05 19:29:01 +000019364fi
19365
19366
Brian Gaekec9a410c2004-02-23 21:30:37 +000019367
John Criswell7a73b802003-06-30 21:59:07 +000019368echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19369echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19370if test "${ac_cv_header_stdc+set}" = set; then
19371 echo $ECHO_N "(cached) $ECHO_C" >&6
19372else
19373 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000019374/* confdefs.h. */
19375_ACEOF
19376cat confdefs.h >>conftest.$ac_ext
19377cat >>conftest.$ac_ext <<_ACEOF
19378/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019379#include <stdlib.h>
19380#include <stdarg.h>
19381#include <string.h>
19382#include <float.h>
19383
John Criswell0c38eaf2003-09-10 15:17:25 +000019384int
19385main ()
19386{
19387
19388 ;
19389 return 0;
19390}
John Criswell7a73b802003-06-30 21:59:07 +000019391_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000019392rm -f conftest.$ac_objext
19393if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000019394 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000019395 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000019396 grep -v '^ *+' conftest.er1 >conftest.err
19397 rm -f conftest.er1
19398 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000019399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019400 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000019401 { ac_try='test -z "$ac_c_werror_flag"
19402 || test ! -s conftest.err'
19403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19404 (eval $ac_try) 2>&5
19405 ac_status=$?
19406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19407 (exit $ac_status); }; } &&
19408 { ac_try='test -s conftest.$ac_objext'
John Criswell0c38eaf2003-09-10 15:17:25 +000019409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19410 (eval $ac_try) 2>&5
19411 ac_status=$?
19412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19413 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000019414 ac_cv_header_stdc=yes
19415else
19416 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019417sed 's/^/| /' conftest.$ac_ext >&5
19418
19419ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000019420fi
Reid Spencer2b51a082004-08-04 00:34:49 +000019421rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000019422
19423if test $ac_cv_header_stdc = yes; then
19424 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19425 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000019426/* confdefs.h. */
19427_ACEOF
19428cat confdefs.h >>conftest.$ac_ext
19429cat >>conftest.$ac_ext <<_ACEOF
19430/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019431#include <string.h>
19432
19433_ACEOF
19434if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000019435 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000019436 :
19437else
19438 ac_cv_header_stdc=no
19439fi
19440rm -f conftest*
19441
19442fi
19443
19444if test $ac_cv_header_stdc = yes; then
19445 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
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 <stdlib.h>
19453
19454_ACEOF
19455if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000019456 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000019457 :
19458else
19459 ac_cv_header_stdc=no
19460fi
19461rm -f conftest*
19462
19463fi
19464
19465if test $ac_cv_header_stdc = yes; then
19466 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19467 if test "$cross_compiling" = yes; then
19468 :
19469else
19470 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000019471/* confdefs.h. */
19472_ACEOF
19473cat confdefs.h >>conftest.$ac_ext
19474cat >>conftest.$ac_ext <<_ACEOF
19475/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019476#include <ctype.h>
19477#if ((' ' & 0x0FF) == 0x020)
19478# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19479# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19480#else
John Criswell0c38eaf2003-09-10 15:17:25 +000019481# define ISLOWER(c) \
Reid Spencer2b51a082004-08-04 00:34:49 +000019482 (('a' <= (c) && (c) <= 'i') \
19483 || ('j' <= (c) && (c) <= 'r') \
19484 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +000019485# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19486#endif
19487
19488#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19489int
19490main ()
19491{
19492 int i;
19493 for (i = 0; i < 256; i++)
19494 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2b51a082004-08-04 00:34:49 +000019495 || toupper (i) != TOUPPER (i))
John Criswell7a73b802003-06-30 21:59:07 +000019496 exit(2);
19497 exit (0);
19498}
19499_ACEOF
19500rm -f conftest$ac_exeext
19501if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19502 (eval $ac_link) 2>&5
19503 ac_status=$?
19504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19505 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19507 (eval $ac_try) 2>&5
19508 ac_status=$?
19509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19510 (exit $ac_status); }; }; then
19511 :
19512else
19513 echo "$as_me: program exited with status $ac_status" >&5
19514echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019515sed 's/^/| /' conftest.$ac_ext >&5
19516
John Criswell7a73b802003-06-30 21:59:07 +000019517( exit $ac_status )
19518ac_cv_header_stdc=no
19519fi
Reid Spencer2b51a082004-08-04 00:34:49 +000019520rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000019521fi
19522fi
19523fi
19524echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19525echo "${ECHO_T}$ac_cv_header_stdc" >&6
19526if test $ac_cv_header_stdc = yes; then
19527
19528cat >>confdefs.h <<\_ACEOF
19529#define STDC_HEADERS 1
19530_ACEOF
19531
19532fi
19533
19534echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
19535echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
19536if test "${ac_cv_header_sys_wait_h+set}" = set; then
19537 echo $ECHO_N "(cached) $ECHO_C" >&6
19538else
19539 cat >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#include <sys/types.h>
19546#include <sys/wait.h>
19547#ifndef WEXITSTATUS
19548# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
19549#endif
19550#ifndef WIFEXITED
19551# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
19552#endif
19553
John Criswell7a73b802003-06-30 21:59:07 +000019554int
19555main ()
19556{
19557 int s;
19558 wait (&s);
19559 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
19560 ;
19561 return 0;
19562}
19563_ACEOF
19564rm -f conftest.$ac_objext
19565if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000019566 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000019567 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000019568 grep -v '^ *+' conftest.er1 >conftest.err
19569 rm -f conftest.er1
19570 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000019571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19572 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000019573 { ac_try='test -z "$ac_c_werror_flag"
19574 || test ! -s conftest.err'
19575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19576 (eval $ac_try) 2>&5
19577 ac_status=$?
19578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19579 (exit $ac_status); }; } &&
19580 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000019581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19582 (eval $ac_try) 2>&5
19583 ac_status=$?
19584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19585 (exit $ac_status); }; }; then
19586 ac_cv_header_sys_wait_h=yes
19587else
19588 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019589sed 's/^/| /' conftest.$ac_ext >&5
19590
John Criswell7a73b802003-06-30 21:59:07 +000019591ac_cv_header_sys_wait_h=no
19592fi
Reid Spencer2b51a082004-08-04 00:34:49 +000019593rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000019594fi
19595echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
19596echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
19597if test $ac_cv_header_sys_wait_h = yes; then
19598
19599cat >>confdefs.h <<\_ACEOF
19600#define HAVE_SYS_WAIT_H 1
19601_ACEOF
19602
19603fi
19604
19605
19606
19607
19608
19609
19610
19611
19612
19613
Brian Gaeke26be9c52004-01-13 06:43:16 +000019614
Brian Gaekef5261472004-02-20 06:40:57 +000019615
John Criswellb2815e02004-05-27 20:40:39 +000019616
19617for 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 +000019618do
19619as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19620if eval "test \"\${$as_ac_Header+set}\" = set"; then
19621 echo "$as_me:$LINENO: checking for $ac_header" >&5
19622echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19623if eval "test \"\${$as_ac_Header+set}\" = set"; then
19624 echo $ECHO_N "(cached) $ECHO_C" >&6
19625fi
19626echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19627echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19628else
19629 # Is the header compilable?
19630echo "$as_me:$LINENO: checking $ac_header usability" >&5
19631echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19632cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000019633/* confdefs.h. */
19634_ACEOF
19635cat confdefs.h >>conftest.$ac_ext
19636cat >>conftest.$ac_ext <<_ACEOF
19637/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019638$ac_includes_default
19639#include <$ac_header>
19640_ACEOF
19641rm -f conftest.$ac_objext
19642if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000019643 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000019644 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000019645 grep -v '^ *+' conftest.er1 >conftest.err
19646 rm -f conftest.er1
19647 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000019648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19649 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000019650 { ac_try='test -z "$ac_c_werror_flag"
19651 || test ! -s conftest.err'
19652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19653 (eval $ac_try) 2>&5
19654 ac_status=$?
19655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19656 (exit $ac_status); }; } &&
19657 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000019658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19659 (eval $ac_try) 2>&5
19660 ac_status=$?
19661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19662 (exit $ac_status); }; }; then
19663 ac_header_compiler=yes
19664else
19665 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019666sed 's/^/| /' conftest.$ac_ext >&5
19667
John Criswell7a73b802003-06-30 21:59:07 +000019668ac_header_compiler=no
19669fi
Reid Spencer2b51a082004-08-04 00:34:49 +000019670rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000019671echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19672echo "${ECHO_T}$ac_header_compiler" >&6
19673
19674# Is the header present?
19675echo "$as_me:$LINENO: checking $ac_header presence" >&5
19676echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19677cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000019678/* confdefs.h. */
19679_ACEOF
19680cat confdefs.h >>conftest.$ac_ext
19681cat >>conftest.$ac_ext <<_ACEOF
19682/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019683#include <$ac_header>
19684_ACEOF
19685if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19686 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19687 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000019688 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000019689 rm -f conftest.er1
19690 cat conftest.err >&5
19691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19692 (exit $ac_status); } >/dev/null; then
19693 if test -s conftest.err; then
19694 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2b51a082004-08-04 00:34:49 +000019695 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +000019696 else
19697 ac_cpp_err=
19698 fi
19699else
19700 ac_cpp_err=yes
19701fi
19702if test -z "$ac_cpp_err"; then
19703 ac_header_preproc=yes
19704else
19705 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019706sed 's/^/| /' conftest.$ac_ext >&5
19707
John Criswell7a73b802003-06-30 21:59:07 +000019708 ac_header_preproc=no
19709fi
19710rm -f conftest.err conftest.$ac_ext
19711echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19712echo "${ECHO_T}$ac_header_preproc" >&6
19713
19714# So? What about this header?
Reid Spencer2b51a082004-08-04 00:34:49 +000019715case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19716 yes:no: )
John Criswell7a73b802003-06-30 21:59:07 +000019717 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19718echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2b51a082004-08-04 00:34:49 +000019719 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19720echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19721 ac_header_preproc=yes
John Criswell0c38eaf2003-09-10 15:17:25 +000019722 ;;
Reid Spencer2b51a082004-08-04 00:34:49 +000019723 no:yes:* )
John Criswell7a73b802003-06-30 21:59:07 +000019724 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19725echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2b51a082004-08-04 00:34:49 +000019726 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19727echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19728 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19729echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19730 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19731echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000019732 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019733echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2b51a082004-08-04 00:34:49 +000019734 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19735echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
John Criswell0c38eaf2003-09-10 15:17:25 +000019736 (
19737 cat <<\_ASBOX
Reid Spencer2b51a082004-08-04 00:34:49 +000019738## ----------------------------------- ##
19739## Report this to llvmbugs@cs.uiuc.edu ##
19740## ----------------------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +000019741_ASBOX
19742 ) |
19743 sed "s/^/$as_me: WARNING: /" >&2
19744 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019745esac
19746echo "$as_me:$LINENO: checking for $ac_header" >&5
19747echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19748if eval "test \"\${$as_ac_Header+set}\" = set"; then
19749 echo $ECHO_N "(cached) $ECHO_C" >&6
19750else
Reid Spencer2b51a082004-08-04 00:34:49 +000019751 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +000019752fi
19753echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19754echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19755
19756fi
19757if test `eval echo '${'$as_ac_Header'}'` = yes; then
19758 cat >>confdefs.h <<_ACEOF
19759#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19760_ACEOF
19761
19762fi
19763
19764done
19765
19766
Brian Gaeke6c3fd812004-02-23 22:07:00 +000019767if test "${ac_cv_header_sys_types_h+set}" = set; then
19768 echo "$as_me:$LINENO: checking for sys/types.h" >&5
19769echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
19770if test "${ac_cv_header_sys_types_h+set}" = set; then
19771 echo $ECHO_N "(cached) $ECHO_C" >&6
19772fi
19773echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
19774echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
19775else
19776 # Is the header compilable?
19777echo "$as_me:$LINENO: checking sys/types.h usability" >&5
19778echo $ECHO_N "checking sys/types.h usability... $ECHO_C" >&6
19779cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000019780/* confdefs.h. */
19781_ACEOF
19782cat confdefs.h >>conftest.$ac_ext
19783cat >>conftest.$ac_ext <<_ACEOF
19784/* end confdefs.h. */
19785$ac_includes_default
19786#include <sys/types.h>
19787_ACEOF
19788rm -f conftest.$ac_objext
19789if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000019790 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000019791 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000019792 grep -v '^ *+' conftest.er1 >conftest.err
19793 rm -f conftest.er1
19794 cat conftest.err >&5
Brian Gaeke6c3fd812004-02-23 22:07:00 +000019795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19796 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000019797 { ac_try='test -z "$ac_c_werror_flag"
19798 || test ! -s conftest.err'
19799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19800 (eval $ac_try) 2>&5
19801 ac_status=$?
19802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19803 (exit $ac_status); }; } &&
19804 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6c3fd812004-02-23 22:07:00 +000019805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19806 (eval $ac_try) 2>&5
19807 ac_status=$?
19808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19809 (exit $ac_status); }; }; then
19810 ac_header_compiler=yes
19811else
19812 echo "$as_me: failed program was:" >&5
19813sed 's/^/| /' conftest.$ac_ext >&5
19814
19815ac_header_compiler=no
19816fi
Reid Spencer2b51a082004-08-04 00:34:49 +000019817rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke6c3fd812004-02-23 22:07:00 +000019818echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19819echo "${ECHO_T}$ac_header_compiler" >&6
19820
19821# Is the header present?
19822echo "$as_me:$LINENO: checking sys/types.h presence" >&5
19823echo $ECHO_N "checking sys/types.h presence... $ECHO_C" >&6
19824cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000019825/* confdefs.h. */
19826_ACEOF
19827cat confdefs.h >>conftest.$ac_ext
19828cat >>conftest.$ac_ext <<_ACEOF
19829/* end confdefs.h. */
19830#include <sys/types.h>
19831_ACEOF
19832if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19833 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19834 ac_status=$?
19835 grep -v '^ *+' conftest.er1 >conftest.err
19836 rm -f conftest.er1
19837 cat conftest.err >&5
19838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19839 (exit $ac_status); } >/dev/null; then
19840 if test -s conftest.err; then
19841 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2b51a082004-08-04 00:34:49 +000019842 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Brian Gaeke6c3fd812004-02-23 22:07:00 +000019843 else
19844 ac_cpp_err=
19845 fi
19846else
19847 ac_cpp_err=yes
19848fi
19849if test -z "$ac_cpp_err"; then
19850 ac_header_preproc=yes
19851else
19852 echo "$as_me: failed program was:" >&5
19853sed 's/^/| /' conftest.$ac_ext >&5
19854
19855 ac_header_preproc=no
19856fi
19857rm -f conftest.err conftest.$ac_ext
19858echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19859echo "${ECHO_T}$ac_header_preproc" >&6
19860
19861# So? What about this header?
Reid Spencer2b51a082004-08-04 00:34:49 +000019862case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19863 yes:no: )
Brian Gaeke6c3fd812004-02-23 22:07:00 +000019864 { echo "$as_me:$LINENO: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&5
19865echo "$as_me: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2b51a082004-08-04 00:34:49 +000019866 { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the compiler's result" >&5
19867echo "$as_me: WARNING: sys/types.h: proceeding with the compiler's result" >&2;}
19868 ac_header_preproc=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000019869 ;;
Reid Spencer2b51a082004-08-04 00:34:49 +000019870 no:yes:* )
Brian Gaeke6c3fd812004-02-23 22:07:00 +000019871 { echo "$as_me:$LINENO: WARNING: sys/types.h: present but cannot be compiled" >&5
19872echo "$as_me: WARNING: sys/types.h: present but cannot be compiled" >&2;}
Reid Spencer2b51a082004-08-04 00:34:49 +000019873 { echo "$as_me:$LINENO: WARNING: sys/types.h: check for missing prerequisite headers?" >&5
19874echo "$as_me: WARNING: sys/types.h: check for missing prerequisite headers?" >&2;}
19875 { echo "$as_me:$LINENO: WARNING: sys/types.h: see the Autoconf documentation" >&5
19876echo "$as_me: WARNING: sys/types.h: see the Autoconf documentation" >&2;}
19877 { echo "$as_me:$LINENO: WARNING: sys/types.h: section \"Present But Cannot Be Compiled\"" >&5
19878echo "$as_me: WARNING: sys/types.h: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000019879 { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the preprocessor's result" >&5
19880echo "$as_me: WARNING: sys/types.h: proceeding with the preprocessor's result" >&2;}
Reid Spencer2b51a082004-08-04 00:34:49 +000019881 { echo "$as_me:$LINENO: WARNING: sys/types.h: in the future, the compiler will take precedence" >&5
19882echo "$as_me: WARNING: sys/types.h: in the future, the compiler will take precedence" >&2;}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000019883 (
19884 cat <<\_ASBOX
Reid Spencer2b51a082004-08-04 00:34:49 +000019885## ----------------------------------- ##
19886## Report this to llvmbugs@cs.uiuc.edu ##
19887## ----------------------------------- ##
Brian Gaeke6c3fd812004-02-23 22:07:00 +000019888_ASBOX
19889 ) |
19890 sed "s/^/$as_me: WARNING: /" >&2
19891 ;;
19892esac
19893echo "$as_me:$LINENO: checking for sys/types.h" >&5
19894echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
19895if test "${ac_cv_header_sys_types_h+set}" = set; then
19896 echo $ECHO_N "(cached) $ECHO_C" >&6
19897else
19898 ac_cv_header_sys_types_h=$ac_header_preproc
19899fi
19900echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
19901echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
19902
19903fi
19904if test $ac_cv_header_sys_types_h = yes; then
19905 INCLUDE_SYS_TYPES_H='#include <sys/types.h>'
19906else
19907 INCLUDE_SYS_TYPES_H=''
19908fi
19909
19910
19911
19912if test "${ac_cv_header_inttypes_h+set}" = set; then
19913 echo "$as_me:$LINENO: checking for inttypes.h" >&5
19914echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
19915if test "${ac_cv_header_inttypes_h+set}" = set; then
19916 echo $ECHO_N "(cached) $ECHO_C" >&6
19917fi
19918echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
19919echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6
19920else
19921 # Is the header compilable?
19922echo "$as_me:$LINENO: checking inttypes.h usability" >&5
19923echo $ECHO_N "checking inttypes.h usability... $ECHO_C" >&6
19924cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000019925/* confdefs.h. */
19926_ACEOF
19927cat confdefs.h >>conftest.$ac_ext
19928cat >>conftest.$ac_ext <<_ACEOF
19929/* end confdefs.h. */
19930$ac_includes_default
19931#include <inttypes.h>
19932_ACEOF
19933rm -f conftest.$ac_objext
19934if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000019935 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000019936 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000019937 grep -v '^ *+' conftest.er1 >conftest.err
19938 rm -f conftest.er1
19939 cat conftest.err >&5
Brian Gaeke6c3fd812004-02-23 22:07:00 +000019940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19941 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000019942 { ac_try='test -z "$ac_c_werror_flag"
19943 || test ! -s conftest.err'
19944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19945 (eval $ac_try) 2>&5
19946 ac_status=$?
19947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19948 (exit $ac_status); }; } &&
19949 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6c3fd812004-02-23 22:07:00 +000019950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19951 (eval $ac_try) 2>&5
19952 ac_status=$?
19953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19954 (exit $ac_status); }; }; then
19955 ac_header_compiler=yes
19956else
19957 echo "$as_me: failed program was:" >&5
19958sed 's/^/| /' conftest.$ac_ext >&5
19959
19960ac_header_compiler=no
19961fi
Reid Spencer2b51a082004-08-04 00:34:49 +000019962rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke6c3fd812004-02-23 22:07:00 +000019963echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19964echo "${ECHO_T}$ac_header_compiler" >&6
19965
19966# Is the header present?
19967echo "$as_me:$LINENO: checking inttypes.h presence" >&5
19968echo $ECHO_N "checking inttypes.h presence... $ECHO_C" >&6
19969cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000019970/* confdefs.h. */
19971_ACEOF
19972cat confdefs.h >>conftest.$ac_ext
19973cat >>conftest.$ac_ext <<_ACEOF
19974/* end confdefs.h. */
19975#include <inttypes.h>
19976_ACEOF
19977if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19978 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19979 ac_status=$?
19980 grep -v '^ *+' conftest.er1 >conftest.err
19981 rm -f conftest.er1
19982 cat conftest.err >&5
19983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19984 (exit $ac_status); } >/dev/null; then
19985 if test -s conftest.err; then
19986 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2b51a082004-08-04 00:34:49 +000019987 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Brian Gaeke6c3fd812004-02-23 22:07:00 +000019988 else
19989 ac_cpp_err=
19990 fi
19991else
19992 ac_cpp_err=yes
19993fi
19994if test -z "$ac_cpp_err"; then
19995 ac_header_preproc=yes
19996else
19997 echo "$as_me: failed program was:" >&5
19998sed 's/^/| /' conftest.$ac_ext >&5
19999
20000 ac_header_preproc=no
20001fi
20002rm -f conftest.err conftest.$ac_ext
20003echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20004echo "${ECHO_T}$ac_header_preproc" >&6
20005
20006# So? What about this header?
Reid Spencer2b51a082004-08-04 00:34:49 +000020007case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20008 yes:no: )
Brian Gaeke6c3fd812004-02-23 22:07:00 +000020009 { echo "$as_me:$LINENO: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&5
20010echo "$as_me: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2b51a082004-08-04 00:34:49 +000020011 { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the compiler's result" >&5
20012echo "$as_me: WARNING: inttypes.h: proceeding with the compiler's result" >&2;}
20013 ac_header_preproc=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000020014 ;;
Reid Spencer2b51a082004-08-04 00:34:49 +000020015 no:yes:* )
Brian Gaeke6c3fd812004-02-23 22:07:00 +000020016 { echo "$as_me:$LINENO: WARNING: inttypes.h: present but cannot be compiled" >&5
20017echo "$as_me: WARNING: inttypes.h: present but cannot be compiled" >&2;}
Reid Spencer2b51a082004-08-04 00:34:49 +000020018 { echo "$as_me:$LINENO: WARNING: inttypes.h: check for missing prerequisite headers?" >&5
20019echo "$as_me: WARNING: inttypes.h: check for missing prerequisite headers?" >&2;}
20020 { echo "$as_me:$LINENO: WARNING: inttypes.h: see the Autoconf documentation" >&5
20021echo "$as_me: WARNING: inttypes.h: see the Autoconf documentation" >&2;}
20022 { echo "$as_me:$LINENO: WARNING: inttypes.h: section \"Present But Cannot Be Compiled\"" >&5
20023echo "$as_me: WARNING: inttypes.h: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000020024 { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the preprocessor's result" >&5
20025echo "$as_me: WARNING: inttypes.h: proceeding with the preprocessor's result" >&2;}
Reid Spencer2b51a082004-08-04 00:34:49 +000020026 { echo "$as_me:$LINENO: WARNING: inttypes.h: in the future, the compiler will take precedence" >&5
20027echo "$as_me: WARNING: inttypes.h: in the future, the compiler will take precedence" >&2;}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000020028 (
20029 cat <<\_ASBOX
Reid Spencer2b51a082004-08-04 00:34:49 +000020030## ----------------------------------- ##
20031## Report this to llvmbugs@cs.uiuc.edu ##
20032## ----------------------------------- ##
Brian Gaeke6c3fd812004-02-23 22:07:00 +000020033_ASBOX
20034 ) |
20035 sed "s/^/$as_me: WARNING: /" >&2
20036 ;;
20037esac
20038echo "$as_me:$LINENO: checking for inttypes.h" >&5
20039echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
20040if test "${ac_cv_header_inttypes_h+set}" = set; then
20041 echo $ECHO_N "(cached) $ECHO_C" >&6
20042else
20043 ac_cv_header_inttypes_h=$ac_header_preproc
20044fi
20045echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
20046echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6
20047
20048fi
20049if test $ac_cv_header_inttypes_h = yes; then
20050 INCLUDE_INTTYPES_H='#include <inttypes.h>'
20051else
20052 INCLUDE_INTTYPES_H=''
20053fi
20054
20055
20056
John Criswell7ed43ad2004-07-19 16:12:29 +000020057if test "${ac_cv_header_stdint_h+set}" = set; then
20058 echo "$as_me:$LINENO: checking for stdint.h" >&5
20059echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
20060if test "${ac_cv_header_stdint_h+set}" = set; then
20061 echo $ECHO_N "(cached) $ECHO_C" >&6
20062fi
20063echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
20064echo "${ECHO_T}$ac_cv_header_stdint_h" >&6
20065else
20066 # Is the header compilable?
20067echo "$as_me:$LINENO: checking stdint.h usability" >&5
20068echo $ECHO_N "checking stdint.h usability... $ECHO_C" >&6
20069cat >conftest.$ac_ext <<_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000020070/* confdefs.h. */
20071_ACEOF
20072cat confdefs.h >>conftest.$ac_ext
20073cat >>conftest.$ac_ext <<_ACEOF
20074/* end confdefs.h. */
20075$ac_includes_default
20076#include <stdint.h>
20077_ACEOF
20078rm -f conftest.$ac_objext
20079if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000020080 (eval $ac_compile) 2>conftest.er1
John Criswell7ed43ad2004-07-19 16:12:29 +000020081 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000020082 grep -v '^ *+' conftest.er1 >conftest.err
20083 rm -f conftest.er1
20084 cat conftest.err >&5
John Criswell7ed43ad2004-07-19 16:12:29 +000020085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20086 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000020087 { ac_try='test -z "$ac_c_werror_flag"
20088 || test ! -s conftest.err'
20089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20090 (eval $ac_try) 2>&5
20091 ac_status=$?
20092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20093 (exit $ac_status); }; } &&
20094 { ac_try='test -s conftest.$ac_objext'
John Criswell7ed43ad2004-07-19 16:12:29 +000020095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20096 (eval $ac_try) 2>&5
20097 ac_status=$?
20098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20099 (exit $ac_status); }; }; then
20100 ac_header_compiler=yes
20101else
20102 echo "$as_me: failed program was:" >&5
20103sed 's/^/| /' conftest.$ac_ext >&5
20104
20105ac_header_compiler=no
20106fi
Reid Spencer2b51a082004-08-04 00:34:49 +000020107rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7ed43ad2004-07-19 16:12:29 +000020108echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20109echo "${ECHO_T}$ac_header_compiler" >&6
20110
20111# Is the header present?
20112echo "$as_me:$LINENO: checking stdint.h presence" >&5
20113echo $ECHO_N "checking stdint.h presence... $ECHO_C" >&6
20114cat >conftest.$ac_ext <<_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000020115/* confdefs.h. */
20116_ACEOF
20117cat confdefs.h >>conftest.$ac_ext
20118cat >>conftest.$ac_ext <<_ACEOF
20119/* end confdefs.h. */
20120#include <stdint.h>
20121_ACEOF
20122if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20123 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20124 ac_status=$?
20125 grep -v '^ *+' conftest.er1 >conftest.err
20126 rm -f conftest.er1
20127 cat conftest.err >&5
20128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20129 (exit $ac_status); } >/dev/null; then
20130 if test -s conftest.err; then
20131 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2b51a082004-08-04 00:34:49 +000020132 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
John Criswell7ed43ad2004-07-19 16:12:29 +000020133 else
20134 ac_cpp_err=
20135 fi
20136else
20137 ac_cpp_err=yes
20138fi
20139if test -z "$ac_cpp_err"; then
20140 ac_header_preproc=yes
20141else
20142 echo "$as_me: failed program was:" >&5
20143sed 's/^/| /' conftest.$ac_ext >&5
20144
20145 ac_header_preproc=no
20146fi
20147rm -f conftest.err conftest.$ac_ext
20148echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20149echo "${ECHO_T}$ac_header_preproc" >&6
20150
20151# So? What about this header?
Reid Spencer2b51a082004-08-04 00:34:49 +000020152case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20153 yes:no: )
John Criswell7ed43ad2004-07-19 16:12:29 +000020154 { echo "$as_me:$LINENO: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&5
20155echo "$as_me: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2b51a082004-08-04 00:34:49 +000020156 { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the compiler's result" >&5
20157echo "$as_me: WARNING: stdint.h: proceeding with the compiler's result" >&2;}
20158 ac_header_preproc=yes
John Criswell7ed43ad2004-07-19 16:12:29 +000020159 ;;
Reid Spencer2b51a082004-08-04 00:34:49 +000020160 no:yes:* )
John Criswell7ed43ad2004-07-19 16:12:29 +000020161 { echo "$as_me:$LINENO: WARNING: stdint.h: present but cannot be compiled" >&5
20162echo "$as_me: WARNING: stdint.h: present but cannot be compiled" >&2;}
Reid Spencer2b51a082004-08-04 00:34:49 +000020163 { echo "$as_me:$LINENO: WARNING: stdint.h: check for missing prerequisite headers?" >&5
20164echo "$as_me: WARNING: stdint.h: check for missing prerequisite headers?" >&2;}
20165 { echo "$as_me:$LINENO: WARNING: stdint.h: see the Autoconf documentation" >&5
20166echo "$as_me: WARNING: stdint.h: see the Autoconf documentation" >&2;}
20167 { echo "$as_me:$LINENO: WARNING: stdint.h: section \"Present But Cannot Be Compiled\"" >&5
20168echo "$as_me: WARNING: stdint.h: section \"Present But Cannot Be Compiled\"" >&2;}
John Criswell7ed43ad2004-07-19 16:12:29 +000020169 { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the preprocessor's result" >&5
20170echo "$as_me: WARNING: stdint.h: proceeding with the preprocessor's result" >&2;}
Reid Spencer2b51a082004-08-04 00:34:49 +000020171 { echo "$as_me:$LINENO: WARNING: stdint.h: in the future, the compiler will take precedence" >&5
20172echo "$as_me: WARNING: stdint.h: in the future, the compiler will take precedence" >&2;}
John Criswell7ed43ad2004-07-19 16:12:29 +000020173 (
20174 cat <<\_ASBOX
Reid Spencer2b51a082004-08-04 00:34:49 +000020175## ----------------------------------- ##
20176## Report this to llvmbugs@cs.uiuc.edu ##
20177## ----------------------------------- ##
John Criswell7ed43ad2004-07-19 16:12:29 +000020178_ASBOX
20179 ) |
20180 sed "s/^/$as_me: WARNING: /" >&2
20181 ;;
20182esac
20183echo "$as_me:$LINENO: checking for stdint.h" >&5
20184echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
20185if test "${ac_cv_header_stdint_h+set}" = set; then
20186 echo $ECHO_N "(cached) $ECHO_C" >&6
20187else
20188 ac_cv_header_stdint_h=$ac_header_preproc
20189fi
20190echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
20191echo "${ECHO_T}$ac_cv_header_stdint_h" >&6
20192
20193fi
20194if test $ac_cv_header_stdint_h = yes; then
20195 INCLUDE_STDINT_H='#include <stdint.h>'
20196else
20197 INCLUDE_STDINT_H=''
20198fi
20199
20200
20201
20202
Brian Gaeke6c3fd812004-02-23 22:07:00 +000020203
John Criswell7a73b802003-06-30 21:59:07 +000020204echo "$as_me:$LINENO: checking for pid_t" >&5
20205echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
20206if test "${ac_cv_type_pid_t+set}" = set; then
20207 echo $ECHO_N "(cached) $ECHO_C" >&6
20208else
20209 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000020210/* confdefs.h. */
20211_ACEOF
20212cat confdefs.h >>conftest.$ac_ext
20213cat >>conftest.$ac_ext <<_ACEOF
20214/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020215$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000020216int
20217main ()
20218{
20219if ((pid_t *) 0)
20220 return 0;
20221if (sizeof (pid_t))
20222 return 0;
20223 ;
20224 return 0;
20225}
20226_ACEOF
20227rm -f conftest.$ac_objext
20228if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000020229 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000020230 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000020231 grep -v '^ *+' conftest.er1 >conftest.err
20232 rm -f conftest.er1
20233 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000020234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20235 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000020236 { ac_try='test -z "$ac_c_werror_flag"
20237 || test ! -s conftest.err'
20238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20239 (eval $ac_try) 2>&5
20240 ac_status=$?
20241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20242 (exit $ac_status); }; } &&
20243 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000020244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20245 (eval $ac_try) 2>&5
20246 ac_status=$?
20247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20248 (exit $ac_status); }; }; then
20249 ac_cv_type_pid_t=yes
20250else
20251 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020252sed 's/^/| /' conftest.$ac_ext >&5
20253
John Criswell7a73b802003-06-30 21:59:07 +000020254ac_cv_type_pid_t=no
20255fi
Reid Spencer2b51a082004-08-04 00:34:49 +000020256rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000020257fi
20258echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
20259echo "${ECHO_T}$ac_cv_type_pid_t" >&6
20260if test $ac_cv_type_pid_t = yes; then
20261 :
20262else
20263
20264cat >>confdefs.h <<_ACEOF
20265#define pid_t int
20266_ACEOF
20267
20268fi
20269
20270echo "$as_me:$LINENO: checking for size_t" >&5
20271echo $ECHO_N "checking for size_t... $ECHO_C" >&6
20272if test "${ac_cv_type_size_t+set}" = set; then
20273 echo $ECHO_N "(cached) $ECHO_C" >&6
20274else
20275 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000020276/* confdefs.h. */
20277_ACEOF
20278cat confdefs.h >>conftest.$ac_ext
20279cat >>conftest.$ac_ext <<_ACEOF
20280/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020281$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000020282int
20283main ()
20284{
20285if ((size_t *) 0)
20286 return 0;
20287if (sizeof (size_t))
20288 return 0;
20289 ;
20290 return 0;
20291}
20292_ACEOF
20293rm -f conftest.$ac_objext
20294if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000020295 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000020296 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000020297 grep -v '^ *+' conftest.er1 >conftest.err
20298 rm -f conftest.er1
20299 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000020300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20301 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000020302 { ac_try='test -z "$ac_c_werror_flag"
20303 || test ! -s conftest.err'
20304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20305 (eval $ac_try) 2>&5
20306 ac_status=$?
20307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20308 (exit $ac_status); }; } &&
20309 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000020310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20311 (eval $ac_try) 2>&5
20312 ac_status=$?
20313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20314 (exit $ac_status); }; }; then
20315 ac_cv_type_size_t=yes
20316else
20317 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020318sed 's/^/| /' conftest.$ac_ext >&5
20319
John Criswell7a73b802003-06-30 21:59:07 +000020320ac_cv_type_size_t=no
20321fi
Reid Spencer2b51a082004-08-04 00:34:49 +000020322rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000020323fi
20324echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20325echo "${ECHO_T}$ac_cv_type_size_t" >&6
20326if test $ac_cv_type_size_t = yes; then
20327 :
20328else
20329
20330cat >>confdefs.h <<_ACEOF
20331#define size_t unsigned
20332_ACEOF
20333
20334fi
20335
20336echo "$as_me:$LINENO: checking for int64_t" >&5
20337echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
20338if test "${ac_cv_type_int64_t+set}" = set; then
20339 echo $ECHO_N "(cached) $ECHO_C" >&6
20340else
20341 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000020342/* confdefs.h. */
20343_ACEOF
20344cat confdefs.h >>conftest.$ac_ext
20345cat >>conftest.$ac_ext <<_ACEOF
20346/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020347$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000020348int
20349main ()
20350{
20351if ((int64_t *) 0)
20352 return 0;
20353if (sizeof (int64_t))
20354 return 0;
20355 ;
20356 return 0;
20357}
20358_ACEOF
20359rm -f conftest.$ac_objext
20360if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000020361 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000020362 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000020363 grep -v '^ *+' conftest.er1 >conftest.err
20364 rm -f conftest.er1
20365 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000020366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20367 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000020368 { ac_try='test -z "$ac_c_werror_flag"
20369 || test ! -s conftest.err'
20370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20371 (eval $ac_try) 2>&5
20372 ac_status=$?
20373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20374 (exit $ac_status); }; } &&
20375 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000020376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20377 (eval $ac_try) 2>&5
20378 ac_status=$?
20379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20380 (exit $ac_status); }; }; then
20381 ac_cv_type_int64_t=yes
20382else
20383 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020384sed 's/^/| /' conftest.$ac_ext >&5
20385
John Criswell7a73b802003-06-30 21:59:07 +000020386ac_cv_type_int64_t=no
20387fi
Reid Spencer2b51a082004-08-04 00:34:49 +000020388rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000020389fi
20390echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
20391echo "${ECHO_T}$ac_cv_type_int64_t" >&6
20392if test $ac_cv_type_int64_t = yes; then
20393
20394cat >>confdefs.h <<_ACEOF
20395#define HAVE_INT64_T 1
20396_ACEOF
20397
20398
20399else
20400 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
20401echo "$as_me: error: Type int64_t required but not found" >&2;}
20402 { (exit 1); exit 1; }; }
20403fi
20404
20405echo "$as_me:$LINENO: checking for uint64_t" >&5
20406echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
20407if test "${ac_cv_type_uint64_t+set}" = set; then
20408 echo $ECHO_N "(cached) $ECHO_C" >&6
20409else
20410 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000020411/* confdefs.h. */
20412_ACEOF
20413cat confdefs.h >>conftest.$ac_ext
20414cat >>conftest.$ac_ext <<_ACEOF
20415/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020416$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000020417int
20418main ()
20419{
20420if ((uint64_t *) 0)
20421 return 0;
20422if (sizeof (uint64_t))
20423 return 0;
20424 ;
20425 return 0;
20426}
20427_ACEOF
20428rm -f conftest.$ac_objext
20429if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000020430 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000020431 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000020432 grep -v '^ *+' conftest.er1 >conftest.err
20433 rm -f conftest.er1
20434 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000020435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20436 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000020437 { ac_try='test -z "$ac_c_werror_flag"
20438 || test ! -s conftest.err'
20439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20440 (eval $ac_try) 2>&5
20441 ac_status=$?
20442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20443 (exit $ac_status); }; } &&
20444 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000020445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20446 (eval $ac_try) 2>&5
20447 ac_status=$?
20448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20449 (exit $ac_status); }; }; then
20450 ac_cv_type_uint64_t=yes
20451else
20452 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020453sed 's/^/| /' conftest.$ac_ext >&5
20454
John Criswell7a73b802003-06-30 21:59:07 +000020455ac_cv_type_uint64_t=no
20456fi
Reid Spencer2b51a082004-08-04 00:34:49 +000020457rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000020458fi
20459echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
20460echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
20461if test $ac_cv_type_uint64_t = yes; then
20462
20463cat >>confdefs.h <<_ACEOF
20464#define HAVE_UINT64_T 1
20465_ACEOF
20466
20467
20468else
20469 { { echo "$as_me:$LINENO: error: Type uint64_t required but not found" >&5
20470echo "$as_me: error: Type uint64_t required but not found" >&2;}
20471 { (exit 1); exit 1; }; }
20472fi
20473
20474echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20475echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
20476if test "${ac_cv_header_time+set}" = set; then
20477 echo $ECHO_N "(cached) $ECHO_C" >&6
20478else
20479 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000020480/* confdefs.h. */
20481_ACEOF
20482cat confdefs.h >>conftest.$ac_ext
20483cat >>conftest.$ac_ext <<_ACEOF
20484/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020485#include <sys/types.h>
20486#include <sys/time.h>
20487#include <time.h>
20488
John Criswell7a73b802003-06-30 21:59:07 +000020489int
20490main ()
20491{
20492if ((struct tm *) 0)
20493return 0;
20494 ;
20495 return 0;
20496}
20497_ACEOF
20498rm -f conftest.$ac_objext
20499if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000020500 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000020501 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000020502 grep -v '^ *+' conftest.er1 >conftest.err
20503 rm -f conftest.er1
20504 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000020505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20506 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000020507 { ac_try='test -z "$ac_c_werror_flag"
20508 || test ! -s conftest.err'
20509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20510 (eval $ac_try) 2>&5
20511 ac_status=$?
20512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20513 (exit $ac_status); }; } &&
20514 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000020515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20516 (eval $ac_try) 2>&5
20517 ac_status=$?
20518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20519 (exit $ac_status); }; }; then
20520 ac_cv_header_time=yes
20521else
20522 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020523sed 's/^/| /' conftest.$ac_ext >&5
20524
John Criswell7a73b802003-06-30 21:59:07 +000020525ac_cv_header_time=no
20526fi
Reid Spencer2b51a082004-08-04 00:34:49 +000020527rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000020528fi
20529echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20530echo "${ECHO_T}$ac_cv_header_time" >&6
20531if test $ac_cv_header_time = yes; then
20532
20533cat >>confdefs.h <<\_ACEOF
20534#define TIME_WITH_SYS_TIME 1
20535_ACEOF
20536
20537fi
20538
20539echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20540echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
20541if test "${ac_cv_struct_tm+set}" = set; then
20542 echo $ECHO_N "(cached) $ECHO_C" >&6
20543else
20544 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000020545/* confdefs.h. */
20546_ACEOF
20547cat confdefs.h >>conftest.$ac_ext
20548cat >>conftest.$ac_ext <<_ACEOF
20549/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020550#include <sys/types.h>
20551#include <time.h>
20552
John Criswell7a73b802003-06-30 21:59:07 +000020553int
20554main ()
20555{
20556struct tm *tp; tp->tm_sec;
20557 ;
20558 return 0;
20559}
20560_ACEOF
20561rm -f conftest.$ac_objext
20562if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000020563 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000020564 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000020565 grep -v '^ *+' conftest.er1 >conftest.err
20566 rm -f conftest.er1
20567 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000020568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20569 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000020570 { ac_try='test -z "$ac_c_werror_flag"
20571 || test ! -s conftest.err'
20572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20573 (eval $ac_try) 2>&5
20574 ac_status=$?
20575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20576 (exit $ac_status); }; } &&
20577 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000020578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20579 (eval $ac_try) 2>&5
20580 ac_status=$?
20581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20582 (exit $ac_status); }; }; then
20583 ac_cv_struct_tm=time.h
20584else
20585 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020586sed 's/^/| /' conftest.$ac_ext >&5
20587
John Criswell7a73b802003-06-30 21:59:07 +000020588ac_cv_struct_tm=sys/time.h
20589fi
Reid Spencer2b51a082004-08-04 00:34:49 +000020590rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000020591fi
20592echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
20593echo "${ECHO_T}$ac_cv_struct_tm" >&6
20594if test $ac_cv_struct_tm = sys/time.h; then
20595
20596cat >>confdefs.h <<\_ACEOF
20597#define TM_IN_SYS_TIME 1
20598_ACEOF
20599
20600fi
20601
20602
John Criswella0137d32003-10-13 16:22:01 +000020603
Brian Gaekeadfe28d2004-07-21 03:50:25 +000020604 echo "$as_me:$LINENO: checking for printf %a format specifier" >&5
20605echo $ECHO_N "checking for printf %a format specifier... $ECHO_C" >&6
John Criswella0137d32003-10-13 16:22:01 +000020606
20607
20608 ac_ext=c
20609ac_cpp='$CPP $CPPFLAGS'
20610ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20611ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20612ac_compiler_gnu=$ac_cv_c_compiler_gnu
20613
20614 if test "$cross_compiling" = yes; then
20615 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20616See \`config.log' for more details." >&5
20617echo "$as_me: error: cannot run test program while cross compiling
20618See \`config.log' for more details." >&2;}
20619 { (exit 1); exit 1; }; }
20620else
20621 cat >conftest.$ac_ext <<_ACEOF
John Criswella0137d32003-10-13 16:22:01 +000020622/* confdefs.h. */
20623_ACEOF
20624cat confdefs.h >>conftest.$ac_ext
20625cat >>conftest.$ac_ext <<_ACEOF
20626/* end confdefs.h. */
20627#include <stdio.h>
20628 #include <stdlib.h>
20629int
20630main ()
20631{
20632
20633 volatile double A, B;
20634 char Buffer[100];
20635 A = 1;
20636 A /= 10.0;
20637 sprintf(Buffer, "%a", A);
20638 B = atof(Buffer);
20639 if (A != B)
20640 return (1);
20641 if (A != 0x1.999999999999ap-4)
20642 return (1);
20643 return (0);
20644 ;
20645 return 0;
20646}
20647_ACEOF
20648rm -f conftest$ac_exeext
20649if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20650 (eval $ac_link) 2>&5
20651 ac_status=$?
20652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20653 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20655 (eval $ac_try) 2>&5
20656 ac_status=$?
20657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20658 (exit $ac_status); }; }; then
20659 ac_c_printf_a=yes
20660else
20661 echo "$as_me: program exited with status $ac_status" >&5
20662echo "$as_me: failed program was:" >&5
20663sed 's/^/| /' conftest.$ac_ext >&5
20664
20665( exit $ac_status )
20666ac_c_printf_a=no
20667fi
Reid Spencer2b51a082004-08-04 00:34:49 +000020668rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswella0137d32003-10-13 16:22:01 +000020669fi
20670 ac_ext=c
20671ac_cpp='$CPP $CPPFLAGS'
20672ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20673ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20674ac_compiler_gnu=$ac_cv_c_compiler_gnu
20675
Brian Gaekeadfe28d2004-07-21 03:50:25 +000020676 echo "$as_me:$LINENO: result: $ac_c_printf_a" >&5
20677echo "${ECHO_T}$ac_c_printf_a" >&6
John Criswella0137d32003-10-13 16:22:01 +000020678 if test "$ac_c_printf_a" = "yes"; then
20679
20680cat >>confdefs.h <<\_ACEOF
20681#define HAVE_PRINTF_A 1
20682_ACEOF
20683
20684 fi
20685
20686
John Criswell0021c312004-02-13 21:57:29 +000020687echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20688echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
20689if test "${ac_cv_c_bigendian+set}" = set; then
20690 echo $ECHO_N "(cached) $ECHO_C" >&6
20691else
20692 # See if sys/param.h defines the BYTE_ORDER macro.
20693cat >conftest.$ac_ext <<_ACEOF
John Criswell0021c312004-02-13 21:57:29 +000020694/* confdefs.h. */
20695_ACEOF
20696cat confdefs.h >>conftest.$ac_ext
20697cat >>conftest.$ac_ext <<_ACEOF
20698/* end confdefs.h. */
20699#include <sys/types.h>
20700#include <sys/param.h>
20701
20702int
20703main ()
20704{
20705#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
20706 bogus endian macros
20707#endif
20708
20709 ;
20710 return 0;
20711}
20712_ACEOF
20713rm -f conftest.$ac_objext
20714if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000020715 (eval $ac_compile) 2>conftest.er1
John Criswell0021c312004-02-13 21:57:29 +000020716 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000020717 grep -v '^ *+' conftest.er1 >conftest.err
20718 rm -f conftest.er1
20719 cat conftest.err >&5
John Criswell0021c312004-02-13 21:57:29 +000020720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20721 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000020722 { ac_try='test -z "$ac_c_werror_flag"
20723 || test ! -s conftest.err'
20724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20725 (eval $ac_try) 2>&5
20726 ac_status=$?
20727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20728 (exit $ac_status); }; } &&
20729 { ac_try='test -s conftest.$ac_objext'
John Criswell0021c312004-02-13 21:57:29 +000020730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20731 (eval $ac_try) 2>&5
20732 ac_status=$?
20733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20734 (exit $ac_status); }; }; then
20735 # It does; now see whether it defined to BIG_ENDIAN or not.
20736cat >conftest.$ac_ext <<_ACEOF
John Criswell0021c312004-02-13 21:57:29 +000020737/* confdefs.h. */
20738_ACEOF
20739cat confdefs.h >>conftest.$ac_ext
20740cat >>conftest.$ac_ext <<_ACEOF
20741/* end confdefs.h. */
20742#include <sys/types.h>
20743#include <sys/param.h>
20744
20745int
20746main ()
20747{
20748#if BYTE_ORDER != BIG_ENDIAN
20749 not big endian
20750#endif
20751
20752 ;
20753 return 0;
20754}
20755_ACEOF
20756rm -f conftest.$ac_objext
20757if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000020758 (eval $ac_compile) 2>conftest.er1
John Criswell0021c312004-02-13 21:57:29 +000020759 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000020760 grep -v '^ *+' conftest.er1 >conftest.err
20761 rm -f conftest.er1
20762 cat conftest.err >&5
John Criswell0021c312004-02-13 21:57:29 +000020763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20764 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000020765 { ac_try='test -z "$ac_c_werror_flag"
20766 || test ! -s conftest.err'
20767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20768 (eval $ac_try) 2>&5
20769 ac_status=$?
20770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20771 (exit $ac_status); }; } &&
20772 { ac_try='test -s conftest.$ac_objext'
John Criswell0021c312004-02-13 21:57:29 +000020773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20774 (eval $ac_try) 2>&5
20775 ac_status=$?
20776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20777 (exit $ac_status); }; }; then
20778 ac_cv_c_bigendian=yes
20779else
20780 echo "$as_me: failed program was:" >&5
20781sed 's/^/| /' conftest.$ac_ext >&5
20782
20783ac_cv_c_bigendian=no
20784fi
Reid Spencer2b51a082004-08-04 00:34:49 +000020785rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell0021c312004-02-13 21:57:29 +000020786else
20787 echo "$as_me: failed program was:" >&5
20788sed 's/^/| /' conftest.$ac_ext >&5
20789
20790# It does not; compile a test program.
20791if test "$cross_compiling" = yes; then
20792 # try to guess the endianness by grepping values into an object file
20793 ac_cv_c_bigendian=unknown
20794 cat >conftest.$ac_ext <<_ACEOF
John Criswell0021c312004-02-13 21:57:29 +000020795/* confdefs.h. */
20796_ACEOF
20797cat confdefs.h >>conftest.$ac_ext
20798cat >>conftest.$ac_ext <<_ACEOF
20799/* end confdefs.h. */
20800short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20801short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20802void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
20803short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20804short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20805void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
20806int
20807main ()
20808{
20809 _ascii (); _ebcdic ();
20810 ;
20811 return 0;
20812}
20813_ACEOF
20814rm -f conftest.$ac_objext
20815if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000020816 (eval $ac_compile) 2>conftest.er1
John Criswell0021c312004-02-13 21:57:29 +000020817 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000020818 grep -v '^ *+' conftest.er1 >conftest.err
20819 rm -f conftest.er1
20820 cat conftest.err >&5
John Criswell0021c312004-02-13 21:57:29 +000020821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20822 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000020823 { ac_try='test -z "$ac_c_werror_flag"
20824 || test ! -s conftest.err'
20825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20826 (eval $ac_try) 2>&5
20827 ac_status=$?
20828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20829 (exit $ac_status); }; } &&
20830 { ac_try='test -s conftest.$ac_objext'
John Criswell0021c312004-02-13 21:57:29 +000020831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20832 (eval $ac_try) 2>&5
20833 ac_status=$?
20834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20835 (exit $ac_status); }; }; then
20836 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
20837 ac_cv_c_bigendian=yes
20838fi
20839if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
20840 if test "$ac_cv_c_bigendian" = unknown; then
20841 ac_cv_c_bigendian=no
20842 else
20843 # finding both strings is unlikely to happen, but who knows?
20844 ac_cv_c_bigendian=unknown
20845 fi
20846fi
20847else
20848 echo "$as_me: failed program was:" >&5
20849sed 's/^/| /' conftest.$ac_ext >&5
20850
20851fi
Reid Spencer2b51a082004-08-04 00:34:49 +000020852rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell0021c312004-02-13 21:57:29 +000020853else
20854 cat >conftest.$ac_ext <<_ACEOF
John Criswell0021c312004-02-13 21:57:29 +000020855/* confdefs.h. */
20856_ACEOF
20857cat confdefs.h >>conftest.$ac_ext
20858cat >>conftest.$ac_ext <<_ACEOF
20859/* end confdefs.h. */
20860int
20861main ()
20862{
20863 /* Are we little or big endian? From Harbison&Steele. */
20864 union
20865 {
20866 long l;
20867 char c[sizeof (long)];
20868 } u;
20869 u.l = 1;
20870 exit (u.c[sizeof (long) - 1] == 1);
20871}
20872_ACEOF
20873rm -f conftest$ac_exeext
20874if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20875 (eval $ac_link) 2>&5
20876 ac_status=$?
20877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20878 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20880 (eval $ac_try) 2>&5
20881 ac_status=$?
20882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20883 (exit $ac_status); }; }; then
20884 ac_cv_c_bigendian=no
20885else
20886 echo "$as_me: program exited with status $ac_status" >&5
20887echo "$as_me: failed program was:" >&5
20888sed 's/^/| /' conftest.$ac_ext >&5
20889
20890( exit $ac_status )
20891ac_cv_c_bigendian=yes
20892fi
Reid Spencer2b51a082004-08-04 00:34:49 +000020893rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell0021c312004-02-13 21:57:29 +000020894fi
20895fi
Reid Spencer2b51a082004-08-04 00:34:49 +000020896rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell0021c312004-02-13 21:57:29 +000020897fi
20898echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20899echo "${ECHO_T}$ac_cv_c_bigendian" >&6
20900case $ac_cv_c_bigendian in
20901 yes)
20902 ENDIAN=big
20903 ;;
20904 no)
20905 ENDIAN=little
20906 ;;
20907 *)
20908 { { echo "$as_me:$LINENO: error: unknown endianness
20909presetting ac_cv_c_bigendian=no (or yes) will help" >&5
20910echo "$as_me: error: unknown endianness
20911presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
20912 { (exit 1); exit 1; }; } ;;
20913esac
20914
20915
John Criswell7a73b802003-06-30 21:59:07 +000020916echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
20917echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
20918if test "${ac_cv_cxx_namespaces+set}" = set; then
20919 echo $ECHO_N "(cached) $ECHO_C" >&6
20920else
20921
20922
20923 ac_ext=cc
20924ac_cpp='$CXXCPP $CPPFLAGS'
20925ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20926ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20927ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20928
20929 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000020930/* confdefs.h. */
20931_ACEOF
20932cat confdefs.h >>conftest.$ac_ext
20933cat >>conftest.$ac_ext <<_ACEOF
20934/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020935namespace Outer { namespace Inner { int i = 0; }}
John Criswell7a73b802003-06-30 21:59:07 +000020936int
20937main ()
20938{
20939using namespace Outer::Inner; return i;
20940 ;
20941 return 0;
20942}
20943_ACEOF
20944rm -f conftest.$ac_objext
20945if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000020946 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000020947 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000020948 grep -v '^ *+' conftest.er1 >conftest.err
20949 rm -f conftest.er1
20950 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000020951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20952 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000020953 { ac_try='test -z "$ac_cxx_werror_flag"
20954 || test ! -s conftest.err'
20955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20956 (eval $ac_try) 2>&5
20957 ac_status=$?
20958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20959 (exit $ac_status); }; } &&
20960 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000020961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20962 (eval $ac_try) 2>&5
20963 ac_status=$?
20964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20965 (exit $ac_status); }; }; then
20966 ac_cv_cxx_namespaces=yes
20967else
20968 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020969sed 's/^/| /' conftest.$ac_ext >&5
20970
John Criswell7a73b802003-06-30 21:59:07 +000020971ac_cv_cxx_namespaces=no
20972fi
Reid Spencer2b51a082004-08-04 00:34:49 +000020973rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000020974 ac_ext=c
20975ac_cpp='$CPP $CPPFLAGS'
20976ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20977ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20978ac_compiler_gnu=$ac_cv_c_compiler_gnu
20979
20980
20981fi
20982echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
20983echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
20984if test "$ac_cv_cxx_namespaces" = yes; then
20985
20986cat >>confdefs.h <<\_ACEOF
20987#define HAVE_NAMESPACES
20988_ACEOF
20989
20990fi
20991
Brian Gaeke90583492003-11-10 03:06:28 +000020992echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
20993echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
20994if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000020995 echo $ECHO_N "(cached) $ECHO_C" >&6
20996else
20997
20998
20999
21000 ac_ext=cc
21001ac_cpp='$CXXCPP $CPPFLAGS'
21002ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21003ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21004ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21005
21006 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021007/* confdefs.h. */
21008_ACEOF
21009cat confdefs.h >>conftest.$ac_ext
21010cat >>conftest.$ac_ext <<_ACEOF
21011/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021012#include <ext/hash_map>
21013#ifdef HAVE_NAMESPACES
21014using namespace std;
21015#endif
John Criswell7a73b802003-06-30 21:59:07 +000021016int
21017main ()
21018{
Brian Gaeke90583492003-11-10 03:06:28 +000021019hash_map<int, int> t;
John Criswell7a73b802003-06-30 21:59:07 +000021020 ;
21021 return 0;
21022}
21023_ACEOF
21024rm -f conftest.$ac_objext
21025if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000021026 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000021027 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000021028 grep -v '^ *+' conftest.er1 >conftest.err
21029 rm -f conftest.er1
21030 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000021031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21032 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000021033 { ac_try='test -z "$ac_cxx_werror_flag"
21034 || test ! -s conftest.err'
21035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21036 (eval $ac_try) 2>&5
21037 ac_status=$?
21038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21039 (exit $ac_status); }; } &&
21040 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000021041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21042 (eval $ac_try) 2>&5
21043 ac_status=$?
21044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21045 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000021046 ac_cv_cxx_have_std_ext_hash_map=yes
John Criswell7a73b802003-06-30 21:59:07 +000021047else
21048 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021049sed 's/^/| /' conftest.$ac_ext >&5
21050
Brian Gaeke90583492003-11-10 03:06:28 +000021051ac_cv_cxx_have_std_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000021052fi
Reid Spencer2b51a082004-08-04 00:34:49 +000021053rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021054 ac_ext=c
21055ac_cpp='$CPP $CPPFLAGS'
21056ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21057ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21058ac_compiler_gnu=$ac_cv_c_compiler_gnu
21059
John Criswell7a73b802003-06-30 21:59:07 +000021060fi
Brian Gaeke90583492003-11-10 03:06:28 +000021061echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
21062echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000021063 HAVE_STD_EXT_HASH_MAP=0
21064 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
21065 then
21066 HAVE_STD_EXT_HASH_MAP=1
Brian Gaeke90583492003-11-10 03:06:28 +000021067 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000021068
Brian Gaeke90583492003-11-10 03:06:28 +000021069 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
21070echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
21071if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
21072 echo $ECHO_N "(cached) $ECHO_C" >&6
21073else
21074
21075
21076
21077 ac_ext=cc
21078ac_cpp='$CXXCPP $CPPFLAGS'
21079ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21080ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21081ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21082
21083 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000021084/* confdefs.h. */
21085_ACEOF
21086cat confdefs.h >>conftest.$ac_ext
21087cat >>conftest.$ac_ext <<_ACEOF
21088/* end confdefs.h. */
21089#include <ext/hash_map>
21090#ifdef HAVE_NAMESPACES
21091using namespace __gnu_cxx;
21092#endif
21093int
21094main ()
21095{
21096hash_map<int,int> t;
21097 ;
21098 return 0;
21099}
21100_ACEOF
21101rm -f conftest.$ac_objext
21102if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000021103 (eval $ac_compile) 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000021104 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000021105 grep -v '^ *+' conftest.er1 >conftest.err
21106 rm -f conftest.er1
21107 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000021108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21109 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000021110 { ac_try='test -z "$ac_cxx_werror_flag"
21111 || test ! -s conftest.err'
21112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21113 (eval $ac_try) 2>&5
21114 ac_status=$?
21115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21116 (exit $ac_status); }; } &&
21117 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke90583492003-11-10 03:06:28 +000021118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21119 (eval $ac_try) 2>&5
21120 ac_status=$?
21121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21122 (exit $ac_status); }; }; then
21123 ac_cv_cxx_have_gnu_ext_hash_map=yes
21124else
21125 echo "$as_me: failed program was:" >&5
21126sed 's/^/| /' conftest.$ac_ext >&5
21127
21128ac_cv_cxx_have_gnu_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000021129fi
Reid Spencer2b51a082004-08-04 00:34:49 +000021130rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000021131 ac_ext=c
21132ac_cpp='$CPP $CPPFLAGS'
21133ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21134ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21135ac_compiler_gnu=$ac_cv_c_compiler_gnu
21136
21137fi
21138echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
21139echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000021140 HAVE_GNU_EXT_HASH_MAP=0
21141 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
21142 then
21143 HAVE_GNU_EXT_HASH_MAP=1
Brian Gaeke90583492003-11-10 03:06:28 +000021144 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000021145
Brian Gaeke90583492003-11-10 03:06:28 +000021146 echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
21147echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
21148if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
21149 echo $ECHO_N "(cached) $ECHO_C" >&6
21150else
John Criswell7a73b802003-06-30 21:59:07 +000021151
Brian Gaeke90583492003-11-10 03:06:28 +000021152
21153
21154 ac_ext=cc
21155ac_cpp='$CXXCPP $CPPFLAGS'
21156ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21157ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21158ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21159
21160 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000021161/* confdefs.h. */
21162_ACEOF
21163cat confdefs.h >>conftest.$ac_ext
21164cat >>conftest.$ac_ext <<_ACEOF
21165/* end confdefs.h. */
21166#include <hash_map>
21167int
21168main ()
21169{
21170hash_map<int,int> t;
21171 ;
21172 return 0;
21173}
21174_ACEOF
21175rm -f conftest.$ac_objext
21176if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000021177 (eval $ac_compile) 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000021178 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000021179 grep -v '^ *+' conftest.er1 >conftest.err
21180 rm -f conftest.er1
21181 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000021182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21183 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000021184 { ac_try='test -z "$ac_cxx_werror_flag"
21185 || test ! -s conftest.err'
21186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21187 (eval $ac_try) 2>&5
21188 ac_status=$?
21189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21190 (exit $ac_status); }; } &&
21191 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke90583492003-11-10 03:06:28 +000021192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21193 (eval $ac_try) 2>&5
21194 ac_status=$?
21195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21196 (exit $ac_status); }; }; then
21197 ac_cv_cxx_have_global_hash_map=yes
21198else
21199 echo "$as_me: failed program was:" >&5
21200sed 's/^/| /' conftest.$ac_ext >&5
21201
21202ac_cv_cxx_have_global_hash_map=no
21203fi
Reid Spencer2b51a082004-08-04 00:34:49 +000021204rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000021205 ac_ext=c
21206ac_cpp='$CPP $CPPFLAGS'
21207ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21208ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21209ac_compiler_gnu=$ac_cv_c_compiler_gnu
21210
21211fi
21212echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
21213echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000021214 HAVE_GLOBAL_HASH_MAP=0
21215 if test "$ac_cv_cxx_have_global_hash_map" = yes
21216 then
21217 HAVE_GLOBAL_HASH_MAP=1
Brian Gaeke90583492003-11-10 03:06:28 +000021218 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000021219
Brian Gaeke90583492003-11-10 03:06:28 +000021220echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
21221echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
21222if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000021223 echo $ECHO_N "(cached) $ECHO_C" >&6
21224else
21225
21226
21227
21228 ac_ext=cc
21229ac_cpp='$CXXCPP $CPPFLAGS'
21230ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21231ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21232ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21233
21234 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021235/* confdefs.h. */
21236_ACEOF
21237cat confdefs.h >>conftest.$ac_ext
21238cat >>conftest.$ac_ext <<_ACEOF
21239/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021240#include <ext/hash_set>
21241#ifdef HAVE_NAMESPACES
21242using namespace std;
21243#endif
John Criswell7a73b802003-06-30 21:59:07 +000021244int
21245main ()
21246{
Brian Gaeke90583492003-11-10 03:06:28 +000021247hash_set<int> t;
John Criswell7a73b802003-06-30 21:59:07 +000021248 ;
21249 return 0;
21250}
21251_ACEOF
21252rm -f conftest.$ac_objext
21253if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000021254 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000021255 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000021256 grep -v '^ *+' conftest.er1 >conftest.err
21257 rm -f conftest.er1
21258 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000021259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21260 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000021261 { ac_try='test -z "$ac_cxx_werror_flag"
21262 || test ! -s conftest.err'
21263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21264 (eval $ac_try) 2>&5
21265 ac_status=$?
21266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21267 (exit $ac_status); }; } &&
21268 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000021269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21270 (eval $ac_try) 2>&5
21271 ac_status=$?
21272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21273 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000021274 ac_cv_cxx_have_std_ext_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000021275else
21276 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021277sed 's/^/| /' conftest.$ac_ext >&5
21278
Brian Gaeke90583492003-11-10 03:06:28 +000021279ac_cv_cxx_have_std_ext_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000021280fi
Reid Spencer2b51a082004-08-04 00:34:49 +000021281rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000021282 ac_ext=c
21283ac_cpp='$CPP $CPPFLAGS'
21284ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21285ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21286ac_compiler_gnu=$ac_cv_c_compiler_gnu
21287
21288fi
21289echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
21290echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000021291 HAVE_STD_EXT_HASH_SET=0
21292 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
21293 then
21294 HAVE_STD_EXT_HASH_SET=1
Brian Gaeke90583492003-11-10 03:06:28 +000021295 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000021296
Brian Gaeke90583492003-11-10 03:06:28 +000021297 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
21298echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
21299if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
21300 echo $ECHO_N "(cached) $ECHO_C" >&6
21301else
21302
21303
21304
21305 ac_ext=cc
21306ac_cpp='$CXXCPP $CPPFLAGS'
21307ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21308ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21309ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21310
John Criswell7a73b802003-06-30 21:59:07 +000021311 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021312/* confdefs.h. */
21313_ACEOF
21314cat confdefs.h >>conftest.$ac_ext
21315cat >>conftest.$ac_ext <<_ACEOF
21316/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021317#include <ext/hash_set>
21318#ifdef HAVE_NAMESPACES
21319using namespace __gnu_cxx;
21320#endif
John Criswell7a73b802003-06-30 21:59:07 +000021321int
21322main ()
21323{
Brian Gaeke90583492003-11-10 03:06:28 +000021324hash_set<int> t;
21325 ;
21326 return 0;
21327}
21328_ACEOF
21329rm -f conftest.$ac_objext
21330if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000021331 (eval $ac_compile) 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000021332 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000021333 grep -v '^ *+' conftest.er1 >conftest.err
21334 rm -f conftest.er1
21335 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000021336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21337 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000021338 { ac_try='test -z "$ac_cxx_werror_flag"
21339 || test ! -s conftest.err'
21340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21341 (eval $ac_try) 2>&5
21342 ac_status=$?
21343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21344 (exit $ac_status); }; } &&
21345 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke90583492003-11-10 03:06:28 +000021346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21347 (eval $ac_try) 2>&5
21348 ac_status=$?
21349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21350 (exit $ac_status); }; }; then
21351 ac_cv_cxx_have_gnu_ext_hash_set=yes
21352else
21353 echo "$as_me: failed program was:" >&5
21354sed 's/^/| /' conftest.$ac_ext >&5
21355
21356ac_cv_cxx_have_gnu_ext_hash_set=no
21357fi
Reid Spencer2b51a082004-08-04 00:34:49 +000021358rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000021359 ac_ext=c
21360ac_cpp='$CPP $CPPFLAGS'
21361ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21362ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21363ac_compiler_gnu=$ac_cv_c_compiler_gnu
21364
21365fi
21366echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
21367echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000021368 HAVE_GNU_EXT_HASH_SET=0
21369 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
21370 then
21371 HAVE_GNU_EXT_HASH_SET=1
Brian Gaeke90583492003-11-10 03:06:28 +000021372 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000021373
Brian Gaeke90583492003-11-10 03:06:28 +000021374 echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
21375echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
21376if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
21377 echo $ECHO_N "(cached) $ECHO_C" >&6
21378else
21379
21380
21381
21382 ac_ext=cc
21383ac_cpp='$CXXCPP $CPPFLAGS'
21384ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21385ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21386ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21387
21388 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000021389/* confdefs.h. */
21390_ACEOF
21391cat confdefs.h >>conftest.$ac_ext
21392cat >>conftest.$ac_ext <<_ACEOF
21393/* end confdefs.h. */
21394#include <hash_set>
21395int
21396main ()
21397{
John Criswell7a73b802003-06-30 21:59:07 +000021398hash_set<int> t; return 0;
21399 ;
21400 return 0;
21401}
21402_ACEOF
21403rm -f conftest.$ac_objext
21404if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000021405 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000021406 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000021407 grep -v '^ *+' conftest.er1 >conftest.err
21408 rm -f conftest.er1
21409 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000021410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21411 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000021412 { ac_try='test -z "$ac_cxx_werror_flag"
21413 || test ! -s conftest.err'
21414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21415 (eval $ac_try) 2>&5
21416 ac_status=$?
21417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21418 (exit $ac_status); }; } &&
21419 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000021420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21421 (eval $ac_try) 2>&5
21422 ac_status=$?
21423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21424 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000021425 ac_cv_cxx_have_global_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000021426else
21427 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021428sed 's/^/| /' conftest.$ac_ext >&5
21429
Brian Gaeke90583492003-11-10 03:06:28 +000021430ac_cv_cxx_have_global_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000021431fi
Reid Spencer2b51a082004-08-04 00:34:49 +000021432rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021433 ac_ext=c
21434ac_cpp='$CPP $CPPFLAGS'
21435ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21436ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21437ac_compiler_gnu=$ac_cv_c_compiler_gnu
21438
John Criswell7a73b802003-06-30 21:59:07 +000021439fi
Brian Gaeke90583492003-11-10 03:06:28 +000021440echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
21441echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000021442 HAVE_GLOBAL_HASH_SET=0
21443 if test "$ac_cv_cxx_have_global_hash_set" = yes
21444 then
21445 HAVE_GLOBAL_HASH_SET=1
Brian Gaeke90583492003-11-10 03:06:28 +000021446 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000021447
John Criswell7a73b802003-06-30 21:59:07 +000021448echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
21449echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
21450if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
21451 echo $ECHO_N "(cached) $ECHO_C" >&6
21452else
21453
21454
21455
21456 ac_ext=cc
21457ac_cpp='$CXXCPP $CPPFLAGS'
21458ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21459ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21460ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21461
21462 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021463/* confdefs.h. */
21464_ACEOF
21465cat confdefs.h >>conftest.$ac_ext
21466cat >>conftest.$ac_ext <<_ACEOF
21467/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021468#include <iterator>
21469#ifdef HAVE_NAMESPACES
21470using namespace std;
21471#endif
John Criswell7a73b802003-06-30 21:59:07 +000021472int
21473main ()
21474{
21475iterator<int,int,int> t; return 0;
21476 ;
21477 return 0;
21478}
21479_ACEOF
21480rm -f conftest.$ac_objext
21481if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000021482 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000021483 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000021484 grep -v '^ *+' conftest.er1 >conftest.err
21485 rm -f conftest.er1
21486 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000021487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21488 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000021489 { ac_try='test -z "$ac_cxx_werror_flag"
21490 || test ! -s conftest.err'
21491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21492 (eval $ac_try) 2>&5
21493 ac_status=$?
21494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21495 (exit $ac_status); }; } &&
21496 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000021497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21498 (eval $ac_try) 2>&5
21499 ac_status=$?
21500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21501 (exit $ac_status); }; }; then
21502 ac_cv_cxx_have_std_iterator=yes
21503else
21504 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021505sed 's/^/| /' conftest.$ac_ext >&5
21506
John Criswell7a73b802003-06-30 21:59:07 +000021507ac_cv_cxx_have_std_iterator=no
21508fi
Reid Spencer2b51a082004-08-04 00:34:49 +000021509rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021510 ac_ext=c
21511ac_cpp='$CPP $CPPFLAGS'
21512ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21513ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21514ac_compiler_gnu=$ac_cv_c_compiler_gnu
21515
21516
21517fi
21518echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
21519echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
Brian Gaeke295d4b82004-02-23 18:16:06 +000021520HAVE_STD_ITERATOR=0
21521if test "$ac_cv_cxx_have_std_iterator" = yes
21522then
21523 HAVE_STD_ITERATOR=1
John Criswell7a73b802003-06-30 21:59:07 +000021524fi
21525
21526echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
21527echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
21528if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
21529 echo $ECHO_N "(cached) $ECHO_C" >&6
21530else
21531
21532
21533
21534 ac_ext=cc
21535ac_cpp='$CXXCPP $CPPFLAGS'
21536ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21537ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21538ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21539
21540 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021541/* confdefs.h. */
21542_ACEOF
21543cat confdefs.h >>conftest.$ac_ext
21544cat >>conftest.$ac_ext <<_ACEOF
21545/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021546#include <iterator>
21547#ifdef HAVE_NAMESPACES
21548using namespace std;
21549#endif
John Criswell7a73b802003-06-30 21:59:07 +000021550int
21551main ()
21552{
John Criswellc78022e2003-07-29 19:11:58 +000021553bidirectional_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000021554 ;
21555 return 0;
21556}
21557_ACEOF
21558rm -f conftest.$ac_objext
21559if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000021560 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000021561 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000021562 grep -v '^ *+' conftest.er1 >conftest.err
21563 rm -f conftest.er1
21564 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000021565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21566 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000021567 { ac_try='test -z "$ac_cxx_werror_flag"
21568 || test ! -s conftest.err'
21569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21570 (eval $ac_try) 2>&5
21571 ac_status=$?
21572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21573 (exit $ac_status); }; } &&
21574 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000021575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21576 (eval $ac_try) 2>&5
21577 ac_status=$?
21578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21579 (exit $ac_status); }; }; then
21580 ac_cv_cxx_have_bi_iterator=yes
21581else
21582 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021583sed 's/^/| /' conftest.$ac_ext >&5
21584
John Criswell7a73b802003-06-30 21:59:07 +000021585ac_cv_cxx_have_bi_iterator=no
21586fi
Reid Spencer2b51a082004-08-04 00:34:49 +000021587rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021588 ac_ext=c
21589ac_cpp='$CPP $CPPFLAGS'
21590ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21591ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21592ac_compiler_gnu=$ac_cv_c_compiler_gnu
21593
21594
21595fi
21596echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
21597echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
Brian Gaeke295d4b82004-02-23 18:16:06 +000021598HAVE_BI_ITERATOR=0
21599if test "$ac_cv_cxx_have_bi_iterator" = yes
21600then
21601 HAVE_BI_ITERATOR=1
John Criswell7a73b802003-06-30 21:59:07 +000021602fi
21603
21604echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
21605echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
21606if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
21607 echo $ECHO_N "(cached) $ECHO_C" >&6
21608else
21609
21610
21611
21612 ac_ext=cc
21613ac_cpp='$CXXCPP $CPPFLAGS'
21614ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21615ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21616ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21617
21618 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021619/* confdefs.h. */
21620_ACEOF
21621cat confdefs.h >>conftest.$ac_ext
21622cat >>conftest.$ac_ext <<_ACEOF
21623/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021624#include <iterator>
21625#ifdef HAVE_NAMESPACES
21626using namespace std;
21627#endif
John Criswell7a73b802003-06-30 21:59:07 +000021628int
21629main ()
21630{
John Criswellc78022e2003-07-29 19:11:58 +000021631forward_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000021632 ;
21633 return 0;
21634}
21635_ACEOF
21636rm -f conftest.$ac_objext
21637if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000021638 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000021639 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000021640 grep -v '^ *+' conftest.er1 >conftest.err
21641 rm -f conftest.er1
21642 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000021643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21644 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000021645 { ac_try='test -z "$ac_cxx_werror_flag"
21646 || test ! -s conftest.err'
21647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21648 (eval $ac_try) 2>&5
21649 ac_status=$?
21650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21651 (exit $ac_status); }; } &&
21652 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000021653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21654 (eval $ac_try) 2>&5
21655 ac_status=$?
21656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21657 (exit $ac_status); }; }; then
21658 ac_cv_cxx_have_fwd_iterator=yes
21659else
21660 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021661sed 's/^/| /' conftest.$ac_ext >&5
21662
John Criswell7a73b802003-06-30 21:59:07 +000021663ac_cv_cxx_have_fwd_iterator=no
21664fi
Reid Spencer2b51a082004-08-04 00:34:49 +000021665rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021666 ac_ext=c
21667ac_cpp='$CPP $CPPFLAGS'
21668ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21669ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21670ac_compiler_gnu=$ac_cv_c_compiler_gnu
21671
21672
21673fi
21674echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
21675echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
Brian Gaeke295d4b82004-02-23 18:16:06 +000021676HAVE_FWD_ITERATOR=0
21677if test "$ac_cv_cxx_have_fwd_iterator" = yes
21678then
21679 HAVE_FWD_ITERATOR=1
John Criswell7a73b802003-06-30 21:59:07 +000021680fi
21681
21682
Brian Gaeke6f5b6212004-06-22 23:47:13 +000021683
21684echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
21685echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6
21686if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
21687 echo $ECHO_N "(cached) $ECHO_C" >&6
21688else
21689 ac_ext=cc
21690ac_cpp='$CXXCPP $CPPFLAGS'
21691ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21692ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21693ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21694
21695 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000021696/* confdefs.h. */
21697_ACEOF
21698cat confdefs.h >>conftest.$ac_ext
21699cat >>conftest.$ac_ext <<_ACEOF
21700/* end confdefs.h. */
21701#include <math.h>
21702 int foo(float f) {return isnan(f);}
21703_ACEOF
21704rm -f conftest.$ac_objext
21705if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000021706 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000021707 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000021708 grep -v '^ *+' conftest.er1 >conftest.err
21709 rm -f conftest.er1
21710 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000021711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21712 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000021713 { ac_try='test -z "$ac_cxx_werror_flag"
21714 || test ! -s conftest.err'
21715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21716 (eval $ac_try) 2>&5
21717 ac_status=$?
21718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21719 (exit $ac_status); }; } &&
21720 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6f5b6212004-06-22 23:47:13 +000021721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21722 (eval $ac_try) 2>&5
21723 ac_status=$?
21724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21725 (exit $ac_status); }; }; then
21726 ac_cv_func_isnan_in_math_h=yes
21727else
21728 echo "$as_me: failed program was:" >&5
21729sed 's/^/| /' conftest.$ac_ext >&5
21730
21731ac_cv_func_isnan_in_math_h=no
21732fi
Reid Spencer2b51a082004-08-04 00:34:49 +000021733rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke6f5b6212004-06-22 23:47:13 +000021734 ac_ext=c
21735ac_cpp='$CPP $CPPFLAGS'
21736ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21737ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21738ac_compiler_gnu=$ac_cv_c_compiler_gnu
21739
21740fi
21741echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
21742echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6
21743 if test "$ac_cv_func_isnan_in_math_h" = "yes"
21744 then
21745
21746cat >>confdefs.h <<\_ACEOF
21747#define HAVE_ISNAN_IN_MATH_H 1
21748_ACEOF
21749
21750 fi
21751echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
21752echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6
21753if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
21754 echo $ECHO_N "(cached) $ECHO_C" >&6
21755else
21756 ac_ext=cc
21757ac_cpp='$CXXCPP $CPPFLAGS'
21758ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21759ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21760ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21761
21762 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000021763/* confdefs.h. */
21764_ACEOF
21765cat confdefs.h >>conftest.$ac_ext
21766cat >>conftest.$ac_ext <<_ACEOF
21767/* end confdefs.h. */
21768#include <cmath>
21769 int foo(float f) {return isnan(f);}
21770_ACEOF
21771rm -f conftest.$ac_objext
21772if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000021773 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000021774 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000021775 grep -v '^ *+' conftest.er1 >conftest.err
21776 rm -f conftest.er1
21777 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000021778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21779 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000021780 { ac_try='test -z "$ac_cxx_werror_flag"
21781 || test ! -s conftest.err'
21782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21783 (eval $ac_try) 2>&5
21784 ac_status=$?
21785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21786 (exit $ac_status); }; } &&
21787 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6f5b6212004-06-22 23:47:13 +000021788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21789 (eval $ac_try) 2>&5
21790 ac_status=$?
21791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21792 (exit $ac_status); }; }; then
21793 ac_cv_func_isnan_in_cmath=yes
21794else
21795 echo "$as_me: failed program was:" >&5
21796sed 's/^/| /' conftest.$ac_ext >&5
21797
21798ac_cv_func_isnan_in_cmath=no
21799fi
Reid Spencer2b51a082004-08-04 00:34:49 +000021800rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke6f5b6212004-06-22 23:47:13 +000021801 ac_ext=c
21802ac_cpp='$CPP $CPPFLAGS'
21803ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21804ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21805ac_compiler_gnu=$ac_cv_c_compiler_gnu
21806
21807fi
21808echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
21809echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6
21810 if test "$ac_cv_func_isnan_in_cmath" = "yes"
21811 then
21812
21813cat >>confdefs.h <<\_ACEOF
21814#define HAVE_ISNAN_IN_CMATH 1
21815_ACEOF
21816
21817 fi
21818echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
21819echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6
21820if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
21821 echo $ECHO_N "(cached) $ECHO_C" >&6
21822else
21823 ac_ext=cc
21824ac_cpp='$CXXCPP $CPPFLAGS'
21825ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21826ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21827ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21828
21829 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000021830/* confdefs.h. */
21831_ACEOF
21832cat confdefs.h >>conftest.$ac_ext
21833cat >>conftest.$ac_ext <<_ACEOF
21834/* end confdefs.h. */
21835#include <cmath>
21836 using std::isnan; int foo(float f) {return isnan(f);}
21837_ACEOF
21838rm -f conftest.$ac_objext
21839if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000021840 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000021841 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000021842 grep -v '^ *+' conftest.er1 >conftest.err
21843 rm -f conftest.er1
21844 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000021845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21846 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000021847 { ac_try='test -z "$ac_cxx_werror_flag"
21848 || test ! -s conftest.err'
21849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21850 (eval $ac_try) 2>&5
21851 ac_status=$?
21852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21853 (exit $ac_status); }; } &&
21854 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6f5b6212004-06-22 23:47:13 +000021855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21856 (eval $ac_try) 2>&5
21857 ac_status=$?
21858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21859 (exit $ac_status); }; }; then
21860 ac_cv_func_std_isnan_in_cmath=yes
21861else
21862 echo "$as_me: failed program was:" >&5
21863sed 's/^/| /' conftest.$ac_ext >&5
21864
21865ac_cv_func_std_isnan_in_cmath=no
21866fi
Reid Spencer2b51a082004-08-04 00:34:49 +000021867rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke6f5b6212004-06-22 23:47:13 +000021868 ac_ext=c
21869ac_cpp='$CPP $CPPFLAGS'
21870ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21871ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21872ac_compiler_gnu=$ac_cv_c_compiler_gnu
21873
21874fi
21875echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
21876echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6
21877 if test "$ac_cv_func_std_isnan_in_cmath" = "yes"
21878 then
21879
21880cat >>confdefs.h <<\_ACEOF
21881#define HAVE_STD_ISNAN_IN_CMATH 1
21882_ACEOF
21883
21884 fi
21885
21886
Brian Gaeke52a551d2004-07-21 03:14:12 +000021887echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
21888echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6
21889if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
21890 echo $ECHO_N "(cached) $ECHO_C" >&6
21891else
21892 ac_ext=cc
21893ac_cpp='$CXXCPP $CPPFLAGS'
21894ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21895ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21896ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21897
21898 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000021899/* confdefs.h. */
21900_ACEOF
21901cat confdefs.h >>conftest.$ac_ext
21902cat >>conftest.$ac_ext <<_ACEOF
21903/* end confdefs.h. */
21904#include <math.h>
21905 int foo(float f) {return isinf(f);}
21906_ACEOF
21907rm -f conftest.$ac_objext
21908if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000021909 (eval $ac_compile) 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000021910 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000021911 grep -v '^ *+' conftest.er1 >conftest.err
21912 rm -f conftest.er1
21913 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000021914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21915 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000021916 { ac_try='test -z "$ac_cxx_werror_flag"
21917 || test ! -s conftest.err'
21918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21919 (eval $ac_try) 2>&5
21920 ac_status=$?
21921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21922 (exit $ac_status); }; } &&
21923 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke52a551d2004-07-21 03:14:12 +000021924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21925 (eval $ac_try) 2>&5
21926 ac_status=$?
21927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21928 (exit $ac_status); }; }; then
21929 ac_cv_func_isinf_in_math_h=yes
21930else
21931 echo "$as_me: failed program was:" >&5
21932sed 's/^/| /' conftest.$ac_ext >&5
21933
21934ac_cv_func_isinf_in_math_h=no
21935fi
Reid Spencer2b51a082004-08-04 00:34:49 +000021936rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke52a551d2004-07-21 03:14:12 +000021937 ac_ext=c
21938ac_cpp='$CPP $CPPFLAGS'
21939ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21940ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21941ac_compiler_gnu=$ac_cv_c_compiler_gnu
21942
21943fi
21944echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
21945echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6
21946 if test "$ac_cv_func_isinf_in_math_h" = "yes"
21947 then
21948
21949cat >>confdefs.h <<\_ACEOF
21950#define HAVE_ISINF_IN_MATH_H 1
21951_ACEOF
21952
21953 fi
21954echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
21955echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6
21956if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
21957 echo $ECHO_N "(cached) $ECHO_C" >&6
21958else
21959 ac_ext=cc
21960ac_cpp='$CXXCPP $CPPFLAGS'
21961ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21962ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21963ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21964
21965 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000021966/* confdefs.h. */
21967_ACEOF
21968cat confdefs.h >>conftest.$ac_ext
21969cat >>conftest.$ac_ext <<_ACEOF
21970/* end confdefs.h. */
21971#include <cmath>
21972 int foo(float f) {return isinf(f);}
21973_ACEOF
21974rm -f conftest.$ac_objext
21975if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000021976 (eval $ac_compile) 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000021977 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000021978 grep -v '^ *+' conftest.er1 >conftest.err
21979 rm -f conftest.er1
21980 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000021981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21982 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000021983 { ac_try='test -z "$ac_cxx_werror_flag"
21984 || test ! -s conftest.err'
21985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21986 (eval $ac_try) 2>&5
21987 ac_status=$?
21988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21989 (exit $ac_status); }; } &&
21990 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke52a551d2004-07-21 03:14:12 +000021991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21992 (eval $ac_try) 2>&5
21993 ac_status=$?
21994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21995 (exit $ac_status); }; }; then
21996 ac_cv_func_isinf_in_cmath=yes
21997else
21998 echo "$as_me: failed program was:" >&5
21999sed 's/^/| /' conftest.$ac_ext >&5
22000
22001ac_cv_func_isinf_in_cmath=no
22002fi
Reid Spencer2b51a082004-08-04 00:34:49 +000022003rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke52a551d2004-07-21 03:14:12 +000022004 ac_ext=c
22005ac_cpp='$CPP $CPPFLAGS'
22006ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22007ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22008ac_compiler_gnu=$ac_cv_c_compiler_gnu
22009
22010fi
22011echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
22012echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6
22013 if test "$ac_cv_func_isinf_in_cmath" = "yes"
22014 then
22015
22016cat >>confdefs.h <<\_ACEOF
22017#define HAVE_ISINF_IN_CMATH 1
22018_ACEOF
22019
22020 fi
22021echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
22022echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6
22023if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
22024 echo $ECHO_N "(cached) $ECHO_C" >&6
22025else
22026 ac_ext=cc
22027ac_cpp='$CXXCPP $CPPFLAGS'
22028ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22029ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22030ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22031
22032 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000022033/* confdefs.h. */
22034_ACEOF
22035cat confdefs.h >>conftest.$ac_ext
22036cat >>conftest.$ac_ext <<_ACEOF
22037/* end confdefs.h. */
22038#include <cmath>
22039 using std::isinf; int foo(float f) {return isinf(f);}
22040_ACEOF
22041rm -f conftest.$ac_objext
22042if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000022043 (eval $ac_compile) 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000022044 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000022045 grep -v '^ *+' conftest.er1 >conftest.err
22046 rm -f conftest.er1
22047 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000022048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22049 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000022050 { ac_try='test -z "$ac_cxx_werror_flag"
22051 || test ! -s conftest.err'
22052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22053 (eval $ac_try) 2>&5
22054 ac_status=$?
22055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22056 (exit $ac_status); }; } &&
22057 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke52a551d2004-07-21 03:14:12 +000022058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22059 (eval $ac_try) 2>&5
22060 ac_status=$?
22061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22062 (exit $ac_status); }; }; then
22063 ac_cv_func_std_isinf_in_cmath=yes
22064else
22065 echo "$as_me: failed program was:" >&5
22066sed 's/^/| /' conftest.$ac_ext >&5
22067
22068ac_cv_func_std_isinf_in_cmath=no
22069fi
Reid Spencer2b51a082004-08-04 00:34:49 +000022070rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke52a551d2004-07-21 03:14:12 +000022071 ac_ext=c
22072ac_cpp='$CPP $CPPFLAGS'
22073ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22074ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22075ac_compiler_gnu=$ac_cv_c_compiler_gnu
22076
22077fi
22078echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
22079echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6
22080 if test "$ac_cv_func_std_isinf_in_cmath" = "yes"
22081 then
22082
22083cat >>confdefs.h <<\_ACEOF
22084#define HAVE_STD_ISINF_IN_CMATH 1
22085_ACEOF
22086
22087 fi
Brian Gaeked59a6472004-07-21 03:33:58 +000022088echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
22089echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6
22090if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
22091 echo $ECHO_N "(cached) $ECHO_C" >&6
22092else
22093 ac_ext=cc
22094ac_cpp='$CXXCPP $CPPFLAGS'
22095ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22096ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22097ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22098
22099 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000022100/* confdefs.h. */
22101_ACEOF
22102cat confdefs.h >>conftest.$ac_ext
22103cat >>conftest.$ac_ext <<_ACEOF
22104/* end confdefs.h. */
22105#include <ieeefp.h>
22106 int foo(float f) {return finite(f);}
22107_ACEOF
22108rm -f conftest.$ac_objext
22109if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000022110 (eval $ac_compile) 2>conftest.er1
Brian Gaeked59a6472004-07-21 03:33:58 +000022111 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000022112 grep -v '^ *+' conftest.er1 >conftest.err
22113 rm -f conftest.er1
22114 cat conftest.err >&5
Brian Gaeked59a6472004-07-21 03:33:58 +000022115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22116 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000022117 { ac_try='test -z "$ac_cxx_werror_flag"
22118 || test ! -s conftest.err'
22119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22120 (eval $ac_try) 2>&5
22121 ac_status=$?
22122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22123 (exit $ac_status); }; } &&
22124 { ac_try='test -s conftest.$ac_objext'
Brian Gaeked59a6472004-07-21 03:33:58 +000022125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22126 (eval $ac_try) 2>&5
22127 ac_status=$?
22128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22129 (exit $ac_status); }; }; then
22130 ac_cv_func_finite_in_ieeefp_h=yes
22131else
22132 echo "$as_me: failed program was:" >&5
22133sed 's/^/| /' conftest.$ac_ext >&5
22134
22135ac_cv_func_finite_in_ieeefp_h=no
22136fi
Reid Spencer2b51a082004-08-04 00:34:49 +000022137rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeked59a6472004-07-21 03:33:58 +000022138 ac_ext=c
22139ac_cpp='$CPP $CPPFLAGS'
22140ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22141ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22142ac_compiler_gnu=$ac_cv_c_compiler_gnu
22143
22144fi
22145echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
22146echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6
22147 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes"
22148 then
22149
22150cat >>confdefs.h <<\_ACEOF
22151#define HAVE_FINITE_IN_IEEEFP_H 1
22152_ACEOF
22153
22154 fi
Brian Gaeke52a551d2004-07-21 03:14:12 +000022155
22156
John Criswell7a73b802003-06-30 21:59:07 +000022157# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
22158# for constant arguments. Useless!
22159echo "$as_me:$LINENO: checking for working alloca.h" >&5
22160echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
22161if test "${ac_cv_working_alloca_h+set}" = set; then
22162 echo $ECHO_N "(cached) $ECHO_C" >&6
22163else
22164 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000022165/* confdefs.h. */
22166_ACEOF
22167cat confdefs.h >>conftest.$ac_ext
22168cat >>conftest.$ac_ext <<_ACEOF
22169/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022170#include <alloca.h>
John Criswell7a73b802003-06-30 21:59:07 +000022171int
22172main ()
22173{
22174char *p = (char *) alloca (2 * sizeof (int));
22175 ;
22176 return 0;
22177}
22178_ACEOF
22179rm -f conftest.$ac_objext conftest$ac_exeext
22180if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000022181 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000022182 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000022183 grep -v '^ *+' conftest.er1 >conftest.err
22184 rm -f conftest.er1
22185 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000022186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22187 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000022188 { ac_try='test -z "$ac_c_werror_flag"
22189 || test ! -s conftest.err'
22190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22191 (eval $ac_try) 2>&5
22192 ac_status=$?
22193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22194 (exit $ac_status); }; } &&
22195 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000022196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22197 (eval $ac_try) 2>&5
22198 ac_status=$?
22199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22200 (exit $ac_status); }; }; then
22201 ac_cv_working_alloca_h=yes
22202else
22203 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022204sed 's/^/| /' conftest.$ac_ext >&5
22205
John Criswell7a73b802003-06-30 21:59:07 +000022206ac_cv_working_alloca_h=no
22207fi
Reid Spencer2b51a082004-08-04 00:34:49 +000022208rm -f conftest.err conftest.$ac_objext \
22209 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000022210fi
22211echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
22212echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
22213if test $ac_cv_working_alloca_h = yes; then
22214
22215cat >>confdefs.h <<\_ACEOF
22216#define HAVE_ALLOCA_H 1
22217_ACEOF
22218
22219fi
22220
22221echo "$as_me:$LINENO: checking for alloca" >&5
22222echo $ECHO_N "checking for alloca... $ECHO_C" >&6
22223if test "${ac_cv_func_alloca_works+set}" = set; then
22224 echo $ECHO_N "(cached) $ECHO_C" >&6
22225else
22226 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000022227/* confdefs.h. */
22228_ACEOF
22229cat confdefs.h >>conftest.$ac_ext
22230cat >>conftest.$ac_ext <<_ACEOF
22231/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022232#ifdef __GNUC__
22233# define alloca __builtin_alloca
22234#else
22235# ifdef _MSC_VER
22236# include <malloc.h>
22237# define alloca _alloca
22238# else
22239# if HAVE_ALLOCA_H
22240# include <alloca.h>
22241# else
22242# ifdef _AIX
22243 #pragma alloca
22244# else
22245# ifndef alloca /* predefined by HP cc +Olibcalls */
22246char *alloca ();
22247# endif
22248# endif
22249# endif
22250# endif
22251#endif
22252
John Criswell7a73b802003-06-30 21:59:07 +000022253int
22254main ()
22255{
22256char *p = (char *) alloca (1);
22257 ;
22258 return 0;
22259}
22260_ACEOF
22261rm -f conftest.$ac_objext conftest$ac_exeext
22262if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000022263 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000022264 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000022265 grep -v '^ *+' conftest.er1 >conftest.err
22266 rm -f conftest.er1
22267 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000022268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22269 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000022270 { ac_try='test -z "$ac_c_werror_flag"
22271 || test ! -s conftest.err'
22272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22273 (eval $ac_try) 2>&5
22274 ac_status=$?
22275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22276 (exit $ac_status); }; } &&
22277 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000022278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22279 (eval $ac_try) 2>&5
22280 ac_status=$?
22281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22282 (exit $ac_status); }; }; then
22283 ac_cv_func_alloca_works=yes
22284else
22285 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022286sed 's/^/| /' conftest.$ac_ext >&5
22287
John Criswell7a73b802003-06-30 21:59:07 +000022288ac_cv_func_alloca_works=no
22289fi
Reid Spencer2b51a082004-08-04 00:34:49 +000022290rm -f conftest.err conftest.$ac_objext \
22291 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000022292fi
22293echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
22294echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
22295
22296if test $ac_cv_func_alloca_works = yes; then
22297
22298cat >>confdefs.h <<\_ACEOF
22299#define HAVE_ALLOCA 1
22300_ACEOF
22301
22302else
22303 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
22304# that cause trouble. Some versions do not even contain alloca or
22305# contain a buggy version. If you still want to use their alloca,
22306# use ar to extract alloca.o from them instead of compiling alloca.c.
22307
22308ALLOCA=alloca.$ac_objext
22309
22310cat >>confdefs.h <<\_ACEOF
22311#define C_ALLOCA 1
22312_ACEOF
22313
22314
22315echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
22316echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
22317if test "${ac_cv_os_cray+set}" = set; then
22318 echo $ECHO_N "(cached) $ECHO_C" >&6
22319else
22320 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000022321/* confdefs.h. */
22322_ACEOF
22323cat confdefs.h >>conftest.$ac_ext
22324cat >>conftest.$ac_ext <<_ACEOF
22325/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022326#if defined(CRAY) && ! defined(CRAY2)
22327webecray
22328#else
22329wenotbecray
22330#endif
22331
22332_ACEOF
22333if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000022334 $EGREP "webecray" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000022335 ac_cv_os_cray=yes
22336else
22337 ac_cv_os_cray=no
22338fi
22339rm -f conftest*
22340
22341fi
22342echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
22343echo "${ECHO_T}$ac_cv_os_cray" >&6
22344if test $ac_cv_os_cray = yes; then
22345 for ac_func in _getb67 GETB67 getb67; do
22346 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22347echo "$as_me:$LINENO: checking for $ac_func" >&5
22348echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22349if eval "test \"\${$as_ac_var+set}\" = set"; then
22350 echo $ECHO_N "(cached) $ECHO_C" >&6
22351else
22352 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000022353/* confdefs.h. */
22354_ACEOF
22355cat confdefs.h >>conftest.$ac_ext
22356cat >>conftest.$ac_ext <<_ACEOF
22357/* end confdefs.h. */
Reid Spencer2b51a082004-08-04 00:34:49 +000022358/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22359 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22360#define $ac_func innocuous_$ac_func
22361
John Criswell7a73b802003-06-30 21:59:07 +000022362/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000022363 which can conflict with char $ac_func (); below.
22364 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22365 <limits.h> exists even on freestanding compilers. */
Reid Spencer2b51a082004-08-04 00:34:49 +000022366
John Criswell0c38eaf2003-09-10 15:17:25 +000022367#ifdef __STDC__
22368# include <limits.h>
22369#else
22370# include <assert.h>
22371#endif
Reid Spencer2b51a082004-08-04 00:34:49 +000022372
22373#undef $ac_func
22374
John Criswell7a73b802003-06-30 21:59:07 +000022375/* Override any gcc2 internal prototype to avoid an error. */
22376#ifdef __cplusplus
22377extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000022378{
John Criswell7a73b802003-06-30 21:59:07 +000022379#endif
22380/* We use char because int might match the return type of a gcc2
22381 builtin and then its argument prototype would still apply. */
22382char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000022383/* The GNU C library defines this for functions which it implements
22384 to always fail with ENOSYS. Some functions are actually named
22385 something starting with __ and the normal name is an alias. */
22386#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22387choke me
22388#else
John Criswell0c38eaf2003-09-10 15:17:25 +000022389char (*f) () = $ac_func;
22390#endif
22391#ifdef __cplusplus
22392}
John Criswell7a73b802003-06-30 21:59:07 +000022393#endif
22394
John Criswell0c38eaf2003-09-10 15:17:25 +000022395int
22396main ()
22397{
22398return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000022399 ;
22400 return 0;
22401}
22402_ACEOF
22403rm -f conftest.$ac_objext conftest$ac_exeext
22404if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000022405 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000022406 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000022407 grep -v '^ *+' conftest.er1 >conftest.err
22408 rm -f conftest.er1
22409 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000022410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22411 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000022412 { ac_try='test -z "$ac_c_werror_flag"
22413 || test ! -s conftest.err'
22414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22415 (eval $ac_try) 2>&5
22416 ac_status=$?
22417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22418 (exit $ac_status); }; } &&
22419 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000022420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22421 (eval $ac_try) 2>&5
22422 ac_status=$?
22423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22424 (exit $ac_status); }; }; then
22425 eval "$as_ac_var=yes"
22426else
22427 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022428sed 's/^/| /' conftest.$ac_ext >&5
22429
John Criswell7a73b802003-06-30 21:59:07 +000022430eval "$as_ac_var=no"
22431fi
Reid Spencer2b51a082004-08-04 00:34:49 +000022432rm -f conftest.err conftest.$ac_objext \
22433 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000022434fi
22435echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22436echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22437if test `eval echo '${'$as_ac_var'}'` = yes; then
22438
22439cat >>confdefs.h <<_ACEOF
22440#define CRAY_STACKSEG_END $ac_func
22441_ACEOF
22442
22443 break
22444fi
22445
22446 done
22447fi
22448
22449echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
22450echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
22451if test "${ac_cv_c_stack_direction+set}" = set; then
22452 echo $ECHO_N "(cached) $ECHO_C" >&6
22453else
22454 if test "$cross_compiling" = yes; then
22455 ac_cv_c_stack_direction=0
22456else
22457 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000022458/* confdefs.h. */
22459_ACEOF
22460cat confdefs.h >>conftest.$ac_ext
22461cat >>conftest.$ac_ext <<_ACEOF
22462/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022463int
22464find_stack_direction ()
22465{
22466 static char *addr = 0;
22467 auto char dummy;
22468 if (addr == 0)
22469 {
22470 addr = &dummy;
22471 return find_stack_direction ();
22472 }
22473 else
22474 return (&dummy > addr) ? 1 : -1;
22475}
22476
22477int
22478main ()
22479{
22480 exit (find_stack_direction () < 0);
22481}
22482_ACEOF
22483rm -f conftest$ac_exeext
22484if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22485 (eval $ac_link) 2>&5
22486 ac_status=$?
22487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22488 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22490 (eval $ac_try) 2>&5
22491 ac_status=$?
22492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22493 (exit $ac_status); }; }; then
22494 ac_cv_c_stack_direction=1
22495else
22496 echo "$as_me: program exited with status $ac_status" >&5
22497echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022498sed 's/^/| /' conftest.$ac_ext >&5
22499
John Criswell7a73b802003-06-30 21:59:07 +000022500( exit $ac_status )
22501ac_cv_c_stack_direction=-1
22502fi
Reid Spencer2b51a082004-08-04 00:34:49 +000022503rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000022504fi
22505fi
22506echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
22507echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
22508
22509cat >>confdefs.h <<_ACEOF
22510#define STACK_DIRECTION $ac_cv_c_stack_direction
22511_ACEOF
22512
22513
22514fi
22515
John Criswell7a73b802003-06-30 21:59:07 +000022516
22517
22518for ac_header in stdlib.h unistd.h
22519do
22520as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22521if eval "test \"\${$as_ac_Header+set}\" = set"; then
22522 echo "$as_me:$LINENO: checking for $ac_header" >&5
22523echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22524if eval "test \"\${$as_ac_Header+set}\" = set"; then
22525 echo $ECHO_N "(cached) $ECHO_C" >&6
22526fi
22527echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22528echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22529else
22530 # Is the header compilable?
22531echo "$as_me:$LINENO: checking $ac_header usability" >&5
22532echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22533cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000022534/* confdefs.h. */
22535_ACEOF
22536cat confdefs.h >>conftest.$ac_ext
22537cat >>conftest.$ac_ext <<_ACEOF
22538/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022539$ac_includes_default
22540#include <$ac_header>
22541_ACEOF
22542rm -f conftest.$ac_objext
22543if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000022544 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000022545 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000022546 grep -v '^ *+' conftest.er1 >conftest.err
22547 rm -f conftest.er1
22548 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000022549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22550 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000022551 { ac_try='test -z "$ac_c_werror_flag"
22552 || test ! -s conftest.err'
22553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22554 (eval $ac_try) 2>&5
22555 ac_status=$?
22556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22557 (exit $ac_status); }; } &&
22558 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000022559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22560 (eval $ac_try) 2>&5
22561 ac_status=$?
22562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22563 (exit $ac_status); }; }; then
22564 ac_header_compiler=yes
22565else
22566 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022567sed 's/^/| /' conftest.$ac_ext >&5
22568
John Criswell7a73b802003-06-30 21:59:07 +000022569ac_header_compiler=no
22570fi
Reid Spencer2b51a082004-08-04 00:34:49 +000022571rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000022572echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22573echo "${ECHO_T}$ac_header_compiler" >&6
22574
22575# Is the header present?
22576echo "$as_me:$LINENO: checking $ac_header presence" >&5
22577echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22578cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000022579/* confdefs.h. */
22580_ACEOF
22581cat confdefs.h >>conftest.$ac_ext
22582cat >>conftest.$ac_ext <<_ACEOF
22583/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022584#include <$ac_header>
22585_ACEOF
22586if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22587 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22588 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000022589 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000022590 rm -f conftest.er1
22591 cat conftest.err >&5
22592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22593 (exit $ac_status); } >/dev/null; then
22594 if test -s conftest.err; then
22595 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2b51a082004-08-04 00:34:49 +000022596 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +000022597 else
22598 ac_cpp_err=
22599 fi
22600else
22601 ac_cpp_err=yes
22602fi
22603if test -z "$ac_cpp_err"; then
22604 ac_header_preproc=yes
22605else
22606 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022607sed 's/^/| /' conftest.$ac_ext >&5
22608
John Criswell7a73b802003-06-30 21:59:07 +000022609 ac_header_preproc=no
22610fi
22611rm -f conftest.err conftest.$ac_ext
22612echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22613echo "${ECHO_T}$ac_header_preproc" >&6
22614
22615# So? What about this header?
Reid Spencer2b51a082004-08-04 00:34:49 +000022616case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22617 yes:no: )
John Criswell7a73b802003-06-30 21:59:07 +000022618 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22619echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2b51a082004-08-04 00:34:49 +000022620 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22621echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22622 ac_header_preproc=yes
John Criswell0c38eaf2003-09-10 15:17:25 +000022623 ;;
Reid Spencer2b51a082004-08-04 00:34:49 +000022624 no:yes:* )
John Criswell7a73b802003-06-30 21:59:07 +000022625 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22626echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2b51a082004-08-04 00:34:49 +000022627 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22628echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22629 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22630echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22631 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22632echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000022633 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022634echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2b51a082004-08-04 00:34:49 +000022635 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22636echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
John Criswell0c38eaf2003-09-10 15:17:25 +000022637 (
22638 cat <<\_ASBOX
Reid Spencer2b51a082004-08-04 00:34:49 +000022639## ----------------------------------- ##
22640## Report this to llvmbugs@cs.uiuc.edu ##
22641## ----------------------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +000022642_ASBOX
22643 ) |
22644 sed "s/^/$as_me: WARNING: /" >&2
22645 ;;
John Criswell7a73b802003-06-30 21:59:07 +000022646esac
22647echo "$as_me:$LINENO: checking for $ac_header" >&5
22648echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22649if eval "test \"\${$as_ac_Header+set}\" = set"; then
22650 echo $ECHO_N "(cached) $ECHO_C" >&6
22651else
Reid Spencer2b51a082004-08-04 00:34:49 +000022652 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +000022653fi
22654echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22655echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22656
22657fi
22658if test `eval echo '${'$as_ac_Header'}'` = yes; then
22659 cat >>confdefs.h <<_ACEOF
22660#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22661_ACEOF
22662
22663fi
22664
22665done
22666
22667
22668for ac_func in getpagesize
22669do
22670as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22671echo "$as_me:$LINENO: checking for $ac_func" >&5
22672echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22673if eval "test \"\${$as_ac_var+set}\" = set"; then
22674 echo $ECHO_N "(cached) $ECHO_C" >&6
22675else
22676 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000022677/* confdefs.h. */
22678_ACEOF
22679cat confdefs.h >>conftest.$ac_ext
22680cat >>conftest.$ac_ext <<_ACEOF
22681/* end confdefs.h. */
Reid Spencer2b51a082004-08-04 00:34:49 +000022682/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22683 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22684#define $ac_func innocuous_$ac_func
22685
John Criswell7a73b802003-06-30 21:59:07 +000022686/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000022687 which can conflict with char $ac_func (); below.
22688 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22689 <limits.h> exists even on freestanding compilers. */
Reid Spencer2b51a082004-08-04 00:34:49 +000022690
John Criswell0c38eaf2003-09-10 15:17:25 +000022691#ifdef __STDC__
22692# include <limits.h>
22693#else
22694# include <assert.h>
22695#endif
Reid Spencer2b51a082004-08-04 00:34:49 +000022696
22697#undef $ac_func
22698
John Criswell7a73b802003-06-30 21:59:07 +000022699/* Override any gcc2 internal prototype to avoid an error. */
22700#ifdef __cplusplus
22701extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000022702{
John Criswell7a73b802003-06-30 21:59:07 +000022703#endif
22704/* We use char because int might match the return type of a gcc2
22705 builtin and then its argument prototype would still apply. */
22706char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000022707/* The GNU C library defines this for functions which it implements
22708 to always fail with ENOSYS. Some functions are actually named
22709 something starting with __ and the normal name is an alias. */
22710#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22711choke me
22712#else
John Criswell0c38eaf2003-09-10 15:17:25 +000022713char (*f) () = $ac_func;
22714#endif
22715#ifdef __cplusplus
22716}
John Criswell7a73b802003-06-30 21:59:07 +000022717#endif
22718
John Criswell0c38eaf2003-09-10 15:17:25 +000022719int
22720main ()
22721{
22722return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000022723 ;
22724 return 0;
22725}
22726_ACEOF
22727rm -f conftest.$ac_objext conftest$ac_exeext
22728if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000022729 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000022730 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000022731 grep -v '^ *+' conftest.er1 >conftest.err
22732 rm -f conftest.er1
22733 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000022734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22735 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000022736 { ac_try='test -z "$ac_c_werror_flag"
22737 || test ! -s conftest.err'
22738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22739 (eval $ac_try) 2>&5
22740 ac_status=$?
22741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22742 (exit $ac_status); }; } &&
22743 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000022744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22745 (eval $ac_try) 2>&5
22746 ac_status=$?
22747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22748 (exit $ac_status); }; }; then
22749 eval "$as_ac_var=yes"
22750else
22751 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022752sed 's/^/| /' conftest.$ac_ext >&5
22753
John Criswell7a73b802003-06-30 21:59:07 +000022754eval "$as_ac_var=no"
22755fi
Reid Spencer2b51a082004-08-04 00:34:49 +000022756rm -f conftest.err conftest.$ac_objext \
22757 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000022758fi
22759echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22760echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22761if test `eval echo '${'$as_ac_var'}'` = yes; then
22762 cat >>confdefs.h <<_ACEOF
22763#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22764_ACEOF
22765
22766fi
22767done
22768
22769echo "$as_me:$LINENO: checking for working mmap" >&5
22770echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
22771if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
22772 echo $ECHO_N "(cached) $ECHO_C" >&6
22773else
22774 if test "$cross_compiling" = yes; then
22775 ac_cv_func_mmap_fixed_mapped=no
22776else
22777 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000022778/* confdefs.h. */
22779_ACEOF
22780cat confdefs.h >>conftest.$ac_ext
22781cat >>conftest.$ac_ext <<_ACEOF
22782/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022783$ac_includes_default
22784/* malloc might have been renamed as rpl_malloc. */
22785#undef malloc
22786
22787/* Thanks to Mike Haertel and Jim Avera for this test.
22788 Here is a matrix of mmap possibilities:
22789 mmap private not fixed
22790 mmap private fixed at somewhere currently unmapped
22791 mmap private fixed at somewhere already mapped
22792 mmap shared not fixed
22793 mmap shared fixed at somewhere currently unmapped
22794 mmap shared fixed at somewhere already mapped
22795 For private mappings, we should verify that changes cannot be read()
22796 back from the file, nor mmap's back from the file at a different
22797 address. (There have been systems where private was not correctly
22798 implemented like the infamous i386 svr4.0, and systems where the
22799 VM page cache was not coherent with the file system buffer cache
22800 like early versions of FreeBSD and possibly contemporary NetBSD.)
22801 For shared mappings, we should conversely verify that changes get
22802 propagated back to all the places they're supposed to be.
22803
22804 Grep wants private fixed already mapped.
22805 The main things grep needs to know about mmap are:
22806 * does it exist and is it safe to write into the mmap'd area
22807 * how to use it (BSD variants) */
22808
22809#include <fcntl.h>
22810#include <sys/mman.h>
22811
22812#if !STDC_HEADERS && !HAVE_STDLIB_H
22813char *malloc ();
22814#endif
22815
22816/* This mess was copied from the GNU getpagesize.h. */
22817#if !HAVE_GETPAGESIZE
22818/* Assume that all systems that can run configure have sys/param.h. */
22819# if !HAVE_SYS_PARAM_H
22820# define HAVE_SYS_PARAM_H 1
22821# endif
22822
22823# ifdef _SC_PAGESIZE
22824# define getpagesize() sysconf(_SC_PAGESIZE)
22825# else /* no _SC_PAGESIZE */
22826# if HAVE_SYS_PARAM_H
22827# include <sys/param.h>
22828# ifdef EXEC_PAGESIZE
22829# define getpagesize() EXEC_PAGESIZE
22830# else /* no EXEC_PAGESIZE */
22831# ifdef NBPG
22832# define getpagesize() NBPG * CLSIZE
22833# ifndef CLSIZE
22834# define CLSIZE 1
22835# endif /* no CLSIZE */
22836# else /* no NBPG */
22837# ifdef NBPC
22838# define getpagesize() NBPC
22839# else /* no NBPC */
22840# ifdef PAGESIZE
22841# define getpagesize() PAGESIZE
22842# endif /* PAGESIZE */
22843# endif /* no NBPC */
22844# endif /* no NBPG */
22845# endif /* no EXEC_PAGESIZE */
22846# else /* no HAVE_SYS_PARAM_H */
22847# define getpagesize() 8192 /* punt totally */
22848# endif /* no HAVE_SYS_PARAM_H */
22849# endif /* no _SC_PAGESIZE */
22850
22851#endif /* no HAVE_GETPAGESIZE */
22852
22853int
22854main ()
22855{
22856 char *data, *data2, *data3;
22857 int i, pagesize;
22858 int fd;
22859
22860 pagesize = getpagesize ();
22861
22862 /* First, make a file with some known garbage in it. */
22863 data = (char *) malloc (pagesize);
22864 if (!data)
22865 exit (1);
22866 for (i = 0; i < pagesize; ++i)
22867 *(data + i) = rand ();
22868 umask (0);
22869 fd = creat ("conftest.mmap", 0600);
22870 if (fd < 0)
22871 exit (1);
22872 if (write (fd, data, pagesize) != pagesize)
22873 exit (1);
22874 close (fd);
22875
22876 /* Next, try to mmap the file at a fixed address which already has
22877 something else allocated at it. If we can, also make sure that
22878 we see the same garbage. */
22879 fd = open ("conftest.mmap", O_RDWR);
22880 if (fd < 0)
22881 exit (1);
22882 data2 = (char *) malloc (2 * pagesize);
22883 if (!data2)
22884 exit (1);
Reid Spencer2b51a082004-08-04 00:34:49 +000022885 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000022886 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2b51a082004-08-04 00:34:49 +000022887 MAP_PRIVATE | MAP_FIXED, fd, 0L))
John Criswell7a73b802003-06-30 21:59:07 +000022888 exit (1);
22889 for (i = 0; i < pagesize; ++i)
22890 if (*(data + i) != *(data2 + i))
22891 exit (1);
22892
22893 /* Finally, make sure that changes to the mapped area do not
22894 percolate back to the file as seen by read(). (This is a bug on
22895 some variants of i386 svr4.0.) */
22896 for (i = 0; i < pagesize; ++i)
22897 *(data2 + i) = *(data2 + i) + 1;
22898 data3 = (char *) malloc (pagesize);
22899 if (!data3)
22900 exit (1);
22901 if (read (fd, data3, pagesize) != pagesize)
22902 exit (1);
22903 for (i = 0; i < pagesize; ++i)
22904 if (*(data + i) != *(data3 + i))
22905 exit (1);
22906 close (fd);
22907 exit (0);
22908}
22909_ACEOF
22910rm -f conftest$ac_exeext
22911if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22912 (eval $ac_link) 2>&5
22913 ac_status=$?
22914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22915 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22917 (eval $ac_try) 2>&5
22918 ac_status=$?
22919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22920 (exit $ac_status); }; }; then
22921 ac_cv_func_mmap_fixed_mapped=yes
22922else
22923 echo "$as_me: program exited with status $ac_status" >&5
22924echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022925sed 's/^/| /' conftest.$ac_ext >&5
22926
John Criswell7a73b802003-06-30 21:59:07 +000022927( exit $ac_status )
22928ac_cv_func_mmap_fixed_mapped=no
22929fi
Reid Spencer2b51a082004-08-04 00:34:49 +000022930rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000022931fi
22932fi
22933echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
22934echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
22935if test $ac_cv_func_mmap_fixed_mapped = yes; then
22936
22937cat >>confdefs.h <<\_ACEOF
22938#define HAVE_MMAP 1
22939_ACEOF
22940
22941fi
22942rm -f conftest.mmap
22943
Brian Gaeke26be9c52004-01-13 06:43:16 +000022944if test "$ac_cv_func_mmap_fixed_mapped" = "no"
22945then
John Criswellf3ecf3a2004-05-27 00:57:50 +000022946 { echo "$as_me:$LINENO: WARNING: mmap() required but not found" >&5
22947echo "$as_me: WARNING: mmap() required but not found" >&2;}
Brian Gaeke26be9c52004-01-13 06:43:16 +000022948fi
John Criswell7a73b802003-06-30 21:59:07 +000022949echo "$as_me:$LINENO: checking for mmap of files" >&5
22950echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
22951if test "${ac_cv_func_mmap_file+set}" = set; then
22952 echo $ECHO_N "(cached) $ECHO_C" >&6
22953else
22954
22955
22956 ac_ext=c
22957ac_cpp='$CPP $CPPFLAGS'
22958ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22959ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22960ac_compiler_gnu=$ac_cv_c_compiler_gnu
22961
22962 if test "$cross_compiling" = yes; then
John Criswell0c38eaf2003-09-10 15:17:25 +000022963 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22964See \`config.log' for more details." >&5
22965echo "$as_me: error: cannot run test program while cross compiling
22966See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000022967 { (exit 1); exit 1; }; }
22968else
22969 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000022970/* confdefs.h. */
22971_ACEOF
22972cat confdefs.h >>conftest.$ac_ext
22973cat >>conftest.$ac_ext <<_ACEOF
22974/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022975
John Criswell7a73b802003-06-30 21:59:07 +000022976#ifdef HAVE_SYS_TYPES_H
22977#include <sys/types.h>
22978#endif
22979
John Criswell5ab73462003-10-09 15:44:28 +000022980#ifdef HAVE_SYS_MMAN_H
22981#include <sys/mman.h>
22982#endif
22983
John Criswell7a73b802003-06-30 21:59:07 +000022984#ifdef HAVE_FCNTL_H
22985#include <fcntl.h>
22986#endif
22987
22988 int fd;
22989 int main () {
John Criswell5ab73462003-10-09 15:44:28 +000022990 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 +000022991_ACEOF
22992rm -f conftest$ac_exeext
22993if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22994 (eval $ac_link) 2>&5
22995 ac_status=$?
22996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22997 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22999 (eval $ac_try) 2>&5
23000 ac_status=$?
23001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23002 (exit $ac_status); }; }; then
23003 ac_cv_func_mmap_file=yes
23004else
23005 echo "$as_me: program exited with status $ac_status" >&5
23006echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023007sed 's/^/| /' conftest.$ac_ext >&5
23008
John Criswell7a73b802003-06-30 21:59:07 +000023009( exit $ac_status )
23010ac_cv_func_mmap_file=no
23011fi
Reid Spencer2b51a082004-08-04 00:34:49 +000023012rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000023013fi
23014 ac_ext=c
23015ac_cpp='$CPP $CPPFLAGS'
23016ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23017ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23018ac_compiler_gnu=$ac_cv_c_compiler_gnu
23019
23020
23021fi
23022echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
23023echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
23024if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000023025
23026cat >>confdefs.h <<\_ACEOF
23027#define HAVE_MMAP_FILE
John Criswell7a73b802003-06-30 21:59:07 +000023028_ACEOF
23029
23030 MMAP_FILE=yes
23031
23032fi
23033
Brian Gaeke26be9c52004-01-13 06:43:16 +000023034if test "$ac_cv_func_mmap_file" = "no"
John Criswell7a73b802003-06-30 21:59:07 +000023035then
John Criswellf3ecf3a2004-05-27 00:57:50 +000023036 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
23037echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000023038fi
23039echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
23040echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
23041if test "${ac_cv_header_mmap_anon+set}" = set; then
23042 echo $ECHO_N "(cached) $ECHO_C" >&6
23043else
23044
23045
23046 ac_ext=c
23047ac_cpp='$CPP $CPPFLAGS'
23048ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23049ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23050ac_compiler_gnu=$ac_cv_c_compiler_gnu
23051
23052 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023053/* confdefs.h. */
23054_ACEOF
23055cat confdefs.h >>conftest.$ac_ext
23056cat >>conftest.$ac_ext <<_ACEOF
23057/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000023058#include <sys/mman.h>
23059 #include <unistd.h>
23060 #include <fcntl.h>
John Criswell7a73b802003-06-30 21:59:07 +000023061int
23062main ()
23063{
23064mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
23065 ;
23066 return 0;
23067}
23068_ACEOF
23069rm -f conftest.$ac_objext
23070if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000023071 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000023072 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000023073 grep -v '^ *+' conftest.er1 >conftest.err
23074 rm -f conftest.er1
23075 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000023076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23077 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000023078 { ac_try='test -z "$ac_c_werror_flag"
23079 || test ! -s conftest.err'
23080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23081 (eval $ac_try) 2>&5
23082 ac_status=$?
23083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23084 (exit $ac_status); }; } &&
23085 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000023086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23087 (eval $ac_try) 2>&5
23088 ac_status=$?
23089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23090 (exit $ac_status); }; }; then
23091 ac_cv_header_mmap_anon=yes
23092else
23093 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023094sed 's/^/| /' conftest.$ac_ext >&5
23095
John Criswell7a73b802003-06-30 21:59:07 +000023096ac_cv_header_mmap_anon=no
23097fi
Reid Spencer2b51a082004-08-04 00:34:49 +000023098rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000023099 ac_ext=c
23100ac_cpp='$CPP $CPPFLAGS'
23101ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23102ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23103ac_compiler_gnu=$ac_cv_c_compiler_gnu
23104
23105
23106fi
23107echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
23108echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
23109if test "$ac_cv_header_mmap_anon" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000023110
23111cat >>confdefs.h <<\_ACEOF
23112#define HAVE_MMAP_ANONYMOUS
John Criswell7a73b802003-06-30 21:59:07 +000023113_ACEOF
23114
23115fi
23116
23117echo "$as_me:$LINENO: checking return type of signal handlers" >&5
23118echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
23119if test "${ac_cv_type_signal+set}" = set; then
23120 echo $ECHO_N "(cached) $ECHO_C" >&6
23121else
23122 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023123/* confdefs.h. */
23124_ACEOF
23125cat confdefs.h >>conftest.$ac_ext
23126cat >>conftest.$ac_ext <<_ACEOF
23127/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000023128#include <sys/types.h>
23129#include <signal.h>
23130#ifdef signal
23131# undef signal
23132#endif
23133#ifdef __cplusplus
23134extern "C" void (*signal (int, void (*)(int)))(int);
23135#else
23136void (*signal ()) ();
23137#endif
23138
John Criswell7a73b802003-06-30 21:59:07 +000023139int
23140main ()
23141{
23142int i;
23143 ;
23144 return 0;
23145}
23146_ACEOF
23147rm -f conftest.$ac_objext
23148if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000023149 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000023150 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000023151 grep -v '^ *+' conftest.er1 >conftest.err
23152 rm -f conftest.er1
23153 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000023154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23155 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000023156 { ac_try='test -z "$ac_c_werror_flag"
23157 || test ! -s conftest.err'
23158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23159 (eval $ac_try) 2>&5
23160 ac_status=$?
23161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23162 (exit $ac_status); }; } &&
23163 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000023164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23165 (eval $ac_try) 2>&5
23166 ac_status=$?
23167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23168 (exit $ac_status); }; }; then
23169 ac_cv_type_signal=void
23170else
23171 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023172sed 's/^/| /' conftest.$ac_ext >&5
23173
John Criswell7a73b802003-06-30 21:59:07 +000023174ac_cv_type_signal=int
23175fi
Reid Spencer2b51a082004-08-04 00:34:49 +000023176rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000023177fi
23178echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
23179echo "${ECHO_T}$ac_cv_type_signal" >&6
23180
23181cat >>confdefs.h <<_ACEOF
23182#define RETSIGTYPE $ac_cv_type_signal
23183_ACEOF
23184
23185
23186
23187
23188
23189
23190
Brian Gaekef5261472004-02-20 06:40:57 +000023191
Brian Gaeke9a08b5e2004-04-02 21:26:02 +000023192
John Criswelld6621562004-06-07 14:26:24 +000023193
23194
John Criswell7ed43ad2004-07-19 16:12:29 +000023195for ac_func in getcwd gettimeofday strdup strtoq strtoll backtrace isatty mkstemp getrusage
John Criswell7a73b802003-06-30 21:59:07 +000023196do
23197as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23198echo "$as_me:$LINENO: checking for $ac_func" >&5
23199echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23200if eval "test \"\${$as_ac_var+set}\" = set"; then
23201 echo $ECHO_N "(cached) $ECHO_C" >&6
23202else
23203 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023204/* confdefs.h. */
23205_ACEOF
23206cat confdefs.h >>conftest.$ac_ext
23207cat >>conftest.$ac_ext <<_ACEOF
23208/* end confdefs.h. */
Reid Spencer2b51a082004-08-04 00:34:49 +000023209/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23210 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23211#define $ac_func innocuous_$ac_func
23212
John Criswell7a73b802003-06-30 21:59:07 +000023213/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000023214 which can conflict with char $ac_func (); below.
23215 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23216 <limits.h> exists even on freestanding compilers. */
Reid Spencer2b51a082004-08-04 00:34:49 +000023217
John Criswell0c38eaf2003-09-10 15:17:25 +000023218#ifdef __STDC__
23219# include <limits.h>
23220#else
23221# include <assert.h>
23222#endif
Reid Spencer2b51a082004-08-04 00:34:49 +000023223
23224#undef $ac_func
23225
John Criswell7a73b802003-06-30 21:59:07 +000023226/* Override any gcc2 internal prototype to avoid an error. */
23227#ifdef __cplusplus
23228extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000023229{
John Criswell7a73b802003-06-30 21:59:07 +000023230#endif
23231/* We use char because int might match the return type of a gcc2
23232 builtin and then its argument prototype would still apply. */
23233char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000023234/* The GNU C library defines this for functions which it implements
23235 to always fail with ENOSYS. Some functions are actually named
23236 something starting with __ and the normal name is an alias. */
23237#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23238choke me
23239#else
John Criswell0c38eaf2003-09-10 15:17:25 +000023240char (*f) () = $ac_func;
23241#endif
23242#ifdef __cplusplus
23243}
John Criswell7a73b802003-06-30 21:59:07 +000023244#endif
23245
John Criswell0c38eaf2003-09-10 15:17:25 +000023246int
23247main ()
23248{
23249return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000023250 ;
23251 return 0;
23252}
23253_ACEOF
23254rm -f conftest.$ac_objext conftest$ac_exeext
23255if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000023256 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000023257 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000023258 grep -v '^ *+' conftest.er1 >conftest.err
23259 rm -f conftest.er1
23260 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000023261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23262 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000023263 { ac_try='test -z "$ac_c_werror_flag"
23264 || test ! -s conftest.err'
23265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23266 (eval $ac_try) 2>&5
23267 ac_status=$?
23268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23269 (exit $ac_status); }; } &&
23270 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000023271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23272 (eval $ac_try) 2>&5
23273 ac_status=$?
23274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23275 (exit $ac_status); }; }; then
23276 eval "$as_ac_var=yes"
23277else
23278 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023279sed 's/^/| /' conftest.$ac_ext >&5
23280
John Criswell7a73b802003-06-30 21:59:07 +000023281eval "$as_ac_var=no"
23282fi
Reid Spencer2b51a082004-08-04 00:34:49 +000023283rm -f conftest.err conftest.$ac_objext \
23284 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000023285fi
23286echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23287echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23288if test `eval echo '${'$as_ac_var'}'` = yes; then
23289 cat >>confdefs.h <<_ACEOF
23290#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23291_ACEOF
23292
23293fi
23294done
23295
John Criswell7a73b802003-06-30 21:59:07 +000023296echo "$as_me:$LINENO: checking for mprotect" >&5
23297echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
23298if test "${ac_cv_func_mprotect+set}" = set; then
23299 echo $ECHO_N "(cached) $ECHO_C" >&6
23300else
23301 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023302/* confdefs.h. */
23303_ACEOF
23304cat confdefs.h >>conftest.$ac_ext
23305cat >>conftest.$ac_ext <<_ACEOF
23306/* end confdefs.h. */
Reid Spencer2b51a082004-08-04 00:34:49 +000023307/* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
23308 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23309#define mprotect innocuous_mprotect
23310
John Criswell7a73b802003-06-30 21:59:07 +000023311/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000023312 which can conflict with char mprotect (); below.
23313 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23314 <limits.h> exists even on freestanding compilers. */
Reid Spencer2b51a082004-08-04 00:34:49 +000023315
John Criswell0c38eaf2003-09-10 15:17:25 +000023316#ifdef __STDC__
23317# include <limits.h>
23318#else
23319# include <assert.h>
23320#endif
Reid Spencer2b51a082004-08-04 00:34:49 +000023321
23322#undef mprotect
23323
John Criswell7a73b802003-06-30 21:59:07 +000023324/* Override any gcc2 internal prototype to avoid an error. */
23325#ifdef __cplusplus
23326extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000023327{
John Criswell7a73b802003-06-30 21:59:07 +000023328#endif
23329/* We use char because int might match the return type of a gcc2
23330 builtin and then its argument prototype would still apply. */
23331char mprotect ();
John Criswell7a73b802003-06-30 21:59:07 +000023332/* The GNU C library defines this for functions which it implements
23333 to always fail with ENOSYS. Some functions are actually named
23334 something starting with __ and the normal name is an alias. */
23335#if defined (__stub_mprotect) || defined (__stub___mprotect)
23336choke me
23337#else
John Criswell0c38eaf2003-09-10 15:17:25 +000023338char (*f) () = mprotect;
23339#endif
23340#ifdef __cplusplus
23341}
John Criswell7a73b802003-06-30 21:59:07 +000023342#endif
23343
John Criswell0c38eaf2003-09-10 15:17:25 +000023344int
23345main ()
23346{
23347return f != mprotect;
John Criswell7a73b802003-06-30 21:59:07 +000023348 ;
23349 return 0;
23350}
23351_ACEOF
23352rm -f conftest.$ac_objext conftest$ac_exeext
23353if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000023354 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000023355 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000023356 grep -v '^ *+' conftest.er1 >conftest.err
23357 rm -f conftest.er1
23358 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000023359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23360 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000023361 { ac_try='test -z "$ac_c_werror_flag"
23362 || test ! -s conftest.err'
23363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23364 (eval $ac_try) 2>&5
23365 ac_status=$?
23366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23367 (exit $ac_status); }; } &&
23368 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000023369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23370 (eval $ac_try) 2>&5
23371 ac_status=$?
23372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23373 (exit $ac_status); }; }; then
23374 ac_cv_func_mprotect=yes
23375else
23376 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023377sed 's/^/| /' conftest.$ac_ext >&5
23378
John Criswell7a73b802003-06-30 21:59:07 +000023379ac_cv_func_mprotect=no
23380fi
Reid Spencer2b51a082004-08-04 00:34:49 +000023381rm -f conftest.err conftest.$ac_objext \
23382 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000023383fi
23384echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
23385echo "${ECHO_T}$ac_cv_func_mprotect" >&6
23386if test $ac_cv_func_mprotect = yes; then
23387 :
23388else
23389 { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
23390echo "$as_me: error: Function mprotect() required but not found" >&2;}
23391 { (exit 1); exit 1; }; }
23392fi
23393
23394
John Criswellb13092b2003-07-22 21:00:24 +000023395
Brian Gaekeadfe28d2004-07-21 03:50:25 +000023396 echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
23397echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6
John Criswellcb7a1eb2003-11-17 19:46:02 +000023398
23399
23400 ac_ext=c
23401ac_cpp='$CPP $CPPFLAGS'
23402ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23403ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23404ac_compiler_gnu=$ac_cv_c_compiler_gnu
23405
Brian Gaekef91a15c2003-11-18 06:20:41 +000023406 oldcflags="$CFLAGS"
23407 CFLAGS="$CFLAGS -Wl,-R."
John Criswellcb7a1eb2003-11-17 19:46:02 +000023408 cat >conftest.$ac_ext <<_ACEOF
Brian Gaekef91a15c2003-11-18 06:20:41 +000023409int main() { return 0; }
John Criswellcb7a1eb2003-11-17 19:46:02 +000023410_ACEOF
23411rm -f conftest.$ac_objext conftest$ac_exeext
23412if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000023413 (eval $ac_link) 2>conftest.er1
John Criswellcb7a1eb2003-11-17 19:46:02 +000023414 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000023415 grep -v '^ *+' conftest.er1 >conftest.err
23416 rm -f conftest.er1
23417 cat conftest.err >&5
John Criswellcb7a1eb2003-11-17 19:46:02 +000023418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23419 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000023420 { ac_try='test -z "$ac_c_werror_flag"
23421 || test ! -s conftest.err'
23422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23423 (eval $ac_try) 2>&5
23424 ac_status=$?
23425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23426 (exit $ac_status); }; } &&
23427 { ac_try='test -s conftest$ac_exeext'
John Criswellcb7a1eb2003-11-17 19:46:02 +000023428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23429 (eval $ac_try) 2>&5
23430 ac_status=$?
23431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23432 (exit $ac_status); }; }; then
23433 ac_cv_link_use_r=yes
23434else
23435 echo "$as_me: failed program was:" >&5
23436sed 's/^/| /' conftest.$ac_ext >&5
23437
Brian Gaekef91a15c2003-11-18 06:20:41 +000023438ac_cv_link_use_r=no
John Criswellcb7a1eb2003-11-17 19:46:02 +000023439fi
Reid Spencer2b51a082004-08-04 00:34:49 +000023440rm -f conftest.err conftest.$ac_objext \
23441 conftest$ac_exeext conftest.$ac_ext
Brian Gaekef91a15c2003-11-18 06:20:41 +000023442 CFLAGS="$oldcflags"
John Criswellcb7a1eb2003-11-17 19:46:02 +000023443 ac_ext=c
23444ac_cpp='$CPP $CPPFLAGS'
23445ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23446ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23447ac_compiler_gnu=$ac_cv_c_compiler_gnu
23448
Brian Gaekeadfe28d2004-07-21 03:50:25 +000023449 echo "$as_me:$LINENO: result: $ac_cv_link_use_r" >&5
23450echo "${ECHO_T}$ac_cv_link_use_r" >&6
Brian Gaekef91a15c2003-11-18 06:20:41 +000023451 if test "$ac_cv_link_use_r" = yes
John Criswellcb7a1eb2003-11-17 19:46:02 +000023452 then
Brian Gaekef91a15c2003-11-18 06:20:41 +000023453
23454cat >>confdefs.h <<\_ACEOF
John Criswellcb7a1eb2003-11-17 19:46:02 +000023455#define HAVE_LINK_R 1
23456_ACEOF
23457
23458 fi
23459
23460
John Criswell7a73b802003-06-30 21:59:07 +000023461# Check whether --enable-optimized or --disable-optimized was given.
23462if test "${enable_optimized+set}" = set; then
23463 enableval="$enable_optimized"
John Criswell7a73b802003-06-30 21:59:07 +000023464
23465else
John Criswellb13092b2003-07-22 21:00:24 +000023466 enableval=no
John Criswell7a73b802003-06-30 21:59:07 +000023467fi;
John Criswellb13092b2003-07-22 21:00:24 +000023468if test ${enableval} = "no"
23469then
23470 ENABLE_OPTIMIZED=
23471
23472else
23473 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
23474
23475fi
23476
John Criswell55126592003-10-07 21:57:39 +000023477
23478
John Criswell55126592003-10-07 21:57:39 +000023479
Brian Gaekee773b862004-04-16 17:13:44 +000023480 # Check whether --enable-spec95 or --disable-spec95 was given.
John Criswellcf2e9f72004-02-10 22:36:35 +000023481if test "${enable_spec95+set}" = set; then
23482 enableval="$enable_spec95"
Brian Gaekee773b862004-04-16 17:13:44 +000023483 checkresult=$enableval
John Criswellcf2e9f72004-02-10 22:36:35 +000023484else
Brian Gaekee773b862004-04-16 17:13:44 +000023485 checkresult=auto
John Criswellcf2e9f72004-02-10 22:36:35 +000023486fi;
Brian Gaekee773b862004-04-16 17:13:44 +000023487echo "$as_me:$LINENO: checking for spec95 benchmark sources" >&5
23488echo $ECHO_N "checking for spec95 benchmark sources... $ECHO_C" >&6
23489case "$checkresult" in
23490auto|yes)
23491 defaultdir=/home/vadve/shared/benchmarks/spec95/benchspec
23492 if test -d "$defaultdir"
John Criswellcf2e9f72004-02-10 22:36:35 +000023493 then
Brian Gaekee773b862004-04-16 17:13:44 +000023494 SPEC95_ROOT=$defaultdir
John Criswellcf2e9f72004-02-10 22:36:35 +000023495
23496 USE_SPEC95=USE_SPEC95=1
23497
Brian Gaekee773b862004-04-16 17:13:44 +000023498 checkresult="yes, found in $defaultdir"
23499 else
23500 checkresult=no
23501 fi
23502 ;;
23503no)
John Criswellcf2e9f72004-02-10 22:36:35 +000023504
23505
Brian Gaekee773b862004-04-16 17:13:44 +000023506 checkresult=no
23507 ;;
23508*) if test -d "$checkresult"
23509 then
23510 SPEC95_ROOT="$checkresult"
23511
23512 USE_SPEC95=USE_SPEC95=1
23513
23514 checkresult="yes, in $checkresult"
23515 else
23516
23517
23518 checkresult="no, not found in $checkresult"
23519 fi
23520 ;;
23521esac
23522echo "$as_me:$LINENO: result: $checkresult" >&5
23523echo "${ECHO_T}$checkresult" >&6
23524
23525
23526
23527 # Check whether --enable-spec2000 or --disable-spec2000 was given.
23528if test "${enable_spec2000+set}" = set; then
23529 enableval="$enable_spec2000"
23530 checkresult=$enableval
John Criswellcf2e9f72004-02-10 22:36:35 +000023531else
Brian Gaekee773b862004-04-16 17:13:44 +000023532 checkresult=auto
23533fi;
23534echo "$as_me:$LINENO: checking for spec2000 benchmark sources" >&5
23535echo $ECHO_N "checking for spec2000 benchmark sources... $ECHO_C" >&6
23536case "$checkresult" in
23537auto|yes)
23538 defaultdir=/home/vadve/shared/benchmarks/speccpu2000/benchspec
23539 if test -d "$defaultdir"
John Criswellcf2e9f72004-02-10 22:36:35 +000023540 then
Brian Gaekee773b862004-04-16 17:13:44 +000023541 SPEC2000_ROOT=$defaultdir
John Criswellcf2e9f72004-02-10 22:36:35 +000023542
Brian Gaekee773b862004-04-16 17:13:44 +000023543 USE_SPEC2000=USE_SPEC2000=1
John Criswellcf2e9f72004-02-10 22:36:35 +000023544
Brian Gaekee773b862004-04-16 17:13:44 +000023545 checkresult="yes, found in $defaultdir"
23546 else
23547 checkresult=no
23548 fi
23549 ;;
23550no)
John Criswellcf2e9f72004-02-10 22:36:35 +000023551
John Criswellcf2e9f72004-02-10 22:36:35 +000023552
Brian Gaekee773b862004-04-16 17:13:44 +000023553 checkresult=no
23554 ;;
23555*) if test -d "$checkresult"
23556 then
23557 SPEC2000_ROOT="$checkresult"
23558
23559 USE_SPEC2000=USE_SPEC2000=1
23560
23561 checkresult="yes, in $checkresult"
23562 else
23563
23564
23565 checkresult="no, not found in $checkresult"
23566 fi
23567 ;;
23568esac
23569echo "$as_me:$LINENO: result: $checkresult" >&5
23570echo "${ECHO_T}$checkresult" >&6
23571
23572
23573
23574 # Check whether --enable-povray or --disable-povray was given.
John Criswell0538d422004-02-20 22:30:22 +000023575if test "${enable_povray+set}" = set; then
23576 enableval="$enable_povray"
Brian Gaekee773b862004-04-16 17:13:44 +000023577 checkresult=$enableval
John Criswell0538d422004-02-20 22:30:22 +000023578else
Brian Gaekee773b862004-04-16 17:13:44 +000023579 checkresult=auto
John Criswell0538d422004-02-20 22:30:22 +000023580fi;
Brian Gaekee773b862004-04-16 17:13:44 +000023581echo "$as_me:$LINENO: checking for povray benchmark sources" >&5
23582echo $ECHO_N "checking for povray benchmark sources... $ECHO_C" >&6
23583case "$checkresult" in
Chris Lattner95f45c52004-04-14 16:32:09 +000023584auto|yes)
Brian Gaekef66cdf82004-04-13 19:03:49 +000023585 defaultdir=/home/vadve/shared/benchmarks/povray31
Brian Gaekee773b862004-04-16 17:13:44 +000023586 if test -d "$defaultdir"
John Criswell0538d422004-02-20 22:30:22 +000023587 then
Brian Gaekef66cdf82004-04-13 19:03:49 +000023588 POVRAY_ROOT=$defaultdir
John Criswell0538d422004-02-20 22:30:22 +000023589
23590 USE_POVRAY=USE_POVRAY=1
23591
Brian Gaekee773b862004-04-16 17:13:44 +000023592 checkresult="yes, found in $defaultdir"
Brian Gaekef66cdf82004-04-13 19:03:49 +000023593 else
Brian Gaekee773b862004-04-16 17:13:44 +000023594 checkresult=no
Brian Gaekef66cdf82004-04-13 19:03:49 +000023595 fi
23596 ;;
Chris Lattner95f45c52004-04-14 16:32:09 +000023597no)
John Criswell0538d422004-02-20 22:30:22 +000023598
23599
Brian Gaekee773b862004-04-16 17:13:44 +000023600 checkresult=no
Brian Gaekef66cdf82004-04-13 19:03:49 +000023601 ;;
Brian Gaekee773b862004-04-16 17:13:44 +000023602*) if test -d "$checkresult"
Brian Gaekef66cdf82004-04-13 19:03:49 +000023603 then
Brian Gaekee773b862004-04-16 17:13:44 +000023604 POVRAY_ROOT="$checkresult"
John Criswell0538d422004-02-20 22:30:22 +000023605
Brian Gaekef66cdf82004-04-13 19:03:49 +000023606 USE_POVRAY=USE_POVRAY=1
John Criswell0538d422004-02-20 22:30:22 +000023607
Brian Gaekee773b862004-04-16 17:13:44 +000023608 checkresult="yes, in $checkresult"
Brian Gaekef66cdf82004-04-13 19:03:49 +000023609 else
John Criswell0538d422004-02-20 22:30:22 +000023610
John Criswell0538d422004-02-20 22:30:22 +000023611
Brian Gaekee773b862004-04-16 17:13:44 +000023612 checkresult="no, not found in $checkresult"
Brian Gaekef66cdf82004-04-13 19:03:49 +000023613 fi
23614 ;;
23615esac
Brian Gaekee773b862004-04-16 17:13:44 +000023616echo "$as_me:$LINENO: result: $checkresult" >&5
23617echo "${ECHO_T}$checkresult" >&6
23618
23619
John Criswell0538d422004-02-20 22:30:22 +000023620
John Criswell7a73b802003-06-30 21:59:07 +000023621# Check whether --enable-precompiled_bytecode or --disable-precompiled_bytecode was given.
23622if test "${enable_precompiled_bytecode+set}" = set; then
23623 enableval="$enable_precompiled_bytecode"
John Criswell7a73b802003-06-30 21:59:07 +000023624
23625else
John Criswellb13092b2003-07-22 21:00:24 +000023626 enableval=no
John Criswell7a73b802003-06-30 21:59:07 +000023627fi;
John Criswellb13092b2003-07-22 21:00:24 +000023628if test ${enableval} = "no"
23629then
23630 UPB=
John Criswellf02dbf02003-07-22 20:07:49 +000023631
John Criswellb13092b2003-07-22 21:00:24 +000023632else
23633 UPB=USE_PRECOMPILED_BYTECODE=1
23634
23635fi
John Criswellf02dbf02003-07-22 20:07:49 +000023636
John Criswellf02dbf02003-07-22 20:07:49 +000023637# Check whether --enable-llc_diffs or --disable-llc_diffs was given.
23638if test "${enable_llc_diffs+set}" = set; then
23639 enableval="$enable_llc_diffs"
John Criswellf02dbf02003-07-22 20:07:49 +000023640
23641else
John Criswellb13092b2003-07-22 21:00:24 +000023642 enableval=yes
John Criswellf02dbf02003-07-22 20:07:49 +000023643fi;
John Criswellb13092b2003-07-22 21:00:24 +000023644if test ${enableval} = "no"
23645then
23646 DISABLE_LLC_DIFFS=DISABLE_LLC_DIFFS:=1
John Criswellf02dbf02003-07-22 20:07:49 +000023647
John Criswellb13092b2003-07-22 21:00:24 +000023648else
23649 DISABLE_LLC_DIFFS=
23650
23651fi
23652
23653# Check whether --enable-jit or --disable-jit was given.
John Criswell7a73b802003-06-30 21:59:07 +000023654if test "${enable_jit+set}" = set; then
23655 enableval="$enable_jit"
John Criswell7a73b802003-06-30 21:59:07 +000023656
23657else
John Criswellc78022e2003-07-29 19:11:58 +000023658 enableval=default
John Criswell7a73b802003-06-30 21:59:07 +000023659fi;
John Criswellb13092b2003-07-22 21:00:24 +000023660if test ${enableval} = "no"
23661then
23662 JIT=
23663
23664else
John Criswellc78022e2003-07-29 19:11:58 +000023665 case $target in
23666 *i*86*)
23667 JIT=TARGET_HAS_JIT=1
John Criswellb13092b2003-07-22 21:00:24 +000023668
John Criswellc78022e2003-07-29 19:11:58 +000023669 ;;
23670 *sparc*)
23671 JIT=TARGET_HAS_JIT=1
23672
23673 ;;
23674 *)
23675 JIT=
23676
23677 ;;
23678 esac
John Criswellb13092b2003-07-22 21:00:24 +000023679fi
John Criswell7a73b802003-06-30 21:59:07 +000023680
23681
John Criswell7a73b802003-06-30 21:59:07 +000023682# Check whether --with-llvmgccdir or --without-llvmgccdir was given.
23683if test "${with_llvmgccdir+set}" = set; then
23684 withval="$with_llvmgccdir"
23685 LLVMGCCDIR=$withval
23686
23687fi;
Brian Gaekef3b24102003-11-16 18:38:14 +000023688echo "$as_me:$LINENO: checking for llvm-gcc" >&5
23689echo $ECHO_N "checking for llvm-gcc... $ECHO_C" >&6
23690LLVM_GCC_CHECK=no
23691if test -d "$LLVMGCCDIR"
23692then
23693 if test -x "$LLVMGCCDIR/bin/gcc"
23694 then
23695 LLVM_GCC_CHECK="$LLVMGCCDIR/bin/gcc"
23696 fi
23697fi
23698llvmgccwarn=no
23699echo "$as_me:$LINENO: result: $LLVM_GCC_CHECK" >&5
23700echo "${ECHO_T}$LLVM_GCC_CHECK" >&6
23701if test "$LLVM_GCC_CHECK" = "no"
23702then
23703 llvmgccwarn=yes
23704fi
Brian Gaekef3b24102003-11-16 18:38:14 +000023705echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
23706echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
23707LLVM_GCC_SANE=no
23708if test -x "$LLVM_GCC_CHECK"
23709then
23710 cp /dev/null conftest.c
23711 "$LLVM_GCC_CHECK" -S -o - conftest.c | grep implementation > /dev/null 2>&1
23712 if test $? -eq 0
23713 then
23714 LLVM_GCC_SANE=yes
23715 fi
23716 rm conftest.c
Brian Gaeke2f50a042004-01-16 21:31:21 +000023717 llvmcc1path=`"$LLVM_GCC_CHECK" --print-prog-name=cc1`
Brian Gaeke554831c2004-01-21 19:39:29 +000023718 LLVMCC1=$llvmcc1path
Brian Gaeke2f50a042004-01-16 21:31:21 +000023719
23720 llvmcc1pluspath=`"$LLVM_GCC_CHECK" --print-prog-name=cc1plus`
Brian Gaeke554831c2004-01-21 19:39:29 +000023721 LLVMCC1PLUS=$llvmcc1pluspath
Brian Gaeke2f50a042004-01-16 21:31:21 +000023722
Brian Gaekef3b24102003-11-16 18:38:14 +000023723fi
23724echo "$as_me:$LINENO: result: $LLVM_GCC_SANE" >&5
23725echo "${ECHO_T}$LLVM_GCC_SANE" >&6
23726if test "$LLVM_GCC_SANE" = "no"
23727then
23728 llvmgccwarn=yes
23729fi
23730
John Criswellc78022e2003-07-29 19:11:58 +000023731
John Criswell7a73b802003-06-30 21:59:07 +000023732# Check whether --with-bcrepos or --without-bcrepos was given.
23733if test "${with_bcrepos+set}" = set; then
23734 withval="$with_bcrepos"
23735 BCR=$withval
23736
23737else
23738 BCR=/home/vadve/lattner/LLVMPrograms
23739
23740fi;
23741
John Criswellc78022e2003-07-29 19:11:58 +000023742
John Criswell7a73b802003-06-30 21:59:07 +000023743# Check whether --with-papi or --without-papi was given.
23744if test "${with_papi+set}" = set; then
23745 withval="$with_papi"
23746 PAPIDIR=$withval
23747
23748else
John Criswellde00db22003-08-25 16:49:54 +000023749 PAPIDIR=/home/vadve/shared/Sparc/papi-2.3.4.1
John Criswell7a73b802003-06-30 21:59:07 +000023750
23751fi;
23752
Brian Gaeke554831c2004-01-21 19:39:29 +000023753echo "$as_me:$LINENO: checking for shared library suffix" >&5
23754echo $ECHO_N "checking for shared library suffix... $ECHO_C" >&6
23755eval "SHLIBEXT=$shrext"
23756echo "$as_me:$LINENO: result: $SHLIBEXT" >&5
23757echo "${ECHO_T}$SHLIBEXT" >&6
23758SHLIBEXT=$SHLIBEXT
23759
23760
23761cat >>confdefs.h <<_ACEOF
23762#define SHLIBEXT "$SHLIBEXT"
23763_ACEOF
23764
23765
Reid Spencere9de0912004-08-20 09:03:57 +000023766# Translate the various configuration directories and other basic
23767# information into substitutions that will end up in config.h.in so
23768# that these configured values can be hard-wired into a program.
23769eval LLVM_PREFIX="${prefix}";
23770eval LLVM_BINDIR="${prefix}/bin";
23771eval LLVM_LIBDIR="${prefix}/lib";
23772eval LLVM_DATADIR="${prefix}/data";
23773eval LLVM_DOCSDIR="${prefix}/docs";
23774eval LLVM_ETCDIR="${prefix}/etc";
23775eval LLVM_INCLUDEDIR="${prefix}/include";
23776eval LLVM_INFODIR="${prefix}/info";
23777eval LLVM_MANDIR="${prefix}/man";
23778LLVM_CONFIGTIME=`date`
23779
23780
23781
23782
23783
23784
23785
23786
23787
23788
23789
23790cat >>confdefs.h <<_ACEOF
23791#define LLVM_PREFIX "$LLVM_PREFIX"
23792_ACEOF
23793
23794
23795cat >>confdefs.h <<_ACEOF
23796#define LLVM_BINDIR "$LLVM_BINDIR"
23797_ACEOF
23798
23799
23800cat >>confdefs.h <<_ACEOF
23801#define LLVM_LIBDIR "$LLVM_LIBDIR"
23802_ACEOF
23803
23804
23805cat >>confdefs.h <<_ACEOF
23806#define LLVM_DATADIR "$LLVM_DATADIR"
23807_ACEOF
23808
23809
23810cat >>confdefs.h <<_ACEOF
23811#define LLVM_DATADIR "$LLVM_DOCSDIR"
23812_ACEOF
23813
23814
23815cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000023816#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000023817_ACEOF
23818
23819
23820cat >>confdefs.h <<_ACEOF
23821#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
23822_ACEOF
23823
23824
23825cat >>confdefs.h <<_ACEOF
23826#define LLVM_INFODIR "$LLVM_INFODIR"
23827_ACEOF
23828
23829
23830cat >>confdefs.h <<_ACEOF
23831#define LLVM_MANDIR "$LLVM_MANDIR"
23832_ACEOF
23833
23834
23835cat >>confdefs.h <<_ACEOF
23836#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
23837_ACEOF
23838
23839
John Criswell7a73b802003-06-30 21:59:07 +000023840cat >confcache <<\_ACEOF
23841# This file is a shell script that caches the results of configure
23842# tests run on this system so they can be shared between configure
23843# scripts and configure runs, see configure's option --config-cache.
23844# It is not useful on other systems. If it contains results you don't
23845# want to keep, you may remove or edit it.
23846#
23847# config.status only pays attention to the cache file if you give it
23848# the --recheck option to rerun configure.
23849#
John Criswell0c38eaf2003-09-10 15:17:25 +000023850# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000023851# loading this file, other *unset* `ac_cv_foo' will be assigned the
23852# following values.
23853
23854_ACEOF
23855
23856# The following way of writing the cache mishandles newlines in values,
23857# but we know of no workaround that is simple, portable, and efficient.
23858# So, don't put newlines in cache variables' values.
23859# Ultrix sh set writes to stderr and can't be redirected directly,
23860# and sets the high bit in the cache file unless we assign to the vars.
23861{
23862 (set) 2>&1 |
23863 case `(ac_space=' '; set | grep ac_space) 2>&1` in
23864 *ac_space=\ *)
23865 # `set' does not quote correctly, so add quotes (double-quote
23866 # substitution turns \\\\ into \\, and sed turns \\ into \).
23867 sed -n \
Reid Spencer2b51a082004-08-04 00:34:49 +000023868 "s/'/'\\\\''/g;
23869 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
John Criswell7a73b802003-06-30 21:59:07 +000023870 ;;
23871 *)
23872 # `set' quotes correctly as required by POSIX, so do not add quotes.
23873 sed -n \
Reid Spencer2b51a082004-08-04 00:34:49 +000023874 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
John Criswell7a73b802003-06-30 21:59:07 +000023875 ;;
23876 esac;
23877} |
23878 sed '
23879 t clear
23880 : clear
23881 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23882 t end
23883 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23884 : end' >>confcache
John Criswell0c38eaf2003-09-10 15:17:25 +000023885if diff $cache_file confcache >/dev/null 2>&1; then :; else
John Criswell7a73b802003-06-30 21:59:07 +000023886 if test -w $cache_file; then
23887 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
23888 cat confcache >$cache_file
23889 else
23890 echo "not updating unwritable cache $cache_file"
23891 fi
23892fi
23893rm -f confcache
23894
23895test "x$prefix" = xNONE && prefix=$ac_default_prefix
23896# Let make expand exec_prefix.
23897test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23898
23899# VPATH may cause trouble with some makes, so we remove $(srcdir),
23900# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23901# trailing colons and then remove the whole line if VPATH becomes empty
23902# (actually we leave an empty line to preserve line numbers).
23903if test "x$srcdir" = x.; then
Reid Spencer2b51a082004-08-04 00:34:49 +000023904 ac_vpsub='/^[ ]*VPATH[ ]*=/{
John Criswell7a73b802003-06-30 21:59:07 +000023905s/:*\$(srcdir):*/:/;
23906s/:*\${srcdir}:*/:/;
23907s/:*@srcdir@:*/:/;
Reid Spencer2b51a082004-08-04 00:34:49 +000023908s/^\([^=]*=[ ]*\):*/\1/;
John Criswell7a73b802003-06-30 21:59:07 +000023909s/:*$//;
Reid Spencer2b51a082004-08-04 00:34:49 +000023910s/^[^=]*=[ ]*$//;
John Criswell7a73b802003-06-30 21:59:07 +000023911}'
23912fi
23913
23914DEFS=-DHAVE_CONFIG_H
23915
John Criswell0c38eaf2003-09-10 15:17:25 +000023916ac_libobjs=
23917ac_ltlibobjs=
23918for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23919 # 1. Remove the extension, and $U if already installed.
23920 ac_i=`echo "$ac_i" |
Reid Spencer2b51a082004-08-04 00:34:49 +000023921 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
John Criswell0c38eaf2003-09-10 15:17:25 +000023922 # 2. Add them.
23923 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
23924 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
23925done
23926LIBOBJS=$ac_libobjs
23927
23928LTLIBOBJS=$ac_ltlibobjs
23929
23930
John Criswell7a73b802003-06-30 21:59:07 +000023931
23932: ${CONFIG_STATUS=./config.status}
23933ac_clean_files_save=$ac_clean_files
23934ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23935{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23936echo "$as_me: creating $CONFIG_STATUS" >&6;}
23937cat >$CONFIG_STATUS <<_ACEOF
23938#! $SHELL
23939# Generated by $as_me.
23940# Run this file to recreate the current configuration.
23941# Compiler output produced by configure, useful for debugging
23942# configure, is in config.log if it exists.
23943
23944debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000023945ac_cs_recheck=false
23946ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000023947SHELL=\${CONFIG_SHELL-$SHELL}
23948_ACEOF
23949
23950cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000023951## --------------------- ##
23952## M4sh Initialization. ##
23953## --------------------- ##
23954
23955# Be Bourne compatible
23956if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23957 emulate sh
23958 NULLCMD=:
John Criswell0c38eaf2003-09-10 15:17:25 +000023959 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23960 # is contrary to our usage. Disable this feature.
23961 alias -g '${1+"$@"}'='"$@"'
John Criswell7a73b802003-06-30 21:59:07 +000023962elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23963 set -o posix
23964fi
Reid Spencer2b51a082004-08-04 00:34:49 +000023965DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000023966
John Criswell7a73b802003-06-30 21:59:07 +000023967# Support unset when possible.
Reid Spencer2b51a082004-08-04 00:34:49 +000023968if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000023969 as_unset=unset
23970else
23971 as_unset=false
23972fi
23973
John Criswell0c38eaf2003-09-10 15:17:25 +000023974
23975# Work around bugs in pre-3.0 UWIN ksh.
23976$as_unset ENV MAIL MAILPATH
23977PS1='$ '
23978PS2='> '
23979PS4='+ '
23980
23981# NLS nuisances.
23982for as_var in \
23983 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23984 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23985 LC_TELEPHONE LC_TIME
23986do
Reid Spencer2b51a082004-08-04 00:34:49 +000023987 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
John Criswell0c38eaf2003-09-10 15:17:25 +000023988 eval $as_var=C; export $as_var
23989 else
23990 $as_unset $as_var
23991 fi
23992done
23993
23994# Required to use basename.
23995if expr a : '\(a\)' >/dev/null 2>&1; then
23996 as_expr=expr
23997else
23998 as_expr=false
23999fi
24000
24001if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
24002 as_basename=basename
24003else
24004 as_basename=false
24005fi
John Criswell7a73b802003-06-30 21:59:07 +000024006
24007
24008# Name of the executable.
John Criswell0c38eaf2003-09-10 15:17:25 +000024009as_me=`$as_basename "$0" ||
John Criswell7a73b802003-06-30 21:59:07 +000024010$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24011 X"$0" : 'X\(//\)$' \| \
24012 X"$0" : 'X\(/\)$' \| \
24013 . : '\(.\)' 2>/dev/null ||
24014echo X/"$0" |
24015 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
24016 /^X\/\(\/\/\)$/{ s//\1/; q; }
24017 /^X\/\(\/\).*/{ s//\1/; q; }
24018 s/.*/./; q'`
24019
John Criswell0c38eaf2003-09-10 15:17:25 +000024020
John Criswell7a73b802003-06-30 21:59:07 +000024021# PATH needs CR, and LINENO needs CR and PATH.
24022# Avoid depending upon Character Ranges.
24023as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24024as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24025as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24026as_cr_digits='0123456789'
24027as_cr_alnum=$as_cr_Letters$as_cr_digits
24028
24029# The user is always right.
24030if test "${PATH_SEPARATOR+set}" != set; then
John Criswell0c38eaf2003-09-10 15:17:25 +000024031 echo "#! /bin/sh" >conf$$.sh
24032 echo "exit 0" >>conf$$.sh
24033 chmod +x conf$$.sh
24034 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000024035 PATH_SEPARATOR=';'
24036 else
24037 PATH_SEPARATOR=:
24038 fi
John Criswell0c38eaf2003-09-10 15:17:25 +000024039 rm -f conf$$.sh
John Criswell7a73b802003-06-30 21:59:07 +000024040fi
24041
24042
24043 as_lineno_1=$LINENO
24044 as_lineno_2=$LINENO
24045 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24046 test "x$as_lineno_1" != "x$as_lineno_2" &&
24047 test "x$as_lineno_3" = "x$as_lineno_2" || {
24048 # Find who we are. Look in the path if we contain no path at all
24049 # relative or not.
24050 case $0 in
24051 *[\\/]* ) as_myself=$0 ;;
24052 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24053for as_dir in $PATH
24054do
24055 IFS=$as_save_IFS
24056 test -z "$as_dir" && as_dir=.
24057 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24058done
24059
24060 ;;
24061 esac
24062 # We did not find ourselves, most probably we were run as `sh COMMAND'
24063 # in which case we are not to be found in the path.
24064 if test "x$as_myself" = x; then
24065 as_myself=$0
24066 fi
24067 if test ! -f "$as_myself"; then
24068 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
24069echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
24070 { (exit 1); exit 1; }; }
24071 fi
24072 case $CONFIG_SHELL in
24073 '')
24074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24075for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
24076do
24077 IFS=$as_save_IFS
24078 test -z "$as_dir" && as_dir=.
24079 for as_base in sh bash ksh sh5; do
24080 case $as_dir in
24081 /*)
24082 if ("$as_dir/$as_base" -c '
24083 as_lineno_1=$LINENO
24084 as_lineno_2=$LINENO
24085 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24086 test "x$as_lineno_1" != "x$as_lineno_2" &&
24087 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
John Criswell0c38eaf2003-09-10 15:17:25 +000024088 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
24089 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
John Criswell7a73b802003-06-30 21:59:07 +000024090 CONFIG_SHELL=$as_dir/$as_base
24091 export CONFIG_SHELL
24092 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
24093 fi;;
24094 esac
24095 done
24096done
24097;;
24098 esac
24099
24100 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24101 # uniformly replaced by the line number. The first 'sed' inserts a
24102 # line-number line before each line; the second 'sed' does the real
24103 # work. The second script uses 'N' to pair each line-number line
24104 # with the numbered line, and appends trailing '-' during
24105 # substitution so that $LINENO is not a special case at line end.
24106 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24107 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
24108 sed '=' <$as_myself |
24109 sed '
24110 N
24111 s,$,-,
24112 : loop
24113 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
24114 t loop
24115 s,-$,,
24116 s,^['$as_cr_digits']*\n,,
24117 ' >$as_me.lineno &&
24118 chmod +x $as_me.lineno ||
24119 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
24120echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
24121 { (exit 1); exit 1; }; }
24122
24123 # Don't try to exec as it changes $[0], causing all sort of problems
24124 # (the dirname of $[0] is not the place where we might find the
24125 # original and so on. Autoconf is especially sensible to this).
24126 . ./$as_me.lineno
24127 # Exit status is that of the last command.
24128 exit
24129}
24130
24131
24132case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
24133 *c*,-n*) ECHO_N= ECHO_C='
24134' ECHO_T=' ' ;;
24135 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
24136 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
24137esac
24138
24139if expr a : '\(a\)' >/dev/null 2>&1; then
24140 as_expr=expr
24141else
24142 as_expr=false
24143fi
24144
24145rm -f conf$$ conf$$.exe conf$$.file
24146echo >conf$$.file
24147if ln -s conf$$.file conf$$ 2>/dev/null; then
24148 # We could just check for DJGPP; but this test a) works b) is more generic
24149 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
24150 if test -f conf$$.exe; then
24151 # Don't use ln at all; we don't have any links
24152 as_ln_s='cp -p'
24153 else
24154 as_ln_s='ln -s'
24155 fi
24156elif ln conf$$.file conf$$ 2>/dev/null; then
24157 as_ln_s=ln
24158else
24159 as_ln_s='cp -p'
24160fi
24161rm -f conf$$ conf$$.exe conf$$.file
24162
John Criswell0c38eaf2003-09-10 15:17:25 +000024163if mkdir -p . 2>/dev/null; then
24164 as_mkdir_p=:
24165else
Reid Spencer2b51a082004-08-04 00:34:49 +000024166 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000024167 as_mkdir_p=false
24168fi
24169
John Criswell7a73b802003-06-30 21:59:07 +000024170as_executable_p="test -f"
24171
24172# Sed expression to map a string onto a valid CPP name.
Reid Spencer2b51a082004-08-04 00:34:49 +000024173as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000024174
24175# Sed expression to map a string onto a valid variable name.
Reid Spencer2b51a082004-08-04 00:34:49 +000024176as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000024177
24178
24179# IFS
24180# We need space, tab and new line, in precisely that order.
24181as_nl='
24182'
24183IFS=" $as_nl"
24184
24185# CDPATH.
John Criswell0c38eaf2003-09-10 15:17:25 +000024186$as_unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000024187
24188exec 6>&1
24189
24190# Open the log real soon, to keep \$[0] and so on meaningful, and to
24191# report actual input values of CONFIG_FILES etc. instead of their
24192# values after options handling. Logging --version etc. is OK.
24193exec 5>>config.log
24194{
24195 echo
24196 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24197## Running $as_me. ##
24198_ASBOX
24199} >&5
24200cat >&5 <<_CSEOF
24201
Reid Spencere9de0912004-08-20 09:03:57 +000024202This file was extended by LLVM $as_me 1.4, which was
Reid Spencer2b51a082004-08-04 00:34:49 +000024203generated by GNU Autoconf 2.59. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000024204
24205 CONFIG_FILES = $CONFIG_FILES
24206 CONFIG_HEADERS = $CONFIG_HEADERS
24207 CONFIG_LINKS = $CONFIG_LINKS
24208 CONFIG_COMMANDS = $CONFIG_COMMANDS
24209 $ $0 $@
24210
24211_CSEOF
24212echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
24213echo >&5
24214_ACEOF
24215
24216# Files that config.status was made for.
24217if test -n "$ac_config_files"; then
24218 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
24219fi
24220
24221if test -n "$ac_config_headers"; then
24222 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
24223fi
24224
24225if test -n "$ac_config_links"; then
24226 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
24227fi
24228
24229if test -n "$ac_config_commands"; then
24230 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
24231fi
24232
24233cat >>$CONFIG_STATUS <<\_ACEOF
24234
24235ac_cs_usage="\
24236\`$as_me' instantiates files from templates according to the
24237current configuration.
24238
24239Usage: $0 [OPTIONS] [FILE]...
24240
24241 -h, --help print this help, then exit
24242 -V, --version print version number, then exit
John Criswell0c38eaf2003-09-10 15:17:25 +000024243 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000024244 -d, --debug don't remove temporary files
24245 --recheck update $as_me by reconfiguring in the same conditions
24246 --file=FILE[:TEMPLATE]
Reid Spencer2b51a082004-08-04 00:34:49 +000024247 instantiate the configuration file FILE
John Criswell7a73b802003-06-30 21:59:07 +000024248 --header=FILE[:TEMPLATE]
Reid Spencer2b51a082004-08-04 00:34:49 +000024249 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000024250
24251Configuration files:
24252$config_files
24253
24254Configuration headers:
24255$config_headers
24256
Reid Spencerde8c47f2004-08-29 19:35:28 +000024257Configuration links:
24258$config_links
24259
John Criswellc764fbc2003-09-06 15:17:13 +000024260Configuration commands:
24261$config_commands
24262
John Criswell7a73b802003-06-30 21:59:07 +000024263Report bugs to <bug-autoconf@gnu.org>."
24264_ACEOF
24265
24266cat >>$CONFIG_STATUS <<_ACEOF
24267ac_cs_version="\\
Reid Spencere9de0912004-08-20 09:03:57 +000024268LLVM config.status 1.4
Reid Spencer2b51a082004-08-04 00:34:49 +000024269configured by $0, generated by GNU Autoconf 2.59,
John Criswell7a73b802003-06-30 21:59:07 +000024270 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
24271
Reid Spencer2b51a082004-08-04 00:34:49 +000024272Copyright (C) 2003 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000024273This config.status script is free software; the Free Software Foundation
24274gives unlimited permission to copy, distribute and modify it."
24275srcdir=$srcdir
24276INSTALL="$INSTALL"
24277_ACEOF
24278
24279cat >>$CONFIG_STATUS <<\_ACEOF
24280# If no file are specified by the user, then we need to provide default
24281# value. By we need to know if files were specified by the user.
24282ac_need_defaults=:
24283while test $# != 0
24284do
24285 case $1 in
24286 --*=*)
24287 ac_option=`expr "x$1" : 'x\([^=]*\)='`
24288 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000024289 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000024290 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000024291 -*)
24292 ac_option=$1
24293 ac_optarg=$2
24294 ac_shift=shift
24295 ;;
John Criswell7a73b802003-06-30 21:59:07 +000024296 *) # This is not an option, so the user has probably given explicit
24297 # arguments.
John Criswell0c38eaf2003-09-10 15:17:25 +000024298 ac_option=$1
John Criswell7a73b802003-06-30 21:59:07 +000024299 ac_need_defaults=false;;
24300 esac
24301
John Criswell0c38eaf2003-09-10 15:17:25 +000024302 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000024303 # Handling of the options.
24304_ACEOF
John Criswelld9cd1442003-09-09 20:52:17 +000024305cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024306 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24307 ac_cs_recheck=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000024308 --version | --vers* | -V )
24309 echo "$ac_cs_version"; exit 0 ;;
24310 --he | --h)
24311 # Conflict between --help and --header
24312 { { echo "$as_me:$LINENO: error: ambiguous option: $1
24313Try \`$0 --help' for more information." >&5
24314echo "$as_me: error: ambiguous option: $1
24315Try \`$0 --help' for more information." >&2;}
24316 { (exit 1); exit 1; }; };;
24317 --help | --hel | -h )
24318 echo "$ac_cs_usage"; exit 0 ;;
24319 --debug | --d* | -d )
24320 debug=: ;;
24321 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000024322 $ac_shift
24323 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000024324 ac_need_defaults=false;;
24325 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000024326 $ac_shift
24327 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000024328 ac_need_defaults=false;;
John Criswell0c38eaf2003-09-10 15:17:25 +000024329 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24330 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24331 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000024332
24333 # This is an error.
24334 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
24335Try \`$0 --help' for more information." >&5
24336echo "$as_me: error: unrecognized option: $1
24337Try \`$0 --help' for more information." >&2;}
24338 { (exit 1); exit 1; }; } ;;
24339
24340 *) ac_config_targets="$ac_config_targets $1" ;;
24341
24342 esac
24343 shift
24344done
24345
John Criswell0c38eaf2003-09-10 15:17:25 +000024346ac_configure_extra_args=
24347
24348if $ac_cs_silent; then
24349 exec 6>/dev/null
24350 ac_configure_extra_args="$ac_configure_extra_args --silent"
24351fi
24352
24353_ACEOF
24354cat >>$CONFIG_STATUS <<_ACEOF
24355if \$ac_cs_recheck; then
24356 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24357 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24358fi
24359
John Criswell7a73b802003-06-30 21:59:07 +000024360_ACEOF
24361
John Criswellc764fbc2003-09-06 15:17:13 +000024362cat >>$CONFIG_STATUS <<_ACEOF
24363#
24364# INIT-COMMANDS section.
24365#
John Criswell7a73b802003-06-30 21:59:07 +000024366
John Criswellc764fbc2003-09-06 15:17:13 +000024367${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
24368${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common`
Reid Spencer5f285392004-08-24 16:32:21 +000024369${srcdir}/autoconf/mkinstalldirs `dirname examples/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000024370${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000024371${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000024372${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile`
24373${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
John Criswellf424d742003-10-07 21:13:47 +000024374${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvm.py`
24375${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvmdb.py`
John Criswellc764fbc2003-09-06 15:17:13 +000024376${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile`
24377${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile.programs`
John Criswell8a54a1e2004-06-22 21:35:10 +000024378${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile.tests`
John Criswellc764fbc2003-09-06 15:17:13 +000024379${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.Makefile`
24380${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.report`
John Criswellc764fbc2003-09-06 15:17:13 +000024381${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.report`
24382${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.example.Makefile`
24383${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.Makefile`
24384${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.buildrepo.Makefile`
24385${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.Makefile`
24386${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.report`
24387${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.Makefile`
24388${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.report`
24389${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.typesafe.Makefile`
24390${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.gnuplot`
John Criswell878be7d2004-02-24 21:43:38 +000024391${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.vtl.Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000024392${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/Makefile`
24393${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile`
John Criswell613758d2003-09-11 18:03:50 +000024394${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile.spec`
Alkis Evlogimenos271143f2004-02-26 04:14:10 +000024395${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile.spec2000`
John Criswellcf2e9f72004-02-10 22:36:35 +000024396${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile.spec95`
John Criswellc764fbc2003-09-06 15:17:13 +000024397${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile`
24398${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile.multisrc`
Misha Brukman811ce9f2003-11-12 22:16:51 +000024399${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in`
24400${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile`
24401${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in`
24402${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile`
24403${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in`
24404${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile`
24405${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in`
24406${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile`
24407${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in`
24408${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile`
24409${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in`
24410${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile`
24411${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in`
John Criswellc764fbc2003-09-06 15:17:13 +000024412${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile`
24413${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile.singlesrc`
Alkis Evlogimenos271143f2004-02-26 04:14:10 +000024414${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000024415${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
Brian Gaekec45be042003-10-07 06:01:34 +000024416${srcdir}/autoconf/mkinstalldirs `dirname utils/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000024417${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000024418
24419_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000024420
24421
24422
24423cat >>$CONFIG_STATUS <<\_ACEOF
24424for ac_config_target in $ac_config_targets
24425do
24426 case "$ac_config_target" in
24427 # Handling of arguments.
24428 "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Brian Gaeke6c3fd812004-02-23 22:07:00 +000024429 "include/Support/DataTypes.h" ) CONFIG_FILES="$CONFIG_FILES include/Support/DataTypes.h" ;;
24430 "include/Support/ThreadSupport.h" ) CONFIG_FILES="$CONFIG_FILES include/Support/ThreadSupport.h" ;;
Brian Gaeke793c5f22004-02-23 18:56:02 +000024431 "include/Support/hash_map" ) CONFIG_FILES="$CONFIG_FILES include/Support/hash_map" ;;
24432 "include/Support/hash_set" ) CONFIG_FILES="$CONFIG_FILES include/Support/hash_set" ;;
Brian Gaeke6c3fd812004-02-23 22:07:00 +000024433 "include/Support/iterator" ) CONFIG_FILES="$CONFIG_FILES include/Support/iterator" ;;
Reid Spencerde8c47f2004-08-29 19:35:28 +000024434 "lib/System/platform" ) CONFIG_LINKS="$CONFIG_LINKS lib/System/platform:lib/System/$platform_type" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024435 "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
24436 "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
Reid Spencer5f285392004-08-24 16:32:21 +000024437 "examples/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024438 "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024439 "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024440 "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
24441 "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
John Criswellf424d742003-10-07 21:13:47 +000024442 "test/QMTest/llvm.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvm.py" ;;
24443 "test/QMTest/llvmdb.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvmdb.py" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024444 "test/Programs/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile" ;;
24445 "test/Programs/Makefile.programs" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile.programs" ;;
John Criswell8a54a1e2004-06-22 21:35:10 +000024446 "test/Programs/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile.tests" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024447 "test/Programs/TEST.aa.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.Makefile" ;;
24448 "test/Programs/TEST.dsgraph.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.report" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024449 "test/Programs/TEST.aa.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.report" ;;
24450 "test/Programs/TEST.example.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.example.Makefile" ;;
24451 "test/Programs/TEST.nightly.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.Makefile" ;;
24452 "test/Programs/TEST.buildrepo.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.buildrepo.Makefile" ;;
24453 "test/Programs/TEST.jit.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.Makefile" ;;
24454 "test/Programs/TEST.nightly.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.report" ;;
24455 "test/Programs/TEST.dsgraph.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.Makefile" ;;
24456 "test/Programs/TEST.jit.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.report" ;;
24457 "test/Programs/TEST.typesafe.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.typesafe.Makefile" ;;
24458 "test/Programs/TEST.dsgraph.gnuplot" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.gnuplot" ;;
John Criswell878be7d2004-02-24 21:43:38 +000024459 "test/Programs/TEST.vtl.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.vtl.Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024460 "test/Programs/External/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/Makefile" ;;
24461 "test/Programs/External/SPEC/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile" ;;
John Criswell613758d2003-09-11 18:03:50 +000024462 "test/Programs/External/SPEC/Makefile.spec" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile.spec" ;;
Alkis Evlogimenos271143f2004-02-26 04:14:10 +000024463 "test/Programs/External/SPEC/Makefile.spec2000" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile.spec2000" ;;
John Criswellcf2e9f72004-02-10 22:36:35 +000024464 "test/Programs/External/SPEC/Makefile.spec95" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile.spec95" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024465 "test/Programs/MultiSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile" ;;
24466 "test/Programs/MultiSource/Makefile.multisrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile.multisrc" ;;
Misha Brukman811ce9f2003-11-12 22:16:51 +000024467 "test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in" ;;
24468 "test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile" ;;
24469 "test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in" ;;
24470 "test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile" ;;
24471 "test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in" ;;
24472 "test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile" ;;
24473 "test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in" ;;
24474 "test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile" ;;
24475 "test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in" ;;
24476 "test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile" ;;
24477 "test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in" ;;
24478 "test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile" ;;
24479 "test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024480 "test/Programs/SingleSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile" ;;
24481 "test/Programs/SingleSource/Makefile.singlesrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile.singlesrc" ;;
Alkis Evlogimenos271143f2004-02-26 04:14:10 +000024482 "test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024483 "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
Brian Gaekec45be042003-10-07 06:01:34 +000024484 "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024485 "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
John Criswell7a73b802003-06-30 21:59:07 +000024486 "include/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/Config/config.h" ;;
24487 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24488echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24489 { (exit 1); exit 1; }; };;
24490 esac
24491done
24492
24493# If the user did not use the arguments to specify the items to instantiate,
24494# then the envvar interface is used. Set only those that are not.
24495# We use the long form for the default assignment because of an extremely
24496# bizarre bug on SunOS 4.1.3.
24497if $ac_need_defaults; then
24498 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24499 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
Reid Spencerde8c47f2004-08-29 19:35:28 +000024500 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
John Criswellc764fbc2003-09-06 15:17:13 +000024501 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000024502fi
24503
John Criswell0c38eaf2003-09-10 15:17:25 +000024504# Have a temporary directory for convenience. Make it in the build tree
24505# simply because there is no reason to put it here, and in addition,
24506# creating and moving files from /tmp can sometimes cause problems.
John Criswell7a73b802003-06-30 21:59:07 +000024507# Create a temporary directory, and hook for its removal unless debugging.
24508$debug ||
24509{
24510 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
24511 trap '{ (exit 1); exit 1; }' 1 2 13 15
24512}
24513
24514# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000024515
John Criswell7a73b802003-06-30 21:59:07 +000024516{
John Criswell0c38eaf2003-09-10 15:17:25 +000024517 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000024518 test -n "$tmp" && test -d "$tmp"
24519} ||
24520{
John Criswell0c38eaf2003-09-10 15:17:25 +000024521 tmp=./confstat$$-$RANDOM
John Criswell7a73b802003-06-30 21:59:07 +000024522 (umask 077 && mkdir $tmp)
24523} ||
24524{
John Criswell0c38eaf2003-09-10 15:17:25 +000024525 echo "$me: cannot create a temporary directory in ." >&2
John Criswell7a73b802003-06-30 21:59:07 +000024526 { (exit 1); exit 1; }
24527}
24528
24529_ACEOF
24530
24531cat >>$CONFIG_STATUS <<_ACEOF
24532
24533#
24534# CONFIG_FILES section.
24535#
24536
24537# No need to generate the scripts if there are no CONFIG_FILES.
24538# This happens for instance when ./config.status config.h
24539if test -n "\$CONFIG_FILES"; then
24540 # Protect against being on the right side of a sed subst in config.status.
24541 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
24542 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
24543s,@SHELL@,$SHELL,;t t
24544s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
24545s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
24546s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
24547s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
24548s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
24549s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
24550s,@exec_prefix@,$exec_prefix,;t t
24551s,@prefix@,$prefix,;t t
24552s,@program_transform_name@,$program_transform_name,;t t
24553s,@bindir@,$bindir,;t t
24554s,@sbindir@,$sbindir,;t t
24555s,@libexecdir@,$libexecdir,;t t
24556s,@datadir@,$datadir,;t t
24557s,@sysconfdir@,$sysconfdir,;t t
24558s,@sharedstatedir@,$sharedstatedir,;t t
24559s,@localstatedir@,$localstatedir,;t t
24560s,@libdir@,$libdir,;t t
24561s,@includedir@,$includedir,;t t
24562s,@oldincludedir@,$oldincludedir,;t t
24563s,@infodir@,$infodir,;t t
24564s,@mandir@,$mandir,;t t
24565s,@build_alias@,$build_alias,;t t
24566s,@host_alias@,$host_alias,;t t
24567s,@target_alias@,$target_alias,;t t
24568s,@DEFS@,$DEFS,;t t
24569s,@ECHO_C@,$ECHO_C,;t t
24570s,@ECHO_N@,$ECHO_N,;t t
24571s,@ECHO_T@,$ECHO_T,;t t
24572s,@LIBS@,$LIBS,;t t
John Criswell12399a12003-09-30 15:55:44 +000024573s,@subdirs@,$subdirs,;t t
John Criswell7a73b802003-06-30 21:59:07 +000024574s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
24575s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
24576s,@INSTALL_DATA@,$INSTALL_DATA,;t t
24577s,@build@,$build,;t t
24578s,@build_cpu@,$build_cpu,;t t
24579s,@build_vendor@,$build_vendor,;t t
24580s,@build_os@,$build_os,;t t
24581s,@host@,$host,;t t
24582s,@host_cpu@,$host_cpu,;t t
24583s,@host_vendor@,$host_vendor,;t t
24584s,@host_os@,$host_os,;t t
24585s,@target@,$target,;t t
24586s,@target_cpu@,$target_cpu,;t t
24587s,@target_vendor@,$target_vendor,;t t
24588s,@target_os@,$target_os,;t t
24589s,@OS@,$OS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000024590s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
John Criswell76595452003-07-01 22:07:39 +000024591s,@ARCH@,$ARCH,;t t
John Criswell7a73b802003-06-30 21:59:07 +000024592s,@CXX@,$CXX,;t t
24593s,@CXXFLAGS@,$CXXFLAGS,;t t
24594s,@LDFLAGS@,$LDFLAGS,;t t
24595s,@CPPFLAGS@,$CPPFLAGS,;t t
24596s,@ac_ct_CXX@,$ac_ct_CXX,;t t
24597s,@EXEEXT@,$EXEEXT,;t t
24598s,@OBJEXT@,$OBJEXT,;t t
24599s,@CC@,$CC,;t t
24600s,@CFLAGS@,$CFLAGS,;t t
24601s,@ac_ct_CC@,$ac_ct_CC,;t t
24602s,@CPP@,$CPP,;t t
24603s,@ifGNUmake@,$ifGNUmake,;t t
24604s,@LEX@,$LEX,;t t
24605s,@LEXLIB@,$LEXLIB,;t t
24606s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
24607s,@YACC@,$YACC,;t t
Brian Gaeke12810632004-01-13 06:52:10 +000024608s,@BISON@,$BISON,;t t
John Criswell47fdd832003-07-14 16:52:07 +000024609s,@EGREP@,$EGREP,;t t
John Criswell7a73b802003-06-30 21:59:07 +000024610s,@LN_S@,$LN_S,;t t
24611s,@ECHO@,$ECHO,;t t
John Criswell47fdd832003-07-14 16:52:07 +000024612s,@AR@,$AR,;t t
24613s,@ac_ct_AR@,$ac_ct_AR,;t t
John Criswell7a73b802003-06-30 21:59:07 +000024614s,@RANLIB@,$RANLIB,;t t
24615s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
24616s,@STRIP@,$STRIP,;t t
24617s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
John Criswell47fdd832003-07-14 16:52:07 +000024618s,@CXXCPP@,$CXXCPP,;t t
24619s,@F77@,$F77,;t t
24620s,@FFLAGS@,$FFLAGS,;t t
24621s,@ac_ct_F77@,$ac_ct_F77,;t t
John Criswell7a73b802003-06-30 21:59:07 +000024622s,@LIBTOOL@,$LIBTOOL,;t t
John Criswell7a73b802003-06-30 21:59:07 +000024623s,@DOT@,$DOT,;t t
24624s,@ETAGS@,$ETAGS,;t t
Brian Gaekeafa3fbf2004-01-22 21:55:02 +000024625s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
John Criswellde00db22003-08-25 16:49:54 +000024626s,@PYTHON@,$PYTHON,;t t
24627s,@QMTEST@,$QMTEST,;t t
Brian Gaekec9a410c2004-02-23 21:30:37 +000024628s,@HAVE_PTHREAD_MUTEX_LOCK@,$HAVE_PTHREAD_MUTEX_LOCK,;t t
Brian Gaeke6c3fd812004-02-23 22:07:00 +000024629s,@INCLUDE_SYS_TYPES_H@,$INCLUDE_SYS_TYPES_H,;t t
24630s,@INCLUDE_INTTYPES_H@,$INCLUDE_INTTYPES_H,;t t
John Criswell7ed43ad2004-07-19 16:12:29 +000024631s,@INCLUDE_STDINT_H@,$INCLUDE_STDINT_H,;t t
John Criswell0021c312004-02-13 21:57:29 +000024632s,@ENDIAN@,$ENDIAN,;t t
Brian Gaeke793c5f22004-02-23 18:56:02 +000024633s,@HAVE_STD_EXT_HASH_MAP@,$HAVE_STD_EXT_HASH_MAP,;t t
24634s,@HAVE_GNU_EXT_HASH_MAP@,$HAVE_GNU_EXT_HASH_MAP,;t t
24635s,@HAVE_GLOBAL_HASH_MAP@,$HAVE_GLOBAL_HASH_MAP,;t t
24636s,@HAVE_STD_EXT_HASH_SET@,$HAVE_STD_EXT_HASH_SET,;t t
24637s,@HAVE_GNU_EXT_HASH_SET@,$HAVE_GNU_EXT_HASH_SET,;t t
24638s,@HAVE_GLOBAL_HASH_SET@,$HAVE_GLOBAL_HASH_SET,;t t
Brian Gaeke295d4b82004-02-23 18:16:06 +000024639s,@HAVE_STD_ITERATOR@,$HAVE_STD_ITERATOR,;t t
24640s,@HAVE_BI_ITERATOR@,$HAVE_BI_ITERATOR,;t t
24641s,@HAVE_FWD_ITERATOR@,$HAVE_FWD_ITERATOR,;t t
John Criswell7a73b802003-06-30 21:59:07 +000024642s,@ALLOCA@,$ALLOCA,;t t
John Criswell7a73b802003-06-30 21:59:07 +000024643s,@MMAP_FILE@,$MMAP_FILE,;t t
John Criswell7a73b802003-06-30 21:59:07 +000024644s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
John Criswellcf2e9f72004-02-10 22:36:35 +000024645s,@SPEC95_ROOT@,$SPEC95_ROOT,;t t
24646s,@USE_SPEC95@,$USE_SPEC95,;t t
Brian Gaekee773b862004-04-16 17:13:44 +000024647s,@SPEC2000_ROOT@,$SPEC2000_ROOT,;t t
24648s,@USE_SPEC2000@,$USE_SPEC2000,;t t
John Criswell0538d422004-02-20 22:30:22 +000024649s,@POVRAY_ROOT@,$POVRAY_ROOT,;t t
24650s,@USE_POVRAY@,$USE_POVRAY,;t t
John Criswell7a73b802003-06-30 21:59:07 +000024651s,@UPB@,$UPB,;t t
John Criswellf02dbf02003-07-22 20:07:49 +000024652s,@DISABLE_LLC_DIFFS@,$DISABLE_LLC_DIFFS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000024653s,@JIT@,$JIT,;t t
Brian Gaeke2f50a042004-01-16 21:31:21 +000024654s,@LLVMCC1@,$LLVMCC1,;t t
24655s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000024656s,@BCR@,$BCR,;t t
24657s,@PAPIDIR@,$PAPIDIR,;t t
Brian Gaeke554831c2004-01-21 19:39:29 +000024658s,@SHLIBEXT@,$SHLIBEXT,;t t
Reid Spencere9de0912004-08-20 09:03:57 +000024659s,@LLVM_PREFIX@,$LLVM_PREFIX,;t t
24660s,@LLVM_BINDIR@,$LLVM_BINDIR,;t t
24661s,@LLVM_LIBDIR@,$LLVM_LIBDIR,;t t
24662s,@LLVM_DATADIR@,$LLVM_DATADIR,;t t
24663s,@LLVM_DOCSDIR@,$LLVM_DOCSDIR,;t t
24664s,@LLVM_ETCDIR@,$LLVM_ETCDIR,;t t
24665s,@LLVM_INCLUDEDIR@,$LLVM_INCLUDEDIR,;t t
24666s,@LLVM_INFODIR@,$LLVM_INFODIR,;t t
24667s,@LLVM_MANDIR@,$LLVM_MANDIR,;t t
24668s,@LLVM_CONFIGTIME@,$LLVM_CONFIGTIME,;t t
Brian Gaeke26be9c52004-01-13 06:43:16 +000024669s,@LIBOBJS@,$LIBOBJS,;t t
John Criswell0c38eaf2003-09-10 15:17:25 +000024670s,@LTLIBOBJS@,$LTLIBOBJS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000024671CEOF
24672
24673_ACEOF
24674
24675 cat >>$CONFIG_STATUS <<\_ACEOF
24676 # Split the substitutions into bite-sized pieces for seds with
24677 # small command number limits, like on Digital OSF/1 and HP-UX.
24678 ac_max_sed_lines=48
24679 ac_sed_frag=1 # Number of current file.
24680 ac_beg=1 # First line for current file.
24681 ac_end=$ac_max_sed_lines # Line after last line for current file.
24682 ac_more_lines=:
24683 ac_sed_cmds=
24684 while $ac_more_lines; do
24685 if test $ac_beg -gt 1; then
24686 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24687 else
24688 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24689 fi
24690 if test ! -s $tmp/subs.frag; then
24691 ac_more_lines=false
24692 else
24693 # The purpose of the label and of the branching condition is to
24694 # speed up the sed processing (if there are no `@' at all, there
24695 # is no need to browse any of the substitutions).
24696 # These are the two extra sed commands mentioned above.
24697 (echo ':t
24698 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
24699 if test -z "$ac_sed_cmds"; then
Reid Spencer2b51a082004-08-04 00:34:49 +000024700 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
John Criswell7a73b802003-06-30 21:59:07 +000024701 else
Reid Spencer2b51a082004-08-04 00:34:49 +000024702 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
John Criswell7a73b802003-06-30 21:59:07 +000024703 fi
24704 ac_sed_frag=`expr $ac_sed_frag + 1`
24705 ac_beg=$ac_end
24706 ac_end=`expr $ac_end + $ac_max_sed_lines`
24707 fi
24708 done
24709 if test -z "$ac_sed_cmds"; then
24710 ac_sed_cmds=cat
24711 fi
24712fi # test -n "$CONFIG_FILES"
24713
24714_ACEOF
24715cat >>$CONFIG_STATUS <<\_ACEOF
24716for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
24717 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24718 case $ac_file in
24719 - | *:- | *:-:* ) # input from stdin
Reid Spencer2b51a082004-08-04 00:34:49 +000024720 cat >$tmp/stdin
24721 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24722 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000024723 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
Reid Spencer2b51a082004-08-04 00:34:49 +000024724 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000024725 * ) ac_file_in=$ac_file.in ;;
24726 esac
24727
24728 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
24729 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24730$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2b51a082004-08-04 00:34:49 +000024731 X"$ac_file" : 'X\(//\)[^/]' \| \
24732 X"$ac_file" : 'X\(//\)$' \| \
24733 X"$ac_file" : 'X\(/\)' \| \
24734 . : '\(.\)' 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +000024735echo X"$ac_file" |
24736 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24737 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24738 /^X\(\/\/\)$/{ s//\1/; q; }
24739 /^X\(\/\).*/{ s//\1/; q; }
24740 s/.*/./; q'`
John Criswell0c38eaf2003-09-10 15:17:25 +000024741 { if $as_mkdir_p; then
24742 mkdir -p "$ac_dir"
24743 else
24744 as_dir="$ac_dir"
24745 as_dirs=
24746 while test ! -d "$as_dir"; do
24747 as_dirs="$as_dir $as_dirs"
24748 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24749$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2b51a082004-08-04 00:34:49 +000024750 X"$as_dir" : 'X\(//\)[^/]' \| \
24751 X"$as_dir" : 'X\(//\)$' \| \
24752 X"$as_dir" : 'X\(/\)' \| \
24753 . : '\(.\)' 2>/dev/null ||
John Criswell0c38eaf2003-09-10 15:17:25 +000024754echo X"$as_dir" |
24755 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24756 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24757 /^X\(\/\/\)$/{ s//\1/; q; }
24758 /^X\(\/\).*/{ s//\1/; q; }
24759 s/.*/./; q'`
24760 done
24761 test ! -n "$as_dirs" || mkdir $as_dirs
24762 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24763echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24764 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000024765
24766 ac_builddir=.
24767
24768if test "$ac_dir" != .; then
24769 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24770 # A "../" for each directory in $ac_dir_suffix.
24771 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24772else
24773 ac_dir_suffix= ac_top_builddir=
24774fi
24775
24776case $srcdir in
24777 .) # No --srcdir option. We are building in place.
24778 ac_srcdir=.
24779 if test -z "$ac_top_builddir"; then
24780 ac_top_srcdir=.
24781 else
24782 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24783 fi ;;
24784 [\\/]* | ?:[\\/]* ) # Absolute path.
24785 ac_srcdir=$srcdir$ac_dir_suffix;
24786 ac_top_srcdir=$srcdir ;;
24787 *) # Relative path.
24788 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24789 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24790esac
Reid Spencer2b51a082004-08-04 00:34:49 +000024791
24792# Do not use `cd foo && pwd` to compute absolute paths, because
24793# the directories may not exist.
24794case `pwd` in
24795.) ac_abs_builddir="$ac_dir";;
24796*)
24797 case "$ac_dir" in
24798 .) ac_abs_builddir=`pwd`;;
24799 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24800 *) ac_abs_builddir=`pwd`/"$ac_dir";;
24801 esac;;
24802esac
24803case $ac_abs_builddir in
24804.) ac_abs_top_builddir=${ac_top_builddir}.;;
24805*)
24806 case ${ac_top_builddir}. in
24807 .) ac_abs_top_builddir=$ac_abs_builddir;;
24808 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24809 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24810 esac;;
24811esac
24812case $ac_abs_builddir in
24813.) ac_abs_srcdir=$ac_srcdir;;
24814*)
24815 case $ac_srcdir in
24816 .) ac_abs_srcdir=$ac_abs_builddir;;
24817 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24818 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24819 esac;;
24820esac
24821case $ac_abs_builddir in
24822.) ac_abs_top_srcdir=$ac_top_srcdir;;
24823*)
24824 case $ac_top_srcdir in
24825 .) ac_abs_top_srcdir=$ac_abs_builddir;;
24826 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24827 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24828 esac;;
24829esac
John Criswell7a73b802003-06-30 21:59:07 +000024830
24831
24832 case $INSTALL in
24833 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24834 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
24835 esac
24836
24837 if test x"$ac_file" != x-; then
24838 { echo "$as_me:$LINENO: creating $ac_file" >&5
24839echo "$as_me: creating $ac_file" >&6;}
24840 rm -f "$ac_file"
24841 fi
24842 # Let's still pretend it is `configure' which instantiates (i.e., don't
24843 # use $as_me), people would be surprised to read:
24844 # /* config.h. Generated by config.status. */
24845 if test x"$ac_file" = x-; then
24846 configure_input=
24847 else
24848 configure_input="$ac_file. "
24849 fi
24850 configure_input=$configure_input"Generated from `echo $ac_file_in |
Reid Spencer2b51a082004-08-04 00:34:49 +000024851 sed 's,.*/,,'` by configure."
John Criswell7a73b802003-06-30 21:59:07 +000024852
24853 # First look for the input files in the build tree, otherwise in the
24854 # src tree.
24855 ac_file_inputs=`IFS=:
24856 for f in $ac_file_in; do
24857 case $f in
24858 -) echo $tmp/stdin ;;
24859 [\\/$]*)
Reid Spencer2b51a082004-08-04 00:34:49 +000024860 # Absolute (can't be DOS-style, as IFS=:)
24861 test -f "$f" || { { 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 Spencer2b51a082004-08-04 00:34:49 +000024864 echo "$f";;
John Criswell7a73b802003-06-30 21:59:07 +000024865 *) # Relative
Reid Spencer2b51a082004-08-04 00:34:49 +000024866 if test -f "$f"; then
24867 # Build tree
24868 echo "$f"
24869 elif test -f "$srcdir/$f"; then
24870 # Source tree
24871 echo "$srcdir/$f"
24872 else
24873 # /dev/null tree
24874 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000024875echo "$as_me: error: cannot find input file: $f" >&2;}
24876 { (exit 1); exit 1; }; }
Reid Spencer2b51a082004-08-04 00:34:49 +000024877 fi;;
John Criswell7a73b802003-06-30 21:59:07 +000024878 esac
24879 done` || { (exit 1); exit 1; }
24880_ACEOF
24881cat >>$CONFIG_STATUS <<_ACEOF
24882 sed "$ac_vpsub
24883$extrasub
24884_ACEOF
24885cat >>$CONFIG_STATUS <<\_ACEOF
24886:t
24887/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24888s,@configure_input@,$configure_input,;t t
24889s,@srcdir@,$ac_srcdir,;t t
24890s,@abs_srcdir@,$ac_abs_srcdir,;t t
24891s,@top_srcdir@,$ac_top_srcdir,;t t
24892s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
24893s,@builddir@,$ac_builddir,;t t
24894s,@abs_builddir@,$ac_abs_builddir,;t t
24895s,@top_builddir@,$ac_top_builddir,;t t
24896s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
24897s,@INSTALL@,$ac_INSTALL,;t t
24898" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24899 rm -f $tmp/stdin
24900 if test x"$ac_file" != x-; then
24901 mv $tmp/out $ac_file
24902 else
24903 cat $tmp/out
24904 rm -f $tmp/out
24905 fi
24906
24907done
24908_ACEOF
24909cat >>$CONFIG_STATUS <<\_ACEOF
24910
24911#
24912# CONFIG_HEADER section.
24913#
24914
24915# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24916# NAME is the cpp macro being defined and VALUE is the value it is being given.
24917#
24918# ac_d sets the value in "#define NAME VALUE" lines.
Reid Spencer2b51a082004-08-04 00:34:49 +000024919ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
24920ac_dB='[ ].*$,\1#\2'
John Criswell7a73b802003-06-30 21:59:07 +000024921ac_dC=' '
24922ac_dD=',;t'
24923# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
Reid Spencer2b51a082004-08-04 00:34:49 +000024924ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
John Criswell7a73b802003-06-30 21:59:07 +000024925ac_uB='$,\1#\2define\3'
24926ac_uC=' '
24927ac_uD=',;t'
24928
24929for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
24930 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24931 case $ac_file in
24932 - | *:- | *:-:* ) # input from stdin
Reid Spencer2b51a082004-08-04 00:34:49 +000024933 cat >$tmp/stdin
24934 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24935 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000024936 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
Reid Spencer2b51a082004-08-04 00:34:49 +000024937 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000024938 * ) ac_file_in=$ac_file.in ;;
24939 esac
24940
24941 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
24942echo "$as_me: creating $ac_file" >&6;}
24943
24944 # First look for the input files in the build tree, otherwise in the
24945 # src tree.
24946 ac_file_inputs=`IFS=:
24947 for f in $ac_file_in; do
24948 case $f in
24949 -) echo $tmp/stdin ;;
24950 [\\/$]*)
Reid Spencer2b51a082004-08-04 00:34:49 +000024951 # Absolute (can't be DOS-style, as IFS=:)
24952 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000024953echo "$as_me: error: cannot find input file: $f" >&2;}
24954 { (exit 1); exit 1; }; }
Reid Spencer2b51a082004-08-04 00:34:49 +000024955 # Do quote $f, to prevent DOS paths from being IFS'd.
24956 echo "$f";;
John Criswell7a73b802003-06-30 21:59:07 +000024957 *) # Relative
Reid Spencer2b51a082004-08-04 00:34:49 +000024958 if test -f "$f"; then
24959 # Build tree
24960 echo "$f"
24961 elif test -f "$srcdir/$f"; then
24962 # Source tree
24963 echo "$srcdir/$f"
24964 else
24965 # /dev/null tree
24966 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000024967echo "$as_me: error: cannot find input file: $f" >&2;}
24968 { (exit 1); exit 1; }; }
Reid Spencer2b51a082004-08-04 00:34:49 +000024969 fi;;
John Criswell7a73b802003-06-30 21:59:07 +000024970 esac
24971 done` || { (exit 1); exit 1; }
24972 # Remove the trailing spaces.
Reid Spencer2b51a082004-08-04 00:34:49 +000024973 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
John Criswell7a73b802003-06-30 21:59:07 +000024974
24975_ACEOF
24976
24977# Transform confdefs.h into two sed scripts, `conftest.defines' and
24978# `conftest.undefs', that substitutes the proper values into
24979# config.h.in to produce config.h. The first handles `#define'
24980# templates, and the second `#undef' templates.
24981# And first: Protect against being on the right side of a sed subst in
24982# config.status. Protect against being in an unquoted here document
24983# in config.status.
24984rm -f conftest.defines conftest.undefs
24985# Using a here document instead of a string reduces the quoting nightmare.
24986# Putting comments in sed scripts is not portable.
24987#
24988# `end' is used to avoid that the second main sed command (meant for
24989# 0-ary CPP macros) applies to n-ary macro definitions.
24990# See the Autoconf documentation for `clear'.
24991cat >confdef2sed.sed <<\_ACEOF
24992s/[\\&,]/\\&/g
24993s,[\\$`],\\&,g
24994t clear
24995: clear
Reid Spencer2b51a082004-08-04 00:34:49 +000024996s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
John Criswell7a73b802003-06-30 21:59:07 +000024997t end
Reid Spencer2b51a082004-08-04 00:34:49 +000024998s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
John Criswell7a73b802003-06-30 21:59:07 +000024999: end
25000_ACEOF
25001# If some macros were called several times there might be several times
25002# the same #defines, which is useless. Nevertheless, we may not want to
25003# sort them, since we want the *last* AC-DEFINE to be honored.
25004uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
25005sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
25006rm -f confdef2sed.sed
25007
25008# This sed command replaces #undef with comments. This is necessary, for
25009# example, in the case of _POSIX_SOURCE, which is predefined and required
25010# on some systems where configure will not decide to define it.
25011cat >>conftest.undefs <<\_ACEOF
Reid Spencer2b51a082004-08-04 00:34:49 +000025012s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
John Criswell7a73b802003-06-30 21:59:07 +000025013_ACEOF
25014
25015# Break up conftest.defines because some shells have a limit on the size
25016# of here documents, and old seds have small limits too (100 cmds).
25017echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
Reid Spencer2b51a082004-08-04 00:34:49 +000025018echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000025019echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
25020echo ' :' >>$CONFIG_STATUS
25021rm -f conftest.tail
25022while grep . conftest.defines >/dev/null
25023do
25024 # Write a limited-size here document to $tmp/defines.sed.
25025 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
25026 # Speed up: don't consider the non `#define' lines.
Reid Spencer2b51a082004-08-04 00:34:49 +000025027 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000025028 # Work around the forget-to-reset-the-flag bug.
25029 echo 't clr' >>$CONFIG_STATUS
25030 echo ': clr' >>$CONFIG_STATUS
25031 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
25032 echo 'CEOF
25033 sed -f $tmp/defines.sed $tmp/in >$tmp/out
25034 rm -f $tmp/in
25035 mv $tmp/out $tmp/in
25036' >>$CONFIG_STATUS
25037 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
25038 rm -f conftest.defines
25039 mv conftest.tail conftest.defines
25040done
25041rm -f conftest.defines
John Criswell0c38eaf2003-09-10 15:17:25 +000025042echo ' fi # grep' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000025043echo >>$CONFIG_STATUS
25044
25045# Break up conftest.undefs because some shells have a limit on the size
25046# of here documents, and old seds have small limits too (100 cmds).
25047echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
25048rm -f conftest.tail
25049while grep . conftest.undefs >/dev/null
25050do
25051 # Write a limited-size here document to $tmp/undefs.sed.
25052 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
25053 # Speed up: don't consider the non `#undef'
Reid Spencer2b51a082004-08-04 00:34:49 +000025054 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000025055 # Work around the forget-to-reset-the-flag bug.
25056 echo 't clr' >>$CONFIG_STATUS
25057 echo ': clr' >>$CONFIG_STATUS
25058 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
25059 echo 'CEOF
25060 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
25061 rm -f $tmp/in
25062 mv $tmp/out $tmp/in
25063' >>$CONFIG_STATUS
25064 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
25065 rm -f conftest.undefs
25066 mv conftest.tail conftest.undefs
25067done
25068rm -f conftest.undefs
25069
25070cat >>$CONFIG_STATUS <<\_ACEOF
25071 # Let's still pretend it is `configure' which instantiates (i.e., don't
25072 # use $as_me), people would be surprised to read:
25073 # /* config.h. Generated by config.status. */
25074 if test x"$ac_file" = x-; then
25075 echo "/* Generated by configure. */" >$tmp/config.h
25076 else
25077 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
25078 fi
25079 cat $tmp/in >>$tmp/config.h
25080 rm -f $tmp/in
25081 if test x"$ac_file" != x-; then
John Criswell0c38eaf2003-09-10 15:17:25 +000025082 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000025083 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25084echo "$as_me: $ac_file is unchanged" >&6;}
25085 else
25086 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
25087$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2b51a082004-08-04 00:34:49 +000025088 X"$ac_file" : 'X\(//\)[^/]' \| \
25089 X"$ac_file" : 'X\(//\)$' \| \
25090 X"$ac_file" : 'X\(/\)' \| \
25091 . : '\(.\)' 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +000025092echo X"$ac_file" |
25093 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25094 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25095 /^X\(\/\/\)$/{ s//\1/; q; }
25096 /^X\(\/\).*/{ s//\1/; q; }
25097 s/.*/./; q'`
John Criswell0c38eaf2003-09-10 15:17:25 +000025098 { if $as_mkdir_p; then
25099 mkdir -p "$ac_dir"
25100 else
25101 as_dir="$ac_dir"
25102 as_dirs=
25103 while test ! -d "$as_dir"; do
25104 as_dirs="$as_dir $as_dirs"
25105 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25106$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2b51a082004-08-04 00:34:49 +000025107 X"$as_dir" : 'X\(//\)[^/]' \| \
25108 X"$as_dir" : 'X\(//\)$' \| \
25109 X"$as_dir" : 'X\(/\)' \| \
25110 . : '\(.\)' 2>/dev/null ||
John Criswell0c38eaf2003-09-10 15:17:25 +000025111echo X"$as_dir" |
25112 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25113 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25114 /^X\(\/\/\)$/{ s//\1/; q; }
25115 /^X\(\/\).*/{ s//\1/; q; }
25116 s/.*/./; q'`
25117 done
25118 test ! -n "$as_dirs" || mkdir $as_dirs
25119 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25120echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25121 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000025122
25123 rm -f $ac_file
25124 mv $tmp/config.h $ac_file
25125 fi
25126 else
25127 cat $tmp/config.h
25128 rm -f $tmp/config.h
25129 fi
25130done
25131_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000025132cat >>$CONFIG_STATUS <<\_ACEOF
25133
25134#
Reid Spencerde8c47f2004-08-29 19:35:28 +000025135# CONFIG_LINKS section.
25136#
25137
25138for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
25139 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
25140 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
25141
25142 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
25143echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
25144
25145 if test ! -r $srcdir/$ac_source; then
25146 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
25147echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
25148 { (exit 1); exit 1; }; }
25149 fi
25150 rm -f $ac_dest
25151
25152 # Make relative symlinks.
25153 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
25154$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25155 X"$ac_dest" : 'X\(//\)[^/]' \| \
25156 X"$ac_dest" : 'X\(//\)$' \| \
25157 X"$ac_dest" : 'X\(/\)' \| \
25158 . : '\(.\)' 2>/dev/null ||
25159echo X"$ac_dest" |
25160 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25161 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25162 /^X\(\/\/\)$/{ s//\1/; q; }
25163 /^X\(\/\).*/{ s//\1/; q; }
25164 s/.*/./; q'`
25165 { if $as_mkdir_p; then
25166 mkdir -p "$ac_dest_dir"
25167 else
25168 as_dir="$ac_dest_dir"
25169 as_dirs=
25170 while test ! -d "$as_dir"; do
25171 as_dirs="$as_dir $as_dirs"
25172 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25173$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25174 X"$as_dir" : 'X\(//\)[^/]' \| \
25175 X"$as_dir" : 'X\(//\)$' \| \
25176 X"$as_dir" : 'X\(/\)' \| \
25177 . : '\(.\)' 2>/dev/null ||
25178echo X"$as_dir" |
25179 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25180 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25181 /^X\(\/\/\)$/{ s//\1/; q; }
25182 /^X\(\/\).*/{ s//\1/; q; }
25183 s/.*/./; q'`
25184 done
25185 test ! -n "$as_dirs" || mkdir $as_dirs
25186 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
25187echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
25188 { (exit 1); exit 1; }; }; }
25189
25190 ac_builddir=.
25191
25192if test "$ac_dest_dir" != .; then
25193 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
25194 # A "../" for each directory in $ac_dir_suffix.
25195 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25196else
25197 ac_dir_suffix= ac_top_builddir=
25198fi
25199
25200case $srcdir in
25201 .) # No --srcdir option. We are building in place.
25202 ac_srcdir=.
25203 if test -z "$ac_top_builddir"; then
25204 ac_top_srcdir=.
25205 else
25206 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25207 fi ;;
25208 [\\/]* | ?:[\\/]* ) # Absolute path.
25209 ac_srcdir=$srcdir$ac_dir_suffix;
25210 ac_top_srcdir=$srcdir ;;
25211 *) # Relative path.
25212 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25213 ac_top_srcdir=$ac_top_builddir$srcdir ;;
25214esac
25215
25216# Do not use `cd foo && pwd` to compute absolute paths, because
25217# the directories may not exist.
25218case `pwd` in
25219.) ac_abs_builddir="$ac_dest_dir";;
25220*)
25221 case "$ac_dest_dir" in
25222 .) ac_abs_builddir=`pwd`;;
25223 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
25224 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
25225 esac;;
25226esac
25227case $ac_abs_builddir in
25228.) ac_abs_top_builddir=${ac_top_builddir}.;;
25229*)
25230 case ${ac_top_builddir}. in
25231 .) ac_abs_top_builddir=$ac_abs_builddir;;
25232 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25233 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25234 esac;;
25235esac
25236case $ac_abs_builddir in
25237.) ac_abs_srcdir=$ac_srcdir;;
25238*)
25239 case $ac_srcdir in
25240 .) ac_abs_srcdir=$ac_abs_builddir;;
25241 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25242 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25243 esac;;
25244esac
25245case $ac_abs_builddir in
25246.) ac_abs_top_srcdir=$ac_top_srcdir;;
25247*)
25248 case $ac_top_srcdir in
25249 .) ac_abs_top_srcdir=$ac_abs_builddir;;
25250 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25251 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25252 esac;;
25253esac
25254
25255
25256 case $srcdir in
25257 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
25258 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
25259 esac
25260
25261 # Try a symlink, then a hard link, then a copy.
25262 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
25263 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
25264 cp -p $srcdir/$ac_source $ac_dest ||
25265 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
25266echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
25267 { (exit 1); exit 1; }; }
25268done
25269_ACEOF
25270cat >>$CONFIG_STATUS <<\_ACEOF
25271
25272#
John Criswellc764fbc2003-09-06 15:17:13 +000025273# CONFIG_COMMANDS section.
25274#
25275for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
25276 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
25277 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
25278 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
25279$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2b51a082004-08-04 00:34:49 +000025280 X"$ac_dest" : 'X\(//\)[^/]' \| \
25281 X"$ac_dest" : 'X\(//\)$' \| \
25282 X"$ac_dest" : 'X\(/\)' \| \
25283 . : '\(.\)' 2>/dev/null ||
John Criswellc764fbc2003-09-06 15:17:13 +000025284echo X"$ac_dest" |
25285 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25286 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25287 /^X\(\/\/\)$/{ s//\1/; q; }
25288 /^X\(\/\).*/{ s//\1/; q; }
25289 s/.*/./; q'`
Reid Spencer2b51a082004-08-04 00:34:49 +000025290 { if $as_mkdir_p; then
25291 mkdir -p "$ac_dir"
25292 else
25293 as_dir="$ac_dir"
25294 as_dirs=
25295 while test ! -d "$as_dir"; do
25296 as_dirs="$as_dir $as_dirs"
25297 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25298$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25299 X"$as_dir" : 'X\(//\)[^/]' \| \
25300 X"$as_dir" : 'X\(//\)$' \| \
25301 X"$as_dir" : 'X\(/\)' \| \
25302 . : '\(.\)' 2>/dev/null ||
25303echo X"$as_dir" |
25304 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25305 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25306 /^X\(\/\/\)$/{ s//\1/; q; }
25307 /^X\(\/\).*/{ s//\1/; q; }
25308 s/.*/./; q'`
25309 done
25310 test ! -n "$as_dirs" || mkdir $as_dirs
25311 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25312echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25313 { (exit 1); exit 1; }; }; }
25314
John Criswellc764fbc2003-09-06 15:17:13 +000025315 ac_builddir=.
25316
25317if test "$ac_dir" != .; then
25318 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25319 # A "../" for each directory in $ac_dir_suffix.
25320 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25321else
25322 ac_dir_suffix= ac_top_builddir=
25323fi
25324
25325case $srcdir in
25326 .) # No --srcdir option. We are building in place.
25327 ac_srcdir=.
25328 if test -z "$ac_top_builddir"; then
25329 ac_top_srcdir=.
25330 else
25331 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25332 fi ;;
25333 [\\/]* | ?:[\\/]* ) # Absolute path.
25334 ac_srcdir=$srcdir$ac_dir_suffix;
25335 ac_top_srcdir=$srcdir ;;
25336 *) # Relative path.
25337 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25338 ac_top_srcdir=$ac_top_builddir$srcdir ;;
25339esac
Reid Spencer2b51a082004-08-04 00:34:49 +000025340
25341# Do not use `cd foo && pwd` to compute absolute paths, because
25342# the directories may not exist.
25343case `pwd` in
25344.) ac_abs_builddir="$ac_dir";;
25345*)
25346 case "$ac_dir" in
25347 .) ac_abs_builddir=`pwd`;;
25348 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25349 *) ac_abs_builddir=`pwd`/"$ac_dir";;
25350 esac;;
25351esac
25352case $ac_abs_builddir in
25353.) ac_abs_top_builddir=${ac_top_builddir}.;;
25354*)
25355 case ${ac_top_builddir}. in
25356 .) ac_abs_top_builddir=$ac_abs_builddir;;
25357 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25358 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25359 esac;;
25360esac
25361case $ac_abs_builddir in
25362.) ac_abs_srcdir=$ac_srcdir;;
25363*)
25364 case $ac_srcdir in
25365 .) ac_abs_srcdir=$ac_abs_builddir;;
25366 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25367 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25368 esac;;
25369esac
25370case $ac_abs_builddir in
25371.) ac_abs_top_srcdir=$ac_top_srcdir;;
25372*)
25373 case $ac_top_srcdir in
25374 .) ac_abs_top_srcdir=$ac_abs_builddir;;
25375 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25376 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25377 esac;;
25378esac
John Criswellc764fbc2003-09-06 15:17:13 +000025379
25380
25381 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
25382echo "$as_me: executing $ac_dest commands" >&6;}
25383 case $ac_dest in
25384 Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
25385 Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
Reid Spencer5f285392004-08-24 16:32:21 +000025386 examples/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000025387 lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000025388 runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000025389 test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
25390 test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
John Criswellf424d742003-10-07 21:13:47 +000025391 test/QMTest/llvm.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvm.py test/QMTest/llvm.py ;;
25392 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 +000025393 test/Programs/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile test/Programs/Makefile ;;
25394 test/Programs/Makefile.programs ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile.programs test/Programs/Makefile.programs ;;
John Criswell8a54a1e2004-06-22 21:35:10 +000025395 test/Programs/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile.tests test/Programs/Makefile.tests ;;
John Criswellc764fbc2003-09-06 15:17:13 +000025396 test/Programs/TEST.aa.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.Makefile test/Programs/TEST.aa.Makefile ;;
25397 test/Programs/TEST.dsgraph.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.report test/Programs/TEST.dsgraph.report ;;
John Criswellc764fbc2003-09-06 15:17:13 +000025398 test/Programs/TEST.aa.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.report test/Programs/TEST.aa.report ;;
25399 test/Programs/TEST.example.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.example.Makefile test/Programs/TEST.example.Makefile ;;
25400 test/Programs/TEST.nightly.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.Makefile test/Programs/TEST.nightly.Makefile ;;
25401 test/Programs/TEST.buildrepo.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.buildrepo.Makefile test/Programs/TEST.buildrepo.Makefile ;;
25402 test/Programs/TEST.jit.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.Makefile test/Programs/TEST.jit.Makefile ;;
25403 test/Programs/TEST.nightly.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.report test/Programs/TEST.nightly.report ;;
25404 test/Programs/TEST.dsgraph.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.Makefile test/Programs/TEST.dsgraph.Makefile ;;
25405 test/Programs/TEST.jit.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.report test/Programs/TEST.jit.report ;;
25406 test/Programs/TEST.typesafe.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.typesafe.Makefile test/Programs/TEST.typesafe.Makefile ;;
25407 test/Programs/TEST.dsgraph.gnuplot ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.gnuplot test/Programs/TEST.dsgraph.gnuplot ;;
John Criswell878be7d2004-02-24 21:43:38 +000025408 test/Programs/TEST.vtl.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.vtl.Makefile test/Programs/TEST.vtl.Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000025409 test/Programs/External/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/Makefile test/Programs/External/Makefile ;;
25410 test/Programs/External/SPEC/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/Makefile test/Programs/External/SPEC/Makefile ;;
John Criswell613758d2003-09-11 18:03:50 +000025411 test/Programs/External/SPEC/Makefile.spec ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/Makefile.spec test/Programs/External/SPEC/Makefile.spec ;;
Alkis Evlogimenos271143f2004-02-26 04:14:10 +000025412 test/Programs/External/SPEC/Makefile.spec2000 ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/Makefile.spec2000 test/Programs/External/SPEC/Makefile.spec2000 ;;
John Criswellcf2e9f72004-02-10 22:36:35 +000025413 test/Programs/External/SPEC/Makefile.spec95 ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/Makefile.spec95 test/Programs/External/SPEC/Makefile.spec95 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000025414 test/Programs/MultiSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile test/Programs/MultiSource/Makefile ;;
25415 test/Programs/MultiSource/Makefile.multisrc ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile.multisrc test/Programs/MultiSource/Makefile.multisrc ;;
Misha Brukman811ce9f2003-11-12 22:16:51 +000025416 test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in ;;
25417 test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile ;;
25418 test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in ;;
25419 test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile ;;
25420 test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in ;;
25421 test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile ;;
25422 test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in ;;
25423 test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile ;;
25424 test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in ;;
25425 test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile ;;
25426 test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in ;;
25427 test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile ;;
25428 test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in ;;
John Criswellc764fbc2003-09-06 15:17:13 +000025429 test/Programs/SingleSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile test/Programs/SingleSource/Makefile ;;
25430 test/Programs/SingleSource/Makefile.singlesrc ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile.singlesrc test/Programs/SingleSource/Makefile.singlesrc ;;
Alkis Evlogimenos271143f2004-02-26 04:14:10 +000025431 test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000025432 tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
Brian Gaekec45be042003-10-07 06:01:34 +000025433 utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000025434 projects/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000025435 esac
25436done
25437_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000025438
25439cat >>$CONFIG_STATUS <<\_ACEOF
25440
25441{ (exit 0); exit 0; }
25442_ACEOF
25443chmod +x $CONFIG_STATUS
25444ac_clean_files=$ac_clean_files_save
25445
25446
25447# configure is writing to config.log, and then calls config.status.
25448# config.status does its own redirection, appending to config.log.
25449# Unfortunately, on DOS this fails, as config.log is still kept open
25450# by configure, so config.status won't be able to write to it; its
25451# output is simply discarded. So we exec the FD to /dev/null,
25452# effectively closing config.log, so it can be properly (re)opened and
25453# appended to by config.status. When coming back to configure, we
25454# need to make the FD available again.
25455if test "$no_create" != yes; then
25456 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000025457 ac_config_status_args=
25458 test "$silent" = yes &&
25459 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000025460 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000025461 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000025462 exec 5>>config.log
25463 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25464 # would make configure fail if this is the last instruction.
25465 $ac_cs_success || { (exit 1); exit 1; }
25466fi
25467
John Criswell12399a12003-09-30 15:55:44 +000025468#
25469# CONFIG_SUBDIRS section.
25470#
25471if test "$no_recursion" != yes; then
25472
25473 # Remove --cache-file and --srcdir arguments so they do not pile up.
25474 ac_sub_configure_args=
25475 ac_prev=
25476 for ac_arg in $ac_configure_args; do
25477 if test -n "$ac_prev"; then
25478 ac_prev=
25479 continue
25480 fi
25481 case $ac_arg in
25482 -cache-file | --cache-file | --cache-fil | --cache-fi \
25483 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
25484 ac_prev=cache_file ;;
25485 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
25486 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
25487 | --c=*)
25488 ;;
25489 --config-cache | -C)
25490 ;;
25491 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
25492 ac_prev=srcdir ;;
25493 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
25494 ;;
25495 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
25496 ac_prev=prefix ;;
25497 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
25498 ;;
25499 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
25500 esac
25501 done
25502
25503 # Always prepend --prefix to ensure using the same prefix
25504 # in subdir configurations.
25505 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
25506
25507 ac_popdir=`pwd`
25508 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
25509
25510 # Do not complain, so a configure script can configure whichever
25511 # parts of a large source tree are present.
25512 test -d $srcdir/$ac_dir || continue
25513
25514 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
25515echo "$as_me: configuring in $ac_dir" >&6;}
25516 { if $as_mkdir_p; then
25517 mkdir -p "$ac_dir"
25518 else
25519 as_dir="$ac_dir"
25520 as_dirs=
25521 while test ! -d "$as_dir"; do
25522 as_dirs="$as_dir $as_dirs"
25523 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25524$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2b51a082004-08-04 00:34:49 +000025525 X"$as_dir" : 'X\(//\)[^/]' \| \
25526 X"$as_dir" : 'X\(//\)$' \| \
25527 X"$as_dir" : 'X\(/\)' \| \
25528 . : '\(.\)' 2>/dev/null ||
John Criswell12399a12003-09-30 15:55:44 +000025529echo X"$as_dir" |
25530 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25531 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25532 /^X\(\/\/\)$/{ s//\1/; q; }
25533 /^X\(\/\).*/{ s//\1/; q; }
25534 s/.*/./; q'`
25535 done
25536 test ! -n "$as_dirs" || mkdir $as_dirs
25537 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25538echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25539 { (exit 1); exit 1; }; }; }
25540
25541 ac_builddir=.
25542
25543if test "$ac_dir" != .; then
25544 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25545 # A "../" for each directory in $ac_dir_suffix.
25546 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25547else
25548 ac_dir_suffix= ac_top_builddir=
25549fi
25550
25551case $srcdir in
25552 .) # No --srcdir option. We are building in place.
25553 ac_srcdir=.
25554 if test -z "$ac_top_builddir"; then
25555 ac_top_srcdir=.
25556 else
25557 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25558 fi ;;
25559 [\\/]* | ?:[\\/]* ) # Absolute path.
25560 ac_srcdir=$srcdir$ac_dir_suffix;
25561 ac_top_srcdir=$srcdir ;;
25562 *) # Relative path.
25563 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25564 ac_top_srcdir=$ac_top_builddir$srcdir ;;
25565esac
Reid Spencer2b51a082004-08-04 00:34:49 +000025566
25567# Do not use `cd foo && pwd` to compute absolute paths, because
25568# the directories may not exist.
25569case `pwd` in
25570.) ac_abs_builddir="$ac_dir";;
25571*)
25572 case "$ac_dir" in
25573 .) ac_abs_builddir=`pwd`;;
25574 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25575 *) ac_abs_builddir=`pwd`/"$ac_dir";;
25576 esac;;
25577esac
25578case $ac_abs_builddir in
25579.) ac_abs_top_builddir=${ac_top_builddir}.;;
25580*)
25581 case ${ac_top_builddir}. in
25582 .) ac_abs_top_builddir=$ac_abs_builddir;;
25583 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25584 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25585 esac;;
25586esac
25587case $ac_abs_builddir in
25588.) ac_abs_srcdir=$ac_srcdir;;
25589*)
25590 case $ac_srcdir in
25591 .) ac_abs_srcdir=$ac_abs_builddir;;
25592 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25593 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25594 esac;;
25595esac
25596case $ac_abs_builddir in
25597.) ac_abs_top_srcdir=$ac_top_srcdir;;
25598*)
25599 case $ac_top_srcdir in
25600 .) ac_abs_top_srcdir=$ac_abs_builddir;;
25601 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25602 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25603 esac;;
25604esac
John Criswell12399a12003-09-30 15:55:44 +000025605
25606
25607 cd $ac_dir
25608
25609 # Check for guested configure; otherwise get Cygnus style configure.
25610 if test -f $ac_srcdir/configure.gnu; then
25611 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
25612 elif test -f $ac_srcdir/configure; then
25613 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
25614 elif test -f $ac_srcdir/configure.in; then
25615 ac_sub_configure=$ac_configure
25616 else
25617 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
25618echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
25619 ac_sub_configure=
25620 fi
25621
25622 # The recursion is here.
25623 if test -n "$ac_sub_configure"; then
25624 # Make the cache file name correct relative to the subdirectory.
25625 case $cache_file in
25626 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
25627 *) # Relative path.
Reid Spencer2b51a082004-08-04 00:34:49 +000025628 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000025629 esac
25630
25631 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
25632echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
25633 # The eval makes quoting arguments work.
25634 eval $ac_sub_configure $ac_sub_configure_args \
Reid Spencer2b51a082004-08-04 00:34:49 +000025635 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
25636 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
John Criswell12399a12003-09-30 15:55:44 +000025637echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
25638 { (exit 1); exit 1; }; }
25639 fi
25640
25641 cd $ac_popdir
25642 done
25643fi
25644
Brian Gaekef3b24102003-11-16 18:38:14 +000025645
25646if test $llvmgccwarn = yes
25647then
25648 { echo "$as_me:$LINENO: WARNING: ***** llvm C/C++ front end was not found, or does not" >&5
25649echo "$as_me: WARNING: ***** llvm C/C++ front end was not found, or does not" >&2;}
25650 { echo "$as_me:$LINENO: WARNING: ***** appear to be working." >&5
25651echo "$as_me: WARNING: ***** appear to be working." >&2;}
25652 { echo "$as_me:$LINENO: WARNING: ***** " >&5
25653echo "$as_me: WARNING: ***** " >&2;}
25654 { echo "$as_me:$LINENO: WARNING: ***** Please check configure's --with-llvmgccdir option." >&5
25655echo "$as_me: WARNING: ***** Please check configure's --with-llvmgccdir option." >&2;}
25656 { echo "$as_me:$LINENO: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&5
25657echo "$as_me: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&2;}
25658 { echo "$as_me:$LINENO: WARNING: ***** but you should be able to build the llvm tools." >&5
25659echo "$as_me: WARNING: ***** but you should be able to build the llvm tools." >&2;}
25660fi
Brian Gaeke554831c2004-01-21 19:39:29 +000025661