blob: 325ed37404dd6007edc47d5ff8878e17ef86f232 [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
Reid Spencer73fb5482004-08-31 14:20:36 +00001892
1893echo "$as_me:$LINENO: checking support for generic build operating system" >&5
1894echo $ECHO_N "checking support for generic build operating system... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00001895case $build in
Reid Spencer73fb5482004-08-31 14:20:36 +00001896 *-*-aix*)
1897 OS=AIX
1898
1899 platform_type="AIX"
1900 ;;
1901 *-*-cygwin*)
1902 OS=Cygwin
1903
1904 platform_type="Cygwin"
1905 ;;
1906 *-*-darwin*)
1907 OS=Darwin
1908
1909 platform_type="Darwin"
1910 ;;
1911 *-*-freebsd*)
1912 OS=Linux
1913
Reid Spencera11e4db2004-08-31 18:03:23 +00001914 platform_type="FreeBSD"
Reid Spencer73fb5482004-08-31 14:20:36 +00001915 ;;
1916 *-*-interix*)
1917 OS=SunOS
1918
Reid Spencera11e4db2004-08-31 18:03:23 +00001919 platform_type="Interix"
Reid Spencer73fb5482004-08-31 14:20:36 +00001920 ;;
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001921 *-*-linux*)
1922 OS=Linux
John Criswell7a73b802003-06-30 21:59:07 +00001923
Reid Spencerde8c47f2004-08-29 19:35:28 +00001924 platform_type="Linux"
1925 if test -d /home/vadve/lattner/local/x86/llvm-gcc
1926 then
1927 LLVMGCCDIR=/home/vadve/lattner/local/x86/llvm-gcc/
John Criswell7a73b802003-06-30 21:59:07 +00001928
Reid Spencerde8c47f2004-08-29 19:35:28 +00001929 fi
1930 ;;
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001931 *-*-solaris*)
1932 OS=SunOS
John Criswell7a73b802003-06-30 21:59:07 +00001933
Reid Spencerde8c47f2004-08-29 19:35:28 +00001934 platform_type="SunOS"
1935 if test -d /home/vadve/lattner/local/sparc/llvm-gcc
1936 then
1937 LLVMGCCDIR=/home/vadve/lattner/local/sparc/llvm-gcc/
John Criswell7a73b802003-06-30 21:59:07 +00001938
Reid Spencerde8c47f2004-08-29 19:35:28 +00001939 fi
1940 ;;
Reid Spencerde8c47f2004-08-29 19:35:28 +00001941 *-*-win32*)
1942 OS=Win32
John Criswell7a73b802003-06-30 21:59:07 +00001943
Reid Spencerde8c47f2004-08-29 19:35:28 +00001944 platform_type="Win32"
1945 ;;
1946 *)
1947 OS=Unknown
1948
1949 platform_type="Unknown"
1950 ;;
John Criswell7a73b802003-06-30 21:59:07 +00001951esac
1952
Reid Spencer73fb5482004-08-31 14:20:36 +00001953if test "$platform_type" = "Unknown" ; then
Reid Spencer886e9512004-08-31 01:34:10 +00001954 { { echo "$as_me:$LINENO: error: Platform is unknown, configure can't continue" >&5
1955echo "$as_me: error: Platform is unknown, configure can't continue" >&2;}
1956 { (exit 1); exit 1; }; }
1957fi
1958
Reid Spencerde8c47f2004-08-29 19:35:28 +00001959 ac_config_links="$ac_config_links lib/System/platform:lib/System/$platform_type"
1960
1961
Reid Spencer73fb5482004-08-31 14:20:36 +00001962echo "$as_me:$LINENO: result: $platform_type" >&5
1963echo "${ECHO_T}$platform_type" >&6
1964
1965echo "$as_me:$LINENO: checking target architecture" >&5
1966echo $ECHO_N "checking target architecture... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00001967case $target in
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001968 sparc*-*-solaris*) target=sparcv9-sun-solaris2.8
John Criswell7a73b802003-06-30 21:59:07 +00001969
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001970 ;;
John Criswell7a73b802003-06-30 21:59:07 +00001971esac
1972
John Criswell76595452003-07-01 22:07:39 +00001973case $target in
Reid Spencer73fb5482004-08-31 14:20:36 +00001974 i*86-*)
1975 ARCH="x86"
1976 ARCH=x86
John Criswell76595452003-07-01 22:07:39 +00001977
Reid Spencer73fb5482004-08-31 14:20:36 +00001978 ;;
1979 sparc*-*)
1980 ARCH="Sparc"
1981 ARCH=Sparc
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001982
Reid Spencer73fb5482004-08-31 14:20:36 +00001983 ;;
1984 powerpc*-*)
1985 ARCH="PowerPC"
1986 ARCH=PowerPC
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001987
Reid Spencer73fb5482004-08-31 14:20:36 +00001988 ;;
1989 *)
1990 ARCH="Unknown"
1991 ARCH=Unknown
John Criswell76595452003-07-01 22:07:39 +00001992
Reid Spencer73fb5482004-08-31 14:20:36 +00001993 ;;
John Criswell76595452003-07-01 22:07:39 +00001994esac
1995
Reid Spencer73fb5482004-08-31 14:20:36 +00001996echo "$as_me:$LINENO: result: $ARCH" >&5
1997echo "${ECHO_T}$ARCH" >&6
1998
John Criswell7a73b802003-06-30 21:59:07 +00001999ac_ext=cc
2000ac_cpp='$CXXCPP $CPPFLAGS'
2001ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2002ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2003ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2004if test -n "$ac_tool_prefix"; then
2005 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2006 do
2007 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2008set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2009echo "$as_me:$LINENO: checking for $ac_word" >&5
2010echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2011if test "${ac_cv_prog_CXX+set}" = set; then
2012 echo $ECHO_N "(cached) $ECHO_C" >&6
2013else
2014 if test -n "$CXX"; then
2015 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2016else
2017as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2018for as_dir in $PATH
2019do
2020 IFS=$as_save_IFS
2021 test -z "$as_dir" && as_dir=.
2022 for ac_exec_ext in '' $ac_executable_extensions; do
2023 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2024 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2025 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2026 break 2
2027 fi
2028done
2029done
2030
2031fi
2032fi
2033CXX=$ac_cv_prog_CXX
2034if test -n "$CXX"; then
2035 echo "$as_me:$LINENO: result: $CXX" >&5
2036echo "${ECHO_T}$CXX" >&6
2037else
2038 echo "$as_me:$LINENO: result: no" >&5
2039echo "${ECHO_T}no" >&6
2040fi
2041
2042 test -n "$CXX" && break
2043 done
2044fi
2045if test -z "$CXX"; then
2046 ac_ct_CXX=$CXX
2047 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2048do
2049 # Extract the first word of "$ac_prog", so it can be a program name with args.
2050set dummy $ac_prog; ac_word=$2
2051echo "$as_me:$LINENO: checking for $ac_word" >&5
2052echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2053if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2054 echo $ECHO_N "(cached) $ECHO_C" >&6
2055else
2056 if test -n "$ac_ct_CXX"; then
2057 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2058else
2059as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2060for as_dir in $PATH
2061do
2062 IFS=$as_save_IFS
2063 test -z "$as_dir" && as_dir=.
2064 for ac_exec_ext in '' $ac_executable_extensions; do
2065 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2066 ac_cv_prog_ac_ct_CXX="$ac_prog"
2067 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2068 break 2
2069 fi
2070done
2071done
2072
2073fi
2074fi
2075ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2076if test -n "$ac_ct_CXX"; then
2077 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2078echo "${ECHO_T}$ac_ct_CXX" >&6
2079else
2080 echo "$as_me:$LINENO: result: no" >&5
2081echo "${ECHO_T}no" >&6
2082fi
2083
2084 test -n "$ac_ct_CXX" && break
2085done
2086test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2087
2088 CXX=$ac_ct_CXX
2089fi
2090
2091
2092# Provide some information about the compiler.
2093echo "$as_me:$LINENO:" \
2094 "checking for C++ compiler version" >&5
2095ac_compiler=`set X $ac_compile; echo $2`
2096{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2097 (eval $ac_compiler --version </dev/null >&5) 2>&5
2098 ac_status=$?
2099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2100 (exit $ac_status); }
2101{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2102 (eval $ac_compiler -v </dev/null >&5) 2>&5
2103 ac_status=$?
2104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2105 (exit $ac_status); }
2106{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2107 (eval $ac_compiler -V </dev/null >&5) 2>&5
2108 ac_status=$?
2109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2110 (exit $ac_status); }
2111
2112cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002113/* confdefs.h. */
2114_ACEOF
2115cat confdefs.h >>conftest.$ac_ext
2116cat >>conftest.$ac_ext <<_ACEOF
2117/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002118
John Criswell7a73b802003-06-30 21:59:07 +00002119int
2120main ()
2121{
2122
2123 ;
2124 return 0;
2125}
2126_ACEOF
2127ac_clean_files_save=$ac_clean_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002128ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002129# Try to create an executable without -o first, disregard a.out.
2130# It will help us diagnose broken compilers, and finding out an intuition
2131# of exeext.
Reid Spencer2b51a082004-08-04 00:34:49 +00002132echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2133echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002134ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2135if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2136 (eval $ac_link_default) 2>&5
2137 ac_status=$?
2138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2139 (exit $ac_status); }; then
2140 # Find the output, starting from the most likely. This scheme is
2141# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2142# resort.
2143
2144# Be careful to initialize this variable, since it used to be cached.
2145# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2146ac_cv_exeext=
John Criswell0c38eaf2003-09-10 15:17:25 +00002147# b.out is created by i960 compilers.
2148for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2149do
2150 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002151 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002152 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
Reid Spencer2b51a082004-08-04 00:34:49 +00002153 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002154 conftest.$ac_ext )
Reid Spencer2b51a082004-08-04 00:34:49 +00002155 # This is the source file.
2156 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002157 [ab].out )
Reid Spencer2b51a082004-08-04 00:34:49 +00002158 # We found the default executable, but exeext='' is most
2159 # certainly right.
2160 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002161 *.* )
Reid Spencer2b51a082004-08-04 00:34:49 +00002162 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2163 # FIXME: I believe we export ac_cv_exeext for Libtool,
2164 # but it would be cool to find out if it's true. Does anybody
2165 # maintain Libtool? --akim.
2166 export ac_cv_exeext
2167 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002168 * )
Reid Spencer2b51a082004-08-04 00:34:49 +00002169 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002170 esac
2171done
2172else
2173 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002174sed 's/^/| /' conftest.$ac_ext >&5
2175
2176{ { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2177See \`config.log' for more details." >&5
2178echo "$as_me: error: C++ compiler cannot create executables
2179See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002180 { (exit 77); exit 77; }; }
2181fi
2182
2183ac_exeext=$ac_cv_exeext
2184echo "$as_me:$LINENO: result: $ac_file" >&5
2185echo "${ECHO_T}$ac_file" >&6
2186
2187# Check the compiler produces executables we can run. If not, either
2188# the compiler is broken, or we cross compile.
2189echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2190echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2191# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2192# If not cross compiling, check that we can run a simple program.
2193if test "$cross_compiling" != yes; then
2194 if { ac_try='./$ac_file'
2195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2196 (eval $ac_try) 2>&5
2197 ac_status=$?
2198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2199 (exit $ac_status); }; }; then
2200 cross_compiling=no
2201 else
2202 if test "$cross_compiling" = maybe; then
2203 cross_compiling=yes
2204 else
2205 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002206If you meant to cross compile, use \`--host'.
2207See \`config.log' for more details." >&5
John Criswell7a73b802003-06-30 21:59:07 +00002208echo "$as_me: error: cannot run C++ compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002209If you meant to cross compile, use \`--host'.
2210See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002211 { (exit 1); exit 1; }; }
2212 fi
2213 fi
2214fi
2215echo "$as_me:$LINENO: result: yes" >&5
2216echo "${ECHO_T}yes" >&6
2217
John Criswell0c38eaf2003-09-10 15:17:25 +00002218rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002219ac_clean_files=$ac_clean_files_save
2220# Check the compiler produces executables we can run. If not, either
2221# the compiler is broken, or we cross compile.
2222echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2223echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2224echo "$as_me:$LINENO: result: $cross_compiling" >&5
2225echo "${ECHO_T}$cross_compiling" >&6
2226
2227echo "$as_me:$LINENO: checking for suffix of executables" >&5
2228echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2229if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2230 (eval $ac_link) 2>&5
2231 ac_status=$?
2232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2233 (exit $ac_status); }; then
2234 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2235# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2236# work properly (i.e., refer to `conftest.exe'), while it won't with
2237# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002238for ac_file in conftest.exe conftest conftest.*; do
2239 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002240 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002241 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002242 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencer2b51a082004-08-04 00:34:49 +00002243 export ac_cv_exeext
2244 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002245 * ) break;;
2246 esac
2247done
2248else
John Criswell0c38eaf2003-09-10 15:17:25 +00002249 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2250See \`config.log' for more details." >&5
2251echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2252See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002253 { (exit 1); exit 1; }; }
2254fi
2255
2256rm -f conftest$ac_cv_exeext
2257echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2258echo "${ECHO_T}$ac_cv_exeext" >&6
2259
2260rm -f conftest.$ac_ext
2261EXEEXT=$ac_cv_exeext
2262ac_exeext=$EXEEXT
2263echo "$as_me:$LINENO: checking for suffix of object files" >&5
2264echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2265if test "${ac_cv_objext+set}" = set; then
2266 echo $ECHO_N "(cached) $ECHO_C" >&6
2267else
2268 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002269/* confdefs.h. */
2270_ACEOF
2271cat confdefs.h >>conftest.$ac_ext
2272cat >>conftest.$ac_ext <<_ACEOF
2273/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002274
John Criswell7a73b802003-06-30 21:59:07 +00002275int
2276main ()
2277{
2278
2279 ;
2280 return 0;
2281}
2282_ACEOF
2283rm -f conftest.o conftest.obj
2284if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2285 (eval $ac_compile) 2>&5
2286 ac_status=$?
2287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2288 (exit $ac_status); }; then
2289 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2290 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002291 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002292 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2293 break;;
2294 esac
2295done
2296else
2297 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002298sed 's/^/| /' conftest.$ac_ext >&5
2299
2300{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2301See \`config.log' for more details." >&5
2302echo "$as_me: error: cannot compute suffix of object files: cannot compile
2303See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002304 { (exit 1); exit 1; }; }
2305fi
2306
2307rm -f conftest.$ac_cv_objext conftest.$ac_ext
2308fi
2309echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2310echo "${ECHO_T}$ac_cv_objext" >&6
2311OBJEXT=$ac_cv_objext
2312ac_objext=$OBJEXT
2313echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2314echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2315if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2316 echo $ECHO_N "(cached) $ECHO_C" >&6
2317else
2318 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002319/* confdefs.h. */
2320_ACEOF
2321cat confdefs.h >>conftest.$ac_ext
2322cat >>conftest.$ac_ext <<_ACEOF
2323/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002324
John Criswell7a73b802003-06-30 21:59:07 +00002325int
2326main ()
2327{
2328#ifndef __GNUC__
2329 choke me
2330#endif
2331
2332 ;
2333 return 0;
2334}
2335_ACEOF
2336rm -f conftest.$ac_objext
2337if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +00002338 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002339 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +00002340 grep -v '^ *+' conftest.er1 >conftest.err
2341 rm -f conftest.er1
2342 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2344 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +00002345 { ac_try='test -z "$ac_cxx_werror_flag"
2346 || test ! -s conftest.err'
2347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2348 (eval $ac_try) 2>&5
2349 ac_status=$?
2350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2351 (exit $ac_status); }; } &&
2352 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2354 (eval $ac_try) 2>&5
2355 ac_status=$?
2356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2357 (exit $ac_status); }; }; then
2358 ac_compiler_gnu=yes
2359else
2360 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002361sed 's/^/| /' conftest.$ac_ext >&5
2362
John Criswell7a73b802003-06-30 21:59:07 +00002363ac_compiler_gnu=no
2364fi
Reid Spencer2b51a082004-08-04 00:34:49 +00002365rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002366ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2367
2368fi
2369echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2370echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2371GXX=`test $ac_compiler_gnu = yes && echo yes`
2372ac_test_CXXFLAGS=${CXXFLAGS+set}
2373ac_save_CXXFLAGS=$CXXFLAGS
2374CXXFLAGS="-g"
2375echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2376echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2377if test "${ac_cv_prog_cxx_g+set}" = set; then
2378 echo $ECHO_N "(cached) $ECHO_C" >&6
2379else
2380 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002381/* confdefs.h. */
2382_ACEOF
2383cat confdefs.h >>conftest.$ac_ext
2384cat >>conftest.$ac_ext <<_ACEOF
2385/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002386
John Criswell7a73b802003-06-30 21:59:07 +00002387int
2388main ()
2389{
2390
2391 ;
2392 return 0;
2393}
2394_ACEOF
2395rm -f conftest.$ac_objext
2396if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +00002397 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002398 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +00002399 grep -v '^ *+' conftest.er1 >conftest.err
2400 rm -f conftest.er1
2401 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2403 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +00002404 { ac_try='test -z "$ac_cxx_werror_flag"
2405 || test ! -s conftest.err'
2406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2407 (eval $ac_try) 2>&5
2408 ac_status=$?
2409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2410 (exit $ac_status); }; } &&
2411 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2413 (eval $ac_try) 2>&5
2414 ac_status=$?
2415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2416 (exit $ac_status); }; }; then
2417 ac_cv_prog_cxx_g=yes
2418else
2419 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002420sed 's/^/| /' conftest.$ac_ext >&5
2421
John Criswell7a73b802003-06-30 21:59:07 +00002422ac_cv_prog_cxx_g=no
2423fi
Reid Spencer2b51a082004-08-04 00:34:49 +00002424rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002425fi
2426echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2427echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2428if test "$ac_test_CXXFLAGS" = set; then
2429 CXXFLAGS=$ac_save_CXXFLAGS
2430elif test $ac_cv_prog_cxx_g = yes; then
2431 if test "$GXX" = yes; then
2432 CXXFLAGS="-g -O2"
2433 else
2434 CXXFLAGS="-g"
2435 fi
2436else
2437 if test "$GXX" = yes; then
2438 CXXFLAGS="-O2"
2439 else
2440 CXXFLAGS=
2441 fi
2442fi
2443for ac_declaration in \
Reid Spencer2b51a082004-08-04 00:34:49 +00002444 '' \
John Criswell7a73b802003-06-30 21:59:07 +00002445 'extern "C" void std::exit (int) throw (); using std::exit;' \
2446 'extern "C" void std::exit (int); using std::exit;' \
2447 'extern "C" void exit (int) throw ();' \
2448 'extern "C" void exit (int);' \
2449 'void exit (int);'
2450do
2451 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002452/* confdefs.h. */
2453_ACEOF
2454cat confdefs.h >>conftest.$ac_ext
2455cat >>conftest.$ac_ext <<_ACEOF
2456/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002457$ac_declaration
Reid Spencer2b51a082004-08-04 00:34:49 +00002458#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00002459int
2460main ()
2461{
2462exit (42);
2463 ;
2464 return 0;
2465}
2466_ACEOF
2467rm -f conftest.$ac_objext
2468if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +00002469 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002470 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +00002471 grep -v '^ *+' conftest.er1 >conftest.err
2472 rm -f conftest.er1
2473 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2475 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +00002476 { ac_try='test -z "$ac_cxx_werror_flag"
2477 || test ! -s conftest.err'
2478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2479 (eval $ac_try) 2>&5
2480 ac_status=$?
2481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2482 (exit $ac_status); }; } &&
2483 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2485 (eval $ac_try) 2>&5
2486 ac_status=$?
2487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2488 (exit $ac_status); }; }; then
2489 :
2490else
2491 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002492sed 's/^/| /' conftest.$ac_ext >&5
2493
John Criswell7a73b802003-06-30 21:59:07 +00002494continue
2495fi
Reid Spencer2b51a082004-08-04 00:34:49 +00002496rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002497 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002498/* confdefs.h. */
2499_ACEOF
2500cat confdefs.h >>conftest.$ac_ext
2501cat >>conftest.$ac_ext <<_ACEOF
2502/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002503$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00002504int
2505main ()
2506{
2507exit (42);
2508 ;
2509 return 0;
2510}
2511_ACEOF
2512rm -f conftest.$ac_objext
2513if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +00002514 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002515 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +00002516 grep -v '^ *+' conftest.er1 >conftest.err
2517 rm -f conftest.er1
2518 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2520 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +00002521 { ac_try='test -z "$ac_cxx_werror_flag"
2522 || test ! -s conftest.err'
2523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2524 (eval $ac_try) 2>&5
2525 ac_status=$?
2526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2527 (exit $ac_status); }; } &&
2528 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2530 (eval $ac_try) 2>&5
2531 ac_status=$?
2532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2533 (exit $ac_status); }; }; then
2534 break
2535else
2536 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002537sed 's/^/| /' conftest.$ac_ext >&5
2538
John Criswell7a73b802003-06-30 21:59:07 +00002539fi
Reid Spencer2b51a082004-08-04 00:34:49 +00002540rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002541done
2542rm -f conftest*
2543if test -n "$ac_declaration"; then
2544 echo '#ifdef __cplusplus' >>confdefs.h
2545 echo $ac_declaration >>confdefs.h
2546 echo '#endif' >>confdefs.h
2547fi
2548
2549ac_ext=c
2550ac_cpp='$CPP $CPPFLAGS'
2551ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2552ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2553ac_compiler_gnu=$ac_cv_c_compiler_gnu
2554
2555ac_ext=c
2556ac_cpp='$CPP $CPPFLAGS'
2557ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2558ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2559ac_compiler_gnu=$ac_cv_c_compiler_gnu
2560if test -n "$ac_tool_prefix"; then
2561 for ac_prog in gcc
2562 do
2563 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2564set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2565echo "$as_me:$LINENO: checking for $ac_word" >&5
2566echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2567if test "${ac_cv_prog_CC+set}" = set; then
2568 echo $ECHO_N "(cached) $ECHO_C" >&6
2569else
2570 if test -n "$CC"; then
2571 ac_cv_prog_CC="$CC" # Let the user override the test.
2572else
2573as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2574for as_dir in $PATH
2575do
2576 IFS=$as_save_IFS
2577 test -z "$as_dir" && as_dir=.
2578 for ac_exec_ext in '' $ac_executable_extensions; do
2579 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2580 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2581 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2582 break 2
2583 fi
2584done
2585done
2586
2587fi
2588fi
2589CC=$ac_cv_prog_CC
2590if test -n "$CC"; then
2591 echo "$as_me:$LINENO: result: $CC" >&5
2592echo "${ECHO_T}$CC" >&6
2593else
2594 echo "$as_me:$LINENO: result: no" >&5
2595echo "${ECHO_T}no" >&6
2596fi
2597
2598 test -n "$CC" && break
2599 done
2600fi
2601if test -z "$CC"; then
2602 ac_ct_CC=$CC
2603 for ac_prog in gcc
2604do
2605 # Extract the first word of "$ac_prog", so it can be a program name with args.
2606set dummy $ac_prog; ac_word=$2
2607echo "$as_me:$LINENO: checking for $ac_word" >&5
2608echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2609if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2610 echo $ECHO_N "(cached) $ECHO_C" >&6
2611else
2612 if test -n "$ac_ct_CC"; then
2613 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2614else
2615as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2616for as_dir in $PATH
2617do
2618 IFS=$as_save_IFS
2619 test -z "$as_dir" && as_dir=.
2620 for ac_exec_ext in '' $ac_executable_extensions; do
2621 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2622 ac_cv_prog_ac_ct_CC="$ac_prog"
2623 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2624 break 2
2625 fi
2626done
2627done
2628
2629fi
2630fi
2631ac_ct_CC=$ac_cv_prog_ac_ct_CC
2632if test -n "$ac_ct_CC"; then
2633 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2634echo "${ECHO_T}$ac_ct_CC" >&6
2635else
2636 echo "$as_me:$LINENO: result: no" >&5
2637echo "${ECHO_T}no" >&6
2638fi
2639
2640 test -n "$ac_ct_CC" && break
2641done
2642
2643 CC=$ac_ct_CC
2644fi
2645
2646
John Criswell0c38eaf2003-09-10 15:17:25 +00002647test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2648See \`config.log' for more details." >&5
2649echo "$as_me: error: no acceptable C compiler found in \$PATH
2650See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002651 { (exit 1); exit 1; }; }
2652
2653# Provide some information about the compiler.
2654echo "$as_me:$LINENO:" \
2655 "checking for C compiler version" >&5
2656ac_compiler=`set X $ac_compile; echo $2`
2657{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2658 (eval $ac_compiler --version </dev/null >&5) 2>&5
2659 ac_status=$?
2660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2661 (exit $ac_status); }
2662{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2663 (eval $ac_compiler -v </dev/null >&5) 2>&5
2664 ac_status=$?
2665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2666 (exit $ac_status); }
2667{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2668 (eval $ac_compiler -V </dev/null >&5) 2>&5
2669 ac_status=$?
2670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2671 (exit $ac_status); }
2672
2673echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2674echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2675if test "${ac_cv_c_compiler_gnu+set}" = set; then
2676 echo $ECHO_N "(cached) $ECHO_C" >&6
2677else
2678 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002679/* confdefs.h. */
2680_ACEOF
2681cat confdefs.h >>conftest.$ac_ext
2682cat >>conftest.$ac_ext <<_ACEOF
2683/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002684
John Criswell7a73b802003-06-30 21:59:07 +00002685int
2686main ()
2687{
2688#ifndef __GNUC__
2689 choke me
2690#endif
2691
2692 ;
2693 return 0;
2694}
2695_ACEOF
2696rm -f conftest.$ac_objext
2697if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +00002698 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002699 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +00002700 grep -v '^ *+' conftest.er1 >conftest.err
2701 rm -f conftest.er1
2702 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2704 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +00002705 { ac_try='test -z "$ac_c_werror_flag"
2706 || test ! -s conftest.err'
2707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2708 (eval $ac_try) 2>&5
2709 ac_status=$?
2710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2711 (exit $ac_status); }; } &&
2712 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2714 (eval $ac_try) 2>&5
2715 ac_status=$?
2716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2717 (exit $ac_status); }; }; then
2718 ac_compiler_gnu=yes
2719else
2720 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002721sed 's/^/| /' conftest.$ac_ext >&5
2722
John Criswell7a73b802003-06-30 21:59:07 +00002723ac_compiler_gnu=no
2724fi
Reid Spencer2b51a082004-08-04 00:34:49 +00002725rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002726ac_cv_c_compiler_gnu=$ac_compiler_gnu
2727
2728fi
2729echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2730echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2731GCC=`test $ac_compiler_gnu = yes && echo yes`
2732ac_test_CFLAGS=${CFLAGS+set}
2733ac_save_CFLAGS=$CFLAGS
2734CFLAGS="-g"
2735echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2736echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2737if test "${ac_cv_prog_cc_g+set}" = set; then
2738 echo $ECHO_N "(cached) $ECHO_C" >&6
2739else
2740 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002741/* confdefs.h. */
2742_ACEOF
2743cat confdefs.h >>conftest.$ac_ext
2744cat >>conftest.$ac_ext <<_ACEOF
2745/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002746
John Criswell7a73b802003-06-30 21:59:07 +00002747int
2748main ()
2749{
2750
2751 ;
2752 return 0;
2753}
2754_ACEOF
2755rm -f conftest.$ac_objext
2756if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +00002757 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002758 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +00002759 grep -v '^ *+' conftest.er1 >conftest.err
2760 rm -f conftest.er1
2761 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2763 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +00002764 { ac_try='test -z "$ac_c_werror_flag"
2765 || test ! -s conftest.err'
2766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2767 (eval $ac_try) 2>&5
2768 ac_status=$?
2769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2770 (exit $ac_status); }; } &&
2771 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2773 (eval $ac_try) 2>&5
2774 ac_status=$?
2775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2776 (exit $ac_status); }; }; then
2777 ac_cv_prog_cc_g=yes
2778else
2779 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002780sed 's/^/| /' conftest.$ac_ext >&5
2781
John Criswell7a73b802003-06-30 21:59:07 +00002782ac_cv_prog_cc_g=no
2783fi
Reid Spencer2b51a082004-08-04 00:34:49 +00002784rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002785fi
2786echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2787echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2788if test "$ac_test_CFLAGS" = set; then
2789 CFLAGS=$ac_save_CFLAGS
2790elif test $ac_cv_prog_cc_g = yes; then
2791 if test "$GCC" = yes; then
2792 CFLAGS="-g -O2"
2793 else
2794 CFLAGS="-g"
2795 fi
2796else
2797 if test "$GCC" = yes; then
2798 CFLAGS="-O2"
2799 else
2800 CFLAGS=
2801 fi
2802fi
John Criswell0c38eaf2003-09-10 15:17:25 +00002803echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2804echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2805if test "${ac_cv_prog_cc_stdc+set}" = set; then
2806 echo $ECHO_N "(cached) $ECHO_C" >&6
2807else
2808 ac_cv_prog_cc_stdc=no
2809ac_save_CC=$CC
2810cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002811/* confdefs.h. */
2812_ACEOF
2813cat confdefs.h >>conftest.$ac_ext
2814cat >>conftest.$ac_ext <<_ACEOF
2815/* end confdefs.h. */
2816#include <stdarg.h>
2817#include <stdio.h>
2818#include <sys/types.h>
2819#include <sys/stat.h>
2820/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2821struct buf { int x; };
2822FILE * (*rcsopen) (struct buf *, struct stat *, int);
2823static char *e (p, i)
2824 char **p;
2825 int i;
2826{
2827 return p[i];
2828}
2829static char *f (char * (*g) (char **, int), char **p, ...)
2830{
2831 char *s;
2832 va_list v;
2833 va_start (v,p);
2834 s = g (p, va_arg (v,int));
2835 va_end (v);
2836 return s;
2837}
Reid Spencer2b51a082004-08-04 00:34:49 +00002838
2839/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2840 function prototypes and stuff, but not '\xHH' hex character constants.
2841 These don't provoke an error unfortunately, instead are silently treated
2842 as 'x'. The following induces an error, until -std1 is added to get
2843 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2844 array size at least. It's necessary to write '\x00'==0 to get something
2845 that's true only with -std1. */
2846int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2847
John Criswell0c38eaf2003-09-10 15:17:25 +00002848int test (int i, double x);
2849struct s1 {int (*f) (int a);};
2850struct s2 {int (*f) (double a);};
2851int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2852int argc;
2853char **argv;
2854int
2855main ()
2856{
2857return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2858 ;
2859 return 0;
2860}
2861_ACEOF
2862# Don't try gcc -ansi; that turns off useful extensions and
2863# breaks some systems' header files.
2864# AIX -qlanglvl=ansi
2865# Ultrix and OSF/1 -std1
2866# HP-UX 10.20 and later -Ae
2867# HP-UX older versions -Aa -D_HPUX_SOURCE
2868# SVR4 -Xc -D__EXTENSIONS__
2869for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2870do
2871 CC="$ac_save_CC $ac_arg"
2872 rm -f conftest.$ac_objext
2873if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +00002874 (eval $ac_compile) 2>conftest.er1
John Criswell0c38eaf2003-09-10 15:17:25 +00002875 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +00002876 grep -v '^ *+' conftest.er1 >conftest.err
2877 rm -f conftest.er1
2878 cat conftest.err >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2880 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +00002881 { ac_try='test -z "$ac_c_werror_flag"
2882 || test ! -s conftest.err'
2883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2884 (eval $ac_try) 2>&5
2885 ac_status=$?
2886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2887 (exit $ac_status); }; } &&
2888 { ac_try='test -s conftest.$ac_objext'
John Criswell0c38eaf2003-09-10 15:17:25 +00002889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2890 (eval $ac_try) 2>&5
2891 ac_status=$?
2892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2893 (exit $ac_status); }; }; then
2894 ac_cv_prog_cc_stdc=$ac_arg
2895break
2896else
2897 echo "$as_me: failed program was:" >&5
2898sed 's/^/| /' conftest.$ac_ext >&5
2899
2900fi
Reid Spencer2b51a082004-08-04 00:34:49 +00002901rm -f conftest.err conftest.$ac_objext
John Criswell0c38eaf2003-09-10 15:17:25 +00002902done
2903rm -f conftest.$ac_ext conftest.$ac_objext
2904CC=$ac_save_CC
2905
2906fi
2907
2908case "x$ac_cv_prog_cc_stdc" in
2909 x|xno)
2910 echo "$as_me:$LINENO: result: none needed" >&5
2911echo "${ECHO_T}none needed" >&6 ;;
2912 *)
2913 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2914echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2915 CC="$CC $ac_cv_prog_cc_stdc" ;;
2916esac
2917
John Criswell7a73b802003-06-30 21:59:07 +00002918# Some people use a C++ compiler to compile C. Since we use `exit',
2919# in C++ we need to declare it. In case someone uses the same compiler
2920# for both compiling C and C++ we need to have the C++ compiler decide
2921# the declaration of exit, since it's the most demanding environment.
2922cat >conftest.$ac_ext <<_ACEOF
2923#ifndef __cplusplus
2924 choke me
2925#endif
2926_ACEOF
2927rm -f conftest.$ac_objext
2928if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +00002929 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002930 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +00002931 grep -v '^ *+' conftest.er1 >conftest.err
2932 rm -f conftest.er1
2933 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2935 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +00002936 { ac_try='test -z "$ac_c_werror_flag"
2937 || test ! -s conftest.err'
2938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2939 (eval $ac_try) 2>&5
2940 ac_status=$?
2941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2942 (exit $ac_status); }; } &&
2943 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2945 (eval $ac_try) 2>&5
2946 ac_status=$?
2947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2948 (exit $ac_status); }; }; then
2949 for ac_declaration in \
Reid Spencer2b51a082004-08-04 00:34:49 +00002950 '' \
John Criswell7a73b802003-06-30 21:59:07 +00002951 'extern "C" void std::exit (int) throw (); using std::exit;' \
2952 'extern "C" void std::exit (int); using std::exit;' \
2953 'extern "C" void exit (int) throw ();' \
2954 'extern "C" void exit (int);' \
2955 'void exit (int);'
2956do
2957 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002958/* confdefs.h. */
2959_ACEOF
2960cat confdefs.h >>conftest.$ac_ext
2961cat >>conftest.$ac_ext <<_ACEOF
2962/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002963$ac_declaration
Reid Spencer2b51a082004-08-04 00:34:49 +00002964#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00002965int
2966main ()
2967{
2968exit (42);
2969 ;
2970 return 0;
2971}
2972_ACEOF
2973rm -f conftest.$ac_objext
2974if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +00002975 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002976 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +00002977 grep -v '^ *+' conftest.er1 >conftest.err
2978 rm -f conftest.er1
2979 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2981 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +00002982 { ac_try='test -z "$ac_c_werror_flag"
2983 || test ! -s conftest.err'
2984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2985 (eval $ac_try) 2>&5
2986 ac_status=$?
2987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2988 (exit $ac_status); }; } &&
2989 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2991 (eval $ac_try) 2>&5
2992 ac_status=$?
2993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2994 (exit $ac_status); }; }; then
2995 :
2996else
2997 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002998sed 's/^/| /' conftest.$ac_ext >&5
2999
John Criswell7a73b802003-06-30 21:59:07 +00003000continue
3001fi
Reid Spencer2b51a082004-08-04 00:34:49 +00003002rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003003 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003004/* confdefs.h. */
3005_ACEOF
3006cat confdefs.h >>conftest.$ac_ext
3007cat >>conftest.$ac_ext <<_ACEOF
3008/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003009$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00003010int
3011main ()
3012{
3013exit (42);
3014 ;
3015 return 0;
3016}
3017_ACEOF
3018rm -f conftest.$ac_objext
3019if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +00003020 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003021 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +00003022 grep -v '^ *+' conftest.er1 >conftest.err
3023 rm -f conftest.er1
3024 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3026 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +00003027 { ac_try='test -z "$ac_c_werror_flag"
3028 || test ! -s conftest.err'
3029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3030 (eval $ac_try) 2>&5
3031 ac_status=$?
3032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3033 (exit $ac_status); }; } &&
3034 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00003035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3036 (eval $ac_try) 2>&5
3037 ac_status=$?
3038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3039 (exit $ac_status); }; }; then
3040 break
3041else
3042 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003043sed 's/^/| /' conftest.$ac_ext >&5
3044
John Criswell7a73b802003-06-30 21:59:07 +00003045fi
Reid Spencer2b51a082004-08-04 00:34:49 +00003046rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003047done
3048rm -f conftest*
3049if test -n "$ac_declaration"; then
3050 echo '#ifdef __cplusplus' >>confdefs.h
3051 echo $ac_declaration >>confdefs.h
3052 echo '#endif' >>confdefs.h
3053fi
3054
3055else
3056 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003057sed 's/^/| /' conftest.$ac_ext >&5
3058
John Criswell7a73b802003-06-30 21:59:07 +00003059fi
Reid Spencer2b51a082004-08-04 00:34:49 +00003060rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003061ac_ext=c
3062ac_cpp='$CPP $CPPFLAGS'
3063ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3064ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3065ac_compiler_gnu=$ac_cv_c_compiler_gnu
3066
3067ac_ext=c
3068ac_cpp='$CPP $CPPFLAGS'
3069ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3070ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3071ac_compiler_gnu=$ac_cv_c_compiler_gnu
3072echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3073echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3074# On Suns, sometimes $CPP names a directory.
3075if test -n "$CPP" && test -d "$CPP"; then
3076 CPP=
3077fi
3078if test -z "$CPP"; then
3079 if test "${ac_cv_prog_CPP+set}" = set; then
3080 echo $ECHO_N "(cached) $ECHO_C" >&6
3081else
3082 # Double quotes because CPP needs to be expanded
3083 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3084 do
3085 ac_preproc_ok=false
3086for ac_c_preproc_warn_flag in '' yes
3087do
3088 # Use a header file that comes with gcc, so configuring glibc
3089 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00003090 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3091 # <limits.h> exists even on freestanding compilers.
John Criswell7a73b802003-06-30 21:59:07 +00003092 # On the NeXT, cc -E runs the code through the compiler's parser,
3093 # not just through cpp. "Syntax error" is here to catch this case.
3094 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003095/* confdefs.h. */
3096_ACEOF
3097cat confdefs.h >>conftest.$ac_ext
3098cat >>conftest.$ac_ext <<_ACEOF
3099/* end confdefs.h. */
3100#ifdef __STDC__
3101# include <limits.h>
3102#else
3103# include <assert.h>
3104#endif
Reid Spencer2b51a082004-08-04 00:34:49 +00003105 Syntax error
John Criswell7a73b802003-06-30 21:59:07 +00003106_ACEOF
3107if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3108 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3109 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003110 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003111 rm -f conftest.er1
3112 cat conftest.err >&5
3113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3114 (exit $ac_status); } >/dev/null; then
3115 if test -s conftest.err; then
3116 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2b51a082004-08-04 00:34:49 +00003117 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +00003118 else
3119 ac_cpp_err=
3120 fi
3121else
3122 ac_cpp_err=yes
3123fi
3124if test -z "$ac_cpp_err"; then
3125 :
3126else
3127 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003128sed 's/^/| /' conftest.$ac_ext >&5
3129
John Criswell7a73b802003-06-30 21:59:07 +00003130 # Broken: fails on valid input.
3131continue
3132fi
3133rm -f conftest.err conftest.$ac_ext
3134
3135 # OK, works on sane cases. Now check whether non-existent headers
3136 # can be detected and how.
3137 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003138/* confdefs.h. */
3139_ACEOF
3140cat confdefs.h >>conftest.$ac_ext
3141cat >>conftest.$ac_ext <<_ACEOF
3142/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003143#include <ac_nonexistent.h>
3144_ACEOF
3145if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3146 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3147 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003148 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003149 rm -f conftest.er1
3150 cat conftest.err >&5
3151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3152 (exit $ac_status); } >/dev/null; then
3153 if test -s conftest.err; then
3154 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2b51a082004-08-04 00:34:49 +00003155 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +00003156 else
3157 ac_cpp_err=
3158 fi
3159else
3160 ac_cpp_err=yes
3161fi
3162if test -z "$ac_cpp_err"; then
3163 # Broken: success on invalid input.
3164continue
3165else
3166 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003167sed 's/^/| /' conftest.$ac_ext >&5
3168
John Criswell7a73b802003-06-30 21:59:07 +00003169 # Passes both tests.
3170ac_preproc_ok=:
3171break
3172fi
3173rm -f conftest.err conftest.$ac_ext
3174
3175done
3176# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3177rm -f conftest.err conftest.$ac_ext
3178if $ac_preproc_ok; then
3179 break
3180fi
3181
3182 done
3183 ac_cv_prog_CPP=$CPP
3184
3185fi
3186 CPP=$ac_cv_prog_CPP
3187else
3188 ac_cv_prog_CPP=$CPP
3189fi
3190echo "$as_me:$LINENO: result: $CPP" >&5
3191echo "${ECHO_T}$CPP" >&6
3192ac_preproc_ok=false
3193for ac_c_preproc_warn_flag in '' yes
3194do
3195 # Use a header file that comes with gcc, so configuring glibc
3196 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00003197 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3198 # <limits.h> exists even on freestanding compilers.
John Criswell7a73b802003-06-30 21:59:07 +00003199 # On the NeXT, cc -E runs the code through the compiler's parser,
3200 # not just through cpp. "Syntax error" is here to catch this case.
3201 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003202/* confdefs.h. */
3203_ACEOF
3204cat confdefs.h >>conftest.$ac_ext
3205cat >>conftest.$ac_ext <<_ACEOF
3206/* end confdefs.h. */
3207#ifdef __STDC__
3208# include <limits.h>
3209#else
3210# include <assert.h>
3211#endif
Reid Spencer2b51a082004-08-04 00:34:49 +00003212 Syntax error
John Criswell7a73b802003-06-30 21:59:07 +00003213_ACEOF
3214if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3215 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3216 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003217 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003218 rm -f conftest.er1
3219 cat conftest.err >&5
3220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3221 (exit $ac_status); } >/dev/null; then
3222 if test -s conftest.err; then
3223 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2b51a082004-08-04 00:34:49 +00003224 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +00003225 else
3226 ac_cpp_err=
3227 fi
3228else
3229 ac_cpp_err=yes
3230fi
3231if test -z "$ac_cpp_err"; then
3232 :
3233else
3234 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003235sed 's/^/| /' conftest.$ac_ext >&5
3236
John Criswell7a73b802003-06-30 21:59:07 +00003237 # Broken: fails on valid input.
3238continue
3239fi
3240rm -f conftest.err conftest.$ac_ext
3241
3242 # OK, works on sane cases. Now check whether non-existent headers
3243 # can be detected and how.
3244 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003245/* confdefs.h. */
3246_ACEOF
3247cat confdefs.h >>conftest.$ac_ext
3248cat >>conftest.$ac_ext <<_ACEOF
3249/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003250#include <ac_nonexistent.h>
3251_ACEOF
3252if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3253 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3254 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003255 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003256 rm -f conftest.er1
3257 cat conftest.err >&5
3258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3259 (exit $ac_status); } >/dev/null; then
3260 if test -s conftest.err; then
3261 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2b51a082004-08-04 00:34:49 +00003262 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +00003263 else
3264 ac_cpp_err=
3265 fi
3266else
3267 ac_cpp_err=yes
3268fi
3269if test -z "$ac_cpp_err"; then
3270 # Broken: success on invalid input.
3271continue
3272else
3273 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003274sed 's/^/| /' conftest.$ac_ext >&5
3275
John Criswell7a73b802003-06-30 21:59:07 +00003276 # Passes both tests.
3277ac_preproc_ok=:
3278break
3279fi
3280rm -f conftest.err conftest.$ac_ext
3281
3282done
3283# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3284rm -f conftest.err conftest.$ac_ext
3285if $ac_preproc_ok; then
3286 :
3287else
John Criswell0c38eaf2003-09-10 15:17:25 +00003288 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3289See \`config.log' for more details." >&5
3290echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3291See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00003292 { (exit 1); exit 1; }; }
3293fi
3294
3295ac_ext=c
3296ac_cpp='$CPP $CPPFLAGS'
3297ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3298ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3299ac_compiler_gnu=$ac_cv_c_compiler_gnu
3300
3301
3302if test "$GCC" != "yes"
3303then
3304 { { echo "$as_me:$LINENO: error: gcc required but not found" >&5
3305echo "$as_me: error: gcc required but not found" >&2;}
3306 { (exit 1); exit 1; }; }
3307fi
John Criswell7a73b802003-06-30 21:59:07 +00003308if test "$GXX" != "yes"
3309then
3310 { { echo "$as_me:$LINENO: error: g++ required but not found" >&5
3311echo "$as_me: error: g++ required but not found" >&2;}
3312 { (exit 1); exit 1; }; }
3313fi
3314
John Criswellde00db22003-08-25 16:49:54 +00003315gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
3316if test "$gccmajor" -lt "3"
3317then
Brian Gaeke26be9c52004-01-13 06:43:16 +00003318 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
3319echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
John Criswellde00db22003-08-25 16:49:54 +00003320 { (exit 1); exit 1; }; }
3321fi
3322
John Criswell7a73b802003-06-30 21:59:07 +00003323 echo "$as_me:$LINENO: checking for GNU make" >&5
3324echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
3325if test "${_cv_gnu_make_command+set}" = set; then
3326 echo $ECHO_N "(cached) $ECHO_C" >&6
3327else
3328 _cv_gnu_make_command='' ;
3329 for a in "$MAKE" make gmake gnumake ; do
3330 if test -z "$a" ; then continue ; fi ;
3331 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
3332 _cv_gnu_make_command=$a ;
3333 break;
3334 fi
3335 done ;
3336
3337fi
3338echo "$as_me:$LINENO: result: $_cv_gnu_make_command" >&5
3339echo "${ECHO_T}$_cv_gnu_make_command" >&6 ;
3340 if test "x$_cv_gnu_make_command" != "x" ; then
3341 ifGNUmake='' ;
3342 else
3343 ifGNUmake='#' ;
3344 echo "$as_me:$LINENO: result: \"Not found\"" >&5
3345echo "${ECHO_T}\"Not found\"" >&6;
3346 fi
3347
3348
3349if test -z "$_cv_gnu_make_command"
3350then
3351 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
3352echo "$as_me: error: GNU Make required but not found" >&2;}
3353 { (exit 1); exit 1; }; }
3354fi
3355
3356
3357echo "$as_me:$LINENO: checking " >&5
3358echo $ECHO_N "checking ... $ECHO_C" >&6
3359if test "${ac_cv_has_flex+set}" = set; then
3360 echo $ECHO_N "(cached) $ECHO_C" >&6
3361else
3362 for ac_prog in flex lex
3363do
3364 # Extract the first word of "$ac_prog", so it can be a program name with args.
3365set dummy $ac_prog; ac_word=$2
3366echo "$as_me:$LINENO: checking for $ac_word" >&5
3367echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3368if test "${ac_cv_prog_LEX+set}" = set; then
3369 echo $ECHO_N "(cached) $ECHO_C" >&6
3370else
3371 if test -n "$LEX"; then
3372 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3373else
3374as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3375for as_dir in $PATH
3376do
3377 IFS=$as_save_IFS
3378 test -z "$as_dir" && as_dir=.
3379 for ac_exec_ext in '' $ac_executable_extensions; do
3380 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3381 ac_cv_prog_LEX="$ac_prog"
3382 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3383 break 2
3384 fi
3385done
3386done
3387
3388fi
3389fi
3390LEX=$ac_cv_prog_LEX
3391if test -n "$LEX"; then
3392 echo "$as_me:$LINENO: result: $LEX" >&5
3393echo "${ECHO_T}$LEX" >&6
3394else
3395 echo "$as_me:$LINENO: result: no" >&5
3396echo "${ECHO_T}no" >&6
3397fi
3398
3399 test -n "$LEX" && break
3400done
3401test -n "$LEX" || LEX=":"
3402
3403if test -z "$LEXLIB"
3404then
3405 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3406echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3407if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3408 echo $ECHO_N "(cached) $ECHO_C" >&6
3409else
3410 ac_check_lib_save_LIBS=$LIBS
3411LIBS="-lfl $LIBS"
3412cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003413/* confdefs.h. */
3414_ACEOF
3415cat confdefs.h >>conftest.$ac_ext
3416cat >>conftest.$ac_ext <<_ACEOF
3417/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003418
3419/* Override any gcc2 internal prototype to avoid an error. */
3420#ifdef __cplusplus
3421extern "C"
3422#endif
3423/* We use char because int might match the return type of a gcc2
3424 builtin and then its argument prototype would still apply. */
3425char yywrap ();
John Criswell7a73b802003-06-30 21:59:07 +00003426int
3427main ()
3428{
3429yywrap ();
3430 ;
3431 return 0;
3432}
3433_ACEOF
3434rm -f conftest.$ac_objext conftest$ac_exeext
3435if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +00003436 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003437 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +00003438 grep -v '^ *+' conftest.er1 >conftest.err
3439 rm -f conftest.er1
3440 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3442 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +00003443 { ac_try='test -z "$ac_c_werror_flag"
3444 || test ! -s conftest.err'
3445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3446 (eval $ac_try) 2>&5
3447 ac_status=$?
3448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3449 (exit $ac_status); }; } &&
3450 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00003451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3452 (eval $ac_try) 2>&5
3453 ac_status=$?
3454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3455 (exit $ac_status); }; }; then
3456 ac_cv_lib_fl_yywrap=yes
3457else
3458 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003459sed 's/^/| /' conftest.$ac_ext >&5
3460
John Criswell7a73b802003-06-30 21:59:07 +00003461ac_cv_lib_fl_yywrap=no
3462fi
Reid Spencer2b51a082004-08-04 00:34:49 +00003463rm -f conftest.err conftest.$ac_objext \
3464 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003465LIBS=$ac_check_lib_save_LIBS
3466fi
3467echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3468echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3469if test $ac_cv_lib_fl_yywrap = yes; then
3470 LEXLIB="-lfl"
3471else
3472 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3473echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3474if test "${ac_cv_lib_l_yywrap+set}" = set; then
3475 echo $ECHO_N "(cached) $ECHO_C" >&6
3476else
3477 ac_check_lib_save_LIBS=$LIBS
3478LIBS="-ll $LIBS"
3479cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003480/* confdefs.h. */
3481_ACEOF
3482cat confdefs.h >>conftest.$ac_ext
3483cat >>conftest.$ac_ext <<_ACEOF
3484/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003485
3486/* Override any gcc2 internal prototype to avoid an error. */
3487#ifdef __cplusplus
3488extern "C"
3489#endif
3490/* We use char because int might match the return type of a gcc2
3491 builtin and then its argument prototype would still apply. */
3492char yywrap ();
John Criswell7a73b802003-06-30 21:59:07 +00003493int
3494main ()
3495{
3496yywrap ();
3497 ;
3498 return 0;
3499}
3500_ACEOF
3501rm -f conftest.$ac_objext conftest$ac_exeext
3502if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +00003503 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003504 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +00003505 grep -v '^ *+' conftest.er1 >conftest.err
3506 rm -f conftest.er1
3507 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3509 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +00003510 { ac_try='test -z "$ac_c_werror_flag"
3511 || test ! -s conftest.err'
3512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3513 (eval $ac_try) 2>&5
3514 ac_status=$?
3515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3516 (exit $ac_status); }; } &&
3517 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00003518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3519 (eval $ac_try) 2>&5
3520 ac_status=$?
3521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3522 (exit $ac_status); }; }; then
3523 ac_cv_lib_l_yywrap=yes
3524else
3525 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003526sed 's/^/| /' conftest.$ac_ext >&5
3527
John Criswell7a73b802003-06-30 21:59:07 +00003528ac_cv_lib_l_yywrap=no
3529fi
Reid Spencer2b51a082004-08-04 00:34:49 +00003530rm -f conftest.err conftest.$ac_objext \
3531 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003532LIBS=$ac_check_lib_save_LIBS
3533fi
3534echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3535echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3536if test $ac_cv_lib_l_yywrap = yes; then
3537 LEXLIB="-ll"
3538fi
3539
3540fi
3541
3542fi
3543
3544if test "x$LEX" != "x:"; then
3545 echo "$as_me:$LINENO: checking lex output file root" >&5
3546echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3547if test "${ac_cv_prog_lex_root+set}" = set; then
3548 echo $ECHO_N "(cached) $ECHO_C" >&6
3549else
3550 # The minimal lex program is just a single line: %%. But some broken lexes
3551# (Solaris, I think it was) want two %% lines, so accommodate them.
3552cat >conftest.l <<_ACEOF
3553%%
3554%%
3555_ACEOF
3556{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3557 (eval $LEX conftest.l) 2>&5
3558 ac_status=$?
3559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3560 (exit $ac_status); }
3561if test -f lex.yy.c; then
3562 ac_cv_prog_lex_root=lex.yy
3563elif test -f lexyy.c; then
3564 ac_cv_prog_lex_root=lexyy
3565else
3566 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3567echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3568 { (exit 1); exit 1; }; }
3569fi
3570fi
3571echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3572echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3573rm -f conftest.l
3574LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3575
3576echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3577echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3578if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3579 echo $ECHO_N "(cached) $ECHO_C" >&6
3580else
3581 # POSIX says lex can declare yytext either as a pointer or an array; the
3582# default is implementation-dependent. Figure out which it is, since
3583# not all implementations provide the %pointer and %array declarations.
3584ac_cv_prog_lex_yytext_pointer=no
3585echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3586ac_save_LIBS=$LIBS
3587LIBS="$LIBS $LEXLIB"
3588cat >conftest.$ac_ext <<_ACEOF
3589`cat $LEX_OUTPUT_ROOT.c`
3590_ACEOF
3591rm -f conftest.$ac_objext conftest$ac_exeext
3592if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +00003593 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003594 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +00003595 grep -v '^ *+' conftest.er1 >conftest.err
3596 rm -f conftest.er1
3597 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3599 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +00003600 { ac_try='test -z "$ac_c_werror_flag"
3601 || test ! -s conftest.err'
3602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3603 (eval $ac_try) 2>&5
3604 ac_status=$?
3605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3606 (exit $ac_status); }; } &&
3607 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00003608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3609 (eval $ac_try) 2>&5
3610 ac_status=$?
3611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3612 (exit $ac_status); }; }; then
3613 ac_cv_prog_lex_yytext_pointer=yes
3614else
3615 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003616sed 's/^/| /' conftest.$ac_ext >&5
3617
John Criswell7a73b802003-06-30 21:59:07 +00003618fi
Reid Spencer2b51a082004-08-04 00:34:49 +00003619rm -f conftest.err conftest.$ac_objext \
3620 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003621LIBS=$ac_save_LIBS
3622rm -f "${LEX_OUTPUT_ROOT}.c"
3623
3624fi
3625echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3626echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3627if test $ac_cv_prog_lex_yytext_pointer = yes; then
3628
3629cat >>confdefs.h <<\_ACEOF
3630#define YYTEXT_POINTER 1
3631_ACEOF
3632
3633fi
3634
3635fi
3636
3637fi
3638echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
3639echo "${ECHO_T}$ac_cv_has_flex" >&6
3640if test "$LEX" != "flex"; then
3641 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
3642echo "$as_me: error: flex not found but required" >&2;}
3643 { (exit 1); exit 1; }; }
3644fi
3645
3646echo "$as_me:$LINENO: checking " >&5
3647echo $ECHO_N "checking ... $ECHO_C" >&6
3648if test "${ac_cv_has_bison+set}" = set; then
3649 echo $ECHO_N "(cached) $ECHO_C" >&6
3650else
3651 for ac_prog in 'bison -y' byacc
3652do
3653 # Extract the first word of "$ac_prog", so it can be a program name with args.
3654set dummy $ac_prog; ac_word=$2
3655echo "$as_me:$LINENO: checking for $ac_word" >&5
3656echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3657if test "${ac_cv_prog_YACC+set}" = set; then
3658 echo $ECHO_N "(cached) $ECHO_C" >&6
3659else
3660 if test -n "$YACC"; then
3661 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3662else
3663as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3664for as_dir in $PATH
3665do
3666 IFS=$as_save_IFS
3667 test -z "$as_dir" && as_dir=.
3668 for ac_exec_ext in '' $ac_executable_extensions; do
3669 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3670 ac_cv_prog_YACC="$ac_prog"
3671 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3672 break 2
3673 fi
3674done
3675done
3676
3677fi
3678fi
3679YACC=$ac_cv_prog_YACC
3680if test -n "$YACC"; then
3681 echo "$as_me:$LINENO: result: $YACC" >&5
3682echo "${ECHO_T}$YACC" >&6
3683else
3684 echo "$as_me:$LINENO: result: no" >&5
3685echo "${ECHO_T}no" >&6
3686fi
3687
3688 test -n "$YACC" && break
3689done
3690test -n "$YACC" || YACC="yacc"
3691
3692
3693fi
3694echo "$as_me:$LINENO: result: $ac_cv_has_bison" >&5
3695echo "${ECHO_T}$ac_cv_has_bison" >&6
3696if test "$YACC" != "bison -y"; then
3697 { { echo "$as_me:$LINENO: error: bison not found but required" >&5
3698echo "$as_me: error: bison not found but required" >&2;}
3699 { (exit 1); exit 1; }; }
3700else
Brian Gaeke12810632004-01-13 06:52:10 +00003701 BISON=bison
John Criswell7a73b802003-06-30 21:59:07 +00003702
3703fi
3704
John Criswell7a73b802003-06-30 21:59:07 +00003705# Check whether --enable-shared or --disable-shared was given.
3706if test "${enable_shared+set}" = set; then
3707 enableval="$enable_shared"
3708 p=${PACKAGE-default}
John Criswell47fdd832003-07-14 16:52:07 +00003709 case $enableval in
3710 yes) enable_shared=yes ;;
3711 no) enable_shared=no ;;
3712 *)
3713 enable_shared=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_shared=yes
3720 fi
3721 done
3722 IFS="$lt_save_ifs"
3723 ;;
3724 esac
John Criswell7a73b802003-06-30 21:59:07 +00003725else
3726 enable_shared=yes
3727fi;
John Criswell47fdd832003-07-14 16:52:07 +00003728
John Criswell7a73b802003-06-30 21:59:07 +00003729# Check whether --enable-static or --disable-static was given.
3730if test "${enable_static+set}" = set; then
3731 enableval="$enable_static"
3732 p=${PACKAGE-default}
John Criswell47fdd832003-07-14 16:52:07 +00003733 case $enableval in
3734 yes) enable_static=yes ;;
3735 no) enable_static=no ;;
3736 *)
3737 enable_static=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_static=yes
3744 fi
3745 done
3746 IFS="$lt_save_ifs"
3747 ;;
3748 esac
John Criswell7a73b802003-06-30 21:59:07 +00003749else
3750 enable_static=yes
3751fi;
John Criswell47fdd832003-07-14 16:52:07 +00003752
John Criswell7a73b802003-06-30 21:59:07 +00003753# Check whether --enable-fast-install or --disable-fast-install was given.
3754if test "${enable_fast_install+set}" = set; then
3755 enableval="$enable_fast_install"
3756 p=${PACKAGE-default}
John Criswell47fdd832003-07-14 16:52:07 +00003757 case $enableval in
3758 yes) enable_fast_install=yes ;;
3759 no) enable_fast_install=no ;;
3760 *)
3761 enable_fast_install=no
3762 # Look at the argument we got. We use all the common list separators.
3763 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3764 for pkg in $enableval; do
3765 IFS="$lt_save_ifs"
3766 if test "X$pkg" = "X$p"; then
3767 enable_fast_install=yes
3768 fi
3769 done
3770 IFS="$lt_save_ifs"
3771 ;;
3772 esac
John Criswell7a73b802003-06-30 21:59:07 +00003773else
3774 enable_fast_install=yes
3775fi;
John Criswell47fdd832003-07-14 16:52:07 +00003776
3777echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3778echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3779if test "${lt_cv_path_SED+set}" = set; then
3780 echo $ECHO_N "(cached) $ECHO_C" >&6
3781else
3782 # Loop through the user's path and test for sed and gsed.
3783# Then use that list of sed's as ones to test for truncation.
3784as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3785for as_dir in $PATH
3786do
3787 IFS=$as_save_IFS
3788 test -z "$as_dir" && as_dir=.
3789 for lt_ac_prog in sed gsed; do
3790 for ac_exec_ext in '' $ac_executable_extensions; do
3791 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3792 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3793 fi
3794 done
3795 done
3796done
3797lt_ac_max=0
3798lt_ac_count=0
3799# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3800# along with /bin/sed that truncates output.
3801for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3802 test ! -f $lt_ac_sed && break
3803 cat /dev/null > conftest.in
3804 lt_ac_count=0
3805 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3806 # Check for GNU sed and select it if it is found.
3807 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3808 lt_cv_path_SED=$lt_ac_sed
3809 break
3810 fi
3811 while true; do
3812 cat conftest.in conftest.in >conftest.tmp
3813 mv conftest.tmp conftest.in
3814 cp conftest.in conftest.nl
3815 echo >>conftest.nl
3816 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3817 cmp -s conftest.out conftest.nl || break
3818 # 10000 chars as input seems more than enough
3819 test $lt_ac_count -gt 10 && break
3820 lt_ac_count=`expr $lt_ac_count + 1`
3821 if test $lt_ac_count -gt $lt_ac_max; then
3822 lt_ac_max=$lt_ac_count
3823 lt_cv_path_SED=$lt_ac_sed
3824 fi
3825 done
3826done
3827SED=$lt_cv_path_SED
3828
John Criswell7a73b802003-06-30 21:59:07 +00003829fi
3830
John Criswell47fdd832003-07-14 16:52:07 +00003831echo "$as_me:$LINENO: result: $SED" >&5
3832echo "${ECHO_T}$SED" >&6
3833
3834echo "$as_me:$LINENO: checking for egrep" >&5
3835echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3836if test "${ac_cv_prog_egrep+set}" = set; then
3837 echo $ECHO_N "(cached) $ECHO_C" >&6
3838else
3839 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3840 then ac_cv_prog_egrep='grep -E'
3841 else ac_cv_prog_egrep='egrep'
3842 fi
3843fi
3844echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3845echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3846 EGREP=$ac_cv_prog_egrep
3847
3848
John Criswell7a73b802003-06-30 21:59:07 +00003849
3850# Check whether --with-gnu-ld or --without-gnu-ld was given.
3851if test "${with_gnu_ld+set}" = set; then
3852 withval="$with_gnu_ld"
3853 test "$withval" = no || with_gnu_ld=yes
3854else
3855 with_gnu_ld=no
3856fi;
3857ac_prog=ld
3858if test "$GCC" = yes; then
3859 # Check if gcc -print-prog-name=ld gives a path.
John Criswell47fdd832003-07-14 16:52:07 +00003860 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3861echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00003862 case $host in
3863 *-*-mingw*)
3864 # gcc leaves a trailing carriage return which upsets mingw
3865 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3866 *)
3867 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3868 esac
3869 case $ac_prog in
3870 # Accept absolute paths.
John Criswell47fdd832003-07-14 16:52:07 +00003871 [\\/]* | ?:[\\/]*)
John Criswell7a73b802003-06-30 21:59:07 +00003872 re_direlt='/[^/][^/]*/\.\./'
3873 # Canonicalize the path of ld
John Criswell47fdd832003-07-14 16:52:07 +00003874 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
John Criswell7a73b802003-06-30 21:59:07 +00003875 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
John Criswell47fdd832003-07-14 16:52:07 +00003876 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
John Criswell7a73b802003-06-30 21:59:07 +00003877 done
3878 test -z "$LD" && LD="$ac_prog"
3879 ;;
3880 "")
3881 # If it fails, then pretend we aren't using GCC.
3882 ac_prog=ld
3883 ;;
3884 *)
3885 # If it is relative, then search for the first ld in PATH.
3886 with_gnu_ld=unknown
3887 ;;
3888 esac
3889elif test "$with_gnu_ld" = yes; then
3890 echo "$as_me:$LINENO: checking for GNU ld" >&5
3891echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3892else
3893 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3894echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3895fi
3896if test "${lt_cv_path_LD+set}" = set; then
3897 echo $ECHO_N "(cached) $ECHO_C" >&6
3898else
3899 if test -z "$LD"; then
John Criswell47fdd832003-07-14 16:52:07 +00003900 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +00003901 for ac_dir in $PATH; do
John Criswell47fdd832003-07-14 16:52:07 +00003902 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00003903 test -z "$ac_dir" && ac_dir=.
3904 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3905 lt_cv_path_LD="$ac_dir/$ac_prog"
3906 # Check to see if the program is GNU ld. I'd rather use --version,
3907 # but apparently some GNU ld's only accept -v.
3908 # Break only if it was the GNU/non-GNU ld that we prefer.
John Criswell47fdd832003-07-14 16:52:07 +00003909 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3910 *GNU* | *'with BFD'*)
John Criswell7a73b802003-06-30 21:59:07 +00003911 test "$with_gnu_ld" != no && break
John Criswell47fdd832003-07-14 16:52:07 +00003912 ;;
3913 *)
John Criswell7a73b802003-06-30 21:59:07 +00003914 test "$with_gnu_ld" != yes && break
John Criswell47fdd832003-07-14 16:52:07 +00003915 ;;
3916 esac
John Criswell7a73b802003-06-30 21:59:07 +00003917 fi
3918 done
John Criswell47fdd832003-07-14 16:52:07 +00003919 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00003920else
3921 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3922fi
3923fi
3924
3925LD="$lt_cv_path_LD"
3926if test -n "$LD"; then
3927 echo "$as_me:$LINENO: result: $LD" >&5
3928echo "${ECHO_T}$LD" >&6
3929else
3930 echo "$as_me:$LINENO: result: no" >&5
3931echo "${ECHO_T}no" >&6
3932fi
3933test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3934echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3935 { (exit 1); exit 1; }; }
3936echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3937echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3938if test "${lt_cv_prog_gnu_ld+set}" = set; then
3939 echo $ECHO_N "(cached) $ECHO_C" >&6
3940else
3941 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
John Criswell47fdd832003-07-14 16:52:07 +00003942case `"$LD" -v 2>&1 </dev/null` in
3943*GNU* | *'with BFD'*)
John Criswell7a73b802003-06-30 21:59:07 +00003944 lt_cv_prog_gnu_ld=yes
John Criswell47fdd832003-07-14 16:52:07 +00003945 ;;
3946*)
John Criswell7a73b802003-06-30 21:59:07 +00003947 lt_cv_prog_gnu_ld=no
John Criswell47fdd832003-07-14 16:52:07 +00003948 ;;
3949esac
John Criswell7a73b802003-06-30 21:59:07 +00003950fi
3951echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3952echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3953with_gnu_ld=$lt_cv_prog_gnu_ld
3954
3955
3956echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3957echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3958if test "${lt_cv_ld_reload_flag+set}" = set; then
3959 echo $ECHO_N "(cached) $ECHO_C" >&6
3960else
3961 lt_cv_ld_reload_flag='-r'
3962fi
3963echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3964echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3965reload_flag=$lt_cv_ld_reload_flag
John Criswell47fdd832003-07-14 16:52:07 +00003966case $reload_flag in
3967"" | " "*) ;;
3968*) reload_flag=" $reload_flag" ;;
3969esac
3970reload_cmds='$LD$reload_flag -o $output$reload_objs'
John Criswell7a73b802003-06-30 21:59:07 +00003971
3972echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3973echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3974if test "${lt_cv_path_NM+set}" = set; then
3975 echo $ECHO_N "(cached) $ECHO_C" >&6
3976else
3977 if test -n "$NM"; then
3978 # Let the user override the test.
3979 lt_cv_path_NM="$NM"
3980else
John Criswell47fdd832003-07-14 16:52:07 +00003981 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +00003982 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
John Criswell47fdd832003-07-14 16:52:07 +00003983 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00003984 test -z "$ac_dir" && ac_dir=.
John Criswell47fdd832003-07-14 16:52:07 +00003985 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3986 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
John Criswell7a73b802003-06-30 21:59:07 +00003987 # Check to see if the nm accepts a BSD-compat flag.
3988 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3989 # nm: unknown option "B" ignored
3990 # Tru64's nm complains that /dev/null is an invalid object file
John Criswell47fdd832003-07-14 16:52:07 +00003991 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3992 */dev/null* | *'Invalid file or object type'*)
John Criswell7a73b802003-06-30 21:59:07 +00003993 lt_cv_path_NM="$tmp_nm -B"
3994 break
John Criswell47fdd832003-07-14 16:52:07 +00003995 ;;
3996 *)
3997 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3998 */dev/null*)
3999 lt_cv_path_NM="$tmp_nm -p"
4000 break
4001 ;;
4002 *)
4003 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4004 continue # so that we can try to find one that supports BSD flags
4005 ;;
4006 esac
4007 esac
John Criswell7a73b802003-06-30 21:59:07 +00004008 fi
4009 done
John Criswell47fdd832003-07-14 16:52:07 +00004010 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00004011 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4012fi
4013fi
John Criswell47fdd832003-07-14 16:52:07 +00004014echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4015echo "${ECHO_T}$lt_cv_path_NM" >&6
John Criswell7a73b802003-06-30 21:59:07 +00004016NM="$lt_cv_path_NM"
John Criswell7a73b802003-06-30 21:59:07 +00004017
4018echo "$as_me:$LINENO: checking whether ln -s works" >&5
4019echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4020LN_S=$as_ln_s
4021if test "$LN_S" = "ln -s"; then
4022 echo "$as_me:$LINENO: result: yes" >&5
4023echo "${ECHO_T}yes" >&6
4024else
4025 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4026echo "${ECHO_T}no, using $LN_S" >&6
4027fi
4028
John Criswell47fdd832003-07-14 16:52:07 +00004029echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4030echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00004031if test "${lt_cv_deplibs_check_method+set}" = set; then
4032 echo $ECHO_N "(cached) $ECHO_C" >&6
4033else
4034 lt_cv_file_magic_cmd='$MAGIC_CMD'
4035lt_cv_file_magic_test_file=
4036lt_cv_deplibs_check_method='unknown'
4037# Need to set the preceding variable on all platforms that support
4038# interlibrary dependencies.
4039# 'none' -- dependencies not supported.
4040# `unknown' -- same as none, but documents that we really don't know.
4041# 'pass_all' -- all dependencies passed with no checks.
4042# 'test_compile' -- check by making test program.
4043# 'file_magic [[regex]]' -- check by looking for files in library path
John Criswell47fdd832003-07-14 16:52:07 +00004044# which responds to the $file_magic_cmd with a given extended regex.
John Criswell7a73b802003-06-30 21:59:07 +00004045# If you have `file' or equivalent on your system and you're not sure
4046# whether `pass_all' will *always* work, you probably want this one.
4047
4048case $host_os in
4049aix4* | aix5*)
4050 lt_cv_deplibs_check_method=pass_all
4051 ;;
4052
4053beos*)
4054 lt_cv_deplibs_check_method=pass_all
4055 ;;
4056
4057bsdi4*)
4058 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4059 lt_cv_file_magic_cmd='/usr/bin/file -L'
4060 lt_cv_file_magic_test_file=/shlib/libc.so
4061 ;;
4062
4063cygwin* | mingw* | pw32*)
John Criswell47fdd832003-07-14 16:52:07 +00004064 # win32_libid is a shell function defined in ltmain.sh
4065 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4066 lt_cv_file_magic_cmd='win32_libid'
John Criswell7a73b802003-06-30 21:59:07 +00004067 ;;
4068
4069darwin* | rhapsody*)
John Criswell47fdd832003-07-14 16:52:07 +00004070 # this will be overwritten by pass_all, but leave it in just in case
John Criswell7a73b802003-06-30 21:59:07 +00004071 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
4072 lt_cv_file_magic_cmd='/usr/bin/file -L'
4073 case "$host_os" in
4074 rhapsody* | darwin1.[012])
John Criswell47fdd832003-07-14 16:52:07 +00004075 lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
John Criswell7a73b802003-06-30 21:59:07 +00004076 ;;
4077 *) # Darwin 1.3 on
4078 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
4079 ;;
4080 esac
John Criswell47fdd832003-07-14 16:52:07 +00004081 lt_cv_deplibs_check_method=pass_all
John Criswell7a73b802003-06-30 21:59:07 +00004082 ;;
4083
4084freebsd*)
4085 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4086 case $host_cpu in
4087 i*86 )
4088 # Not sure whether the presence of OpenBSD here was a mistake.
4089 # Let's accept both of them until this is cleared up.
4090 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4091 lt_cv_file_magic_cmd=/usr/bin/file
4092 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4093 ;;
4094 esac
4095 else
4096 lt_cv_deplibs_check_method=pass_all
4097 fi
4098 ;;
4099
4100gnu*)
4101 lt_cv_deplibs_check_method=pass_all
4102 ;;
4103
John Criswell47fdd832003-07-14 16:52:07 +00004104hpux10.20* | hpux11*)
John Criswell7a73b802003-06-30 21:59:07 +00004105 lt_cv_file_magic_cmd=/usr/bin/file
John Criswell47fdd832003-07-14 16:52:07 +00004106 case "$host_cpu" in
4107 ia64*)
4108 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4109 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4110 ;;
4111 hppa*64*)
4112 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]'
4113 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4114 ;;
4115 *)
4116 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4117 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4118 ;;
4119 esac
John Criswell7a73b802003-06-30 21:59:07 +00004120 ;;
4121
John Criswell47fdd832003-07-14 16:52:07 +00004122irix5* | irix6* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +00004123 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00004124 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +00004125 # this will be overridden with pass_all, but let us keep it just in case
4126 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4127 ;;
4128 *)
4129 case $LD in
4130 *-32|*"-32 ") libmagic=32-bit;;
4131 *-n32|*"-n32 ") libmagic=N32;;
4132 *-64|*"-64 ") libmagic=64-bit;;
4133 *) libmagic=never-match;;
4134 esac
4135 # this will be overridden with pass_all, but let us keep it just in case
4136 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4137 ;;
4138 esac
4139 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4140 lt_cv_deplibs_check_method=pass_all
4141 ;;
4142
4143# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +00004144linux*)
John Criswell7a73b802003-06-30 21:59:07 +00004145 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +00004146 alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*)
John Criswell7a73b802003-06-30 21:59:07 +00004147 lt_cv_deplibs_check_method=pass_all ;;
4148 *)
4149 # glibc up to 2.1.1 does not perform some relocations on ARM
4150 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4151 esac
4152 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4153 ;;
4154
4155netbsd*)
4156 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +00004157 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
John Criswell7a73b802003-06-30 21:59:07 +00004158 else
John Criswell47fdd832003-07-14 16:52:07 +00004159 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
John Criswell7a73b802003-06-30 21:59:07 +00004160 fi
4161 ;;
4162
4163newos6*)
4164 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4165 lt_cv_file_magic_cmd=/usr/bin/file
4166 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4167 ;;
4168
John Criswell47fdd832003-07-14 16:52:07 +00004169nto-qnx)
4170 lt_cv_deplibs_check_method=unknown
4171 ;;
4172
John Criswell7a73b802003-06-30 21:59:07 +00004173openbsd*)
4174 lt_cv_file_magic_cmd=/usr/bin/file
4175 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4176 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4177 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4178 else
4179 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4180 fi
4181 ;;
4182
4183osf3* | osf4* | osf5*)
4184 # this will be overridden with pass_all, but let us keep it just in case
4185 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4186 lt_cv_file_magic_test_file=/shlib/libc.so
4187 lt_cv_deplibs_check_method=pass_all
4188 ;;
4189
4190sco3.2v5*)
4191 lt_cv_deplibs_check_method=pass_all
4192 ;;
4193
4194solaris*)
4195 lt_cv_deplibs_check_method=pass_all
4196 lt_cv_file_magic_test_file=/lib/libc.so
4197 ;;
4198
John Criswell7a73b802003-06-30 21:59:07 +00004199sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4200 case $host_vendor in
4201 motorola)
4202 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]'
4203 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4204 ;;
4205 ncr)
4206 lt_cv_deplibs_check_method=pass_all
4207 ;;
4208 sequent)
4209 lt_cv_file_magic_cmd='/bin/file'
4210 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4211 ;;
4212 sni)
4213 lt_cv_file_magic_cmd='/bin/file'
4214 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4215 lt_cv_file_magic_test_file=/lib/libc.so
4216 ;;
John Criswell47fdd832003-07-14 16:52:07 +00004217 siemens)
4218 lt_cv_deplibs_check_method=pass_all
4219 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004220 esac
4221 ;;
John Criswell47fdd832003-07-14 16:52:07 +00004222
4223sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4224 lt_cv_deplibs_check_method=pass_all
4225 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004226esac
4227
4228fi
4229echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4230echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4231file_magic_cmd=$lt_cv_file_magic_cmd
4232deplibs_check_method=$lt_cv_deplibs_check_method
John Criswell47fdd832003-07-14 16:52:07 +00004233test -z "$deplibs_check_method" && deplibs_check_method=unknown
John Criswell7a73b802003-06-30 21:59:07 +00004234
4235
4236
4237
John Criswell47fdd832003-07-14 16:52:07 +00004238# If no C compiler was specified, use CC.
4239LTCC=${LTCC-"$CC"}
John Criswell7a73b802003-06-30 21:59:07 +00004240
John Criswell47fdd832003-07-14 16:52:07 +00004241# Allow CC to be a program name with arguments.
4242compiler=$CC
John Criswell7a73b802003-06-30 21:59:07 +00004243
John Criswell47fdd832003-07-14 16:52:07 +00004244# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4245if test "${enable_libtool_lock+set}" = set; then
4246 enableval="$enable_libtool_lock"
John Criswell7a73b802003-06-30 21:59:07 +00004247
John Criswell47fdd832003-07-14 16:52:07 +00004248fi;
4249test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
John Criswell7a73b802003-06-30 21:59:07 +00004250
John Criswell47fdd832003-07-14 16:52:07 +00004251# Some flags need to be propagated to the compiler or linker for good
4252# libtool support.
4253case $host in
4254ia64-*-hpux*)
4255 # Find out which ABI we are using.
4256 echo 'int i;' > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4258 (eval $ac_compile) 2>&5
4259 ac_status=$?
4260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4261 (exit $ac_status); }; then
John Criswell47fdd832003-07-14 16:52:07 +00004262 case `/usr/bin/file conftest.$ac_objext` in
4263 *ELF-32*)
4264 HPUX_IA64_MODE="32"
4265 ;;
4266 *ELF-64*)
4267 HPUX_IA64_MODE="64"
4268 ;;
4269 esac
4270 fi
4271 rm -rf conftest*
4272 ;;
4273*-*-irix6*)
4274 # Find out which ABI we are using.
Reid Spencer73fb5482004-08-31 14:20:36 +00004275 echo '#line 4275 "configure"' > conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +00004276 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4277 (eval $ac_compile) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00004278 ac_status=$?
4279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00004280 (exit $ac_status); }; then
4281 if test "$lt_cv_prog_gnu_ld" = yes; then
4282 case `/usr/bin/file conftest.$ac_objext` in
4283 *32-bit*)
4284 LD="${LD-ld} -melf32bsmip"
4285 ;;
4286 *N32*)
4287 LD="${LD-ld} -melf32bmipn32"
4288 ;;
4289 *64-bit*)
4290 LD="${LD-ld} -melf64bmip"
4291 ;;
4292 esac
4293 else
4294 case `/usr/bin/file conftest.$ac_objext` in
4295 *32-bit*)
4296 LD="${LD-ld} -32"
4297 ;;
4298 *N32*)
4299 LD="${LD-ld} -n32"
4300 ;;
4301 *64-bit*)
4302 LD="${LD-ld} -64"
4303 ;;
4304 esac
4305 fi
4306 fi
4307 rm -rf conftest*
4308 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004309
John Criswell47fdd832003-07-14 16:52:07 +00004310x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4311 # Find out which ABI we are using.
4312 echo 'int i;' > conftest.$ac_ext
4313 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4314 (eval $ac_compile) 2>&5
4315 ac_status=$?
4316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4317 (exit $ac_status); }; then
4318 case "`/usr/bin/file conftest.o`" in
4319 *32-bit*)
4320 case $host in
4321 x86_64-*linux*)
4322 LD="${LD-ld} -m elf_i386"
4323 ;;
4324 ppc64-*linux*)
4325 LD="${LD-ld} -m elf32ppclinux"
4326 ;;
4327 s390x-*linux*)
4328 LD="${LD-ld} -m elf_s390"
4329 ;;
4330 sparc64-*linux*)
4331 LD="${LD-ld} -m elf32_sparc"
4332 ;;
4333 esac
4334 ;;
4335 *64-bit*)
4336 case $host in
4337 x86_64-*linux*)
4338 LD="${LD-ld} -m elf_x86_64"
4339 ;;
4340 ppc*-*linux*|powerpc*-*linux*)
4341 LD="${LD-ld} -m elf64ppc"
4342 ;;
4343 s390*-*linux*)
4344 LD="${LD-ld} -m elf64_s390"
4345 ;;
4346 sparc*-*linux*)
4347 LD="${LD-ld} -m elf64_sparc"
4348 ;;
4349 esac
4350 ;;
4351 esac
4352 fi
4353 rm -rf conftest*
4354 ;;
4355
4356*-*-sco3.2v5*)
4357 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4358 SAVE_CFLAGS="$CFLAGS"
4359 CFLAGS="$CFLAGS -belf"
4360 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4361echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4362if test "${lt_cv_cc_needs_belf+set}" = set; then
4363 echo $ECHO_N "(cached) $ECHO_C" >&6
4364else
4365 ac_ext=c
4366ac_cpp='$CPP $CPPFLAGS'
4367ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4368ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4369ac_compiler_gnu=$ac_cv_c_compiler_gnu
4370
4371 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004372/* confdefs.h. */
4373_ACEOF
4374cat confdefs.h >>conftest.$ac_ext
4375cat >>conftest.$ac_ext <<_ACEOF
4376/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00004377
John Criswell47fdd832003-07-14 16:52:07 +00004378int
4379main ()
John Criswell7a73b802003-06-30 21:59:07 +00004380{
John Criswell7a73b802003-06-30 21:59:07 +00004381
John Criswell47fdd832003-07-14 16:52:07 +00004382 ;
4383 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00004384}
John Criswell47fdd832003-07-14 16:52:07 +00004385_ACEOF
4386rm -f conftest.$ac_objext conftest$ac_exeext
4387if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +00004388 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004389 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +00004390 grep -v '^ *+' conftest.er1 >conftest.err
4391 rm -f conftest.er1
4392 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00004393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00004394 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +00004395 { ac_try='test -z "$ac_c_werror_flag"
4396 || test ! -s conftest.err'
4397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4398 (eval $ac_try) 2>&5
4399 ac_status=$?
4400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4401 (exit $ac_status); }; } &&
4402 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +00004403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4404 (eval $ac_try) 2>&5
4405 ac_status=$?
4406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4407 (exit $ac_status); }; }; then
4408 lt_cv_cc_needs_belf=yes
John Criswell7a73b802003-06-30 21:59:07 +00004409else
John Criswell47fdd832003-07-14 16:52:07 +00004410 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004411sed 's/^/| /' conftest.$ac_ext >&5
4412
John Criswell47fdd832003-07-14 16:52:07 +00004413lt_cv_cc_needs_belf=no
John Criswell7a73b802003-06-30 21:59:07 +00004414fi
Reid Spencer2b51a082004-08-04 00:34:49 +00004415rm -f conftest.err conftest.$ac_objext \
4416 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +00004417 ac_ext=c
4418ac_cpp='$CPP $CPPFLAGS'
4419ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4420ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4421ac_compiler_gnu=$ac_cv_c_compiler_gnu
4422
John Criswell7a73b802003-06-30 21:59:07 +00004423fi
John Criswell47fdd832003-07-14 16:52:07 +00004424echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4425echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4426 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4427 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4428 CFLAGS="$SAVE_CFLAGS"
4429 fi
4430 ;;
4431
4432esac
4433
4434need_locks="$enable_libtool_lock"
4435
John Criswell7a73b802003-06-30 21:59:07 +00004436
4437
4438echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4439echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4440if test "${ac_cv_header_stdc+set}" = set; then
4441 echo $ECHO_N "(cached) $ECHO_C" >&6
4442else
4443 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004444/* confdefs.h. */
4445_ACEOF
4446cat confdefs.h >>conftest.$ac_ext
4447cat >>conftest.$ac_ext <<_ACEOF
4448/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004449#include <stdlib.h>
4450#include <stdarg.h>
4451#include <string.h>
4452#include <float.h>
4453
John Criswell0c38eaf2003-09-10 15:17:25 +00004454int
4455main ()
4456{
4457
4458 ;
4459 return 0;
4460}
John Criswell7a73b802003-06-30 21:59:07 +00004461_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004462rm -f conftest.$ac_objext
4463if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +00004464 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004465 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +00004466 grep -v '^ *+' conftest.er1 >conftest.err
4467 rm -f conftest.er1
4468 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00004469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004470 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +00004471 { ac_try='test -z "$ac_c_werror_flag"
4472 || test ! -s conftest.err'
4473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4474 (eval $ac_try) 2>&5
4475 ac_status=$?
4476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4477 (exit $ac_status); }; } &&
4478 { ac_try='test -s conftest.$ac_objext'
John Criswell0c38eaf2003-09-10 15:17:25 +00004479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4480 (eval $ac_try) 2>&5
4481 ac_status=$?
4482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4483 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00004484 ac_cv_header_stdc=yes
4485else
4486 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004487sed 's/^/| /' conftest.$ac_ext >&5
4488
4489ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00004490fi
Reid Spencer2b51a082004-08-04 00:34:49 +00004491rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004492
4493if test $ac_cv_header_stdc = yes; then
4494 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4495 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004496/* confdefs.h. */
4497_ACEOF
4498cat confdefs.h >>conftest.$ac_ext
4499cat >>conftest.$ac_ext <<_ACEOF
4500/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004501#include <string.h>
4502
4503_ACEOF
4504if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00004505 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00004506 :
4507else
4508 ac_cv_header_stdc=no
4509fi
4510rm -f conftest*
4511
4512fi
4513
4514if test $ac_cv_header_stdc = yes; then
4515 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
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 <stdlib.h>
4523
4524_ACEOF
4525if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00004526 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00004527 :
4528else
4529 ac_cv_header_stdc=no
4530fi
4531rm -f conftest*
4532
4533fi
4534
4535if test $ac_cv_header_stdc = yes; then
4536 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4537 if test "$cross_compiling" = yes; then
4538 :
4539else
4540 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004541/* confdefs.h. */
4542_ACEOF
4543cat confdefs.h >>conftest.$ac_ext
4544cat >>conftest.$ac_ext <<_ACEOF
4545/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004546#include <ctype.h>
4547#if ((' ' & 0x0FF) == 0x020)
4548# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4549# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4550#else
John Criswell0c38eaf2003-09-10 15:17:25 +00004551# define ISLOWER(c) \
Reid Spencer2b51a082004-08-04 00:34:49 +00004552 (('a' <= (c) && (c) <= 'i') \
4553 || ('j' <= (c) && (c) <= 'r') \
4554 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00004555# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4556#endif
4557
4558#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4559int
4560main ()
4561{
4562 int i;
4563 for (i = 0; i < 256; i++)
4564 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2b51a082004-08-04 00:34:49 +00004565 || toupper (i) != TOUPPER (i))
John Criswell7a73b802003-06-30 21:59:07 +00004566 exit(2);
4567 exit (0);
4568}
4569_ACEOF
4570rm -f conftest$ac_exeext
4571if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4572 (eval $ac_link) 2>&5
4573 ac_status=$?
4574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4575 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4577 (eval $ac_try) 2>&5
4578 ac_status=$?
4579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4580 (exit $ac_status); }; }; then
4581 :
4582else
4583 echo "$as_me: program exited with status $ac_status" >&5
4584echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004585sed 's/^/| /' conftest.$ac_ext >&5
4586
John Criswell7a73b802003-06-30 21:59:07 +00004587( exit $ac_status )
4588ac_cv_header_stdc=no
4589fi
Reid Spencer2b51a082004-08-04 00:34:49 +00004590rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004591fi
4592fi
4593fi
4594echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4595echo "${ECHO_T}$ac_cv_header_stdc" >&6
4596if test $ac_cv_header_stdc = yes; then
4597
4598cat >>confdefs.h <<\_ACEOF
4599#define STDC_HEADERS 1
4600_ACEOF
4601
4602fi
4603
4604# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4605
4606
4607
4608
4609
4610
4611
4612
4613
4614for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
Reid Spencer2b51a082004-08-04 00:34:49 +00004615 inttypes.h stdint.h unistd.h
John Criswell7a73b802003-06-30 21:59:07 +00004616do
4617as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4618echo "$as_me:$LINENO: checking for $ac_header" >&5
4619echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4620if eval "test \"\${$as_ac_Header+set}\" = set"; then
4621 echo $ECHO_N "(cached) $ECHO_C" >&6
4622else
4623 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004624/* confdefs.h. */
4625_ACEOF
4626cat confdefs.h >>conftest.$ac_ext
4627cat >>conftest.$ac_ext <<_ACEOF
4628/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004629$ac_includes_default
4630
4631#include <$ac_header>
4632_ACEOF
4633rm -f conftest.$ac_objext
4634if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +00004635 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004636 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +00004637 grep -v '^ *+' conftest.er1 >conftest.err
4638 rm -f conftest.er1
4639 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00004640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4641 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +00004642 { ac_try='test -z "$ac_c_werror_flag"
4643 || test ! -s conftest.err'
4644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4645 (eval $ac_try) 2>&5
4646 ac_status=$?
4647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4648 (exit $ac_status); }; } &&
4649 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00004650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4651 (eval $ac_try) 2>&5
4652 ac_status=$?
4653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4654 (exit $ac_status); }; }; then
4655 eval "$as_ac_Header=yes"
4656else
4657 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004658sed 's/^/| /' conftest.$ac_ext >&5
4659
John Criswell7a73b802003-06-30 21:59:07 +00004660eval "$as_ac_Header=no"
4661fi
Reid Spencer2b51a082004-08-04 00:34:49 +00004662rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004663fi
4664echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4665echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4666if test `eval echo '${'$as_ac_Header'}'` = yes; then
4667 cat >>confdefs.h <<_ACEOF
4668#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4669_ACEOF
4670
4671fi
4672
4673done
4674
4675
4676
4677for ac_header in dlfcn.h
4678do
4679as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4680if eval "test \"\${$as_ac_Header+set}\" = set"; then
4681 echo "$as_me:$LINENO: checking for $ac_header" >&5
4682echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4683if eval "test \"\${$as_ac_Header+set}\" = set"; then
4684 echo $ECHO_N "(cached) $ECHO_C" >&6
4685fi
4686echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4687echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4688else
4689 # Is the header compilable?
4690echo "$as_me:$LINENO: checking $ac_header usability" >&5
4691echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4692cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004693/* confdefs.h. */
4694_ACEOF
4695cat confdefs.h >>conftest.$ac_ext
4696cat >>conftest.$ac_ext <<_ACEOF
4697/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004698$ac_includes_default
4699#include <$ac_header>
4700_ACEOF
4701rm -f conftest.$ac_objext
4702if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +00004703 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004704 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +00004705 grep -v '^ *+' conftest.er1 >conftest.err
4706 rm -f conftest.er1
4707 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00004708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4709 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +00004710 { ac_try='test -z "$ac_c_werror_flag"
4711 || test ! -s conftest.err'
4712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4713 (eval $ac_try) 2>&5
4714 ac_status=$?
4715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4716 (exit $ac_status); }; } &&
4717 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00004718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4719 (eval $ac_try) 2>&5
4720 ac_status=$?
4721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4722 (exit $ac_status); }; }; then
4723 ac_header_compiler=yes
4724else
4725 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004726sed 's/^/| /' conftest.$ac_ext >&5
4727
John Criswell7a73b802003-06-30 21:59:07 +00004728ac_header_compiler=no
4729fi
Reid Spencer2b51a082004-08-04 00:34:49 +00004730rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004731echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4732echo "${ECHO_T}$ac_header_compiler" >&6
4733
4734# Is the header present?
4735echo "$as_me:$LINENO: checking $ac_header presence" >&5
4736echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4737cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004738/* confdefs.h. */
4739_ACEOF
4740cat confdefs.h >>conftest.$ac_ext
4741cat >>conftest.$ac_ext <<_ACEOF
4742/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004743#include <$ac_header>
4744_ACEOF
4745if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4746 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4747 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004748 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00004749 rm -f conftest.er1
4750 cat conftest.err >&5
4751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4752 (exit $ac_status); } >/dev/null; then
4753 if test -s conftest.err; then
4754 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2b51a082004-08-04 00:34:49 +00004755 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +00004756 else
4757 ac_cpp_err=
4758 fi
4759else
4760 ac_cpp_err=yes
4761fi
4762if test -z "$ac_cpp_err"; then
4763 ac_header_preproc=yes
4764else
4765 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004766sed 's/^/| /' conftest.$ac_ext >&5
4767
John Criswell7a73b802003-06-30 21:59:07 +00004768 ac_header_preproc=no
4769fi
4770rm -f conftest.err conftest.$ac_ext
4771echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4772echo "${ECHO_T}$ac_header_preproc" >&6
4773
4774# So? What about this header?
Reid Spencer2b51a082004-08-04 00:34:49 +00004775case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4776 yes:no: )
John Criswell7a73b802003-06-30 21:59:07 +00004777 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4778echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2b51a082004-08-04 00:34:49 +00004779 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4780echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4781 ac_header_preproc=yes
John Criswell0c38eaf2003-09-10 15:17:25 +00004782 ;;
Reid Spencer2b51a082004-08-04 00:34:49 +00004783 no:yes:* )
John Criswell7a73b802003-06-30 21:59:07 +00004784 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4785echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2b51a082004-08-04 00:34:49 +00004786 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4787echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4788 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4789echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4790 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4791echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00004792 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004793echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2b51a082004-08-04 00:34:49 +00004794 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4795echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
John Criswell0c38eaf2003-09-10 15:17:25 +00004796 (
4797 cat <<\_ASBOX
Reid Spencer2b51a082004-08-04 00:34:49 +00004798## ----------------------------------- ##
4799## Report this to llvmbugs@cs.uiuc.edu ##
4800## ----------------------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +00004801_ASBOX
4802 ) |
4803 sed "s/^/$as_me: WARNING: /" >&2
4804 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004805esac
4806echo "$as_me:$LINENO: checking for $ac_header" >&5
4807echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4808if eval "test \"\${$as_ac_Header+set}\" = set"; then
4809 echo $ECHO_N "(cached) $ECHO_C" >&6
4810else
Reid Spencer2b51a082004-08-04 00:34:49 +00004811 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +00004812fi
4813echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4814echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4815
4816fi
4817if test `eval echo '${'$as_ac_Header'}'` = yes; then
4818 cat >>confdefs.h <<_ACEOF
4819#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4820_ACEOF
4821
4822fi
4823
4824done
4825
John Criswell47fdd832003-07-14 16:52:07 +00004826ac_ext=cc
4827ac_cpp='$CXXCPP $CPPFLAGS'
4828ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4829ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4830ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4831echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4832echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4833if test -z "$CXXCPP"; then
4834 if test "${ac_cv_prog_CXXCPP+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00004835 echo $ECHO_N "(cached) $ECHO_C" >&6
4836else
John Criswell47fdd832003-07-14 16:52:07 +00004837 # Double quotes because CXXCPP needs to be expanded
4838 for CXXCPP in "$CXX -E" "/lib/cpp"
4839 do
4840 ac_preproc_ok=false
4841for ac_cxx_preproc_warn_flag in '' yes
4842do
4843 # Use a header file that comes with gcc, so configuring glibc
4844 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00004845 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4846 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +00004847 # On the NeXT, cc -E runs the code through the compiler's parser,
4848 # not just through cpp. "Syntax error" is here to catch this case.
4849 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004850/* confdefs.h. */
4851_ACEOF
4852cat confdefs.h >>conftest.$ac_ext
4853cat >>conftest.$ac_ext <<_ACEOF
4854/* end confdefs.h. */
4855#ifdef __STDC__
4856# include <limits.h>
4857#else
4858# include <assert.h>
4859#endif
Reid Spencer2b51a082004-08-04 00:34:49 +00004860 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +00004861_ACEOF
4862if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4863 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4864 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004865 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00004866 rm -f conftest.er1
4867 cat conftest.err >&5
4868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4869 (exit $ac_status); } >/dev/null; then
4870 if test -s conftest.err; then
4871 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2b51a082004-08-04 00:34:49 +00004872 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +00004873 else
John Criswell47fdd832003-07-14 16:52:07 +00004874 ac_cpp_err=
John Criswell7a73b802003-06-30 21:59:07 +00004875 fi
John Criswell47fdd832003-07-14 16:52:07 +00004876else
4877 ac_cpp_err=yes
4878fi
4879if test -z "$ac_cpp_err"; then
4880 :
4881else
4882 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004883sed 's/^/| /' conftest.$ac_ext >&5
4884
John Criswell47fdd832003-07-14 16:52:07 +00004885 # Broken: fails on valid input.
4886continue
4887fi
4888rm -f conftest.err conftest.$ac_ext
4889
4890 # OK, works on sane cases. Now check whether non-existent headers
4891 # can be detected and how.
4892 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004893/* confdefs.h. */
4894_ACEOF
4895cat confdefs.h >>conftest.$ac_ext
4896cat >>conftest.$ac_ext <<_ACEOF
4897/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00004898#include <ac_nonexistent.h>
4899_ACEOF
4900if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4901 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4902 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004903 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00004904 rm -f conftest.er1
4905 cat conftest.err >&5
4906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4907 (exit $ac_status); } >/dev/null; then
4908 if test -s conftest.err; then
4909 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2b51a082004-08-04 00:34:49 +00004910 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +00004911 else
4912 ac_cpp_err=
4913 fi
4914else
4915 ac_cpp_err=yes
4916fi
4917if test -z "$ac_cpp_err"; then
4918 # Broken: success on invalid input.
4919continue
4920else
4921 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004922sed 's/^/| /' conftest.$ac_ext >&5
4923
John Criswell47fdd832003-07-14 16:52:07 +00004924 # Passes both tests.
4925ac_preproc_ok=:
4926break
4927fi
4928rm -f conftest.err conftest.$ac_ext
4929
4930done
4931# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4932rm -f conftest.err conftest.$ac_ext
4933if $ac_preproc_ok; then
4934 break
John Criswell7a73b802003-06-30 21:59:07 +00004935fi
4936
John Criswell47fdd832003-07-14 16:52:07 +00004937 done
4938 ac_cv_prog_CXXCPP=$CXXCPP
4939
4940fi
4941 CXXCPP=$ac_cv_prog_CXXCPP
4942else
4943 ac_cv_prog_CXXCPP=$CXXCPP
4944fi
4945echo "$as_me:$LINENO: result: $CXXCPP" >&5
4946echo "${ECHO_T}$CXXCPP" >&6
4947ac_preproc_ok=false
4948for ac_cxx_preproc_warn_flag in '' yes
4949do
4950 # Use a header file that comes with gcc, so configuring glibc
4951 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00004952 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4953 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +00004954 # On the NeXT, cc -E runs the code through the compiler's parser,
4955 # not just through cpp. "Syntax error" is here to catch this case.
4956 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004957/* confdefs.h. */
4958_ACEOF
4959cat confdefs.h >>conftest.$ac_ext
4960cat >>conftest.$ac_ext <<_ACEOF
4961/* end confdefs.h. */
4962#ifdef __STDC__
4963# include <limits.h>
4964#else
4965# include <assert.h>
4966#endif
Reid Spencer2b51a082004-08-04 00:34:49 +00004967 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +00004968_ACEOF
4969if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4970 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4971 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004972 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00004973 rm -f conftest.er1
4974 cat conftest.err >&5
4975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4976 (exit $ac_status); } >/dev/null; then
4977 if test -s conftest.err; then
4978 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2b51a082004-08-04 00:34:49 +00004979 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +00004980 else
4981 ac_cpp_err=
4982 fi
4983else
4984 ac_cpp_err=yes
4985fi
4986if test -z "$ac_cpp_err"; then
4987 :
4988else
4989 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004990sed 's/^/| /' conftest.$ac_ext >&5
4991
John Criswell47fdd832003-07-14 16:52:07 +00004992 # Broken: fails on valid input.
4993continue
4994fi
4995rm -f conftest.err conftest.$ac_ext
4996
4997 # OK, works on sane cases. Now check whether non-existent headers
4998 # can be detected and how.
4999 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00005000/* confdefs.h. */
5001_ACEOF
5002cat confdefs.h >>conftest.$ac_ext
5003cat >>conftest.$ac_ext <<_ACEOF
5004/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00005005#include <ac_nonexistent.h>
5006_ACEOF
5007if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5008 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5009 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00005010 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00005011 rm -f conftest.er1
5012 cat conftest.err >&5
5013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5014 (exit $ac_status); } >/dev/null; then
5015 if test -s conftest.err; then
5016 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2b51a082004-08-04 00:34:49 +00005017 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +00005018 else
5019 ac_cpp_err=
5020 fi
5021else
5022 ac_cpp_err=yes
5023fi
5024if test -z "$ac_cpp_err"; then
5025 # Broken: success on invalid input.
5026continue
5027else
5028 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005029sed 's/^/| /' conftest.$ac_ext >&5
5030
John Criswell47fdd832003-07-14 16:52:07 +00005031 # Passes both tests.
5032ac_preproc_ok=:
5033break
5034fi
5035rm -f conftest.err conftest.$ac_ext
5036
5037done
5038# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5039rm -f conftest.err conftest.$ac_ext
5040if $ac_preproc_ok; then
5041 :
5042else
John Criswell0c38eaf2003-09-10 15:17:25 +00005043 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5044See \`config.log' for more details." >&5
5045echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5046See \`config.log' for more details." >&2;}
John Criswell47fdd832003-07-14 16:52:07 +00005047 { (exit 1); exit 1; }; }
5048fi
5049
5050ac_ext=cc
5051ac_cpp='$CXXCPP $CPPFLAGS'
5052ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5053ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5054ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5055
5056
5057ac_ext=f
5058ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5059ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5060ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5061if test -n "$ac_tool_prefix"; then
Reid Spencer2b51a082004-08-04 00:34:49 +00005062 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 +00005063 do
5064 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5065set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5066echo "$as_me:$LINENO: checking for $ac_word" >&5
5067echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5068if test "${ac_cv_prog_F77+set}" = set; then
5069 echo $ECHO_N "(cached) $ECHO_C" >&6
5070else
5071 if test -n "$F77"; then
5072 ac_cv_prog_F77="$F77" # Let the user override the test.
5073else
5074as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5075for as_dir in $PATH
5076do
5077 IFS=$as_save_IFS
5078 test -z "$as_dir" && as_dir=.
5079 for ac_exec_ext in '' $ac_executable_extensions; do
5080 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5081 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5082 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5083 break 2
5084 fi
5085done
5086done
5087
5088fi
5089fi
5090F77=$ac_cv_prog_F77
5091if test -n "$F77"; then
5092 echo "$as_me:$LINENO: result: $F77" >&5
5093echo "${ECHO_T}$F77" >&6
5094else
5095 echo "$as_me:$LINENO: result: no" >&5
5096echo "${ECHO_T}no" >&6
5097fi
5098
5099 test -n "$F77" && break
5100 done
5101fi
5102if test -z "$F77"; then
5103 ac_ct_F77=$F77
Reid Spencer2b51a082004-08-04 00:34:49 +00005104 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 +00005105do
5106 # Extract the first word of "$ac_prog", so it can be a program name with args.
5107set dummy $ac_prog; ac_word=$2
5108echo "$as_me:$LINENO: checking for $ac_word" >&5
5109echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5110if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5111 echo $ECHO_N "(cached) $ECHO_C" >&6
5112else
5113 if test -n "$ac_ct_F77"; then
5114 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5115else
5116as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5117for as_dir in $PATH
5118do
5119 IFS=$as_save_IFS
5120 test -z "$as_dir" && as_dir=.
5121 for ac_exec_ext in '' $ac_executable_extensions; do
5122 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5123 ac_cv_prog_ac_ct_F77="$ac_prog"
5124 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5125 break 2
5126 fi
5127done
5128done
5129
5130fi
5131fi
5132ac_ct_F77=$ac_cv_prog_ac_ct_F77
5133if test -n "$ac_ct_F77"; then
5134 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5135echo "${ECHO_T}$ac_ct_F77" >&6
5136else
5137 echo "$as_me:$LINENO: result: no" >&5
5138echo "${ECHO_T}no" >&6
5139fi
5140
5141 test -n "$ac_ct_F77" && break
5142done
5143
5144 F77=$ac_ct_F77
5145fi
5146
5147
5148# Provide some information about the compiler.
Reid Spencer73fb5482004-08-31 14:20:36 +00005149echo "$as_me:5149:" \
John Criswell47fdd832003-07-14 16:52:07 +00005150 "checking for Fortran 77 compiler version" >&5
5151ac_compiler=`set X $ac_compile; echo $2`
5152{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5153 (eval $ac_compiler --version </dev/null >&5) 2>&5
5154 ac_status=$?
5155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5156 (exit $ac_status); }
5157{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5158 (eval $ac_compiler -v </dev/null >&5) 2>&5
5159 ac_status=$?
5160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5161 (exit $ac_status); }
5162{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5163 (eval $ac_compiler -V </dev/null >&5) 2>&5
5164 ac_status=$?
5165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5166 (exit $ac_status); }
Reid Spencer2b51a082004-08-04 00:34:49 +00005167rm -f a.out
John Criswell47fdd832003-07-14 16:52:07 +00005168
5169# If we don't use `.F' as extension, the preprocessor is not run on the
Reid Spencer2b51a082004-08-04 00:34:49 +00005170# input file. (Note that this only needs to work for GNU compilers.)
John Criswell47fdd832003-07-14 16:52:07 +00005171ac_save_ext=$ac_ext
5172ac_ext=F
5173echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5174echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5175if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5176 echo $ECHO_N "(cached) $ECHO_C" >&6
5177else
5178 cat >conftest.$ac_ext <<_ACEOF
5179 program main
5180#ifndef __GNUC__
5181 choke me
5182#endif
5183
5184 end
5185_ACEOF
5186rm -f conftest.$ac_objext
5187if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +00005188 (eval $ac_compile) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +00005189 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +00005190 grep -v '^ *+' conftest.er1 >conftest.err
5191 rm -f conftest.er1
5192 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +00005193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5194 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +00005195 { ac_try='test -z "$ac_f77_werror_flag"
5196 || test ! -s conftest.err'
5197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5198 (eval $ac_try) 2>&5
5199 ac_status=$?
5200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5201 (exit $ac_status); }; } &&
5202 { ac_try='test -s conftest.$ac_objext'
John Criswell47fdd832003-07-14 16:52:07 +00005203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5204 (eval $ac_try) 2>&5
5205 ac_status=$?
5206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5207 (exit $ac_status); }; }; then
5208 ac_compiler_gnu=yes
5209else
5210 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005211sed 's/^/| /' conftest.$ac_ext >&5
5212
John Criswell47fdd832003-07-14 16:52:07 +00005213ac_compiler_gnu=no
5214fi
Reid Spencer2b51a082004-08-04 00:34:49 +00005215rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +00005216ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5217
5218fi
5219echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5220echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5221ac_ext=$ac_save_ext
John Criswell47fdd832003-07-14 16:52:07 +00005222ac_test_FFLAGS=${FFLAGS+set}
5223ac_save_FFLAGS=$FFLAGS
5224FFLAGS=
5225echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5226echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5227if test "${ac_cv_prog_f77_g+set}" = set; then
5228 echo $ECHO_N "(cached) $ECHO_C" >&6
5229else
5230 FFLAGS=-g
5231cat >conftest.$ac_ext <<_ACEOF
5232 program main
5233
5234 end
5235_ACEOF
5236rm -f conftest.$ac_objext
5237if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +00005238 (eval $ac_compile) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +00005239 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +00005240 grep -v '^ *+' conftest.er1 >conftest.err
5241 rm -f conftest.er1
5242 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +00005243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5244 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +00005245 { ac_try='test -z "$ac_f77_werror_flag"
5246 || test ! -s conftest.err'
5247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5248 (eval $ac_try) 2>&5
5249 ac_status=$?
5250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5251 (exit $ac_status); }; } &&
5252 { ac_try='test -s conftest.$ac_objext'
John Criswell47fdd832003-07-14 16:52:07 +00005253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5254 (eval $ac_try) 2>&5
5255 ac_status=$?
5256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5257 (exit $ac_status); }; }; then
5258 ac_cv_prog_f77_g=yes
5259else
5260 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005261sed 's/^/| /' conftest.$ac_ext >&5
5262
John Criswell47fdd832003-07-14 16:52:07 +00005263ac_cv_prog_f77_g=no
5264fi
Reid Spencer2b51a082004-08-04 00:34:49 +00005265rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +00005266
5267fi
5268echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5269echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5270if test "$ac_test_FFLAGS" = set; then
5271 FFLAGS=$ac_save_FFLAGS
5272elif test $ac_cv_prog_f77_g = yes; then
Reid Spencer2b51a082004-08-04 00:34:49 +00005273 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +00005274 FFLAGS="-g -O2"
5275 else
5276 FFLAGS="-g"
5277 fi
5278else
Reid Spencer2b51a082004-08-04 00:34:49 +00005279 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +00005280 FFLAGS="-O2"
5281 else
5282 FFLAGS=
5283 fi
5284fi
Reid Spencer2b51a082004-08-04 00:34:49 +00005285
5286G77=`test $ac_compiler_gnu = yes && echo yes`
John Criswell47fdd832003-07-14 16:52:07 +00005287ac_ext=c
5288ac_cpp='$CPP $CPPFLAGS'
5289ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5290ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5291ac_compiler_gnu=$ac_cv_c_compiler_gnu
5292
5293
5294
5295# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5296
5297# find the maximum length of command line arguments
5298echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5299echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5300if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5301 echo $ECHO_N "(cached) $ECHO_C" >&6
5302else
5303 i=0
5304 testring="ABCD"
5305
5306 case $build_os in
5307 msdosdjgpp*)
5308 # On DJGPP, this test can blow up pretty badly due to problems in libc
5309 # (any single argument exceeding 2000 bytes causes a buffer overrun
5310 # during glob expansion). Even if it were fixed, the result of this
5311 # check would be larger than it should be.
5312 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5313 ;;
5314
5315 gnu*)
5316 # Under GNU Hurd, this test is not required because there is
5317 # no limit to the length of command line arguments.
5318 # Libtool will interpret -1 as no limit whatsoever
5319 lt_cv_sys_max_cmd_len=-1;
5320 ;;
5321
5322 cygwin* | mingw*)
5323 # On Win9x/ME, this test blows up -- it succeeds, but takes
5324 # about 5 minutes as the teststring grows exponentially.
5325 # Worse, since 9x/ME are not pre-emptively multitasking,
5326 # you end up with a "frozen" computer, even though with patience
5327 # the test eventually succeeds (with a max line length of 256k).
5328 # Instead, let's just punt: use the minimum linelength reported by
5329 # all of the supported platforms: 8192 (on NT/2K/XP).
5330 lt_cv_sys_max_cmd_len=8192;
5331 ;;
5332
5333 *)
5334 # If test is not a shell built-in, we'll probably end up computing a
5335 # maximum length that is only half of the actual maximum length, but
5336 # we can't tell.
5337 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5338 = "XX$testring") >/dev/null 2>&1 &&
5339 new_result=`expr "X$testring" : ".*" 2>&1` &&
5340 lt_cv_sys_max_cmd_len=$new_result &&
5341 test $i != 17 # 1/2 MB should be enough
5342 do
5343 i=`expr $i + 1`
5344 testring=$testring$testring
5345 done
5346 testring=
5347 # Add a significant safety factor because C++ compilers can tack on massive
5348 # amounts of additional arguments before passing them to the linker.
5349 # It appears as though 1/2 is a usable value.
5350 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5351 ;;
5352 esac
5353
5354fi
5355
5356if test -n $lt_cv_sys_max_cmd_len ; then
5357 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5358echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5359else
5360 echo "$as_me:$LINENO: result: none" >&5
5361echo "${ECHO_T}none" >&6
5362fi
5363
5364
5365
5366
5367# Check for command to grab the raw symbol name followed by C symbol from nm.
5368echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5369echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5370if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5371 echo $ECHO_N "(cached) $ECHO_C" >&6
5372else
5373
5374# These are sane defaults that work on at least a few old systems.
5375# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5376
5377# Character class describing NM global symbol codes.
5378symcode='[BCDEGRST]'
5379
5380# Regexp to match symbols that can be accessed directly from C.
5381sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5382
5383# Transform the above into a raw symbol and a C symbol.
5384symxfrm='\1 \2\3 \3'
5385
5386# Transform an extracted symbol line into a proper C declaration
5387lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5388
5389# Transform an extracted symbol line into symbol name and symbol address
5390lt_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'"
5391
5392# Define system-specific variables.
5393case $host_os in
5394aix*)
5395 symcode='[BCDT]'
5396 ;;
5397cygwin* | mingw* | pw32*)
5398 symcode='[ABCDGISTW]'
5399 ;;
5400hpux*) # Its linker distinguishes data from code symbols
5401 if test "$host_cpu" = ia64; then
5402 symcode='[ABCDEGRST]'
5403 fi
5404 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5405 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'"
5406 ;;
5407irix* | nonstopux*)
5408 symcode='[BCDEGRST]'
5409 ;;
5410osf*)
5411 symcode='[BCDEGQRST]'
5412 ;;
5413solaris* | sysv5*)
5414 symcode='[BDT]'
5415 ;;
5416sysv4)
5417 symcode='[DFNSTU]'
5418 ;;
5419esac
5420
5421# Handle CRLF in mingw tool chain
5422opt_cr=
5423case $build_os in
5424mingw*)
5425 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5426 ;;
5427esac
5428
5429# If we're using GNU nm, then use its standard symbol codes.
5430case `$NM -V 2>&1` in
5431*GNU* | *'with BFD'*)
5432 symcode='[ABCDGISTW]' ;;
5433esac
5434
5435# Try without a prefix undercore, then with it.
5436for ac_symprfx in "" "_"; do
5437
5438 # Write the raw and C identifiers.
5439 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5440
5441 # Check to see that the pipe works correctly.
5442 pipe_works=no
5443
5444 rm -f conftest*
5445 cat > conftest.$ac_ext <<EOF
5446#ifdef __cplusplus
5447extern "C" {
5448#endif
5449char nm_test_var;
5450void nm_test_func(){}
5451#ifdef __cplusplus
5452}
5453#endif
5454int main(){nm_test_var='a';nm_test_func();return(0);}
5455EOF
5456
5457 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5458 (eval $ac_compile) 2>&5
5459 ac_status=$?
5460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5461 (exit $ac_status); }; then
5462 # Now try to grab the symbols.
5463 nlist=conftest.nm
5464 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5465 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5466 ac_status=$?
5467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5468 (exit $ac_status); } && test -s "$nlist"; then
5469 # Try sorting and uniquifying the output.
5470 if sort "$nlist" | uniq > "$nlist"T; then
5471 mv -f "$nlist"T "$nlist"
5472 else
5473 rm -f "$nlist"T
5474 fi
5475
5476 # Make sure that we snagged all the symbols we need.
5477 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5478 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5479 cat <<EOF > conftest.$ac_ext
5480#ifdef __cplusplus
5481extern "C" {
5482#endif
5483
5484EOF
5485 # Now generate the symbol file.
5486 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5487
5488 cat <<EOF >> conftest.$ac_ext
5489#if defined (__STDC__) && __STDC__
5490# define lt_ptr_t void *
5491#else
5492# define lt_ptr_t char *
5493# define const
5494#endif
5495
5496/* The mapping between symbol names and symbols. */
5497const struct {
5498 const char *name;
5499 lt_ptr_t address;
5500}
5501lt_preloaded_symbols[] =
5502{
5503EOF
5504 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5505 cat <<\EOF >> conftest.$ac_ext
5506 {0, (lt_ptr_t) 0}
5507};
5508
5509#ifdef __cplusplus
5510}
5511#endif
5512EOF
5513 # Now try linking the two files.
5514 mv conftest.$ac_objext conftstm.$ac_objext
5515 lt_save_LIBS="$LIBS"
5516 lt_save_CFLAGS="$CFLAGS"
5517 LIBS="conftstm.$ac_objext"
5518 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5519 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5520 (eval $ac_link) 2>&5
5521 ac_status=$?
5522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5523 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5524 pipe_works=yes
5525 fi
5526 LIBS="$lt_save_LIBS"
5527 CFLAGS="$lt_save_CFLAGS"
5528 else
5529 echo "cannot find nm_test_func in $nlist" >&5
5530 fi
5531 else
5532 echo "cannot find nm_test_var in $nlist" >&5
5533 fi
5534 else
5535 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5536 fi
5537 else
5538 echo "$progname: failed program was:" >&5
5539 cat conftest.$ac_ext >&5
5540 fi
5541 rm -f conftest* conftst*
5542
5543 # Do not use the global_symbol_pipe unless it works.
5544 if test "$pipe_works" = yes; then
5545 break
5546 else
5547 lt_cv_sys_global_symbol_pipe=
5548 fi
5549done
5550
5551fi
5552
5553if test -z "$lt_cv_sys_global_symbol_pipe"; then
5554 lt_cv_sys_global_symbol_to_cdecl=
5555fi
5556if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5557 echo "$as_me:$LINENO: result: failed" >&5
5558echo "${ECHO_T}failed" >&6
5559else
5560 echo "$as_me:$LINENO: result: ok" >&5
5561echo "${ECHO_T}ok" >&6
5562fi
5563
5564echo "$as_me:$LINENO: checking for objdir" >&5
5565echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5566if test "${lt_cv_objdir+set}" = set; then
5567 echo $ECHO_N "(cached) $ECHO_C" >&6
5568else
5569 rm -f .libs 2>/dev/null
5570mkdir .libs 2>/dev/null
5571if test -d .libs; then
5572 lt_cv_objdir=.libs
5573else
5574 # MS-DOS does not allow filenames that begin with a dot.
5575 lt_cv_objdir=_libs
5576fi
5577rmdir .libs 2>/dev/null
5578fi
5579echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5580echo "${ECHO_T}$lt_cv_objdir" >&6
5581objdir=$lt_cv_objdir
5582
5583
5584
5585
5586
5587case $host_os in
5588aix3*)
5589 # AIX sometimes has problems with the GCC collect2 program. For some
5590 # reason, if we set the COLLECT_NAMES environment variable, the problems
5591 # vanish in a puff of smoke.
5592 if test "X${COLLECT_NAMES+set}" != Xset; then
5593 COLLECT_NAMES=
5594 export COLLECT_NAMES
John Criswell7a73b802003-06-30 21:59:07 +00005595 fi
5596 ;;
5597esac
5598
John Criswell47fdd832003-07-14 16:52:07 +00005599# Sed substitution that helps us do robust quoting. It backslashifies
5600# metacharacters that are still active within double-quoted strings.
5601Xsed='sed -e s/^X//'
5602sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5603
5604# Same as above, but do not quote variable references.
5605double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5606
5607# Sed substitution to delay expansion of an escaped shell variable in a
5608# double_quote_subst'ed string.
5609delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5610
5611# Sed substitution to avoid accidental globbing in evaled expressions
5612no_glob_subst='s/\*/\\\*/g'
5613
5614# Constants:
5615rm="rm -f"
5616
5617# Global variables:
John Criswell8d4221e2003-07-23 16:52:50 +00005618default_ofile=mklib
John Criswell47fdd832003-07-14 16:52:07 +00005619can_build_shared=yes
5620
5621# All known linkers require a `.a' archive for static linking (except M$VC,
5622# which needs '.lib').
5623libext=a
5624ltmain="$ac_aux_dir/ltmain.sh"
5625ofile="$default_ofile"
5626with_gnu_ld="$lt_cv_prog_gnu_ld"
5627
5628if test -n "$ac_tool_prefix"; then
5629 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5630set dummy ${ac_tool_prefix}ar; ac_word=$2
5631echo "$as_me:$LINENO: checking for $ac_word" >&5
5632echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5633if test "${ac_cv_prog_AR+set}" = set; then
5634 echo $ECHO_N "(cached) $ECHO_C" >&6
5635else
5636 if test -n "$AR"; then
5637 ac_cv_prog_AR="$AR" # Let the user override the test.
5638else
5639as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5640for as_dir in $PATH
5641do
5642 IFS=$as_save_IFS
5643 test -z "$as_dir" && as_dir=.
5644 for ac_exec_ext in '' $ac_executable_extensions; do
5645 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5646 ac_cv_prog_AR="${ac_tool_prefix}ar"
5647 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5648 break 2
5649 fi
5650done
5651done
5652
5653fi
5654fi
5655AR=$ac_cv_prog_AR
5656if test -n "$AR"; then
5657 echo "$as_me:$LINENO: result: $AR" >&5
5658echo "${ECHO_T}$AR" >&6
5659else
5660 echo "$as_me:$LINENO: result: no" >&5
5661echo "${ECHO_T}no" >&6
5662fi
5663
5664fi
5665if test -z "$ac_cv_prog_AR"; then
5666 ac_ct_AR=$AR
5667 # Extract the first word of "ar", so it can be a program name with args.
5668set dummy ar; ac_word=$2
5669echo "$as_me:$LINENO: checking for $ac_word" >&5
5670echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5671if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5672 echo $ECHO_N "(cached) $ECHO_C" >&6
5673else
5674 if test -n "$ac_ct_AR"; then
5675 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5676else
5677as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5678for as_dir in $PATH
5679do
5680 IFS=$as_save_IFS
5681 test -z "$as_dir" && as_dir=.
5682 for ac_exec_ext in '' $ac_executable_extensions; do
5683 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5684 ac_cv_prog_ac_ct_AR="ar"
5685 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5686 break 2
5687 fi
5688done
5689done
5690
5691 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5692fi
5693fi
5694ac_ct_AR=$ac_cv_prog_ac_ct_AR
5695if test -n "$ac_ct_AR"; then
5696 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5697echo "${ECHO_T}$ac_ct_AR" >&6
5698else
5699 echo "$as_me:$LINENO: result: no" >&5
5700echo "${ECHO_T}no" >&6
5701fi
5702
5703 AR=$ac_ct_AR
5704else
5705 AR="$ac_cv_prog_AR"
5706fi
5707
John Criswell7a73b802003-06-30 21:59:07 +00005708if test -n "$ac_tool_prefix"; then
5709 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5710set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5711echo "$as_me:$LINENO: checking for $ac_word" >&5
5712echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5713if test "${ac_cv_prog_RANLIB+set}" = set; then
5714 echo $ECHO_N "(cached) $ECHO_C" >&6
5715else
5716 if test -n "$RANLIB"; then
5717 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5718else
5719as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5720for as_dir in $PATH
5721do
5722 IFS=$as_save_IFS
5723 test -z "$as_dir" && as_dir=.
5724 for ac_exec_ext in '' $ac_executable_extensions; do
5725 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5726 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5727 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5728 break 2
5729 fi
5730done
5731done
5732
5733fi
5734fi
5735RANLIB=$ac_cv_prog_RANLIB
5736if test -n "$RANLIB"; then
5737 echo "$as_me:$LINENO: result: $RANLIB" >&5
5738echo "${ECHO_T}$RANLIB" >&6
5739else
5740 echo "$as_me:$LINENO: result: no" >&5
5741echo "${ECHO_T}no" >&6
5742fi
5743
5744fi
5745if test -z "$ac_cv_prog_RANLIB"; then
5746 ac_ct_RANLIB=$RANLIB
5747 # Extract the first word of "ranlib", so it can be a program name with args.
5748set dummy ranlib; ac_word=$2
5749echo "$as_me:$LINENO: checking for $ac_word" >&5
5750echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5751if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5752 echo $ECHO_N "(cached) $ECHO_C" >&6
5753else
5754 if test -n "$ac_ct_RANLIB"; then
5755 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5756else
5757as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5758for as_dir in $PATH
5759do
5760 IFS=$as_save_IFS
5761 test -z "$as_dir" && as_dir=.
5762 for ac_exec_ext in '' $ac_executable_extensions; do
5763 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5764 ac_cv_prog_ac_ct_RANLIB="ranlib"
5765 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5766 break 2
5767 fi
5768done
5769done
5770
5771 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5772fi
5773fi
5774ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5775if test -n "$ac_ct_RANLIB"; then
5776 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5777echo "${ECHO_T}$ac_ct_RANLIB" >&6
5778else
5779 echo "$as_me:$LINENO: result: no" >&5
5780echo "${ECHO_T}no" >&6
5781fi
5782
5783 RANLIB=$ac_ct_RANLIB
5784else
5785 RANLIB="$ac_cv_prog_RANLIB"
5786fi
5787
5788if test -n "$ac_tool_prefix"; then
5789 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5790set dummy ${ac_tool_prefix}strip; ac_word=$2
5791echo "$as_me:$LINENO: checking for $ac_word" >&5
5792echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5793if test "${ac_cv_prog_STRIP+set}" = set; then
5794 echo $ECHO_N "(cached) $ECHO_C" >&6
5795else
5796 if test -n "$STRIP"; then
5797 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5798else
5799as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5800for as_dir in $PATH
5801do
5802 IFS=$as_save_IFS
5803 test -z "$as_dir" && as_dir=.
5804 for ac_exec_ext in '' $ac_executable_extensions; do
5805 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5806 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5807 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5808 break 2
5809 fi
5810done
5811done
5812
5813fi
5814fi
5815STRIP=$ac_cv_prog_STRIP
5816if test -n "$STRIP"; then
5817 echo "$as_me:$LINENO: result: $STRIP" >&5
5818echo "${ECHO_T}$STRIP" >&6
5819else
5820 echo "$as_me:$LINENO: result: no" >&5
5821echo "${ECHO_T}no" >&6
5822fi
5823
5824fi
5825if test -z "$ac_cv_prog_STRIP"; then
5826 ac_ct_STRIP=$STRIP
5827 # Extract the first word of "strip", so it can be a program name with args.
5828set dummy strip; ac_word=$2
5829echo "$as_me:$LINENO: checking for $ac_word" >&5
5830echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5831if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5832 echo $ECHO_N "(cached) $ECHO_C" >&6
5833else
5834 if test -n "$ac_ct_STRIP"; then
5835 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5836else
5837as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5838for as_dir in $PATH
5839do
5840 IFS=$as_save_IFS
5841 test -z "$as_dir" && as_dir=.
5842 for ac_exec_ext in '' $ac_executable_extensions; do
5843 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5844 ac_cv_prog_ac_ct_STRIP="strip"
5845 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5846 break 2
5847 fi
5848done
5849done
5850
5851 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5852fi
5853fi
5854ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5855if test -n "$ac_ct_STRIP"; then
5856 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5857echo "${ECHO_T}$ac_ct_STRIP" >&6
5858else
5859 echo "$as_me:$LINENO: result: no" >&5
5860echo "${ECHO_T}no" >&6
5861fi
5862
5863 STRIP=$ac_ct_STRIP
5864else
5865 STRIP="$ac_cv_prog_STRIP"
5866fi
5867
5868
John Criswell7a73b802003-06-30 21:59:07 +00005869old_CC="$CC"
5870old_CFLAGS="$CFLAGS"
5871
5872# Set sane defaults for various variables
5873test -z "$AR" && AR=ar
5874test -z "$AR_FLAGS" && AR_FLAGS=cru
5875test -z "$AS" && AS=as
5876test -z "$CC" && CC=cc
John Criswell47fdd832003-07-14 16:52:07 +00005877test -z "$LTCC" && LTCC=$CC
John Criswell7a73b802003-06-30 21:59:07 +00005878test -z "$DLLTOOL" && DLLTOOL=dlltool
5879test -z "$LD" && LD=ld
5880test -z "$LN_S" && LN_S="ln -s"
5881test -z "$MAGIC_CMD" && MAGIC_CMD=file
5882test -z "$NM" && NM=nm
John Criswell47fdd832003-07-14 16:52:07 +00005883test -z "$SED" && SED=sed
John Criswell7a73b802003-06-30 21:59:07 +00005884test -z "$OBJDUMP" && OBJDUMP=objdump
5885test -z "$RANLIB" && RANLIB=:
5886test -z "$STRIP" && STRIP=:
5887test -z "$ac_objext" && ac_objext=o
5888
John Criswell7a73b802003-06-30 21:59:07 +00005889# Determine commands to create old-style static archives.
5890old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5891old_postinstall_cmds='chmod 644 $oldlib'
5892old_postuninstall_cmds=
5893
5894if test -n "$RANLIB"; then
5895 case $host_os in
5896 openbsd*)
5897 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5898 ;;
5899 *)
5900 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5901 ;;
5902 esac
5903 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5904fi
5905
John Criswell47fdd832003-07-14 16:52:07 +00005906# Only perform the check for file, if the check method requires it
5907case $deplibs_check_method in
5908file_magic*)
5909 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5910 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5911echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5912if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5913 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00005914else
John Criswell47fdd832003-07-14 16:52:07 +00005915 case $MAGIC_CMD in
5916[\\/*] | ?:[\\/]*)
5917 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5918 ;;
5919*)
5920 lt_save_MAGIC_CMD="$MAGIC_CMD"
5921 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5922 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5923 for ac_dir in $ac_dummy; do
5924 IFS="$lt_save_ifs"
5925 test -z "$ac_dir" && ac_dir=.
5926 if test -f $ac_dir/${ac_tool_prefix}file; then
5927 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5928 if test -n "$file_magic_test_file"; then
5929 case $deplibs_check_method in
5930 "file_magic "*)
5931 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5932 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5933 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5934 $EGREP "$file_magic_regex" > /dev/null; then
5935 :
5936 else
5937 cat <<EOF 1>&2
5938
5939*** Warning: the command libtool uses to detect shared libraries,
5940*** $file_magic_cmd, produces output that libtool cannot recognize.
5941*** The result is that libtool may fail to recognize shared libraries
5942*** as such. This will affect the creation of libtool libraries that
5943*** depend on shared libraries, but programs linked with such libtool
5944*** libraries will work regardless of this problem. Nevertheless, you
5945*** may want to report the problem to your system manager and/or to
5946*** bug-libtool@gnu.org
5947
5948EOF
5949 fi ;;
5950 esac
5951 fi
5952 break
5953 fi
5954 done
5955 IFS="$lt_save_ifs"
5956 MAGIC_CMD="$lt_save_MAGIC_CMD"
5957 ;;
5958esac
John Criswell7a73b802003-06-30 21:59:07 +00005959fi
John Criswell7a73b802003-06-30 21:59:07 +00005960
John Criswell47fdd832003-07-14 16:52:07 +00005961MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5962if test -n "$MAGIC_CMD"; then
5963 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5964echo "${ECHO_T}$MAGIC_CMD" >&6
5965else
5966 echo "$as_me:$LINENO: result: no" >&5
5967echo "${ECHO_T}no" >&6
5968fi
John Criswell7a73b802003-06-30 21:59:07 +00005969
John Criswell47fdd832003-07-14 16:52:07 +00005970if test -z "$lt_cv_path_MAGIC_CMD"; then
5971 if test -n "$ac_tool_prefix"; then
5972 echo "$as_me:$LINENO: checking for file" >&5
5973echo $ECHO_N "checking for file... $ECHO_C" >&6
5974if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5975 echo $ECHO_N "(cached) $ECHO_C" >&6
5976else
5977 case $MAGIC_CMD in
5978[\\/*] | ?:[\\/]*)
5979 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5980 ;;
5981*)
5982 lt_save_MAGIC_CMD="$MAGIC_CMD"
5983 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5984 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5985 for ac_dir in $ac_dummy; do
5986 IFS="$lt_save_ifs"
5987 test -z "$ac_dir" && ac_dir=.
5988 if test -f $ac_dir/file; then
5989 lt_cv_path_MAGIC_CMD="$ac_dir/file"
5990 if test -n "$file_magic_test_file"; then
5991 case $deplibs_check_method in
5992 "file_magic "*)
5993 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5994 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5995 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5996 $EGREP "$file_magic_regex" > /dev/null; then
5997 :
5998 else
5999 cat <<EOF 1>&2
6000
6001*** Warning: the command libtool uses to detect shared libraries,
6002*** $file_magic_cmd, produces output that libtool cannot recognize.
6003*** The result is that libtool may fail to recognize shared libraries
6004*** as such. This will affect the creation of libtool libraries that
6005*** depend on shared libraries, but programs linked with such libtool
6006*** libraries will work regardless of this problem. Nevertheless, you
6007*** may want to report the problem to your system manager and/or to
6008*** bug-libtool@gnu.org
6009
6010EOF
6011 fi ;;
6012 esac
6013 fi
6014 break
6015 fi
6016 done
6017 IFS="$lt_save_ifs"
6018 MAGIC_CMD="$lt_save_MAGIC_CMD"
6019 ;;
6020esac
6021fi
6022
6023MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6024if test -n "$MAGIC_CMD"; then
6025 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6026echo "${ECHO_T}$MAGIC_CMD" >&6
6027else
6028 echo "$as_me:$LINENO: result: no" >&5
6029echo "${ECHO_T}no" >&6
6030fi
6031
6032 else
6033 MAGIC_CMD=:
6034 fi
6035fi
6036
6037 fi
6038 ;;
6039esac
6040
6041enable_dlopen=no
6042enable_win32_dll=no
6043
6044# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6045if test "${enable_libtool_lock+set}" = set; then
6046 enableval="$enable_libtool_lock"
6047
6048fi;
6049test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6050
John Criswell7a73b802003-06-30 21:59:07 +00006051
6052# Check whether --with-pic or --without-pic was given.
6053if test "${with_pic+set}" = set; then
6054 withval="$with_pic"
6055 pic_mode="$withval"
6056else
6057 pic_mode=default
6058fi;
6059test -z "$pic_mode" && pic_mode=default
6060
John Criswell47fdd832003-07-14 16:52:07 +00006061# Use C for the default configuration in the libtool script
6062tagname=
6063lt_save_CC="$CC"
6064ac_ext=c
6065ac_cpp='$CPP $CPPFLAGS'
6066ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6067ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6068ac_compiler_gnu=$ac_cv_c_compiler_gnu
6069
6070
6071# Source file extension for C test sources.
6072ac_ext=c
6073
6074# Object file extension for compiled C test sources.
6075objext=o
6076objext=$objext
6077
6078# Code to be used in simple compile tests
6079lt_simple_compile_test_code="int some_variable = 0;\n"
6080
6081# Code to be used in simple link tests
6082lt_simple_link_test_code='int main(){return(0);}\n'
6083
6084
6085# If no C compiler was specified, use CC.
6086LTCC=${LTCC-"$CC"}
6087
6088# Allow CC to be a program name with arguments.
6089compiler=$CC
6090
6091
6092#
6093# Check for any special shared library compilation flags.
6094#
6095lt_prog_cc_shlib=
6096if test "$GCC" = no; then
6097 case $host_os in
6098 sco3.2v5*)
6099 lt_prog_cc_shlib='-belf'
6100 ;;
6101 esac
6102fi
6103if test -n "$lt_prog_cc_shlib"; then
6104 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6105echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6106 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
6107 else
6108 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6109echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6110 lt_cv_prog_cc_can_build_shared=no
6111 fi
6112fi
6113
6114
6115#
6116# Check to make sure the static flag actually works.
6117#
6118echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6119echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6120if test "${lt_prog_compiler_static_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00006121 echo $ECHO_N "(cached) $ECHO_C" >&6
6122else
John Criswell47fdd832003-07-14 16:52:07 +00006123 lt_prog_compiler_static_works=no
6124 save_LDFLAGS="$LDFLAGS"
6125 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6126 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6127 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6128 # The compiler can only warn and ignore the option if not recognized
6129 # So say no if there are warnings
6130 if test -s conftest.err; then
6131 # Append any errors to the config.log.
6132 cat conftest.err 1>&5
6133 else
6134 lt_prog_compiler_static_works=yes
6135 fi
6136 fi
6137 $rm conftest*
6138 LDFLAGS="$save_LDFLAGS"
6139
6140fi
6141echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6142echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6143
6144if test x"$lt_prog_compiler_static_works" = xyes; then
6145 :
6146else
6147 lt_prog_compiler_static=
6148fi
6149
6150
6151
Reid Spencer2b51a082004-08-04 00:34:49 +00006152## CAVEAT EMPTOR:
6153## There is no encapsulation within the following macros, do not change
6154## the running order or otherwise move them around unless you know exactly
6155## what you are doing...
John Criswell47fdd832003-07-14 16:52:07 +00006156
6157lt_prog_compiler_no_builtin_flag=
6158
6159if test "$GCC" = yes; then
6160 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6161
6162 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6163echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6164if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6165 echo $ECHO_N "(cached) $ECHO_C" >&6
6166else
6167 lt_cv_prog_compiler_rtti_exceptions=no
6168 ac_outfile=conftest.$ac_objext
6169 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6170 lt_compiler_flag="-fno-rtti -fno-exceptions"
6171 # Insert the option either (1) after the last *FLAGS variable, or
6172 # (2) before a word containing "conftest.", or (3) at the end.
6173 # Note that $ac_compile itself does not contain backslashes and begins
6174 # with a dollar sign (not a hyphen), so the echo should work correctly.
6175 # The option is referenced via a variable to avoid confusing sed.
6176 lt_compile=`echo "$ac_compile" | $SED \
6177 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6178 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6179 -e 's:$: $lt_compiler_flag:'`
Reid Spencer73fb5482004-08-31 14:20:36 +00006180 (eval echo "\"\$as_me:6180: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +00006181 (eval "$lt_compile" 2>conftest.err)
6182 ac_status=$?
6183 cat conftest.err >&5
Reid Spencer73fb5482004-08-31 14:20:36 +00006184 echo "$as_me:6184: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00006185 if (exit $ac_status) && test -s "$ac_outfile"; then
6186 # The compiler can only warn and ignore the option if not recognized
6187 # So say no if there are warnings
6188 if test ! -s conftest.err; then
6189 lt_cv_prog_compiler_rtti_exceptions=yes
6190 fi
6191 fi
6192 $rm conftest*
6193
6194fi
6195echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6196echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6197
6198if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6199 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6200else
6201 :
6202fi
6203
6204fi
6205
6206lt_prog_compiler_wl=
6207lt_prog_compiler_pic=
6208lt_prog_compiler_static=
6209
6210echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6211echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006212
6213 if test "$GCC" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +00006214 lt_prog_compiler_wl='-Wl,'
6215 lt_prog_compiler_static='-static'
John Criswell7a73b802003-06-30 21:59:07 +00006216
6217 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00006218 aix*)
6219 # All AIX code is PIC.
6220 if test "$host_cpu" = ia64; then
6221 # AIX 5 now supports IA64 processor
6222 lt_prog_compiler_static='-Bstatic'
6223 fi
John Criswell7a73b802003-06-30 21:59:07 +00006224 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006225
John Criswell7a73b802003-06-30 21:59:07 +00006226 amigaos*)
6227 # FIXME: we need at least 68020 code to build shared libraries, but
6228 # adding the `-m68020' flag to GCC prevents building anything better,
6229 # like `-m68040'.
John Criswell47fdd832003-07-14 16:52:07 +00006230 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
John Criswell7a73b802003-06-30 21:59:07 +00006231 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006232
6233 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
John Criswell7a73b802003-06-30 21:59:07 +00006234 # PIC is the default for these OSes.
6235 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006236
6237 mingw* | pw32* | os2*)
6238 # This hack is so that the source file can tell whether it is being
6239 # built for inclusion in a dll (and should export symbols for example).
6240 lt_prog_compiler_pic='-DDLL_EXPORT'
6241 ;;
6242
John Criswell7a73b802003-06-30 21:59:07 +00006243 darwin* | rhapsody*)
6244 # PIC is the default on this platform
6245 # Common symbols not allowed in MH_DYLIB files
John Criswell47fdd832003-07-14 16:52:07 +00006246 lt_prog_compiler_pic='-fno-common'
John Criswell7a73b802003-06-30 21:59:07 +00006247 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006248
6249 msdosdjgpp*)
6250 # Just because we use GCC doesn't mean we suddenly get shared libraries
6251 # on systems that don't support them.
6252 lt_prog_compiler_can_build_shared=no
6253 enable_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00006254 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006255
John Criswell7a73b802003-06-30 21:59:07 +00006256 sysv4*MP*)
6257 if test -d /usr/nec; then
John Criswell47fdd832003-07-14 16:52:07 +00006258 lt_prog_compiler_pic=-Kconform_pic
John Criswell7a73b802003-06-30 21:59:07 +00006259 fi
6260 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006261
6262 hpux*)
6263 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6264 # not for PA HP-UX.
6265 case "$host_cpu" in
6266 hppa*64*|ia64*)
6267 # +Z the default
6268 ;;
6269 *)
6270 lt_prog_compiler_pic='-fPIC'
6271 ;;
6272 esac
6273 ;;
6274
John Criswell7a73b802003-06-30 21:59:07 +00006275 *)
John Criswell47fdd832003-07-14 16:52:07 +00006276 lt_prog_compiler_pic='-fPIC'
John Criswell7a73b802003-06-30 21:59:07 +00006277 ;;
6278 esac
6279 else
John Criswell47fdd832003-07-14 16:52:07 +00006280 # PORTME Check for flag to pass linker flags through the system compiler.
John Criswell7a73b802003-06-30 21:59:07 +00006281 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00006282 aix*)
6283 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +00006284 if test "$host_cpu" = ia64; then
6285 # AIX 5 now supports IA64 processor
John Criswell47fdd832003-07-14 16:52:07 +00006286 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006287 else
John Criswell47fdd832003-07-14 16:52:07 +00006288 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
John Criswell7a73b802003-06-30 21:59:07 +00006289 fi
6290 ;;
6291
John Criswell47fdd832003-07-14 16:52:07 +00006292 mingw* | pw32* | os2*)
6293 # This hack is so that the source file can tell whether it is being
6294 # built for inclusion in a dll (and should export symbols for example).
6295 lt_prog_compiler_pic='-DDLL_EXPORT'
6296 ;;
6297
John Criswell7a73b802003-06-30 21:59:07 +00006298 hpux9* | hpux10* | hpux11*)
John Criswell47fdd832003-07-14 16:52:07 +00006299 lt_prog_compiler_wl='-Wl,'
6300 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6301 # not for PA HP-UX.
6302 case "$host_cpu" in
6303 hppa*64*|ia64*)
6304 # +Z the default
6305 ;;
6306 *)
6307 lt_prog_compiler_pic='+Z'
6308 ;;
6309 esac
6310 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6311 lt_prog_compiler_static='${wl}-a ${wl}archive'
John Criswell7a73b802003-06-30 21:59:07 +00006312 ;;
6313
John Criswell47fdd832003-07-14 16:52:07 +00006314 irix5* | irix6* | nonstopux*)
6315 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +00006316 # PIC (with -KPIC) is the default.
John Criswell47fdd832003-07-14 16:52:07 +00006317 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +00006318 ;;
6319
6320 newsos6)
John Criswell47fdd832003-07-14 16:52:07 +00006321 lt_prog_compiler_pic='-KPIC'
6322 lt_prog_compiler_static='-Bstatic'
6323 ;;
6324
6325 linux*)
6326 case $CC in
6327 icc|ecc)
6328 lt_prog_compiler_wl='-Wl,'
6329 lt_prog_compiler_pic='-KPIC'
6330 lt_prog_compiler_static='-static'
6331 ;;
6332 ccc)
6333 lt_prog_compiler_wl='-Wl,'
6334 # All Alpha code is PIC.
6335 lt_prog_compiler_static='-non_shared'
6336 ;;
6337 esac
John Criswell7a73b802003-06-30 21:59:07 +00006338 ;;
6339
6340 osf3* | osf4* | osf5*)
John Criswell47fdd832003-07-14 16:52:07 +00006341 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +00006342 # All OSF/1 code is PIC.
John Criswell47fdd832003-07-14 16:52:07 +00006343 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +00006344 ;;
6345
6346 sco3.2v5*)
John Criswell47fdd832003-07-14 16:52:07 +00006347 lt_prog_compiler_pic='-Kpic'
6348 lt_prog_compiler_static='-dn'
John Criswell7a73b802003-06-30 21:59:07 +00006349 ;;
6350
6351 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +00006352 lt_prog_compiler_wl='-Wl,'
6353 lt_prog_compiler_pic='-KPIC'
6354 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006355 ;;
6356
6357 sunos4*)
John Criswell47fdd832003-07-14 16:52:07 +00006358 lt_prog_compiler_wl='-Qoption ld '
6359 lt_prog_compiler_pic='-PIC'
6360 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006361 ;;
6362
6363 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
John Criswell47fdd832003-07-14 16:52:07 +00006364 lt_prog_compiler_wl='-Wl,'
6365 lt_prog_compiler_pic='-KPIC'
6366 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006367 ;;
6368
6369 sysv4*MP*)
6370 if test -d /usr/nec ;then
John Criswell47fdd832003-07-14 16:52:07 +00006371 lt_prog_compiler_pic='-Kconform_pic'
6372 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006373 fi
6374 ;;
6375
John Criswell47fdd832003-07-14 16:52:07 +00006376 uts4*)
6377 lt_prog_compiler_pic='-pic'
6378 lt_prog_compiler_static='-Bstatic'
6379 ;;
6380
John Criswell7a73b802003-06-30 21:59:07 +00006381 *)
John Criswell47fdd832003-07-14 16:52:07 +00006382 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00006383 ;;
6384 esac
6385 fi
6386
John Criswell47fdd832003-07-14 16:52:07 +00006387echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6388echo "${ECHO_T}$lt_prog_compiler_pic" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006389
John Criswell47fdd832003-07-14 16:52:07 +00006390#
6391# Check to make sure the PIC flag actually works.
6392#
6393if test -n "$lt_prog_compiler_pic"; then
6394 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6395echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6396if test "${lt_prog_compiler_pic_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00006397 echo $ECHO_N "(cached) $ECHO_C" >&6
6398else
John Criswell47fdd832003-07-14 16:52:07 +00006399 lt_prog_compiler_pic_works=no
6400 ac_outfile=conftest.$ac_objext
6401 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6402 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6403 # Insert the option either (1) after the last *FLAGS variable, or
6404 # (2) before a word containing "conftest.", or (3) at the end.
6405 # Note that $ac_compile itself does not contain backslashes and begins
6406 # with a dollar sign (not a hyphen), so the echo should work correctly.
6407 # The option is referenced via a variable to avoid confusing sed.
6408 lt_compile=`echo "$ac_compile" | $SED \
6409 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6410 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6411 -e 's:$: $lt_compiler_flag:'`
Reid Spencer73fb5482004-08-31 14:20:36 +00006412 (eval echo "\"\$as_me:6412: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +00006413 (eval "$lt_compile" 2>conftest.err)
6414 ac_status=$?
6415 cat conftest.err >&5
Reid Spencer73fb5482004-08-31 14:20:36 +00006416 echo "$as_me:6416: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00006417 if (exit $ac_status) && test -s "$ac_outfile"; then
6418 # The compiler can only warn and ignore the option if not recognized
6419 # So say no if there are warnings
6420 if test ! -s conftest.err; then
6421 lt_prog_compiler_pic_works=yes
6422 fi
6423 fi
6424 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +00006425
John Criswell47fdd832003-07-14 16:52:07 +00006426fi
6427echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6428echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006429
John Criswell47fdd832003-07-14 16:52:07 +00006430if test x"$lt_prog_compiler_pic_works" = xyes; then
6431 case $lt_prog_compiler_pic in
6432 "" | " "*) ;;
6433 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6434 esac
John Criswell7a73b802003-06-30 21:59:07 +00006435else
John Criswell47fdd832003-07-14 16:52:07 +00006436 lt_prog_compiler_pic=
6437 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00006438fi
6439
John Criswell7a73b802003-06-30 21:59:07 +00006440fi
John Criswell47fdd832003-07-14 16:52:07 +00006441case "$host_os" in
6442 # For platforms which do not support PIC, -DPIC is meaningless:
6443 *djgpp*)
6444 lt_prog_compiler_pic=
6445 ;;
6446 *)
6447 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6448 ;;
6449esac
John Criswell7a73b802003-06-30 21:59:07 +00006450
John Criswell7a73b802003-06-30 21:59:07 +00006451echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6452echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
John Criswell47fdd832003-07-14 16:52:07 +00006453if test "${lt_cv_prog_compiler_c_o+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00006454 echo $ECHO_N "(cached) $ECHO_C" >&6
6455else
John Criswell47fdd832003-07-14 16:52:07 +00006456 lt_cv_prog_compiler_c_o=no
6457 $rm -r conftest 2>/dev/null
6458 mkdir conftest
6459 cd conftest
6460 mkdir out
6461 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00006462
John Criswell47fdd832003-07-14 16:52:07 +00006463 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
6464 # that will create temporary files in the current directory regardless of
6465 # the output directory. Thus, making CWD read-only will cause this test
6466 # to fail, enabling locking or at least warning the user not to do parallel
6467 # builds.
6468 chmod -w .
6469
6470 lt_compiler_flag="-o out/conftest2.$ac_objext"
6471 # Insert the option either (1) after the last *FLAGS variable, or
6472 # (2) before a word containing "conftest.", or (3) at the end.
6473 # Note that $ac_compile itself does not contain backslashes and begins
6474 # with a dollar sign (not a hyphen), so the echo should work correctly.
6475 lt_compile=`echo "$ac_compile" | $SED \
6476 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6477 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6478 -e 's:$: $lt_compiler_flag:'`
Reid Spencer73fb5482004-08-31 14:20:36 +00006479 (eval echo "\"\$as_me:6479: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +00006480 (eval "$lt_compile" 2>out/conftest.err)
6481 ac_status=$?
6482 cat out/conftest.err >&5
Reid Spencer73fb5482004-08-31 14:20:36 +00006483 echo "$as_me:6483: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00006484 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6485 then
6486 # The compiler can only warn and ignore the option if not recognized
6487 # So say no if there are warnings
6488 if test ! -s out/conftest.err; then
6489 lt_cv_prog_compiler_c_o=yes
6490 fi
6491 fi
6492 chmod u+w .
6493 $rm conftest* out/*
6494 rmdir out
6495 cd ..
6496 rmdir conftest
6497 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +00006498
6499fi
John Criswell47fdd832003-07-14 16:52:07 +00006500echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6501echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006502
John Criswell7a73b802003-06-30 21:59:07 +00006503
John Criswell7a73b802003-06-30 21:59:07 +00006504hard_links="nottested"
John Criswell47fdd832003-07-14 16:52:07 +00006505if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
John Criswell7a73b802003-06-30 21:59:07 +00006506 # do not overwrite the value of need_locks provided by the user
6507 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6508echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6509 hard_links=yes
6510 $rm conftest*
6511 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6512 touch conftest.a
6513 ln conftest.a conftest.b 2>&5 || hard_links=no
6514 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6515 echo "$as_me:$LINENO: result: $hard_links" >&5
6516echo "${ECHO_T}$hard_links" >&6
6517 if test "$hard_links" = no; then
6518 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6519echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6520 need_locks=warn
6521 fi
6522else
6523 need_locks=no
6524fi
John Criswell7a73b802003-06-30 21:59:07 +00006525
John Criswell47fdd832003-07-14 16:52:07 +00006526echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6527echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6528
6529 runpath_var=
6530 allow_undefined_flag=
6531 enable_shared_with_static_runtimes=no
6532 archive_cmds=
6533 archive_expsym_cmds=
6534 old_archive_From_new_cmds=
6535 old_archive_from_expsyms_cmds=
6536 export_dynamic_flag_spec=
6537 whole_archive_flag_spec=
6538 thread_safe_flag_spec=
6539 hardcode_libdir_flag_spec=
6540 hardcode_libdir_flag_spec_ld=
6541 hardcode_libdir_separator=
6542 hardcode_direct=no
6543 hardcode_minus_L=no
6544 hardcode_shlibpath_var=unsupported
6545 link_all_deplibs=unknown
6546 hardcode_automatic=no
6547 module_cmds=
6548 module_expsym_cmds=
6549 always_export_symbols=no
6550 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6551 # include_expsyms should be a list of space-separated symbols to be *always*
6552 # included in the symbol list
6553 include_expsyms=
6554 # exclude_expsyms can be an extended regexp of symbols to exclude
6555 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6556 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6557 # as well as any symbol that contains `d'.
6558 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6559 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6560 # platforms (ab)use it in PIC code, but their linkers get confused if
6561 # the symbol is explicitly referenced. Since portable code cannot
6562 # rely on this symbol name, it's probably fine to never include it in
6563 # preloaded symbol tables.
6564 extract_expsyms_cmds=
6565
6566 case $host_os in
6567 cygwin* | mingw* | pw32*)
6568 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6569 # When not using gcc, we currently assume that we are using
6570 # Microsoft Visual C++.
6571 if test "$GCC" != yes; then
6572 with_gnu_ld=no
6573 fi
6574 ;;
6575 openbsd*)
6576 with_gnu_ld=no
6577 ;;
6578 esac
6579
6580 ld_shlibs=yes
6581 if test "$with_gnu_ld" = yes; then
6582 # If archive_cmds runs LD, not CC, wlarc should be empty
6583 wlarc='${wl}'
6584
6585 # See if GNU ld supports shared libraries.
6586 case $host_os in
6587 aix3* | aix4* | aix5*)
6588 # On AIX/PPC, the GNU linker is very broken
6589 if test "$host_cpu" != ia64; then
6590 ld_shlibs=no
6591 cat <<EOF 1>&2
6592
6593*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6594*** to be unable to reliably create shared libraries on AIX.
6595*** Therefore, libtool is disabling shared libraries support. If you
6596*** really care for shared libraries, you may want to modify your PATH
6597*** so that a non-GNU linker is found, and then restart.
6598
6599EOF
6600 fi
6601 ;;
6602
6603 amigaos*)
6604 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)'
6605 hardcode_libdir_flag_spec='-L$libdir'
6606 hardcode_minus_L=yes
6607
6608 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6609 # that the semantics of dynamic libraries on AmigaOS, at least up
6610 # to version 4, is to share data among multiple programs linked
6611 # with the same dynamic library. Since this doesn't match the
6612 # behavior of shared libraries on other platforms, we can't use
6613 # them.
6614 ld_shlibs=no
6615 ;;
6616
6617 beos*)
6618 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6619 allow_undefined_flag=unsupported
6620 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6621 # support --undefined. This deserves some investigation. FIXME
6622 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6623 else
6624 ld_shlibs=no
6625 fi
6626 ;;
6627
6628 cygwin* | mingw* | pw32*)
6629 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6630 # as there is no search path for DLLs.
6631 hardcode_libdir_flag_spec='-L$libdir'
6632 allow_undefined_flag=unsupported
6633 always_export_symbols=no
6634 enable_shared_with_static_runtimes=yes
6635 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6636
6637 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6638 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6639 # If the export-symbols file already is a .def file (1st line
6640 # is EXPORTS), use it as is; otherwise, prepend...
6641 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6642 cp $export_symbols $output_objdir/$soname.def;
6643 else
6644 echo EXPORTS > $output_objdir/$soname.def;
6645 cat $export_symbols >> $output_objdir/$soname.def;
6646 fi~
6647 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6648 else
6649 ld_shlibs=no
6650 fi
6651 ;;
6652
6653 netbsd*)
6654 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6655 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6656 wlarc=
6657 else
6658 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6659 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6660 fi
6661 ;;
6662
6663 solaris* | sysv5*)
6664 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6665 ld_shlibs=no
6666 cat <<EOF 1>&2
6667
6668*** Warning: The releases 2.8.* of the GNU linker cannot reliably
6669*** create shared libraries on Solaris systems. Therefore, libtool
6670*** is disabling shared libraries support. We urge you to upgrade GNU
6671*** binutils to release 2.9.1 or newer. Another option is to modify
6672*** your PATH or compiler configuration so that the native linker is
6673*** used, and then restart.
6674
6675EOF
6676 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6677 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6678 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6679 else
6680 ld_shlibs=no
6681 fi
6682 ;;
6683
6684 sunos4*)
6685 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6686 wlarc=
6687 hardcode_direct=yes
6688 hardcode_shlibpath_var=no
6689 ;;
6690
6691 *)
6692 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6693 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6694 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6695 else
6696 ld_shlibs=no
6697 fi
6698 ;;
6699 esac
6700
6701 if test "$ld_shlibs" = yes; then
6702 runpath_var=LD_RUN_PATH
6703 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6704 export_dynamic_flag_spec='${wl}--export-dynamic'
6705 # ancient GNU ld didn't support --whole-archive et. al.
6706 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6707 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6708 else
6709 whole_archive_flag_spec=
6710 fi
6711 fi
6712 else
6713 # PORTME fill in a description of your system's linker (not GNU ld)
6714 case $host_os in
6715 aix3*)
6716 allow_undefined_flag=unsupported
6717 always_export_symbols=yes
6718 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'
6719 # Note: this linker hardcodes the directories in LIBPATH if there
6720 # are no directories specified by -L.
6721 hardcode_minus_L=yes
6722 if test "$GCC" = yes && test -z "$link_static_flag"; then
6723 # Neither direct hardcoding nor static linking is supported with a
6724 # broken collect2.
6725 hardcode_direct=unsupported
6726 fi
6727 ;;
6728
6729 aix4* | aix5*)
6730 if test "$host_cpu" = ia64; then
6731 # On IA64, the linker does run time linking by default, so we don't
6732 # have to do anything special.
6733 aix_use_runtimelinking=no
6734 exp_sym_flag='-Bexport'
6735 no_entry_flag=""
6736 else
6737 # If we're using GNU nm, then we don't want the "-C" option.
6738 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6739 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6740 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'
6741 else
6742 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'
6743 fi
6744 aix_use_runtimelinking=no
6745
6746 # Test if we are trying to use run time linking or normal
6747 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6748 # need to do runtime linking.
6749 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6750 for ld_flag in $LDFLAGS; do
6751 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6752 aix_use_runtimelinking=yes
6753 break
6754 fi
6755 done
6756 esac
6757
6758 exp_sym_flag='-bexport'
6759 no_entry_flag='-bnoentry'
6760 fi
6761
6762 # When large executables or shared objects are built, AIX ld can
6763 # have problems creating the table of contents. If linking a library
6764 # or program results in "error TOC overflow" add -mminimal-toc to
6765 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6766 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6767
6768 archive_cmds=''
6769 hardcode_direct=yes
6770 hardcode_libdir_separator=':'
6771 link_all_deplibs=yes
6772
6773 if test "$GCC" = yes; then
6774 case $host_os in aix4.012|aix4.012.*)
6775 # We only want to do this on AIX 4.2 and lower, the check
6776 # below for broken collect2 doesn't work under 4.3+
6777 collect2name=`${CC} -print-prog-name=collect2`
6778 if test -f "$collect2name" && \
6779 strings "$collect2name" | grep resolve_lib_name >/dev/null
6780 then
6781 # We have reworked collect2
6782 hardcode_direct=yes
6783 else
6784 # We have old collect2
6785 hardcode_direct=unsupported
6786 # It fails to find uninstalled libraries when the uninstalled
6787 # path is not listed in the libpath. Setting hardcode_minus_L
6788 # to unsupported forces relinking
6789 hardcode_minus_L=yes
6790 hardcode_libdir_flag_spec='-L$libdir'
6791 hardcode_libdir_separator=
6792 fi
6793 esac
6794 shared_flag='-shared'
6795 else
6796 # not using gcc
6797 if test "$host_cpu" = ia64; then
6798 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6799 # chokes on -Wl,-G. The following line is correct:
6800 shared_flag='-G'
6801 else
6802 if test "$aix_use_runtimelinking" = yes; then
6803 shared_flag='${wl}-G'
6804 else
6805 shared_flag='${wl}-bM:SRE'
6806 fi
6807 fi
6808 fi
6809
6810 # It seems that -bexpall does not export symbols beginning with
6811 # underscore (_), so it is better to generate a list of symbols to export.
6812 always_export_symbols=yes
6813 if test "$aix_use_runtimelinking" = yes; then
6814 # Warning - without using the other runtime loading flags (-brtl),
6815 # -berok will link without error, but may produce a broken library.
6816 allow_undefined_flag='-berok'
6817 # Determine the default libpath from the value encoded in an empty executable.
6818 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00006819/* confdefs.h. */
6820_ACEOF
6821cat confdefs.h >>conftest.$ac_ext
6822cat >>conftest.$ac_ext <<_ACEOF
6823/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006824
John Criswell7a73b802003-06-30 21:59:07 +00006825int
6826main ()
6827{
John Criswell47fdd832003-07-14 16:52:07 +00006828
John Criswell7a73b802003-06-30 21:59:07 +00006829 ;
6830 return 0;
6831}
6832_ACEOF
John Criswell47fdd832003-07-14 16:52:07 +00006833rm -f conftest.$ac_objext conftest$ac_exeext
6834if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +00006835 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00006836 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +00006837 grep -v '^ *+' conftest.er1 >conftest.err
6838 rm -f conftest.er1
6839 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00006840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6841 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +00006842 { ac_try='test -z "$ac_c_werror_flag"
6843 || test ! -s conftest.err'
6844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6845 (eval $ac_try) 2>&5
6846 ac_status=$?
6847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6848 (exit $ac_status); }; } &&
6849 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00006850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6851 (eval $ac_try) 2>&5
6852 ac_status=$?
6853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6854 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00006855
John Criswell47fdd832003-07-14 16:52:07 +00006856aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6857}'`
6858# Check for a 64-bit object if we didn't find anything.
6859if 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; }
6860}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +00006861else
6862 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006863sed 's/^/| /' conftest.$ac_ext >&5
6864
John Criswell7a73b802003-06-30 21:59:07 +00006865fi
Reid Spencer2b51a082004-08-04 00:34:49 +00006866rm -f conftest.err conftest.$ac_objext \
6867 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +00006868if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +00006869
John Criswell47fdd832003-07-14 16:52:07 +00006870 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6871 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"
6872 else
6873 if test "$host_cpu" = ia64; then
6874 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6875 allow_undefined_flag="-z nodefs"
6876 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"
6877 else
6878 # Determine the default libpath from the value encoded in an empty executable.
6879 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00006880/* confdefs.h. */
6881_ACEOF
6882cat confdefs.h >>conftest.$ac_ext
6883cat >>conftest.$ac_ext <<_ACEOF
6884/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006885
John Criswell47fdd832003-07-14 16:52:07 +00006886int
6887main ()
6888{
John Criswell7a73b802003-06-30 21:59:07 +00006889
John Criswell47fdd832003-07-14 16:52:07 +00006890 ;
6891 return 0;
6892}
6893_ACEOF
6894rm -f conftest.$ac_objext conftest$ac_exeext
6895if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +00006896 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +00006897 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +00006898 grep -v '^ *+' conftest.er1 >conftest.err
6899 rm -f conftest.er1
6900 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +00006901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6902 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +00006903 { ac_try='test -z "$ac_c_werror_flag"
6904 || test ! -s conftest.err'
6905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6906 (eval $ac_try) 2>&5
6907 ac_status=$?
6908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6909 (exit $ac_status); }; } &&
6910 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +00006911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6912 (eval $ac_try) 2>&5
6913 ac_status=$?
6914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6915 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00006916
John Criswell47fdd832003-07-14 16:52:07 +00006917aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6918}'`
6919# Check for a 64-bit object if we didn't find anything.
6920if 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; }
6921}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +00006922else
John Criswell47fdd832003-07-14 16:52:07 +00006923 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006924sed 's/^/| /' conftest.$ac_ext >&5
6925
John Criswell47fdd832003-07-14 16:52:07 +00006926fi
Reid Spencer2b51a082004-08-04 00:34:49 +00006927rm -f conftest.err conftest.$ac_objext \
6928 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +00006929if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +00006930
John Criswell47fdd832003-07-14 16:52:07 +00006931 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6932 # Warning - without using the other run time loading flags,
6933 # -berok will link without error, but may produce a broken library.
6934 no_undefined_flag=' ${wl}-bernotok'
6935 allow_undefined_flag=' ${wl}-berok'
6936 # -bexpall does not export symbols beginning with underscore (_)
6937 always_export_symbols=yes
6938 # Exported symbols can be pulled into shared objects from archives
6939 whole_archive_flag_spec=' '
6940 archive_cmds_need_lc=yes
6941 # This is similar to how AIX traditionally builds it's shared libraries.
6942 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 +00006943 fi
6944 fi
John Criswell7a73b802003-06-30 21:59:07 +00006945 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006946
6947 amigaos*)
6948 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)'
6949 hardcode_libdir_flag_spec='-L$libdir'
6950 hardcode_minus_L=yes
6951 # see comment about different semantics on the GNU ld section
6952 ld_shlibs=no
John Criswell7a73b802003-06-30 21:59:07 +00006953 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006954
John Criswell47fdd832003-07-14 16:52:07 +00006955 bsdi4*)
6956 export_dynamic_flag_spec=-rdynamic
6957 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006958
John Criswell47fdd832003-07-14 16:52:07 +00006959 cygwin* | mingw* | pw32*)
6960 # When not using gcc, we currently assume that we are using
6961 # Microsoft Visual C++.
6962 # hardcode_libdir_flag_spec is actually meaningless, as there is
6963 # no search path for DLLs.
6964 hardcode_libdir_flag_spec=' '
6965 allow_undefined_flag=unsupported
6966 # Tell ltmain to make .lib files, not .a files.
6967 libext=lib
6968 # Tell ltmain to make .dll files, not .so files.
6969 shrext=".dll"
6970 # FIXME: Setting linknames here is a bad hack.
6971 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
6972 # The linker will automatically build a .lib file if we build a DLL.
6973 old_archive_From_new_cmds='true'
6974 # FIXME: Should let the user specify the lib program.
6975 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6976 fix_srcfile_path='`cygpath -w "$srcfile"`'
6977 enable_shared_with_static_runtimes=yes
6978 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006979
John Criswell47fdd832003-07-14 16:52:07 +00006980 darwin* | rhapsody*)
6981 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
6982 archive_cmds_need_lc=no
John Criswell7a73b802003-06-30 21:59:07 +00006983 case "$host_os" in
John Criswell47fdd832003-07-14 16:52:07 +00006984 rhapsody* | darwin1.[012])
6985 allow_undefined_flag='-undefined suppress'
6986 ;;
6987 *) # Darwin 1.3 on
6988 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
John Criswell7a73b802003-06-30 21:59:07 +00006989 ;;
6990 esac
John Criswell47fdd832003-07-14 16:52:07 +00006991 # FIXME: Relying on posixy $() will cause problems for
6992 # cross-compilation, but unfortunately the echo tests do not
6993 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
6994 # `"' quotes if we put them in here... so don't!
6995 lt_int_apple_cc_single_mod=no
6996 output_verbose_link_cmd='echo'
6997 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
6998 lt_int_apple_cc_single_mod=yes
6999 fi
7000 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7001 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7002 else
7003 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'
7004 fi
7005 module_cmds='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
7006 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7007 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7008 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}'
7009 else
7010 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}'
7011 fi
7012 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}'
7013 hardcode_direct=no
7014 hardcode_automatic=yes
7015 hardcode_shlibpath_var=unsupported
7016 whole_archive_flag_spec='-all_load $convenience'
7017 link_all_deplibs=yes
John Criswell7a73b802003-06-30 21:59:07 +00007018 fi
John Criswell47fdd832003-07-14 16:52:07 +00007019 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007020
John Criswell47fdd832003-07-14 16:52:07 +00007021 dgux*)
John Criswell7a73b802003-06-30 21:59:07 +00007022 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
John Criswell47fdd832003-07-14 16:52:07 +00007023 hardcode_libdir_flag_spec='-L$libdir'
7024 hardcode_shlibpath_var=no
7025 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007026
John Criswell47fdd832003-07-14 16:52:07 +00007027 freebsd1*)
7028 ld_shlibs=no
7029 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007030
John Criswell47fdd832003-07-14 16:52:07 +00007031 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7032 # support. Future versions do this automatically, but an explicit c++rt0.o
7033 # does not break anything, and helps significantly (at the cost of a little
7034 # extra space).
7035 freebsd2.2*)
7036 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7037 hardcode_libdir_flag_spec='-R$libdir'
7038 hardcode_direct=yes
7039 hardcode_shlibpath_var=no
7040 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007041
John Criswell47fdd832003-07-14 16:52:07 +00007042 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7043 freebsd2*)
7044 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7045 hardcode_direct=yes
7046 hardcode_minus_L=yes
7047 hardcode_shlibpath_var=no
7048 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007049
John Criswell47fdd832003-07-14 16:52:07 +00007050 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7051 freebsd*)
7052 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7053 hardcode_libdir_flag_spec='-R$libdir'
7054 hardcode_direct=yes
7055 hardcode_shlibpath_var=no
7056 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007057
John Criswell47fdd832003-07-14 16:52:07 +00007058 hpux9*)
7059 if test "$GCC" = yes; then
7060 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'
7061 else
7062 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'
7063 fi
7064 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7065 hardcode_libdir_separator=:
7066 hardcode_direct=yes
7067
7068 # hardcode_minus_L: Not really in the search PATH,
7069 # but as the default location of the library.
7070 hardcode_minus_L=yes
7071 export_dynamic_flag_spec='${wl}-E'
7072 ;;
7073
7074 hpux10* | hpux11*)
7075 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7076 case "$host_cpu" in
7077 hppa*64*|ia64*)
7078 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7079 ;;
7080 *)
7081 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7082 ;;
7083 esac
7084 else
7085 case "$host_cpu" in
7086 hppa*64*|ia64*)
7087 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7088 ;;
7089 *)
7090 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7091 ;;
7092 esac
7093 fi
7094 if test "$with_gnu_ld" = no; then
7095 case "$host_cpu" in
7096 hppa*64*)
7097 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7098 hardcode_libdir_flag_spec_ld='+b $libdir'
7099 hardcode_libdir_separator=:
7100 hardcode_direct=no
7101 hardcode_shlibpath_var=no
7102 ;;
7103 ia64*)
7104 hardcode_libdir_flag_spec='-L$libdir'
7105 hardcode_direct=no
7106 hardcode_shlibpath_var=no
7107
7108 # hardcode_minus_L: Not really in the search PATH,
7109 # but as the default location of the library.
7110 hardcode_minus_L=yes
7111 ;;
7112 *)
7113 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7114 hardcode_libdir_separator=:
7115 hardcode_direct=yes
7116 export_dynamic_flag_spec='${wl}-E'
7117
7118 # hardcode_minus_L: Not really in the search PATH,
7119 # but as the default location of the library.
7120 hardcode_minus_L=yes
7121 ;;
7122 esac
7123 fi
7124 ;;
7125
7126 irix5* | irix6* | nonstopux*)
7127 if test "$GCC" = yes; then
7128 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'
7129 else
7130 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'
7131 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7132 fi
7133 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7134 hardcode_libdir_separator=:
7135 link_all_deplibs=yes
7136 ;;
7137
7138 netbsd*)
7139 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7140 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7141 else
7142 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7143 fi
7144 hardcode_libdir_flag_spec='-R$libdir'
7145 hardcode_direct=yes
7146 hardcode_shlibpath_var=no
7147 ;;
7148
7149 newsos6)
7150 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7151 hardcode_direct=yes
7152 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7153 hardcode_libdir_separator=:
7154 hardcode_shlibpath_var=no
7155 ;;
7156
7157 openbsd*)
7158 hardcode_direct=yes
7159 hardcode_shlibpath_var=no
7160 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7161 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7162 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7163 export_dynamic_flag_spec='${wl}-E'
7164 else
7165 case $host_os in
7166 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7167 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7168 hardcode_libdir_flag_spec='-R$libdir'
7169 ;;
7170 *)
7171 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7172 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7173 ;;
7174 esac
7175 fi
7176 ;;
7177
7178 os2*)
7179 hardcode_libdir_flag_spec='-L$libdir'
7180 hardcode_minus_L=yes
7181 allow_undefined_flag=unsupported
7182 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'
7183 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7184 ;;
7185
7186 osf3*)
7187 if test "$GCC" = yes; then
7188 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7189 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'
7190 else
7191 allow_undefined_flag=' -expect_unresolved \*'
7192 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'
7193 fi
7194 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7195 hardcode_libdir_separator=:
7196 ;;
7197
7198 osf4* | osf5*) # as osf3* with the addition of -msym flag
7199 if test "$GCC" = yes; then
7200 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7201 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'
7202 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7203 else
7204 allow_undefined_flag=' -expect_unresolved \*'
7205 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'
7206 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7207 $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'
7208
7209 # Both c and cxx compiler support -rpath directly
7210 hardcode_libdir_flag_spec='-rpath $libdir'
7211 fi
7212 hardcode_libdir_separator=:
7213 ;;
7214
7215 sco3.2v5*)
John Criswell7a73b802003-06-30 21:59:07 +00007216 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7217 hardcode_shlibpath_var=no
John Criswell47fdd832003-07-14 16:52:07 +00007218 export_dynamic_flag_spec='${wl}-Bexport'
John Criswell7a73b802003-06-30 21:59:07 +00007219 runpath_var=LD_RUN_PATH
7220 hardcode_runpath_var=yes
John Criswell47fdd832003-07-14 16:52:07 +00007221 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007222
John Criswell47fdd832003-07-14 16:52:07 +00007223 solaris*)
7224 no_undefined_flag=' -z text'
7225 if test "$GCC" = yes; then
7226 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7227 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7228 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7229 else
7230 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7231 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7232 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7233 fi
7234 hardcode_libdir_flag_spec='-R$libdir'
7235 hardcode_shlibpath_var=no
7236 case $host_os in
7237 solaris2.[0-5] | solaris2.[0-5].*) ;;
7238 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7239 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7240 esac
7241 link_all_deplibs=yes
7242 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007243
John Criswell47fdd832003-07-14 16:52:07 +00007244 sunos4*)
7245 if test "x$host_vendor" = xsequent; then
7246 # Use $CC to link under sequent, because it throws in some extra .o
7247 # files that make .init and .fini sections work.
7248 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7249 else
7250 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7251 fi
7252 hardcode_libdir_flag_spec='-L$libdir'
7253 hardcode_direct=yes
7254 hardcode_minus_L=yes
7255 hardcode_shlibpath_var=no
7256 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007257
John Criswell47fdd832003-07-14 16:52:07 +00007258 sysv4)
7259 case $host_vendor in
7260 sni)
7261 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7262 hardcode_direct=yes # is this really true???
7263 ;;
7264 siemens)
7265 ## LD is ld it makes a PLAMLIB
7266 ## CC just makes a GrossModule.
7267 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7268 reload_cmds='$CC -r -o $output$reload_objs'
7269 hardcode_direct=no
7270 ;;
7271 motorola)
7272 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7273 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7274 ;;
7275 esac
7276 runpath_var='LD_RUN_PATH'
7277 hardcode_shlibpath_var=no
7278 ;;
7279
7280 sysv4.3*)
7281 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7282 hardcode_shlibpath_var=no
7283 export_dynamic_flag_spec='-Bexport'
7284 ;;
7285
7286 sysv4*MP*)
7287 if test -d /usr/nec; then
7288 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7289 hardcode_shlibpath_var=no
7290 runpath_var=LD_RUN_PATH
7291 hardcode_runpath_var=yes
7292 ld_shlibs=yes
7293 fi
7294 ;;
7295
7296 sysv4.2uw2*)
7297 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7298 hardcode_direct=yes
7299 hardcode_minus_L=no
7300 hardcode_shlibpath_var=no
7301 hardcode_runpath_var=yes
7302 runpath_var=LD_RUN_PATH
7303 ;;
7304
7305 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7306 no_undefined_flag='${wl}-z ${wl}text'
7307 if test "$GCC" = yes; then
7308 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7309 else
7310 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7311 fi
7312 runpath_var='LD_RUN_PATH'
7313 hardcode_shlibpath_var=no
7314 ;;
7315
7316 sysv5*)
7317 no_undefined_flag=' -z text'
7318 # $CC -shared without GNU ld will not create a library from C++
7319 # object files and a static libstdc++, better avoid it by now
7320 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7321 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7322 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7323 hardcode_libdir_flag_spec=
7324 hardcode_shlibpath_var=no
7325 runpath_var='LD_RUN_PATH'
7326 ;;
7327
7328 uts4*)
7329 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7330 hardcode_libdir_flag_spec='-L$libdir'
7331 hardcode_shlibpath_var=no
7332 ;;
7333
7334 *)
7335 ld_shlibs=no
7336 ;;
7337 esac
7338 fi
7339
John Criswell7a73b802003-06-30 21:59:07 +00007340echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7341echo "${ECHO_T}$ld_shlibs" >&6
7342test "$ld_shlibs" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00007343
John Criswell47fdd832003-07-14 16:52:07 +00007344variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7345if test "$GCC" = yes; then
7346 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7347fi
7348
7349#
7350# Do we need to explicitly link libc?
7351#
7352case "x$archive_cmds_need_lc" in
7353x|xyes)
7354 # Assume -lc should be added
7355 archive_cmds_need_lc=yes
7356
7357 if test "$enable_shared" = yes && test "$GCC" = yes; then
7358 case $archive_cmds in
7359 *'~'*)
7360 # FIXME: we may have to deal with multi-command sequences.
7361 ;;
7362 '$CC '*)
7363 # Test whether the compiler implicitly links with -lc since on some
7364 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7365 # to ld, don't add -lc before -lgcc.
7366 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7367echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7368 $rm conftest*
7369 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7370
7371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7372 (eval $ac_compile) 2>&5
7373 ac_status=$?
7374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7375 (exit $ac_status); } 2>conftest.err; then
7376 soname=conftest
7377 lib=conftest
7378 libobjs=conftest.$ac_objext
7379 deplibs=
7380 wl=$lt_prog_compiler_wl
7381 compiler_flags=-v
7382 linker_flags=-v
7383 verstring=
7384 output_objdir=.
7385 libname=conftest
7386 lt_save_allow_undefined_flag=$allow_undefined_flag
7387 allow_undefined_flag=
7388 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7389 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7390 ac_status=$?
7391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7392 (exit $ac_status); }
7393 then
7394 archive_cmds_need_lc=no
7395 else
7396 archive_cmds_need_lc=yes
7397 fi
7398 allow_undefined_flag=$lt_save_allow_undefined_flag
7399 else
7400 cat conftest.err 1>&5
7401 fi
7402 $rm conftest*
7403 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7404echo "${ECHO_T}$archive_cmds_need_lc" >&6
7405 ;;
7406 esac
7407 fi
7408 ;;
7409esac
7410
John Criswell7a73b802003-06-30 21:59:07 +00007411echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7412echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7413hardcode_action=
7414if test -n "$hardcode_libdir_flag_spec" || \
John Criswell47fdd832003-07-14 16:52:07 +00007415 test -n "$runpath_var " || \
7416 test "X$hardcode_automatic"="Xyes" ; then
John Criswell7a73b802003-06-30 21:59:07 +00007417
7418 # We can hardcode non-existant directories.
7419 if test "$hardcode_direct" != no &&
7420 # If the only mechanism to avoid hardcoding is shlibpath_var, we
7421 # have to relink, otherwise we might link with an installed library
7422 # when we should be linking with a yet-to-be-installed one
John Criswell47fdd832003-07-14 16:52:07 +00007423 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
John Criswell7a73b802003-06-30 21:59:07 +00007424 test "$hardcode_minus_L" != no; then
7425 # Linking always hardcodes the temporary library directory.
7426 hardcode_action=relink
7427 else
7428 # We can link without hardcoding, and we can hardcode nonexisting dirs.
7429 hardcode_action=immediate
7430 fi
7431else
7432 # We cannot hardcode anything, or else we can only hardcode existing
7433 # directories.
7434 hardcode_action=unsupported
7435fi
7436echo "$as_me:$LINENO: result: $hardcode_action" >&5
7437echo "${ECHO_T}$hardcode_action" >&6
John Criswell7a73b802003-06-30 21:59:07 +00007438
John Criswell47fdd832003-07-14 16:52:07 +00007439if test "$hardcode_action" = relink; then
7440 # Fast installation is not supported
7441 enable_fast_install=no
7442elif test "$shlibpath_overrides_runpath" = yes ||
7443 test "$enable_shared" = no; then
7444 # Fast installation is not necessary
7445 enable_fast_install=needless
7446fi
7447
John Criswell7a73b802003-06-30 21:59:07 +00007448striplib=
7449old_striplib=
7450echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7451echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7452if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7453 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7454 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7455 echo "$as_me:$LINENO: result: yes" >&5
7456echo "${ECHO_T}yes" >&6
7457else
John Criswell47fdd832003-07-14 16:52:07 +00007458# FIXME - insert some real tests, host_os isn't really good enough
7459 case $host_os in
7460 darwin*)
7461 if test -n "$STRIP" ; then
7462 striplib="$STRIP -x"
7463 echo "$as_me:$LINENO: result: yes" >&5
7464echo "${ECHO_T}yes" >&6
7465 else
John Criswell7a73b802003-06-30 21:59:07 +00007466 echo "$as_me:$LINENO: result: no" >&5
7467echo "${ECHO_T}no" >&6
7468fi
John Criswell47fdd832003-07-14 16:52:07 +00007469 ;;
7470 *)
7471 echo "$as_me:$LINENO: result: no" >&5
7472echo "${ECHO_T}no" >&6
7473 ;;
7474 esac
7475fi
John Criswell7a73b802003-06-30 21:59:07 +00007476
John Criswell7a73b802003-06-30 21:59:07 +00007477echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7478echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7479library_names_spec=
7480libname_spec='lib$name'
7481soname_spec=
John Criswell47fdd832003-07-14 16:52:07 +00007482shrext=".so"
John Criswell7a73b802003-06-30 21:59:07 +00007483postinstall_cmds=
7484postuninstall_cmds=
7485finish_cmds=
7486finish_eval=
7487shlibpath_var=
7488shlibpath_overrides_runpath=unknown
7489version_type=none
7490dynamic_linker="$host_os ld.so"
7491sys_lib_dlsearch_path_spec="/lib /usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +00007492if test "$GCC" = yes; then
7493 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7494 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7495 # if the path contains ";" then we assume it to be the separator
7496 # otherwise default to the standard path separator (i.e. ":") - it is
7497 # assumed that no part of a normal pathname contains ";" but that should
7498 # okay in the real world where ";" in dirpaths is itself problematic.
7499 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7500 else
7501 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7502 fi
7503else
7504 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7505fi
7506need_lib_prefix=unknown
7507hardcode_into_libs=no
7508
7509# when you set need_version to no, make sure it does not cause -set_version
7510# flags to be left without arguments
7511need_version=unknown
John Criswell7a73b802003-06-30 21:59:07 +00007512
7513case $host_os in
7514aix3*)
7515 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007516 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +00007517 shlibpath_var=LIBPATH
7518
John Criswell47fdd832003-07-14 16:52:07 +00007519 # AIX 3 has no versioning support, so we append a major version to the name.
7520 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007521 ;;
7522
7523aix4* | aix5*)
7524 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007525 need_lib_prefix=no
7526 need_version=no
7527 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +00007528 if test "$host_cpu" = ia64; then
7529 # AIX 5 supports IA64
John Criswell47fdd832003-07-14 16:52:07 +00007530 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007531 shlibpath_var=LD_LIBRARY_PATH
7532 else
7533 # With GCC up to 2.95.x, collect2 would create an import file
7534 # for dependence libraries. The import file would start with
7535 # the line `#! .'. This would cause the generated library to
7536 # depend on `.', always an invalid library. This was fixed in
7537 # development snapshots of GCC prior to 3.0.
7538 case $host_os in
7539 aix4 | aix4.[01] | aix4.[01].*)
John Criswell47fdd832003-07-14 16:52:07 +00007540 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7541 echo ' yes '
7542 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7543 :
7544 else
7545 can_build_shared=no
7546 fi
7547 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007548 esac
John Criswell47fdd832003-07-14 16:52:07 +00007549 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7550 # soname into executable. Probably we can add versioning support to
7551 # collect2, so additional links can be useful in future.
John Criswell7a73b802003-06-30 21:59:07 +00007552 if test "$aix_use_runtimelinking" = yes; then
7553 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7554 # instead of lib<name>.a to let people know that these are not
7555 # typical AIX shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +00007556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007557 else
7558 # We preserve .a as extension for shared libraries through AIX4.2
7559 # and later when we are not doing run time linking.
7560 library_names_spec='${libname}${release}.a $libname.a'
John Criswell47fdd832003-07-14 16:52:07 +00007561 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007562 fi
7563 shlibpath_var=LIBPATH
7564 fi
7565 ;;
7566
7567amigaos*)
7568 library_names_spec='$libname.ixlibrary $libname.a'
7569 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7570 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'
7571 ;;
7572
7573beos*)
John Criswell47fdd832003-07-14 16:52:07 +00007574 library_names_spec='${libname}${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007575 dynamic_linker="$host_os ld.so"
7576 shlibpath_var=LIBRARY_PATH
7577 ;;
7578
7579bsdi4*)
7580 version_type=linux
7581 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7583 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007584 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7585 shlibpath_var=LD_LIBRARY_PATH
7586 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7587 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
John Criswell7a73b802003-06-30 21:59:07 +00007588 # the default ld.so.conf also contains /usr/contrib/lib and
7589 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7590 # libtool to hard-code these into programs
7591 ;;
7592
7593cygwin* | mingw* | pw32*)
7594 version_type=windows
John Criswell47fdd832003-07-14 16:52:07 +00007595 shrext=".dll"
John Criswell7a73b802003-06-30 21:59:07 +00007596 need_version=no
7597 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +00007598
John Criswell7a73b802003-06-30 21:59:07 +00007599 case $GCC,$host_os in
John Criswell47fdd832003-07-14 16:52:07 +00007600 yes,cygwin* | yes,mingw* | yes,pw32*)
John Criswell7a73b802003-06-30 21:59:07 +00007601 library_names_spec='$libname.dll.a'
John Criswell47fdd832003-07-14 16:52:07 +00007602 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7603 postinstall_cmds='base_file=`basename \${file}`~
7604 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
John Criswell7a73b802003-06-30 21:59:07 +00007605 dldir=$destdir/`dirname \$dlpath`~
7606 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +00007607 $install_prog $dir/$dlname \$dldir/$dlname'
7608 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
John Criswell7a73b802003-06-30 21:59:07 +00007609 dlpath=$dir/\$dldll~
7610 $rm \$dlpath'
John Criswell47fdd832003-07-14 16:52:07 +00007611 shlibpath_overrides_runpath=yes
7612
7613 case $host_os in
7614 cygwin*)
7615 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7616 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7617 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
7618 ;;
7619 mingw*)
7620 # MinGW DLLs use traditional 'lib' prefix
7621 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7622 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7623 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7624 # It is most probably a Windows format PATH printed by
7625 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7626 # path with ; separators, and with drive letters. We can handle the
7627 # drive letters (cygwin fileutils understands them), so leave them,
7628 # especially as we might pass files found there to a mingw objdump,
7629 # which wouldn't understand a cygwinified path. Ahh.
7630 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7631 else
7632 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7633 fi
7634 ;;
7635 pw32*)
7636 # pw32 DLLs use 'pw' prefix rather than 'lib'
7637 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7638 ;;
7639 esac
John Criswell7a73b802003-06-30 21:59:07 +00007640 ;;
John Criswell47fdd832003-07-14 16:52:07 +00007641
John Criswell7a73b802003-06-30 21:59:07 +00007642 *)
John Criswell47fdd832003-07-14 16:52:07 +00007643 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
John Criswell7a73b802003-06-30 21:59:07 +00007644 ;;
7645 esac
7646 dynamic_linker='Win32 ld.exe'
7647 # FIXME: first we should search . and the directory the executable is in
7648 shlibpath_var=PATH
7649 ;;
7650
7651darwin* | rhapsody*)
7652 dynamic_linker="$host_os dyld"
7653 version_type=darwin
7654 need_lib_prefix=no
7655 need_version=no
7656 # FIXME: Relying on posixy $() will cause problems for
7657 # cross-compilation, but unfortunately the echo tests do not
7658 # yet detect zsh echo's removal of \ escapes.
John Criswell47fdd832003-07-14 16:52:07 +00007659 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7660 soname_spec='${libname}${release}${major}$shared_ext'
John Criswell7a73b802003-06-30 21:59:07 +00007661 shlibpath_overrides_runpath=yes
7662 shlibpath_var=DYLD_LIBRARY_PATH
John Criswell47fdd832003-07-14 16:52:07 +00007663 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
7664 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7665 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7666 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"`
7667 fi
7668 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7669 ;;
7670
7671dgux*)
7672 version_type=linux
7673 need_lib_prefix=no
7674 need_version=no
7675 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7676 soname_spec='${libname}${release}${shared_ext}$major'
7677 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +00007678 ;;
7679
7680freebsd1*)
7681 dynamic_linker=no
7682 ;;
7683
7684freebsd*)
7685 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7686 version_type=freebsd-$objformat
7687 case $version_type in
7688 freebsd-elf*)
John Criswell47fdd832003-07-14 16:52:07 +00007689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007690 need_version=no
7691 need_lib_prefix=no
7692 ;;
7693 freebsd-*)
John Criswell47fdd832003-07-14 16:52:07 +00007694 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +00007695 need_version=yes
7696 ;;
7697 esac
7698 shlibpath_var=LD_LIBRARY_PATH
7699 case $host_os in
7700 freebsd2*)
7701 shlibpath_overrides_runpath=yes
7702 ;;
John Criswell47fdd832003-07-14 16:52:07 +00007703 freebsd3.01* | freebsdelf3.01*)
7704 shlibpath_overrides_runpath=yes
7705 hardcode_into_libs=yes
7706 ;;
7707 *) # from 3.2 on
John Criswell7a73b802003-06-30 21:59:07 +00007708 shlibpath_overrides_runpath=no
7709 hardcode_into_libs=yes
7710 ;;
7711 esac
7712 ;;
7713
7714gnu*)
7715 version_type=linux
7716 need_lib_prefix=no
7717 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007718 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7719 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007720 shlibpath_var=LD_LIBRARY_PATH
7721 hardcode_into_libs=yes
7722 ;;
7723
7724hpux9* | hpux10* | hpux11*)
7725 # Give a soname corresponding to the major version so that dld.sl refuses to
7726 # link against other versions.
John Criswell7a73b802003-06-30 21:59:07 +00007727 version_type=sunos
7728 need_lib_prefix=no
7729 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007730 case "$host_cpu" in
7731 ia64*)
7732 shrext='.so'
7733 hardcode_into_libs=yes
7734 dynamic_linker="$host_os dld.so"
7735 shlibpath_var=LD_LIBRARY_PATH
7736 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7738 soname_spec='${libname}${release}${shared_ext}$major'
7739 if test "X$HPUX_IA64_MODE" = X32; then
7740 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7741 else
7742 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7743 fi
7744 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7745 ;;
7746 hppa*64*)
7747 shrext='.sl'
7748 hardcode_into_libs=yes
7749 dynamic_linker="$host_os dld.sl"
7750 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7751 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7753 soname_spec='${libname}${release}${shared_ext}$major'
7754 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7755 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7756 ;;
7757 *)
7758 shrext='.sl'
7759 dynamic_linker="$host_os dld.sl"
7760 shlibpath_var=SHLIB_PATH
7761 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7763 soname_spec='${libname}${release}${shared_ext}$major'
7764 ;;
7765 esac
John Criswell7a73b802003-06-30 21:59:07 +00007766 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7767 postinstall_cmds='chmod 555 $lib'
7768 ;;
7769
John Criswell47fdd832003-07-14 16:52:07 +00007770irix5* | irix6* | nonstopux*)
7771 case $host_os in
7772 nonstopux*) version_type=nonstopux ;;
7773 *)
7774 if test "$lt_cv_prog_gnu_ld" = yes; then
7775 version_type=linux
7776 else
7777 version_type=irix
7778 fi ;;
7779 esac
John Criswell7a73b802003-06-30 21:59:07 +00007780 need_lib_prefix=no
7781 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007782 soname_spec='${libname}${release}${shared_ext}$major'
7783 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 +00007784 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00007785 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +00007786 libsuff= shlibsuff=
7787 ;;
7788 *)
7789 case $LD in # libtool.m4 will add one of these switches to LD
John Criswell47fdd832003-07-14 16:52:07 +00007790 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7791 libsuff= shlibsuff= libmagic=32-bit;;
7792 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7793 libsuff=32 shlibsuff=N32 libmagic=N32;;
7794 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7795 libsuff=64 shlibsuff=64 libmagic=64-bit;;
John Criswell7a73b802003-06-30 21:59:07 +00007796 *) libsuff= shlibsuff= libmagic=never-match;;
7797 esac
7798 ;;
7799 esac
7800 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7801 shlibpath_overrides_runpath=no
7802 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7803 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
John Criswell47fdd832003-07-14 16:52:07 +00007804 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +00007805 ;;
7806
7807# No shared lib support for Linux oldld, aout, or coff.
John Criswell47fdd832003-07-14 16:52:07 +00007808linux*oldld* | linux*aout* | linux*coff*)
John Criswell7a73b802003-06-30 21:59:07 +00007809 dynamic_linker=no
7810 ;;
7811
7812# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +00007813linux*)
John Criswell7a73b802003-06-30 21:59:07 +00007814 version_type=linux
7815 need_lib_prefix=no
7816 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7818 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007819 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7820 shlibpath_var=LD_LIBRARY_PATH
7821 shlibpath_overrides_runpath=no
7822 # This implies no fast_install, which is unacceptable.
7823 # Some rework will be needed to allow for fast_install
7824 # before this can be enabled.
7825 hardcode_into_libs=yes
7826
7827 # We used to test for /lib/ld.so.1 and disable shared libraries on
7828 # powerpc, because MkLinux only supported shared libraries with the
7829 # GNU dynamic linker. Since this was broken with cross compilers,
7830 # most powerpc-linux boxes support dynamic linking these days and
7831 # people can always --disable-shared, the test was removed, and we
7832 # assume the GNU/Linux dynamic linker is in use.
7833 dynamic_linker='GNU/Linux ld.so'
7834 ;;
7835
7836netbsd*)
7837 version_type=sunos
7838 need_lib_prefix=no
7839 need_version=no
7840 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +00007841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +00007842 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7843 dynamic_linker='NetBSD (a.out) ld.so'
7844 else
John Criswell47fdd832003-07-14 16:52:07 +00007845 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
7846 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007847 dynamic_linker='NetBSD ld.elf_so'
7848 fi
7849 shlibpath_var=LD_LIBRARY_PATH
7850 shlibpath_overrides_runpath=yes
7851 hardcode_into_libs=yes
7852 ;;
7853
7854newsos6)
7855 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7857 shlibpath_var=LD_LIBRARY_PATH
7858 shlibpath_overrides_runpath=yes
7859 ;;
7860
7861nto-qnx)
7862 version_type=linux
7863 need_lib_prefix=no
7864 need_version=no
7865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7866 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007867 shlibpath_var=LD_LIBRARY_PATH
7868 shlibpath_overrides_runpath=yes
7869 ;;
7870
7871openbsd*)
7872 version_type=sunos
7873 need_lib_prefix=no
7874 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007875 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7876 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7877 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +00007878 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 +00007879 case $host_os in
7880 openbsd2.[89] | openbsd2.[89].*)
7881 shlibpath_overrides_runpath=no
7882 ;;
7883 *)
7884 shlibpath_overrides_runpath=yes
7885 ;;
7886 esac
John Criswell7a73b802003-06-30 21:59:07 +00007887 else
7888 shlibpath_overrides_runpath=yes
7889 fi
John Criswell7a73b802003-06-30 21:59:07 +00007890 ;;
7891
7892os2*)
7893 libname_spec='$name'
John Criswell47fdd832003-07-14 16:52:07 +00007894 shrext=".dll"
John Criswell7a73b802003-06-30 21:59:07 +00007895 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +00007896 library_names_spec='$libname${shared_ext} $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +00007897 dynamic_linker='OS/2 ld.exe'
7898 shlibpath_var=LIBPATH
7899 ;;
7900
7901osf3* | osf4* | osf5*)
7902 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +00007903 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +00007904 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007905 soname_spec='${libname}${release}${shared_ext}$major'
7906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007907 shlibpath_var=LD_LIBRARY_PATH
7908 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7909 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7910 ;;
7911
7912sco3.2v5*)
7913 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +00007914 soname_spec='${libname}${release}${shared_ext}$major'
7915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007916 shlibpath_var=LD_LIBRARY_PATH
7917 ;;
7918
7919solaris*)
7920 version_type=linux
7921 need_lib_prefix=no
7922 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7924 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007925 shlibpath_var=LD_LIBRARY_PATH
7926 shlibpath_overrides_runpath=yes
7927 hardcode_into_libs=yes
7928 # ldd complains unless libraries are executable
7929 postinstall_cmds='chmod +x $lib'
7930 ;;
7931
7932sunos4*)
7933 version_type=sunos
John Criswell47fdd832003-07-14 16:52:07 +00007934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +00007935 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7936 shlibpath_var=LD_LIBRARY_PATH
7937 shlibpath_overrides_runpath=yes
7938 if test "$with_gnu_ld" = yes; then
7939 need_lib_prefix=no
7940 fi
7941 need_version=yes
7942 ;;
7943
7944sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7945 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7947 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007948 shlibpath_var=LD_LIBRARY_PATH
7949 case $host_vendor in
7950 sni)
7951 shlibpath_overrides_runpath=no
John Criswell47fdd832003-07-14 16:52:07 +00007952 need_lib_prefix=no
7953 export_dynamic_flag_spec='${wl}-Blargedynsym'
7954 runpath_var=LD_RUN_PATH
7955 ;;
7956 siemens)
7957 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +00007958 ;;
7959 motorola)
7960 need_lib_prefix=no
7961 need_version=no
7962 shlibpath_overrides_runpath=no
7963 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7964 ;;
7965 esac
7966 ;;
7967
John Criswell7a73b802003-06-30 21:59:07 +00007968sysv4*MP*)
7969 if test -d /usr/nec ;then
7970 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007971 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7972 soname_spec='$libname${shared_ext}.$major'
John Criswell7a73b802003-06-30 21:59:07 +00007973 shlibpath_var=LD_LIBRARY_PATH
7974 fi
7975 ;;
7976
John Criswell47fdd832003-07-14 16:52:07 +00007977uts4*)
7978 version_type=linux
7979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7980 soname_spec='${libname}${release}${shared_ext}$major'
7981 shlibpath_var=LD_LIBRARY_PATH
7982 ;;
7983
John Criswell7a73b802003-06-30 21:59:07 +00007984*)
7985 dynamic_linker=no
7986 ;;
7987esac
7988echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7989echo "${ECHO_T}$dynamic_linker" >&6
7990test "$dynamic_linker" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00007991
7992if test "x$enable_dlopen" != xyes; then
7993 enable_dlopen=unknown
7994 enable_dlopen_self=unknown
7995 enable_dlopen_self_static=unknown
7996else
7997 lt_cv_dlopen=no
7998 lt_cv_dlopen_libs=
7999
8000 case $host_os in
8001 beos*)
8002 lt_cv_dlopen="load_add_on"
8003 lt_cv_dlopen_libs=
8004 lt_cv_dlopen_self=yes
8005 ;;
8006
John Criswell47fdd832003-07-14 16:52:07 +00008007 mingw* | pw32*)
John Criswell7a73b802003-06-30 21:59:07 +00008008 lt_cv_dlopen="LoadLibrary"
8009 lt_cv_dlopen_libs=
8010 ;;
8011
John Criswell47fdd832003-07-14 16:52:07 +00008012 cygwin*)
8013 lt_cv_dlopen="dlopen"
8014 lt_cv_dlopen_libs=
8015 ;;
8016
8017 darwin*)
8018 # if libdl is installed we need to link against it
8019 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8020echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8021if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8022 echo $ECHO_N "(cached) $ECHO_C" >&6
8023else
8024 ac_check_lib_save_LIBS=$LIBS
8025LIBS="-ldl $LIBS"
8026cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00008027/* confdefs.h. */
8028_ACEOF
8029cat confdefs.h >>conftest.$ac_ext
8030cat >>conftest.$ac_ext <<_ACEOF
8031/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00008032
8033/* Override any gcc2 internal prototype to avoid an error. */
8034#ifdef __cplusplus
8035extern "C"
8036#endif
8037/* We use char because int might match the return type of a gcc2
8038 builtin and then its argument prototype would still apply. */
8039char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +00008040int
8041main ()
8042{
8043dlopen ();
8044 ;
8045 return 0;
8046}
8047_ACEOF
8048rm -f conftest.$ac_objext conftest$ac_exeext
8049if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +00008050 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +00008051 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +00008052 grep -v '^ *+' conftest.er1 >conftest.err
8053 rm -f conftest.er1
8054 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +00008055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8056 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +00008057 { ac_try='test -z "$ac_c_werror_flag"
8058 || test ! -s conftest.err'
8059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8060 (eval $ac_try) 2>&5
8061 ac_status=$?
8062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8063 (exit $ac_status); }; } &&
8064 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +00008065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8066 (eval $ac_try) 2>&5
8067 ac_status=$?
8068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8069 (exit $ac_status); }; }; then
8070 ac_cv_lib_dl_dlopen=yes
8071else
8072 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008073sed 's/^/| /' conftest.$ac_ext >&5
8074
John Criswell47fdd832003-07-14 16:52:07 +00008075ac_cv_lib_dl_dlopen=no
8076fi
Reid Spencer2b51a082004-08-04 00:34:49 +00008077rm -f conftest.err conftest.$ac_objext \
8078 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +00008079LIBS=$ac_check_lib_save_LIBS
8080fi
8081echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8082echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8083if test $ac_cv_lib_dl_dlopen = yes; then
8084 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8085else
8086
8087 lt_cv_dlopen="dyld"
8088 lt_cv_dlopen_libs=
8089 lt_cv_dlopen_self=yes
8090
8091fi
8092
8093 ;;
8094
John Criswell7a73b802003-06-30 21:59:07 +00008095 *)
8096 echo "$as_me:$LINENO: checking for shl_load" >&5
8097echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8098if test "${ac_cv_func_shl_load+set}" = set; then
8099 echo $ECHO_N "(cached) $ECHO_C" >&6
8100else
8101 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00008102/* confdefs.h. */
8103_ACEOF
8104cat confdefs.h >>conftest.$ac_ext
8105cat >>conftest.$ac_ext <<_ACEOF
8106/* end confdefs.h. */
Reid Spencer2b51a082004-08-04 00:34:49 +00008107/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8108 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8109#define shl_load innocuous_shl_load
8110
John Criswell7a73b802003-06-30 21:59:07 +00008111/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +00008112 which can conflict with char shl_load (); below.
8113 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8114 <limits.h> exists even on freestanding compilers. */
Reid Spencer2b51a082004-08-04 00:34:49 +00008115
John Criswell0c38eaf2003-09-10 15:17:25 +00008116#ifdef __STDC__
8117# include <limits.h>
8118#else
8119# include <assert.h>
8120#endif
Reid Spencer2b51a082004-08-04 00:34:49 +00008121
8122#undef shl_load
8123
John Criswell7a73b802003-06-30 21:59:07 +00008124/* Override any gcc2 internal prototype to avoid an error. */
8125#ifdef __cplusplus
8126extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +00008127{
John Criswell7a73b802003-06-30 21:59:07 +00008128#endif
8129/* We use char because int might match the return type of a gcc2
8130 builtin and then its argument prototype would still apply. */
8131char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +00008132/* The GNU C library defines this for functions which it implements
8133 to always fail with ENOSYS. Some functions are actually named
8134 something starting with __ and the normal name is an alias. */
8135#if defined (__stub_shl_load) || defined (__stub___shl_load)
8136choke me
8137#else
John Criswell0c38eaf2003-09-10 15:17:25 +00008138char (*f) () = shl_load;
8139#endif
8140#ifdef __cplusplus
8141}
John Criswell7a73b802003-06-30 21:59:07 +00008142#endif
8143
John Criswell0c38eaf2003-09-10 15:17:25 +00008144int
8145main ()
8146{
8147return f != shl_load;
John Criswell7a73b802003-06-30 21:59:07 +00008148 ;
8149 return 0;
8150}
8151_ACEOF
8152rm -f conftest.$ac_objext conftest$ac_exeext
8153if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +00008154 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00008155 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +00008156 grep -v '^ *+' conftest.er1 >conftest.err
8157 rm -f conftest.er1
8158 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00008159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8160 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +00008161 { ac_try='test -z "$ac_c_werror_flag"
8162 || test ! -s conftest.err'
8163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8164 (eval $ac_try) 2>&5
8165 ac_status=$?
8166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8167 (exit $ac_status); }; } &&
8168 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00008169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8170 (eval $ac_try) 2>&5
8171 ac_status=$?
8172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8173 (exit $ac_status); }; }; then
8174 ac_cv_func_shl_load=yes
8175else
8176 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008177sed 's/^/| /' conftest.$ac_ext >&5
8178
John Criswell7a73b802003-06-30 21:59:07 +00008179ac_cv_func_shl_load=no
8180fi
Reid Spencer2b51a082004-08-04 00:34:49 +00008181rm -f conftest.err conftest.$ac_objext \
8182 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00008183fi
8184echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8185echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8186if test $ac_cv_func_shl_load = yes; then
8187 lt_cv_dlopen="shl_load"
8188else
8189 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8190echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8191if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8192 echo $ECHO_N "(cached) $ECHO_C" >&6
8193else
8194 ac_check_lib_save_LIBS=$LIBS
8195LIBS="-ldld $LIBS"
8196cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00008197/* confdefs.h. */
8198_ACEOF
8199cat confdefs.h >>conftest.$ac_ext
8200cat >>conftest.$ac_ext <<_ACEOF
8201/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008202
8203/* Override any gcc2 internal prototype to avoid an error. */
8204#ifdef __cplusplus
8205extern "C"
8206#endif
8207/* We use char because int might match the return type of a gcc2
8208 builtin and then its argument prototype would still apply. */
8209char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +00008210int
8211main ()
8212{
8213shl_load ();
8214 ;
8215 return 0;
8216}
8217_ACEOF
8218rm -f conftest.$ac_objext conftest$ac_exeext
8219if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +00008220 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00008221 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +00008222 grep -v '^ *+' conftest.er1 >conftest.err
8223 rm -f conftest.er1
8224 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00008225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8226 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +00008227 { ac_try='test -z "$ac_c_werror_flag"
8228 || test ! -s conftest.err'
8229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8230 (eval $ac_try) 2>&5
8231 ac_status=$?
8232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8233 (exit $ac_status); }; } &&
8234 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00008235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8236 (eval $ac_try) 2>&5
8237 ac_status=$?
8238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8239 (exit $ac_status); }; }; then
8240 ac_cv_lib_dld_shl_load=yes
8241else
8242 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008243sed 's/^/| /' conftest.$ac_ext >&5
8244
John Criswell7a73b802003-06-30 21:59:07 +00008245ac_cv_lib_dld_shl_load=no
8246fi
Reid Spencer2b51a082004-08-04 00:34:49 +00008247rm -f conftest.err conftest.$ac_objext \
8248 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00008249LIBS=$ac_check_lib_save_LIBS
8250fi
8251echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8252echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8253if test $ac_cv_lib_dld_shl_load = yes; then
8254 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8255else
8256 echo "$as_me:$LINENO: checking for dlopen" >&5
8257echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8258if test "${ac_cv_func_dlopen+set}" = set; then
8259 echo $ECHO_N "(cached) $ECHO_C" >&6
8260else
8261 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00008262/* confdefs.h. */
8263_ACEOF
8264cat confdefs.h >>conftest.$ac_ext
8265cat >>conftest.$ac_ext <<_ACEOF
8266/* end confdefs.h. */
Reid Spencer2b51a082004-08-04 00:34:49 +00008267/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8268 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8269#define dlopen innocuous_dlopen
8270
John Criswell7a73b802003-06-30 21:59:07 +00008271/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +00008272 which can conflict with char dlopen (); below.
8273 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8274 <limits.h> exists even on freestanding compilers. */
Reid Spencer2b51a082004-08-04 00:34:49 +00008275
John Criswell0c38eaf2003-09-10 15:17:25 +00008276#ifdef __STDC__
8277# include <limits.h>
8278#else
8279# include <assert.h>
8280#endif
Reid Spencer2b51a082004-08-04 00:34:49 +00008281
8282#undef dlopen
8283
John Criswell7a73b802003-06-30 21:59:07 +00008284/* Override any gcc2 internal prototype to avoid an error. */
8285#ifdef __cplusplus
8286extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +00008287{
John Criswell7a73b802003-06-30 21:59:07 +00008288#endif
8289/* We use char because int might match the return type of a gcc2
8290 builtin and then its argument prototype would still apply. */
8291char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +00008292/* The GNU C library defines this for functions which it implements
8293 to always fail with ENOSYS. Some functions are actually named
8294 something starting with __ and the normal name is an alias. */
8295#if defined (__stub_dlopen) || defined (__stub___dlopen)
8296choke me
8297#else
John Criswell0c38eaf2003-09-10 15:17:25 +00008298char (*f) () = dlopen;
8299#endif
8300#ifdef __cplusplus
8301}
John Criswell7a73b802003-06-30 21:59:07 +00008302#endif
8303
John Criswell0c38eaf2003-09-10 15:17:25 +00008304int
8305main ()
8306{
8307return f != dlopen;
John Criswell7a73b802003-06-30 21:59:07 +00008308 ;
8309 return 0;
8310}
8311_ACEOF
8312rm -f conftest.$ac_objext conftest$ac_exeext
8313if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +00008314 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00008315 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +00008316 grep -v '^ *+' conftest.er1 >conftest.err
8317 rm -f conftest.er1
8318 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00008319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8320 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +00008321 { ac_try='test -z "$ac_c_werror_flag"
8322 || test ! -s conftest.err'
8323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8324 (eval $ac_try) 2>&5
8325 ac_status=$?
8326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8327 (exit $ac_status); }; } &&
8328 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00008329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8330 (eval $ac_try) 2>&5
8331 ac_status=$?
8332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8333 (exit $ac_status); }; }; then
8334 ac_cv_func_dlopen=yes
8335else
8336 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008337sed 's/^/| /' conftest.$ac_ext >&5
8338
John Criswell7a73b802003-06-30 21:59:07 +00008339ac_cv_func_dlopen=no
8340fi
Reid Spencer2b51a082004-08-04 00:34:49 +00008341rm -f conftest.err conftest.$ac_objext \
8342 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00008343fi
8344echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8345echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8346if test $ac_cv_func_dlopen = yes; then
8347 lt_cv_dlopen="dlopen"
8348else
8349 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8350echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8351if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8352 echo $ECHO_N "(cached) $ECHO_C" >&6
8353else
8354 ac_check_lib_save_LIBS=$LIBS
8355LIBS="-ldl $LIBS"
8356cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00008357/* confdefs.h. */
8358_ACEOF
8359cat confdefs.h >>conftest.$ac_ext
8360cat >>conftest.$ac_ext <<_ACEOF
8361/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008362
8363/* Override any gcc2 internal prototype to avoid an error. */
8364#ifdef __cplusplus
8365extern "C"
8366#endif
8367/* We use char because int might match the return type of a gcc2
8368 builtin and then its argument prototype would still apply. */
8369char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +00008370int
8371main ()
8372{
8373dlopen ();
8374 ;
8375 return 0;
8376}
8377_ACEOF
8378rm -f conftest.$ac_objext conftest$ac_exeext
8379if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +00008380 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00008381 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +00008382 grep -v '^ *+' conftest.er1 >conftest.err
8383 rm -f conftest.er1
8384 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00008385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8386 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +00008387 { ac_try='test -z "$ac_c_werror_flag"
8388 || test ! -s conftest.err'
8389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8390 (eval $ac_try) 2>&5
8391 ac_status=$?
8392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8393 (exit $ac_status); }; } &&
8394 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00008395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8396 (eval $ac_try) 2>&5
8397 ac_status=$?
8398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8399 (exit $ac_status); }; }; then
8400 ac_cv_lib_dl_dlopen=yes
8401else
8402 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008403sed 's/^/| /' conftest.$ac_ext >&5
8404
John Criswell7a73b802003-06-30 21:59:07 +00008405ac_cv_lib_dl_dlopen=no
8406fi
Reid Spencer2b51a082004-08-04 00:34:49 +00008407rm -f conftest.err conftest.$ac_objext \
8408 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00008409LIBS=$ac_check_lib_save_LIBS
8410fi
8411echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8412echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8413if test $ac_cv_lib_dl_dlopen = yes; then
8414 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8415else
8416 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8417echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8418if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8419 echo $ECHO_N "(cached) $ECHO_C" >&6
8420else
8421 ac_check_lib_save_LIBS=$LIBS
8422LIBS="-lsvld $LIBS"
8423cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00008424/* confdefs.h. */
8425_ACEOF
8426cat confdefs.h >>conftest.$ac_ext
8427cat >>conftest.$ac_ext <<_ACEOF
8428/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008429
8430/* Override any gcc2 internal prototype to avoid an error. */
8431#ifdef __cplusplus
8432extern "C"
8433#endif
8434/* We use char because int might match the return type of a gcc2
8435 builtin and then its argument prototype would still apply. */
8436char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +00008437int
8438main ()
8439{
8440dlopen ();
8441 ;
8442 return 0;
8443}
8444_ACEOF
8445rm -f conftest.$ac_objext conftest$ac_exeext
8446if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +00008447 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00008448 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +00008449 grep -v '^ *+' conftest.er1 >conftest.err
8450 rm -f conftest.er1
8451 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00008452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8453 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +00008454 { ac_try='test -z "$ac_c_werror_flag"
8455 || test ! -s conftest.err'
8456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8457 (eval $ac_try) 2>&5
8458 ac_status=$?
8459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8460 (exit $ac_status); }; } &&
8461 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00008462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8463 (eval $ac_try) 2>&5
8464 ac_status=$?
8465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8466 (exit $ac_status); }; }; then
8467 ac_cv_lib_svld_dlopen=yes
8468else
8469 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008470sed 's/^/| /' conftest.$ac_ext >&5
8471
John Criswell7a73b802003-06-30 21:59:07 +00008472ac_cv_lib_svld_dlopen=no
8473fi
Reid Spencer2b51a082004-08-04 00:34:49 +00008474rm -f conftest.err conftest.$ac_objext \
8475 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00008476LIBS=$ac_check_lib_save_LIBS
8477fi
8478echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8479echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8480if test $ac_cv_lib_svld_dlopen = yes; then
8481 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8482else
8483 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8484echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8485if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8486 echo $ECHO_N "(cached) $ECHO_C" >&6
8487else
8488 ac_check_lib_save_LIBS=$LIBS
8489LIBS="-ldld $LIBS"
8490cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00008491/* confdefs.h. */
8492_ACEOF
8493cat confdefs.h >>conftest.$ac_ext
8494cat >>conftest.$ac_ext <<_ACEOF
8495/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008496
8497/* Override any gcc2 internal prototype to avoid an error. */
8498#ifdef __cplusplus
8499extern "C"
8500#endif
8501/* We use char because int might match the return type of a gcc2
8502 builtin and then its argument prototype would still apply. */
8503char dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +00008504int
8505main ()
8506{
8507dld_link ();
8508 ;
8509 return 0;
8510}
8511_ACEOF
8512rm -f conftest.$ac_objext conftest$ac_exeext
8513if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +00008514 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00008515 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +00008516 grep -v '^ *+' conftest.er1 >conftest.err
8517 rm -f conftest.er1
8518 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00008519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8520 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +00008521 { ac_try='test -z "$ac_c_werror_flag"
8522 || test ! -s conftest.err'
8523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8524 (eval $ac_try) 2>&5
8525 ac_status=$?
8526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8527 (exit $ac_status); }; } &&
8528 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00008529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8530 (eval $ac_try) 2>&5
8531 ac_status=$?
8532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8533 (exit $ac_status); }; }; then
8534 ac_cv_lib_dld_dld_link=yes
8535else
8536 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008537sed 's/^/| /' conftest.$ac_ext >&5
8538
John Criswell7a73b802003-06-30 21:59:07 +00008539ac_cv_lib_dld_dld_link=no
8540fi
Reid Spencer2b51a082004-08-04 00:34:49 +00008541rm -f conftest.err conftest.$ac_objext \
8542 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00008543LIBS=$ac_check_lib_save_LIBS
8544fi
8545echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8546echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8547if test $ac_cv_lib_dld_dld_link = yes; then
8548 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8549fi
8550
8551
8552fi
8553
8554
8555fi
8556
8557
8558fi
8559
8560
8561fi
8562
8563
8564fi
8565
8566 ;;
8567 esac
8568
8569 if test "x$lt_cv_dlopen" != xno; then
8570 enable_dlopen=yes
8571 else
8572 enable_dlopen=no
8573 fi
8574
8575 case $lt_cv_dlopen in
8576 dlopen)
8577 save_CPPFLAGS="$CPPFLAGS"
John Criswell47fdd832003-07-14 16:52:07 +00008578 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
John Criswell7a73b802003-06-30 21:59:07 +00008579
8580 save_LDFLAGS="$LDFLAGS"
8581 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8582
8583 save_LIBS="$LIBS"
8584 LIBS="$lt_cv_dlopen_libs $LIBS"
8585
8586 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8587echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8588if test "${lt_cv_dlopen_self+set}" = set; then
8589 echo $ECHO_N "(cached) $ECHO_C" >&6
8590else
8591 if test "$cross_compiling" = yes; then :
8592 lt_cv_dlopen_self=cross
8593else
John Criswell47fdd832003-07-14 16:52:07 +00008594 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +00008595 lt_status=$lt_dlunknown
8596 cat > conftest.$ac_ext <<EOF
Reid Spencer73fb5482004-08-31 14:20:36 +00008597#line 8597 "configure"
John Criswell7a73b802003-06-30 21:59:07 +00008598#include "confdefs.h"
8599
8600#if HAVE_DLFCN_H
8601#include <dlfcn.h>
8602#endif
8603
8604#include <stdio.h>
8605
8606#ifdef RTLD_GLOBAL
8607# define LT_DLGLOBAL RTLD_GLOBAL
8608#else
8609# ifdef DL_GLOBAL
8610# define LT_DLGLOBAL DL_GLOBAL
8611# else
8612# define LT_DLGLOBAL 0
8613# endif
8614#endif
8615
8616/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8617 find out it does not work in some platform. */
8618#ifndef LT_DLLAZY_OR_NOW
8619# ifdef RTLD_LAZY
8620# define LT_DLLAZY_OR_NOW RTLD_LAZY
8621# else
8622# ifdef DL_LAZY
8623# define LT_DLLAZY_OR_NOW DL_LAZY
8624# else
8625# ifdef RTLD_NOW
8626# define LT_DLLAZY_OR_NOW RTLD_NOW
8627# else
8628# ifdef DL_NOW
8629# define LT_DLLAZY_OR_NOW DL_NOW
8630# else
8631# define LT_DLLAZY_OR_NOW 0
8632# endif
8633# endif
8634# endif
8635# endif
8636#endif
8637
8638#ifdef __cplusplus
8639extern "C" void exit (int);
8640#endif
8641
8642void fnord() { int i=42;}
8643int main ()
8644{
8645 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8646 int status = $lt_dlunknown;
8647
8648 if (self)
8649 {
8650 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8651 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8652 /* dlclose (self); */
8653 }
8654
8655 exit (status);
8656}
8657EOF
8658 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8659 (eval $ac_link) 2>&5
8660 ac_status=$?
8661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8662 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8663 (./conftest; exit; ) 2>/dev/null
8664 lt_status=$?
8665 case x$lt_status in
8666 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8667 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8668 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8669 esac
8670 else :
8671 # compilation failed
8672 lt_cv_dlopen_self=no
8673 fi
8674fi
8675rm -fr conftest*
8676
8677
8678fi
8679echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8680echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8681
8682 if test "x$lt_cv_dlopen_self" = xyes; then
8683 LDFLAGS="$LDFLAGS $link_static_flag"
8684 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8685echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8686if test "${lt_cv_dlopen_self_static+set}" = set; then
8687 echo $ECHO_N "(cached) $ECHO_C" >&6
8688else
8689 if test "$cross_compiling" = yes; then :
8690 lt_cv_dlopen_self_static=cross
8691else
John Criswell47fdd832003-07-14 16:52:07 +00008692 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +00008693 lt_status=$lt_dlunknown
8694 cat > conftest.$ac_ext <<EOF
Reid Spencer73fb5482004-08-31 14:20:36 +00008695#line 8695 "configure"
John Criswell7a73b802003-06-30 21:59:07 +00008696#include "confdefs.h"
8697
8698#if HAVE_DLFCN_H
8699#include <dlfcn.h>
8700#endif
8701
8702#include <stdio.h>
8703
8704#ifdef RTLD_GLOBAL
8705# define LT_DLGLOBAL RTLD_GLOBAL
8706#else
8707# ifdef DL_GLOBAL
8708# define LT_DLGLOBAL DL_GLOBAL
8709# else
8710# define LT_DLGLOBAL 0
8711# endif
8712#endif
8713
8714/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8715 find out it does not work in some platform. */
8716#ifndef LT_DLLAZY_OR_NOW
8717# ifdef RTLD_LAZY
8718# define LT_DLLAZY_OR_NOW RTLD_LAZY
8719# else
8720# ifdef DL_LAZY
8721# define LT_DLLAZY_OR_NOW DL_LAZY
8722# else
8723# ifdef RTLD_NOW
8724# define LT_DLLAZY_OR_NOW RTLD_NOW
8725# else
8726# ifdef DL_NOW
8727# define LT_DLLAZY_OR_NOW DL_NOW
8728# else
8729# define LT_DLLAZY_OR_NOW 0
8730# endif
8731# endif
8732# endif
8733# endif
8734#endif
8735
8736#ifdef __cplusplus
8737extern "C" void exit (int);
8738#endif
8739
8740void fnord() { int i=42;}
8741int main ()
8742{
8743 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8744 int status = $lt_dlunknown;
8745
8746 if (self)
8747 {
8748 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8749 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8750 /* dlclose (self); */
8751 }
8752
8753 exit (status);
8754}
8755EOF
8756 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8757 (eval $ac_link) 2>&5
8758 ac_status=$?
8759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8760 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8761 (./conftest; exit; ) 2>/dev/null
8762 lt_status=$?
8763 case x$lt_status in
8764 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8765 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8766 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8767 esac
8768 else :
8769 # compilation failed
8770 lt_cv_dlopen_self_static=no
8771 fi
8772fi
8773rm -fr conftest*
8774
8775
8776fi
8777echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8778echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8779 fi
8780
8781 CPPFLAGS="$save_CPPFLAGS"
8782 LDFLAGS="$save_LDFLAGS"
8783 LIBS="$save_LIBS"
8784 ;;
8785 esac
8786
8787 case $lt_cv_dlopen_self in
8788 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8789 *) enable_dlopen_self=unknown ;;
8790 esac
8791
8792 case $lt_cv_dlopen_self_static in
8793 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8794 *) enable_dlopen_self_static=unknown ;;
8795 esac
8796fi
8797
8798
John Criswell47fdd832003-07-14 16:52:07 +00008799# Report which librarie types wil actually be built
8800echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8801echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8802echo "$as_me:$LINENO: result: $can_build_shared" >&5
8803echo "${ECHO_T}$can_build_shared" >&6
John Criswell7a73b802003-06-30 21:59:07 +00008804
John Criswell47fdd832003-07-14 16:52:07 +00008805echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8806echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8807test "$can_build_shared" = "no" && enable_shared=no
8808
8809# On AIX, shared libraries and static libraries use the same namespace, and
8810# are all built from PIC.
8811case "$host_os" in
8812aix3*)
8813 test "$enable_shared" = yes && enable_static=no
8814 if test -n "$RANLIB"; then
8815 archive_cmds="$archive_cmds~\$RANLIB \$lib"
8816 postinstall_cmds='$RANLIB $lib'
8817 fi
8818 ;;
8819
8820aix4*)
8821 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8822 test "$enable_shared" = yes && enable_static=no
8823 fi
8824 ;;
8825 darwin* | rhapsody*)
8826 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
8827 archive_cmds_need_lc=no
8828 case "$host_os" in
8829 rhapsody* | darwin1.[012])
8830 allow_undefined_flag='-undefined suppress'
8831 ;;
8832 *) # Darwin 1.3 on
8833 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
8834 ;;
8835 esac
8836 # FIXME: Relying on posixy $() will cause problems for
8837 # cross-compilation, but unfortunately the echo tests do not
8838 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
8839 # `"' quotes if we put them in here... so don't!
8840 output_verbose_link_cmd='echo'
8841 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8842 module_cmds='$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
8843 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8844 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}'
8845 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}'
8846 hardcode_direct=no
8847 hardcode_automatic=yes
8848 hardcode_shlibpath_var=unsupported
8849 whole_archive_flag_spec='-all_load $convenience'
8850 link_all_deplibs=yes
John Criswell7a73b802003-06-30 21:59:07 +00008851 fi
John Criswell7a73b802003-06-30 21:59:07 +00008852 ;;
John Criswell47fdd832003-07-14 16:52:07 +00008853esac
8854echo "$as_me:$LINENO: result: $enable_shared" >&5
8855echo "${ECHO_T}$enable_shared" >&6
John Criswell7a73b802003-06-30 21:59:07 +00008856
John Criswell47fdd832003-07-14 16:52:07 +00008857echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8858echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8859# Make sure either enable_shared or enable_static is yes.
8860test "$enable_shared" = yes || enable_static=yes
8861echo "$as_me:$LINENO: result: $enable_static" >&5
8862echo "${ECHO_T}$enable_static" >&6
8863
8864# The else clause should only fire when bootstrapping the
John Criswell7a73b802003-06-30 21:59:07 +00008865# libtool distribution, otherwise you forgot to ship ltmain.sh
8866# with your package, and you will get complaints that there are
8867# no rules to generate ltmain.sh.
8868if test -f "$ltmain"; then
John Criswell47fdd832003-07-14 16:52:07 +00008869 # See if we are running on zsh, and set the options which allow our commands through
8870 # without removal of \ escapes.
8871 if test -n "${ZSH_VERSION+set}" ; then
8872 setopt NO_GLOB_SUBST
8873 fi
John Criswell7a73b802003-06-30 21:59:07 +00008874 # Now quote all the things that may contain metacharacters while being
8875 # careful not to overquote the AC_SUBSTed values. We take copies of the
8876 # variables and quote the copies for generation of the libtool script.
John Criswell47fdd832003-07-14 16:52:07 +00008877 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
8878 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8879 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8880 deplibs_check_method reload_flag reload_cmds need_locks \
8881 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8882 lt_cv_sys_global_symbol_to_c_name_address \
John Criswell7a73b802003-06-30 21:59:07 +00008883 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
John Criswell47fdd832003-07-14 16:52:07 +00008884 old_postinstall_cmds old_postuninstall_cmds \
8885 compiler \
8886 CC \
8887 LD \
8888 lt_prog_compiler_wl \
8889 lt_prog_compiler_pic \
8890 lt_prog_compiler_static \
8891 lt_prog_compiler_no_builtin_flag \
8892 export_dynamic_flag_spec \
8893 thread_safe_flag_spec \
8894 whole_archive_flag_spec \
8895 enable_shared_with_static_runtimes \
8896 old_archive_cmds \
8897 old_archive_from_new_cmds \
8898 predep_objects \
8899 postdep_objects \
8900 predeps \
8901 postdeps \
8902 compiler_lib_search_path \
8903 archive_cmds \
8904 archive_expsym_cmds \
8905 postinstall_cmds \
8906 postuninstall_cmds \
8907 old_archive_from_expsyms_cmds \
8908 allow_undefined_flag \
8909 no_undefined_flag \
8910 export_symbols_cmds \
8911 hardcode_libdir_flag_spec \
8912 hardcode_libdir_flag_spec_ld \
8913 hardcode_libdir_separator \
8914 hardcode_automatic \
8915 module_cmds \
8916 module_expsym_cmds \
8917 lt_cv_prog_compiler_c_o \
8918 exclude_expsyms \
8919 include_expsyms; do
John Criswell7a73b802003-06-30 21:59:07 +00008920
8921 case $var in
John Criswell47fdd832003-07-14 16:52:07 +00008922 old_archive_cmds | \
8923 old_archive_from_new_cmds | \
8924 archive_cmds | \
8925 archive_expsym_cmds | \
8926 module_cmds | \
8927 module_expsym_cmds | \
8928 old_archive_from_expsyms_cmds | \
8929 export_symbols_cmds | \
8930 extract_expsyms_cmds | reload_cmds | finish_cmds | \
John Criswell7a73b802003-06-30 21:59:07 +00008931 postinstall_cmds | postuninstall_cmds | \
John Criswell47fdd832003-07-14 16:52:07 +00008932 old_postinstall_cmds | old_postuninstall_cmds | \
8933 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
John Criswell7a73b802003-06-30 21:59:07 +00008934 # Double-quote double-evaled strings.
8935 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8936 ;;
8937 *)
8938 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8939 ;;
8940 esac
8941 done
8942
John Criswell47fdd832003-07-14 16:52:07 +00008943 case $lt_echo in
8944 *'\$0 --fallback-echo"')
8945 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8946 ;;
8947 esac
8948
8949cfgfile="${ofile}T"
8950 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8951 $rm -f "$cfgfile"
8952 { echo "$as_me:$LINENO: creating $ofile" >&5
8953echo "$as_me: creating $ofile" >&6;}
8954
8955 cat <<__EOF__ >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +00008956#! $SHELL
8957
John Criswell47fdd832003-07-14 16:52:07 +00008958# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
John Criswell7a73b802003-06-30 21:59:07 +00008959# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8960# NOTE: Changes made to this file will be lost: look at ltmain.sh.
8961#
John Criswell47fdd832003-07-14 16:52:07 +00008962# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8963# Free Software Foundation, Inc.
8964#
8965# This file is part of GNU Libtool:
John Criswell7a73b802003-06-30 21:59:07 +00008966# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8967#
8968# This program is free software; you can redistribute it and/or modify
8969# it under the terms of the GNU General Public License as published by
8970# the Free Software Foundation; either version 2 of the License, or
8971# (at your option) any later version.
8972#
8973# This program is distributed in the hope that it will be useful, but
8974# WITHOUT ANY WARRANTY; without even the implied warranty of
8975# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
8976# General Public License for more details.
8977#
8978# You should have received a copy of the GNU General Public License
8979# along with this program; if not, write to the Free Software
8980# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8981#
8982# As a special exception to the GNU General Public License, if you
8983# distribute this file as part of a program that contains a
8984# configuration script generated by Autoconf, you may include it under
8985# the same distribution terms that you use for the rest of that program.
8986
John Criswell47fdd832003-07-14 16:52:07 +00008987# A sed program that does not truncate output.
8988SED=$lt_SED
8989
John Criswell7a73b802003-06-30 21:59:07 +00008990# Sed that helps us avoid accidentally triggering echo(1) options like -n.
John Criswell47fdd832003-07-14 16:52:07 +00008991Xsed="$SED -e s/^X//"
John Criswell7a73b802003-06-30 21:59:07 +00008992
8993# The HP-UX ksh and POSIX shell print the target directory to stdout
8994# if CDPATH is set.
8995if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8996
John Criswell47fdd832003-07-14 16:52:07 +00008997# The names of the tagged configurations supported by this script.
8998available_tags=
8999
John Criswell7a73b802003-06-30 21:59:07 +00009000# ### BEGIN LIBTOOL CONFIG
9001
9002# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9003
9004# Shell to use when invoking shell scripts.
9005SHELL=$lt_SHELL
9006
9007# Whether or not to build shared libraries.
9008build_libtool_libs=$enable_shared
9009
9010# Whether or not to build static libraries.
9011build_old_libs=$enable_static
9012
9013# Whether or not to add -lc for building shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +00009014build_libtool_need_lc=$archive_cmds_need_lc
9015
9016# Whether or not to disallow shared libs when runtime libs are static
9017allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
John Criswell7a73b802003-06-30 21:59:07 +00009018
9019# Whether or not to optimize for fast installation.
9020fast_install=$enable_fast_install
9021
9022# The host system.
9023host_alias=$host_alias
9024host=$host
9025
9026# An echo program that does not interpret backslashes.
9027echo=$lt_echo
9028
9029# The archiver.
9030AR=$lt_AR
9031AR_FLAGS=$lt_AR_FLAGS
9032
John Criswell47fdd832003-07-14 16:52:07 +00009033# A C compiler.
9034LTCC=$lt_LTCC
9035
9036# A language-specific compiler.
9037CC=$lt_compiler
John Criswell7a73b802003-06-30 21:59:07 +00009038
9039# Is the compiler the GNU C compiler?
9040with_gcc=$GCC
9041
John Criswell47fdd832003-07-14 16:52:07 +00009042# An ERE matcher.
9043EGREP=$lt_EGREP
9044
John Criswell7a73b802003-06-30 21:59:07 +00009045# The linker used to build libraries.
9046LD=$lt_LD
9047
9048# Whether we need hard or soft links.
9049LN_S=$lt_LN_S
9050
9051# A BSD-compatible nm program.
9052NM=$lt_NM
9053
9054# A symbol stripping program
9055STRIP=$STRIP
9056
9057# Used to examine libraries when file_magic_cmd begins "file"
9058MAGIC_CMD=$MAGIC_CMD
9059
9060# Used on cygwin: DLL creation program.
9061DLLTOOL="$DLLTOOL"
9062
9063# Used on cygwin: object dumper.
9064OBJDUMP="$OBJDUMP"
9065
9066# Used on cygwin: assembler.
9067AS="$AS"
9068
9069# The name of the directory that contains temporary libtool files.
9070objdir=$objdir
9071
9072# How to create reloadable object files.
9073reload_flag=$lt_reload_flag
9074reload_cmds=$lt_reload_cmds
9075
9076# How to pass a linker flag through the compiler.
John Criswell47fdd832003-07-14 16:52:07 +00009077wl=$lt_lt_prog_compiler_wl
John Criswell7a73b802003-06-30 21:59:07 +00009078
9079# Object file suffix (normally "o").
9080objext="$ac_objext"
9081
9082# Old archive suffix (normally "a").
9083libext="$libext"
9084
John Criswell47fdd832003-07-14 16:52:07 +00009085# Shared library suffix (normally ".so").
9086shrext='$shrext'
9087
John Criswell7a73b802003-06-30 21:59:07 +00009088# Executable file suffix (normally "").
9089exeext="$exeext"
9090
9091# Additional compiler flags for building library objects.
John Criswell47fdd832003-07-14 16:52:07 +00009092pic_flag=$lt_lt_prog_compiler_pic
John Criswell7a73b802003-06-30 21:59:07 +00009093pic_mode=$pic_mode
9094
John Criswell47fdd832003-07-14 16:52:07 +00009095# What is the maximum length of a command?
9096max_cmd_len=$lt_cv_sys_max_cmd_len
John Criswell7a73b802003-06-30 21:59:07 +00009097
John Criswell47fdd832003-07-14 16:52:07 +00009098# Does compiler simultaneously support -c and -o options?
9099compiler_c_o=$lt_lt_cv_prog_compiler_c_o
John Criswell7a73b802003-06-30 21:59:07 +00009100
9101# Must we lock files when doing compilation ?
9102need_locks=$lt_need_locks
9103
9104# Do we need the lib prefix for modules?
9105need_lib_prefix=$need_lib_prefix
9106
9107# Do we need a version for libraries?
9108need_version=$need_version
9109
9110# Whether dlopen is supported.
9111dlopen_support=$enable_dlopen
9112
9113# Whether dlopen of programs is supported.
9114dlopen_self=$enable_dlopen_self
9115
9116# Whether dlopen of statically linked programs is supported.
9117dlopen_self_static=$enable_dlopen_self_static
9118
9119# Compiler flag to prevent dynamic linking.
John Criswell47fdd832003-07-14 16:52:07 +00009120link_static_flag=$lt_lt_prog_compiler_static
John Criswell7a73b802003-06-30 21:59:07 +00009121
9122# Compiler flag to turn off builtin functions.
John Criswell47fdd832003-07-14 16:52:07 +00009123no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
John Criswell7a73b802003-06-30 21:59:07 +00009124
9125# Compiler flag to allow reflexive dlopens.
9126export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9127
9128# Compiler flag to generate shared objects directly from archives.
9129whole_archive_flag_spec=$lt_whole_archive_flag_spec
9130
9131# Compiler flag to generate thread-safe objects.
9132thread_safe_flag_spec=$lt_thread_safe_flag_spec
9133
9134# Library versioning type.
9135version_type=$version_type
9136
9137# Format of library name prefix.
9138libname_spec=$lt_libname_spec
9139
9140# List of archive names. First name is the real one, the rest are links.
9141# The last name is the one that the linker finds with -lNAME.
9142library_names_spec=$lt_library_names_spec
9143
9144# The coded name of the library, if different from the real name.
9145soname_spec=$lt_soname_spec
9146
9147# Commands used to build and install an old-style archive.
9148RANLIB=$lt_RANLIB
9149old_archive_cmds=$lt_old_archive_cmds
9150old_postinstall_cmds=$lt_old_postinstall_cmds
9151old_postuninstall_cmds=$lt_old_postuninstall_cmds
9152
9153# Create an old-style archive from a shared archive.
9154old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9155
9156# Create a temporary old-style archive to link instead of a shared archive.
9157old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9158
9159# Commands used to build and install a shared archive.
9160archive_cmds=$lt_archive_cmds
9161archive_expsym_cmds=$lt_archive_expsym_cmds
9162postinstall_cmds=$lt_postinstall_cmds
9163postuninstall_cmds=$lt_postuninstall_cmds
9164
John Criswell47fdd832003-07-14 16:52:07 +00009165# Commands used to build a loadable module (assumed same as above if empty)
9166module_cmds=$lt_module_cmds
9167module_expsym_cmds=$lt_module_expsym_cmds
9168
John Criswell7a73b802003-06-30 21:59:07 +00009169# Commands to strip libraries.
9170old_striplib=$lt_old_striplib
9171striplib=$lt_striplib
9172
John Criswell47fdd832003-07-14 16:52:07 +00009173# Dependencies to place before the objects being linked to create a
9174# shared library.
9175predep_objects=$lt_predep_objects
9176
9177# Dependencies to place after the objects being linked to create a
9178# shared library.
9179postdep_objects=$lt_postdep_objects
9180
9181# Dependencies to place before the objects being linked to create a
9182# shared library.
9183predeps=$lt_predeps
9184
9185# Dependencies to place after the objects being linked to create a
9186# shared library.
9187postdeps=$lt_postdeps
9188
9189# The library search path used internally by the compiler when linking
9190# a shared library.
9191compiler_lib_search_path=$lt_compiler_lib_search_path
9192
John Criswell7a73b802003-06-30 21:59:07 +00009193# Method to check whether dependent libraries are shared objects.
9194deplibs_check_method=$lt_deplibs_check_method
9195
9196# Command to use when deplibs_check_method == file_magic.
9197file_magic_cmd=$lt_file_magic_cmd
9198
9199# Flag that allows shared libraries with undefined symbols to be built.
9200allow_undefined_flag=$lt_allow_undefined_flag
9201
9202# Flag that forces no undefined symbols.
9203no_undefined_flag=$lt_no_undefined_flag
9204
9205# Commands used to finish a libtool library installation in a directory.
9206finish_cmds=$lt_finish_cmds
9207
9208# Same as above, but a single script fragment to be evaled but not shown.
9209finish_eval=$lt_finish_eval
9210
9211# Take the output of nm and produce a listing of raw symbols and C names.
John Criswell47fdd832003-07-14 16:52:07 +00009212global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
John Criswell7a73b802003-06-30 21:59:07 +00009213
9214# Transform the output of nm in a proper C declaration
John Criswell47fdd832003-07-14 16:52:07 +00009215global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
John Criswell7a73b802003-06-30 21:59:07 +00009216
9217# Transform the output of nm in a C name address pair
John Criswell47fdd832003-07-14 16:52:07 +00009218global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
John Criswell7a73b802003-06-30 21:59:07 +00009219
9220# This is the shared library runtime path variable.
9221runpath_var=$runpath_var
9222
9223# This is the shared library path variable.
9224shlibpath_var=$shlibpath_var
9225
9226# Is shlibpath searched before the hard-coded library search path?
9227shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9228
9229# How to hardcode a shared library path into an executable.
9230hardcode_action=$hardcode_action
9231
9232# Whether we should hardcode library paths into libraries.
9233hardcode_into_libs=$hardcode_into_libs
9234
9235# Flag to hardcode \$libdir into a binary during linking.
9236# This must work even if \$libdir does not exist.
9237hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9238
John Criswell47fdd832003-07-14 16:52:07 +00009239# If ld is used when linking, flag to hardcode \$libdir into
9240# a binary during linking. This must work even if \$libdir does
9241# not exist.
9242hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9243
John Criswell7a73b802003-06-30 21:59:07 +00009244# Whether we need a single -rpath flag with a separated argument.
9245hardcode_libdir_separator=$lt_hardcode_libdir_separator
9246
John Criswell47fdd832003-07-14 16:52:07 +00009247# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
John Criswell7a73b802003-06-30 21:59:07 +00009248# resulting binary.
9249hardcode_direct=$hardcode_direct
9250
9251# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9252# resulting binary.
9253hardcode_minus_L=$hardcode_minus_L
9254
9255# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9256# the resulting binary.
9257hardcode_shlibpath_var=$hardcode_shlibpath_var
9258
John Criswell47fdd832003-07-14 16:52:07 +00009259# Set to yes if building a shared library automatically hardcodes DIR into the library
9260# and all subsequent libraries and executables linked against it.
9261hardcode_automatic=$hardcode_automatic
9262
John Criswell7a73b802003-06-30 21:59:07 +00009263# Variables whose values should be saved in libtool wrapper scripts and
9264# restored at relink time.
9265variables_saved_for_relink="$variables_saved_for_relink"
9266
9267# Whether libtool must link a program against all its dependency libraries.
9268link_all_deplibs=$link_all_deplibs
9269
9270# Compile-time system search path for libraries
9271sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9272
9273# Run-time system search path for libraries
9274sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9275
9276# Fix the shell variable \$srcfile for the compiler.
9277fix_srcfile_path="$fix_srcfile_path"
9278
9279# Set to yes if exported symbols are required.
9280always_export_symbols=$always_export_symbols
9281
9282# The commands to list exported symbols.
9283export_symbols_cmds=$lt_export_symbols_cmds
9284
9285# The commands to extract the exported symbol list from a shared archive.
9286extract_expsyms_cmds=$lt_extract_expsyms_cmds
9287
9288# Symbols that should not be listed in the preloaded symbols.
9289exclude_expsyms=$lt_exclude_expsyms
9290
9291# Symbols that must always be exported.
9292include_expsyms=$lt_include_expsyms
9293
9294# ### END LIBTOOL CONFIG
9295
9296__EOF__
9297
John Criswell47fdd832003-07-14 16:52:07 +00009298
John Criswell7a73b802003-06-30 21:59:07 +00009299 case $host_os in
9300 aix3*)
John Criswell47fdd832003-07-14 16:52:07 +00009301 cat <<\EOF >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +00009302
9303# AIX sometimes has problems with the GCC collect2 program. For some
9304# reason, if we set the COLLECT_NAMES environment variable, the problems
9305# vanish in a puff of smoke.
9306if test "X${COLLECT_NAMES+set}" != Xset; then
9307 COLLECT_NAMES=
9308 export COLLECT_NAMES
9309fi
9310EOF
9311 ;;
9312 esac
9313
John Criswell7a73b802003-06-30 21:59:07 +00009314 # We use sed instead of cat because bash on DJGPP gets confused if
9315 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9316 # text mode, it properly converts lines to CR/LF. This bash problem
9317 # is reportedly fixed, but why not run on old versions too?
John Criswell47fdd832003-07-14 16:52:07 +00009318 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
John Criswell7a73b802003-06-30 21:59:07 +00009319
John Criswell47fdd832003-07-14 16:52:07 +00009320 mv -f "$cfgfile" "$ofile" || \
9321 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
John Criswell7a73b802003-06-30 21:59:07 +00009322 chmod +x "$ofile"
John Criswell47fdd832003-07-14 16:52:07 +00009323
9324else
9325 # If there is no Makefile yet, we rely on a make rule to execute
9326 # `config.status --recheck' to rerun these tests and create the
9327 # libtool script then.
9328 test -f Makefile && make "$ltmain"
John Criswell7a73b802003-06-30 21:59:07 +00009329fi
John Criswell7a73b802003-06-30 21:59:07 +00009330
9331
John Criswell47fdd832003-07-14 16:52:07 +00009332ac_ext=c
9333ac_cpp='$CPP $CPPFLAGS'
9334ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9335ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9336ac_compiler_gnu=$ac_cv_c_compiler_gnu
9337
9338CC="$lt_save_CC"
9339
9340
9341# Check whether --with-tags or --without-tags was given.
9342if test "${with_tags+set}" = set; then
9343 withval="$with_tags"
9344 tagnames="$withval"
9345fi;
9346
9347if test -f "$ltmain" && test -n "$tagnames"; then
9348 if test ! -f "${ofile}"; then
9349 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9350echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9351 fi
9352
9353 if test -z "$LTCC"; then
9354 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9355 if test -z "$LTCC"; then
9356 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9357echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9358 else
9359 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9360echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9361 fi
9362 fi
9363
9364 # Extract list of available tagged configurations in $ofile.
9365 # Note that this assumes the entire list is on one line.
9366 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9367
9368 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9369 for tagname in $tagnames; do
9370 IFS="$lt_save_ifs"
9371 # Check whether tagname contains only valid characters
9372 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9373 "") ;;
9374 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9375echo "$as_me: error: invalid tag name: $tagname" >&2;}
9376 { (exit 1); exit 1; }; }
9377 ;;
9378 esac
9379
9380 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9381 then
9382 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9383echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9384 { (exit 1); exit 1; }; }
9385 fi
9386
9387 # Update the list of available tags.
9388 if test -n "$tagname"; then
9389 echo appending configuration tag \"$tagname\" to $ofile
9390
9391 case $tagname in
9392 CXX)
9393 if test -n "$CXX" && test "X$CXX" != "Xno"; then
9394 ac_ext=cc
9395ac_cpp='$CXXCPP $CPPFLAGS'
9396ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9397ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9398ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9399
9400
9401
9402
9403archive_cmds_need_lc_CXX=no
9404allow_undefined_flag_CXX=
9405always_export_symbols_CXX=no
9406archive_expsym_cmds_CXX=
9407export_dynamic_flag_spec_CXX=
9408hardcode_direct_CXX=no
9409hardcode_libdir_flag_spec_CXX=
9410hardcode_libdir_flag_spec_ld_CXX=
9411hardcode_libdir_separator_CXX=
9412hardcode_minus_L_CXX=no
9413hardcode_automatic_CXX=no
9414module_cmds_CXX=
9415module_expsym_cmds_CXX=
9416link_all_deplibs_CXX=unknown
9417old_archive_cmds_CXX=$old_archive_cmds
9418no_undefined_flag_CXX=
9419whole_archive_flag_spec_CXX=
9420enable_shared_with_static_runtimes_CXX=no
9421
9422# Dependencies to place before and after the object being linked:
9423predep_objects_CXX=
9424postdep_objects_CXX=
9425predeps_CXX=
9426postdeps_CXX=
9427compiler_lib_search_path_CXX=
9428
9429# Source file extension for C++ test sources.
9430ac_ext=cc
9431
9432# Object file extension for compiled C++ test sources.
9433objext=o
9434objext_CXX=$objext
9435
9436# Code to be used in simple compile tests
9437lt_simple_compile_test_code="int some_variable = 0;\n"
9438
9439# Code to be used in simple link tests
9440lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9441
9442# ltmain only uses $CC for tagged configurations so make sure $CC is set.
9443
9444# If no C compiler was specified, use CC.
9445LTCC=${LTCC-"$CC"}
9446
9447# Allow CC to be a program name with arguments.
9448compiler=$CC
9449
9450
9451# Allow CC to be a program name with arguments.
9452lt_save_CC=$CC
9453lt_save_LD=$LD
9454lt_save_GCC=$GCC
9455GCC=$GXX
9456lt_save_with_gnu_ld=$with_gnu_ld
9457lt_save_path_LD=$lt_cv_path_LD
9458if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9459 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9460else
9461 unset lt_cv_prog_gnu_ld
9462fi
9463if test -n "${lt_cv_path_LDCXX+set}"; then
9464 lt_cv_path_LD=$lt_cv_path_LDCXX
9465else
9466 unset lt_cv_path_LD
9467fi
9468test -z "${LDCXX+set}" || LD=$LDCXX
9469CC=${CXX-"c++"}
9470compiler=$CC
9471compiler_CXX=$CC
9472cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9473
9474# We don't want -fno-exception wen compiling C++ code, so set the
9475# no_builtin_flag separately
9476if test "$GXX" = yes; then
9477 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9478else
9479 lt_prog_compiler_no_builtin_flag_CXX=
9480fi
9481
9482if test "$GXX" = yes; then
9483 # Set up default GNU C++ configuration
9484
9485
9486# Check whether --with-gnu-ld or --without-gnu-ld was given.
9487if test "${with_gnu_ld+set}" = set; then
9488 withval="$with_gnu_ld"
9489 test "$withval" = no || with_gnu_ld=yes
9490else
9491 with_gnu_ld=no
9492fi;
9493ac_prog=ld
9494if test "$GCC" = yes; then
9495 # Check if gcc -print-prog-name=ld gives a path.
9496 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9497echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9498 case $host in
9499 *-*-mingw*)
9500 # gcc leaves a trailing carriage return which upsets mingw
9501 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9502 *)
9503 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9504 esac
9505 case $ac_prog in
9506 # Accept absolute paths.
9507 [\\/]* | ?:[\\/]*)
9508 re_direlt='/[^/][^/]*/\.\./'
9509 # Canonicalize the path of ld
9510 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9511 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9512 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9513 done
9514 test -z "$LD" && LD="$ac_prog"
9515 ;;
9516 "")
9517 # If it fails, then pretend we aren't using GCC.
9518 ac_prog=ld
9519 ;;
9520 *)
9521 # If it is relative, then search for the first ld in PATH.
9522 with_gnu_ld=unknown
9523 ;;
9524 esac
9525elif test "$with_gnu_ld" = yes; then
9526 echo "$as_me:$LINENO: checking for GNU ld" >&5
9527echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9528else
9529 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9530echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9531fi
9532if test "${lt_cv_path_LD+set}" = set; then
9533 echo $ECHO_N "(cached) $ECHO_C" >&6
9534else
9535 if test -z "$LD"; then
9536 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9537 for ac_dir in $PATH; do
9538 IFS="$lt_save_ifs"
9539 test -z "$ac_dir" && ac_dir=.
9540 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9541 lt_cv_path_LD="$ac_dir/$ac_prog"
9542 # Check to see if the program is GNU ld. I'd rather use --version,
9543 # but apparently some GNU ld's only accept -v.
9544 # Break only if it was the GNU/non-GNU ld that we prefer.
9545 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9546 *GNU* | *'with BFD'*)
9547 test "$with_gnu_ld" != no && break
9548 ;;
9549 *)
9550 test "$with_gnu_ld" != yes && break
9551 ;;
9552 esac
9553 fi
9554 done
9555 IFS="$lt_save_ifs"
9556else
9557 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9558fi
9559fi
9560
9561LD="$lt_cv_path_LD"
9562if test -n "$LD"; then
9563 echo "$as_me:$LINENO: result: $LD" >&5
9564echo "${ECHO_T}$LD" >&6
9565else
9566 echo "$as_me:$LINENO: result: no" >&5
9567echo "${ECHO_T}no" >&6
9568fi
9569test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9570echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9571 { (exit 1); exit 1; }; }
9572echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9573echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9574if test "${lt_cv_prog_gnu_ld+set}" = set; then
9575 echo $ECHO_N "(cached) $ECHO_C" >&6
9576else
9577 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9578case `"$LD" -v 2>&1 </dev/null` in
9579*GNU* | *'with BFD'*)
9580 lt_cv_prog_gnu_ld=yes
9581 ;;
9582*)
9583 lt_cv_prog_gnu_ld=no
9584 ;;
9585esac
9586fi
9587echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9588echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9589with_gnu_ld=$lt_cv_prog_gnu_ld
9590
9591
9592
9593 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9594 # archiving commands below assume that GNU ld is being used.
9595 if test "$with_gnu_ld" = yes; then
9596 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9597 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'
9598
9599 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9600 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9601
9602 # If archive_cmds runs LD, not CC, wlarc should be empty
9603 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9604 # investigate it a little bit more. (MM)
9605 wlarc='${wl}'
9606
9607 # ancient GNU ld didn't support --whole-archive et. al.
9608 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9609 grep 'no-whole-archive' > /dev/null; then
9610 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9611 else
9612 whole_archive_flag_spec_CXX=
9613 fi
9614 else
9615 with_gnu_ld=no
9616 wlarc=
9617
9618 # A generic and very simple default shared library creation
9619 # command for GNU C++ for the case where it uses the native
9620 # linker, instead of GNU ld. If possible, this setting should
9621 # overridden to take advantage of the native linker features on
9622 # the platform it is being used on.
9623 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9624 fi
9625
9626 # Commands to make compiler produce verbose output that lists
9627 # what "hidden" libraries, object files and flags are used when
9628 # linking a shared library.
9629 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9630
9631else
9632 GXX=no
9633 with_gnu_ld=no
9634 wlarc=
9635fi
9636
9637# PORTME: fill in a description of your system's C++ link characteristics
9638echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9639echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9640ld_shlibs_CXX=yes
9641case $host_os in
9642 aix3*)
9643 # FIXME: insert proper C++ library support
9644 ld_shlibs_CXX=no
9645 ;;
9646 aix4* | aix5*)
9647 if test "$host_cpu" = ia64; then
9648 # On IA64, the linker does run time linking by default, so we don't
9649 # have to do anything special.
9650 aix_use_runtimelinking=no
9651 exp_sym_flag='-Bexport'
9652 no_entry_flag=""
9653 else
9654 aix_use_runtimelinking=no
9655
9656 # Test if we are trying to use run time linking or normal
9657 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9658 # need to do runtime linking.
9659 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9660 for ld_flag in $LDFLAGS; do
9661 case $ld_flag in
9662 *-brtl*)
9663 aix_use_runtimelinking=yes
9664 break
9665 ;;
9666 esac
9667 done
9668 esac
9669
9670 exp_sym_flag='-bexport'
9671 no_entry_flag='-bnoentry'
9672 fi
9673
9674 # When large executables or shared objects are built, AIX ld can
9675 # have problems creating the table of contents. If linking a library
9676 # or program results in "error TOC overflow" add -mminimal-toc to
9677 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9678 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9679
9680 archive_cmds_CXX=''
9681 hardcode_direct_CXX=yes
9682 hardcode_libdir_separator_CXX=':'
9683 link_all_deplibs_CXX=yes
9684
9685 if test "$GXX" = yes; then
9686 case $host_os in aix4.012|aix4.012.*)
9687 # We only want to do this on AIX 4.2 and lower, the check
9688 # below for broken collect2 doesn't work under 4.3+
9689 collect2name=`${CC} -print-prog-name=collect2`
9690 if test -f "$collect2name" && \
9691 strings "$collect2name" | grep resolve_lib_name >/dev/null
9692 then
9693 # We have reworked collect2
9694 hardcode_direct_CXX=yes
9695 else
9696 # We have old collect2
9697 hardcode_direct_CXX=unsupported
9698 # It fails to find uninstalled libraries when the uninstalled
9699 # path is not listed in the libpath. Setting hardcode_minus_L
9700 # to unsupported forces relinking
9701 hardcode_minus_L_CXX=yes
9702 hardcode_libdir_flag_spec_CXX='-L$libdir'
9703 hardcode_libdir_separator_CXX=
9704 fi
9705 esac
9706 shared_flag='-shared'
9707 else
9708 # not using gcc
9709 if test "$host_cpu" = ia64; then
9710 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9711 # chokes on -Wl,-G. The following line is correct:
9712 shared_flag='-G'
9713 else
9714 if test "$aix_use_runtimelinking" = yes; then
9715 shared_flag='${wl}-G'
9716 else
9717 shared_flag='${wl}-bM:SRE'
9718 fi
9719 fi
9720 fi
9721
9722 # It seems that -bexpall does not export symbols beginning with
9723 # underscore (_), so it is better to generate a list of symbols to export.
9724 always_export_symbols_CXX=yes
9725 if test "$aix_use_runtimelinking" = yes; then
9726 # Warning - without using the other runtime loading flags (-brtl),
9727 # -berok will link without error, but may produce a broken library.
9728 allow_undefined_flag_CXX='-berok'
9729 # Determine the default libpath from the value encoded in an empty executable.
9730 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00009731/* confdefs.h. */
9732_ACEOF
9733cat confdefs.h >>conftest.$ac_ext
9734cat >>conftest.$ac_ext <<_ACEOF
9735/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00009736
John Criswell47fdd832003-07-14 16:52:07 +00009737int
9738main ()
9739{
9740
9741 ;
9742 return 0;
9743}
9744_ACEOF
9745rm -f conftest.$ac_objext conftest$ac_exeext
9746if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +00009747 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +00009748 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +00009749 grep -v '^ *+' conftest.er1 >conftest.err
9750 rm -f conftest.er1
9751 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +00009752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9753 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +00009754 { ac_try='test -z "$ac_cxx_werror_flag"
9755 || test ! -s conftest.err'
9756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9757 (eval $ac_try) 2>&5
9758 ac_status=$?
9759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9760 (exit $ac_status); }; } &&
9761 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +00009762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9763 (eval $ac_try) 2>&5
9764 ac_status=$?
9765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9766 (exit $ac_status); }; }; then
9767
9768aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9769}'`
9770# Check for a 64-bit object if we didn't find anything.
9771if 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; }
9772}'`; fi
9773else
9774 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00009775sed 's/^/| /' conftest.$ac_ext >&5
9776
John Criswell47fdd832003-07-14 16:52:07 +00009777fi
Reid Spencer2b51a082004-08-04 00:34:49 +00009778rm -f conftest.err conftest.$ac_objext \
9779 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +00009780if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9781
9782 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9783
9784 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"
9785 else
9786 if test "$host_cpu" = ia64; then
9787 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9788 allow_undefined_flag_CXX="-z nodefs"
9789 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"
9790 else
9791 # Determine the default libpath from the value encoded in an empty executable.
9792 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00009793/* confdefs.h. */
9794_ACEOF
9795cat confdefs.h >>conftest.$ac_ext
9796cat >>conftest.$ac_ext <<_ACEOF
9797/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00009798
John Criswell47fdd832003-07-14 16:52:07 +00009799int
9800main ()
9801{
9802
9803 ;
9804 return 0;
9805}
9806_ACEOF
9807rm -f conftest.$ac_objext conftest$ac_exeext
9808if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +00009809 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +00009810 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +00009811 grep -v '^ *+' conftest.er1 >conftest.err
9812 rm -f conftest.er1
9813 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +00009814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9815 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +00009816 { ac_try='test -z "$ac_cxx_werror_flag"
9817 || test ! -s conftest.err'
9818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9819 (eval $ac_try) 2>&5
9820 ac_status=$?
9821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9822 (exit $ac_status); }; } &&
9823 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +00009824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9825 (eval $ac_try) 2>&5
9826 ac_status=$?
9827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9828 (exit $ac_status); }; }; then
9829
9830aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9831}'`
9832# Check for a 64-bit object if we didn't find anything.
9833if 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; }
9834}'`; fi
9835else
9836 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00009837sed 's/^/| /' conftest.$ac_ext >&5
9838
John Criswell47fdd832003-07-14 16:52:07 +00009839fi
Reid Spencer2b51a082004-08-04 00:34:49 +00009840rm -f conftest.err conftest.$ac_objext \
9841 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +00009842if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9843
9844 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9845 # Warning - without using the other run time loading flags,
9846 # -berok will link without error, but may produce a broken library.
9847 no_undefined_flag_CXX=' ${wl}-bernotok'
9848 allow_undefined_flag_CXX=' ${wl}-berok'
9849 # -bexpall does not export symbols beginning with underscore (_)
9850 always_export_symbols_CXX=yes
9851 # Exported symbols can be pulled into shared objects from archives
9852 whole_archive_flag_spec_CXX=' '
9853 archive_cmds_need_lc_CXX=yes
9854 # This is similar to how AIX traditionally builds it's shared libraries.
9855 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'
9856 fi
9857 fi
9858 ;;
9859 chorus*)
9860 case $cc_basename in
9861 *)
9862 # FIXME: insert proper C++ library support
9863 ld_shlibs_CXX=no
9864 ;;
9865 esac
9866 ;;
9867
9868 cygwin* | mingw* | pw32*)
9869 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9870 # as there is no search path for DLLs.
9871 hardcode_libdir_flag_spec_CXX='-L$libdir'
9872 allow_undefined_flag_CXX=unsupported
9873 always_export_symbols_CXX=no
9874 enable_shared_with_static_runtimes_CXX=yes
9875
9876 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9877 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'
9878 # If the export-symbols file already is a .def file (1st line
9879 # is EXPORTS), use it as is; otherwise, prepend...
9880 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9881 cp $export_symbols $output_objdir/$soname.def;
9882 else
9883 echo EXPORTS > $output_objdir/$soname.def;
9884 cat $export_symbols >> $output_objdir/$soname.def;
9885 fi~
9886 $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'
9887 else
9888 ld_shlibs_CXX=no
9889 fi
9890 ;;
9891
9892 darwin* | rhapsody*)
9893 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
9894 archive_cmds_need_lc_CXX=no
9895 case "$host_os" in
9896 rhapsody* | darwin1.[012])
9897 allow_undefined_flag_CXX='-undefined suppress'
9898 ;;
9899 *) # Darwin 1.3 on
9900 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9901 ;;
9902 esac
9903 lt_int_apple_cc_single_mod=no
9904 output_verbose_link_cmd='echo'
9905 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9906 lt_int_apple_cc_single_mod=yes
9907 fi
9908 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9909 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9910 else
9911 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'
9912 fi
9913 module_cmds_CXX='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
9914
9915 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9916 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9917 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}'
9918 else
9919 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}'
9920 fi
9921 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}'
9922 hardcode_direct_CXX=no
9923 hardcode_automatic_CXX=yes
9924 hardcode_shlibpath_var_CXX=unsupported
9925 whole_archive_flag_spec_CXX='-all_load $convenience'
9926 link_all_deplibs_CXX=yes
9927 fi
9928 ;;
9929
9930 dgux*)
9931 case $cc_basename in
9932 ec++)
9933 # FIXME: insert proper C++ library support
9934 ld_shlibs_CXX=no
9935 ;;
9936 ghcx)
9937 # Green Hills C++ Compiler
9938 # FIXME: insert proper C++ library support
9939 ld_shlibs_CXX=no
9940 ;;
9941 *)
9942 # FIXME: insert proper C++ library support
9943 ld_shlibs_CXX=no
9944 ;;
9945 esac
9946 ;;
9947 freebsd12*)
9948 # C++ shared libraries reported to be fairly broken before switch to ELF
9949 ld_shlibs_CXX=no
9950 ;;
9951 freebsd-elf*)
9952 archive_cmds_need_lc_CXX=no
9953 ;;
9954 freebsd*)
9955 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9956 # conventions
9957 ld_shlibs_CXX=yes
9958 ;;
9959 gnu*)
9960 ;;
9961 hpux9*)
9962 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9963 hardcode_libdir_separator_CXX=:
9964 export_dynamic_flag_spec_CXX='${wl}-E'
9965 hardcode_direct_CXX=yes
9966 hardcode_minus_L_CXX=yes # Not in the search PATH,
9967 # but as the default
9968 # location of the library.
9969
9970 case $cc_basename in
9971 CC)
9972 # FIXME: insert proper C++ library support
9973 ld_shlibs_CXX=no
9974 ;;
9975 aCC)
9976 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'
9977 # Commands to make compiler produce verbose output that lists
9978 # what "hidden" libraries, object files and flags are used when
9979 # linking a shared library.
9980 #
9981 # There doesn't appear to be a way to prevent this compiler from
9982 # explicitly linking system object files so we need to strip them
9983 # from the output so that they don't get included in the library
9984 # dependencies.
9985 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'
9986 ;;
9987 *)
9988 if test "$GXX" = yes; then
9989 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'
9990 else
9991 # FIXME: insert proper C++ library support
9992 ld_shlibs_CXX=no
9993 fi
9994 ;;
9995 esac
9996 ;;
9997 hpux10*|hpux11*)
9998 if test $with_gnu_ld = no; then
9999 case "$host_cpu" in
10000 hppa*64*)
10001 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10002 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10003 hardcode_libdir_separator_CXX=:
10004 ;;
10005 ia64*)
10006 hardcode_libdir_flag_spec_CXX='-L$libdir'
10007 ;;
10008 *)
10009 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10010 hardcode_libdir_separator_CXX=:
10011 export_dynamic_flag_spec_CXX='${wl}-E'
10012 ;;
10013 esac
10014 fi
10015 case "$host_cpu" in
10016 hppa*64*)
10017 hardcode_direct_CXX=no
10018 hardcode_shlibpath_var_CXX=no
10019 ;;
10020 ia64*)
10021 hardcode_direct_CXX=no
10022 hardcode_shlibpath_var_CXX=no
10023 hardcode_minus_L_CXX=yes # Not in the search PATH,
10024 # but as the default
10025 # location of the library.
10026 ;;
10027 *)
10028 hardcode_direct_CXX=yes
10029 hardcode_minus_L_CXX=yes # Not in the search PATH,
10030 # but as the default
10031 # location of the library.
10032 ;;
10033 esac
10034
10035 case $cc_basename in
10036 CC)
10037 # FIXME: insert proper C++ library support
10038 ld_shlibs_CXX=no
10039 ;;
10040 aCC)
10041 case "$host_cpu" in
10042 hppa*64*|ia64*)
10043 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10044 ;;
10045 *)
10046 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10047 ;;
10048 esac
10049 # Commands to make compiler produce verbose output that lists
10050 # what "hidden" libraries, object files and flags are used when
10051 # linking a shared library.
10052 #
10053 # There doesn't appear to be a way to prevent this compiler from
10054 # explicitly linking system object files so we need to strip them
10055 # from the output so that they don't get included in the library
10056 # dependencies.
10057 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'
10058 ;;
10059 *)
10060 if test "$GXX" = yes; then
10061 if test $with_gnu_ld = no; then
10062 case "$host_cpu" in
10063 ia64*|hppa*64*)
10064 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10065 ;;
10066 *)
10067 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'
10068 ;;
10069 esac
10070 fi
10071 else
10072 # FIXME: insert proper C++ library support
10073 ld_shlibs_CXX=no
10074 fi
10075 ;;
10076 esac
10077 ;;
10078 irix5* | irix6*)
10079 case $cc_basename in
10080 CC)
10081 # SGI C++
10082 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'
10083
10084 # Archives containing C++ object files must be created using
10085 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10086 # necessary to make sure instantiated templates are included
10087 # in the archive.
10088 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10089 ;;
10090 *)
10091 if test "$GXX" = yes; then
10092 if test "$with_gnu_ld" = no; then
10093 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'
10094 else
10095 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'
10096 fi
10097 fi
10098 link_all_deplibs_CXX=yes
10099 ;;
10100 esac
10101 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10102 hardcode_libdir_separator_CXX=:
10103 ;;
10104 linux*)
10105 case $cc_basename in
10106 KCC)
10107 # Kuck and Associates, Inc. (KAI) C++ Compiler
10108
10109 # KCC will only create a shared library if the output file
10110 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10111 # to its proper name (with version) after linking.
10112 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'
10113 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'
10114 # Commands to make compiler produce verbose output that lists
10115 # what "hidden" libraries, object files and flags are used when
10116 # linking a shared library.
10117 #
10118 # There doesn't appear to be a way to prevent this compiler from
10119 # explicitly linking system object files so we need to strip them
10120 # from the output so that they don't get included in the library
10121 # dependencies.
10122 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'
10123
10124 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10125 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10126
10127 # Archives containing C++ object files must be created using
10128 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10129 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10130 ;;
10131 icpc)
10132 # Intel C++
10133 with_gnu_ld=yes
10134 archive_cmds_need_lc_CXX=no
10135 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10136 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'
10137 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10138 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10139 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10140 ;;
10141 cxx)
10142 # Compaq C++
10143 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10144 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'
10145
10146 runpath_var=LD_RUN_PATH
10147 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10148 hardcode_libdir_separator_CXX=:
10149
10150 # Commands to make compiler produce verbose output that lists
10151 # what "hidden" libraries, object files and flags are used when
10152 # linking a shared library.
10153 #
10154 # There doesn't appear to be a way to prevent this compiler from
10155 # explicitly linking system object files so we need to strip them
10156 # from the output so that they don't get included in the library
10157 # dependencies.
10158 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'
10159 ;;
10160 esac
10161 ;;
10162 lynxos*)
10163 # FIXME: insert proper C++ library support
10164 ld_shlibs_CXX=no
10165 ;;
10166 m88k*)
10167 # FIXME: insert proper C++ library support
10168 ld_shlibs_CXX=no
10169 ;;
10170 mvs*)
10171 case $cc_basename in
10172 cxx)
10173 # FIXME: insert proper C++ library support
10174 ld_shlibs_CXX=no
10175 ;;
10176 *)
10177 # FIXME: insert proper C++ library support
10178 ld_shlibs_CXX=no
10179 ;;
10180 esac
10181 ;;
10182 netbsd*)
10183 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10184 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10185 wlarc=
10186 hardcode_libdir_flag_spec_CXX='-R$libdir'
10187 hardcode_direct_CXX=yes
10188 hardcode_shlibpath_var_CXX=no
10189 fi
10190 # Workaround some broken pre-1.5 toolchains
10191 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10192 ;;
10193 osf3*)
10194 case $cc_basename in
10195 KCC)
10196 # Kuck and Associates, Inc. (KAI) C++ Compiler
10197
10198 # KCC will only create a shared library if the output file
10199 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10200 # to its proper name (with version) after linking.
10201 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'
10202
10203 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10204 hardcode_libdir_separator_CXX=:
10205
10206 # Archives containing C++ object files must be created using
10207 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10208 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10209
10210 ;;
10211 RCC)
10212 # Rational C++ 2.4.1
10213 # FIXME: insert proper C++ library support
10214 ld_shlibs_CXX=no
10215 ;;
10216 cxx)
10217 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10218 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'
10219
10220 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10221 hardcode_libdir_separator_CXX=:
10222
10223 # Commands to make compiler produce verbose output that lists
10224 # what "hidden" libraries, object files and flags are used when
10225 # linking a shared library.
10226 #
10227 # There doesn't appear to be a way to prevent this compiler from
10228 # explicitly linking system object files so we need to strip them
10229 # from the output so that they don't get included in the library
10230 # dependencies.
10231 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'
10232 ;;
10233 *)
10234 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10235 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10236 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'
10237
10238 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10239 hardcode_libdir_separator_CXX=:
10240
10241 # Commands to make compiler produce verbose output that lists
10242 # what "hidden" libraries, object files and flags are used when
10243 # linking a shared library.
10244 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10245
10246 else
10247 # FIXME: insert proper C++ library support
10248 ld_shlibs_CXX=no
10249 fi
10250 ;;
10251 esac
10252 ;;
10253 osf4* | osf5*)
10254 case $cc_basename in
10255 KCC)
10256 # Kuck and Associates, Inc. (KAI) C++ Compiler
10257
10258 # KCC will only create a shared library if the output file
10259 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10260 # to its proper name (with version) after linking.
10261 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'
10262
10263 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10264 hardcode_libdir_separator_CXX=:
10265
10266 # Archives containing C++ object files must be created using
10267 # the KAI C++ compiler.
10268 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10269 ;;
10270 RCC)
10271 # Rational C++ 2.4.1
10272 # FIXME: insert proper C++ library support
10273 ld_shlibs_CXX=no
10274 ;;
10275 cxx)
10276 allow_undefined_flag_CXX=' -expect_unresolved \*'
10277 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'
10278 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10279 echo "-hidden">> $lib.exp~
10280 $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~
10281 $rm $lib.exp'
10282
10283 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10284 hardcode_libdir_separator_CXX=:
10285
10286 # Commands to make compiler produce verbose output that lists
10287 # what "hidden" libraries, object files and flags are used when
10288 # linking a shared library.
10289 #
10290 # There doesn't appear to be a way to prevent this compiler from
10291 # explicitly linking system object files so we need to strip them
10292 # from the output so that they don't get included in the library
10293 # dependencies.
10294 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'
10295 ;;
10296 *)
10297 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10298 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10299 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'
10300
10301 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10302 hardcode_libdir_separator_CXX=:
10303
10304 # Commands to make compiler produce verbose output that lists
10305 # what "hidden" libraries, object files and flags are used when
10306 # linking a shared library.
10307 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10308
10309 else
10310 # FIXME: insert proper C++ library support
10311 ld_shlibs_CXX=no
10312 fi
10313 ;;
10314 esac
10315 ;;
10316 psos*)
10317 # FIXME: insert proper C++ library support
10318 ld_shlibs_CXX=no
10319 ;;
10320 sco*)
10321 archive_cmds_need_lc_CXX=no
10322 case $cc_basename in
10323 CC)
10324 # FIXME: insert proper C++ library support
10325 ld_shlibs_CXX=no
10326 ;;
10327 *)
10328 # FIXME: insert proper C++ library support
10329 ld_shlibs_CXX=no
10330 ;;
10331 esac
10332 ;;
10333 sunos4*)
10334 case $cc_basename in
10335 CC)
10336 # Sun C++ 4.x
10337 # FIXME: insert proper C++ library support
10338 ld_shlibs_CXX=no
10339 ;;
10340 lcc)
10341 # Lucid
10342 # FIXME: insert proper C++ library support
10343 ld_shlibs_CXX=no
10344 ;;
10345 *)
10346 # FIXME: insert proper C++ library support
10347 ld_shlibs_CXX=no
10348 ;;
10349 esac
10350 ;;
10351 solaris*)
10352 case $cc_basename in
10353 CC)
10354 # Sun C++ 4.2, 5.x and Centerline C++
10355 no_undefined_flag_CXX=' -zdefs'
10356 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10357 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10358 $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'
10359
10360 hardcode_libdir_flag_spec_CXX='-R$libdir'
10361 hardcode_shlibpath_var_CXX=no
10362 case $host_os in
10363 solaris2.0-5 | solaris2.0-5.*) ;;
10364 *)
10365 # The C++ compiler is used as linker so we must use $wl
10366 # flag to pass the commands to the underlying system
10367 # linker.
10368 # Supported since Solaris 2.6 (maybe 2.5.1?)
10369 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10370 ;;
10371 esac
10372 link_all_deplibs_CXX=yes
10373
10374 # Commands to make compiler produce verbose output that lists
10375 # what "hidden" libraries, object files and flags are used when
10376 # linking a shared library.
10377 #
10378 # There doesn't appear to be a way to prevent this compiler from
10379 # explicitly linking system object files so we need to strip them
10380 # from the output so that they don't get included in the library
10381 # dependencies.
10382 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'
10383
10384 # Archives containing C++ object files must be created using
10385 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10386 # necessary to make sure instantiated templates are included
10387 # in the archive.
10388 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10389 ;;
10390 gcx)
10391 # Green Hills C++ Compiler
10392 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10393
10394 # The C++ compiler must be used to create the archive.
10395 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10396 ;;
10397 *)
10398 # GNU C++ compiler with Solaris linker
10399 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10400 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10401 if $CC --version | grep -v '^2\.7' > /dev/null; then
10402 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10403 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10404 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10405
10406 # Commands to make compiler produce verbose output that lists
10407 # what "hidden" libraries, object files and flags are used when
10408 # linking a shared library.
10409 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10410 else
10411 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10412 # platform.
10413 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10414 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10415 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10416
10417 # Commands to make compiler produce verbose output that lists
10418 # what "hidden" libraries, object files and flags are used when
10419 # linking a shared library.
10420 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10421 fi
10422
10423 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10424 fi
10425 ;;
10426 esac
10427 ;;
10428 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10429 archive_cmds_need_lc_CXX=no
10430 ;;
10431 tandem*)
10432 case $cc_basename in
10433 NCC)
10434 # NonStop-UX NCC 3.20
10435 # FIXME: insert proper C++ library support
10436 ld_shlibs_CXX=no
10437 ;;
10438 *)
10439 # FIXME: insert proper C++ library support
10440 ld_shlibs_CXX=no
10441 ;;
10442 esac
10443 ;;
10444 vxworks*)
10445 # FIXME: insert proper C++ library support
10446 ld_shlibs_CXX=no
10447 ;;
10448 *)
10449 # FIXME: insert proper C++ library support
10450 ld_shlibs_CXX=no
10451 ;;
10452esac
10453echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10454echo "${ECHO_T}$ld_shlibs_CXX" >&6
10455test "$ld_shlibs_CXX" = no && can_build_shared=no
10456
10457GCC_CXX="$GXX"
10458LD_CXX="$LD"
10459
Reid Spencer2b51a082004-08-04 00:34:49 +000010460## CAVEAT EMPTOR:
10461## There is no encapsulation within the following macros, do not change
10462## the running order or otherwise move them around unless you know exactly
10463## what you are doing...
John Criswell47fdd832003-07-14 16:52:07 +000010464
10465cat > conftest.$ac_ext <<EOF
10466class Foo
10467{
10468public:
10469 Foo (void) { a = 0; }
10470private:
10471 int a;
10472};
10473EOF
10474
10475if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10476 (eval $ac_compile) 2>&5
10477 ac_status=$?
10478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10479 (exit $ac_status); }; then
10480 # Parse the compiler output and extract the necessary
10481 # objects, libraries and library flags.
10482
10483 # Sentinel used to keep track of whether or not we are before
10484 # the conftest object file.
10485 pre_test_object_deps_done=no
10486
10487 # The `*' in the case matches for architectures that use `case' in
10488 # $output_verbose_cmd can trigger glob expansion during the loop
10489 # eval without this substitution.
10490 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10491
10492 for p in `eval $output_verbose_link_cmd`; do
10493 case $p in
10494
10495 -L* | -R* | -l*)
10496 # Some compilers place space between "-{L,R}" and the path.
10497 # Remove the space.
10498 if test $p = "-L" \
10499 || test $p = "-R"; then
10500 prev=$p
10501 continue
10502 else
10503 prev=
10504 fi
10505
10506 if test "$pre_test_object_deps_done" = no; then
10507 case $p in
10508 -L* | -R*)
10509 # Internal compiler library paths should come after those
10510 # provided the user. The postdeps already come after the
10511 # user supplied libs so there is no need to process them.
10512 if test -z "$compiler_lib_search_path_CXX"; then
10513 compiler_lib_search_path_CXX="${prev}${p}"
10514 else
10515 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10516 fi
10517 ;;
10518 # The "-l" case would never come before the object being
10519 # linked, so don't bother handling this case.
10520 esac
10521 else
10522 if test -z "$postdeps_CXX"; then
10523 postdeps_CXX="${prev}${p}"
10524 else
10525 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10526 fi
10527 fi
10528 ;;
10529
10530 *.$objext)
10531 # This assumes that the test object file only shows up
10532 # once in the compiler output.
10533 if test "$p" = "conftest.$objext"; then
10534 pre_test_object_deps_done=yes
10535 continue
10536 fi
10537
10538 if test "$pre_test_object_deps_done" = no; then
10539 if test -z "$predep_objects_CXX"; then
10540 predep_objects_CXX="$p"
10541 else
10542 predep_objects_CXX="$predep_objects_CXX $p"
10543 fi
10544 else
10545 if test -z "$postdep_objects_CXX"; then
10546 postdep_objects_CXX="$p"
10547 else
10548 postdep_objects_CXX="$postdep_objects_CXX $p"
10549 fi
10550 fi
10551 ;;
10552
10553 *) ;; # Ignore the rest.
10554
10555 esac
10556 done
10557
10558 # Clean up.
10559 rm -f a.out a.exe
10560else
10561 echo "libtool.m4: error: problem compiling CXX test program"
10562fi
10563
10564$rm -f confest.$objext
10565
10566case " $postdeps_CXX " in
10567*" -lc "*) archive_cmds_need_lc_CXX=no ;;
10568esac
10569
10570lt_prog_compiler_wl_CXX=
10571lt_prog_compiler_pic_CXX=
10572lt_prog_compiler_static_CXX=
10573
10574echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10575echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10576
10577 # C++ specific cases for pic, static, wl, etc.
10578 if test "$GXX" = yes; then
10579 lt_prog_compiler_wl_CXX='-Wl,'
10580 lt_prog_compiler_static_CXX='-static'
10581
10582 case $host_os in
10583 aix*)
10584 # All AIX code is PIC.
10585 if test "$host_cpu" = ia64; then
10586 # AIX 5 now supports IA64 processor
10587 lt_prog_compiler_static_CXX='-Bstatic'
10588 fi
10589 ;;
10590 amigaos*)
10591 # FIXME: we need at least 68020 code to build shared libraries, but
10592 # adding the `-m68020' flag to GCC prevents building anything better,
10593 # like `-m68040'.
10594 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10595 ;;
10596 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10597 # PIC is the default for these OSes.
10598 ;;
10599 mingw* | os2* | pw32*)
10600 # This hack is so that the source file can tell whether it is being
10601 # built for inclusion in a dll (and should export symbols for example).
10602 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10603 ;;
10604 darwin* | rhapsody*)
10605 # PIC is the default on this platform
10606 # Common symbols not allowed in MH_DYLIB files
10607 lt_prog_compiler_pic_CXX='-fno-common'
10608 ;;
10609 *djgpp*)
10610 # DJGPP does not support shared libraries at all
10611 lt_prog_compiler_pic_CXX=
10612 ;;
10613 sysv4*MP*)
10614 if test -d /usr/nec; then
10615 lt_prog_compiler_pic_CXX=-Kconform_pic
10616 fi
10617 ;;
10618 hpux*)
10619 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10620 # not for PA HP-UX.
10621 case "$host_cpu" in
10622 hppa*64*|ia64*)
10623 ;;
10624 *)
10625 lt_prog_compiler_pic_CXX='-fPIC'
10626 ;;
10627 esac
10628 ;;
10629 *)
10630 lt_prog_compiler_pic_CXX='-fPIC'
10631 ;;
10632 esac
10633 else
10634 case $host_os in
10635 aix4* | aix5*)
10636 # All AIX code is PIC.
10637 if test "$host_cpu" = ia64; then
10638 # AIX 5 now supports IA64 processor
10639 lt_prog_compiler_static_CXX='-Bstatic'
10640 else
10641 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10642 fi
10643 ;;
10644 chorus*)
10645 case $cc_basename in
10646 cxch68)
10647 # Green Hills C++ Compiler
10648 # _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"
10649 ;;
10650 esac
10651 ;;
10652 dgux*)
10653 case $cc_basename in
10654 ec++)
10655 lt_prog_compiler_pic_CXX='-KPIC'
10656 ;;
10657 ghcx)
10658 # Green Hills C++ Compiler
10659 lt_prog_compiler_pic_CXX='-pic'
10660 ;;
10661 *)
10662 ;;
10663 esac
10664 ;;
10665 freebsd*)
10666 # FreeBSD uses GNU C++
10667 ;;
10668 hpux9* | hpux10* | hpux11*)
10669 case $cc_basename in
10670 CC)
10671 lt_prog_compiler_wl_CXX='-Wl,'
10672 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10673 if test "$host_cpu" != ia64; then
10674 lt_prog_compiler_pic_CXX='+Z'
10675 fi
10676 ;;
10677 aCC)
10678 lt_prog_compiler_wl_CXX='-Wl,'
10679 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10680 case "$host_cpu" in
10681 hppa*64*|ia64*)
10682 # +Z the default
10683 ;;
10684 *)
10685 lt_prog_compiler_pic_CXX='+Z'
10686 ;;
10687 esac
10688 ;;
10689 *)
10690 ;;
10691 esac
10692 ;;
10693 irix5* | irix6* | nonstopux*)
10694 case $cc_basename in
10695 CC)
10696 lt_prog_compiler_wl_CXX='-Wl,'
10697 lt_prog_compiler_static_CXX='-non_shared'
10698 # CC pic flag -KPIC is the default.
10699 ;;
10700 *)
10701 ;;
10702 esac
10703 ;;
10704 linux*)
10705 case $cc_basename in
10706 KCC)
10707 # KAI C++ Compiler
10708 lt_prog_compiler_wl_CXX='--backend -Wl,'
10709 lt_prog_compiler_pic_CXX='-fPIC'
10710 ;;
10711 icpc)
10712 # Intel C++
10713 lt_prog_compiler_wl_CXX='-Wl,'
10714 lt_prog_compiler_pic_CXX='-KPIC'
10715 lt_prog_compiler_static_CXX='-static'
10716 ;;
10717 cxx)
10718 # Compaq C++
10719 # Make sure the PIC flag is empty. It appears that all Alpha
10720 # Linux and Compaq Tru64 Unix objects are PIC.
10721 lt_prog_compiler_pic_CXX=
10722 lt_prog_compiler_static_CXX='-non_shared'
10723 ;;
10724 *)
10725 ;;
10726 esac
10727 ;;
10728 lynxos*)
10729 ;;
10730 m88k*)
10731 ;;
10732 mvs*)
10733 case $cc_basename in
10734 cxx)
10735 lt_prog_compiler_pic_CXX='-W c,exportall'
10736 ;;
10737 *)
10738 ;;
10739 esac
10740 ;;
10741 netbsd*)
10742 ;;
10743 osf3* | osf4* | osf5*)
10744 case $cc_basename in
10745 KCC)
10746 lt_prog_compiler_wl_CXX='--backend -Wl,'
10747 ;;
10748 RCC)
10749 # Rational C++ 2.4.1
10750 lt_prog_compiler_pic_CXX='-pic'
10751 ;;
10752 cxx)
10753 # Digital/Compaq C++
10754 lt_prog_compiler_wl_CXX='-Wl,'
10755 # Make sure the PIC flag is empty. It appears that all Alpha
10756 # Linux and Compaq Tru64 Unix objects are PIC.
10757 lt_prog_compiler_pic_CXX=
10758 lt_prog_compiler_static_CXX='-non_shared'
10759 ;;
10760 *)
10761 ;;
10762 esac
10763 ;;
10764 psos*)
10765 ;;
10766 sco*)
10767 case $cc_basename in
10768 CC)
10769 lt_prog_compiler_pic_CXX='-fPIC'
10770 ;;
10771 *)
10772 ;;
10773 esac
10774 ;;
10775 solaris*)
10776 case $cc_basename in
10777 CC)
10778 # Sun C++ 4.2, 5.x and Centerline C++
10779 lt_prog_compiler_pic_CXX='-KPIC'
10780 lt_prog_compiler_static_CXX='-Bstatic'
10781 lt_prog_compiler_wl_CXX='-Qoption ld '
10782 ;;
10783 gcx)
10784 # Green Hills C++ Compiler
10785 lt_prog_compiler_pic_CXX='-PIC'
10786 ;;
10787 *)
10788 ;;
10789 esac
10790 ;;
10791 sunos4*)
10792 case $cc_basename in
10793 CC)
10794 # Sun C++ 4.x
10795 lt_prog_compiler_pic_CXX='-pic'
10796 lt_prog_compiler_static_CXX='-Bstatic'
10797 ;;
10798 lcc)
10799 # Lucid
10800 lt_prog_compiler_pic_CXX='-pic'
10801 ;;
10802 *)
10803 ;;
10804 esac
10805 ;;
10806 tandem*)
10807 case $cc_basename in
10808 NCC)
10809 # NonStop-UX NCC 3.20
10810 lt_prog_compiler_pic_CXX='-KPIC'
10811 ;;
10812 *)
10813 ;;
10814 esac
10815 ;;
10816 unixware*)
10817 ;;
10818 vxworks*)
10819 ;;
10820 *)
10821 lt_prog_compiler_can_build_shared_CXX=no
10822 ;;
10823 esac
10824 fi
10825
10826echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10827echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10828
10829#
10830# Check to make sure the PIC flag actually works.
10831#
10832if test -n "$lt_prog_compiler_pic_CXX"; then
10833 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10834echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10835if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10836 echo $ECHO_N "(cached) $ECHO_C" >&6
10837else
10838 lt_prog_compiler_pic_works_CXX=no
10839 ac_outfile=conftest.$ac_objext
10840 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10841 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10842 # Insert the option either (1) after the last *FLAGS variable, or
10843 # (2) before a word containing "conftest.", or (3) at the end.
10844 # Note that $ac_compile itself does not contain backslashes and begins
10845 # with a dollar sign (not a hyphen), so the echo should work correctly.
10846 # The option is referenced via a variable to avoid confusing sed.
10847 lt_compile=`echo "$ac_compile" | $SED \
10848 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10849 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10850 -e 's:$: $lt_compiler_flag:'`
Reid Spencer73fb5482004-08-31 14:20:36 +000010851 (eval echo "\"\$as_me:10851: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000010852 (eval "$lt_compile" 2>conftest.err)
10853 ac_status=$?
10854 cat conftest.err >&5
Reid Spencer73fb5482004-08-31 14:20:36 +000010855 echo "$as_me:10855: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000010856 if (exit $ac_status) && test -s "$ac_outfile"; then
10857 # The compiler can only warn and ignore the option if not recognized
10858 # So say no if there are warnings
10859 if test ! -s conftest.err; then
10860 lt_prog_compiler_pic_works_CXX=yes
10861 fi
10862 fi
10863 $rm conftest*
10864
10865fi
10866echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10867echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10868
10869if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10870 case $lt_prog_compiler_pic_CXX in
10871 "" | " "*) ;;
10872 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10873 esac
10874else
10875 lt_prog_compiler_pic_CXX=
10876 lt_prog_compiler_can_build_shared_CXX=no
10877fi
10878
10879fi
10880case "$host_os" in
10881 # For platforms which do not support PIC, -DPIC is meaningless:
10882 *djgpp*)
10883 lt_prog_compiler_pic_CXX=
10884 ;;
10885 *)
10886 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10887 ;;
10888esac
10889
10890echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10891echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10892if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10893 echo $ECHO_N "(cached) $ECHO_C" >&6
10894else
10895 lt_cv_prog_compiler_c_o_CXX=no
10896 $rm -r conftest 2>/dev/null
10897 mkdir conftest
10898 cd conftest
10899 mkdir out
10900 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10901
10902 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
10903 # that will create temporary files in the current directory regardless of
10904 # the output directory. Thus, making CWD read-only will cause this test
10905 # to fail, enabling locking or at least warning the user not to do parallel
10906 # builds.
10907 chmod -w .
10908
10909 lt_compiler_flag="-o out/conftest2.$ac_objext"
10910 # Insert the option either (1) after the last *FLAGS variable, or
10911 # (2) before a word containing "conftest.", or (3) at the end.
10912 # Note that $ac_compile itself does not contain backslashes and begins
10913 # with a dollar sign (not a hyphen), so the echo should work correctly.
10914 lt_compile=`echo "$ac_compile" | $SED \
10915 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10916 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10917 -e 's:$: $lt_compiler_flag:'`
Reid Spencer73fb5482004-08-31 14:20:36 +000010918 (eval echo "\"\$as_me:10918: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000010919 (eval "$lt_compile" 2>out/conftest.err)
10920 ac_status=$?
10921 cat out/conftest.err >&5
Reid Spencer73fb5482004-08-31 14:20:36 +000010922 echo "$as_me:10922: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000010923 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10924 then
10925 # The compiler can only warn and ignore the option if not recognized
10926 # So say no if there are warnings
10927 if test ! -s out/conftest.err; then
10928 lt_cv_prog_compiler_c_o_CXX=yes
10929 fi
10930 fi
10931 chmod u+w .
10932 $rm conftest* out/*
10933 rmdir out
10934 cd ..
10935 rmdir conftest
10936 $rm conftest*
10937
10938fi
10939echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10940echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10941
10942
10943hard_links="nottested"
10944if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10945 # do not overwrite the value of need_locks provided by the user
10946 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10947echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10948 hard_links=yes
10949 $rm conftest*
10950 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10951 touch conftest.a
10952 ln conftest.a conftest.b 2>&5 || hard_links=no
10953 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10954 echo "$as_me:$LINENO: result: $hard_links" >&5
10955echo "${ECHO_T}$hard_links" >&6
10956 if test "$hard_links" = no; then
10957 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10958echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10959 need_locks=warn
10960 fi
10961else
10962 need_locks=no
10963fi
10964
10965echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10966echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10967
10968 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10969 case $host_os in
10970 aix4* | aix5*)
10971 # If we're using GNU nm, then we don't want the "-C" option.
10972 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10973 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10974 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'
10975 else
10976 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'
10977 fi
10978 ;;
10979 pw32*)
10980 export_symbols_cmds_CXX="$ltdll_cmds"
10981 ;;
10982 cygwin* | mingw*)
10983 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10984 ;;
10985 *)
10986 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10987 ;;
10988 esac
10989
10990echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10991echo "${ECHO_T}$ld_shlibs_CXX" >&6
10992test "$ld_shlibs_CXX" = no && can_build_shared=no
10993
10994variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10995if test "$GCC" = yes; then
10996 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10997fi
10998
10999#
11000# Do we need to explicitly link libc?
11001#
11002case "x$archive_cmds_need_lc_CXX" in
11003x|xyes)
11004 # Assume -lc should be added
11005 archive_cmds_need_lc_CXX=yes
11006
11007 if test "$enable_shared" = yes && test "$GCC" = yes; then
11008 case $archive_cmds_CXX in
11009 *'~'*)
11010 # FIXME: we may have to deal with multi-command sequences.
11011 ;;
11012 '$CC '*)
11013 # Test whether the compiler implicitly links with -lc since on some
11014 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11015 # to ld, don't add -lc before -lgcc.
11016 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11017echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11018 $rm conftest*
11019 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11020
11021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11022 (eval $ac_compile) 2>&5
11023 ac_status=$?
11024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11025 (exit $ac_status); } 2>conftest.err; then
11026 soname=conftest
11027 lib=conftest
11028 libobjs=conftest.$ac_objext
11029 deplibs=
11030 wl=$lt_prog_compiler_wl_CXX
11031 compiler_flags=-v
11032 linker_flags=-v
11033 verstring=
11034 output_objdir=.
11035 libname=conftest
11036 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11037 allow_undefined_flag_CXX=
11038 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11039 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11040 ac_status=$?
11041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11042 (exit $ac_status); }
11043 then
11044 archive_cmds_need_lc_CXX=no
11045 else
11046 archive_cmds_need_lc_CXX=yes
11047 fi
11048 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11049 else
11050 cat conftest.err 1>&5
11051 fi
11052 $rm conftest*
11053 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11054echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11055 ;;
11056 esac
11057 fi
11058 ;;
11059esac
11060
11061echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11062echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11063hardcode_action_CXX=
11064if test -n "$hardcode_libdir_flag_spec_CXX" || \
11065 test -n "$runpath_var CXX" || \
11066 test "X$hardcode_automatic_CXX"="Xyes" ; then
11067
11068 # We can hardcode non-existant directories.
11069 if test "$hardcode_direct_CXX" != no &&
11070 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11071 # have to relink, otherwise we might link with an installed library
11072 # when we should be linking with a yet-to-be-installed one
11073 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11074 test "$hardcode_minus_L_CXX" != no; then
11075 # Linking always hardcodes the temporary library directory.
11076 hardcode_action_CXX=relink
11077 else
11078 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11079 hardcode_action_CXX=immediate
11080 fi
11081else
11082 # We cannot hardcode anything, or else we can only hardcode existing
11083 # directories.
11084 hardcode_action_CXX=unsupported
11085fi
11086echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11087echo "${ECHO_T}$hardcode_action_CXX" >&6
11088
11089if test "$hardcode_action_CXX" = relink; then
11090 # Fast installation is not supported
11091 enable_fast_install=no
11092elif test "$shlibpath_overrides_runpath" = yes ||
11093 test "$enable_shared" = no; then
11094 # Fast installation is not necessary
11095 enable_fast_install=needless
11096fi
11097
11098striplib=
11099old_striplib=
11100echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11101echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11102if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11103 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11104 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11105 echo "$as_me:$LINENO: result: yes" >&5
11106echo "${ECHO_T}yes" >&6
11107else
11108# FIXME - insert some real tests, host_os isn't really good enough
11109 case $host_os in
11110 darwin*)
11111 if test -n "$STRIP" ; then
11112 striplib="$STRIP -x"
11113 echo "$as_me:$LINENO: result: yes" >&5
11114echo "${ECHO_T}yes" >&6
11115 else
11116 echo "$as_me:$LINENO: result: no" >&5
11117echo "${ECHO_T}no" >&6
11118fi
11119 ;;
11120 *)
11121 echo "$as_me:$LINENO: result: no" >&5
11122echo "${ECHO_T}no" >&6
11123 ;;
11124 esac
11125fi
11126
11127echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11128echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11129library_names_spec=
11130libname_spec='lib$name'
11131soname_spec=
11132shrext=".so"
11133postinstall_cmds=
11134postuninstall_cmds=
11135finish_cmds=
11136finish_eval=
11137shlibpath_var=
11138shlibpath_overrides_runpath=unknown
11139version_type=none
11140dynamic_linker="$host_os ld.so"
11141sys_lib_dlsearch_path_spec="/lib /usr/lib"
11142if test "$GCC" = yes; then
11143 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11144 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11145 # if the path contains ";" then we assume it to be the separator
11146 # otherwise default to the standard path separator (i.e. ":") - it is
11147 # assumed that no part of a normal pathname contains ";" but that should
11148 # okay in the real world where ";" in dirpaths is itself problematic.
11149 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11150 else
11151 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11152 fi
11153else
11154 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11155fi
11156need_lib_prefix=unknown
11157hardcode_into_libs=no
11158
11159# when you set need_version to no, make sure it does not cause -set_version
11160# flags to be left without arguments
11161need_version=unknown
11162
11163case $host_os in
11164aix3*)
11165 version_type=linux
11166 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11167 shlibpath_var=LIBPATH
11168
11169 # AIX 3 has no versioning support, so we append a major version to the name.
11170 soname_spec='${libname}${release}${shared_ext}$major'
11171 ;;
11172
11173aix4* | aix5*)
11174 version_type=linux
11175 need_lib_prefix=no
11176 need_version=no
11177 hardcode_into_libs=yes
11178 if test "$host_cpu" = ia64; then
11179 # AIX 5 supports IA64
11180 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11181 shlibpath_var=LD_LIBRARY_PATH
11182 else
11183 # With GCC up to 2.95.x, collect2 would create an import file
11184 # for dependence libraries. The import file would start with
11185 # the line `#! .'. This would cause the generated library to
11186 # depend on `.', always an invalid library. This was fixed in
11187 # development snapshots of GCC prior to 3.0.
11188 case $host_os in
11189 aix4 | aix4.[01] | aix4.[01].*)
11190 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11191 echo ' yes '
11192 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11193 :
11194 else
11195 can_build_shared=no
11196 fi
11197 ;;
11198 esac
11199 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11200 # soname into executable. Probably we can add versioning support to
11201 # collect2, so additional links can be useful in future.
11202 if test "$aix_use_runtimelinking" = yes; then
11203 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11204 # instead of lib<name>.a to let people know that these are not
11205 # typical AIX shared libraries.
11206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11207 else
11208 # We preserve .a as extension for shared libraries through AIX4.2
11209 # and later when we are not doing run time linking.
11210 library_names_spec='${libname}${release}.a $libname.a'
11211 soname_spec='${libname}${release}${shared_ext}$major'
11212 fi
11213 shlibpath_var=LIBPATH
11214 fi
11215 ;;
11216
11217amigaos*)
11218 library_names_spec='$libname.ixlibrary $libname.a'
11219 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11220 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'
11221 ;;
11222
11223beos*)
11224 library_names_spec='${libname}${shared_ext}'
11225 dynamic_linker="$host_os ld.so"
11226 shlibpath_var=LIBRARY_PATH
11227 ;;
11228
11229bsdi4*)
11230 version_type=linux
11231 need_version=no
11232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11233 soname_spec='${libname}${release}${shared_ext}$major'
11234 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11235 shlibpath_var=LD_LIBRARY_PATH
11236 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11237 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11238 # the default ld.so.conf also contains /usr/contrib/lib and
11239 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11240 # libtool to hard-code these into programs
11241 ;;
11242
11243cygwin* | mingw* | pw32*)
11244 version_type=windows
11245 shrext=".dll"
11246 need_version=no
11247 need_lib_prefix=no
11248
11249 case $GCC,$host_os in
11250 yes,cygwin* | yes,mingw* | yes,pw32*)
11251 library_names_spec='$libname.dll.a'
11252 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11253 postinstall_cmds='base_file=`basename \${file}`~
11254 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11255 dldir=$destdir/`dirname \$dlpath`~
11256 test -d \$dldir || mkdir -p \$dldir~
11257 $install_prog $dir/$dlname \$dldir/$dlname'
11258 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11259 dlpath=$dir/\$dldll~
11260 $rm \$dlpath'
11261 shlibpath_overrides_runpath=yes
11262
11263 case $host_os in
11264 cygwin*)
11265 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11266 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11267 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
11268 ;;
11269 mingw*)
11270 # MinGW DLLs use traditional 'lib' prefix
11271 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11272 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11273 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11274 # It is most probably a Windows format PATH printed by
11275 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11276 # path with ; separators, and with drive letters. We can handle the
11277 # drive letters (cygwin fileutils understands them), so leave them,
11278 # especially as we might pass files found there to a mingw objdump,
11279 # which wouldn't understand a cygwinified path. Ahh.
11280 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11281 else
11282 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11283 fi
11284 ;;
11285 pw32*)
11286 # pw32 DLLs use 'pw' prefix rather than 'lib'
11287 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11288 ;;
11289 esac
11290 ;;
11291
11292 *)
11293 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11294 ;;
11295 esac
11296 dynamic_linker='Win32 ld.exe'
11297 # FIXME: first we should search . and the directory the executable is in
11298 shlibpath_var=PATH
11299 ;;
11300
11301darwin* | rhapsody*)
11302 dynamic_linker="$host_os dyld"
11303 version_type=darwin
11304 need_lib_prefix=no
11305 need_version=no
11306 # FIXME: Relying on posixy $() will cause problems for
11307 # cross-compilation, but unfortunately the echo tests do not
11308 # yet detect zsh echo's removal of \ escapes.
11309 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11310 soname_spec='${libname}${release}${major}$shared_ext'
11311 shlibpath_overrides_runpath=yes
11312 shlibpath_var=DYLD_LIBRARY_PATH
11313 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
11314 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11315 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
11316 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"`
11317 fi
11318 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11319 ;;
11320
11321dgux*)
11322 version_type=linux
11323 need_lib_prefix=no
11324 need_version=no
11325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11326 soname_spec='${libname}${release}${shared_ext}$major'
11327 shlibpath_var=LD_LIBRARY_PATH
11328 ;;
11329
11330freebsd1*)
11331 dynamic_linker=no
11332 ;;
11333
11334freebsd*)
11335 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11336 version_type=freebsd-$objformat
11337 case $version_type in
11338 freebsd-elf*)
11339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11340 need_version=no
11341 need_lib_prefix=no
11342 ;;
11343 freebsd-*)
11344 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11345 need_version=yes
11346 ;;
11347 esac
11348 shlibpath_var=LD_LIBRARY_PATH
11349 case $host_os in
11350 freebsd2*)
11351 shlibpath_overrides_runpath=yes
11352 ;;
11353 freebsd3.01* | freebsdelf3.01*)
11354 shlibpath_overrides_runpath=yes
11355 hardcode_into_libs=yes
11356 ;;
11357 *) # from 3.2 on
11358 shlibpath_overrides_runpath=no
11359 hardcode_into_libs=yes
11360 ;;
11361 esac
11362 ;;
11363
11364gnu*)
11365 version_type=linux
11366 need_lib_prefix=no
11367 need_version=no
11368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11369 soname_spec='${libname}${release}${shared_ext}$major'
11370 shlibpath_var=LD_LIBRARY_PATH
11371 hardcode_into_libs=yes
11372 ;;
11373
11374hpux9* | hpux10* | hpux11*)
11375 # Give a soname corresponding to the major version so that dld.sl refuses to
11376 # link against other versions.
11377 version_type=sunos
11378 need_lib_prefix=no
11379 need_version=no
11380 case "$host_cpu" in
11381 ia64*)
11382 shrext='.so'
11383 hardcode_into_libs=yes
11384 dynamic_linker="$host_os dld.so"
11385 shlibpath_var=LD_LIBRARY_PATH
11386 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11388 soname_spec='${libname}${release}${shared_ext}$major'
11389 if test "X$HPUX_IA64_MODE" = X32; then
11390 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11391 else
11392 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11393 fi
11394 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11395 ;;
11396 hppa*64*)
11397 shrext='.sl'
11398 hardcode_into_libs=yes
11399 dynamic_linker="$host_os dld.sl"
11400 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11401 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11402 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11403 soname_spec='${libname}${release}${shared_ext}$major'
11404 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11405 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11406 ;;
11407 *)
11408 shrext='.sl'
11409 dynamic_linker="$host_os dld.sl"
11410 shlibpath_var=SHLIB_PATH
11411 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11412 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11413 soname_spec='${libname}${release}${shared_ext}$major'
11414 ;;
11415 esac
11416 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11417 postinstall_cmds='chmod 555 $lib'
11418 ;;
11419
11420irix5* | irix6* | nonstopux*)
11421 case $host_os in
11422 nonstopux*) version_type=nonstopux ;;
11423 *)
11424 if test "$lt_cv_prog_gnu_ld" = yes; then
11425 version_type=linux
11426 else
11427 version_type=irix
11428 fi ;;
11429 esac
11430 need_lib_prefix=no
11431 need_version=no
11432 soname_spec='${libname}${release}${shared_ext}$major'
11433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11434 case $host_os in
11435 irix5* | nonstopux*)
11436 libsuff= shlibsuff=
11437 ;;
11438 *)
11439 case $LD in # libtool.m4 will add one of these switches to LD
11440 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11441 libsuff= shlibsuff= libmagic=32-bit;;
11442 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11443 libsuff=32 shlibsuff=N32 libmagic=N32;;
11444 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11445 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11446 *) libsuff= shlibsuff= libmagic=never-match;;
11447 esac
11448 ;;
11449 esac
11450 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11451 shlibpath_overrides_runpath=no
11452 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11453 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11454 hardcode_into_libs=yes
11455 ;;
11456
11457# No shared lib support for Linux oldld, aout, or coff.
11458linux*oldld* | linux*aout* | linux*coff*)
11459 dynamic_linker=no
11460 ;;
11461
11462# This must be Linux ELF.
11463linux*)
11464 version_type=linux
11465 need_lib_prefix=no
11466 need_version=no
11467 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11468 soname_spec='${libname}${release}${shared_ext}$major'
11469 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11470 shlibpath_var=LD_LIBRARY_PATH
11471 shlibpath_overrides_runpath=no
11472 # This implies no fast_install, which is unacceptable.
11473 # Some rework will be needed to allow for fast_install
11474 # before this can be enabled.
11475 hardcode_into_libs=yes
11476
11477 # We used to test for /lib/ld.so.1 and disable shared libraries on
11478 # powerpc, because MkLinux only supported shared libraries with the
11479 # GNU dynamic linker. Since this was broken with cross compilers,
11480 # most powerpc-linux boxes support dynamic linking these days and
11481 # people can always --disable-shared, the test was removed, and we
11482 # assume the GNU/Linux dynamic linker is in use.
11483 dynamic_linker='GNU/Linux ld.so'
11484 ;;
11485
11486netbsd*)
11487 version_type=sunos
11488 need_lib_prefix=no
11489 need_version=no
11490 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11492 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11493 dynamic_linker='NetBSD (a.out) ld.so'
11494 else
11495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
11496 soname_spec='${libname}${release}${shared_ext}$major'
11497 dynamic_linker='NetBSD ld.elf_so'
11498 fi
11499 shlibpath_var=LD_LIBRARY_PATH
11500 shlibpath_overrides_runpath=yes
11501 hardcode_into_libs=yes
11502 ;;
11503
11504newsos6)
11505 version_type=linux
11506 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11507 shlibpath_var=LD_LIBRARY_PATH
11508 shlibpath_overrides_runpath=yes
11509 ;;
11510
11511nto-qnx)
11512 version_type=linux
11513 need_lib_prefix=no
11514 need_version=no
11515 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11516 soname_spec='${libname}${release}${shared_ext}$major'
11517 shlibpath_var=LD_LIBRARY_PATH
11518 shlibpath_overrides_runpath=yes
11519 ;;
11520
11521openbsd*)
11522 version_type=sunos
11523 need_lib_prefix=no
11524 need_version=no
11525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11526 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11527 shlibpath_var=LD_LIBRARY_PATH
11528 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11529 case $host_os in
11530 openbsd2.[89] | openbsd2.[89].*)
11531 shlibpath_overrides_runpath=no
11532 ;;
11533 *)
11534 shlibpath_overrides_runpath=yes
11535 ;;
11536 esac
11537 else
11538 shlibpath_overrides_runpath=yes
11539 fi
11540 ;;
11541
11542os2*)
11543 libname_spec='$name'
11544 shrext=".dll"
11545 need_lib_prefix=no
11546 library_names_spec='$libname${shared_ext} $libname.a'
11547 dynamic_linker='OS/2 ld.exe'
11548 shlibpath_var=LIBPATH
11549 ;;
11550
11551osf3* | osf4* | osf5*)
11552 version_type=osf
11553 need_lib_prefix=no
11554 need_version=no
11555 soname_spec='${libname}${release}${shared_ext}$major'
11556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11557 shlibpath_var=LD_LIBRARY_PATH
11558 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11559 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11560 ;;
11561
11562sco3.2v5*)
11563 version_type=osf
11564 soname_spec='${libname}${release}${shared_ext}$major'
11565 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11566 shlibpath_var=LD_LIBRARY_PATH
11567 ;;
11568
11569solaris*)
11570 version_type=linux
11571 need_lib_prefix=no
11572 need_version=no
11573 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11574 soname_spec='${libname}${release}${shared_ext}$major'
11575 shlibpath_var=LD_LIBRARY_PATH
11576 shlibpath_overrides_runpath=yes
11577 hardcode_into_libs=yes
11578 # ldd complains unless libraries are executable
11579 postinstall_cmds='chmod +x $lib'
11580 ;;
11581
11582sunos4*)
11583 version_type=sunos
11584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11585 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11586 shlibpath_var=LD_LIBRARY_PATH
11587 shlibpath_overrides_runpath=yes
11588 if test "$with_gnu_ld" = yes; then
11589 need_lib_prefix=no
11590 fi
11591 need_version=yes
11592 ;;
11593
11594sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11595 version_type=linux
11596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11597 soname_spec='${libname}${release}${shared_ext}$major'
11598 shlibpath_var=LD_LIBRARY_PATH
11599 case $host_vendor in
11600 sni)
11601 shlibpath_overrides_runpath=no
11602 need_lib_prefix=no
11603 export_dynamic_flag_spec='${wl}-Blargedynsym'
11604 runpath_var=LD_RUN_PATH
11605 ;;
11606 siemens)
11607 need_lib_prefix=no
11608 ;;
11609 motorola)
11610 need_lib_prefix=no
11611 need_version=no
11612 shlibpath_overrides_runpath=no
11613 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11614 ;;
11615 esac
11616 ;;
11617
11618sysv4*MP*)
11619 if test -d /usr/nec ;then
11620 version_type=linux
11621 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11622 soname_spec='$libname${shared_ext}.$major'
11623 shlibpath_var=LD_LIBRARY_PATH
11624 fi
11625 ;;
11626
11627uts4*)
11628 version_type=linux
11629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11630 soname_spec='${libname}${release}${shared_ext}$major'
11631 shlibpath_var=LD_LIBRARY_PATH
11632 ;;
11633
11634*)
11635 dynamic_linker=no
11636 ;;
11637esac
11638echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11639echo "${ECHO_T}$dynamic_linker" >&6
11640test "$dynamic_linker" = no && can_build_shared=no
11641
11642if test "x$enable_dlopen" != xyes; then
11643 enable_dlopen=unknown
11644 enable_dlopen_self=unknown
11645 enable_dlopen_self_static=unknown
11646else
11647 lt_cv_dlopen=no
11648 lt_cv_dlopen_libs=
11649
11650 case $host_os in
11651 beos*)
11652 lt_cv_dlopen="load_add_on"
11653 lt_cv_dlopen_libs=
11654 lt_cv_dlopen_self=yes
11655 ;;
11656
11657 mingw* | pw32*)
11658 lt_cv_dlopen="LoadLibrary"
11659 lt_cv_dlopen_libs=
11660 ;;
11661
11662 cygwin*)
11663 lt_cv_dlopen="dlopen"
11664 lt_cv_dlopen_libs=
11665 ;;
11666
11667 darwin*)
11668 # if libdl is installed we need to link against it
11669 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11670echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11671if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11672 echo $ECHO_N "(cached) $ECHO_C" >&6
11673else
11674 ac_check_lib_save_LIBS=$LIBS
11675LIBS="-ldl $LIBS"
11676cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000011677/* confdefs.h. */
11678_ACEOF
11679cat confdefs.h >>conftest.$ac_ext
11680cat >>conftest.$ac_ext <<_ACEOF
11681/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011682
11683/* Override any gcc2 internal prototype to avoid an error. */
11684#ifdef __cplusplus
11685extern "C"
11686#endif
11687/* We use char because int might match the return type of a gcc2
11688 builtin and then its argument prototype would still apply. */
11689char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011690int
11691main ()
11692{
11693dlopen ();
11694 ;
11695 return 0;
11696}
11697_ACEOF
11698rm -f conftest.$ac_objext conftest$ac_exeext
11699if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000011700 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000011701 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000011702 grep -v '^ *+' conftest.er1 >conftest.err
11703 rm -f conftest.er1
11704 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000011705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11706 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000011707 { ac_try='test -z "$ac_cxx_werror_flag"
11708 || test ! -s conftest.err'
11709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11710 (eval $ac_try) 2>&5
11711 ac_status=$?
11712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11713 (exit $ac_status); }; } &&
11714 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000011715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11716 (eval $ac_try) 2>&5
11717 ac_status=$?
11718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11719 (exit $ac_status); }; }; then
11720 ac_cv_lib_dl_dlopen=yes
11721else
11722 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011723sed 's/^/| /' conftest.$ac_ext >&5
11724
John Criswell47fdd832003-07-14 16:52:07 +000011725ac_cv_lib_dl_dlopen=no
11726fi
Reid Spencer2b51a082004-08-04 00:34:49 +000011727rm -f conftest.err conftest.$ac_objext \
11728 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000011729LIBS=$ac_check_lib_save_LIBS
11730fi
11731echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11732echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11733if test $ac_cv_lib_dl_dlopen = yes; then
11734 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11735else
11736
11737 lt_cv_dlopen="dyld"
11738 lt_cv_dlopen_libs=
11739 lt_cv_dlopen_self=yes
11740
11741fi
11742
11743 ;;
11744
11745 *)
11746 echo "$as_me:$LINENO: checking for shl_load" >&5
11747echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11748if test "${ac_cv_func_shl_load+set}" = set; then
11749 echo $ECHO_N "(cached) $ECHO_C" >&6
11750else
11751 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000011752/* confdefs.h. */
11753_ACEOF
11754cat confdefs.h >>conftest.$ac_ext
11755cat >>conftest.$ac_ext <<_ACEOF
11756/* end confdefs.h. */
Reid Spencer2b51a082004-08-04 00:34:49 +000011757/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11758 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11759#define shl_load innocuous_shl_load
11760
John Criswell47fdd832003-07-14 16:52:07 +000011761/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000011762 which can conflict with char shl_load (); below.
11763 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11764 <limits.h> exists even on freestanding compilers. */
Reid Spencer2b51a082004-08-04 00:34:49 +000011765
John Criswell0c38eaf2003-09-10 15:17:25 +000011766#ifdef __STDC__
11767# include <limits.h>
11768#else
11769# include <assert.h>
11770#endif
Reid Spencer2b51a082004-08-04 00:34:49 +000011771
11772#undef shl_load
11773
John Criswell47fdd832003-07-14 16:52:07 +000011774/* Override any gcc2 internal prototype to avoid an error. */
11775#ifdef __cplusplus
11776extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000011777{
John Criswell47fdd832003-07-14 16:52:07 +000011778#endif
11779/* We use char because int might match the return type of a gcc2
11780 builtin and then its argument prototype would still apply. */
11781char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000011782/* The GNU C library defines this for functions which it implements
11783 to always fail with ENOSYS. Some functions are actually named
11784 something starting with __ and the normal name is an alias. */
11785#if defined (__stub_shl_load) || defined (__stub___shl_load)
11786choke me
11787#else
John Criswell0c38eaf2003-09-10 15:17:25 +000011788char (*f) () = shl_load;
11789#endif
11790#ifdef __cplusplus
11791}
John Criswell47fdd832003-07-14 16:52:07 +000011792#endif
11793
John Criswell0c38eaf2003-09-10 15:17:25 +000011794int
11795main ()
11796{
11797return f != shl_load;
John Criswell47fdd832003-07-14 16:52:07 +000011798 ;
11799 return 0;
11800}
11801_ACEOF
11802rm -f conftest.$ac_objext conftest$ac_exeext
11803if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000011804 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000011805 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000011806 grep -v '^ *+' conftest.er1 >conftest.err
11807 rm -f conftest.er1
11808 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000011809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11810 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000011811 { ac_try='test -z "$ac_cxx_werror_flag"
11812 || test ! -s conftest.err'
11813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11814 (eval $ac_try) 2>&5
11815 ac_status=$?
11816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11817 (exit $ac_status); }; } &&
11818 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000011819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11820 (eval $ac_try) 2>&5
11821 ac_status=$?
11822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11823 (exit $ac_status); }; }; then
11824 ac_cv_func_shl_load=yes
11825else
11826 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011827sed 's/^/| /' conftest.$ac_ext >&5
11828
John Criswell47fdd832003-07-14 16:52:07 +000011829ac_cv_func_shl_load=no
11830fi
Reid Spencer2b51a082004-08-04 00:34:49 +000011831rm -f conftest.err conftest.$ac_objext \
11832 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000011833fi
11834echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11835echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11836if test $ac_cv_func_shl_load = yes; then
11837 lt_cv_dlopen="shl_load"
11838else
11839 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11840echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11841if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11842 echo $ECHO_N "(cached) $ECHO_C" >&6
11843else
11844 ac_check_lib_save_LIBS=$LIBS
11845LIBS="-ldld $LIBS"
11846cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000011847/* confdefs.h. */
11848_ACEOF
11849cat confdefs.h >>conftest.$ac_ext
11850cat >>conftest.$ac_ext <<_ACEOF
11851/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011852
11853/* Override any gcc2 internal prototype to avoid an error. */
11854#ifdef __cplusplus
11855extern "C"
11856#endif
11857/* We use char because int might match the return type of a gcc2
11858 builtin and then its argument prototype would still apply. */
11859char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000011860int
11861main ()
11862{
11863shl_load ();
11864 ;
11865 return 0;
11866}
11867_ACEOF
11868rm -f conftest.$ac_objext conftest$ac_exeext
11869if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000011870 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000011871 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000011872 grep -v '^ *+' conftest.er1 >conftest.err
11873 rm -f conftest.er1
11874 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000011875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11876 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000011877 { ac_try='test -z "$ac_cxx_werror_flag"
11878 || test ! -s conftest.err'
11879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11880 (eval $ac_try) 2>&5
11881 ac_status=$?
11882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11883 (exit $ac_status); }; } &&
11884 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000011885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11886 (eval $ac_try) 2>&5
11887 ac_status=$?
11888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11889 (exit $ac_status); }; }; then
11890 ac_cv_lib_dld_shl_load=yes
11891else
11892 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011893sed 's/^/| /' conftest.$ac_ext >&5
11894
John Criswell47fdd832003-07-14 16:52:07 +000011895ac_cv_lib_dld_shl_load=no
11896fi
Reid Spencer2b51a082004-08-04 00:34:49 +000011897rm -f conftest.err conftest.$ac_objext \
11898 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000011899LIBS=$ac_check_lib_save_LIBS
11900fi
11901echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11902echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11903if test $ac_cv_lib_dld_shl_load = yes; then
11904 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11905else
11906 echo "$as_me:$LINENO: checking for dlopen" >&5
11907echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11908if test "${ac_cv_func_dlopen+set}" = set; then
11909 echo $ECHO_N "(cached) $ECHO_C" >&6
11910else
11911 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000011912/* confdefs.h. */
11913_ACEOF
11914cat confdefs.h >>conftest.$ac_ext
11915cat >>conftest.$ac_ext <<_ACEOF
11916/* end confdefs.h. */
Reid Spencer2b51a082004-08-04 00:34:49 +000011917/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11918 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11919#define dlopen innocuous_dlopen
11920
John Criswell47fdd832003-07-14 16:52:07 +000011921/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000011922 which can conflict with char dlopen (); below.
11923 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11924 <limits.h> exists even on freestanding compilers. */
Reid Spencer2b51a082004-08-04 00:34:49 +000011925
John Criswell0c38eaf2003-09-10 15:17:25 +000011926#ifdef __STDC__
11927# include <limits.h>
11928#else
11929# include <assert.h>
11930#endif
Reid Spencer2b51a082004-08-04 00:34:49 +000011931
11932#undef dlopen
11933
John Criswell47fdd832003-07-14 16:52:07 +000011934/* Override any gcc2 internal prototype to avoid an error. */
11935#ifdef __cplusplus
11936extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000011937{
John Criswell47fdd832003-07-14 16:52:07 +000011938#endif
11939/* We use char because int might match the return type of a gcc2
11940 builtin and then its argument prototype would still apply. */
11941char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011942/* The GNU C library defines this for functions which it implements
11943 to always fail with ENOSYS. Some functions are actually named
11944 something starting with __ and the normal name is an alias. */
11945#if defined (__stub_dlopen) || defined (__stub___dlopen)
11946choke me
11947#else
John Criswell0c38eaf2003-09-10 15:17:25 +000011948char (*f) () = dlopen;
11949#endif
11950#ifdef __cplusplus
11951}
John Criswell47fdd832003-07-14 16:52:07 +000011952#endif
11953
John Criswell0c38eaf2003-09-10 15:17:25 +000011954int
11955main ()
11956{
11957return f != dlopen;
John Criswell47fdd832003-07-14 16:52:07 +000011958 ;
11959 return 0;
11960}
11961_ACEOF
11962rm -f conftest.$ac_objext conftest$ac_exeext
11963if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000011964 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000011965 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000011966 grep -v '^ *+' conftest.er1 >conftest.err
11967 rm -f conftest.er1
11968 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000011969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11970 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000011971 { ac_try='test -z "$ac_cxx_werror_flag"
11972 || test ! -s conftest.err'
11973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11974 (eval $ac_try) 2>&5
11975 ac_status=$?
11976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11977 (exit $ac_status); }; } &&
11978 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000011979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11980 (eval $ac_try) 2>&5
11981 ac_status=$?
11982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11983 (exit $ac_status); }; }; then
11984 ac_cv_func_dlopen=yes
11985else
11986 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011987sed 's/^/| /' conftest.$ac_ext >&5
11988
John Criswell47fdd832003-07-14 16:52:07 +000011989ac_cv_func_dlopen=no
11990fi
Reid Spencer2b51a082004-08-04 00:34:49 +000011991rm -f conftest.err conftest.$ac_objext \
11992 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000011993fi
11994echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11995echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11996if test $ac_cv_func_dlopen = yes; then
11997 lt_cv_dlopen="dlopen"
11998else
11999 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12000echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12001if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12002 echo $ECHO_N "(cached) $ECHO_C" >&6
12003else
12004 ac_check_lib_save_LIBS=$LIBS
12005LIBS="-ldl $LIBS"
12006cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012007/* confdefs.h. */
12008_ACEOF
12009cat confdefs.h >>conftest.$ac_ext
12010cat >>conftest.$ac_ext <<_ACEOF
12011/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000012012
12013/* Override any gcc2 internal prototype to avoid an error. */
12014#ifdef __cplusplus
12015extern "C"
12016#endif
12017/* We use char because int might match the return type of a gcc2
12018 builtin and then its argument prototype would still apply. */
12019char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000012020int
12021main ()
12022{
12023dlopen ();
12024 ;
12025 return 0;
12026}
12027_ACEOF
12028rm -f conftest.$ac_objext conftest$ac_exeext
12029if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000012030 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012031 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000012032 grep -v '^ *+' conftest.er1 >conftest.err
12033 rm -f conftest.er1
12034 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000012035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12036 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000012037 { ac_try='test -z "$ac_cxx_werror_flag"
12038 || test ! -s conftest.err'
12039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12040 (eval $ac_try) 2>&5
12041 ac_status=$?
12042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12043 (exit $ac_status); }; } &&
12044 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000012045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12046 (eval $ac_try) 2>&5
12047 ac_status=$?
12048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12049 (exit $ac_status); }; }; then
12050 ac_cv_lib_dl_dlopen=yes
12051else
12052 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012053sed 's/^/| /' conftest.$ac_ext >&5
12054
John Criswell47fdd832003-07-14 16:52:07 +000012055ac_cv_lib_dl_dlopen=no
12056fi
Reid Spencer2b51a082004-08-04 00:34:49 +000012057rm -f conftest.err conftest.$ac_objext \
12058 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000012059LIBS=$ac_check_lib_save_LIBS
12060fi
12061echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12062echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12063if test $ac_cv_lib_dl_dlopen = yes; then
12064 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12065else
12066 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12067echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12068if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12069 echo $ECHO_N "(cached) $ECHO_C" >&6
12070else
12071 ac_check_lib_save_LIBS=$LIBS
12072LIBS="-lsvld $LIBS"
12073cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012074/* confdefs.h. */
12075_ACEOF
12076cat confdefs.h >>conftest.$ac_ext
12077cat >>conftest.$ac_ext <<_ACEOF
12078/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000012079
12080/* Override any gcc2 internal prototype to avoid an error. */
12081#ifdef __cplusplus
12082extern "C"
12083#endif
12084/* We use char because int might match the return type of a gcc2
12085 builtin and then its argument prototype would still apply. */
12086char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000012087int
12088main ()
12089{
12090dlopen ();
12091 ;
12092 return 0;
12093}
12094_ACEOF
12095rm -f conftest.$ac_objext conftest$ac_exeext
12096if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000012097 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012098 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000012099 grep -v '^ *+' conftest.er1 >conftest.err
12100 rm -f conftest.er1
12101 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000012102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12103 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000012104 { ac_try='test -z "$ac_cxx_werror_flag"
12105 || test ! -s conftest.err'
12106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12107 (eval $ac_try) 2>&5
12108 ac_status=$?
12109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12110 (exit $ac_status); }; } &&
12111 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000012112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12113 (eval $ac_try) 2>&5
12114 ac_status=$?
12115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12116 (exit $ac_status); }; }; then
12117 ac_cv_lib_svld_dlopen=yes
12118else
12119 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012120sed 's/^/| /' conftest.$ac_ext >&5
12121
John Criswell47fdd832003-07-14 16:52:07 +000012122ac_cv_lib_svld_dlopen=no
12123fi
Reid Spencer2b51a082004-08-04 00:34:49 +000012124rm -f conftest.err conftest.$ac_objext \
12125 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000012126LIBS=$ac_check_lib_save_LIBS
12127fi
12128echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12129echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12130if test $ac_cv_lib_svld_dlopen = yes; then
12131 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12132else
12133 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12134echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12135if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12136 echo $ECHO_N "(cached) $ECHO_C" >&6
12137else
12138 ac_check_lib_save_LIBS=$LIBS
12139LIBS="-ldld $LIBS"
12140cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012141/* confdefs.h. */
12142_ACEOF
12143cat confdefs.h >>conftest.$ac_ext
12144cat >>conftest.$ac_ext <<_ACEOF
12145/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000012146
12147/* Override any gcc2 internal prototype to avoid an error. */
12148#ifdef __cplusplus
12149extern "C"
12150#endif
12151/* We use char because int might match the return type of a gcc2
12152 builtin and then its argument prototype would still apply. */
12153char dld_link ();
John Criswell47fdd832003-07-14 16:52:07 +000012154int
12155main ()
12156{
12157dld_link ();
12158 ;
12159 return 0;
12160}
12161_ACEOF
12162rm -f conftest.$ac_objext conftest$ac_exeext
12163if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000012164 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012165 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000012166 grep -v '^ *+' conftest.er1 >conftest.err
12167 rm -f conftest.er1
12168 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000012169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12170 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000012171 { ac_try='test -z "$ac_cxx_werror_flag"
12172 || test ! -s conftest.err'
12173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12174 (eval $ac_try) 2>&5
12175 ac_status=$?
12176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12177 (exit $ac_status); }; } &&
12178 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000012179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12180 (eval $ac_try) 2>&5
12181 ac_status=$?
12182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12183 (exit $ac_status); }; }; then
12184 ac_cv_lib_dld_dld_link=yes
12185else
12186 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012187sed 's/^/| /' conftest.$ac_ext >&5
12188
John Criswell47fdd832003-07-14 16:52:07 +000012189ac_cv_lib_dld_dld_link=no
12190fi
Reid Spencer2b51a082004-08-04 00:34:49 +000012191rm -f conftest.err conftest.$ac_objext \
12192 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000012193LIBS=$ac_check_lib_save_LIBS
12194fi
12195echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12196echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12197if test $ac_cv_lib_dld_dld_link = yes; then
12198 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12199fi
12200
12201
12202fi
12203
12204
12205fi
12206
12207
12208fi
12209
12210
12211fi
12212
12213
12214fi
12215
12216 ;;
12217 esac
12218
12219 if test "x$lt_cv_dlopen" != xno; then
12220 enable_dlopen=yes
12221 else
12222 enable_dlopen=no
12223 fi
12224
12225 case $lt_cv_dlopen in
12226 dlopen)
12227 save_CPPFLAGS="$CPPFLAGS"
12228 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12229
12230 save_LDFLAGS="$LDFLAGS"
12231 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12232
12233 save_LIBS="$LIBS"
12234 LIBS="$lt_cv_dlopen_libs $LIBS"
12235
12236 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12237echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12238if test "${lt_cv_dlopen_self+set}" = set; then
12239 echo $ECHO_N "(cached) $ECHO_C" >&6
12240else
12241 if test "$cross_compiling" = yes; then :
12242 lt_cv_dlopen_self=cross
12243else
12244 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12245 lt_status=$lt_dlunknown
12246 cat > conftest.$ac_ext <<EOF
Reid Spencer73fb5482004-08-31 14:20:36 +000012247#line 12247 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000012248#include "confdefs.h"
12249
12250#if HAVE_DLFCN_H
12251#include <dlfcn.h>
12252#endif
12253
12254#include <stdio.h>
12255
12256#ifdef RTLD_GLOBAL
12257# define LT_DLGLOBAL RTLD_GLOBAL
12258#else
12259# ifdef DL_GLOBAL
12260# define LT_DLGLOBAL DL_GLOBAL
12261# else
12262# define LT_DLGLOBAL 0
12263# endif
12264#endif
12265
12266/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12267 find out it does not work in some platform. */
12268#ifndef LT_DLLAZY_OR_NOW
12269# ifdef RTLD_LAZY
12270# define LT_DLLAZY_OR_NOW RTLD_LAZY
12271# else
12272# ifdef DL_LAZY
12273# define LT_DLLAZY_OR_NOW DL_LAZY
12274# else
12275# ifdef RTLD_NOW
12276# define LT_DLLAZY_OR_NOW RTLD_NOW
12277# else
12278# ifdef DL_NOW
12279# define LT_DLLAZY_OR_NOW DL_NOW
12280# else
12281# define LT_DLLAZY_OR_NOW 0
12282# endif
12283# endif
12284# endif
12285# endif
12286#endif
12287
12288#ifdef __cplusplus
12289extern "C" void exit (int);
12290#endif
12291
12292void fnord() { int i=42;}
12293int main ()
12294{
12295 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12296 int status = $lt_dlunknown;
12297
12298 if (self)
12299 {
12300 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12301 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12302 /* dlclose (self); */
12303 }
12304
12305 exit (status);
12306}
12307EOF
12308 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12309 (eval $ac_link) 2>&5
12310 ac_status=$?
12311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12312 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12313 (./conftest; exit; ) 2>/dev/null
12314 lt_status=$?
12315 case x$lt_status in
12316 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12317 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12318 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12319 esac
12320 else :
12321 # compilation failed
12322 lt_cv_dlopen_self=no
12323 fi
12324fi
12325rm -fr conftest*
12326
12327
12328fi
12329echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12330echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12331
12332 if test "x$lt_cv_dlopen_self" = xyes; then
12333 LDFLAGS="$LDFLAGS $link_static_flag"
12334 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12335echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12336if test "${lt_cv_dlopen_self_static+set}" = set; then
12337 echo $ECHO_N "(cached) $ECHO_C" >&6
12338else
12339 if test "$cross_compiling" = yes; then :
12340 lt_cv_dlopen_self_static=cross
12341else
12342 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12343 lt_status=$lt_dlunknown
12344 cat > conftest.$ac_ext <<EOF
Reid Spencer73fb5482004-08-31 14:20:36 +000012345#line 12345 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000012346#include "confdefs.h"
12347
12348#if HAVE_DLFCN_H
12349#include <dlfcn.h>
12350#endif
12351
12352#include <stdio.h>
12353
12354#ifdef RTLD_GLOBAL
12355# define LT_DLGLOBAL RTLD_GLOBAL
12356#else
12357# ifdef DL_GLOBAL
12358# define LT_DLGLOBAL DL_GLOBAL
12359# else
12360# define LT_DLGLOBAL 0
12361# endif
12362#endif
12363
12364/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12365 find out it does not work in some platform. */
12366#ifndef LT_DLLAZY_OR_NOW
12367# ifdef RTLD_LAZY
12368# define LT_DLLAZY_OR_NOW RTLD_LAZY
12369# else
12370# ifdef DL_LAZY
12371# define LT_DLLAZY_OR_NOW DL_LAZY
12372# else
12373# ifdef RTLD_NOW
12374# define LT_DLLAZY_OR_NOW RTLD_NOW
12375# else
12376# ifdef DL_NOW
12377# define LT_DLLAZY_OR_NOW DL_NOW
12378# else
12379# define LT_DLLAZY_OR_NOW 0
12380# endif
12381# endif
12382# endif
12383# endif
12384#endif
12385
12386#ifdef __cplusplus
12387extern "C" void exit (int);
12388#endif
12389
12390void fnord() { int i=42;}
12391int main ()
12392{
12393 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12394 int status = $lt_dlunknown;
12395
12396 if (self)
12397 {
12398 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12399 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12400 /* dlclose (self); */
12401 }
12402
12403 exit (status);
12404}
12405EOF
12406 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12407 (eval $ac_link) 2>&5
12408 ac_status=$?
12409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12410 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12411 (./conftest; exit; ) 2>/dev/null
12412 lt_status=$?
12413 case x$lt_status in
12414 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12415 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12416 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12417 esac
12418 else :
12419 # compilation failed
12420 lt_cv_dlopen_self_static=no
12421 fi
12422fi
12423rm -fr conftest*
12424
12425
12426fi
12427echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12428echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12429 fi
12430
12431 CPPFLAGS="$save_CPPFLAGS"
12432 LDFLAGS="$save_LDFLAGS"
12433 LIBS="$save_LIBS"
12434 ;;
12435 esac
12436
12437 case $lt_cv_dlopen_self in
12438 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12439 *) enable_dlopen_self=unknown ;;
12440 esac
12441
12442 case $lt_cv_dlopen_self_static in
12443 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12444 *) enable_dlopen_self_static=unknown ;;
12445 esac
12446fi
12447
12448
12449# The else clause should only fire when bootstrapping the
12450# libtool distribution, otherwise you forgot to ship ltmain.sh
12451# with your package, and you will get complaints that there are
12452# no rules to generate ltmain.sh.
12453if test -f "$ltmain"; then
12454 # See if we are running on zsh, and set the options which allow our commands through
12455 # without removal of \ escapes.
12456 if test -n "${ZSH_VERSION+set}" ; then
12457 setopt NO_GLOB_SUBST
12458 fi
12459 # Now quote all the things that may contain metacharacters while being
12460 # careful not to overquote the AC_SUBSTed values. We take copies of the
12461 # variables and quote the copies for generation of the libtool script.
12462 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
12463 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12464 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12465 deplibs_check_method reload_flag reload_cmds need_locks \
12466 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12467 lt_cv_sys_global_symbol_to_c_name_address \
12468 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12469 old_postinstall_cmds old_postuninstall_cmds \
12470 compiler_CXX \
12471 CC_CXX \
12472 LD_CXX \
12473 lt_prog_compiler_wl_CXX \
12474 lt_prog_compiler_pic_CXX \
12475 lt_prog_compiler_static_CXX \
12476 lt_prog_compiler_no_builtin_flag_CXX \
12477 export_dynamic_flag_spec_CXX \
12478 thread_safe_flag_spec_CXX \
12479 whole_archive_flag_spec_CXX \
12480 enable_shared_with_static_runtimes_CXX \
12481 old_archive_cmds_CXX \
12482 old_archive_from_new_cmds_CXX \
12483 predep_objects_CXX \
12484 postdep_objects_CXX \
12485 predeps_CXX \
12486 postdeps_CXX \
12487 compiler_lib_search_path_CXX \
12488 archive_cmds_CXX \
12489 archive_expsym_cmds_CXX \
12490 postinstall_cmds_CXX \
12491 postuninstall_cmds_CXX \
12492 old_archive_from_expsyms_cmds_CXX \
12493 allow_undefined_flag_CXX \
12494 no_undefined_flag_CXX \
12495 export_symbols_cmds_CXX \
12496 hardcode_libdir_flag_spec_CXX \
12497 hardcode_libdir_flag_spec_ld_CXX \
12498 hardcode_libdir_separator_CXX \
12499 hardcode_automatic_CXX \
12500 module_cmds_CXX \
12501 module_expsym_cmds_CXX \
12502 lt_cv_prog_compiler_c_o_CXX \
12503 exclude_expsyms_CXX \
12504 include_expsyms_CXX; do
12505
12506 case $var in
12507 old_archive_cmds_CXX | \
12508 old_archive_from_new_cmds_CXX | \
12509 archive_cmds_CXX | \
12510 archive_expsym_cmds_CXX | \
12511 module_cmds_CXX | \
12512 module_expsym_cmds_CXX | \
12513 old_archive_from_expsyms_cmds_CXX | \
12514 export_symbols_cmds_CXX | \
12515 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12516 postinstall_cmds | postuninstall_cmds | \
12517 old_postinstall_cmds | old_postuninstall_cmds | \
12518 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12519 # Double-quote double-evaled strings.
12520 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12521 ;;
12522 *)
12523 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12524 ;;
12525 esac
12526 done
12527
12528 case $lt_echo in
12529 *'\$0 --fallback-echo"')
12530 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12531 ;;
12532 esac
12533
12534cfgfile="$ofile"
12535
12536 cat <<__EOF__ >> "$cfgfile"
12537# ### BEGIN LIBTOOL TAG CONFIG: $tagname
12538
12539# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12540
12541# Shell to use when invoking shell scripts.
12542SHELL=$lt_SHELL
12543
12544# Whether or not to build shared libraries.
12545build_libtool_libs=$enable_shared
12546
12547# Whether or not to build static libraries.
12548build_old_libs=$enable_static
12549
12550# Whether or not to add -lc for building shared libraries.
12551build_libtool_need_lc=$archive_cmds_need_lc_CXX
12552
12553# Whether or not to disallow shared libs when runtime libs are static
12554allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12555
12556# Whether or not to optimize for fast installation.
12557fast_install=$enable_fast_install
12558
12559# The host system.
12560host_alias=$host_alias
12561host=$host
12562
12563# An echo program that does not interpret backslashes.
12564echo=$lt_echo
12565
12566# The archiver.
12567AR=$lt_AR
12568AR_FLAGS=$lt_AR_FLAGS
12569
12570# A C compiler.
12571LTCC=$lt_LTCC
12572
12573# A language-specific compiler.
12574CC=$lt_compiler_CXX
12575
12576# Is the compiler the GNU C compiler?
12577with_gcc=$GCC_CXX
12578
12579# An ERE matcher.
12580EGREP=$lt_EGREP
12581
12582# The linker used to build libraries.
12583LD=$lt_LD_CXX
12584
12585# Whether we need hard or soft links.
12586LN_S=$lt_LN_S
12587
12588# A BSD-compatible nm program.
12589NM=$lt_NM
12590
12591# A symbol stripping program
12592STRIP=$STRIP
12593
12594# Used to examine libraries when file_magic_cmd begins "file"
12595MAGIC_CMD=$MAGIC_CMD
12596
12597# Used on cygwin: DLL creation program.
12598DLLTOOL="$DLLTOOL"
12599
12600# Used on cygwin: object dumper.
12601OBJDUMP="$OBJDUMP"
12602
12603# Used on cygwin: assembler.
12604AS="$AS"
12605
12606# The name of the directory that contains temporary libtool files.
12607objdir=$objdir
12608
12609# How to create reloadable object files.
12610reload_flag=$lt_reload_flag
12611reload_cmds=$lt_reload_cmds
12612
12613# How to pass a linker flag through the compiler.
12614wl=$lt_lt_prog_compiler_wl_CXX
12615
12616# Object file suffix (normally "o").
12617objext="$ac_objext"
12618
12619# Old archive suffix (normally "a").
12620libext="$libext"
12621
12622# Shared library suffix (normally ".so").
12623shrext='$shrext'
12624
12625# Executable file suffix (normally "").
12626exeext="$exeext"
12627
12628# Additional compiler flags for building library objects.
12629pic_flag=$lt_lt_prog_compiler_pic_CXX
12630pic_mode=$pic_mode
12631
12632# What is the maximum length of a command?
12633max_cmd_len=$lt_cv_sys_max_cmd_len
12634
12635# Does compiler simultaneously support -c and -o options?
12636compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12637
12638# Must we lock files when doing compilation ?
12639need_locks=$lt_need_locks
12640
12641# Do we need the lib prefix for modules?
12642need_lib_prefix=$need_lib_prefix
12643
12644# Do we need a version for libraries?
12645need_version=$need_version
12646
12647# Whether dlopen is supported.
12648dlopen_support=$enable_dlopen
12649
12650# Whether dlopen of programs is supported.
12651dlopen_self=$enable_dlopen_self
12652
12653# Whether dlopen of statically linked programs is supported.
12654dlopen_self_static=$enable_dlopen_self_static
12655
12656# Compiler flag to prevent dynamic linking.
12657link_static_flag=$lt_lt_prog_compiler_static_CXX
12658
12659# Compiler flag to turn off builtin functions.
12660no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12661
12662# Compiler flag to allow reflexive dlopens.
12663export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12664
12665# Compiler flag to generate shared objects directly from archives.
12666whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12667
12668# Compiler flag to generate thread-safe objects.
12669thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12670
12671# Library versioning type.
12672version_type=$version_type
12673
12674# Format of library name prefix.
12675libname_spec=$lt_libname_spec
12676
12677# List of archive names. First name is the real one, the rest are links.
12678# The last name is the one that the linker finds with -lNAME.
12679library_names_spec=$lt_library_names_spec
12680
12681# The coded name of the library, if different from the real name.
12682soname_spec=$lt_soname_spec
12683
12684# Commands used to build and install an old-style archive.
12685RANLIB=$lt_RANLIB
12686old_archive_cmds=$lt_old_archive_cmds_CXX
12687old_postinstall_cmds=$lt_old_postinstall_cmds
12688old_postuninstall_cmds=$lt_old_postuninstall_cmds
12689
12690# Create an old-style archive from a shared archive.
12691old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12692
12693# Create a temporary old-style archive to link instead of a shared archive.
12694old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12695
12696# Commands used to build and install a shared archive.
12697archive_cmds=$lt_archive_cmds_CXX
12698archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12699postinstall_cmds=$lt_postinstall_cmds
12700postuninstall_cmds=$lt_postuninstall_cmds
12701
12702# Commands used to build a loadable module (assumed same as above if empty)
12703module_cmds=$lt_module_cmds_CXX
12704module_expsym_cmds=$lt_module_expsym_cmds_CXX
12705
12706# Commands to strip libraries.
12707old_striplib=$lt_old_striplib
12708striplib=$lt_striplib
12709
12710# Dependencies to place before the objects being linked to create a
12711# shared library.
12712predep_objects=$lt_predep_objects_CXX
12713
12714# Dependencies to place after the objects being linked to create a
12715# shared library.
12716postdep_objects=$lt_postdep_objects_CXX
12717
12718# Dependencies to place before the objects being linked to create a
12719# shared library.
12720predeps=$lt_predeps_CXX
12721
12722# Dependencies to place after the objects being linked to create a
12723# shared library.
12724postdeps=$lt_postdeps_CXX
12725
12726# The library search path used internally by the compiler when linking
12727# a shared library.
12728compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12729
12730# Method to check whether dependent libraries are shared objects.
12731deplibs_check_method=$lt_deplibs_check_method
12732
12733# Command to use when deplibs_check_method == file_magic.
12734file_magic_cmd=$lt_file_magic_cmd
12735
12736# Flag that allows shared libraries with undefined symbols to be built.
12737allow_undefined_flag=$lt_allow_undefined_flag_CXX
12738
12739# Flag that forces no undefined symbols.
12740no_undefined_flag=$lt_no_undefined_flag_CXX
12741
12742# Commands used to finish a libtool library installation in a directory.
12743finish_cmds=$lt_finish_cmds
12744
12745# Same as above, but a single script fragment to be evaled but not shown.
12746finish_eval=$lt_finish_eval
12747
12748# Take the output of nm and produce a listing of raw symbols and C names.
12749global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12750
12751# Transform the output of nm in a proper C declaration
12752global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12753
12754# Transform the output of nm in a C name address pair
12755global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12756
12757# This is the shared library runtime path variable.
12758runpath_var=$runpath_var
12759
12760# This is the shared library path variable.
12761shlibpath_var=$shlibpath_var
12762
12763# Is shlibpath searched before the hard-coded library search path?
12764shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12765
12766# How to hardcode a shared library path into an executable.
12767hardcode_action=$hardcode_action_CXX
12768
12769# Whether we should hardcode library paths into libraries.
12770hardcode_into_libs=$hardcode_into_libs
12771
12772# Flag to hardcode \$libdir into a binary during linking.
12773# This must work even if \$libdir does not exist.
12774hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12775
12776# If ld is used when linking, flag to hardcode \$libdir into
12777# a binary during linking. This must work even if \$libdir does
12778# not exist.
12779hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12780
12781# Whether we need a single -rpath flag with a separated argument.
12782hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12783
12784# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12785# resulting binary.
12786hardcode_direct=$hardcode_direct_CXX
12787
12788# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12789# resulting binary.
12790hardcode_minus_L=$hardcode_minus_L_CXX
12791
12792# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12793# the resulting binary.
12794hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12795
12796# Set to yes if building a shared library automatically hardcodes DIR into the library
12797# and all subsequent libraries and executables linked against it.
12798hardcode_automatic=$hardcode_automatic_CXX
12799
12800# Variables whose values should be saved in libtool wrapper scripts and
12801# restored at relink time.
12802variables_saved_for_relink="$variables_saved_for_relink"
12803
12804# Whether libtool must link a program against all its dependency libraries.
12805link_all_deplibs=$link_all_deplibs_CXX
12806
12807# Compile-time system search path for libraries
12808sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12809
12810# Run-time system search path for libraries
12811sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12812
12813# Fix the shell variable \$srcfile for the compiler.
12814fix_srcfile_path="$fix_srcfile_path_CXX"
12815
12816# Set to yes if exported symbols are required.
12817always_export_symbols=$always_export_symbols_CXX
12818
12819# The commands to list exported symbols.
12820export_symbols_cmds=$lt_export_symbols_cmds_CXX
12821
12822# The commands to extract the exported symbol list from a shared archive.
12823extract_expsyms_cmds=$lt_extract_expsyms_cmds
12824
12825# Symbols that should not be listed in the preloaded symbols.
12826exclude_expsyms=$lt_exclude_expsyms_CXX
12827
12828# Symbols that must always be exported.
12829include_expsyms=$lt_include_expsyms_CXX
12830
12831# ### END LIBTOOL TAG CONFIG: $tagname
12832
12833__EOF__
12834
12835
12836else
12837 # If there is no Makefile yet, we rely on a make rule to execute
12838 # `config.status --recheck' to rerun these tests and create the
12839 # libtool script then.
12840 test -f Makefile && make "$ltmain"
12841fi
12842
12843
12844ac_ext=c
12845ac_cpp='$CPP $CPPFLAGS'
12846ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12847ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12848ac_compiler_gnu=$ac_cv_c_compiler_gnu
12849
12850CC=$lt_save_CC
12851LDCXX=$LD
12852LD=$lt_save_LD
12853GCC=$lt_save_GCC
12854with_gnu_ldcxx=$with_gnu_ld
12855with_gnu_ld=$lt_save_with_gnu_ld
12856lt_cv_path_LDCXX=$lt_cv_path_LD
12857lt_cv_path_LD=$lt_save_path_LD
12858lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12859lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12860
12861 else
12862 tagname=""
12863 fi
12864 ;;
12865
12866 F77)
12867 if test -n "$F77" && test "X$F77" != "Xno"; then
12868
12869ac_ext=f
12870ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12871ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12872ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12873
12874
12875archive_cmds_need_lc_F77=no
12876allow_undefined_flag_F77=
12877always_export_symbols_F77=no
12878archive_expsym_cmds_F77=
12879export_dynamic_flag_spec_F77=
12880hardcode_direct_F77=no
12881hardcode_libdir_flag_spec_F77=
12882hardcode_libdir_flag_spec_ld_F77=
12883hardcode_libdir_separator_F77=
12884hardcode_minus_L_F77=no
12885hardcode_automatic_F77=no
12886module_cmds_F77=
12887module_expsym_cmds_F77=
12888link_all_deplibs_F77=unknown
12889old_archive_cmds_F77=$old_archive_cmds
12890no_undefined_flag_F77=
12891whole_archive_flag_spec_F77=
12892enable_shared_with_static_runtimes_F77=no
12893
12894# Source file extension for f77 test sources.
12895ac_ext=f
12896
12897# Object file extension for compiled f77 test sources.
12898objext=o
12899objext_F77=$objext
12900
12901# Code to be used in simple compile tests
12902lt_simple_compile_test_code=" subroutine t\n return\n end\n"
12903
12904# Code to be used in simple link tests
12905lt_simple_link_test_code=" program t\n end\n"
12906
12907# ltmain only uses $CC for tagged configurations so make sure $CC is set.
12908
12909# If no C compiler was specified, use CC.
12910LTCC=${LTCC-"$CC"}
12911
12912# Allow CC to be a program name with arguments.
12913compiler=$CC
12914
12915
12916# Allow CC to be a program name with arguments.
12917lt_save_CC="$CC"
12918CC=${F77-"f77"}
12919compiler=$CC
12920compiler_F77=$CC
12921cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12922
12923echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12924echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12925echo "$as_me:$LINENO: result: $can_build_shared" >&5
12926echo "${ECHO_T}$can_build_shared" >&6
12927
12928echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12929echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12930test "$can_build_shared" = "no" && enable_shared=no
12931
12932# On AIX, shared libraries and static libraries use the same namespace, and
12933# are all built from PIC.
12934case "$host_os" in
12935aix3*)
12936 test "$enable_shared" = yes && enable_static=no
12937 if test -n "$RANLIB"; then
12938 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12939 postinstall_cmds='$RANLIB $lib'
12940 fi
12941 ;;
12942aix4*)
12943 test "$enable_shared" = yes && enable_static=no
12944 ;;
12945esac
12946echo "$as_me:$LINENO: result: $enable_shared" >&5
12947echo "${ECHO_T}$enable_shared" >&6
12948
12949echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12950echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12951# Make sure either enable_shared or enable_static is yes.
12952test "$enable_shared" = yes || enable_static=yes
12953echo "$as_me:$LINENO: result: $enable_static" >&5
12954echo "${ECHO_T}$enable_static" >&6
12955
12956test "$ld_shlibs_F77" = no && can_build_shared=no
12957
12958GCC_F77="$G77"
12959LD_F77="$LD"
12960
12961lt_prog_compiler_wl_F77=
12962lt_prog_compiler_pic_F77=
12963lt_prog_compiler_static_F77=
12964
12965echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12966echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12967
12968 if test "$GCC" = yes; then
12969 lt_prog_compiler_wl_F77='-Wl,'
12970 lt_prog_compiler_static_F77='-static'
12971
12972 case $host_os in
12973 aix*)
12974 # All AIX code is PIC.
12975 if test "$host_cpu" = ia64; then
12976 # AIX 5 now supports IA64 processor
12977 lt_prog_compiler_static_F77='-Bstatic'
12978 fi
12979 ;;
12980
12981 amigaos*)
12982 # FIXME: we need at least 68020 code to build shared libraries, but
12983 # adding the `-m68020' flag to GCC prevents building anything better,
12984 # like `-m68040'.
12985 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12986 ;;
12987
12988 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12989 # PIC is the default for these OSes.
12990 ;;
12991
12992 mingw* | pw32* | os2*)
12993 # This hack is so that the source file can tell whether it is being
12994 # built for inclusion in a dll (and should export symbols for example).
12995 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12996 ;;
12997
12998 darwin* | rhapsody*)
12999 # PIC is the default on this platform
13000 # Common symbols not allowed in MH_DYLIB files
13001 lt_prog_compiler_pic_F77='-fno-common'
13002 ;;
13003
13004 msdosdjgpp*)
13005 # Just because we use GCC doesn't mean we suddenly get shared libraries
13006 # on systems that don't support them.
13007 lt_prog_compiler_can_build_shared_F77=no
13008 enable_shared=no
13009 ;;
13010
13011 sysv4*MP*)
13012 if test -d /usr/nec; then
13013 lt_prog_compiler_pic_F77=-Kconform_pic
13014 fi
13015 ;;
13016
13017 hpux*)
13018 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13019 # not for PA HP-UX.
13020 case "$host_cpu" in
13021 hppa*64*|ia64*)
13022 # +Z the default
13023 ;;
13024 *)
13025 lt_prog_compiler_pic_F77='-fPIC'
13026 ;;
13027 esac
13028 ;;
13029
13030 *)
13031 lt_prog_compiler_pic_F77='-fPIC'
13032 ;;
13033 esac
13034 else
13035 # PORTME Check for flag to pass linker flags through the system compiler.
13036 case $host_os in
13037 aix*)
13038 lt_prog_compiler_wl_F77='-Wl,'
13039 if test "$host_cpu" = ia64; then
13040 # AIX 5 now supports IA64 processor
13041 lt_prog_compiler_static_F77='-Bstatic'
13042 else
13043 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13044 fi
13045 ;;
13046
13047 mingw* | pw32* | os2*)
13048 # This hack is so that the source file can tell whether it is being
13049 # built for inclusion in a dll (and should export symbols for example).
13050 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13051 ;;
13052
13053 hpux9* | hpux10* | hpux11*)
13054 lt_prog_compiler_wl_F77='-Wl,'
13055 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13056 # not for PA HP-UX.
13057 case "$host_cpu" in
13058 hppa*64*|ia64*)
13059 # +Z the default
13060 ;;
13061 *)
13062 lt_prog_compiler_pic_F77='+Z'
13063 ;;
13064 esac
13065 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13066 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13067 ;;
13068
13069 irix5* | irix6* | nonstopux*)
13070 lt_prog_compiler_wl_F77='-Wl,'
13071 # PIC (with -KPIC) is the default.
13072 lt_prog_compiler_static_F77='-non_shared'
13073 ;;
13074
13075 newsos6)
13076 lt_prog_compiler_pic_F77='-KPIC'
13077 lt_prog_compiler_static_F77='-Bstatic'
13078 ;;
13079
13080 linux*)
13081 case $CC in
13082 icc|ecc)
13083 lt_prog_compiler_wl_F77='-Wl,'
13084 lt_prog_compiler_pic_F77='-KPIC'
13085 lt_prog_compiler_static_F77='-static'
13086 ;;
13087 ccc)
13088 lt_prog_compiler_wl_F77='-Wl,'
13089 # All Alpha code is PIC.
13090 lt_prog_compiler_static_F77='-non_shared'
13091 ;;
13092 esac
13093 ;;
13094
13095 osf3* | osf4* | osf5*)
13096 lt_prog_compiler_wl_F77='-Wl,'
13097 # All OSF/1 code is PIC.
13098 lt_prog_compiler_static_F77='-non_shared'
13099 ;;
13100
13101 sco3.2v5*)
13102 lt_prog_compiler_pic_F77='-Kpic'
13103 lt_prog_compiler_static_F77='-dn'
13104 ;;
13105
13106 solaris*)
13107 lt_prog_compiler_wl_F77='-Wl,'
13108 lt_prog_compiler_pic_F77='-KPIC'
13109 lt_prog_compiler_static_F77='-Bstatic'
13110 ;;
13111
13112 sunos4*)
13113 lt_prog_compiler_wl_F77='-Qoption ld '
13114 lt_prog_compiler_pic_F77='-PIC'
13115 lt_prog_compiler_static_F77='-Bstatic'
13116 ;;
13117
13118 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13119 lt_prog_compiler_wl_F77='-Wl,'
13120 lt_prog_compiler_pic_F77='-KPIC'
13121 lt_prog_compiler_static_F77='-Bstatic'
13122 ;;
13123
13124 sysv4*MP*)
13125 if test -d /usr/nec ;then
13126 lt_prog_compiler_pic_F77='-Kconform_pic'
13127 lt_prog_compiler_static_F77='-Bstatic'
13128 fi
13129 ;;
13130
13131 uts4*)
13132 lt_prog_compiler_pic_F77='-pic'
13133 lt_prog_compiler_static_F77='-Bstatic'
13134 ;;
13135
13136 *)
13137 lt_prog_compiler_can_build_shared_F77=no
13138 ;;
13139 esac
13140 fi
13141
13142echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13143echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13144
13145#
13146# Check to make sure the PIC flag actually works.
13147#
13148if test -n "$lt_prog_compiler_pic_F77"; then
13149 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13150echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13151if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13152 echo $ECHO_N "(cached) $ECHO_C" >&6
13153else
13154 lt_prog_compiler_pic_works_F77=no
13155 ac_outfile=conftest.$ac_objext
13156 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13157 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13158 # Insert the option either (1) after the last *FLAGS variable, or
13159 # (2) before a word containing "conftest.", or (3) at the end.
13160 # Note that $ac_compile itself does not contain backslashes and begins
13161 # with a dollar sign (not a hyphen), so the echo should work correctly.
13162 # The option is referenced via a variable to avoid confusing sed.
13163 lt_compile=`echo "$ac_compile" | $SED \
13164 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13165 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13166 -e 's:$: $lt_compiler_flag:'`
Reid Spencer73fb5482004-08-31 14:20:36 +000013167 (eval echo "\"\$as_me:13167: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000013168 (eval "$lt_compile" 2>conftest.err)
13169 ac_status=$?
13170 cat conftest.err >&5
Reid Spencer73fb5482004-08-31 14:20:36 +000013171 echo "$as_me:13171: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000013172 if (exit $ac_status) && test -s "$ac_outfile"; then
13173 # The compiler can only warn and ignore the option if not recognized
13174 # So say no if there are warnings
13175 if test ! -s conftest.err; then
13176 lt_prog_compiler_pic_works_F77=yes
13177 fi
13178 fi
13179 $rm conftest*
13180
13181fi
13182echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13183echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13184
13185if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13186 case $lt_prog_compiler_pic_F77 in
13187 "" | " "*) ;;
13188 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13189 esac
13190else
13191 lt_prog_compiler_pic_F77=
13192 lt_prog_compiler_can_build_shared_F77=no
13193fi
13194
13195fi
13196case "$host_os" in
13197 # For platforms which do not support PIC, -DPIC is meaningless:
13198 *djgpp*)
13199 lt_prog_compiler_pic_F77=
13200 ;;
13201 *)
13202 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13203 ;;
13204esac
13205
13206echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13207echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13208if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13209 echo $ECHO_N "(cached) $ECHO_C" >&6
13210else
13211 lt_cv_prog_compiler_c_o_F77=no
13212 $rm -r conftest 2>/dev/null
13213 mkdir conftest
13214 cd conftest
13215 mkdir out
13216 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13217
13218 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
13219 # that will create temporary files in the current directory regardless of
13220 # the output directory. Thus, making CWD read-only will cause this test
13221 # to fail, enabling locking or at least warning the user not to do parallel
13222 # builds.
13223 chmod -w .
13224
13225 lt_compiler_flag="-o out/conftest2.$ac_objext"
13226 # Insert the option either (1) after the last *FLAGS variable, or
13227 # (2) before a word containing "conftest.", or (3) at the end.
13228 # Note that $ac_compile itself does not contain backslashes and begins
13229 # with a dollar sign (not a hyphen), so the echo should work correctly.
13230 lt_compile=`echo "$ac_compile" | $SED \
13231 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13232 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13233 -e 's:$: $lt_compiler_flag:'`
Reid Spencer73fb5482004-08-31 14:20:36 +000013234 (eval echo "\"\$as_me:13234: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000013235 (eval "$lt_compile" 2>out/conftest.err)
13236 ac_status=$?
13237 cat out/conftest.err >&5
Reid Spencer73fb5482004-08-31 14:20:36 +000013238 echo "$as_me:13238: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000013239 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13240 then
13241 # The compiler can only warn and ignore the option if not recognized
13242 # So say no if there are warnings
13243 if test ! -s out/conftest.err; then
13244 lt_cv_prog_compiler_c_o_F77=yes
13245 fi
13246 fi
13247 chmod u+w .
13248 $rm conftest* out/*
13249 rmdir out
13250 cd ..
13251 rmdir conftest
13252 $rm conftest*
13253
13254fi
13255echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13256echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13257
13258
13259hard_links="nottested"
13260if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13261 # do not overwrite the value of need_locks provided by the user
13262 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13263echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13264 hard_links=yes
13265 $rm conftest*
13266 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13267 touch conftest.a
13268 ln conftest.a conftest.b 2>&5 || hard_links=no
13269 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13270 echo "$as_me:$LINENO: result: $hard_links" >&5
13271echo "${ECHO_T}$hard_links" >&6
13272 if test "$hard_links" = no; then
13273 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13274echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13275 need_locks=warn
13276 fi
13277else
13278 need_locks=no
13279fi
13280
13281echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13282echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13283
13284 runpath_var=
13285 allow_undefined_flag_F77=
13286 enable_shared_with_static_runtimes_F77=no
13287 archive_cmds_F77=
13288 archive_expsym_cmds_F77=
13289 old_archive_From_new_cmds_F77=
13290 old_archive_from_expsyms_cmds_F77=
13291 export_dynamic_flag_spec_F77=
13292 whole_archive_flag_spec_F77=
13293 thread_safe_flag_spec_F77=
13294 hardcode_libdir_flag_spec_F77=
13295 hardcode_libdir_flag_spec_ld_F77=
13296 hardcode_libdir_separator_F77=
13297 hardcode_direct_F77=no
13298 hardcode_minus_L_F77=no
13299 hardcode_shlibpath_var_F77=unsupported
13300 link_all_deplibs_F77=unknown
13301 hardcode_automatic_F77=no
13302 module_cmds_F77=
13303 module_expsym_cmds_F77=
13304 always_export_symbols_F77=no
13305 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13306 # include_expsyms should be a list of space-separated symbols to be *always*
13307 # included in the symbol list
13308 include_expsyms_F77=
13309 # exclude_expsyms can be an extended regexp of symbols to exclude
13310 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13311 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13312 # as well as any symbol that contains `d'.
13313 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13314 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13315 # platforms (ab)use it in PIC code, but their linkers get confused if
13316 # the symbol is explicitly referenced. Since portable code cannot
13317 # rely on this symbol name, it's probably fine to never include it in
13318 # preloaded symbol tables.
13319 extract_expsyms_cmds=
13320
13321 case $host_os in
13322 cygwin* | mingw* | pw32*)
13323 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13324 # When not using gcc, we currently assume that we are using
13325 # Microsoft Visual C++.
13326 if test "$GCC" != yes; then
13327 with_gnu_ld=no
13328 fi
13329 ;;
13330 openbsd*)
13331 with_gnu_ld=no
13332 ;;
13333 esac
13334
13335 ld_shlibs_F77=yes
13336 if test "$with_gnu_ld" = yes; then
13337 # If archive_cmds runs LD, not CC, wlarc should be empty
13338 wlarc='${wl}'
13339
13340 # See if GNU ld supports shared libraries.
13341 case $host_os in
13342 aix3* | aix4* | aix5*)
13343 # On AIX/PPC, the GNU linker is very broken
13344 if test "$host_cpu" != ia64; then
13345 ld_shlibs_F77=no
13346 cat <<EOF 1>&2
13347
13348*** Warning: the GNU linker, at least up to release 2.9.1, is reported
13349*** to be unable to reliably create shared libraries on AIX.
13350*** Therefore, libtool is disabling shared libraries support. If you
13351*** really care for shared libraries, you may want to modify your PATH
13352*** so that a non-GNU linker is found, and then restart.
13353
13354EOF
13355 fi
13356 ;;
13357
13358 amigaos*)
13359 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)'
13360 hardcode_libdir_flag_spec_F77='-L$libdir'
13361 hardcode_minus_L_F77=yes
13362
13363 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13364 # that the semantics of dynamic libraries on AmigaOS, at least up
13365 # to version 4, is to share data among multiple programs linked
13366 # with the same dynamic library. Since this doesn't match the
13367 # behavior of shared libraries on other platforms, we can't use
13368 # them.
13369 ld_shlibs_F77=no
13370 ;;
13371
13372 beos*)
13373 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13374 allow_undefined_flag_F77=unsupported
13375 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13376 # support --undefined. This deserves some investigation. FIXME
13377 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13378 else
13379 ld_shlibs_F77=no
13380 fi
13381 ;;
13382
13383 cygwin* | mingw* | pw32*)
13384 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13385 # as there is no search path for DLLs.
13386 hardcode_libdir_flag_spec_F77='-L$libdir'
13387 allow_undefined_flag_F77=unsupported
13388 always_export_symbols_F77=no
13389 enable_shared_with_static_runtimes_F77=yes
13390 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13391
13392 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13393 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13394 # If the export-symbols file already is a .def file (1st line
13395 # is EXPORTS), use it as is; otherwise, prepend...
13396 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13397 cp $export_symbols $output_objdir/$soname.def;
13398 else
13399 echo EXPORTS > $output_objdir/$soname.def;
13400 cat $export_symbols >> $output_objdir/$soname.def;
13401 fi~
13402 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13403 else
13404 ld_shlibs=no
13405 fi
13406 ;;
13407
13408 netbsd*)
13409 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13410 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13411 wlarc=
13412 else
13413 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13414 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13415 fi
13416 ;;
13417
13418 solaris* | sysv5*)
13419 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13420 ld_shlibs_F77=no
13421 cat <<EOF 1>&2
13422
13423*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13424*** create shared libraries on Solaris systems. Therefore, libtool
13425*** is disabling shared libraries support. We urge you to upgrade GNU
13426*** binutils to release 2.9.1 or newer. Another option is to modify
13427*** your PATH or compiler configuration so that the native linker is
13428*** used, and then restart.
13429
13430EOF
13431 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13432 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13433 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13434 else
13435 ld_shlibs_F77=no
13436 fi
13437 ;;
13438
13439 sunos4*)
13440 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13441 wlarc=
13442 hardcode_direct_F77=yes
13443 hardcode_shlibpath_var_F77=no
13444 ;;
13445
13446 *)
13447 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13448 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13449 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13450 else
13451 ld_shlibs_F77=no
13452 fi
13453 ;;
13454 esac
13455
13456 if test "$ld_shlibs_F77" = yes; then
13457 runpath_var=LD_RUN_PATH
13458 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13459 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13460 # ancient GNU ld didn't support --whole-archive et. al.
13461 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13462 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13463 else
13464 whole_archive_flag_spec_F77=
13465 fi
13466 fi
13467 else
13468 # PORTME fill in a description of your system's linker (not GNU ld)
13469 case $host_os in
13470 aix3*)
13471 allow_undefined_flag_F77=unsupported
13472 always_export_symbols_F77=yes
13473 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'
13474 # Note: this linker hardcodes the directories in LIBPATH if there
13475 # are no directories specified by -L.
13476 hardcode_minus_L_F77=yes
13477 if test "$GCC" = yes && test -z "$link_static_flag"; then
13478 # Neither direct hardcoding nor static linking is supported with a
13479 # broken collect2.
13480 hardcode_direct_F77=unsupported
13481 fi
13482 ;;
13483
13484 aix4* | aix5*)
13485 if test "$host_cpu" = ia64; then
13486 # On IA64, the linker does run time linking by default, so we don't
13487 # have to do anything special.
13488 aix_use_runtimelinking=no
13489 exp_sym_flag='-Bexport'
13490 no_entry_flag=""
13491 else
13492 # If we're using GNU nm, then we don't want the "-C" option.
13493 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13494 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13495 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'
13496 else
13497 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'
13498 fi
13499 aix_use_runtimelinking=no
13500
13501 # Test if we are trying to use run time linking or normal
13502 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13503 # need to do runtime linking.
13504 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13505 for ld_flag in $LDFLAGS; do
13506 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13507 aix_use_runtimelinking=yes
13508 break
13509 fi
13510 done
13511 esac
13512
13513 exp_sym_flag='-bexport'
13514 no_entry_flag='-bnoentry'
13515 fi
13516
13517 # When large executables or shared objects are built, AIX ld can
13518 # have problems creating the table of contents. If linking a library
13519 # or program results in "error TOC overflow" add -mminimal-toc to
13520 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13521 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13522
13523 archive_cmds_F77=''
13524 hardcode_direct_F77=yes
13525 hardcode_libdir_separator_F77=':'
13526 link_all_deplibs_F77=yes
13527
13528 if test "$GCC" = yes; then
13529 case $host_os in aix4.012|aix4.012.*)
13530 # We only want to do this on AIX 4.2 and lower, the check
13531 # below for broken collect2 doesn't work under 4.3+
13532 collect2name=`${CC} -print-prog-name=collect2`
13533 if test -f "$collect2name" && \
13534 strings "$collect2name" | grep resolve_lib_name >/dev/null
13535 then
13536 # We have reworked collect2
13537 hardcode_direct_F77=yes
13538 else
13539 # We have old collect2
13540 hardcode_direct_F77=unsupported
13541 # It fails to find uninstalled libraries when the uninstalled
13542 # path is not listed in the libpath. Setting hardcode_minus_L
13543 # to unsupported forces relinking
13544 hardcode_minus_L_F77=yes
13545 hardcode_libdir_flag_spec_F77='-L$libdir'
13546 hardcode_libdir_separator_F77=
13547 fi
13548 esac
13549 shared_flag='-shared'
13550 else
13551 # not using gcc
13552 if test "$host_cpu" = ia64; then
13553 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13554 # chokes on -Wl,-G. The following line is correct:
13555 shared_flag='-G'
13556 else
13557 if test "$aix_use_runtimelinking" = yes; then
13558 shared_flag='${wl}-G'
13559 else
13560 shared_flag='${wl}-bM:SRE'
13561 fi
13562 fi
13563 fi
13564
13565 # It seems that -bexpall does not export symbols beginning with
13566 # underscore (_), so it is better to generate a list of symbols to export.
13567 always_export_symbols_F77=yes
13568 if test "$aix_use_runtimelinking" = yes; then
13569 # Warning - without using the other runtime loading flags (-brtl),
13570 # -berok will link without error, but may produce a broken library.
13571 allow_undefined_flag_F77='-berok'
13572 # Determine the default libpath from the value encoded in an empty executable.
13573 cat >conftest.$ac_ext <<_ACEOF
13574 program main
13575
13576 end
13577_ACEOF
13578rm -f conftest.$ac_objext conftest$ac_exeext
13579if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000013580 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013581 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000013582 grep -v '^ *+' conftest.er1 >conftest.err
13583 rm -f conftest.er1
13584 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000013585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13586 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000013587 { ac_try='test -z "$ac_f77_werror_flag"
13588 || test ! -s conftest.err'
13589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13590 (eval $ac_try) 2>&5
13591 ac_status=$?
13592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13593 (exit $ac_status); }; } &&
13594 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000013595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13596 (eval $ac_try) 2>&5
13597 ac_status=$?
13598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13599 (exit $ac_status); }; }; then
13600
13601aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13602}'`
13603# Check for a 64-bit object if we didn't find anything.
13604if 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; }
13605}'`; fi
13606else
13607 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013608sed 's/^/| /' conftest.$ac_ext >&5
13609
John Criswell47fdd832003-07-14 16:52:07 +000013610fi
Reid Spencer2b51a082004-08-04 00:34:49 +000013611rm -f conftest.err conftest.$ac_objext \
13612 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000013613if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13614
13615 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13616 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"
13617 else
13618 if test "$host_cpu" = ia64; then
13619 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13620 allow_undefined_flag_F77="-z nodefs"
13621 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"
13622 else
13623 # Determine the default libpath from the value encoded in an empty executable.
13624 cat >conftest.$ac_ext <<_ACEOF
13625 program main
13626
13627 end
13628_ACEOF
13629rm -f conftest.$ac_objext conftest$ac_exeext
13630if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000013631 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013632 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000013633 grep -v '^ *+' conftest.er1 >conftest.err
13634 rm -f conftest.er1
13635 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000013636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13637 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000013638 { ac_try='test -z "$ac_f77_werror_flag"
13639 || test ! -s conftest.err'
13640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13641 (eval $ac_try) 2>&5
13642 ac_status=$?
13643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13644 (exit $ac_status); }; } &&
13645 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000013646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13647 (eval $ac_try) 2>&5
13648 ac_status=$?
13649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13650 (exit $ac_status); }; }; then
13651
13652aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13653}'`
13654# Check for a 64-bit object if we didn't find anything.
13655if 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; }
13656}'`; fi
13657else
13658 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013659sed 's/^/| /' conftest.$ac_ext >&5
13660
John Criswell47fdd832003-07-14 16:52:07 +000013661fi
Reid Spencer2b51a082004-08-04 00:34:49 +000013662rm -f conftest.err conftest.$ac_objext \
13663 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000013664if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13665
13666 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13667 # Warning - without using the other run time loading flags,
13668 # -berok will link without error, but may produce a broken library.
13669 no_undefined_flag_F77=' ${wl}-bernotok'
13670 allow_undefined_flag_F77=' ${wl}-berok'
13671 # -bexpall does not export symbols beginning with underscore (_)
13672 always_export_symbols_F77=yes
13673 # Exported symbols can be pulled into shared objects from archives
13674 whole_archive_flag_spec_F77=' '
13675 archive_cmds_need_lc_F77=yes
13676 # This is similar to how AIX traditionally builds it's shared libraries.
13677 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'
13678 fi
13679 fi
13680 ;;
13681
13682 amigaos*)
13683 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)'
13684 hardcode_libdir_flag_spec_F77='-L$libdir'
13685 hardcode_minus_L_F77=yes
13686 # see comment about different semantics on the GNU ld section
13687 ld_shlibs_F77=no
13688 ;;
13689
13690 bsdi4*)
13691 export_dynamic_flag_spec_F77=-rdynamic
13692 ;;
13693
13694 cygwin* | mingw* | pw32*)
13695 # When not using gcc, we currently assume that we are using
13696 # Microsoft Visual C++.
13697 # hardcode_libdir_flag_spec is actually meaningless, as there is
13698 # no search path for DLLs.
13699 hardcode_libdir_flag_spec_F77=' '
13700 allow_undefined_flag_F77=unsupported
13701 # Tell ltmain to make .lib files, not .a files.
13702 libext=lib
13703 # Tell ltmain to make .dll files, not .so files.
13704 shrext=".dll"
13705 # FIXME: Setting linknames here is a bad hack.
13706 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13707 # The linker will automatically build a .lib file if we build a DLL.
13708 old_archive_From_new_cmds_F77='true'
13709 # FIXME: Should let the user specify the lib program.
13710 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13711 fix_srcfile_path='`cygpath -w "$srcfile"`'
13712 enable_shared_with_static_runtimes_F77=yes
13713 ;;
13714
13715 darwin* | rhapsody*)
13716 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13717 archive_cmds_need_lc_F77=no
13718 case "$host_os" in
13719 rhapsody* | darwin1.[012])
13720 allow_undefined_flag_F77='-undefined suppress'
13721 ;;
13722 *) # Darwin 1.3 on
13723 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13724 ;;
13725 esac
13726 # FIXME: Relying on posixy $() will cause problems for
13727 # cross-compilation, but unfortunately the echo tests do not
13728 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
13729 # `"' quotes if we put them in here... so don't!
13730 lt_int_apple_cc_single_mod=no
13731 output_verbose_link_cmd='echo'
13732 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13733 lt_int_apple_cc_single_mod=yes
13734 fi
13735 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13736 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13737 else
13738 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'
13739 fi
13740 module_cmds_F77='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
13741 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13742 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13743 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}'
13744 else
13745 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}'
13746 fi
13747 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}'
13748 hardcode_direct_F77=no
13749 hardcode_automatic_F77=yes
13750 hardcode_shlibpath_var_F77=unsupported
13751 whole_archive_flag_spec_F77='-all_load $convenience'
13752 link_all_deplibs_F77=yes
13753 fi
13754 ;;
13755
13756 dgux*)
13757 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13758 hardcode_libdir_flag_spec_F77='-L$libdir'
13759 hardcode_shlibpath_var_F77=no
13760 ;;
13761
13762 freebsd1*)
13763 ld_shlibs_F77=no
13764 ;;
13765
13766 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13767 # support. Future versions do this automatically, but an explicit c++rt0.o
13768 # does not break anything, and helps significantly (at the cost of a little
13769 # extra space).
13770 freebsd2.2*)
13771 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13772 hardcode_libdir_flag_spec_F77='-R$libdir'
13773 hardcode_direct_F77=yes
13774 hardcode_shlibpath_var_F77=no
13775 ;;
13776
13777 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13778 freebsd2*)
13779 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13780 hardcode_direct_F77=yes
13781 hardcode_minus_L_F77=yes
13782 hardcode_shlibpath_var_F77=no
13783 ;;
13784
13785 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13786 freebsd*)
13787 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13788 hardcode_libdir_flag_spec_F77='-R$libdir'
13789 hardcode_direct_F77=yes
13790 hardcode_shlibpath_var_F77=no
13791 ;;
13792
13793 hpux9*)
13794 if test "$GCC" = yes; then
13795 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'
13796 else
13797 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'
13798 fi
13799 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13800 hardcode_libdir_separator_F77=:
13801 hardcode_direct_F77=yes
13802
13803 # hardcode_minus_L: Not really in the search PATH,
13804 # but as the default location of the library.
13805 hardcode_minus_L_F77=yes
13806 export_dynamic_flag_spec_F77='${wl}-E'
13807 ;;
13808
13809 hpux10* | hpux11*)
13810 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13811 case "$host_cpu" in
13812 hppa*64*|ia64*)
13813 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13814 ;;
13815 *)
13816 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13817 ;;
13818 esac
13819 else
13820 case "$host_cpu" in
13821 hppa*64*|ia64*)
13822 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13823 ;;
13824 *)
13825 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13826 ;;
13827 esac
13828 fi
13829 if test "$with_gnu_ld" = no; then
13830 case "$host_cpu" in
13831 hppa*64*)
13832 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13833 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13834 hardcode_libdir_separator_F77=:
13835 hardcode_direct_F77=no
13836 hardcode_shlibpath_var_F77=no
13837 ;;
13838 ia64*)
13839 hardcode_libdir_flag_spec_F77='-L$libdir'
13840 hardcode_direct_F77=no
13841 hardcode_shlibpath_var_F77=no
13842
13843 # hardcode_minus_L: Not really in the search PATH,
13844 # but as the default location of the library.
13845 hardcode_minus_L_F77=yes
13846 ;;
13847 *)
13848 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13849 hardcode_libdir_separator_F77=:
13850 hardcode_direct_F77=yes
13851 export_dynamic_flag_spec_F77='${wl}-E'
13852
13853 # hardcode_minus_L: Not really in the search PATH,
13854 # but as the default location of the library.
13855 hardcode_minus_L_F77=yes
13856 ;;
13857 esac
13858 fi
13859 ;;
13860
13861 irix5* | irix6* | nonstopux*)
13862 if test "$GCC" = yes; then
13863 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'
13864 else
13865 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'
13866 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13867 fi
13868 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13869 hardcode_libdir_separator_F77=:
13870 link_all_deplibs_F77=yes
13871 ;;
13872
13873 netbsd*)
13874 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13875 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13876 else
13877 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13878 fi
13879 hardcode_libdir_flag_spec_F77='-R$libdir'
13880 hardcode_direct_F77=yes
13881 hardcode_shlibpath_var_F77=no
13882 ;;
13883
13884 newsos6)
13885 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13886 hardcode_direct_F77=yes
13887 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13888 hardcode_libdir_separator_F77=:
13889 hardcode_shlibpath_var_F77=no
13890 ;;
13891
13892 openbsd*)
13893 hardcode_direct_F77=yes
13894 hardcode_shlibpath_var_F77=no
13895 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13896 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13897 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13898 export_dynamic_flag_spec_F77='${wl}-E'
13899 else
13900 case $host_os in
13901 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13902 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13903 hardcode_libdir_flag_spec_F77='-R$libdir'
13904 ;;
13905 *)
13906 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13907 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13908 ;;
13909 esac
13910 fi
13911 ;;
13912
13913 os2*)
13914 hardcode_libdir_flag_spec_F77='-L$libdir'
13915 hardcode_minus_L_F77=yes
13916 allow_undefined_flag_F77=unsupported
13917 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'
13918 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13919 ;;
13920
13921 osf3*)
13922 if test "$GCC" = yes; then
13923 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13924 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'
13925 else
13926 allow_undefined_flag_F77=' -expect_unresolved \*'
13927 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'
13928 fi
13929 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13930 hardcode_libdir_separator_F77=:
13931 ;;
13932
13933 osf4* | osf5*) # as osf3* with the addition of -msym flag
13934 if test "$GCC" = yes; then
13935 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13936 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'
13937 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13938 else
13939 allow_undefined_flag_F77=' -expect_unresolved \*'
13940 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'
13941 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~
13942 $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'
13943
13944 # Both c and cxx compiler support -rpath directly
13945 hardcode_libdir_flag_spec_F77='-rpath $libdir'
13946 fi
13947 hardcode_libdir_separator_F77=:
13948 ;;
13949
13950 sco3.2v5*)
13951 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13952 hardcode_shlibpath_var_F77=no
13953 export_dynamic_flag_spec_F77='${wl}-Bexport'
13954 runpath_var=LD_RUN_PATH
13955 hardcode_runpath_var=yes
13956 ;;
13957
13958 solaris*)
13959 no_undefined_flag_F77=' -z text'
13960 if test "$GCC" = yes; then
13961 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13962 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13963 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13964 else
13965 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13966 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13967 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13968 fi
13969 hardcode_libdir_flag_spec_F77='-R$libdir'
13970 hardcode_shlibpath_var_F77=no
13971 case $host_os in
13972 solaris2.[0-5] | solaris2.[0-5].*) ;;
13973 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13974 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13975 esac
13976 link_all_deplibs_F77=yes
13977 ;;
13978
13979 sunos4*)
13980 if test "x$host_vendor" = xsequent; then
13981 # Use $CC to link under sequent, because it throws in some extra .o
13982 # files that make .init and .fini sections work.
13983 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13984 else
13985 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13986 fi
13987 hardcode_libdir_flag_spec_F77='-L$libdir'
13988 hardcode_direct_F77=yes
13989 hardcode_minus_L_F77=yes
13990 hardcode_shlibpath_var_F77=no
13991 ;;
13992
13993 sysv4)
13994 case $host_vendor in
13995 sni)
13996 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13997 hardcode_direct_F77=yes # is this really true???
13998 ;;
13999 siemens)
14000 ## LD is ld it makes a PLAMLIB
14001 ## CC just makes a GrossModule.
14002 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14003 reload_cmds_F77='$CC -r -o $output$reload_objs'
14004 hardcode_direct_F77=no
14005 ;;
14006 motorola)
14007 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14008 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14009 ;;
14010 esac
14011 runpath_var='LD_RUN_PATH'
14012 hardcode_shlibpath_var_F77=no
14013 ;;
14014
14015 sysv4.3*)
14016 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14017 hardcode_shlibpath_var_F77=no
14018 export_dynamic_flag_spec_F77='-Bexport'
14019 ;;
14020
14021 sysv4*MP*)
14022 if test -d /usr/nec; then
14023 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14024 hardcode_shlibpath_var_F77=no
14025 runpath_var=LD_RUN_PATH
14026 hardcode_runpath_var=yes
14027 ld_shlibs_F77=yes
14028 fi
14029 ;;
14030
14031 sysv4.2uw2*)
14032 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14033 hardcode_direct_F77=yes
14034 hardcode_minus_L_F77=no
14035 hardcode_shlibpath_var_F77=no
14036 hardcode_runpath_var=yes
14037 runpath_var=LD_RUN_PATH
14038 ;;
14039
14040 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
14041 no_undefined_flag_F77='${wl}-z ${wl}text'
14042 if test "$GCC" = yes; then
14043 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14044 else
14045 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14046 fi
14047 runpath_var='LD_RUN_PATH'
14048 hardcode_shlibpath_var_F77=no
14049 ;;
14050
14051 sysv5*)
14052 no_undefined_flag_F77=' -z text'
14053 # $CC -shared without GNU ld will not create a library from C++
14054 # object files and a static libstdc++, better avoid it by now
14055 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14056 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14057 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14058 hardcode_libdir_flag_spec_F77=
14059 hardcode_shlibpath_var_F77=no
14060 runpath_var='LD_RUN_PATH'
14061 ;;
14062
14063 uts4*)
14064 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14065 hardcode_libdir_flag_spec_F77='-L$libdir'
14066 hardcode_shlibpath_var_F77=no
14067 ;;
14068
14069 *)
14070 ld_shlibs_F77=no
14071 ;;
14072 esac
14073 fi
14074
14075echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14076echo "${ECHO_T}$ld_shlibs_F77" >&6
14077test "$ld_shlibs_F77" = no && can_build_shared=no
14078
14079variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14080if test "$GCC" = yes; then
14081 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14082fi
14083
14084#
14085# Do we need to explicitly link libc?
14086#
14087case "x$archive_cmds_need_lc_F77" in
14088x|xyes)
14089 # Assume -lc should be added
14090 archive_cmds_need_lc_F77=yes
14091
14092 if test "$enable_shared" = yes && test "$GCC" = yes; then
14093 case $archive_cmds_F77 in
14094 *'~'*)
14095 # FIXME: we may have to deal with multi-command sequences.
14096 ;;
14097 '$CC '*)
14098 # Test whether the compiler implicitly links with -lc since on some
14099 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14100 # to ld, don't add -lc before -lgcc.
14101 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14102echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14103 $rm conftest*
14104 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14105
14106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14107 (eval $ac_compile) 2>&5
14108 ac_status=$?
14109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14110 (exit $ac_status); } 2>conftest.err; then
14111 soname=conftest
14112 lib=conftest
14113 libobjs=conftest.$ac_objext
14114 deplibs=
14115 wl=$lt_prog_compiler_wl_F77
14116 compiler_flags=-v
14117 linker_flags=-v
14118 verstring=
14119 output_objdir=.
14120 libname=conftest
14121 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14122 allow_undefined_flag_F77=
14123 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14124 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14125 ac_status=$?
14126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14127 (exit $ac_status); }
14128 then
14129 archive_cmds_need_lc_F77=no
14130 else
14131 archive_cmds_need_lc_F77=yes
14132 fi
14133 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14134 else
14135 cat conftest.err 1>&5
14136 fi
14137 $rm conftest*
14138 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14139echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14140 ;;
14141 esac
14142 fi
14143 ;;
14144esac
14145
14146echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14147echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14148hardcode_action_F77=
14149if test -n "$hardcode_libdir_flag_spec_F77" || \
14150 test -n "$runpath_var F77" || \
14151 test "X$hardcode_automatic_F77"="Xyes" ; then
14152
14153 # We can hardcode non-existant directories.
14154 if test "$hardcode_direct_F77" != no &&
14155 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14156 # have to relink, otherwise we might link with an installed library
14157 # when we should be linking with a yet-to-be-installed one
14158 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14159 test "$hardcode_minus_L_F77" != no; then
14160 # Linking always hardcodes the temporary library directory.
14161 hardcode_action_F77=relink
14162 else
14163 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14164 hardcode_action_F77=immediate
14165 fi
14166else
14167 # We cannot hardcode anything, or else we can only hardcode existing
14168 # directories.
14169 hardcode_action_F77=unsupported
14170fi
14171echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14172echo "${ECHO_T}$hardcode_action_F77" >&6
14173
14174if test "$hardcode_action_F77" = relink; then
14175 # Fast installation is not supported
14176 enable_fast_install=no
14177elif test "$shlibpath_overrides_runpath" = yes ||
14178 test "$enable_shared" = no; then
14179 # Fast installation is not necessary
14180 enable_fast_install=needless
14181fi
14182
14183striplib=
14184old_striplib=
14185echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14186echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14187if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14188 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14189 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14190 echo "$as_me:$LINENO: result: yes" >&5
14191echo "${ECHO_T}yes" >&6
14192else
14193# FIXME - insert some real tests, host_os isn't really good enough
14194 case $host_os in
14195 darwin*)
14196 if test -n "$STRIP" ; then
14197 striplib="$STRIP -x"
14198 echo "$as_me:$LINENO: result: yes" >&5
14199echo "${ECHO_T}yes" >&6
14200 else
14201 echo "$as_me:$LINENO: result: no" >&5
14202echo "${ECHO_T}no" >&6
14203fi
14204 ;;
14205 *)
14206 echo "$as_me:$LINENO: result: no" >&5
14207echo "${ECHO_T}no" >&6
14208 ;;
14209 esac
14210fi
14211
14212echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14213echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14214library_names_spec=
14215libname_spec='lib$name'
14216soname_spec=
14217shrext=".so"
14218postinstall_cmds=
14219postuninstall_cmds=
14220finish_cmds=
14221finish_eval=
14222shlibpath_var=
14223shlibpath_overrides_runpath=unknown
14224version_type=none
14225dynamic_linker="$host_os ld.so"
14226sys_lib_dlsearch_path_spec="/lib /usr/lib"
14227if test "$GCC" = yes; then
14228 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14229 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14230 # if the path contains ";" then we assume it to be the separator
14231 # otherwise default to the standard path separator (i.e. ":") - it is
14232 # assumed that no part of a normal pathname contains ";" but that should
14233 # okay in the real world where ";" in dirpaths is itself problematic.
14234 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14235 else
14236 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14237 fi
14238else
14239 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14240fi
14241need_lib_prefix=unknown
14242hardcode_into_libs=no
14243
14244# when you set need_version to no, make sure it does not cause -set_version
14245# flags to be left without arguments
14246need_version=unknown
14247
14248case $host_os in
14249aix3*)
14250 version_type=linux
14251 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14252 shlibpath_var=LIBPATH
14253
14254 # AIX 3 has no versioning support, so we append a major version to the name.
14255 soname_spec='${libname}${release}${shared_ext}$major'
14256 ;;
14257
14258aix4* | aix5*)
14259 version_type=linux
14260 need_lib_prefix=no
14261 need_version=no
14262 hardcode_into_libs=yes
14263 if test "$host_cpu" = ia64; then
14264 # AIX 5 supports IA64
14265 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14266 shlibpath_var=LD_LIBRARY_PATH
14267 else
14268 # With GCC up to 2.95.x, collect2 would create an import file
14269 # for dependence libraries. The import file would start with
14270 # the line `#! .'. This would cause the generated library to
14271 # depend on `.', always an invalid library. This was fixed in
14272 # development snapshots of GCC prior to 3.0.
14273 case $host_os in
14274 aix4 | aix4.[01] | aix4.[01].*)
14275 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14276 echo ' yes '
14277 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14278 :
14279 else
14280 can_build_shared=no
14281 fi
14282 ;;
14283 esac
14284 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14285 # soname into executable. Probably we can add versioning support to
14286 # collect2, so additional links can be useful in future.
14287 if test "$aix_use_runtimelinking" = yes; then
14288 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14289 # instead of lib<name>.a to let people know that these are not
14290 # typical AIX shared libraries.
14291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14292 else
14293 # We preserve .a as extension for shared libraries through AIX4.2
14294 # and later when we are not doing run time linking.
14295 library_names_spec='${libname}${release}.a $libname.a'
14296 soname_spec='${libname}${release}${shared_ext}$major'
14297 fi
14298 shlibpath_var=LIBPATH
14299 fi
14300 ;;
14301
14302amigaos*)
14303 library_names_spec='$libname.ixlibrary $libname.a'
14304 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14305 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'
14306 ;;
14307
14308beos*)
14309 library_names_spec='${libname}${shared_ext}'
14310 dynamic_linker="$host_os ld.so"
14311 shlibpath_var=LIBRARY_PATH
14312 ;;
14313
14314bsdi4*)
14315 version_type=linux
14316 need_version=no
14317 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14318 soname_spec='${libname}${release}${shared_ext}$major'
14319 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14320 shlibpath_var=LD_LIBRARY_PATH
14321 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14322 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14323 # the default ld.so.conf also contains /usr/contrib/lib and
14324 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14325 # libtool to hard-code these into programs
14326 ;;
14327
14328cygwin* | mingw* | pw32*)
14329 version_type=windows
14330 shrext=".dll"
14331 need_version=no
14332 need_lib_prefix=no
14333
14334 case $GCC,$host_os in
14335 yes,cygwin* | yes,mingw* | yes,pw32*)
14336 library_names_spec='$libname.dll.a'
14337 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14338 postinstall_cmds='base_file=`basename \${file}`~
14339 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14340 dldir=$destdir/`dirname \$dlpath`~
14341 test -d \$dldir || mkdir -p \$dldir~
14342 $install_prog $dir/$dlname \$dldir/$dlname'
14343 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14344 dlpath=$dir/\$dldll~
14345 $rm \$dlpath'
14346 shlibpath_overrides_runpath=yes
14347
14348 case $host_os in
14349 cygwin*)
14350 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14351 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14352 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
14353 ;;
14354 mingw*)
14355 # MinGW DLLs use traditional 'lib' prefix
14356 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14357 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14358 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14359 # It is most probably a Windows format PATH printed by
14360 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14361 # path with ; separators, and with drive letters. We can handle the
14362 # drive letters (cygwin fileutils understands them), so leave them,
14363 # especially as we might pass files found there to a mingw objdump,
14364 # which wouldn't understand a cygwinified path. Ahh.
14365 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14366 else
14367 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14368 fi
14369 ;;
14370 pw32*)
14371 # pw32 DLLs use 'pw' prefix rather than 'lib'
14372 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14373 ;;
14374 esac
14375 ;;
14376
14377 *)
14378 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14379 ;;
14380 esac
14381 dynamic_linker='Win32 ld.exe'
14382 # FIXME: first we should search . and the directory the executable is in
14383 shlibpath_var=PATH
14384 ;;
14385
14386darwin* | rhapsody*)
14387 dynamic_linker="$host_os dyld"
14388 version_type=darwin
14389 need_lib_prefix=no
14390 need_version=no
14391 # FIXME: Relying on posixy $() will cause problems for
14392 # cross-compilation, but unfortunately the echo tests do not
14393 # yet detect zsh echo's removal of \ escapes.
14394 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14395 soname_spec='${libname}${release}${major}$shared_ext'
14396 shlibpath_overrides_runpath=yes
14397 shlibpath_var=DYLD_LIBRARY_PATH
14398 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
14399 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14400 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
14401 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"`
14402 fi
14403 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14404 ;;
14405
14406dgux*)
14407 version_type=linux
14408 need_lib_prefix=no
14409 need_version=no
14410 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14411 soname_spec='${libname}${release}${shared_ext}$major'
14412 shlibpath_var=LD_LIBRARY_PATH
14413 ;;
14414
14415freebsd1*)
14416 dynamic_linker=no
14417 ;;
14418
14419freebsd*)
14420 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14421 version_type=freebsd-$objformat
14422 case $version_type in
14423 freebsd-elf*)
14424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14425 need_version=no
14426 need_lib_prefix=no
14427 ;;
14428 freebsd-*)
14429 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14430 need_version=yes
14431 ;;
14432 esac
14433 shlibpath_var=LD_LIBRARY_PATH
14434 case $host_os in
14435 freebsd2*)
14436 shlibpath_overrides_runpath=yes
14437 ;;
14438 freebsd3.01* | freebsdelf3.01*)
14439 shlibpath_overrides_runpath=yes
14440 hardcode_into_libs=yes
14441 ;;
14442 *) # from 3.2 on
14443 shlibpath_overrides_runpath=no
14444 hardcode_into_libs=yes
14445 ;;
14446 esac
14447 ;;
14448
14449gnu*)
14450 version_type=linux
14451 need_lib_prefix=no
14452 need_version=no
14453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14454 soname_spec='${libname}${release}${shared_ext}$major'
14455 shlibpath_var=LD_LIBRARY_PATH
14456 hardcode_into_libs=yes
14457 ;;
14458
14459hpux9* | hpux10* | hpux11*)
14460 # Give a soname corresponding to the major version so that dld.sl refuses to
14461 # link against other versions.
14462 version_type=sunos
14463 need_lib_prefix=no
14464 need_version=no
14465 case "$host_cpu" in
14466 ia64*)
14467 shrext='.so'
14468 hardcode_into_libs=yes
14469 dynamic_linker="$host_os dld.so"
14470 shlibpath_var=LD_LIBRARY_PATH
14471 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14472 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14473 soname_spec='${libname}${release}${shared_ext}$major'
14474 if test "X$HPUX_IA64_MODE" = X32; then
14475 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14476 else
14477 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14478 fi
14479 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14480 ;;
14481 hppa*64*)
14482 shrext='.sl'
14483 hardcode_into_libs=yes
14484 dynamic_linker="$host_os dld.sl"
14485 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14486 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14488 soname_spec='${libname}${release}${shared_ext}$major'
14489 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14490 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14491 ;;
14492 *)
14493 shrext='.sl'
14494 dynamic_linker="$host_os dld.sl"
14495 shlibpath_var=SHLIB_PATH
14496 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14498 soname_spec='${libname}${release}${shared_ext}$major'
14499 ;;
14500 esac
14501 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14502 postinstall_cmds='chmod 555 $lib'
14503 ;;
14504
14505irix5* | irix6* | nonstopux*)
14506 case $host_os in
14507 nonstopux*) version_type=nonstopux ;;
14508 *)
14509 if test "$lt_cv_prog_gnu_ld" = yes; then
14510 version_type=linux
14511 else
14512 version_type=irix
14513 fi ;;
14514 esac
14515 need_lib_prefix=no
14516 need_version=no
14517 soname_spec='${libname}${release}${shared_ext}$major'
14518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14519 case $host_os in
14520 irix5* | nonstopux*)
14521 libsuff= shlibsuff=
14522 ;;
14523 *)
14524 case $LD in # libtool.m4 will add one of these switches to LD
14525 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14526 libsuff= shlibsuff= libmagic=32-bit;;
14527 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14528 libsuff=32 shlibsuff=N32 libmagic=N32;;
14529 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14530 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14531 *) libsuff= shlibsuff= libmagic=never-match;;
14532 esac
14533 ;;
14534 esac
14535 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14536 shlibpath_overrides_runpath=no
14537 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14538 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14539 hardcode_into_libs=yes
14540 ;;
14541
14542# No shared lib support for Linux oldld, aout, or coff.
14543linux*oldld* | linux*aout* | linux*coff*)
14544 dynamic_linker=no
14545 ;;
14546
14547# This must be Linux ELF.
14548linux*)
14549 version_type=linux
14550 need_lib_prefix=no
14551 need_version=no
14552 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14553 soname_spec='${libname}${release}${shared_ext}$major'
14554 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14555 shlibpath_var=LD_LIBRARY_PATH
14556 shlibpath_overrides_runpath=no
14557 # This implies no fast_install, which is unacceptable.
14558 # Some rework will be needed to allow for fast_install
14559 # before this can be enabled.
14560 hardcode_into_libs=yes
14561
14562 # We used to test for /lib/ld.so.1 and disable shared libraries on
14563 # powerpc, because MkLinux only supported shared libraries with the
14564 # GNU dynamic linker. Since this was broken with cross compilers,
14565 # most powerpc-linux boxes support dynamic linking these days and
14566 # people can always --disable-shared, the test was removed, and we
14567 # assume the GNU/Linux dynamic linker is in use.
14568 dynamic_linker='GNU/Linux ld.so'
14569 ;;
14570
14571netbsd*)
14572 version_type=sunos
14573 need_lib_prefix=no
14574 need_version=no
14575 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14577 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14578 dynamic_linker='NetBSD (a.out) ld.so'
14579 else
14580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
14581 soname_spec='${libname}${release}${shared_ext}$major'
14582 dynamic_linker='NetBSD ld.elf_so'
14583 fi
14584 shlibpath_var=LD_LIBRARY_PATH
14585 shlibpath_overrides_runpath=yes
14586 hardcode_into_libs=yes
14587 ;;
14588
14589newsos6)
14590 version_type=linux
14591 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14592 shlibpath_var=LD_LIBRARY_PATH
14593 shlibpath_overrides_runpath=yes
14594 ;;
14595
14596nto-qnx)
14597 version_type=linux
14598 need_lib_prefix=no
14599 need_version=no
14600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14601 soname_spec='${libname}${release}${shared_ext}$major'
14602 shlibpath_var=LD_LIBRARY_PATH
14603 shlibpath_overrides_runpath=yes
14604 ;;
14605
14606openbsd*)
14607 version_type=sunos
14608 need_lib_prefix=no
14609 need_version=no
14610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14611 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14612 shlibpath_var=LD_LIBRARY_PATH
14613 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14614 case $host_os in
14615 openbsd2.[89] | openbsd2.[89].*)
14616 shlibpath_overrides_runpath=no
14617 ;;
14618 *)
14619 shlibpath_overrides_runpath=yes
14620 ;;
14621 esac
14622 else
14623 shlibpath_overrides_runpath=yes
14624 fi
14625 ;;
14626
14627os2*)
14628 libname_spec='$name'
14629 shrext=".dll"
14630 need_lib_prefix=no
14631 library_names_spec='$libname${shared_ext} $libname.a'
14632 dynamic_linker='OS/2 ld.exe'
14633 shlibpath_var=LIBPATH
14634 ;;
14635
14636osf3* | osf4* | osf5*)
14637 version_type=osf
14638 need_lib_prefix=no
14639 need_version=no
14640 soname_spec='${libname}${release}${shared_ext}$major'
14641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14642 shlibpath_var=LD_LIBRARY_PATH
14643 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14644 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14645 ;;
14646
14647sco3.2v5*)
14648 version_type=osf
14649 soname_spec='${libname}${release}${shared_ext}$major'
14650 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14651 shlibpath_var=LD_LIBRARY_PATH
14652 ;;
14653
14654solaris*)
14655 version_type=linux
14656 need_lib_prefix=no
14657 need_version=no
14658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14659 soname_spec='${libname}${release}${shared_ext}$major'
14660 shlibpath_var=LD_LIBRARY_PATH
14661 shlibpath_overrides_runpath=yes
14662 hardcode_into_libs=yes
14663 # ldd complains unless libraries are executable
14664 postinstall_cmds='chmod +x $lib'
14665 ;;
14666
14667sunos4*)
14668 version_type=sunos
14669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14670 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14671 shlibpath_var=LD_LIBRARY_PATH
14672 shlibpath_overrides_runpath=yes
14673 if test "$with_gnu_ld" = yes; then
14674 need_lib_prefix=no
14675 fi
14676 need_version=yes
14677 ;;
14678
14679sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14680 version_type=linux
14681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14682 soname_spec='${libname}${release}${shared_ext}$major'
14683 shlibpath_var=LD_LIBRARY_PATH
14684 case $host_vendor in
14685 sni)
14686 shlibpath_overrides_runpath=no
14687 need_lib_prefix=no
14688 export_dynamic_flag_spec='${wl}-Blargedynsym'
14689 runpath_var=LD_RUN_PATH
14690 ;;
14691 siemens)
14692 need_lib_prefix=no
14693 ;;
14694 motorola)
14695 need_lib_prefix=no
14696 need_version=no
14697 shlibpath_overrides_runpath=no
14698 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14699 ;;
14700 esac
14701 ;;
14702
14703sysv4*MP*)
14704 if test -d /usr/nec ;then
14705 version_type=linux
14706 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14707 soname_spec='$libname${shared_ext}.$major'
14708 shlibpath_var=LD_LIBRARY_PATH
14709 fi
14710 ;;
14711
14712uts4*)
14713 version_type=linux
14714 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14715 soname_spec='${libname}${release}${shared_ext}$major'
14716 shlibpath_var=LD_LIBRARY_PATH
14717 ;;
14718
14719*)
14720 dynamic_linker=no
14721 ;;
14722esac
14723echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14724echo "${ECHO_T}$dynamic_linker" >&6
14725test "$dynamic_linker" = no && can_build_shared=no
14726
14727
14728# The else clause should only fire when bootstrapping the
14729# libtool distribution, otherwise you forgot to ship ltmain.sh
14730# with your package, and you will get complaints that there are
14731# no rules to generate ltmain.sh.
14732if test -f "$ltmain"; then
14733 # See if we are running on zsh, and set the options which allow our commands through
14734 # without removal of \ escapes.
14735 if test -n "${ZSH_VERSION+set}" ; then
14736 setopt NO_GLOB_SUBST
14737 fi
14738 # Now quote all the things that may contain metacharacters while being
14739 # careful not to overquote the AC_SUBSTed values. We take copies of the
14740 # variables and quote the copies for generation of the libtool script.
14741 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
14742 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14743 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14744 deplibs_check_method reload_flag reload_cmds need_locks \
14745 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14746 lt_cv_sys_global_symbol_to_c_name_address \
14747 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14748 old_postinstall_cmds old_postuninstall_cmds \
14749 compiler_F77 \
14750 CC_F77 \
14751 LD_F77 \
14752 lt_prog_compiler_wl_F77 \
14753 lt_prog_compiler_pic_F77 \
14754 lt_prog_compiler_static_F77 \
14755 lt_prog_compiler_no_builtin_flag_F77 \
14756 export_dynamic_flag_spec_F77 \
14757 thread_safe_flag_spec_F77 \
14758 whole_archive_flag_spec_F77 \
14759 enable_shared_with_static_runtimes_F77 \
14760 old_archive_cmds_F77 \
14761 old_archive_from_new_cmds_F77 \
14762 predep_objects_F77 \
14763 postdep_objects_F77 \
14764 predeps_F77 \
14765 postdeps_F77 \
14766 compiler_lib_search_path_F77 \
14767 archive_cmds_F77 \
14768 archive_expsym_cmds_F77 \
14769 postinstall_cmds_F77 \
14770 postuninstall_cmds_F77 \
14771 old_archive_from_expsyms_cmds_F77 \
14772 allow_undefined_flag_F77 \
14773 no_undefined_flag_F77 \
14774 export_symbols_cmds_F77 \
14775 hardcode_libdir_flag_spec_F77 \
14776 hardcode_libdir_flag_spec_ld_F77 \
14777 hardcode_libdir_separator_F77 \
14778 hardcode_automatic_F77 \
14779 module_cmds_F77 \
14780 module_expsym_cmds_F77 \
14781 lt_cv_prog_compiler_c_o_F77 \
14782 exclude_expsyms_F77 \
14783 include_expsyms_F77; do
14784
14785 case $var in
14786 old_archive_cmds_F77 | \
14787 old_archive_from_new_cmds_F77 | \
14788 archive_cmds_F77 | \
14789 archive_expsym_cmds_F77 | \
14790 module_cmds_F77 | \
14791 module_expsym_cmds_F77 | \
14792 old_archive_from_expsyms_cmds_F77 | \
14793 export_symbols_cmds_F77 | \
14794 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14795 postinstall_cmds | postuninstall_cmds | \
14796 old_postinstall_cmds | old_postuninstall_cmds | \
14797 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14798 # Double-quote double-evaled strings.
14799 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14800 ;;
14801 *)
14802 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14803 ;;
14804 esac
14805 done
14806
14807 case $lt_echo in
14808 *'\$0 --fallback-echo"')
14809 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14810 ;;
14811 esac
14812
14813cfgfile="$ofile"
14814
14815 cat <<__EOF__ >> "$cfgfile"
14816# ### BEGIN LIBTOOL TAG CONFIG: $tagname
14817
14818# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14819
14820# Shell to use when invoking shell scripts.
14821SHELL=$lt_SHELL
14822
14823# Whether or not to build shared libraries.
14824build_libtool_libs=$enable_shared
14825
14826# Whether or not to build static libraries.
14827build_old_libs=$enable_static
14828
14829# Whether or not to add -lc for building shared libraries.
14830build_libtool_need_lc=$archive_cmds_need_lc_F77
14831
14832# Whether or not to disallow shared libs when runtime libs are static
14833allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14834
14835# Whether or not to optimize for fast installation.
14836fast_install=$enable_fast_install
14837
14838# The host system.
14839host_alias=$host_alias
14840host=$host
14841
14842# An echo program that does not interpret backslashes.
14843echo=$lt_echo
14844
14845# The archiver.
14846AR=$lt_AR
14847AR_FLAGS=$lt_AR_FLAGS
14848
14849# A C compiler.
14850LTCC=$lt_LTCC
14851
14852# A language-specific compiler.
14853CC=$lt_compiler_F77
14854
14855# Is the compiler the GNU C compiler?
14856with_gcc=$GCC_F77
14857
14858# An ERE matcher.
14859EGREP=$lt_EGREP
14860
14861# The linker used to build libraries.
14862LD=$lt_LD_F77
14863
14864# Whether we need hard or soft links.
14865LN_S=$lt_LN_S
14866
14867# A BSD-compatible nm program.
14868NM=$lt_NM
14869
14870# A symbol stripping program
14871STRIP=$STRIP
14872
14873# Used to examine libraries when file_magic_cmd begins "file"
14874MAGIC_CMD=$MAGIC_CMD
14875
14876# Used on cygwin: DLL creation program.
14877DLLTOOL="$DLLTOOL"
14878
14879# Used on cygwin: object dumper.
14880OBJDUMP="$OBJDUMP"
14881
14882# Used on cygwin: assembler.
14883AS="$AS"
14884
14885# The name of the directory that contains temporary libtool files.
14886objdir=$objdir
14887
14888# How to create reloadable object files.
14889reload_flag=$lt_reload_flag
14890reload_cmds=$lt_reload_cmds
14891
14892# How to pass a linker flag through the compiler.
14893wl=$lt_lt_prog_compiler_wl_F77
14894
14895# Object file suffix (normally "o").
14896objext="$ac_objext"
14897
14898# Old archive suffix (normally "a").
14899libext="$libext"
14900
14901# Shared library suffix (normally ".so").
14902shrext='$shrext'
14903
14904# Executable file suffix (normally "").
14905exeext="$exeext"
14906
14907# Additional compiler flags for building library objects.
14908pic_flag=$lt_lt_prog_compiler_pic_F77
14909pic_mode=$pic_mode
14910
14911# What is the maximum length of a command?
14912max_cmd_len=$lt_cv_sys_max_cmd_len
14913
14914# Does compiler simultaneously support -c and -o options?
14915compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14916
14917# Must we lock files when doing compilation ?
14918need_locks=$lt_need_locks
14919
14920# Do we need the lib prefix for modules?
14921need_lib_prefix=$need_lib_prefix
14922
14923# Do we need a version for libraries?
14924need_version=$need_version
14925
14926# Whether dlopen is supported.
14927dlopen_support=$enable_dlopen
14928
14929# Whether dlopen of programs is supported.
14930dlopen_self=$enable_dlopen_self
14931
14932# Whether dlopen of statically linked programs is supported.
14933dlopen_self_static=$enable_dlopen_self_static
14934
14935# Compiler flag to prevent dynamic linking.
14936link_static_flag=$lt_lt_prog_compiler_static_F77
14937
14938# Compiler flag to turn off builtin functions.
14939no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14940
14941# Compiler flag to allow reflexive dlopens.
14942export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14943
14944# Compiler flag to generate shared objects directly from archives.
14945whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14946
14947# Compiler flag to generate thread-safe objects.
14948thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14949
14950# Library versioning type.
14951version_type=$version_type
14952
14953# Format of library name prefix.
14954libname_spec=$lt_libname_spec
14955
14956# List of archive names. First name is the real one, the rest are links.
14957# The last name is the one that the linker finds with -lNAME.
14958library_names_spec=$lt_library_names_spec
14959
14960# The coded name of the library, if different from the real name.
14961soname_spec=$lt_soname_spec
14962
14963# Commands used to build and install an old-style archive.
14964RANLIB=$lt_RANLIB
14965old_archive_cmds=$lt_old_archive_cmds_F77
14966old_postinstall_cmds=$lt_old_postinstall_cmds
14967old_postuninstall_cmds=$lt_old_postuninstall_cmds
14968
14969# Create an old-style archive from a shared archive.
14970old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14971
14972# Create a temporary old-style archive to link instead of a shared archive.
14973old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14974
14975# Commands used to build and install a shared archive.
14976archive_cmds=$lt_archive_cmds_F77
14977archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14978postinstall_cmds=$lt_postinstall_cmds
14979postuninstall_cmds=$lt_postuninstall_cmds
14980
14981# Commands used to build a loadable module (assumed same as above if empty)
14982module_cmds=$lt_module_cmds_F77
14983module_expsym_cmds=$lt_module_expsym_cmds_F77
14984
14985# Commands to strip libraries.
14986old_striplib=$lt_old_striplib
14987striplib=$lt_striplib
14988
14989# Dependencies to place before the objects being linked to create a
14990# shared library.
14991predep_objects=$lt_predep_objects_F77
14992
14993# Dependencies to place after the objects being linked to create a
14994# shared library.
14995postdep_objects=$lt_postdep_objects_F77
14996
14997# Dependencies to place before the objects being linked to create a
14998# shared library.
14999predeps=$lt_predeps_F77
15000
15001# Dependencies to place after the objects being linked to create a
15002# shared library.
15003postdeps=$lt_postdeps_F77
15004
15005# The library search path used internally by the compiler when linking
15006# a shared library.
15007compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15008
15009# Method to check whether dependent libraries are shared objects.
15010deplibs_check_method=$lt_deplibs_check_method
15011
15012# Command to use when deplibs_check_method == file_magic.
15013file_magic_cmd=$lt_file_magic_cmd
15014
15015# Flag that allows shared libraries with undefined symbols to be built.
15016allow_undefined_flag=$lt_allow_undefined_flag_F77
15017
15018# Flag that forces no undefined symbols.
15019no_undefined_flag=$lt_no_undefined_flag_F77
15020
15021# Commands used to finish a libtool library installation in a directory.
15022finish_cmds=$lt_finish_cmds
15023
15024# Same as above, but a single script fragment to be evaled but not shown.
15025finish_eval=$lt_finish_eval
15026
15027# Take the output of nm and produce a listing of raw symbols and C names.
15028global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15029
15030# Transform the output of nm in a proper C declaration
15031global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15032
15033# Transform the output of nm in a C name address pair
15034global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15035
15036# This is the shared library runtime path variable.
15037runpath_var=$runpath_var
15038
15039# This is the shared library path variable.
15040shlibpath_var=$shlibpath_var
15041
15042# Is shlibpath searched before the hard-coded library search path?
15043shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15044
15045# How to hardcode a shared library path into an executable.
15046hardcode_action=$hardcode_action_F77
15047
15048# Whether we should hardcode library paths into libraries.
15049hardcode_into_libs=$hardcode_into_libs
15050
15051# Flag to hardcode \$libdir into a binary during linking.
15052# This must work even if \$libdir does not exist.
15053hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15054
15055# If ld is used when linking, flag to hardcode \$libdir into
15056# a binary during linking. This must work even if \$libdir does
15057# not exist.
15058hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15059
15060# Whether we need a single -rpath flag with a separated argument.
15061hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15062
15063# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15064# resulting binary.
15065hardcode_direct=$hardcode_direct_F77
15066
15067# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15068# resulting binary.
15069hardcode_minus_L=$hardcode_minus_L_F77
15070
15071# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15072# the resulting binary.
15073hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15074
15075# Set to yes if building a shared library automatically hardcodes DIR into the library
15076# and all subsequent libraries and executables linked against it.
15077hardcode_automatic=$hardcode_automatic_F77
15078
15079# Variables whose values should be saved in libtool wrapper scripts and
15080# restored at relink time.
15081variables_saved_for_relink="$variables_saved_for_relink"
15082
15083# Whether libtool must link a program against all its dependency libraries.
15084link_all_deplibs=$link_all_deplibs_F77
15085
15086# Compile-time system search path for libraries
15087sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15088
15089# Run-time system search path for libraries
15090sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15091
15092# Fix the shell variable \$srcfile for the compiler.
15093fix_srcfile_path="$fix_srcfile_path_F77"
15094
15095# Set to yes if exported symbols are required.
15096always_export_symbols=$always_export_symbols_F77
15097
15098# The commands to list exported symbols.
15099export_symbols_cmds=$lt_export_symbols_cmds_F77
15100
15101# The commands to extract the exported symbol list from a shared archive.
15102extract_expsyms_cmds=$lt_extract_expsyms_cmds
15103
15104# Symbols that should not be listed in the preloaded symbols.
15105exclude_expsyms=$lt_exclude_expsyms_F77
15106
15107# Symbols that must always be exported.
15108include_expsyms=$lt_include_expsyms_F77
15109
15110# ### END LIBTOOL TAG CONFIG: $tagname
15111
15112__EOF__
15113
15114
15115else
15116 # If there is no Makefile yet, we rely on a make rule to execute
15117 # `config.status --recheck' to rerun these tests and create the
15118 # libtool script then.
15119 test -f Makefile && make "$ltmain"
15120fi
15121
15122
15123ac_ext=c
15124ac_cpp='$CPP $CPPFLAGS'
15125ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15126ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15127ac_compiler_gnu=$ac_cv_c_compiler_gnu
15128
15129CC="$lt_save_CC"
15130
15131 else
15132 tagname=""
15133 fi
15134 ;;
15135
15136 GCJ)
15137 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15138
15139
15140
15141# Source file extension for Java test sources.
15142ac_ext=java
15143
15144# Object file extension for compiled Java test sources.
15145objext=o
15146objext_GCJ=$objext
15147
15148# Code to be used in simple compile tests
15149lt_simple_compile_test_code="class foo {}\n"
15150
15151# Code to be used in simple link tests
15152lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15153
15154# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15155
15156# If no C compiler was specified, use CC.
15157LTCC=${LTCC-"$CC"}
15158
15159# Allow CC to be a program name with arguments.
15160compiler=$CC
15161
15162
15163# Allow CC to be a program name with arguments.
15164lt_save_CC="$CC"
15165CC=${GCJ-"gcj"}
15166compiler=$CC
15167compiler_GCJ=$CC
15168
15169# GCJ did not exist at the time GCC didn't implicitly link libc in.
15170archive_cmds_need_lc_GCJ=no
15171
Reid Spencer2b51a082004-08-04 00:34:49 +000015172## CAVEAT EMPTOR:
15173## There is no encapsulation within the following macros, do not change
15174## the running order or otherwise move them around unless you know exactly
15175## what you are doing...
John Criswell47fdd832003-07-14 16:52:07 +000015176
15177lt_prog_compiler_no_builtin_flag_GCJ=
15178
15179if test "$GCC" = yes; then
15180 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15181
15182 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15183echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15184if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15185 echo $ECHO_N "(cached) $ECHO_C" >&6
15186else
15187 lt_cv_prog_compiler_rtti_exceptions=no
15188 ac_outfile=conftest.$ac_objext
15189 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15190 lt_compiler_flag="-fno-rtti -fno-exceptions"
15191 # Insert the option either (1) after the last *FLAGS variable, or
15192 # (2) before a word containing "conftest.", or (3) at the end.
15193 # Note that $ac_compile itself does not contain backslashes and begins
15194 # with a dollar sign (not a hyphen), so the echo should work correctly.
15195 # The option is referenced via a variable to avoid confusing sed.
15196 lt_compile=`echo "$ac_compile" | $SED \
15197 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15198 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15199 -e 's:$: $lt_compiler_flag:'`
Reid Spencer73fb5482004-08-31 14:20:36 +000015200 (eval echo "\"\$as_me:15200: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000015201 (eval "$lt_compile" 2>conftest.err)
15202 ac_status=$?
15203 cat conftest.err >&5
Reid Spencer73fb5482004-08-31 14:20:36 +000015204 echo "$as_me:15204: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000015205 if (exit $ac_status) && test -s "$ac_outfile"; then
15206 # The compiler can only warn and ignore the option if not recognized
15207 # So say no if there are warnings
15208 if test ! -s conftest.err; then
15209 lt_cv_prog_compiler_rtti_exceptions=yes
15210 fi
15211 fi
15212 $rm conftest*
15213
15214fi
15215echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15216echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15217
15218if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15219 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15220else
15221 :
15222fi
15223
15224fi
15225
15226lt_prog_compiler_wl_GCJ=
15227lt_prog_compiler_pic_GCJ=
15228lt_prog_compiler_static_GCJ=
15229
15230echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15231echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15232
15233 if test "$GCC" = yes; then
15234 lt_prog_compiler_wl_GCJ='-Wl,'
15235 lt_prog_compiler_static_GCJ='-static'
15236
15237 case $host_os in
15238 aix*)
15239 # All AIX code is PIC.
15240 if test "$host_cpu" = ia64; then
15241 # AIX 5 now supports IA64 processor
15242 lt_prog_compiler_static_GCJ='-Bstatic'
15243 fi
15244 ;;
15245
15246 amigaos*)
15247 # FIXME: we need at least 68020 code to build shared libraries, but
15248 # adding the `-m68020' flag to GCC prevents building anything better,
15249 # like `-m68040'.
15250 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15251 ;;
15252
15253 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15254 # PIC is the default for these OSes.
15255 ;;
15256
15257 mingw* | pw32* | os2*)
15258 # This hack is so that the source file can tell whether it is being
15259 # built for inclusion in a dll (and should export symbols for example).
15260 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15261 ;;
15262
15263 darwin* | rhapsody*)
15264 # PIC is the default on this platform
15265 # Common symbols not allowed in MH_DYLIB files
15266 lt_prog_compiler_pic_GCJ='-fno-common'
15267 ;;
15268
15269 msdosdjgpp*)
15270 # Just because we use GCC doesn't mean we suddenly get shared libraries
15271 # on systems that don't support them.
15272 lt_prog_compiler_can_build_shared_GCJ=no
15273 enable_shared=no
15274 ;;
15275
15276 sysv4*MP*)
15277 if test -d /usr/nec; then
15278 lt_prog_compiler_pic_GCJ=-Kconform_pic
15279 fi
15280 ;;
15281
15282 hpux*)
15283 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15284 # not for PA HP-UX.
15285 case "$host_cpu" in
15286 hppa*64*|ia64*)
15287 # +Z the default
15288 ;;
15289 *)
15290 lt_prog_compiler_pic_GCJ='-fPIC'
15291 ;;
15292 esac
15293 ;;
15294
15295 *)
15296 lt_prog_compiler_pic_GCJ='-fPIC'
15297 ;;
15298 esac
15299 else
15300 # PORTME Check for flag to pass linker flags through the system compiler.
15301 case $host_os in
15302 aix*)
15303 lt_prog_compiler_wl_GCJ='-Wl,'
15304 if test "$host_cpu" = ia64; then
15305 # AIX 5 now supports IA64 processor
15306 lt_prog_compiler_static_GCJ='-Bstatic'
15307 else
15308 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15309 fi
15310 ;;
15311
15312 mingw* | pw32* | os2*)
15313 # This hack is so that the source file can tell whether it is being
15314 # built for inclusion in a dll (and should export symbols for example).
15315 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15316 ;;
15317
15318 hpux9* | hpux10* | hpux11*)
15319 lt_prog_compiler_wl_GCJ='-Wl,'
15320 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15321 # not for PA HP-UX.
15322 case "$host_cpu" in
15323 hppa*64*|ia64*)
15324 # +Z the default
15325 ;;
15326 *)
15327 lt_prog_compiler_pic_GCJ='+Z'
15328 ;;
15329 esac
15330 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15331 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15332 ;;
15333
15334 irix5* | irix6* | nonstopux*)
15335 lt_prog_compiler_wl_GCJ='-Wl,'
15336 # PIC (with -KPIC) is the default.
15337 lt_prog_compiler_static_GCJ='-non_shared'
15338 ;;
15339
15340 newsos6)
15341 lt_prog_compiler_pic_GCJ='-KPIC'
15342 lt_prog_compiler_static_GCJ='-Bstatic'
15343 ;;
15344
15345 linux*)
15346 case $CC in
15347 icc|ecc)
15348 lt_prog_compiler_wl_GCJ='-Wl,'
15349 lt_prog_compiler_pic_GCJ='-KPIC'
15350 lt_prog_compiler_static_GCJ='-static'
15351 ;;
15352 ccc)
15353 lt_prog_compiler_wl_GCJ='-Wl,'
15354 # All Alpha code is PIC.
15355 lt_prog_compiler_static_GCJ='-non_shared'
15356 ;;
15357 esac
15358 ;;
15359
15360 osf3* | osf4* | osf5*)
15361 lt_prog_compiler_wl_GCJ='-Wl,'
15362 # All OSF/1 code is PIC.
15363 lt_prog_compiler_static_GCJ='-non_shared'
15364 ;;
15365
15366 sco3.2v5*)
15367 lt_prog_compiler_pic_GCJ='-Kpic'
15368 lt_prog_compiler_static_GCJ='-dn'
15369 ;;
15370
15371 solaris*)
15372 lt_prog_compiler_wl_GCJ='-Wl,'
15373 lt_prog_compiler_pic_GCJ='-KPIC'
15374 lt_prog_compiler_static_GCJ='-Bstatic'
15375 ;;
15376
15377 sunos4*)
15378 lt_prog_compiler_wl_GCJ='-Qoption ld '
15379 lt_prog_compiler_pic_GCJ='-PIC'
15380 lt_prog_compiler_static_GCJ='-Bstatic'
15381 ;;
15382
15383 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15384 lt_prog_compiler_wl_GCJ='-Wl,'
15385 lt_prog_compiler_pic_GCJ='-KPIC'
15386 lt_prog_compiler_static_GCJ='-Bstatic'
15387 ;;
15388
15389 sysv4*MP*)
15390 if test -d /usr/nec ;then
15391 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15392 lt_prog_compiler_static_GCJ='-Bstatic'
15393 fi
15394 ;;
15395
15396 uts4*)
15397 lt_prog_compiler_pic_GCJ='-pic'
15398 lt_prog_compiler_static_GCJ='-Bstatic'
15399 ;;
15400
15401 *)
15402 lt_prog_compiler_can_build_shared_GCJ=no
15403 ;;
15404 esac
15405 fi
15406
15407echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15408echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15409
15410#
15411# Check to make sure the PIC flag actually works.
15412#
15413if test -n "$lt_prog_compiler_pic_GCJ"; then
15414 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15415echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15416if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15417 echo $ECHO_N "(cached) $ECHO_C" >&6
15418else
15419 lt_prog_compiler_pic_works_GCJ=no
15420 ac_outfile=conftest.$ac_objext
15421 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15422 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15423 # Insert the option either (1) after the last *FLAGS variable, or
15424 # (2) before a word containing "conftest.", or (3) at the end.
15425 # Note that $ac_compile itself does not contain backslashes and begins
15426 # with a dollar sign (not a hyphen), so the echo should work correctly.
15427 # The option is referenced via a variable to avoid confusing sed.
15428 lt_compile=`echo "$ac_compile" | $SED \
15429 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15430 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15431 -e 's:$: $lt_compiler_flag:'`
Reid Spencer73fb5482004-08-31 14:20:36 +000015432 (eval echo "\"\$as_me:15432: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000015433 (eval "$lt_compile" 2>conftest.err)
15434 ac_status=$?
15435 cat conftest.err >&5
Reid Spencer73fb5482004-08-31 14:20:36 +000015436 echo "$as_me:15436: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000015437 if (exit $ac_status) && test -s "$ac_outfile"; then
15438 # The compiler can only warn and ignore the option if not recognized
15439 # So say no if there are warnings
15440 if test ! -s conftest.err; then
15441 lt_prog_compiler_pic_works_GCJ=yes
15442 fi
15443 fi
15444 $rm conftest*
15445
15446fi
15447echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15448echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15449
15450if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15451 case $lt_prog_compiler_pic_GCJ in
15452 "" | " "*) ;;
15453 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15454 esac
15455else
15456 lt_prog_compiler_pic_GCJ=
15457 lt_prog_compiler_can_build_shared_GCJ=no
15458fi
15459
15460fi
15461case "$host_os" in
15462 # For platforms which do not support PIC, -DPIC is meaningless:
15463 *djgpp*)
15464 lt_prog_compiler_pic_GCJ=
15465 ;;
15466 *)
15467 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15468 ;;
15469esac
15470
15471echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15472echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15473if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15474 echo $ECHO_N "(cached) $ECHO_C" >&6
15475else
15476 lt_cv_prog_compiler_c_o_GCJ=no
15477 $rm -r conftest 2>/dev/null
15478 mkdir conftest
15479 cd conftest
15480 mkdir out
15481 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15482
15483 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
15484 # that will create temporary files in the current directory regardless of
15485 # the output directory. Thus, making CWD read-only will cause this test
15486 # to fail, enabling locking or at least warning the user not to do parallel
15487 # builds.
15488 chmod -w .
15489
15490 lt_compiler_flag="-o out/conftest2.$ac_objext"
15491 # Insert the option either (1) after the last *FLAGS variable, or
15492 # (2) before a word containing "conftest.", or (3) at the end.
15493 # Note that $ac_compile itself does not contain backslashes and begins
15494 # with a dollar sign (not a hyphen), so the echo should work correctly.
15495 lt_compile=`echo "$ac_compile" | $SED \
15496 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15497 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15498 -e 's:$: $lt_compiler_flag:'`
Reid Spencer73fb5482004-08-31 14:20:36 +000015499 (eval echo "\"\$as_me:15499: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000015500 (eval "$lt_compile" 2>out/conftest.err)
15501 ac_status=$?
15502 cat out/conftest.err >&5
Reid Spencer73fb5482004-08-31 14:20:36 +000015503 echo "$as_me:15503: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000015504 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15505 then
15506 # The compiler can only warn and ignore the option if not recognized
15507 # So say no if there are warnings
15508 if test ! -s out/conftest.err; then
15509 lt_cv_prog_compiler_c_o_GCJ=yes
15510 fi
15511 fi
15512 chmod u+w .
15513 $rm conftest* out/*
15514 rmdir out
15515 cd ..
15516 rmdir conftest
15517 $rm conftest*
15518
15519fi
15520echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15521echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15522
15523
15524hard_links="nottested"
15525if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15526 # do not overwrite the value of need_locks provided by the user
15527 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15528echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15529 hard_links=yes
15530 $rm conftest*
15531 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15532 touch conftest.a
15533 ln conftest.a conftest.b 2>&5 || hard_links=no
15534 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15535 echo "$as_me:$LINENO: result: $hard_links" >&5
15536echo "${ECHO_T}$hard_links" >&6
15537 if test "$hard_links" = no; then
15538 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15539echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15540 need_locks=warn
15541 fi
15542else
15543 need_locks=no
15544fi
15545
15546echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15547echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15548
15549 runpath_var=
15550 allow_undefined_flag_GCJ=
15551 enable_shared_with_static_runtimes_GCJ=no
15552 archive_cmds_GCJ=
15553 archive_expsym_cmds_GCJ=
15554 old_archive_From_new_cmds_GCJ=
15555 old_archive_from_expsyms_cmds_GCJ=
15556 export_dynamic_flag_spec_GCJ=
15557 whole_archive_flag_spec_GCJ=
15558 thread_safe_flag_spec_GCJ=
15559 hardcode_libdir_flag_spec_GCJ=
15560 hardcode_libdir_flag_spec_ld_GCJ=
15561 hardcode_libdir_separator_GCJ=
15562 hardcode_direct_GCJ=no
15563 hardcode_minus_L_GCJ=no
15564 hardcode_shlibpath_var_GCJ=unsupported
15565 link_all_deplibs_GCJ=unknown
15566 hardcode_automatic_GCJ=no
15567 module_cmds_GCJ=
15568 module_expsym_cmds_GCJ=
15569 always_export_symbols_GCJ=no
15570 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15571 # include_expsyms should be a list of space-separated symbols to be *always*
15572 # included in the symbol list
15573 include_expsyms_GCJ=
15574 # exclude_expsyms can be an extended regexp of symbols to exclude
15575 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15576 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15577 # as well as any symbol that contains `d'.
15578 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15579 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15580 # platforms (ab)use it in PIC code, but their linkers get confused if
15581 # the symbol is explicitly referenced. Since portable code cannot
15582 # rely on this symbol name, it's probably fine to never include it in
15583 # preloaded symbol tables.
15584 extract_expsyms_cmds=
15585
15586 case $host_os in
15587 cygwin* | mingw* | pw32*)
15588 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15589 # When not using gcc, we currently assume that we are using
15590 # Microsoft Visual C++.
15591 if test "$GCC" != yes; then
15592 with_gnu_ld=no
15593 fi
15594 ;;
15595 openbsd*)
15596 with_gnu_ld=no
15597 ;;
15598 esac
15599
15600 ld_shlibs_GCJ=yes
15601 if test "$with_gnu_ld" = yes; then
15602 # If archive_cmds runs LD, not CC, wlarc should be empty
15603 wlarc='${wl}'
15604
15605 # See if GNU ld supports shared libraries.
15606 case $host_os in
15607 aix3* | aix4* | aix5*)
15608 # On AIX/PPC, the GNU linker is very broken
15609 if test "$host_cpu" != ia64; then
15610 ld_shlibs_GCJ=no
15611 cat <<EOF 1>&2
15612
15613*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15614*** to be unable to reliably create shared libraries on AIX.
15615*** Therefore, libtool is disabling shared libraries support. If you
15616*** really care for shared libraries, you may want to modify your PATH
15617*** so that a non-GNU linker is found, and then restart.
15618
15619EOF
15620 fi
15621 ;;
15622
15623 amigaos*)
15624 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)'
15625 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15626 hardcode_minus_L_GCJ=yes
15627
15628 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15629 # that the semantics of dynamic libraries on AmigaOS, at least up
15630 # to version 4, is to share data among multiple programs linked
15631 # with the same dynamic library. Since this doesn't match the
15632 # behavior of shared libraries on other platforms, we can't use
15633 # them.
15634 ld_shlibs_GCJ=no
15635 ;;
15636
15637 beos*)
15638 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15639 allow_undefined_flag_GCJ=unsupported
15640 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15641 # support --undefined. This deserves some investigation. FIXME
15642 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15643 else
15644 ld_shlibs_GCJ=no
15645 fi
15646 ;;
15647
15648 cygwin* | mingw* | pw32*)
15649 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15650 # as there is no search path for DLLs.
15651 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15652 allow_undefined_flag_GCJ=unsupported
15653 always_export_symbols_GCJ=no
15654 enable_shared_with_static_runtimes_GCJ=yes
15655 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15656
15657 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15658 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15659 # If the export-symbols file already is a .def file (1st line
15660 # is EXPORTS), use it as is; otherwise, prepend...
15661 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15662 cp $export_symbols $output_objdir/$soname.def;
15663 else
15664 echo EXPORTS > $output_objdir/$soname.def;
15665 cat $export_symbols >> $output_objdir/$soname.def;
15666 fi~
15667 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15668 else
15669 ld_shlibs=no
15670 fi
15671 ;;
15672
15673 netbsd*)
15674 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15675 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15676 wlarc=
15677 else
15678 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15679 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15680 fi
15681 ;;
15682
15683 solaris* | sysv5*)
15684 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15685 ld_shlibs_GCJ=no
15686 cat <<EOF 1>&2
15687
15688*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15689*** create shared libraries on Solaris systems. Therefore, libtool
15690*** is disabling shared libraries support. We urge you to upgrade GNU
15691*** binutils to release 2.9.1 or newer. Another option is to modify
15692*** your PATH or compiler configuration so that the native linker is
15693*** used, and then restart.
15694
15695EOF
15696 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15697 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15698 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15699 else
15700 ld_shlibs_GCJ=no
15701 fi
15702 ;;
15703
15704 sunos4*)
15705 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15706 wlarc=
15707 hardcode_direct_GCJ=yes
15708 hardcode_shlibpath_var_GCJ=no
15709 ;;
15710
15711 *)
15712 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15713 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15714 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15715 else
15716 ld_shlibs_GCJ=no
15717 fi
15718 ;;
15719 esac
15720
15721 if test "$ld_shlibs_GCJ" = yes; then
15722 runpath_var=LD_RUN_PATH
15723 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15724 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15725 # ancient GNU ld didn't support --whole-archive et. al.
15726 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15727 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15728 else
15729 whole_archive_flag_spec_GCJ=
15730 fi
15731 fi
15732 else
15733 # PORTME fill in a description of your system's linker (not GNU ld)
15734 case $host_os in
15735 aix3*)
15736 allow_undefined_flag_GCJ=unsupported
15737 always_export_symbols_GCJ=yes
15738 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'
15739 # Note: this linker hardcodes the directories in LIBPATH if there
15740 # are no directories specified by -L.
15741 hardcode_minus_L_GCJ=yes
15742 if test "$GCC" = yes && test -z "$link_static_flag"; then
15743 # Neither direct hardcoding nor static linking is supported with a
15744 # broken collect2.
15745 hardcode_direct_GCJ=unsupported
15746 fi
15747 ;;
15748
15749 aix4* | aix5*)
15750 if test "$host_cpu" = ia64; then
15751 # On IA64, the linker does run time linking by default, so we don't
15752 # have to do anything special.
15753 aix_use_runtimelinking=no
15754 exp_sym_flag='-Bexport'
15755 no_entry_flag=""
15756 else
15757 # If we're using GNU nm, then we don't want the "-C" option.
15758 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15759 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15760 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'
15761 else
15762 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'
15763 fi
15764 aix_use_runtimelinking=no
15765
15766 # Test if we are trying to use run time linking or normal
15767 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15768 # need to do runtime linking.
15769 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15770 for ld_flag in $LDFLAGS; do
15771 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15772 aix_use_runtimelinking=yes
15773 break
15774 fi
15775 done
15776 esac
15777
15778 exp_sym_flag='-bexport'
15779 no_entry_flag='-bnoentry'
15780 fi
15781
15782 # When large executables or shared objects are built, AIX ld can
15783 # have problems creating the table of contents. If linking a library
15784 # or program results in "error TOC overflow" add -mminimal-toc to
15785 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15786 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15787
15788 archive_cmds_GCJ=''
15789 hardcode_direct_GCJ=yes
15790 hardcode_libdir_separator_GCJ=':'
15791 link_all_deplibs_GCJ=yes
15792
15793 if test "$GCC" = yes; then
15794 case $host_os in aix4.012|aix4.012.*)
15795 # We only want to do this on AIX 4.2 and lower, the check
15796 # below for broken collect2 doesn't work under 4.3+
15797 collect2name=`${CC} -print-prog-name=collect2`
15798 if test -f "$collect2name" && \
15799 strings "$collect2name" | grep resolve_lib_name >/dev/null
15800 then
15801 # We have reworked collect2
15802 hardcode_direct_GCJ=yes
15803 else
15804 # We have old collect2
15805 hardcode_direct_GCJ=unsupported
15806 # It fails to find uninstalled libraries when the uninstalled
15807 # path is not listed in the libpath. Setting hardcode_minus_L
15808 # to unsupported forces relinking
15809 hardcode_minus_L_GCJ=yes
15810 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15811 hardcode_libdir_separator_GCJ=
15812 fi
15813 esac
15814 shared_flag='-shared'
15815 else
15816 # not using gcc
15817 if test "$host_cpu" = ia64; then
15818 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15819 # chokes on -Wl,-G. The following line is correct:
15820 shared_flag='-G'
15821 else
15822 if test "$aix_use_runtimelinking" = yes; then
15823 shared_flag='${wl}-G'
15824 else
15825 shared_flag='${wl}-bM:SRE'
15826 fi
15827 fi
15828 fi
15829
15830 # It seems that -bexpall does not export symbols beginning with
15831 # underscore (_), so it is better to generate a list of symbols to export.
15832 always_export_symbols_GCJ=yes
15833 if test "$aix_use_runtimelinking" = yes; then
15834 # Warning - without using the other runtime loading flags (-brtl),
15835 # -berok will link without error, but may produce a broken library.
15836 allow_undefined_flag_GCJ='-berok'
15837 # Determine the default libpath from the value encoded in an empty executable.
15838 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015839/* confdefs.h. */
15840_ACEOF
15841cat confdefs.h >>conftest.$ac_ext
15842cat >>conftest.$ac_ext <<_ACEOF
15843/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000015844
John Criswell47fdd832003-07-14 16:52:07 +000015845int
15846main ()
15847{
15848
15849 ;
15850 return 0;
15851}
15852_ACEOF
15853rm -f conftest.$ac_objext conftest$ac_exeext
15854if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000015855 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000015856 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000015857 grep -v '^ *+' conftest.er1 >conftest.err
15858 rm -f conftest.er1
15859 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000015860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15861 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000015862 { ac_try='test -z "$ac_c_werror_flag"
15863 || test ! -s conftest.err'
15864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15865 (eval $ac_try) 2>&5
15866 ac_status=$?
15867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15868 (exit $ac_status); }; } &&
15869 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000015870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15871 (eval $ac_try) 2>&5
15872 ac_status=$?
15873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15874 (exit $ac_status); }; }; then
15875
15876aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15877}'`
15878# Check for a 64-bit object if we didn't find anything.
15879if 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; }
15880}'`; fi
15881else
15882 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015883sed 's/^/| /' conftest.$ac_ext >&5
15884
John Criswell47fdd832003-07-14 16:52:07 +000015885fi
Reid Spencer2b51a082004-08-04 00:34:49 +000015886rm -f conftest.err conftest.$ac_objext \
15887 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015888if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15889
15890 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15891 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"
15892 else
15893 if test "$host_cpu" = ia64; then
15894 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
15895 allow_undefined_flag_GCJ="-z nodefs"
15896 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"
15897 else
15898 # Determine the default libpath from the value encoded in an empty executable.
15899 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015900/* confdefs.h. */
15901_ACEOF
15902cat confdefs.h >>conftest.$ac_ext
15903cat >>conftest.$ac_ext <<_ACEOF
15904/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000015905
John Criswell47fdd832003-07-14 16:52:07 +000015906int
15907main ()
15908{
15909
15910 ;
15911 return 0;
15912}
15913_ACEOF
15914rm -f conftest.$ac_objext conftest$ac_exeext
15915if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000015916 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000015917 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000015918 grep -v '^ *+' conftest.er1 >conftest.err
15919 rm -f conftest.er1
15920 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000015921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15922 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000015923 { ac_try='test -z "$ac_c_werror_flag"
15924 || test ! -s conftest.err'
15925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15926 (eval $ac_try) 2>&5
15927 ac_status=$?
15928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15929 (exit $ac_status); }; } &&
15930 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000015931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15932 (eval $ac_try) 2>&5
15933 ac_status=$?
15934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15935 (exit $ac_status); }; }; then
15936
15937aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15938}'`
15939# Check for a 64-bit object if we didn't find anything.
15940if 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; }
15941}'`; fi
15942else
15943 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015944sed 's/^/| /' conftest.$ac_ext >&5
15945
John Criswell47fdd832003-07-14 16:52:07 +000015946fi
Reid Spencer2b51a082004-08-04 00:34:49 +000015947rm -f conftest.err conftest.$ac_objext \
15948 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015949if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15950
15951 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15952 # Warning - without using the other run time loading flags,
15953 # -berok will link without error, but may produce a broken library.
15954 no_undefined_flag_GCJ=' ${wl}-bernotok'
15955 allow_undefined_flag_GCJ=' ${wl}-berok'
15956 # -bexpall does not export symbols beginning with underscore (_)
15957 always_export_symbols_GCJ=yes
15958 # Exported symbols can be pulled into shared objects from archives
15959 whole_archive_flag_spec_GCJ=' '
15960 archive_cmds_need_lc_GCJ=yes
15961 # This is similar to how AIX traditionally builds it's shared libraries.
15962 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'
15963 fi
15964 fi
15965 ;;
15966
15967 amigaos*)
15968 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)'
15969 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15970 hardcode_minus_L_GCJ=yes
15971 # see comment about different semantics on the GNU ld section
15972 ld_shlibs_GCJ=no
15973 ;;
15974
15975 bsdi4*)
15976 export_dynamic_flag_spec_GCJ=-rdynamic
15977 ;;
15978
15979 cygwin* | mingw* | pw32*)
15980 # When not using gcc, we currently assume that we are using
15981 # Microsoft Visual C++.
15982 # hardcode_libdir_flag_spec is actually meaningless, as there is
15983 # no search path for DLLs.
15984 hardcode_libdir_flag_spec_GCJ=' '
15985 allow_undefined_flag_GCJ=unsupported
15986 # Tell ltmain to make .lib files, not .a files.
15987 libext=lib
15988 # Tell ltmain to make .dll files, not .so files.
15989 shrext=".dll"
15990 # FIXME: Setting linknames here is a bad hack.
15991 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15992 # The linker will automatically build a .lib file if we build a DLL.
15993 old_archive_From_new_cmds_GCJ='true'
15994 # FIXME: Should let the user specify the lib program.
15995 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
15996 fix_srcfile_path='`cygpath -w "$srcfile"`'
15997 enable_shared_with_static_runtimes_GCJ=yes
15998 ;;
15999
16000 darwin* | rhapsody*)
16001 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
16002 archive_cmds_need_lc_GCJ=no
16003 case "$host_os" in
16004 rhapsody* | darwin1.[012])
16005 allow_undefined_flag_GCJ='-undefined suppress'
16006 ;;
16007 *) # Darwin 1.3 on
16008 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16009 ;;
16010 esac
16011 # FIXME: Relying on posixy $() will cause problems for
16012 # cross-compilation, but unfortunately the echo tests do not
16013 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
16014 # `"' quotes if we put them in here... so don't!
16015 lt_int_apple_cc_single_mod=no
16016 output_verbose_link_cmd='echo'
16017 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
16018 lt_int_apple_cc_single_mod=yes
16019 fi
16020 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16021 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16022 else
16023 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'
16024 fi
16025 module_cmds_GCJ='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
16026 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16027 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16028 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}'
16029 else
16030 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}'
16031 fi
16032 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}'
16033 hardcode_direct_GCJ=no
16034 hardcode_automatic_GCJ=yes
16035 hardcode_shlibpath_var_GCJ=unsupported
16036 whole_archive_flag_spec_GCJ='-all_load $convenience'
16037 link_all_deplibs_GCJ=yes
16038 fi
16039 ;;
16040
16041 dgux*)
16042 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16043 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16044 hardcode_shlibpath_var_GCJ=no
16045 ;;
16046
16047 freebsd1*)
16048 ld_shlibs_GCJ=no
16049 ;;
16050
16051 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16052 # support. Future versions do this automatically, but an explicit c++rt0.o
16053 # does not break anything, and helps significantly (at the cost of a little
16054 # extra space).
16055 freebsd2.2*)
16056 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16057 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16058 hardcode_direct_GCJ=yes
16059 hardcode_shlibpath_var_GCJ=no
16060 ;;
16061
16062 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16063 freebsd2*)
16064 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16065 hardcode_direct_GCJ=yes
16066 hardcode_minus_L_GCJ=yes
16067 hardcode_shlibpath_var_GCJ=no
16068 ;;
16069
16070 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16071 freebsd*)
16072 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16073 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16074 hardcode_direct_GCJ=yes
16075 hardcode_shlibpath_var_GCJ=no
16076 ;;
16077
16078 hpux9*)
16079 if test "$GCC" = yes; then
16080 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'
16081 else
16082 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'
16083 fi
16084 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16085 hardcode_libdir_separator_GCJ=:
16086 hardcode_direct_GCJ=yes
16087
16088 # hardcode_minus_L: Not really in the search PATH,
16089 # but as the default location of the library.
16090 hardcode_minus_L_GCJ=yes
16091 export_dynamic_flag_spec_GCJ='${wl}-E'
16092 ;;
16093
16094 hpux10* | hpux11*)
16095 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16096 case "$host_cpu" in
16097 hppa*64*|ia64*)
16098 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16099 ;;
16100 *)
16101 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16102 ;;
16103 esac
16104 else
16105 case "$host_cpu" in
16106 hppa*64*|ia64*)
16107 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16108 ;;
16109 *)
16110 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16111 ;;
16112 esac
16113 fi
16114 if test "$with_gnu_ld" = no; then
16115 case "$host_cpu" in
16116 hppa*64*)
16117 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16118 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16119 hardcode_libdir_separator_GCJ=:
16120 hardcode_direct_GCJ=no
16121 hardcode_shlibpath_var_GCJ=no
16122 ;;
16123 ia64*)
16124 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16125 hardcode_direct_GCJ=no
16126 hardcode_shlibpath_var_GCJ=no
16127
16128 # hardcode_minus_L: Not really in the search PATH,
16129 # but as the default location of the library.
16130 hardcode_minus_L_GCJ=yes
16131 ;;
16132 *)
16133 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16134 hardcode_libdir_separator_GCJ=:
16135 hardcode_direct_GCJ=yes
16136 export_dynamic_flag_spec_GCJ='${wl}-E'
16137
16138 # hardcode_minus_L: Not really in the search PATH,
16139 # but as the default location of the library.
16140 hardcode_minus_L_GCJ=yes
16141 ;;
16142 esac
16143 fi
16144 ;;
16145
16146 irix5* | irix6* | nonstopux*)
16147 if test "$GCC" = yes; then
16148 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'
16149 else
16150 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'
16151 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16152 fi
16153 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16154 hardcode_libdir_separator_GCJ=:
16155 link_all_deplibs_GCJ=yes
16156 ;;
16157
16158 netbsd*)
16159 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16160 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16161 else
16162 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16163 fi
16164 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16165 hardcode_direct_GCJ=yes
16166 hardcode_shlibpath_var_GCJ=no
16167 ;;
16168
16169 newsos6)
16170 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16171 hardcode_direct_GCJ=yes
16172 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16173 hardcode_libdir_separator_GCJ=:
16174 hardcode_shlibpath_var_GCJ=no
16175 ;;
16176
16177 openbsd*)
16178 hardcode_direct_GCJ=yes
16179 hardcode_shlibpath_var_GCJ=no
16180 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16181 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16182 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16183 export_dynamic_flag_spec_GCJ='${wl}-E'
16184 else
16185 case $host_os in
16186 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16187 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16188 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16189 ;;
16190 *)
16191 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16192 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16193 ;;
16194 esac
16195 fi
16196 ;;
16197
16198 os2*)
16199 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16200 hardcode_minus_L_GCJ=yes
16201 allow_undefined_flag_GCJ=unsupported
16202 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'
16203 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16204 ;;
16205
16206 osf3*)
16207 if test "$GCC" = yes; then
16208 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16209 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'
16210 else
16211 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16212 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'
16213 fi
16214 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16215 hardcode_libdir_separator_GCJ=:
16216 ;;
16217
16218 osf4* | osf5*) # as osf3* with the addition of -msym flag
16219 if test "$GCC" = yes; then
16220 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16221 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'
16222 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16223 else
16224 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16225 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'
16226 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~
16227 $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'
16228
16229 # Both c and cxx compiler support -rpath directly
16230 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16231 fi
16232 hardcode_libdir_separator_GCJ=:
16233 ;;
16234
16235 sco3.2v5*)
16236 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16237 hardcode_shlibpath_var_GCJ=no
16238 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16239 runpath_var=LD_RUN_PATH
16240 hardcode_runpath_var=yes
16241 ;;
16242
16243 solaris*)
16244 no_undefined_flag_GCJ=' -z text'
16245 if test "$GCC" = yes; then
16246 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16247 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16248 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16249 else
16250 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16251 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16252 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16253 fi
16254 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16255 hardcode_shlibpath_var_GCJ=no
16256 case $host_os in
16257 solaris2.[0-5] | solaris2.[0-5].*) ;;
16258 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16259 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16260 esac
16261 link_all_deplibs_GCJ=yes
16262 ;;
16263
16264 sunos4*)
16265 if test "x$host_vendor" = xsequent; then
16266 # Use $CC to link under sequent, because it throws in some extra .o
16267 # files that make .init and .fini sections work.
16268 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16269 else
16270 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16271 fi
16272 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16273 hardcode_direct_GCJ=yes
16274 hardcode_minus_L_GCJ=yes
16275 hardcode_shlibpath_var_GCJ=no
16276 ;;
16277
16278 sysv4)
16279 case $host_vendor in
16280 sni)
16281 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16282 hardcode_direct_GCJ=yes # is this really true???
16283 ;;
16284 siemens)
16285 ## LD is ld it makes a PLAMLIB
16286 ## CC just makes a GrossModule.
16287 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16288 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16289 hardcode_direct_GCJ=no
16290 ;;
16291 motorola)
16292 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16293 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16294 ;;
16295 esac
16296 runpath_var='LD_RUN_PATH'
16297 hardcode_shlibpath_var_GCJ=no
16298 ;;
16299
16300 sysv4.3*)
16301 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16302 hardcode_shlibpath_var_GCJ=no
16303 export_dynamic_flag_spec_GCJ='-Bexport'
16304 ;;
16305
16306 sysv4*MP*)
16307 if test -d /usr/nec; then
16308 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16309 hardcode_shlibpath_var_GCJ=no
16310 runpath_var=LD_RUN_PATH
16311 hardcode_runpath_var=yes
16312 ld_shlibs_GCJ=yes
16313 fi
16314 ;;
16315
16316 sysv4.2uw2*)
16317 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16318 hardcode_direct_GCJ=yes
16319 hardcode_minus_L_GCJ=no
16320 hardcode_shlibpath_var_GCJ=no
16321 hardcode_runpath_var=yes
16322 runpath_var=LD_RUN_PATH
16323 ;;
16324
16325 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16326 no_undefined_flag_GCJ='${wl}-z ${wl}text'
16327 if test "$GCC" = yes; then
16328 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16329 else
16330 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16331 fi
16332 runpath_var='LD_RUN_PATH'
16333 hardcode_shlibpath_var_GCJ=no
16334 ;;
16335
16336 sysv5*)
16337 no_undefined_flag_GCJ=' -z text'
16338 # $CC -shared without GNU ld will not create a library from C++
16339 # object files and a static libstdc++, better avoid it by now
16340 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16341 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16342 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16343 hardcode_libdir_flag_spec_GCJ=
16344 hardcode_shlibpath_var_GCJ=no
16345 runpath_var='LD_RUN_PATH'
16346 ;;
16347
16348 uts4*)
16349 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16350 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16351 hardcode_shlibpath_var_GCJ=no
16352 ;;
16353
16354 *)
16355 ld_shlibs_GCJ=no
16356 ;;
16357 esac
16358 fi
16359
16360echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16361echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16362test "$ld_shlibs_GCJ" = no && can_build_shared=no
16363
16364variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16365if test "$GCC" = yes; then
16366 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16367fi
16368
16369#
16370# Do we need to explicitly link libc?
16371#
16372case "x$archive_cmds_need_lc_GCJ" in
16373x|xyes)
16374 # Assume -lc should be added
16375 archive_cmds_need_lc_GCJ=yes
16376
16377 if test "$enable_shared" = yes && test "$GCC" = yes; then
16378 case $archive_cmds_GCJ in
16379 *'~'*)
16380 # FIXME: we may have to deal with multi-command sequences.
16381 ;;
16382 '$CC '*)
16383 # Test whether the compiler implicitly links with -lc since on some
16384 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16385 # to ld, don't add -lc before -lgcc.
16386 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16387echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16388 $rm conftest*
16389 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16390
16391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16392 (eval $ac_compile) 2>&5
16393 ac_status=$?
16394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16395 (exit $ac_status); } 2>conftest.err; then
16396 soname=conftest
16397 lib=conftest
16398 libobjs=conftest.$ac_objext
16399 deplibs=
16400 wl=$lt_prog_compiler_wl_GCJ
16401 compiler_flags=-v
16402 linker_flags=-v
16403 verstring=
16404 output_objdir=.
16405 libname=conftest
16406 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16407 allow_undefined_flag_GCJ=
16408 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16409 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16410 ac_status=$?
16411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16412 (exit $ac_status); }
16413 then
16414 archive_cmds_need_lc_GCJ=no
16415 else
16416 archive_cmds_need_lc_GCJ=yes
16417 fi
16418 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16419 else
16420 cat conftest.err 1>&5
16421 fi
16422 $rm conftest*
16423 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16424echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16425 ;;
16426 esac
16427 fi
16428 ;;
16429esac
16430
16431echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16432echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16433hardcode_action_GCJ=
16434if test -n "$hardcode_libdir_flag_spec_GCJ" || \
16435 test -n "$runpath_var GCJ" || \
16436 test "X$hardcode_automatic_GCJ"="Xyes" ; then
16437
16438 # We can hardcode non-existant directories.
16439 if test "$hardcode_direct_GCJ" != no &&
16440 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16441 # have to relink, otherwise we might link with an installed library
16442 # when we should be linking with a yet-to-be-installed one
16443 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
16444 test "$hardcode_minus_L_GCJ" != no; then
16445 # Linking always hardcodes the temporary library directory.
16446 hardcode_action_GCJ=relink
16447 else
16448 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16449 hardcode_action_GCJ=immediate
16450 fi
16451else
16452 # We cannot hardcode anything, or else we can only hardcode existing
16453 # directories.
16454 hardcode_action_GCJ=unsupported
16455fi
16456echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
16457echo "${ECHO_T}$hardcode_action_GCJ" >&6
16458
16459if test "$hardcode_action_GCJ" = relink; then
16460 # Fast installation is not supported
16461 enable_fast_install=no
16462elif test "$shlibpath_overrides_runpath" = yes ||
16463 test "$enable_shared" = no; then
16464 # Fast installation is not necessary
16465 enable_fast_install=needless
16466fi
16467
16468striplib=
16469old_striplib=
16470echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16471echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
16472if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16473 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16474 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16475 echo "$as_me:$LINENO: result: yes" >&5
16476echo "${ECHO_T}yes" >&6
16477else
16478# FIXME - insert some real tests, host_os isn't really good enough
16479 case $host_os in
16480 darwin*)
16481 if test -n "$STRIP" ; then
16482 striplib="$STRIP -x"
16483 echo "$as_me:$LINENO: result: yes" >&5
16484echo "${ECHO_T}yes" >&6
16485 else
16486 echo "$as_me:$LINENO: result: no" >&5
16487echo "${ECHO_T}no" >&6
16488fi
16489 ;;
16490 *)
16491 echo "$as_me:$LINENO: result: no" >&5
16492echo "${ECHO_T}no" >&6
16493 ;;
16494 esac
16495fi
16496
16497echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16498echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16499library_names_spec=
16500libname_spec='lib$name'
16501soname_spec=
16502shrext=".so"
16503postinstall_cmds=
16504postuninstall_cmds=
16505finish_cmds=
16506finish_eval=
16507shlibpath_var=
16508shlibpath_overrides_runpath=unknown
16509version_type=none
16510dynamic_linker="$host_os ld.so"
16511sys_lib_dlsearch_path_spec="/lib /usr/lib"
16512if test "$GCC" = yes; then
16513 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16514 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16515 # if the path contains ";" then we assume it to be the separator
16516 # otherwise default to the standard path separator (i.e. ":") - it is
16517 # assumed that no part of a normal pathname contains ";" but that should
16518 # okay in the real world where ";" in dirpaths is itself problematic.
16519 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16520 else
16521 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16522 fi
16523else
16524 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16525fi
16526need_lib_prefix=unknown
16527hardcode_into_libs=no
16528
16529# when you set need_version to no, make sure it does not cause -set_version
16530# flags to be left without arguments
16531need_version=unknown
16532
16533case $host_os in
16534aix3*)
16535 version_type=linux
16536 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16537 shlibpath_var=LIBPATH
16538
16539 # AIX 3 has no versioning support, so we append a major version to the name.
16540 soname_spec='${libname}${release}${shared_ext}$major'
16541 ;;
16542
16543aix4* | aix5*)
16544 version_type=linux
16545 need_lib_prefix=no
16546 need_version=no
16547 hardcode_into_libs=yes
16548 if test "$host_cpu" = ia64; then
16549 # AIX 5 supports IA64
16550 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16551 shlibpath_var=LD_LIBRARY_PATH
16552 else
16553 # With GCC up to 2.95.x, collect2 would create an import file
16554 # for dependence libraries. The import file would start with
16555 # the line `#! .'. This would cause the generated library to
16556 # depend on `.', always an invalid library. This was fixed in
16557 # development snapshots of GCC prior to 3.0.
16558 case $host_os in
16559 aix4 | aix4.[01] | aix4.[01].*)
16560 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16561 echo ' yes '
16562 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16563 :
16564 else
16565 can_build_shared=no
16566 fi
16567 ;;
16568 esac
16569 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16570 # soname into executable. Probably we can add versioning support to
16571 # collect2, so additional links can be useful in future.
16572 if test "$aix_use_runtimelinking" = yes; then
16573 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16574 # instead of lib<name>.a to let people know that these are not
16575 # typical AIX shared libraries.
16576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16577 else
16578 # We preserve .a as extension for shared libraries through AIX4.2
16579 # and later when we are not doing run time linking.
16580 library_names_spec='${libname}${release}.a $libname.a'
16581 soname_spec='${libname}${release}${shared_ext}$major'
16582 fi
16583 shlibpath_var=LIBPATH
16584 fi
16585 ;;
16586
16587amigaos*)
16588 library_names_spec='$libname.ixlibrary $libname.a'
16589 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16590 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'
16591 ;;
16592
16593beos*)
16594 library_names_spec='${libname}${shared_ext}'
16595 dynamic_linker="$host_os ld.so"
16596 shlibpath_var=LIBRARY_PATH
16597 ;;
16598
16599bsdi4*)
16600 version_type=linux
16601 need_version=no
16602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16603 soname_spec='${libname}${release}${shared_ext}$major'
16604 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16605 shlibpath_var=LD_LIBRARY_PATH
16606 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16607 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16608 # the default ld.so.conf also contains /usr/contrib/lib and
16609 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16610 # libtool to hard-code these into programs
16611 ;;
16612
16613cygwin* | mingw* | pw32*)
16614 version_type=windows
16615 shrext=".dll"
16616 need_version=no
16617 need_lib_prefix=no
16618
16619 case $GCC,$host_os in
16620 yes,cygwin* | yes,mingw* | yes,pw32*)
16621 library_names_spec='$libname.dll.a'
16622 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16623 postinstall_cmds='base_file=`basename \${file}`~
16624 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16625 dldir=$destdir/`dirname \$dlpath`~
16626 test -d \$dldir || mkdir -p \$dldir~
16627 $install_prog $dir/$dlname \$dldir/$dlname'
16628 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16629 dlpath=$dir/\$dldll~
16630 $rm \$dlpath'
16631 shlibpath_overrides_runpath=yes
16632
16633 case $host_os in
16634 cygwin*)
16635 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16636 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16637 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
16638 ;;
16639 mingw*)
16640 # MinGW DLLs use traditional 'lib' prefix
16641 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16642 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16643 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16644 # It is most probably a Windows format PATH printed by
16645 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16646 # path with ; separators, and with drive letters. We can handle the
16647 # drive letters (cygwin fileutils understands them), so leave them,
16648 # especially as we might pass files found there to a mingw objdump,
16649 # which wouldn't understand a cygwinified path. Ahh.
16650 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16651 else
16652 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16653 fi
16654 ;;
16655 pw32*)
16656 # pw32 DLLs use 'pw' prefix rather than 'lib'
16657 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16658 ;;
16659 esac
16660 ;;
16661
16662 *)
16663 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16664 ;;
16665 esac
16666 dynamic_linker='Win32 ld.exe'
16667 # FIXME: first we should search . and the directory the executable is in
16668 shlibpath_var=PATH
16669 ;;
16670
16671darwin* | rhapsody*)
16672 dynamic_linker="$host_os dyld"
16673 version_type=darwin
16674 need_lib_prefix=no
16675 need_version=no
16676 # FIXME: Relying on posixy $() will cause problems for
16677 # cross-compilation, but unfortunately the echo tests do not
16678 # yet detect zsh echo's removal of \ escapes.
16679 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16680 soname_spec='${libname}${release}${major}$shared_ext'
16681 shlibpath_overrides_runpath=yes
16682 shlibpath_var=DYLD_LIBRARY_PATH
16683 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
16684 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16685 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
16686 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"`
16687 fi
16688 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16689 ;;
16690
16691dgux*)
16692 version_type=linux
16693 need_lib_prefix=no
16694 need_version=no
16695 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16696 soname_spec='${libname}${release}${shared_ext}$major'
16697 shlibpath_var=LD_LIBRARY_PATH
16698 ;;
16699
16700freebsd1*)
16701 dynamic_linker=no
16702 ;;
16703
16704freebsd*)
16705 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16706 version_type=freebsd-$objformat
16707 case $version_type in
16708 freebsd-elf*)
16709 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16710 need_version=no
16711 need_lib_prefix=no
16712 ;;
16713 freebsd-*)
16714 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16715 need_version=yes
16716 ;;
16717 esac
16718 shlibpath_var=LD_LIBRARY_PATH
16719 case $host_os in
16720 freebsd2*)
16721 shlibpath_overrides_runpath=yes
16722 ;;
16723 freebsd3.01* | freebsdelf3.01*)
16724 shlibpath_overrides_runpath=yes
16725 hardcode_into_libs=yes
16726 ;;
16727 *) # from 3.2 on
16728 shlibpath_overrides_runpath=no
16729 hardcode_into_libs=yes
16730 ;;
16731 esac
16732 ;;
16733
16734gnu*)
16735 version_type=linux
16736 need_lib_prefix=no
16737 need_version=no
16738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16739 soname_spec='${libname}${release}${shared_ext}$major'
16740 shlibpath_var=LD_LIBRARY_PATH
16741 hardcode_into_libs=yes
16742 ;;
16743
16744hpux9* | hpux10* | hpux11*)
16745 # Give a soname corresponding to the major version so that dld.sl refuses to
16746 # link against other versions.
16747 version_type=sunos
16748 need_lib_prefix=no
16749 need_version=no
16750 case "$host_cpu" in
16751 ia64*)
16752 shrext='.so'
16753 hardcode_into_libs=yes
16754 dynamic_linker="$host_os dld.so"
16755 shlibpath_var=LD_LIBRARY_PATH
16756 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16758 soname_spec='${libname}${release}${shared_ext}$major'
16759 if test "X$HPUX_IA64_MODE" = X32; then
16760 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16761 else
16762 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16763 fi
16764 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16765 ;;
16766 hppa*64*)
16767 shrext='.sl'
16768 hardcode_into_libs=yes
16769 dynamic_linker="$host_os dld.sl"
16770 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16771 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16772 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16773 soname_spec='${libname}${release}${shared_ext}$major'
16774 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16775 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16776 ;;
16777 *)
16778 shrext='.sl'
16779 dynamic_linker="$host_os dld.sl"
16780 shlibpath_var=SHLIB_PATH
16781 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16782 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16783 soname_spec='${libname}${release}${shared_ext}$major'
16784 ;;
16785 esac
16786 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16787 postinstall_cmds='chmod 555 $lib'
16788 ;;
16789
16790irix5* | irix6* | nonstopux*)
16791 case $host_os in
16792 nonstopux*) version_type=nonstopux ;;
16793 *)
16794 if test "$lt_cv_prog_gnu_ld" = yes; then
16795 version_type=linux
16796 else
16797 version_type=irix
16798 fi ;;
16799 esac
16800 need_lib_prefix=no
16801 need_version=no
16802 soname_spec='${libname}${release}${shared_ext}$major'
16803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16804 case $host_os in
16805 irix5* | nonstopux*)
16806 libsuff= shlibsuff=
16807 ;;
16808 *)
16809 case $LD in # libtool.m4 will add one of these switches to LD
16810 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16811 libsuff= shlibsuff= libmagic=32-bit;;
16812 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16813 libsuff=32 shlibsuff=N32 libmagic=N32;;
16814 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16815 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16816 *) libsuff= shlibsuff= libmagic=never-match;;
16817 esac
16818 ;;
16819 esac
16820 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16821 shlibpath_overrides_runpath=no
16822 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16823 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16824 hardcode_into_libs=yes
16825 ;;
16826
16827# No shared lib support for Linux oldld, aout, or coff.
16828linux*oldld* | linux*aout* | linux*coff*)
16829 dynamic_linker=no
16830 ;;
16831
16832# This must be Linux ELF.
16833linux*)
16834 version_type=linux
16835 need_lib_prefix=no
16836 need_version=no
16837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16838 soname_spec='${libname}${release}${shared_ext}$major'
16839 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16840 shlibpath_var=LD_LIBRARY_PATH
16841 shlibpath_overrides_runpath=no
16842 # This implies no fast_install, which is unacceptable.
16843 # Some rework will be needed to allow for fast_install
16844 # before this can be enabled.
16845 hardcode_into_libs=yes
16846
16847 # We used to test for /lib/ld.so.1 and disable shared libraries on
16848 # powerpc, because MkLinux only supported shared libraries with the
16849 # GNU dynamic linker. Since this was broken with cross compilers,
16850 # most powerpc-linux boxes support dynamic linking these days and
16851 # people can always --disable-shared, the test was removed, and we
16852 # assume the GNU/Linux dynamic linker is in use.
16853 dynamic_linker='GNU/Linux ld.so'
16854 ;;
16855
16856netbsd*)
16857 version_type=sunos
16858 need_lib_prefix=no
16859 need_version=no
16860 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16861 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16862 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16863 dynamic_linker='NetBSD (a.out) ld.so'
16864 else
16865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
16866 soname_spec='${libname}${release}${shared_ext}$major'
16867 dynamic_linker='NetBSD ld.elf_so'
16868 fi
16869 shlibpath_var=LD_LIBRARY_PATH
16870 shlibpath_overrides_runpath=yes
16871 hardcode_into_libs=yes
16872 ;;
16873
16874newsos6)
16875 version_type=linux
16876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16877 shlibpath_var=LD_LIBRARY_PATH
16878 shlibpath_overrides_runpath=yes
16879 ;;
16880
16881nto-qnx)
16882 version_type=linux
16883 need_lib_prefix=no
16884 need_version=no
16885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16886 soname_spec='${libname}${release}${shared_ext}$major'
16887 shlibpath_var=LD_LIBRARY_PATH
16888 shlibpath_overrides_runpath=yes
16889 ;;
16890
16891openbsd*)
16892 version_type=sunos
16893 need_lib_prefix=no
16894 need_version=no
16895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16896 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16897 shlibpath_var=LD_LIBRARY_PATH
16898 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16899 case $host_os in
16900 openbsd2.[89] | openbsd2.[89].*)
16901 shlibpath_overrides_runpath=no
16902 ;;
16903 *)
16904 shlibpath_overrides_runpath=yes
16905 ;;
16906 esac
16907 else
16908 shlibpath_overrides_runpath=yes
16909 fi
16910 ;;
16911
16912os2*)
16913 libname_spec='$name'
16914 shrext=".dll"
16915 need_lib_prefix=no
16916 library_names_spec='$libname${shared_ext} $libname.a'
16917 dynamic_linker='OS/2 ld.exe'
16918 shlibpath_var=LIBPATH
16919 ;;
16920
16921osf3* | osf4* | osf5*)
16922 version_type=osf
16923 need_lib_prefix=no
16924 need_version=no
16925 soname_spec='${libname}${release}${shared_ext}$major'
16926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16927 shlibpath_var=LD_LIBRARY_PATH
16928 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16929 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16930 ;;
16931
16932sco3.2v5*)
16933 version_type=osf
16934 soname_spec='${libname}${release}${shared_ext}$major'
16935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16936 shlibpath_var=LD_LIBRARY_PATH
16937 ;;
16938
16939solaris*)
16940 version_type=linux
16941 need_lib_prefix=no
16942 need_version=no
16943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16944 soname_spec='${libname}${release}${shared_ext}$major'
16945 shlibpath_var=LD_LIBRARY_PATH
16946 shlibpath_overrides_runpath=yes
16947 hardcode_into_libs=yes
16948 # ldd complains unless libraries are executable
16949 postinstall_cmds='chmod +x $lib'
16950 ;;
16951
16952sunos4*)
16953 version_type=sunos
16954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16955 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16956 shlibpath_var=LD_LIBRARY_PATH
16957 shlibpath_overrides_runpath=yes
16958 if test "$with_gnu_ld" = yes; then
16959 need_lib_prefix=no
16960 fi
16961 need_version=yes
16962 ;;
16963
16964sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16965 version_type=linux
16966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16967 soname_spec='${libname}${release}${shared_ext}$major'
16968 shlibpath_var=LD_LIBRARY_PATH
16969 case $host_vendor in
16970 sni)
16971 shlibpath_overrides_runpath=no
16972 need_lib_prefix=no
16973 export_dynamic_flag_spec='${wl}-Blargedynsym'
16974 runpath_var=LD_RUN_PATH
16975 ;;
16976 siemens)
16977 need_lib_prefix=no
16978 ;;
16979 motorola)
16980 need_lib_prefix=no
16981 need_version=no
16982 shlibpath_overrides_runpath=no
16983 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16984 ;;
16985 esac
16986 ;;
16987
16988sysv4*MP*)
16989 if test -d /usr/nec ;then
16990 version_type=linux
16991 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16992 soname_spec='$libname${shared_ext}.$major'
16993 shlibpath_var=LD_LIBRARY_PATH
16994 fi
16995 ;;
16996
16997uts4*)
16998 version_type=linux
16999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17000 soname_spec='${libname}${release}${shared_ext}$major'
17001 shlibpath_var=LD_LIBRARY_PATH
17002 ;;
17003
17004*)
17005 dynamic_linker=no
17006 ;;
17007esac
17008echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17009echo "${ECHO_T}$dynamic_linker" >&6
17010test "$dynamic_linker" = no && can_build_shared=no
17011
17012if test "x$enable_dlopen" != xyes; then
17013 enable_dlopen=unknown
17014 enable_dlopen_self=unknown
17015 enable_dlopen_self_static=unknown
17016else
17017 lt_cv_dlopen=no
17018 lt_cv_dlopen_libs=
17019
17020 case $host_os in
17021 beos*)
17022 lt_cv_dlopen="load_add_on"
17023 lt_cv_dlopen_libs=
17024 lt_cv_dlopen_self=yes
17025 ;;
17026
17027 mingw* | pw32*)
17028 lt_cv_dlopen="LoadLibrary"
17029 lt_cv_dlopen_libs=
17030 ;;
17031
17032 cygwin*)
17033 lt_cv_dlopen="dlopen"
17034 lt_cv_dlopen_libs=
17035 ;;
17036
17037 darwin*)
17038 # if libdl is installed we need to link against it
17039 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17040echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17041if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17042 echo $ECHO_N "(cached) $ECHO_C" >&6
17043else
17044 ac_check_lib_save_LIBS=$LIBS
17045LIBS="-ldl $LIBS"
17046cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017047/* confdefs.h. */
17048_ACEOF
17049cat confdefs.h >>conftest.$ac_ext
17050cat >>conftest.$ac_ext <<_ACEOF
17051/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017052
17053/* Override any gcc2 internal prototype to avoid an error. */
17054#ifdef __cplusplus
17055extern "C"
17056#endif
17057/* We use char because int might match the return type of a gcc2
17058 builtin and then its argument prototype would still apply. */
17059char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017060int
17061main ()
17062{
17063dlopen ();
17064 ;
17065 return 0;
17066}
17067_ACEOF
17068rm -f conftest.$ac_objext conftest$ac_exeext
17069if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000017070 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017071 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000017072 grep -v '^ *+' conftest.er1 >conftest.err
17073 rm -f conftest.er1
17074 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17076 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000017077 { ac_try='test -z "$ac_c_werror_flag"
17078 || test ! -s conftest.err'
17079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17080 (eval $ac_try) 2>&5
17081 ac_status=$?
17082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17083 (exit $ac_status); }; } &&
17084 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17086 (eval $ac_try) 2>&5
17087 ac_status=$?
17088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17089 (exit $ac_status); }; }; then
17090 ac_cv_lib_dl_dlopen=yes
17091else
17092 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017093sed 's/^/| /' conftest.$ac_ext >&5
17094
John Criswell47fdd832003-07-14 16:52:07 +000017095ac_cv_lib_dl_dlopen=no
17096fi
Reid Spencer2b51a082004-08-04 00:34:49 +000017097rm -f conftest.err conftest.$ac_objext \
17098 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017099LIBS=$ac_check_lib_save_LIBS
17100fi
17101echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17102echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17103if test $ac_cv_lib_dl_dlopen = yes; then
17104 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17105else
17106
17107 lt_cv_dlopen="dyld"
17108 lt_cv_dlopen_libs=
17109 lt_cv_dlopen_self=yes
17110
17111fi
17112
17113 ;;
17114
17115 *)
17116 echo "$as_me:$LINENO: checking for shl_load" >&5
17117echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17118if test "${ac_cv_func_shl_load+set}" = set; then
17119 echo $ECHO_N "(cached) $ECHO_C" >&6
17120else
17121 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017122/* confdefs.h. */
17123_ACEOF
17124cat confdefs.h >>conftest.$ac_ext
17125cat >>conftest.$ac_ext <<_ACEOF
17126/* end confdefs.h. */
Reid Spencer2b51a082004-08-04 00:34:49 +000017127/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17128 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17129#define shl_load innocuous_shl_load
17130
John Criswell47fdd832003-07-14 16:52:07 +000017131/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000017132 which can conflict with char shl_load (); below.
17133 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17134 <limits.h> exists even on freestanding compilers. */
Reid Spencer2b51a082004-08-04 00:34:49 +000017135
John Criswell0c38eaf2003-09-10 15:17:25 +000017136#ifdef __STDC__
17137# include <limits.h>
17138#else
17139# include <assert.h>
17140#endif
Reid Spencer2b51a082004-08-04 00:34:49 +000017141
17142#undef shl_load
17143
John Criswell47fdd832003-07-14 16:52:07 +000017144/* Override any gcc2 internal prototype to avoid an error. */
17145#ifdef __cplusplus
17146extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000017147{
John Criswell47fdd832003-07-14 16:52:07 +000017148#endif
17149/* We use char because int might match the return type of a gcc2
17150 builtin and then its argument prototype would still apply. */
17151char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000017152/* The GNU C library defines this for functions which it implements
17153 to always fail with ENOSYS. Some functions are actually named
17154 something starting with __ and the normal name is an alias. */
17155#if defined (__stub_shl_load) || defined (__stub___shl_load)
17156choke me
17157#else
John Criswell0c38eaf2003-09-10 15:17:25 +000017158char (*f) () = shl_load;
17159#endif
17160#ifdef __cplusplus
17161}
John Criswell47fdd832003-07-14 16:52:07 +000017162#endif
17163
John Criswell0c38eaf2003-09-10 15:17:25 +000017164int
17165main ()
17166{
17167return f != shl_load;
John Criswell47fdd832003-07-14 16:52:07 +000017168 ;
17169 return 0;
17170}
17171_ACEOF
17172rm -f conftest.$ac_objext conftest$ac_exeext
17173if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000017174 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017175 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000017176 grep -v '^ *+' conftest.er1 >conftest.err
17177 rm -f conftest.er1
17178 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17180 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000017181 { ac_try='test -z "$ac_c_werror_flag"
17182 || test ! -s conftest.err'
17183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17184 (eval $ac_try) 2>&5
17185 ac_status=$?
17186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17187 (exit $ac_status); }; } &&
17188 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17190 (eval $ac_try) 2>&5
17191 ac_status=$?
17192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17193 (exit $ac_status); }; }; then
17194 ac_cv_func_shl_load=yes
17195else
17196 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017197sed 's/^/| /' conftest.$ac_ext >&5
17198
John Criswell47fdd832003-07-14 16:52:07 +000017199ac_cv_func_shl_load=no
17200fi
Reid Spencer2b51a082004-08-04 00:34:49 +000017201rm -f conftest.err conftest.$ac_objext \
17202 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017203fi
17204echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17205echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17206if test $ac_cv_func_shl_load = yes; then
17207 lt_cv_dlopen="shl_load"
17208else
17209 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17210echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17211if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17212 echo $ECHO_N "(cached) $ECHO_C" >&6
17213else
17214 ac_check_lib_save_LIBS=$LIBS
17215LIBS="-ldld $LIBS"
17216cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017217/* confdefs.h. */
17218_ACEOF
17219cat confdefs.h >>conftest.$ac_ext
17220cat >>conftest.$ac_ext <<_ACEOF
17221/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017222
17223/* Override any gcc2 internal prototype to avoid an error. */
17224#ifdef __cplusplus
17225extern "C"
17226#endif
17227/* We use char because int might match the return type of a gcc2
17228 builtin and then its argument prototype would still apply. */
17229char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000017230int
17231main ()
17232{
17233shl_load ();
17234 ;
17235 return 0;
17236}
17237_ACEOF
17238rm -f conftest.$ac_objext conftest$ac_exeext
17239if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000017240 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017241 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000017242 grep -v '^ *+' conftest.er1 >conftest.err
17243 rm -f conftest.er1
17244 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17246 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000017247 { ac_try='test -z "$ac_c_werror_flag"
17248 || test ! -s conftest.err'
17249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17250 (eval $ac_try) 2>&5
17251 ac_status=$?
17252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17253 (exit $ac_status); }; } &&
17254 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17256 (eval $ac_try) 2>&5
17257 ac_status=$?
17258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17259 (exit $ac_status); }; }; then
17260 ac_cv_lib_dld_shl_load=yes
17261else
17262 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017263sed 's/^/| /' conftest.$ac_ext >&5
17264
John Criswell47fdd832003-07-14 16:52:07 +000017265ac_cv_lib_dld_shl_load=no
17266fi
Reid Spencer2b51a082004-08-04 00:34:49 +000017267rm -f conftest.err conftest.$ac_objext \
17268 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017269LIBS=$ac_check_lib_save_LIBS
17270fi
17271echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17272echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17273if test $ac_cv_lib_dld_shl_load = yes; then
17274 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17275else
17276 echo "$as_me:$LINENO: checking for dlopen" >&5
17277echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17278if test "${ac_cv_func_dlopen+set}" = set; then
17279 echo $ECHO_N "(cached) $ECHO_C" >&6
17280else
17281 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017282/* confdefs.h. */
17283_ACEOF
17284cat confdefs.h >>conftest.$ac_ext
17285cat >>conftest.$ac_ext <<_ACEOF
17286/* end confdefs.h. */
Reid Spencer2b51a082004-08-04 00:34:49 +000017287/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17288 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17289#define dlopen innocuous_dlopen
17290
John Criswell47fdd832003-07-14 16:52:07 +000017291/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000017292 which can conflict with char dlopen (); below.
17293 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17294 <limits.h> exists even on freestanding compilers. */
Reid Spencer2b51a082004-08-04 00:34:49 +000017295
John Criswell0c38eaf2003-09-10 15:17:25 +000017296#ifdef __STDC__
17297# include <limits.h>
17298#else
17299# include <assert.h>
17300#endif
Reid Spencer2b51a082004-08-04 00:34:49 +000017301
17302#undef dlopen
17303
John Criswell47fdd832003-07-14 16:52:07 +000017304/* Override any gcc2 internal prototype to avoid an error. */
17305#ifdef __cplusplus
17306extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000017307{
John Criswell47fdd832003-07-14 16:52:07 +000017308#endif
17309/* We use char because int might match the return type of a gcc2
17310 builtin and then its argument prototype would still apply. */
17311char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017312/* The GNU C library defines this for functions which it implements
17313 to always fail with ENOSYS. Some functions are actually named
17314 something starting with __ and the normal name is an alias. */
17315#if defined (__stub_dlopen) || defined (__stub___dlopen)
17316choke me
17317#else
John Criswell0c38eaf2003-09-10 15:17:25 +000017318char (*f) () = dlopen;
17319#endif
17320#ifdef __cplusplus
17321}
John Criswell47fdd832003-07-14 16:52:07 +000017322#endif
17323
John Criswell0c38eaf2003-09-10 15:17:25 +000017324int
17325main ()
17326{
17327return f != dlopen;
John Criswell47fdd832003-07-14 16:52:07 +000017328 ;
17329 return 0;
17330}
17331_ACEOF
17332rm -f conftest.$ac_objext conftest$ac_exeext
17333if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000017334 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017335 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000017336 grep -v '^ *+' conftest.er1 >conftest.err
17337 rm -f conftest.er1
17338 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17340 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000017341 { ac_try='test -z "$ac_c_werror_flag"
17342 || test ! -s conftest.err'
17343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17344 (eval $ac_try) 2>&5
17345 ac_status=$?
17346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17347 (exit $ac_status); }; } &&
17348 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17350 (eval $ac_try) 2>&5
17351 ac_status=$?
17352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17353 (exit $ac_status); }; }; then
17354 ac_cv_func_dlopen=yes
17355else
17356 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017357sed 's/^/| /' conftest.$ac_ext >&5
17358
John Criswell47fdd832003-07-14 16:52:07 +000017359ac_cv_func_dlopen=no
17360fi
Reid Spencer2b51a082004-08-04 00:34:49 +000017361rm -f conftest.err conftest.$ac_objext \
17362 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017363fi
17364echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17365echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17366if test $ac_cv_func_dlopen = yes; then
17367 lt_cv_dlopen="dlopen"
17368else
17369 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17370echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17371if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17372 echo $ECHO_N "(cached) $ECHO_C" >&6
17373else
17374 ac_check_lib_save_LIBS=$LIBS
17375LIBS="-ldl $LIBS"
17376cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017377/* confdefs.h. */
17378_ACEOF
17379cat confdefs.h >>conftest.$ac_ext
17380cat >>conftest.$ac_ext <<_ACEOF
17381/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017382
17383/* Override any gcc2 internal prototype to avoid an error. */
17384#ifdef __cplusplus
17385extern "C"
17386#endif
17387/* We use char because int might match the return type of a gcc2
17388 builtin and then its argument prototype would still apply. */
17389char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017390int
17391main ()
17392{
17393dlopen ();
17394 ;
17395 return 0;
17396}
17397_ACEOF
17398rm -f conftest.$ac_objext conftest$ac_exeext
17399if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000017400 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017401 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000017402 grep -v '^ *+' conftest.er1 >conftest.err
17403 rm -f conftest.er1
17404 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17406 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000017407 { ac_try='test -z "$ac_c_werror_flag"
17408 || test ! -s conftest.err'
17409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17410 (eval $ac_try) 2>&5
17411 ac_status=$?
17412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17413 (exit $ac_status); }; } &&
17414 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17416 (eval $ac_try) 2>&5
17417 ac_status=$?
17418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17419 (exit $ac_status); }; }; then
17420 ac_cv_lib_dl_dlopen=yes
17421else
17422 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017423sed 's/^/| /' conftest.$ac_ext >&5
17424
John Criswell47fdd832003-07-14 16:52:07 +000017425ac_cv_lib_dl_dlopen=no
17426fi
Reid Spencer2b51a082004-08-04 00:34:49 +000017427rm -f conftest.err conftest.$ac_objext \
17428 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017429LIBS=$ac_check_lib_save_LIBS
17430fi
17431echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17432echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17433if test $ac_cv_lib_dl_dlopen = yes; then
17434 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17435else
17436 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17437echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17438if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17439 echo $ECHO_N "(cached) $ECHO_C" >&6
17440else
17441 ac_check_lib_save_LIBS=$LIBS
17442LIBS="-lsvld $LIBS"
17443cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017444/* confdefs.h. */
17445_ACEOF
17446cat confdefs.h >>conftest.$ac_ext
17447cat >>conftest.$ac_ext <<_ACEOF
17448/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017449
17450/* Override any gcc2 internal prototype to avoid an error. */
17451#ifdef __cplusplus
17452extern "C"
17453#endif
17454/* We use char because int might match the return type of a gcc2
17455 builtin and then its argument prototype would still apply. */
17456char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017457int
17458main ()
17459{
17460dlopen ();
17461 ;
17462 return 0;
17463}
17464_ACEOF
17465rm -f conftest.$ac_objext conftest$ac_exeext
17466if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000017467 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017468 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000017469 grep -v '^ *+' conftest.er1 >conftest.err
17470 rm -f conftest.er1
17471 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17473 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000017474 { ac_try='test -z "$ac_c_werror_flag"
17475 || test ! -s conftest.err'
17476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17477 (eval $ac_try) 2>&5
17478 ac_status=$?
17479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17480 (exit $ac_status); }; } &&
17481 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17483 (eval $ac_try) 2>&5
17484 ac_status=$?
17485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17486 (exit $ac_status); }; }; then
17487 ac_cv_lib_svld_dlopen=yes
17488else
17489 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017490sed 's/^/| /' conftest.$ac_ext >&5
17491
John Criswell47fdd832003-07-14 16:52:07 +000017492ac_cv_lib_svld_dlopen=no
17493fi
Reid Spencer2b51a082004-08-04 00:34:49 +000017494rm -f conftest.err conftest.$ac_objext \
17495 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017496LIBS=$ac_check_lib_save_LIBS
17497fi
17498echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17499echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17500if test $ac_cv_lib_svld_dlopen = yes; then
17501 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17502else
17503 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17504echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17505if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17506 echo $ECHO_N "(cached) $ECHO_C" >&6
17507else
17508 ac_check_lib_save_LIBS=$LIBS
17509LIBS="-ldld $LIBS"
17510cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017511/* confdefs.h. */
17512_ACEOF
17513cat confdefs.h >>conftest.$ac_ext
17514cat >>conftest.$ac_ext <<_ACEOF
17515/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017516
17517/* Override any gcc2 internal prototype to avoid an error. */
17518#ifdef __cplusplus
17519extern "C"
17520#endif
17521/* We use char because int might match the return type of a gcc2
17522 builtin and then its argument prototype would still apply. */
17523char dld_link ();
John Criswell47fdd832003-07-14 16:52:07 +000017524int
17525main ()
17526{
17527dld_link ();
17528 ;
17529 return 0;
17530}
17531_ACEOF
17532rm -f conftest.$ac_objext conftest$ac_exeext
17533if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000017534 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017535 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000017536 grep -v '^ *+' conftest.er1 >conftest.err
17537 rm -f conftest.er1
17538 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17540 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000017541 { ac_try='test -z "$ac_c_werror_flag"
17542 || test ! -s conftest.err'
17543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17544 (eval $ac_try) 2>&5
17545 ac_status=$?
17546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17547 (exit $ac_status); }; } &&
17548 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17550 (eval $ac_try) 2>&5
17551 ac_status=$?
17552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17553 (exit $ac_status); }; }; then
17554 ac_cv_lib_dld_dld_link=yes
17555else
17556 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017557sed 's/^/| /' conftest.$ac_ext >&5
17558
John Criswell47fdd832003-07-14 16:52:07 +000017559ac_cv_lib_dld_dld_link=no
17560fi
Reid Spencer2b51a082004-08-04 00:34:49 +000017561rm -f conftest.err conftest.$ac_objext \
17562 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017563LIBS=$ac_check_lib_save_LIBS
17564fi
17565echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17566echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17567if test $ac_cv_lib_dld_dld_link = yes; then
17568 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17569fi
17570
17571
17572fi
17573
17574
17575fi
17576
17577
17578fi
17579
17580
17581fi
17582
17583
17584fi
17585
17586 ;;
17587 esac
17588
17589 if test "x$lt_cv_dlopen" != xno; then
17590 enable_dlopen=yes
17591 else
17592 enable_dlopen=no
17593 fi
17594
17595 case $lt_cv_dlopen in
17596 dlopen)
17597 save_CPPFLAGS="$CPPFLAGS"
17598 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17599
17600 save_LDFLAGS="$LDFLAGS"
17601 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17602
17603 save_LIBS="$LIBS"
17604 LIBS="$lt_cv_dlopen_libs $LIBS"
17605
17606 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17607echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17608if test "${lt_cv_dlopen_self+set}" = set; then
17609 echo $ECHO_N "(cached) $ECHO_C" >&6
17610else
17611 if test "$cross_compiling" = yes; then :
17612 lt_cv_dlopen_self=cross
17613else
17614 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17615 lt_status=$lt_dlunknown
17616 cat > conftest.$ac_ext <<EOF
Reid Spencer73fb5482004-08-31 14:20:36 +000017617#line 17617 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000017618#include "confdefs.h"
17619
17620#if HAVE_DLFCN_H
17621#include <dlfcn.h>
17622#endif
17623
17624#include <stdio.h>
17625
17626#ifdef RTLD_GLOBAL
17627# define LT_DLGLOBAL RTLD_GLOBAL
17628#else
17629# ifdef DL_GLOBAL
17630# define LT_DLGLOBAL DL_GLOBAL
17631# else
17632# define LT_DLGLOBAL 0
17633# endif
17634#endif
17635
17636/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17637 find out it does not work in some platform. */
17638#ifndef LT_DLLAZY_OR_NOW
17639# ifdef RTLD_LAZY
17640# define LT_DLLAZY_OR_NOW RTLD_LAZY
17641# else
17642# ifdef DL_LAZY
17643# define LT_DLLAZY_OR_NOW DL_LAZY
17644# else
17645# ifdef RTLD_NOW
17646# define LT_DLLAZY_OR_NOW RTLD_NOW
17647# else
17648# ifdef DL_NOW
17649# define LT_DLLAZY_OR_NOW DL_NOW
17650# else
17651# define LT_DLLAZY_OR_NOW 0
17652# endif
17653# endif
17654# endif
17655# endif
17656#endif
17657
17658#ifdef __cplusplus
17659extern "C" void exit (int);
17660#endif
17661
17662void fnord() { int i=42;}
17663int main ()
17664{
17665 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17666 int status = $lt_dlunknown;
17667
17668 if (self)
17669 {
17670 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17671 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17672 /* dlclose (self); */
17673 }
17674
17675 exit (status);
17676}
17677EOF
17678 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17679 (eval $ac_link) 2>&5
17680 ac_status=$?
17681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17682 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17683 (./conftest; exit; ) 2>/dev/null
17684 lt_status=$?
17685 case x$lt_status in
17686 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17687 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17688 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17689 esac
17690 else :
17691 # compilation failed
17692 lt_cv_dlopen_self=no
17693 fi
17694fi
17695rm -fr conftest*
17696
17697
17698fi
17699echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17700echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17701
17702 if test "x$lt_cv_dlopen_self" = xyes; then
17703 LDFLAGS="$LDFLAGS $link_static_flag"
17704 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17705echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17706if test "${lt_cv_dlopen_self_static+set}" = set; then
17707 echo $ECHO_N "(cached) $ECHO_C" >&6
17708else
17709 if test "$cross_compiling" = yes; then :
17710 lt_cv_dlopen_self_static=cross
17711else
17712 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17713 lt_status=$lt_dlunknown
17714 cat > conftest.$ac_ext <<EOF
Reid Spencer73fb5482004-08-31 14:20:36 +000017715#line 17715 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000017716#include "confdefs.h"
17717
17718#if HAVE_DLFCN_H
17719#include <dlfcn.h>
17720#endif
17721
17722#include <stdio.h>
17723
17724#ifdef RTLD_GLOBAL
17725# define LT_DLGLOBAL RTLD_GLOBAL
17726#else
17727# ifdef DL_GLOBAL
17728# define LT_DLGLOBAL DL_GLOBAL
17729# else
17730# define LT_DLGLOBAL 0
17731# endif
17732#endif
17733
17734/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17735 find out it does not work in some platform. */
17736#ifndef LT_DLLAZY_OR_NOW
17737# ifdef RTLD_LAZY
17738# define LT_DLLAZY_OR_NOW RTLD_LAZY
17739# else
17740# ifdef DL_LAZY
17741# define LT_DLLAZY_OR_NOW DL_LAZY
17742# else
17743# ifdef RTLD_NOW
17744# define LT_DLLAZY_OR_NOW RTLD_NOW
17745# else
17746# ifdef DL_NOW
17747# define LT_DLLAZY_OR_NOW DL_NOW
17748# else
17749# define LT_DLLAZY_OR_NOW 0
17750# endif
17751# endif
17752# endif
17753# endif
17754#endif
17755
17756#ifdef __cplusplus
17757extern "C" void exit (int);
17758#endif
17759
17760void fnord() { int i=42;}
17761int main ()
17762{
17763 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17764 int status = $lt_dlunknown;
17765
17766 if (self)
17767 {
17768 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17769 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17770 /* dlclose (self); */
17771 }
17772
17773 exit (status);
17774}
17775EOF
17776 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17777 (eval $ac_link) 2>&5
17778 ac_status=$?
17779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17780 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17781 (./conftest; exit; ) 2>/dev/null
17782 lt_status=$?
17783 case x$lt_status in
17784 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17785 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17786 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17787 esac
17788 else :
17789 # compilation failed
17790 lt_cv_dlopen_self_static=no
17791 fi
17792fi
17793rm -fr conftest*
17794
17795
17796fi
17797echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17798echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17799 fi
17800
17801 CPPFLAGS="$save_CPPFLAGS"
17802 LDFLAGS="$save_LDFLAGS"
17803 LIBS="$save_LIBS"
17804 ;;
17805 esac
17806
17807 case $lt_cv_dlopen_self in
17808 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17809 *) enable_dlopen_self=unknown ;;
17810 esac
17811
17812 case $lt_cv_dlopen_self_static in
17813 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17814 *) enable_dlopen_self_static=unknown ;;
17815 esac
17816fi
17817
17818
17819# The else clause should only fire when bootstrapping the
17820# libtool distribution, otherwise you forgot to ship ltmain.sh
17821# with your package, and you will get complaints that there are
17822# no rules to generate ltmain.sh.
17823if test -f "$ltmain"; then
17824 # See if we are running on zsh, and set the options which allow our commands through
17825 # without removal of \ escapes.
17826 if test -n "${ZSH_VERSION+set}" ; then
17827 setopt NO_GLOB_SUBST
17828 fi
17829 # Now quote all the things that may contain metacharacters while being
17830 # careful not to overquote the AC_SUBSTed values. We take copies of the
17831 # variables and quote the copies for generation of the libtool script.
17832 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17833 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17834 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17835 deplibs_check_method reload_flag reload_cmds need_locks \
17836 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17837 lt_cv_sys_global_symbol_to_c_name_address \
17838 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17839 old_postinstall_cmds old_postuninstall_cmds \
17840 compiler_GCJ \
17841 CC_GCJ \
17842 LD_GCJ \
17843 lt_prog_compiler_wl_GCJ \
17844 lt_prog_compiler_pic_GCJ \
17845 lt_prog_compiler_static_GCJ \
17846 lt_prog_compiler_no_builtin_flag_GCJ \
17847 export_dynamic_flag_spec_GCJ \
17848 thread_safe_flag_spec_GCJ \
17849 whole_archive_flag_spec_GCJ \
17850 enable_shared_with_static_runtimes_GCJ \
17851 old_archive_cmds_GCJ \
17852 old_archive_from_new_cmds_GCJ \
17853 predep_objects_GCJ \
17854 postdep_objects_GCJ \
17855 predeps_GCJ \
17856 postdeps_GCJ \
17857 compiler_lib_search_path_GCJ \
17858 archive_cmds_GCJ \
17859 archive_expsym_cmds_GCJ \
17860 postinstall_cmds_GCJ \
17861 postuninstall_cmds_GCJ \
17862 old_archive_from_expsyms_cmds_GCJ \
17863 allow_undefined_flag_GCJ \
17864 no_undefined_flag_GCJ \
17865 export_symbols_cmds_GCJ \
17866 hardcode_libdir_flag_spec_GCJ \
17867 hardcode_libdir_flag_spec_ld_GCJ \
17868 hardcode_libdir_separator_GCJ \
17869 hardcode_automatic_GCJ \
17870 module_cmds_GCJ \
17871 module_expsym_cmds_GCJ \
17872 lt_cv_prog_compiler_c_o_GCJ \
17873 exclude_expsyms_GCJ \
17874 include_expsyms_GCJ; do
17875
17876 case $var in
17877 old_archive_cmds_GCJ | \
17878 old_archive_from_new_cmds_GCJ | \
17879 archive_cmds_GCJ | \
17880 archive_expsym_cmds_GCJ | \
17881 module_cmds_GCJ | \
17882 module_expsym_cmds_GCJ | \
17883 old_archive_from_expsyms_cmds_GCJ | \
17884 export_symbols_cmds_GCJ | \
17885 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17886 postinstall_cmds | postuninstall_cmds | \
17887 old_postinstall_cmds | old_postuninstall_cmds | \
17888 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17889 # Double-quote double-evaled strings.
17890 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17891 ;;
17892 *)
17893 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17894 ;;
17895 esac
17896 done
17897
17898 case $lt_echo in
17899 *'\$0 --fallback-echo"')
17900 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17901 ;;
17902 esac
17903
17904cfgfile="$ofile"
17905
17906 cat <<__EOF__ >> "$cfgfile"
17907# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17908
17909# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17910
17911# Shell to use when invoking shell scripts.
17912SHELL=$lt_SHELL
17913
17914# Whether or not to build shared libraries.
17915build_libtool_libs=$enable_shared
17916
17917# Whether or not to build static libraries.
17918build_old_libs=$enable_static
17919
17920# Whether or not to add -lc for building shared libraries.
17921build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17922
17923# Whether or not to disallow shared libs when runtime libs are static
17924allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17925
17926# Whether or not to optimize for fast installation.
17927fast_install=$enable_fast_install
17928
17929# The host system.
17930host_alias=$host_alias
17931host=$host
17932
17933# An echo program that does not interpret backslashes.
17934echo=$lt_echo
17935
17936# The archiver.
17937AR=$lt_AR
17938AR_FLAGS=$lt_AR_FLAGS
17939
17940# A C compiler.
17941LTCC=$lt_LTCC
17942
17943# A language-specific compiler.
17944CC=$lt_compiler_GCJ
17945
17946# Is the compiler the GNU C compiler?
17947with_gcc=$GCC_GCJ
17948
17949# An ERE matcher.
17950EGREP=$lt_EGREP
17951
17952# The linker used to build libraries.
17953LD=$lt_LD_GCJ
17954
17955# Whether we need hard or soft links.
17956LN_S=$lt_LN_S
17957
17958# A BSD-compatible nm program.
17959NM=$lt_NM
17960
17961# A symbol stripping program
17962STRIP=$STRIP
17963
17964# Used to examine libraries when file_magic_cmd begins "file"
17965MAGIC_CMD=$MAGIC_CMD
17966
17967# Used on cygwin: DLL creation program.
17968DLLTOOL="$DLLTOOL"
17969
17970# Used on cygwin: object dumper.
17971OBJDUMP="$OBJDUMP"
17972
17973# Used on cygwin: assembler.
17974AS="$AS"
17975
17976# The name of the directory that contains temporary libtool files.
17977objdir=$objdir
17978
17979# How to create reloadable object files.
17980reload_flag=$lt_reload_flag
17981reload_cmds=$lt_reload_cmds
17982
17983# How to pass a linker flag through the compiler.
17984wl=$lt_lt_prog_compiler_wl_GCJ
17985
17986# Object file suffix (normally "o").
17987objext="$ac_objext"
17988
17989# Old archive suffix (normally "a").
17990libext="$libext"
17991
17992# Shared library suffix (normally ".so").
17993shrext='$shrext'
17994
17995# Executable file suffix (normally "").
17996exeext="$exeext"
17997
17998# Additional compiler flags for building library objects.
17999pic_flag=$lt_lt_prog_compiler_pic_GCJ
18000pic_mode=$pic_mode
18001
18002# What is the maximum length of a command?
18003max_cmd_len=$lt_cv_sys_max_cmd_len
18004
18005# Does compiler simultaneously support -c and -o options?
18006compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18007
18008# Must we lock files when doing compilation ?
18009need_locks=$lt_need_locks
18010
18011# Do we need the lib prefix for modules?
18012need_lib_prefix=$need_lib_prefix
18013
18014# Do we need a version for libraries?
18015need_version=$need_version
18016
18017# Whether dlopen is supported.
18018dlopen_support=$enable_dlopen
18019
18020# Whether dlopen of programs is supported.
18021dlopen_self=$enable_dlopen_self
18022
18023# Whether dlopen of statically linked programs is supported.
18024dlopen_self_static=$enable_dlopen_self_static
18025
18026# Compiler flag to prevent dynamic linking.
18027link_static_flag=$lt_lt_prog_compiler_static_GCJ
18028
18029# Compiler flag to turn off builtin functions.
18030no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18031
18032# Compiler flag to allow reflexive dlopens.
18033export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18034
18035# Compiler flag to generate shared objects directly from archives.
18036whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18037
18038# Compiler flag to generate thread-safe objects.
18039thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18040
18041# Library versioning type.
18042version_type=$version_type
18043
18044# Format of library name prefix.
18045libname_spec=$lt_libname_spec
18046
18047# List of archive names. First name is the real one, the rest are links.
18048# The last name is the one that the linker finds with -lNAME.
18049library_names_spec=$lt_library_names_spec
18050
18051# The coded name of the library, if different from the real name.
18052soname_spec=$lt_soname_spec
18053
18054# Commands used to build and install an old-style archive.
18055RANLIB=$lt_RANLIB
18056old_archive_cmds=$lt_old_archive_cmds_GCJ
18057old_postinstall_cmds=$lt_old_postinstall_cmds
18058old_postuninstall_cmds=$lt_old_postuninstall_cmds
18059
18060# Create an old-style archive from a shared archive.
18061old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18062
18063# Create a temporary old-style archive to link instead of a shared archive.
18064old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18065
18066# Commands used to build and install a shared archive.
18067archive_cmds=$lt_archive_cmds_GCJ
18068archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18069postinstall_cmds=$lt_postinstall_cmds
18070postuninstall_cmds=$lt_postuninstall_cmds
18071
18072# Commands used to build a loadable module (assumed same as above if empty)
18073module_cmds=$lt_module_cmds_GCJ
18074module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18075
18076# Commands to strip libraries.
18077old_striplib=$lt_old_striplib
18078striplib=$lt_striplib
18079
18080# Dependencies to place before the objects being linked to create a
18081# shared library.
18082predep_objects=$lt_predep_objects_GCJ
18083
18084# Dependencies to place after the objects being linked to create a
18085# shared library.
18086postdep_objects=$lt_postdep_objects_GCJ
18087
18088# Dependencies to place before the objects being linked to create a
18089# shared library.
18090predeps=$lt_predeps_GCJ
18091
18092# Dependencies to place after the objects being linked to create a
18093# shared library.
18094postdeps=$lt_postdeps_GCJ
18095
18096# The library search path used internally by the compiler when linking
18097# a shared library.
18098compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18099
18100# Method to check whether dependent libraries are shared objects.
18101deplibs_check_method=$lt_deplibs_check_method
18102
18103# Command to use when deplibs_check_method == file_magic.
18104file_magic_cmd=$lt_file_magic_cmd
18105
18106# Flag that allows shared libraries with undefined symbols to be built.
18107allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18108
18109# Flag that forces no undefined symbols.
18110no_undefined_flag=$lt_no_undefined_flag_GCJ
18111
18112# Commands used to finish a libtool library installation in a directory.
18113finish_cmds=$lt_finish_cmds
18114
18115# Same as above, but a single script fragment to be evaled but not shown.
18116finish_eval=$lt_finish_eval
18117
18118# Take the output of nm and produce a listing of raw symbols and C names.
18119global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18120
18121# Transform the output of nm in a proper C declaration
18122global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18123
18124# Transform the output of nm in a C name address pair
18125global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18126
18127# This is the shared library runtime path variable.
18128runpath_var=$runpath_var
18129
18130# This is the shared library path variable.
18131shlibpath_var=$shlibpath_var
18132
18133# Is shlibpath searched before the hard-coded library search path?
18134shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18135
18136# How to hardcode a shared library path into an executable.
18137hardcode_action=$hardcode_action_GCJ
18138
18139# Whether we should hardcode library paths into libraries.
18140hardcode_into_libs=$hardcode_into_libs
18141
18142# Flag to hardcode \$libdir into a binary during linking.
18143# This must work even if \$libdir does not exist.
18144hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18145
18146# If ld is used when linking, flag to hardcode \$libdir into
18147# a binary during linking. This must work even if \$libdir does
18148# not exist.
18149hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18150
18151# Whether we need a single -rpath flag with a separated argument.
18152hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18153
18154# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18155# resulting binary.
18156hardcode_direct=$hardcode_direct_GCJ
18157
18158# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18159# resulting binary.
18160hardcode_minus_L=$hardcode_minus_L_GCJ
18161
18162# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18163# the resulting binary.
18164hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18165
18166# Set to yes if building a shared library automatically hardcodes DIR into the library
18167# and all subsequent libraries and executables linked against it.
18168hardcode_automatic=$hardcode_automatic_GCJ
18169
18170# Variables whose values should be saved in libtool wrapper scripts and
18171# restored at relink time.
18172variables_saved_for_relink="$variables_saved_for_relink"
18173
18174# Whether libtool must link a program against all its dependency libraries.
18175link_all_deplibs=$link_all_deplibs_GCJ
18176
18177# Compile-time system search path for libraries
18178sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18179
18180# Run-time system search path for libraries
18181sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18182
18183# Fix the shell variable \$srcfile for the compiler.
18184fix_srcfile_path="$fix_srcfile_path_GCJ"
18185
18186# Set to yes if exported symbols are required.
18187always_export_symbols=$always_export_symbols_GCJ
18188
18189# The commands to list exported symbols.
18190export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18191
18192# The commands to extract the exported symbol list from a shared archive.
18193extract_expsyms_cmds=$lt_extract_expsyms_cmds
18194
18195# Symbols that should not be listed in the preloaded symbols.
18196exclude_expsyms=$lt_exclude_expsyms_GCJ
18197
18198# Symbols that must always be exported.
18199include_expsyms=$lt_include_expsyms_GCJ
18200
18201# ### END LIBTOOL TAG CONFIG: $tagname
18202
18203__EOF__
18204
18205
18206else
18207 # If there is no Makefile yet, we rely on a make rule to execute
18208 # `config.status --recheck' to rerun these tests and create the
18209 # libtool script then.
18210 test -f Makefile && make "$ltmain"
18211fi
18212
18213
18214ac_ext=c
18215ac_cpp='$CPP $CPPFLAGS'
18216ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18217ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18218ac_compiler_gnu=$ac_cv_c_compiler_gnu
18219
18220CC="$lt_save_CC"
18221
18222 else
18223 tagname=""
18224 fi
18225 ;;
18226
18227 RC)
18228
18229
18230
18231# Source file extension for RC test sources.
18232ac_ext=rc
18233
18234# Object file extension for compiled RC test sources.
18235objext=o
18236objext_RC=$objext
18237
18238# Code to be used in simple compile tests
18239lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18240
18241# Code to be used in simple link tests
18242lt_simple_link_test_code="$lt_simple_compile_test_code"
18243
18244# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18245
18246# If no C compiler was specified, use CC.
18247LTCC=${LTCC-"$CC"}
18248
18249# Allow CC to be a program name with arguments.
18250compiler=$CC
18251
18252
18253# Allow CC to be a program name with arguments.
18254lt_save_CC="$CC"
18255CC=${RC-"windres"}
18256compiler=$CC
18257compiler_RC=$CC
18258lt_cv_prog_compiler_c_o_RC=yes
18259
18260# The else clause should only fire when bootstrapping the
18261# libtool distribution, otherwise you forgot to ship ltmain.sh
18262# with your package, and you will get complaints that there are
18263# no rules to generate ltmain.sh.
18264if test -f "$ltmain"; then
18265 # See if we are running on zsh, and set the options which allow our commands through
18266 # without removal of \ escapes.
18267 if test -n "${ZSH_VERSION+set}" ; then
18268 setopt NO_GLOB_SUBST
18269 fi
18270 # Now quote all the things that may contain metacharacters while being
18271 # careful not to overquote the AC_SUBSTed values. We take copies of the
18272 # variables and quote the copies for generation of the libtool script.
18273 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
18274 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18275 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18276 deplibs_check_method reload_flag reload_cmds need_locks \
18277 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18278 lt_cv_sys_global_symbol_to_c_name_address \
18279 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18280 old_postinstall_cmds old_postuninstall_cmds \
18281 compiler_RC \
18282 CC_RC \
18283 LD_RC \
18284 lt_prog_compiler_wl_RC \
18285 lt_prog_compiler_pic_RC \
18286 lt_prog_compiler_static_RC \
18287 lt_prog_compiler_no_builtin_flag_RC \
18288 export_dynamic_flag_spec_RC \
18289 thread_safe_flag_spec_RC \
18290 whole_archive_flag_spec_RC \
18291 enable_shared_with_static_runtimes_RC \
18292 old_archive_cmds_RC \
18293 old_archive_from_new_cmds_RC \
18294 predep_objects_RC \
18295 postdep_objects_RC \
18296 predeps_RC \
18297 postdeps_RC \
18298 compiler_lib_search_path_RC \
18299 archive_cmds_RC \
18300 archive_expsym_cmds_RC \
18301 postinstall_cmds_RC \
18302 postuninstall_cmds_RC \
18303 old_archive_from_expsyms_cmds_RC \
18304 allow_undefined_flag_RC \
18305 no_undefined_flag_RC \
18306 export_symbols_cmds_RC \
18307 hardcode_libdir_flag_spec_RC \
18308 hardcode_libdir_flag_spec_ld_RC \
18309 hardcode_libdir_separator_RC \
18310 hardcode_automatic_RC \
18311 module_cmds_RC \
18312 module_expsym_cmds_RC \
18313 lt_cv_prog_compiler_c_o_RC \
18314 exclude_expsyms_RC \
18315 include_expsyms_RC; do
18316
18317 case $var in
18318 old_archive_cmds_RC | \
18319 old_archive_from_new_cmds_RC | \
18320 archive_cmds_RC | \
18321 archive_expsym_cmds_RC | \
18322 module_cmds_RC | \
18323 module_expsym_cmds_RC | \
18324 old_archive_from_expsyms_cmds_RC | \
18325 export_symbols_cmds_RC | \
18326 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18327 postinstall_cmds | postuninstall_cmds | \
18328 old_postinstall_cmds | old_postuninstall_cmds | \
18329 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18330 # Double-quote double-evaled strings.
18331 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18332 ;;
18333 *)
18334 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18335 ;;
18336 esac
18337 done
18338
18339 case $lt_echo in
18340 *'\$0 --fallback-echo"')
18341 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18342 ;;
18343 esac
18344
18345cfgfile="$ofile"
18346
18347 cat <<__EOF__ >> "$cfgfile"
18348# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18349
18350# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18351
18352# Shell to use when invoking shell scripts.
18353SHELL=$lt_SHELL
18354
18355# Whether or not to build shared libraries.
18356build_libtool_libs=$enable_shared
18357
18358# Whether or not to build static libraries.
18359build_old_libs=$enable_static
18360
18361# Whether or not to add -lc for building shared libraries.
18362build_libtool_need_lc=$archive_cmds_need_lc_RC
18363
18364# Whether or not to disallow shared libs when runtime libs are static
18365allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18366
18367# Whether or not to optimize for fast installation.
18368fast_install=$enable_fast_install
18369
18370# The host system.
18371host_alias=$host_alias
18372host=$host
18373
18374# An echo program that does not interpret backslashes.
18375echo=$lt_echo
18376
18377# The archiver.
18378AR=$lt_AR
18379AR_FLAGS=$lt_AR_FLAGS
18380
18381# A C compiler.
18382LTCC=$lt_LTCC
18383
18384# A language-specific compiler.
18385CC=$lt_compiler_RC
18386
18387# Is the compiler the GNU C compiler?
18388with_gcc=$GCC_RC
18389
18390# An ERE matcher.
18391EGREP=$lt_EGREP
18392
18393# The linker used to build libraries.
18394LD=$lt_LD_RC
18395
18396# Whether we need hard or soft links.
18397LN_S=$lt_LN_S
18398
18399# A BSD-compatible nm program.
18400NM=$lt_NM
18401
18402# A symbol stripping program
18403STRIP=$STRIP
18404
18405# Used to examine libraries when file_magic_cmd begins "file"
18406MAGIC_CMD=$MAGIC_CMD
18407
18408# Used on cygwin: DLL creation program.
18409DLLTOOL="$DLLTOOL"
18410
18411# Used on cygwin: object dumper.
18412OBJDUMP="$OBJDUMP"
18413
18414# Used on cygwin: assembler.
18415AS="$AS"
18416
18417# The name of the directory that contains temporary libtool files.
18418objdir=$objdir
18419
18420# How to create reloadable object files.
18421reload_flag=$lt_reload_flag
18422reload_cmds=$lt_reload_cmds
18423
18424# How to pass a linker flag through the compiler.
18425wl=$lt_lt_prog_compiler_wl_RC
18426
18427# Object file suffix (normally "o").
18428objext="$ac_objext"
18429
18430# Old archive suffix (normally "a").
18431libext="$libext"
18432
18433# Shared library suffix (normally ".so").
18434shrext='$shrext'
18435
18436# Executable file suffix (normally "").
18437exeext="$exeext"
18438
18439# Additional compiler flags for building library objects.
18440pic_flag=$lt_lt_prog_compiler_pic_RC
18441pic_mode=$pic_mode
18442
18443# What is the maximum length of a command?
18444max_cmd_len=$lt_cv_sys_max_cmd_len
18445
18446# Does compiler simultaneously support -c and -o options?
18447compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18448
18449# Must we lock files when doing compilation ?
18450need_locks=$lt_need_locks
18451
18452# Do we need the lib prefix for modules?
18453need_lib_prefix=$need_lib_prefix
18454
18455# Do we need a version for libraries?
18456need_version=$need_version
18457
18458# Whether dlopen is supported.
18459dlopen_support=$enable_dlopen
18460
18461# Whether dlopen of programs is supported.
18462dlopen_self=$enable_dlopen_self
18463
18464# Whether dlopen of statically linked programs is supported.
18465dlopen_self_static=$enable_dlopen_self_static
18466
18467# Compiler flag to prevent dynamic linking.
18468link_static_flag=$lt_lt_prog_compiler_static_RC
18469
18470# Compiler flag to turn off builtin functions.
18471no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18472
18473# Compiler flag to allow reflexive dlopens.
18474export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18475
18476# Compiler flag to generate shared objects directly from archives.
18477whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18478
18479# Compiler flag to generate thread-safe objects.
18480thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18481
18482# Library versioning type.
18483version_type=$version_type
18484
18485# Format of library name prefix.
18486libname_spec=$lt_libname_spec
18487
18488# List of archive names. First name is the real one, the rest are links.
18489# The last name is the one that the linker finds with -lNAME.
18490library_names_spec=$lt_library_names_spec
18491
18492# The coded name of the library, if different from the real name.
18493soname_spec=$lt_soname_spec
18494
18495# Commands used to build and install an old-style archive.
18496RANLIB=$lt_RANLIB
18497old_archive_cmds=$lt_old_archive_cmds_RC
18498old_postinstall_cmds=$lt_old_postinstall_cmds
18499old_postuninstall_cmds=$lt_old_postuninstall_cmds
18500
18501# Create an old-style archive from a shared archive.
18502old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18503
18504# Create a temporary old-style archive to link instead of a shared archive.
18505old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18506
18507# Commands used to build and install a shared archive.
18508archive_cmds=$lt_archive_cmds_RC
18509archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18510postinstall_cmds=$lt_postinstall_cmds
18511postuninstall_cmds=$lt_postuninstall_cmds
18512
18513# Commands used to build a loadable module (assumed same as above if empty)
18514module_cmds=$lt_module_cmds_RC
18515module_expsym_cmds=$lt_module_expsym_cmds_RC
18516
18517# Commands to strip libraries.
18518old_striplib=$lt_old_striplib
18519striplib=$lt_striplib
18520
18521# Dependencies to place before the objects being linked to create a
18522# shared library.
18523predep_objects=$lt_predep_objects_RC
18524
18525# Dependencies to place after the objects being linked to create a
18526# shared library.
18527postdep_objects=$lt_postdep_objects_RC
18528
18529# Dependencies to place before the objects being linked to create a
18530# shared library.
18531predeps=$lt_predeps_RC
18532
18533# Dependencies to place after the objects being linked to create a
18534# shared library.
18535postdeps=$lt_postdeps_RC
18536
18537# The library search path used internally by the compiler when linking
18538# a shared library.
18539compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18540
18541# Method to check whether dependent libraries are shared objects.
18542deplibs_check_method=$lt_deplibs_check_method
18543
18544# Command to use when deplibs_check_method == file_magic.
18545file_magic_cmd=$lt_file_magic_cmd
18546
18547# Flag that allows shared libraries with undefined symbols to be built.
18548allow_undefined_flag=$lt_allow_undefined_flag_RC
18549
18550# Flag that forces no undefined symbols.
18551no_undefined_flag=$lt_no_undefined_flag_RC
18552
18553# Commands used to finish a libtool library installation in a directory.
18554finish_cmds=$lt_finish_cmds
18555
18556# Same as above, but a single script fragment to be evaled but not shown.
18557finish_eval=$lt_finish_eval
18558
18559# Take the output of nm and produce a listing of raw symbols and C names.
18560global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18561
18562# Transform the output of nm in a proper C declaration
18563global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18564
18565# Transform the output of nm in a C name address pair
18566global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18567
18568# This is the shared library runtime path variable.
18569runpath_var=$runpath_var
18570
18571# This is the shared library path variable.
18572shlibpath_var=$shlibpath_var
18573
18574# Is shlibpath searched before the hard-coded library search path?
18575shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18576
18577# How to hardcode a shared library path into an executable.
18578hardcode_action=$hardcode_action_RC
18579
18580# Whether we should hardcode library paths into libraries.
18581hardcode_into_libs=$hardcode_into_libs
18582
18583# Flag to hardcode \$libdir into a binary during linking.
18584# This must work even if \$libdir does not exist.
18585hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18586
18587# If ld is used when linking, flag to hardcode \$libdir into
18588# a binary during linking. This must work even if \$libdir does
18589# not exist.
18590hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18591
18592# Whether we need a single -rpath flag with a separated argument.
18593hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18594
18595# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18596# resulting binary.
18597hardcode_direct=$hardcode_direct_RC
18598
18599# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18600# resulting binary.
18601hardcode_minus_L=$hardcode_minus_L_RC
18602
18603# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18604# the resulting binary.
18605hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18606
18607# Set to yes if building a shared library automatically hardcodes DIR into the library
18608# and all subsequent libraries and executables linked against it.
18609hardcode_automatic=$hardcode_automatic_RC
18610
18611# Variables whose values should be saved in libtool wrapper scripts and
18612# restored at relink time.
18613variables_saved_for_relink="$variables_saved_for_relink"
18614
18615# Whether libtool must link a program against all its dependency libraries.
18616link_all_deplibs=$link_all_deplibs_RC
18617
18618# Compile-time system search path for libraries
18619sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18620
18621# Run-time system search path for libraries
18622sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18623
18624# Fix the shell variable \$srcfile for the compiler.
18625fix_srcfile_path="$fix_srcfile_path_RC"
18626
18627# Set to yes if exported symbols are required.
18628always_export_symbols=$always_export_symbols_RC
18629
18630# The commands to list exported symbols.
18631export_symbols_cmds=$lt_export_symbols_cmds_RC
18632
18633# The commands to extract the exported symbol list from a shared archive.
18634extract_expsyms_cmds=$lt_extract_expsyms_cmds
18635
18636# Symbols that should not be listed in the preloaded symbols.
18637exclude_expsyms=$lt_exclude_expsyms_RC
18638
18639# Symbols that must always be exported.
18640include_expsyms=$lt_include_expsyms_RC
18641
18642# ### END LIBTOOL TAG CONFIG: $tagname
18643
18644__EOF__
18645
18646
18647else
18648 # If there is no Makefile yet, we rely on a make rule to execute
18649 # `config.status --recheck' to rerun these tests and create the
18650 # libtool script then.
18651 test -f Makefile && make "$ltmain"
18652fi
18653
18654
18655ac_ext=c
18656ac_cpp='$CPP $CPPFLAGS'
18657ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18658ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18659ac_compiler_gnu=$ac_cv_c_compiler_gnu
18660
18661CC="$lt_save_CC"
18662
18663 ;;
18664
18665 *)
18666 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18667echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18668 { (exit 1); exit 1; }; }
18669 ;;
18670 esac
18671
18672 # Append the new tag name to the list of available tags.
18673 if test -n "$tagname" ; then
18674 available_tags="$available_tags $tagname"
18675 fi
18676 fi
18677 done
18678 IFS="$lt_save_ifs"
18679
18680 # Now substitute the updated list of available tags.
18681 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18682 mv "${ofile}T" "$ofile"
18683 chmod +x "$ofile"
18684 else
18685 rm -f "${ofile}T"
18686 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18687echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18688 { (exit 1); exit 1; }; }
18689 fi
18690fi
John Criswell7a73b802003-06-30 21:59:07 +000018691
18692
18693
18694# This can be used to rebuild libtool when needed
18695LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18696
18697# Always use our own libtool.
John Criswell8d4221e2003-07-23 16:52:50 +000018698LIBTOOL='$(SHELL) $(top_builddir)/mklib'
John Criswell7a73b802003-06-30 21:59:07 +000018699
18700# Prevent multiple expansion
18701
18702
18703
John Criswell47fdd832003-07-14 16:52:07 +000018704
18705
18706
18707
18708
18709
18710
18711
18712
18713
18714
18715
18716
18717
18718
18719
18720
18721
John Criswell7a73b802003-06-30 21:59:07 +000018722# Extract the first word of "dot", so it can be a program name with args.
18723set dummy dot; ac_word=$2
18724echo "$as_me:$LINENO: checking for $ac_word" >&5
18725echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18726if test "${ac_cv_path_DOT+set}" = set; then
18727 echo $ECHO_N "(cached) $ECHO_C" >&6
18728else
18729 case $DOT in
18730 [\\/]* | ?:[\\/]*)
18731 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
18732 ;;
18733 *)
18734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18735for as_dir in $PATH
18736do
18737 IFS=$as_save_IFS
18738 test -z "$as_dir" && as_dir=.
18739 for ac_exec_ext in '' $ac_executable_extensions; do
18740 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18741 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
18742 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18743 break 2
18744 fi
18745done
18746done
18747
Brian Gaeke26be9c52004-01-13 06:43:16 +000018748 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="true dot"
John Criswell7a73b802003-06-30 21:59:07 +000018749 ;;
18750esac
18751fi
18752DOT=$ac_cv_path_DOT
18753
18754if test -n "$DOT"; then
18755 echo "$as_me:$LINENO: result: $DOT" >&5
18756echo "${ECHO_T}$DOT" >&6
18757else
18758 echo "$as_me:$LINENO: result: no" >&5
18759echo "${ECHO_T}no" >&6
18760fi
18761
18762# Extract the first word of "etags", so it can be a program name with args.
18763set dummy etags; ac_word=$2
18764echo "$as_me:$LINENO: checking for $ac_word" >&5
18765echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18766if test "${ac_cv_path_ETAGS+set}" = set; then
18767 echo $ECHO_N "(cached) $ECHO_C" >&6
18768else
18769 case $ETAGS in
18770 [\\/]* | ?:[\\/]*)
18771 ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
18772 ;;
18773 *)
18774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18775for as_dir in $PATH
18776do
18777 IFS=$as_save_IFS
18778 test -z "$as_dir" && as_dir=.
18779 for ac_exec_ext in '' $ac_executable_extensions; do
18780 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18781 ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
18782 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18783 break 2
18784 fi
18785done
18786done
18787
Brian Gaeke26be9c52004-01-13 06:43:16 +000018788 test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="true etags"
John Criswell7a73b802003-06-30 21:59:07 +000018789 ;;
18790esac
18791fi
18792ETAGS=$ac_cv_path_ETAGS
18793
18794if test -n "$ETAGS"; then
18795 echo "$as_me:$LINENO: result: $ETAGS" >&5
18796echo "${ECHO_T}$ETAGS" >&6
18797else
18798 echo "$as_me:$LINENO: result: no" >&5
18799echo "${ECHO_T}no" >&6
18800fi
18801
Brian Gaekeafa3fbf2004-01-22 21:55:02 +000018802etags_version=`$ETAGS --version 2>&1`
18803case "$etags_version" in
18804 *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
18805 *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
18806 *) ETAGSFLAGS="" ;;
18807esac
18808ETAGSFLAGS=$ETAGSFLAGS
18809
John Criswellde00db22003-08-25 16:49:54 +000018810# Extract the first word of "python", so it can be a program name with args.
18811set dummy python; ac_word=$2
18812echo "$as_me:$LINENO: checking for $ac_word" >&5
18813echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18814if test "${ac_cv_path_PYTHON+set}" = set; then
18815 echo $ECHO_N "(cached) $ECHO_C" >&6
18816else
18817 case $PYTHON in
18818 [\\/]* | ?:[\\/]*)
18819 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
18820 ;;
18821 *)
18822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18823for as_dir in $PATH
18824do
18825 IFS=$as_save_IFS
18826 test -z "$as_dir" && as_dir=.
18827 for ac_exec_ext in '' $ac_executable_extensions; do
18828 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18829 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
18830 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18831 break 2
18832 fi
18833done
18834done
18835
Brian Gaeke26be9c52004-01-13 06:43:16 +000018836 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="true python"
John Criswellde00db22003-08-25 16:49:54 +000018837 ;;
18838esac
18839fi
18840PYTHON=$ac_cv_path_PYTHON
18841
18842if test -n "$PYTHON"; then
18843 echo "$as_me:$LINENO: result: $PYTHON" >&5
18844echo "${ECHO_T}$PYTHON" >&6
18845else
18846 echo "$as_me:$LINENO: result: no" >&5
18847echo "${ECHO_T}no" >&6
18848fi
18849
Brian Gaeke26be9c52004-01-13 06:43:16 +000018850if test "$PYTHON" = "false"
John Criswell39827c82003-09-23 15:28:52 +000018851then
Brian Gaeke26be9c52004-01-13 06:43:16 +000018852 { echo "$as_me:$LINENO: WARNING: Python is required for the test suite, but it was not found" >&5
18853echo "$as_me: WARNING: Python is required for the test suite, but it was not found" >&2;}
John Criswell39827c82003-09-23 15:28:52 +000018854fi
John Criswellde00db22003-08-25 16:49:54 +000018855# Extract the first word of "qmtest", so it can be a program name with args.
18856set dummy qmtest; ac_word=$2
18857echo "$as_me:$LINENO: checking for $ac_word" >&5
18858echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18859if test "${ac_cv_path_QMTEST+set}" = set; then
18860 echo $ECHO_N "(cached) $ECHO_C" >&6
18861else
18862 case $QMTEST in
18863 [\\/]* | ?:[\\/]*)
18864 ac_cv_path_QMTEST="$QMTEST" # Let the user override the test with a path.
18865 ;;
18866 *)
18867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18868for as_dir in $PATH
18869do
18870 IFS=$as_save_IFS
18871 test -z "$as_dir" && as_dir=.
18872 for ac_exec_ext in '' $ac_executable_extensions; do
18873 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18874 ac_cv_path_QMTEST="$as_dir/$ac_word$ac_exec_ext"
18875 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18876 break 2
18877 fi
18878done
18879done
18880
Brian Gaeke26be9c52004-01-13 06:43:16 +000018881 test -z "$ac_cv_path_QMTEST" && ac_cv_path_QMTEST="true qmtest"
John Criswellde00db22003-08-25 16:49:54 +000018882 ;;
18883esac
18884fi
18885QMTEST=$ac_cv_path_QMTEST
18886
18887if test -n "$QMTEST"; then
18888 echo "$as_me:$LINENO: result: $QMTEST" >&5
18889echo "${ECHO_T}$QMTEST" >&6
18890else
18891 echo "$as_me:$LINENO: result: no" >&5
18892echo "${ECHO_T}no" >&6
18893fi
18894
Brian Gaeke26be9c52004-01-13 06:43:16 +000018895if test "$QMTEST" = "false"
John Criswell39827c82003-09-23 15:28:52 +000018896then
Brian Gaeke26be9c52004-01-13 06:43:16 +000018897 { echo "$as_me:$LINENO: WARNING: QMTest is required for the test suite, but it was not found" >&5
18898echo "$as_me: WARNING: QMTest is required for the test suite, but it was not found" >&2;}
John Criswell39827c82003-09-23 15:28:52 +000018899fi
John Criswellde00db22003-08-25 16:49:54 +000018900
18901pyversion=`$PYTHON -V 2>&1 | cut -d\ -f2`
18902pymajor=`echo $pyversion | cut -d. -f1`
18903pyminor=`echo $pyversion | cut -d. -f2`
18904
18905if test "$pymajor" -ge "2"
18906then
18907 if test "$pymajor" -eq "2"
18908 then
18909 if test "$pyminor" -lt "2"
18910 then
Brian Gaeke26be9c52004-01-13 06:43:16 +000018911 { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5
18912echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;}
John Criswellde00db22003-08-25 16:49:54 +000018913 fi
18914 fi
18915else
Brian Gaeke26be9c52004-01-13 06:43:16 +000018916 { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5
18917echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;}
John Criswellde00db22003-08-25 16:49:54 +000018918fi
John Criswell7a73b802003-06-30 21:59:07 +000018919
18920
18921
18922
John Criswell7a73b802003-06-30 21:59:07 +000018923echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
18924echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
18925if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
18926 echo $ECHO_N "(cached) $ECHO_C" >&6
18927else
18928 ac_check_lib_save_LIBS=$LIBS
18929LIBS="-lelf $LIBS"
18930cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018931/* confdefs.h. */
18932_ACEOF
18933cat confdefs.h >>conftest.$ac_ext
18934cat >>conftest.$ac_ext <<_ACEOF
18935/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000018936
18937/* Override any gcc2 internal prototype to avoid an error. */
18938#ifdef __cplusplus
18939extern "C"
18940#endif
18941/* We use char because int might match the return type of a gcc2
18942 builtin and then its argument prototype would still apply. */
18943char elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000018944int
18945main ()
18946{
18947elf_begin ();
18948 ;
18949 return 0;
18950}
18951_ACEOF
18952rm -f conftest.$ac_objext conftest$ac_exeext
18953if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000018954 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000018955 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000018956 grep -v '^ *+' conftest.er1 >conftest.err
18957 rm -f conftest.er1
18958 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000018959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18960 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000018961 { ac_try='test -z "$ac_c_werror_flag"
18962 || test ! -s conftest.err'
18963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18964 (eval $ac_try) 2>&5
18965 ac_status=$?
18966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18967 (exit $ac_status); }; } &&
18968 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000018969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18970 (eval $ac_try) 2>&5
18971 ac_status=$?
18972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18973 (exit $ac_status); }; }; then
18974 ac_cv_lib_elf_elf_begin=yes
18975else
18976 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018977sed 's/^/| /' conftest.$ac_ext >&5
18978
John Criswell7a73b802003-06-30 21:59:07 +000018979ac_cv_lib_elf_elf_begin=no
18980fi
Reid Spencer2b51a082004-08-04 00:34:49 +000018981rm -f conftest.err conftest.$ac_objext \
18982 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000018983LIBS=$ac_check_lib_save_LIBS
18984fi
18985echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
18986echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
18987if test $ac_cv_lib_elf_elf_begin = yes; then
18988 cat >>confdefs.h <<_ACEOF
18989#define HAVE_LIBELF 1
18990_ACEOF
18991
18992 LIBS="-lelf $LIBS"
18993
18994fi
18995
18996
18997echo "$as_me:$LINENO: checking for library containing dlopen" >&5
18998echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
18999if test "${ac_cv_search_dlopen+set}" = set; then
19000 echo $ECHO_N "(cached) $ECHO_C" >&6
19001else
19002 ac_func_search_save_LIBS=$LIBS
19003ac_cv_search_dlopen=no
19004cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000019005/* confdefs.h. */
19006_ACEOF
19007cat confdefs.h >>conftest.$ac_ext
19008cat >>conftest.$ac_ext <<_ACEOF
19009/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019010
19011/* Override any gcc2 internal prototype to avoid an error. */
19012#ifdef __cplusplus
19013extern "C"
19014#endif
19015/* We use char because int might match the return type of a gcc2
19016 builtin and then its argument prototype would still apply. */
19017char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000019018int
19019main ()
19020{
19021dlopen ();
19022 ;
19023 return 0;
19024}
19025_ACEOF
19026rm -f conftest.$ac_objext conftest$ac_exeext
19027if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000019028 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000019029 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000019030 grep -v '^ *+' conftest.er1 >conftest.err
19031 rm -f conftest.er1
19032 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000019033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19034 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000019035 { ac_try='test -z "$ac_c_werror_flag"
19036 || test ! -s conftest.err'
19037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19038 (eval $ac_try) 2>&5
19039 ac_status=$?
19040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19041 (exit $ac_status); }; } &&
19042 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000019043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19044 (eval $ac_try) 2>&5
19045 ac_status=$?
19046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19047 (exit $ac_status); }; }; then
19048 ac_cv_search_dlopen="none required"
19049else
19050 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019051sed 's/^/| /' conftest.$ac_ext >&5
19052
John Criswell7a73b802003-06-30 21:59:07 +000019053fi
Reid Spencer2b51a082004-08-04 00:34:49 +000019054rm -f conftest.err conftest.$ac_objext \
19055 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000019056if test "$ac_cv_search_dlopen" = no; then
19057 for ac_lib in dl; do
19058 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19059 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000019060/* confdefs.h. */
19061_ACEOF
19062cat confdefs.h >>conftest.$ac_ext
19063cat >>conftest.$ac_ext <<_ACEOF
19064/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019065
19066/* Override any gcc2 internal prototype to avoid an error. */
19067#ifdef __cplusplus
19068extern "C"
19069#endif
19070/* We use char because int might match the return type of a gcc2
19071 builtin and then its argument prototype would still apply. */
19072char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000019073int
19074main ()
19075{
19076dlopen ();
19077 ;
19078 return 0;
19079}
19080_ACEOF
19081rm -f conftest.$ac_objext conftest$ac_exeext
19082if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000019083 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000019084 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000019085 grep -v '^ *+' conftest.er1 >conftest.err
19086 rm -f conftest.er1
19087 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000019088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19089 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000019090 { ac_try='test -z "$ac_c_werror_flag"
19091 || test ! -s conftest.err'
19092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19093 (eval $ac_try) 2>&5
19094 ac_status=$?
19095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19096 (exit $ac_status); }; } &&
19097 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000019098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19099 (eval $ac_try) 2>&5
19100 ac_status=$?
19101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19102 (exit $ac_status); }; }; then
19103 ac_cv_search_dlopen="-l$ac_lib"
19104break
19105else
19106 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019107sed 's/^/| /' conftest.$ac_ext >&5
19108
John Criswell7a73b802003-06-30 21:59:07 +000019109fi
Reid Spencer2b51a082004-08-04 00:34:49 +000019110rm -f conftest.err conftest.$ac_objext \
19111 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000019112 done
19113fi
19114LIBS=$ac_func_search_save_LIBS
19115fi
19116echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
19117echo "${ECHO_T}$ac_cv_search_dlopen" >&6
19118if test "$ac_cv_search_dlopen" != no; then
19119 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000019120
19121cat >>confdefs.h <<\_ACEOF
Brian Gaekec45be042003-10-07 06:01:34 +000019122#define HAVE_DLOPEN 1
19123_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000019124
19125else
Brian Gaekec45be042003-10-07 06:01:34 +000019126 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
19127echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000019128fi
19129
19130
19131echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
19132echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
19133if test "${ac_cv_search_mallinfo+set}" = set; then
19134 echo $ECHO_N "(cached) $ECHO_C" >&6
19135else
19136 ac_func_search_save_LIBS=$LIBS
19137ac_cv_search_mallinfo=no
19138cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000019139/* confdefs.h. */
19140_ACEOF
19141cat confdefs.h >>conftest.$ac_ext
19142cat >>conftest.$ac_ext <<_ACEOF
19143/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019144
19145/* Override any gcc2 internal prototype to avoid an error. */
19146#ifdef __cplusplus
19147extern "C"
19148#endif
19149/* We use char because int might match the return type of a gcc2
19150 builtin and then its argument prototype would still apply. */
19151char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000019152int
19153main ()
19154{
19155mallinfo ();
19156 ;
19157 return 0;
19158}
19159_ACEOF
19160rm -f conftest.$ac_objext conftest$ac_exeext
19161if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000019162 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000019163 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000019164 grep -v '^ *+' conftest.er1 >conftest.err
19165 rm -f conftest.er1
19166 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000019167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19168 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000019169 { ac_try='test -z "$ac_c_werror_flag"
19170 || test ! -s conftest.err'
19171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19172 (eval $ac_try) 2>&5
19173 ac_status=$?
19174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19175 (exit $ac_status); }; } &&
19176 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000019177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19178 (eval $ac_try) 2>&5
19179 ac_status=$?
19180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19181 (exit $ac_status); }; }; then
19182 ac_cv_search_mallinfo="none required"
19183else
19184 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019185sed 's/^/| /' conftest.$ac_ext >&5
19186
John Criswell7a73b802003-06-30 21:59:07 +000019187fi
Reid Spencer2b51a082004-08-04 00:34:49 +000019188rm -f conftest.err conftest.$ac_objext \
19189 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000019190if test "$ac_cv_search_mallinfo" = no; then
19191 for ac_lib in malloc; do
19192 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19193 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000019194/* confdefs.h. */
19195_ACEOF
19196cat confdefs.h >>conftest.$ac_ext
19197cat >>conftest.$ac_ext <<_ACEOF
19198/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019199
19200/* Override any gcc2 internal prototype to avoid an error. */
19201#ifdef __cplusplus
19202extern "C"
19203#endif
19204/* We use char because int might match the return type of a gcc2
19205 builtin and then its argument prototype would still apply. */
19206char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000019207int
19208main ()
19209{
19210mallinfo ();
19211 ;
19212 return 0;
19213}
19214_ACEOF
19215rm -f conftest.$ac_objext conftest$ac_exeext
19216if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000019217 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000019218 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000019219 grep -v '^ *+' conftest.er1 >conftest.err
19220 rm -f conftest.er1
19221 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000019222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19223 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000019224 { ac_try='test -z "$ac_c_werror_flag"
19225 || test ! -s conftest.err'
19226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19227 (eval $ac_try) 2>&5
19228 ac_status=$?
19229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19230 (exit $ac_status); }; } &&
19231 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000019232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19233 (eval $ac_try) 2>&5
19234 ac_status=$?
19235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19236 (exit $ac_status); }; }; then
19237 ac_cv_search_mallinfo="-l$ac_lib"
19238break
19239else
19240 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019241sed 's/^/| /' conftest.$ac_ext >&5
19242
John Criswell7a73b802003-06-30 21:59:07 +000019243fi
Reid Spencer2b51a082004-08-04 00:34:49 +000019244rm -f conftest.err conftest.$ac_objext \
19245 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000019246 done
19247fi
19248LIBS=$ac_func_search_save_LIBS
19249fi
19250echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
19251echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
19252if test "$ac_cv_search_mallinfo" != no; then
19253 test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000019254
19255cat >>confdefs.h <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000019256#define HAVE_MALLINFO 1
19257_ACEOF
19258
19259fi
19260
19261
Brian Gaeke5f268f72003-12-05 19:29:01 +000019262echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
19263echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
19264if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
19265 echo $ECHO_N "(cached) $ECHO_C" >&6
19266else
19267 ac_func_search_save_LIBS=$LIBS
19268ac_cv_search_pthread_mutex_lock=no
19269cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000019270/* confdefs.h. */
19271_ACEOF
19272cat confdefs.h >>conftest.$ac_ext
19273cat >>conftest.$ac_ext <<_ACEOF
19274/* end confdefs.h. */
19275
19276/* Override any gcc2 internal prototype to avoid an error. */
19277#ifdef __cplusplus
19278extern "C"
19279#endif
19280/* We use char because int might match the return type of a gcc2
19281 builtin and then its argument prototype would still apply. */
19282char pthread_mutex_lock ();
19283int
19284main ()
19285{
19286pthread_mutex_lock ();
19287 ;
19288 return 0;
19289}
19290_ACEOF
19291rm -f conftest.$ac_objext conftest$ac_exeext
19292if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000019293 (eval $ac_link) 2>conftest.er1
Brian Gaeke5f268f72003-12-05 19:29:01 +000019294 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000019295 grep -v '^ *+' conftest.er1 >conftest.err
19296 rm -f conftest.er1
19297 cat conftest.err >&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000019298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19299 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000019300 { ac_try='test -z "$ac_c_werror_flag"
19301 || test ! -s conftest.err'
19302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19303 (eval $ac_try) 2>&5
19304 ac_status=$?
19305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19306 (exit $ac_status); }; } &&
19307 { ac_try='test -s conftest$ac_exeext'
Brian Gaeke5f268f72003-12-05 19:29:01 +000019308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19309 (eval $ac_try) 2>&5
19310 ac_status=$?
19311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19312 (exit $ac_status); }; }; then
19313 ac_cv_search_pthread_mutex_lock="none required"
19314else
19315 echo "$as_me: failed program was:" >&5
19316sed 's/^/| /' conftest.$ac_ext >&5
19317
19318fi
Reid Spencer2b51a082004-08-04 00:34:49 +000019319rm -f conftest.err conftest.$ac_objext \
19320 conftest$ac_exeext conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000019321if test "$ac_cv_search_pthread_mutex_lock" = no; then
19322 for ac_lib in pthread; do
19323 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19324 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000019325/* confdefs.h. */
19326_ACEOF
19327cat confdefs.h >>conftest.$ac_ext
19328cat >>conftest.$ac_ext <<_ACEOF
19329/* end confdefs.h. */
19330
19331/* Override any gcc2 internal prototype to avoid an error. */
19332#ifdef __cplusplus
19333extern "C"
19334#endif
19335/* We use char because int might match the return type of a gcc2
19336 builtin and then its argument prototype would still apply. */
19337char pthread_mutex_lock ();
19338int
19339main ()
19340{
19341pthread_mutex_lock ();
19342 ;
19343 return 0;
19344}
19345_ACEOF
19346rm -f conftest.$ac_objext conftest$ac_exeext
19347if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000019348 (eval $ac_link) 2>conftest.er1
Brian Gaeke5f268f72003-12-05 19:29:01 +000019349 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000019350 grep -v '^ *+' conftest.er1 >conftest.err
19351 rm -f conftest.er1
19352 cat conftest.err >&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000019353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19354 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000019355 { ac_try='test -z "$ac_c_werror_flag"
19356 || test ! -s conftest.err'
19357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19358 (eval $ac_try) 2>&5
19359 ac_status=$?
19360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19361 (exit $ac_status); }; } &&
19362 { ac_try='test -s conftest$ac_exeext'
Brian Gaeke5f268f72003-12-05 19:29:01 +000019363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19364 (eval $ac_try) 2>&5
19365 ac_status=$?
19366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19367 (exit $ac_status); }; }; then
19368 ac_cv_search_pthread_mutex_lock="-l$ac_lib"
19369break
19370else
19371 echo "$as_me: failed program was:" >&5
19372sed 's/^/| /' conftest.$ac_ext >&5
19373
19374fi
Reid Spencer2b51a082004-08-04 00:34:49 +000019375rm -f conftest.err conftest.$ac_objext \
19376 conftest$ac_exeext conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000019377 done
19378fi
19379LIBS=$ac_func_search_save_LIBS
19380fi
19381echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
19382echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
19383if test "$ac_cv_search_pthread_mutex_lock" != no; then
19384 test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
Brian Gaekec9a410c2004-02-23 21:30:37 +000019385 HAVE_PTHREAD_MUTEX_LOCK=1
19386else
19387 HAVE_PTHREAD_MUTEX_LOCK=0
Brian Gaeke5f268f72003-12-05 19:29:01 +000019388fi
19389
19390
Brian Gaekec9a410c2004-02-23 21:30:37 +000019391
John Criswell7a73b802003-06-30 21:59:07 +000019392echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19393echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19394if test "${ac_cv_header_stdc+set}" = set; then
19395 echo $ECHO_N "(cached) $ECHO_C" >&6
19396else
19397 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000019398/* confdefs.h. */
19399_ACEOF
19400cat confdefs.h >>conftest.$ac_ext
19401cat >>conftest.$ac_ext <<_ACEOF
19402/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019403#include <stdlib.h>
19404#include <stdarg.h>
19405#include <string.h>
19406#include <float.h>
19407
John Criswell0c38eaf2003-09-10 15:17:25 +000019408int
19409main ()
19410{
19411
19412 ;
19413 return 0;
19414}
John Criswell7a73b802003-06-30 21:59:07 +000019415_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000019416rm -f conftest.$ac_objext
19417if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000019418 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000019419 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000019420 grep -v '^ *+' conftest.er1 >conftest.err
19421 rm -f conftest.er1
19422 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000019423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019424 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000019425 { ac_try='test -z "$ac_c_werror_flag"
19426 || test ! -s conftest.err'
19427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19428 (eval $ac_try) 2>&5
19429 ac_status=$?
19430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19431 (exit $ac_status); }; } &&
19432 { ac_try='test -s conftest.$ac_objext'
John Criswell0c38eaf2003-09-10 15:17:25 +000019433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19434 (eval $ac_try) 2>&5
19435 ac_status=$?
19436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19437 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000019438 ac_cv_header_stdc=yes
19439else
19440 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019441sed 's/^/| /' conftest.$ac_ext >&5
19442
19443ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000019444fi
Reid Spencer2b51a082004-08-04 00:34:49 +000019445rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000019446
19447if test $ac_cv_header_stdc = yes; then
19448 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19449 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000019450/* confdefs.h. */
19451_ACEOF
19452cat confdefs.h >>conftest.$ac_ext
19453cat >>conftest.$ac_ext <<_ACEOF
19454/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019455#include <string.h>
19456
19457_ACEOF
19458if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000019459 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000019460 :
19461else
19462 ac_cv_header_stdc=no
19463fi
19464rm -f conftest*
19465
19466fi
19467
19468if test $ac_cv_header_stdc = yes; then
19469 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
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 <stdlib.h>
19477
19478_ACEOF
19479if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000019480 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000019481 :
19482else
19483 ac_cv_header_stdc=no
19484fi
19485rm -f conftest*
19486
19487fi
19488
19489if test $ac_cv_header_stdc = yes; then
19490 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19491 if test "$cross_compiling" = yes; then
19492 :
19493else
19494 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000019495/* confdefs.h. */
19496_ACEOF
19497cat confdefs.h >>conftest.$ac_ext
19498cat >>conftest.$ac_ext <<_ACEOF
19499/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019500#include <ctype.h>
19501#if ((' ' & 0x0FF) == 0x020)
19502# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19503# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19504#else
John Criswell0c38eaf2003-09-10 15:17:25 +000019505# define ISLOWER(c) \
Reid Spencer2b51a082004-08-04 00:34:49 +000019506 (('a' <= (c) && (c) <= 'i') \
19507 || ('j' <= (c) && (c) <= 'r') \
19508 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +000019509# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19510#endif
19511
19512#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19513int
19514main ()
19515{
19516 int i;
19517 for (i = 0; i < 256; i++)
19518 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2b51a082004-08-04 00:34:49 +000019519 || toupper (i) != TOUPPER (i))
John Criswell7a73b802003-06-30 21:59:07 +000019520 exit(2);
19521 exit (0);
19522}
19523_ACEOF
19524rm -f conftest$ac_exeext
19525if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19526 (eval $ac_link) 2>&5
19527 ac_status=$?
19528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19529 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19531 (eval $ac_try) 2>&5
19532 ac_status=$?
19533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19534 (exit $ac_status); }; }; then
19535 :
19536else
19537 echo "$as_me: program exited with status $ac_status" >&5
19538echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019539sed 's/^/| /' conftest.$ac_ext >&5
19540
John Criswell7a73b802003-06-30 21:59:07 +000019541( exit $ac_status )
19542ac_cv_header_stdc=no
19543fi
Reid Spencer2b51a082004-08-04 00:34:49 +000019544rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000019545fi
19546fi
19547fi
19548echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19549echo "${ECHO_T}$ac_cv_header_stdc" >&6
19550if test $ac_cv_header_stdc = yes; then
19551
19552cat >>confdefs.h <<\_ACEOF
19553#define STDC_HEADERS 1
19554_ACEOF
19555
19556fi
19557
19558echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
19559echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
19560if test "${ac_cv_header_sys_wait_h+set}" = set; then
19561 echo $ECHO_N "(cached) $ECHO_C" >&6
19562else
19563 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000019564/* confdefs.h. */
19565_ACEOF
19566cat confdefs.h >>conftest.$ac_ext
19567cat >>conftest.$ac_ext <<_ACEOF
19568/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019569#include <sys/types.h>
19570#include <sys/wait.h>
19571#ifndef WEXITSTATUS
19572# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
19573#endif
19574#ifndef WIFEXITED
19575# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
19576#endif
19577
John Criswell7a73b802003-06-30 21:59:07 +000019578int
19579main ()
19580{
19581 int s;
19582 wait (&s);
19583 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
19584 ;
19585 return 0;
19586}
19587_ACEOF
19588rm -f conftest.$ac_objext
19589if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000019590 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000019591 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000019592 grep -v '^ *+' conftest.er1 >conftest.err
19593 rm -f conftest.er1
19594 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000019595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19596 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000019597 { ac_try='test -z "$ac_c_werror_flag"
19598 || test ! -s conftest.err'
19599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19600 (eval $ac_try) 2>&5
19601 ac_status=$?
19602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19603 (exit $ac_status); }; } &&
19604 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000019605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19606 (eval $ac_try) 2>&5
19607 ac_status=$?
19608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19609 (exit $ac_status); }; }; then
19610 ac_cv_header_sys_wait_h=yes
19611else
19612 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019613sed 's/^/| /' conftest.$ac_ext >&5
19614
John Criswell7a73b802003-06-30 21:59:07 +000019615ac_cv_header_sys_wait_h=no
19616fi
Reid Spencer2b51a082004-08-04 00:34:49 +000019617rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000019618fi
19619echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
19620echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
19621if test $ac_cv_header_sys_wait_h = yes; then
19622
19623cat >>confdefs.h <<\_ACEOF
19624#define HAVE_SYS_WAIT_H 1
19625_ACEOF
19626
19627fi
19628
19629
19630
19631
19632
19633
19634
19635
19636
19637
Brian Gaeke26be9c52004-01-13 06:43:16 +000019638
Brian Gaekef5261472004-02-20 06:40:57 +000019639
John Criswellb2815e02004-05-27 20:40:39 +000019640
19641for 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 +000019642do
19643as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19644if eval "test \"\${$as_ac_Header+set}\" = set"; then
19645 echo "$as_me:$LINENO: checking for $ac_header" >&5
19646echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19647if eval "test \"\${$as_ac_Header+set}\" = set"; then
19648 echo $ECHO_N "(cached) $ECHO_C" >&6
19649fi
19650echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19651echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19652else
19653 # Is the header compilable?
19654echo "$as_me:$LINENO: checking $ac_header usability" >&5
19655echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19656cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000019657/* confdefs.h. */
19658_ACEOF
19659cat confdefs.h >>conftest.$ac_ext
19660cat >>conftest.$ac_ext <<_ACEOF
19661/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019662$ac_includes_default
19663#include <$ac_header>
19664_ACEOF
19665rm -f conftest.$ac_objext
19666if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000019667 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000019668 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000019669 grep -v '^ *+' conftest.er1 >conftest.err
19670 rm -f conftest.er1
19671 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000019672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19673 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000019674 { ac_try='test -z "$ac_c_werror_flag"
19675 || test ! -s conftest.err'
19676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19677 (eval $ac_try) 2>&5
19678 ac_status=$?
19679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19680 (exit $ac_status); }; } &&
19681 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000019682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19683 (eval $ac_try) 2>&5
19684 ac_status=$?
19685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19686 (exit $ac_status); }; }; then
19687 ac_header_compiler=yes
19688else
19689 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019690sed 's/^/| /' conftest.$ac_ext >&5
19691
John Criswell7a73b802003-06-30 21:59:07 +000019692ac_header_compiler=no
19693fi
Reid Spencer2b51a082004-08-04 00:34:49 +000019694rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000019695echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19696echo "${ECHO_T}$ac_header_compiler" >&6
19697
19698# Is the header present?
19699echo "$as_me:$LINENO: checking $ac_header presence" >&5
19700echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19701cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000019702/* confdefs.h. */
19703_ACEOF
19704cat confdefs.h >>conftest.$ac_ext
19705cat >>conftest.$ac_ext <<_ACEOF
19706/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019707#include <$ac_header>
19708_ACEOF
19709if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19710 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19711 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000019712 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000019713 rm -f conftest.er1
19714 cat conftest.err >&5
19715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19716 (exit $ac_status); } >/dev/null; then
19717 if test -s conftest.err; then
19718 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2b51a082004-08-04 00:34:49 +000019719 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +000019720 else
19721 ac_cpp_err=
19722 fi
19723else
19724 ac_cpp_err=yes
19725fi
19726if test -z "$ac_cpp_err"; then
19727 ac_header_preproc=yes
19728else
19729 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019730sed 's/^/| /' conftest.$ac_ext >&5
19731
John Criswell7a73b802003-06-30 21:59:07 +000019732 ac_header_preproc=no
19733fi
19734rm -f conftest.err conftest.$ac_ext
19735echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19736echo "${ECHO_T}$ac_header_preproc" >&6
19737
19738# So? What about this header?
Reid Spencer2b51a082004-08-04 00:34:49 +000019739case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19740 yes:no: )
John Criswell7a73b802003-06-30 21:59:07 +000019741 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19742echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2b51a082004-08-04 00:34:49 +000019743 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19744echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19745 ac_header_preproc=yes
John Criswell0c38eaf2003-09-10 15:17:25 +000019746 ;;
Reid Spencer2b51a082004-08-04 00:34:49 +000019747 no:yes:* )
John Criswell7a73b802003-06-30 21:59:07 +000019748 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19749echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2b51a082004-08-04 00:34:49 +000019750 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19751echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19752 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19753echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19754 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19755echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000019756 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019757echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2b51a082004-08-04 00:34:49 +000019758 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19759echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
John Criswell0c38eaf2003-09-10 15:17:25 +000019760 (
19761 cat <<\_ASBOX
Reid Spencer2b51a082004-08-04 00:34:49 +000019762## ----------------------------------- ##
19763## Report this to llvmbugs@cs.uiuc.edu ##
19764## ----------------------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +000019765_ASBOX
19766 ) |
19767 sed "s/^/$as_me: WARNING: /" >&2
19768 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019769esac
19770echo "$as_me:$LINENO: checking for $ac_header" >&5
19771echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19772if eval "test \"\${$as_ac_Header+set}\" = set"; then
19773 echo $ECHO_N "(cached) $ECHO_C" >&6
19774else
Reid Spencer2b51a082004-08-04 00:34:49 +000019775 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +000019776fi
19777echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19778echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19779
19780fi
19781if test `eval echo '${'$as_ac_Header'}'` = yes; then
19782 cat >>confdefs.h <<_ACEOF
19783#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19784_ACEOF
19785
19786fi
19787
19788done
19789
19790
Brian Gaeke6c3fd812004-02-23 22:07:00 +000019791if test "${ac_cv_header_sys_types_h+set}" = set; then
19792 echo "$as_me:$LINENO: checking for sys/types.h" >&5
19793echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
19794if test "${ac_cv_header_sys_types_h+set}" = set; then
19795 echo $ECHO_N "(cached) $ECHO_C" >&6
19796fi
19797echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
19798echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
19799else
19800 # Is the header compilable?
19801echo "$as_me:$LINENO: checking sys/types.h usability" >&5
19802echo $ECHO_N "checking sys/types.h usability... $ECHO_C" >&6
19803cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000019804/* confdefs.h. */
19805_ACEOF
19806cat confdefs.h >>conftest.$ac_ext
19807cat >>conftest.$ac_ext <<_ACEOF
19808/* end confdefs.h. */
19809$ac_includes_default
19810#include <sys/types.h>
19811_ACEOF
19812rm -f conftest.$ac_objext
19813if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000019814 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000019815 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000019816 grep -v '^ *+' conftest.er1 >conftest.err
19817 rm -f conftest.er1
19818 cat conftest.err >&5
Brian Gaeke6c3fd812004-02-23 22:07:00 +000019819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19820 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000019821 { ac_try='test -z "$ac_c_werror_flag"
19822 || test ! -s conftest.err'
19823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19824 (eval $ac_try) 2>&5
19825 ac_status=$?
19826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19827 (exit $ac_status); }; } &&
19828 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6c3fd812004-02-23 22:07:00 +000019829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19830 (eval $ac_try) 2>&5
19831 ac_status=$?
19832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19833 (exit $ac_status); }; }; then
19834 ac_header_compiler=yes
19835else
19836 echo "$as_me: failed program was:" >&5
19837sed 's/^/| /' conftest.$ac_ext >&5
19838
19839ac_header_compiler=no
19840fi
Reid Spencer2b51a082004-08-04 00:34:49 +000019841rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke6c3fd812004-02-23 22:07:00 +000019842echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19843echo "${ECHO_T}$ac_header_compiler" >&6
19844
19845# Is the header present?
19846echo "$as_me:$LINENO: checking sys/types.h presence" >&5
19847echo $ECHO_N "checking sys/types.h presence... $ECHO_C" >&6
19848cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000019849/* confdefs.h. */
19850_ACEOF
19851cat confdefs.h >>conftest.$ac_ext
19852cat >>conftest.$ac_ext <<_ACEOF
19853/* end confdefs.h. */
19854#include <sys/types.h>
19855_ACEOF
19856if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19857 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19858 ac_status=$?
19859 grep -v '^ *+' conftest.er1 >conftest.err
19860 rm -f conftest.er1
19861 cat conftest.err >&5
19862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19863 (exit $ac_status); } >/dev/null; then
19864 if test -s conftest.err; then
19865 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2b51a082004-08-04 00:34:49 +000019866 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Brian Gaeke6c3fd812004-02-23 22:07:00 +000019867 else
19868 ac_cpp_err=
19869 fi
19870else
19871 ac_cpp_err=yes
19872fi
19873if test -z "$ac_cpp_err"; then
19874 ac_header_preproc=yes
19875else
19876 echo "$as_me: failed program was:" >&5
19877sed 's/^/| /' conftest.$ac_ext >&5
19878
19879 ac_header_preproc=no
19880fi
19881rm -f conftest.err conftest.$ac_ext
19882echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19883echo "${ECHO_T}$ac_header_preproc" >&6
19884
19885# So? What about this header?
Reid Spencer2b51a082004-08-04 00:34:49 +000019886case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19887 yes:no: )
Brian Gaeke6c3fd812004-02-23 22:07:00 +000019888 { echo "$as_me:$LINENO: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&5
19889echo "$as_me: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2b51a082004-08-04 00:34:49 +000019890 { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the compiler's result" >&5
19891echo "$as_me: WARNING: sys/types.h: proceeding with the compiler's result" >&2;}
19892 ac_header_preproc=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000019893 ;;
Reid Spencer2b51a082004-08-04 00:34:49 +000019894 no:yes:* )
Brian Gaeke6c3fd812004-02-23 22:07:00 +000019895 { echo "$as_me:$LINENO: WARNING: sys/types.h: present but cannot be compiled" >&5
19896echo "$as_me: WARNING: sys/types.h: present but cannot be compiled" >&2;}
Reid Spencer2b51a082004-08-04 00:34:49 +000019897 { echo "$as_me:$LINENO: WARNING: sys/types.h: check for missing prerequisite headers?" >&5
19898echo "$as_me: WARNING: sys/types.h: check for missing prerequisite headers?" >&2;}
19899 { echo "$as_me:$LINENO: WARNING: sys/types.h: see the Autoconf documentation" >&5
19900echo "$as_me: WARNING: sys/types.h: see the Autoconf documentation" >&2;}
19901 { echo "$as_me:$LINENO: WARNING: sys/types.h: section \"Present But Cannot Be Compiled\"" >&5
19902echo "$as_me: WARNING: sys/types.h: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000019903 { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the preprocessor's result" >&5
19904echo "$as_me: WARNING: sys/types.h: proceeding with the preprocessor's result" >&2;}
Reid Spencer2b51a082004-08-04 00:34:49 +000019905 { echo "$as_me:$LINENO: WARNING: sys/types.h: in the future, the compiler will take precedence" >&5
19906echo "$as_me: WARNING: sys/types.h: in the future, the compiler will take precedence" >&2;}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000019907 (
19908 cat <<\_ASBOX
Reid Spencer2b51a082004-08-04 00:34:49 +000019909## ----------------------------------- ##
19910## Report this to llvmbugs@cs.uiuc.edu ##
19911## ----------------------------------- ##
Brian Gaeke6c3fd812004-02-23 22:07:00 +000019912_ASBOX
19913 ) |
19914 sed "s/^/$as_me: WARNING: /" >&2
19915 ;;
19916esac
19917echo "$as_me:$LINENO: checking for sys/types.h" >&5
19918echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
19919if test "${ac_cv_header_sys_types_h+set}" = set; then
19920 echo $ECHO_N "(cached) $ECHO_C" >&6
19921else
19922 ac_cv_header_sys_types_h=$ac_header_preproc
19923fi
19924echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
19925echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
19926
19927fi
19928if test $ac_cv_header_sys_types_h = yes; then
19929 INCLUDE_SYS_TYPES_H='#include <sys/types.h>'
19930else
19931 INCLUDE_SYS_TYPES_H=''
19932fi
19933
19934
19935
19936if test "${ac_cv_header_inttypes_h+set}" = set; then
19937 echo "$as_me:$LINENO: checking for inttypes.h" >&5
19938echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
19939if test "${ac_cv_header_inttypes_h+set}" = set; then
19940 echo $ECHO_N "(cached) $ECHO_C" >&6
19941fi
19942echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
19943echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6
19944else
19945 # Is the header compilable?
19946echo "$as_me:$LINENO: checking inttypes.h usability" >&5
19947echo $ECHO_N "checking inttypes.h usability... $ECHO_C" >&6
19948cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000019949/* confdefs.h. */
19950_ACEOF
19951cat confdefs.h >>conftest.$ac_ext
19952cat >>conftest.$ac_ext <<_ACEOF
19953/* end confdefs.h. */
19954$ac_includes_default
19955#include <inttypes.h>
19956_ACEOF
19957rm -f conftest.$ac_objext
19958if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000019959 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000019960 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000019961 grep -v '^ *+' conftest.er1 >conftest.err
19962 rm -f conftest.er1
19963 cat conftest.err >&5
Brian Gaeke6c3fd812004-02-23 22:07:00 +000019964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19965 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000019966 { ac_try='test -z "$ac_c_werror_flag"
19967 || test ! -s conftest.err'
19968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19969 (eval $ac_try) 2>&5
19970 ac_status=$?
19971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19972 (exit $ac_status); }; } &&
19973 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6c3fd812004-02-23 22:07:00 +000019974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19975 (eval $ac_try) 2>&5
19976 ac_status=$?
19977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19978 (exit $ac_status); }; }; then
19979 ac_header_compiler=yes
19980else
19981 echo "$as_me: failed program was:" >&5
19982sed 's/^/| /' conftest.$ac_ext >&5
19983
19984ac_header_compiler=no
19985fi
Reid Spencer2b51a082004-08-04 00:34:49 +000019986rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke6c3fd812004-02-23 22:07:00 +000019987echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19988echo "${ECHO_T}$ac_header_compiler" >&6
19989
19990# Is the header present?
19991echo "$as_me:$LINENO: checking inttypes.h presence" >&5
19992echo $ECHO_N "checking inttypes.h presence... $ECHO_C" >&6
19993cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000019994/* confdefs.h. */
19995_ACEOF
19996cat confdefs.h >>conftest.$ac_ext
19997cat >>conftest.$ac_ext <<_ACEOF
19998/* end confdefs.h. */
19999#include <inttypes.h>
20000_ACEOF
20001if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20002 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20003 ac_status=$?
20004 grep -v '^ *+' conftest.er1 >conftest.err
20005 rm -f conftest.er1
20006 cat conftest.err >&5
20007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20008 (exit $ac_status); } >/dev/null; then
20009 if test -s conftest.err; then
20010 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2b51a082004-08-04 00:34:49 +000020011 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Brian Gaeke6c3fd812004-02-23 22:07:00 +000020012 else
20013 ac_cpp_err=
20014 fi
20015else
20016 ac_cpp_err=yes
20017fi
20018if test -z "$ac_cpp_err"; then
20019 ac_header_preproc=yes
20020else
20021 echo "$as_me: failed program was:" >&5
20022sed 's/^/| /' conftest.$ac_ext >&5
20023
20024 ac_header_preproc=no
20025fi
20026rm -f conftest.err conftest.$ac_ext
20027echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20028echo "${ECHO_T}$ac_header_preproc" >&6
20029
20030# So? What about this header?
Reid Spencer2b51a082004-08-04 00:34:49 +000020031case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20032 yes:no: )
Brian Gaeke6c3fd812004-02-23 22:07:00 +000020033 { echo "$as_me:$LINENO: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&5
20034echo "$as_me: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2b51a082004-08-04 00:34:49 +000020035 { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the compiler's result" >&5
20036echo "$as_me: WARNING: inttypes.h: proceeding with the compiler's result" >&2;}
20037 ac_header_preproc=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000020038 ;;
Reid Spencer2b51a082004-08-04 00:34:49 +000020039 no:yes:* )
Brian Gaeke6c3fd812004-02-23 22:07:00 +000020040 { echo "$as_me:$LINENO: WARNING: inttypes.h: present but cannot be compiled" >&5
20041echo "$as_me: WARNING: inttypes.h: present but cannot be compiled" >&2;}
Reid Spencer2b51a082004-08-04 00:34:49 +000020042 { echo "$as_me:$LINENO: WARNING: inttypes.h: check for missing prerequisite headers?" >&5
20043echo "$as_me: WARNING: inttypes.h: check for missing prerequisite headers?" >&2;}
20044 { echo "$as_me:$LINENO: WARNING: inttypes.h: see the Autoconf documentation" >&5
20045echo "$as_me: WARNING: inttypes.h: see the Autoconf documentation" >&2;}
20046 { echo "$as_me:$LINENO: WARNING: inttypes.h: section \"Present But Cannot Be Compiled\"" >&5
20047echo "$as_me: WARNING: inttypes.h: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000020048 { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the preprocessor's result" >&5
20049echo "$as_me: WARNING: inttypes.h: proceeding with the preprocessor's result" >&2;}
Reid Spencer2b51a082004-08-04 00:34:49 +000020050 { echo "$as_me:$LINENO: WARNING: inttypes.h: in the future, the compiler will take precedence" >&5
20051echo "$as_me: WARNING: inttypes.h: in the future, the compiler will take precedence" >&2;}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000020052 (
20053 cat <<\_ASBOX
Reid Spencer2b51a082004-08-04 00:34:49 +000020054## ----------------------------------- ##
20055## Report this to llvmbugs@cs.uiuc.edu ##
20056## ----------------------------------- ##
Brian Gaeke6c3fd812004-02-23 22:07:00 +000020057_ASBOX
20058 ) |
20059 sed "s/^/$as_me: WARNING: /" >&2
20060 ;;
20061esac
20062echo "$as_me:$LINENO: checking for inttypes.h" >&5
20063echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
20064if test "${ac_cv_header_inttypes_h+set}" = set; then
20065 echo $ECHO_N "(cached) $ECHO_C" >&6
20066else
20067 ac_cv_header_inttypes_h=$ac_header_preproc
20068fi
20069echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
20070echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6
20071
20072fi
20073if test $ac_cv_header_inttypes_h = yes; then
20074 INCLUDE_INTTYPES_H='#include <inttypes.h>'
20075else
20076 INCLUDE_INTTYPES_H=''
20077fi
20078
20079
20080
John Criswell7ed43ad2004-07-19 16:12:29 +000020081if test "${ac_cv_header_stdint_h+set}" = set; then
20082 echo "$as_me:$LINENO: checking for stdint.h" >&5
20083echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
20084if test "${ac_cv_header_stdint_h+set}" = set; then
20085 echo $ECHO_N "(cached) $ECHO_C" >&6
20086fi
20087echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
20088echo "${ECHO_T}$ac_cv_header_stdint_h" >&6
20089else
20090 # Is the header compilable?
20091echo "$as_me:$LINENO: checking stdint.h usability" >&5
20092echo $ECHO_N "checking stdint.h usability... $ECHO_C" >&6
20093cat >conftest.$ac_ext <<_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000020094/* confdefs.h. */
20095_ACEOF
20096cat confdefs.h >>conftest.$ac_ext
20097cat >>conftest.$ac_ext <<_ACEOF
20098/* end confdefs.h. */
20099$ac_includes_default
20100#include <stdint.h>
20101_ACEOF
20102rm -f conftest.$ac_objext
20103if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000020104 (eval $ac_compile) 2>conftest.er1
John Criswell7ed43ad2004-07-19 16:12:29 +000020105 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000020106 grep -v '^ *+' conftest.er1 >conftest.err
20107 rm -f conftest.er1
20108 cat conftest.err >&5
John Criswell7ed43ad2004-07-19 16:12:29 +000020109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20110 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000020111 { ac_try='test -z "$ac_c_werror_flag"
20112 || test ! -s conftest.err'
20113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20114 (eval $ac_try) 2>&5
20115 ac_status=$?
20116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20117 (exit $ac_status); }; } &&
20118 { ac_try='test -s conftest.$ac_objext'
John Criswell7ed43ad2004-07-19 16:12:29 +000020119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20120 (eval $ac_try) 2>&5
20121 ac_status=$?
20122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20123 (exit $ac_status); }; }; then
20124 ac_header_compiler=yes
20125else
20126 echo "$as_me: failed program was:" >&5
20127sed 's/^/| /' conftest.$ac_ext >&5
20128
20129ac_header_compiler=no
20130fi
Reid Spencer2b51a082004-08-04 00:34:49 +000020131rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7ed43ad2004-07-19 16:12:29 +000020132echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20133echo "${ECHO_T}$ac_header_compiler" >&6
20134
20135# Is the header present?
20136echo "$as_me:$LINENO: checking stdint.h presence" >&5
20137echo $ECHO_N "checking stdint.h presence... $ECHO_C" >&6
20138cat >conftest.$ac_ext <<_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000020139/* confdefs.h. */
20140_ACEOF
20141cat confdefs.h >>conftest.$ac_ext
20142cat >>conftest.$ac_ext <<_ACEOF
20143/* end confdefs.h. */
20144#include <stdint.h>
20145_ACEOF
20146if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20147 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20148 ac_status=$?
20149 grep -v '^ *+' conftest.er1 >conftest.err
20150 rm -f conftest.er1
20151 cat conftest.err >&5
20152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20153 (exit $ac_status); } >/dev/null; then
20154 if test -s conftest.err; then
20155 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2b51a082004-08-04 00:34:49 +000020156 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
John Criswell7ed43ad2004-07-19 16:12:29 +000020157 else
20158 ac_cpp_err=
20159 fi
20160else
20161 ac_cpp_err=yes
20162fi
20163if test -z "$ac_cpp_err"; then
20164 ac_header_preproc=yes
20165else
20166 echo "$as_me: failed program was:" >&5
20167sed 's/^/| /' conftest.$ac_ext >&5
20168
20169 ac_header_preproc=no
20170fi
20171rm -f conftest.err conftest.$ac_ext
20172echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20173echo "${ECHO_T}$ac_header_preproc" >&6
20174
20175# So? What about this header?
Reid Spencer2b51a082004-08-04 00:34:49 +000020176case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20177 yes:no: )
John Criswell7ed43ad2004-07-19 16:12:29 +000020178 { echo "$as_me:$LINENO: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&5
20179echo "$as_me: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2b51a082004-08-04 00:34:49 +000020180 { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the compiler's result" >&5
20181echo "$as_me: WARNING: stdint.h: proceeding with the compiler's result" >&2;}
20182 ac_header_preproc=yes
John Criswell7ed43ad2004-07-19 16:12:29 +000020183 ;;
Reid Spencer2b51a082004-08-04 00:34:49 +000020184 no:yes:* )
John Criswell7ed43ad2004-07-19 16:12:29 +000020185 { echo "$as_me:$LINENO: WARNING: stdint.h: present but cannot be compiled" >&5
20186echo "$as_me: WARNING: stdint.h: present but cannot be compiled" >&2;}
Reid Spencer2b51a082004-08-04 00:34:49 +000020187 { echo "$as_me:$LINENO: WARNING: stdint.h: check for missing prerequisite headers?" >&5
20188echo "$as_me: WARNING: stdint.h: check for missing prerequisite headers?" >&2;}
20189 { echo "$as_me:$LINENO: WARNING: stdint.h: see the Autoconf documentation" >&5
20190echo "$as_me: WARNING: stdint.h: see the Autoconf documentation" >&2;}
20191 { echo "$as_me:$LINENO: WARNING: stdint.h: section \"Present But Cannot Be Compiled\"" >&5
20192echo "$as_me: WARNING: stdint.h: section \"Present But Cannot Be Compiled\"" >&2;}
John Criswell7ed43ad2004-07-19 16:12:29 +000020193 { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the preprocessor's result" >&5
20194echo "$as_me: WARNING: stdint.h: proceeding with the preprocessor's result" >&2;}
Reid Spencer2b51a082004-08-04 00:34:49 +000020195 { echo "$as_me:$LINENO: WARNING: stdint.h: in the future, the compiler will take precedence" >&5
20196echo "$as_me: WARNING: stdint.h: in the future, the compiler will take precedence" >&2;}
John Criswell7ed43ad2004-07-19 16:12:29 +000020197 (
20198 cat <<\_ASBOX
Reid Spencer2b51a082004-08-04 00:34:49 +000020199## ----------------------------------- ##
20200## Report this to llvmbugs@cs.uiuc.edu ##
20201## ----------------------------------- ##
John Criswell7ed43ad2004-07-19 16:12:29 +000020202_ASBOX
20203 ) |
20204 sed "s/^/$as_me: WARNING: /" >&2
20205 ;;
20206esac
20207echo "$as_me:$LINENO: checking for stdint.h" >&5
20208echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
20209if test "${ac_cv_header_stdint_h+set}" = set; then
20210 echo $ECHO_N "(cached) $ECHO_C" >&6
20211else
20212 ac_cv_header_stdint_h=$ac_header_preproc
20213fi
20214echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
20215echo "${ECHO_T}$ac_cv_header_stdint_h" >&6
20216
20217fi
20218if test $ac_cv_header_stdint_h = yes; then
20219 INCLUDE_STDINT_H='#include <stdint.h>'
20220else
20221 INCLUDE_STDINT_H=''
20222fi
20223
20224
20225
20226
Brian Gaeke6c3fd812004-02-23 22:07:00 +000020227
John Criswell7a73b802003-06-30 21:59:07 +000020228echo "$as_me:$LINENO: checking for pid_t" >&5
20229echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
20230if test "${ac_cv_type_pid_t+set}" = set; then
20231 echo $ECHO_N "(cached) $ECHO_C" >&6
20232else
20233 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000020234/* confdefs.h. */
20235_ACEOF
20236cat confdefs.h >>conftest.$ac_ext
20237cat >>conftest.$ac_ext <<_ACEOF
20238/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020239$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000020240int
20241main ()
20242{
20243if ((pid_t *) 0)
20244 return 0;
20245if (sizeof (pid_t))
20246 return 0;
20247 ;
20248 return 0;
20249}
20250_ACEOF
20251rm -f conftest.$ac_objext
20252if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000020253 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000020254 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000020255 grep -v '^ *+' conftest.er1 >conftest.err
20256 rm -f conftest.er1
20257 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000020258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20259 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000020260 { ac_try='test -z "$ac_c_werror_flag"
20261 || test ! -s conftest.err'
20262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20263 (eval $ac_try) 2>&5
20264 ac_status=$?
20265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20266 (exit $ac_status); }; } &&
20267 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000020268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20269 (eval $ac_try) 2>&5
20270 ac_status=$?
20271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20272 (exit $ac_status); }; }; then
20273 ac_cv_type_pid_t=yes
20274else
20275 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020276sed 's/^/| /' conftest.$ac_ext >&5
20277
John Criswell7a73b802003-06-30 21:59:07 +000020278ac_cv_type_pid_t=no
20279fi
Reid Spencer2b51a082004-08-04 00:34:49 +000020280rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000020281fi
20282echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
20283echo "${ECHO_T}$ac_cv_type_pid_t" >&6
20284if test $ac_cv_type_pid_t = yes; then
20285 :
20286else
20287
20288cat >>confdefs.h <<_ACEOF
20289#define pid_t int
20290_ACEOF
20291
20292fi
20293
20294echo "$as_me:$LINENO: checking for size_t" >&5
20295echo $ECHO_N "checking for size_t... $ECHO_C" >&6
20296if test "${ac_cv_type_size_t+set}" = set; then
20297 echo $ECHO_N "(cached) $ECHO_C" >&6
20298else
20299 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000020300/* confdefs.h. */
20301_ACEOF
20302cat confdefs.h >>conftest.$ac_ext
20303cat >>conftest.$ac_ext <<_ACEOF
20304/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020305$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000020306int
20307main ()
20308{
20309if ((size_t *) 0)
20310 return 0;
20311if (sizeof (size_t))
20312 return 0;
20313 ;
20314 return 0;
20315}
20316_ACEOF
20317rm -f conftest.$ac_objext
20318if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000020319 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000020320 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000020321 grep -v '^ *+' conftest.er1 >conftest.err
20322 rm -f conftest.er1
20323 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000020324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20325 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000020326 { ac_try='test -z "$ac_c_werror_flag"
20327 || test ! -s conftest.err'
20328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20329 (eval $ac_try) 2>&5
20330 ac_status=$?
20331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20332 (exit $ac_status); }; } &&
20333 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000020334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20335 (eval $ac_try) 2>&5
20336 ac_status=$?
20337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20338 (exit $ac_status); }; }; then
20339 ac_cv_type_size_t=yes
20340else
20341 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020342sed 's/^/| /' conftest.$ac_ext >&5
20343
John Criswell7a73b802003-06-30 21:59:07 +000020344ac_cv_type_size_t=no
20345fi
Reid Spencer2b51a082004-08-04 00:34:49 +000020346rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000020347fi
20348echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20349echo "${ECHO_T}$ac_cv_type_size_t" >&6
20350if test $ac_cv_type_size_t = yes; then
20351 :
20352else
20353
20354cat >>confdefs.h <<_ACEOF
20355#define size_t unsigned
20356_ACEOF
20357
20358fi
20359
20360echo "$as_me:$LINENO: checking for int64_t" >&5
20361echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
20362if test "${ac_cv_type_int64_t+set}" = set; then
20363 echo $ECHO_N "(cached) $ECHO_C" >&6
20364else
20365 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000020366/* confdefs.h. */
20367_ACEOF
20368cat confdefs.h >>conftest.$ac_ext
20369cat >>conftest.$ac_ext <<_ACEOF
20370/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020371$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000020372int
20373main ()
20374{
20375if ((int64_t *) 0)
20376 return 0;
20377if (sizeof (int64_t))
20378 return 0;
20379 ;
20380 return 0;
20381}
20382_ACEOF
20383rm -f conftest.$ac_objext
20384if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000020385 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000020386 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000020387 grep -v '^ *+' conftest.er1 >conftest.err
20388 rm -f conftest.er1
20389 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000020390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20391 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000020392 { ac_try='test -z "$ac_c_werror_flag"
20393 || test ! -s conftest.err'
20394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20395 (eval $ac_try) 2>&5
20396 ac_status=$?
20397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20398 (exit $ac_status); }; } &&
20399 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000020400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20401 (eval $ac_try) 2>&5
20402 ac_status=$?
20403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20404 (exit $ac_status); }; }; then
20405 ac_cv_type_int64_t=yes
20406else
20407 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020408sed 's/^/| /' conftest.$ac_ext >&5
20409
John Criswell7a73b802003-06-30 21:59:07 +000020410ac_cv_type_int64_t=no
20411fi
Reid Spencer2b51a082004-08-04 00:34:49 +000020412rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000020413fi
20414echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
20415echo "${ECHO_T}$ac_cv_type_int64_t" >&6
20416if test $ac_cv_type_int64_t = yes; then
20417
20418cat >>confdefs.h <<_ACEOF
20419#define HAVE_INT64_T 1
20420_ACEOF
20421
20422
20423else
20424 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
20425echo "$as_me: error: Type int64_t required but not found" >&2;}
20426 { (exit 1); exit 1; }; }
20427fi
20428
20429echo "$as_me:$LINENO: checking for uint64_t" >&5
20430echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
20431if test "${ac_cv_type_uint64_t+set}" = set; then
20432 echo $ECHO_N "(cached) $ECHO_C" >&6
20433else
20434 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000020435/* confdefs.h. */
20436_ACEOF
20437cat confdefs.h >>conftest.$ac_ext
20438cat >>conftest.$ac_ext <<_ACEOF
20439/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020440$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000020441int
20442main ()
20443{
20444if ((uint64_t *) 0)
20445 return 0;
20446if (sizeof (uint64_t))
20447 return 0;
20448 ;
20449 return 0;
20450}
20451_ACEOF
20452rm -f conftest.$ac_objext
20453if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000020454 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000020455 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000020456 grep -v '^ *+' conftest.er1 >conftest.err
20457 rm -f conftest.er1
20458 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000020459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20460 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000020461 { ac_try='test -z "$ac_c_werror_flag"
20462 || test ! -s conftest.err'
20463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20464 (eval $ac_try) 2>&5
20465 ac_status=$?
20466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20467 (exit $ac_status); }; } &&
20468 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000020469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20470 (eval $ac_try) 2>&5
20471 ac_status=$?
20472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20473 (exit $ac_status); }; }; then
20474 ac_cv_type_uint64_t=yes
20475else
20476 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020477sed 's/^/| /' conftest.$ac_ext >&5
20478
John Criswell7a73b802003-06-30 21:59:07 +000020479ac_cv_type_uint64_t=no
20480fi
Reid Spencer2b51a082004-08-04 00:34:49 +000020481rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000020482fi
20483echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
20484echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
20485if test $ac_cv_type_uint64_t = yes; then
20486
20487cat >>confdefs.h <<_ACEOF
20488#define HAVE_UINT64_T 1
20489_ACEOF
20490
20491
20492else
20493 { { echo "$as_me:$LINENO: error: Type uint64_t required but not found" >&5
20494echo "$as_me: error: Type uint64_t required but not found" >&2;}
20495 { (exit 1); exit 1; }; }
20496fi
20497
20498echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20499echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
20500if test "${ac_cv_header_time+set}" = set; then
20501 echo $ECHO_N "(cached) $ECHO_C" >&6
20502else
20503 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000020504/* confdefs.h. */
20505_ACEOF
20506cat confdefs.h >>conftest.$ac_ext
20507cat >>conftest.$ac_ext <<_ACEOF
20508/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020509#include <sys/types.h>
20510#include <sys/time.h>
20511#include <time.h>
20512
John Criswell7a73b802003-06-30 21:59:07 +000020513int
20514main ()
20515{
20516if ((struct tm *) 0)
20517return 0;
20518 ;
20519 return 0;
20520}
20521_ACEOF
20522rm -f conftest.$ac_objext
20523if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000020524 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000020525 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000020526 grep -v '^ *+' conftest.er1 >conftest.err
20527 rm -f conftest.er1
20528 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000020529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20530 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000020531 { ac_try='test -z "$ac_c_werror_flag"
20532 || test ! -s conftest.err'
20533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20534 (eval $ac_try) 2>&5
20535 ac_status=$?
20536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20537 (exit $ac_status); }; } &&
20538 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000020539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20540 (eval $ac_try) 2>&5
20541 ac_status=$?
20542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20543 (exit $ac_status); }; }; then
20544 ac_cv_header_time=yes
20545else
20546 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020547sed 's/^/| /' conftest.$ac_ext >&5
20548
John Criswell7a73b802003-06-30 21:59:07 +000020549ac_cv_header_time=no
20550fi
Reid Spencer2b51a082004-08-04 00:34:49 +000020551rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000020552fi
20553echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20554echo "${ECHO_T}$ac_cv_header_time" >&6
20555if test $ac_cv_header_time = yes; then
20556
20557cat >>confdefs.h <<\_ACEOF
20558#define TIME_WITH_SYS_TIME 1
20559_ACEOF
20560
20561fi
20562
20563echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20564echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
20565if test "${ac_cv_struct_tm+set}" = set; then
20566 echo $ECHO_N "(cached) $ECHO_C" >&6
20567else
20568 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000020569/* confdefs.h. */
20570_ACEOF
20571cat confdefs.h >>conftest.$ac_ext
20572cat >>conftest.$ac_ext <<_ACEOF
20573/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020574#include <sys/types.h>
20575#include <time.h>
20576
John Criswell7a73b802003-06-30 21:59:07 +000020577int
20578main ()
20579{
20580struct tm *tp; tp->tm_sec;
20581 ;
20582 return 0;
20583}
20584_ACEOF
20585rm -f conftest.$ac_objext
20586if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000020587 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000020588 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000020589 grep -v '^ *+' conftest.er1 >conftest.err
20590 rm -f conftest.er1
20591 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000020592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20593 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000020594 { ac_try='test -z "$ac_c_werror_flag"
20595 || test ! -s conftest.err'
20596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20597 (eval $ac_try) 2>&5
20598 ac_status=$?
20599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20600 (exit $ac_status); }; } &&
20601 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000020602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20603 (eval $ac_try) 2>&5
20604 ac_status=$?
20605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20606 (exit $ac_status); }; }; then
20607 ac_cv_struct_tm=time.h
20608else
20609 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020610sed 's/^/| /' conftest.$ac_ext >&5
20611
John Criswell7a73b802003-06-30 21:59:07 +000020612ac_cv_struct_tm=sys/time.h
20613fi
Reid Spencer2b51a082004-08-04 00:34:49 +000020614rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000020615fi
20616echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
20617echo "${ECHO_T}$ac_cv_struct_tm" >&6
20618if test $ac_cv_struct_tm = sys/time.h; then
20619
20620cat >>confdefs.h <<\_ACEOF
20621#define TM_IN_SYS_TIME 1
20622_ACEOF
20623
20624fi
20625
20626
John Criswella0137d32003-10-13 16:22:01 +000020627
Brian Gaekeadfe28d2004-07-21 03:50:25 +000020628 echo "$as_me:$LINENO: checking for printf %a format specifier" >&5
20629echo $ECHO_N "checking for printf %a format specifier... $ECHO_C" >&6
John Criswella0137d32003-10-13 16:22:01 +000020630
20631
20632 ac_ext=c
20633ac_cpp='$CPP $CPPFLAGS'
20634ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20635ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20636ac_compiler_gnu=$ac_cv_c_compiler_gnu
20637
20638 if test "$cross_compiling" = yes; then
20639 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20640See \`config.log' for more details." >&5
20641echo "$as_me: error: cannot run test program while cross compiling
20642See \`config.log' for more details." >&2;}
20643 { (exit 1); exit 1; }; }
20644else
20645 cat >conftest.$ac_ext <<_ACEOF
John Criswella0137d32003-10-13 16:22:01 +000020646/* confdefs.h. */
20647_ACEOF
20648cat confdefs.h >>conftest.$ac_ext
20649cat >>conftest.$ac_ext <<_ACEOF
20650/* end confdefs.h. */
20651#include <stdio.h>
20652 #include <stdlib.h>
20653int
20654main ()
20655{
20656
20657 volatile double A, B;
20658 char Buffer[100];
20659 A = 1;
20660 A /= 10.0;
20661 sprintf(Buffer, "%a", A);
20662 B = atof(Buffer);
20663 if (A != B)
20664 return (1);
20665 if (A != 0x1.999999999999ap-4)
20666 return (1);
20667 return (0);
20668 ;
20669 return 0;
20670}
20671_ACEOF
20672rm -f conftest$ac_exeext
20673if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20674 (eval $ac_link) 2>&5
20675 ac_status=$?
20676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20677 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20679 (eval $ac_try) 2>&5
20680 ac_status=$?
20681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20682 (exit $ac_status); }; }; then
20683 ac_c_printf_a=yes
20684else
20685 echo "$as_me: program exited with status $ac_status" >&5
20686echo "$as_me: failed program was:" >&5
20687sed 's/^/| /' conftest.$ac_ext >&5
20688
20689( exit $ac_status )
20690ac_c_printf_a=no
20691fi
Reid Spencer2b51a082004-08-04 00:34:49 +000020692rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswella0137d32003-10-13 16:22:01 +000020693fi
20694 ac_ext=c
20695ac_cpp='$CPP $CPPFLAGS'
20696ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20697ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20698ac_compiler_gnu=$ac_cv_c_compiler_gnu
20699
Brian Gaekeadfe28d2004-07-21 03:50:25 +000020700 echo "$as_me:$LINENO: result: $ac_c_printf_a" >&5
20701echo "${ECHO_T}$ac_c_printf_a" >&6
John Criswella0137d32003-10-13 16:22:01 +000020702 if test "$ac_c_printf_a" = "yes"; then
20703
20704cat >>confdefs.h <<\_ACEOF
20705#define HAVE_PRINTF_A 1
20706_ACEOF
20707
20708 fi
20709
20710
John Criswell0021c312004-02-13 21:57:29 +000020711echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20712echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
20713if test "${ac_cv_c_bigendian+set}" = set; then
20714 echo $ECHO_N "(cached) $ECHO_C" >&6
20715else
20716 # See if sys/param.h defines the BYTE_ORDER macro.
20717cat >conftest.$ac_ext <<_ACEOF
John Criswell0021c312004-02-13 21:57:29 +000020718/* confdefs.h. */
20719_ACEOF
20720cat confdefs.h >>conftest.$ac_ext
20721cat >>conftest.$ac_ext <<_ACEOF
20722/* end confdefs.h. */
20723#include <sys/types.h>
20724#include <sys/param.h>
20725
20726int
20727main ()
20728{
20729#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
20730 bogus endian macros
20731#endif
20732
20733 ;
20734 return 0;
20735}
20736_ACEOF
20737rm -f conftest.$ac_objext
20738if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000020739 (eval $ac_compile) 2>conftest.er1
John Criswell0021c312004-02-13 21:57:29 +000020740 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000020741 grep -v '^ *+' conftest.er1 >conftest.err
20742 rm -f conftest.er1
20743 cat conftest.err >&5
John Criswell0021c312004-02-13 21:57:29 +000020744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20745 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000020746 { ac_try='test -z "$ac_c_werror_flag"
20747 || test ! -s conftest.err'
20748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20749 (eval $ac_try) 2>&5
20750 ac_status=$?
20751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20752 (exit $ac_status); }; } &&
20753 { ac_try='test -s conftest.$ac_objext'
John Criswell0021c312004-02-13 21:57:29 +000020754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20755 (eval $ac_try) 2>&5
20756 ac_status=$?
20757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20758 (exit $ac_status); }; }; then
20759 # It does; now see whether it defined to BIG_ENDIAN or not.
20760cat >conftest.$ac_ext <<_ACEOF
John Criswell0021c312004-02-13 21:57:29 +000020761/* confdefs.h. */
20762_ACEOF
20763cat confdefs.h >>conftest.$ac_ext
20764cat >>conftest.$ac_ext <<_ACEOF
20765/* end confdefs.h. */
20766#include <sys/types.h>
20767#include <sys/param.h>
20768
20769int
20770main ()
20771{
20772#if BYTE_ORDER != BIG_ENDIAN
20773 not big endian
20774#endif
20775
20776 ;
20777 return 0;
20778}
20779_ACEOF
20780rm -f conftest.$ac_objext
20781if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000020782 (eval $ac_compile) 2>conftest.er1
John Criswell0021c312004-02-13 21:57:29 +000020783 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000020784 grep -v '^ *+' conftest.er1 >conftest.err
20785 rm -f conftest.er1
20786 cat conftest.err >&5
John Criswell0021c312004-02-13 21:57:29 +000020787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20788 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000020789 { ac_try='test -z "$ac_c_werror_flag"
20790 || test ! -s conftest.err'
20791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20792 (eval $ac_try) 2>&5
20793 ac_status=$?
20794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20795 (exit $ac_status); }; } &&
20796 { ac_try='test -s conftest.$ac_objext'
John Criswell0021c312004-02-13 21:57:29 +000020797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20798 (eval $ac_try) 2>&5
20799 ac_status=$?
20800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20801 (exit $ac_status); }; }; then
20802 ac_cv_c_bigendian=yes
20803else
20804 echo "$as_me: failed program was:" >&5
20805sed 's/^/| /' conftest.$ac_ext >&5
20806
20807ac_cv_c_bigendian=no
20808fi
Reid Spencer2b51a082004-08-04 00:34:49 +000020809rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell0021c312004-02-13 21:57:29 +000020810else
20811 echo "$as_me: failed program was:" >&5
20812sed 's/^/| /' conftest.$ac_ext >&5
20813
20814# It does not; compile a test program.
20815if test "$cross_compiling" = yes; then
20816 # try to guess the endianness by grepping values into an object file
20817 ac_cv_c_bigendian=unknown
20818 cat >conftest.$ac_ext <<_ACEOF
John Criswell0021c312004-02-13 21:57:29 +000020819/* confdefs.h. */
20820_ACEOF
20821cat confdefs.h >>conftest.$ac_ext
20822cat >>conftest.$ac_ext <<_ACEOF
20823/* end confdefs.h. */
20824short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20825short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20826void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
20827short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20828short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20829void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
20830int
20831main ()
20832{
20833 _ascii (); _ebcdic ();
20834 ;
20835 return 0;
20836}
20837_ACEOF
20838rm -f conftest.$ac_objext
20839if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000020840 (eval $ac_compile) 2>conftest.er1
John Criswell0021c312004-02-13 21:57:29 +000020841 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000020842 grep -v '^ *+' conftest.er1 >conftest.err
20843 rm -f conftest.er1
20844 cat conftest.err >&5
John Criswell0021c312004-02-13 21:57:29 +000020845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20846 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000020847 { ac_try='test -z "$ac_c_werror_flag"
20848 || test ! -s conftest.err'
20849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20850 (eval $ac_try) 2>&5
20851 ac_status=$?
20852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20853 (exit $ac_status); }; } &&
20854 { ac_try='test -s conftest.$ac_objext'
John Criswell0021c312004-02-13 21:57:29 +000020855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20856 (eval $ac_try) 2>&5
20857 ac_status=$?
20858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20859 (exit $ac_status); }; }; then
20860 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
20861 ac_cv_c_bigendian=yes
20862fi
20863if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
20864 if test "$ac_cv_c_bigendian" = unknown; then
20865 ac_cv_c_bigendian=no
20866 else
20867 # finding both strings is unlikely to happen, but who knows?
20868 ac_cv_c_bigendian=unknown
20869 fi
20870fi
20871else
20872 echo "$as_me: failed program was:" >&5
20873sed 's/^/| /' conftest.$ac_ext >&5
20874
20875fi
Reid Spencer2b51a082004-08-04 00:34:49 +000020876rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell0021c312004-02-13 21:57:29 +000020877else
20878 cat >conftest.$ac_ext <<_ACEOF
John Criswell0021c312004-02-13 21:57:29 +000020879/* confdefs.h. */
20880_ACEOF
20881cat confdefs.h >>conftest.$ac_ext
20882cat >>conftest.$ac_ext <<_ACEOF
20883/* end confdefs.h. */
20884int
20885main ()
20886{
20887 /* Are we little or big endian? From Harbison&Steele. */
20888 union
20889 {
20890 long l;
20891 char c[sizeof (long)];
20892 } u;
20893 u.l = 1;
20894 exit (u.c[sizeof (long) - 1] == 1);
20895}
20896_ACEOF
20897rm -f conftest$ac_exeext
20898if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20899 (eval $ac_link) 2>&5
20900 ac_status=$?
20901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20902 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20904 (eval $ac_try) 2>&5
20905 ac_status=$?
20906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20907 (exit $ac_status); }; }; then
20908 ac_cv_c_bigendian=no
20909else
20910 echo "$as_me: program exited with status $ac_status" >&5
20911echo "$as_me: failed program was:" >&5
20912sed 's/^/| /' conftest.$ac_ext >&5
20913
20914( exit $ac_status )
20915ac_cv_c_bigendian=yes
20916fi
Reid Spencer2b51a082004-08-04 00:34:49 +000020917rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell0021c312004-02-13 21:57:29 +000020918fi
20919fi
Reid Spencer2b51a082004-08-04 00:34:49 +000020920rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell0021c312004-02-13 21:57:29 +000020921fi
20922echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20923echo "${ECHO_T}$ac_cv_c_bigendian" >&6
20924case $ac_cv_c_bigendian in
20925 yes)
20926 ENDIAN=big
20927 ;;
20928 no)
20929 ENDIAN=little
20930 ;;
20931 *)
20932 { { echo "$as_me:$LINENO: error: unknown endianness
20933presetting ac_cv_c_bigendian=no (or yes) will help" >&5
20934echo "$as_me: error: unknown endianness
20935presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
20936 { (exit 1); exit 1; }; } ;;
20937esac
20938
20939
John Criswell7a73b802003-06-30 21:59:07 +000020940echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
20941echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
20942if test "${ac_cv_cxx_namespaces+set}" = set; then
20943 echo $ECHO_N "(cached) $ECHO_C" >&6
20944else
20945
20946
20947 ac_ext=cc
20948ac_cpp='$CXXCPP $CPPFLAGS'
20949ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20950ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20951ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20952
20953 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000020954/* confdefs.h. */
20955_ACEOF
20956cat confdefs.h >>conftest.$ac_ext
20957cat >>conftest.$ac_ext <<_ACEOF
20958/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020959namespace Outer { namespace Inner { int i = 0; }}
John Criswell7a73b802003-06-30 21:59:07 +000020960int
20961main ()
20962{
20963using namespace Outer::Inner; return i;
20964 ;
20965 return 0;
20966}
20967_ACEOF
20968rm -f conftest.$ac_objext
20969if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000020970 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000020971 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000020972 grep -v '^ *+' conftest.er1 >conftest.err
20973 rm -f conftest.er1
20974 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000020975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20976 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000020977 { ac_try='test -z "$ac_cxx_werror_flag"
20978 || test ! -s conftest.err'
20979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20980 (eval $ac_try) 2>&5
20981 ac_status=$?
20982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20983 (exit $ac_status); }; } &&
20984 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000020985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20986 (eval $ac_try) 2>&5
20987 ac_status=$?
20988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20989 (exit $ac_status); }; }; then
20990 ac_cv_cxx_namespaces=yes
20991else
20992 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020993sed 's/^/| /' conftest.$ac_ext >&5
20994
John Criswell7a73b802003-06-30 21:59:07 +000020995ac_cv_cxx_namespaces=no
20996fi
Reid Spencer2b51a082004-08-04 00:34:49 +000020997rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000020998 ac_ext=c
20999ac_cpp='$CPP $CPPFLAGS'
21000ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21001ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21002ac_compiler_gnu=$ac_cv_c_compiler_gnu
21003
21004
21005fi
21006echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
21007echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
21008if test "$ac_cv_cxx_namespaces" = yes; then
21009
21010cat >>confdefs.h <<\_ACEOF
21011#define HAVE_NAMESPACES
21012_ACEOF
21013
21014fi
21015
Brian Gaeke90583492003-11-10 03:06:28 +000021016echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
21017echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
21018if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000021019 echo $ECHO_N "(cached) $ECHO_C" >&6
21020else
21021
21022
21023
21024 ac_ext=cc
21025ac_cpp='$CXXCPP $CPPFLAGS'
21026ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21027ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21028ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21029
21030 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021031/* confdefs.h. */
21032_ACEOF
21033cat confdefs.h >>conftest.$ac_ext
21034cat >>conftest.$ac_ext <<_ACEOF
21035/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021036#include <ext/hash_map>
21037#ifdef HAVE_NAMESPACES
21038using namespace std;
21039#endif
John Criswell7a73b802003-06-30 21:59:07 +000021040int
21041main ()
21042{
Brian Gaeke90583492003-11-10 03:06:28 +000021043hash_map<int, int> t;
John Criswell7a73b802003-06-30 21:59:07 +000021044 ;
21045 return 0;
21046}
21047_ACEOF
21048rm -f conftest.$ac_objext
21049if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000021050 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000021051 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000021052 grep -v '^ *+' conftest.er1 >conftest.err
21053 rm -f conftest.er1
21054 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000021055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21056 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000021057 { ac_try='test -z "$ac_cxx_werror_flag"
21058 || test ! -s conftest.err'
21059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21060 (eval $ac_try) 2>&5
21061 ac_status=$?
21062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21063 (exit $ac_status); }; } &&
21064 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000021065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21066 (eval $ac_try) 2>&5
21067 ac_status=$?
21068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21069 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000021070 ac_cv_cxx_have_std_ext_hash_map=yes
John Criswell7a73b802003-06-30 21:59:07 +000021071else
21072 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021073sed 's/^/| /' conftest.$ac_ext >&5
21074
Brian Gaeke90583492003-11-10 03:06:28 +000021075ac_cv_cxx_have_std_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000021076fi
Reid Spencer2b51a082004-08-04 00:34:49 +000021077rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021078 ac_ext=c
21079ac_cpp='$CPP $CPPFLAGS'
21080ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21081ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21082ac_compiler_gnu=$ac_cv_c_compiler_gnu
21083
John Criswell7a73b802003-06-30 21:59:07 +000021084fi
Brian Gaeke90583492003-11-10 03:06:28 +000021085echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
21086echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000021087 HAVE_STD_EXT_HASH_MAP=0
21088 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
21089 then
21090 HAVE_STD_EXT_HASH_MAP=1
Brian Gaeke90583492003-11-10 03:06:28 +000021091 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000021092
Brian Gaeke90583492003-11-10 03:06:28 +000021093 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
21094echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
21095if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
21096 echo $ECHO_N "(cached) $ECHO_C" >&6
21097else
21098
21099
21100
21101 ac_ext=cc
21102ac_cpp='$CXXCPP $CPPFLAGS'
21103ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21104ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21105ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21106
21107 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000021108/* confdefs.h. */
21109_ACEOF
21110cat confdefs.h >>conftest.$ac_ext
21111cat >>conftest.$ac_ext <<_ACEOF
21112/* end confdefs.h. */
21113#include <ext/hash_map>
21114#ifdef HAVE_NAMESPACES
21115using namespace __gnu_cxx;
21116#endif
21117int
21118main ()
21119{
21120hash_map<int,int> t;
21121 ;
21122 return 0;
21123}
21124_ACEOF
21125rm -f conftest.$ac_objext
21126if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000021127 (eval $ac_compile) 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000021128 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000021129 grep -v '^ *+' conftest.er1 >conftest.err
21130 rm -f conftest.er1
21131 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000021132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21133 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000021134 { ac_try='test -z "$ac_cxx_werror_flag"
21135 || test ! -s conftest.err'
21136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21137 (eval $ac_try) 2>&5
21138 ac_status=$?
21139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21140 (exit $ac_status); }; } &&
21141 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke90583492003-11-10 03:06:28 +000021142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21143 (eval $ac_try) 2>&5
21144 ac_status=$?
21145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21146 (exit $ac_status); }; }; then
21147 ac_cv_cxx_have_gnu_ext_hash_map=yes
21148else
21149 echo "$as_me: failed program was:" >&5
21150sed 's/^/| /' conftest.$ac_ext >&5
21151
21152ac_cv_cxx_have_gnu_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000021153fi
Reid Spencer2b51a082004-08-04 00:34:49 +000021154rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000021155 ac_ext=c
21156ac_cpp='$CPP $CPPFLAGS'
21157ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21158ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21159ac_compiler_gnu=$ac_cv_c_compiler_gnu
21160
21161fi
21162echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
21163echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000021164 HAVE_GNU_EXT_HASH_MAP=0
21165 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
21166 then
21167 HAVE_GNU_EXT_HASH_MAP=1
Brian Gaeke90583492003-11-10 03:06:28 +000021168 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000021169
Brian Gaeke90583492003-11-10 03:06:28 +000021170 echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
21171echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
21172if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
21173 echo $ECHO_N "(cached) $ECHO_C" >&6
21174else
John Criswell7a73b802003-06-30 21:59:07 +000021175
Brian Gaeke90583492003-11-10 03:06:28 +000021176
21177
21178 ac_ext=cc
21179ac_cpp='$CXXCPP $CPPFLAGS'
21180ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21181ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21182ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21183
21184 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000021185/* confdefs.h. */
21186_ACEOF
21187cat confdefs.h >>conftest.$ac_ext
21188cat >>conftest.$ac_ext <<_ACEOF
21189/* end confdefs.h. */
21190#include <hash_map>
21191int
21192main ()
21193{
21194hash_map<int,int> t;
21195 ;
21196 return 0;
21197}
21198_ACEOF
21199rm -f conftest.$ac_objext
21200if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000021201 (eval $ac_compile) 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000021202 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000021203 grep -v '^ *+' conftest.er1 >conftest.err
21204 rm -f conftest.er1
21205 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000021206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21207 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000021208 { ac_try='test -z "$ac_cxx_werror_flag"
21209 || test ! -s conftest.err'
21210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21211 (eval $ac_try) 2>&5
21212 ac_status=$?
21213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21214 (exit $ac_status); }; } &&
21215 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke90583492003-11-10 03:06:28 +000021216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21217 (eval $ac_try) 2>&5
21218 ac_status=$?
21219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21220 (exit $ac_status); }; }; then
21221 ac_cv_cxx_have_global_hash_map=yes
21222else
21223 echo "$as_me: failed program was:" >&5
21224sed 's/^/| /' conftest.$ac_ext >&5
21225
21226ac_cv_cxx_have_global_hash_map=no
21227fi
Reid Spencer2b51a082004-08-04 00:34:49 +000021228rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000021229 ac_ext=c
21230ac_cpp='$CPP $CPPFLAGS'
21231ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21232ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21233ac_compiler_gnu=$ac_cv_c_compiler_gnu
21234
21235fi
21236echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
21237echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000021238 HAVE_GLOBAL_HASH_MAP=0
21239 if test "$ac_cv_cxx_have_global_hash_map" = yes
21240 then
21241 HAVE_GLOBAL_HASH_MAP=1
Brian Gaeke90583492003-11-10 03:06:28 +000021242 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000021243
Brian Gaeke90583492003-11-10 03:06:28 +000021244echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
21245echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
21246if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000021247 echo $ECHO_N "(cached) $ECHO_C" >&6
21248else
21249
21250
21251
21252 ac_ext=cc
21253ac_cpp='$CXXCPP $CPPFLAGS'
21254ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21255ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21256ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21257
21258 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021259/* confdefs.h. */
21260_ACEOF
21261cat confdefs.h >>conftest.$ac_ext
21262cat >>conftest.$ac_ext <<_ACEOF
21263/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021264#include <ext/hash_set>
21265#ifdef HAVE_NAMESPACES
21266using namespace std;
21267#endif
John Criswell7a73b802003-06-30 21:59:07 +000021268int
21269main ()
21270{
Brian Gaeke90583492003-11-10 03:06:28 +000021271hash_set<int> t;
John Criswell7a73b802003-06-30 21:59:07 +000021272 ;
21273 return 0;
21274}
21275_ACEOF
21276rm -f conftest.$ac_objext
21277if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000021278 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000021279 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000021280 grep -v '^ *+' conftest.er1 >conftest.err
21281 rm -f conftest.er1
21282 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000021283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21284 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000021285 { ac_try='test -z "$ac_cxx_werror_flag"
21286 || test ! -s conftest.err'
21287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21288 (eval $ac_try) 2>&5
21289 ac_status=$?
21290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21291 (exit $ac_status); }; } &&
21292 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000021293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21294 (eval $ac_try) 2>&5
21295 ac_status=$?
21296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21297 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000021298 ac_cv_cxx_have_std_ext_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000021299else
21300 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021301sed 's/^/| /' conftest.$ac_ext >&5
21302
Brian Gaeke90583492003-11-10 03:06:28 +000021303ac_cv_cxx_have_std_ext_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000021304fi
Reid Spencer2b51a082004-08-04 00:34:49 +000021305rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000021306 ac_ext=c
21307ac_cpp='$CPP $CPPFLAGS'
21308ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21309ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21310ac_compiler_gnu=$ac_cv_c_compiler_gnu
21311
21312fi
21313echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
21314echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000021315 HAVE_STD_EXT_HASH_SET=0
21316 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
21317 then
21318 HAVE_STD_EXT_HASH_SET=1
Brian Gaeke90583492003-11-10 03:06:28 +000021319 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000021320
Brian Gaeke90583492003-11-10 03:06:28 +000021321 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
21322echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
21323if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
21324 echo $ECHO_N "(cached) $ECHO_C" >&6
21325else
21326
21327
21328
21329 ac_ext=cc
21330ac_cpp='$CXXCPP $CPPFLAGS'
21331ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21332ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21333ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21334
John Criswell7a73b802003-06-30 21:59:07 +000021335 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021336/* confdefs.h. */
21337_ACEOF
21338cat confdefs.h >>conftest.$ac_ext
21339cat >>conftest.$ac_ext <<_ACEOF
21340/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021341#include <ext/hash_set>
21342#ifdef HAVE_NAMESPACES
21343using namespace __gnu_cxx;
21344#endif
John Criswell7a73b802003-06-30 21:59:07 +000021345int
21346main ()
21347{
Brian Gaeke90583492003-11-10 03:06:28 +000021348hash_set<int> t;
21349 ;
21350 return 0;
21351}
21352_ACEOF
21353rm -f conftest.$ac_objext
21354if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000021355 (eval $ac_compile) 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000021356 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000021357 grep -v '^ *+' conftest.er1 >conftest.err
21358 rm -f conftest.er1
21359 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000021360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21361 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000021362 { ac_try='test -z "$ac_cxx_werror_flag"
21363 || test ! -s conftest.err'
21364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21365 (eval $ac_try) 2>&5
21366 ac_status=$?
21367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21368 (exit $ac_status); }; } &&
21369 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke90583492003-11-10 03:06:28 +000021370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21371 (eval $ac_try) 2>&5
21372 ac_status=$?
21373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21374 (exit $ac_status); }; }; then
21375 ac_cv_cxx_have_gnu_ext_hash_set=yes
21376else
21377 echo "$as_me: failed program was:" >&5
21378sed 's/^/| /' conftest.$ac_ext >&5
21379
21380ac_cv_cxx_have_gnu_ext_hash_set=no
21381fi
Reid Spencer2b51a082004-08-04 00:34:49 +000021382rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000021383 ac_ext=c
21384ac_cpp='$CPP $CPPFLAGS'
21385ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21386ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21387ac_compiler_gnu=$ac_cv_c_compiler_gnu
21388
21389fi
21390echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
21391echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000021392 HAVE_GNU_EXT_HASH_SET=0
21393 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
21394 then
21395 HAVE_GNU_EXT_HASH_SET=1
Brian Gaeke90583492003-11-10 03:06:28 +000021396 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000021397
Brian Gaeke90583492003-11-10 03:06:28 +000021398 echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
21399echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
21400if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
21401 echo $ECHO_N "(cached) $ECHO_C" >&6
21402else
21403
21404
21405
21406 ac_ext=cc
21407ac_cpp='$CXXCPP $CPPFLAGS'
21408ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21409ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21410ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21411
21412 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000021413/* confdefs.h. */
21414_ACEOF
21415cat confdefs.h >>conftest.$ac_ext
21416cat >>conftest.$ac_ext <<_ACEOF
21417/* end confdefs.h. */
21418#include <hash_set>
21419int
21420main ()
21421{
John Criswell7a73b802003-06-30 21:59:07 +000021422hash_set<int> t; return 0;
21423 ;
21424 return 0;
21425}
21426_ACEOF
21427rm -f conftest.$ac_objext
21428if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000021429 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000021430 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000021431 grep -v '^ *+' conftest.er1 >conftest.err
21432 rm -f conftest.er1
21433 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000021434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21435 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000021436 { ac_try='test -z "$ac_cxx_werror_flag"
21437 || test ! -s conftest.err'
21438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21439 (eval $ac_try) 2>&5
21440 ac_status=$?
21441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21442 (exit $ac_status); }; } &&
21443 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000021444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21445 (eval $ac_try) 2>&5
21446 ac_status=$?
21447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21448 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000021449 ac_cv_cxx_have_global_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000021450else
21451 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021452sed 's/^/| /' conftest.$ac_ext >&5
21453
Brian Gaeke90583492003-11-10 03:06:28 +000021454ac_cv_cxx_have_global_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000021455fi
Reid Spencer2b51a082004-08-04 00:34:49 +000021456rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021457 ac_ext=c
21458ac_cpp='$CPP $CPPFLAGS'
21459ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21460ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21461ac_compiler_gnu=$ac_cv_c_compiler_gnu
21462
John Criswell7a73b802003-06-30 21:59:07 +000021463fi
Brian Gaeke90583492003-11-10 03:06:28 +000021464echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
21465echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000021466 HAVE_GLOBAL_HASH_SET=0
21467 if test "$ac_cv_cxx_have_global_hash_set" = yes
21468 then
21469 HAVE_GLOBAL_HASH_SET=1
Brian Gaeke90583492003-11-10 03:06:28 +000021470 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000021471
John Criswell7a73b802003-06-30 21:59:07 +000021472echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
21473echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
21474if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
21475 echo $ECHO_N "(cached) $ECHO_C" >&6
21476else
21477
21478
21479
21480 ac_ext=cc
21481ac_cpp='$CXXCPP $CPPFLAGS'
21482ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21483ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21484ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21485
21486 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021487/* confdefs.h. */
21488_ACEOF
21489cat confdefs.h >>conftest.$ac_ext
21490cat >>conftest.$ac_ext <<_ACEOF
21491/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021492#include <iterator>
21493#ifdef HAVE_NAMESPACES
21494using namespace std;
21495#endif
John Criswell7a73b802003-06-30 21:59:07 +000021496int
21497main ()
21498{
21499iterator<int,int,int> t; return 0;
21500 ;
21501 return 0;
21502}
21503_ACEOF
21504rm -f conftest.$ac_objext
21505if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000021506 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000021507 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000021508 grep -v '^ *+' conftest.er1 >conftest.err
21509 rm -f conftest.er1
21510 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000021511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21512 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000021513 { ac_try='test -z "$ac_cxx_werror_flag"
21514 || test ! -s conftest.err'
21515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21516 (eval $ac_try) 2>&5
21517 ac_status=$?
21518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21519 (exit $ac_status); }; } &&
21520 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000021521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21522 (eval $ac_try) 2>&5
21523 ac_status=$?
21524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21525 (exit $ac_status); }; }; then
21526 ac_cv_cxx_have_std_iterator=yes
21527else
21528 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021529sed 's/^/| /' conftest.$ac_ext >&5
21530
John Criswell7a73b802003-06-30 21:59:07 +000021531ac_cv_cxx_have_std_iterator=no
21532fi
Reid Spencer2b51a082004-08-04 00:34:49 +000021533rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021534 ac_ext=c
21535ac_cpp='$CPP $CPPFLAGS'
21536ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21537ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21538ac_compiler_gnu=$ac_cv_c_compiler_gnu
21539
21540
21541fi
21542echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
21543echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
Brian Gaeke295d4b82004-02-23 18:16:06 +000021544HAVE_STD_ITERATOR=0
21545if test "$ac_cv_cxx_have_std_iterator" = yes
21546then
21547 HAVE_STD_ITERATOR=1
John Criswell7a73b802003-06-30 21:59:07 +000021548fi
21549
21550echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
21551echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
21552if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
21553 echo $ECHO_N "(cached) $ECHO_C" >&6
21554else
21555
21556
21557
21558 ac_ext=cc
21559ac_cpp='$CXXCPP $CPPFLAGS'
21560ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21561ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21562ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21563
21564 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021565/* confdefs.h. */
21566_ACEOF
21567cat confdefs.h >>conftest.$ac_ext
21568cat >>conftest.$ac_ext <<_ACEOF
21569/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021570#include <iterator>
21571#ifdef HAVE_NAMESPACES
21572using namespace std;
21573#endif
John Criswell7a73b802003-06-30 21:59:07 +000021574int
21575main ()
21576{
John Criswellc78022e2003-07-29 19:11:58 +000021577bidirectional_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000021578 ;
21579 return 0;
21580}
21581_ACEOF
21582rm -f conftest.$ac_objext
21583if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000021584 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000021585 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000021586 grep -v '^ *+' conftest.er1 >conftest.err
21587 rm -f conftest.er1
21588 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000021589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21590 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000021591 { ac_try='test -z "$ac_cxx_werror_flag"
21592 || test ! -s conftest.err'
21593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21594 (eval $ac_try) 2>&5
21595 ac_status=$?
21596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21597 (exit $ac_status); }; } &&
21598 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000021599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21600 (eval $ac_try) 2>&5
21601 ac_status=$?
21602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21603 (exit $ac_status); }; }; then
21604 ac_cv_cxx_have_bi_iterator=yes
21605else
21606 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021607sed 's/^/| /' conftest.$ac_ext >&5
21608
John Criswell7a73b802003-06-30 21:59:07 +000021609ac_cv_cxx_have_bi_iterator=no
21610fi
Reid Spencer2b51a082004-08-04 00:34:49 +000021611rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021612 ac_ext=c
21613ac_cpp='$CPP $CPPFLAGS'
21614ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21615ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21616ac_compiler_gnu=$ac_cv_c_compiler_gnu
21617
21618
21619fi
21620echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
21621echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
Brian Gaeke295d4b82004-02-23 18:16:06 +000021622HAVE_BI_ITERATOR=0
21623if test "$ac_cv_cxx_have_bi_iterator" = yes
21624then
21625 HAVE_BI_ITERATOR=1
John Criswell7a73b802003-06-30 21:59:07 +000021626fi
21627
21628echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
21629echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
21630if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
21631 echo $ECHO_N "(cached) $ECHO_C" >&6
21632else
21633
21634
21635
21636 ac_ext=cc
21637ac_cpp='$CXXCPP $CPPFLAGS'
21638ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21639ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21640ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21641
21642 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021643/* confdefs.h. */
21644_ACEOF
21645cat confdefs.h >>conftest.$ac_ext
21646cat >>conftest.$ac_ext <<_ACEOF
21647/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021648#include <iterator>
21649#ifdef HAVE_NAMESPACES
21650using namespace std;
21651#endif
John Criswell7a73b802003-06-30 21:59:07 +000021652int
21653main ()
21654{
John Criswellc78022e2003-07-29 19:11:58 +000021655forward_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000021656 ;
21657 return 0;
21658}
21659_ACEOF
21660rm -f conftest.$ac_objext
21661if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000021662 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000021663 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000021664 grep -v '^ *+' conftest.er1 >conftest.err
21665 rm -f conftest.er1
21666 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000021667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21668 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000021669 { ac_try='test -z "$ac_cxx_werror_flag"
21670 || test ! -s conftest.err'
21671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21672 (eval $ac_try) 2>&5
21673 ac_status=$?
21674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21675 (exit $ac_status); }; } &&
21676 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000021677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21678 (eval $ac_try) 2>&5
21679 ac_status=$?
21680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21681 (exit $ac_status); }; }; then
21682 ac_cv_cxx_have_fwd_iterator=yes
21683else
21684 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021685sed 's/^/| /' conftest.$ac_ext >&5
21686
John Criswell7a73b802003-06-30 21:59:07 +000021687ac_cv_cxx_have_fwd_iterator=no
21688fi
Reid Spencer2b51a082004-08-04 00:34:49 +000021689rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021690 ac_ext=c
21691ac_cpp='$CPP $CPPFLAGS'
21692ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21693ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21694ac_compiler_gnu=$ac_cv_c_compiler_gnu
21695
21696
21697fi
21698echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
21699echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
Brian Gaeke295d4b82004-02-23 18:16:06 +000021700HAVE_FWD_ITERATOR=0
21701if test "$ac_cv_cxx_have_fwd_iterator" = yes
21702then
21703 HAVE_FWD_ITERATOR=1
John Criswell7a73b802003-06-30 21:59:07 +000021704fi
21705
21706
Brian Gaeke6f5b6212004-06-22 23:47:13 +000021707
21708echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
21709echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6
21710if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
21711 echo $ECHO_N "(cached) $ECHO_C" >&6
21712else
21713 ac_ext=cc
21714ac_cpp='$CXXCPP $CPPFLAGS'
21715ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21716ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21717ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21718
21719 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000021720/* confdefs.h. */
21721_ACEOF
21722cat confdefs.h >>conftest.$ac_ext
21723cat >>conftest.$ac_ext <<_ACEOF
21724/* end confdefs.h. */
21725#include <math.h>
21726 int foo(float f) {return isnan(f);}
21727_ACEOF
21728rm -f conftest.$ac_objext
21729if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000021730 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000021731 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000021732 grep -v '^ *+' conftest.er1 >conftest.err
21733 rm -f conftest.er1
21734 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000021735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21736 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000021737 { ac_try='test -z "$ac_cxx_werror_flag"
21738 || test ! -s conftest.err'
21739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21740 (eval $ac_try) 2>&5
21741 ac_status=$?
21742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21743 (exit $ac_status); }; } &&
21744 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6f5b6212004-06-22 23:47:13 +000021745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21746 (eval $ac_try) 2>&5
21747 ac_status=$?
21748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21749 (exit $ac_status); }; }; then
21750 ac_cv_func_isnan_in_math_h=yes
21751else
21752 echo "$as_me: failed program was:" >&5
21753sed 's/^/| /' conftest.$ac_ext >&5
21754
21755ac_cv_func_isnan_in_math_h=no
21756fi
Reid Spencer2b51a082004-08-04 00:34:49 +000021757rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke6f5b6212004-06-22 23:47:13 +000021758 ac_ext=c
21759ac_cpp='$CPP $CPPFLAGS'
21760ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21761ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21762ac_compiler_gnu=$ac_cv_c_compiler_gnu
21763
21764fi
21765echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
21766echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6
21767 if test "$ac_cv_func_isnan_in_math_h" = "yes"
21768 then
21769
21770cat >>confdefs.h <<\_ACEOF
21771#define HAVE_ISNAN_IN_MATH_H 1
21772_ACEOF
21773
21774 fi
21775echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
21776echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6
21777if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
21778 echo $ECHO_N "(cached) $ECHO_C" >&6
21779else
21780 ac_ext=cc
21781ac_cpp='$CXXCPP $CPPFLAGS'
21782ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21783ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21784ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21785
21786 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000021787/* confdefs.h. */
21788_ACEOF
21789cat confdefs.h >>conftest.$ac_ext
21790cat >>conftest.$ac_ext <<_ACEOF
21791/* end confdefs.h. */
21792#include <cmath>
21793 int foo(float f) {return isnan(f);}
21794_ACEOF
21795rm -f conftest.$ac_objext
21796if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000021797 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000021798 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000021799 grep -v '^ *+' conftest.er1 >conftest.err
21800 rm -f conftest.er1
21801 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000021802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21803 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000021804 { ac_try='test -z "$ac_cxx_werror_flag"
21805 || test ! -s conftest.err'
21806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21807 (eval $ac_try) 2>&5
21808 ac_status=$?
21809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21810 (exit $ac_status); }; } &&
21811 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6f5b6212004-06-22 23:47:13 +000021812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21813 (eval $ac_try) 2>&5
21814 ac_status=$?
21815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21816 (exit $ac_status); }; }; then
21817 ac_cv_func_isnan_in_cmath=yes
21818else
21819 echo "$as_me: failed program was:" >&5
21820sed 's/^/| /' conftest.$ac_ext >&5
21821
21822ac_cv_func_isnan_in_cmath=no
21823fi
Reid Spencer2b51a082004-08-04 00:34:49 +000021824rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke6f5b6212004-06-22 23:47:13 +000021825 ac_ext=c
21826ac_cpp='$CPP $CPPFLAGS'
21827ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21828ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21829ac_compiler_gnu=$ac_cv_c_compiler_gnu
21830
21831fi
21832echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
21833echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6
21834 if test "$ac_cv_func_isnan_in_cmath" = "yes"
21835 then
21836
21837cat >>confdefs.h <<\_ACEOF
21838#define HAVE_ISNAN_IN_CMATH 1
21839_ACEOF
21840
21841 fi
21842echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
21843echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6
21844if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
21845 echo $ECHO_N "(cached) $ECHO_C" >&6
21846else
21847 ac_ext=cc
21848ac_cpp='$CXXCPP $CPPFLAGS'
21849ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21850ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21851ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21852
21853 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000021854/* confdefs.h. */
21855_ACEOF
21856cat confdefs.h >>conftest.$ac_ext
21857cat >>conftest.$ac_ext <<_ACEOF
21858/* end confdefs.h. */
21859#include <cmath>
21860 using std::isnan; int foo(float f) {return isnan(f);}
21861_ACEOF
21862rm -f conftest.$ac_objext
21863if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000021864 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000021865 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000021866 grep -v '^ *+' conftest.er1 >conftest.err
21867 rm -f conftest.er1
21868 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000021869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21870 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000021871 { ac_try='test -z "$ac_cxx_werror_flag"
21872 || test ! -s conftest.err'
21873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21874 (eval $ac_try) 2>&5
21875 ac_status=$?
21876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21877 (exit $ac_status); }; } &&
21878 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6f5b6212004-06-22 23:47:13 +000021879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21880 (eval $ac_try) 2>&5
21881 ac_status=$?
21882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21883 (exit $ac_status); }; }; then
21884 ac_cv_func_std_isnan_in_cmath=yes
21885else
21886 echo "$as_me: failed program was:" >&5
21887sed 's/^/| /' conftest.$ac_ext >&5
21888
21889ac_cv_func_std_isnan_in_cmath=no
21890fi
Reid Spencer2b51a082004-08-04 00:34:49 +000021891rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke6f5b6212004-06-22 23:47:13 +000021892 ac_ext=c
21893ac_cpp='$CPP $CPPFLAGS'
21894ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21895ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21896ac_compiler_gnu=$ac_cv_c_compiler_gnu
21897
21898fi
21899echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
21900echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6
21901 if test "$ac_cv_func_std_isnan_in_cmath" = "yes"
21902 then
21903
21904cat >>confdefs.h <<\_ACEOF
21905#define HAVE_STD_ISNAN_IN_CMATH 1
21906_ACEOF
21907
21908 fi
21909
21910
Brian Gaeke52a551d2004-07-21 03:14:12 +000021911echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
21912echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6
21913if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
21914 echo $ECHO_N "(cached) $ECHO_C" >&6
21915else
21916 ac_ext=cc
21917ac_cpp='$CXXCPP $CPPFLAGS'
21918ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21919ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21920ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21921
21922 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000021923/* confdefs.h. */
21924_ACEOF
21925cat confdefs.h >>conftest.$ac_ext
21926cat >>conftest.$ac_ext <<_ACEOF
21927/* end confdefs.h. */
21928#include <math.h>
21929 int foo(float f) {return isinf(f);}
21930_ACEOF
21931rm -f conftest.$ac_objext
21932if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000021933 (eval $ac_compile) 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000021934 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000021935 grep -v '^ *+' conftest.er1 >conftest.err
21936 rm -f conftest.er1
21937 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000021938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21939 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000021940 { ac_try='test -z "$ac_cxx_werror_flag"
21941 || test ! -s conftest.err'
21942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21943 (eval $ac_try) 2>&5
21944 ac_status=$?
21945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21946 (exit $ac_status); }; } &&
21947 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke52a551d2004-07-21 03:14:12 +000021948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21949 (eval $ac_try) 2>&5
21950 ac_status=$?
21951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21952 (exit $ac_status); }; }; then
21953 ac_cv_func_isinf_in_math_h=yes
21954else
21955 echo "$as_me: failed program was:" >&5
21956sed 's/^/| /' conftest.$ac_ext >&5
21957
21958ac_cv_func_isinf_in_math_h=no
21959fi
Reid Spencer2b51a082004-08-04 00:34:49 +000021960rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke52a551d2004-07-21 03:14:12 +000021961 ac_ext=c
21962ac_cpp='$CPP $CPPFLAGS'
21963ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21964ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21965ac_compiler_gnu=$ac_cv_c_compiler_gnu
21966
21967fi
21968echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
21969echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6
21970 if test "$ac_cv_func_isinf_in_math_h" = "yes"
21971 then
21972
21973cat >>confdefs.h <<\_ACEOF
21974#define HAVE_ISINF_IN_MATH_H 1
21975_ACEOF
21976
21977 fi
21978echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
21979echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6
21980if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
21981 echo $ECHO_N "(cached) $ECHO_C" >&6
21982else
21983 ac_ext=cc
21984ac_cpp='$CXXCPP $CPPFLAGS'
21985ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21986ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21987ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21988
21989 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000021990/* confdefs.h. */
21991_ACEOF
21992cat confdefs.h >>conftest.$ac_ext
21993cat >>conftest.$ac_ext <<_ACEOF
21994/* end confdefs.h. */
21995#include <cmath>
21996 int foo(float f) {return isinf(f);}
21997_ACEOF
21998rm -f conftest.$ac_objext
21999if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000022000 (eval $ac_compile) 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000022001 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000022002 grep -v '^ *+' conftest.er1 >conftest.err
22003 rm -f conftest.er1
22004 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000022005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22006 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000022007 { ac_try='test -z "$ac_cxx_werror_flag"
22008 || test ! -s conftest.err'
22009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22010 (eval $ac_try) 2>&5
22011 ac_status=$?
22012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22013 (exit $ac_status); }; } &&
22014 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke52a551d2004-07-21 03:14:12 +000022015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22016 (eval $ac_try) 2>&5
22017 ac_status=$?
22018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22019 (exit $ac_status); }; }; then
22020 ac_cv_func_isinf_in_cmath=yes
22021else
22022 echo "$as_me: failed program was:" >&5
22023sed 's/^/| /' conftest.$ac_ext >&5
22024
22025ac_cv_func_isinf_in_cmath=no
22026fi
Reid Spencer2b51a082004-08-04 00:34:49 +000022027rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke52a551d2004-07-21 03:14:12 +000022028 ac_ext=c
22029ac_cpp='$CPP $CPPFLAGS'
22030ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22031ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22032ac_compiler_gnu=$ac_cv_c_compiler_gnu
22033
22034fi
22035echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
22036echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6
22037 if test "$ac_cv_func_isinf_in_cmath" = "yes"
22038 then
22039
22040cat >>confdefs.h <<\_ACEOF
22041#define HAVE_ISINF_IN_CMATH 1
22042_ACEOF
22043
22044 fi
22045echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
22046echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6
22047if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
22048 echo $ECHO_N "(cached) $ECHO_C" >&6
22049else
22050 ac_ext=cc
22051ac_cpp='$CXXCPP $CPPFLAGS'
22052ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22053ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22054ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22055
22056 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000022057/* confdefs.h. */
22058_ACEOF
22059cat confdefs.h >>conftest.$ac_ext
22060cat >>conftest.$ac_ext <<_ACEOF
22061/* end confdefs.h. */
22062#include <cmath>
22063 using std::isinf; int foo(float f) {return isinf(f);}
22064_ACEOF
22065rm -f conftest.$ac_objext
22066if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000022067 (eval $ac_compile) 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000022068 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000022069 grep -v '^ *+' conftest.er1 >conftest.err
22070 rm -f conftest.er1
22071 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000022072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22073 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000022074 { ac_try='test -z "$ac_cxx_werror_flag"
22075 || test ! -s conftest.err'
22076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22077 (eval $ac_try) 2>&5
22078 ac_status=$?
22079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22080 (exit $ac_status); }; } &&
22081 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke52a551d2004-07-21 03:14:12 +000022082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22083 (eval $ac_try) 2>&5
22084 ac_status=$?
22085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22086 (exit $ac_status); }; }; then
22087 ac_cv_func_std_isinf_in_cmath=yes
22088else
22089 echo "$as_me: failed program was:" >&5
22090sed 's/^/| /' conftest.$ac_ext >&5
22091
22092ac_cv_func_std_isinf_in_cmath=no
22093fi
Reid Spencer2b51a082004-08-04 00:34:49 +000022094rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke52a551d2004-07-21 03:14:12 +000022095 ac_ext=c
22096ac_cpp='$CPP $CPPFLAGS'
22097ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22098ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22099ac_compiler_gnu=$ac_cv_c_compiler_gnu
22100
22101fi
22102echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
22103echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6
22104 if test "$ac_cv_func_std_isinf_in_cmath" = "yes"
22105 then
22106
22107cat >>confdefs.h <<\_ACEOF
22108#define HAVE_STD_ISINF_IN_CMATH 1
22109_ACEOF
22110
22111 fi
Brian Gaeked59a6472004-07-21 03:33:58 +000022112echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
22113echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6
22114if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
22115 echo $ECHO_N "(cached) $ECHO_C" >&6
22116else
22117 ac_ext=cc
22118ac_cpp='$CXXCPP $CPPFLAGS'
22119ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22120ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22121ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22122
22123 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000022124/* confdefs.h. */
22125_ACEOF
22126cat confdefs.h >>conftest.$ac_ext
22127cat >>conftest.$ac_ext <<_ACEOF
22128/* end confdefs.h. */
22129#include <ieeefp.h>
22130 int foo(float f) {return finite(f);}
22131_ACEOF
22132rm -f conftest.$ac_objext
22133if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000022134 (eval $ac_compile) 2>conftest.er1
Brian Gaeked59a6472004-07-21 03:33:58 +000022135 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000022136 grep -v '^ *+' conftest.er1 >conftest.err
22137 rm -f conftest.er1
22138 cat conftest.err >&5
Brian Gaeked59a6472004-07-21 03:33:58 +000022139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22140 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000022141 { ac_try='test -z "$ac_cxx_werror_flag"
22142 || test ! -s conftest.err'
22143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22144 (eval $ac_try) 2>&5
22145 ac_status=$?
22146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22147 (exit $ac_status); }; } &&
22148 { ac_try='test -s conftest.$ac_objext'
Brian Gaeked59a6472004-07-21 03:33:58 +000022149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22150 (eval $ac_try) 2>&5
22151 ac_status=$?
22152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22153 (exit $ac_status); }; }; then
22154 ac_cv_func_finite_in_ieeefp_h=yes
22155else
22156 echo "$as_me: failed program was:" >&5
22157sed 's/^/| /' conftest.$ac_ext >&5
22158
22159ac_cv_func_finite_in_ieeefp_h=no
22160fi
Reid Spencer2b51a082004-08-04 00:34:49 +000022161rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeked59a6472004-07-21 03:33:58 +000022162 ac_ext=c
22163ac_cpp='$CPP $CPPFLAGS'
22164ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22165ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22166ac_compiler_gnu=$ac_cv_c_compiler_gnu
22167
22168fi
22169echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
22170echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6
22171 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes"
22172 then
22173
22174cat >>confdefs.h <<\_ACEOF
22175#define HAVE_FINITE_IN_IEEEFP_H 1
22176_ACEOF
22177
22178 fi
Brian Gaeke52a551d2004-07-21 03:14:12 +000022179
22180
John Criswell7a73b802003-06-30 21:59:07 +000022181# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
22182# for constant arguments. Useless!
22183echo "$as_me:$LINENO: checking for working alloca.h" >&5
22184echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
22185if test "${ac_cv_working_alloca_h+set}" = set; then
22186 echo $ECHO_N "(cached) $ECHO_C" >&6
22187else
22188 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000022189/* confdefs.h. */
22190_ACEOF
22191cat confdefs.h >>conftest.$ac_ext
22192cat >>conftest.$ac_ext <<_ACEOF
22193/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022194#include <alloca.h>
John Criswell7a73b802003-06-30 21:59:07 +000022195int
22196main ()
22197{
22198char *p = (char *) alloca (2 * sizeof (int));
22199 ;
22200 return 0;
22201}
22202_ACEOF
22203rm -f conftest.$ac_objext conftest$ac_exeext
22204if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000022205 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000022206 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000022207 grep -v '^ *+' conftest.er1 >conftest.err
22208 rm -f conftest.er1
22209 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000022210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22211 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000022212 { ac_try='test -z "$ac_c_werror_flag"
22213 || test ! -s conftest.err'
22214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22215 (eval $ac_try) 2>&5
22216 ac_status=$?
22217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22218 (exit $ac_status); }; } &&
22219 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000022220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22221 (eval $ac_try) 2>&5
22222 ac_status=$?
22223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22224 (exit $ac_status); }; }; then
22225 ac_cv_working_alloca_h=yes
22226else
22227 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022228sed 's/^/| /' conftest.$ac_ext >&5
22229
John Criswell7a73b802003-06-30 21:59:07 +000022230ac_cv_working_alloca_h=no
22231fi
Reid Spencer2b51a082004-08-04 00:34:49 +000022232rm -f conftest.err conftest.$ac_objext \
22233 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000022234fi
22235echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
22236echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
22237if test $ac_cv_working_alloca_h = yes; then
22238
22239cat >>confdefs.h <<\_ACEOF
22240#define HAVE_ALLOCA_H 1
22241_ACEOF
22242
22243fi
22244
22245echo "$as_me:$LINENO: checking for alloca" >&5
22246echo $ECHO_N "checking for alloca... $ECHO_C" >&6
22247if test "${ac_cv_func_alloca_works+set}" = set; then
22248 echo $ECHO_N "(cached) $ECHO_C" >&6
22249else
22250 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000022251/* confdefs.h. */
22252_ACEOF
22253cat confdefs.h >>conftest.$ac_ext
22254cat >>conftest.$ac_ext <<_ACEOF
22255/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022256#ifdef __GNUC__
22257# define alloca __builtin_alloca
22258#else
22259# ifdef _MSC_VER
22260# include <malloc.h>
22261# define alloca _alloca
22262# else
22263# if HAVE_ALLOCA_H
22264# include <alloca.h>
22265# else
22266# ifdef _AIX
22267 #pragma alloca
22268# else
22269# ifndef alloca /* predefined by HP cc +Olibcalls */
22270char *alloca ();
22271# endif
22272# endif
22273# endif
22274# endif
22275#endif
22276
John Criswell7a73b802003-06-30 21:59:07 +000022277int
22278main ()
22279{
22280char *p = (char *) alloca (1);
22281 ;
22282 return 0;
22283}
22284_ACEOF
22285rm -f conftest.$ac_objext conftest$ac_exeext
22286if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000022287 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000022288 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000022289 grep -v '^ *+' conftest.er1 >conftest.err
22290 rm -f conftest.er1
22291 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000022292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22293 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000022294 { ac_try='test -z "$ac_c_werror_flag"
22295 || test ! -s conftest.err'
22296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22297 (eval $ac_try) 2>&5
22298 ac_status=$?
22299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22300 (exit $ac_status); }; } &&
22301 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000022302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22303 (eval $ac_try) 2>&5
22304 ac_status=$?
22305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22306 (exit $ac_status); }; }; then
22307 ac_cv_func_alloca_works=yes
22308else
22309 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022310sed 's/^/| /' conftest.$ac_ext >&5
22311
John Criswell7a73b802003-06-30 21:59:07 +000022312ac_cv_func_alloca_works=no
22313fi
Reid Spencer2b51a082004-08-04 00:34:49 +000022314rm -f conftest.err conftest.$ac_objext \
22315 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000022316fi
22317echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
22318echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
22319
22320if test $ac_cv_func_alloca_works = yes; then
22321
22322cat >>confdefs.h <<\_ACEOF
22323#define HAVE_ALLOCA 1
22324_ACEOF
22325
22326else
22327 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
22328# that cause trouble. Some versions do not even contain alloca or
22329# contain a buggy version. If you still want to use their alloca,
22330# use ar to extract alloca.o from them instead of compiling alloca.c.
22331
22332ALLOCA=alloca.$ac_objext
22333
22334cat >>confdefs.h <<\_ACEOF
22335#define C_ALLOCA 1
22336_ACEOF
22337
22338
22339echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
22340echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
22341if test "${ac_cv_os_cray+set}" = set; then
22342 echo $ECHO_N "(cached) $ECHO_C" >&6
22343else
22344 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000022345/* confdefs.h. */
22346_ACEOF
22347cat confdefs.h >>conftest.$ac_ext
22348cat >>conftest.$ac_ext <<_ACEOF
22349/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022350#if defined(CRAY) && ! defined(CRAY2)
22351webecray
22352#else
22353wenotbecray
22354#endif
22355
22356_ACEOF
22357if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000022358 $EGREP "webecray" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000022359 ac_cv_os_cray=yes
22360else
22361 ac_cv_os_cray=no
22362fi
22363rm -f conftest*
22364
22365fi
22366echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
22367echo "${ECHO_T}$ac_cv_os_cray" >&6
22368if test $ac_cv_os_cray = yes; then
22369 for ac_func in _getb67 GETB67 getb67; do
22370 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22371echo "$as_me:$LINENO: checking for $ac_func" >&5
22372echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22373if eval "test \"\${$as_ac_var+set}\" = set"; then
22374 echo $ECHO_N "(cached) $ECHO_C" >&6
22375else
22376 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000022377/* confdefs.h. */
22378_ACEOF
22379cat confdefs.h >>conftest.$ac_ext
22380cat >>conftest.$ac_ext <<_ACEOF
22381/* end confdefs.h. */
Reid Spencer2b51a082004-08-04 00:34:49 +000022382/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22383 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22384#define $ac_func innocuous_$ac_func
22385
John Criswell7a73b802003-06-30 21:59:07 +000022386/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000022387 which can conflict with char $ac_func (); below.
22388 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22389 <limits.h> exists even on freestanding compilers. */
Reid Spencer2b51a082004-08-04 00:34:49 +000022390
John Criswell0c38eaf2003-09-10 15:17:25 +000022391#ifdef __STDC__
22392# include <limits.h>
22393#else
22394# include <assert.h>
22395#endif
Reid Spencer2b51a082004-08-04 00:34:49 +000022396
22397#undef $ac_func
22398
John Criswell7a73b802003-06-30 21:59:07 +000022399/* Override any gcc2 internal prototype to avoid an error. */
22400#ifdef __cplusplus
22401extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000022402{
John Criswell7a73b802003-06-30 21:59:07 +000022403#endif
22404/* We use char because int might match the return type of a gcc2
22405 builtin and then its argument prototype would still apply. */
22406char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000022407/* The GNU C library defines this for functions which it implements
22408 to always fail with ENOSYS. Some functions are actually named
22409 something starting with __ and the normal name is an alias. */
22410#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22411choke me
22412#else
John Criswell0c38eaf2003-09-10 15:17:25 +000022413char (*f) () = $ac_func;
22414#endif
22415#ifdef __cplusplus
22416}
John Criswell7a73b802003-06-30 21:59:07 +000022417#endif
22418
John Criswell0c38eaf2003-09-10 15:17:25 +000022419int
22420main ()
22421{
22422return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000022423 ;
22424 return 0;
22425}
22426_ACEOF
22427rm -f conftest.$ac_objext conftest$ac_exeext
22428if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000022429 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000022430 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000022431 grep -v '^ *+' conftest.er1 >conftest.err
22432 rm -f conftest.er1
22433 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000022434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22435 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000022436 { ac_try='test -z "$ac_c_werror_flag"
22437 || test ! -s conftest.err'
22438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22439 (eval $ac_try) 2>&5
22440 ac_status=$?
22441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22442 (exit $ac_status); }; } &&
22443 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000022444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22445 (eval $ac_try) 2>&5
22446 ac_status=$?
22447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22448 (exit $ac_status); }; }; then
22449 eval "$as_ac_var=yes"
22450else
22451 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022452sed 's/^/| /' conftest.$ac_ext >&5
22453
John Criswell7a73b802003-06-30 21:59:07 +000022454eval "$as_ac_var=no"
22455fi
Reid Spencer2b51a082004-08-04 00:34:49 +000022456rm -f conftest.err conftest.$ac_objext \
22457 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000022458fi
22459echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22460echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22461if test `eval echo '${'$as_ac_var'}'` = yes; then
22462
22463cat >>confdefs.h <<_ACEOF
22464#define CRAY_STACKSEG_END $ac_func
22465_ACEOF
22466
22467 break
22468fi
22469
22470 done
22471fi
22472
22473echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
22474echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
22475if test "${ac_cv_c_stack_direction+set}" = set; then
22476 echo $ECHO_N "(cached) $ECHO_C" >&6
22477else
22478 if test "$cross_compiling" = yes; then
22479 ac_cv_c_stack_direction=0
22480else
22481 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000022482/* confdefs.h. */
22483_ACEOF
22484cat confdefs.h >>conftest.$ac_ext
22485cat >>conftest.$ac_ext <<_ACEOF
22486/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022487int
22488find_stack_direction ()
22489{
22490 static char *addr = 0;
22491 auto char dummy;
22492 if (addr == 0)
22493 {
22494 addr = &dummy;
22495 return find_stack_direction ();
22496 }
22497 else
22498 return (&dummy > addr) ? 1 : -1;
22499}
22500
22501int
22502main ()
22503{
22504 exit (find_stack_direction () < 0);
22505}
22506_ACEOF
22507rm -f conftest$ac_exeext
22508if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22509 (eval $ac_link) 2>&5
22510 ac_status=$?
22511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22512 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22514 (eval $ac_try) 2>&5
22515 ac_status=$?
22516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22517 (exit $ac_status); }; }; then
22518 ac_cv_c_stack_direction=1
22519else
22520 echo "$as_me: program exited with status $ac_status" >&5
22521echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022522sed 's/^/| /' conftest.$ac_ext >&5
22523
John Criswell7a73b802003-06-30 21:59:07 +000022524( exit $ac_status )
22525ac_cv_c_stack_direction=-1
22526fi
Reid Spencer2b51a082004-08-04 00:34:49 +000022527rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000022528fi
22529fi
22530echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
22531echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
22532
22533cat >>confdefs.h <<_ACEOF
22534#define STACK_DIRECTION $ac_cv_c_stack_direction
22535_ACEOF
22536
22537
22538fi
22539
John Criswell7a73b802003-06-30 21:59:07 +000022540
22541
22542for ac_header in stdlib.h unistd.h
22543do
22544as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22545if eval "test \"\${$as_ac_Header+set}\" = set"; then
22546 echo "$as_me:$LINENO: checking for $ac_header" >&5
22547echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22548if eval "test \"\${$as_ac_Header+set}\" = set"; then
22549 echo $ECHO_N "(cached) $ECHO_C" >&6
22550fi
22551echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22552echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22553else
22554 # Is the header compilable?
22555echo "$as_me:$LINENO: checking $ac_header usability" >&5
22556echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22557cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000022558/* confdefs.h. */
22559_ACEOF
22560cat confdefs.h >>conftest.$ac_ext
22561cat >>conftest.$ac_ext <<_ACEOF
22562/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022563$ac_includes_default
22564#include <$ac_header>
22565_ACEOF
22566rm -f conftest.$ac_objext
22567if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000022568 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000022569 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000022570 grep -v '^ *+' conftest.er1 >conftest.err
22571 rm -f conftest.er1
22572 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000022573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22574 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000022575 { ac_try='test -z "$ac_c_werror_flag"
22576 || test ! -s conftest.err'
22577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22578 (eval $ac_try) 2>&5
22579 ac_status=$?
22580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22581 (exit $ac_status); }; } &&
22582 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000022583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22584 (eval $ac_try) 2>&5
22585 ac_status=$?
22586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22587 (exit $ac_status); }; }; then
22588 ac_header_compiler=yes
22589else
22590 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022591sed 's/^/| /' conftest.$ac_ext >&5
22592
John Criswell7a73b802003-06-30 21:59:07 +000022593ac_header_compiler=no
22594fi
Reid Spencer2b51a082004-08-04 00:34:49 +000022595rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000022596echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22597echo "${ECHO_T}$ac_header_compiler" >&6
22598
22599# Is the header present?
22600echo "$as_me:$LINENO: checking $ac_header presence" >&5
22601echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22602cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000022603/* confdefs.h. */
22604_ACEOF
22605cat confdefs.h >>conftest.$ac_ext
22606cat >>conftest.$ac_ext <<_ACEOF
22607/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022608#include <$ac_header>
22609_ACEOF
22610if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22611 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22612 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000022613 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000022614 rm -f conftest.er1
22615 cat conftest.err >&5
22616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22617 (exit $ac_status); } >/dev/null; then
22618 if test -s conftest.err; then
22619 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2b51a082004-08-04 00:34:49 +000022620 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +000022621 else
22622 ac_cpp_err=
22623 fi
22624else
22625 ac_cpp_err=yes
22626fi
22627if test -z "$ac_cpp_err"; then
22628 ac_header_preproc=yes
22629else
22630 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022631sed 's/^/| /' conftest.$ac_ext >&5
22632
John Criswell7a73b802003-06-30 21:59:07 +000022633 ac_header_preproc=no
22634fi
22635rm -f conftest.err conftest.$ac_ext
22636echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22637echo "${ECHO_T}$ac_header_preproc" >&6
22638
22639# So? What about this header?
Reid Spencer2b51a082004-08-04 00:34:49 +000022640case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22641 yes:no: )
John Criswell7a73b802003-06-30 21:59:07 +000022642 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22643echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2b51a082004-08-04 00:34:49 +000022644 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22645echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22646 ac_header_preproc=yes
John Criswell0c38eaf2003-09-10 15:17:25 +000022647 ;;
Reid Spencer2b51a082004-08-04 00:34:49 +000022648 no:yes:* )
John Criswell7a73b802003-06-30 21:59:07 +000022649 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22650echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2b51a082004-08-04 00:34:49 +000022651 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22652echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22653 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22654echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22655 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22656echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000022657 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022658echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2b51a082004-08-04 00:34:49 +000022659 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22660echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
John Criswell0c38eaf2003-09-10 15:17:25 +000022661 (
22662 cat <<\_ASBOX
Reid Spencer2b51a082004-08-04 00:34:49 +000022663## ----------------------------------- ##
22664## Report this to llvmbugs@cs.uiuc.edu ##
22665## ----------------------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +000022666_ASBOX
22667 ) |
22668 sed "s/^/$as_me: WARNING: /" >&2
22669 ;;
John Criswell7a73b802003-06-30 21:59:07 +000022670esac
22671echo "$as_me:$LINENO: checking for $ac_header" >&5
22672echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22673if eval "test \"\${$as_ac_Header+set}\" = set"; then
22674 echo $ECHO_N "(cached) $ECHO_C" >&6
22675else
Reid Spencer2b51a082004-08-04 00:34:49 +000022676 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +000022677fi
22678echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22679echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22680
22681fi
22682if test `eval echo '${'$as_ac_Header'}'` = yes; then
22683 cat >>confdefs.h <<_ACEOF
22684#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22685_ACEOF
22686
22687fi
22688
22689done
22690
22691
22692for ac_func in getpagesize
22693do
22694as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22695echo "$as_me:$LINENO: checking for $ac_func" >&5
22696echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22697if eval "test \"\${$as_ac_var+set}\" = set"; then
22698 echo $ECHO_N "(cached) $ECHO_C" >&6
22699else
22700 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000022701/* confdefs.h. */
22702_ACEOF
22703cat confdefs.h >>conftest.$ac_ext
22704cat >>conftest.$ac_ext <<_ACEOF
22705/* end confdefs.h. */
Reid Spencer2b51a082004-08-04 00:34:49 +000022706/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22707 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22708#define $ac_func innocuous_$ac_func
22709
John Criswell7a73b802003-06-30 21:59:07 +000022710/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000022711 which can conflict with char $ac_func (); below.
22712 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22713 <limits.h> exists even on freestanding compilers. */
Reid Spencer2b51a082004-08-04 00:34:49 +000022714
John Criswell0c38eaf2003-09-10 15:17:25 +000022715#ifdef __STDC__
22716# include <limits.h>
22717#else
22718# include <assert.h>
22719#endif
Reid Spencer2b51a082004-08-04 00:34:49 +000022720
22721#undef $ac_func
22722
John Criswell7a73b802003-06-30 21:59:07 +000022723/* Override any gcc2 internal prototype to avoid an error. */
22724#ifdef __cplusplus
22725extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000022726{
John Criswell7a73b802003-06-30 21:59:07 +000022727#endif
22728/* We use char because int might match the return type of a gcc2
22729 builtin and then its argument prototype would still apply. */
22730char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000022731/* The GNU C library defines this for functions which it implements
22732 to always fail with ENOSYS. Some functions are actually named
22733 something starting with __ and the normal name is an alias. */
22734#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22735choke me
22736#else
John Criswell0c38eaf2003-09-10 15:17:25 +000022737char (*f) () = $ac_func;
22738#endif
22739#ifdef __cplusplus
22740}
John Criswell7a73b802003-06-30 21:59:07 +000022741#endif
22742
John Criswell0c38eaf2003-09-10 15:17:25 +000022743int
22744main ()
22745{
22746return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000022747 ;
22748 return 0;
22749}
22750_ACEOF
22751rm -f conftest.$ac_objext conftest$ac_exeext
22752if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000022753 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000022754 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000022755 grep -v '^ *+' conftest.er1 >conftest.err
22756 rm -f conftest.er1
22757 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000022758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22759 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000022760 { ac_try='test -z "$ac_c_werror_flag"
22761 || test ! -s conftest.err'
22762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22763 (eval $ac_try) 2>&5
22764 ac_status=$?
22765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22766 (exit $ac_status); }; } &&
22767 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000022768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22769 (eval $ac_try) 2>&5
22770 ac_status=$?
22771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22772 (exit $ac_status); }; }; then
22773 eval "$as_ac_var=yes"
22774else
22775 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022776sed 's/^/| /' conftest.$ac_ext >&5
22777
John Criswell7a73b802003-06-30 21:59:07 +000022778eval "$as_ac_var=no"
22779fi
Reid Spencer2b51a082004-08-04 00:34:49 +000022780rm -f conftest.err conftest.$ac_objext \
22781 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000022782fi
22783echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22784echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22785if test `eval echo '${'$as_ac_var'}'` = yes; then
22786 cat >>confdefs.h <<_ACEOF
22787#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22788_ACEOF
22789
22790fi
22791done
22792
22793echo "$as_me:$LINENO: checking for working mmap" >&5
22794echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
22795if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
22796 echo $ECHO_N "(cached) $ECHO_C" >&6
22797else
22798 if test "$cross_compiling" = yes; then
22799 ac_cv_func_mmap_fixed_mapped=no
22800else
22801 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000022802/* confdefs.h. */
22803_ACEOF
22804cat confdefs.h >>conftest.$ac_ext
22805cat >>conftest.$ac_ext <<_ACEOF
22806/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022807$ac_includes_default
22808/* malloc might have been renamed as rpl_malloc. */
22809#undef malloc
22810
22811/* Thanks to Mike Haertel and Jim Avera for this test.
22812 Here is a matrix of mmap possibilities:
22813 mmap private not fixed
22814 mmap private fixed at somewhere currently unmapped
22815 mmap private fixed at somewhere already mapped
22816 mmap shared not fixed
22817 mmap shared fixed at somewhere currently unmapped
22818 mmap shared fixed at somewhere already mapped
22819 For private mappings, we should verify that changes cannot be read()
22820 back from the file, nor mmap's back from the file at a different
22821 address. (There have been systems where private was not correctly
22822 implemented like the infamous i386 svr4.0, and systems where the
22823 VM page cache was not coherent with the file system buffer cache
22824 like early versions of FreeBSD and possibly contemporary NetBSD.)
22825 For shared mappings, we should conversely verify that changes get
22826 propagated back to all the places they're supposed to be.
22827
22828 Grep wants private fixed already mapped.
22829 The main things grep needs to know about mmap are:
22830 * does it exist and is it safe to write into the mmap'd area
22831 * how to use it (BSD variants) */
22832
22833#include <fcntl.h>
22834#include <sys/mman.h>
22835
22836#if !STDC_HEADERS && !HAVE_STDLIB_H
22837char *malloc ();
22838#endif
22839
22840/* This mess was copied from the GNU getpagesize.h. */
22841#if !HAVE_GETPAGESIZE
22842/* Assume that all systems that can run configure have sys/param.h. */
22843# if !HAVE_SYS_PARAM_H
22844# define HAVE_SYS_PARAM_H 1
22845# endif
22846
22847# ifdef _SC_PAGESIZE
22848# define getpagesize() sysconf(_SC_PAGESIZE)
22849# else /* no _SC_PAGESIZE */
22850# if HAVE_SYS_PARAM_H
22851# include <sys/param.h>
22852# ifdef EXEC_PAGESIZE
22853# define getpagesize() EXEC_PAGESIZE
22854# else /* no EXEC_PAGESIZE */
22855# ifdef NBPG
22856# define getpagesize() NBPG * CLSIZE
22857# ifndef CLSIZE
22858# define CLSIZE 1
22859# endif /* no CLSIZE */
22860# else /* no NBPG */
22861# ifdef NBPC
22862# define getpagesize() NBPC
22863# else /* no NBPC */
22864# ifdef PAGESIZE
22865# define getpagesize() PAGESIZE
22866# endif /* PAGESIZE */
22867# endif /* no NBPC */
22868# endif /* no NBPG */
22869# endif /* no EXEC_PAGESIZE */
22870# else /* no HAVE_SYS_PARAM_H */
22871# define getpagesize() 8192 /* punt totally */
22872# endif /* no HAVE_SYS_PARAM_H */
22873# endif /* no _SC_PAGESIZE */
22874
22875#endif /* no HAVE_GETPAGESIZE */
22876
22877int
22878main ()
22879{
22880 char *data, *data2, *data3;
22881 int i, pagesize;
22882 int fd;
22883
22884 pagesize = getpagesize ();
22885
22886 /* First, make a file with some known garbage in it. */
22887 data = (char *) malloc (pagesize);
22888 if (!data)
22889 exit (1);
22890 for (i = 0; i < pagesize; ++i)
22891 *(data + i) = rand ();
22892 umask (0);
22893 fd = creat ("conftest.mmap", 0600);
22894 if (fd < 0)
22895 exit (1);
22896 if (write (fd, data, pagesize) != pagesize)
22897 exit (1);
22898 close (fd);
22899
22900 /* Next, try to mmap the file at a fixed address which already has
22901 something else allocated at it. If we can, also make sure that
22902 we see the same garbage. */
22903 fd = open ("conftest.mmap", O_RDWR);
22904 if (fd < 0)
22905 exit (1);
22906 data2 = (char *) malloc (2 * pagesize);
22907 if (!data2)
22908 exit (1);
Reid Spencer2b51a082004-08-04 00:34:49 +000022909 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000022910 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2b51a082004-08-04 00:34:49 +000022911 MAP_PRIVATE | MAP_FIXED, fd, 0L))
John Criswell7a73b802003-06-30 21:59:07 +000022912 exit (1);
22913 for (i = 0; i < pagesize; ++i)
22914 if (*(data + i) != *(data2 + i))
22915 exit (1);
22916
22917 /* Finally, make sure that changes to the mapped area do not
22918 percolate back to the file as seen by read(). (This is a bug on
22919 some variants of i386 svr4.0.) */
22920 for (i = 0; i < pagesize; ++i)
22921 *(data2 + i) = *(data2 + i) + 1;
22922 data3 = (char *) malloc (pagesize);
22923 if (!data3)
22924 exit (1);
22925 if (read (fd, data3, pagesize) != pagesize)
22926 exit (1);
22927 for (i = 0; i < pagesize; ++i)
22928 if (*(data + i) != *(data3 + i))
22929 exit (1);
22930 close (fd);
22931 exit (0);
22932}
22933_ACEOF
22934rm -f conftest$ac_exeext
22935if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22936 (eval $ac_link) 2>&5
22937 ac_status=$?
22938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22939 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22941 (eval $ac_try) 2>&5
22942 ac_status=$?
22943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22944 (exit $ac_status); }; }; then
22945 ac_cv_func_mmap_fixed_mapped=yes
22946else
22947 echo "$as_me: program exited with status $ac_status" >&5
22948echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022949sed 's/^/| /' conftest.$ac_ext >&5
22950
John Criswell7a73b802003-06-30 21:59:07 +000022951( exit $ac_status )
22952ac_cv_func_mmap_fixed_mapped=no
22953fi
Reid Spencer2b51a082004-08-04 00:34:49 +000022954rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000022955fi
22956fi
22957echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
22958echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
22959if test $ac_cv_func_mmap_fixed_mapped = yes; then
22960
22961cat >>confdefs.h <<\_ACEOF
22962#define HAVE_MMAP 1
22963_ACEOF
22964
22965fi
22966rm -f conftest.mmap
22967
Brian Gaeke26be9c52004-01-13 06:43:16 +000022968if test "$ac_cv_func_mmap_fixed_mapped" = "no"
22969then
John Criswellf3ecf3a2004-05-27 00:57:50 +000022970 { echo "$as_me:$LINENO: WARNING: mmap() required but not found" >&5
22971echo "$as_me: WARNING: mmap() required but not found" >&2;}
Brian Gaeke26be9c52004-01-13 06:43:16 +000022972fi
John Criswell7a73b802003-06-30 21:59:07 +000022973echo "$as_me:$LINENO: checking for mmap of files" >&5
22974echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
22975if test "${ac_cv_func_mmap_file+set}" = set; then
22976 echo $ECHO_N "(cached) $ECHO_C" >&6
22977else
22978
22979
22980 ac_ext=c
22981ac_cpp='$CPP $CPPFLAGS'
22982ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22983ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22984ac_compiler_gnu=$ac_cv_c_compiler_gnu
22985
22986 if test "$cross_compiling" = yes; then
John Criswell0c38eaf2003-09-10 15:17:25 +000022987 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22988See \`config.log' for more details." >&5
22989echo "$as_me: error: cannot run test program while cross compiling
22990See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000022991 { (exit 1); exit 1; }; }
22992else
22993 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000022994/* confdefs.h. */
22995_ACEOF
22996cat confdefs.h >>conftest.$ac_ext
22997cat >>conftest.$ac_ext <<_ACEOF
22998/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022999
John Criswell7a73b802003-06-30 21:59:07 +000023000#ifdef HAVE_SYS_TYPES_H
23001#include <sys/types.h>
23002#endif
23003
John Criswell5ab73462003-10-09 15:44:28 +000023004#ifdef HAVE_SYS_MMAN_H
23005#include <sys/mman.h>
23006#endif
23007
John Criswell7a73b802003-06-30 21:59:07 +000023008#ifdef HAVE_FCNTL_H
23009#include <fcntl.h>
23010#endif
23011
23012 int fd;
23013 int main () {
John Criswell5ab73462003-10-09 15:44:28 +000023014 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 +000023015_ACEOF
23016rm -f conftest$ac_exeext
23017if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23018 (eval $ac_link) 2>&5
23019 ac_status=$?
23020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23021 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23023 (eval $ac_try) 2>&5
23024 ac_status=$?
23025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23026 (exit $ac_status); }; }; then
23027 ac_cv_func_mmap_file=yes
23028else
23029 echo "$as_me: program exited with status $ac_status" >&5
23030echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023031sed 's/^/| /' conftest.$ac_ext >&5
23032
John Criswell7a73b802003-06-30 21:59:07 +000023033( exit $ac_status )
23034ac_cv_func_mmap_file=no
23035fi
Reid Spencer2b51a082004-08-04 00:34:49 +000023036rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000023037fi
23038 ac_ext=c
23039ac_cpp='$CPP $CPPFLAGS'
23040ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23041ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23042ac_compiler_gnu=$ac_cv_c_compiler_gnu
23043
23044
23045fi
23046echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
23047echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
23048if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000023049
23050cat >>confdefs.h <<\_ACEOF
23051#define HAVE_MMAP_FILE
John Criswell7a73b802003-06-30 21:59:07 +000023052_ACEOF
23053
23054 MMAP_FILE=yes
23055
23056fi
23057
Brian Gaeke26be9c52004-01-13 06:43:16 +000023058if test "$ac_cv_func_mmap_file" = "no"
John Criswell7a73b802003-06-30 21:59:07 +000023059then
John Criswellf3ecf3a2004-05-27 00:57:50 +000023060 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
23061echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000023062fi
23063echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
23064echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
23065if test "${ac_cv_header_mmap_anon+set}" = set; then
23066 echo $ECHO_N "(cached) $ECHO_C" >&6
23067else
23068
23069
23070 ac_ext=c
23071ac_cpp='$CPP $CPPFLAGS'
23072ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23073ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23074ac_compiler_gnu=$ac_cv_c_compiler_gnu
23075
23076 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023077/* confdefs.h. */
23078_ACEOF
23079cat confdefs.h >>conftest.$ac_ext
23080cat >>conftest.$ac_ext <<_ACEOF
23081/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000023082#include <sys/mman.h>
23083 #include <unistd.h>
23084 #include <fcntl.h>
John Criswell7a73b802003-06-30 21:59:07 +000023085int
23086main ()
23087{
23088mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
23089 ;
23090 return 0;
23091}
23092_ACEOF
23093rm -f conftest.$ac_objext
23094if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000023095 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000023096 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000023097 grep -v '^ *+' conftest.er1 >conftest.err
23098 rm -f conftest.er1
23099 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000023100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23101 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000023102 { ac_try='test -z "$ac_c_werror_flag"
23103 || test ! -s conftest.err'
23104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23105 (eval $ac_try) 2>&5
23106 ac_status=$?
23107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23108 (exit $ac_status); }; } &&
23109 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000023110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23111 (eval $ac_try) 2>&5
23112 ac_status=$?
23113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23114 (exit $ac_status); }; }; then
23115 ac_cv_header_mmap_anon=yes
23116else
23117 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023118sed 's/^/| /' conftest.$ac_ext >&5
23119
John Criswell7a73b802003-06-30 21:59:07 +000023120ac_cv_header_mmap_anon=no
23121fi
Reid Spencer2b51a082004-08-04 00:34:49 +000023122rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000023123 ac_ext=c
23124ac_cpp='$CPP $CPPFLAGS'
23125ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23126ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23127ac_compiler_gnu=$ac_cv_c_compiler_gnu
23128
23129
23130fi
23131echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
23132echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
23133if test "$ac_cv_header_mmap_anon" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000023134
23135cat >>confdefs.h <<\_ACEOF
23136#define HAVE_MMAP_ANONYMOUS
John Criswell7a73b802003-06-30 21:59:07 +000023137_ACEOF
23138
23139fi
23140
23141echo "$as_me:$LINENO: checking return type of signal handlers" >&5
23142echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
23143if test "${ac_cv_type_signal+set}" = set; then
23144 echo $ECHO_N "(cached) $ECHO_C" >&6
23145else
23146 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023147/* confdefs.h. */
23148_ACEOF
23149cat confdefs.h >>conftest.$ac_ext
23150cat >>conftest.$ac_ext <<_ACEOF
23151/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000023152#include <sys/types.h>
23153#include <signal.h>
23154#ifdef signal
23155# undef signal
23156#endif
23157#ifdef __cplusplus
23158extern "C" void (*signal (int, void (*)(int)))(int);
23159#else
23160void (*signal ()) ();
23161#endif
23162
John Criswell7a73b802003-06-30 21:59:07 +000023163int
23164main ()
23165{
23166int i;
23167 ;
23168 return 0;
23169}
23170_ACEOF
23171rm -f conftest.$ac_objext
23172if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000023173 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000023174 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000023175 grep -v '^ *+' conftest.er1 >conftest.err
23176 rm -f conftest.er1
23177 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000023178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23179 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000023180 { ac_try='test -z "$ac_c_werror_flag"
23181 || test ! -s conftest.err'
23182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23183 (eval $ac_try) 2>&5
23184 ac_status=$?
23185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23186 (exit $ac_status); }; } &&
23187 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000023188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23189 (eval $ac_try) 2>&5
23190 ac_status=$?
23191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23192 (exit $ac_status); }; }; then
23193 ac_cv_type_signal=void
23194else
23195 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023196sed 's/^/| /' conftest.$ac_ext >&5
23197
John Criswell7a73b802003-06-30 21:59:07 +000023198ac_cv_type_signal=int
23199fi
Reid Spencer2b51a082004-08-04 00:34:49 +000023200rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000023201fi
23202echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
23203echo "${ECHO_T}$ac_cv_type_signal" >&6
23204
23205cat >>confdefs.h <<_ACEOF
23206#define RETSIGTYPE $ac_cv_type_signal
23207_ACEOF
23208
23209
23210
23211
23212
23213
23214
Brian Gaekef5261472004-02-20 06:40:57 +000023215
Brian Gaeke9a08b5e2004-04-02 21:26:02 +000023216
John Criswelld6621562004-06-07 14:26:24 +000023217
23218
John Criswell7ed43ad2004-07-19 16:12:29 +000023219for ac_func in getcwd gettimeofday strdup strtoq strtoll backtrace isatty mkstemp getrusage
John Criswell7a73b802003-06-30 21:59:07 +000023220do
23221as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23222echo "$as_me:$LINENO: checking for $ac_func" >&5
23223echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23224if eval "test \"\${$as_ac_var+set}\" = set"; then
23225 echo $ECHO_N "(cached) $ECHO_C" >&6
23226else
23227 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023228/* confdefs.h. */
23229_ACEOF
23230cat confdefs.h >>conftest.$ac_ext
23231cat >>conftest.$ac_ext <<_ACEOF
23232/* end confdefs.h. */
Reid Spencer2b51a082004-08-04 00:34:49 +000023233/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23234 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23235#define $ac_func innocuous_$ac_func
23236
John Criswell7a73b802003-06-30 21:59:07 +000023237/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000023238 which can conflict with char $ac_func (); below.
23239 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23240 <limits.h> exists even on freestanding compilers. */
Reid Spencer2b51a082004-08-04 00:34:49 +000023241
John Criswell0c38eaf2003-09-10 15:17:25 +000023242#ifdef __STDC__
23243# include <limits.h>
23244#else
23245# include <assert.h>
23246#endif
Reid Spencer2b51a082004-08-04 00:34:49 +000023247
23248#undef $ac_func
23249
John Criswell7a73b802003-06-30 21:59:07 +000023250/* Override any gcc2 internal prototype to avoid an error. */
23251#ifdef __cplusplus
23252extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000023253{
John Criswell7a73b802003-06-30 21:59:07 +000023254#endif
23255/* We use char because int might match the return type of a gcc2
23256 builtin and then its argument prototype would still apply. */
23257char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000023258/* The GNU C library defines this for functions which it implements
23259 to always fail with ENOSYS. Some functions are actually named
23260 something starting with __ and the normal name is an alias. */
23261#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23262choke me
23263#else
John Criswell0c38eaf2003-09-10 15:17:25 +000023264char (*f) () = $ac_func;
23265#endif
23266#ifdef __cplusplus
23267}
John Criswell7a73b802003-06-30 21:59:07 +000023268#endif
23269
John Criswell0c38eaf2003-09-10 15:17:25 +000023270int
23271main ()
23272{
23273return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000023274 ;
23275 return 0;
23276}
23277_ACEOF
23278rm -f conftest.$ac_objext conftest$ac_exeext
23279if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000023280 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000023281 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000023282 grep -v '^ *+' conftest.er1 >conftest.err
23283 rm -f conftest.er1
23284 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000023285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23286 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000023287 { ac_try='test -z "$ac_c_werror_flag"
23288 || test ! -s conftest.err'
23289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23290 (eval $ac_try) 2>&5
23291 ac_status=$?
23292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23293 (exit $ac_status); }; } &&
23294 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000023295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23296 (eval $ac_try) 2>&5
23297 ac_status=$?
23298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23299 (exit $ac_status); }; }; then
23300 eval "$as_ac_var=yes"
23301else
23302 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023303sed 's/^/| /' conftest.$ac_ext >&5
23304
John Criswell7a73b802003-06-30 21:59:07 +000023305eval "$as_ac_var=no"
23306fi
Reid Spencer2b51a082004-08-04 00:34:49 +000023307rm -f conftest.err conftest.$ac_objext \
23308 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000023309fi
23310echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23311echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23312if test `eval echo '${'$as_ac_var'}'` = yes; then
23313 cat >>confdefs.h <<_ACEOF
23314#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23315_ACEOF
23316
23317fi
23318done
23319
John Criswell7a73b802003-06-30 21:59:07 +000023320echo "$as_me:$LINENO: checking for mprotect" >&5
23321echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
23322if test "${ac_cv_func_mprotect+set}" = set; then
23323 echo $ECHO_N "(cached) $ECHO_C" >&6
23324else
23325 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023326/* confdefs.h. */
23327_ACEOF
23328cat confdefs.h >>conftest.$ac_ext
23329cat >>conftest.$ac_ext <<_ACEOF
23330/* end confdefs.h. */
Reid Spencer2b51a082004-08-04 00:34:49 +000023331/* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
23332 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23333#define mprotect innocuous_mprotect
23334
John Criswell7a73b802003-06-30 21:59:07 +000023335/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000023336 which can conflict with char mprotect (); below.
23337 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23338 <limits.h> exists even on freestanding compilers. */
Reid Spencer2b51a082004-08-04 00:34:49 +000023339
John Criswell0c38eaf2003-09-10 15:17:25 +000023340#ifdef __STDC__
23341# include <limits.h>
23342#else
23343# include <assert.h>
23344#endif
Reid Spencer2b51a082004-08-04 00:34:49 +000023345
23346#undef mprotect
23347
John Criswell7a73b802003-06-30 21:59:07 +000023348/* Override any gcc2 internal prototype to avoid an error. */
23349#ifdef __cplusplus
23350extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000023351{
John Criswell7a73b802003-06-30 21:59:07 +000023352#endif
23353/* We use char because int might match the return type of a gcc2
23354 builtin and then its argument prototype would still apply. */
23355char mprotect ();
John Criswell7a73b802003-06-30 21:59:07 +000023356/* The GNU C library defines this for functions which it implements
23357 to always fail with ENOSYS. Some functions are actually named
23358 something starting with __ and the normal name is an alias. */
23359#if defined (__stub_mprotect) || defined (__stub___mprotect)
23360choke me
23361#else
John Criswell0c38eaf2003-09-10 15:17:25 +000023362char (*f) () = mprotect;
23363#endif
23364#ifdef __cplusplus
23365}
John Criswell7a73b802003-06-30 21:59:07 +000023366#endif
23367
John Criswell0c38eaf2003-09-10 15:17:25 +000023368int
23369main ()
23370{
23371return f != mprotect;
John Criswell7a73b802003-06-30 21:59:07 +000023372 ;
23373 return 0;
23374}
23375_ACEOF
23376rm -f conftest.$ac_objext conftest$ac_exeext
23377if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000023378 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000023379 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000023380 grep -v '^ *+' conftest.er1 >conftest.err
23381 rm -f conftest.er1
23382 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000023383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23384 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000023385 { ac_try='test -z "$ac_c_werror_flag"
23386 || test ! -s conftest.err'
23387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23388 (eval $ac_try) 2>&5
23389 ac_status=$?
23390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23391 (exit $ac_status); }; } &&
23392 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000023393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23394 (eval $ac_try) 2>&5
23395 ac_status=$?
23396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23397 (exit $ac_status); }; }; then
23398 ac_cv_func_mprotect=yes
23399else
23400 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023401sed 's/^/| /' conftest.$ac_ext >&5
23402
John Criswell7a73b802003-06-30 21:59:07 +000023403ac_cv_func_mprotect=no
23404fi
Reid Spencer2b51a082004-08-04 00:34:49 +000023405rm -f conftest.err conftest.$ac_objext \
23406 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000023407fi
23408echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
23409echo "${ECHO_T}$ac_cv_func_mprotect" >&6
23410if test $ac_cv_func_mprotect = yes; then
23411 :
23412else
23413 { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
23414echo "$as_me: error: Function mprotect() required but not found" >&2;}
23415 { (exit 1); exit 1; }; }
23416fi
23417
23418
John Criswellb13092b2003-07-22 21:00:24 +000023419
Brian Gaekeadfe28d2004-07-21 03:50:25 +000023420 echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
23421echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6
John Criswellcb7a1eb2003-11-17 19:46:02 +000023422
23423
23424 ac_ext=c
23425ac_cpp='$CPP $CPPFLAGS'
23426ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23427ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23428ac_compiler_gnu=$ac_cv_c_compiler_gnu
23429
Brian Gaekef91a15c2003-11-18 06:20:41 +000023430 oldcflags="$CFLAGS"
23431 CFLAGS="$CFLAGS -Wl,-R."
John Criswellcb7a1eb2003-11-17 19:46:02 +000023432 cat >conftest.$ac_ext <<_ACEOF
Brian Gaekef91a15c2003-11-18 06:20:41 +000023433int main() { return 0; }
John Criswellcb7a1eb2003-11-17 19:46:02 +000023434_ACEOF
23435rm -f conftest.$ac_objext conftest$ac_exeext
23436if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000023437 (eval $ac_link) 2>conftest.er1
John Criswellcb7a1eb2003-11-17 19:46:02 +000023438 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000023439 grep -v '^ *+' conftest.er1 >conftest.err
23440 rm -f conftest.er1
23441 cat conftest.err >&5
John Criswellcb7a1eb2003-11-17 19:46:02 +000023442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23443 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000023444 { ac_try='test -z "$ac_c_werror_flag"
23445 || test ! -s conftest.err'
23446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23447 (eval $ac_try) 2>&5
23448 ac_status=$?
23449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23450 (exit $ac_status); }; } &&
23451 { ac_try='test -s conftest$ac_exeext'
John Criswellcb7a1eb2003-11-17 19:46:02 +000023452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23453 (eval $ac_try) 2>&5
23454 ac_status=$?
23455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23456 (exit $ac_status); }; }; then
23457 ac_cv_link_use_r=yes
23458else
23459 echo "$as_me: failed program was:" >&5
23460sed 's/^/| /' conftest.$ac_ext >&5
23461
Brian Gaekef91a15c2003-11-18 06:20:41 +000023462ac_cv_link_use_r=no
John Criswellcb7a1eb2003-11-17 19:46:02 +000023463fi
Reid Spencer2b51a082004-08-04 00:34:49 +000023464rm -f conftest.err conftest.$ac_objext \
23465 conftest$ac_exeext conftest.$ac_ext
Brian Gaekef91a15c2003-11-18 06:20:41 +000023466 CFLAGS="$oldcflags"
John Criswellcb7a1eb2003-11-17 19:46:02 +000023467 ac_ext=c
23468ac_cpp='$CPP $CPPFLAGS'
23469ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23470ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23471ac_compiler_gnu=$ac_cv_c_compiler_gnu
23472
Brian Gaekeadfe28d2004-07-21 03:50:25 +000023473 echo "$as_me:$LINENO: result: $ac_cv_link_use_r" >&5
23474echo "${ECHO_T}$ac_cv_link_use_r" >&6
Brian Gaekef91a15c2003-11-18 06:20:41 +000023475 if test "$ac_cv_link_use_r" = yes
John Criswellcb7a1eb2003-11-17 19:46:02 +000023476 then
Brian Gaekef91a15c2003-11-18 06:20:41 +000023477
23478cat >>confdefs.h <<\_ACEOF
John Criswellcb7a1eb2003-11-17 19:46:02 +000023479#define HAVE_LINK_R 1
23480_ACEOF
23481
23482 fi
23483
23484
John Criswell7a73b802003-06-30 21:59:07 +000023485# Check whether --enable-optimized or --disable-optimized was given.
23486if test "${enable_optimized+set}" = set; then
23487 enableval="$enable_optimized"
John Criswell7a73b802003-06-30 21:59:07 +000023488
23489else
John Criswellb13092b2003-07-22 21:00:24 +000023490 enableval=no
John Criswell7a73b802003-06-30 21:59:07 +000023491fi;
John Criswellb13092b2003-07-22 21:00:24 +000023492if test ${enableval} = "no"
23493then
23494 ENABLE_OPTIMIZED=
23495
23496else
23497 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
23498
23499fi
23500
John Criswell55126592003-10-07 21:57:39 +000023501
23502
John Criswell55126592003-10-07 21:57:39 +000023503
Brian Gaekee773b862004-04-16 17:13:44 +000023504 # Check whether --enable-spec95 or --disable-spec95 was given.
John Criswellcf2e9f72004-02-10 22:36:35 +000023505if test "${enable_spec95+set}" = set; then
23506 enableval="$enable_spec95"
Brian Gaekee773b862004-04-16 17:13:44 +000023507 checkresult=$enableval
John Criswellcf2e9f72004-02-10 22:36:35 +000023508else
Brian Gaekee773b862004-04-16 17:13:44 +000023509 checkresult=auto
John Criswellcf2e9f72004-02-10 22:36:35 +000023510fi;
Brian Gaekee773b862004-04-16 17:13:44 +000023511echo "$as_me:$LINENO: checking for spec95 benchmark sources" >&5
23512echo $ECHO_N "checking for spec95 benchmark sources... $ECHO_C" >&6
23513case "$checkresult" in
23514auto|yes)
23515 defaultdir=/home/vadve/shared/benchmarks/spec95/benchspec
23516 if test -d "$defaultdir"
John Criswellcf2e9f72004-02-10 22:36:35 +000023517 then
Brian Gaekee773b862004-04-16 17:13:44 +000023518 SPEC95_ROOT=$defaultdir
John Criswellcf2e9f72004-02-10 22:36:35 +000023519
23520 USE_SPEC95=USE_SPEC95=1
23521
Brian Gaekee773b862004-04-16 17:13:44 +000023522 checkresult="yes, found in $defaultdir"
23523 else
23524 checkresult=no
23525 fi
23526 ;;
23527no)
John Criswellcf2e9f72004-02-10 22:36:35 +000023528
23529
Brian Gaekee773b862004-04-16 17:13:44 +000023530 checkresult=no
23531 ;;
23532*) if test -d "$checkresult"
23533 then
23534 SPEC95_ROOT="$checkresult"
23535
23536 USE_SPEC95=USE_SPEC95=1
23537
23538 checkresult="yes, in $checkresult"
23539 else
23540
23541
23542 checkresult="no, not found in $checkresult"
23543 fi
23544 ;;
23545esac
23546echo "$as_me:$LINENO: result: $checkresult" >&5
23547echo "${ECHO_T}$checkresult" >&6
23548
23549
23550
23551 # Check whether --enable-spec2000 or --disable-spec2000 was given.
23552if test "${enable_spec2000+set}" = set; then
23553 enableval="$enable_spec2000"
23554 checkresult=$enableval
John Criswellcf2e9f72004-02-10 22:36:35 +000023555else
Brian Gaekee773b862004-04-16 17:13:44 +000023556 checkresult=auto
23557fi;
23558echo "$as_me:$LINENO: checking for spec2000 benchmark sources" >&5
23559echo $ECHO_N "checking for spec2000 benchmark sources... $ECHO_C" >&6
23560case "$checkresult" in
23561auto|yes)
23562 defaultdir=/home/vadve/shared/benchmarks/speccpu2000/benchspec
23563 if test -d "$defaultdir"
John Criswellcf2e9f72004-02-10 22:36:35 +000023564 then
Brian Gaekee773b862004-04-16 17:13:44 +000023565 SPEC2000_ROOT=$defaultdir
John Criswellcf2e9f72004-02-10 22:36:35 +000023566
Brian Gaekee773b862004-04-16 17:13:44 +000023567 USE_SPEC2000=USE_SPEC2000=1
John Criswellcf2e9f72004-02-10 22:36:35 +000023568
Brian Gaekee773b862004-04-16 17:13:44 +000023569 checkresult="yes, found in $defaultdir"
23570 else
23571 checkresult=no
23572 fi
23573 ;;
23574no)
John Criswellcf2e9f72004-02-10 22:36:35 +000023575
John Criswellcf2e9f72004-02-10 22:36:35 +000023576
Brian Gaekee773b862004-04-16 17:13:44 +000023577 checkresult=no
23578 ;;
23579*) if test -d "$checkresult"
23580 then
23581 SPEC2000_ROOT="$checkresult"
23582
23583 USE_SPEC2000=USE_SPEC2000=1
23584
23585 checkresult="yes, in $checkresult"
23586 else
23587
23588
23589 checkresult="no, not found in $checkresult"
23590 fi
23591 ;;
23592esac
23593echo "$as_me:$LINENO: result: $checkresult" >&5
23594echo "${ECHO_T}$checkresult" >&6
23595
23596
23597
23598 # Check whether --enable-povray or --disable-povray was given.
John Criswell0538d422004-02-20 22:30:22 +000023599if test "${enable_povray+set}" = set; then
23600 enableval="$enable_povray"
Brian Gaekee773b862004-04-16 17:13:44 +000023601 checkresult=$enableval
John Criswell0538d422004-02-20 22:30:22 +000023602else
Brian Gaekee773b862004-04-16 17:13:44 +000023603 checkresult=auto
John Criswell0538d422004-02-20 22:30:22 +000023604fi;
Brian Gaekee773b862004-04-16 17:13:44 +000023605echo "$as_me:$LINENO: checking for povray benchmark sources" >&5
23606echo $ECHO_N "checking for povray benchmark sources... $ECHO_C" >&6
23607case "$checkresult" in
Chris Lattner95f45c52004-04-14 16:32:09 +000023608auto|yes)
Brian Gaekef66cdf82004-04-13 19:03:49 +000023609 defaultdir=/home/vadve/shared/benchmarks/povray31
Brian Gaekee773b862004-04-16 17:13:44 +000023610 if test -d "$defaultdir"
John Criswell0538d422004-02-20 22:30:22 +000023611 then
Brian Gaekef66cdf82004-04-13 19:03:49 +000023612 POVRAY_ROOT=$defaultdir
John Criswell0538d422004-02-20 22:30:22 +000023613
23614 USE_POVRAY=USE_POVRAY=1
23615
Brian Gaekee773b862004-04-16 17:13:44 +000023616 checkresult="yes, found in $defaultdir"
Brian Gaekef66cdf82004-04-13 19:03:49 +000023617 else
Brian Gaekee773b862004-04-16 17:13:44 +000023618 checkresult=no
Brian Gaekef66cdf82004-04-13 19:03:49 +000023619 fi
23620 ;;
Chris Lattner95f45c52004-04-14 16:32:09 +000023621no)
John Criswell0538d422004-02-20 22:30:22 +000023622
23623
Brian Gaekee773b862004-04-16 17:13:44 +000023624 checkresult=no
Brian Gaekef66cdf82004-04-13 19:03:49 +000023625 ;;
Brian Gaekee773b862004-04-16 17:13:44 +000023626*) if test -d "$checkresult"
Brian Gaekef66cdf82004-04-13 19:03:49 +000023627 then
Brian Gaekee773b862004-04-16 17:13:44 +000023628 POVRAY_ROOT="$checkresult"
John Criswell0538d422004-02-20 22:30:22 +000023629
Brian Gaekef66cdf82004-04-13 19:03:49 +000023630 USE_POVRAY=USE_POVRAY=1
John Criswell0538d422004-02-20 22:30:22 +000023631
Brian Gaekee773b862004-04-16 17:13:44 +000023632 checkresult="yes, in $checkresult"
Brian Gaekef66cdf82004-04-13 19:03:49 +000023633 else
John Criswell0538d422004-02-20 22:30:22 +000023634
John Criswell0538d422004-02-20 22:30:22 +000023635
Brian Gaekee773b862004-04-16 17:13:44 +000023636 checkresult="no, not found in $checkresult"
Brian Gaekef66cdf82004-04-13 19:03:49 +000023637 fi
23638 ;;
23639esac
Brian Gaekee773b862004-04-16 17:13:44 +000023640echo "$as_me:$LINENO: result: $checkresult" >&5
23641echo "${ECHO_T}$checkresult" >&6
23642
23643
John Criswell0538d422004-02-20 22:30:22 +000023644
John Criswell7a73b802003-06-30 21:59:07 +000023645# Check whether --enable-precompiled_bytecode or --disable-precompiled_bytecode was given.
23646if test "${enable_precompiled_bytecode+set}" = set; then
23647 enableval="$enable_precompiled_bytecode"
John Criswell7a73b802003-06-30 21:59:07 +000023648
23649else
John Criswellb13092b2003-07-22 21:00:24 +000023650 enableval=no
John Criswell7a73b802003-06-30 21:59:07 +000023651fi;
John Criswellb13092b2003-07-22 21:00:24 +000023652if test ${enableval} = "no"
23653then
23654 UPB=
John Criswellf02dbf02003-07-22 20:07:49 +000023655
John Criswellb13092b2003-07-22 21:00:24 +000023656else
23657 UPB=USE_PRECOMPILED_BYTECODE=1
23658
23659fi
John Criswellf02dbf02003-07-22 20:07:49 +000023660
John Criswellf02dbf02003-07-22 20:07:49 +000023661# Check whether --enable-llc_diffs or --disable-llc_diffs was given.
23662if test "${enable_llc_diffs+set}" = set; then
23663 enableval="$enable_llc_diffs"
John Criswellf02dbf02003-07-22 20:07:49 +000023664
23665else
John Criswellb13092b2003-07-22 21:00:24 +000023666 enableval=yes
John Criswellf02dbf02003-07-22 20:07:49 +000023667fi;
John Criswellb13092b2003-07-22 21:00:24 +000023668if test ${enableval} = "no"
23669then
23670 DISABLE_LLC_DIFFS=DISABLE_LLC_DIFFS:=1
John Criswellf02dbf02003-07-22 20:07:49 +000023671
John Criswellb13092b2003-07-22 21:00:24 +000023672else
23673 DISABLE_LLC_DIFFS=
23674
23675fi
23676
23677# Check whether --enable-jit or --disable-jit was given.
John Criswell7a73b802003-06-30 21:59:07 +000023678if test "${enable_jit+set}" = set; then
23679 enableval="$enable_jit"
John Criswell7a73b802003-06-30 21:59:07 +000023680
23681else
John Criswellc78022e2003-07-29 19:11:58 +000023682 enableval=default
John Criswell7a73b802003-06-30 21:59:07 +000023683fi;
John Criswellb13092b2003-07-22 21:00:24 +000023684if test ${enableval} = "no"
23685then
23686 JIT=
23687
23688else
John Criswellc78022e2003-07-29 19:11:58 +000023689 case $target in
23690 *i*86*)
23691 JIT=TARGET_HAS_JIT=1
John Criswellb13092b2003-07-22 21:00:24 +000023692
John Criswellc78022e2003-07-29 19:11:58 +000023693 ;;
23694 *sparc*)
23695 JIT=TARGET_HAS_JIT=1
23696
23697 ;;
23698 *)
23699 JIT=
23700
23701 ;;
23702 esac
John Criswellb13092b2003-07-22 21:00:24 +000023703fi
John Criswell7a73b802003-06-30 21:59:07 +000023704
23705
John Criswell7a73b802003-06-30 21:59:07 +000023706# Check whether --with-llvmgccdir or --without-llvmgccdir was given.
23707if test "${with_llvmgccdir+set}" = set; then
23708 withval="$with_llvmgccdir"
23709 LLVMGCCDIR=$withval
23710
23711fi;
Brian Gaekef3b24102003-11-16 18:38:14 +000023712echo "$as_me:$LINENO: checking for llvm-gcc" >&5
23713echo $ECHO_N "checking for llvm-gcc... $ECHO_C" >&6
23714LLVM_GCC_CHECK=no
23715if test -d "$LLVMGCCDIR"
23716then
23717 if test -x "$LLVMGCCDIR/bin/gcc"
23718 then
23719 LLVM_GCC_CHECK="$LLVMGCCDIR/bin/gcc"
23720 fi
23721fi
23722llvmgccwarn=no
23723echo "$as_me:$LINENO: result: $LLVM_GCC_CHECK" >&5
23724echo "${ECHO_T}$LLVM_GCC_CHECK" >&6
23725if test "$LLVM_GCC_CHECK" = "no"
23726then
23727 llvmgccwarn=yes
23728fi
Brian Gaekef3b24102003-11-16 18:38:14 +000023729echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
23730echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
23731LLVM_GCC_SANE=no
23732if test -x "$LLVM_GCC_CHECK"
23733then
23734 cp /dev/null conftest.c
23735 "$LLVM_GCC_CHECK" -S -o - conftest.c | grep implementation > /dev/null 2>&1
23736 if test $? -eq 0
23737 then
23738 LLVM_GCC_SANE=yes
23739 fi
23740 rm conftest.c
Brian Gaeke2f50a042004-01-16 21:31:21 +000023741 llvmcc1path=`"$LLVM_GCC_CHECK" --print-prog-name=cc1`
Brian Gaeke554831c2004-01-21 19:39:29 +000023742 LLVMCC1=$llvmcc1path
Brian Gaeke2f50a042004-01-16 21:31:21 +000023743
23744 llvmcc1pluspath=`"$LLVM_GCC_CHECK" --print-prog-name=cc1plus`
Brian Gaeke554831c2004-01-21 19:39:29 +000023745 LLVMCC1PLUS=$llvmcc1pluspath
Brian Gaeke2f50a042004-01-16 21:31:21 +000023746
Brian Gaekef3b24102003-11-16 18:38:14 +000023747fi
23748echo "$as_me:$LINENO: result: $LLVM_GCC_SANE" >&5
23749echo "${ECHO_T}$LLVM_GCC_SANE" >&6
23750if test "$LLVM_GCC_SANE" = "no"
23751then
23752 llvmgccwarn=yes
23753fi
23754
John Criswellc78022e2003-07-29 19:11:58 +000023755
John Criswell7a73b802003-06-30 21:59:07 +000023756# Check whether --with-bcrepos or --without-bcrepos was given.
23757if test "${with_bcrepos+set}" = set; then
23758 withval="$with_bcrepos"
23759 BCR=$withval
23760
23761else
23762 BCR=/home/vadve/lattner/LLVMPrograms
23763
23764fi;
23765
John Criswellc78022e2003-07-29 19:11:58 +000023766
John Criswell7a73b802003-06-30 21:59:07 +000023767# Check whether --with-papi or --without-papi was given.
23768if test "${with_papi+set}" = set; then
23769 withval="$with_papi"
23770 PAPIDIR=$withval
23771
23772else
John Criswellde00db22003-08-25 16:49:54 +000023773 PAPIDIR=/home/vadve/shared/Sparc/papi-2.3.4.1
John Criswell7a73b802003-06-30 21:59:07 +000023774
23775fi;
23776
Brian Gaeke554831c2004-01-21 19:39:29 +000023777echo "$as_me:$LINENO: checking for shared library suffix" >&5
23778echo $ECHO_N "checking for shared library suffix... $ECHO_C" >&6
23779eval "SHLIBEXT=$shrext"
23780echo "$as_me:$LINENO: result: $SHLIBEXT" >&5
23781echo "${ECHO_T}$SHLIBEXT" >&6
23782SHLIBEXT=$SHLIBEXT
23783
23784
23785cat >>confdefs.h <<_ACEOF
23786#define SHLIBEXT "$SHLIBEXT"
23787_ACEOF
23788
23789
Reid Spencere9de0912004-08-20 09:03:57 +000023790# Translate the various configuration directories and other basic
23791# information into substitutions that will end up in config.h.in so
23792# that these configured values can be hard-wired into a program.
23793eval LLVM_PREFIX="${prefix}";
23794eval LLVM_BINDIR="${prefix}/bin";
23795eval LLVM_LIBDIR="${prefix}/lib";
23796eval LLVM_DATADIR="${prefix}/data";
23797eval LLVM_DOCSDIR="${prefix}/docs";
23798eval LLVM_ETCDIR="${prefix}/etc";
23799eval LLVM_INCLUDEDIR="${prefix}/include";
23800eval LLVM_INFODIR="${prefix}/info";
23801eval LLVM_MANDIR="${prefix}/man";
23802LLVM_CONFIGTIME=`date`
23803
23804
23805
23806
23807
23808
23809
23810
23811
23812
23813
23814cat >>confdefs.h <<_ACEOF
23815#define LLVM_PREFIX "$LLVM_PREFIX"
23816_ACEOF
23817
23818
23819cat >>confdefs.h <<_ACEOF
23820#define LLVM_BINDIR "$LLVM_BINDIR"
23821_ACEOF
23822
23823
23824cat >>confdefs.h <<_ACEOF
23825#define LLVM_LIBDIR "$LLVM_LIBDIR"
23826_ACEOF
23827
23828
23829cat >>confdefs.h <<_ACEOF
23830#define LLVM_DATADIR "$LLVM_DATADIR"
23831_ACEOF
23832
23833
23834cat >>confdefs.h <<_ACEOF
23835#define LLVM_DATADIR "$LLVM_DOCSDIR"
23836_ACEOF
23837
23838
23839cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000023840#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000023841_ACEOF
23842
23843
23844cat >>confdefs.h <<_ACEOF
23845#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
23846_ACEOF
23847
23848
23849cat >>confdefs.h <<_ACEOF
23850#define LLVM_INFODIR "$LLVM_INFODIR"
23851_ACEOF
23852
23853
23854cat >>confdefs.h <<_ACEOF
23855#define LLVM_MANDIR "$LLVM_MANDIR"
23856_ACEOF
23857
23858
23859cat >>confdefs.h <<_ACEOF
23860#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
23861_ACEOF
23862
23863
John Criswell7a73b802003-06-30 21:59:07 +000023864cat >confcache <<\_ACEOF
23865# This file is a shell script that caches the results of configure
23866# tests run on this system so they can be shared between configure
23867# scripts and configure runs, see configure's option --config-cache.
23868# It is not useful on other systems. If it contains results you don't
23869# want to keep, you may remove or edit it.
23870#
23871# config.status only pays attention to the cache file if you give it
23872# the --recheck option to rerun configure.
23873#
John Criswell0c38eaf2003-09-10 15:17:25 +000023874# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000023875# loading this file, other *unset* `ac_cv_foo' will be assigned the
23876# following values.
23877
23878_ACEOF
23879
23880# The following way of writing the cache mishandles newlines in values,
23881# but we know of no workaround that is simple, portable, and efficient.
23882# So, don't put newlines in cache variables' values.
23883# Ultrix sh set writes to stderr and can't be redirected directly,
23884# and sets the high bit in the cache file unless we assign to the vars.
23885{
23886 (set) 2>&1 |
23887 case `(ac_space=' '; set | grep ac_space) 2>&1` in
23888 *ac_space=\ *)
23889 # `set' does not quote correctly, so add quotes (double-quote
23890 # substitution turns \\\\ into \\, and sed turns \\ into \).
23891 sed -n \
Reid Spencer2b51a082004-08-04 00:34:49 +000023892 "s/'/'\\\\''/g;
23893 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
John Criswell7a73b802003-06-30 21:59:07 +000023894 ;;
23895 *)
23896 # `set' quotes correctly as required by POSIX, so do not add quotes.
23897 sed -n \
Reid Spencer2b51a082004-08-04 00:34:49 +000023898 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
John Criswell7a73b802003-06-30 21:59:07 +000023899 ;;
23900 esac;
23901} |
23902 sed '
23903 t clear
23904 : clear
23905 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23906 t end
23907 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23908 : end' >>confcache
John Criswell0c38eaf2003-09-10 15:17:25 +000023909if diff $cache_file confcache >/dev/null 2>&1; then :; else
John Criswell7a73b802003-06-30 21:59:07 +000023910 if test -w $cache_file; then
23911 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
23912 cat confcache >$cache_file
23913 else
23914 echo "not updating unwritable cache $cache_file"
23915 fi
23916fi
23917rm -f confcache
23918
23919test "x$prefix" = xNONE && prefix=$ac_default_prefix
23920# Let make expand exec_prefix.
23921test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23922
23923# VPATH may cause trouble with some makes, so we remove $(srcdir),
23924# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23925# trailing colons and then remove the whole line if VPATH becomes empty
23926# (actually we leave an empty line to preserve line numbers).
23927if test "x$srcdir" = x.; then
Reid Spencer2b51a082004-08-04 00:34:49 +000023928 ac_vpsub='/^[ ]*VPATH[ ]*=/{
John Criswell7a73b802003-06-30 21:59:07 +000023929s/:*\$(srcdir):*/:/;
23930s/:*\${srcdir}:*/:/;
23931s/:*@srcdir@:*/:/;
Reid Spencer2b51a082004-08-04 00:34:49 +000023932s/^\([^=]*=[ ]*\):*/\1/;
John Criswell7a73b802003-06-30 21:59:07 +000023933s/:*$//;
Reid Spencer2b51a082004-08-04 00:34:49 +000023934s/^[^=]*=[ ]*$//;
John Criswell7a73b802003-06-30 21:59:07 +000023935}'
23936fi
23937
23938DEFS=-DHAVE_CONFIG_H
23939
John Criswell0c38eaf2003-09-10 15:17:25 +000023940ac_libobjs=
23941ac_ltlibobjs=
23942for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23943 # 1. Remove the extension, and $U if already installed.
23944 ac_i=`echo "$ac_i" |
Reid Spencer2b51a082004-08-04 00:34:49 +000023945 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
John Criswell0c38eaf2003-09-10 15:17:25 +000023946 # 2. Add them.
23947 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
23948 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
23949done
23950LIBOBJS=$ac_libobjs
23951
23952LTLIBOBJS=$ac_ltlibobjs
23953
23954
John Criswell7a73b802003-06-30 21:59:07 +000023955
23956: ${CONFIG_STATUS=./config.status}
23957ac_clean_files_save=$ac_clean_files
23958ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23959{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23960echo "$as_me: creating $CONFIG_STATUS" >&6;}
23961cat >$CONFIG_STATUS <<_ACEOF
23962#! $SHELL
23963# Generated by $as_me.
23964# Run this file to recreate the current configuration.
23965# Compiler output produced by configure, useful for debugging
23966# configure, is in config.log if it exists.
23967
23968debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000023969ac_cs_recheck=false
23970ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000023971SHELL=\${CONFIG_SHELL-$SHELL}
23972_ACEOF
23973
23974cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000023975## --------------------- ##
23976## M4sh Initialization. ##
23977## --------------------- ##
23978
23979# Be Bourne compatible
23980if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23981 emulate sh
23982 NULLCMD=:
John Criswell0c38eaf2003-09-10 15:17:25 +000023983 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23984 # is contrary to our usage. Disable this feature.
23985 alias -g '${1+"$@"}'='"$@"'
John Criswell7a73b802003-06-30 21:59:07 +000023986elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23987 set -o posix
23988fi
Reid Spencer2b51a082004-08-04 00:34:49 +000023989DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000023990
John Criswell7a73b802003-06-30 21:59:07 +000023991# Support unset when possible.
Reid Spencer2b51a082004-08-04 00:34:49 +000023992if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000023993 as_unset=unset
23994else
23995 as_unset=false
23996fi
23997
John Criswell0c38eaf2003-09-10 15:17:25 +000023998
23999# Work around bugs in pre-3.0 UWIN ksh.
24000$as_unset ENV MAIL MAILPATH
24001PS1='$ '
24002PS2='> '
24003PS4='+ '
24004
24005# NLS nuisances.
24006for as_var in \
24007 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24008 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24009 LC_TELEPHONE LC_TIME
24010do
Reid Spencer2b51a082004-08-04 00:34:49 +000024011 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
John Criswell0c38eaf2003-09-10 15:17:25 +000024012 eval $as_var=C; export $as_var
24013 else
24014 $as_unset $as_var
24015 fi
24016done
24017
24018# Required to use basename.
24019if expr a : '\(a\)' >/dev/null 2>&1; then
24020 as_expr=expr
24021else
24022 as_expr=false
24023fi
24024
24025if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
24026 as_basename=basename
24027else
24028 as_basename=false
24029fi
John Criswell7a73b802003-06-30 21:59:07 +000024030
24031
24032# Name of the executable.
John Criswell0c38eaf2003-09-10 15:17:25 +000024033as_me=`$as_basename "$0" ||
John Criswell7a73b802003-06-30 21:59:07 +000024034$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24035 X"$0" : 'X\(//\)$' \| \
24036 X"$0" : 'X\(/\)$' \| \
24037 . : '\(.\)' 2>/dev/null ||
24038echo X/"$0" |
24039 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
24040 /^X\/\(\/\/\)$/{ s//\1/; q; }
24041 /^X\/\(\/\).*/{ s//\1/; q; }
24042 s/.*/./; q'`
24043
John Criswell0c38eaf2003-09-10 15:17:25 +000024044
John Criswell7a73b802003-06-30 21:59:07 +000024045# PATH needs CR, and LINENO needs CR and PATH.
24046# Avoid depending upon Character Ranges.
24047as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24048as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24049as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24050as_cr_digits='0123456789'
24051as_cr_alnum=$as_cr_Letters$as_cr_digits
24052
24053# The user is always right.
24054if test "${PATH_SEPARATOR+set}" != set; then
John Criswell0c38eaf2003-09-10 15:17:25 +000024055 echo "#! /bin/sh" >conf$$.sh
24056 echo "exit 0" >>conf$$.sh
24057 chmod +x conf$$.sh
24058 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000024059 PATH_SEPARATOR=';'
24060 else
24061 PATH_SEPARATOR=:
24062 fi
John Criswell0c38eaf2003-09-10 15:17:25 +000024063 rm -f conf$$.sh
John Criswell7a73b802003-06-30 21:59:07 +000024064fi
24065
24066
24067 as_lineno_1=$LINENO
24068 as_lineno_2=$LINENO
24069 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24070 test "x$as_lineno_1" != "x$as_lineno_2" &&
24071 test "x$as_lineno_3" = "x$as_lineno_2" || {
24072 # Find who we are. Look in the path if we contain no path at all
24073 # relative or not.
24074 case $0 in
24075 *[\\/]* ) as_myself=$0 ;;
24076 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24077for as_dir in $PATH
24078do
24079 IFS=$as_save_IFS
24080 test -z "$as_dir" && as_dir=.
24081 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24082done
24083
24084 ;;
24085 esac
24086 # We did not find ourselves, most probably we were run as `sh COMMAND'
24087 # in which case we are not to be found in the path.
24088 if test "x$as_myself" = x; then
24089 as_myself=$0
24090 fi
24091 if test ! -f "$as_myself"; then
24092 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
24093echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
24094 { (exit 1); exit 1; }; }
24095 fi
24096 case $CONFIG_SHELL in
24097 '')
24098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24099for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
24100do
24101 IFS=$as_save_IFS
24102 test -z "$as_dir" && as_dir=.
24103 for as_base in sh bash ksh sh5; do
24104 case $as_dir in
24105 /*)
24106 if ("$as_dir/$as_base" -c '
24107 as_lineno_1=$LINENO
24108 as_lineno_2=$LINENO
24109 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24110 test "x$as_lineno_1" != "x$as_lineno_2" &&
24111 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
John Criswell0c38eaf2003-09-10 15:17:25 +000024112 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
24113 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
John Criswell7a73b802003-06-30 21:59:07 +000024114 CONFIG_SHELL=$as_dir/$as_base
24115 export CONFIG_SHELL
24116 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
24117 fi;;
24118 esac
24119 done
24120done
24121;;
24122 esac
24123
24124 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24125 # uniformly replaced by the line number. The first 'sed' inserts a
24126 # line-number line before each line; the second 'sed' does the real
24127 # work. The second script uses 'N' to pair each line-number line
24128 # with the numbered line, and appends trailing '-' during
24129 # substitution so that $LINENO is not a special case at line end.
24130 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24131 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
24132 sed '=' <$as_myself |
24133 sed '
24134 N
24135 s,$,-,
24136 : loop
24137 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
24138 t loop
24139 s,-$,,
24140 s,^['$as_cr_digits']*\n,,
24141 ' >$as_me.lineno &&
24142 chmod +x $as_me.lineno ||
24143 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
24144echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
24145 { (exit 1); exit 1; }; }
24146
24147 # Don't try to exec as it changes $[0], causing all sort of problems
24148 # (the dirname of $[0] is not the place where we might find the
24149 # original and so on. Autoconf is especially sensible to this).
24150 . ./$as_me.lineno
24151 # Exit status is that of the last command.
24152 exit
24153}
24154
24155
24156case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
24157 *c*,-n*) ECHO_N= ECHO_C='
24158' ECHO_T=' ' ;;
24159 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
24160 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
24161esac
24162
24163if expr a : '\(a\)' >/dev/null 2>&1; then
24164 as_expr=expr
24165else
24166 as_expr=false
24167fi
24168
24169rm -f conf$$ conf$$.exe conf$$.file
24170echo >conf$$.file
24171if ln -s conf$$.file conf$$ 2>/dev/null; then
24172 # We could just check for DJGPP; but this test a) works b) is more generic
24173 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
24174 if test -f conf$$.exe; then
24175 # Don't use ln at all; we don't have any links
24176 as_ln_s='cp -p'
24177 else
24178 as_ln_s='ln -s'
24179 fi
24180elif ln conf$$.file conf$$ 2>/dev/null; then
24181 as_ln_s=ln
24182else
24183 as_ln_s='cp -p'
24184fi
24185rm -f conf$$ conf$$.exe conf$$.file
24186
John Criswell0c38eaf2003-09-10 15:17:25 +000024187if mkdir -p . 2>/dev/null; then
24188 as_mkdir_p=:
24189else
Reid Spencer2b51a082004-08-04 00:34:49 +000024190 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000024191 as_mkdir_p=false
24192fi
24193
John Criswell7a73b802003-06-30 21:59:07 +000024194as_executable_p="test -f"
24195
24196# Sed expression to map a string onto a valid CPP name.
Reid Spencer2b51a082004-08-04 00:34:49 +000024197as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000024198
24199# Sed expression to map a string onto a valid variable name.
Reid Spencer2b51a082004-08-04 00:34:49 +000024200as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000024201
24202
24203# IFS
24204# We need space, tab and new line, in precisely that order.
24205as_nl='
24206'
24207IFS=" $as_nl"
24208
24209# CDPATH.
John Criswell0c38eaf2003-09-10 15:17:25 +000024210$as_unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000024211
24212exec 6>&1
24213
24214# Open the log real soon, to keep \$[0] and so on meaningful, and to
24215# report actual input values of CONFIG_FILES etc. instead of their
24216# values after options handling. Logging --version etc. is OK.
24217exec 5>>config.log
24218{
24219 echo
24220 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24221## Running $as_me. ##
24222_ASBOX
24223} >&5
24224cat >&5 <<_CSEOF
24225
Reid Spencere9de0912004-08-20 09:03:57 +000024226This file was extended by LLVM $as_me 1.4, which was
Reid Spencer2b51a082004-08-04 00:34:49 +000024227generated by GNU Autoconf 2.59. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000024228
24229 CONFIG_FILES = $CONFIG_FILES
24230 CONFIG_HEADERS = $CONFIG_HEADERS
24231 CONFIG_LINKS = $CONFIG_LINKS
24232 CONFIG_COMMANDS = $CONFIG_COMMANDS
24233 $ $0 $@
24234
24235_CSEOF
24236echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
24237echo >&5
24238_ACEOF
24239
24240# Files that config.status was made for.
24241if test -n "$ac_config_files"; then
24242 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
24243fi
24244
24245if test -n "$ac_config_headers"; then
24246 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
24247fi
24248
24249if test -n "$ac_config_links"; then
24250 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
24251fi
24252
24253if test -n "$ac_config_commands"; then
24254 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
24255fi
24256
24257cat >>$CONFIG_STATUS <<\_ACEOF
24258
24259ac_cs_usage="\
24260\`$as_me' instantiates files from templates according to the
24261current configuration.
24262
24263Usage: $0 [OPTIONS] [FILE]...
24264
24265 -h, --help print this help, then exit
24266 -V, --version print version number, then exit
John Criswell0c38eaf2003-09-10 15:17:25 +000024267 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000024268 -d, --debug don't remove temporary files
24269 --recheck update $as_me by reconfiguring in the same conditions
24270 --file=FILE[:TEMPLATE]
Reid Spencer2b51a082004-08-04 00:34:49 +000024271 instantiate the configuration file FILE
John Criswell7a73b802003-06-30 21:59:07 +000024272 --header=FILE[:TEMPLATE]
Reid Spencer2b51a082004-08-04 00:34:49 +000024273 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000024274
24275Configuration files:
24276$config_files
24277
24278Configuration headers:
24279$config_headers
24280
Reid Spencerde8c47f2004-08-29 19:35:28 +000024281Configuration links:
24282$config_links
24283
John Criswellc764fbc2003-09-06 15:17:13 +000024284Configuration commands:
24285$config_commands
24286
John Criswell7a73b802003-06-30 21:59:07 +000024287Report bugs to <bug-autoconf@gnu.org>."
24288_ACEOF
24289
24290cat >>$CONFIG_STATUS <<_ACEOF
24291ac_cs_version="\\
Reid Spencere9de0912004-08-20 09:03:57 +000024292LLVM config.status 1.4
Reid Spencer2b51a082004-08-04 00:34:49 +000024293configured by $0, generated by GNU Autoconf 2.59,
John Criswell7a73b802003-06-30 21:59:07 +000024294 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
24295
Reid Spencer2b51a082004-08-04 00:34:49 +000024296Copyright (C) 2003 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000024297This config.status script is free software; the Free Software Foundation
24298gives unlimited permission to copy, distribute and modify it."
24299srcdir=$srcdir
24300INSTALL="$INSTALL"
24301_ACEOF
24302
24303cat >>$CONFIG_STATUS <<\_ACEOF
24304# If no file are specified by the user, then we need to provide default
24305# value. By we need to know if files were specified by the user.
24306ac_need_defaults=:
24307while test $# != 0
24308do
24309 case $1 in
24310 --*=*)
24311 ac_option=`expr "x$1" : 'x\([^=]*\)='`
24312 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000024313 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000024314 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000024315 -*)
24316 ac_option=$1
24317 ac_optarg=$2
24318 ac_shift=shift
24319 ;;
John Criswell7a73b802003-06-30 21:59:07 +000024320 *) # This is not an option, so the user has probably given explicit
24321 # arguments.
John Criswell0c38eaf2003-09-10 15:17:25 +000024322 ac_option=$1
John Criswell7a73b802003-06-30 21:59:07 +000024323 ac_need_defaults=false;;
24324 esac
24325
John Criswell0c38eaf2003-09-10 15:17:25 +000024326 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000024327 # Handling of the options.
24328_ACEOF
John Criswelld9cd1442003-09-09 20:52:17 +000024329cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024330 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24331 ac_cs_recheck=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000024332 --version | --vers* | -V )
24333 echo "$ac_cs_version"; exit 0 ;;
24334 --he | --h)
24335 # Conflict between --help and --header
24336 { { echo "$as_me:$LINENO: error: ambiguous option: $1
24337Try \`$0 --help' for more information." >&5
24338echo "$as_me: error: ambiguous option: $1
24339Try \`$0 --help' for more information." >&2;}
24340 { (exit 1); exit 1; }; };;
24341 --help | --hel | -h )
24342 echo "$ac_cs_usage"; exit 0 ;;
24343 --debug | --d* | -d )
24344 debug=: ;;
24345 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000024346 $ac_shift
24347 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000024348 ac_need_defaults=false;;
24349 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000024350 $ac_shift
24351 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000024352 ac_need_defaults=false;;
John Criswell0c38eaf2003-09-10 15:17:25 +000024353 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24354 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24355 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000024356
24357 # This is an error.
24358 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
24359Try \`$0 --help' for more information." >&5
24360echo "$as_me: error: unrecognized option: $1
24361Try \`$0 --help' for more information." >&2;}
24362 { (exit 1); exit 1; }; } ;;
24363
24364 *) ac_config_targets="$ac_config_targets $1" ;;
24365
24366 esac
24367 shift
24368done
24369
John Criswell0c38eaf2003-09-10 15:17:25 +000024370ac_configure_extra_args=
24371
24372if $ac_cs_silent; then
24373 exec 6>/dev/null
24374 ac_configure_extra_args="$ac_configure_extra_args --silent"
24375fi
24376
24377_ACEOF
24378cat >>$CONFIG_STATUS <<_ACEOF
24379if \$ac_cs_recheck; then
24380 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24381 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24382fi
24383
John Criswell7a73b802003-06-30 21:59:07 +000024384_ACEOF
24385
John Criswellc764fbc2003-09-06 15:17:13 +000024386cat >>$CONFIG_STATUS <<_ACEOF
24387#
24388# INIT-COMMANDS section.
24389#
John Criswell7a73b802003-06-30 21:59:07 +000024390
John Criswellc764fbc2003-09-06 15:17:13 +000024391${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
24392${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common`
Reid Spencer5f285392004-08-24 16:32:21 +000024393${srcdir}/autoconf/mkinstalldirs `dirname examples/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000024394${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000024395${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000024396${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile`
24397${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
John Criswellf424d742003-10-07 21:13:47 +000024398${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvm.py`
24399${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvmdb.py`
John Criswellc764fbc2003-09-06 15:17:13 +000024400${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile`
24401${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile.programs`
John Criswell8a54a1e2004-06-22 21:35:10 +000024402${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile.tests`
John Criswellc764fbc2003-09-06 15:17:13 +000024403${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.Makefile`
24404${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.report`
John Criswellc764fbc2003-09-06 15:17:13 +000024405${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.report`
24406${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.example.Makefile`
24407${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.Makefile`
24408${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.buildrepo.Makefile`
24409${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.Makefile`
24410${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.report`
24411${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.Makefile`
24412${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.report`
24413${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.typesafe.Makefile`
24414${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.gnuplot`
John Criswell878be7d2004-02-24 21:43:38 +000024415${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.vtl.Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000024416${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/Makefile`
24417${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile`
John Criswell613758d2003-09-11 18:03:50 +000024418${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile.spec`
Alkis Evlogimenos271143f2004-02-26 04:14:10 +000024419${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile.spec2000`
John Criswellcf2e9f72004-02-10 22:36:35 +000024420${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile.spec95`
John Criswellc764fbc2003-09-06 15:17:13 +000024421${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile`
24422${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile.multisrc`
Misha Brukman811ce9f2003-11-12 22:16:51 +000024423${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in`
24424${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile`
24425${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in`
24426${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile`
24427${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in`
24428${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile`
24429${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in`
24430${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile`
24431${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in`
24432${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile`
24433${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in`
24434${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile`
24435${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in`
John Criswellc764fbc2003-09-06 15:17:13 +000024436${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile`
24437${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile.singlesrc`
Alkis Evlogimenos271143f2004-02-26 04:14:10 +000024438${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000024439${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
Brian Gaekec45be042003-10-07 06:01:34 +000024440${srcdir}/autoconf/mkinstalldirs `dirname utils/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000024441${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000024442
24443_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000024444
24445
24446
24447cat >>$CONFIG_STATUS <<\_ACEOF
24448for ac_config_target in $ac_config_targets
24449do
24450 case "$ac_config_target" in
24451 # Handling of arguments.
24452 "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Brian Gaeke6c3fd812004-02-23 22:07:00 +000024453 "include/Support/DataTypes.h" ) CONFIG_FILES="$CONFIG_FILES include/Support/DataTypes.h" ;;
24454 "include/Support/ThreadSupport.h" ) CONFIG_FILES="$CONFIG_FILES include/Support/ThreadSupport.h" ;;
Brian Gaeke793c5f22004-02-23 18:56:02 +000024455 "include/Support/hash_map" ) CONFIG_FILES="$CONFIG_FILES include/Support/hash_map" ;;
24456 "include/Support/hash_set" ) CONFIG_FILES="$CONFIG_FILES include/Support/hash_set" ;;
Brian Gaeke6c3fd812004-02-23 22:07:00 +000024457 "include/Support/iterator" ) CONFIG_FILES="$CONFIG_FILES include/Support/iterator" ;;
Reid Spencerde8c47f2004-08-29 19:35:28 +000024458 "lib/System/platform" ) CONFIG_LINKS="$CONFIG_LINKS lib/System/platform:lib/System/$platform_type" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024459 "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
24460 "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
Reid Spencer5f285392004-08-24 16:32:21 +000024461 "examples/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024462 "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024463 "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024464 "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
24465 "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
John Criswellf424d742003-10-07 21:13:47 +000024466 "test/QMTest/llvm.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvm.py" ;;
24467 "test/QMTest/llvmdb.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvmdb.py" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024468 "test/Programs/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile" ;;
24469 "test/Programs/Makefile.programs" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile.programs" ;;
John Criswell8a54a1e2004-06-22 21:35:10 +000024470 "test/Programs/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile.tests" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024471 "test/Programs/TEST.aa.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.Makefile" ;;
24472 "test/Programs/TEST.dsgraph.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.report" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024473 "test/Programs/TEST.aa.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.report" ;;
24474 "test/Programs/TEST.example.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.example.Makefile" ;;
24475 "test/Programs/TEST.nightly.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.Makefile" ;;
24476 "test/Programs/TEST.buildrepo.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.buildrepo.Makefile" ;;
24477 "test/Programs/TEST.jit.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.Makefile" ;;
24478 "test/Programs/TEST.nightly.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.report" ;;
24479 "test/Programs/TEST.dsgraph.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.Makefile" ;;
24480 "test/Programs/TEST.jit.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.report" ;;
24481 "test/Programs/TEST.typesafe.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.typesafe.Makefile" ;;
24482 "test/Programs/TEST.dsgraph.gnuplot" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.gnuplot" ;;
John Criswell878be7d2004-02-24 21:43:38 +000024483 "test/Programs/TEST.vtl.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.vtl.Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024484 "test/Programs/External/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/Makefile" ;;
24485 "test/Programs/External/SPEC/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile" ;;
John Criswell613758d2003-09-11 18:03:50 +000024486 "test/Programs/External/SPEC/Makefile.spec" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile.spec" ;;
Alkis Evlogimenos271143f2004-02-26 04:14:10 +000024487 "test/Programs/External/SPEC/Makefile.spec2000" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile.spec2000" ;;
John Criswellcf2e9f72004-02-10 22:36:35 +000024488 "test/Programs/External/SPEC/Makefile.spec95" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile.spec95" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024489 "test/Programs/MultiSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile" ;;
24490 "test/Programs/MultiSource/Makefile.multisrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile.multisrc" ;;
Misha Brukman811ce9f2003-11-12 22:16:51 +000024491 "test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in" ;;
24492 "test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile" ;;
24493 "test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in" ;;
24494 "test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile" ;;
24495 "test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in" ;;
24496 "test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile" ;;
24497 "test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in" ;;
24498 "test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile" ;;
24499 "test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in" ;;
24500 "test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile" ;;
24501 "test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in" ;;
24502 "test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile" ;;
24503 "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 +000024504 "test/Programs/SingleSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile" ;;
24505 "test/Programs/SingleSource/Makefile.singlesrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile.singlesrc" ;;
Alkis Evlogimenos271143f2004-02-26 04:14:10 +000024506 "test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024507 "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
Brian Gaekec45be042003-10-07 06:01:34 +000024508 "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024509 "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
John Criswell7a73b802003-06-30 21:59:07 +000024510 "include/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/Config/config.h" ;;
24511 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24512echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24513 { (exit 1); exit 1; }; };;
24514 esac
24515done
24516
24517# If the user did not use the arguments to specify the items to instantiate,
24518# then the envvar interface is used. Set only those that are not.
24519# We use the long form for the default assignment because of an extremely
24520# bizarre bug on SunOS 4.1.3.
24521if $ac_need_defaults; then
24522 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24523 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
Reid Spencerde8c47f2004-08-29 19:35:28 +000024524 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
John Criswellc764fbc2003-09-06 15:17:13 +000024525 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000024526fi
24527
John Criswell0c38eaf2003-09-10 15:17:25 +000024528# Have a temporary directory for convenience. Make it in the build tree
24529# simply because there is no reason to put it here, and in addition,
24530# creating and moving files from /tmp can sometimes cause problems.
John Criswell7a73b802003-06-30 21:59:07 +000024531# Create a temporary directory, and hook for its removal unless debugging.
24532$debug ||
24533{
24534 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
24535 trap '{ (exit 1); exit 1; }' 1 2 13 15
24536}
24537
24538# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000024539
John Criswell7a73b802003-06-30 21:59:07 +000024540{
John Criswell0c38eaf2003-09-10 15:17:25 +000024541 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000024542 test -n "$tmp" && test -d "$tmp"
24543} ||
24544{
John Criswell0c38eaf2003-09-10 15:17:25 +000024545 tmp=./confstat$$-$RANDOM
John Criswell7a73b802003-06-30 21:59:07 +000024546 (umask 077 && mkdir $tmp)
24547} ||
24548{
John Criswell0c38eaf2003-09-10 15:17:25 +000024549 echo "$me: cannot create a temporary directory in ." >&2
John Criswell7a73b802003-06-30 21:59:07 +000024550 { (exit 1); exit 1; }
24551}
24552
24553_ACEOF
24554
24555cat >>$CONFIG_STATUS <<_ACEOF
24556
24557#
24558# CONFIG_FILES section.
24559#
24560
24561# No need to generate the scripts if there are no CONFIG_FILES.
24562# This happens for instance when ./config.status config.h
24563if test -n "\$CONFIG_FILES"; then
24564 # Protect against being on the right side of a sed subst in config.status.
24565 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
24566 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
24567s,@SHELL@,$SHELL,;t t
24568s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
24569s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
24570s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
24571s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
24572s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
24573s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
24574s,@exec_prefix@,$exec_prefix,;t t
24575s,@prefix@,$prefix,;t t
24576s,@program_transform_name@,$program_transform_name,;t t
24577s,@bindir@,$bindir,;t t
24578s,@sbindir@,$sbindir,;t t
24579s,@libexecdir@,$libexecdir,;t t
24580s,@datadir@,$datadir,;t t
24581s,@sysconfdir@,$sysconfdir,;t t
24582s,@sharedstatedir@,$sharedstatedir,;t t
24583s,@localstatedir@,$localstatedir,;t t
24584s,@libdir@,$libdir,;t t
24585s,@includedir@,$includedir,;t t
24586s,@oldincludedir@,$oldincludedir,;t t
24587s,@infodir@,$infodir,;t t
24588s,@mandir@,$mandir,;t t
24589s,@build_alias@,$build_alias,;t t
24590s,@host_alias@,$host_alias,;t t
24591s,@target_alias@,$target_alias,;t t
24592s,@DEFS@,$DEFS,;t t
24593s,@ECHO_C@,$ECHO_C,;t t
24594s,@ECHO_N@,$ECHO_N,;t t
24595s,@ECHO_T@,$ECHO_T,;t t
24596s,@LIBS@,$LIBS,;t t
John Criswell12399a12003-09-30 15:55:44 +000024597s,@subdirs@,$subdirs,;t t
John Criswell7a73b802003-06-30 21:59:07 +000024598s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
24599s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
24600s,@INSTALL_DATA@,$INSTALL_DATA,;t t
24601s,@build@,$build,;t t
24602s,@build_cpu@,$build_cpu,;t t
24603s,@build_vendor@,$build_vendor,;t t
24604s,@build_os@,$build_os,;t t
24605s,@host@,$host,;t t
24606s,@host_cpu@,$host_cpu,;t t
24607s,@host_vendor@,$host_vendor,;t t
24608s,@host_os@,$host_os,;t t
24609s,@target@,$target,;t t
24610s,@target_cpu@,$target_cpu,;t t
24611s,@target_vendor@,$target_vendor,;t t
24612s,@target_os@,$target_os,;t t
24613s,@OS@,$OS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000024614s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
John Criswell76595452003-07-01 22:07:39 +000024615s,@ARCH@,$ARCH,;t t
John Criswell7a73b802003-06-30 21:59:07 +000024616s,@CXX@,$CXX,;t t
24617s,@CXXFLAGS@,$CXXFLAGS,;t t
24618s,@LDFLAGS@,$LDFLAGS,;t t
24619s,@CPPFLAGS@,$CPPFLAGS,;t t
24620s,@ac_ct_CXX@,$ac_ct_CXX,;t t
24621s,@EXEEXT@,$EXEEXT,;t t
24622s,@OBJEXT@,$OBJEXT,;t t
24623s,@CC@,$CC,;t t
24624s,@CFLAGS@,$CFLAGS,;t t
24625s,@ac_ct_CC@,$ac_ct_CC,;t t
24626s,@CPP@,$CPP,;t t
24627s,@ifGNUmake@,$ifGNUmake,;t t
24628s,@LEX@,$LEX,;t t
24629s,@LEXLIB@,$LEXLIB,;t t
24630s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
24631s,@YACC@,$YACC,;t t
Brian Gaeke12810632004-01-13 06:52:10 +000024632s,@BISON@,$BISON,;t t
John Criswell47fdd832003-07-14 16:52:07 +000024633s,@EGREP@,$EGREP,;t t
John Criswell7a73b802003-06-30 21:59:07 +000024634s,@LN_S@,$LN_S,;t t
24635s,@ECHO@,$ECHO,;t t
John Criswell47fdd832003-07-14 16:52:07 +000024636s,@AR@,$AR,;t t
24637s,@ac_ct_AR@,$ac_ct_AR,;t t
John Criswell7a73b802003-06-30 21:59:07 +000024638s,@RANLIB@,$RANLIB,;t t
24639s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
24640s,@STRIP@,$STRIP,;t t
24641s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
John Criswell47fdd832003-07-14 16:52:07 +000024642s,@CXXCPP@,$CXXCPP,;t t
24643s,@F77@,$F77,;t t
24644s,@FFLAGS@,$FFLAGS,;t t
24645s,@ac_ct_F77@,$ac_ct_F77,;t t
John Criswell7a73b802003-06-30 21:59:07 +000024646s,@LIBTOOL@,$LIBTOOL,;t t
John Criswell7a73b802003-06-30 21:59:07 +000024647s,@DOT@,$DOT,;t t
24648s,@ETAGS@,$ETAGS,;t t
Brian Gaekeafa3fbf2004-01-22 21:55:02 +000024649s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
John Criswellde00db22003-08-25 16:49:54 +000024650s,@PYTHON@,$PYTHON,;t t
24651s,@QMTEST@,$QMTEST,;t t
Brian Gaekec9a410c2004-02-23 21:30:37 +000024652s,@HAVE_PTHREAD_MUTEX_LOCK@,$HAVE_PTHREAD_MUTEX_LOCK,;t t
Brian Gaeke6c3fd812004-02-23 22:07:00 +000024653s,@INCLUDE_SYS_TYPES_H@,$INCLUDE_SYS_TYPES_H,;t t
24654s,@INCLUDE_INTTYPES_H@,$INCLUDE_INTTYPES_H,;t t
John Criswell7ed43ad2004-07-19 16:12:29 +000024655s,@INCLUDE_STDINT_H@,$INCLUDE_STDINT_H,;t t
John Criswell0021c312004-02-13 21:57:29 +000024656s,@ENDIAN@,$ENDIAN,;t t
Brian Gaeke793c5f22004-02-23 18:56:02 +000024657s,@HAVE_STD_EXT_HASH_MAP@,$HAVE_STD_EXT_HASH_MAP,;t t
24658s,@HAVE_GNU_EXT_HASH_MAP@,$HAVE_GNU_EXT_HASH_MAP,;t t
24659s,@HAVE_GLOBAL_HASH_MAP@,$HAVE_GLOBAL_HASH_MAP,;t t
24660s,@HAVE_STD_EXT_HASH_SET@,$HAVE_STD_EXT_HASH_SET,;t t
24661s,@HAVE_GNU_EXT_HASH_SET@,$HAVE_GNU_EXT_HASH_SET,;t t
24662s,@HAVE_GLOBAL_HASH_SET@,$HAVE_GLOBAL_HASH_SET,;t t
Brian Gaeke295d4b82004-02-23 18:16:06 +000024663s,@HAVE_STD_ITERATOR@,$HAVE_STD_ITERATOR,;t t
24664s,@HAVE_BI_ITERATOR@,$HAVE_BI_ITERATOR,;t t
24665s,@HAVE_FWD_ITERATOR@,$HAVE_FWD_ITERATOR,;t t
John Criswell7a73b802003-06-30 21:59:07 +000024666s,@ALLOCA@,$ALLOCA,;t t
John Criswell7a73b802003-06-30 21:59:07 +000024667s,@MMAP_FILE@,$MMAP_FILE,;t t
John Criswell7a73b802003-06-30 21:59:07 +000024668s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
John Criswellcf2e9f72004-02-10 22:36:35 +000024669s,@SPEC95_ROOT@,$SPEC95_ROOT,;t t
24670s,@USE_SPEC95@,$USE_SPEC95,;t t
Brian Gaekee773b862004-04-16 17:13:44 +000024671s,@SPEC2000_ROOT@,$SPEC2000_ROOT,;t t
24672s,@USE_SPEC2000@,$USE_SPEC2000,;t t
John Criswell0538d422004-02-20 22:30:22 +000024673s,@POVRAY_ROOT@,$POVRAY_ROOT,;t t
24674s,@USE_POVRAY@,$USE_POVRAY,;t t
John Criswell7a73b802003-06-30 21:59:07 +000024675s,@UPB@,$UPB,;t t
John Criswellf02dbf02003-07-22 20:07:49 +000024676s,@DISABLE_LLC_DIFFS@,$DISABLE_LLC_DIFFS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000024677s,@JIT@,$JIT,;t t
Brian Gaeke2f50a042004-01-16 21:31:21 +000024678s,@LLVMCC1@,$LLVMCC1,;t t
24679s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000024680s,@BCR@,$BCR,;t t
24681s,@PAPIDIR@,$PAPIDIR,;t t
Brian Gaeke554831c2004-01-21 19:39:29 +000024682s,@SHLIBEXT@,$SHLIBEXT,;t t
Reid Spencere9de0912004-08-20 09:03:57 +000024683s,@LLVM_PREFIX@,$LLVM_PREFIX,;t t
24684s,@LLVM_BINDIR@,$LLVM_BINDIR,;t t
24685s,@LLVM_LIBDIR@,$LLVM_LIBDIR,;t t
24686s,@LLVM_DATADIR@,$LLVM_DATADIR,;t t
24687s,@LLVM_DOCSDIR@,$LLVM_DOCSDIR,;t t
24688s,@LLVM_ETCDIR@,$LLVM_ETCDIR,;t t
24689s,@LLVM_INCLUDEDIR@,$LLVM_INCLUDEDIR,;t t
24690s,@LLVM_INFODIR@,$LLVM_INFODIR,;t t
24691s,@LLVM_MANDIR@,$LLVM_MANDIR,;t t
24692s,@LLVM_CONFIGTIME@,$LLVM_CONFIGTIME,;t t
Brian Gaeke26be9c52004-01-13 06:43:16 +000024693s,@LIBOBJS@,$LIBOBJS,;t t
John Criswell0c38eaf2003-09-10 15:17:25 +000024694s,@LTLIBOBJS@,$LTLIBOBJS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000024695CEOF
24696
24697_ACEOF
24698
24699 cat >>$CONFIG_STATUS <<\_ACEOF
24700 # Split the substitutions into bite-sized pieces for seds with
24701 # small command number limits, like on Digital OSF/1 and HP-UX.
24702 ac_max_sed_lines=48
24703 ac_sed_frag=1 # Number of current file.
24704 ac_beg=1 # First line for current file.
24705 ac_end=$ac_max_sed_lines # Line after last line for current file.
24706 ac_more_lines=:
24707 ac_sed_cmds=
24708 while $ac_more_lines; do
24709 if test $ac_beg -gt 1; then
24710 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24711 else
24712 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24713 fi
24714 if test ! -s $tmp/subs.frag; then
24715 ac_more_lines=false
24716 else
24717 # The purpose of the label and of the branching condition is to
24718 # speed up the sed processing (if there are no `@' at all, there
24719 # is no need to browse any of the substitutions).
24720 # These are the two extra sed commands mentioned above.
24721 (echo ':t
24722 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
24723 if test -z "$ac_sed_cmds"; then
Reid Spencer2b51a082004-08-04 00:34:49 +000024724 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
John Criswell7a73b802003-06-30 21:59:07 +000024725 else
Reid Spencer2b51a082004-08-04 00:34:49 +000024726 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
John Criswell7a73b802003-06-30 21:59:07 +000024727 fi
24728 ac_sed_frag=`expr $ac_sed_frag + 1`
24729 ac_beg=$ac_end
24730 ac_end=`expr $ac_end + $ac_max_sed_lines`
24731 fi
24732 done
24733 if test -z "$ac_sed_cmds"; then
24734 ac_sed_cmds=cat
24735 fi
24736fi # test -n "$CONFIG_FILES"
24737
24738_ACEOF
24739cat >>$CONFIG_STATUS <<\_ACEOF
24740for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
24741 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24742 case $ac_file in
24743 - | *:- | *:-:* ) # input from stdin
Reid Spencer2b51a082004-08-04 00:34:49 +000024744 cat >$tmp/stdin
24745 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24746 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000024747 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
Reid Spencer2b51a082004-08-04 00:34:49 +000024748 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000024749 * ) ac_file_in=$ac_file.in ;;
24750 esac
24751
24752 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
24753 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24754$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2b51a082004-08-04 00:34:49 +000024755 X"$ac_file" : 'X\(//\)[^/]' \| \
24756 X"$ac_file" : 'X\(//\)$' \| \
24757 X"$ac_file" : 'X\(/\)' \| \
24758 . : '\(.\)' 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +000024759echo X"$ac_file" |
24760 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24761 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24762 /^X\(\/\/\)$/{ s//\1/; q; }
24763 /^X\(\/\).*/{ s//\1/; q; }
24764 s/.*/./; q'`
John Criswell0c38eaf2003-09-10 15:17:25 +000024765 { if $as_mkdir_p; then
24766 mkdir -p "$ac_dir"
24767 else
24768 as_dir="$ac_dir"
24769 as_dirs=
24770 while test ! -d "$as_dir"; do
24771 as_dirs="$as_dir $as_dirs"
24772 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24773$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2b51a082004-08-04 00:34:49 +000024774 X"$as_dir" : 'X\(//\)[^/]' \| \
24775 X"$as_dir" : 'X\(//\)$' \| \
24776 X"$as_dir" : 'X\(/\)' \| \
24777 . : '\(.\)' 2>/dev/null ||
John Criswell0c38eaf2003-09-10 15:17:25 +000024778echo X"$as_dir" |
24779 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24780 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24781 /^X\(\/\/\)$/{ s//\1/; q; }
24782 /^X\(\/\).*/{ s//\1/; q; }
24783 s/.*/./; q'`
24784 done
24785 test ! -n "$as_dirs" || mkdir $as_dirs
24786 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24787echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24788 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000024789
24790 ac_builddir=.
24791
24792if test "$ac_dir" != .; then
24793 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24794 # A "../" for each directory in $ac_dir_suffix.
24795 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24796else
24797 ac_dir_suffix= ac_top_builddir=
24798fi
24799
24800case $srcdir in
24801 .) # No --srcdir option. We are building in place.
24802 ac_srcdir=.
24803 if test -z "$ac_top_builddir"; then
24804 ac_top_srcdir=.
24805 else
24806 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24807 fi ;;
24808 [\\/]* | ?:[\\/]* ) # Absolute path.
24809 ac_srcdir=$srcdir$ac_dir_suffix;
24810 ac_top_srcdir=$srcdir ;;
24811 *) # Relative path.
24812 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24813 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24814esac
Reid Spencer2b51a082004-08-04 00:34:49 +000024815
24816# Do not use `cd foo && pwd` to compute absolute paths, because
24817# the directories may not exist.
24818case `pwd` in
24819.) ac_abs_builddir="$ac_dir";;
24820*)
24821 case "$ac_dir" in
24822 .) ac_abs_builddir=`pwd`;;
24823 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24824 *) ac_abs_builddir=`pwd`/"$ac_dir";;
24825 esac;;
24826esac
24827case $ac_abs_builddir in
24828.) ac_abs_top_builddir=${ac_top_builddir}.;;
24829*)
24830 case ${ac_top_builddir}. in
24831 .) ac_abs_top_builddir=$ac_abs_builddir;;
24832 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24833 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24834 esac;;
24835esac
24836case $ac_abs_builddir in
24837.) ac_abs_srcdir=$ac_srcdir;;
24838*)
24839 case $ac_srcdir in
24840 .) ac_abs_srcdir=$ac_abs_builddir;;
24841 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24842 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24843 esac;;
24844esac
24845case $ac_abs_builddir in
24846.) ac_abs_top_srcdir=$ac_top_srcdir;;
24847*)
24848 case $ac_top_srcdir in
24849 .) ac_abs_top_srcdir=$ac_abs_builddir;;
24850 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24851 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24852 esac;;
24853esac
John Criswell7a73b802003-06-30 21:59:07 +000024854
24855
24856 case $INSTALL in
24857 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24858 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
24859 esac
24860
24861 if test x"$ac_file" != x-; then
24862 { echo "$as_me:$LINENO: creating $ac_file" >&5
24863echo "$as_me: creating $ac_file" >&6;}
24864 rm -f "$ac_file"
24865 fi
24866 # Let's still pretend it is `configure' which instantiates (i.e., don't
24867 # use $as_me), people would be surprised to read:
24868 # /* config.h. Generated by config.status. */
24869 if test x"$ac_file" = x-; then
24870 configure_input=
24871 else
24872 configure_input="$ac_file. "
24873 fi
24874 configure_input=$configure_input"Generated from `echo $ac_file_in |
Reid Spencer2b51a082004-08-04 00:34:49 +000024875 sed 's,.*/,,'` by configure."
John Criswell7a73b802003-06-30 21:59:07 +000024876
24877 # First look for the input files in the build tree, otherwise in the
24878 # src tree.
24879 ac_file_inputs=`IFS=:
24880 for f in $ac_file_in; do
24881 case $f in
24882 -) echo $tmp/stdin ;;
24883 [\\/$]*)
Reid Spencer2b51a082004-08-04 00:34:49 +000024884 # Absolute (can't be DOS-style, as IFS=:)
24885 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000024886echo "$as_me: error: cannot find input file: $f" >&2;}
24887 { (exit 1); exit 1; }; }
Reid Spencer2b51a082004-08-04 00:34:49 +000024888 echo "$f";;
John Criswell7a73b802003-06-30 21:59:07 +000024889 *) # Relative
Reid Spencer2b51a082004-08-04 00:34:49 +000024890 if test -f "$f"; then
24891 # Build tree
24892 echo "$f"
24893 elif test -f "$srcdir/$f"; then
24894 # Source tree
24895 echo "$srcdir/$f"
24896 else
24897 # /dev/null tree
24898 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000024899echo "$as_me: error: cannot find input file: $f" >&2;}
24900 { (exit 1); exit 1; }; }
Reid Spencer2b51a082004-08-04 00:34:49 +000024901 fi;;
John Criswell7a73b802003-06-30 21:59:07 +000024902 esac
24903 done` || { (exit 1); exit 1; }
24904_ACEOF
24905cat >>$CONFIG_STATUS <<_ACEOF
24906 sed "$ac_vpsub
24907$extrasub
24908_ACEOF
24909cat >>$CONFIG_STATUS <<\_ACEOF
24910:t
24911/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24912s,@configure_input@,$configure_input,;t t
24913s,@srcdir@,$ac_srcdir,;t t
24914s,@abs_srcdir@,$ac_abs_srcdir,;t t
24915s,@top_srcdir@,$ac_top_srcdir,;t t
24916s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
24917s,@builddir@,$ac_builddir,;t t
24918s,@abs_builddir@,$ac_abs_builddir,;t t
24919s,@top_builddir@,$ac_top_builddir,;t t
24920s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
24921s,@INSTALL@,$ac_INSTALL,;t t
24922" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24923 rm -f $tmp/stdin
24924 if test x"$ac_file" != x-; then
24925 mv $tmp/out $ac_file
24926 else
24927 cat $tmp/out
24928 rm -f $tmp/out
24929 fi
24930
24931done
24932_ACEOF
24933cat >>$CONFIG_STATUS <<\_ACEOF
24934
24935#
24936# CONFIG_HEADER section.
24937#
24938
24939# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24940# NAME is the cpp macro being defined and VALUE is the value it is being given.
24941#
24942# ac_d sets the value in "#define NAME VALUE" lines.
Reid Spencer2b51a082004-08-04 00:34:49 +000024943ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
24944ac_dB='[ ].*$,\1#\2'
John Criswell7a73b802003-06-30 21:59:07 +000024945ac_dC=' '
24946ac_dD=',;t'
24947# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
Reid Spencer2b51a082004-08-04 00:34:49 +000024948ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
John Criswell7a73b802003-06-30 21:59:07 +000024949ac_uB='$,\1#\2define\3'
24950ac_uC=' '
24951ac_uD=',;t'
24952
24953for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
24954 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24955 case $ac_file in
24956 - | *:- | *:-:* ) # input from stdin
Reid Spencer2b51a082004-08-04 00:34:49 +000024957 cat >$tmp/stdin
24958 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24959 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000024960 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
Reid Spencer2b51a082004-08-04 00:34:49 +000024961 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000024962 * ) ac_file_in=$ac_file.in ;;
24963 esac
24964
24965 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
24966echo "$as_me: creating $ac_file" >&6;}
24967
24968 # First look for the input files in the build tree, otherwise in the
24969 # src tree.
24970 ac_file_inputs=`IFS=:
24971 for f in $ac_file_in; do
24972 case $f in
24973 -) echo $tmp/stdin ;;
24974 [\\/$]*)
Reid Spencer2b51a082004-08-04 00:34:49 +000024975 # Absolute (can't be DOS-style, as IFS=:)
24976 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000024977echo "$as_me: error: cannot find input file: $f" >&2;}
24978 { (exit 1); exit 1; }; }
Reid Spencer2b51a082004-08-04 00:34:49 +000024979 # Do quote $f, to prevent DOS paths from being IFS'd.
24980 echo "$f";;
John Criswell7a73b802003-06-30 21:59:07 +000024981 *) # Relative
Reid Spencer2b51a082004-08-04 00:34:49 +000024982 if test -f "$f"; then
24983 # Build tree
24984 echo "$f"
24985 elif test -f "$srcdir/$f"; then
24986 # Source tree
24987 echo "$srcdir/$f"
24988 else
24989 # /dev/null tree
24990 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000024991echo "$as_me: error: cannot find input file: $f" >&2;}
24992 { (exit 1); exit 1; }; }
Reid Spencer2b51a082004-08-04 00:34:49 +000024993 fi;;
John Criswell7a73b802003-06-30 21:59:07 +000024994 esac
24995 done` || { (exit 1); exit 1; }
24996 # Remove the trailing spaces.
Reid Spencer2b51a082004-08-04 00:34:49 +000024997 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
John Criswell7a73b802003-06-30 21:59:07 +000024998
24999_ACEOF
25000
25001# Transform confdefs.h into two sed scripts, `conftest.defines' and
25002# `conftest.undefs', that substitutes the proper values into
25003# config.h.in to produce config.h. The first handles `#define'
25004# templates, and the second `#undef' templates.
25005# And first: Protect against being on the right side of a sed subst in
25006# config.status. Protect against being in an unquoted here document
25007# in config.status.
25008rm -f conftest.defines conftest.undefs
25009# Using a here document instead of a string reduces the quoting nightmare.
25010# Putting comments in sed scripts is not portable.
25011#
25012# `end' is used to avoid that the second main sed command (meant for
25013# 0-ary CPP macros) applies to n-ary macro definitions.
25014# See the Autoconf documentation for `clear'.
25015cat >confdef2sed.sed <<\_ACEOF
25016s/[\\&,]/\\&/g
25017s,[\\$`],\\&,g
25018t clear
25019: clear
Reid Spencer2b51a082004-08-04 00:34:49 +000025020s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
John Criswell7a73b802003-06-30 21:59:07 +000025021t end
Reid Spencer2b51a082004-08-04 00:34:49 +000025022s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
John Criswell7a73b802003-06-30 21:59:07 +000025023: end
25024_ACEOF
25025# If some macros were called several times there might be several times
25026# the same #defines, which is useless. Nevertheless, we may not want to
25027# sort them, since we want the *last* AC-DEFINE to be honored.
25028uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
25029sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
25030rm -f confdef2sed.sed
25031
25032# This sed command replaces #undef with comments. This is necessary, for
25033# example, in the case of _POSIX_SOURCE, which is predefined and required
25034# on some systems where configure will not decide to define it.
25035cat >>conftest.undefs <<\_ACEOF
Reid Spencer2b51a082004-08-04 00:34:49 +000025036s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
John Criswell7a73b802003-06-30 21:59:07 +000025037_ACEOF
25038
25039# Break up conftest.defines because some shells have a limit on the size
25040# of here documents, and old seds have small limits too (100 cmds).
25041echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
Reid Spencer2b51a082004-08-04 00:34:49 +000025042echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000025043echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
25044echo ' :' >>$CONFIG_STATUS
25045rm -f conftest.tail
25046while grep . conftest.defines >/dev/null
25047do
25048 # Write a limited-size here document to $tmp/defines.sed.
25049 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
25050 # Speed up: don't consider the non `#define' lines.
Reid Spencer2b51a082004-08-04 00:34:49 +000025051 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000025052 # Work around the forget-to-reset-the-flag bug.
25053 echo 't clr' >>$CONFIG_STATUS
25054 echo ': clr' >>$CONFIG_STATUS
25055 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
25056 echo 'CEOF
25057 sed -f $tmp/defines.sed $tmp/in >$tmp/out
25058 rm -f $tmp/in
25059 mv $tmp/out $tmp/in
25060' >>$CONFIG_STATUS
25061 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
25062 rm -f conftest.defines
25063 mv conftest.tail conftest.defines
25064done
25065rm -f conftest.defines
John Criswell0c38eaf2003-09-10 15:17:25 +000025066echo ' fi # grep' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000025067echo >>$CONFIG_STATUS
25068
25069# Break up conftest.undefs because some shells have a limit on the size
25070# of here documents, and old seds have small limits too (100 cmds).
25071echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
25072rm -f conftest.tail
25073while grep . conftest.undefs >/dev/null
25074do
25075 # Write a limited-size here document to $tmp/undefs.sed.
25076 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
25077 # Speed up: don't consider the non `#undef'
Reid Spencer2b51a082004-08-04 00:34:49 +000025078 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000025079 # Work around the forget-to-reset-the-flag bug.
25080 echo 't clr' >>$CONFIG_STATUS
25081 echo ': clr' >>$CONFIG_STATUS
25082 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
25083 echo 'CEOF
25084 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
25085 rm -f $tmp/in
25086 mv $tmp/out $tmp/in
25087' >>$CONFIG_STATUS
25088 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
25089 rm -f conftest.undefs
25090 mv conftest.tail conftest.undefs
25091done
25092rm -f conftest.undefs
25093
25094cat >>$CONFIG_STATUS <<\_ACEOF
25095 # Let's still pretend it is `configure' which instantiates (i.e., don't
25096 # use $as_me), people would be surprised to read:
25097 # /* config.h. Generated by config.status. */
25098 if test x"$ac_file" = x-; then
25099 echo "/* Generated by configure. */" >$tmp/config.h
25100 else
25101 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
25102 fi
25103 cat $tmp/in >>$tmp/config.h
25104 rm -f $tmp/in
25105 if test x"$ac_file" != x-; then
John Criswell0c38eaf2003-09-10 15:17:25 +000025106 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000025107 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25108echo "$as_me: $ac_file is unchanged" >&6;}
25109 else
25110 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
25111$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2b51a082004-08-04 00:34:49 +000025112 X"$ac_file" : 'X\(//\)[^/]' \| \
25113 X"$ac_file" : 'X\(//\)$' \| \
25114 X"$ac_file" : 'X\(/\)' \| \
25115 . : '\(.\)' 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +000025116echo X"$ac_file" |
25117 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25118 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25119 /^X\(\/\/\)$/{ s//\1/; q; }
25120 /^X\(\/\).*/{ s//\1/; q; }
25121 s/.*/./; q'`
John Criswell0c38eaf2003-09-10 15:17:25 +000025122 { if $as_mkdir_p; then
25123 mkdir -p "$ac_dir"
25124 else
25125 as_dir="$ac_dir"
25126 as_dirs=
25127 while test ! -d "$as_dir"; do
25128 as_dirs="$as_dir $as_dirs"
25129 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25130$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2b51a082004-08-04 00:34:49 +000025131 X"$as_dir" : 'X\(//\)[^/]' \| \
25132 X"$as_dir" : 'X\(//\)$' \| \
25133 X"$as_dir" : 'X\(/\)' \| \
25134 . : '\(.\)' 2>/dev/null ||
John Criswell0c38eaf2003-09-10 15:17:25 +000025135echo X"$as_dir" |
25136 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25137 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25138 /^X\(\/\/\)$/{ s//\1/; q; }
25139 /^X\(\/\).*/{ s//\1/; q; }
25140 s/.*/./; q'`
25141 done
25142 test ! -n "$as_dirs" || mkdir $as_dirs
25143 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25144echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25145 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000025146
25147 rm -f $ac_file
25148 mv $tmp/config.h $ac_file
25149 fi
25150 else
25151 cat $tmp/config.h
25152 rm -f $tmp/config.h
25153 fi
25154done
25155_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000025156cat >>$CONFIG_STATUS <<\_ACEOF
25157
25158#
Reid Spencerde8c47f2004-08-29 19:35:28 +000025159# CONFIG_LINKS section.
25160#
25161
25162for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
25163 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
25164 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
25165
25166 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
25167echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
25168
25169 if test ! -r $srcdir/$ac_source; then
25170 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
25171echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
25172 { (exit 1); exit 1; }; }
25173 fi
25174 rm -f $ac_dest
25175
25176 # Make relative symlinks.
25177 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
25178$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25179 X"$ac_dest" : 'X\(//\)[^/]' \| \
25180 X"$ac_dest" : 'X\(//\)$' \| \
25181 X"$ac_dest" : 'X\(/\)' \| \
25182 . : '\(.\)' 2>/dev/null ||
25183echo X"$ac_dest" |
25184 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25185 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25186 /^X\(\/\/\)$/{ s//\1/; q; }
25187 /^X\(\/\).*/{ s//\1/; q; }
25188 s/.*/./; q'`
25189 { if $as_mkdir_p; then
25190 mkdir -p "$ac_dest_dir"
25191 else
25192 as_dir="$ac_dest_dir"
25193 as_dirs=
25194 while test ! -d "$as_dir"; do
25195 as_dirs="$as_dir $as_dirs"
25196 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25197$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25198 X"$as_dir" : 'X\(//\)[^/]' \| \
25199 X"$as_dir" : 'X\(//\)$' \| \
25200 X"$as_dir" : 'X\(/\)' \| \
25201 . : '\(.\)' 2>/dev/null ||
25202echo X"$as_dir" |
25203 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25204 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25205 /^X\(\/\/\)$/{ s//\1/; q; }
25206 /^X\(\/\).*/{ s//\1/; q; }
25207 s/.*/./; q'`
25208 done
25209 test ! -n "$as_dirs" || mkdir $as_dirs
25210 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
25211echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
25212 { (exit 1); exit 1; }; }; }
25213
25214 ac_builddir=.
25215
25216if test "$ac_dest_dir" != .; then
25217 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
25218 # A "../" for each directory in $ac_dir_suffix.
25219 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25220else
25221 ac_dir_suffix= ac_top_builddir=
25222fi
25223
25224case $srcdir in
25225 .) # No --srcdir option. We are building in place.
25226 ac_srcdir=.
25227 if test -z "$ac_top_builddir"; then
25228 ac_top_srcdir=.
25229 else
25230 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25231 fi ;;
25232 [\\/]* | ?:[\\/]* ) # Absolute path.
25233 ac_srcdir=$srcdir$ac_dir_suffix;
25234 ac_top_srcdir=$srcdir ;;
25235 *) # Relative path.
25236 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25237 ac_top_srcdir=$ac_top_builddir$srcdir ;;
25238esac
25239
25240# Do not use `cd foo && pwd` to compute absolute paths, because
25241# the directories may not exist.
25242case `pwd` in
25243.) ac_abs_builddir="$ac_dest_dir";;
25244*)
25245 case "$ac_dest_dir" in
25246 .) ac_abs_builddir=`pwd`;;
25247 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
25248 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
25249 esac;;
25250esac
25251case $ac_abs_builddir in
25252.) ac_abs_top_builddir=${ac_top_builddir}.;;
25253*)
25254 case ${ac_top_builddir}. in
25255 .) ac_abs_top_builddir=$ac_abs_builddir;;
25256 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25257 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25258 esac;;
25259esac
25260case $ac_abs_builddir in
25261.) ac_abs_srcdir=$ac_srcdir;;
25262*)
25263 case $ac_srcdir in
25264 .) ac_abs_srcdir=$ac_abs_builddir;;
25265 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25266 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25267 esac;;
25268esac
25269case $ac_abs_builddir in
25270.) ac_abs_top_srcdir=$ac_top_srcdir;;
25271*)
25272 case $ac_top_srcdir in
25273 .) ac_abs_top_srcdir=$ac_abs_builddir;;
25274 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25275 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25276 esac;;
25277esac
25278
25279
25280 case $srcdir in
25281 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
25282 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
25283 esac
25284
25285 # Try a symlink, then a hard link, then a copy.
25286 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
25287 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
25288 cp -p $srcdir/$ac_source $ac_dest ||
25289 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
25290echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
25291 { (exit 1); exit 1; }; }
25292done
25293_ACEOF
25294cat >>$CONFIG_STATUS <<\_ACEOF
25295
25296#
John Criswellc764fbc2003-09-06 15:17:13 +000025297# CONFIG_COMMANDS section.
25298#
25299for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
25300 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
25301 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
25302 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
25303$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2b51a082004-08-04 00:34:49 +000025304 X"$ac_dest" : 'X\(//\)[^/]' \| \
25305 X"$ac_dest" : 'X\(//\)$' \| \
25306 X"$ac_dest" : 'X\(/\)' \| \
25307 . : '\(.\)' 2>/dev/null ||
John Criswellc764fbc2003-09-06 15:17:13 +000025308echo X"$ac_dest" |
25309 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25310 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25311 /^X\(\/\/\)$/{ s//\1/; q; }
25312 /^X\(\/\).*/{ s//\1/; q; }
25313 s/.*/./; q'`
Reid Spencer2b51a082004-08-04 00:34:49 +000025314 { if $as_mkdir_p; then
25315 mkdir -p "$ac_dir"
25316 else
25317 as_dir="$ac_dir"
25318 as_dirs=
25319 while test ! -d "$as_dir"; do
25320 as_dirs="$as_dir $as_dirs"
25321 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25322$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25323 X"$as_dir" : 'X\(//\)[^/]' \| \
25324 X"$as_dir" : 'X\(//\)$' \| \
25325 X"$as_dir" : 'X\(/\)' \| \
25326 . : '\(.\)' 2>/dev/null ||
25327echo X"$as_dir" |
25328 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25329 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25330 /^X\(\/\/\)$/{ s//\1/; q; }
25331 /^X\(\/\).*/{ s//\1/; q; }
25332 s/.*/./; q'`
25333 done
25334 test ! -n "$as_dirs" || mkdir $as_dirs
25335 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25336echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25337 { (exit 1); exit 1; }; }; }
25338
John Criswellc764fbc2003-09-06 15:17:13 +000025339 ac_builddir=.
25340
25341if test "$ac_dir" != .; then
25342 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25343 # A "../" for each directory in $ac_dir_suffix.
25344 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25345else
25346 ac_dir_suffix= ac_top_builddir=
25347fi
25348
25349case $srcdir in
25350 .) # No --srcdir option. We are building in place.
25351 ac_srcdir=.
25352 if test -z "$ac_top_builddir"; then
25353 ac_top_srcdir=.
25354 else
25355 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25356 fi ;;
25357 [\\/]* | ?:[\\/]* ) # Absolute path.
25358 ac_srcdir=$srcdir$ac_dir_suffix;
25359 ac_top_srcdir=$srcdir ;;
25360 *) # Relative path.
25361 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25362 ac_top_srcdir=$ac_top_builddir$srcdir ;;
25363esac
Reid Spencer2b51a082004-08-04 00:34:49 +000025364
25365# Do not use `cd foo && pwd` to compute absolute paths, because
25366# the directories may not exist.
25367case `pwd` in
25368.) ac_abs_builddir="$ac_dir";;
25369*)
25370 case "$ac_dir" in
25371 .) ac_abs_builddir=`pwd`;;
25372 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25373 *) ac_abs_builddir=`pwd`/"$ac_dir";;
25374 esac;;
25375esac
25376case $ac_abs_builddir in
25377.) ac_abs_top_builddir=${ac_top_builddir}.;;
25378*)
25379 case ${ac_top_builddir}. in
25380 .) ac_abs_top_builddir=$ac_abs_builddir;;
25381 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25382 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25383 esac;;
25384esac
25385case $ac_abs_builddir in
25386.) ac_abs_srcdir=$ac_srcdir;;
25387*)
25388 case $ac_srcdir in
25389 .) ac_abs_srcdir=$ac_abs_builddir;;
25390 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25391 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25392 esac;;
25393esac
25394case $ac_abs_builddir in
25395.) ac_abs_top_srcdir=$ac_top_srcdir;;
25396*)
25397 case $ac_top_srcdir in
25398 .) ac_abs_top_srcdir=$ac_abs_builddir;;
25399 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25400 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25401 esac;;
25402esac
John Criswellc764fbc2003-09-06 15:17:13 +000025403
25404
25405 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
25406echo "$as_me: executing $ac_dest commands" >&6;}
25407 case $ac_dest in
25408 Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
25409 Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
Reid Spencer5f285392004-08-24 16:32:21 +000025410 examples/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000025411 lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000025412 runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000025413 test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
25414 test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
John Criswellf424d742003-10-07 21:13:47 +000025415 test/QMTest/llvm.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvm.py test/QMTest/llvm.py ;;
25416 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 +000025417 test/Programs/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile test/Programs/Makefile ;;
25418 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 +000025419 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 +000025420 test/Programs/TEST.aa.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.Makefile test/Programs/TEST.aa.Makefile ;;
25421 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 +000025422 test/Programs/TEST.aa.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.report test/Programs/TEST.aa.report ;;
25423 test/Programs/TEST.example.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.example.Makefile test/Programs/TEST.example.Makefile ;;
25424 test/Programs/TEST.nightly.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.Makefile test/Programs/TEST.nightly.Makefile ;;
25425 test/Programs/TEST.buildrepo.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.buildrepo.Makefile test/Programs/TEST.buildrepo.Makefile ;;
25426 test/Programs/TEST.jit.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.Makefile test/Programs/TEST.jit.Makefile ;;
25427 test/Programs/TEST.nightly.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.report test/Programs/TEST.nightly.report ;;
25428 test/Programs/TEST.dsgraph.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.Makefile test/Programs/TEST.dsgraph.Makefile ;;
25429 test/Programs/TEST.jit.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.report test/Programs/TEST.jit.report ;;
25430 test/Programs/TEST.typesafe.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.typesafe.Makefile test/Programs/TEST.typesafe.Makefile ;;
25431 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 +000025432 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 +000025433 test/Programs/External/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/Makefile test/Programs/External/Makefile ;;
25434 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 +000025435 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 +000025436 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 +000025437 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 +000025438 test/Programs/MultiSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile test/Programs/MultiSource/Makefile ;;
25439 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 +000025440 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 ;;
25441 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 ;;
25442 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 ;;
25443 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 ;;
25444 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 ;;
25445 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 ;;
25446 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 ;;
25447 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 ;;
25448 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 ;;
25449 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 ;;
25450 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 ;;
25451 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 ;;
25452 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 +000025453 test/Programs/SingleSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile test/Programs/SingleSource/Makefile ;;
25454 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 +000025455 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 +000025456 tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
Brian Gaekec45be042003-10-07 06:01:34 +000025457 utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000025458 projects/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000025459 esac
25460done
25461_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000025462
25463cat >>$CONFIG_STATUS <<\_ACEOF
25464
25465{ (exit 0); exit 0; }
25466_ACEOF
25467chmod +x $CONFIG_STATUS
25468ac_clean_files=$ac_clean_files_save
25469
25470
25471# configure is writing to config.log, and then calls config.status.
25472# config.status does its own redirection, appending to config.log.
25473# Unfortunately, on DOS this fails, as config.log is still kept open
25474# by configure, so config.status won't be able to write to it; its
25475# output is simply discarded. So we exec the FD to /dev/null,
25476# effectively closing config.log, so it can be properly (re)opened and
25477# appended to by config.status. When coming back to configure, we
25478# need to make the FD available again.
25479if test "$no_create" != yes; then
25480 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000025481 ac_config_status_args=
25482 test "$silent" = yes &&
25483 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000025484 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000025485 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000025486 exec 5>>config.log
25487 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25488 # would make configure fail if this is the last instruction.
25489 $ac_cs_success || { (exit 1); exit 1; }
25490fi
25491
John Criswell12399a12003-09-30 15:55:44 +000025492#
25493# CONFIG_SUBDIRS section.
25494#
25495if test "$no_recursion" != yes; then
25496
25497 # Remove --cache-file and --srcdir arguments so they do not pile up.
25498 ac_sub_configure_args=
25499 ac_prev=
25500 for ac_arg in $ac_configure_args; do
25501 if test -n "$ac_prev"; then
25502 ac_prev=
25503 continue
25504 fi
25505 case $ac_arg in
25506 -cache-file | --cache-file | --cache-fil | --cache-fi \
25507 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
25508 ac_prev=cache_file ;;
25509 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
25510 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
25511 | --c=*)
25512 ;;
25513 --config-cache | -C)
25514 ;;
25515 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
25516 ac_prev=srcdir ;;
25517 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
25518 ;;
25519 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
25520 ac_prev=prefix ;;
25521 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
25522 ;;
25523 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
25524 esac
25525 done
25526
25527 # Always prepend --prefix to ensure using the same prefix
25528 # in subdir configurations.
25529 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
25530
25531 ac_popdir=`pwd`
25532 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
25533
25534 # Do not complain, so a configure script can configure whichever
25535 # parts of a large source tree are present.
25536 test -d $srcdir/$ac_dir || continue
25537
25538 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
25539echo "$as_me: configuring in $ac_dir" >&6;}
25540 { if $as_mkdir_p; then
25541 mkdir -p "$ac_dir"
25542 else
25543 as_dir="$ac_dir"
25544 as_dirs=
25545 while test ! -d "$as_dir"; do
25546 as_dirs="$as_dir $as_dirs"
25547 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25548$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2b51a082004-08-04 00:34:49 +000025549 X"$as_dir" : 'X\(//\)[^/]' \| \
25550 X"$as_dir" : 'X\(//\)$' \| \
25551 X"$as_dir" : 'X\(/\)' \| \
25552 . : '\(.\)' 2>/dev/null ||
John Criswell12399a12003-09-30 15:55:44 +000025553echo X"$as_dir" |
25554 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25555 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25556 /^X\(\/\/\)$/{ s//\1/; q; }
25557 /^X\(\/\).*/{ s//\1/; q; }
25558 s/.*/./; q'`
25559 done
25560 test ! -n "$as_dirs" || mkdir $as_dirs
25561 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25562echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25563 { (exit 1); exit 1; }; }; }
25564
25565 ac_builddir=.
25566
25567if test "$ac_dir" != .; then
25568 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25569 # A "../" for each directory in $ac_dir_suffix.
25570 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25571else
25572 ac_dir_suffix= ac_top_builddir=
25573fi
25574
25575case $srcdir in
25576 .) # No --srcdir option. We are building in place.
25577 ac_srcdir=.
25578 if test -z "$ac_top_builddir"; then
25579 ac_top_srcdir=.
25580 else
25581 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25582 fi ;;
25583 [\\/]* | ?:[\\/]* ) # Absolute path.
25584 ac_srcdir=$srcdir$ac_dir_suffix;
25585 ac_top_srcdir=$srcdir ;;
25586 *) # Relative path.
25587 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25588 ac_top_srcdir=$ac_top_builddir$srcdir ;;
25589esac
Reid Spencer2b51a082004-08-04 00:34:49 +000025590
25591# Do not use `cd foo && pwd` to compute absolute paths, because
25592# the directories may not exist.
25593case `pwd` in
25594.) ac_abs_builddir="$ac_dir";;
25595*)
25596 case "$ac_dir" in
25597 .) ac_abs_builddir=`pwd`;;
25598 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25599 *) ac_abs_builddir=`pwd`/"$ac_dir";;
25600 esac;;
25601esac
25602case $ac_abs_builddir in
25603.) ac_abs_top_builddir=${ac_top_builddir}.;;
25604*)
25605 case ${ac_top_builddir}. in
25606 .) ac_abs_top_builddir=$ac_abs_builddir;;
25607 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25608 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25609 esac;;
25610esac
25611case $ac_abs_builddir in
25612.) ac_abs_srcdir=$ac_srcdir;;
25613*)
25614 case $ac_srcdir in
25615 .) ac_abs_srcdir=$ac_abs_builddir;;
25616 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25617 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25618 esac;;
25619esac
25620case $ac_abs_builddir in
25621.) ac_abs_top_srcdir=$ac_top_srcdir;;
25622*)
25623 case $ac_top_srcdir in
25624 .) ac_abs_top_srcdir=$ac_abs_builddir;;
25625 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25626 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25627 esac;;
25628esac
John Criswell12399a12003-09-30 15:55:44 +000025629
25630
25631 cd $ac_dir
25632
25633 # Check for guested configure; otherwise get Cygnus style configure.
25634 if test -f $ac_srcdir/configure.gnu; then
25635 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
25636 elif test -f $ac_srcdir/configure; then
25637 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
25638 elif test -f $ac_srcdir/configure.in; then
25639 ac_sub_configure=$ac_configure
25640 else
25641 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
25642echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
25643 ac_sub_configure=
25644 fi
25645
25646 # The recursion is here.
25647 if test -n "$ac_sub_configure"; then
25648 # Make the cache file name correct relative to the subdirectory.
25649 case $cache_file in
25650 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
25651 *) # Relative path.
Reid Spencer2b51a082004-08-04 00:34:49 +000025652 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000025653 esac
25654
25655 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
25656echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
25657 # The eval makes quoting arguments work.
25658 eval $ac_sub_configure $ac_sub_configure_args \
Reid Spencer2b51a082004-08-04 00:34:49 +000025659 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
25660 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
John Criswell12399a12003-09-30 15:55:44 +000025661echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
25662 { (exit 1); exit 1; }; }
25663 fi
25664
25665 cd $ac_popdir
25666 done
25667fi
25668
Brian Gaekef3b24102003-11-16 18:38:14 +000025669
25670if test $llvmgccwarn = yes
25671then
25672 { echo "$as_me:$LINENO: WARNING: ***** llvm C/C++ front end was not found, or does not" >&5
25673echo "$as_me: WARNING: ***** llvm C/C++ front end was not found, or does not" >&2;}
25674 { echo "$as_me:$LINENO: WARNING: ***** appear to be working." >&5
25675echo "$as_me: WARNING: ***** appear to be working." >&2;}
25676 { echo "$as_me:$LINENO: WARNING: ***** " >&5
25677echo "$as_me: WARNING: ***** " >&2;}
25678 { echo "$as_me:$LINENO: WARNING: ***** Please check configure's --with-llvmgccdir option." >&5
25679echo "$as_me: WARNING: ***** Please check configure's --with-llvmgccdir option." >&2;}
25680 { echo "$as_me:$LINENO: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&5
25681echo "$as_me: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&2;}
25682 { echo "$as_me:$LINENO: WARNING: ***** but you should be able to build the llvm tools." >&5
25683echo "$as_me: WARNING: ***** but you should be able to build the llvm tools." >&2;}
25684fi
Brian Gaeke554831c2004-01-21 19:39:29 +000025685