blob: 43bcfb8133da08ac83cc95530bd322f74f1c79ee [file] [log] [blame]
John Criswell7a73b802003-06-30 21:59:07 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Chris Lattner95f45c52004-04-14 16:32:09 +00003# Generated by GNU Autoconf 2.57 for [LLVM] [1.3].
John Criswell7a73b802003-06-30 21:59:07 +00004#
5# Report bugs to <llvmbugs@cs.uiuc.edu>.
6#
7# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
8# Free Software Foundation, Inc.
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
John Criswell0c38eaf2003-09-10 15:17:25 +000011## --------------------- ##
12## M4sh Initialization. ##
13## --------------------- ##
14
15# Be Bourne compatible
16if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 emulate sh
18 NULLCMD=:
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
22elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23 set -o posix
24fi
25
26# Support unset when possible.
27if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
28 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
46 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
47 eval $as_var=C; export $as_var
48 else
49 $as_unset $as_var
50 fi
51done
52
53# Required to use basename.
54if expr a : '\(a\)' >/dev/null 2>&1; then
55 as_expr=expr
56else
57 as_expr=false
58fi
59
60if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61 as_basename=basename
62else
63 as_basename=false
64fi
65
66
67# Name of the executable.
68as_me=`$as_basename "$0" ||
69$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
73echo X/"$0" |
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
77 s/.*/./; q'`
78
79
80# PATH needs CR, and LINENO needs CR and PATH.
81# Avoid depending upon Character Ranges.
82as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85as_cr_digits='0123456789'
86as_cr_alnum=$as_cr_Letters$as_cr_digits
87
88# The user is always right.
89if test "${PATH_SEPARATOR+set}" != set; then
90 echo "#! /bin/sh" >conf$$.sh
91 echo "exit 0" >>conf$$.sh
92 chmod +x conf$$.sh
93 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94 PATH_SEPARATOR=';'
95 else
96 PATH_SEPARATOR=:
97 fi
98 rm -f conf$$.sh
99fi
100
101
102 as_lineno_1=$LINENO
103 as_lineno_2=$LINENO
104 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105 test "x$as_lineno_1" != "x$as_lineno_2" &&
106 test "x$as_lineno_3" = "x$as_lineno_2" || {
107 # Find who we are. Look in the path if we contain no path at all
108 # relative or not.
109 case $0 in
110 *[\\/]* ) as_myself=$0 ;;
111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112for as_dir in $PATH
113do
114 IFS=$as_save_IFS
115 test -z "$as_dir" && as_dir=.
116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117done
118
119 ;;
120 esac
121 # We did not find ourselves, most probably we were run as `sh COMMAND'
122 # in which case we are not to be found in the path.
123 if test "x$as_myself" = x; then
124 as_myself=$0
125 fi
126 if test ! -f "$as_myself"; then
127 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128 { (exit 1); exit 1; }; }
129 fi
130 case $CONFIG_SHELL in
131 '')
132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134do
135 IFS=$as_save_IFS
136 test -z "$as_dir" && as_dir=.
137 for as_base in sh bash ksh sh5; do
138 case $as_dir in
139 /*)
140 if ("$as_dir/$as_base" -c '
141 as_lineno_1=$LINENO
142 as_lineno_2=$LINENO
143 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144 test "x$as_lineno_1" != "x$as_lineno_2" &&
145 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
146 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148 CONFIG_SHELL=$as_dir/$as_base
149 export CONFIG_SHELL
150 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151 fi;;
152 esac
153 done
154done
155;;
156 esac
157
158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159 # uniformly replaced by the line number. The first 'sed' inserts a
160 # line-number line before each line; the second 'sed' does the real
161 # work. The second script uses 'N' to pair each line-number line
162 # with the numbered line, and appends trailing '-' during
163 # substitution so that $LINENO is not a special case at line end.
164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
166 sed '=' <$as_myself |
167 sed '
168 N
169 s,$,-,
170 : loop
171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 t loop
173 s,-$,,
174 s,^['$as_cr_digits']*\n,,
175 ' >$as_me.lineno &&
176 chmod +x $as_me.lineno ||
177 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178 { (exit 1); exit 1; }; }
179
180 # Don't try to exec as it changes $[0], causing all sort of problems
181 # (the dirname of $[0] is not the place where we might find the
182 # original and so on. Autoconf is especially sensible to this).
183 . ./$as_me.lineno
184 # Exit status is that of the last command.
185 exit
186}
187
188
189case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190 *c*,-n*) ECHO_N= ECHO_C='
191' ECHO_T=' ' ;;
192 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194esac
195
196if expr a : '\(a\)' >/dev/null 2>&1; then
197 as_expr=expr
198else
199 as_expr=false
200fi
201
202rm -f conf$$ conf$$.exe conf$$.file
203echo >conf$$.file
204if ln -s conf$$.file conf$$ 2>/dev/null; then
205 # We could just check for DJGPP; but this test a) works b) is more generic
206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207 if test -f conf$$.exe; then
208 # Don't use ln at all; we don't have any links
209 as_ln_s='cp -p'
210 else
211 as_ln_s='ln -s'
212 fi
213elif ln conf$$.file conf$$ 2>/dev/null; then
214 as_ln_s=ln
215else
216 as_ln_s='cp -p'
217fi
218rm -f conf$$ conf$$.exe conf$$.file
219
220if mkdir -p . 2>/dev/null; then
221 as_mkdir_p=:
222else
223 as_mkdir_p=false
224fi
225
226as_executable_p="test -f"
227
228# Sed expression to map a string onto a valid CPP name.
229as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
230
231# Sed expression to map a string onto a valid variable name.
232as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
233
234
235# IFS
236# We need space, tab and new line, in precisely that order.
237as_nl='
238'
239IFS=" $as_nl"
240
241# CDPATH.
242$as_unset CDPATH
243
John Criswell7a73b802003-06-30 21:59:07 +0000244
John Criswell7a73b802003-06-30 21:59:07 +0000245
246# Check that we are running under the correct shell.
247SHELL=${CONFIG_SHELL-/bin/sh}
248
249case X$ECHO in
250X*--fallback-echo)
251 # Remove one level of quotation (which was required for Make).
252 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
253 ;;
254esac
255
256echo=${ECHO-echo}
257if test "X$1" = X--no-reexec; then
258 # Discard the --no-reexec flag, and continue.
259 shift
260elif test "X$1" = X--fallback-echo; then
261 # Avoid inline document here, it may be left over
262 :
John Criswell47fdd832003-07-14 16:52:07 +0000263elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
John Criswell7a73b802003-06-30 21:59:07 +0000264 # Yippee, $echo works!
265 :
266else
267 # Restart under the correct shell.
268 exec $SHELL "$0" --no-reexec ${1+"$@"}
269fi
270
271if test "X$1" = X--fallback-echo; then
272 # used as fallback echo
273 shift
274 cat <<EOF
John Criswell47fdd832003-07-14 16:52:07 +0000275$*
John Criswell7a73b802003-06-30 21:59:07 +0000276EOF
277 exit 0
278fi
279
280# The HP-UX ksh and POSIX shell print the target directory to stdout
281# if CDPATH is set.
282if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
283
284if test -z "$ECHO"; then
285if test "X${echo_test_string+set}" != Xset; then
286# find a string as large as possible, as long as the shell can cope with it
287 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
288 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
289 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
290 echo_test_string="`eval $cmd`" &&
291 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
292 then
293 break
294 fi
295 done
296fi
297
298if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
299 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
300 test "X$echo_testing_string" = "X$echo_test_string"; then
301 :
302else
303 # The Solaris, AIX, and Digital Unix default echo programs unquote
304 # backslashes. This makes it impossible to quote backslashes using
305 # echo "$something" | sed 's/\\/\\\\/g'
306 #
307 # So, first we look for a working echo in the user's PATH.
308
John Criswell47fdd832003-07-14 16:52:07 +0000309 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +0000310 for dir in $PATH /usr/ucb; do
John Criswell47fdd832003-07-14 16:52:07 +0000311 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +0000312 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
313 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
314 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
315 test "X$echo_testing_string" = "X$echo_test_string"; then
316 echo="$dir/echo"
317 break
318 fi
319 done
John Criswell47fdd832003-07-14 16:52:07 +0000320 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +0000321
322 if test "X$echo" = Xecho; then
323 # We didn't find a better echo, so look for alternatives.
324 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
325 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
326 test "X$echo_testing_string" = "X$echo_test_string"; then
327 # This shell has a builtin print -r that does the trick.
328 echo='print -r'
329 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
330 test "X$CONFIG_SHELL" != X/bin/ksh; then
331 # If we have ksh, try running configure again with it.
332 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
333 export ORIGINAL_CONFIG_SHELL
334 CONFIG_SHELL=/bin/ksh
335 export CONFIG_SHELL
336 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
337 else
338 # Try using printf.
339 echo='printf %s\n'
340 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
341 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
342 test "X$echo_testing_string" = "X$echo_test_string"; then
343 # Cool, printf works
344 :
345 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
346 test "X$echo_testing_string" = 'X\t' &&
347 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
348 test "X$echo_testing_string" = "X$echo_test_string"; then
349 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
350 export CONFIG_SHELL
351 SHELL="$CONFIG_SHELL"
352 export SHELL
353 echo="$CONFIG_SHELL $0 --fallback-echo"
354 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
355 test "X$echo_testing_string" = 'X\t' &&
356 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
357 test "X$echo_testing_string" = "X$echo_test_string"; then
358 echo="$CONFIG_SHELL $0 --fallback-echo"
359 else
360 # maybe with a smaller string...
361 prev=:
362
363 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
364 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
365 then
366 break
367 fi
368 prev="$cmd"
369 done
370
371 if test "$prev" != 'sed 50q "$0"'; then
372 echo_test_string=`eval $prev`
373 export echo_test_string
374 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
375 else
376 # Oops. We lost completely, so just stick with echo.
377 echo=echo
378 fi
379 fi
380 fi
381 fi
382fi
383fi
384
385# Copy echo and quote the copy suitably for passing to libtool from
386# the Makefile, instead of quoting the original, which is used later.
387ECHO=$echo
388if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
389 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
390fi
391
392
393
John Criswell47fdd832003-07-14 16:52:07 +0000394
395tagnames=`echo "$tagnames,CXX" | sed 's/^,//'`
396
397tagnames=`echo "$tagnames,F77" | sed 's/^,//'`
398
John Criswell7a73b802003-06-30 21:59:07 +0000399# Name of the host.
400# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
401# so uname gets run too.
402ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
403
404exec 6>&1
405
406#
407# Initializations.
408#
409ac_default_prefix=/usr/local
John Criswell0c38eaf2003-09-10 15:17:25 +0000410ac_config_libobj_dir=.
John Criswell7a73b802003-06-30 21:59:07 +0000411cross_compiling=no
412subdirs=
413MFLAGS=
414MAKEFLAGS=
415SHELL=${CONFIG_SHELL-/bin/sh}
416
417# Maximum number of lines to put in a shell here document.
418# This variable seems obsolete. It should probably be removed, and
419# only ac_max_sed_lines should be used.
420: ${ac_max_here_lines=38}
421
422# Identity of this package.
423PACKAGE_NAME='[LLVM]'
424PACKAGE_TARNAME='--llvm--'
Chris Lattner95f45c52004-04-14 16:32:09 +0000425PACKAGE_VERSION='[1.3]'
426PACKAGE_STRING='[LLVM] [1.3]'
John Criswell7a73b802003-06-30 21:59:07 +0000427PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
428
John Criswell33a911a2003-11-25 20:36:46 +0000429ac_subdirs_all="$ac_subdirs_all projects/${i}"
John Criswell7a73b802003-06-30 21:59:07 +0000430# Factoring default headers for most tests.
431ac_includes_default="\
432#include <stdio.h>
433#if HAVE_SYS_TYPES_H
434# include <sys/types.h>
435#endif
436#if HAVE_SYS_STAT_H
437# include <sys/stat.h>
438#endif
439#if STDC_HEADERS
440# include <stdlib.h>
441# include <stddef.h>
442#else
443# if HAVE_STDLIB_H
444# include <stdlib.h>
445# endif
446#endif
447#if HAVE_STRING_H
448# if !STDC_HEADERS && HAVE_MEMORY_H
449# include <memory.h>
450# endif
451# include <string.h>
452#endif
453#if HAVE_STRINGS_H
454# include <strings.h>
455#endif
456#if HAVE_INTTYPES_H
457# include <inttypes.h>
458#else
459# if HAVE_STDINT_H
460# include <stdint.h>
461# endif
462#endif
463#if HAVE_UNISTD_H
464# include <unistd.h>
465#endif"
466
467ac_unique_file=""Makefile.config.in""
Brian Gaekee773b862004-04-16 17:13:44 +0000468ac_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 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 LIBOBJS LTLIBOBJS'
John Criswell0c38eaf2003-09-10 15:17:25 +0000469ac_subst_files=''
John Criswell7a73b802003-06-30 21:59:07 +0000470
471# Initialize some variables set by options.
472ac_init_help=
473ac_init_version=false
474# The variables have the same names as the options, with
475# dashes changed to underlines.
476cache_file=/dev/null
477exec_prefix=NONE
478no_create=
479no_recursion=
480prefix=NONE
481program_prefix=NONE
482program_suffix=NONE
483program_transform_name=s,x,x,
484silent=
485site=
486srcdir=
487verbose=
488x_includes=NONE
489x_libraries=NONE
490
491# Installation directory options.
492# These are left unexpanded so users can "make install exec_prefix=/foo"
493# and all the variables that are supposed to be based on exec_prefix
494# by default will actually change.
495# Use braces instead of parens because sh, perl, etc. also accept them.
496bindir='${exec_prefix}/bin'
497sbindir='${exec_prefix}/sbin'
498libexecdir='${exec_prefix}/libexec'
499datadir='${prefix}/share'
500sysconfdir='${prefix}/etc'
501sharedstatedir='${prefix}/com'
502localstatedir='${prefix}/var'
503libdir='${exec_prefix}/lib'
504includedir='${prefix}/include'
505oldincludedir='/usr/include'
506infodir='${prefix}/info'
507mandir='${prefix}/man'
508
509ac_prev=
510for ac_option
511do
512 # If the previous option needs an argument, assign it.
513 if test -n "$ac_prev"; then
514 eval "$ac_prev=\$ac_option"
515 ac_prev=
516 continue
517 fi
518
519 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
520
521 # Accept the important Cygnus configure options, so we can diagnose typos.
522
523 case $ac_option in
524
525 -bindir | --bindir | --bindi | --bind | --bin | --bi)
526 ac_prev=bindir ;;
527 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
528 bindir=$ac_optarg ;;
529
530 -build | --build | --buil | --bui | --bu)
531 ac_prev=build_alias ;;
532 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
533 build_alias=$ac_optarg ;;
534
535 -cache-file | --cache-file | --cache-fil | --cache-fi \
536 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
537 ac_prev=cache_file ;;
538 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
539 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
540 cache_file=$ac_optarg ;;
541
542 --config-cache | -C)
543 cache_file=config.cache ;;
544
545 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
546 ac_prev=datadir ;;
547 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
548 | --da=*)
549 datadir=$ac_optarg ;;
550
551 -disable-* | --disable-*)
552 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
553 # Reject names that are not valid shell variable names.
554 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
555 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
556 { (exit 1); exit 1; }; }
557 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
558 eval "enable_$ac_feature=no" ;;
559
560 -enable-* | --enable-*)
561 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
562 # Reject names that are not valid shell variable names.
563 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
564 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
565 { (exit 1); exit 1; }; }
566 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
567 case $ac_option in
568 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
569 *) ac_optarg=yes ;;
570 esac
571 eval "enable_$ac_feature='$ac_optarg'" ;;
572
573 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
574 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
575 | --exec | --exe | --ex)
576 ac_prev=exec_prefix ;;
577 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
578 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
579 | --exec=* | --exe=* | --ex=*)
580 exec_prefix=$ac_optarg ;;
581
582 -gas | --gas | --ga | --g)
583 # Obsolete; use --with-gas.
584 with_gas=yes ;;
585
586 -help | --help | --hel | --he | -h)
587 ac_init_help=long ;;
588 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
589 ac_init_help=recursive ;;
590 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
591 ac_init_help=short ;;
592
593 -host | --host | --hos | --ho)
594 ac_prev=host_alias ;;
595 -host=* | --host=* | --hos=* | --ho=*)
596 host_alias=$ac_optarg ;;
597
598 -includedir | --includedir | --includedi | --included | --include \
599 | --includ | --inclu | --incl | --inc)
600 ac_prev=includedir ;;
601 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
602 | --includ=* | --inclu=* | --incl=* | --inc=*)
603 includedir=$ac_optarg ;;
604
605 -infodir | --infodir | --infodi | --infod | --info | --inf)
606 ac_prev=infodir ;;
607 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
608 infodir=$ac_optarg ;;
609
610 -libdir | --libdir | --libdi | --libd)
611 ac_prev=libdir ;;
612 -libdir=* | --libdir=* | --libdi=* | --libd=*)
613 libdir=$ac_optarg ;;
614
615 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
616 | --libexe | --libex | --libe)
617 ac_prev=libexecdir ;;
618 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
619 | --libexe=* | --libex=* | --libe=*)
620 libexecdir=$ac_optarg ;;
621
622 -localstatedir | --localstatedir | --localstatedi | --localstated \
623 | --localstate | --localstat | --localsta | --localst \
624 | --locals | --local | --loca | --loc | --lo)
625 ac_prev=localstatedir ;;
626 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
627 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
628 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
629 localstatedir=$ac_optarg ;;
630
631 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
632 ac_prev=mandir ;;
633 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
634 mandir=$ac_optarg ;;
635
636 -nfp | --nfp | --nf)
637 # Obsolete; use --without-fp.
638 with_fp=no ;;
639
640 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
641 | --no-cr | --no-c | -n)
642 no_create=yes ;;
643
644 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
645 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
646 no_recursion=yes ;;
647
648 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
649 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
650 | --oldin | --oldi | --old | --ol | --o)
651 ac_prev=oldincludedir ;;
652 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
653 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
654 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
655 oldincludedir=$ac_optarg ;;
656
657 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
658 ac_prev=prefix ;;
659 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
660 prefix=$ac_optarg ;;
661
662 -program-prefix | --program-prefix | --program-prefi | --program-pref \
663 | --program-pre | --program-pr | --program-p)
664 ac_prev=program_prefix ;;
665 -program-prefix=* | --program-prefix=* | --program-prefi=* \
666 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
667 program_prefix=$ac_optarg ;;
668
669 -program-suffix | --program-suffix | --program-suffi | --program-suff \
670 | --program-suf | --program-su | --program-s)
671 ac_prev=program_suffix ;;
672 -program-suffix=* | --program-suffix=* | --program-suffi=* \
673 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
674 program_suffix=$ac_optarg ;;
675
676 -program-transform-name | --program-transform-name \
677 | --program-transform-nam | --program-transform-na \
678 | --program-transform-n | --program-transform- \
679 | --program-transform | --program-transfor \
680 | --program-transfo | --program-transf \
681 | --program-trans | --program-tran \
682 | --progr-tra | --program-tr | --program-t)
683 ac_prev=program_transform_name ;;
684 -program-transform-name=* | --program-transform-name=* \
685 | --program-transform-nam=* | --program-transform-na=* \
686 | --program-transform-n=* | --program-transform-=* \
687 | --program-transform=* | --program-transfor=* \
688 | --program-transfo=* | --program-transf=* \
689 | --program-trans=* | --program-tran=* \
690 | --progr-tra=* | --program-tr=* | --program-t=*)
691 program_transform_name=$ac_optarg ;;
692
693 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
694 | -silent | --silent | --silen | --sile | --sil)
695 silent=yes ;;
696
697 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
698 ac_prev=sbindir ;;
699 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
700 | --sbi=* | --sb=*)
701 sbindir=$ac_optarg ;;
702
703 -sharedstatedir | --sharedstatedir | --sharedstatedi \
704 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
705 | --sharedst | --shareds | --shared | --share | --shar \
706 | --sha | --sh)
707 ac_prev=sharedstatedir ;;
708 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
709 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
710 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
711 | --sha=* | --sh=*)
712 sharedstatedir=$ac_optarg ;;
713
714 -site | --site | --sit)
715 ac_prev=site ;;
716 -site=* | --site=* | --sit=*)
717 site=$ac_optarg ;;
718
719 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
720 ac_prev=srcdir ;;
721 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
722 srcdir=$ac_optarg ;;
723
724 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
725 | --syscon | --sysco | --sysc | --sys | --sy)
726 ac_prev=sysconfdir ;;
727 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
728 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
729 sysconfdir=$ac_optarg ;;
730
731 -target | --target | --targe | --targ | --tar | --ta | --t)
732 ac_prev=target_alias ;;
733 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
734 target_alias=$ac_optarg ;;
735
736 -v | -verbose | --verbose | --verbos | --verbo | --verb)
737 verbose=yes ;;
738
739 -version | --version | --versio | --versi | --vers | -V)
740 ac_init_version=: ;;
741
742 -with-* | --with-*)
743 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
744 # Reject names that are not valid shell variable names.
745 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
746 { echo "$as_me: error: invalid package name: $ac_package" >&2
747 { (exit 1); exit 1; }; }
748 ac_package=`echo $ac_package| sed 's/-/_/g'`
749 case $ac_option in
750 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
751 *) ac_optarg=yes ;;
752 esac
753 eval "with_$ac_package='$ac_optarg'" ;;
754
755 -without-* | --without-*)
756 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
757 # Reject names that are not valid shell variable names.
758 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
759 { echo "$as_me: error: invalid package name: $ac_package" >&2
760 { (exit 1); exit 1; }; }
761 ac_package=`echo $ac_package | sed 's/-/_/g'`
762 eval "with_$ac_package=no" ;;
763
764 --x)
765 # Obsolete; use --with-x.
766 with_x=yes ;;
767
768 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
769 | --x-incl | --x-inc | --x-in | --x-i)
770 ac_prev=x_includes ;;
771 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
772 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
773 x_includes=$ac_optarg ;;
774
775 -x-libraries | --x-libraries | --x-librarie | --x-librari \
776 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
777 ac_prev=x_libraries ;;
778 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
779 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
780 x_libraries=$ac_optarg ;;
781
782 -*) { echo "$as_me: error: unrecognized option: $ac_option
783Try \`$0 --help' for more information." >&2
784 { (exit 1); exit 1; }; }
785 ;;
786
787 *=*)
788 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
789 # Reject names that are not valid shell variable names.
790 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
791 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
792 { (exit 1); exit 1; }; }
793 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
794 eval "$ac_envvar='$ac_optarg'"
795 export $ac_envvar ;;
796
797 *)
798 # FIXME: should be removed in autoconf 3.0.
799 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
800 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
801 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
802 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
803 ;;
804
805 esac
806done
807
808if test -n "$ac_prev"; then
809 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
810 { echo "$as_me: error: missing argument to $ac_option" >&2
811 { (exit 1); exit 1; }; }
812fi
813
814# Be sure to have absolute paths.
815for ac_var in exec_prefix prefix
816do
817 eval ac_val=$`echo $ac_var`
818 case $ac_val in
819 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
820 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
821 { (exit 1); exit 1; }; };;
822 esac
823done
824
825# Be sure to have absolute paths.
826for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
827 localstatedir libdir includedir oldincludedir infodir mandir
828do
829 eval ac_val=$`echo $ac_var`
830 case $ac_val in
831 [\\/$]* | ?:[\\/]* ) ;;
832 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
833 { (exit 1); exit 1; }; };;
834 esac
835done
836
837# There might be people who depend on the old broken behavior: `$host'
838# used to hold the argument of --host etc.
839# FIXME: To remove some day.
840build=$build_alias
841host=$host_alias
842target=$target_alias
843
844# FIXME: To remove some day.
845if test "x$host_alias" != x; then
846 if test "x$build_alias" = x; then
847 cross_compiling=maybe
848 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
849 If a cross compiler is detected then cross compile mode will be used." >&2
850 elif test "x$build_alias" != "x$host_alias"; then
851 cross_compiling=yes
852 fi
853fi
854
855ac_tool_prefix=
856test -n "$host_alias" && ac_tool_prefix=$host_alias-
857
858test "$silent" = yes && exec 6>/dev/null
859
860
861# Find the source files, if location was not specified.
862if test -z "$srcdir"; then
863 ac_srcdir_defaulted=yes
864 # Try the directory containing this script, then its parent.
865 ac_confdir=`(dirname "$0") 2>/dev/null ||
866$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
867 X"$0" : 'X\(//\)[^/]' \| \
868 X"$0" : 'X\(//\)$' \| \
869 X"$0" : 'X\(/\)' \| \
870 . : '\(.\)' 2>/dev/null ||
871echo X"$0" |
872 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
873 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
874 /^X\(\/\/\)$/{ s//\1/; q; }
875 /^X\(\/\).*/{ s//\1/; q; }
876 s/.*/./; q'`
877 srcdir=$ac_confdir
878 if test ! -r $srcdir/$ac_unique_file; then
879 srcdir=..
880 fi
881else
882 ac_srcdir_defaulted=no
883fi
884if test ! -r $srcdir/$ac_unique_file; then
885 if test "$ac_srcdir_defaulted" = yes; then
886 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
887 { (exit 1); exit 1; }; }
888 else
889 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
890 { (exit 1); exit 1; }; }
891 fi
892fi
John Criswell0c38eaf2003-09-10 15:17:25 +0000893(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
894 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
895 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +0000896srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
897ac_env_build_alias_set=${build_alias+set}
898ac_env_build_alias_value=$build_alias
899ac_cv_env_build_alias_set=${build_alias+set}
900ac_cv_env_build_alias_value=$build_alias
901ac_env_host_alias_set=${host_alias+set}
902ac_env_host_alias_value=$host_alias
903ac_cv_env_host_alias_set=${host_alias+set}
904ac_cv_env_host_alias_value=$host_alias
905ac_env_target_alias_set=${target_alias+set}
906ac_env_target_alias_value=$target_alias
907ac_cv_env_target_alias_set=${target_alias+set}
908ac_cv_env_target_alias_value=$target_alias
909ac_env_CXX_set=${CXX+set}
910ac_env_CXX_value=$CXX
911ac_cv_env_CXX_set=${CXX+set}
912ac_cv_env_CXX_value=$CXX
913ac_env_CXXFLAGS_set=${CXXFLAGS+set}
914ac_env_CXXFLAGS_value=$CXXFLAGS
915ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
916ac_cv_env_CXXFLAGS_value=$CXXFLAGS
917ac_env_LDFLAGS_set=${LDFLAGS+set}
918ac_env_LDFLAGS_value=$LDFLAGS
919ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
920ac_cv_env_LDFLAGS_value=$LDFLAGS
921ac_env_CPPFLAGS_set=${CPPFLAGS+set}
922ac_env_CPPFLAGS_value=$CPPFLAGS
923ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
924ac_cv_env_CPPFLAGS_value=$CPPFLAGS
925ac_env_CC_set=${CC+set}
926ac_env_CC_value=$CC
927ac_cv_env_CC_set=${CC+set}
928ac_cv_env_CC_value=$CC
929ac_env_CFLAGS_set=${CFLAGS+set}
930ac_env_CFLAGS_value=$CFLAGS
931ac_cv_env_CFLAGS_set=${CFLAGS+set}
932ac_cv_env_CFLAGS_value=$CFLAGS
933ac_env_CPP_set=${CPP+set}
934ac_env_CPP_value=$CPP
935ac_cv_env_CPP_set=${CPP+set}
936ac_cv_env_CPP_value=$CPP
John Criswell47fdd832003-07-14 16:52:07 +0000937ac_env_CXXCPP_set=${CXXCPP+set}
938ac_env_CXXCPP_value=$CXXCPP
939ac_cv_env_CXXCPP_set=${CXXCPP+set}
940ac_cv_env_CXXCPP_value=$CXXCPP
941ac_env_F77_set=${F77+set}
942ac_env_F77_value=$F77
943ac_cv_env_F77_set=${F77+set}
944ac_cv_env_F77_value=$F77
945ac_env_FFLAGS_set=${FFLAGS+set}
946ac_env_FFLAGS_value=$FFLAGS
947ac_cv_env_FFLAGS_set=${FFLAGS+set}
948ac_cv_env_FFLAGS_value=$FFLAGS
John Criswell7a73b802003-06-30 21:59:07 +0000949
950#
951# Report the --help message.
952#
953if test "$ac_init_help" = "long"; then
954 # Omit some internal or obsolete options to make the list less imposing.
955 # This message is too long to be a string in the A/UX 3.1 sh.
956 cat <<_ACEOF
Chris Lattner95f45c52004-04-14 16:32:09 +0000957\`configure' configures [LLVM] [1.3] to adapt to many kinds of systems.
John Criswell7a73b802003-06-30 21:59:07 +0000958
959Usage: $0 [OPTION]... [VAR=VALUE]...
960
961To assign environment variables (e.g., CC, CFLAGS...), specify them as
962VAR=VALUE. See below for descriptions of some of the useful variables.
963
964Defaults for the options are specified in brackets.
965
966Configuration:
967 -h, --help display this help and exit
968 --help=short display options specific to this package
969 --help=recursive display the short help of all the included packages
970 -V, --version display version information and exit
971 -q, --quiet, --silent do not print \`checking...' messages
972 --cache-file=FILE cache test results in FILE [disabled]
973 -C, --config-cache alias for \`--cache-file=config.cache'
974 -n, --no-create do not create output files
975 --srcdir=DIR find the sources in DIR [configure dir or \`..']
976
977_ACEOF
978
979 cat <<_ACEOF
980Installation directories:
981 --prefix=PREFIX install architecture-independent files in PREFIX
982 [$ac_default_prefix]
983 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
984 [PREFIX]
985
986By default, \`make install' will install all the files in
987\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
988an installation prefix other than \`$ac_default_prefix' using \`--prefix',
989for instance \`--prefix=\$HOME'.
990
991For better control, use the options below.
992
993Fine tuning of the installation directories:
994 --bindir=DIR user executables [EPREFIX/bin]
995 --sbindir=DIR system admin executables [EPREFIX/sbin]
996 --libexecdir=DIR program executables [EPREFIX/libexec]
997 --datadir=DIR read-only architecture-independent data [PREFIX/share]
998 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
999 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1000 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1001 --libdir=DIR object code libraries [EPREFIX/lib]
1002 --includedir=DIR C header files [PREFIX/include]
1003 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1004 --infodir=DIR info documentation [PREFIX/info]
1005 --mandir=DIR man documentation [PREFIX/man]
1006_ACEOF
1007
1008 cat <<\_ACEOF
1009
1010System types:
1011 --build=BUILD configure for building on BUILD [guessed]
1012 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1013 --target=TARGET configure for building compilers for TARGET [HOST]
1014_ACEOF
1015fi
1016
1017if test -n "$ac_init_help"; then
1018 case $ac_init_help in
Chris Lattner95f45c52004-04-14 16:32:09 +00001019 short | recursive ) echo "Configuration of [LLVM] [1.3]:";;
John Criswell7a73b802003-06-30 21:59:07 +00001020 esac
1021 cat <<\_ACEOF
1022
1023Optional Features:
1024 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1025 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
John Criswell47fdd832003-07-14 16:52:07 +00001026 --enable-shared[=PKGS]
1027 build shared libraries [default=yes]
1028 --enable-static[=PKGS]
1029 build static libraries [default=yes]
1030 --enable-fast-install[=PKGS]
1031 optimize for fast installation [default=yes]
John Criswell7a73b802003-06-30 21:59:07 +00001032 --disable-libtool-lock avoid locking (might break parallel builds)
John Criswell7a73b802003-06-30 21:59:07 +00001033 --enable-optimized Compile with optimizations enabled (default is NO)
Brian Gaekee773b862004-04-16 17:13:44 +00001034 --enable-spec95=ARG Use spec95 as a benchmark (srcs in DIR)
1035 --enable-spec2000=ARG Use spec2000 as a benchmark (srcs in DIR)
1036 --enable-povray=ARG Use povray as a benchmark (srcs in DIR)
John Criswell7a73b802003-06-30 21:59:07 +00001037 --enable-precompiled_bytecode
1038 Use pre-compiled bytecode (default is NO)
John Criswellf02dbf02003-07-22 20:07:49 +00001039 --enable-llc_diffs Enable LLC Diffs when testing (default is YES)
John Criswellc78022e2003-07-29 19:11:58 +00001040 --enable-jit Enable Just In Time Compiling (default is YES)
John Criswell7a73b802003-06-30 21:59:07 +00001041
1042Optional Packages:
1043 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1044 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
John Criswell47fdd832003-07-14 16:52:07 +00001045 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1046 --with-pic try to use only PIC/non-PIC objects [default=use
1047 both]
1048 --with-tags[=TAGS]
1049 include additional configurations [automatic]
John Criswell7a73b802003-06-30 21:59:07 +00001050 --with-llvmgccdir Location of LLVM GCC front-end
1051 --with-bcrepos Location of Bytecode Repository
1052 --with-papi Location of PAPI
John Criswell7a73b802003-06-30 21:59:07 +00001053
1054Some influential environment variables:
1055 CXX C++ compiler command
1056 CXXFLAGS C++ compiler flags
1057 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1058 nonstandard directory <lib dir>
1059 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1060 headers in a nonstandard directory <include dir>
1061 CC C compiler command
1062 CFLAGS C compiler flags
1063 CPP C preprocessor
John Criswell47fdd832003-07-14 16:52:07 +00001064 CXXCPP C++ preprocessor
1065 F77 Fortran 77 compiler command
1066 FFLAGS Fortran 77 compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001067
1068Use these variables to override the choices made by `configure' or to help
1069it to find libraries and programs with nonstandard names/locations.
1070
1071Report bugs to <llvmbugs@cs.uiuc.edu>.
1072_ACEOF
1073fi
1074
1075if test "$ac_init_help" = "recursive"; then
1076 # If there are subdirs, report their specific --help.
1077 ac_popdir=`pwd`
1078 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1079 test -d $ac_dir || continue
1080 ac_builddir=.
1081
1082if test "$ac_dir" != .; then
1083 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1084 # A "../" for each directory in $ac_dir_suffix.
1085 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1086else
1087 ac_dir_suffix= ac_top_builddir=
1088fi
1089
1090case $srcdir in
1091 .) # No --srcdir option. We are building in place.
1092 ac_srcdir=.
1093 if test -z "$ac_top_builddir"; then
1094 ac_top_srcdir=.
1095 else
1096 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1097 fi ;;
1098 [\\/]* | ?:[\\/]* ) # Absolute path.
1099 ac_srcdir=$srcdir$ac_dir_suffix;
1100 ac_top_srcdir=$srcdir ;;
1101 *) # Relative path.
1102 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1103 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1104esac
1105# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1106# absolute.
1107ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
John Criswell0c38eaf2003-09-10 15:17:25 +00001108ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
John Criswell7a73b802003-06-30 21:59:07 +00001109ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1110ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1111
1112 cd $ac_dir
1113 # Check for guested configure; otherwise get Cygnus style configure.
1114 if test -f $ac_srcdir/configure.gnu; then
1115 echo
1116 $SHELL $ac_srcdir/configure.gnu --help=recursive
1117 elif test -f $ac_srcdir/configure; then
1118 echo
1119 $SHELL $ac_srcdir/configure --help=recursive
1120 elif test -f $ac_srcdir/configure.ac ||
1121 test -f $ac_srcdir/configure.in; then
1122 echo
1123 $ac_configure --help
1124 else
1125 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1126 fi
1127 cd $ac_popdir
1128 done
1129fi
1130
1131test -n "$ac_init_help" && exit 0
1132if $ac_init_version; then
1133 cat <<\_ACEOF
Chris Lattner95f45c52004-04-14 16:32:09 +00001134[LLVM] configure [1.3]
John Criswell0c38eaf2003-09-10 15:17:25 +00001135generated by GNU Autoconf 2.57
John Criswell7a73b802003-06-30 21:59:07 +00001136
1137Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1138Free Software Foundation, Inc.
1139This configure script is free software; the Free Software Foundation
1140gives unlimited permission to copy, distribute and modify it.
1141_ACEOF
1142 exit 0
1143fi
1144exec 5>config.log
1145cat >&5 <<_ACEOF
1146This file contains any messages produced by compilers while
1147running configure, to aid debugging if configure makes a mistake.
1148
Chris Lattner95f45c52004-04-14 16:32:09 +00001149It was created by [LLVM] $as_me [1.3], which was
John Criswell0c38eaf2003-09-10 15:17:25 +00001150generated by GNU Autoconf 2.57. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001151
1152 $ $0 $@
1153
1154_ACEOF
1155{
1156cat <<_ASUNAME
1157## --------- ##
1158## Platform. ##
1159## --------- ##
1160
1161hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1162uname -m = `(uname -m) 2>/dev/null || echo unknown`
1163uname -r = `(uname -r) 2>/dev/null || echo unknown`
1164uname -s = `(uname -s) 2>/dev/null || echo unknown`
1165uname -v = `(uname -v) 2>/dev/null || echo unknown`
1166
1167/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1168/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1169
1170/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1171/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1172/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1173hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1174/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1175/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1176/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1177
1178_ASUNAME
1179
1180as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1181for as_dir in $PATH
1182do
1183 IFS=$as_save_IFS
1184 test -z "$as_dir" && as_dir=.
1185 echo "PATH: $as_dir"
1186done
1187
1188} >&5
1189
1190cat >&5 <<_ACEOF
1191
1192
1193## ----------- ##
1194## Core tests. ##
1195## ----------- ##
1196
1197_ACEOF
1198
1199
1200# Keep a trace of the command line.
1201# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001202# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001203# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001204# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001205ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001206ac_configure_args0=
1207ac_configure_args1=
John Criswell7a73b802003-06-30 21:59:07 +00001208ac_sep=
John Criswell0c38eaf2003-09-10 15:17:25 +00001209ac_must_keep_next=false
1210for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001211do
John Criswell0c38eaf2003-09-10 15:17:25 +00001212 for ac_arg
1213 do
1214 case $ac_arg in
1215 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1216 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1217 | -silent | --silent | --silen | --sile | --sil)
1218 continue ;;
1219 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1220 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1221 esac
1222 case $ac_pass in
1223 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1224 2)
1225 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1226 if test $ac_must_keep_next = true; then
1227 ac_must_keep_next=false # Got value, back to normal.
1228 else
1229 case $ac_arg in
1230 *=* | --config-cache | -C | -disable-* | --disable-* \
1231 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1232 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1233 | -with-* | --with-* | -without-* | --without-* | --x)
1234 case "$ac_configure_args0 " in
1235 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1236 esac
1237 ;;
1238 -* ) ac_must_keep_next=true ;;
1239 esac
1240 fi
1241 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1242 # Get rid of the leading space.
1243 ac_sep=" "
1244 ;;
1245 esac
1246 done
John Criswell7a73b802003-06-30 21:59:07 +00001247done
John Criswell0c38eaf2003-09-10 15:17:25 +00001248$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1249$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
John Criswell7a73b802003-06-30 21:59:07 +00001250
1251# When interrupted or exit'd, cleanup temporary files, and complete
1252# config.log. We remove comments because anyway the quotes in there
1253# would cause problems or look ugly.
1254# WARNING: Be sure not to use single quotes in there, as some shells,
1255# such as our DU 5.0 friend, will then `close' the trap.
1256trap 'exit_status=$?
1257 # Save into config.log some information that might help in debugging.
1258 {
1259 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001260
John Criswell7a73b802003-06-30 21:59:07 +00001261 cat <<\_ASBOX
1262## ---------------- ##
1263## Cache variables. ##
1264## ---------------- ##
1265_ASBOX
1266 echo
1267 # The following way of writing the cache mishandles newlines in values,
1268{
1269 (set) 2>&1 |
1270 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1271 *ac_space=\ *)
1272 sed -n \
1273 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1274 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1275 ;;
1276 *)
1277 sed -n \
1278 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1279 ;;
1280 esac;
1281}
1282 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001283
1284 cat <<\_ASBOX
1285## ----------------- ##
1286## Output variables. ##
1287## ----------------- ##
1288_ASBOX
1289 echo
1290 for ac_var in $ac_subst_vars
1291 do
1292 eval ac_val=$`echo $ac_var`
1293 echo "$ac_var='"'"'$ac_val'"'"'"
1294 done | sort
1295 echo
1296
1297 if test -n "$ac_subst_files"; then
1298 cat <<\_ASBOX
1299## ------------- ##
1300## Output files. ##
1301## ------------- ##
1302_ASBOX
1303 echo
1304 for ac_var in $ac_subst_files
1305 do
1306 eval ac_val=$`echo $ac_var`
1307 echo "$ac_var='"'"'$ac_val'"'"'"
1308 done | sort
1309 echo
1310 fi
1311
John Criswell7a73b802003-06-30 21:59:07 +00001312 if test -s confdefs.h; then
1313 cat <<\_ASBOX
1314## ----------- ##
1315## confdefs.h. ##
1316## ----------- ##
1317_ASBOX
1318 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001319 sed "/^$/d" confdefs.h | sort
John Criswell7a73b802003-06-30 21:59:07 +00001320 echo
1321 fi
1322 test "$ac_signal" != 0 &&
1323 echo "$as_me: caught signal $ac_signal"
1324 echo "$as_me: exit $exit_status"
1325 } >&5
1326 rm -f core core.* *.core &&
1327 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1328 exit $exit_status
1329 ' 0
1330for ac_signal in 1 2 13 15; do
1331 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1332done
1333ac_signal=0
1334
1335# confdefs.h avoids OS command line length limits that DEFS can exceed.
1336rm -rf conftest* confdefs.h
1337# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1338echo >confdefs.h
1339
1340# Predefined preprocessor variables.
1341
1342cat >>confdefs.h <<_ACEOF
1343#define PACKAGE_NAME "$PACKAGE_NAME"
1344_ACEOF
1345
1346
1347cat >>confdefs.h <<_ACEOF
1348#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1349_ACEOF
1350
1351
1352cat >>confdefs.h <<_ACEOF
1353#define PACKAGE_VERSION "$PACKAGE_VERSION"
1354_ACEOF
1355
1356
1357cat >>confdefs.h <<_ACEOF
1358#define PACKAGE_STRING "$PACKAGE_STRING"
1359_ACEOF
1360
1361
1362cat >>confdefs.h <<_ACEOF
1363#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1364_ACEOF
1365
1366
1367# Let the site file select an alternate cache file if it wants to.
1368# Prefer explicitly selected file to automatically selected ones.
1369if test -z "$CONFIG_SITE"; then
1370 if test "x$prefix" != xNONE; then
1371 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1372 else
1373 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1374 fi
1375fi
1376for ac_site_file in $CONFIG_SITE; do
1377 if test -r "$ac_site_file"; then
1378 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1379echo "$as_me: loading site script $ac_site_file" >&6;}
1380 sed 's/^/| /' "$ac_site_file" >&5
1381 . "$ac_site_file"
1382 fi
1383done
1384
1385if test -r "$cache_file"; then
1386 # Some versions of bash will fail to source /dev/null (special
1387 # files actually), so we avoid doing that.
1388 if test -f "$cache_file"; then
1389 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1390echo "$as_me: loading cache $cache_file" >&6;}
1391 case $cache_file in
1392 [\\/]* | ?:[\\/]* ) . $cache_file;;
1393 *) . ./$cache_file;;
1394 esac
1395 fi
1396else
1397 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1398echo "$as_me: creating cache $cache_file" >&6;}
1399 >$cache_file
1400fi
1401
1402# Check that the precious variables saved in the cache have kept the same
1403# value.
1404ac_cache_corrupted=false
1405for ac_var in `(set) 2>&1 |
1406 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1407 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1408 eval ac_new_set=\$ac_env_${ac_var}_set
1409 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1410 eval ac_new_val="\$ac_env_${ac_var}_value"
1411 case $ac_old_set,$ac_new_set in
1412 set,)
1413 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1414echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1415 ac_cache_corrupted=: ;;
1416 ,set)
1417 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1418echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1419 ac_cache_corrupted=: ;;
1420 ,);;
1421 *)
1422 if test "x$ac_old_val" != "x$ac_new_val"; then
1423 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1424echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1425 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1426echo "$as_me: former value: $ac_old_val" >&2;}
1427 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1428echo "$as_me: current value: $ac_new_val" >&2;}
1429 ac_cache_corrupted=:
1430 fi;;
1431 esac
1432 # Pass precious variables to config.status.
1433 if test "$ac_new_set" = set; then
1434 case $ac_new_val in
1435 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1436 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1437 *) ac_arg=$ac_var=$ac_new_val ;;
1438 esac
1439 case " $ac_configure_args " in
1440 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1441 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1442 esac
1443 fi
1444done
1445if $ac_cache_corrupted; then
1446 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1447echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1448 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1449echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1450 { (exit 1); exit 1; }; }
1451fi
1452
1453ac_ext=c
1454ac_cpp='$CPP $CPPFLAGS'
1455ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1456ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1457ac_compiler_gnu=$ac_cv_c_compiler_gnu
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
John Criswell0c38eaf2003-09-10 15:17:25 +00001485
John Criswell7a73b802003-06-30 21:59:07 +00001486ac_aux_dir=
John Criswell392aaa32003-07-22 19:18:09 +00001487for ac_dir in autoconf $srcdir/autoconf; do
John Criswell7a73b802003-06-30 21:59:07 +00001488 if test -f $ac_dir/install-sh; then
1489 ac_aux_dir=$ac_dir
1490 ac_install_sh="$ac_aux_dir/install-sh -c"
1491 break
1492 elif test -f $ac_dir/install.sh; then
1493 ac_aux_dir=$ac_dir
1494 ac_install_sh="$ac_aux_dir/install.sh -c"
1495 break
1496 elif test -f $ac_dir/shtool; then
1497 ac_aux_dir=$ac_dir
1498 ac_install_sh="$ac_aux_dir/shtool install -c"
1499 break
1500 fi
1501done
1502if test -z "$ac_aux_dir"; then
John Criswell392aaa32003-07-22 19:18:09 +00001503 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1504echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001505 { (exit 1); exit 1; }; }
1506fi
1507ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1508ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1509ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1510
John Criswell392aaa32003-07-22 19:18:09 +00001511
John Criswell1b824322003-09-15 17:19:42 +00001512if test ${srcdir} != "."
John Criswell93e1c722003-09-15 17:04:06 +00001513then
John Criswell1b824322003-09-15 17:19:42 +00001514 if test -f ${srcdir}/include/Config/config.h
1515 then
1516 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
John Criswell93e1c722003-09-15 17:04:06 +00001517echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1518 { (exit 1); exit 1; }; }
John Criswell1b824322003-09-15 17:19:42 +00001519 fi
John Criswell93e1c722003-09-15 17:04:06 +00001520fi
1521
John Criswell33a911a2003-11-25 20:36:46 +00001522for i in `ls ${srcdir}/projects`
1523do
1524 if test ${i} != "CVS"
1525 then
John Criswell2f2741b2003-12-12 20:15:23 +00001526 if test -f ${srcdir}/projects/${i}/configure
John Criswell33a911a2003-11-25 20:36:46 +00001527 then
John Criswell7ec78aa2003-10-16 01:49:00 +00001528
1529
John Criswell33a911a2003-11-25 20:36:46 +00001530subdirs="$subdirs projects/${i}"
John Criswell7ec78aa2003-10-16 01:49:00 +00001531
John Criswell33a911a2003-11-25 20:36:46 +00001532 fi
1533 fi
1534done
John Criswell559a6c12003-09-30 16:31:48 +00001535
John Criswell0c38eaf2003-09-10 15:17:25 +00001536 ac_config_headers="$ac_config_headers include/Config/config.h"
John Criswell392aaa32003-07-22 19:18:09 +00001537
John Criswell0c38eaf2003-09-10 15:17:25 +00001538 ac_config_commands="$ac_config_commands Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001539
1540
John Criswell0c38eaf2003-09-10 15:17:25 +00001541 ac_config_commands="$ac_config_commands Makefile.common"
John Criswellc764fbc2003-09-06 15:17:13 +00001542
1543
John Criswell0c38eaf2003-09-10 15:17:25 +00001544 ac_config_commands="$ac_config_commands lib/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001545
1546
John Criswell0c38eaf2003-09-10 15:17:25 +00001547 ac_config_commands="$ac_config_commands runtime/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001548
1549
John Criswell0c38eaf2003-09-10 15:17:25 +00001550 ac_config_commands="$ac_config_commands test/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001551
1552
John Criswell0c38eaf2003-09-10 15:17:25 +00001553 ac_config_commands="$ac_config_commands test/Makefile.tests"
John Criswellc764fbc2003-09-06 15:17:13 +00001554
1555
John Criswellf424d742003-10-07 21:13:47 +00001556 ac_config_commands="$ac_config_commands test/QMTest/llvm.py"
1557
1558
1559 ac_config_commands="$ac_config_commands test/QMTest/llvmdb.py"
John Criswell08acb9b2003-09-16 02:12:45 +00001560
1561
John Criswell0c38eaf2003-09-10 15:17:25 +00001562 ac_config_commands="$ac_config_commands test/Programs/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001563
1564
John Criswell0c38eaf2003-09-10 15:17:25 +00001565 ac_config_commands="$ac_config_commands test/Programs/Makefile.programs"
John Criswellc764fbc2003-09-06 15:17:13 +00001566
1567
John Criswell0c38eaf2003-09-10 15:17:25 +00001568 ac_config_commands="$ac_config_commands test/Programs/TEST.aa.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001569
1570
John Criswell0c38eaf2003-09-10 15:17:25 +00001571 ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.report"
John Criswellc764fbc2003-09-06 15:17:13 +00001572
1573
John Criswell0c38eaf2003-09-10 15:17:25 +00001574 ac_config_commands="$ac_config_commands test/Programs/TEST.aa.report"
John Criswellc764fbc2003-09-06 15:17:13 +00001575
1576
John Criswell0c38eaf2003-09-10 15:17:25 +00001577 ac_config_commands="$ac_config_commands test/Programs/TEST.example.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001578
1579
John Criswell0c38eaf2003-09-10 15:17:25 +00001580 ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001581
1582
John Criswell0c38eaf2003-09-10 15:17:25 +00001583 ac_config_commands="$ac_config_commands test/Programs/TEST.buildrepo.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001584
1585
John Criswell0c38eaf2003-09-10 15:17:25 +00001586 ac_config_commands="$ac_config_commands test/Programs/TEST.jit.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001587
1588
John Criswell0c38eaf2003-09-10 15:17:25 +00001589 ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.report"
John Criswellc764fbc2003-09-06 15:17:13 +00001590
1591
John Criswell0c38eaf2003-09-10 15:17:25 +00001592 ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001593
1594
John Criswell0c38eaf2003-09-10 15:17:25 +00001595 ac_config_commands="$ac_config_commands test/Programs/TEST.jit.report"
John Criswellc764fbc2003-09-06 15:17:13 +00001596
1597
John Criswell0c38eaf2003-09-10 15:17:25 +00001598 ac_config_commands="$ac_config_commands test/Programs/TEST.typesafe.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001599
1600
John Criswell0c38eaf2003-09-10 15:17:25 +00001601 ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.gnuplot"
John Criswellc764fbc2003-09-06 15:17:13 +00001602
1603
John Criswell878be7d2004-02-24 21:43:38 +00001604 ac_config_commands="$ac_config_commands test/Programs/TEST.vtl.Makefile"
1605
1606
John Criswell0c38eaf2003-09-10 15:17:25 +00001607 ac_config_commands="$ac_config_commands test/Programs/External/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001608
1609
John Criswell0c38eaf2003-09-10 15:17:25 +00001610 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001611
1612
John Criswell613758d2003-09-11 18:03:50 +00001613 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile.spec"
1614
1615
Alkis Evlogimenos271143f2004-02-26 04:14:10 +00001616 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile.spec2000"
1617
1618
John Criswellcf2e9f72004-02-10 22:36:35 +00001619 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile.spec95"
1620
1621
John Criswell0c38eaf2003-09-10 15:17:25 +00001622 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001623
1624
John Criswell0c38eaf2003-09-10 15:17:25 +00001625 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile.multisrc"
John Criswellc764fbc2003-09-06 15:17:13 +00001626
1627
Misha Brukman811ce9f2003-11-12 22:16:51 +00001628 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in"
1629
1630
1631 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile"
1632
1633
1634 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in"
1635
1636
1637 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile"
1638
1639
1640 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in"
1641
1642
1643 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile"
1644
1645
1646 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in"
1647
1648
1649 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile"
1650
1651
1652 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in"
1653
1654
1655 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile"
1656
1657
1658 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in"
1659
1660
1661 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile"
1662
1663
1664 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in"
1665
1666
John Criswell0c38eaf2003-09-10 15:17:25 +00001667 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001668
1669
John Criswell0c38eaf2003-09-10 15:17:25 +00001670 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile.singlesrc"
John Criswellc764fbc2003-09-06 15:17:13 +00001671
1672
Alkis Evlogimenos271143f2004-02-26 04:14:10 +00001673 ac_config_commands="$ac_config_commands test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile"
1674
1675
John Criswell0c38eaf2003-09-10 15:17:25 +00001676 ac_config_commands="$ac_config_commands tools/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001677
1678
Brian Gaekec45be042003-10-07 06:01:34 +00001679 ac_config_commands="$ac_config_commands utils/Makefile"
1680
1681
John Criswell0c38eaf2003-09-10 15:17:25 +00001682 ac_config_commands="$ac_config_commands projects/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001683
1684
John Criswell392aaa32003-07-22 19:18:09 +00001685
John Criswell7a73b802003-06-30 21:59:07 +00001686# Find a good install program. We prefer a C program (faster),
1687# so one script is as good as another. But avoid the broken or
1688# incompatible versions:
1689# SysV /etc/install, /usr/sbin/install
1690# SunOS /usr/etc/install
1691# IRIX /sbin/install
1692# AIX /bin/install
1693# AmigaOS /C/install, which installs bootblocks on floppy discs
1694# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1695# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1696# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1697# ./install, which can be erroneously created by make from ./install.sh.
1698echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1699echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1700if test -z "$INSTALL"; then
1701if test "${ac_cv_path_install+set}" = set; then
1702 echo $ECHO_N "(cached) $ECHO_C" >&6
1703else
1704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1705for as_dir in $PATH
1706do
1707 IFS=$as_save_IFS
1708 test -z "$as_dir" && as_dir=.
1709 # Account for people who put trailing slashes in PATH elements.
1710case $as_dir/ in
1711 ./ | .// | /cC/* | \
1712 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1713 /usr/ucb/* ) ;;
1714 *)
1715 # OSF1 and SCO ODT 3.0 have their own names for install.
1716 # Don't use installbsd from OSF since it installs stuff as root
1717 # by default.
1718 for ac_prog in ginstall scoinst install; do
1719 for ac_exec_ext in '' $ac_executable_extensions; do
1720 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1721 if test $ac_prog = install &&
1722 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1723 # AIX install. It has an incompatible calling convention.
1724 :
1725 elif test $ac_prog = install &&
1726 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1727 # program-specific install script used by HP pwplus--don't use.
1728 :
1729 else
1730 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1731 break 3
1732 fi
1733 fi
1734 done
1735 done
1736 ;;
1737esac
1738done
1739
1740
1741fi
1742 if test "${ac_cv_path_install+set}" = set; then
1743 INSTALL=$ac_cv_path_install
1744 else
1745 # As a last resort, use the slow shell script. We don't cache a
1746 # path for INSTALL within a source directory, because that will
1747 # break other packages using the cache if that directory is
1748 # removed, or if the path is relative.
1749 INSTALL=$ac_install_sh
1750 fi
1751fi
1752echo "$as_me:$LINENO: result: $INSTALL" >&5
1753echo "${ECHO_T}$INSTALL" >&6
1754
1755# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1756# It thinks the first close brace ends the variable substitution.
1757test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1758
1759test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1760
1761test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1762
1763
1764# Make sure we can run config.sub.
1765$ac_config_sub sun4 >/dev/null 2>&1 ||
1766 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1767echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1768 { (exit 1); exit 1; }; }
1769
1770echo "$as_me:$LINENO: checking build system type" >&5
1771echo $ECHO_N "checking build system type... $ECHO_C" >&6
1772if test "${ac_cv_build+set}" = set; then
1773 echo $ECHO_N "(cached) $ECHO_C" >&6
1774else
1775 ac_cv_build_alias=$build_alias
1776test -z "$ac_cv_build_alias" &&
1777 ac_cv_build_alias=`$ac_config_guess`
1778test -z "$ac_cv_build_alias" &&
1779 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1780echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1781 { (exit 1); exit 1; }; }
1782ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1783 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1784echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1785 { (exit 1); exit 1; }; }
1786
1787fi
1788echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1789echo "${ECHO_T}$ac_cv_build" >&6
1790build=$ac_cv_build
1791build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1792build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1793build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1794
1795
1796echo "$as_me:$LINENO: checking host system type" >&5
1797echo $ECHO_N "checking host system type... $ECHO_C" >&6
1798if test "${ac_cv_host+set}" = set; then
1799 echo $ECHO_N "(cached) $ECHO_C" >&6
1800else
1801 ac_cv_host_alias=$host_alias
1802test -z "$ac_cv_host_alias" &&
1803 ac_cv_host_alias=$ac_cv_build_alias
1804ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1805 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1806echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1807 { (exit 1); exit 1; }; }
1808
1809fi
1810echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1811echo "${ECHO_T}$ac_cv_host" >&6
1812host=$ac_cv_host
1813host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1814host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1815host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1816
1817
1818echo "$as_me:$LINENO: checking target system type" >&5
1819echo $ECHO_N "checking target system type... $ECHO_C" >&6
1820if test "${ac_cv_target+set}" = set; then
1821 echo $ECHO_N "(cached) $ECHO_C" >&6
1822else
1823 ac_cv_target_alias=$target_alias
1824test "x$ac_cv_target_alias" = "x" &&
1825 ac_cv_target_alias=$ac_cv_host_alias
1826ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1827 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1828echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1829 { (exit 1); exit 1; }; }
1830
1831fi
1832echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1833echo "${ECHO_T}$ac_cv_target" >&6
1834target=$ac_cv_target
1835target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1836target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1837target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1838
1839
1840# The aliases save the names the user supplied, while $host etc.
1841# will get canonicalized.
1842test -n "$target_alias" &&
1843 test "$program_prefix$program_suffix$program_transform_name" = \
1844 NONENONEs,x,x, &&
1845 program_prefix=${target_alias}-
1846
1847case $build in
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001848 *-*-linux*)
1849 OS=Linux
John Criswell7a73b802003-06-30 21:59:07 +00001850
Brian Gaekef3b24102003-11-16 18:38:14 +00001851 if test -d /home/vadve/lattner/local/x86/llvm-gcc
1852 then
1853 LLVMGCCDIR=/home/vadve/lattner/local/x86/llvm-gcc/
John Criswell7a73b802003-06-30 21:59:07 +00001854
Brian Gaekef3b24102003-11-16 18:38:14 +00001855 fi
John Criswell7a73b802003-06-30 21:59:07 +00001856 ;;
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001857 *-*-solaris*)
1858 OS=SunOS
John Criswell7a73b802003-06-30 21:59:07 +00001859
Brian Gaekef3b24102003-11-16 18:38:14 +00001860 if test -d /home/vadve/lattner/local/sparc/llvm-gcc
1861 then
1862 LLVMGCCDIR=/home/vadve/lattner/local/sparc/llvm-gcc/
John Criswell7a73b802003-06-30 21:59:07 +00001863
Brian Gaekef3b24102003-11-16 18:38:14 +00001864 fi
John Criswell7a73b802003-06-30 21:59:07 +00001865 ;;
John Criswelld6621562004-06-07 14:26:24 +00001866 *-*-cygwin*)
1867 OS=Cygwin
1868
1869 ;;
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001870 *-*-darwin*)
1871 OS=Darwin
1872
1873 ;;
Misha Brukmandb84a092004-06-22 15:35:32 +00001874 *-*-aix*)
1875 OS=AIX
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001876
Misha Brukmandb84a092004-06-22 15:35:32 +00001877 ;;
John Criswell7a73b802003-06-30 21:59:07 +00001878 *) OS=Unknown
1879
1880 ;;
1881esac
1882
1883case $target in
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001884 sparc*-*-solaris*) target=sparcv9-sun-solaris2.8
John Criswell7a73b802003-06-30 21:59:07 +00001885
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001886 ;;
John Criswell7a73b802003-06-30 21:59:07 +00001887esac
1888
John Criswell76595452003-07-01 22:07:39 +00001889case $target in
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001890 i*86-*) ARCH=x86
John Criswell76595452003-07-01 22:07:39 +00001891
1892 ;;
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001893 sparc*-*) ARCH=Sparc
1894
1895 ;;
1896 powerpc*-*) ARCH=PowerPC
1897
1898 ;;
1899 *) ARCH=Unknown
John Criswell76595452003-07-01 22:07:39 +00001900
1901 ;;
1902esac
1903
John Criswell7a73b802003-06-30 21:59:07 +00001904ac_ext=cc
1905ac_cpp='$CXXCPP $CPPFLAGS'
1906ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1907ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1908ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1909if test -n "$ac_tool_prefix"; then
1910 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1911 do
1912 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1913set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1914echo "$as_me:$LINENO: checking for $ac_word" >&5
1915echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1916if test "${ac_cv_prog_CXX+set}" = set; then
1917 echo $ECHO_N "(cached) $ECHO_C" >&6
1918else
1919 if test -n "$CXX"; then
1920 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1921else
1922as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1923for as_dir in $PATH
1924do
1925 IFS=$as_save_IFS
1926 test -z "$as_dir" && as_dir=.
1927 for ac_exec_ext in '' $ac_executable_extensions; do
1928 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1929 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1930 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1931 break 2
1932 fi
1933done
1934done
1935
1936fi
1937fi
1938CXX=$ac_cv_prog_CXX
1939if test -n "$CXX"; then
1940 echo "$as_me:$LINENO: result: $CXX" >&5
1941echo "${ECHO_T}$CXX" >&6
1942else
1943 echo "$as_me:$LINENO: result: no" >&5
1944echo "${ECHO_T}no" >&6
1945fi
1946
1947 test -n "$CXX" && break
1948 done
1949fi
1950if test -z "$CXX"; then
1951 ac_ct_CXX=$CXX
1952 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1953do
1954 # Extract the first word of "$ac_prog", so it can be a program name with args.
1955set dummy $ac_prog; ac_word=$2
1956echo "$as_me:$LINENO: checking for $ac_word" >&5
1957echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1958if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1959 echo $ECHO_N "(cached) $ECHO_C" >&6
1960else
1961 if test -n "$ac_ct_CXX"; then
1962 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1963else
1964as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1965for as_dir in $PATH
1966do
1967 IFS=$as_save_IFS
1968 test -z "$as_dir" && as_dir=.
1969 for ac_exec_ext in '' $ac_executable_extensions; do
1970 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1971 ac_cv_prog_ac_ct_CXX="$ac_prog"
1972 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1973 break 2
1974 fi
1975done
1976done
1977
1978fi
1979fi
1980ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
1981if test -n "$ac_ct_CXX"; then
1982 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
1983echo "${ECHO_T}$ac_ct_CXX" >&6
1984else
1985 echo "$as_me:$LINENO: result: no" >&5
1986echo "${ECHO_T}no" >&6
1987fi
1988
1989 test -n "$ac_ct_CXX" && break
1990done
1991test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
1992
1993 CXX=$ac_ct_CXX
1994fi
1995
1996
1997# Provide some information about the compiler.
1998echo "$as_me:$LINENO:" \
1999 "checking for C++ compiler version" >&5
2000ac_compiler=`set X $ac_compile; echo $2`
2001{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2002 (eval $ac_compiler --version </dev/null >&5) 2>&5
2003 ac_status=$?
2004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2005 (exit $ac_status); }
2006{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2007 (eval $ac_compiler -v </dev/null >&5) 2>&5
2008 ac_status=$?
2009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2010 (exit $ac_status); }
2011{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2012 (eval $ac_compiler -V </dev/null >&5) 2>&5
2013 ac_status=$?
2014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2015 (exit $ac_status); }
2016
2017cat >conftest.$ac_ext <<_ACEOF
2018#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002019/* confdefs.h. */
2020_ACEOF
2021cat confdefs.h >>conftest.$ac_ext
2022cat >>conftest.$ac_ext <<_ACEOF
2023/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002024
John Criswell7a73b802003-06-30 21:59:07 +00002025int
2026main ()
2027{
2028
2029 ;
2030 return 0;
2031}
2032_ACEOF
2033ac_clean_files_save=$ac_clean_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002034ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002035# Try to create an executable without -o first, disregard a.out.
2036# It will help us diagnose broken compilers, and finding out an intuition
2037# of exeext.
2038echo "$as_me:$LINENO: checking for C++ compiler default output" >&5
2039echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6
2040ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2041if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2042 (eval $ac_link_default) 2>&5
2043 ac_status=$?
2044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2045 (exit $ac_status); }; then
2046 # Find the output, starting from the most likely. This scheme is
2047# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2048# resort.
2049
2050# Be careful to initialize this variable, since it used to be cached.
2051# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2052ac_cv_exeext=
John Criswell0c38eaf2003-09-10 15:17:25 +00002053# b.out is created by i960 compilers.
2054for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2055do
2056 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002057 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002058 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2059 ;;
2060 conftest.$ac_ext )
2061 # This is the source file.
2062 ;;
2063 [ab].out )
2064 # We found the default executable, but exeext='' is most
2065 # certainly right.
2066 break;;
2067 *.* )
2068 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2069 # FIXME: I believe we export ac_cv_exeext for Libtool,
2070 # but it would be cool to find out if it's true. Does anybody
2071 # maintain Libtool? --akim.
2072 export ac_cv_exeext
2073 break;;
2074 * )
2075 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002076 esac
2077done
2078else
2079 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002080sed 's/^/| /' conftest.$ac_ext >&5
2081
2082{ { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2083See \`config.log' for more details." >&5
2084echo "$as_me: error: C++ compiler cannot create executables
2085See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002086 { (exit 77); exit 77; }; }
2087fi
2088
2089ac_exeext=$ac_cv_exeext
2090echo "$as_me:$LINENO: result: $ac_file" >&5
2091echo "${ECHO_T}$ac_file" >&6
2092
2093# Check the compiler produces executables we can run. If not, either
2094# the compiler is broken, or we cross compile.
2095echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2096echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2097# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2098# If not cross compiling, check that we can run a simple program.
2099if test "$cross_compiling" != yes; then
2100 if { ac_try='./$ac_file'
2101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2102 (eval $ac_try) 2>&5
2103 ac_status=$?
2104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2105 (exit $ac_status); }; }; then
2106 cross_compiling=no
2107 else
2108 if test "$cross_compiling" = maybe; then
2109 cross_compiling=yes
2110 else
2111 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002112If you meant to cross compile, use \`--host'.
2113See \`config.log' for more details." >&5
John Criswell7a73b802003-06-30 21:59:07 +00002114echo "$as_me: error: cannot run C++ compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002115If you meant to cross compile, use \`--host'.
2116See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002117 { (exit 1); exit 1; }; }
2118 fi
2119 fi
2120fi
2121echo "$as_me:$LINENO: result: yes" >&5
2122echo "${ECHO_T}yes" >&6
2123
John Criswell0c38eaf2003-09-10 15:17:25 +00002124rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002125ac_clean_files=$ac_clean_files_save
2126# Check the compiler produces executables we can run. If not, either
2127# the compiler is broken, or we cross compile.
2128echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2129echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2130echo "$as_me:$LINENO: result: $cross_compiling" >&5
2131echo "${ECHO_T}$cross_compiling" >&6
2132
2133echo "$as_me:$LINENO: checking for suffix of executables" >&5
2134echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2135if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2136 (eval $ac_link) 2>&5
2137 ac_status=$?
2138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2139 (exit $ac_status); }; then
2140 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2141# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2142# work properly (i.e., refer to `conftest.exe'), while it won't with
2143# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002144for ac_file in conftest.exe conftest conftest.*; do
2145 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002146 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002147 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002148 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2149 export ac_cv_exeext
2150 break;;
2151 * ) break;;
2152 esac
2153done
2154else
John Criswell0c38eaf2003-09-10 15:17:25 +00002155 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2156See \`config.log' for more details." >&5
2157echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2158See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002159 { (exit 1); exit 1; }; }
2160fi
2161
2162rm -f conftest$ac_cv_exeext
2163echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2164echo "${ECHO_T}$ac_cv_exeext" >&6
2165
2166rm -f conftest.$ac_ext
2167EXEEXT=$ac_cv_exeext
2168ac_exeext=$EXEEXT
2169echo "$as_me:$LINENO: checking for suffix of object files" >&5
2170echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2171if test "${ac_cv_objext+set}" = set; then
2172 echo $ECHO_N "(cached) $ECHO_C" >&6
2173else
2174 cat >conftest.$ac_ext <<_ACEOF
2175#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002176/* confdefs.h. */
2177_ACEOF
2178cat confdefs.h >>conftest.$ac_ext
2179cat >>conftest.$ac_ext <<_ACEOF
2180/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002181
John Criswell7a73b802003-06-30 21:59:07 +00002182int
2183main ()
2184{
2185
2186 ;
2187 return 0;
2188}
2189_ACEOF
2190rm -f conftest.o conftest.obj
2191if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2192 (eval $ac_compile) 2>&5
2193 ac_status=$?
2194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2195 (exit $ac_status); }; then
2196 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2197 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002198 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002199 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2200 break;;
2201 esac
2202done
2203else
2204 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002205sed 's/^/| /' conftest.$ac_ext >&5
2206
2207{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2208See \`config.log' for more details." >&5
2209echo "$as_me: error: cannot compute suffix of object files: cannot compile
2210See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002211 { (exit 1); exit 1; }; }
2212fi
2213
2214rm -f conftest.$ac_cv_objext conftest.$ac_ext
2215fi
2216echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2217echo "${ECHO_T}$ac_cv_objext" >&6
2218OBJEXT=$ac_cv_objext
2219ac_objext=$OBJEXT
2220echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2221echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2222if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2223 echo $ECHO_N "(cached) $ECHO_C" >&6
2224else
2225 cat >conftest.$ac_ext <<_ACEOF
2226#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002227/* confdefs.h. */
2228_ACEOF
2229cat confdefs.h >>conftest.$ac_ext
2230cat >>conftest.$ac_ext <<_ACEOF
2231/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002232
John Criswell7a73b802003-06-30 21:59:07 +00002233int
2234main ()
2235{
2236#ifndef __GNUC__
2237 choke me
2238#endif
2239
2240 ;
2241 return 0;
2242}
2243_ACEOF
2244rm -f conftest.$ac_objext
2245if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2246 (eval $ac_compile) 2>&5
2247 ac_status=$?
2248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2249 (exit $ac_status); } &&
2250 { ac_try='test -s conftest.$ac_objext'
2251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2252 (eval $ac_try) 2>&5
2253 ac_status=$?
2254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2255 (exit $ac_status); }; }; then
2256 ac_compiler_gnu=yes
2257else
2258 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002259sed 's/^/| /' conftest.$ac_ext >&5
2260
John Criswell7a73b802003-06-30 21:59:07 +00002261ac_compiler_gnu=no
2262fi
2263rm -f conftest.$ac_objext conftest.$ac_ext
2264ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2265
2266fi
2267echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2268echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2269GXX=`test $ac_compiler_gnu = yes && echo yes`
2270ac_test_CXXFLAGS=${CXXFLAGS+set}
2271ac_save_CXXFLAGS=$CXXFLAGS
2272CXXFLAGS="-g"
2273echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2274echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2275if test "${ac_cv_prog_cxx_g+set}" = set; then
2276 echo $ECHO_N "(cached) $ECHO_C" >&6
2277else
2278 cat >conftest.$ac_ext <<_ACEOF
2279#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002280/* confdefs.h. */
2281_ACEOF
2282cat confdefs.h >>conftest.$ac_ext
2283cat >>conftest.$ac_ext <<_ACEOF
2284/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002285
John Criswell7a73b802003-06-30 21:59:07 +00002286int
2287main ()
2288{
2289
2290 ;
2291 return 0;
2292}
2293_ACEOF
2294rm -f conftest.$ac_objext
2295if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2296 (eval $ac_compile) 2>&5
2297 ac_status=$?
2298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2299 (exit $ac_status); } &&
2300 { ac_try='test -s conftest.$ac_objext'
2301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2302 (eval $ac_try) 2>&5
2303 ac_status=$?
2304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2305 (exit $ac_status); }; }; then
2306 ac_cv_prog_cxx_g=yes
2307else
2308 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002309sed 's/^/| /' conftest.$ac_ext >&5
2310
John Criswell7a73b802003-06-30 21:59:07 +00002311ac_cv_prog_cxx_g=no
2312fi
2313rm -f conftest.$ac_objext conftest.$ac_ext
2314fi
2315echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2316echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2317if test "$ac_test_CXXFLAGS" = set; then
2318 CXXFLAGS=$ac_save_CXXFLAGS
2319elif test $ac_cv_prog_cxx_g = yes; then
2320 if test "$GXX" = yes; then
2321 CXXFLAGS="-g -O2"
2322 else
2323 CXXFLAGS="-g"
2324 fi
2325else
2326 if test "$GXX" = yes; then
2327 CXXFLAGS="-O2"
2328 else
2329 CXXFLAGS=
2330 fi
2331fi
2332for ac_declaration in \
2333 ''\
2334 '#include <stdlib.h>' \
2335 'extern "C" void std::exit (int) throw (); using std::exit;' \
2336 'extern "C" void std::exit (int); using std::exit;' \
2337 'extern "C" void exit (int) throw ();' \
2338 'extern "C" void exit (int);' \
2339 'void exit (int);'
2340do
2341 cat >conftest.$ac_ext <<_ACEOF
2342#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002343/* confdefs.h. */
2344_ACEOF
2345cat confdefs.h >>conftest.$ac_ext
2346cat >>conftest.$ac_ext <<_ACEOF
2347/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002348#include <stdlib.h>
2349$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00002350int
2351main ()
2352{
2353exit (42);
2354 ;
2355 return 0;
2356}
2357_ACEOF
2358rm -f conftest.$ac_objext
2359if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2360 (eval $ac_compile) 2>&5
2361 ac_status=$?
2362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2363 (exit $ac_status); } &&
2364 { ac_try='test -s conftest.$ac_objext'
2365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2366 (eval $ac_try) 2>&5
2367 ac_status=$?
2368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2369 (exit $ac_status); }; }; then
2370 :
2371else
2372 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002373sed 's/^/| /' conftest.$ac_ext >&5
2374
John Criswell7a73b802003-06-30 21:59:07 +00002375continue
2376fi
2377rm -f conftest.$ac_objext conftest.$ac_ext
2378 cat >conftest.$ac_ext <<_ACEOF
2379#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002380/* confdefs.h. */
2381_ACEOF
2382cat confdefs.h >>conftest.$ac_ext
2383cat >>conftest.$ac_ext <<_ACEOF
2384/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002385$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00002386int
2387main ()
2388{
2389exit (42);
2390 ;
2391 return 0;
2392}
2393_ACEOF
2394rm -f conftest.$ac_objext
2395if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2396 (eval $ac_compile) 2>&5
2397 ac_status=$?
2398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2399 (exit $ac_status); } &&
2400 { ac_try='test -s conftest.$ac_objext'
2401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2402 (eval $ac_try) 2>&5
2403 ac_status=$?
2404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2405 (exit $ac_status); }; }; then
2406 break
2407else
2408 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002409sed 's/^/| /' conftest.$ac_ext >&5
2410
John Criswell7a73b802003-06-30 21:59:07 +00002411fi
2412rm -f conftest.$ac_objext conftest.$ac_ext
2413done
2414rm -f conftest*
2415if test -n "$ac_declaration"; then
2416 echo '#ifdef __cplusplus' >>confdefs.h
2417 echo $ac_declaration >>confdefs.h
2418 echo '#endif' >>confdefs.h
2419fi
2420
2421ac_ext=c
2422ac_cpp='$CPP $CPPFLAGS'
2423ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2424ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2425ac_compiler_gnu=$ac_cv_c_compiler_gnu
2426
2427ac_ext=c
2428ac_cpp='$CPP $CPPFLAGS'
2429ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2430ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2431ac_compiler_gnu=$ac_cv_c_compiler_gnu
2432if test -n "$ac_tool_prefix"; then
2433 for ac_prog in gcc
2434 do
2435 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2436set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2437echo "$as_me:$LINENO: checking for $ac_word" >&5
2438echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2439if test "${ac_cv_prog_CC+set}" = set; then
2440 echo $ECHO_N "(cached) $ECHO_C" >&6
2441else
2442 if test -n "$CC"; then
2443 ac_cv_prog_CC="$CC" # Let the user override the test.
2444else
2445as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2446for as_dir in $PATH
2447do
2448 IFS=$as_save_IFS
2449 test -z "$as_dir" && as_dir=.
2450 for ac_exec_ext in '' $ac_executable_extensions; do
2451 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2452 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2453 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2454 break 2
2455 fi
2456done
2457done
2458
2459fi
2460fi
2461CC=$ac_cv_prog_CC
2462if test -n "$CC"; then
2463 echo "$as_me:$LINENO: result: $CC" >&5
2464echo "${ECHO_T}$CC" >&6
2465else
2466 echo "$as_me:$LINENO: result: no" >&5
2467echo "${ECHO_T}no" >&6
2468fi
2469
2470 test -n "$CC" && break
2471 done
2472fi
2473if test -z "$CC"; then
2474 ac_ct_CC=$CC
2475 for ac_prog in gcc
2476do
2477 # Extract the first word of "$ac_prog", so it can be a program name with args.
2478set dummy $ac_prog; ac_word=$2
2479echo "$as_me:$LINENO: checking for $ac_word" >&5
2480echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2481if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2482 echo $ECHO_N "(cached) $ECHO_C" >&6
2483else
2484 if test -n "$ac_ct_CC"; then
2485 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2486else
2487as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2488for as_dir in $PATH
2489do
2490 IFS=$as_save_IFS
2491 test -z "$as_dir" && as_dir=.
2492 for ac_exec_ext in '' $ac_executable_extensions; do
2493 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2494 ac_cv_prog_ac_ct_CC="$ac_prog"
2495 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2496 break 2
2497 fi
2498done
2499done
2500
2501fi
2502fi
2503ac_ct_CC=$ac_cv_prog_ac_ct_CC
2504if test -n "$ac_ct_CC"; then
2505 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2506echo "${ECHO_T}$ac_ct_CC" >&6
2507else
2508 echo "$as_me:$LINENO: result: no" >&5
2509echo "${ECHO_T}no" >&6
2510fi
2511
2512 test -n "$ac_ct_CC" && break
2513done
2514
2515 CC=$ac_ct_CC
2516fi
2517
2518
John Criswell0c38eaf2003-09-10 15:17:25 +00002519test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2520See \`config.log' for more details." >&5
2521echo "$as_me: error: no acceptable C compiler found in \$PATH
2522See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002523 { (exit 1); exit 1; }; }
2524
2525# Provide some information about the compiler.
2526echo "$as_me:$LINENO:" \
2527 "checking for C compiler version" >&5
2528ac_compiler=`set X $ac_compile; echo $2`
2529{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2530 (eval $ac_compiler --version </dev/null >&5) 2>&5
2531 ac_status=$?
2532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2533 (exit $ac_status); }
2534{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2535 (eval $ac_compiler -v </dev/null >&5) 2>&5
2536 ac_status=$?
2537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2538 (exit $ac_status); }
2539{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2540 (eval $ac_compiler -V </dev/null >&5) 2>&5
2541 ac_status=$?
2542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2543 (exit $ac_status); }
2544
2545echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2546echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2547if test "${ac_cv_c_compiler_gnu+set}" = set; then
2548 echo $ECHO_N "(cached) $ECHO_C" >&6
2549else
2550 cat >conftest.$ac_ext <<_ACEOF
2551#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002552/* confdefs.h. */
2553_ACEOF
2554cat confdefs.h >>conftest.$ac_ext
2555cat >>conftest.$ac_ext <<_ACEOF
2556/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002557
John Criswell7a73b802003-06-30 21:59:07 +00002558int
2559main ()
2560{
2561#ifndef __GNUC__
2562 choke me
2563#endif
2564
2565 ;
2566 return 0;
2567}
2568_ACEOF
2569rm -f conftest.$ac_objext
2570if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2571 (eval $ac_compile) 2>&5
2572 ac_status=$?
2573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2574 (exit $ac_status); } &&
2575 { ac_try='test -s conftest.$ac_objext'
2576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2577 (eval $ac_try) 2>&5
2578 ac_status=$?
2579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2580 (exit $ac_status); }; }; then
2581 ac_compiler_gnu=yes
2582else
2583 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002584sed 's/^/| /' conftest.$ac_ext >&5
2585
John Criswell7a73b802003-06-30 21:59:07 +00002586ac_compiler_gnu=no
2587fi
2588rm -f conftest.$ac_objext conftest.$ac_ext
2589ac_cv_c_compiler_gnu=$ac_compiler_gnu
2590
2591fi
2592echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2593echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2594GCC=`test $ac_compiler_gnu = yes && echo yes`
2595ac_test_CFLAGS=${CFLAGS+set}
2596ac_save_CFLAGS=$CFLAGS
2597CFLAGS="-g"
2598echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2599echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2600if test "${ac_cv_prog_cc_g+set}" = set; then
2601 echo $ECHO_N "(cached) $ECHO_C" >&6
2602else
2603 cat >conftest.$ac_ext <<_ACEOF
2604#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002605/* confdefs.h. */
2606_ACEOF
2607cat confdefs.h >>conftest.$ac_ext
2608cat >>conftest.$ac_ext <<_ACEOF
2609/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002610
John Criswell7a73b802003-06-30 21:59:07 +00002611int
2612main ()
2613{
2614
2615 ;
2616 return 0;
2617}
2618_ACEOF
2619rm -f conftest.$ac_objext
2620if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2621 (eval $ac_compile) 2>&5
2622 ac_status=$?
2623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2624 (exit $ac_status); } &&
2625 { ac_try='test -s conftest.$ac_objext'
2626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2627 (eval $ac_try) 2>&5
2628 ac_status=$?
2629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2630 (exit $ac_status); }; }; then
2631 ac_cv_prog_cc_g=yes
2632else
2633 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002634sed 's/^/| /' conftest.$ac_ext >&5
2635
John Criswell7a73b802003-06-30 21:59:07 +00002636ac_cv_prog_cc_g=no
2637fi
2638rm -f conftest.$ac_objext conftest.$ac_ext
2639fi
2640echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2641echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2642if test "$ac_test_CFLAGS" = set; then
2643 CFLAGS=$ac_save_CFLAGS
2644elif test $ac_cv_prog_cc_g = yes; then
2645 if test "$GCC" = yes; then
2646 CFLAGS="-g -O2"
2647 else
2648 CFLAGS="-g"
2649 fi
2650else
2651 if test "$GCC" = yes; then
2652 CFLAGS="-O2"
2653 else
2654 CFLAGS=
2655 fi
2656fi
John Criswell0c38eaf2003-09-10 15:17:25 +00002657echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2658echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2659if test "${ac_cv_prog_cc_stdc+set}" = set; then
2660 echo $ECHO_N "(cached) $ECHO_C" >&6
2661else
2662 ac_cv_prog_cc_stdc=no
2663ac_save_CC=$CC
2664cat >conftest.$ac_ext <<_ACEOF
2665#line $LINENO "configure"
2666/* confdefs.h. */
2667_ACEOF
2668cat confdefs.h >>conftest.$ac_ext
2669cat >>conftest.$ac_ext <<_ACEOF
2670/* end confdefs.h. */
2671#include <stdarg.h>
2672#include <stdio.h>
2673#include <sys/types.h>
2674#include <sys/stat.h>
2675/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2676struct buf { int x; };
2677FILE * (*rcsopen) (struct buf *, struct stat *, int);
2678static char *e (p, i)
2679 char **p;
2680 int i;
2681{
2682 return p[i];
2683}
2684static char *f (char * (*g) (char **, int), char **p, ...)
2685{
2686 char *s;
2687 va_list v;
2688 va_start (v,p);
2689 s = g (p, va_arg (v,int));
2690 va_end (v);
2691 return s;
2692}
2693int test (int i, double x);
2694struct s1 {int (*f) (int a);};
2695struct s2 {int (*f) (double a);};
2696int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2697int argc;
2698char **argv;
2699int
2700main ()
2701{
2702return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2703 ;
2704 return 0;
2705}
2706_ACEOF
2707# Don't try gcc -ansi; that turns off useful extensions and
2708# breaks some systems' header files.
2709# AIX -qlanglvl=ansi
2710# Ultrix and OSF/1 -std1
2711# HP-UX 10.20 and later -Ae
2712# HP-UX older versions -Aa -D_HPUX_SOURCE
2713# SVR4 -Xc -D__EXTENSIONS__
2714for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2715do
2716 CC="$ac_save_CC $ac_arg"
2717 rm -f conftest.$ac_objext
2718if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2719 (eval $ac_compile) 2>&5
2720 ac_status=$?
2721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2722 (exit $ac_status); } &&
2723 { ac_try='test -s conftest.$ac_objext'
2724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2725 (eval $ac_try) 2>&5
2726 ac_status=$?
2727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2728 (exit $ac_status); }; }; then
2729 ac_cv_prog_cc_stdc=$ac_arg
2730break
2731else
2732 echo "$as_me: failed program was:" >&5
2733sed 's/^/| /' conftest.$ac_ext >&5
2734
2735fi
2736rm -f conftest.$ac_objext
2737done
2738rm -f conftest.$ac_ext conftest.$ac_objext
2739CC=$ac_save_CC
2740
2741fi
2742
2743case "x$ac_cv_prog_cc_stdc" in
2744 x|xno)
2745 echo "$as_me:$LINENO: result: none needed" >&5
2746echo "${ECHO_T}none needed" >&6 ;;
2747 *)
2748 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2749echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2750 CC="$CC $ac_cv_prog_cc_stdc" ;;
2751esac
2752
John Criswell7a73b802003-06-30 21:59:07 +00002753# Some people use a C++ compiler to compile C. Since we use `exit',
2754# in C++ we need to declare it. In case someone uses the same compiler
2755# for both compiling C and C++ we need to have the C++ compiler decide
2756# the declaration of exit, since it's the most demanding environment.
2757cat >conftest.$ac_ext <<_ACEOF
2758#ifndef __cplusplus
2759 choke me
2760#endif
2761_ACEOF
2762rm -f conftest.$ac_objext
2763if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2764 (eval $ac_compile) 2>&5
2765 ac_status=$?
2766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2767 (exit $ac_status); } &&
2768 { ac_try='test -s conftest.$ac_objext'
2769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2770 (eval $ac_try) 2>&5
2771 ac_status=$?
2772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2773 (exit $ac_status); }; }; then
2774 for ac_declaration in \
2775 ''\
2776 '#include <stdlib.h>' \
2777 'extern "C" void std::exit (int) throw (); using std::exit;' \
2778 'extern "C" void std::exit (int); using std::exit;' \
2779 'extern "C" void exit (int) throw ();' \
2780 'extern "C" void exit (int);' \
2781 'void exit (int);'
2782do
2783 cat >conftest.$ac_ext <<_ACEOF
2784#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002785/* confdefs.h. */
2786_ACEOF
2787cat confdefs.h >>conftest.$ac_ext
2788cat >>conftest.$ac_ext <<_ACEOF
2789/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002790#include <stdlib.h>
2791$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00002792int
2793main ()
2794{
2795exit (42);
2796 ;
2797 return 0;
2798}
2799_ACEOF
2800rm -f conftest.$ac_objext
2801if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2802 (eval $ac_compile) 2>&5
2803 ac_status=$?
2804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2805 (exit $ac_status); } &&
2806 { ac_try='test -s conftest.$ac_objext'
2807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2808 (eval $ac_try) 2>&5
2809 ac_status=$?
2810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2811 (exit $ac_status); }; }; then
2812 :
2813else
2814 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002815sed 's/^/| /' conftest.$ac_ext >&5
2816
John Criswell7a73b802003-06-30 21:59:07 +00002817continue
2818fi
2819rm -f conftest.$ac_objext conftest.$ac_ext
2820 cat >conftest.$ac_ext <<_ACEOF
2821#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002822/* confdefs.h. */
2823_ACEOF
2824cat confdefs.h >>conftest.$ac_ext
2825cat >>conftest.$ac_ext <<_ACEOF
2826/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002827$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00002828int
2829main ()
2830{
2831exit (42);
2832 ;
2833 return 0;
2834}
2835_ACEOF
2836rm -f conftest.$ac_objext
2837if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2838 (eval $ac_compile) 2>&5
2839 ac_status=$?
2840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2841 (exit $ac_status); } &&
2842 { ac_try='test -s conftest.$ac_objext'
2843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2844 (eval $ac_try) 2>&5
2845 ac_status=$?
2846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2847 (exit $ac_status); }; }; then
2848 break
2849else
2850 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002851sed 's/^/| /' conftest.$ac_ext >&5
2852
John Criswell7a73b802003-06-30 21:59:07 +00002853fi
2854rm -f conftest.$ac_objext conftest.$ac_ext
2855done
2856rm -f conftest*
2857if test -n "$ac_declaration"; then
2858 echo '#ifdef __cplusplus' >>confdefs.h
2859 echo $ac_declaration >>confdefs.h
2860 echo '#endif' >>confdefs.h
2861fi
2862
2863else
2864 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002865sed 's/^/| /' conftest.$ac_ext >&5
2866
John Criswell7a73b802003-06-30 21:59:07 +00002867fi
2868rm -f conftest.$ac_objext conftest.$ac_ext
2869ac_ext=c
2870ac_cpp='$CPP $CPPFLAGS'
2871ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2872ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2873ac_compiler_gnu=$ac_cv_c_compiler_gnu
2874
2875ac_ext=c
2876ac_cpp='$CPP $CPPFLAGS'
2877ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2878ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2879ac_compiler_gnu=$ac_cv_c_compiler_gnu
2880echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2881echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2882# On Suns, sometimes $CPP names a directory.
2883if test -n "$CPP" && test -d "$CPP"; then
2884 CPP=
2885fi
2886if test -z "$CPP"; then
2887 if test "${ac_cv_prog_CPP+set}" = set; then
2888 echo $ECHO_N "(cached) $ECHO_C" >&6
2889else
2890 # Double quotes because CPP needs to be expanded
2891 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2892 do
2893 ac_preproc_ok=false
2894for ac_c_preproc_warn_flag in '' yes
2895do
2896 # Use a header file that comes with gcc, so configuring glibc
2897 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00002898 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2899 # <limits.h> exists even on freestanding compilers.
John Criswell7a73b802003-06-30 21:59:07 +00002900 # On the NeXT, cc -E runs the code through the compiler's parser,
2901 # not just through cpp. "Syntax error" is here to catch this case.
2902 cat >conftest.$ac_ext <<_ACEOF
2903#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002904/* confdefs.h. */
2905_ACEOF
2906cat confdefs.h >>conftest.$ac_ext
2907cat >>conftest.$ac_ext <<_ACEOF
2908/* end confdefs.h. */
2909#ifdef __STDC__
2910# include <limits.h>
2911#else
2912# include <assert.h>
2913#endif
John Criswell7a73b802003-06-30 21:59:07 +00002914 Syntax error
2915_ACEOF
2916if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2917 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2918 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00002919 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00002920 rm -f conftest.er1
2921 cat conftest.err >&5
2922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2923 (exit $ac_status); } >/dev/null; then
2924 if test -s conftest.err; then
2925 ac_cpp_err=$ac_c_preproc_warn_flag
2926 else
2927 ac_cpp_err=
2928 fi
2929else
2930 ac_cpp_err=yes
2931fi
2932if test -z "$ac_cpp_err"; then
2933 :
2934else
2935 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002936sed 's/^/| /' conftest.$ac_ext >&5
2937
John Criswell7a73b802003-06-30 21:59:07 +00002938 # Broken: fails on valid input.
2939continue
2940fi
2941rm -f conftest.err conftest.$ac_ext
2942
2943 # OK, works on sane cases. Now check whether non-existent headers
2944 # can be detected and how.
2945 cat >conftest.$ac_ext <<_ACEOF
2946#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002947/* confdefs.h. */
2948_ACEOF
2949cat confdefs.h >>conftest.$ac_ext
2950cat >>conftest.$ac_ext <<_ACEOF
2951/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002952#include <ac_nonexistent.h>
2953_ACEOF
2954if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2955 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2956 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00002957 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00002958 rm -f conftest.er1
2959 cat conftest.err >&5
2960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2961 (exit $ac_status); } >/dev/null; then
2962 if test -s conftest.err; then
2963 ac_cpp_err=$ac_c_preproc_warn_flag
2964 else
2965 ac_cpp_err=
2966 fi
2967else
2968 ac_cpp_err=yes
2969fi
2970if test -z "$ac_cpp_err"; then
2971 # Broken: success on invalid input.
2972continue
2973else
2974 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002975sed 's/^/| /' conftest.$ac_ext >&5
2976
John Criswell7a73b802003-06-30 21:59:07 +00002977 # Passes both tests.
2978ac_preproc_ok=:
2979break
2980fi
2981rm -f conftest.err conftest.$ac_ext
2982
2983done
2984# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2985rm -f conftest.err conftest.$ac_ext
2986if $ac_preproc_ok; then
2987 break
2988fi
2989
2990 done
2991 ac_cv_prog_CPP=$CPP
2992
2993fi
2994 CPP=$ac_cv_prog_CPP
2995else
2996 ac_cv_prog_CPP=$CPP
2997fi
2998echo "$as_me:$LINENO: result: $CPP" >&5
2999echo "${ECHO_T}$CPP" >&6
3000ac_preproc_ok=false
3001for ac_c_preproc_warn_flag in '' yes
3002do
3003 # Use a header file that comes with gcc, so configuring glibc
3004 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00003005 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3006 # <limits.h> exists even on freestanding compilers.
John Criswell7a73b802003-06-30 21:59:07 +00003007 # On the NeXT, cc -E runs the code through the compiler's parser,
3008 # not just through cpp. "Syntax error" is here to catch this case.
3009 cat >conftest.$ac_ext <<_ACEOF
3010#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003011/* confdefs.h. */
3012_ACEOF
3013cat confdefs.h >>conftest.$ac_ext
3014cat >>conftest.$ac_ext <<_ACEOF
3015/* end confdefs.h. */
3016#ifdef __STDC__
3017# include <limits.h>
3018#else
3019# include <assert.h>
3020#endif
John Criswell7a73b802003-06-30 21:59:07 +00003021 Syntax error
3022_ACEOF
3023if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3024 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3025 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003026 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003027 rm -f conftest.er1
3028 cat conftest.err >&5
3029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3030 (exit $ac_status); } >/dev/null; then
3031 if test -s conftest.err; then
3032 ac_cpp_err=$ac_c_preproc_warn_flag
3033 else
3034 ac_cpp_err=
3035 fi
3036else
3037 ac_cpp_err=yes
3038fi
3039if test -z "$ac_cpp_err"; then
3040 :
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 +00003045 # Broken: fails on valid input.
3046continue
3047fi
3048rm -f conftest.err conftest.$ac_ext
3049
3050 # OK, works on sane cases. Now check whether non-existent headers
3051 # can be detected and how.
3052 cat >conftest.$ac_ext <<_ACEOF
3053#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003054/* confdefs.h. */
3055_ACEOF
3056cat confdefs.h >>conftest.$ac_ext
3057cat >>conftest.$ac_ext <<_ACEOF
3058/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003059#include <ac_nonexistent.h>
3060_ACEOF
3061if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3062 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3063 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003064 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003065 rm -f conftest.er1
3066 cat conftest.err >&5
3067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3068 (exit $ac_status); } >/dev/null; then
3069 if test -s conftest.err; then
3070 ac_cpp_err=$ac_c_preproc_warn_flag
3071 else
3072 ac_cpp_err=
3073 fi
3074else
3075 ac_cpp_err=yes
3076fi
3077if test -z "$ac_cpp_err"; then
3078 # Broken: success on invalid input.
3079continue
3080else
3081 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003082sed 's/^/| /' conftest.$ac_ext >&5
3083
John Criswell7a73b802003-06-30 21:59:07 +00003084 # Passes both tests.
3085ac_preproc_ok=:
3086break
3087fi
3088rm -f conftest.err conftest.$ac_ext
3089
3090done
3091# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3092rm -f conftest.err conftest.$ac_ext
3093if $ac_preproc_ok; then
3094 :
3095else
John Criswell0c38eaf2003-09-10 15:17:25 +00003096 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3097See \`config.log' for more details." >&5
3098echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3099See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00003100 { (exit 1); exit 1; }; }
3101fi
3102
3103ac_ext=c
3104ac_cpp='$CPP $CPPFLAGS'
3105ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3106ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3107ac_compiler_gnu=$ac_cv_c_compiler_gnu
3108
3109
3110if test "$GCC" != "yes"
3111then
3112 { { echo "$as_me:$LINENO: error: gcc required but not found" >&5
3113echo "$as_me: error: gcc required but not found" >&2;}
3114 { (exit 1); exit 1; }; }
3115fi
John Criswell7a73b802003-06-30 21:59:07 +00003116if test "$GXX" != "yes"
3117then
3118 { { echo "$as_me:$LINENO: error: g++ required but not found" >&5
3119echo "$as_me: error: g++ required but not found" >&2;}
3120 { (exit 1); exit 1; }; }
3121fi
3122
John Criswellde00db22003-08-25 16:49:54 +00003123gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
3124if test "$gccmajor" -lt "3"
3125then
Brian Gaeke26be9c52004-01-13 06:43:16 +00003126 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
3127echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
John Criswellde00db22003-08-25 16:49:54 +00003128 { (exit 1); exit 1; }; }
3129fi
3130
John Criswell7a73b802003-06-30 21:59:07 +00003131 echo "$as_me:$LINENO: checking for GNU make" >&5
3132echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
3133if test "${_cv_gnu_make_command+set}" = set; then
3134 echo $ECHO_N "(cached) $ECHO_C" >&6
3135else
3136 _cv_gnu_make_command='' ;
3137 for a in "$MAKE" make gmake gnumake ; do
3138 if test -z "$a" ; then continue ; fi ;
3139 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
3140 _cv_gnu_make_command=$a ;
3141 break;
3142 fi
3143 done ;
3144
3145fi
3146echo "$as_me:$LINENO: result: $_cv_gnu_make_command" >&5
3147echo "${ECHO_T}$_cv_gnu_make_command" >&6 ;
3148 if test "x$_cv_gnu_make_command" != "x" ; then
3149 ifGNUmake='' ;
3150 else
3151 ifGNUmake='#' ;
3152 echo "$as_me:$LINENO: result: \"Not found\"" >&5
3153echo "${ECHO_T}\"Not found\"" >&6;
3154 fi
3155
3156
3157if test -z "$_cv_gnu_make_command"
3158then
3159 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
3160echo "$as_me: error: GNU Make required but not found" >&2;}
3161 { (exit 1); exit 1; }; }
3162fi
3163
3164
3165echo "$as_me:$LINENO: checking " >&5
3166echo $ECHO_N "checking ... $ECHO_C" >&6
3167if test "${ac_cv_has_flex+set}" = set; then
3168 echo $ECHO_N "(cached) $ECHO_C" >&6
3169else
3170 for ac_prog in flex lex
3171do
3172 # Extract the first word of "$ac_prog", so it can be a program name with args.
3173set dummy $ac_prog; ac_word=$2
3174echo "$as_me:$LINENO: checking for $ac_word" >&5
3175echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3176if test "${ac_cv_prog_LEX+set}" = set; then
3177 echo $ECHO_N "(cached) $ECHO_C" >&6
3178else
3179 if test -n "$LEX"; then
3180 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3181else
3182as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3183for as_dir in $PATH
3184do
3185 IFS=$as_save_IFS
3186 test -z "$as_dir" && as_dir=.
3187 for ac_exec_ext in '' $ac_executable_extensions; do
3188 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3189 ac_cv_prog_LEX="$ac_prog"
3190 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3191 break 2
3192 fi
3193done
3194done
3195
3196fi
3197fi
3198LEX=$ac_cv_prog_LEX
3199if test -n "$LEX"; then
3200 echo "$as_me:$LINENO: result: $LEX" >&5
3201echo "${ECHO_T}$LEX" >&6
3202else
3203 echo "$as_me:$LINENO: result: no" >&5
3204echo "${ECHO_T}no" >&6
3205fi
3206
3207 test -n "$LEX" && break
3208done
3209test -n "$LEX" || LEX=":"
3210
3211if test -z "$LEXLIB"
3212then
3213 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3214echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3215if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3216 echo $ECHO_N "(cached) $ECHO_C" >&6
3217else
3218 ac_check_lib_save_LIBS=$LIBS
3219LIBS="-lfl $LIBS"
3220cat >conftest.$ac_ext <<_ACEOF
3221#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003222/* confdefs.h. */
3223_ACEOF
3224cat confdefs.h >>conftest.$ac_ext
3225cat >>conftest.$ac_ext <<_ACEOF
3226/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003227
3228/* Override any gcc2 internal prototype to avoid an error. */
3229#ifdef __cplusplus
3230extern "C"
3231#endif
3232/* We use char because int might match the return type of a gcc2
3233 builtin and then its argument prototype would still apply. */
3234char yywrap ();
John Criswell7a73b802003-06-30 21:59:07 +00003235int
3236main ()
3237{
3238yywrap ();
3239 ;
3240 return 0;
3241}
3242_ACEOF
3243rm -f conftest.$ac_objext conftest$ac_exeext
3244if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3245 (eval $ac_link) 2>&5
3246 ac_status=$?
3247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3248 (exit $ac_status); } &&
3249 { ac_try='test -s conftest$ac_exeext'
3250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3251 (eval $ac_try) 2>&5
3252 ac_status=$?
3253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3254 (exit $ac_status); }; }; then
3255 ac_cv_lib_fl_yywrap=yes
3256else
3257 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003258sed 's/^/| /' conftest.$ac_ext >&5
3259
John Criswell7a73b802003-06-30 21:59:07 +00003260ac_cv_lib_fl_yywrap=no
3261fi
3262rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3263LIBS=$ac_check_lib_save_LIBS
3264fi
3265echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3266echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3267if test $ac_cv_lib_fl_yywrap = yes; then
3268 LEXLIB="-lfl"
3269else
3270 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3271echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3272if test "${ac_cv_lib_l_yywrap+set}" = set; then
3273 echo $ECHO_N "(cached) $ECHO_C" >&6
3274else
3275 ac_check_lib_save_LIBS=$LIBS
3276LIBS="-ll $LIBS"
3277cat >conftest.$ac_ext <<_ACEOF
3278#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003279/* confdefs.h. */
3280_ACEOF
3281cat confdefs.h >>conftest.$ac_ext
3282cat >>conftest.$ac_ext <<_ACEOF
3283/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003284
3285/* Override any gcc2 internal prototype to avoid an error. */
3286#ifdef __cplusplus
3287extern "C"
3288#endif
3289/* We use char because int might match the return type of a gcc2
3290 builtin and then its argument prototype would still apply. */
3291char yywrap ();
John Criswell7a73b802003-06-30 21:59:07 +00003292int
3293main ()
3294{
3295yywrap ();
3296 ;
3297 return 0;
3298}
3299_ACEOF
3300rm -f conftest.$ac_objext conftest$ac_exeext
3301if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3302 (eval $ac_link) 2>&5
3303 ac_status=$?
3304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3305 (exit $ac_status); } &&
3306 { ac_try='test -s conftest$ac_exeext'
3307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3308 (eval $ac_try) 2>&5
3309 ac_status=$?
3310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3311 (exit $ac_status); }; }; then
3312 ac_cv_lib_l_yywrap=yes
3313else
3314 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003315sed 's/^/| /' conftest.$ac_ext >&5
3316
John Criswell7a73b802003-06-30 21:59:07 +00003317ac_cv_lib_l_yywrap=no
3318fi
3319rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3320LIBS=$ac_check_lib_save_LIBS
3321fi
3322echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3323echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3324if test $ac_cv_lib_l_yywrap = yes; then
3325 LEXLIB="-ll"
3326fi
3327
3328fi
3329
3330fi
3331
3332if test "x$LEX" != "x:"; then
3333 echo "$as_me:$LINENO: checking lex output file root" >&5
3334echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3335if test "${ac_cv_prog_lex_root+set}" = set; then
3336 echo $ECHO_N "(cached) $ECHO_C" >&6
3337else
3338 # The minimal lex program is just a single line: %%. But some broken lexes
3339# (Solaris, I think it was) want two %% lines, so accommodate them.
3340cat >conftest.l <<_ACEOF
3341%%
3342%%
3343_ACEOF
3344{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3345 (eval $LEX conftest.l) 2>&5
3346 ac_status=$?
3347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3348 (exit $ac_status); }
3349if test -f lex.yy.c; then
3350 ac_cv_prog_lex_root=lex.yy
3351elif test -f lexyy.c; then
3352 ac_cv_prog_lex_root=lexyy
3353else
3354 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3355echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3356 { (exit 1); exit 1; }; }
3357fi
3358fi
3359echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3360echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3361rm -f conftest.l
3362LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3363
3364echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3365echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3366if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3367 echo $ECHO_N "(cached) $ECHO_C" >&6
3368else
3369 # POSIX says lex can declare yytext either as a pointer or an array; the
3370# default is implementation-dependent. Figure out which it is, since
3371# not all implementations provide the %pointer and %array declarations.
3372ac_cv_prog_lex_yytext_pointer=no
3373echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3374ac_save_LIBS=$LIBS
3375LIBS="$LIBS $LEXLIB"
3376cat >conftest.$ac_ext <<_ACEOF
3377`cat $LEX_OUTPUT_ROOT.c`
3378_ACEOF
3379rm -f conftest.$ac_objext conftest$ac_exeext
3380if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3381 (eval $ac_link) 2>&5
3382 ac_status=$?
3383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3384 (exit $ac_status); } &&
3385 { ac_try='test -s conftest$ac_exeext'
3386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3387 (eval $ac_try) 2>&5
3388 ac_status=$?
3389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3390 (exit $ac_status); }; }; then
3391 ac_cv_prog_lex_yytext_pointer=yes
3392else
3393 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003394sed 's/^/| /' conftest.$ac_ext >&5
3395
John Criswell7a73b802003-06-30 21:59:07 +00003396fi
3397rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3398LIBS=$ac_save_LIBS
3399rm -f "${LEX_OUTPUT_ROOT}.c"
3400
3401fi
3402echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3403echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3404if test $ac_cv_prog_lex_yytext_pointer = yes; then
3405
3406cat >>confdefs.h <<\_ACEOF
3407#define YYTEXT_POINTER 1
3408_ACEOF
3409
3410fi
3411
3412fi
3413
3414fi
3415echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
3416echo "${ECHO_T}$ac_cv_has_flex" >&6
3417if test "$LEX" != "flex"; then
3418 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
3419echo "$as_me: error: flex not found but required" >&2;}
3420 { (exit 1); exit 1; }; }
3421fi
3422
3423echo "$as_me:$LINENO: checking " >&5
3424echo $ECHO_N "checking ... $ECHO_C" >&6
3425if test "${ac_cv_has_bison+set}" = set; then
3426 echo $ECHO_N "(cached) $ECHO_C" >&6
3427else
3428 for ac_prog in 'bison -y' byacc
3429do
3430 # Extract the first word of "$ac_prog", so it can be a program name with args.
3431set dummy $ac_prog; ac_word=$2
3432echo "$as_me:$LINENO: checking for $ac_word" >&5
3433echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3434if test "${ac_cv_prog_YACC+set}" = set; then
3435 echo $ECHO_N "(cached) $ECHO_C" >&6
3436else
3437 if test -n "$YACC"; then
3438 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3439else
3440as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3441for as_dir in $PATH
3442do
3443 IFS=$as_save_IFS
3444 test -z "$as_dir" && as_dir=.
3445 for ac_exec_ext in '' $ac_executable_extensions; do
3446 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3447 ac_cv_prog_YACC="$ac_prog"
3448 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3449 break 2
3450 fi
3451done
3452done
3453
3454fi
3455fi
3456YACC=$ac_cv_prog_YACC
3457if test -n "$YACC"; then
3458 echo "$as_me:$LINENO: result: $YACC" >&5
3459echo "${ECHO_T}$YACC" >&6
3460else
3461 echo "$as_me:$LINENO: result: no" >&5
3462echo "${ECHO_T}no" >&6
3463fi
3464
3465 test -n "$YACC" && break
3466done
3467test -n "$YACC" || YACC="yacc"
3468
3469
3470fi
3471echo "$as_me:$LINENO: result: $ac_cv_has_bison" >&5
3472echo "${ECHO_T}$ac_cv_has_bison" >&6
3473if test "$YACC" != "bison -y"; then
3474 { { echo "$as_me:$LINENO: error: bison not found but required" >&5
3475echo "$as_me: error: bison not found but required" >&2;}
3476 { (exit 1); exit 1; }; }
3477else
Brian Gaeke12810632004-01-13 06:52:10 +00003478 BISON=bison
John Criswell7a73b802003-06-30 21:59:07 +00003479
3480fi
3481
John Criswell7a73b802003-06-30 21:59:07 +00003482# Check whether --enable-shared or --disable-shared was given.
3483if test "${enable_shared+set}" = set; then
3484 enableval="$enable_shared"
3485 p=${PACKAGE-default}
John Criswell47fdd832003-07-14 16:52:07 +00003486 case $enableval in
3487 yes) enable_shared=yes ;;
3488 no) enable_shared=no ;;
3489 *)
3490 enable_shared=no
3491 # Look at the argument we got. We use all the common list separators.
3492 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3493 for pkg in $enableval; do
3494 IFS="$lt_save_ifs"
3495 if test "X$pkg" = "X$p"; then
3496 enable_shared=yes
3497 fi
3498 done
3499 IFS="$lt_save_ifs"
3500 ;;
3501 esac
John Criswell7a73b802003-06-30 21:59:07 +00003502else
3503 enable_shared=yes
3504fi;
John Criswell47fdd832003-07-14 16:52:07 +00003505
John Criswell7a73b802003-06-30 21:59:07 +00003506# Check whether --enable-static or --disable-static was given.
3507if test "${enable_static+set}" = set; then
3508 enableval="$enable_static"
3509 p=${PACKAGE-default}
John Criswell47fdd832003-07-14 16:52:07 +00003510 case $enableval in
3511 yes) enable_static=yes ;;
3512 no) enable_static=no ;;
3513 *)
3514 enable_static=no
3515 # Look at the argument we got. We use all the common list separators.
3516 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3517 for pkg in $enableval; do
3518 IFS="$lt_save_ifs"
3519 if test "X$pkg" = "X$p"; then
3520 enable_static=yes
3521 fi
3522 done
3523 IFS="$lt_save_ifs"
3524 ;;
3525 esac
John Criswell7a73b802003-06-30 21:59:07 +00003526else
3527 enable_static=yes
3528fi;
John Criswell47fdd832003-07-14 16:52:07 +00003529
John Criswell7a73b802003-06-30 21:59:07 +00003530# Check whether --enable-fast-install or --disable-fast-install was given.
3531if test "${enable_fast_install+set}" = set; then
3532 enableval="$enable_fast_install"
3533 p=${PACKAGE-default}
John Criswell47fdd832003-07-14 16:52:07 +00003534 case $enableval in
3535 yes) enable_fast_install=yes ;;
3536 no) enable_fast_install=no ;;
3537 *)
3538 enable_fast_install=no
3539 # Look at the argument we got. We use all the common list separators.
3540 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3541 for pkg in $enableval; do
3542 IFS="$lt_save_ifs"
3543 if test "X$pkg" = "X$p"; then
3544 enable_fast_install=yes
3545 fi
3546 done
3547 IFS="$lt_save_ifs"
3548 ;;
3549 esac
John Criswell7a73b802003-06-30 21:59:07 +00003550else
3551 enable_fast_install=yes
3552fi;
John Criswell47fdd832003-07-14 16:52:07 +00003553
3554echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3555echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3556if test "${lt_cv_path_SED+set}" = set; then
3557 echo $ECHO_N "(cached) $ECHO_C" >&6
3558else
3559 # Loop through the user's path and test for sed and gsed.
3560# Then use that list of sed's as ones to test for truncation.
3561as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3562for as_dir in $PATH
3563do
3564 IFS=$as_save_IFS
3565 test -z "$as_dir" && as_dir=.
3566 for lt_ac_prog in sed gsed; do
3567 for ac_exec_ext in '' $ac_executable_extensions; do
3568 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3569 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3570 fi
3571 done
3572 done
3573done
3574lt_ac_max=0
3575lt_ac_count=0
3576# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3577# along with /bin/sed that truncates output.
3578for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3579 test ! -f $lt_ac_sed && break
3580 cat /dev/null > conftest.in
3581 lt_ac_count=0
3582 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3583 # Check for GNU sed and select it if it is found.
3584 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3585 lt_cv_path_SED=$lt_ac_sed
3586 break
3587 fi
3588 while true; do
3589 cat conftest.in conftest.in >conftest.tmp
3590 mv conftest.tmp conftest.in
3591 cp conftest.in conftest.nl
3592 echo >>conftest.nl
3593 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3594 cmp -s conftest.out conftest.nl || break
3595 # 10000 chars as input seems more than enough
3596 test $lt_ac_count -gt 10 && break
3597 lt_ac_count=`expr $lt_ac_count + 1`
3598 if test $lt_ac_count -gt $lt_ac_max; then
3599 lt_ac_max=$lt_ac_count
3600 lt_cv_path_SED=$lt_ac_sed
3601 fi
3602 done
3603done
3604SED=$lt_cv_path_SED
3605
John Criswell7a73b802003-06-30 21:59:07 +00003606fi
3607
John Criswell47fdd832003-07-14 16:52:07 +00003608echo "$as_me:$LINENO: result: $SED" >&5
3609echo "${ECHO_T}$SED" >&6
3610
3611echo "$as_me:$LINENO: checking for egrep" >&5
3612echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3613if test "${ac_cv_prog_egrep+set}" = set; then
3614 echo $ECHO_N "(cached) $ECHO_C" >&6
3615else
3616 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3617 then ac_cv_prog_egrep='grep -E'
3618 else ac_cv_prog_egrep='egrep'
3619 fi
3620fi
3621echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3622echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3623 EGREP=$ac_cv_prog_egrep
3624
3625
John Criswell7a73b802003-06-30 21:59:07 +00003626
3627# Check whether --with-gnu-ld or --without-gnu-ld was given.
3628if test "${with_gnu_ld+set}" = set; then
3629 withval="$with_gnu_ld"
3630 test "$withval" = no || with_gnu_ld=yes
3631else
3632 with_gnu_ld=no
3633fi;
3634ac_prog=ld
3635if test "$GCC" = yes; then
3636 # Check if gcc -print-prog-name=ld gives a path.
John Criswell47fdd832003-07-14 16:52:07 +00003637 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3638echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00003639 case $host in
3640 *-*-mingw*)
3641 # gcc leaves a trailing carriage return which upsets mingw
3642 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3643 *)
3644 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3645 esac
3646 case $ac_prog in
3647 # Accept absolute paths.
John Criswell47fdd832003-07-14 16:52:07 +00003648 [\\/]* | ?:[\\/]*)
John Criswell7a73b802003-06-30 21:59:07 +00003649 re_direlt='/[^/][^/]*/\.\./'
3650 # Canonicalize the path of ld
John Criswell47fdd832003-07-14 16:52:07 +00003651 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
John Criswell7a73b802003-06-30 21:59:07 +00003652 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
John Criswell47fdd832003-07-14 16:52:07 +00003653 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
John Criswell7a73b802003-06-30 21:59:07 +00003654 done
3655 test -z "$LD" && LD="$ac_prog"
3656 ;;
3657 "")
3658 # If it fails, then pretend we aren't using GCC.
3659 ac_prog=ld
3660 ;;
3661 *)
3662 # If it is relative, then search for the first ld in PATH.
3663 with_gnu_ld=unknown
3664 ;;
3665 esac
3666elif test "$with_gnu_ld" = yes; then
3667 echo "$as_me:$LINENO: checking for GNU ld" >&5
3668echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3669else
3670 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3671echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3672fi
3673if test "${lt_cv_path_LD+set}" = set; then
3674 echo $ECHO_N "(cached) $ECHO_C" >&6
3675else
3676 if test -z "$LD"; then
John Criswell47fdd832003-07-14 16:52:07 +00003677 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +00003678 for ac_dir in $PATH; do
John Criswell47fdd832003-07-14 16:52:07 +00003679 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00003680 test -z "$ac_dir" && ac_dir=.
3681 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3682 lt_cv_path_LD="$ac_dir/$ac_prog"
3683 # Check to see if the program is GNU ld. I'd rather use --version,
3684 # but apparently some GNU ld's only accept -v.
3685 # Break only if it was the GNU/non-GNU ld that we prefer.
John Criswell47fdd832003-07-14 16:52:07 +00003686 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3687 *GNU* | *'with BFD'*)
John Criswell7a73b802003-06-30 21:59:07 +00003688 test "$with_gnu_ld" != no && break
John Criswell47fdd832003-07-14 16:52:07 +00003689 ;;
3690 *)
John Criswell7a73b802003-06-30 21:59:07 +00003691 test "$with_gnu_ld" != yes && break
John Criswell47fdd832003-07-14 16:52:07 +00003692 ;;
3693 esac
John Criswell7a73b802003-06-30 21:59:07 +00003694 fi
3695 done
John Criswell47fdd832003-07-14 16:52:07 +00003696 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00003697else
3698 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3699fi
3700fi
3701
3702LD="$lt_cv_path_LD"
3703if test -n "$LD"; then
3704 echo "$as_me:$LINENO: result: $LD" >&5
3705echo "${ECHO_T}$LD" >&6
3706else
3707 echo "$as_me:$LINENO: result: no" >&5
3708echo "${ECHO_T}no" >&6
3709fi
3710test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3711echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3712 { (exit 1); exit 1; }; }
3713echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3714echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3715if test "${lt_cv_prog_gnu_ld+set}" = set; then
3716 echo $ECHO_N "(cached) $ECHO_C" >&6
3717else
3718 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
John Criswell47fdd832003-07-14 16:52:07 +00003719case `"$LD" -v 2>&1 </dev/null` in
3720*GNU* | *'with BFD'*)
John Criswell7a73b802003-06-30 21:59:07 +00003721 lt_cv_prog_gnu_ld=yes
John Criswell47fdd832003-07-14 16:52:07 +00003722 ;;
3723*)
John Criswell7a73b802003-06-30 21:59:07 +00003724 lt_cv_prog_gnu_ld=no
John Criswell47fdd832003-07-14 16:52:07 +00003725 ;;
3726esac
John Criswell7a73b802003-06-30 21:59:07 +00003727fi
3728echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3729echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3730with_gnu_ld=$lt_cv_prog_gnu_ld
3731
3732
3733echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3734echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3735if test "${lt_cv_ld_reload_flag+set}" = set; then
3736 echo $ECHO_N "(cached) $ECHO_C" >&6
3737else
3738 lt_cv_ld_reload_flag='-r'
3739fi
3740echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3741echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3742reload_flag=$lt_cv_ld_reload_flag
John Criswell47fdd832003-07-14 16:52:07 +00003743case $reload_flag in
3744"" | " "*) ;;
3745*) reload_flag=" $reload_flag" ;;
3746esac
3747reload_cmds='$LD$reload_flag -o $output$reload_objs'
John Criswell7a73b802003-06-30 21:59:07 +00003748
3749echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3750echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3751if test "${lt_cv_path_NM+set}" = set; then
3752 echo $ECHO_N "(cached) $ECHO_C" >&6
3753else
3754 if test -n "$NM"; then
3755 # Let the user override the test.
3756 lt_cv_path_NM="$NM"
3757else
John Criswell47fdd832003-07-14 16:52:07 +00003758 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +00003759 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
John Criswell47fdd832003-07-14 16:52:07 +00003760 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00003761 test -z "$ac_dir" && ac_dir=.
John Criswell47fdd832003-07-14 16:52:07 +00003762 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3763 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
John Criswell7a73b802003-06-30 21:59:07 +00003764 # Check to see if the nm accepts a BSD-compat flag.
3765 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3766 # nm: unknown option "B" ignored
3767 # Tru64's nm complains that /dev/null is an invalid object file
John Criswell47fdd832003-07-14 16:52:07 +00003768 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3769 */dev/null* | *'Invalid file or object type'*)
John Criswell7a73b802003-06-30 21:59:07 +00003770 lt_cv_path_NM="$tmp_nm -B"
3771 break
John Criswell47fdd832003-07-14 16:52:07 +00003772 ;;
3773 *)
3774 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3775 */dev/null*)
3776 lt_cv_path_NM="$tmp_nm -p"
3777 break
3778 ;;
3779 *)
3780 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3781 continue # so that we can try to find one that supports BSD flags
3782 ;;
3783 esac
3784 esac
John Criswell7a73b802003-06-30 21:59:07 +00003785 fi
3786 done
John Criswell47fdd832003-07-14 16:52:07 +00003787 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00003788 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3789fi
3790fi
John Criswell47fdd832003-07-14 16:52:07 +00003791echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3792echo "${ECHO_T}$lt_cv_path_NM" >&6
John Criswell7a73b802003-06-30 21:59:07 +00003793NM="$lt_cv_path_NM"
John Criswell7a73b802003-06-30 21:59:07 +00003794
3795echo "$as_me:$LINENO: checking whether ln -s works" >&5
3796echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3797LN_S=$as_ln_s
3798if test "$LN_S" = "ln -s"; then
3799 echo "$as_me:$LINENO: result: yes" >&5
3800echo "${ECHO_T}yes" >&6
3801else
3802 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3803echo "${ECHO_T}no, using $LN_S" >&6
3804fi
3805
John Criswell47fdd832003-07-14 16:52:07 +00003806echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3807echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00003808if test "${lt_cv_deplibs_check_method+set}" = set; then
3809 echo $ECHO_N "(cached) $ECHO_C" >&6
3810else
3811 lt_cv_file_magic_cmd='$MAGIC_CMD'
3812lt_cv_file_magic_test_file=
3813lt_cv_deplibs_check_method='unknown'
3814# Need to set the preceding variable on all platforms that support
3815# interlibrary dependencies.
3816# 'none' -- dependencies not supported.
3817# `unknown' -- same as none, but documents that we really don't know.
3818# 'pass_all' -- all dependencies passed with no checks.
3819# 'test_compile' -- check by making test program.
3820# 'file_magic [[regex]]' -- check by looking for files in library path
John Criswell47fdd832003-07-14 16:52:07 +00003821# which responds to the $file_magic_cmd with a given extended regex.
John Criswell7a73b802003-06-30 21:59:07 +00003822# If you have `file' or equivalent on your system and you're not sure
3823# whether `pass_all' will *always* work, you probably want this one.
3824
3825case $host_os in
3826aix4* | aix5*)
3827 lt_cv_deplibs_check_method=pass_all
3828 ;;
3829
3830beos*)
3831 lt_cv_deplibs_check_method=pass_all
3832 ;;
3833
3834bsdi4*)
3835 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3836 lt_cv_file_magic_cmd='/usr/bin/file -L'
3837 lt_cv_file_magic_test_file=/shlib/libc.so
3838 ;;
3839
3840cygwin* | mingw* | pw32*)
John Criswell47fdd832003-07-14 16:52:07 +00003841 # win32_libid is a shell function defined in ltmain.sh
3842 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3843 lt_cv_file_magic_cmd='win32_libid'
John Criswell7a73b802003-06-30 21:59:07 +00003844 ;;
3845
3846darwin* | rhapsody*)
John Criswell47fdd832003-07-14 16:52:07 +00003847 # this will be overwritten by pass_all, but leave it in just in case
John Criswell7a73b802003-06-30 21:59:07 +00003848 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3849 lt_cv_file_magic_cmd='/usr/bin/file -L'
3850 case "$host_os" in
3851 rhapsody* | darwin1.[012])
John Criswell47fdd832003-07-14 16:52:07 +00003852 lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
John Criswell7a73b802003-06-30 21:59:07 +00003853 ;;
3854 *) # Darwin 1.3 on
3855 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3856 ;;
3857 esac
John Criswell47fdd832003-07-14 16:52:07 +00003858 lt_cv_deplibs_check_method=pass_all
John Criswell7a73b802003-06-30 21:59:07 +00003859 ;;
3860
3861freebsd*)
3862 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3863 case $host_cpu in
3864 i*86 )
3865 # Not sure whether the presence of OpenBSD here was a mistake.
3866 # Let's accept both of them until this is cleared up.
3867 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3868 lt_cv_file_magic_cmd=/usr/bin/file
3869 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3870 ;;
3871 esac
3872 else
3873 lt_cv_deplibs_check_method=pass_all
3874 fi
3875 ;;
3876
3877gnu*)
3878 lt_cv_deplibs_check_method=pass_all
3879 ;;
3880
John Criswell47fdd832003-07-14 16:52:07 +00003881hpux10.20* | hpux11*)
John Criswell7a73b802003-06-30 21:59:07 +00003882 lt_cv_file_magic_cmd=/usr/bin/file
John Criswell47fdd832003-07-14 16:52:07 +00003883 case "$host_cpu" in
3884 ia64*)
3885 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3886 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3887 ;;
3888 hppa*64*)
3889 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]'
3890 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3891 ;;
3892 *)
3893 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3894 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3895 ;;
3896 esac
John Criswell7a73b802003-06-30 21:59:07 +00003897 ;;
3898
John Criswell47fdd832003-07-14 16:52:07 +00003899irix5* | irix6* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +00003900 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00003901 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +00003902 # this will be overridden with pass_all, but let us keep it just in case
3903 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3904 ;;
3905 *)
3906 case $LD in
3907 *-32|*"-32 ") libmagic=32-bit;;
3908 *-n32|*"-n32 ") libmagic=N32;;
3909 *-64|*"-64 ") libmagic=64-bit;;
3910 *) libmagic=never-match;;
3911 esac
3912 # this will be overridden with pass_all, but let us keep it just in case
3913 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3914 ;;
3915 esac
3916 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3917 lt_cv_deplibs_check_method=pass_all
3918 ;;
3919
3920# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +00003921linux*)
John Criswell7a73b802003-06-30 21:59:07 +00003922 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +00003923 alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*)
John Criswell7a73b802003-06-30 21:59:07 +00003924 lt_cv_deplibs_check_method=pass_all ;;
3925 *)
3926 # glibc up to 2.1.1 does not perform some relocations on ARM
3927 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3928 esac
3929 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3930 ;;
3931
3932netbsd*)
3933 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +00003934 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
John Criswell7a73b802003-06-30 21:59:07 +00003935 else
John Criswell47fdd832003-07-14 16:52:07 +00003936 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
John Criswell7a73b802003-06-30 21:59:07 +00003937 fi
3938 ;;
3939
3940newos6*)
3941 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3942 lt_cv_file_magic_cmd=/usr/bin/file
3943 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3944 ;;
3945
John Criswell47fdd832003-07-14 16:52:07 +00003946nto-qnx)
3947 lt_cv_deplibs_check_method=unknown
3948 ;;
3949
John Criswell7a73b802003-06-30 21:59:07 +00003950openbsd*)
3951 lt_cv_file_magic_cmd=/usr/bin/file
3952 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3953 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3954 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3955 else
3956 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3957 fi
3958 ;;
3959
3960osf3* | osf4* | osf5*)
3961 # this will be overridden with pass_all, but let us keep it just in case
3962 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3963 lt_cv_file_magic_test_file=/shlib/libc.so
3964 lt_cv_deplibs_check_method=pass_all
3965 ;;
3966
3967sco3.2v5*)
3968 lt_cv_deplibs_check_method=pass_all
3969 ;;
3970
3971solaris*)
3972 lt_cv_deplibs_check_method=pass_all
3973 lt_cv_file_magic_test_file=/lib/libc.so
3974 ;;
3975
John Criswell7a73b802003-06-30 21:59:07 +00003976sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3977 case $host_vendor in
3978 motorola)
3979 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]'
3980 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3981 ;;
3982 ncr)
3983 lt_cv_deplibs_check_method=pass_all
3984 ;;
3985 sequent)
3986 lt_cv_file_magic_cmd='/bin/file'
3987 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3988 ;;
3989 sni)
3990 lt_cv_file_magic_cmd='/bin/file'
3991 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3992 lt_cv_file_magic_test_file=/lib/libc.so
3993 ;;
John Criswell47fdd832003-07-14 16:52:07 +00003994 siemens)
3995 lt_cv_deplibs_check_method=pass_all
3996 ;;
John Criswell7a73b802003-06-30 21:59:07 +00003997 esac
3998 ;;
John Criswell47fdd832003-07-14 16:52:07 +00003999
4000sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4001 lt_cv_deplibs_check_method=pass_all
4002 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004003esac
4004
4005fi
4006echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4007echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4008file_magic_cmd=$lt_cv_file_magic_cmd
4009deplibs_check_method=$lt_cv_deplibs_check_method
John Criswell47fdd832003-07-14 16:52:07 +00004010test -z "$deplibs_check_method" && deplibs_check_method=unknown
John Criswell7a73b802003-06-30 21:59:07 +00004011
4012
4013
4014
John Criswell47fdd832003-07-14 16:52:07 +00004015# If no C compiler was specified, use CC.
4016LTCC=${LTCC-"$CC"}
John Criswell7a73b802003-06-30 21:59:07 +00004017
John Criswell47fdd832003-07-14 16:52:07 +00004018# Allow CC to be a program name with arguments.
4019compiler=$CC
John Criswell7a73b802003-06-30 21:59:07 +00004020
John Criswell47fdd832003-07-14 16:52:07 +00004021# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4022if test "${enable_libtool_lock+set}" = set; then
4023 enableval="$enable_libtool_lock"
John Criswell7a73b802003-06-30 21:59:07 +00004024
John Criswell47fdd832003-07-14 16:52:07 +00004025fi;
4026test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
John Criswell7a73b802003-06-30 21:59:07 +00004027
John Criswell47fdd832003-07-14 16:52:07 +00004028# Some flags need to be propagated to the compiler or linker for good
4029# libtool support.
4030case $host in
4031ia64-*-hpux*)
4032 # Find out which ABI we are using.
4033 echo 'int i;' > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004034 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4035 (eval $ac_compile) 2>&5
4036 ac_status=$?
4037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4038 (exit $ac_status); }; then
John Criswell47fdd832003-07-14 16:52:07 +00004039 case `/usr/bin/file conftest.$ac_objext` in
4040 *ELF-32*)
4041 HPUX_IA64_MODE="32"
4042 ;;
4043 *ELF-64*)
4044 HPUX_IA64_MODE="64"
4045 ;;
4046 esac
4047 fi
4048 rm -rf conftest*
4049 ;;
4050*-*-irix6*)
4051 # Find out which ABI we are using.
Misha Brukmandb84a092004-06-22 15:35:32 +00004052 echo '#line 4052 "configure"' > conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +00004053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4054 (eval $ac_compile) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00004055 ac_status=$?
4056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00004057 (exit $ac_status); }; then
4058 if test "$lt_cv_prog_gnu_ld" = yes; then
4059 case `/usr/bin/file conftest.$ac_objext` in
4060 *32-bit*)
4061 LD="${LD-ld} -melf32bsmip"
4062 ;;
4063 *N32*)
4064 LD="${LD-ld} -melf32bmipn32"
4065 ;;
4066 *64-bit*)
4067 LD="${LD-ld} -melf64bmip"
4068 ;;
4069 esac
4070 else
4071 case `/usr/bin/file conftest.$ac_objext` in
4072 *32-bit*)
4073 LD="${LD-ld} -32"
4074 ;;
4075 *N32*)
4076 LD="${LD-ld} -n32"
4077 ;;
4078 *64-bit*)
4079 LD="${LD-ld} -64"
4080 ;;
4081 esac
4082 fi
4083 fi
4084 rm -rf conftest*
4085 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004086
John Criswell47fdd832003-07-14 16:52:07 +00004087x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4088 # Find out which ABI we are using.
4089 echo 'int i;' > conftest.$ac_ext
4090 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4091 (eval $ac_compile) 2>&5
4092 ac_status=$?
4093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4094 (exit $ac_status); }; then
4095 case "`/usr/bin/file conftest.o`" in
4096 *32-bit*)
4097 case $host in
4098 x86_64-*linux*)
4099 LD="${LD-ld} -m elf_i386"
4100 ;;
4101 ppc64-*linux*)
4102 LD="${LD-ld} -m elf32ppclinux"
4103 ;;
4104 s390x-*linux*)
4105 LD="${LD-ld} -m elf_s390"
4106 ;;
4107 sparc64-*linux*)
4108 LD="${LD-ld} -m elf32_sparc"
4109 ;;
4110 esac
4111 ;;
4112 *64-bit*)
4113 case $host in
4114 x86_64-*linux*)
4115 LD="${LD-ld} -m elf_x86_64"
4116 ;;
4117 ppc*-*linux*|powerpc*-*linux*)
4118 LD="${LD-ld} -m elf64ppc"
4119 ;;
4120 s390*-*linux*)
4121 LD="${LD-ld} -m elf64_s390"
4122 ;;
4123 sparc*-*linux*)
4124 LD="${LD-ld} -m elf64_sparc"
4125 ;;
4126 esac
4127 ;;
4128 esac
4129 fi
4130 rm -rf conftest*
4131 ;;
4132
4133*-*-sco3.2v5*)
4134 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4135 SAVE_CFLAGS="$CFLAGS"
4136 CFLAGS="$CFLAGS -belf"
4137 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4138echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4139if test "${lt_cv_cc_needs_belf+set}" = set; then
4140 echo $ECHO_N "(cached) $ECHO_C" >&6
4141else
4142 ac_ext=c
4143ac_cpp='$CPP $CPPFLAGS'
4144ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4145ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4146ac_compiler_gnu=$ac_cv_c_compiler_gnu
4147
4148 cat >conftest.$ac_ext <<_ACEOF
4149#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004150/* confdefs.h. */
4151_ACEOF
4152cat confdefs.h >>conftest.$ac_ext
4153cat >>conftest.$ac_ext <<_ACEOF
4154/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00004155
John Criswell47fdd832003-07-14 16:52:07 +00004156int
4157main ()
John Criswell7a73b802003-06-30 21:59:07 +00004158{
John Criswell7a73b802003-06-30 21:59:07 +00004159
John Criswell47fdd832003-07-14 16:52:07 +00004160 ;
4161 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00004162}
John Criswell47fdd832003-07-14 16:52:07 +00004163_ACEOF
4164rm -f conftest.$ac_objext conftest$ac_exeext
4165if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
John Criswell7a73b802003-06-30 21:59:07 +00004166 (eval $ac_link) 2>&5
4167 ac_status=$?
4168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00004169 (exit $ac_status); } &&
4170 { ac_try='test -s conftest$ac_exeext'
4171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4172 (eval $ac_try) 2>&5
4173 ac_status=$?
4174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4175 (exit $ac_status); }; }; then
4176 lt_cv_cc_needs_belf=yes
John Criswell7a73b802003-06-30 21:59:07 +00004177else
John Criswell47fdd832003-07-14 16:52:07 +00004178 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004179sed 's/^/| /' conftest.$ac_ext >&5
4180
John Criswell47fdd832003-07-14 16:52:07 +00004181lt_cv_cc_needs_belf=no
John Criswell7a73b802003-06-30 21:59:07 +00004182fi
John Criswell47fdd832003-07-14 16:52:07 +00004183rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4184 ac_ext=c
4185ac_cpp='$CPP $CPPFLAGS'
4186ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4187ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4188ac_compiler_gnu=$ac_cv_c_compiler_gnu
4189
John Criswell7a73b802003-06-30 21:59:07 +00004190fi
John Criswell47fdd832003-07-14 16:52:07 +00004191echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4192echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4193 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4194 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4195 CFLAGS="$SAVE_CFLAGS"
4196 fi
4197 ;;
4198
4199esac
4200
4201need_locks="$enable_libtool_lock"
4202
John Criswell7a73b802003-06-30 21:59:07 +00004203
4204
4205echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4206echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4207if test "${ac_cv_header_stdc+set}" = set; then
4208 echo $ECHO_N "(cached) $ECHO_C" >&6
4209else
4210 cat >conftest.$ac_ext <<_ACEOF
4211#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004212/* confdefs.h. */
4213_ACEOF
4214cat confdefs.h >>conftest.$ac_ext
4215cat >>conftest.$ac_ext <<_ACEOF
4216/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004217#include <stdlib.h>
4218#include <stdarg.h>
4219#include <string.h>
4220#include <float.h>
4221
John Criswell0c38eaf2003-09-10 15:17:25 +00004222int
4223main ()
4224{
4225
4226 ;
4227 return 0;
4228}
John Criswell7a73b802003-06-30 21:59:07 +00004229_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004230rm -f conftest.$ac_objext
4231if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4232 (eval $ac_compile) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00004233 ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +00004234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004235 (exit $ac_status); } &&
4236 { ac_try='test -s conftest.$ac_objext'
4237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4238 (eval $ac_try) 2>&5
4239 ac_status=$?
4240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4241 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00004242 ac_cv_header_stdc=yes
4243else
4244 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004245sed 's/^/| /' conftest.$ac_ext >&5
4246
4247ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00004248fi
John Criswell0c38eaf2003-09-10 15:17:25 +00004249rm -f conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004250
4251if test $ac_cv_header_stdc = yes; then
4252 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4253 cat >conftest.$ac_ext <<_ACEOF
4254#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004255/* confdefs.h. */
4256_ACEOF
4257cat confdefs.h >>conftest.$ac_ext
4258cat >>conftest.$ac_ext <<_ACEOF
4259/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004260#include <string.h>
4261
4262_ACEOF
4263if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00004264 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00004265 :
4266else
4267 ac_cv_header_stdc=no
4268fi
4269rm -f conftest*
4270
4271fi
4272
4273if test $ac_cv_header_stdc = yes; then
4274 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4275 cat >conftest.$ac_ext <<_ACEOF
4276#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004277/* confdefs.h. */
4278_ACEOF
4279cat confdefs.h >>conftest.$ac_ext
4280cat >>conftest.$ac_ext <<_ACEOF
4281/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004282#include <stdlib.h>
4283
4284_ACEOF
4285if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00004286 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00004287 :
4288else
4289 ac_cv_header_stdc=no
4290fi
4291rm -f conftest*
4292
4293fi
4294
4295if test $ac_cv_header_stdc = yes; then
4296 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4297 if test "$cross_compiling" = yes; then
4298 :
4299else
4300 cat >conftest.$ac_ext <<_ACEOF
4301#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004302/* confdefs.h. */
4303_ACEOF
4304cat confdefs.h >>conftest.$ac_ext
4305cat >>conftest.$ac_ext <<_ACEOF
4306/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004307#include <ctype.h>
4308#if ((' ' & 0x0FF) == 0x020)
4309# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4310# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4311#else
John Criswell0c38eaf2003-09-10 15:17:25 +00004312# define ISLOWER(c) \
4313 (('a' <= (c) && (c) <= 'i') \
John Criswell7a73b802003-06-30 21:59:07 +00004314 || ('j' <= (c) && (c) <= 'r') \
4315 || ('s' <= (c) && (c) <= 'z'))
4316# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4317#endif
4318
4319#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4320int
4321main ()
4322{
4323 int i;
4324 for (i = 0; i < 256; i++)
4325 if (XOR (islower (i), ISLOWER (i))
4326 || toupper (i) != TOUPPER (i))
4327 exit(2);
4328 exit (0);
4329}
4330_ACEOF
4331rm -f conftest$ac_exeext
4332if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4333 (eval $ac_link) 2>&5
4334 ac_status=$?
4335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4336 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4338 (eval $ac_try) 2>&5
4339 ac_status=$?
4340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4341 (exit $ac_status); }; }; then
4342 :
4343else
4344 echo "$as_me: program exited with status $ac_status" >&5
4345echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004346sed 's/^/| /' conftest.$ac_ext >&5
4347
John Criswell7a73b802003-06-30 21:59:07 +00004348( exit $ac_status )
4349ac_cv_header_stdc=no
4350fi
John Criswell0c38eaf2003-09-10 15:17:25 +00004351rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004352fi
4353fi
4354fi
4355echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4356echo "${ECHO_T}$ac_cv_header_stdc" >&6
4357if test $ac_cv_header_stdc = yes; then
4358
4359cat >>confdefs.h <<\_ACEOF
4360#define STDC_HEADERS 1
4361_ACEOF
4362
4363fi
4364
4365# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4376 inttypes.h stdint.h unistd.h
4377do
4378as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4379echo "$as_me:$LINENO: checking for $ac_header" >&5
4380echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4381if eval "test \"\${$as_ac_Header+set}\" = set"; then
4382 echo $ECHO_N "(cached) $ECHO_C" >&6
4383else
4384 cat >conftest.$ac_ext <<_ACEOF
4385#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004386/* confdefs.h. */
4387_ACEOF
4388cat confdefs.h >>conftest.$ac_ext
4389cat >>conftest.$ac_ext <<_ACEOF
4390/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004391$ac_includes_default
4392
4393#include <$ac_header>
4394_ACEOF
4395rm -f conftest.$ac_objext
4396if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4397 (eval $ac_compile) 2>&5
4398 ac_status=$?
4399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4400 (exit $ac_status); } &&
4401 { ac_try='test -s conftest.$ac_objext'
4402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4403 (eval $ac_try) 2>&5
4404 ac_status=$?
4405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4406 (exit $ac_status); }; }; then
4407 eval "$as_ac_Header=yes"
4408else
4409 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004410sed 's/^/| /' conftest.$ac_ext >&5
4411
John Criswell7a73b802003-06-30 21:59:07 +00004412eval "$as_ac_Header=no"
4413fi
4414rm -f conftest.$ac_objext conftest.$ac_ext
4415fi
4416echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4417echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4418if test `eval echo '${'$as_ac_Header'}'` = yes; then
4419 cat >>confdefs.h <<_ACEOF
4420#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4421_ACEOF
4422
4423fi
4424
4425done
4426
4427
4428
4429for ac_header in dlfcn.h
4430do
4431as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4432if eval "test \"\${$as_ac_Header+set}\" = set"; then
4433 echo "$as_me:$LINENO: checking for $ac_header" >&5
4434echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4435if eval "test \"\${$as_ac_Header+set}\" = set"; then
4436 echo $ECHO_N "(cached) $ECHO_C" >&6
4437fi
4438echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4439echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4440else
4441 # Is the header compilable?
4442echo "$as_me:$LINENO: checking $ac_header usability" >&5
4443echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4444cat >conftest.$ac_ext <<_ACEOF
4445#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004446/* confdefs.h. */
4447_ACEOF
4448cat confdefs.h >>conftest.$ac_ext
4449cat >>conftest.$ac_ext <<_ACEOF
4450/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004451$ac_includes_default
4452#include <$ac_header>
4453_ACEOF
4454rm -f conftest.$ac_objext
4455if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4456 (eval $ac_compile) 2>&5
4457 ac_status=$?
4458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4459 (exit $ac_status); } &&
4460 { ac_try='test -s conftest.$ac_objext'
4461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4462 (eval $ac_try) 2>&5
4463 ac_status=$?
4464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4465 (exit $ac_status); }; }; then
4466 ac_header_compiler=yes
4467else
4468 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004469sed 's/^/| /' conftest.$ac_ext >&5
4470
John Criswell7a73b802003-06-30 21:59:07 +00004471ac_header_compiler=no
4472fi
4473rm -f conftest.$ac_objext conftest.$ac_ext
4474echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4475echo "${ECHO_T}$ac_header_compiler" >&6
4476
4477# Is the header present?
4478echo "$as_me:$LINENO: checking $ac_header presence" >&5
4479echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4480cat >conftest.$ac_ext <<_ACEOF
4481#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004482/* confdefs.h. */
4483_ACEOF
4484cat confdefs.h >>conftest.$ac_ext
4485cat >>conftest.$ac_ext <<_ACEOF
4486/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004487#include <$ac_header>
4488_ACEOF
4489if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4490 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4491 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004492 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00004493 rm -f conftest.er1
4494 cat conftest.err >&5
4495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4496 (exit $ac_status); } >/dev/null; then
4497 if test -s conftest.err; then
4498 ac_cpp_err=$ac_c_preproc_warn_flag
4499 else
4500 ac_cpp_err=
4501 fi
4502else
4503 ac_cpp_err=yes
4504fi
4505if test -z "$ac_cpp_err"; then
4506 ac_header_preproc=yes
4507else
4508 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004509sed 's/^/| /' conftest.$ac_ext >&5
4510
John Criswell7a73b802003-06-30 21:59:07 +00004511 ac_header_preproc=no
4512fi
4513rm -f conftest.err conftest.$ac_ext
4514echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4515echo "${ECHO_T}$ac_header_preproc" >&6
4516
4517# So? What about this header?
4518case $ac_header_compiler:$ac_header_preproc in
4519 yes:no )
4520 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4521echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4522 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004523echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4524 (
4525 cat <<\_ASBOX
4526## ------------------------------------ ##
4527## Report this to bug-autoconf@gnu.org. ##
4528## ------------------------------------ ##
4529_ASBOX
4530 ) |
4531 sed "s/^/$as_me: WARNING: /" >&2
4532 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004533 no:yes )
4534 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4535echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4536 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4537echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4538 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004539echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4540 (
4541 cat <<\_ASBOX
4542## ------------------------------------ ##
4543## Report this to bug-autoconf@gnu.org. ##
4544## ------------------------------------ ##
4545_ASBOX
4546 ) |
4547 sed "s/^/$as_me: WARNING: /" >&2
4548 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004549esac
4550echo "$as_me:$LINENO: checking for $ac_header" >&5
4551echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4552if eval "test \"\${$as_ac_Header+set}\" = set"; then
4553 echo $ECHO_N "(cached) $ECHO_C" >&6
4554else
4555 eval "$as_ac_Header=$ac_header_preproc"
4556fi
4557echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4558echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4559
4560fi
4561if test `eval echo '${'$as_ac_Header'}'` = yes; then
4562 cat >>confdefs.h <<_ACEOF
4563#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4564_ACEOF
4565
4566fi
4567
4568done
4569
John Criswell47fdd832003-07-14 16:52:07 +00004570ac_ext=cc
4571ac_cpp='$CXXCPP $CPPFLAGS'
4572ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4573ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4574ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4575echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4576echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4577if test -z "$CXXCPP"; then
4578 if test "${ac_cv_prog_CXXCPP+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00004579 echo $ECHO_N "(cached) $ECHO_C" >&6
4580else
John Criswell47fdd832003-07-14 16:52:07 +00004581 # Double quotes because CXXCPP needs to be expanded
4582 for CXXCPP in "$CXX -E" "/lib/cpp"
4583 do
4584 ac_preproc_ok=false
4585for ac_cxx_preproc_warn_flag in '' yes
4586do
4587 # Use a header file that comes with gcc, so configuring glibc
4588 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00004589 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4590 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +00004591 # On the NeXT, cc -E runs the code through the compiler's parser,
4592 # not just through cpp. "Syntax error" is here to catch this case.
4593 cat >conftest.$ac_ext <<_ACEOF
4594#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004595/* confdefs.h. */
4596_ACEOF
4597cat confdefs.h >>conftest.$ac_ext
4598cat >>conftest.$ac_ext <<_ACEOF
4599/* end confdefs.h. */
4600#ifdef __STDC__
4601# include <limits.h>
4602#else
4603# include <assert.h>
4604#endif
John Criswell47fdd832003-07-14 16:52:07 +00004605 Syntax error
4606_ACEOF
4607if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4608 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4609 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004610 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00004611 rm -f conftest.er1
4612 cat conftest.err >&5
4613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4614 (exit $ac_status); } >/dev/null; then
4615 if test -s conftest.err; then
4616 ac_cpp_err=$ac_cxx_preproc_warn_flag
John Criswell7a73b802003-06-30 21:59:07 +00004617 else
John Criswell47fdd832003-07-14 16:52:07 +00004618 ac_cpp_err=
John Criswell7a73b802003-06-30 21:59:07 +00004619 fi
John Criswell47fdd832003-07-14 16:52:07 +00004620else
4621 ac_cpp_err=yes
4622fi
4623if test -z "$ac_cpp_err"; then
4624 :
4625else
4626 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004627sed 's/^/| /' conftest.$ac_ext >&5
4628
John Criswell47fdd832003-07-14 16:52:07 +00004629 # Broken: fails on valid input.
4630continue
4631fi
4632rm -f conftest.err conftest.$ac_ext
4633
4634 # OK, works on sane cases. Now check whether non-existent headers
4635 # can be detected and how.
4636 cat >conftest.$ac_ext <<_ACEOF
4637#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004638/* confdefs.h. */
4639_ACEOF
4640cat confdefs.h >>conftest.$ac_ext
4641cat >>conftest.$ac_ext <<_ACEOF
4642/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00004643#include <ac_nonexistent.h>
4644_ACEOF
4645if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4646 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4647 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004648 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00004649 rm -f conftest.er1
4650 cat conftest.err >&5
4651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4652 (exit $ac_status); } >/dev/null; then
4653 if test -s conftest.err; then
4654 ac_cpp_err=$ac_cxx_preproc_warn_flag
4655 else
4656 ac_cpp_err=
4657 fi
4658else
4659 ac_cpp_err=yes
4660fi
4661if test -z "$ac_cpp_err"; then
4662 # Broken: success on invalid input.
4663continue
4664else
4665 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004666sed 's/^/| /' conftest.$ac_ext >&5
4667
John Criswell47fdd832003-07-14 16:52:07 +00004668 # Passes both tests.
4669ac_preproc_ok=:
4670break
4671fi
4672rm -f conftest.err conftest.$ac_ext
4673
4674done
4675# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4676rm -f conftest.err conftest.$ac_ext
4677if $ac_preproc_ok; then
4678 break
John Criswell7a73b802003-06-30 21:59:07 +00004679fi
4680
John Criswell47fdd832003-07-14 16:52:07 +00004681 done
4682 ac_cv_prog_CXXCPP=$CXXCPP
4683
4684fi
4685 CXXCPP=$ac_cv_prog_CXXCPP
4686else
4687 ac_cv_prog_CXXCPP=$CXXCPP
4688fi
4689echo "$as_me:$LINENO: result: $CXXCPP" >&5
4690echo "${ECHO_T}$CXXCPP" >&6
4691ac_preproc_ok=false
4692for ac_cxx_preproc_warn_flag in '' yes
4693do
4694 # Use a header file that comes with gcc, so configuring glibc
4695 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00004696 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4697 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +00004698 # On the NeXT, cc -E runs the code through the compiler's parser,
4699 # not just through cpp. "Syntax error" is here to catch this case.
4700 cat >conftest.$ac_ext <<_ACEOF
4701#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004702/* confdefs.h. */
4703_ACEOF
4704cat confdefs.h >>conftest.$ac_ext
4705cat >>conftest.$ac_ext <<_ACEOF
4706/* end confdefs.h. */
4707#ifdef __STDC__
4708# include <limits.h>
4709#else
4710# include <assert.h>
4711#endif
John Criswell47fdd832003-07-14 16:52:07 +00004712 Syntax error
4713_ACEOF
4714if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4715 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4716 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004717 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00004718 rm -f conftest.er1
4719 cat conftest.err >&5
4720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4721 (exit $ac_status); } >/dev/null; then
4722 if test -s conftest.err; then
4723 ac_cpp_err=$ac_cxx_preproc_warn_flag
4724 else
4725 ac_cpp_err=
4726 fi
4727else
4728 ac_cpp_err=yes
4729fi
4730if test -z "$ac_cpp_err"; then
4731 :
4732else
4733 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004734sed 's/^/| /' conftest.$ac_ext >&5
4735
John Criswell47fdd832003-07-14 16:52:07 +00004736 # Broken: fails on valid input.
4737continue
4738fi
4739rm -f conftest.err conftest.$ac_ext
4740
4741 # OK, works on sane cases. Now check whether non-existent headers
4742 # can be detected and how.
4743 cat >conftest.$ac_ext <<_ACEOF
4744#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004745/* confdefs.h. */
4746_ACEOF
4747cat confdefs.h >>conftest.$ac_ext
4748cat >>conftest.$ac_ext <<_ACEOF
4749/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00004750#include <ac_nonexistent.h>
4751_ACEOF
4752if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4753 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4754 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004755 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00004756 rm -f conftest.er1
4757 cat conftest.err >&5
4758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4759 (exit $ac_status); } >/dev/null; then
4760 if test -s conftest.err; then
4761 ac_cpp_err=$ac_cxx_preproc_warn_flag
4762 else
4763 ac_cpp_err=
4764 fi
4765else
4766 ac_cpp_err=yes
4767fi
4768if test -z "$ac_cpp_err"; then
4769 # Broken: success on invalid input.
4770continue
4771else
4772 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004773sed 's/^/| /' conftest.$ac_ext >&5
4774
John Criswell47fdd832003-07-14 16:52:07 +00004775 # Passes both tests.
4776ac_preproc_ok=:
4777break
4778fi
4779rm -f conftest.err conftest.$ac_ext
4780
4781done
4782# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4783rm -f conftest.err conftest.$ac_ext
4784if $ac_preproc_ok; then
4785 :
4786else
John Criswell0c38eaf2003-09-10 15:17:25 +00004787 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4788See \`config.log' for more details." >&5
4789echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4790See \`config.log' for more details." >&2;}
John Criswell47fdd832003-07-14 16:52:07 +00004791 { (exit 1); exit 1; }; }
4792fi
4793
4794ac_ext=cc
4795ac_cpp='$CXXCPP $CPPFLAGS'
4796ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4797ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4798ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4799
4800
4801ac_ext=f
4802ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4803ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4804ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4805if test -n "$ac_tool_prefix"; then
John Criswell0c38eaf2003-09-10 15:17:25 +00004806 for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
John Criswell47fdd832003-07-14 16:52:07 +00004807 do
4808 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4809set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4810echo "$as_me:$LINENO: checking for $ac_word" >&5
4811echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4812if test "${ac_cv_prog_F77+set}" = set; then
4813 echo $ECHO_N "(cached) $ECHO_C" >&6
4814else
4815 if test -n "$F77"; then
4816 ac_cv_prog_F77="$F77" # Let the user override the test.
4817else
4818as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4819for as_dir in $PATH
4820do
4821 IFS=$as_save_IFS
4822 test -z "$as_dir" && as_dir=.
4823 for ac_exec_ext in '' $ac_executable_extensions; do
4824 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4825 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4826 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4827 break 2
4828 fi
4829done
4830done
4831
4832fi
4833fi
4834F77=$ac_cv_prog_F77
4835if test -n "$F77"; then
4836 echo "$as_me:$LINENO: result: $F77" >&5
4837echo "${ECHO_T}$F77" >&6
4838else
4839 echo "$as_me:$LINENO: result: no" >&5
4840echo "${ECHO_T}no" >&6
4841fi
4842
4843 test -n "$F77" && break
4844 done
4845fi
4846if test -z "$F77"; then
4847 ac_ct_F77=$F77
John Criswell0c38eaf2003-09-10 15:17:25 +00004848 for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
John Criswell47fdd832003-07-14 16:52:07 +00004849do
4850 # Extract the first word of "$ac_prog", so it can be a program name with args.
4851set dummy $ac_prog; ac_word=$2
4852echo "$as_me:$LINENO: checking for $ac_word" >&5
4853echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4854if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
4855 echo $ECHO_N "(cached) $ECHO_C" >&6
4856else
4857 if test -n "$ac_ct_F77"; then
4858 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4859else
4860as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4861for as_dir in $PATH
4862do
4863 IFS=$as_save_IFS
4864 test -z "$as_dir" && as_dir=.
4865 for ac_exec_ext in '' $ac_executable_extensions; do
4866 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4867 ac_cv_prog_ac_ct_F77="$ac_prog"
4868 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4869 break 2
4870 fi
4871done
4872done
4873
4874fi
4875fi
4876ac_ct_F77=$ac_cv_prog_ac_ct_F77
4877if test -n "$ac_ct_F77"; then
4878 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
4879echo "${ECHO_T}$ac_ct_F77" >&6
4880else
4881 echo "$as_me:$LINENO: result: no" >&5
4882echo "${ECHO_T}no" >&6
4883fi
4884
4885 test -n "$ac_ct_F77" && break
4886done
4887
4888 F77=$ac_ct_F77
4889fi
4890
4891
4892# Provide some information about the compiler.
Misha Brukmandb84a092004-06-22 15:35:32 +00004893echo "$as_me:4893:" \
John Criswell47fdd832003-07-14 16:52:07 +00004894 "checking for Fortran 77 compiler version" >&5
4895ac_compiler=`set X $ac_compile; echo $2`
4896{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4897 (eval $ac_compiler --version </dev/null >&5) 2>&5
4898 ac_status=$?
4899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4900 (exit $ac_status); }
4901{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4902 (eval $ac_compiler -v </dev/null >&5) 2>&5
4903 ac_status=$?
4904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4905 (exit $ac_status); }
4906{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4907 (eval $ac_compiler -V </dev/null >&5) 2>&5
4908 ac_status=$?
4909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4910 (exit $ac_status); }
4911
4912# If we don't use `.F' as extension, the preprocessor is not run on the
4913# input file.
4914ac_save_ext=$ac_ext
4915ac_ext=F
4916echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
4917echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
4918if test "${ac_cv_f77_compiler_gnu+set}" = set; then
4919 echo $ECHO_N "(cached) $ECHO_C" >&6
4920else
4921 cat >conftest.$ac_ext <<_ACEOF
4922 program main
4923#ifndef __GNUC__
4924 choke me
4925#endif
4926
4927 end
4928_ACEOF
4929rm -f conftest.$ac_objext
4930if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4931 (eval $ac_compile) 2>&5
4932 ac_status=$?
4933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4934 (exit $ac_status); } &&
4935 { ac_try='test -s conftest.$ac_objext'
4936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4937 (eval $ac_try) 2>&5
4938 ac_status=$?
4939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4940 (exit $ac_status); }; }; then
4941 ac_compiler_gnu=yes
4942else
4943 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004944sed 's/^/| /' conftest.$ac_ext >&5
4945
John Criswell47fdd832003-07-14 16:52:07 +00004946ac_compiler_gnu=no
4947fi
4948rm -f conftest.$ac_objext conftest.$ac_ext
4949ac_cv_f77_compiler_gnu=$ac_compiler_gnu
4950
4951fi
4952echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
4953echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
4954ac_ext=$ac_save_ext
4955G77=`test $ac_compiler_gnu = yes && echo yes`
4956ac_test_FFLAGS=${FFLAGS+set}
4957ac_save_FFLAGS=$FFLAGS
4958FFLAGS=
4959echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
4960echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
4961if test "${ac_cv_prog_f77_g+set}" = set; then
4962 echo $ECHO_N "(cached) $ECHO_C" >&6
4963else
4964 FFLAGS=-g
4965cat >conftest.$ac_ext <<_ACEOF
4966 program main
4967
4968 end
4969_ACEOF
4970rm -f conftest.$ac_objext
4971if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4972 (eval $ac_compile) 2>&5
4973 ac_status=$?
4974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4975 (exit $ac_status); } &&
4976 { ac_try='test -s conftest.$ac_objext'
4977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4978 (eval $ac_try) 2>&5
4979 ac_status=$?
4980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4981 (exit $ac_status); }; }; then
4982 ac_cv_prog_f77_g=yes
4983else
4984 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004985sed 's/^/| /' conftest.$ac_ext >&5
4986
John Criswell47fdd832003-07-14 16:52:07 +00004987ac_cv_prog_f77_g=no
4988fi
4989rm -f conftest.$ac_objext conftest.$ac_ext
4990
4991fi
4992echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
4993echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
4994if test "$ac_test_FFLAGS" = set; then
4995 FFLAGS=$ac_save_FFLAGS
4996elif test $ac_cv_prog_f77_g = yes; then
4997 if test "$G77" = yes; then
4998 FFLAGS="-g -O2"
4999 else
5000 FFLAGS="-g"
5001 fi
5002else
5003 if test "$G77" = yes; then
5004 FFLAGS="-O2"
5005 else
5006 FFLAGS=
5007 fi
5008fi
5009ac_ext=c
5010ac_cpp='$CPP $CPPFLAGS'
5011ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5012ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5013ac_compiler_gnu=$ac_cv_c_compiler_gnu
5014
5015
5016
5017# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5018
5019# find the maximum length of command line arguments
5020echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5021echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5022if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5023 echo $ECHO_N "(cached) $ECHO_C" >&6
5024else
5025 i=0
5026 testring="ABCD"
5027
5028 case $build_os in
5029 msdosdjgpp*)
5030 # On DJGPP, this test can blow up pretty badly due to problems in libc
5031 # (any single argument exceeding 2000 bytes causes a buffer overrun
5032 # during glob expansion). Even if it were fixed, the result of this
5033 # check would be larger than it should be.
5034 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5035 ;;
5036
5037 gnu*)
5038 # Under GNU Hurd, this test is not required because there is
5039 # no limit to the length of command line arguments.
5040 # Libtool will interpret -1 as no limit whatsoever
5041 lt_cv_sys_max_cmd_len=-1;
5042 ;;
5043
5044 cygwin* | mingw*)
5045 # On Win9x/ME, this test blows up -- it succeeds, but takes
5046 # about 5 minutes as the teststring grows exponentially.
5047 # Worse, since 9x/ME are not pre-emptively multitasking,
5048 # you end up with a "frozen" computer, even though with patience
5049 # the test eventually succeeds (with a max line length of 256k).
5050 # Instead, let's just punt: use the minimum linelength reported by
5051 # all of the supported platforms: 8192 (on NT/2K/XP).
5052 lt_cv_sys_max_cmd_len=8192;
5053 ;;
5054
5055 *)
5056 # If test is not a shell built-in, we'll probably end up computing a
5057 # maximum length that is only half of the actual maximum length, but
5058 # we can't tell.
5059 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5060 = "XX$testring") >/dev/null 2>&1 &&
5061 new_result=`expr "X$testring" : ".*" 2>&1` &&
5062 lt_cv_sys_max_cmd_len=$new_result &&
5063 test $i != 17 # 1/2 MB should be enough
5064 do
5065 i=`expr $i + 1`
5066 testring=$testring$testring
5067 done
5068 testring=
5069 # Add a significant safety factor because C++ compilers can tack on massive
5070 # amounts of additional arguments before passing them to the linker.
5071 # It appears as though 1/2 is a usable value.
5072 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5073 ;;
5074 esac
5075
5076fi
5077
5078if test -n $lt_cv_sys_max_cmd_len ; then
5079 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5080echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5081else
5082 echo "$as_me:$LINENO: result: none" >&5
5083echo "${ECHO_T}none" >&6
5084fi
5085
5086
5087
5088
5089# Check for command to grab the raw symbol name followed by C symbol from nm.
5090echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5091echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5092if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5093 echo $ECHO_N "(cached) $ECHO_C" >&6
5094else
5095
5096# These are sane defaults that work on at least a few old systems.
5097# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5098
5099# Character class describing NM global symbol codes.
5100symcode='[BCDEGRST]'
5101
5102# Regexp to match symbols that can be accessed directly from C.
5103sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5104
5105# Transform the above into a raw symbol and a C symbol.
5106symxfrm='\1 \2\3 \3'
5107
5108# Transform an extracted symbol line into a proper C declaration
5109lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5110
5111# Transform an extracted symbol line into symbol name and symbol address
5112lt_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'"
5113
5114# Define system-specific variables.
5115case $host_os in
5116aix*)
5117 symcode='[BCDT]'
5118 ;;
5119cygwin* | mingw* | pw32*)
5120 symcode='[ABCDGISTW]'
5121 ;;
5122hpux*) # Its linker distinguishes data from code symbols
5123 if test "$host_cpu" = ia64; then
5124 symcode='[ABCDEGRST]'
5125 fi
5126 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5127 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'"
5128 ;;
5129irix* | nonstopux*)
5130 symcode='[BCDEGRST]'
5131 ;;
5132osf*)
5133 symcode='[BCDEGQRST]'
5134 ;;
5135solaris* | sysv5*)
5136 symcode='[BDT]'
5137 ;;
5138sysv4)
5139 symcode='[DFNSTU]'
5140 ;;
5141esac
5142
5143# Handle CRLF in mingw tool chain
5144opt_cr=
5145case $build_os in
5146mingw*)
5147 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5148 ;;
5149esac
5150
5151# If we're using GNU nm, then use its standard symbol codes.
5152case `$NM -V 2>&1` in
5153*GNU* | *'with BFD'*)
5154 symcode='[ABCDGISTW]' ;;
5155esac
5156
5157# Try without a prefix undercore, then with it.
5158for ac_symprfx in "" "_"; do
5159
5160 # Write the raw and C identifiers.
5161 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5162
5163 # Check to see that the pipe works correctly.
5164 pipe_works=no
5165
5166 rm -f conftest*
5167 cat > conftest.$ac_ext <<EOF
5168#ifdef __cplusplus
5169extern "C" {
5170#endif
5171char nm_test_var;
5172void nm_test_func(){}
5173#ifdef __cplusplus
5174}
5175#endif
5176int main(){nm_test_var='a';nm_test_func();return(0);}
5177EOF
5178
5179 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5180 (eval $ac_compile) 2>&5
5181 ac_status=$?
5182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5183 (exit $ac_status); }; then
5184 # Now try to grab the symbols.
5185 nlist=conftest.nm
5186 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5187 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5188 ac_status=$?
5189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5190 (exit $ac_status); } && test -s "$nlist"; then
5191 # Try sorting and uniquifying the output.
5192 if sort "$nlist" | uniq > "$nlist"T; then
5193 mv -f "$nlist"T "$nlist"
5194 else
5195 rm -f "$nlist"T
5196 fi
5197
5198 # Make sure that we snagged all the symbols we need.
5199 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5200 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5201 cat <<EOF > conftest.$ac_ext
5202#ifdef __cplusplus
5203extern "C" {
5204#endif
5205
5206EOF
5207 # Now generate the symbol file.
5208 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5209
5210 cat <<EOF >> conftest.$ac_ext
5211#if defined (__STDC__) && __STDC__
5212# define lt_ptr_t void *
5213#else
5214# define lt_ptr_t char *
5215# define const
5216#endif
5217
5218/* The mapping between symbol names and symbols. */
5219const struct {
5220 const char *name;
5221 lt_ptr_t address;
5222}
5223lt_preloaded_symbols[] =
5224{
5225EOF
5226 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5227 cat <<\EOF >> conftest.$ac_ext
5228 {0, (lt_ptr_t) 0}
5229};
5230
5231#ifdef __cplusplus
5232}
5233#endif
5234EOF
5235 # Now try linking the two files.
5236 mv conftest.$ac_objext conftstm.$ac_objext
5237 lt_save_LIBS="$LIBS"
5238 lt_save_CFLAGS="$CFLAGS"
5239 LIBS="conftstm.$ac_objext"
5240 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5241 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5242 (eval $ac_link) 2>&5
5243 ac_status=$?
5244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5245 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5246 pipe_works=yes
5247 fi
5248 LIBS="$lt_save_LIBS"
5249 CFLAGS="$lt_save_CFLAGS"
5250 else
5251 echo "cannot find nm_test_func in $nlist" >&5
5252 fi
5253 else
5254 echo "cannot find nm_test_var in $nlist" >&5
5255 fi
5256 else
5257 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5258 fi
5259 else
5260 echo "$progname: failed program was:" >&5
5261 cat conftest.$ac_ext >&5
5262 fi
5263 rm -f conftest* conftst*
5264
5265 # Do not use the global_symbol_pipe unless it works.
5266 if test "$pipe_works" = yes; then
5267 break
5268 else
5269 lt_cv_sys_global_symbol_pipe=
5270 fi
5271done
5272
5273fi
5274
5275if test -z "$lt_cv_sys_global_symbol_pipe"; then
5276 lt_cv_sys_global_symbol_to_cdecl=
5277fi
5278if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5279 echo "$as_me:$LINENO: result: failed" >&5
5280echo "${ECHO_T}failed" >&6
5281else
5282 echo "$as_me:$LINENO: result: ok" >&5
5283echo "${ECHO_T}ok" >&6
5284fi
5285
5286echo "$as_me:$LINENO: checking for objdir" >&5
5287echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5288if test "${lt_cv_objdir+set}" = set; then
5289 echo $ECHO_N "(cached) $ECHO_C" >&6
5290else
5291 rm -f .libs 2>/dev/null
5292mkdir .libs 2>/dev/null
5293if test -d .libs; then
5294 lt_cv_objdir=.libs
5295else
5296 # MS-DOS does not allow filenames that begin with a dot.
5297 lt_cv_objdir=_libs
5298fi
5299rmdir .libs 2>/dev/null
5300fi
5301echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5302echo "${ECHO_T}$lt_cv_objdir" >&6
5303objdir=$lt_cv_objdir
5304
5305
5306
5307
5308
5309case $host_os in
5310aix3*)
5311 # AIX sometimes has problems with the GCC collect2 program. For some
5312 # reason, if we set the COLLECT_NAMES environment variable, the problems
5313 # vanish in a puff of smoke.
5314 if test "X${COLLECT_NAMES+set}" != Xset; then
5315 COLLECT_NAMES=
5316 export COLLECT_NAMES
John Criswell7a73b802003-06-30 21:59:07 +00005317 fi
5318 ;;
5319esac
5320
John Criswell47fdd832003-07-14 16:52:07 +00005321# Sed substitution that helps us do robust quoting. It backslashifies
5322# metacharacters that are still active within double-quoted strings.
5323Xsed='sed -e s/^X//'
5324sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5325
5326# Same as above, but do not quote variable references.
5327double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5328
5329# Sed substitution to delay expansion of an escaped shell variable in a
5330# double_quote_subst'ed string.
5331delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5332
5333# Sed substitution to avoid accidental globbing in evaled expressions
5334no_glob_subst='s/\*/\\\*/g'
5335
5336# Constants:
5337rm="rm -f"
5338
5339# Global variables:
John Criswell8d4221e2003-07-23 16:52:50 +00005340default_ofile=mklib
John Criswell47fdd832003-07-14 16:52:07 +00005341can_build_shared=yes
5342
5343# All known linkers require a `.a' archive for static linking (except M$VC,
5344# which needs '.lib').
5345libext=a
5346ltmain="$ac_aux_dir/ltmain.sh"
5347ofile="$default_ofile"
5348with_gnu_ld="$lt_cv_prog_gnu_ld"
5349
5350if test -n "$ac_tool_prefix"; then
5351 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5352set dummy ${ac_tool_prefix}ar; ac_word=$2
5353echo "$as_me:$LINENO: checking for $ac_word" >&5
5354echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5355if test "${ac_cv_prog_AR+set}" = set; then
5356 echo $ECHO_N "(cached) $ECHO_C" >&6
5357else
5358 if test -n "$AR"; then
5359 ac_cv_prog_AR="$AR" # Let the user override the test.
5360else
5361as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5362for as_dir in $PATH
5363do
5364 IFS=$as_save_IFS
5365 test -z "$as_dir" && as_dir=.
5366 for ac_exec_ext in '' $ac_executable_extensions; do
5367 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5368 ac_cv_prog_AR="${ac_tool_prefix}ar"
5369 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5370 break 2
5371 fi
5372done
5373done
5374
5375fi
5376fi
5377AR=$ac_cv_prog_AR
5378if test -n "$AR"; then
5379 echo "$as_me:$LINENO: result: $AR" >&5
5380echo "${ECHO_T}$AR" >&6
5381else
5382 echo "$as_me:$LINENO: result: no" >&5
5383echo "${ECHO_T}no" >&6
5384fi
5385
5386fi
5387if test -z "$ac_cv_prog_AR"; then
5388 ac_ct_AR=$AR
5389 # Extract the first word of "ar", so it can be a program name with args.
5390set dummy ar; ac_word=$2
5391echo "$as_me:$LINENO: checking for $ac_word" >&5
5392echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5393if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5394 echo $ECHO_N "(cached) $ECHO_C" >&6
5395else
5396 if test -n "$ac_ct_AR"; then
5397 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5398else
5399as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5400for as_dir in $PATH
5401do
5402 IFS=$as_save_IFS
5403 test -z "$as_dir" && as_dir=.
5404 for ac_exec_ext in '' $ac_executable_extensions; do
5405 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5406 ac_cv_prog_ac_ct_AR="ar"
5407 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5408 break 2
5409 fi
5410done
5411done
5412
5413 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5414fi
5415fi
5416ac_ct_AR=$ac_cv_prog_ac_ct_AR
5417if test -n "$ac_ct_AR"; then
5418 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5419echo "${ECHO_T}$ac_ct_AR" >&6
5420else
5421 echo "$as_me:$LINENO: result: no" >&5
5422echo "${ECHO_T}no" >&6
5423fi
5424
5425 AR=$ac_ct_AR
5426else
5427 AR="$ac_cv_prog_AR"
5428fi
5429
John Criswell7a73b802003-06-30 21:59:07 +00005430if test -n "$ac_tool_prefix"; then
5431 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5432set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5433echo "$as_me:$LINENO: checking for $ac_word" >&5
5434echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5435if test "${ac_cv_prog_RANLIB+set}" = set; then
5436 echo $ECHO_N "(cached) $ECHO_C" >&6
5437else
5438 if test -n "$RANLIB"; then
5439 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5440else
5441as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5442for as_dir in $PATH
5443do
5444 IFS=$as_save_IFS
5445 test -z "$as_dir" && as_dir=.
5446 for ac_exec_ext in '' $ac_executable_extensions; do
5447 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5448 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5449 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5450 break 2
5451 fi
5452done
5453done
5454
5455fi
5456fi
5457RANLIB=$ac_cv_prog_RANLIB
5458if test -n "$RANLIB"; then
5459 echo "$as_me:$LINENO: result: $RANLIB" >&5
5460echo "${ECHO_T}$RANLIB" >&6
5461else
5462 echo "$as_me:$LINENO: result: no" >&5
5463echo "${ECHO_T}no" >&6
5464fi
5465
5466fi
5467if test -z "$ac_cv_prog_RANLIB"; then
5468 ac_ct_RANLIB=$RANLIB
5469 # Extract the first word of "ranlib", so it can be a program name with args.
5470set dummy ranlib; ac_word=$2
5471echo "$as_me:$LINENO: checking for $ac_word" >&5
5472echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5473if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5474 echo $ECHO_N "(cached) $ECHO_C" >&6
5475else
5476 if test -n "$ac_ct_RANLIB"; then
5477 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5478else
5479as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5480for as_dir in $PATH
5481do
5482 IFS=$as_save_IFS
5483 test -z "$as_dir" && as_dir=.
5484 for ac_exec_ext in '' $ac_executable_extensions; do
5485 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5486 ac_cv_prog_ac_ct_RANLIB="ranlib"
5487 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5488 break 2
5489 fi
5490done
5491done
5492
5493 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5494fi
5495fi
5496ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5497if test -n "$ac_ct_RANLIB"; then
5498 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5499echo "${ECHO_T}$ac_ct_RANLIB" >&6
5500else
5501 echo "$as_me:$LINENO: result: no" >&5
5502echo "${ECHO_T}no" >&6
5503fi
5504
5505 RANLIB=$ac_ct_RANLIB
5506else
5507 RANLIB="$ac_cv_prog_RANLIB"
5508fi
5509
5510if test -n "$ac_tool_prefix"; then
5511 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5512set dummy ${ac_tool_prefix}strip; ac_word=$2
5513echo "$as_me:$LINENO: checking for $ac_word" >&5
5514echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5515if test "${ac_cv_prog_STRIP+set}" = set; then
5516 echo $ECHO_N "(cached) $ECHO_C" >&6
5517else
5518 if test -n "$STRIP"; then
5519 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5520else
5521as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5522for as_dir in $PATH
5523do
5524 IFS=$as_save_IFS
5525 test -z "$as_dir" && as_dir=.
5526 for ac_exec_ext in '' $ac_executable_extensions; do
5527 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5528 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5529 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5530 break 2
5531 fi
5532done
5533done
5534
5535fi
5536fi
5537STRIP=$ac_cv_prog_STRIP
5538if test -n "$STRIP"; then
5539 echo "$as_me:$LINENO: result: $STRIP" >&5
5540echo "${ECHO_T}$STRIP" >&6
5541else
5542 echo "$as_me:$LINENO: result: no" >&5
5543echo "${ECHO_T}no" >&6
5544fi
5545
5546fi
5547if test -z "$ac_cv_prog_STRIP"; then
5548 ac_ct_STRIP=$STRIP
5549 # Extract the first word of "strip", so it can be a program name with args.
5550set dummy strip; ac_word=$2
5551echo "$as_me:$LINENO: checking for $ac_word" >&5
5552echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5553if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5554 echo $ECHO_N "(cached) $ECHO_C" >&6
5555else
5556 if test -n "$ac_ct_STRIP"; then
5557 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5558else
5559as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5560for as_dir in $PATH
5561do
5562 IFS=$as_save_IFS
5563 test -z "$as_dir" && as_dir=.
5564 for ac_exec_ext in '' $ac_executable_extensions; do
5565 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5566 ac_cv_prog_ac_ct_STRIP="strip"
5567 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5568 break 2
5569 fi
5570done
5571done
5572
5573 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5574fi
5575fi
5576ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5577if test -n "$ac_ct_STRIP"; then
5578 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5579echo "${ECHO_T}$ac_ct_STRIP" >&6
5580else
5581 echo "$as_me:$LINENO: result: no" >&5
5582echo "${ECHO_T}no" >&6
5583fi
5584
5585 STRIP=$ac_ct_STRIP
5586else
5587 STRIP="$ac_cv_prog_STRIP"
5588fi
5589
5590
John Criswell7a73b802003-06-30 21:59:07 +00005591old_CC="$CC"
5592old_CFLAGS="$CFLAGS"
5593
5594# Set sane defaults for various variables
5595test -z "$AR" && AR=ar
5596test -z "$AR_FLAGS" && AR_FLAGS=cru
5597test -z "$AS" && AS=as
5598test -z "$CC" && CC=cc
John Criswell47fdd832003-07-14 16:52:07 +00005599test -z "$LTCC" && LTCC=$CC
John Criswell7a73b802003-06-30 21:59:07 +00005600test -z "$DLLTOOL" && DLLTOOL=dlltool
5601test -z "$LD" && LD=ld
5602test -z "$LN_S" && LN_S="ln -s"
5603test -z "$MAGIC_CMD" && MAGIC_CMD=file
5604test -z "$NM" && NM=nm
John Criswell47fdd832003-07-14 16:52:07 +00005605test -z "$SED" && SED=sed
John Criswell7a73b802003-06-30 21:59:07 +00005606test -z "$OBJDUMP" && OBJDUMP=objdump
5607test -z "$RANLIB" && RANLIB=:
5608test -z "$STRIP" && STRIP=:
5609test -z "$ac_objext" && ac_objext=o
5610
John Criswell7a73b802003-06-30 21:59:07 +00005611# Determine commands to create old-style static archives.
5612old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5613old_postinstall_cmds='chmod 644 $oldlib'
5614old_postuninstall_cmds=
5615
5616if test -n "$RANLIB"; then
5617 case $host_os in
5618 openbsd*)
5619 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5620 ;;
5621 *)
5622 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5623 ;;
5624 esac
5625 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5626fi
5627
John Criswell47fdd832003-07-14 16:52:07 +00005628# Only perform the check for file, if the check method requires it
5629case $deplibs_check_method in
5630file_magic*)
5631 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5632 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5633echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5634if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5635 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00005636else
John Criswell47fdd832003-07-14 16:52:07 +00005637 case $MAGIC_CMD in
5638[\\/*] | ?:[\\/]*)
5639 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5640 ;;
5641*)
5642 lt_save_MAGIC_CMD="$MAGIC_CMD"
5643 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5644 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5645 for ac_dir in $ac_dummy; do
5646 IFS="$lt_save_ifs"
5647 test -z "$ac_dir" && ac_dir=.
5648 if test -f $ac_dir/${ac_tool_prefix}file; then
5649 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5650 if test -n "$file_magic_test_file"; then
5651 case $deplibs_check_method in
5652 "file_magic "*)
5653 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5654 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5655 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5656 $EGREP "$file_magic_regex" > /dev/null; then
5657 :
5658 else
5659 cat <<EOF 1>&2
5660
5661*** Warning: the command libtool uses to detect shared libraries,
5662*** $file_magic_cmd, produces output that libtool cannot recognize.
5663*** The result is that libtool may fail to recognize shared libraries
5664*** as such. This will affect the creation of libtool libraries that
5665*** depend on shared libraries, but programs linked with such libtool
5666*** libraries will work regardless of this problem. Nevertheless, you
5667*** may want to report the problem to your system manager and/or to
5668*** bug-libtool@gnu.org
5669
5670EOF
5671 fi ;;
5672 esac
5673 fi
5674 break
5675 fi
5676 done
5677 IFS="$lt_save_ifs"
5678 MAGIC_CMD="$lt_save_MAGIC_CMD"
5679 ;;
5680esac
John Criswell7a73b802003-06-30 21:59:07 +00005681fi
John Criswell7a73b802003-06-30 21:59:07 +00005682
John Criswell47fdd832003-07-14 16:52:07 +00005683MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5684if test -n "$MAGIC_CMD"; then
5685 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5686echo "${ECHO_T}$MAGIC_CMD" >&6
5687else
5688 echo "$as_me:$LINENO: result: no" >&5
5689echo "${ECHO_T}no" >&6
5690fi
John Criswell7a73b802003-06-30 21:59:07 +00005691
John Criswell47fdd832003-07-14 16:52:07 +00005692if test -z "$lt_cv_path_MAGIC_CMD"; then
5693 if test -n "$ac_tool_prefix"; then
5694 echo "$as_me:$LINENO: checking for file" >&5
5695echo $ECHO_N "checking for file... $ECHO_C" >&6
5696if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5697 echo $ECHO_N "(cached) $ECHO_C" >&6
5698else
5699 case $MAGIC_CMD in
5700[\\/*] | ?:[\\/]*)
5701 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5702 ;;
5703*)
5704 lt_save_MAGIC_CMD="$MAGIC_CMD"
5705 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5706 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5707 for ac_dir in $ac_dummy; do
5708 IFS="$lt_save_ifs"
5709 test -z "$ac_dir" && ac_dir=.
5710 if test -f $ac_dir/file; then
5711 lt_cv_path_MAGIC_CMD="$ac_dir/file"
5712 if test -n "$file_magic_test_file"; then
5713 case $deplibs_check_method in
5714 "file_magic "*)
5715 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5716 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5717 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5718 $EGREP "$file_magic_regex" > /dev/null; then
5719 :
5720 else
5721 cat <<EOF 1>&2
5722
5723*** Warning: the command libtool uses to detect shared libraries,
5724*** $file_magic_cmd, produces output that libtool cannot recognize.
5725*** The result is that libtool may fail to recognize shared libraries
5726*** as such. This will affect the creation of libtool libraries that
5727*** depend on shared libraries, but programs linked with such libtool
5728*** libraries will work regardless of this problem. Nevertheless, you
5729*** may want to report the problem to your system manager and/or to
5730*** bug-libtool@gnu.org
5731
5732EOF
5733 fi ;;
5734 esac
5735 fi
5736 break
5737 fi
5738 done
5739 IFS="$lt_save_ifs"
5740 MAGIC_CMD="$lt_save_MAGIC_CMD"
5741 ;;
5742esac
5743fi
5744
5745MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5746if test -n "$MAGIC_CMD"; then
5747 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5748echo "${ECHO_T}$MAGIC_CMD" >&6
5749else
5750 echo "$as_me:$LINENO: result: no" >&5
5751echo "${ECHO_T}no" >&6
5752fi
5753
5754 else
5755 MAGIC_CMD=:
5756 fi
5757fi
5758
5759 fi
5760 ;;
5761esac
5762
5763enable_dlopen=no
5764enable_win32_dll=no
5765
5766# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5767if test "${enable_libtool_lock+set}" = set; then
5768 enableval="$enable_libtool_lock"
5769
5770fi;
5771test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5772
John Criswell7a73b802003-06-30 21:59:07 +00005773
5774# Check whether --with-pic or --without-pic was given.
5775if test "${with_pic+set}" = set; then
5776 withval="$with_pic"
5777 pic_mode="$withval"
5778else
5779 pic_mode=default
5780fi;
5781test -z "$pic_mode" && pic_mode=default
5782
John Criswell47fdd832003-07-14 16:52:07 +00005783# Use C for the default configuration in the libtool script
5784tagname=
5785lt_save_CC="$CC"
5786ac_ext=c
5787ac_cpp='$CPP $CPPFLAGS'
5788ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5789ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5790ac_compiler_gnu=$ac_cv_c_compiler_gnu
5791
5792
5793# Source file extension for C test sources.
5794ac_ext=c
5795
5796# Object file extension for compiled C test sources.
5797objext=o
5798objext=$objext
5799
5800# Code to be used in simple compile tests
5801lt_simple_compile_test_code="int some_variable = 0;\n"
5802
5803# Code to be used in simple link tests
5804lt_simple_link_test_code='int main(){return(0);}\n'
5805
5806
5807# If no C compiler was specified, use CC.
5808LTCC=${LTCC-"$CC"}
5809
5810# Allow CC to be a program name with arguments.
5811compiler=$CC
5812
5813
5814#
5815# Check for any special shared library compilation flags.
5816#
5817lt_prog_cc_shlib=
5818if test "$GCC" = no; then
5819 case $host_os in
5820 sco3.2v5*)
5821 lt_prog_cc_shlib='-belf'
5822 ;;
5823 esac
5824fi
5825if test -n "$lt_prog_cc_shlib"; then
5826 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
5827echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
5828 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
5829 else
5830 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5831echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5832 lt_cv_prog_cc_can_build_shared=no
5833 fi
5834fi
5835
5836
5837#
5838# Check to make sure the static flag actually works.
5839#
5840echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
5841echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
5842if test "${lt_prog_compiler_static_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00005843 echo $ECHO_N "(cached) $ECHO_C" >&6
5844else
John Criswell47fdd832003-07-14 16:52:07 +00005845 lt_prog_compiler_static_works=no
5846 save_LDFLAGS="$LDFLAGS"
5847 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
5848 printf "$lt_simple_link_test_code" > conftest.$ac_ext
5849 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
5850 # The compiler can only warn and ignore the option if not recognized
5851 # So say no if there are warnings
5852 if test -s conftest.err; then
5853 # Append any errors to the config.log.
5854 cat conftest.err 1>&5
5855 else
5856 lt_prog_compiler_static_works=yes
5857 fi
5858 fi
5859 $rm conftest*
5860 LDFLAGS="$save_LDFLAGS"
5861
5862fi
5863echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
5864echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
5865
5866if test x"$lt_prog_compiler_static_works" = xyes; then
5867 :
5868else
5869 lt_prog_compiler_static=
5870fi
5871
5872
5873
John Criswell47fdd832003-07-14 16:52:07 +00005874
5875lt_prog_compiler_no_builtin_flag=
5876
5877if test "$GCC" = yes; then
5878 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
5879
5880 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5881echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5882if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
5883 echo $ECHO_N "(cached) $ECHO_C" >&6
5884else
5885 lt_cv_prog_compiler_rtti_exceptions=no
5886 ac_outfile=conftest.$ac_objext
5887 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
5888 lt_compiler_flag="-fno-rtti -fno-exceptions"
5889 # Insert the option either (1) after the last *FLAGS variable, or
5890 # (2) before a word containing "conftest.", or (3) at the end.
5891 # Note that $ac_compile itself does not contain backslashes and begins
5892 # with a dollar sign (not a hyphen), so the echo should work correctly.
5893 # The option is referenced via a variable to avoid confusing sed.
5894 lt_compile=`echo "$ac_compile" | $SED \
5895 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
5896 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5897 -e 's:$: $lt_compiler_flag:'`
Misha Brukmandb84a092004-06-22 15:35:32 +00005898 (eval echo "\"\$as_me:5898: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +00005899 (eval "$lt_compile" 2>conftest.err)
5900 ac_status=$?
5901 cat conftest.err >&5
Misha Brukmandb84a092004-06-22 15:35:32 +00005902 echo "$as_me:5902: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00005903 if (exit $ac_status) && test -s "$ac_outfile"; then
5904 # The compiler can only warn and ignore the option if not recognized
5905 # So say no if there are warnings
5906 if test ! -s conftest.err; then
5907 lt_cv_prog_compiler_rtti_exceptions=yes
5908 fi
5909 fi
5910 $rm conftest*
5911
5912fi
5913echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
5914echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
5915
5916if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
5917 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
5918else
5919 :
5920fi
5921
5922fi
5923
5924lt_prog_compiler_wl=
5925lt_prog_compiler_pic=
5926lt_prog_compiler_static=
5927
5928echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5929echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00005930
5931 if test "$GCC" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +00005932 lt_prog_compiler_wl='-Wl,'
5933 lt_prog_compiler_static='-static'
John Criswell7a73b802003-06-30 21:59:07 +00005934
5935 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00005936 aix*)
5937 # All AIX code is PIC.
5938 if test "$host_cpu" = ia64; then
5939 # AIX 5 now supports IA64 processor
5940 lt_prog_compiler_static='-Bstatic'
5941 fi
John Criswell7a73b802003-06-30 21:59:07 +00005942 ;;
John Criswell47fdd832003-07-14 16:52:07 +00005943
John Criswell7a73b802003-06-30 21:59:07 +00005944 amigaos*)
5945 # FIXME: we need at least 68020 code to build shared libraries, but
5946 # adding the `-m68020' flag to GCC prevents building anything better,
5947 # like `-m68040'.
John Criswell47fdd832003-07-14 16:52:07 +00005948 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
John Criswell7a73b802003-06-30 21:59:07 +00005949 ;;
John Criswell47fdd832003-07-14 16:52:07 +00005950
5951 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
John Criswell7a73b802003-06-30 21:59:07 +00005952 # PIC is the default for these OSes.
5953 ;;
John Criswell47fdd832003-07-14 16:52:07 +00005954
5955 mingw* | pw32* | os2*)
5956 # This hack is so that the source file can tell whether it is being
5957 # built for inclusion in a dll (and should export symbols for example).
5958 lt_prog_compiler_pic='-DDLL_EXPORT'
5959 ;;
5960
John Criswell7a73b802003-06-30 21:59:07 +00005961 darwin* | rhapsody*)
5962 # PIC is the default on this platform
5963 # Common symbols not allowed in MH_DYLIB files
John Criswell47fdd832003-07-14 16:52:07 +00005964 lt_prog_compiler_pic='-fno-common'
John Criswell7a73b802003-06-30 21:59:07 +00005965 ;;
John Criswell47fdd832003-07-14 16:52:07 +00005966
5967 msdosdjgpp*)
5968 # Just because we use GCC doesn't mean we suddenly get shared libraries
5969 # on systems that don't support them.
5970 lt_prog_compiler_can_build_shared=no
5971 enable_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00005972 ;;
John Criswell47fdd832003-07-14 16:52:07 +00005973
John Criswell7a73b802003-06-30 21:59:07 +00005974 sysv4*MP*)
5975 if test -d /usr/nec; then
John Criswell47fdd832003-07-14 16:52:07 +00005976 lt_prog_compiler_pic=-Kconform_pic
John Criswell7a73b802003-06-30 21:59:07 +00005977 fi
5978 ;;
John Criswell47fdd832003-07-14 16:52:07 +00005979
5980 hpux*)
5981 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5982 # not for PA HP-UX.
5983 case "$host_cpu" in
5984 hppa*64*|ia64*)
5985 # +Z the default
5986 ;;
5987 *)
5988 lt_prog_compiler_pic='-fPIC'
5989 ;;
5990 esac
5991 ;;
5992
John Criswell7a73b802003-06-30 21:59:07 +00005993 *)
John Criswell47fdd832003-07-14 16:52:07 +00005994 lt_prog_compiler_pic='-fPIC'
John Criswell7a73b802003-06-30 21:59:07 +00005995 ;;
5996 esac
5997 else
John Criswell47fdd832003-07-14 16:52:07 +00005998 # PORTME Check for flag to pass linker flags through the system compiler.
John Criswell7a73b802003-06-30 21:59:07 +00005999 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00006000 aix*)
6001 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +00006002 if test "$host_cpu" = ia64; then
6003 # AIX 5 now supports IA64 processor
John Criswell47fdd832003-07-14 16:52:07 +00006004 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006005 else
John Criswell47fdd832003-07-14 16:52:07 +00006006 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
John Criswell7a73b802003-06-30 21:59:07 +00006007 fi
6008 ;;
6009
John Criswell47fdd832003-07-14 16:52:07 +00006010 mingw* | pw32* | os2*)
6011 # This hack is so that the source file can tell whether it is being
6012 # built for inclusion in a dll (and should export symbols for example).
6013 lt_prog_compiler_pic='-DDLL_EXPORT'
6014 ;;
6015
John Criswell7a73b802003-06-30 21:59:07 +00006016 hpux9* | hpux10* | hpux11*)
John Criswell47fdd832003-07-14 16:52:07 +00006017 lt_prog_compiler_wl='-Wl,'
6018 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6019 # not for PA HP-UX.
6020 case "$host_cpu" in
6021 hppa*64*|ia64*)
6022 # +Z the default
6023 ;;
6024 *)
6025 lt_prog_compiler_pic='+Z'
6026 ;;
6027 esac
6028 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6029 lt_prog_compiler_static='${wl}-a ${wl}archive'
John Criswell7a73b802003-06-30 21:59:07 +00006030 ;;
6031
John Criswell47fdd832003-07-14 16:52:07 +00006032 irix5* | irix6* | nonstopux*)
6033 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +00006034 # PIC (with -KPIC) is the default.
John Criswell47fdd832003-07-14 16:52:07 +00006035 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +00006036 ;;
6037
6038 newsos6)
John Criswell47fdd832003-07-14 16:52:07 +00006039 lt_prog_compiler_pic='-KPIC'
6040 lt_prog_compiler_static='-Bstatic'
6041 ;;
6042
6043 linux*)
6044 case $CC in
6045 icc|ecc)
6046 lt_prog_compiler_wl='-Wl,'
6047 lt_prog_compiler_pic='-KPIC'
6048 lt_prog_compiler_static='-static'
6049 ;;
6050 ccc)
6051 lt_prog_compiler_wl='-Wl,'
6052 # All Alpha code is PIC.
6053 lt_prog_compiler_static='-non_shared'
6054 ;;
6055 esac
John Criswell7a73b802003-06-30 21:59:07 +00006056 ;;
6057
6058 osf3* | osf4* | osf5*)
John Criswell47fdd832003-07-14 16:52:07 +00006059 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +00006060 # All OSF/1 code is PIC.
John Criswell47fdd832003-07-14 16:52:07 +00006061 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +00006062 ;;
6063
6064 sco3.2v5*)
John Criswell47fdd832003-07-14 16:52:07 +00006065 lt_prog_compiler_pic='-Kpic'
6066 lt_prog_compiler_static='-dn'
John Criswell7a73b802003-06-30 21:59:07 +00006067 ;;
6068
6069 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +00006070 lt_prog_compiler_wl='-Wl,'
6071 lt_prog_compiler_pic='-KPIC'
6072 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006073 ;;
6074
6075 sunos4*)
John Criswell47fdd832003-07-14 16:52:07 +00006076 lt_prog_compiler_wl='-Qoption ld '
6077 lt_prog_compiler_pic='-PIC'
6078 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006079 ;;
6080
6081 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
John Criswell47fdd832003-07-14 16:52:07 +00006082 lt_prog_compiler_wl='-Wl,'
6083 lt_prog_compiler_pic='-KPIC'
6084 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006085 ;;
6086
6087 sysv4*MP*)
6088 if test -d /usr/nec ;then
John Criswell47fdd832003-07-14 16:52:07 +00006089 lt_prog_compiler_pic='-Kconform_pic'
6090 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006091 fi
6092 ;;
6093
John Criswell47fdd832003-07-14 16:52:07 +00006094 uts4*)
6095 lt_prog_compiler_pic='-pic'
6096 lt_prog_compiler_static='-Bstatic'
6097 ;;
6098
John Criswell7a73b802003-06-30 21:59:07 +00006099 *)
John Criswell47fdd832003-07-14 16:52:07 +00006100 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00006101 ;;
6102 esac
6103 fi
6104
John Criswell47fdd832003-07-14 16:52:07 +00006105echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6106echo "${ECHO_T}$lt_prog_compiler_pic" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006107
John Criswell47fdd832003-07-14 16:52:07 +00006108#
6109# Check to make sure the PIC flag actually works.
6110#
6111if test -n "$lt_prog_compiler_pic"; then
6112 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6113echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6114if test "${lt_prog_compiler_pic_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00006115 echo $ECHO_N "(cached) $ECHO_C" >&6
6116else
John Criswell47fdd832003-07-14 16:52:07 +00006117 lt_prog_compiler_pic_works=no
6118 ac_outfile=conftest.$ac_objext
6119 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6120 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6121 # Insert the option either (1) after the last *FLAGS variable, or
6122 # (2) before a word containing "conftest.", or (3) at the end.
6123 # Note that $ac_compile itself does not contain backslashes and begins
6124 # with a dollar sign (not a hyphen), so the echo should work correctly.
6125 # The option is referenced via a variable to avoid confusing sed.
6126 lt_compile=`echo "$ac_compile" | $SED \
6127 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6128 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6129 -e 's:$: $lt_compiler_flag:'`
Misha Brukmandb84a092004-06-22 15:35:32 +00006130 (eval echo "\"\$as_me:6130: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +00006131 (eval "$lt_compile" 2>conftest.err)
6132 ac_status=$?
6133 cat conftest.err >&5
Misha Brukmandb84a092004-06-22 15:35:32 +00006134 echo "$as_me:6134: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00006135 if (exit $ac_status) && test -s "$ac_outfile"; then
6136 # The compiler can only warn and ignore the option if not recognized
6137 # So say no if there are warnings
6138 if test ! -s conftest.err; then
6139 lt_prog_compiler_pic_works=yes
6140 fi
6141 fi
6142 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +00006143
John Criswell47fdd832003-07-14 16:52:07 +00006144fi
6145echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6146echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006147
John Criswell47fdd832003-07-14 16:52:07 +00006148if test x"$lt_prog_compiler_pic_works" = xyes; then
6149 case $lt_prog_compiler_pic in
6150 "" | " "*) ;;
6151 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6152 esac
John Criswell7a73b802003-06-30 21:59:07 +00006153else
John Criswell47fdd832003-07-14 16:52:07 +00006154 lt_prog_compiler_pic=
6155 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00006156fi
6157
John Criswell7a73b802003-06-30 21:59:07 +00006158fi
John Criswell47fdd832003-07-14 16:52:07 +00006159case "$host_os" in
6160 # For platforms which do not support PIC, -DPIC is meaningless:
6161 *djgpp*)
6162 lt_prog_compiler_pic=
6163 ;;
6164 *)
6165 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6166 ;;
6167esac
John Criswell7a73b802003-06-30 21:59:07 +00006168
John Criswell7a73b802003-06-30 21:59:07 +00006169echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6170echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
John Criswell47fdd832003-07-14 16:52:07 +00006171if test "${lt_cv_prog_compiler_c_o+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00006172 echo $ECHO_N "(cached) $ECHO_C" >&6
6173else
John Criswell47fdd832003-07-14 16:52:07 +00006174 lt_cv_prog_compiler_c_o=no
6175 $rm -r conftest 2>/dev/null
6176 mkdir conftest
6177 cd conftest
6178 mkdir out
6179 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00006180
John Criswell47fdd832003-07-14 16:52:07 +00006181 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
6182 # that will create temporary files in the current directory regardless of
6183 # the output directory. Thus, making CWD read-only will cause this test
6184 # to fail, enabling locking or at least warning the user not to do parallel
6185 # builds.
6186 chmod -w .
6187
6188 lt_compiler_flag="-o out/conftest2.$ac_objext"
6189 # Insert the option either (1) after the last *FLAGS variable, or
6190 # (2) before a word containing "conftest.", or (3) at the end.
6191 # Note that $ac_compile itself does not contain backslashes and begins
6192 # with a dollar sign (not a hyphen), so the echo should work correctly.
6193 lt_compile=`echo "$ac_compile" | $SED \
6194 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6195 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6196 -e 's:$: $lt_compiler_flag:'`
Misha Brukmandb84a092004-06-22 15:35:32 +00006197 (eval echo "\"\$as_me:6197: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +00006198 (eval "$lt_compile" 2>out/conftest.err)
6199 ac_status=$?
6200 cat out/conftest.err >&5
Misha Brukmandb84a092004-06-22 15:35:32 +00006201 echo "$as_me:6201: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00006202 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6203 then
6204 # The compiler can only warn and ignore the option if not recognized
6205 # So say no if there are warnings
6206 if test ! -s out/conftest.err; then
6207 lt_cv_prog_compiler_c_o=yes
6208 fi
6209 fi
6210 chmod u+w .
6211 $rm conftest* out/*
6212 rmdir out
6213 cd ..
6214 rmdir conftest
6215 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +00006216
6217fi
John Criswell47fdd832003-07-14 16:52:07 +00006218echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6219echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006220
John Criswell7a73b802003-06-30 21:59:07 +00006221
John Criswell7a73b802003-06-30 21:59:07 +00006222hard_links="nottested"
John Criswell47fdd832003-07-14 16:52:07 +00006223if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
John Criswell7a73b802003-06-30 21:59:07 +00006224 # do not overwrite the value of need_locks provided by the user
6225 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6226echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6227 hard_links=yes
6228 $rm conftest*
6229 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6230 touch conftest.a
6231 ln conftest.a conftest.b 2>&5 || hard_links=no
6232 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6233 echo "$as_me:$LINENO: result: $hard_links" >&5
6234echo "${ECHO_T}$hard_links" >&6
6235 if test "$hard_links" = no; then
6236 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6237echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6238 need_locks=warn
6239 fi
6240else
6241 need_locks=no
6242fi
John Criswell7a73b802003-06-30 21:59:07 +00006243
John Criswell47fdd832003-07-14 16:52:07 +00006244echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6245echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6246
6247 runpath_var=
6248 allow_undefined_flag=
6249 enable_shared_with_static_runtimes=no
6250 archive_cmds=
6251 archive_expsym_cmds=
6252 old_archive_From_new_cmds=
6253 old_archive_from_expsyms_cmds=
6254 export_dynamic_flag_spec=
6255 whole_archive_flag_spec=
6256 thread_safe_flag_spec=
6257 hardcode_libdir_flag_spec=
6258 hardcode_libdir_flag_spec_ld=
6259 hardcode_libdir_separator=
6260 hardcode_direct=no
6261 hardcode_minus_L=no
6262 hardcode_shlibpath_var=unsupported
6263 link_all_deplibs=unknown
6264 hardcode_automatic=no
6265 module_cmds=
6266 module_expsym_cmds=
6267 always_export_symbols=no
6268 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6269 # include_expsyms should be a list of space-separated symbols to be *always*
6270 # included in the symbol list
6271 include_expsyms=
6272 # exclude_expsyms can be an extended regexp of symbols to exclude
6273 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6274 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6275 # as well as any symbol that contains `d'.
6276 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6277 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6278 # platforms (ab)use it in PIC code, but their linkers get confused if
6279 # the symbol is explicitly referenced. Since portable code cannot
6280 # rely on this symbol name, it's probably fine to never include it in
6281 # preloaded symbol tables.
6282 extract_expsyms_cmds=
6283
6284 case $host_os in
6285 cygwin* | mingw* | pw32*)
6286 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6287 # When not using gcc, we currently assume that we are using
6288 # Microsoft Visual C++.
6289 if test "$GCC" != yes; then
6290 with_gnu_ld=no
6291 fi
6292 ;;
6293 openbsd*)
6294 with_gnu_ld=no
6295 ;;
6296 esac
6297
6298 ld_shlibs=yes
6299 if test "$with_gnu_ld" = yes; then
6300 # If archive_cmds runs LD, not CC, wlarc should be empty
6301 wlarc='${wl}'
6302
6303 # See if GNU ld supports shared libraries.
6304 case $host_os in
6305 aix3* | aix4* | aix5*)
6306 # On AIX/PPC, the GNU linker is very broken
6307 if test "$host_cpu" != ia64; then
6308 ld_shlibs=no
6309 cat <<EOF 1>&2
6310
6311*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6312*** to be unable to reliably create shared libraries on AIX.
6313*** Therefore, libtool is disabling shared libraries support. If you
6314*** really care for shared libraries, you may want to modify your PATH
6315*** so that a non-GNU linker is found, and then restart.
6316
6317EOF
6318 fi
6319 ;;
6320
6321 amigaos*)
6322 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)'
6323 hardcode_libdir_flag_spec='-L$libdir'
6324 hardcode_minus_L=yes
6325
6326 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6327 # that the semantics of dynamic libraries on AmigaOS, at least up
6328 # to version 4, is to share data among multiple programs linked
6329 # with the same dynamic library. Since this doesn't match the
6330 # behavior of shared libraries on other platforms, we can't use
6331 # them.
6332 ld_shlibs=no
6333 ;;
6334
6335 beos*)
6336 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6337 allow_undefined_flag=unsupported
6338 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6339 # support --undefined. This deserves some investigation. FIXME
6340 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6341 else
6342 ld_shlibs=no
6343 fi
6344 ;;
6345
6346 cygwin* | mingw* | pw32*)
6347 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6348 # as there is no search path for DLLs.
6349 hardcode_libdir_flag_spec='-L$libdir'
6350 allow_undefined_flag=unsupported
6351 always_export_symbols=no
6352 enable_shared_with_static_runtimes=yes
6353 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6354
6355 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6356 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6357 # If the export-symbols file already is a .def file (1st line
6358 # is EXPORTS), use it as is; otherwise, prepend...
6359 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6360 cp $export_symbols $output_objdir/$soname.def;
6361 else
6362 echo EXPORTS > $output_objdir/$soname.def;
6363 cat $export_symbols >> $output_objdir/$soname.def;
6364 fi~
6365 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6366 else
6367 ld_shlibs=no
6368 fi
6369 ;;
6370
6371 netbsd*)
6372 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6373 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6374 wlarc=
6375 else
6376 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6377 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6378 fi
6379 ;;
6380
6381 solaris* | sysv5*)
6382 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6383 ld_shlibs=no
6384 cat <<EOF 1>&2
6385
6386*** Warning: The releases 2.8.* of the GNU linker cannot reliably
6387*** create shared libraries on Solaris systems. Therefore, libtool
6388*** is disabling shared libraries support. We urge you to upgrade GNU
6389*** binutils to release 2.9.1 or newer. Another option is to modify
6390*** your PATH or compiler configuration so that the native linker is
6391*** used, and then restart.
6392
6393EOF
6394 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6395 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6396 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6397 else
6398 ld_shlibs=no
6399 fi
6400 ;;
6401
6402 sunos4*)
6403 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6404 wlarc=
6405 hardcode_direct=yes
6406 hardcode_shlibpath_var=no
6407 ;;
6408
6409 *)
6410 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6411 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6412 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6413 else
6414 ld_shlibs=no
6415 fi
6416 ;;
6417 esac
6418
6419 if test "$ld_shlibs" = yes; then
6420 runpath_var=LD_RUN_PATH
6421 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6422 export_dynamic_flag_spec='${wl}--export-dynamic'
6423 # ancient GNU ld didn't support --whole-archive et. al.
6424 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6425 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6426 else
6427 whole_archive_flag_spec=
6428 fi
6429 fi
6430 else
6431 # PORTME fill in a description of your system's linker (not GNU ld)
6432 case $host_os in
6433 aix3*)
6434 allow_undefined_flag=unsupported
6435 always_export_symbols=yes
6436 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'
6437 # Note: this linker hardcodes the directories in LIBPATH if there
6438 # are no directories specified by -L.
6439 hardcode_minus_L=yes
6440 if test "$GCC" = yes && test -z "$link_static_flag"; then
6441 # Neither direct hardcoding nor static linking is supported with a
6442 # broken collect2.
6443 hardcode_direct=unsupported
6444 fi
6445 ;;
6446
6447 aix4* | aix5*)
6448 if test "$host_cpu" = ia64; then
6449 # On IA64, the linker does run time linking by default, so we don't
6450 # have to do anything special.
6451 aix_use_runtimelinking=no
6452 exp_sym_flag='-Bexport'
6453 no_entry_flag=""
6454 else
6455 # If we're using GNU nm, then we don't want the "-C" option.
6456 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6457 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6458 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'
6459 else
6460 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'
6461 fi
6462 aix_use_runtimelinking=no
6463
6464 # Test if we are trying to use run time linking or normal
6465 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6466 # need to do runtime linking.
6467 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6468 for ld_flag in $LDFLAGS; do
6469 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6470 aix_use_runtimelinking=yes
6471 break
6472 fi
6473 done
6474 esac
6475
6476 exp_sym_flag='-bexport'
6477 no_entry_flag='-bnoentry'
6478 fi
6479
6480 # When large executables or shared objects are built, AIX ld can
6481 # have problems creating the table of contents. If linking a library
6482 # or program results in "error TOC overflow" add -mminimal-toc to
6483 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6484 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6485
6486 archive_cmds=''
6487 hardcode_direct=yes
6488 hardcode_libdir_separator=':'
6489 link_all_deplibs=yes
6490
6491 if test "$GCC" = yes; then
6492 case $host_os in aix4.012|aix4.012.*)
6493 # We only want to do this on AIX 4.2 and lower, the check
6494 # below for broken collect2 doesn't work under 4.3+
6495 collect2name=`${CC} -print-prog-name=collect2`
6496 if test -f "$collect2name" && \
6497 strings "$collect2name" | grep resolve_lib_name >/dev/null
6498 then
6499 # We have reworked collect2
6500 hardcode_direct=yes
6501 else
6502 # We have old collect2
6503 hardcode_direct=unsupported
6504 # It fails to find uninstalled libraries when the uninstalled
6505 # path is not listed in the libpath. Setting hardcode_minus_L
6506 # to unsupported forces relinking
6507 hardcode_minus_L=yes
6508 hardcode_libdir_flag_spec='-L$libdir'
6509 hardcode_libdir_separator=
6510 fi
6511 esac
6512 shared_flag='-shared'
6513 else
6514 # not using gcc
6515 if test "$host_cpu" = ia64; then
6516 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6517 # chokes on -Wl,-G. The following line is correct:
6518 shared_flag='-G'
6519 else
6520 if test "$aix_use_runtimelinking" = yes; then
6521 shared_flag='${wl}-G'
6522 else
6523 shared_flag='${wl}-bM:SRE'
6524 fi
6525 fi
6526 fi
6527
6528 # It seems that -bexpall does not export symbols beginning with
6529 # underscore (_), so it is better to generate a list of symbols to export.
6530 always_export_symbols=yes
6531 if test "$aix_use_runtimelinking" = yes; then
6532 # Warning - without using the other runtime loading flags (-brtl),
6533 # -berok will link without error, but may produce a broken library.
6534 allow_undefined_flag='-berok'
6535 # Determine the default libpath from the value encoded in an empty executable.
6536 cat >conftest.$ac_ext <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00006537#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00006538/* confdefs.h. */
6539_ACEOF
6540cat confdefs.h >>conftest.$ac_ext
6541cat >>conftest.$ac_ext <<_ACEOF
6542/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006543
John Criswell7a73b802003-06-30 21:59:07 +00006544int
6545main ()
6546{
John Criswell47fdd832003-07-14 16:52:07 +00006547
John Criswell7a73b802003-06-30 21:59:07 +00006548 ;
6549 return 0;
6550}
6551_ACEOF
John Criswell47fdd832003-07-14 16:52:07 +00006552rm -f conftest.$ac_objext conftest$ac_exeext
6553if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6554 (eval $ac_link) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00006555 ac_status=$?
6556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6557 (exit $ac_status); } &&
John Criswell47fdd832003-07-14 16:52:07 +00006558 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00006559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6560 (eval $ac_try) 2>&5
6561 ac_status=$?
6562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6563 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00006564
John Criswell47fdd832003-07-14 16:52:07 +00006565aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6566}'`
6567# Check for a 64-bit object if we didn't find anything.
6568if 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; }
6569}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +00006570else
6571 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006572sed 's/^/| /' conftest.$ac_ext >&5
6573
John Criswell7a73b802003-06-30 21:59:07 +00006574fi
John Criswell47fdd832003-07-14 16:52:07 +00006575rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6576if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +00006577
John Criswell47fdd832003-07-14 16:52:07 +00006578 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6579 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"
6580 else
6581 if test "$host_cpu" = ia64; then
6582 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6583 allow_undefined_flag="-z nodefs"
6584 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"
6585 else
6586 # Determine the default libpath from the value encoded in an empty executable.
6587 cat >conftest.$ac_ext <<_ACEOF
6588#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00006589/* confdefs.h. */
6590_ACEOF
6591cat confdefs.h >>conftest.$ac_ext
6592cat >>conftest.$ac_ext <<_ACEOF
6593/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006594
John Criswell47fdd832003-07-14 16:52:07 +00006595int
6596main ()
6597{
John Criswell7a73b802003-06-30 21:59:07 +00006598
John Criswell47fdd832003-07-14 16:52:07 +00006599 ;
6600 return 0;
6601}
6602_ACEOF
6603rm -f conftest.$ac_objext conftest$ac_exeext
6604if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6605 (eval $ac_link) 2>&5
6606 ac_status=$?
6607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6608 (exit $ac_status); } &&
6609 { ac_try='test -s conftest$ac_exeext'
6610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6611 (eval $ac_try) 2>&5
6612 ac_status=$?
6613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6614 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00006615
John Criswell47fdd832003-07-14 16:52:07 +00006616aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6617}'`
6618# Check for a 64-bit object if we didn't find anything.
6619if 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; }
6620}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +00006621else
John Criswell47fdd832003-07-14 16:52:07 +00006622 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006623sed 's/^/| /' conftest.$ac_ext >&5
6624
John Criswell47fdd832003-07-14 16:52:07 +00006625fi
6626rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6627if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +00006628
John Criswell47fdd832003-07-14 16:52:07 +00006629 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6630 # Warning - without using the other run time loading flags,
6631 # -berok will link without error, but may produce a broken library.
6632 no_undefined_flag=' ${wl}-bernotok'
6633 allow_undefined_flag=' ${wl}-berok'
6634 # -bexpall does not export symbols beginning with underscore (_)
6635 always_export_symbols=yes
6636 # Exported symbols can be pulled into shared objects from archives
6637 whole_archive_flag_spec=' '
6638 archive_cmds_need_lc=yes
6639 # This is similar to how AIX traditionally builds it's shared libraries.
6640 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 +00006641 fi
6642 fi
John Criswell7a73b802003-06-30 21:59:07 +00006643 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006644
6645 amigaos*)
6646 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)'
6647 hardcode_libdir_flag_spec='-L$libdir'
6648 hardcode_minus_L=yes
6649 # see comment about different semantics on the GNU ld section
6650 ld_shlibs=no
John Criswell7a73b802003-06-30 21:59:07 +00006651 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006652
John Criswell47fdd832003-07-14 16:52:07 +00006653 bsdi4*)
6654 export_dynamic_flag_spec=-rdynamic
6655 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006656
John Criswell47fdd832003-07-14 16:52:07 +00006657 cygwin* | mingw* | pw32*)
6658 # When not using gcc, we currently assume that we are using
6659 # Microsoft Visual C++.
6660 # hardcode_libdir_flag_spec is actually meaningless, as there is
6661 # no search path for DLLs.
6662 hardcode_libdir_flag_spec=' '
6663 allow_undefined_flag=unsupported
6664 # Tell ltmain to make .lib files, not .a files.
6665 libext=lib
6666 # Tell ltmain to make .dll files, not .so files.
6667 shrext=".dll"
6668 # FIXME: Setting linknames here is a bad hack.
6669 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
6670 # The linker will automatically build a .lib file if we build a DLL.
6671 old_archive_From_new_cmds='true'
6672 # FIXME: Should let the user specify the lib program.
6673 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6674 fix_srcfile_path='`cygpath -w "$srcfile"`'
6675 enable_shared_with_static_runtimes=yes
6676 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006677
John Criswell47fdd832003-07-14 16:52:07 +00006678 darwin* | rhapsody*)
6679 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
6680 archive_cmds_need_lc=no
John Criswell7a73b802003-06-30 21:59:07 +00006681 case "$host_os" in
John Criswell47fdd832003-07-14 16:52:07 +00006682 rhapsody* | darwin1.[012])
6683 allow_undefined_flag='-undefined suppress'
6684 ;;
6685 *) # Darwin 1.3 on
6686 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
John Criswell7a73b802003-06-30 21:59:07 +00006687 ;;
6688 esac
John Criswell47fdd832003-07-14 16:52:07 +00006689 # FIXME: Relying on posixy $() will cause problems for
6690 # cross-compilation, but unfortunately the echo tests do not
6691 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
6692 # `"' quotes if we put them in here... so don't!
6693 lt_int_apple_cc_single_mod=no
6694 output_verbose_link_cmd='echo'
6695 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
6696 lt_int_apple_cc_single_mod=yes
6697 fi
6698 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6699 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6700 else
6701 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'
6702 fi
6703 module_cmds='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
6704 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6705 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6706 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}'
6707 else
6708 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}'
6709 fi
6710 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}'
6711 hardcode_direct=no
6712 hardcode_automatic=yes
6713 hardcode_shlibpath_var=unsupported
6714 whole_archive_flag_spec='-all_load $convenience'
6715 link_all_deplibs=yes
John Criswell7a73b802003-06-30 21:59:07 +00006716 fi
John Criswell47fdd832003-07-14 16:52:07 +00006717 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006718
John Criswell47fdd832003-07-14 16:52:07 +00006719 dgux*)
John Criswell7a73b802003-06-30 21:59:07 +00006720 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
John Criswell47fdd832003-07-14 16:52:07 +00006721 hardcode_libdir_flag_spec='-L$libdir'
6722 hardcode_shlibpath_var=no
6723 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006724
John Criswell47fdd832003-07-14 16:52:07 +00006725 freebsd1*)
6726 ld_shlibs=no
6727 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006728
John Criswell47fdd832003-07-14 16:52:07 +00006729 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6730 # support. Future versions do this automatically, but an explicit c++rt0.o
6731 # does not break anything, and helps significantly (at the cost of a little
6732 # extra space).
6733 freebsd2.2*)
6734 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6735 hardcode_libdir_flag_spec='-R$libdir'
6736 hardcode_direct=yes
6737 hardcode_shlibpath_var=no
6738 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006739
John Criswell47fdd832003-07-14 16:52:07 +00006740 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6741 freebsd2*)
6742 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6743 hardcode_direct=yes
6744 hardcode_minus_L=yes
6745 hardcode_shlibpath_var=no
6746 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006747
John Criswell47fdd832003-07-14 16:52:07 +00006748 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6749 freebsd*)
6750 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6751 hardcode_libdir_flag_spec='-R$libdir'
6752 hardcode_direct=yes
6753 hardcode_shlibpath_var=no
6754 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006755
John Criswell47fdd832003-07-14 16:52:07 +00006756 hpux9*)
6757 if test "$GCC" = yes; then
6758 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'
6759 else
6760 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'
6761 fi
6762 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6763 hardcode_libdir_separator=:
6764 hardcode_direct=yes
6765
6766 # hardcode_minus_L: Not really in the search PATH,
6767 # but as the default location of the library.
6768 hardcode_minus_L=yes
6769 export_dynamic_flag_spec='${wl}-E'
6770 ;;
6771
6772 hpux10* | hpux11*)
6773 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6774 case "$host_cpu" in
6775 hppa*64*|ia64*)
6776 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6777 ;;
6778 *)
6779 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6780 ;;
6781 esac
6782 else
6783 case "$host_cpu" in
6784 hppa*64*|ia64*)
6785 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
6786 ;;
6787 *)
6788 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
6789 ;;
6790 esac
6791 fi
6792 if test "$with_gnu_ld" = no; then
6793 case "$host_cpu" in
6794 hppa*64*)
6795 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6796 hardcode_libdir_flag_spec_ld='+b $libdir'
6797 hardcode_libdir_separator=:
6798 hardcode_direct=no
6799 hardcode_shlibpath_var=no
6800 ;;
6801 ia64*)
6802 hardcode_libdir_flag_spec='-L$libdir'
6803 hardcode_direct=no
6804 hardcode_shlibpath_var=no
6805
6806 # hardcode_minus_L: Not really in the search PATH,
6807 # but as the default location of the library.
6808 hardcode_minus_L=yes
6809 ;;
6810 *)
6811 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6812 hardcode_libdir_separator=:
6813 hardcode_direct=yes
6814 export_dynamic_flag_spec='${wl}-E'
6815
6816 # hardcode_minus_L: Not really in the search PATH,
6817 # but as the default location of the library.
6818 hardcode_minus_L=yes
6819 ;;
6820 esac
6821 fi
6822 ;;
6823
6824 irix5* | irix6* | nonstopux*)
6825 if test "$GCC" = yes; then
6826 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'
6827 else
6828 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'
6829 hardcode_libdir_flag_spec_ld='-rpath $libdir'
6830 fi
6831 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6832 hardcode_libdir_separator=:
6833 link_all_deplibs=yes
6834 ;;
6835
6836 netbsd*)
6837 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6838 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
6839 else
6840 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
6841 fi
6842 hardcode_libdir_flag_spec='-R$libdir'
6843 hardcode_direct=yes
6844 hardcode_shlibpath_var=no
6845 ;;
6846
6847 newsos6)
6848 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6849 hardcode_direct=yes
6850 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6851 hardcode_libdir_separator=:
6852 hardcode_shlibpath_var=no
6853 ;;
6854
6855 openbsd*)
6856 hardcode_direct=yes
6857 hardcode_shlibpath_var=no
6858 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6859 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6860 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6861 export_dynamic_flag_spec='${wl}-E'
6862 else
6863 case $host_os in
6864 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
6865 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6866 hardcode_libdir_flag_spec='-R$libdir'
6867 ;;
6868 *)
6869 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6870 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6871 ;;
6872 esac
6873 fi
6874 ;;
6875
6876 os2*)
6877 hardcode_libdir_flag_spec='-L$libdir'
6878 hardcode_minus_L=yes
6879 allow_undefined_flag=unsupported
6880 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'
6881 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6882 ;;
6883
6884 osf3*)
6885 if test "$GCC" = yes; then
6886 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6887 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'
6888 else
6889 allow_undefined_flag=' -expect_unresolved \*'
6890 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'
6891 fi
6892 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6893 hardcode_libdir_separator=:
6894 ;;
6895
6896 osf4* | osf5*) # as osf3* with the addition of -msym flag
6897 if test "$GCC" = yes; then
6898 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6899 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'
6900 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6901 else
6902 allow_undefined_flag=' -expect_unresolved \*'
6903 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'
6904 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6905 $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'
6906
6907 # Both c and cxx compiler support -rpath directly
6908 hardcode_libdir_flag_spec='-rpath $libdir'
6909 fi
6910 hardcode_libdir_separator=:
6911 ;;
6912
6913 sco3.2v5*)
John Criswell7a73b802003-06-30 21:59:07 +00006914 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6915 hardcode_shlibpath_var=no
John Criswell47fdd832003-07-14 16:52:07 +00006916 export_dynamic_flag_spec='${wl}-Bexport'
John Criswell7a73b802003-06-30 21:59:07 +00006917 runpath_var=LD_RUN_PATH
6918 hardcode_runpath_var=yes
John Criswell47fdd832003-07-14 16:52:07 +00006919 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006920
John Criswell47fdd832003-07-14 16:52:07 +00006921 solaris*)
6922 no_undefined_flag=' -z text'
6923 if test "$GCC" = yes; then
6924 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6925 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6926 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
6927 else
6928 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6929 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6930 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6931 fi
6932 hardcode_libdir_flag_spec='-R$libdir'
6933 hardcode_shlibpath_var=no
6934 case $host_os in
6935 solaris2.[0-5] | solaris2.[0-5].*) ;;
6936 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6937 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6938 esac
6939 link_all_deplibs=yes
6940 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006941
John Criswell47fdd832003-07-14 16:52:07 +00006942 sunos4*)
6943 if test "x$host_vendor" = xsequent; then
6944 # Use $CC to link under sequent, because it throws in some extra .o
6945 # files that make .init and .fini sections work.
6946 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6947 else
6948 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6949 fi
6950 hardcode_libdir_flag_spec='-L$libdir'
6951 hardcode_direct=yes
6952 hardcode_minus_L=yes
6953 hardcode_shlibpath_var=no
6954 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006955
John Criswell47fdd832003-07-14 16:52:07 +00006956 sysv4)
6957 case $host_vendor in
6958 sni)
6959 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6960 hardcode_direct=yes # is this really true???
6961 ;;
6962 siemens)
6963 ## LD is ld it makes a PLAMLIB
6964 ## CC just makes a GrossModule.
6965 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6966 reload_cmds='$CC -r -o $output$reload_objs'
6967 hardcode_direct=no
6968 ;;
6969 motorola)
6970 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6971 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6972 ;;
6973 esac
6974 runpath_var='LD_RUN_PATH'
6975 hardcode_shlibpath_var=no
6976 ;;
6977
6978 sysv4.3*)
6979 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6980 hardcode_shlibpath_var=no
6981 export_dynamic_flag_spec='-Bexport'
6982 ;;
6983
6984 sysv4*MP*)
6985 if test -d /usr/nec; then
6986 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6987 hardcode_shlibpath_var=no
6988 runpath_var=LD_RUN_PATH
6989 hardcode_runpath_var=yes
6990 ld_shlibs=yes
6991 fi
6992 ;;
6993
6994 sysv4.2uw2*)
6995 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6996 hardcode_direct=yes
6997 hardcode_minus_L=no
6998 hardcode_shlibpath_var=no
6999 hardcode_runpath_var=yes
7000 runpath_var=LD_RUN_PATH
7001 ;;
7002
7003 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7004 no_undefined_flag='${wl}-z ${wl}text'
7005 if test "$GCC" = yes; then
7006 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7007 else
7008 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7009 fi
7010 runpath_var='LD_RUN_PATH'
7011 hardcode_shlibpath_var=no
7012 ;;
7013
7014 sysv5*)
7015 no_undefined_flag=' -z text'
7016 # $CC -shared without GNU ld will not create a library from C++
7017 # object files and a static libstdc++, better avoid it by now
7018 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7019 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7020 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7021 hardcode_libdir_flag_spec=
7022 hardcode_shlibpath_var=no
7023 runpath_var='LD_RUN_PATH'
7024 ;;
7025
7026 uts4*)
7027 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7028 hardcode_libdir_flag_spec='-L$libdir'
7029 hardcode_shlibpath_var=no
7030 ;;
7031
7032 *)
7033 ld_shlibs=no
7034 ;;
7035 esac
7036 fi
7037
John Criswell7a73b802003-06-30 21:59:07 +00007038echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7039echo "${ECHO_T}$ld_shlibs" >&6
7040test "$ld_shlibs" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00007041
John Criswell47fdd832003-07-14 16:52:07 +00007042variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7043if test "$GCC" = yes; then
7044 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7045fi
7046
7047#
7048# Do we need to explicitly link libc?
7049#
7050case "x$archive_cmds_need_lc" in
7051x|xyes)
7052 # Assume -lc should be added
7053 archive_cmds_need_lc=yes
7054
7055 if test "$enable_shared" = yes && test "$GCC" = yes; then
7056 case $archive_cmds in
7057 *'~'*)
7058 # FIXME: we may have to deal with multi-command sequences.
7059 ;;
7060 '$CC '*)
7061 # Test whether the compiler implicitly links with -lc since on some
7062 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7063 # to ld, don't add -lc before -lgcc.
7064 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7065echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7066 $rm conftest*
7067 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7068
7069 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7070 (eval $ac_compile) 2>&5
7071 ac_status=$?
7072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7073 (exit $ac_status); } 2>conftest.err; then
7074 soname=conftest
7075 lib=conftest
7076 libobjs=conftest.$ac_objext
7077 deplibs=
7078 wl=$lt_prog_compiler_wl
7079 compiler_flags=-v
7080 linker_flags=-v
7081 verstring=
7082 output_objdir=.
7083 libname=conftest
7084 lt_save_allow_undefined_flag=$allow_undefined_flag
7085 allow_undefined_flag=
7086 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7087 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7088 ac_status=$?
7089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7090 (exit $ac_status); }
7091 then
7092 archive_cmds_need_lc=no
7093 else
7094 archive_cmds_need_lc=yes
7095 fi
7096 allow_undefined_flag=$lt_save_allow_undefined_flag
7097 else
7098 cat conftest.err 1>&5
7099 fi
7100 $rm conftest*
7101 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7102echo "${ECHO_T}$archive_cmds_need_lc" >&6
7103 ;;
7104 esac
7105 fi
7106 ;;
7107esac
7108
John Criswell7a73b802003-06-30 21:59:07 +00007109echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7110echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7111hardcode_action=
7112if test -n "$hardcode_libdir_flag_spec" || \
John Criswell47fdd832003-07-14 16:52:07 +00007113 test -n "$runpath_var " || \
7114 test "X$hardcode_automatic"="Xyes" ; then
John Criswell7a73b802003-06-30 21:59:07 +00007115
7116 # We can hardcode non-existant directories.
7117 if test "$hardcode_direct" != no &&
7118 # If the only mechanism to avoid hardcoding is shlibpath_var, we
7119 # have to relink, otherwise we might link with an installed library
7120 # when we should be linking with a yet-to-be-installed one
John Criswell47fdd832003-07-14 16:52:07 +00007121 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
John Criswell7a73b802003-06-30 21:59:07 +00007122 test "$hardcode_minus_L" != no; then
7123 # Linking always hardcodes the temporary library directory.
7124 hardcode_action=relink
7125 else
7126 # We can link without hardcoding, and we can hardcode nonexisting dirs.
7127 hardcode_action=immediate
7128 fi
7129else
7130 # We cannot hardcode anything, or else we can only hardcode existing
7131 # directories.
7132 hardcode_action=unsupported
7133fi
7134echo "$as_me:$LINENO: result: $hardcode_action" >&5
7135echo "${ECHO_T}$hardcode_action" >&6
John Criswell7a73b802003-06-30 21:59:07 +00007136
John Criswell47fdd832003-07-14 16:52:07 +00007137if test "$hardcode_action" = relink; then
7138 # Fast installation is not supported
7139 enable_fast_install=no
7140elif test "$shlibpath_overrides_runpath" = yes ||
7141 test "$enable_shared" = no; then
7142 # Fast installation is not necessary
7143 enable_fast_install=needless
7144fi
7145
John Criswell7a73b802003-06-30 21:59:07 +00007146striplib=
7147old_striplib=
7148echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7149echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7150if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7151 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7152 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7153 echo "$as_me:$LINENO: result: yes" >&5
7154echo "${ECHO_T}yes" >&6
7155else
John Criswell47fdd832003-07-14 16:52:07 +00007156# FIXME - insert some real tests, host_os isn't really good enough
7157 case $host_os in
7158 darwin*)
7159 if test -n "$STRIP" ; then
7160 striplib="$STRIP -x"
7161 echo "$as_me:$LINENO: result: yes" >&5
7162echo "${ECHO_T}yes" >&6
7163 else
John Criswell7a73b802003-06-30 21:59:07 +00007164 echo "$as_me:$LINENO: result: no" >&5
7165echo "${ECHO_T}no" >&6
7166fi
John Criswell47fdd832003-07-14 16:52:07 +00007167 ;;
7168 *)
7169 echo "$as_me:$LINENO: result: no" >&5
7170echo "${ECHO_T}no" >&6
7171 ;;
7172 esac
7173fi
John Criswell7a73b802003-06-30 21:59:07 +00007174
John Criswell7a73b802003-06-30 21:59:07 +00007175echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7176echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7177library_names_spec=
7178libname_spec='lib$name'
7179soname_spec=
John Criswell47fdd832003-07-14 16:52:07 +00007180shrext=".so"
John Criswell7a73b802003-06-30 21:59:07 +00007181postinstall_cmds=
7182postuninstall_cmds=
7183finish_cmds=
7184finish_eval=
7185shlibpath_var=
7186shlibpath_overrides_runpath=unknown
7187version_type=none
7188dynamic_linker="$host_os ld.so"
7189sys_lib_dlsearch_path_spec="/lib /usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +00007190if test "$GCC" = yes; then
7191 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7192 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7193 # if the path contains ";" then we assume it to be the separator
7194 # otherwise default to the standard path separator (i.e. ":") - it is
7195 # assumed that no part of a normal pathname contains ";" but that should
7196 # okay in the real world where ";" in dirpaths is itself problematic.
7197 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7198 else
7199 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7200 fi
7201else
7202 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7203fi
7204need_lib_prefix=unknown
7205hardcode_into_libs=no
7206
7207# when you set need_version to no, make sure it does not cause -set_version
7208# flags to be left without arguments
7209need_version=unknown
John Criswell7a73b802003-06-30 21:59:07 +00007210
7211case $host_os in
7212aix3*)
7213 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007214 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +00007215 shlibpath_var=LIBPATH
7216
John Criswell47fdd832003-07-14 16:52:07 +00007217 # AIX 3 has no versioning support, so we append a major version to the name.
7218 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007219 ;;
7220
7221aix4* | aix5*)
7222 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007223 need_lib_prefix=no
7224 need_version=no
7225 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +00007226 if test "$host_cpu" = ia64; then
7227 # AIX 5 supports IA64
John Criswell47fdd832003-07-14 16:52:07 +00007228 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007229 shlibpath_var=LD_LIBRARY_PATH
7230 else
7231 # With GCC up to 2.95.x, collect2 would create an import file
7232 # for dependence libraries. The import file would start with
7233 # the line `#! .'. This would cause the generated library to
7234 # depend on `.', always an invalid library. This was fixed in
7235 # development snapshots of GCC prior to 3.0.
7236 case $host_os in
7237 aix4 | aix4.[01] | aix4.[01].*)
John Criswell47fdd832003-07-14 16:52:07 +00007238 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7239 echo ' yes '
7240 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7241 :
7242 else
7243 can_build_shared=no
7244 fi
7245 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007246 esac
John Criswell47fdd832003-07-14 16:52:07 +00007247 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7248 # soname into executable. Probably we can add versioning support to
7249 # collect2, so additional links can be useful in future.
John Criswell7a73b802003-06-30 21:59:07 +00007250 if test "$aix_use_runtimelinking" = yes; then
7251 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7252 # instead of lib<name>.a to let people know that these are not
7253 # typical AIX shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +00007254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007255 else
7256 # We preserve .a as extension for shared libraries through AIX4.2
7257 # and later when we are not doing run time linking.
7258 library_names_spec='${libname}${release}.a $libname.a'
John Criswell47fdd832003-07-14 16:52:07 +00007259 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007260 fi
7261 shlibpath_var=LIBPATH
7262 fi
7263 ;;
7264
7265amigaos*)
7266 library_names_spec='$libname.ixlibrary $libname.a'
7267 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7268 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'
7269 ;;
7270
7271beos*)
John Criswell47fdd832003-07-14 16:52:07 +00007272 library_names_spec='${libname}${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007273 dynamic_linker="$host_os ld.so"
7274 shlibpath_var=LIBRARY_PATH
7275 ;;
7276
7277bsdi4*)
7278 version_type=linux
7279 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7281 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007282 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7283 shlibpath_var=LD_LIBRARY_PATH
7284 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7285 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
John Criswell7a73b802003-06-30 21:59:07 +00007286 # the default ld.so.conf also contains /usr/contrib/lib and
7287 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7288 # libtool to hard-code these into programs
7289 ;;
7290
7291cygwin* | mingw* | pw32*)
7292 version_type=windows
John Criswell47fdd832003-07-14 16:52:07 +00007293 shrext=".dll"
John Criswell7a73b802003-06-30 21:59:07 +00007294 need_version=no
7295 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +00007296
John Criswell7a73b802003-06-30 21:59:07 +00007297 case $GCC,$host_os in
John Criswell47fdd832003-07-14 16:52:07 +00007298 yes,cygwin* | yes,mingw* | yes,pw32*)
John Criswell7a73b802003-06-30 21:59:07 +00007299 library_names_spec='$libname.dll.a'
John Criswell47fdd832003-07-14 16:52:07 +00007300 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7301 postinstall_cmds='base_file=`basename \${file}`~
7302 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
John Criswell7a73b802003-06-30 21:59:07 +00007303 dldir=$destdir/`dirname \$dlpath`~
7304 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +00007305 $install_prog $dir/$dlname \$dldir/$dlname'
7306 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
John Criswell7a73b802003-06-30 21:59:07 +00007307 dlpath=$dir/\$dldll~
7308 $rm \$dlpath'
John Criswell47fdd832003-07-14 16:52:07 +00007309 shlibpath_overrides_runpath=yes
7310
7311 case $host_os in
7312 cygwin*)
7313 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7314 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7315 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
7316 ;;
7317 mingw*)
7318 # MinGW DLLs use traditional 'lib' prefix
7319 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7320 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7321 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7322 # It is most probably a Windows format PATH printed by
7323 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7324 # path with ; separators, and with drive letters. We can handle the
7325 # drive letters (cygwin fileutils understands them), so leave them,
7326 # especially as we might pass files found there to a mingw objdump,
7327 # which wouldn't understand a cygwinified path. Ahh.
7328 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7329 else
7330 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7331 fi
7332 ;;
7333 pw32*)
7334 # pw32 DLLs use 'pw' prefix rather than 'lib'
7335 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7336 ;;
7337 esac
John Criswell7a73b802003-06-30 21:59:07 +00007338 ;;
John Criswell47fdd832003-07-14 16:52:07 +00007339
John Criswell7a73b802003-06-30 21:59:07 +00007340 *)
John Criswell47fdd832003-07-14 16:52:07 +00007341 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
John Criswell7a73b802003-06-30 21:59:07 +00007342 ;;
7343 esac
7344 dynamic_linker='Win32 ld.exe'
7345 # FIXME: first we should search . and the directory the executable is in
7346 shlibpath_var=PATH
7347 ;;
7348
7349darwin* | rhapsody*)
7350 dynamic_linker="$host_os dyld"
7351 version_type=darwin
7352 need_lib_prefix=no
7353 need_version=no
7354 # FIXME: Relying on posixy $() will cause problems for
7355 # cross-compilation, but unfortunately the echo tests do not
7356 # yet detect zsh echo's removal of \ escapes.
John Criswell47fdd832003-07-14 16:52:07 +00007357 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7358 soname_spec='${libname}${release}${major}$shared_ext'
John Criswell7a73b802003-06-30 21:59:07 +00007359 shlibpath_overrides_runpath=yes
7360 shlibpath_var=DYLD_LIBRARY_PATH
John Criswell47fdd832003-07-14 16:52:07 +00007361 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
7362 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7363 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7364 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"`
7365 fi
7366 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7367 ;;
7368
7369dgux*)
7370 version_type=linux
7371 need_lib_prefix=no
7372 need_version=no
7373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7374 soname_spec='${libname}${release}${shared_ext}$major'
7375 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +00007376 ;;
7377
7378freebsd1*)
7379 dynamic_linker=no
7380 ;;
7381
7382freebsd*)
7383 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7384 version_type=freebsd-$objformat
7385 case $version_type in
7386 freebsd-elf*)
John Criswell47fdd832003-07-14 16:52:07 +00007387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007388 need_version=no
7389 need_lib_prefix=no
7390 ;;
7391 freebsd-*)
John Criswell47fdd832003-07-14 16:52:07 +00007392 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +00007393 need_version=yes
7394 ;;
7395 esac
7396 shlibpath_var=LD_LIBRARY_PATH
7397 case $host_os in
7398 freebsd2*)
7399 shlibpath_overrides_runpath=yes
7400 ;;
John Criswell47fdd832003-07-14 16:52:07 +00007401 freebsd3.01* | freebsdelf3.01*)
7402 shlibpath_overrides_runpath=yes
7403 hardcode_into_libs=yes
7404 ;;
7405 *) # from 3.2 on
John Criswell7a73b802003-06-30 21:59:07 +00007406 shlibpath_overrides_runpath=no
7407 hardcode_into_libs=yes
7408 ;;
7409 esac
7410 ;;
7411
7412gnu*)
7413 version_type=linux
7414 need_lib_prefix=no
7415 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7417 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007418 shlibpath_var=LD_LIBRARY_PATH
7419 hardcode_into_libs=yes
7420 ;;
7421
7422hpux9* | hpux10* | hpux11*)
7423 # Give a soname corresponding to the major version so that dld.sl refuses to
7424 # link against other versions.
John Criswell7a73b802003-06-30 21:59:07 +00007425 version_type=sunos
7426 need_lib_prefix=no
7427 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007428 case "$host_cpu" in
7429 ia64*)
7430 shrext='.so'
7431 hardcode_into_libs=yes
7432 dynamic_linker="$host_os dld.so"
7433 shlibpath_var=LD_LIBRARY_PATH
7434 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7435 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7436 soname_spec='${libname}${release}${shared_ext}$major'
7437 if test "X$HPUX_IA64_MODE" = X32; then
7438 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7439 else
7440 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7441 fi
7442 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7443 ;;
7444 hppa*64*)
7445 shrext='.sl'
7446 hardcode_into_libs=yes
7447 dynamic_linker="$host_os dld.sl"
7448 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7449 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7451 soname_spec='${libname}${release}${shared_ext}$major'
7452 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7453 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7454 ;;
7455 *)
7456 shrext='.sl'
7457 dynamic_linker="$host_os dld.sl"
7458 shlibpath_var=SHLIB_PATH
7459 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7461 soname_spec='${libname}${release}${shared_ext}$major'
7462 ;;
7463 esac
John Criswell7a73b802003-06-30 21:59:07 +00007464 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7465 postinstall_cmds='chmod 555 $lib'
7466 ;;
7467
John Criswell47fdd832003-07-14 16:52:07 +00007468irix5* | irix6* | nonstopux*)
7469 case $host_os in
7470 nonstopux*) version_type=nonstopux ;;
7471 *)
7472 if test "$lt_cv_prog_gnu_ld" = yes; then
7473 version_type=linux
7474 else
7475 version_type=irix
7476 fi ;;
7477 esac
John Criswell7a73b802003-06-30 21:59:07 +00007478 need_lib_prefix=no
7479 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007480 soname_spec='${libname}${release}${shared_ext}$major'
7481 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 +00007482 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00007483 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +00007484 libsuff= shlibsuff=
7485 ;;
7486 *)
7487 case $LD in # libtool.m4 will add one of these switches to LD
John Criswell47fdd832003-07-14 16:52:07 +00007488 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7489 libsuff= shlibsuff= libmagic=32-bit;;
7490 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7491 libsuff=32 shlibsuff=N32 libmagic=N32;;
7492 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7493 libsuff=64 shlibsuff=64 libmagic=64-bit;;
John Criswell7a73b802003-06-30 21:59:07 +00007494 *) libsuff= shlibsuff= libmagic=never-match;;
7495 esac
7496 ;;
7497 esac
7498 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7499 shlibpath_overrides_runpath=no
7500 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7501 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
John Criswell47fdd832003-07-14 16:52:07 +00007502 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +00007503 ;;
7504
7505# No shared lib support for Linux oldld, aout, or coff.
John Criswell47fdd832003-07-14 16:52:07 +00007506linux*oldld* | linux*aout* | linux*coff*)
John Criswell7a73b802003-06-30 21:59:07 +00007507 dynamic_linker=no
7508 ;;
7509
7510# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +00007511linux*)
John Criswell7a73b802003-06-30 21:59:07 +00007512 version_type=linux
7513 need_lib_prefix=no
7514 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007515 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7516 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007517 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7518 shlibpath_var=LD_LIBRARY_PATH
7519 shlibpath_overrides_runpath=no
7520 # This implies no fast_install, which is unacceptable.
7521 # Some rework will be needed to allow for fast_install
7522 # before this can be enabled.
7523 hardcode_into_libs=yes
7524
7525 # We used to test for /lib/ld.so.1 and disable shared libraries on
7526 # powerpc, because MkLinux only supported shared libraries with the
7527 # GNU dynamic linker. Since this was broken with cross compilers,
7528 # most powerpc-linux boxes support dynamic linking these days and
7529 # people can always --disable-shared, the test was removed, and we
7530 # assume the GNU/Linux dynamic linker is in use.
7531 dynamic_linker='GNU/Linux ld.so'
7532 ;;
7533
7534netbsd*)
7535 version_type=sunos
7536 need_lib_prefix=no
7537 need_version=no
7538 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +00007539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +00007540 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7541 dynamic_linker='NetBSD (a.out) ld.so'
7542 else
John Criswell47fdd832003-07-14 16:52:07 +00007543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
7544 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007545 dynamic_linker='NetBSD ld.elf_so'
7546 fi
7547 shlibpath_var=LD_LIBRARY_PATH
7548 shlibpath_overrides_runpath=yes
7549 hardcode_into_libs=yes
7550 ;;
7551
7552newsos6)
7553 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7555 shlibpath_var=LD_LIBRARY_PATH
7556 shlibpath_overrides_runpath=yes
7557 ;;
7558
7559nto-qnx)
7560 version_type=linux
7561 need_lib_prefix=no
7562 need_version=no
7563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7564 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007565 shlibpath_var=LD_LIBRARY_PATH
7566 shlibpath_overrides_runpath=yes
7567 ;;
7568
7569openbsd*)
7570 version_type=sunos
7571 need_lib_prefix=no
7572 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007573 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7574 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7575 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +00007576 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 +00007577 case $host_os in
7578 openbsd2.[89] | openbsd2.[89].*)
7579 shlibpath_overrides_runpath=no
7580 ;;
7581 *)
7582 shlibpath_overrides_runpath=yes
7583 ;;
7584 esac
John Criswell7a73b802003-06-30 21:59:07 +00007585 else
7586 shlibpath_overrides_runpath=yes
7587 fi
John Criswell7a73b802003-06-30 21:59:07 +00007588 ;;
7589
7590os2*)
7591 libname_spec='$name'
John Criswell47fdd832003-07-14 16:52:07 +00007592 shrext=".dll"
John Criswell7a73b802003-06-30 21:59:07 +00007593 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +00007594 library_names_spec='$libname${shared_ext} $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +00007595 dynamic_linker='OS/2 ld.exe'
7596 shlibpath_var=LIBPATH
7597 ;;
7598
7599osf3* | osf4* | osf5*)
7600 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +00007601 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +00007602 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007603 soname_spec='${libname}${release}${shared_ext}$major'
7604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007605 shlibpath_var=LD_LIBRARY_PATH
7606 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7607 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7608 ;;
7609
7610sco3.2v5*)
7611 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +00007612 soname_spec='${libname}${release}${shared_ext}$major'
7613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007614 shlibpath_var=LD_LIBRARY_PATH
7615 ;;
7616
7617solaris*)
7618 version_type=linux
7619 need_lib_prefix=no
7620 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7622 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007623 shlibpath_var=LD_LIBRARY_PATH
7624 shlibpath_overrides_runpath=yes
7625 hardcode_into_libs=yes
7626 # ldd complains unless libraries are executable
7627 postinstall_cmds='chmod +x $lib'
7628 ;;
7629
7630sunos4*)
7631 version_type=sunos
John Criswell47fdd832003-07-14 16:52:07 +00007632 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +00007633 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7634 shlibpath_var=LD_LIBRARY_PATH
7635 shlibpath_overrides_runpath=yes
7636 if test "$with_gnu_ld" = yes; then
7637 need_lib_prefix=no
7638 fi
7639 need_version=yes
7640 ;;
7641
7642sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7643 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7645 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007646 shlibpath_var=LD_LIBRARY_PATH
7647 case $host_vendor in
7648 sni)
7649 shlibpath_overrides_runpath=no
John Criswell47fdd832003-07-14 16:52:07 +00007650 need_lib_prefix=no
7651 export_dynamic_flag_spec='${wl}-Blargedynsym'
7652 runpath_var=LD_RUN_PATH
7653 ;;
7654 siemens)
7655 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +00007656 ;;
7657 motorola)
7658 need_lib_prefix=no
7659 need_version=no
7660 shlibpath_overrides_runpath=no
7661 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7662 ;;
7663 esac
7664 ;;
7665
John Criswell7a73b802003-06-30 21:59:07 +00007666sysv4*MP*)
7667 if test -d /usr/nec ;then
7668 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007669 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7670 soname_spec='$libname${shared_ext}.$major'
John Criswell7a73b802003-06-30 21:59:07 +00007671 shlibpath_var=LD_LIBRARY_PATH
7672 fi
7673 ;;
7674
John Criswell47fdd832003-07-14 16:52:07 +00007675uts4*)
7676 version_type=linux
7677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7678 soname_spec='${libname}${release}${shared_ext}$major'
7679 shlibpath_var=LD_LIBRARY_PATH
7680 ;;
7681
John Criswell7a73b802003-06-30 21:59:07 +00007682*)
7683 dynamic_linker=no
7684 ;;
7685esac
7686echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7687echo "${ECHO_T}$dynamic_linker" >&6
7688test "$dynamic_linker" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00007689
7690if test "x$enable_dlopen" != xyes; then
7691 enable_dlopen=unknown
7692 enable_dlopen_self=unknown
7693 enable_dlopen_self_static=unknown
7694else
7695 lt_cv_dlopen=no
7696 lt_cv_dlopen_libs=
7697
7698 case $host_os in
7699 beos*)
7700 lt_cv_dlopen="load_add_on"
7701 lt_cv_dlopen_libs=
7702 lt_cv_dlopen_self=yes
7703 ;;
7704
John Criswell47fdd832003-07-14 16:52:07 +00007705 mingw* | pw32*)
John Criswell7a73b802003-06-30 21:59:07 +00007706 lt_cv_dlopen="LoadLibrary"
7707 lt_cv_dlopen_libs=
7708 ;;
7709
John Criswell47fdd832003-07-14 16:52:07 +00007710 cygwin*)
7711 lt_cv_dlopen="dlopen"
7712 lt_cv_dlopen_libs=
7713 ;;
7714
7715 darwin*)
7716 # if libdl is installed we need to link against it
7717 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7718echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7719if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7720 echo $ECHO_N "(cached) $ECHO_C" >&6
7721else
7722 ac_check_lib_save_LIBS=$LIBS
7723LIBS="-ldl $LIBS"
7724cat >conftest.$ac_ext <<_ACEOF
7725#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00007726/* confdefs.h. */
7727_ACEOF
7728cat confdefs.h >>conftest.$ac_ext
7729cat >>conftest.$ac_ext <<_ACEOF
7730/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00007731
7732/* Override any gcc2 internal prototype to avoid an error. */
7733#ifdef __cplusplus
7734extern "C"
7735#endif
7736/* We use char because int might match the return type of a gcc2
7737 builtin and then its argument prototype would still apply. */
7738char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +00007739int
7740main ()
7741{
7742dlopen ();
7743 ;
7744 return 0;
7745}
7746_ACEOF
7747rm -f conftest.$ac_objext conftest$ac_exeext
7748if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7749 (eval $ac_link) 2>&5
7750 ac_status=$?
7751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7752 (exit $ac_status); } &&
7753 { ac_try='test -s conftest$ac_exeext'
7754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7755 (eval $ac_try) 2>&5
7756 ac_status=$?
7757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7758 (exit $ac_status); }; }; then
7759 ac_cv_lib_dl_dlopen=yes
7760else
7761 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00007762sed 's/^/| /' conftest.$ac_ext >&5
7763
John Criswell47fdd832003-07-14 16:52:07 +00007764ac_cv_lib_dl_dlopen=no
7765fi
7766rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7767LIBS=$ac_check_lib_save_LIBS
7768fi
7769echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7770echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7771if test $ac_cv_lib_dl_dlopen = yes; then
7772 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7773else
7774
7775 lt_cv_dlopen="dyld"
7776 lt_cv_dlopen_libs=
7777 lt_cv_dlopen_self=yes
7778
7779fi
7780
7781 ;;
7782
John Criswell7a73b802003-06-30 21:59:07 +00007783 *)
7784 echo "$as_me:$LINENO: checking for shl_load" >&5
7785echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7786if test "${ac_cv_func_shl_load+set}" = set; then
7787 echo $ECHO_N "(cached) $ECHO_C" >&6
7788else
7789 cat >conftest.$ac_ext <<_ACEOF
7790#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00007791/* confdefs.h. */
7792_ACEOF
7793cat confdefs.h >>conftest.$ac_ext
7794cat >>conftest.$ac_ext <<_ACEOF
7795/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00007796/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +00007797 which can conflict with char shl_load (); below.
7798 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7799 <limits.h> exists even on freestanding compilers. */
7800#ifdef __STDC__
7801# include <limits.h>
7802#else
7803# include <assert.h>
7804#endif
John Criswell7a73b802003-06-30 21:59:07 +00007805/* Override any gcc2 internal prototype to avoid an error. */
7806#ifdef __cplusplus
7807extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +00007808{
John Criswell7a73b802003-06-30 21:59:07 +00007809#endif
7810/* We use char because int might match the return type of a gcc2
7811 builtin and then its argument prototype would still apply. */
7812char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +00007813/* The GNU C library defines this for functions which it implements
7814 to always fail with ENOSYS. Some functions are actually named
7815 something starting with __ and the normal name is an alias. */
7816#if defined (__stub_shl_load) || defined (__stub___shl_load)
7817choke me
7818#else
John Criswell0c38eaf2003-09-10 15:17:25 +00007819char (*f) () = shl_load;
7820#endif
7821#ifdef __cplusplus
7822}
John Criswell7a73b802003-06-30 21:59:07 +00007823#endif
7824
John Criswell0c38eaf2003-09-10 15:17:25 +00007825int
7826main ()
7827{
7828return f != shl_load;
John Criswell7a73b802003-06-30 21:59:07 +00007829 ;
7830 return 0;
7831}
7832_ACEOF
7833rm -f conftest.$ac_objext conftest$ac_exeext
7834if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7835 (eval $ac_link) 2>&5
7836 ac_status=$?
7837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7838 (exit $ac_status); } &&
7839 { ac_try='test -s conftest$ac_exeext'
7840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7841 (eval $ac_try) 2>&5
7842 ac_status=$?
7843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7844 (exit $ac_status); }; }; then
7845 ac_cv_func_shl_load=yes
7846else
7847 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00007848sed 's/^/| /' conftest.$ac_ext >&5
7849
John Criswell7a73b802003-06-30 21:59:07 +00007850ac_cv_func_shl_load=no
7851fi
7852rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7853fi
7854echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7855echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7856if test $ac_cv_func_shl_load = yes; then
7857 lt_cv_dlopen="shl_load"
7858else
7859 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7860echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7861if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7862 echo $ECHO_N "(cached) $ECHO_C" >&6
7863else
7864 ac_check_lib_save_LIBS=$LIBS
7865LIBS="-ldld $LIBS"
7866cat >conftest.$ac_ext <<_ACEOF
7867#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00007868/* confdefs.h. */
7869_ACEOF
7870cat confdefs.h >>conftest.$ac_ext
7871cat >>conftest.$ac_ext <<_ACEOF
7872/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00007873
7874/* Override any gcc2 internal prototype to avoid an error. */
7875#ifdef __cplusplus
7876extern "C"
7877#endif
7878/* We use char because int might match the return type of a gcc2
7879 builtin and then its argument prototype would still apply. */
7880char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +00007881int
7882main ()
7883{
7884shl_load ();
7885 ;
7886 return 0;
7887}
7888_ACEOF
7889rm -f conftest.$ac_objext conftest$ac_exeext
7890if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7891 (eval $ac_link) 2>&5
7892 ac_status=$?
7893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7894 (exit $ac_status); } &&
7895 { ac_try='test -s conftest$ac_exeext'
7896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7897 (eval $ac_try) 2>&5
7898 ac_status=$?
7899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7900 (exit $ac_status); }; }; then
7901 ac_cv_lib_dld_shl_load=yes
7902else
7903 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00007904sed 's/^/| /' conftest.$ac_ext >&5
7905
John Criswell7a73b802003-06-30 21:59:07 +00007906ac_cv_lib_dld_shl_load=no
7907fi
7908rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7909LIBS=$ac_check_lib_save_LIBS
7910fi
7911echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7912echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7913if test $ac_cv_lib_dld_shl_load = yes; then
7914 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
7915else
7916 echo "$as_me:$LINENO: checking for dlopen" >&5
7917echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
7918if test "${ac_cv_func_dlopen+set}" = set; then
7919 echo $ECHO_N "(cached) $ECHO_C" >&6
7920else
7921 cat >conftest.$ac_ext <<_ACEOF
7922#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00007923/* confdefs.h. */
7924_ACEOF
7925cat confdefs.h >>conftest.$ac_ext
7926cat >>conftest.$ac_ext <<_ACEOF
7927/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00007928/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +00007929 which can conflict with char dlopen (); below.
7930 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7931 <limits.h> exists even on freestanding compilers. */
7932#ifdef __STDC__
7933# include <limits.h>
7934#else
7935# include <assert.h>
7936#endif
John Criswell7a73b802003-06-30 21:59:07 +00007937/* Override any gcc2 internal prototype to avoid an error. */
7938#ifdef __cplusplus
7939extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +00007940{
John Criswell7a73b802003-06-30 21:59:07 +00007941#endif
7942/* We use char because int might match the return type of a gcc2
7943 builtin and then its argument prototype would still apply. */
7944char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +00007945/* The GNU C library defines this for functions which it implements
7946 to always fail with ENOSYS. Some functions are actually named
7947 something starting with __ and the normal name is an alias. */
7948#if defined (__stub_dlopen) || defined (__stub___dlopen)
7949choke me
7950#else
John Criswell0c38eaf2003-09-10 15:17:25 +00007951char (*f) () = dlopen;
7952#endif
7953#ifdef __cplusplus
7954}
John Criswell7a73b802003-06-30 21:59:07 +00007955#endif
7956
John Criswell0c38eaf2003-09-10 15:17:25 +00007957int
7958main ()
7959{
7960return f != dlopen;
John Criswell7a73b802003-06-30 21:59:07 +00007961 ;
7962 return 0;
7963}
7964_ACEOF
7965rm -f conftest.$ac_objext conftest$ac_exeext
7966if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7967 (eval $ac_link) 2>&5
7968 ac_status=$?
7969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7970 (exit $ac_status); } &&
7971 { ac_try='test -s conftest$ac_exeext'
7972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7973 (eval $ac_try) 2>&5
7974 ac_status=$?
7975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7976 (exit $ac_status); }; }; then
7977 ac_cv_func_dlopen=yes
7978else
7979 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00007980sed 's/^/| /' conftest.$ac_ext >&5
7981
John Criswell7a73b802003-06-30 21:59:07 +00007982ac_cv_func_dlopen=no
7983fi
7984rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7985fi
7986echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
7987echo "${ECHO_T}$ac_cv_func_dlopen" >&6
7988if test $ac_cv_func_dlopen = yes; then
7989 lt_cv_dlopen="dlopen"
7990else
7991 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7992echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7993if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7994 echo $ECHO_N "(cached) $ECHO_C" >&6
7995else
7996 ac_check_lib_save_LIBS=$LIBS
7997LIBS="-ldl $LIBS"
7998cat >conftest.$ac_ext <<_ACEOF
7999#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008000/* confdefs.h. */
8001_ACEOF
8002cat confdefs.h >>conftest.$ac_ext
8003cat >>conftest.$ac_ext <<_ACEOF
8004/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008005
8006/* Override any gcc2 internal prototype to avoid an error. */
8007#ifdef __cplusplus
8008extern "C"
8009#endif
8010/* We use char because int might match the return type of a gcc2
8011 builtin and then its argument prototype would still apply. */
8012char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +00008013int
8014main ()
8015{
8016dlopen ();
8017 ;
8018 return 0;
8019}
8020_ACEOF
8021rm -f conftest.$ac_objext conftest$ac_exeext
8022if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8023 (eval $ac_link) 2>&5
8024 ac_status=$?
8025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8026 (exit $ac_status); } &&
8027 { ac_try='test -s conftest$ac_exeext'
8028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8029 (eval $ac_try) 2>&5
8030 ac_status=$?
8031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8032 (exit $ac_status); }; }; then
8033 ac_cv_lib_dl_dlopen=yes
8034else
8035 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008036sed 's/^/| /' conftest.$ac_ext >&5
8037
John Criswell7a73b802003-06-30 21:59:07 +00008038ac_cv_lib_dl_dlopen=no
8039fi
8040rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8041LIBS=$ac_check_lib_save_LIBS
8042fi
8043echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8044echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8045if test $ac_cv_lib_dl_dlopen = yes; then
8046 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8047else
8048 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8049echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8050if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8051 echo $ECHO_N "(cached) $ECHO_C" >&6
8052else
8053 ac_check_lib_save_LIBS=$LIBS
8054LIBS="-lsvld $LIBS"
8055cat >conftest.$ac_ext <<_ACEOF
8056#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008057/* confdefs.h. */
8058_ACEOF
8059cat confdefs.h >>conftest.$ac_ext
8060cat >>conftest.$ac_ext <<_ACEOF
8061/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008062
8063/* Override any gcc2 internal prototype to avoid an error. */
8064#ifdef __cplusplus
8065extern "C"
8066#endif
8067/* We use char because int might match the return type of a gcc2
8068 builtin and then its argument prototype would still apply. */
8069char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +00008070int
8071main ()
8072{
8073dlopen ();
8074 ;
8075 return 0;
8076}
8077_ACEOF
8078rm -f conftest.$ac_objext conftest$ac_exeext
8079if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8080 (eval $ac_link) 2>&5
8081 ac_status=$?
8082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8083 (exit $ac_status); } &&
8084 { ac_try='test -s conftest$ac_exeext'
8085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8086 (eval $ac_try) 2>&5
8087 ac_status=$?
8088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8089 (exit $ac_status); }; }; then
8090 ac_cv_lib_svld_dlopen=yes
8091else
8092 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008093sed 's/^/| /' conftest.$ac_ext >&5
8094
John Criswell7a73b802003-06-30 21:59:07 +00008095ac_cv_lib_svld_dlopen=no
8096fi
8097rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8098LIBS=$ac_check_lib_save_LIBS
8099fi
8100echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8101echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8102if test $ac_cv_lib_svld_dlopen = yes; then
8103 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8104else
8105 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8106echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8107if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8108 echo $ECHO_N "(cached) $ECHO_C" >&6
8109else
8110 ac_check_lib_save_LIBS=$LIBS
8111LIBS="-ldld $LIBS"
8112cat >conftest.$ac_ext <<_ACEOF
8113#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008114/* confdefs.h. */
8115_ACEOF
8116cat confdefs.h >>conftest.$ac_ext
8117cat >>conftest.$ac_ext <<_ACEOF
8118/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008119
8120/* Override any gcc2 internal prototype to avoid an error. */
8121#ifdef __cplusplus
8122extern "C"
8123#endif
8124/* We use char because int might match the return type of a gcc2
8125 builtin and then its argument prototype would still apply. */
8126char dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +00008127int
8128main ()
8129{
8130dld_link ();
8131 ;
8132 return 0;
8133}
8134_ACEOF
8135rm -f conftest.$ac_objext conftest$ac_exeext
8136if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8137 (eval $ac_link) 2>&5
8138 ac_status=$?
8139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8140 (exit $ac_status); } &&
8141 { ac_try='test -s conftest$ac_exeext'
8142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8143 (eval $ac_try) 2>&5
8144 ac_status=$?
8145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8146 (exit $ac_status); }; }; then
8147 ac_cv_lib_dld_dld_link=yes
8148else
8149 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008150sed 's/^/| /' conftest.$ac_ext >&5
8151
John Criswell7a73b802003-06-30 21:59:07 +00008152ac_cv_lib_dld_dld_link=no
8153fi
8154rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8155LIBS=$ac_check_lib_save_LIBS
8156fi
8157echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8158echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8159if test $ac_cv_lib_dld_dld_link = yes; then
8160 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8161fi
8162
8163
8164fi
8165
8166
8167fi
8168
8169
8170fi
8171
8172
8173fi
8174
8175
8176fi
8177
8178 ;;
8179 esac
8180
8181 if test "x$lt_cv_dlopen" != xno; then
8182 enable_dlopen=yes
8183 else
8184 enable_dlopen=no
8185 fi
8186
8187 case $lt_cv_dlopen in
8188 dlopen)
8189 save_CPPFLAGS="$CPPFLAGS"
John Criswell47fdd832003-07-14 16:52:07 +00008190 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
John Criswell7a73b802003-06-30 21:59:07 +00008191
8192 save_LDFLAGS="$LDFLAGS"
8193 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8194
8195 save_LIBS="$LIBS"
8196 LIBS="$lt_cv_dlopen_libs $LIBS"
8197
8198 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8199echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8200if test "${lt_cv_dlopen_self+set}" = set; then
8201 echo $ECHO_N "(cached) $ECHO_C" >&6
8202else
8203 if test "$cross_compiling" = yes; then :
8204 lt_cv_dlopen_self=cross
8205else
John Criswell47fdd832003-07-14 16:52:07 +00008206 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +00008207 lt_status=$lt_dlunknown
8208 cat > conftest.$ac_ext <<EOF
Misha Brukmandb84a092004-06-22 15:35:32 +00008209#line 8209 "configure"
John Criswell7a73b802003-06-30 21:59:07 +00008210#include "confdefs.h"
8211
8212#if HAVE_DLFCN_H
8213#include <dlfcn.h>
8214#endif
8215
8216#include <stdio.h>
8217
8218#ifdef RTLD_GLOBAL
8219# define LT_DLGLOBAL RTLD_GLOBAL
8220#else
8221# ifdef DL_GLOBAL
8222# define LT_DLGLOBAL DL_GLOBAL
8223# else
8224# define LT_DLGLOBAL 0
8225# endif
8226#endif
8227
8228/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8229 find out it does not work in some platform. */
8230#ifndef LT_DLLAZY_OR_NOW
8231# ifdef RTLD_LAZY
8232# define LT_DLLAZY_OR_NOW RTLD_LAZY
8233# else
8234# ifdef DL_LAZY
8235# define LT_DLLAZY_OR_NOW DL_LAZY
8236# else
8237# ifdef RTLD_NOW
8238# define LT_DLLAZY_OR_NOW RTLD_NOW
8239# else
8240# ifdef DL_NOW
8241# define LT_DLLAZY_OR_NOW DL_NOW
8242# else
8243# define LT_DLLAZY_OR_NOW 0
8244# endif
8245# endif
8246# endif
8247# endif
8248#endif
8249
8250#ifdef __cplusplus
8251extern "C" void exit (int);
8252#endif
8253
8254void fnord() { int i=42;}
8255int main ()
8256{
8257 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8258 int status = $lt_dlunknown;
8259
8260 if (self)
8261 {
8262 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8263 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8264 /* dlclose (self); */
8265 }
8266
8267 exit (status);
8268}
8269EOF
8270 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8271 (eval $ac_link) 2>&5
8272 ac_status=$?
8273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8274 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8275 (./conftest; exit; ) 2>/dev/null
8276 lt_status=$?
8277 case x$lt_status in
8278 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8279 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8280 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8281 esac
8282 else :
8283 # compilation failed
8284 lt_cv_dlopen_self=no
8285 fi
8286fi
8287rm -fr conftest*
8288
8289
8290fi
8291echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8292echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8293
8294 if test "x$lt_cv_dlopen_self" = xyes; then
8295 LDFLAGS="$LDFLAGS $link_static_flag"
8296 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8297echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8298if test "${lt_cv_dlopen_self_static+set}" = set; then
8299 echo $ECHO_N "(cached) $ECHO_C" >&6
8300else
8301 if test "$cross_compiling" = yes; then :
8302 lt_cv_dlopen_self_static=cross
8303else
John Criswell47fdd832003-07-14 16:52:07 +00008304 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +00008305 lt_status=$lt_dlunknown
8306 cat > conftest.$ac_ext <<EOF
Misha Brukmandb84a092004-06-22 15:35:32 +00008307#line 8307 "configure"
John Criswell7a73b802003-06-30 21:59:07 +00008308#include "confdefs.h"
8309
8310#if HAVE_DLFCN_H
8311#include <dlfcn.h>
8312#endif
8313
8314#include <stdio.h>
8315
8316#ifdef RTLD_GLOBAL
8317# define LT_DLGLOBAL RTLD_GLOBAL
8318#else
8319# ifdef DL_GLOBAL
8320# define LT_DLGLOBAL DL_GLOBAL
8321# else
8322# define LT_DLGLOBAL 0
8323# endif
8324#endif
8325
8326/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8327 find out it does not work in some platform. */
8328#ifndef LT_DLLAZY_OR_NOW
8329# ifdef RTLD_LAZY
8330# define LT_DLLAZY_OR_NOW RTLD_LAZY
8331# else
8332# ifdef DL_LAZY
8333# define LT_DLLAZY_OR_NOW DL_LAZY
8334# else
8335# ifdef RTLD_NOW
8336# define LT_DLLAZY_OR_NOW RTLD_NOW
8337# else
8338# ifdef DL_NOW
8339# define LT_DLLAZY_OR_NOW DL_NOW
8340# else
8341# define LT_DLLAZY_OR_NOW 0
8342# endif
8343# endif
8344# endif
8345# endif
8346#endif
8347
8348#ifdef __cplusplus
8349extern "C" void exit (int);
8350#endif
8351
8352void fnord() { int i=42;}
8353int main ()
8354{
8355 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8356 int status = $lt_dlunknown;
8357
8358 if (self)
8359 {
8360 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8361 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8362 /* dlclose (self); */
8363 }
8364
8365 exit (status);
8366}
8367EOF
8368 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8369 (eval $ac_link) 2>&5
8370 ac_status=$?
8371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8372 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8373 (./conftest; exit; ) 2>/dev/null
8374 lt_status=$?
8375 case x$lt_status in
8376 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8377 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8378 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8379 esac
8380 else :
8381 # compilation failed
8382 lt_cv_dlopen_self_static=no
8383 fi
8384fi
8385rm -fr conftest*
8386
8387
8388fi
8389echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8390echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8391 fi
8392
8393 CPPFLAGS="$save_CPPFLAGS"
8394 LDFLAGS="$save_LDFLAGS"
8395 LIBS="$save_LIBS"
8396 ;;
8397 esac
8398
8399 case $lt_cv_dlopen_self in
8400 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8401 *) enable_dlopen_self=unknown ;;
8402 esac
8403
8404 case $lt_cv_dlopen_self_static in
8405 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8406 *) enable_dlopen_self_static=unknown ;;
8407 esac
8408fi
8409
8410
John Criswell47fdd832003-07-14 16:52:07 +00008411# Report which librarie types wil actually be built
8412echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8413echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8414echo "$as_me:$LINENO: result: $can_build_shared" >&5
8415echo "${ECHO_T}$can_build_shared" >&6
John Criswell7a73b802003-06-30 21:59:07 +00008416
John Criswell47fdd832003-07-14 16:52:07 +00008417echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8418echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8419test "$can_build_shared" = "no" && enable_shared=no
8420
8421# On AIX, shared libraries and static libraries use the same namespace, and
8422# are all built from PIC.
8423case "$host_os" in
8424aix3*)
8425 test "$enable_shared" = yes && enable_static=no
8426 if test -n "$RANLIB"; then
8427 archive_cmds="$archive_cmds~\$RANLIB \$lib"
8428 postinstall_cmds='$RANLIB $lib'
8429 fi
8430 ;;
8431
8432aix4*)
8433 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8434 test "$enable_shared" = yes && enable_static=no
8435 fi
8436 ;;
8437 darwin* | rhapsody*)
8438 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
8439 archive_cmds_need_lc=no
8440 case "$host_os" in
8441 rhapsody* | darwin1.[012])
8442 allow_undefined_flag='-undefined suppress'
8443 ;;
8444 *) # Darwin 1.3 on
8445 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
8446 ;;
8447 esac
8448 # FIXME: Relying on posixy $() will cause problems for
8449 # cross-compilation, but unfortunately the echo tests do not
8450 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
8451 # `"' quotes if we put them in here... so don't!
8452 output_verbose_link_cmd='echo'
8453 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8454 module_cmds='$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
8455 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8456 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}'
8457 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}'
8458 hardcode_direct=no
8459 hardcode_automatic=yes
8460 hardcode_shlibpath_var=unsupported
8461 whole_archive_flag_spec='-all_load $convenience'
8462 link_all_deplibs=yes
John Criswell7a73b802003-06-30 21:59:07 +00008463 fi
John Criswell7a73b802003-06-30 21:59:07 +00008464 ;;
John Criswell47fdd832003-07-14 16:52:07 +00008465esac
8466echo "$as_me:$LINENO: result: $enable_shared" >&5
8467echo "${ECHO_T}$enable_shared" >&6
John Criswell7a73b802003-06-30 21:59:07 +00008468
John Criswell47fdd832003-07-14 16:52:07 +00008469echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8470echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8471# Make sure either enable_shared or enable_static is yes.
8472test "$enable_shared" = yes || enable_static=yes
8473echo "$as_me:$LINENO: result: $enable_static" >&5
8474echo "${ECHO_T}$enable_static" >&6
8475
8476# The else clause should only fire when bootstrapping the
John Criswell7a73b802003-06-30 21:59:07 +00008477# libtool distribution, otherwise you forgot to ship ltmain.sh
8478# with your package, and you will get complaints that there are
8479# no rules to generate ltmain.sh.
8480if test -f "$ltmain"; then
John Criswell47fdd832003-07-14 16:52:07 +00008481 # See if we are running on zsh, and set the options which allow our commands through
8482 # without removal of \ escapes.
8483 if test -n "${ZSH_VERSION+set}" ; then
8484 setopt NO_GLOB_SUBST
8485 fi
John Criswell7a73b802003-06-30 21:59:07 +00008486 # Now quote all the things that may contain metacharacters while being
8487 # careful not to overquote the AC_SUBSTed values. We take copies of the
8488 # variables and quote the copies for generation of the libtool script.
John Criswell47fdd832003-07-14 16:52:07 +00008489 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
8490 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8491 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8492 deplibs_check_method reload_flag reload_cmds need_locks \
8493 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8494 lt_cv_sys_global_symbol_to_c_name_address \
John Criswell7a73b802003-06-30 21:59:07 +00008495 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
John Criswell47fdd832003-07-14 16:52:07 +00008496 old_postinstall_cmds old_postuninstall_cmds \
8497 compiler \
8498 CC \
8499 LD \
8500 lt_prog_compiler_wl \
8501 lt_prog_compiler_pic \
8502 lt_prog_compiler_static \
8503 lt_prog_compiler_no_builtin_flag \
8504 export_dynamic_flag_spec \
8505 thread_safe_flag_spec \
8506 whole_archive_flag_spec \
8507 enable_shared_with_static_runtimes \
8508 old_archive_cmds \
8509 old_archive_from_new_cmds \
8510 predep_objects \
8511 postdep_objects \
8512 predeps \
8513 postdeps \
8514 compiler_lib_search_path \
8515 archive_cmds \
8516 archive_expsym_cmds \
8517 postinstall_cmds \
8518 postuninstall_cmds \
8519 old_archive_from_expsyms_cmds \
8520 allow_undefined_flag \
8521 no_undefined_flag \
8522 export_symbols_cmds \
8523 hardcode_libdir_flag_spec \
8524 hardcode_libdir_flag_spec_ld \
8525 hardcode_libdir_separator \
8526 hardcode_automatic \
8527 module_cmds \
8528 module_expsym_cmds \
8529 lt_cv_prog_compiler_c_o \
8530 exclude_expsyms \
8531 include_expsyms; do
John Criswell7a73b802003-06-30 21:59:07 +00008532
8533 case $var in
John Criswell47fdd832003-07-14 16:52:07 +00008534 old_archive_cmds | \
8535 old_archive_from_new_cmds | \
8536 archive_cmds | \
8537 archive_expsym_cmds | \
8538 module_cmds | \
8539 module_expsym_cmds | \
8540 old_archive_from_expsyms_cmds | \
8541 export_symbols_cmds | \
8542 extract_expsyms_cmds | reload_cmds | finish_cmds | \
John Criswell7a73b802003-06-30 21:59:07 +00008543 postinstall_cmds | postuninstall_cmds | \
John Criswell47fdd832003-07-14 16:52:07 +00008544 old_postinstall_cmds | old_postuninstall_cmds | \
8545 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
John Criswell7a73b802003-06-30 21:59:07 +00008546 # Double-quote double-evaled strings.
8547 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8548 ;;
8549 *)
8550 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8551 ;;
8552 esac
8553 done
8554
John Criswell47fdd832003-07-14 16:52:07 +00008555 case $lt_echo in
8556 *'\$0 --fallback-echo"')
8557 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8558 ;;
8559 esac
8560
8561cfgfile="${ofile}T"
8562 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8563 $rm -f "$cfgfile"
8564 { echo "$as_me:$LINENO: creating $ofile" >&5
8565echo "$as_me: creating $ofile" >&6;}
8566
8567 cat <<__EOF__ >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +00008568#! $SHELL
8569
John Criswell47fdd832003-07-14 16:52:07 +00008570# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
John Criswell7a73b802003-06-30 21:59:07 +00008571# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8572# NOTE: Changes made to this file will be lost: look at ltmain.sh.
8573#
John Criswell47fdd832003-07-14 16:52:07 +00008574# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8575# Free Software Foundation, Inc.
8576#
8577# This file is part of GNU Libtool:
John Criswell7a73b802003-06-30 21:59:07 +00008578# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8579#
8580# This program is free software; you can redistribute it and/or modify
8581# it under the terms of the GNU General Public License as published by
8582# the Free Software Foundation; either version 2 of the License, or
8583# (at your option) any later version.
8584#
8585# This program is distributed in the hope that it will be useful, but
8586# WITHOUT ANY WARRANTY; without even the implied warranty of
8587# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
8588# General Public License for more details.
8589#
8590# You should have received a copy of the GNU General Public License
8591# along with this program; if not, write to the Free Software
8592# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8593#
8594# As a special exception to the GNU General Public License, if you
8595# distribute this file as part of a program that contains a
8596# configuration script generated by Autoconf, you may include it under
8597# the same distribution terms that you use for the rest of that program.
8598
John Criswell47fdd832003-07-14 16:52:07 +00008599# A sed program that does not truncate output.
8600SED=$lt_SED
8601
John Criswell7a73b802003-06-30 21:59:07 +00008602# Sed that helps us avoid accidentally triggering echo(1) options like -n.
John Criswell47fdd832003-07-14 16:52:07 +00008603Xsed="$SED -e s/^X//"
John Criswell7a73b802003-06-30 21:59:07 +00008604
8605# The HP-UX ksh and POSIX shell print the target directory to stdout
8606# if CDPATH is set.
8607if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8608
John Criswell47fdd832003-07-14 16:52:07 +00008609# The names of the tagged configurations supported by this script.
8610available_tags=
8611
John Criswell7a73b802003-06-30 21:59:07 +00008612# ### BEGIN LIBTOOL CONFIG
8613
8614# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8615
8616# Shell to use when invoking shell scripts.
8617SHELL=$lt_SHELL
8618
8619# Whether or not to build shared libraries.
8620build_libtool_libs=$enable_shared
8621
8622# Whether or not to build static libraries.
8623build_old_libs=$enable_static
8624
8625# Whether or not to add -lc for building shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +00008626build_libtool_need_lc=$archive_cmds_need_lc
8627
8628# Whether or not to disallow shared libs when runtime libs are static
8629allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
John Criswell7a73b802003-06-30 21:59:07 +00008630
8631# Whether or not to optimize for fast installation.
8632fast_install=$enable_fast_install
8633
8634# The host system.
8635host_alias=$host_alias
8636host=$host
8637
8638# An echo program that does not interpret backslashes.
8639echo=$lt_echo
8640
8641# The archiver.
8642AR=$lt_AR
8643AR_FLAGS=$lt_AR_FLAGS
8644
John Criswell47fdd832003-07-14 16:52:07 +00008645# A C compiler.
8646LTCC=$lt_LTCC
8647
8648# A language-specific compiler.
8649CC=$lt_compiler
John Criswell7a73b802003-06-30 21:59:07 +00008650
8651# Is the compiler the GNU C compiler?
8652with_gcc=$GCC
8653
John Criswell47fdd832003-07-14 16:52:07 +00008654# An ERE matcher.
8655EGREP=$lt_EGREP
8656
John Criswell7a73b802003-06-30 21:59:07 +00008657# The linker used to build libraries.
8658LD=$lt_LD
8659
8660# Whether we need hard or soft links.
8661LN_S=$lt_LN_S
8662
8663# A BSD-compatible nm program.
8664NM=$lt_NM
8665
8666# A symbol stripping program
8667STRIP=$STRIP
8668
8669# Used to examine libraries when file_magic_cmd begins "file"
8670MAGIC_CMD=$MAGIC_CMD
8671
8672# Used on cygwin: DLL creation program.
8673DLLTOOL="$DLLTOOL"
8674
8675# Used on cygwin: object dumper.
8676OBJDUMP="$OBJDUMP"
8677
8678# Used on cygwin: assembler.
8679AS="$AS"
8680
8681# The name of the directory that contains temporary libtool files.
8682objdir=$objdir
8683
8684# How to create reloadable object files.
8685reload_flag=$lt_reload_flag
8686reload_cmds=$lt_reload_cmds
8687
8688# How to pass a linker flag through the compiler.
John Criswell47fdd832003-07-14 16:52:07 +00008689wl=$lt_lt_prog_compiler_wl
John Criswell7a73b802003-06-30 21:59:07 +00008690
8691# Object file suffix (normally "o").
8692objext="$ac_objext"
8693
8694# Old archive suffix (normally "a").
8695libext="$libext"
8696
John Criswell47fdd832003-07-14 16:52:07 +00008697# Shared library suffix (normally ".so").
8698shrext='$shrext'
8699
John Criswell7a73b802003-06-30 21:59:07 +00008700# Executable file suffix (normally "").
8701exeext="$exeext"
8702
8703# Additional compiler flags for building library objects.
John Criswell47fdd832003-07-14 16:52:07 +00008704pic_flag=$lt_lt_prog_compiler_pic
John Criswell7a73b802003-06-30 21:59:07 +00008705pic_mode=$pic_mode
8706
John Criswell47fdd832003-07-14 16:52:07 +00008707# What is the maximum length of a command?
8708max_cmd_len=$lt_cv_sys_max_cmd_len
John Criswell7a73b802003-06-30 21:59:07 +00008709
John Criswell47fdd832003-07-14 16:52:07 +00008710# Does compiler simultaneously support -c and -o options?
8711compiler_c_o=$lt_lt_cv_prog_compiler_c_o
John Criswell7a73b802003-06-30 21:59:07 +00008712
8713# Must we lock files when doing compilation ?
8714need_locks=$lt_need_locks
8715
8716# Do we need the lib prefix for modules?
8717need_lib_prefix=$need_lib_prefix
8718
8719# Do we need a version for libraries?
8720need_version=$need_version
8721
8722# Whether dlopen is supported.
8723dlopen_support=$enable_dlopen
8724
8725# Whether dlopen of programs is supported.
8726dlopen_self=$enable_dlopen_self
8727
8728# Whether dlopen of statically linked programs is supported.
8729dlopen_self_static=$enable_dlopen_self_static
8730
8731# Compiler flag to prevent dynamic linking.
John Criswell47fdd832003-07-14 16:52:07 +00008732link_static_flag=$lt_lt_prog_compiler_static
John Criswell7a73b802003-06-30 21:59:07 +00008733
8734# Compiler flag to turn off builtin functions.
John Criswell47fdd832003-07-14 16:52:07 +00008735no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
John Criswell7a73b802003-06-30 21:59:07 +00008736
8737# Compiler flag to allow reflexive dlopens.
8738export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
8739
8740# Compiler flag to generate shared objects directly from archives.
8741whole_archive_flag_spec=$lt_whole_archive_flag_spec
8742
8743# Compiler flag to generate thread-safe objects.
8744thread_safe_flag_spec=$lt_thread_safe_flag_spec
8745
8746# Library versioning type.
8747version_type=$version_type
8748
8749# Format of library name prefix.
8750libname_spec=$lt_libname_spec
8751
8752# List of archive names. First name is the real one, the rest are links.
8753# The last name is the one that the linker finds with -lNAME.
8754library_names_spec=$lt_library_names_spec
8755
8756# The coded name of the library, if different from the real name.
8757soname_spec=$lt_soname_spec
8758
8759# Commands used to build and install an old-style archive.
8760RANLIB=$lt_RANLIB
8761old_archive_cmds=$lt_old_archive_cmds
8762old_postinstall_cmds=$lt_old_postinstall_cmds
8763old_postuninstall_cmds=$lt_old_postuninstall_cmds
8764
8765# Create an old-style archive from a shared archive.
8766old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
8767
8768# Create a temporary old-style archive to link instead of a shared archive.
8769old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
8770
8771# Commands used to build and install a shared archive.
8772archive_cmds=$lt_archive_cmds
8773archive_expsym_cmds=$lt_archive_expsym_cmds
8774postinstall_cmds=$lt_postinstall_cmds
8775postuninstall_cmds=$lt_postuninstall_cmds
8776
John Criswell47fdd832003-07-14 16:52:07 +00008777# Commands used to build a loadable module (assumed same as above if empty)
8778module_cmds=$lt_module_cmds
8779module_expsym_cmds=$lt_module_expsym_cmds
8780
John Criswell7a73b802003-06-30 21:59:07 +00008781# Commands to strip libraries.
8782old_striplib=$lt_old_striplib
8783striplib=$lt_striplib
8784
John Criswell47fdd832003-07-14 16:52:07 +00008785# Dependencies to place before the objects being linked to create a
8786# shared library.
8787predep_objects=$lt_predep_objects
8788
8789# Dependencies to place after the objects being linked to create a
8790# shared library.
8791postdep_objects=$lt_postdep_objects
8792
8793# Dependencies to place before the objects being linked to create a
8794# shared library.
8795predeps=$lt_predeps
8796
8797# Dependencies to place after the objects being linked to create a
8798# shared library.
8799postdeps=$lt_postdeps
8800
8801# The library search path used internally by the compiler when linking
8802# a shared library.
8803compiler_lib_search_path=$lt_compiler_lib_search_path
8804
John Criswell7a73b802003-06-30 21:59:07 +00008805# Method to check whether dependent libraries are shared objects.
8806deplibs_check_method=$lt_deplibs_check_method
8807
8808# Command to use when deplibs_check_method == file_magic.
8809file_magic_cmd=$lt_file_magic_cmd
8810
8811# Flag that allows shared libraries with undefined symbols to be built.
8812allow_undefined_flag=$lt_allow_undefined_flag
8813
8814# Flag that forces no undefined symbols.
8815no_undefined_flag=$lt_no_undefined_flag
8816
8817# Commands used to finish a libtool library installation in a directory.
8818finish_cmds=$lt_finish_cmds
8819
8820# Same as above, but a single script fragment to be evaled but not shown.
8821finish_eval=$lt_finish_eval
8822
8823# Take the output of nm and produce a listing of raw symbols and C names.
John Criswell47fdd832003-07-14 16:52:07 +00008824global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
John Criswell7a73b802003-06-30 21:59:07 +00008825
8826# Transform the output of nm in a proper C declaration
John Criswell47fdd832003-07-14 16:52:07 +00008827global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
John Criswell7a73b802003-06-30 21:59:07 +00008828
8829# Transform the output of nm in a C name address pair
John Criswell47fdd832003-07-14 16:52:07 +00008830global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
John Criswell7a73b802003-06-30 21:59:07 +00008831
8832# This is the shared library runtime path variable.
8833runpath_var=$runpath_var
8834
8835# This is the shared library path variable.
8836shlibpath_var=$shlibpath_var
8837
8838# Is shlibpath searched before the hard-coded library search path?
8839shlibpath_overrides_runpath=$shlibpath_overrides_runpath
8840
8841# How to hardcode a shared library path into an executable.
8842hardcode_action=$hardcode_action
8843
8844# Whether we should hardcode library paths into libraries.
8845hardcode_into_libs=$hardcode_into_libs
8846
8847# Flag to hardcode \$libdir into a binary during linking.
8848# This must work even if \$libdir does not exist.
8849hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
8850
John Criswell47fdd832003-07-14 16:52:07 +00008851# If ld is used when linking, flag to hardcode \$libdir into
8852# a binary during linking. This must work even if \$libdir does
8853# not exist.
8854hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
8855
John Criswell7a73b802003-06-30 21:59:07 +00008856# Whether we need a single -rpath flag with a separated argument.
8857hardcode_libdir_separator=$lt_hardcode_libdir_separator
8858
John Criswell47fdd832003-07-14 16:52:07 +00008859# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
John Criswell7a73b802003-06-30 21:59:07 +00008860# resulting binary.
8861hardcode_direct=$hardcode_direct
8862
8863# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
8864# resulting binary.
8865hardcode_minus_L=$hardcode_minus_L
8866
8867# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
8868# the resulting binary.
8869hardcode_shlibpath_var=$hardcode_shlibpath_var
8870
John Criswell47fdd832003-07-14 16:52:07 +00008871# Set to yes if building a shared library automatically hardcodes DIR into the library
8872# and all subsequent libraries and executables linked against it.
8873hardcode_automatic=$hardcode_automatic
8874
John Criswell7a73b802003-06-30 21:59:07 +00008875# Variables whose values should be saved in libtool wrapper scripts and
8876# restored at relink time.
8877variables_saved_for_relink="$variables_saved_for_relink"
8878
8879# Whether libtool must link a program against all its dependency libraries.
8880link_all_deplibs=$link_all_deplibs
8881
8882# Compile-time system search path for libraries
8883sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
8884
8885# Run-time system search path for libraries
8886sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
8887
8888# Fix the shell variable \$srcfile for the compiler.
8889fix_srcfile_path="$fix_srcfile_path"
8890
8891# Set to yes if exported symbols are required.
8892always_export_symbols=$always_export_symbols
8893
8894# The commands to list exported symbols.
8895export_symbols_cmds=$lt_export_symbols_cmds
8896
8897# The commands to extract the exported symbol list from a shared archive.
8898extract_expsyms_cmds=$lt_extract_expsyms_cmds
8899
8900# Symbols that should not be listed in the preloaded symbols.
8901exclude_expsyms=$lt_exclude_expsyms
8902
8903# Symbols that must always be exported.
8904include_expsyms=$lt_include_expsyms
8905
8906# ### END LIBTOOL CONFIG
8907
8908__EOF__
8909
John Criswell47fdd832003-07-14 16:52:07 +00008910
John Criswell7a73b802003-06-30 21:59:07 +00008911 case $host_os in
8912 aix3*)
John Criswell47fdd832003-07-14 16:52:07 +00008913 cat <<\EOF >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +00008914
8915# AIX sometimes has problems with the GCC collect2 program. For some
8916# reason, if we set the COLLECT_NAMES environment variable, the problems
8917# vanish in a puff of smoke.
8918if test "X${COLLECT_NAMES+set}" != Xset; then
8919 COLLECT_NAMES=
8920 export COLLECT_NAMES
8921fi
8922EOF
8923 ;;
8924 esac
8925
John Criswell7a73b802003-06-30 21:59:07 +00008926 # We use sed instead of cat because bash on DJGPP gets confused if
8927 # if finds mixed CR/LF and LF-only lines. Since sed operates in
8928 # text mode, it properly converts lines to CR/LF. This bash problem
8929 # is reportedly fixed, but why not run on old versions too?
John Criswell47fdd832003-07-14 16:52:07 +00008930 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
John Criswell7a73b802003-06-30 21:59:07 +00008931
John Criswell47fdd832003-07-14 16:52:07 +00008932 mv -f "$cfgfile" "$ofile" || \
8933 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
John Criswell7a73b802003-06-30 21:59:07 +00008934 chmod +x "$ofile"
John Criswell47fdd832003-07-14 16:52:07 +00008935
8936else
8937 # If there is no Makefile yet, we rely on a make rule to execute
8938 # `config.status --recheck' to rerun these tests and create the
8939 # libtool script then.
8940 test -f Makefile && make "$ltmain"
John Criswell7a73b802003-06-30 21:59:07 +00008941fi
John Criswell7a73b802003-06-30 21:59:07 +00008942
8943
John Criswell47fdd832003-07-14 16:52:07 +00008944ac_ext=c
8945ac_cpp='$CPP $CPPFLAGS'
8946ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8947ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8948ac_compiler_gnu=$ac_cv_c_compiler_gnu
8949
8950CC="$lt_save_CC"
8951
8952
8953# Check whether --with-tags or --without-tags was given.
8954if test "${with_tags+set}" = set; then
8955 withval="$with_tags"
8956 tagnames="$withval"
8957fi;
8958
8959if test -f "$ltmain" && test -n "$tagnames"; then
8960 if test ! -f "${ofile}"; then
8961 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
8962echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
8963 fi
8964
8965 if test -z "$LTCC"; then
8966 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
8967 if test -z "$LTCC"; then
8968 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
8969echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
8970 else
8971 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
8972echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
8973 fi
8974 fi
8975
8976 # Extract list of available tagged configurations in $ofile.
8977 # Note that this assumes the entire list is on one line.
8978 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
8979
8980 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8981 for tagname in $tagnames; do
8982 IFS="$lt_save_ifs"
8983 # Check whether tagname contains only valid characters
8984 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
8985 "") ;;
8986 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
8987echo "$as_me: error: invalid tag name: $tagname" >&2;}
8988 { (exit 1); exit 1; }; }
8989 ;;
8990 esac
8991
8992 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
8993 then
8994 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
8995echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
8996 { (exit 1); exit 1; }; }
8997 fi
8998
8999 # Update the list of available tags.
9000 if test -n "$tagname"; then
9001 echo appending configuration tag \"$tagname\" to $ofile
9002
9003 case $tagname in
9004 CXX)
9005 if test -n "$CXX" && test "X$CXX" != "Xno"; then
9006 ac_ext=cc
9007ac_cpp='$CXXCPP $CPPFLAGS'
9008ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9009ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9010ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9011
9012
9013
9014
9015archive_cmds_need_lc_CXX=no
9016allow_undefined_flag_CXX=
9017always_export_symbols_CXX=no
9018archive_expsym_cmds_CXX=
9019export_dynamic_flag_spec_CXX=
9020hardcode_direct_CXX=no
9021hardcode_libdir_flag_spec_CXX=
9022hardcode_libdir_flag_spec_ld_CXX=
9023hardcode_libdir_separator_CXX=
9024hardcode_minus_L_CXX=no
9025hardcode_automatic_CXX=no
9026module_cmds_CXX=
9027module_expsym_cmds_CXX=
9028link_all_deplibs_CXX=unknown
9029old_archive_cmds_CXX=$old_archive_cmds
9030no_undefined_flag_CXX=
9031whole_archive_flag_spec_CXX=
9032enable_shared_with_static_runtimes_CXX=no
9033
9034# Dependencies to place before and after the object being linked:
9035predep_objects_CXX=
9036postdep_objects_CXX=
9037predeps_CXX=
9038postdeps_CXX=
9039compiler_lib_search_path_CXX=
9040
9041# Source file extension for C++ test sources.
9042ac_ext=cc
9043
9044# Object file extension for compiled C++ test sources.
9045objext=o
9046objext_CXX=$objext
9047
9048# Code to be used in simple compile tests
9049lt_simple_compile_test_code="int some_variable = 0;\n"
9050
9051# Code to be used in simple link tests
9052lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9053
9054# ltmain only uses $CC for tagged configurations so make sure $CC is set.
9055
9056# If no C compiler was specified, use CC.
9057LTCC=${LTCC-"$CC"}
9058
9059# Allow CC to be a program name with arguments.
9060compiler=$CC
9061
9062
9063# Allow CC to be a program name with arguments.
9064lt_save_CC=$CC
9065lt_save_LD=$LD
9066lt_save_GCC=$GCC
9067GCC=$GXX
9068lt_save_with_gnu_ld=$with_gnu_ld
9069lt_save_path_LD=$lt_cv_path_LD
9070if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9071 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9072else
9073 unset lt_cv_prog_gnu_ld
9074fi
9075if test -n "${lt_cv_path_LDCXX+set}"; then
9076 lt_cv_path_LD=$lt_cv_path_LDCXX
9077else
9078 unset lt_cv_path_LD
9079fi
9080test -z "${LDCXX+set}" || LD=$LDCXX
9081CC=${CXX-"c++"}
9082compiler=$CC
9083compiler_CXX=$CC
9084cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9085
9086# We don't want -fno-exception wen compiling C++ code, so set the
9087# no_builtin_flag separately
9088if test "$GXX" = yes; then
9089 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9090else
9091 lt_prog_compiler_no_builtin_flag_CXX=
9092fi
9093
9094if test "$GXX" = yes; then
9095 # Set up default GNU C++ configuration
9096
9097
9098# Check whether --with-gnu-ld or --without-gnu-ld was given.
9099if test "${with_gnu_ld+set}" = set; then
9100 withval="$with_gnu_ld"
9101 test "$withval" = no || with_gnu_ld=yes
9102else
9103 with_gnu_ld=no
9104fi;
9105ac_prog=ld
9106if test "$GCC" = yes; then
9107 # Check if gcc -print-prog-name=ld gives a path.
9108 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9109echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9110 case $host in
9111 *-*-mingw*)
9112 # gcc leaves a trailing carriage return which upsets mingw
9113 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9114 *)
9115 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9116 esac
9117 case $ac_prog in
9118 # Accept absolute paths.
9119 [\\/]* | ?:[\\/]*)
9120 re_direlt='/[^/][^/]*/\.\./'
9121 # Canonicalize the path of ld
9122 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9123 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9124 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9125 done
9126 test -z "$LD" && LD="$ac_prog"
9127 ;;
9128 "")
9129 # If it fails, then pretend we aren't using GCC.
9130 ac_prog=ld
9131 ;;
9132 *)
9133 # If it is relative, then search for the first ld in PATH.
9134 with_gnu_ld=unknown
9135 ;;
9136 esac
9137elif test "$with_gnu_ld" = yes; then
9138 echo "$as_me:$LINENO: checking for GNU ld" >&5
9139echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9140else
9141 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9142echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9143fi
9144if test "${lt_cv_path_LD+set}" = set; then
9145 echo $ECHO_N "(cached) $ECHO_C" >&6
9146else
9147 if test -z "$LD"; then
9148 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9149 for ac_dir in $PATH; do
9150 IFS="$lt_save_ifs"
9151 test -z "$ac_dir" && ac_dir=.
9152 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9153 lt_cv_path_LD="$ac_dir/$ac_prog"
9154 # Check to see if the program is GNU ld. I'd rather use --version,
9155 # but apparently some GNU ld's only accept -v.
9156 # Break only if it was the GNU/non-GNU ld that we prefer.
9157 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9158 *GNU* | *'with BFD'*)
9159 test "$with_gnu_ld" != no && break
9160 ;;
9161 *)
9162 test "$with_gnu_ld" != yes && break
9163 ;;
9164 esac
9165 fi
9166 done
9167 IFS="$lt_save_ifs"
9168else
9169 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9170fi
9171fi
9172
9173LD="$lt_cv_path_LD"
9174if test -n "$LD"; then
9175 echo "$as_me:$LINENO: result: $LD" >&5
9176echo "${ECHO_T}$LD" >&6
9177else
9178 echo "$as_me:$LINENO: result: no" >&5
9179echo "${ECHO_T}no" >&6
9180fi
9181test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9182echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9183 { (exit 1); exit 1; }; }
9184echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9185echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9186if test "${lt_cv_prog_gnu_ld+set}" = set; then
9187 echo $ECHO_N "(cached) $ECHO_C" >&6
9188else
9189 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9190case `"$LD" -v 2>&1 </dev/null` in
9191*GNU* | *'with BFD'*)
9192 lt_cv_prog_gnu_ld=yes
9193 ;;
9194*)
9195 lt_cv_prog_gnu_ld=no
9196 ;;
9197esac
9198fi
9199echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9200echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9201with_gnu_ld=$lt_cv_prog_gnu_ld
9202
9203
9204
9205 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9206 # archiving commands below assume that GNU ld is being used.
9207 if test "$with_gnu_ld" = yes; then
9208 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9209 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'
9210
9211 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9212 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9213
9214 # If archive_cmds runs LD, not CC, wlarc should be empty
9215 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9216 # investigate it a little bit more. (MM)
9217 wlarc='${wl}'
9218
9219 # ancient GNU ld didn't support --whole-archive et. al.
9220 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9221 grep 'no-whole-archive' > /dev/null; then
9222 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9223 else
9224 whole_archive_flag_spec_CXX=
9225 fi
9226 else
9227 with_gnu_ld=no
9228 wlarc=
9229
9230 # A generic and very simple default shared library creation
9231 # command for GNU C++ for the case where it uses the native
9232 # linker, instead of GNU ld. If possible, this setting should
9233 # overridden to take advantage of the native linker features on
9234 # the platform it is being used on.
9235 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9236 fi
9237
9238 # Commands to make compiler produce verbose output that lists
9239 # what "hidden" libraries, object files and flags are used when
9240 # linking a shared library.
9241 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9242
9243else
9244 GXX=no
9245 with_gnu_ld=no
9246 wlarc=
9247fi
9248
9249# PORTME: fill in a description of your system's C++ link characteristics
9250echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9251echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9252ld_shlibs_CXX=yes
9253case $host_os in
9254 aix3*)
9255 # FIXME: insert proper C++ library support
9256 ld_shlibs_CXX=no
9257 ;;
9258 aix4* | aix5*)
9259 if test "$host_cpu" = ia64; then
9260 # On IA64, the linker does run time linking by default, so we don't
9261 # have to do anything special.
9262 aix_use_runtimelinking=no
9263 exp_sym_flag='-Bexport'
9264 no_entry_flag=""
9265 else
9266 aix_use_runtimelinking=no
9267
9268 # Test if we are trying to use run time linking or normal
9269 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9270 # need to do runtime linking.
9271 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9272 for ld_flag in $LDFLAGS; do
9273 case $ld_flag in
9274 *-brtl*)
9275 aix_use_runtimelinking=yes
9276 break
9277 ;;
9278 esac
9279 done
9280 esac
9281
9282 exp_sym_flag='-bexport'
9283 no_entry_flag='-bnoentry'
9284 fi
9285
9286 # When large executables or shared objects are built, AIX ld can
9287 # have problems creating the table of contents. If linking a library
9288 # or program results in "error TOC overflow" add -mminimal-toc to
9289 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9290 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9291
9292 archive_cmds_CXX=''
9293 hardcode_direct_CXX=yes
9294 hardcode_libdir_separator_CXX=':'
9295 link_all_deplibs_CXX=yes
9296
9297 if test "$GXX" = yes; then
9298 case $host_os in aix4.012|aix4.012.*)
9299 # We only want to do this on AIX 4.2 and lower, the check
9300 # below for broken collect2 doesn't work under 4.3+
9301 collect2name=`${CC} -print-prog-name=collect2`
9302 if test -f "$collect2name" && \
9303 strings "$collect2name" | grep resolve_lib_name >/dev/null
9304 then
9305 # We have reworked collect2
9306 hardcode_direct_CXX=yes
9307 else
9308 # We have old collect2
9309 hardcode_direct_CXX=unsupported
9310 # It fails to find uninstalled libraries when the uninstalled
9311 # path is not listed in the libpath. Setting hardcode_minus_L
9312 # to unsupported forces relinking
9313 hardcode_minus_L_CXX=yes
9314 hardcode_libdir_flag_spec_CXX='-L$libdir'
9315 hardcode_libdir_separator_CXX=
9316 fi
9317 esac
9318 shared_flag='-shared'
9319 else
9320 # not using gcc
9321 if test "$host_cpu" = ia64; then
9322 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9323 # chokes on -Wl,-G. The following line is correct:
9324 shared_flag='-G'
9325 else
9326 if test "$aix_use_runtimelinking" = yes; then
9327 shared_flag='${wl}-G'
9328 else
9329 shared_flag='${wl}-bM:SRE'
9330 fi
9331 fi
9332 fi
9333
9334 # It seems that -bexpall does not export symbols beginning with
9335 # underscore (_), so it is better to generate a list of symbols to export.
9336 always_export_symbols_CXX=yes
9337 if test "$aix_use_runtimelinking" = yes; then
9338 # Warning - without using the other runtime loading flags (-brtl),
9339 # -berok will link without error, but may produce a broken library.
9340 allow_undefined_flag_CXX='-berok'
9341 # Determine the default libpath from the value encoded in an empty executable.
9342 cat >conftest.$ac_ext <<_ACEOF
9343#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00009344/* confdefs.h. */
9345_ACEOF
9346cat confdefs.h >>conftest.$ac_ext
9347cat >>conftest.$ac_ext <<_ACEOF
9348/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00009349
John Criswell47fdd832003-07-14 16:52:07 +00009350int
9351main ()
9352{
9353
9354 ;
9355 return 0;
9356}
9357_ACEOF
9358rm -f conftest.$ac_objext conftest$ac_exeext
9359if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9360 (eval $ac_link) 2>&5
9361 ac_status=$?
9362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9363 (exit $ac_status); } &&
9364 { ac_try='test -s conftest$ac_exeext'
9365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9366 (eval $ac_try) 2>&5
9367 ac_status=$?
9368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9369 (exit $ac_status); }; }; then
9370
9371aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9372}'`
9373# Check for a 64-bit object if we didn't find anything.
9374if 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; }
9375}'`; fi
9376else
9377 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00009378sed 's/^/| /' conftest.$ac_ext >&5
9379
John Criswell47fdd832003-07-14 16:52:07 +00009380fi
9381rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9382if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9383
9384 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9385
9386 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"
9387 else
9388 if test "$host_cpu" = ia64; then
9389 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9390 allow_undefined_flag_CXX="-z nodefs"
9391 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"
9392 else
9393 # Determine the default libpath from the value encoded in an empty executable.
9394 cat >conftest.$ac_ext <<_ACEOF
9395#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00009396/* confdefs.h. */
9397_ACEOF
9398cat confdefs.h >>conftest.$ac_ext
9399cat >>conftest.$ac_ext <<_ACEOF
9400/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00009401
John Criswell47fdd832003-07-14 16:52:07 +00009402int
9403main ()
9404{
9405
9406 ;
9407 return 0;
9408}
9409_ACEOF
9410rm -f conftest.$ac_objext conftest$ac_exeext
9411if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9412 (eval $ac_link) 2>&5
9413 ac_status=$?
9414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9415 (exit $ac_status); } &&
9416 { ac_try='test -s conftest$ac_exeext'
9417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9418 (eval $ac_try) 2>&5
9419 ac_status=$?
9420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9421 (exit $ac_status); }; }; then
9422
9423aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9424}'`
9425# Check for a 64-bit object if we didn't find anything.
9426if 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; }
9427}'`; fi
9428else
9429 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00009430sed 's/^/| /' conftest.$ac_ext >&5
9431
John Criswell47fdd832003-07-14 16:52:07 +00009432fi
9433rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9434if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9435
9436 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9437 # Warning - without using the other run time loading flags,
9438 # -berok will link without error, but may produce a broken library.
9439 no_undefined_flag_CXX=' ${wl}-bernotok'
9440 allow_undefined_flag_CXX=' ${wl}-berok'
9441 # -bexpall does not export symbols beginning with underscore (_)
9442 always_export_symbols_CXX=yes
9443 # Exported symbols can be pulled into shared objects from archives
9444 whole_archive_flag_spec_CXX=' '
9445 archive_cmds_need_lc_CXX=yes
9446 # This is similar to how AIX traditionally builds it's shared libraries.
9447 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'
9448 fi
9449 fi
9450 ;;
9451 chorus*)
9452 case $cc_basename in
9453 *)
9454 # FIXME: insert proper C++ library support
9455 ld_shlibs_CXX=no
9456 ;;
9457 esac
9458 ;;
9459
9460 cygwin* | mingw* | pw32*)
9461 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9462 # as there is no search path for DLLs.
9463 hardcode_libdir_flag_spec_CXX='-L$libdir'
9464 allow_undefined_flag_CXX=unsupported
9465 always_export_symbols_CXX=no
9466 enable_shared_with_static_runtimes_CXX=yes
9467
9468 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9469 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'
9470 # If the export-symbols file already is a .def file (1st line
9471 # is EXPORTS), use it as is; otherwise, prepend...
9472 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9473 cp $export_symbols $output_objdir/$soname.def;
9474 else
9475 echo EXPORTS > $output_objdir/$soname.def;
9476 cat $export_symbols >> $output_objdir/$soname.def;
9477 fi~
9478 $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'
9479 else
9480 ld_shlibs_CXX=no
9481 fi
9482 ;;
9483
9484 darwin* | rhapsody*)
9485 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
9486 archive_cmds_need_lc_CXX=no
9487 case "$host_os" in
9488 rhapsody* | darwin1.[012])
9489 allow_undefined_flag_CXX='-undefined suppress'
9490 ;;
9491 *) # Darwin 1.3 on
9492 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9493 ;;
9494 esac
9495 lt_int_apple_cc_single_mod=no
9496 output_verbose_link_cmd='echo'
9497 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9498 lt_int_apple_cc_single_mod=yes
9499 fi
9500 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9501 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9502 else
9503 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'
9504 fi
9505 module_cmds_CXX='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
9506
9507 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9508 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9509 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}'
9510 else
9511 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}'
9512 fi
9513 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}'
9514 hardcode_direct_CXX=no
9515 hardcode_automatic_CXX=yes
9516 hardcode_shlibpath_var_CXX=unsupported
9517 whole_archive_flag_spec_CXX='-all_load $convenience'
9518 link_all_deplibs_CXX=yes
9519 fi
9520 ;;
9521
9522 dgux*)
9523 case $cc_basename in
9524 ec++)
9525 # FIXME: insert proper C++ library support
9526 ld_shlibs_CXX=no
9527 ;;
9528 ghcx)
9529 # Green Hills C++ Compiler
9530 # FIXME: insert proper C++ library support
9531 ld_shlibs_CXX=no
9532 ;;
9533 *)
9534 # FIXME: insert proper C++ library support
9535 ld_shlibs_CXX=no
9536 ;;
9537 esac
9538 ;;
9539 freebsd12*)
9540 # C++ shared libraries reported to be fairly broken before switch to ELF
9541 ld_shlibs_CXX=no
9542 ;;
9543 freebsd-elf*)
9544 archive_cmds_need_lc_CXX=no
9545 ;;
9546 freebsd*)
9547 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9548 # conventions
9549 ld_shlibs_CXX=yes
9550 ;;
9551 gnu*)
9552 ;;
9553 hpux9*)
9554 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9555 hardcode_libdir_separator_CXX=:
9556 export_dynamic_flag_spec_CXX='${wl}-E'
9557 hardcode_direct_CXX=yes
9558 hardcode_minus_L_CXX=yes # Not in the search PATH,
9559 # but as the default
9560 # location of the library.
9561
9562 case $cc_basename in
9563 CC)
9564 # FIXME: insert proper C++ library support
9565 ld_shlibs_CXX=no
9566 ;;
9567 aCC)
9568 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'
9569 # Commands to make compiler produce verbose output that lists
9570 # what "hidden" libraries, object files and flags are used when
9571 # linking a shared library.
9572 #
9573 # There doesn't appear to be a way to prevent this compiler from
9574 # explicitly linking system object files so we need to strip them
9575 # from the output so that they don't get included in the library
9576 # dependencies.
9577 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'
9578 ;;
9579 *)
9580 if test "$GXX" = yes; then
9581 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'
9582 else
9583 # FIXME: insert proper C++ library support
9584 ld_shlibs_CXX=no
9585 fi
9586 ;;
9587 esac
9588 ;;
9589 hpux10*|hpux11*)
9590 if test $with_gnu_ld = no; then
9591 case "$host_cpu" in
9592 hppa*64*)
9593 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9594 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
9595 hardcode_libdir_separator_CXX=:
9596 ;;
9597 ia64*)
9598 hardcode_libdir_flag_spec_CXX='-L$libdir'
9599 ;;
9600 *)
9601 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9602 hardcode_libdir_separator_CXX=:
9603 export_dynamic_flag_spec_CXX='${wl}-E'
9604 ;;
9605 esac
9606 fi
9607 case "$host_cpu" in
9608 hppa*64*)
9609 hardcode_direct_CXX=no
9610 hardcode_shlibpath_var_CXX=no
9611 ;;
9612 ia64*)
9613 hardcode_direct_CXX=no
9614 hardcode_shlibpath_var_CXX=no
9615 hardcode_minus_L_CXX=yes # Not in the search PATH,
9616 # but as the default
9617 # location of the library.
9618 ;;
9619 *)
9620 hardcode_direct_CXX=yes
9621 hardcode_minus_L_CXX=yes # Not in the search PATH,
9622 # but as the default
9623 # location of the library.
9624 ;;
9625 esac
9626
9627 case $cc_basename in
9628 CC)
9629 # FIXME: insert proper C++ library support
9630 ld_shlibs_CXX=no
9631 ;;
9632 aCC)
9633 case "$host_cpu" in
9634 hppa*64*|ia64*)
9635 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9636 ;;
9637 *)
9638 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9639 ;;
9640 esac
9641 # Commands to make compiler produce verbose output that lists
9642 # what "hidden" libraries, object files and flags are used when
9643 # linking a shared library.
9644 #
9645 # There doesn't appear to be a way to prevent this compiler from
9646 # explicitly linking system object files so we need to strip them
9647 # from the output so that they don't get included in the library
9648 # dependencies.
9649 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'
9650 ;;
9651 *)
9652 if test "$GXX" = yes; then
9653 if test $with_gnu_ld = no; then
9654 case "$host_cpu" in
9655 ia64*|hppa*64*)
9656 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9657 ;;
9658 *)
9659 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'
9660 ;;
9661 esac
9662 fi
9663 else
9664 # FIXME: insert proper C++ library support
9665 ld_shlibs_CXX=no
9666 fi
9667 ;;
9668 esac
9669 ;;
9670 irix5* | irix6*)
9671 case $cc_basename in
9672 CC)
9673 # SGI C++
9674 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'
9675
9676 # Archives containing C++ object files must be created using
9677 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
9678 # necessary to make sure instantiated templates are included
9679 # in the archive.
9680 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
9681 ;;
9682 *)
9683 if test "$GXX" = yes; then
9684 if test "$with_gnu_ld" = no; then
9685 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'
9686 else
9687 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'
9688 fi
9689 fi
9690 link_all_deplibs_CXX=yes
9691 ;;
9692 esac
9693 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9694 hardcode_libdir_separator_CXX=:
9695 ;;
9696 linux*)
9697 case $cc_basename in
9698 KCC)
9699 # Kuck and Associates, Inc. (KAI) C++ Compiler
9700
9701 # KCC will only create a shared library if the output file
9702 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9703 # to its proper name (with version) after linking.
9704 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'
9705 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'
9706 # Commands to make compiler produce verbose output that lists
9707 # what "hidden" libraries, object files and flags are used when
9708 # linking a shared library.
9709 #
9710 # There doesn't appear to be a way to prevent this compiler from
9711 # explicitly linking system object files so we need to strip them
9712 # from the output so that they don't get included in the library
9713 # dependencies.
9714 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'
9715
9716 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
9717 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9718
9719 # Archives containing C++ object files must be created using
9720 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9721 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9722 ;;
9723 icpc)
9724 # Intel C++
9725 with_gnu_ld=yes
9726 archive_cmds_need_lc_CXX=no
9727 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9728 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'
9729 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9730 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9731 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9732 ;;
9733 cxx)
9734 # Compaq C++
9735 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9736 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'
9737
9738 runpath_var=LD_RUN_PATH
9739 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9740 hardcode_libdir_separator_CXX=:
9741
9742 # Commands to make compiler produce verbose output that lists
9743 # what "hidden" libraries, object files and flags are used when
9744 # linking a shared library.
9745 #
9746 # There doesn't appear to be a way to prevent this compiler from
9747 # explicitly linking system object files so we need to strip them
9748 # from the output so that they don't get included in the library
9749 # dependencies.
9750 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'
9751 ;;
9752 esac
9753 ;;
9754 lynxos*)
9755 # FIXME: insert proper C++ library support
9756 ld_shlibs_CXX=no
9757 ;;
9758 m88k*)
9759 # FIXME: insert proper C++ library support
9760 ld_shlibs_CXX=no
9761 ;;
9762 mvs*)
9763 case $cc_basename in
9764 cxx)
9765 # FIXME: insert proper C++ library support
9766 ld_shlibs_CXX=no
9767 ;;
9768 *)
9769 # FIXME: insert proper C++ library support
9770 ld_shlibs_CXX=no
9771 ;;
9772 esac
9773 ;;
9774 netbsd*)
9775 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9776 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
9777 wlarc=
9778 hardcode_libdir_flag_spec_CXX='-R$libdir'
9779 hardcode_direct_CXX=yes
9780 hardcode_shlibpath_var_CXX=no
9781 fi
9782 # Workaround some broken pre-1.5 toolchains
9783 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
9784 ;;
9785 osf3*)
9786 case $cc_basename in
9787 KCC)
9788 # Kuck and Associates, Inc. (KAI) C++ Compiler
9789
9790 # KCC will only create a shared library if the output file
9791 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9792 # to its proper name (with version) after linking.
9793 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'
9794
9795 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9796 hardcode_libdir_separator_CXX=:
9797
9798 # Archives containing C++ object files must be created using
9799 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9800 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9801
9802 ;;
9803 RCC)
9804 # Rational C++ 2.4.1
9805 # FIXME: insert proper C++ library support
9806 ld_shlibs_CXX=no
9807 ;;
9808 cxx)
9809 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9810 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'
9811
9812 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9813 hardcode_libdir_separator_CXX=:
9814
9815 # Commands to make compiler produce verbose output that lists
9816 # what "hidden" libraries, object files and flags are used when
9817 # linking a shared library.
9818 #
9819 # There doesn't appear to be a way to prevent this compiler from
9820 # explicitly linking system object files so we need to strip them
9821 # from the output so that they don't get included in the library
9822 # dependencies.
9823 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'
9824 ;;
9825 *)
9826 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9827 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9828 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'
9829
9830 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9831 hardcode_libdir_separator_CXX=:
9832
9833 # Commands to make compiler produce verbose output that lists
9834 # what "hidden" libraries, object files and flags are used when
9835 # linking a shared library.
9836 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9837
9838 else
9839 # FIXME: insert proper C++ library support
9840 ld_shlibs_CXX=no
9841 fi
9842 ;;
9843 esac
9844 ;;
9845 osf4* | osf5*)
9846 case $cc_basename in
9847 KCC)
9848 # Kuck and Associates, Inc. (KAI) C++ Compiler
9849
9850 # KCC will only create a shared library if the output file
9851 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9852 # to its proper name (with version) after linking.
9853 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'
9854
9855 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9856 hardcode_libdir_separator_CXX=:
9857
9858 # Archives containing C++ object files must be created using
9859 # the KAI C++ compiler.
9860 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
9861 ;;
9862 RCC)
9863 # Rational C++ 2.4.1
9864 # FIXME: insert proper C++ library support
9865 ld_shlibs_CXX=no
9866 ;;
9867 cxx)
9868 allow_undefined_flag_CXX=' -expect_unresolved \*'
9869 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'
9870 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
9871 echo "-hidden">> $lib.exp~
9872 $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~
9873 $rm $lib.exp'
9874
9875 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9876 hardcode_libdir_separator_CXX=:
9877
9878 # Commands to make compiler produce verbose output that lists
9879 # what "hidden" libraries, object files and flags are used when
9880 # linking a shared library.
9881 #
9882 # There doesn't appear to be a way to prevent this compiler from
9883 # explicitly linking system object files so we need to strip them
9884 # from the output so that they don't get included in the library
9885 # dependencies.
9886 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'
9887 ;;
9888 *)
9889 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9890 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9891 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'
9892
9893 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9894 hardcode_libdir_separator_CXX=:
9895
9896 # Commands to make compiler produce verbose output that lists
9897 # what "hidden" libraries, object files and flags are used when
9898 # linking a shared library.
9899 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9900
9901 else
9902 # FIXME: insert proper C++ library support
9903 ld_shlibs_CXX=no
9904 fi
9905 ;;
9906 esac
9907 ;;
9908 psos*)
9909 # FIXME: insert proper C++ library support
9910 ld_shlibs_CXX=no
9911 ;;
9912 sco*)
9913 archive_cmds_need_lc_CXX=no
9914 case $cc_basename in
9915 CC)
9916 # FIXME: insert proper C++ library support
9917 ld_shlibs_CXX=no
9918 ;;
9919 *)
9920 # FIXME: insert proper C++ library support
9921 ld_shlibs_CXX=no
9922 ;;
9923 esac
9924 ;;
9925 sunos4*)
9926 case $cc_basename in
9927 CC)
9928 # Sun C++ 4.x
9929 # FIXME: insert proper C++ library support
9930 ld_shlibs_CXX=no
9931 ;;
9932 lcc)
9933 # Lucid
9934 # FIXME: insert proper C++ library support
9935 ld_shlibs_CXX=no
9936 ;;
9937 *)
9938 # FIXME: insert proper C++ library support
9939 ld_shlibs_CXX=no
9940 ;;
9941 esac
9942 ;;
9943 solaris*)
9944 case $cc_basename in
9945 CC)
9946 # Sun C++ 4.2, 5.x and Centerline C++
9947 no_undefined_flag_CXX=' -zdefs'
9948 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9949 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9950 $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'
9951
9952 hardcode_libdir_flag_spec_CXX='-R$libdir'
9953 hardcode_shlibpath_var_CXX=no
9954 case $host_os in
9955 solaris2.0-5 | solaris2.0-5.*) ;;
9956 *)
9957 # The C++ compiler is used as linker so we must use $wl
9958 # flag to pass the commands to the underlying system
9959 # linker.
9960 # Supported since Solaris 2.6 (maybe 2.5.1?)
9961 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9962 ;;
9963 esac
9964 link_all_deplibs_CXX=yes
9965
9966 # Commands to make compiler produce verbose output that lists
9967 # what "hidden" libraries, object files and flags are used when
9968 # linking a shared library.
9969 #
9970 # There doesn't appear to be a way to prevent this compiler from
9971 # explicitly linking system object files so we need to strip them
9972 # from the output so that they don't get included in the library
9973 # dependencies.
9974 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'
9975
9976 # Archives containing C++ object files must be created using
9977 # "CC -xar", where "CC" is the Sun C++ compiler. This is
9978 # necessary to make sure instantiated templates are included
9979 # in the archive.
9980 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
9981 ;;
9982 gcx)
9983 # Green Hills C++ Compiler
9984 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9985
9986 # The C++ compiler must be used to create the archive.
9987 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
9988 ;;
9989 *)
9990 # GNU C++ compiler with Solaris linker
9991 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9992 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
9993 if $CC --version | grep -v '^2\.7' > /dev/null; then
9994 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9995 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9996 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
9997
9998 # Commands to make compiler produce verbose output that lists
9999 # what "hidden" libraries, object files and flags are used when
10000 # linking a shared library.
10001 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10002 else
10003 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10004 # platform.
10005 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10006 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10007 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10008
10009 # Commands to make compiler produce verbose output that lists
10010 # what "hidden" libraries, object files and flags are used when
10011 # linking a shared library.
10012 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10013 fi
10014
10015 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10016 fi
10017 ;;
10018 esac
10019 ;;
10020 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10021 archive_cmds_need_lc_CXX=no
10022 ;;
10023 tandem*)
10024 case $cc_basename in
10025 NCC)
10026 # NonStop-UX NCC 3.20
10027 # FIXME: insert proper C++ library support
10028 ld_shlibs_CXX=no
10029 ;;
10030 *)
10031 # FIXME: insert proper C++ library support
10032 ld_shlibs_CXX=no
10033 ;;
10034 esac
10035 ;;
10036 vxworks*)
10037 # FIXME: insert proper C++ library support
10038 ld_shlibs_CXX=no
10039 ;;
10040 *)
10041 # FIXME: insert proper C++ library support
10042 ld_shlibs_CXX=no
10043 ;;
10044esac
10045echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10046echo "${ECHO_T}$ld_shlibs_CXX" >&6
10047test "$ld_shlibs_CXX" = no && can_build_shared=no
10048
10049GCC_CXX="$GXX"
10050LD_CXX="$LD"
10051
John Criswell47fdd832003-07-14 16:52:07 +000010052
10053cat > conftest.$ac_ext <<EOF
10054class Foo
10055{
10056public:
10057 Foo (void) { a = 0; }
10058private:
10059 int a;
10060};
10061EOF
10062
10063if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10064 (eval $ac_compile) 2>&5
10065 ac_status=$?
10066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10067 (exit $ac_status); }; then
10068 # Parse the compiler output and extract the necessary
10069 # objects, libraries and library flags.
10070
10071 # Sentinel used to keep track of whether or not we are before
10072 # the conftest object file.
10073 pre_test_object_deps_done=no
10074
10075 # The `*' in the case matches for architectures that use `case' in
10076 # $output_verbose_cmd can trigger glob expansion during the loop
10077 # eval without this substitution.
10078 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10079
10080 for p in `eval $output_verbose_link_cmd`; do
10081 case $p in
10082
10083 -L* | -R* | -l*)
10084 # Some compilers place space between "-{L,R}" and the path.
10085 # Remove the space.
10086 if test $p = "-L" \
10087 || test $p = "-R"; then
10088 prev=$p
10089 continue
10090 else
10091 prev=
10092 fi
10093
10094 if test "$pre_test_object_deps_done" = no; then
10095 case $p in
10096 -L* | -R*)
10097 # Internal compiler library paths should come after those
10098 # provided the user. The postdeps already come after the
10099 # user supplied libs so there is no need to process them.
10100 if test -z "$compiler_lib_search_path_CXX"; then
10101 compiler_lib_search_path_CXX="${prev}${p}"
10102 else
10103 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10104 fi
10105 ;;
10106 # The "-l" case would never come before the object being
10107 # linked, so don't bother handling this case.
10108 esac
10109 else
10110 if test -z "$postdeps_CXX"; then
10111 postdeps_CXX="${prev}${p}"
10112 else
10113 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10114 fi
10115 fi
10116 ;;
10117
10118 *.$objext)
10119 # This assumes that the test object file only shows up
10120 # once in the compiler output.
10121 if test "$p" = "conftest.$objext"; then
10122 pre_test_object_deps_done=yes
10123 continue
10124 fi
10125
10126 if test "$pre_test_object_deps_done" = no; then
10127 if test -z "$predep_objects_CXX"; then
10128 predep_objects_CXX="$p"
10129 else
10130 predep_objects_CXX="$predep_objects_CXX $p"
10131 fi
10132 else
10133 if test -z "$postdep_objects_CXX"; then
10134 postdep_objects_CXX="$p"
10135 else
10136 postdep_objects_CXX="$postdep_objects_CXX $p"
10137 fi
10138 fi
10139 ;;
10140
10141 *) ;; # Ignore the rest.
10142
10143 esac
10144 done
10145
10146 # Clean up.
10147 rm -f a.out a.exe
10148else
10149 echo "libtool.m4: error: problem compiling CXX test program"
10150fi
10151
10152$rm -f confest.$objext
10153
10154case " $postdeps_CXX " in
10155*" -lc "*) archive_cmds_need_lc_CXX=no ;;
10156esac
10157
10158lt_prog_compiler_wl_CXX=
10159lt_prog_compiler_pic_CXX=
10160lt_prog_compiler_static_CXX=
10161
10162echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10163echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10164
10165 # C++ specific cases for pic, static, wl, etc.
10166 if test "$GXX" = yes; then
10167 lt_prog_compiler_wl_CXX='-Wl,'
10168 lt_prog_compiler_static_CXX='-static'
10169
10170 case $host_os in
10171 aix*)
10172 # All AIX code is PIC.
10173 if test "$host_cpu" = ia64; then
10174 # AIX 5 now supports IA64 processor
10175 lt_prog_compiler_static_CXX='-Bstatic'
10176 fi
10177 ;;
10178 amigaos*)
10179 # FIXME: we need at least 68020 code to build shared libraries, but
10180 # adding the `-m68020' flag to GCC prevents building anything better,
10181 # like `-m68040'.
10182 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10183 ;;
10184 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10185 # PIC is the default for these OSes.
10186 ;;
10187 mingw* | os2* | pw32*)
10188 # This hack is so that the source file can tell whether it is being
10189 # built for inclusion in a dll (and should export symbols for example).
10190 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10191 ;;
10192 darwin* | rhapsody*)
10193 # PIC is the default on this platform
10194 # Common symbols not allowed in MH_DYLIB files
10195 lt_prog_compiler_pic_CXX='-fno-common'
10196 ;;
10197 *djgpp*)
10198 # DJGPP does not support shared libraries at all
10199 lt_prog_compiler_pic_CXX=
10200 ;;
10201 sysv4*MP*)
10202 if test -d /usr/nec; then
10203 lt_prog_compiler_pic_CXX=-Kconform_pic
10204 fi
10205 ;;
10206 hpux*)
10207 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10208 # not for PA HP-UX.
10209 case "$host_cpu" in
10210 hppa*64*|ia64*)
10211 ;;
10212 *)
10213 lt_prog_compiler_pic_CXX='-fPIC'
10214 ;;
10215 esac
10216 ;;
10217 *)
10218 lt_prog_compiler_pic_CXX='-fPIC'
10219 ;;
10220 esac
10221 else
10222 case $host_os in
10223 aix4* | aix5*)
10224 # All AIX code is PIC.
10225 if test "$host_cpu" = ia64; then
10226 # AIX 5 now supports IA64 processor
10227 lt_prog_compiler_static_CXX='-Bstatic'
10228 else
10229 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10230 fi
10231 ;;
10232 chorus*)
10233 case $cc_basename in
10234 cxch68)
10235 # Green Hills C++ Compiler
10236 # _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"
10237 ;;
10238 esac
10239 ;;
10240 dgux*)
10241 case $cc_basename in
10242 ec++)
10243 lt_prog_compiler_pic_CXX='-KPIC'
10244 ;;
10245 ghcx)
10246 # Green Hills C++ Compiler
10247 lt_prog_compiler_pic_CXX='-pic'
10248 ;;
10249 *)
10250 ;;
10251 esac
10252 ;;
10253 freebsd*)
10254 # FreeBSD uses GNU C++
10255 ;;
10256 hpux9* | hpux10* | hpux11*)
10257 case $cc_basename in
10258 CC)
10259 lt_prog_compiler_wl_CXX='-Wl,'
10260 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10261 if test "$host_cpu" != ia64; then
10262 lt_prog_compiler_pic_CXX='+Z'
10263 fi
10264 ;;
10265 aCC)
10266 lt_prog_compiler_wl_CXX='-Wl,'
10267 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10268 case "$host_cpu" in
10269 hppa*64*|ia64*)
10270 # +Z the default
10271 ;;
10272 *)
10273 lt_prog_compiler_pic_CXX='+Z'
10274 ;;
10275 esac
10276 ;;
10277 *)
10278 ;;
10279 esac
10280 ;;
10281 irix5* | irix6* | nonstopux*)
10282 case $cc_basename in
10283 CC)
10284 lt_prog_compiler_wl_CXX='-Wl,'
10285 lt_prog_compiler_static_CXX='-non_shared'
10286 # CC pic flag -KPIC is the default.
10287 ;;
10288 *)
10289 ;;
10290 esac
10291 ;;
10292 linux*)
10293 case $cc_basename in
10294 KCC)
10295 # KAI C++ Compiler
10296 lt_prog_compiler_wl_CXX='--backend -Wl,'
10297 lt_prog_compiler_pic_CXX='-fPIC'
10298 ;;
10299 icpc)
10300 # Intel C++
10301 lt_prog_compiler_wl_CXX='-Wl,'
10302 lt_prog_compiler_pic_CXX='-KPIC'
10303 lt_prog_compiler_static_CXX='-static'
10304 ;;
10305 cxx)
10306 # Compaq C++
10307 # Make sure the PIC flag is empty. It appears that all Alpha
10308 # Linux and Compaq Tru64 Unix objects are PIC.
10309 lt_prog_compiler_pic_CXX=
10310 lt_prog_compiler_static_CXX='-non_shared'
10311 ;;
10312 *)
10313 ;;
10314 esac
10315 ;;
10316 lynxos*)
10317 ;;
10318 m88k*)
10319 ;;
10320 mvs*)
10321 case $cc_basename in
10322 cxx)
10323 lt_prog_compiler_pic_CXX='-W c,exportall'
10324 ;;
10325 *)
10326 ;;
10327 esac
10328 ;;
10329 netbsd*)
10330 ;;
10331 osf3* | osf4* | osf5*)
10332 case $cc_basename in
10333 KCC)
10334 lt_prog_compiler_wl_CXX='--backend -Wl,'
10335 ;;
10336 RCC)
10337 # Rational C++ 2.4.1
10338 lt_prog_compiler_pic_CXX='-pic'
10339 ;;
10340 cxx)
10341 # Digital/Compaq C++
10342 lt_prog_compiler_wl_CXX='-Wl,'
10343 # Make sure the PIC flag is empty. It appears that all Alpha
10344 # Linux and Compaq Tru64 Unix objects are PIC.
10345 lt_prog_compiler_pic_CXX=
10346 lt_prog_compiler_static_CXX='-non_shared'
10347 ;;
10348 *)
10349 ;;
10350 esac
10351 ;;
10352 psos*)
10353 ;;
10354 sco*)
10355 case $cc_basename in
10356 CC)
10357 lt_prog_compiler_pic_CXX='-fPIC'
10358 ;;
10359 *)
10360 ;;
10361 esac
10362 ;;
10363 solaris*)
10364 case $cc_basename in
10365 CC)
10366 # Sun C++ 4.2, 5.x and Centerline C++
10367 lt_prog_compiler_pic_CXX='-KPIC'
10368 lt_prog_compiler_static_CXX='-Bstatic'
10369 lt_prog_compiler_wl_CXX='-Qoption ld '
10370 ;;
10371 gcx)
10372 # Green Hills C++ Compiler
10373 lt_prog_compiler_pic_CXX='-PIC'
10374 ;;
10375 *)
10376 ;;
10377 esac
10378 ;;
10379 sunos4*)
10380 case $cc_basename in
10381 CC)
10382 # Sun C++ 4.x
10383 lt_prog_compiler_pic_CXX='-pic'
10384 lt_prog_compiler_static_CXX='-Bstatic'
10385 ;;
10386 lcc)
10387 # Lucid
10388 lt_prog_compiler_pic_CXX='-pic'
10389 ;;
10390 *)
10391 ;;
10392 esac
10393 ;;
10394 tandem*)
10395 case $cc_basename in
10396 NCC)
10397 # NonStop-UX NCC 3.20
10398 lt_prog_compiler_pic_CXX='-KPIC'
10399 ;;
10400 *)
10401 ;;
10402 esac
10403 ;;
10404 unixware*)
10405 ;;
10406 vxworks*)
10407 ;;
10408 *)
10409 lt_prog_compiler_can_build_shared_CXX=no
10410 ;;
10411 esac
10412 fi
10413
10414echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10415echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10416
10417#
10418# Check to make sure the PIC flag actually works.
10419#
10420if test -n "$lt_prog_compiler_pic_CXX"; then
10421 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10422echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10423if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10424 echo $ECHO_N "(cached) $ECHO_C" >&6
10425else
10426 lt_prog_compiler_pic_works_CXX=no
10427 ac_outfile=conftest.$ac_objext
10428 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10429 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10430 # Insert the option either (1) after the last *FLAGS variable, or
10431 # (2) before a word containing "conftest.", or (3) at the end.
10432 # Note that $ac_compile itself does not contain backslashes and begins
10433 # with a dollar sign (not a hyphen), so the echo should work correctly.
10434 # The option is referenced via a variable to avoid confusing sed.
10435 lt_compile=`echo "$ac_compile" | $SED \
10436 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10437 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10438 -e 's:$: $lt_compiler_flag:'`
Misha Brukmandb84a092004-06-22 15:35:32 +000010439 (eval echo "\"\$as_me:10439: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000010440 (eval "$lt_compile" 2>conftest.err)
10441 ac_status=$?
10442 cat conftest.err >&5
Misha Brukmandb84a092004-06-22 15:35:32 +000010443 echo "$as_me:10443: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000010444 if (exit $ac_status) && test -s "$ac_outfile"; then
10445 # The compiler can only warn and ignore the option if not recognized
10446 # So say no if there are warnings
10447 if test ! -s conftest.err; then
10448 lt_prog_compiler_pic_works_CXX=yes
10449 fi
10450 fi
10451 $rm conftest*
10452
10453fi
10454echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10455echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10456
10457if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10458 case $lt_prog_compiler_pic_CXX in
10459 "" | " "*) ;;
10460 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10461 esac
10462else
10463 lt_prog_compiler_pic_CXX=
10464 lt_prog_compiler_can_build_shared_CXX=no
10465fi
10466
10467fi
10468case "$host_os" in
10469 # For platforms which do not support PIC, -DPIC is meaningless:
10470 *djgpp*)
10471 lt_prog_compiler_pic_CXX=
10472 ;;
10473 *)
10474 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10475 ;;
10476esac
10477
10478echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10479echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10480if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10481 echo $ECHO_N "(cached) $ECHO_C" >&6
10482else
10483 lt_cv_prog_compiler_c_o_CXX=no
10484 $rm -r conftest 2>/dev/null
10485 mkdir conftest
10486 cd conftest
10487 mkdir out
10488 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10489
10490 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
10491 # that will create temporary files in the current directory regardless of
10492 # the output directory. Thus, making CWD read-only will cause this test
10493 # to fail, enabling locking or at least warning the user not to do parallel
10494 # builds.
10495 chmod -w .
10496
10497 lt_compiler_flag="-o out/conftest2.$ac_objext"
10498 # Insert the option either (1) after the last *FLAGS variable, or
10499 # (2) before a word containing "conftest.", or (3) at the end.
10500 # Note that $ac_compile itself does not contain backslashes and begins
10501 # with a dollar sign (not a hyphen), so the echo should work correctly.
10502 lt_compile=`echo "$ac_compile" | $SED \
10503 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10504 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10505 -e 's:$: $lt_compiler_flag:'`
Misha Brukmandb84a092004-06-22 15:35:32 +000010506 (eval echo "\"\$as_me:10506: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000010507 (eval "$lt_compile" 2>out/conftest.err)
10508 ac_status=$?
10509 cat out/conftest.err >&5
Misha Brukmandb84a092004-06-22 15:35:32 +000010510 echo "$as_me:10510: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000010511 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10512 then
10513 # The compiler can only warn and ignore the option if not recognized
10514 # So say no if there are warnings
10515 if test ! -s out/conftest.err; then
10516 lt_cv_prog_compiler_c_o_CXX=yes
10517 fi
10518 fi
10519 chmod u+w .
10520 $rm conftest* out/*
10521 rmdir out
10522 cd ..
10523 rmdir conftest
10524 $rm conftest*
10525
10526fi
10527echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10528echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10529
10530
10531hard_links="nottested"
10532if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10533 # do not overwrite the value of need_locks provided by the user
10534 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10535echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10536 hard_links=yes
10537 $rm conftest*
10538 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10539 touch conftest.a
10540 ln conftest.a conftest.b 2>&5 || hard_links=no
10541 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10542 echo "$as_me:$LINENO: result: $hard_links" >&5
10543echo "${ECHO_T}$hard_links" >&6
10544 if test "$hard_links" = no; then
10545 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10546echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10547 need_locks=warn
10548 fi
10549else
10550 need_locks=no
10551fi
10552
10553echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10554echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10555
10556 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10557 case $host_os in
10558 aix4* | aix5*)
10559 # If we're using GNU nm, then we don't want the "-C" option.
10560 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10561 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10562 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'
10563 else
10564 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'
10565 fi
10566 ;;
10567 pw32*)
10568 export_symbols_cmds_CXX="$ltdll_cmds"
10569 ;;
10570 cygwin* | mingw*)
10571 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10572 ;;
10573 *)
10574 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10575 ;;
10576 esac
10577
10578echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10579echo "${ECHO_T}$ld_shlibs_CXX" >&6
10580test "$ld_shlibs_CXX" = no && can_build_shared=no
10581
10582variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10583if test "$GCC" = yes; then
10584 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10585fi
10586
10587#
10588# Do we need to explicitly link libc?
10589#
10590case "x$archive_cmds_need_lc_CXX" in
10591x|xyes)
10592 # Assume -lc should be added
10593 archive_cmds_need_lc_CXX=yes
10594
10595 if test "$enable_shared" = yes && test "$GCC" = yes; then
10596 case $archive_cmds_CXX in
10597 *'~'*)
10598 # FIXME: we may have to deal with multi-command sequences.
10599 ;;
10600 '$CC '*)
10601 # Test whether the compiler implicitly links with -lc since on some
10602 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10603 # to ld, don't add -lc before -lgcc.
10604 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10605echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10606 $rm conftest*
10607 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10608
10609 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10610 (eval $ac_compile) 2>&5
10611 ac_status=$?
10612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10613 (exit $ac_status); } 2>conftest.err; then
10614 soname=conftest
10615 lib=conftest
10616 libobjs=conftest.$ac_objext
10617 deplibs=
10618 wl=$lt_prog_compiler_wl_CXX
10619 compiler_flags=-v
10620 linker_flags=-v
10621 verstring=
10622 output_objdir=.
10623 libname=conftest
10624 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
10625 allow_undefined_flag_CXX=
10626 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10627 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10628 ac_status=$?
10629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10630 (exit $ac_status); }
10631 then
10632 archive_cmds_need_lc_CXX=no
10633 else
10634 archive_cmds_need_lc_CXX=yes
10635 fi
10636 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
10637 else
10638 cat conftest.err 1>&5
10639 fi
10640 $rm conftest*
10641 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
10642echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
10643 ;;
10644 esac
10645 fi
10646 ;;
10647esac
10648
10649echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10650echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10651hardcode_action_CXX=
10652if test -n "$hardcode_libdir_flag_spec_CXX" || \
10653 test -n "$runpath_var CXX" || \
10654 test "X$hardcode_automatic_CXX"="Xyes" ; then
10655
10656 # We can hardcode non-existant directories.
10657 if test "$hardcode_direct_CXX" != no &&
10658 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10659 # have to relink, otherwise we might link with an installed library
10660 # when we should be linking with a yet-to-be-installed one
10661 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
10662 test "$hardcode_minus_L_CXX" != no; then
10663 # Linking always hardcodes the temporary library directory.
10664 hardcode_action_CXX=relink
10665 else
10666 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10667 hardcode_action_CXX=immediate
10668 fi
10669else
10670 # We cannot hardcode anything, or else we can only hardcode existing
10671 # directories.
10672 hardcode_action_CXX=unsupported
10673fi
10674echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
10675echo "${ECHO_T}$hardcode_action_CXX" >&6
10676
10677if test "$hardcode_action_CXX" = relink; then
10678 # Fast installation is not supported
10679 enable_fast_install=no
10680elif test "$shlibpath_overrides_runpath" = yes ||
10681 test "$enable_shared" = no; then
10682 # Fast installation is not necessary
10683 enable_fast_install=needless
10684fi
10685
10686striplib=
10687old_striplib=
10688echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10689echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10690if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10691 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10692 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10693 echo "$as_me:$LINENO: result: yes" >&5
10694echo "${ECHO_T}yes" >&6
10695else
10696# FIXME - insert some real tests, host_os isn't really good enough
10697 case $host_os in
10698 darwin*)
10699 if test -n "$STRIP" ; then
10700 striplib="$STRIP -x"
10701 echo "$as_me:$LINENO: result: yes" >&5
10702echo "${ECHO_T}yes" >&6
10703 else
10704 echo "$as_me:$LINENO: result: no" >&5
10705echo "${ECHO_T}no" >&6
10706fi
10707 ;;
10708 *)
10709 echo "$as_me:$LINENO: result: no" >&5
10710echo "${ECHO_T}no" >&6
10711 ;;
10712 esac
10713fi
10714
10715echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10716echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10717library_names_spec=
10718libname_spec='lib$name'
10719soname_spec=
10720shrext=".so"
10721postinstall_cmds=
10722postuninstall_cmds=
10723finish_cmds=
10724finish_eval=
10725shlibpath_var=
10726shlibpath_overrides_runpath=unknown
10727version_type=none
10728dynamic_linker="$host_os ld.so"
10729sys_lib_dlsearch_path_spec="/lib /usr/lib"
10730if test "$GCC" = yes; then
10731 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10732 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10733 # if the path contains ";" then we assume it to be the separator
10734 # otherwise default to the standard path separator (i.e. ":") - it is
10735 # assumed that no part of a normal pathname contains ";" but that should
10736 # okay in the real world where ";" in dirpaths is itself problematic.
10737 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10738 else
10739 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10740 fi
10741else
10742 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10743fi
10744need_lib_prefix=unknown
10745hardcode_into_libs=no
10746
10747# when you set need_version to no, make sure it does not cause -set_version
10748# flags to be left without arguments
10749need_version=unknown
10750
10751case $host_os in
10752aix3*)
10753 version_type=linux
10754 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10755 shlibpath_var=LIBPATH
10756
10757 # AIX 3 has no versioning support, so we append a major version to the name.
10758 soname_spec='${libname}${release}${shared_ext}$major'
10759 ;;
10760
10761aix4* | aix5*)
10762 version_type=linux
10763 need_lib_prefix=no
10764 need_version=no
10765 hardcode_into_libs=yes
10766 if test "$host_cpu" = ia64; then
10767 # AIX 5 supports IA64
10768 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10769 shlibpath_var=LD_LIBRARY_PATH
10770 else
10771 # With GCC up to 2.95.x, collect2 would create an import file
10772 # for dependence libraries. The import file would start with
10773 # the line `#! .'. This would cause the generated library to
10774 # depend on `.', always an invalid library. This was fixed in
10775 # development snapshots of GCC prior to 3.0.
10776 case $host_os in
10777 aix4 | aix4.[01] | aix4.[01].*)
10778 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10779 echo ' yes '
10780 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10781 :
10782 else
10783 can_build_shared=no
10784 fi
10785 ;;
10786 esac
10787 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10788 # soname into executable. Probably we can add versioning support to
10789 # collect2, so additional links can be useful in future.
10790 if test "$aix_use_runtimelinking" = yes; then
10791 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10792 # instead of lib<name>.a to let people know that these are not
10793 # typical AIX shared libraries.
10794 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10795 else
10796 # We preserve .a as extension for shared libraries through AIX4.2
10797 # and later when we are not doing run time linking.
10798 library_names_spec='${libname}${release}.a $libname.a'
10799 soname_spec='${libname}${release}${shared_ext}$major'
10800 fi
10801 shlibpath_var=LIBPATH
10802 fi
10803 ;;
10804
10805amigaos*)
10806 library_names_spec='$libname.ixlibrary $libname.a'
10807 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10808 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'
10809 ;;
10810
10811beos*)
10812 library_names_spec='${libname}${shared_ext}'
10813 dynamic_linker="$host_os ld.so"
10814 shlibpath_var=LIBRARY_PATH
10815 ;;
10816
10817bsdi4*)
10818 version_type=linux
10819 need_version=no
10820 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10821 soname_spec='${libname}${release}${shared_ext}$major'
10822 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10823 shlibpath_var=LD_LIBRARY_PATH
10824 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10825 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10826 # the default ld.so.conf also contains /usr/contrib/lib and
10827 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10828 # libtool to hard-code these into programs
10829 ;;
10830
10831cygwin* | mingw* | pw32*)
10832 version_type=windows
10833 shrext=".dll"
10834 need_version=no
10835 need_lib_prefix=no
10836
10837 case $GCC,$host_os in
10838 yes,cygwin* | yes,mingw* | yes,pw32*)
10839 library_names_spec='$libname.dll.a'
10840 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10841 postinstall_cmds='base_file=`basename \${file}`~
10842 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10843 dldir=$destdir/`dirname \$dlpath`~
10844 test -d \$dldir || mkdir -p \$dldir~
10845 $install_prog $dir/$dlname \$dldir/$dlname'
10846 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10847 dlpath=$dir/\$dldll~
10848 $rm \$dlpath'
10849 shlibpath_overrides_runpath=yes
10850
10851 case $host_os in
10852 cygwin*)
10853 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10854 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10855 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
10856 ;;
10857 mingw*)
10858 # MinGW DLLs use traditional 'lib' prefix
10859 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10860 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10861 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10862 # It is most probably a Windows format PATH printed by
10863 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10864 # path with ; separators, and with drive letters. We can handle the
10865 # drive letters (cygwin fileutils understands them), so leave them,
10866 # especially as we might pass files found there to a mingw objdump,
10867 # which wouldn't understand a cygwinified path. Ahh.
10868 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10869 else
10870 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10871 fi
10872 ;;
10873 pw32*)
10874 # pw32 DLLs use 'pw' prefix rather than 'lib'
10875 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
10876 ;;
10877 esac
10878 ;;
10879
10880 *)
10881 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10882 ;;
10883 esac
10884 dynamic_linker='Win32 ld.exe'
10885 # FIXME: first we should search . and the directory the executable is in
10886 shlibpath_var=PATH
10887 ;;
10888
10889darwin* | rhapsody*)
10890 dynamic_linker="$host_os dyld"
10891 version_type=darwin
10892 need_lib_prefix=no
10893 need_version=no
10894 # FIXME: Relying on posixy $() will cause problems for
10895 # cross-compilation, but unfortunately the echo tests do not
10896 # yet detect zsh echo's removal of \ escapes.
10897 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10898 soname_spec='${libname}${release}${major}$shared_ext'
10899 shlibpath_overrides_runpath=yes
10900 shlibpath_var=DYLD_LIBRARY_PATH
10901 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
10902 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10903 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
10904 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"`
10905 fi
10906 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10907 ;;
10908
10909dgux*)
10910 version_type=linux
10911 need_lib_prefix=no
10912 need_version=no
10913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10914 soname_spec='${libname}${release}${shared_ext}$major'
10915 shlibpath_var=LD_LIBRARY_PATH
10916 ;;
10917
10918freebsd1*)
10919 dynamic_linker=no
10920 ;;
10921
10922freebsd*)
10923 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
10924 version_type=freebsd-$objformat
10925 case $version_type in
10926 freebsd-elf*)
10927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10928 need_version=no
10929 need_lib_prefix=no
10930 ;;
10931 freebsd-*)
10932 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10933 need_version=yes
10934 ;;
10935 esac
10936 shlibpath_var=LD_LIBRARY_PATH
10937 case $host_os in
10938 freebsd2*)
10939 shlibpath_overrides_runpath=yes
10940 ;;
10941 freebsd3.01* | freebsdelf3.01*)
10942 shlibpath_overrides_runpath=yes
10943 hardcode_into_libs=yes
10944 ;;
10945 *) # from 3.2 on
10946 shlibpath_overrides_runpath=no
10947 hardcode_into_libs=yes
10948 ;;
10949 esac
10950 ;;
10951
10952gnu*)
10953 version_type=linux
10954 need_lib_prefix=no
10955 need_version=no
10956 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10957 soname_spec='${libname}${release}${shared_ext}$major'
10958 shlibpath_var=LD_LIBRARY_PATH
10959 hardcode_into_libs=yes
10960 ;;
10961
10962hpux9* | hpux10* | hpux11*)
10963 # Give a soname corresponding to the major version so that dld.sl refuses to
10964 # link against other versions.
10965 version_type=sunos
10966 need_lib_prefix=no
10967 need_version=no
10968 case "$host_cpu" in
10969 ia64*)
10970 shrext='.so'
10971 hardcode_into_libs=yes
10972 dynamic_linker="$host_os dld.so"
10973 shlibpath_var=LD_LIBRARY_PATH
10974 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10975 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10976 soname_spec='${libname}${release}${shared_ext}$major'
10977 if test "X$HPUX_IA64_MODE" = X32; then
10978 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10979 else
10980 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10981 fi
10982 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10983 ;;
10984 hppa*64*)
10985 shrext='.sl'
10986 hardcode_into_libs=yes
10987 dynamic_linker="$host_os dld.sl"
10988 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10989 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10991 soname_spec='${libname}${release}${shared_ext}$major'
10992 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10993 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10994 ;;
10995 *)
10996 shrext='.sl'
10997 dynamic_linker="$host_os dld.sl"
10998 shlibpath_var=SHLIB_PATH
10999 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11000 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11001 soname_spec='${libname}${release}${shared_ext}$major'
11002 ;;
11003 esac
11004 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11005 postinstall_cmds='chmod 555 $lib'
11006 ;;
11007
11008irix5* | irix6* | nonstopux*)
11009 case $host_os in
11010 nonstopux*) version_type=nonstopux ;;
11011 *)
11012 if test "$lt_cv_prog_gnu_ld" = yes; then
11013 version_type=linux
11014 else
11015 version_type=irix
11016 fi ;;
11017 esac
11018 need_lib_prefix=no
11019 need_version=no
11020 soname_spec='${libname}${release}${shared_ext}$major'
11021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11022 case $host_os in
11023 irix5* | nonstopux*)
11024 libsuff= shlibsuff=
11025 ;;
11026 *)
11027 case $LD in # libtool.m4 will add one of these switches to LD
11028 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11029 libsuff= shlibsuff= libmagic=32-bit;;
11030 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11031 libsuff=32 shlibsuff=N32 libmagic=N32;;
11032 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11033 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11034 *) libsuff= shlibsuff= libmagic=never-match;;
11035 esac
11036 ;;
11037 esac
11038 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11039 shlibpath_overrides_runpath=no
11040 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11041 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11042 hardcode_into_libs=yes
11043 ;;
11044
11045# No shared lib support for Linux oldld, aout, or coff.
11046linux*oldld* | linux*aout* | linux*coff*)
11047 dynamic_linker=no
11048 ;;
11049
11050# This must be Linux ELF.
11051linux*)
11052 version_type=linux
11053 need_lib_prefix=no
11054 need_version=no
11055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11056 soname_spec='${libname}${release}${shared_ext}$major'
11057 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11058 shlibpath_var=LD_LIBRARY_PATH
11059 shlibpath_overrides_runpath=no
11060 # This implies no fast_install, which is unacceptable.
11061 # Some rework will be needed to allow for fast_install
11062 # before this can be enabled.
11063 hardcode_into_libs=yes
11064
11065 # We used to test for /lib/ld.so.1 and disable shared libraries on
11066 # powerpc, because MkLinux only supported shared libraries with the
11067 # GNU dynamic linker. Since this was broken with cross compilers,
11068 # most powerpc-linux boxes support dynamic linking these days and
11069 # people can always --disable-shared, the test was removed, and we
11070 # assume the GNU/Linux dynamic linker is in use.
11071 dynamic_linker='GNU/Linux ld.so'
11072 ;;
11073
11074netbsd*)
11075 version_type=sunos
11076 need_lib_prefix=no
11077 need_version=no
11078 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11080 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11081 dynamic_linker='NetBSD (a.out) ld.so'
11082 else
11083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
11084 soname_spec='${libname}${release}${shared_ext}$major'
11085 dynamic_linker='NetBSD ld.elf_so'
11086 fi
11087 shlibpath_var=LD_LIBRARY_PATH
11088 shlibpath_overrides_runpath=yes
11089 hardcode_into_libs=yes
11090 ;;
11091
11092newsos6)
11093 version_type=linux
11094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11095 shlibpath_var=LD_LIBRARY_PATH
11096 shlibpath_overrides_runpath=yes
11097 ;;
11098
11099nto-qnx)
11100 version_type=linux
11101 need_lib_prefix=no
11102 need_version=no
11103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11104 soname_spec='${libname}${release}${shared_ext}$major'
11105 shlibpath_var=LD_LIBRARY_PATH
11106 shlibpath_overrides_runpath=yes
11107 ;;
11108
11109openbsd*)
11110 version_type=sunos
11111 need_lib_prefix=no
11112 need_version=no
11113 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11114 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11115 shlibpath_var=LD_LIBRARY_PATH
11116 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11117 case $host_os in
11118 openbsd2.[89] | openbsd2.[89].*)
11119 shlibpath_overrides_runpath=no
11120 ;;
11121 *)
11122 shlibpath_overrides_runpath=yes
11123 ;;
11124 esac
11125 else
11126 shlibpath_overrides_runpath=yes
11127 fi
11128 ;;
11129
11130os2*)
11131 libname_spec='$name'
11132 shrext=".dll"
11133 need_lib_prefix=no
11134 library_names_spec='$libname${shared_ext} $libname.a'
11135 dynamic_linker='OS/2 ld.exe'
11136 shlibpath_var=LIBPATH
11137 ;;
11138
11139osf3* | osf4* | osf5*)
11140 version_type=osf
11141 need_lib_prefix=no
11142 need_version=no
11143 soname_spec='${libname}${release}${shared_ext}$major'
11144 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11145 shlibpath_var=LD_LIBRARY_PATH
11146 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11147 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11148 ;;
11149
11150sco3.2v5*)
11151 version_type=osf
11152 soname_spec='${libname}${release}${shared_ext}$major'
11153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11154 shlibpath_var=LD_LIBRARY_PATH
11155 ;;
11156
11157solaris*)
11158 version_type=linux
11159 need_lib_prefix=no
11160 need_version=no
11161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11162 soname_spec='${libname}${release}${shared_ext}$major'
11163 shlibpath_var=LD_LIBRARY_PATH
11164 shlibpath_overrides_runpath=yes
11165 hardcode_into_libs=yes
11166 # ldd complains unless libraries are executable
11167 postinstall_cmds='chmod +x $lib'
11168 ;;
11169
11170sunos4*)
11171 version_type=sunos
11172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11173 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11174 shlibpath_var=LD_LIBRARY_PATH
11175 shlibpath_overrides_runpath=yes
11176 if test "$with_gnu_ld" = yes; then
11177 need_lib_prefix=no
11178 fi
11179 need_version=yes
11180 ;;
11181
11182sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11183 version_type=linux
11184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11185 soname_spec='${libname}${release}${shared_ext}$major'
11186 shlibpath_var=LD_LIBRARY_PATH
11187 case $host_vendor in
11188 sni)
11189 shlibpath_overrides_runpath=no
11190 need_lib_prefix=no
11191 export_dynamic_flag_spec='${wl}-Blargedynsym'
11192 runpath_var=LD_RUN_PATH
11193 ;;
11194 siemens)
11195 need_lib_prefix=no
11196 ;;
11197 motorola)
11198 need_lib_prefix=no
11199 need_version=no
11200 shlibpath_overrides_runpath=no
11201 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11202 ;;
11203 esac
11204 ;;
11205
11206sysv4*MP*)
11207 if test -d /usr/nec ;then
11208 version_type=linux
11209 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11210 soname_spec='$libname${shared_ext}.$major'
11211 shlibpath_var=LD_LIBRARY_PATH
11212 fi
11213 ;;
11214
11215uts4*)
11216 version_type=linux
11217 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11218 soname_spec='${libname}${release}${shared_ext}$major'
11219 shlibpath_var=LD_LIBRARY_PATH
11220 ;;
11221
11222*)
11223 dynamic_linker=no
11224 ;;
11225esac
11226echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11227echo "${ECHO_T}$dynamic_linker" >&6
11228test "$dynamic_linker" = no && can_build_shared=no
11229
11230if test "x$enable_dlopen" != xyes; then
11231 enable_dlopen=unknown
11232 enable_dlopen_self=unknown
11233 enable_dlopen_self_static=unknown
11234else
11235 lt_cv_dlopen=no
11236 lt_cv_dlopen_libs=
11237
11238 case $host_os in
11239 beos*)
11240 lt_cv_dlopen="load_add_on"
11241 lt_cv_dlopen_libs=
11242 lt_cv_dlopen_self=yes
11243 ;;
11244
11245 mingw* | pw32*)
11246 lt_cv_dlopen="LoadLibrary"
11247 lt_cv_dlopen_libs=
11248 ;;
11249
11250 cygwin*)
11251 lt_cv_dlopen="dlopen"
11252 lt_cv_dlopen_libs=
11253 ;;
11254
11255 darwin*)
11256 # if libdl is installed we need to link against it
11257 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11258echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11259if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11260 echo $ECHO_N "(cached) $ECHO_C" >&6
11261else
11262 ac_check_lib_save_LIBS=$LIBS
11263LIBS="-ldl $LIBS"
11264cat >conftest.$ac_ext <<_ACEOF
11265#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011266/* confdefs.h. */
11267_ACEOF
11268cat confdefs.h >>conftest.$ac_ext
11269cat >>conftest.$ac_ext <<_ACEOF
11270/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011271
11272/* Override any gcc2 internal prototype to avoid an error. */
11273#ifdef __cplusplus
11274extern "C"
11275#endif
11276/* We use char because int might match the return type of a gcc2
11277 builtin and then its argument prototype would still apply. */
11278char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011279int
11280main ()
11281{
11282dlopen ();
11283 ;
11284 return 0;
11285}
11286_ACEOF
11287rm -f conftest.$ac_objext conftest$ac_exeext
11288if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11289 (eval $ac_link) 2>&5
11290 ac_status=$?
11291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11292 (exit $ac_status); } &&
11293 { ac_try='test -s conftest$ac_exeext'
11294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11295 (eval $ac_try) 2>&5
11296 ac_status=$?
11297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11298 (exit $ac_status); }; }; then
11299 ac_cv_lib_dl_dlopen=yes
11300else
11301 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011302sed 's/^/| /' conftest.$ac_ext >&5
11303
John Criswell47fdd832003-07-14 16:52:07 +000011304ac_cv_lib_dl_dlopen=no
11305fi
11306rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11307LIBS=$ac_check_lib_save_LIBS
11308fi
11309echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11310echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11311if test $ac_cv_lib_dl_dlopen = yes; then
11312 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11313else
11314
11315 lt_cv_dlopen="dyld"
11316 lt_cv_dlopen_libs=
11317 lt_cv_dlopen_self=yes
11318
11319fi
11320
11321 ;;
11322
11323 *)
11324 echo "$as_me:$LINENO: checking for shl_load" >&5
11325echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11326if test "${ac_cv_func_shl_load+set}" = set; then
11327 echo $ECHO_N "(cached) $ECHO_C" >&6
11328else
11329 cat >conftest.$ac_ext <<_ACEOF
11330#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011331/* confdefs.h. */
11332_ACEOF
11333cat confdefs.h >>conftest.$ac_ext
11334cat >>conftest.$ac_ext <<_ACEOF
11335/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011336/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000011337 which can conflict with char shl_load (); below.
11338 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11339 <limits.h> exists even on freestanding compilers. */
11340#ifdef __STDC__
11341# include <limits.h>
11342#else
11343# include <assert.h>
11344#endif
John Criswell47fdd832003-07-14 16:52:07 +000011345/* Override any gcc2 internal prototype to avoid an error. */
11346#ifdef __cplusplus
11347extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000011348{
John Criswell47fdd832003-07-14 16:52:07 +000011349#endif
11350/* We use char because int might match the return type of a gcc2
11351 builtin and then its argument prototype would still apply. */
11352char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000011353/* The GNU C library defines this for functions which it implements
11354 to always fail with ENOSYS. Some functions are actually named
11355 something starting with __ and the normal name is an alias. */
11356#if defined (__stub_shl_load) || defined (__stub___shl_load)
11357choke me
11358#else
John Criswell0c38eaf2003-09-10 15:17:25 +000011359char (*f) () = shl_load;
11360#endif
11361#ifdef __cplusplus
11362}
John Criswell47fdd832003-07-14 16:52:07 +000011363#endif
11364
John Criswell0c38eaf2003-09-10 15:17:25 +000011365int
11366main ()
11367{
11368return f != shl_load;
John Criswell47fdd832003-07-14 16:52:07 +000011369 ;
11370 return 0;
11371}
11372_ACEOF
11373rm -f conftest.$ac_objext conftest$ac_exeext
11374if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11375 (eval $ac_link) 2>&5
11376 ac_status=$?
11377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11378 (exit $ac_status); } &&
11379 { ac_try='test -s conftest$ac_exeext'
11380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11381 (eval $ac_try) 2>&5
11382 ac_status=$?
11383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11384 (exit $ac_status); }; }; then
11385 ac_cv_func_shl_load=yes
11386else
11387 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011388sed 's/^/| /' conftest.$ac_ext >&5
11389
John Criswell47fdd832003-07-14 16:52:07 +000011390ac_cv_func_shl_load=no
11391fi
11392rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11393fi
11394echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11395echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11396if test $ac_cv_func_shl_load = yes; then
11397 lt_cv_dlopen="shl_load"
11398else
11399 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11400echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11401if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11402 echo $ECHO_N "(cached) $ECHO_C" >&6
11403else
11404 ac_check_lib_save_LIBS=$LIBS
11405LIBS="-ldld $LIBS"
11406cat >conftest.$ac_ext <<_ACEOF
11407#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011408/* confdefs.h. */
11409_ACEOF
11410cat confdefs.h >>conftest.$ac_ext
11411cat >>conftest.$ac_ext <<_ACEOF
11412/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011413
11414/* Override any gcc2 internal prototype to avoid an error. */
11415#ifdef __cplusplus
11416extern "C"
11417#endif
11418/* We use char because int might match the return type of a gcc2
11419 builtin and then its argument prototype would still apply. */
11420char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000011421int
11422main ()
11423{
11424shl_load ();
11425 ;
11426 return 0;
11427}
11428_ACEOF
11429rm -f conftest.$ac_objext conftest$ac_exeext
11430if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11431 (eval $ac_link) 2>&5
11432 ac_status=$?
11433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11434 (exit $ac_status); } &&
11435 { ac_try='test -s conftest$ac_exeext'
11436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11437 (eval $ac_try) 2>&5
11438 ac_status=$?
11439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11440 (exit $ac_status); }; }; then
11441 ac_cv_lib_dld_shl_load=yes
11442else
11443 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011444sed 's/^/| /' conftest.$ac_ext >&5
11445
John Criswell47fdd832003-07-14 16:52:07 +000011446ac_cv_lib_dld_shl_load=no
11447fi
11448rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11449LIBS=$ac_check_lib_save_LIBS
11450fi
11451echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11452echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11453if test $ac_cv_lib_dld_shl_load = yes; then
11454 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11455else
11456 echo "$as_me:$LINENO: checking for dlopen" >&5
11457echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11458if test "${ac_cv_func_dlopen+set}" = set; then
11459 echo $ECHO_N "(cached) $ECHO_C" >&6
11460else
11461 cat >conftest.$ac_ext <<_ACEOF
11462#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011463/* confdefs.h. */
11464_ACEOF
11465cat confdefs.h >>conftest.$ac_ext
11466cat >>conftest.$ac_ext <<_ACEOF
11467/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011468/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000011469 which can conflict with char dlopen (); below.
11470 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11471 <limits.h> exists even on freestanding compilers. */
11472#ifdef __STDC__
11473# include <limits.h>
11474#else
11475# include <assert.h>
11476#endif
John Criswell47fdd832003-07-14 16:52:07 +000011477/* Override any gcc2 internal prototype to avoid an error. */
11478#ifdef __cplusplus
11479extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000011480{
John Criswell47fdd832003-07-14 16:52:07 +000011481#endif
11482/* We use char because int might match the return type of a gcc2
11483 builtin and then its argument prototype would still apply. */
11484char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011485/* The GNU C library defines this for functions which it implements
11486 to always fail with ENOSYS. Some functions are actually named
11487 something starting with __ and the normal name is an alias. */
11488#if defined (__stub_dlopen) || defined (__stub___dlopen)
11489choke me
11490#else
John Criswell0c38eaf2003-09-10 15:17:25 +000011491char (*f) () = dlopen;
11492#endif
11493#ifdef __cplusplus
11494}
John Criswell47fdd832003-07-14 16:52:07 +000011495#endif
11496
John Criswell0c38eaf2003-09-10 15:17:25 +000011497int
11498main ()
11499{
11500return f != dlopen;
John Criswell47fdd832003-07-14 16:52:07 +000011501 ;
11502 return 0;
11503}
11504_ACEOF
11505rm -f conftest.$ac_objext conftest$ac_exeext
11506if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11507 (eval $ac_link) 2>&5
11508 ac_status=$?
11509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11510 (exit $ac_status); } &&
11511 { ac_try='test -s conftest$ac_exeext'
11512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11513 (eval $ac_try) 2>&5
11514 ac_status=$?
11515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11516 (exit $ac_status); }; }; then
11517 ac_cv_func_dlopen=yes
11518else
11519 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011520sed 's/^/| /' conftest.$ac_ext >&5
11521
John Criswell47fdd832003-07-14 16:52:07 +000011522ac_cv_func_dlopen=no
11523fi
11524rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11525fi
11526echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11527echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11528if test $ac_cv_func_dlopen = yes; then
11529 lt_cv_dlopen="dlopen"
11530else
11531 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11532echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11533if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11534 echo $ECHO_N "(cached) $ECHO_C" >&6
11535else
11536 ac_check_lib_save_LIBS=$LIBS
11537LIBS="-ldl $LIBS"
11538cat >conftest.$ac_ext <<_ACEOF
11539#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011540/* confdefs.h. */
11541_ACEOF
11542cat confdefs.h >>conftest.$ac_ext
11543cat >>conftest.$ac_ext <<_ACEOF
11544/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011545
11546/* Override any gcc2 internal prototype to avoid an error. */
11547#ifdef __cplusplus
11548extern "C"
11549#endif
11550/* We use char because int might match the return type of a gcc2
11551 builtin and then its argument prototype would still apply. */
11552char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011553int
11554main ()
11555{
11556dlopen ();
11557 ;
11558 return 0;
11559}
11560_ACEOF
11561rm -f conftest.$ac_objext conftest$ac_exeext
11562if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11563 (eval $ac_link) 2>&5
11564 ac_status=$?
11565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11566 (exit $ac_status); } &&
11567 { ac_try='test -s conftest$ac_exeext'
11568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11569 (eval $ac_try) 2>&5
11570 ac_status=$?
11571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11572 (exit $ac_status); }; }; then
11573 ac_cv_lib_dl_dlopen=yes
11574else
11575 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011576sed 's/^/| /' conftest.$ac_ext >&5
11577
John Criswell47fdd832003-07-14 16:52:07 +000011578ac_cv_lib_dl_dlopen=no
11579fi
11580rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11581LIBS=$ac_check_lib_save_LIBS
11582fi
11583echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11584echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11585if test $ac_cv_lib_dl_dlopen = yes; then
11586 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11587else
11588 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11589echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11590if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11591 echo $ECHO_N "(cached) $ECHO_C" >&6
11592else
11593 ac_check_lib_save_LIBS=$LIBS
11594LIBS="-lsvld $LIBS"
11595cat >conftest.$ac_ext <<_ACEOF
11596#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011597/* confdefs.h. */
11598_ACEOF
11599cat confdefs.h >>conftest.$ac_ext
11600cat >>conftest.$ac_ext <<_ACEOF
11601/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011602
11603/* Override any gcc2 internal prototype to avoid an error. */
11604#ifdef __cplusplus
11605extern "C"
11606#endif
11607/* We use char because int might match the return type of a gcc2
11608 builtin and then its argument prototype would still apply. */
11609char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011610int
11611main ()
11612{
11613dlopen ();
11614 ;
11615 return 0;
11616}
11617_ACEOF
11618rm -f conftest.$ac_objext conftest$ac_exeext
11619if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11620 (eval $ac_link) 2>&5
11621 ac_status=$?
11622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11623 (exit $ac_status); } &&
11624 { ac_try='test -s conftest$ac_exeext'
11625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11626 (eval $ac_try) 2>&5
11627 ac_status=$?
11628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11629 (exit $ac_status); }; }; then
11630 ac_cv_lib_svld_dlopen=yes
11631else
11632 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011633sed 's/^/| /' conftest.$ac_ext >&5
11634
John Criswell47fdd832003-07-14 16:52:07 +000011635ac_cv_lib_svld_dlopen=no
11636fi
11637rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11638LIBS=$ac_check_lib_save_LIBS
11639fi
11640echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11641echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11642if test $ac_cv_lib_svld_dlopen = yes; then
11643 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11644else
11645 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11646echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
11647if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11648 echo $ECHO_N "(cached) $ECHO_C" >&6
11649else
11650 ac_check_lib_save_LIBS=$LIBS
11651LIBS="-ldld $LIBS"
11652cat >conftest.$ac_ext <<_ACEOF
11653#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011654/* confdefs.h. */
11655_ACEOF
11656cat confdefs.h >>conftest.$ac_ext
11657cat >>conftest.$ac_ext <<_ACEOF
11658/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011659
11660/* Override any gcc2 internal prototype to avoid an error. */
11661#ifdef __cplusplus
11662extern "C"
11663#endif
11664/* We use char because int might match the return type of a gcc2
11665 builtin and then its argument prototype would still apply. */
11666char dld_link ();
John Criswell47fdd832003-07-14 16:52:07 +000011667int
11668main ()
11669{
11670dld_link ();
11671 ;
11672 return 0;
11673}
11674_ACEOF
11675rm -f conftest.$ac_objext conftest$ac_exeext
11676if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11677 (eval $ac_link) 2>&5
11678 ac_status=$?
11679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11680 (exit $ac_status); } &&
11681 { ac_try='test -s conftest$ac_exeext'
11682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11683 (eval $ac_try) 2>&5
11684 ac_status=$?
11685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11686 (exit $ac_status); }; }; then
11687 ac_cv_lib_dld_dld_link=yes
11688else
11689 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011690sed 's/^/| /' conftest.$ac_ext >&5
11691
John Criswell47fdd832003-07-14 16:52:07 +000011692ac_cv_lib_dld_dld_link=no
11693fi
11694rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11695LIBS=$ac_check_lib_save_LIBS
11696fi
11697echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11698echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
11699if test $ac_cv_lib_dld_dld_link = yes; then
11700 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11701fi
11702
11703
11704fi
11705
11706
11707fi
11708
11709
11710fi
11711
11712
11713fi
11714
11715
11716fi
11717
11718 ;;
11719 esac
11720
11721 if test "x$lt_cv_dlopen" != xno; then
11722 enable_dlopen=yes
11723 else
11724 enable_dlopen=no
11725 fi
11726
11727 case $lt_cv_dlopen in
11728 dlopen)
11729 save_CPPFLAGS="$CPPFLAGS"
11730 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11731
11732 save_LDFLAGS="$LDFLAGS"
11733 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11734
11735 save_LIBS="$LIBS"
11736 LIBS="$lt_cv_dlopen_libs $LIBS"
11737
11738 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11739echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11740if test "${lt_cv_dlopen_self+set}" = set; then
11741 echo $ECHO_N "(cached) $ECHO_C" >&6
11742else
11743 if test "$cross_compiling" = yes; then :
11744 lt_cv_dlopen_self=cross
11745else
11746 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11747 lt_status=$lt_dlunknown
11748 cat > conftest.$ac_ext <<EOF
Misha Brukmandb84a092004-06-22 15:35:32 +000011749#line 11749 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000011750#include "confdefs.h"
11751
11752#if HAVE_DLFCN_H
11753#include <dlfcn.h>
11754#endif
11755
11756#include <stdio.h>
11757
11758#ifdef RTLD_GLOBAL
11759# define LT_DLGLOBAL RTLD_GLOBAL
11760#else
11761# ifdef DL_GLOBAL
11762# define LT_DLGLOBAL DL_GLOBAL
11763# else
11764# define LT_DLGLOBAL 0
11765# endif
11766#endif
11767
11768/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11769 find out it does not work in some platform. */
11770#ifndef LT_DLLAZY_OR_NOW
11771# ifdef RTLD_LAZY
11772# define LT_DLLAZY_OR_NOW RTLD_LAZY
11773# else
11774# ifdef DL_LAZY
11775# define LT_DLLAZY_OR_NOW DL_LAZY
11776# else
11777# ifdef RTLD_NOW
11778# define LT_DLLAZY_OR_NOW RTLD_NOW
11779# else
11780# ifdef DL_NOW
11781# define LT_DLLAZY_OR_NOW DL_NOW
11782# else
11783# define LT_DLLAZY_OR_NOW 0
11784# endif
11785# endif
11786# endif
11787# endif
11788#endif
11789
11790#ifdef __cplusplus
11791extern "C" void exit (int);
11792#endif
11793
11794void fnord() { int i=42;}
11795int main ()
11796{
11797 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11798 int status = $lt_dlunknown;
11799
11800 if (self)
11801 {
11802 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11803 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11804 /* dlclose (self); */
11805 }
11806
11807 exit (status);
11808}
11809EOF
11810 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11811 (eval $ac_link) 2>&5
11812 ac_status=$?
11813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11814 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11815 (./conftest; exit; ) 2>/dev/null
11816 lt_status=$?
11817 case x$lt_status in
11818 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11819 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11820 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
11821 esac
11822 else :
11823 # compilation failed
11824 lt_cv_dlopen_self=no
11825 fi
11826fi
11827rm -fr conftest*
11828
11829
11830fi
11831echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11832echo "${ECHO_T}$lt_cv_dlopen_self" >&6
11833
11834 if test "x$lt_cv_dlopen_self" = xyes; then
11835 LDFLAGS="$LDFLAGS $link_static_flag"
11836 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11837echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
11838if test "${lt_cv_dlopen_self_static+set}" = set; then
11839 echo $ECHO_N "(cached) $ECHO_C" >&6
11840else
11841 if test "$cross_compiling" = yes; then :
11842 lt_cv_dlopen_self_static=cross
11843else
11844 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11845 lt_status=$lt_dlunknown
11846 cat > conftest.$ac_ext <<EOF
Misha Brukmandb84a092004-06-22 15:35:32 +000011847#line 11847 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000011848#include "confdefs.h"
11849
11850#if HAVE_DLFCN_H
11851#include <dlfcn.h>
11852#endif
11853
11854#include <stdio.h>
11855
11856#ifdef RTLD_GLOBAL
11857# define LT_DLGLOBAL RTLD_GLOBAL
11858#else
11859# ifdef DL_GLOBAL
11860# define LT_DLGLOBAL DL_GLOBAL
11861# else
11862# define LT_DLGLOBAL 0
11863# endif
11864#endif
11865
11866/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11867 find out it does not work in some platform. */
11868#ifndef LT_DLLAZY_OR_NOW
11869# ifdef RTLD_LAZY
11870# define LT_DLLAZY_OR_NOW RTLD_LAZY
11871# else
11872# ifdef DL_LAZY
11873# define LT_DLLAZY_OR_NOW DL_LAZY
11874# else
11875# ifdef RTLD_NOW
11876# define LT_DLLAZY_OR_NOW RTLD_NOW
11877# else
11878# ifdef DL_NOW
11879# define LT_DLLAZY_OR_NOW DL_NOW
11880# else
11881# define LT_DLLAZY_OR_NOW 0
11882# endif
11883# endif
11884# endif
11885# endif
11886#endif
11887
11888#ifdef __cplusplus
11889extern "C" void exit (int);
11890#endif
11891
11892void fnord() { int i=42;}
11893int main ()
11894{
11895 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11896 int status = $lt_dlunknown;
11897
11898 if (self)
11899 {
11900 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11901 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11902 /* dlclose (self); */
11903 }
11904
11905 exit (status);
11906}
11907EOF
11908 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11909 (eval $ac_link) 2>&5
11910 ac_status=$?
11911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11912 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11913 (./conftest; exit; ) 2>/dev/null
11914 lt_status=$?
11915 case x$lt_status in
11916 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11917 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11918 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
11919 esac
11920 else :
11921 # compilation failed
11922 lt_cv_dlopen_self_static=no
11923 fi
11924fi
11925rm -fr conftest*
11926
11927
11928fi
11929echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11930echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
11931 fi
11932
11933 CPPFLAGS="$save_CPPFLAGS"
11934 LDFLAGS="$save_LDFLAGS"
11935 LIBS="$save_LIBS"
11936 ;;
11937 esac
11938
11939 case $lt_cv_dlopen_self in
11940 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11941 *) enable_dlopen_self=unknown ;;
11942 esac
11943
11944 case $lt_cv_dlopen_self_static in
11945 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11946 *) enable_dlopen_self_static=unknown ;;
11947 esac
11948fi
11949
11950
11951# The else clause should only fire when bootstrapping the
11952# libtool distribution, otherwise you forgot to ship ltmain.sh
11953# with your package, and you will get complaints that there are
11954# no rules to generate ltmain.sh.
11955if test -f "$ltmain"; then
11956 # See if we are running on zsh, and set the options which allow our commands through
11957 # without removal of \ escapes.
11958 if test -n "${ZSH_VERSION+set}" ; then
11959 setopt NO_GLOB_SUBST
11960 fi
11961 # Now quote all the things that may contain metacharacters while being
11962 # careful not to overquote the AC_SUBSTed values. We take copies of the
11963 # variables and quote the copies for generation of the libtool script.
11964 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
11965 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11966 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11967 deplibs_check_method reload_flag reload_cmds need_locks \
11968 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11969 lt_cv_sys_global_symbol_to_c_name_address \
11970 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11971 old_postinstall_cmds old_postuninstall_cmds \
11972 compiler_CXX \
11973 CC_CXX \
11974 LD_CXX \
11975 lt_prog_compiler_wl_CXX \
11976 lt_prog_compiler_pic_CXX \
11977 lt_prog_compiler_static_CXX \
11978 lt_prog_compiler_no_builtin_flag_CXX \
11979 export_dynamic_flag_spec_CXX \
11980 thread_safe_flag_spec_CXX \
11981 whole_archive_flag_spec_CXX \
11982 enable_shared_with_static_runtimes_CXX \
11983 old_archive_cmds_CXX \
11984 old_archive_from_new_cmds_CXX \
11985 predep_objects_CXX \
11986 postdep_objects_CXX \
11987 predeps_CXX \
11988 postdeps_CXX \
11989 compiler_lib_search_path_CXX \
11990 archive_cmds_CXX \
11991 archive_expsym_cmds_CXX \
11992 postinstall_cmds_CXX \
11993 postuninstall_cmds_CXX \
11994 old_archive_from_expsyms_cmds_CXX \
11995 allow_undefined_flag_CXX \
11996 no_undefined_flag_CXX \
11997 export_symbols_cmds_CXX \
11998 hardcode_libdir_flag_spec_CXX \
11999 hardcode_libdir_flag_spec_ld_CXX \
12000 hardcode_libdir_separator_CXX \
12001 hardcode_automatic_CXX \
12002 module_cmds_CXX \
12003 module_expsym_cmds_CXX \
12004 lt_cv_prog_compiler_c_o_CXX \
12005 exclude_expsyms_CXX \
12006 include_expsyms_CXX; do
12007
12008 case $var in
12009 old_archive_cmds_CXX | \
12010 old_archive_from_new_cmds_CXX | \
12011 archive_cmds_CXX | \
12012 archive_expsym_cmds_CXX | \
12013 module_cmds_CXX | \
12014 module_expsym_cmds_CXX | \
12015 old_archive_from_expsyms_cmds_CXX | \
12016 export_symbols_cmds_CXX | \
12017 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12018 postinstall_cmds | postuninstall_cmds | \
12019 old_postinstall_cmds | old_postuninstall_cmds | \
12020 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12021 # Double-quote double-evaled strings.
12022 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12023 ;;
12024 *)
12025 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12026 ;;
12027 esac
12028 done
12029
12030 case $lt_echo in
12031 *'\$0 --fallback-echo"')
12032 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12033 ;;
12034 esac
12035
12036cfgfile="$ofile"
12037
12038 cat <<__EOF__ >> "$cfgfile"
12039# ### BEGIN LIBTOOL TAG CONFIG: $tagname
12040
12041# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12042
12043# Shell to use when invoking shell scripts.
12044SHELL=$lt_SHELL
12045
12046# Whether or not to build shared libraries.
12047build_libtool_libs=$enable_shared
12048
12049# Whether or not to build static libraries.
12050build_old_libs=$enable_static
12051
12052# Whether or not to add -lc for building shared libraries.
12053build_libtool_need_lc=$archive_cmds_need_lc_CXX
12054
12055# Whether or not to disallow shared libs when runtime libs are static
12056allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12057
12058# Whether or not to optimize for fast installation.
12059fast_install=$enable_fast_install
12060
12061# The host system.
12062host_alias=$host_alias
12063host=$host
12064
12065# An echo program that does not interpret backslashes.
12066echo=$lt_echo
12067
12068# The archiver.
12069AR=$lt_AR
12070AR_FLAGS=$lt_AR_FLAGS
12071
12072# A C compiler.
12073LTCC=$lt_LTCC
12074
12075# A language-specific compiler.
12076CC=$lt_compiler_CXX
12077
12078# Is the compiler the GNU C compiler?
12079with_gcc=$GCC_CXX
12080
12081# An ERE matcher.
12082EGREP=$lt_EGREP
12083
12084# The linker used to build libraries.
12085LD=$lt_LD_CXX
12086
12087# Whether we need hard or soft links.
12088LN_S=$lt_LN_S
12089
12090# A BSD-compatible nm program.
12091NM=$lt_NM
12092
12093# A symbol stripping program
12094STRIP=$STRIP
12095
12096# Used to examine libraries when file_magic_cmd begins "file"
12097MAGIC_CMD=$MAGIC_CMD
12098
12099# Used on cygwin: DLL creation program.
12100DLLTOOL="$DLLTOOL"
12101
12102# Used on cygwin: object dumper.
12103OBJDUMP="$OBJDUMP"
12104
12105# Used on cygwin: assembler.
12106AS="$AS"
12107
12108# The name of the directory that contains temporary libtool files.
12109objdir=$objdir
12110
12111# How to create reloadable object files.
12112reload_flag=$lt_reload_flag
12113reload_cmds=$lt_reload_cmds
12114
12115# How to pass a linker flag through the compiler.
12116wl=$lt_lt_prog_compiler_wl_CXX
12117
12118# Object file suffix (normally "o").
12119objext="$ac_objext"
12120
12121# Old archive suffix (normally "a").
12122libext="$libext"
12123
12124# Shared library suffix (normally ".so").
12125shrext='$shrext'
12126
12127# Executable file suffix (normally "").
12128exeext="$exeext"
12129
12130# Additional compiler flags for building library objects.
12131pic_flag=$lt_lt_prog_compiler_pic_CXX
12132pic_mode=$pic_mode
12133
12134# What is the maximum length of a command?
12135max_cmd_len=$lt_cv_sys_max_cmd_len
12136
12137# Does compiler simultaneously support -c and -o options?
12138compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12139
12140# Must we lock files when doing compilation ?
12141need_locks=$lt_need_locks
12142
12143# Do we need the lib prefix for modules?
12144need_lib_prefix=$need_lib_prefix
12145
12146# Do we need a version for libraries?
12147need_version=$need_version
12148
12149# Whether dlopen is supported.
12150dlopen_support=$enable_dlopen
12151
12152# Whether dlopen of programs is supported.
12153dlopen_self=$enable_dlopen_self
12154
12155# Whether dlopen of statically linked programs is supported.
12156dlopen_self_static=$enable_dlopen_self_static
12157
12158# Compiler flag to prevent dynamic linking.
12159link_static_flag=$lt_lt_prog_compiler_static_CXX
12160
12161# Compiler flag to turn off builtin functions.
12162no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12163
12164# Compiler flag to allow reflexive dlopens.
12165export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12166
12167# Compiler flag to generate shared objects directly from archives.
12168whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12169
12170# Compiler flag to generate thread-safe objects.
12171thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12172
12173# Library versioning type.
12174version_type=$version_type
12175
12176# Format of library name prefix.
12177libname_spec=$lt_libname_spec
12178
12179# List of archive names. First name is the real one, the rest are links.
12180# The last name is the one that the linker finds with -lNAME.
12181library_names_spec=$lt_library_names_spec
12182
12183# The coded name of the library, if different from the real name.
12184soname_spec=$lt_soname_spec
12185
12186# Commands used to build and install an old-style archive.
12187RANLIB=$lt_RANLIB
12188old_archive_cmds=$lt_old_archive_cmds_CXX
12189old_postinstall_cmds=$lt_old_postinstall_cmds
12190old_postuninstall_cmds=$lt_old_postuninstall_cmds
12191
12192# Create an old-style archive from a shared archive.
12193old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12194
12195# Create a temporary old-style archive to link instead of a shared archive.
12196old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12197
12198# Commands used to build and install a shared archive.
12199archive_cmds=$lt_archive_cmds_CXX
12200archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12201postinstall_cmds=$lt_postinstall_cmds
12202postuninstall_cmds=$lt_postuninstall_cmds
12203
12204# Commands used to build a loadable module (assumed same as above if empty)
12205module_cmds=$lt_module_cmds_CXX
12206module_expsym_cmds=$lt_module_expsym_cmds_CXX
12207
12208# Commands to strip libraries.
12209old_striplib=$lt_old_striplib
12210striplib=$lt_striplib
12211
12212# Dependencies to place before the objects being linked to create a
12213# shared library.
12214predep_objects=$lt_predep_objects_CXX
12215
12216# Dependencies to place after the objects being linked to create a
12217# shared library.
12218postdep_objects=$lt_postdep_objects_CXX
12219
12220# Dependencies to place before the objects being linked to create a
12221# shared library.
12222predeps=$lt_predeps_CXX
12223
12224# Dependencies to place after the objects being linked to create a
12225# shared library.
12226postdeps=$lt_postdeps_CXX
12227
12228# The library search path used internally by the compiler when linking
12229# a shared library.
12230compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12231
12232# Method to check whether dependent libraries are shared objects.
12233deplibs_check_method=$lt_deplibs_check_method
12234
12235# Command to use when deplibs_check_method == file_magic.
12236file_magic_cmd=$lt_file_magic_cmd
12237
12238# Flag that allows shared libraries with undefined symbols to be built.
12239allow_undefined_flag=$lt_allow_undefined_flag_CXX
12240
12241# Flag that forces no undefined symbols.
12242no_undefined_flag=$lt_no_undefined_flag_CXX
12243
12244# Commands used to finish a libtool library installation in a directory.
12245finish_cmds=$lt_finish_cmds
12246
12247# Same as above, but a single script fragment to be evaled but not shown.
12248finish_eval=$lt_finish_eval
12249
12250# Take the output of nm and produce a listing of raw symbols and C names.
12251global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12252
12253# Transform the output of nm in a proper C declaration
12254global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12255
12256# Transform the output of nm in a C name address pair
12257global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12258
12259# This is the shared library runtime path variable.
12260runpath_var=$runpath_var
12261
12262# This is the shared library path variable.
12263shlibpath_var=$shlibpath_var
12264
12265# Is shlibpath searched before the hard-coded library search path?
12266shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12267
12268# How to hardcode a shared library path into an executable.
12269hardcode_action=$hardcode_action_CXX
12270
12271# Whether we should hardcode library paths into libraries.
12272hardcode_into_libs=$hardcode_into_libs
12273
12274# Flag to hardcode \$libdir into a binary during linking.
12275# This must work even if \$libdir does not exist.
12276hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12277
12278# If ld is used when linking, flag to hardcode \$libdir into
12279# a binary during linking. This must work even if \$libdir does
12280# not exist.
12281hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12282
12283# Whether we need a single -rpath flag with a separated argument.
12284hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12285
12286# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12287# resulting binary.
12288hardcode_direct=$hardcode_direct_CXX
12289
12290# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12291# resulting binary.
12292hardcode_minus_L=$hardcode_minus_L_CXX
12293
12294# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12295# the resulting binary.
12296hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12297
12298# Set to yes if building a shared library automatically hardcodes DIR into the library
12299# and all subsequent libraries and executables linked against it.
12300hardcode_automatic=$hardcode_automatic_CXX
12301
12302# Variables whose values should be saved in libtool wrapper scripts and
12303# restored at relink time.
12304variables_saved_for_relink="$variables_saved_for_relink"
12305
12306# Whether libtool must link a program against all its dependency libraries.
12307link_all_deplibs=$link_all_deplibs_CXX
12308
12309# Compile-time system search path for libraries
12310sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12311
12312# Run-time system search path for libraries
12313sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12314
12315# Fix the shell variable \$srcfile for the compiler.
12316fix_srcfile_path="$fix_srcfile_path_CXX"
12317
12318# Set to yes if exported symbols are required.
12319always_export_symbols=$always_export_symbols_CXX
12320
12321# The commands to list exported symbols.
12322export_symbols_cmds=$lt_export_symbols_cmds_CXX
12323
12324# The commands to extract the exported symbol list from a shared archive.
12325extract_expsyms_cmds=$lt_extract_expsyms_cmds
12326
12327# Symbols that should not be listed in the preloaded symbols.
12328exclude_expsyms=$lt_exclude_expsyms_CXX
12329
12330# Symbols that must always be exported.
12331include_expsyms=$lt_include_expsyms_CXX
12332
12333# ### END LIBTOOL TAG CONFIG: $tagname
12334
12335__EOF__
12336
12337
12338else
12339 # If there is no Makefile yet, we rely on a make rule to execute
12340 # `config.status --recheck' to rerun these tests and create the
12341 # libtool script then.
12342 test -f Makefile && make "$ltmain"
12343fi
12344
12345
12346ac_ext=c
12347ac_cpp='$CPP $CPPFLAGS'
12348ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12349ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12350ac_compiler_gnu=$ac_cv_c_compiler_gnu
12351
12352CC=$lt_save_CC
12353LDCXX=$LD
12354LD=$lt_save_LD
12355GCC=$lt_save_GCC
12356with_gnu_ldcxx=$with_gnu_ld
12357with_gnu_ld=$lt_save_with_gnu_ld
12358lt_cv_path_LDCXX=$lt_cv_path_LD
12359lt_cv_path_LD=$lt_save_path_LD
12360lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12361lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12362
12363 else
12364 tagname=""
12365 fi
12366 ;;
12367
12368 F77)
12369 if test -n "$F77" && test "X$F77" != "Xno"; then
12370
12371ac_ext=f
12372ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12373ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12374ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12375
12376
12377archive_cmds_need_lc_F77=no
12378allow_undefined_flag_F77=
12379always_export_symbols_F77=no
12380archive_expsym_cmds_F77=
12381export_dynamic_flag_spec_F77=
12382hardcode_direct_F77=no
12383hardcode_libdir_flag_spec_F77=
12384hardcode_libdir_flag_spec_ld_F77=
12385hardcode_libdir_separator_F77=
12386hardcode_minus_L_F77=no
12387hardcode_automatic_F77=no
12388module_cmds_F77=
12389module_expsym_cmds_F77=
12390link_all_deplibs_F77=unknown
12391old_archive_cmds_F77=$old_archive_cmds
12392no_undefined_flag_F77=
12393whole_archive_flag_spec_F77=
12394enable_shared_with_static_runtimes_F77=no
12395
12396# Source file extension for f77 test sources.
12397ac_ext=f
12398
12399# Object file extension for compiled f77 test sources.
12400objext=o
12401objext_F77=$objext
12402
12403# Code to be used in simple compile tests
12404lt_simple_compile_test_code=" subroutine t\n return\n end\n"
12405
12406# Code to be used in simple link tests
12407lt_simple_link_test_code=" program t\n end\n"
12408
12409# ltmain only uses $CC for tagged configurations so make sure $CC is set.
12410
12411# If no C compiler was specified, use CC.
12412LTCC=${LTCC-"$CC"}
12413
12414# Allow CC to be a program name with arguments.
12415compiler=$CC
12416
12417
12418# Allow CC to be a program name with arguments.
12419lt_save_CC="$CC"
12420CC=${F77-"f77"}
12421compiler=$CC
12422compiler_F77=$CC
12423cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12424
12425echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12426echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12427echo "$as_me:$LINENO: result: $can_build_shared" >&5
12428echo "${ECHO_T}$can_build_shared" >&6
12429
12430echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12431echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12432test "$can_build_shared" = "no" && enable_shared=no
12433
12434# On AIX, shared libraries and static libraries use the same namespace, and
12435# are all built from PIC.
12436case "$host_os" in
12437aix3*)
12438 test "$enable_shared" = yes && enable_static=no
12439 if test -n "$RANLIB"; then
12440 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12441 postinstall_cmds='$RANLIB $lib'
12442 fi
12443 ;;
12444aix4*)
12445 test "$enable_shared" = yes && enable_static=no
12446 ;;
12447esac
12448echo "$as_me:$LINENO: result: $enable_shared" >&5
12449echo "${ECHO_T}$enable_shared" >&6
12450
12451echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12452echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12453# Make sure either enable_shared or enable_static is yes.
12454test "$enable_shared" = yes || enable_static=yes
12455echo "$as_me:$LINENO: result: $enable_static" >&5
12456echo "${ECHO_T}$enable_static" >&6
12457
12458test "$ld_shlibs_F77" = no && can_build_shared=no
12459
12460GCC_F77="$G77"
12461LD_F77="$LD"
12462
12463lt_prog_compiler_wl_F77=
12464lt_prog_compiler_pic_F77=
12465lt_prog_compiler_static_F77=
12466
12467echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12468echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12469
12470 if test "$GCC" = yes; then
12471 lt_prog_compiler_wl_F77='-Wl,'
12472 lt_prog_compiler_static_F77='-static'
12473
12474 case $host_os in
12475 aix*)
12476 # All AIX code is PIC.
12477 if test "$host_cpu" = ia64; then
12478 # AIX 5 now supports IA64 processor
12479 lt_prog_compiler_static_F77='-Bstatic'
12480 fi
12481 ;;
12482
12483 amigaos*)
12484 # FIXME: we need at least 68020 code to build shared libraries, but
12485 # adding the `-m68020' flag to GCC prevents building anything better,
12486 # like `-m68040'.
12487 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12488 ;;
12489
12490 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12491 # PIC is the default for these OSes.
12492 ;;
12493
12494 mingw* | pw32* | os2*)
12495 # This hack is so that the source file can tell whether it is being
12496 # built for inclusion in a dll (and should export symbols for example).
12497 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12498 ;;
12499
12500 darwin* | rhapsody*)
12501 # PIC is the default on this platform
12502 # Common symbols not allowed in MH_DYLIB files
12503 lt_prog_compiler_pic_F77='-fno-common'
12504 ;;
12505
12506 msdosdjgpp*)
12507 # Just because we use GCC doesn't mean we suddenly get shared libraries
12508 # on systems that don't support them.
12509 lt_prog_compiler_can_build_shared_F77=no
12510 enable_shared=no
12511 ;;
12512
12513 sysv4*MP*)
12514 if test -d /usr/nec; then
12515 lt_prog_compiler_pic_F77=-Kconform_pic
12516 fi
12517 ;;
12518
12519 hpux*)
12520 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12521 # not for PA HP-UX.
12522 case "$host_cpu" in
12523 hppa*64*|ia64*)
12524 # +Z the default
12525 ;;
12526 *)
12527 lt_prog_compiler_pic_F77='-fPIC'
12528 ;;
12529 esac
12530 ;;
12531
12532 *)
12533 lt_prog_compiler_pic_F77='-fPIC'
12534 ;;
12535 esac
12536 else
12537 # PORTME Check for flag to pass linker flags through the system compiler.
12538 case $host_os in
12539 aix*)
12540 lt_prog_compiler_wl_F77='-Wl,'
12541 if test "$host_cpu" = ia64; then
12542 # AIX 5 now supports IA64 processor
12543 lt_prog_compiler_static_F77='-Bstatic'
12544 else
12545 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12546 fi
12547 ;;
12548
12549 mingw* | pw32* | os2*)
12550 # This hack is so that the source file can tell whether it is being
12551 # built for inclusion in a dll (and should export symbols for example).
12552 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12553 ;;
12554
12555 hpux9* | hpux10* | hpux11*)
12556 lt_prog_compiler_wl_F77='-Wl,'
12557 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12558 # not for PA HP-UX.
12559 case "$host_cpu" in
12560 hppa*64*|ia64*)
12561 # +Z the default
12562 ;;
12563 *)
12564 lt_prog_compiler_pic_F77='+Z'
12565 ;;
12566 esac
12567 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12568 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
12569 ;;
12570
12571 irix5* | irix6* | nonstopux*)
12572 lt_prog_compiler_wl_F77='-Wl,'
12573 # PIC (with -KPIC) is the default.
12574 lt_prog_compiler_static_F77='-non_shared'
12575 ;;
12576
12577 newsos6)
12578 lt_prog_compiler_pic_F77='-KPIC'
12579 lt_prog_compiler_static_F77='-Bstatic'
12580 ;;
12581
12582 linux*)
12583 case $CC in
12584 icc|ecc)
12585 lt_prog_compiler_wl_F77='-Wl,'
12586 lt_prog_compiler_pic_F77='-KPIC'
12587 lt_prog_compiler_static_F77='-static'
12588 ;;
12589 ccc)
12590 lt_prog_compiler_wl_F77='-Wl,'
12591 # All Alpha code is PIC.
12592 lt_prog_compiler_static_F77='-non_shared'
12593 ;;
12594 esac
12595 ;;
12596
12597 osf3* | osf4* | osf5*)
12598 lt_prog_compiler_wl_F77='-Wl,'
12599 # All OSF/1 code is PIC.
12600 lt_prog_compiler_static_F77='-non_shared'
12601 ;;
12602
12603 sco3.2v5*)
12604 lt_prog_compiler_pic_F77='-Kpic'
12605 lt_prog_compiler_static_F77='-dn'
12606 ;;
12607
12608 solaris*)
12609 lt_prog_compiler_wl_F77='-Wl,'
12610 lt_prog_compiler_pic_F77='-KPIC'
12611 lt_prog_compiler_static_F77='-Bstatic'
12612 ;;
12613
12614 sunos4*)
12615 lt_prog_compiler_wl_F77='-Qoption ld '
12616 lt_prog_compiler_pic_F77='-PIC'
12617 lt_prog_compiler_static_F77='-Bstatic'
12618 ;;
12619
12620 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12621 lt_prog_compiler_wl_F77='-Wl,'
12622 lt_prog_compiler_pic_F77='-KPIC'
12623 lt_prog_compiler_static_F77='-Bstatic'
12624 ;;
12625
12626 sysv4*MP*)
12627 if test -d /usr/nec ;then
12628 lt_prog_compiler_pic_F77='-Kconform_pic'
12629 lt_prog_compiler_static_F77='-Bstatic'
12630 fi
12631 ;;
12632
12633 uts4*)
12634 lt_prog_compiler_pic_F77='-pic'
12635 lt_prog_compiler_static_F77='-Bstatic'
12636 ;;
12637
12638 *)
12639 lt_prog_compiler_can_build_shared_F77=no
12640 ;;
12641 esac
12642 fi
12643
12644echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
12645echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
12646
12647#
12648# Check to make sure the PIC flag actually works.
12649#
12650if test -n "$lt_prog_compiler_pic_F77"; then
12651 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
12652echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
12653if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
12654 echo $ECHO_N "(cached) $ECHO_C" >&6
12655else
12656 lt_prog_compiler_pic_works_F77=no
12657 ac_outfile=conftest.$ac_objext
12658 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12659 lt_compiler_flag="$lt_prog_compiler_pic_F77"
12660 # Insert the option either (1) after the last *FLAGS variable, or
12661 # (2) before a word containing "conftest.", or (3) at the end.
12662 # Note that $ac_compile itself does not contain backslashes and begins
12663 # with a dollar sign (not a hyphen), so the echo should work correctly.
12664 # The option is referenced via a variable to avoid confusing sed.
12665 lt_compile=`echo "$ac_compile" | $SED \
12666 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12667 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12668 -e 's:$: $lt_compiler_flag:'`
Misha Brukmandb84a092004-06-22 15:35:32 +000012669 (eval echo "\"\$as_me:12669: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000012670 (eval "$lt_compile" 2>conftest.err)
12671 ac_status=$?
12672 cat conftest.err >&5
Misha Brukmandb84a092004-06-22 15:35:32 +000012673 echo "$as_me:12673: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000012674 if (exit $ac_status) && test -s "$ac_outfile"; then
12675 # The compiler can only warn and ignore the option if not recognized
12676 # So say no if there are warnings
12677 if test ! -s conftest.err; then
12678 lt_prog_compiler_pic_works_F77=yes
12679 fi
12680 fi
12681 $rm conftest*
12682
12683fi
12684echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
12685echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
12686
12687if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
12688 case $lt_prog_compiler_pic_F77 in
12689 "" | " "*) ;;
12690 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
12691 esac
12692else
12693 lt_prog_compiler_pic_F77=
12694 lt_prog_compiler_can_build_shared_F77=no
12695fi
12696
12697fi
12698case "$host_os" in
12699 # For platforms which do not support PIC, -DPIC is meaningless:
12700 *djgpp*)
12701 lt_prog_compiler_pic_F77=
12702 ;;
12703 *)
12704 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
12705 ;;
12706esac
12707
12708echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12709echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12710if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
12711 echo $ECHO_N "(cached) $ECHO_C" >&6
12712else
12713 lt_cv_prog_compiler_c_o_F77=no
12714 $rm -r conftest 2>/dev/null
12715 mkdir conftest
12716 cd conftest
12717 mkdir out
12718 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12719
12720 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
12721 # that will create temporary files in the current directory regardless of
12722 # the output directory. Thus, making CWD read-only will cause this test
12723 # to fail, enabling locking or at least warning the user not to do parallel
12724 # builds.
12725 chmod -w .
12726
12727 lt_compiler_flag="-o out/conftest2.$ac_objext"
12728 # Insert the option either (1) after the last *FLAGS variable, or
12729 # (2) before a word containing "conftest.", or (3) at the end.
12730 # Note that $ac_compile itself does not contain backslashes and begins
12731 # with a dollar sign (not a hyphen), so the echo should work correctly.
12732 lt_compile=`echo "$ac_compile" | $SED \
12733 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12734 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12735 -e 's:$: $lt_compiler_flag:'`
Misha Brukmandb84a092004-06-22 15:35:32 +000012736 (eval echo "\"\$as_me:12736: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000012737 (eval "$lt_compile" 2>out/conftest.err)
12738 ac_status=$?
12739 cat out/conftest.err >&5
Misha Brukmandb84a092004-06-22 15:35:32 +000012740 echo "$as_me:12740: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000012741 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12742 then
12743 # The compiler can only warn and ignore the option if not recognized
12744 # So say no if there are warnings
12745 if test ! -s out/conftest.err; then
12746 lt_cv_prog_compiler_c_o_F77=yes
12747 fi
12748 fi
12749 chmod u+w .
12750 $rm conftest* out/*
12751 rmdir out
12752 cd ..
12753 rmdir conftest
12754 $rm conftest*
12755
12756fi
12757echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
12758echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
12759
12760
12761hard_links="nottested"
12762if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
12763 # do not overwrite the value of need_locks provided by the user
12764 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12765echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12766 hard_links=yes
12767 $rm conftest*
12768 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12769 touch conftest.a
12770 ln conftest.a conftest.b 2>&5 || hard_links=no
12771 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12772 echo "$as_me:$LINENO: result: $hard_links" >&5
12773echo "${ECHO_T}$hard_links" >&6
12774 if test "$hard_links" = no; then
12775 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12776echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12777 need_locks=warn
12778 fi
12779else
12780 need_locks=no
12781fi
12782
12783echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12784echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12785
12786 runpath_var=
12787 allow_undefined_flag_F77=
12788 enable_shared_with_static_runtimes_F77=no
12789 archive_cmds_F77=
12790 archive_expsym_cmds_F77=
12791 old_archive_From_new_cmds_F77=
12792 old_archive_from_expsyms_cmds_F77=
12793 export_dynamic_flag_spec_F77=
12794 whole_archive_flag_spec_F77=
12795 thread_safe_flag_spec_F77=
12796 hardcode_libdir_flag_spec_F77=
12797 hardcode_libdir_flag_spec_ld_F77=
12798 hardcode_libdir_separator_F77=
12799 hardcode_direct_F77=no
12800 hardcode_minus_L_F77=no
12801 hardcode_shlibpath_var_F77=unsupported
12802 link_all_deplibs_F77=unknown
12803 hardcode_automatic_F77=no
12804 module_cmds_F77=
12805 module_expsym_cmds_F77=
12806 always_export_symbols_F77=no
12807 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12808 # include_expsyms should be a list of space-separated symbols to be *always*
12809 # included in the symbol list
12810 include_expsyms_F77=
12811 # exclude_expsyms can be an extended regexp of symbols to exclude
12812 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12813 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12814 # as well as any symbol that contains `d'.
12815 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
12816 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12817 # platforms (ab)use it in PIC code, but their linkers get confused if
12818 # the symbol is explicitly referenced. Since portable code cannot
12819 # rely on this symbol name, it's probably fine to never include it in
12820 # preloaded symbol tables.
12821 extract_expsyms_cmds=
12822
12823 case $host_os in
12824 cygwin* | mingw* | pw32*)
12825 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12826 # When not using gcc, we currently assume that we are using
12827 # Microsoft Visual C++.
12828 if test "$GCC" != yes; then
12829 with_gnu_ld=no
12830 fi
12831 ;;
12832 openbsd*)
12833 with_gnu_ld=no
12834 ;;
12835 esac
12836
12837 ld_shlibs_F77=yes
12838 if test "$with_gnu_ld" = yes; then
12839 # If archive_cmds runs LD, not CC, wlarc should be empty
12840 wlarc='${wl}'
12841
12842 # See if GNU ld supports shared libraries.
12843 case $host_os in
12844 aix3* | aix4* | aix5*)
12845 # On AIX/PPC, the GNU linker is very broken
12846 if test "$host_cpu" != ia64; then
12847 ld_shlibs_F77=no
12848 cat <<EOF 1>&2
12849
12850*** Warning: the GNU linker, at least up to release 2.9.1, is reported
12851*** to be unable to reliably create shared libraries on AIX.
12852*** Therefore, libtool is disabling shared libraries support. If you
12853*** really care for shared libraries, you may want to modify your PATH
12854*** so that a non-GNU linker is found, and then restart.
12855
12856EOF
12857 fi
12858 ;;
12859
12860 amigaos*)
12861 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)'
12862 hardcode_libdir_flag_spec_F77='-L$libdir'
12863 hardcode_minus_L_F77=yes
12864
12865 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12866 # that the semantics of dynamic libraries on AmigaOS, at least up
12867 # to version 4, is to share data among multiple programs linked
12868 # with the same dynamic library. Since this doesn't match the
12869 # behavior of shared libraries on other platforms, we can't use
12870 # them.
12871 ld_shlibs_F77=no
12872 ;;
12873
12874 beos*)
12875 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12876 allow_undefined_flag_F77=unsupported
12877 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12878 # support --undefined. This deserves some investigation. FIXME
12879 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12880 else
12881 ld_shlibs_F77=no
12882 fi
12883 ;;
12884
12885 cygwin* | mingw* | pw32*)
12886 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
12887 # as there is no search path for DLLs.
12888 hardcode_libdir_flag_spec_F77='-L$libdir'
12889 allow_undefined_flag_F77=unsupported
12890 always_export_symbols_F77=no
12891 enable_shared_with_static_runtimes_F77=yes
12892 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12893
12894 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12895 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12896 # If the export-symbols file already is a .def file (1st line
12897 # is EXPORTS), use it as is; otherwise, prepend...
12898 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12899 cp $export_symbols $output_objdir/$soname.def;
12900 else
12901 echo EXPORTS > $output_objdir/$soname.def;
12902 cat $export_symbols >> $output_objdir/$soname.def;
12903 fi~
12904 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12905 else
12906 ld_shlibs=no
12907 fi
12908 ;;
12909
12910 netbsd*)
12911 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12912 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12913 wlarc=
12914 else
12915 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12916 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12917 fi
12918 ;;
12919
12920 solaris* | sysv5*)
12921 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12922 ld_shlibs_F77=no
12923 cat <<EOF 1>&2
12924
12925*** Warning: The releases 2.8.* of the GNU linker cannot reliably
12926*** create shared libraries on Solaris systems. Therefore, libtool
12927*** is disabling shared libraries support. We urge you to upgrade GNU
12928*** binutils to release 2.9.1 or newer. Another option is to modify
12929*** your PATH or compiler configuration so that the native linker is
12930*** used, and then restart.
12931
12932EOF
12933 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12934 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12935 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12936 else
12937 ld_shlibs_F77=no
12938 fi
12939 ;;
12940
12941 sunos4*)
12942 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12943 wlarc=
12944 hardcode_direct_F77=yes
12945 hardcode_shlibpath_var_F77=no
12946 ;;
12947
12948 *)
12949 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12950 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12951 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12952 else
12953 ld_shlibs_F77=no
12954 fi
12955 ;;
12956 esac
12957
12958 if test "$ld_shlibs_F77" = yes; then
12959 runpath_var=LD_RUN_PATH
12960 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
12961 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
12962 # ancient GNU ld didn't support --whole-archive et. al.
12963 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
12964 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12965 else
12966 whole_archive_flag_spec_F77=
12967 fi
12968 fi
12969 else
12970 # PORTME fill in a description of your system's linker (not GNU ld)
12971 case $host_os in
12972 aix3*)
12973 allow_undefined_flag_F77=unsupported
12974 always_export_symbols_F77=yes
12975 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'
12976 # Note: this linker hardcodes the directories in LIBPATH if there
12977 # are no directories specified by -L.
12978 hardcode_minus_L_F77=yes
12979 if test "$GCC" = yes && test -z "$link_static_flag"; then
12980 # Neither direct hardcoding nor static linking is supported with a
12981 # broken collect2.
12982 hardcode_direct_F77=unsupported
12983 fi
12984 ;;
12985
12986 aix4* | aix5*)
12987 if test "$host_cpu" = ia64; then
12988 # On IA64, the linker does run time linking by default, so we don't
12989 # have to do anything special.
12990 aix_use_runtimelinking=no
12991 exp_sym_flag='-Bexport'
12992 no_entry_flag=""
12993 else
12994 # If we're using GNU nm, then we don't want the "-C" option.
12995 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12996 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12997 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'
12998 else
12999 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'
13000 fi
13001 aix_use_runtimelinking=no
13002
13003 # Test if we are trying to use run time linking or normal
13004 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13005 # need to do runtime linking.
13006 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13007 for ld_flag in $LDFLAGS; do
13008 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13009 aix_use_runtimelinking=yes
13010 break
13011 fi
13012 done
13013 esac
13014
13015 exp_sym_flag='-bexport'
13016 no_entry_flag='-bnoentry'
13017 fi
13018
13019 # When large executables or shared objects are built, AIX ld can
13020 # have problems creating the table of contents. If linking a library
13021 # or program results in "error TOC overflow" add -mminimal-toc to
13022 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13023 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13024
13025 archive_cmds_F77=''
13026 hardcode_direct_F77=yes
13027 hardcode_libdir_separator_F77=':'
13028 link_all_deplibs_F77=yes
13029
13030 if test "$GCC" = yes; then
13031 case $host_os in aix4.012|aix4.012.*)
13032 # We only want to do this on AIX 4.2 and lower, the check
13033 # below for broken collect2 doesn't work under 4.3+
13034 collect2name=`${CC} -print-prog-name=collect2`
13035 if test -f "$collect2name" && \
13036 strings "$collect2name" | grep resolve_lib_name >/dev/null
13037 then
13038 # We have reworked collect2
13039 hardcode_direct_F77=yes
13040 else
13041 # We have old collect2
13042 hardcode_direct_F77=unsupported
13043 # It fails to find uninstalled libraries when the uninstalled
13044 # path is not listed in the libpath. Setting hardcode_minus_L
13045 # to unsupported forces relinking
13046 hardcode_minus_L_F77=yes
13047 hardcode_libdir_flag_spec_F77='-L$libdir'
13048 hardcode_libdir_separator_F77=
13049 fi
13050 esac
13051 shared_flag='-shared'
13052 else
13053 # not using gcc
13054 if test "$host_cpu" = ia64; then
13055 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13056 # chokes on -Wl,-G. The following line is correct:
13057 shared_flag='-G'
13058 else
13059 if test "$aix_use_runtimelinking" = yes; then
13060 shared_flag='${wl}-G'
13061 else
13062 shared_flag='${wl}-bM:SRE'
13063 fi
13064 fi
13065 fi
13066
13067 # It seems that -bexpall does not export symbols beginning with
13068 # underscore (_), so it is better to generate a list of symbols to export.
13069 always_export_symbols_F77=yes
13070 if test "$aix_use_runtimelinking" = yes; then
13071 # Warning - without using the other runtime loading flags (-brtl),
13072 # -berok will link without error, but may produce a broken library.
13073 allow_undefined_flag_F77='-berok'
13074 # Determine the default libpath from the value encoded in an empty executable.
13075 cat >conftest.$ac_ext <<_ACEOF
13076 program main
13077
13078 end
13079_ACEOF
13080rm -f conftest.$ac_objext conftest$ac_exeext
13081if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13082 (eval $ac_link) 2>&5
13083 ac_status=$?
13084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13085 (exit $ac_status); } &&
13086 { ac_try='test -s conftest$ac_exeext'
13087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13088 (eval $ac_try) 2>&5
13089 ac_status=$?
13090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13091 (exit $ac_status); }; }; then
13092
13093aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13094}'`
13095# Check for a 64-bit object if we didn't find anything.
13096if 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; }
13097}'`; fi
13098else
13099 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013100sed 's/^/| /' conftest.$ac_ext >&5
13101
John Criswell47fdd832003-07-14 16:52:07 +000013102fi
13103rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13104if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13105
13106 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13107 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"
13108 else
13109 if test "$host_cpu" = ia64; then
13110 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13111 allow_undefined_flag_F77="-z nodefs"
13112 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"
13113 else
13114 # Determine the default libpath from the value encoded in an empty executable.
13115 cat >conftest.$ac_ext <<_ACEOF
13116 program main
13117
13118 end
13119_ACEOF
13120rm -f conftest.$ac_objext conftest$ac_exeext
13121if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13122 (eval $ac_link) 2>&5
13123 ac_status=$?
13124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13125 (exit $ac_status); } &&
13126 { ac_try='test -s conftest$ac_exeext'
13127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13128 (eval $ac_try) 2>&5
13129 ac_status=$?
13130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13131 (exit $ac_status); }; }; then
13132
13133aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13134}'`
13135# Check for a 64-bit object if we didn't find anything.
13136if 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; }
13137}'`; fi
13138else
13139 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013140sed 's/^/| /' conftest.$ac_ext >&5
13141
John Criswell47fdd832003-07-14 16:52:07 +000013142fi
13143rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13144if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13145
13146 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13147 # Warning - without using the other run time loading flags,
13148 # -berok will link without error, but may produce a broken library.
13149 no_undefined_flag_F77=' ${wl}-bernotok'
13150 allow_undefined_flag_F77=' ${wl}-berok'
13151 # -bexpall does not export symbols beginning with underscore (_)
13152 always_export_symbols_F77=yes
13153 # Exported symbols can be pulled into shared objects from archives
13154 whole_archive_flag_spec_F77=' '
13155 archive_cmds_need_lc_F77=yes
13156 # This is similar to how AIX traditionally builds it's shared libraries.
13157 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'
13158 fi
13159 fi
13160 ;;
13161
13162 amigaos*)
13163 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)'
13164 hardcode_libdir_flag_spec_F77='-L$libdir'
13165 hardcode_minus_L_F77=yes
13166 # see comment about different semantics on the GNU ld section
13167 ld_shlibs_F77=no
13168 ;;
13169
13170 bsdi4*)
13171 export_dynamic_flag_spec_F77=-rdynamic
13172 ;;
13173
13174 cygwin* | mingw* | pw32*)
13175 # When not using gcc, we currently assume that we are using
13176 # Microsoft Visual C++.
13177 # hardcode_libdir_flag_spec is actually meaningless, as there is
13178 # no search path for DLLs.
13179 hardcode_libdir_flag_spec_F77=' '
13180 allow_undefined_flag_F77=unsupported
13181 # Tell ltmain to make .lib files, not .a files.
13182 libext=lib
13183 # Tell ltmain to make .dll files, not .so files.
13184 shrext=".dll"
13185 # FIXME: Setting linknames here is a bad hack.
13186 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13187 # The linker will automatically build a .lib file if we build a DLL.
13188 old_archive_From_new_cmds_F77='true'
13189 # FIXME: Should let the user specify the lib program.
13190 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13191 fix_srcfile_path='`cygpath -w "$srcfile"`'
13192 enable_shared_with_static_runtimes_F77=yes
13193 ;;
13194
13195 darwin* | rhapsody*)
13196 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13197 archive_cmds_need_lc_F77=no
13198 case "$host_os" in
13199 rhapsody* | darwin1.[012])
13200 allow_undefined_flag_F77='-undefined suppress'
13201 ;;
13202 *) # Darwin 1.3 on
13203 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13204 ;;
13205 esac
13206 # FIXME: Relying on posixy $() will cause problems for
13207 # cross-compilation, but unfortunately the echo tests do not
13208 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
13209 # `"' quotes if we put them in here... so don't!
13210 lt_int_apple_cc_single_mod=no
13211 output_verbose_link_cmd='echo'
13212 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13213 lt_int_apple_cc_single_mod=yes
13214 fi
13215 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13216 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13217 else
13218 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'
13219 fi
13220 module_cmds_F77='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
13221 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13222 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13223 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}'
13224 else
13225 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}'
13226 fi
13227 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}'
13228 hardcode_direct_F77=no
13229 hardcode_automatic_F77=yes
13230 hardcode_shlibpath_var_F77=unsupported
13231 whole_archive_flag_spec_F77='-all_load $convenience'
13232 link_all_deplibs_F77=yes
13233 fi
13234 ;;
13235
13236 dgux*)
13237 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13238 hardcode_libdir_flag_spec_F77='-L$libdir'
13239 hardcode_shlibpath_var_F77=no
13240 ;;
13241
13242 freebsd1*)
13243 ld_shlibs_F77=no
13244 ;;
13245
13246 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13247 # support. Future versions do this automatically, but an explicit c++rt0.o
13248 # does not break anything, and helps significantly (at the cost of a little
13249 # extra space).
13250 freebsd2.2*)
13251 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13252 hardcode_libdir_flag_spec_F77='-R$libdir'
13253 hardcode_direct_F77=yes
13254 hardcode_shlibpath_var_F77=no
13255 ;;
13256
13257 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13258 freebsd2*)
13259 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13260 hardcode_direct_F77=yes
13261 hardcode_minus_L_F77=yes
13262 hardcode_shlibpath_var_F77=no
13263 ;;
13264
13265 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13266 freebsd*)
13267 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13268 hardcode_libdir_flag_spec_F77='-R$libdir'
13269 hardcode_direct_F77=yes
13270 hardcode_shlibpath_var_F77=no
13271 ;;
13272
13273 hpux9*)
13274 if test "$GCC" = yes; then
13275 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'
13276 else
13277 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'
13278 fi
13279 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13280 hardcode_libdir_separator_F77=:
13281 hardcode_direct_F77=yes
13282
13283 # hardcode_minus_L: Not really in the search PATH,
13284 # but as the default location of the library.
13285 hardcode_minus_L_F77=yes
13286 export_dynamic_flag_spec_F77='${wl}-E'
13287 ;;
13288
13289 hpux10* | hpux11*)
13290 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13291 case "$host_cpu" in
13292 hppa*64*|ia64*)
13293 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13294 ;;
13295 *)
13296 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13297 ;;
13298 esac
13299 else
13300 case "$host_cpu" in
13301 hppa*64*|ia64*)
13302 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13303 ;;
13304 *)
13305 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13306 ;;
13307 esac
13308 fi
13309 if test "$with_gnu_ld" = no; then
13310 case "$host_cpu" in
13311 hppa*64*)
13312 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13313 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13314 hardcode_libdir_separator_F77=:
13315 hardcode_direct_F77=no
13316 hardcode_shlibpath_var_F77=no
13317 ;;
13318 ia64*)
13319 hardcode_libdir_flag_spec_F77='-L$libdir'
13320 hardcode_direct_F77=no
13321 hardcode_shlibpath_var_F77=no
13322
13323 # hardcode_minus_L: Not really in the search PATH,
13324 # but as the default location of the library.
13325 hardcode_minus_L_F77=yes
13326 ;;
13327 *)
13328 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13329 hardcode_libdir_separator_F77=:
13330 hardcode_direct_F77=yes
13331 export_dynamic_flag_spec_F77='${wl}-E'
13332
13333 # hardcode_minus_L: Not really in the search PATH,
13334 # but as the default location of the library.
13335 hardcode_minus_L_F77=yes
13336 ;;
13337 esac
13338 fi
13339 ;;
13340
13341 irix5* | irix6* | nonstopux*)
13342 if test "$GCC" = yes; then
13343 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'
13344 else
13345 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'
13346 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13347 fi
13348 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13349 hardcode_libdir_separator_F77=:
13350 link_all_deplibs_F77=yes
13351 ;;
13352
13353 netbsd*)
13354 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13355 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13356 else
13357 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13358 fi
13359 hardcode_libdir_flag_spec_F77='-R$libdir'
13360 hardcode_direct_F77=yes
13361 hardcode_shlibpath_var_F77=no
13362 ;;
13363
13364 newsos6)
13365 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13366 hardcode_direct_F77=yes
13367 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13368 hardcode_libdir_separator_F77=:
13369 hardcode_shlibpath_var_F77=no
13370 ;;
13371
13372 openbsd*)
13373 hardcode_direct_F77=yes
13374 hardcode_shlibpath_var_F77=no
13375 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13376 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13377 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13378 export_dynamic_flag_spec_F77='${wl}-E'
13379 else
13380 case $host_os in
13381 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13382 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13383 hardcode_libdir_flag_spec_F77='-R$libdir'
13384 ;;
13385 *)
13386 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13387 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13388 ;;
13389 esac
13390 fi
13391 ;;
13392
13393 os2*)
13394 hardcode_libdir_flag_spec_F77='-L$libdir'
13395 hardcode_minus_L_F77=yes
13396 allow_undefined_flag_F77=unsupported
13397 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'
13398 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13399 ;;
13400
13401 osf3*)
13402 if test "$GCC" = yes; then
13403 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13404 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'
13405 else
13406 allow_undefined_flag_F77=' -expect_unresolved \*'
13407 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'
13408 fi
13409 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13410 hardcode_libdir_separator_F77=:
13411 ;;
13412
13413 osf4* | osf5*) # as osf3* with the addition of -msym flag
13414 if test "$GCC" = yes; then
13415 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13416 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'
13417 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13418 else
13419 allow_undefined_flag_F77=' -expect_unresolved \*'
13420 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'
13421 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~
13422 $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'
13423
13424 # Both c and cxx compiler support -rpath directly
13425 hardcode_libdir_flag_spec_F77='-rpath $libdir'
13426 fi
13427 hardcode_libdir_separator_F77=:
13428 ;;
13429
13430 sco3.2v5*)
13431 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13432 hardcode_shlibpath_var_F77=no
13433 export_dynamic_flag_spec_F77='${wl}-Bexport'
13434 runpath_var=LD_RUN_PATH
13435 hardcode_runpath_var=yes
13436 ;;
13437
13438 solaris*)
13439 no_undefined_flag_F77=' -z text'
13440 if test "$GCC" = yes; then
13441 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13442 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13443 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13444 else
13445 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13446 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13447 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13448 fi
13449 hardcode_libdir_flag_spec_F77='-R$libdir'
13450 hardcode_shlibpath_var_F77=no
13451 case $host_os in
13452 solaris2.[0-5] | solaris2.[0-5].*) ;;
13453 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13454 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13455 esac
13456 link_all_deplibs_F77=yes
13457 ;;
13458
13459 sunos4*)
13460 if test "x$host_vendor" = xsequent; then
13461 # Use $CC to link under sequent, because it throws in some extra .o
13462 # files that make .init and .fini sections work.
13463 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13464 else
13465 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13466 fi
13467 hardcode_libdir_flag_spec_F77='-L$libdir'
13468 hardcode_direct_F77=yes
13469 hardcode_minus_L_F77=yes
13470 hardcode_shlibpath_var_F77=no
13471 ;;
13472
13473 sysv4)
13474 case $host_vendor in
13475 sni)
13476 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13477 hardcode_direct_F77=yes # is this really true???
13478 ;;
13479 siemens)
13480 ## LD is ld it makes a PLAMLIB
13481 ## CC just makes a GrossModule.
13482 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13483 reload_cmds_F77='$CC -r -o $output$reload_objs'
13484 hardcode_direct_F77=no
13485 ;;
13486 motorola)
13487 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13488 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13489 ;;
13490 esac
13491 runpath_var='LD_RUN_PATH'
13492 hardcode_shlibpath_var_F77=no
13493 ;;
13494
13495 sysv4.3*)
13496 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13497 hardcode_shlibpath_var_F77=no
13498 export_dynamic_flag_spec_F77='-Bexport'
13499 ;;
13500
13501 sysv4*MP*)
13502 if test -d /usr/nec; then
13503 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13504 hardcode_shlibpath_var_F77=no
13505 runpath_var=LD_RUN_PATH
13506 hardcode_runpath_var=yes
13507 ld_shlibs_F77=yes
13508 fi
13509 ;;
13510
13511 sysv4.2uw2*)
13512 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13513 hardcode_direct_F77=yes
13514 hardcode_minus_L_F77=no
13515 hardcode_shlibpath_var_F77=no
13516 hardcode_runpath_var=yes
13517 runpath_var=LD_RUN_PATH
13518 ;;
13519
13520 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
13521 no_undefined_flag_F77='${wl}-z ${wl}text'
13522 if test "$GCC" = yes; then
13523 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13524 else
13525 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13526 fi
13527 runpath_var='LD_RUN_PATH'
13528 hardcode_shlibpath_var_F77=no
13529 ;;
13530
13531 sysv5*)
13532 no_undefined_flag_F77=' -z text'
13533 # $CC -shared without GNU ld will not create a library from C++
13534 # object files and a static libstdc++, better avoid it by now
13535 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13536 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13537 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13538 hardcode_libdir_flag_spec_F77=
13539 hardcode_shlibpath_var_F77=no
13540 runpath_var='LD_RUN_PATH'
13541 ;;
13542
13543 uts4*)
13544 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13545 hardcode_libdir_flag_spec_F77='-L$libdir'
13546 hardcode_shlibpath_var_F77=no
13547 ;;
13548
13549 *)
13550 ld_shlibs_F77=no
13551 ;;
13552 esac
13553 fi
13554
13555echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
13556echo "${ECHO_T}$ld_shlibs_F77" >&6
13557test "$ld_shlibs_F77" = no && can_build_shared=no
13558
13559variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13560if test "$GCC" = yes; then
13561 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13562fi
13563
13564#
13565# Do we need to explicitly link libc?
13566#
13567case "x$archive_cmds_need_lc_F77" in
13568x|xyes)
13569 # Assume -lc should be added
13570 archive_cmds_need_lc_F77=yes
13571
13572 if test "$enable_shared" = yes && test "$GCC" = yes; then
13573 case $archive_cmds_F77 in
13574 *'~'*)
13575 # FIXME: we may have to deal with multi-command sequences.
13576 ;;
13577 '$CC '*)
13578 # Test whether the compiler implicitly links with -lc since on some
13579 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13580 # to ld, don't add -lc before -lgcc.
13581 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13582echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13583 $rm conftest*
13584 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13585
13586 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13587 (eval $ac_compile) 2>&5
13588 ac_status=$?
13589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13590 (exit $ac_status); } 2>conftest.err; then
13591 soname=conftest
13592 lib=conftest
13593 libobjs=conftest.$ac_objext
13594 deplibs=
13595 wl=$lt_prog_compiler_wl_F77
13596 compiler_flags=-v
13597 linker_flags=-v
13598 verstring=
13599 output_objdir=.
13600 libname=conftest
13601 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
13602 allow_undefined_flag_F77=
13603 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13604 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13605 ac_status=$?
13606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13607 (exit $ac_status); }
13608 then
13609 archive_cmds_need_lc_F77=no
13610 else
13611 archive_cmds_need_lc_F77=yes
13612 fi
13613 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
13614 else
13615 cat conftest.err 1>&5
13616 fi
13617 $rm conftest*
13618 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
13619echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
13620 ;;
13621 esac
13622 fi
13623 ;;
13624esac
13625
13626echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13627echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13628hardcode_action_F77=
13629if test -n "$hardcode_libdir_flag_spec_F77" || \
13630 test -n "$runpath_var F77" || \
13631 test "X$hardcode_automatic_F77"="Xyes" ; then
13632
13633 # We can hardcode non-existant directories.
13634 if test "$hardcode_direct_F77" != no &&
13635 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13636 # have to relink, otherwise we might link with an installed library
13637 # when we should be linking with a yet-to-be-installed one
13638 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
13639 test "$hardcode_minus_L_F77" != no; then
13640 # Linking always hardcodes the temporary library directory.
13641 hardcode_action_F77=relink
13642 else
13643 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13644 hardcode_action_F77=immediate
13645 fi
13646else
13647 # We cannot hardcode anything, or else we can only hardcode existing
13648 # directories.
13649 hardcode_action_F77=unsupported
13650fi
13651echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
13652echo "${ECHO_T}$hardcode_action_F77" >&6
13653
13654if test "$hardcode_action_F77" = relink; then
13655 # Fast installation is not supported
13656 enable_fast_install=no
13657elif test "$shlibpath_overrides_runpath" = yes ||
13658 test "$enable_shared" = no; then
13659 # Fast installation is not necessary
13660 enable_fast_install=needless
13661fi
13662
13663striplib=
13664old_striplib=
13665echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13666echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13667if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13668 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13669 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13670 echo "$as_me:$LINENO: result: yes" >&5
13671echo "${ECHO_T}yes" >&6
13672else
13673# FIXME - insert some real tests, host_os isn't really good enough
13674 case $host_os in
13675 darwin*)
13676 if test -n "$STRIP" ; then
13677 striplib="$STRIP -x"
13678 echo "$as_me:$LINENO: result: yes" >&5
13679echo "${ECHO_T}yes" >&6
13680 else
13681 echo "$as_me:$LINENO: result: no" >&5
13682echo "${ECHO_T}no" >&6
13683fi
13684 ;;
13685 *)
13686 echo "$as_me:$LINENO: result: no" >&5
13687echo "${ECHO_T}no" >&6
13688 ;;
13689 esac
13690fi
13691
13692echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13693echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13694library_names_spec=
13695libname_spec='lib$name'
13696soname_spec=
13697shrext=".so"
13698postinstall_cmds=
13699postuninstall_cmds=
13700finish_cmds=
13701finish_eval=
13702shlibpath_var=
13703shlibpath_overrides_runpath=unknown
13704version_type=none
13705dynamic_linker="$host_os ld.so"
13706sys_lib_dlsearch_path_spec="/lib /usr/lib"
13707if test "$GCC" = yes; then
13708 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13709 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13710 # if the path contains ";" then we assume it to be the separator
13711 # otherwise default to the standard path separator (i.e. ":") - it is
13712 # assumed that no part of a normal pathname contains ";" but that should
13713 # okay in the real world where ";" in dirpaths is itself problematic.
13714 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13715 else
13716 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13717 fi
13718else
13719 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13720fi
13721need_lib_prefix=unknown
13722hardcode_into_libs=no
13723
13724# when you set need_version to no, make sure it does not cause -set_version
13725# flags to be left without arguments
13726need_version=unknown
13727
13728case $host_os in
13729aix3*)
13730 version_type=linux
13731 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13732 shlibpath_var=LIBPATH
13733
13734 # AIX 3 has no versioning support, so we append a major version to the name.
13735 soname_spec='${libname}${release}${shared_ext}$major'
13736 ;;
13737
13738aix4* | aix5*)
13739 version_type=linux
13740 need_lib_prefix=no
13741 need_version=no
13742 hardcode_into_libs=yes
13743 if test "$host_cpu" = ia64; then
13744 # AIX 5 supports IA64
13745 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13746 shlibpath_var=LD_LIBRARY_PATH
13747 else
13748 # With GCC up to 2.95.x, collect2 would create an import file
13749 # for dependence libraries. The import file would start with
13750 # the line `#! .'. This would cause the generated library to
13751 # depend on `.', always an invalid library. This was fixed in
13752 # development snapshots of GCC prior to 3.0.
13753 case $host_os in
13754 aix4 | aix4.[01] | aix4.[01].*)
13755 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13756 echo ' yes '
13757 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13758 :
13759 else
13760 can_build_shared=no
13761 fi
13762 ;;
13763 esac
13764 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13765 # soname into executable. Probably we can add versioning support to
13766 # collect2, so additional links can be useful in future.
13767 if test "$aix_use_runtimelinking" = yes; then
13768 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13769 # instead of lib<name>.a to let people know that these are not
13770 # typical AIX shared libraries.
13771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13772 else
13773 # We preserve .a as extension for shared libraries through AIX4.2
13774 # and later when we are not doing run time linking.
13775 library_names_spec='${libname}${release}.a $libname.a'
13776 soname_spec='${libname}${release}${shared_ext}$major'
13777 fi
13778 shlibpath_var=LIBPATH
13779 fi
13780 ;;
13781
13782amigaos*)
13783 library_names_spec='$libname.ixlibrary $libname.a'
13784 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13785 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'
13786 ;;
13787
13788beos*)
13789 library_names_spec='${libname}${shared_ext}'
13790 dynamic_linker="$host_os ld.so"
13791 shlibpath_var=LIBRARY_PATH
13792 ;;
13793
13794bsdi4*)
13795 version_type=linux
13796 need_version=no
13797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13798 soname_spec='${libname}${release}${shared_ext}$major'
13799 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13800 shlibpath_var=LD_LIBRARY_PATH
13801 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13802 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13803 # the default ld.so.conf also contains /usr/contrib/lib and
13804 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13805 # libtool to hard-code these into programs
13806 ;;
13807
13808cygwin* | mingw* | pw32*)
13809 version_type=windows
13810 shrext=".dll"
13811 need_version=no
13812 need_lib_prefix=no
13813
13814 case $GCC,$host_os in
13815 yes,cygwin* | yes,mingw* | yes,pw32*)
13816 library_names_spec='$libname.dll.a'
13817 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13818 postinstall_cmds='base_file=`basename \${file}`~
13819 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13820 dldir=$destdir/`dirname \$dlpath`~
13821 test -d \$dldir || mkdir -p \$dldir~
13822 $install_prog $dir/$dlname \$dldir/$dlname'
13823 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13824 dlpath=$dir/\$dldll~
13825 $rm \$dlpath'
13826 shlibpath_overrides_runpath=yes
13827
13828 case $host_os in
13829 cygwin*)
13830 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13831 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13832 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
13833 ;;
13834 mingw*)
13835 # MinGW DLLs use traditional 'lib' prefix
13836 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13837 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13838 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13839 # It is most probably a Windows format PATH printed by
13840 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13841 # path with ; separators, and with drive letters. We can handle the
13842 # drive letters (cygwin fileutils understands them), so leave them,
13843 # especially as we might pass files found there to a mingw objdump,
13844 # which wouldn't understand a cygwinified path. Ahh.
13845 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13846 else
13847 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13848 fi
13849 ;;
13850 pw32*)
13851 # pw32 DLLs use 'pw' prefix rather than 'lib'
13852 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13853 ;;
13854 esac
13855 ;;
13856
13857 *)
13858 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13859 ;;
13860 esac
13861 dynamic_linker='Win32 ld.exe'
13862 # FIXME: first we should search . and the directory the executable is in
13863 shlibpath_var=PATH
13864 ;;
13865
13866darwin* | rhapsody*)
13867 dynamic_linker="$host_os dyld"
13868 version_type=darwin
13869 need_lib_prefix=no
13870 need_version=no
13871 # FIXME: Relying on posixy $() will cause problems for
13872 # cross-compilation, but unfortunately the echo tests do not
13873 # yet detect zsh echo's removal of \ escapes.
13874 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13875 soname_spec='${libname}${release}${major}$shared_ext'
13876 shlibpath_overrides_runpath=yes
13877 shlibpath_var=DYLD_LIBRARY_PATH
13878 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
13879 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13880 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13881 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"`
13882 fi
13883 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13884 ;;
13885
13886dgux*)
13887 version_type=linux
13888 need_lib_prefix=no
13889 need_version=no
13890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13891 soname_spec='${libname}${release}${shared_ext}$major'
13892 shlibpath_var=LD_LIBRARY_PATH
13893 ;;
13894
13895freebsd1*)
13896 dynamic_linker=no
13897 ;;
13898
13899freebsd*)
13900 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13901 version_type=freebsd-$objformat
13902 case $version_type in
13903 freebsd-elf*)
13904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13905 need_version=no
13906 need_lib_prefix=no
13907 ;;
13908 freebsd-*)
13909 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13910 need_version=yes
13911 ;;
13912 esac
13913 shlibpath_var=LD_LIBRARY_PATH
13914 case $host_os in
13915 freebsd2*)
13916 shlibpath_overrides_runpath=yes
13917 ;;
13918 freebsd3.01* | freebsdelf3.01*)
13919 shlibpath_overrides_runpath=yes
13920 hardcode_into_libs=yes
13921 ;;
13922 *) # from 3.2 on
13923 shlibpath_overrides_runpath=no
13924 hardcode_into_libs=yes
13925 ;;
13926 esac
13927 ;;
13928
13929gnu*)
13930 version_type=linux
13931 need_lib_prefix=no
13932 need_version=no
13933 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13934 soname_spec='${libname}${release}${shared_ext}$major'
13935 shlibpath_var=LD_LIBRARY_PATH
13936 hardcode_into_libs=yes
13937 ;;
13938
13939hpux9* | hpux10* | hpux11*)
13940 # Give a soname corresponding to the major version so that dld.sl refuses to
13941 # link against other versions.
13942 version_type=sunos
13943 need_lib_prefix=no
13944 need_version=no
13945 case "$host_cpu" in
13946 ia64*)
13947 shrext='.so'
13948 hardcode_into_libs=yes
13949 dynamic_linker="$host_os dld.so"
13950 shlibpath_var=LD_LIBRARY_PATH
13951 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13953 soname_spec='${libname}${release}${shared_ext}$major'
13954 if test "X$HPUX_IA64_MODE" = X32; then
13955 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13956 else
13957 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13958 fi
13959 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13960 ;;
13961 hppa*64*)
13962 shrext='.sl'
13963 hardcode_into_libs=yes
13964 dynamic_linker="$host_os dld.sl"
13965 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13966 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13967 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13968 soname_spec='${libname}${release}${shared_ext}$major'
13969 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13970 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13971 ;;
13972 *)
13973 shrext='.sl'
13974 dynamic_linker="$host_os dld.sl"
13975 shlibpath_var=SHLIB_PATH
13976 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13978 soname_spec='${libname}${release}${shared_ext}$major'
13979 ;;
13980 esac
13981 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13982 postinstall_cmds='chmod 555 $lib'
13983 ;;
13984
13985irix5* | irix6* | nonstopux*)
13986 case $host_os in
13987 nonstopux*) version_type=nonstopux ;;
13988 *)
13989 if test "$lt_cv_prog_gnu_ld" = yes; then
13990 version_type=linux
13991 else
13992 version_type=irix
13993 fi ;;
13994 esac
13995 need_lib_prefix=no
13996 need_version=no
13997 soname_spec='${libname}${release}${shared_ext}$major'
13998 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13999 case $host_os in
14000 irix5* | nonstopux*)
14001 libsuff= shlibsuff=
14002 ;;
14003 *)
14004 case $LD in # libtool.m4 will add one of these switches to LD
14005 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14006 libsuff= shlibsuff= libmagic=32-bit;;
14007 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14008 libsuff=32 shlibsuff=N32 libmagic=N32;;
14009 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14010 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14011 *) libsuff= shlibsuff= libmagic=never-match;;
14012 esac
14013 ;;
14014 esac
14015 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14016 shlibpath_overrides_runpath=no
14017 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14018 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14019 hardcode_into_libs=yes
14020 ;;
14021
14022# No shared lib support for Linux oldld, aout, or coff.
14023linux*oldld* | linux*aout* | linux*coff*)
14024 dynamic_linker=no
14025 ;;
14026
14027# This must be Linux ELF.
14028linux*)
14029 version_type=linux
14030 need_lib_prefix=no
14031 need_version=no
14032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14033 soname_spec='${libname}${release}${shared_ext}$major'
14034 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14035 shlibpath_var=LD_LIBRARY_PATH
14036 shlibpath_overrides_runpath=no
14037 # This implies no fast_install, which is unacceptable.
14038 # Some rework will be needed to allow for fast_install
14039 # before this can be enabled.
14040 hardcode_into_libs=yes
14041
14042 # We used to test for /lib/ld.so.1 and disable shared libraries on
14043 # powerpc, because MkLinux only supported shared libraries with the
14044 # GNU dynamic linker. Since this was broken with cross compilers,
14045 # most powerpc-linux boxes support dynamic linking these days and
14046 # people can always --disable-shared, the test was removed, and we
14047 # assume the GNU/Linux dynamic linker is in use.
14048 dynamic_linker='GNU/Linux ld.so'
14049 ;;
14050
14051netbsd*)
14052 version_type=sunos
14053 need_lib_prefix=no
14054 need_version=no
14055 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14057 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14058 dynamic_linker='NetBSD (a.out) ld.so'
14059 else
14060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
14061 soname_spec='${libname}${release}${shared_ext}$major'
14062 dynamic_linker='NetBSD ld.elf_so'
14063 fi
14064 shlibpath_var=LD_LIBRARY_PATH
14065 shlibpath_overrides_runpath=yes
14066 hardcode_into_libs=yes
14067 ;;
14068
14069newsos6)
14070 version_type=linux
14071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14072 shlibpath_var=LD_LIBRARY_PATH
14073 shlibpath_overrides_runpath=yes
14074 ;;
14075
14076nto-qnx)
14077 version_type=linux
14078 need_lib_prefix=no
14079 need_version=no
14080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14081 soname_spec='${libname}${release}${shared_ext}$major'
14082 shlibpath_var=LD_LIBRARY_PATH
14083 shlibpath_overrides_runpath=yes
14084 ;;
14085
14086openbsd*)
14087 version_type=sunos
14088 need_lib_prefix=no
14089 need_version=no
14090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14091 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14092 shlibpath_var=LD_LIBRARY_PATH
14093 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14094 case $host_os in
14095 openbsd2.[89] | openbsd2.[89].*)
14096 shlibpath_overrides_runpath=no
14097 ;;
14098 *)
14099 shlibpath_overrides_runpath=yes
14100 ;;
14101 esac
14102 else
14103 shlibpath_overrides_runpath=yes
14104 fi
14105 ;;
14106
14107os2*)
14108 libname_spec='$name'
14109 shrext=".dll"
14110 need_lib_prefix=no
14111 library_names_spec='$libname${shared_ext} $libname.a'
14112 dynamic_linker='OS/2 ld.exe'
14113 shlibpath_var=LIBPATH
14114 ;;
14115
14116osf3* | osf4* | osf5*)
14117 version_type=osf
14118 need_lib_prefix=no
14119 need_version=no
14120 soname_spec='${libname}${release}${shared_ext}$major'
14121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14122 shlibpath_var=LD_LIBRARY_PATH
14123 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14124 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14125 ;;
14126
14127sco3.2v5*)
14128 version_type=osf
14129 soname_spec='${libname}${release}${shared_ext}$major'
14130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14131 shlibpath_var=LD_LIBRARY_PATH
14132 ;;
14133
14134solaris*)
14135 version_type=linux
14136 need_lib_prefix=no
14137 need_version=no
14138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14139 soname_spec='${libname}${release}${shared_ext}$major'
14140 shlibpath_var=LD_LIBRARY_PATH
14141 shlibpath_overrides_runpath=yes
14142 hardcode_into_libs=yes
14143 # ldd complains unless libraries are executable
14144 postinstall_cmds='chmod +x $lib'
14145 ;;
14146
14147sunos4*)
14148 version_type=sunos
14149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14150 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14151 shlibpath_var=LD_LIBRARY_PATH
14152 shlibpath_overrides_runpath=yes
14153 if test "$with_gnu_ld" = yes; then
14154 need_lib_prefix=no
14155 fi
14156 need_version=yes
14157 ;;
14158
14159sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14160 version_type=linux
14161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14162 soname_spec='${libname}${release}${shared_ext}$major'
14163 shlibpath_var=LD_LIBRARY_PATH
14164 case $host_vendor in
14165 sni)
14166 shlibpath_overrides_runpath=no
14167 need_lib_prefix=no
14168 export_dynamic_flag_spec='${wl}-Blargedynsym'
14169 runpath_var=LD_RUN_PATH
14170 ;;
14171 siemens)
14172 need_lib_prefix=no
14173 ;;
14174 motorola)
14175 need_lib_prefix=no
14176 need_version=no
14177 shlibpath_overrides_runpath=no
14178 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14179 ;;
14180 esac
14181 ;;
14182
14183sysv4*MP*)
14184 if test -d /usr/nec ;then
14185 version_type=linux
14186 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14187 soname_spec='$libname${shared_ext}.$major'
14188 shlibpath_var=LD_LIBRARY_PATH
14189 fi
14190 ;;
14191
14192uts4*)
14193 version_type=linux
14194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14195 soname_spec='${libname}${release}${shared_ext}$major'
14196 shlibpath_var=LD_LIBRARY_PATH
14197 ;;
14198
14199*)
14200 dynamic_linker=no
14201 ;;
14202esac
14203echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14204echo "${ECHO_T}$dynamic_linker" >&6
14205test "$dynamic_linker" = no && can_build_shared=no
14206
14207
14208# The else clause should only fire when bootstrapping the
14209# libtool distribution, otherwise you forgot to ship ltmain.sh
14210# with your package, and you will get complaints that there are
14211# no rules to generate ltmain.sh.
14212if test -f "$ltmain"; then
14213 # See if we are running on zsh, and set the options which allow our commands through
14214 # without removal of \ escapes.
14215 if test -n "${ZSH_VERSION+set}" ; then
14216 setopt NO_GLOB_SUBST
14217 fi
14218 # Now quote all the things that may contain metacharacters while being
14219 # careful not to overquote the AC_SUBSTed values. We take copies of the
14220 # variables and quote the copies for generation of the libtool script.
14221 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
14222 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14223 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14224 deplibs_check_method reload_flag reload_cmds need_locks \
14225 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14226 lt_cv_sys_global_symbol_to_c_name_address \
14227 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14228 old_postinstall_cmds old_postuninstall_cmds \
14229 compiler_F77 \
14230 CC_F77 \
14231 LD_F77 \
14232 lt_prog_compiler_wl_F77 \
14233 lt_prog_compiler_pic_F77 \
14234 lt_prog_compiler_static_F77 \
14235 lt_prog_compiler_no_builtin_flag_F77 \
14236 export_dynamic_flag_spec_F77 \
14237 thread_safe_flag_spec_F77 \
14238 whole_archive_flag_spec_F77 \
14239 enable_shared_with_static_runtimes_F77 \
14240 old_archive_cmds_F77 \
14241 old_archive_from_new_cmds_F77 \
14242 predep_objects_F77 \
14243 postdep_objects_F77 \
14244 predeps_F77 \
14245 postdeps_F77 \
14246 compiler_lib_search_path_F77 \
14247 archive_cmds_F77 \
14248 archive_expsym_cmds_F77 \
14249 postinstall_cmds_F77 \
14250 postuninstall_cmds_F77 \
14251 old_archive_from_expsyms_cmds_F77 \
14252 allow_undefined_flag_F77 \
14253 no_undefined_flag_F77 \
14254 export_symbols_cmds_F77 \
14255 hardcode_libdir_flag_spec_F77 \
14256 hardcode_libdir_flag_spec_ld_F77 \
14257 hardcode_libdir_separator_F77 \
14258 hardcode_automatic_F77 \
14259 module_cmds_F77 \
14260 module_expsym_cmds_F77 \
14261 lt_cv_prog_compiler_c_o_F77 \
14262 exclude_expsyms_F77 \
14263 include_expsyms_F77; do
14264
14265 case $var in
14266 old_archive_cmds_F77 | \
14267 old_archive_from_new_cmds_F77 | \
14268 archive_cmds_F77 | \
14269 archive_expsym_cmds_F77 | \
14270 module_cmds_F77 | \
14271 module_expsym_cmds_F77 | \
14272 old_archive_from_expsyms_cmds_F77 | \
14273 export_symbols_cmds_F77 | \
14274 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14275 postinstall_cmds | postuninstall_cmds | \
14276 old_postinstall_cmds | old_postuninstall_cmds | \
14277 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14278 # Double-quote double-evaled strings.
14279 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14280 ;;
14281 *)
14282 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14283 ;;
14284 esac
14285 done
14286
14287 case $lt_echo in
14288 *'\$0 --fallback-echo"')
14289 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14290 ;;
14291 esac
14292
14293cfgfile="$ofile"
14294
14295 cat <<__EOF__ >> "$cfgfile"
14296# ### BEGIN LIBTOOL TAG CONFIG: $tagname
14297
14298# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14299
14300# Shell to use when invoking shell scripts.
14301SHELL=$lt_SHELL
14302
14303# Whether or not to build shared libraries.
14304build_libtool_libs=$enable_shared
14305
14306# Whether or not to build static libraries.
14307build_old_libs=$enable_static
14308
14309# Whether or not to add -lc for building shared libraries.
14310build_libtool_need_lc=$archive_cmds_need_lc_F77
14311
14312# Whether or not to disallow shared libs when runtime libs are static
14313allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14314
14315# Whether or not to optimize for fast installation.
14316fast_install=$enable_fast_install
14317
14318# The host system.
14319host_alias=$host_alias
14320host=$host
14321
14322# An echo program that does not interpret backslashes.
14323echo=$lt_echo
14324
14325# The archiver.
14326AR=$lt_AR
14327AR_FLAGS=$lt_AR_FLAGS
14328
14329# A C compiler.
14330LTCC=$lt_LTCC
14331
14332# A language-specific compiler.
14333CC=$lt_compiler_F77
14334
14335# Is the compiler the GNU C compiler?
14336with_gcc=$GCC_F77
14337
14338# An ERE matcher.
14339EGREP=$lt_EGREP
14340
14341# The linker used to build libraries.
14342LD=$lt_LD_F77
14343
14344# Whether we need hard or soft links.
14345LN_S=$lt_LN_S
14346
14347# A BSD-compatible nm program.
14348NM=$lt_NM
14349
14350# A symbol stripping program
14351STRIP=$STRIP
14352
14353# Used to examine libraries when file_magic_cmd begins "file"
14354MAGIC_CMD=$MAGIC_CMD
14355
14356# Used on cygwin: DLL creation program.
14357DLLTOOL="$DLLTOOL"
14358
14359# Used on cygwin: object dumper.
14360OBJDUMP="$OBJDUMP"
14361
14362# Used on cygwin: assembler.
14363AS="$AS"
14364
14365# The name of the directory that contains temporary libtool files.
14366objdir=$objdir
14367
14368# How to create reloadable object files.
14369reload_flag=$lt_reload_flag
14370reload_cmds=$lt_reload_cmds
14371
14372# How to pass a linker flag through the compiler.
14373wl=$lt_lt_prog_compiler_wl_F77
14374
14375# Object file suffix (normally "o").
14376objext="$ac_objext"
14377
14378# Old archive suffix (normally "a").
14379libext="$libext"
14380
14381# Shared library suffix (normally ".so").
14382shrext='$shrext'
14383
14384# Executable file suffix (normally "").
14385exeext="$exeext"
14386
14387# Additional compiler flags for building library objects.
14388pic_flag=$lt_lt_prog_compiler_pic_F77
14389pic_mode=$pic_mode
14390
14391# What is the maximum length of a command?
14392max_cmd_len=$lt_cv_sys_max_cmd_len
14393
14394# Does compiler simultaneously support -c and -o options?
14395compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14396
14397# Must we lock files when doing compilation ?
14398need_locks=$lt_need_locks
14399
14400# Do we need the lib prefix for modules?
14401need_lib_prefix=$need_lib_prefix
14402
14403# Do we need a version for libraries?
14404need_version=$need_version
14405
14406# Whether dlopen is supported.
14407dlopen_support=$enable_dlopen
14408
14409# Whether dlopen of programs is supported.
14410dlopen_self=$enable_dlopen_self
14411
14412# Whether dlopen of statically linked programs is supported.
14413dlopen_self_static=$enable_dlopen_self_static
14414
14415# Compiler flag to prevent dynamic linking.
14416link_static_flag=$lt_lt_prog_compiler_static_F77
14417
14418# Compiler flag to turn off builtin functions.
14419no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14420
14421# Compiler flag to allow reflexive dlopens.
14422export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14423
14424# Compiler flag to generate shared objects directly from archives.
14425whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14426
14427# Compiler flag to generate thread-safe objects.
14428thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14429
14430# Library versioning type.
14431version_type=$version_type
14432
14433# Format of library name prefix.
14434libname_spec=$lt_libname_spec
14435
14436# List of archive names. First name is the real one, the rest are links.
14437# The last name is the one that the linker finds with -lNAME.
14438library_names_spec=$lt_library_names_spec
14439
14440# The coded name of the library, if different from the real name.
14441soname_spec=$lt_soname_spec
14442
14443# Commands used to build and install an old-style archive.
14444RANLIB=$lt_RANLIB
14445old_archive_cmds=$lt_old_archive_cmds_F77
14446old_postinstall_cmds=$lt_old_postinstall_cmds
14447old_postuninstall_cmds=$lt_old_postuninstall_cmds
14448
14449# Create an old-style archive from a shared archive.
14450old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14451
14452# Create a temporary old-style archive to link instead of a shared archive.
14453old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14454
14455# Commands used to build and install a shared archive.
14456archive_cmds=$lt_archive_cmds_F77
14457archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14458postinstall_cmds=$lt_postinstall_cmds
14459postuninstall_cmds=$lt_postuninstall_cmds
14460
14461# Commands used to build a loadable module (assumed same as above if empty)
14462module_cmds=$lt_module_cmds_F77
14463module_expsym_cmds=$lt_module_expsym_cmds_F77
14464
14465# Commands to strip libraries.
14466old_striplib=$lt_old_striplib
14467striplib=$lt_striplib
14468
14469# Dependencies to place before the objects being linked to create a
14470# shared library.
14471predep_objects=$lt_predep_objects_F77
14472
14473# Dependencies to place after the objects being linked to create a
14474# shared library.
14475postdep_objects=$lt_postdep_objects_F77
14476
14477# Dependencies to place before the objects being linked to create a
14478# shared library.
14479predeps=$lt_predeps_F77
14480
14481# Dependencies to place after the objects being linked to create a
14482# shared library.
14483postdeps=$lt_postdeps_F77
14484
14485# The library search path used internally by the compiler when linking
14486# a shared library.
14487compiler_lib_search_path=$lt_compiler_lib_search_path_F77
14488
14489# Method to check whether dependent libraries are shared objects.
14490deplibs_check_method=$lt_deplibs_check_method
14491
14492# Command to use when deplibs_check_method == file_magic.
14493file_magic_cmd=$lt_file_magic_cmd
14494
14495# Flag that allows shared libraries with undefined symbols to be built.
14496allow_undefined_flag=$lt_allow_undefined_flag_F77
14497
14498# Flag that forces no undefined symbols.
14499no_undefined_flag=$lt_no_undefined_flag_F77
14500
14501# Commands used to finish a libtool library installation in a directory.
14502finish_cmds=$lt_finish_cmds
14503
14504# Same as above, but a single script fragment to be evaled but not shown.
14505finish_eval=$lt_finish_eval
14506
14507# Take the output of nm and produce a listing of raw symbols and C names.
14508global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14509
14510# Transform the output of nm in a proper C declaration
14511global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14512
14513# Transform the output of nm in a C name address pair
14514global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14515
14516# This is the shared library runtime path variable.
14517runpath_var=$runpath_var
14518
14519# This is the shared library path variable.
14520shlibpath_var=$shlibpath_var
14521
14522# Is shlibpath searched before the hard-coded library search path?
14523shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14524
14525# How to hardcode a shared library path into an executable.
14526hardcode_action=$hardcode_action_F77
14527
14528# Whether we should hardcode library paths into libraries.
14529hardcode_into_libs=$hardcode_into_libs
14530
14531# Flag to hardcode \$libdir into a binary during linking.
14532# This must work even if \$libdir does not exist.
14533hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
14534
14535# If ld is used when linking, flag to hardcode \$libdir into
14536# a binary during linking. This must work even if \$libdir does
14537# not exist.
14538hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
14539
14540# Whether we need a single -rpath flag with a separated argument.
14541hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
14542
14543# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14544# resulting binary.
14545hardcode_direct=$hardcode_direct_F77
14546
14547# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14548# resulting binary.
14549hardcode_minus_L=$hardcode_minus_L_F77
14550
14551# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14552# the resulting binary.
14553hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
14554
14555# Set to yes if building a shared library automatically hardcodes DIR into the library
14556# and all subsequent libraries and executables linked against it.
14557hardcode_automatic=$hardcode_automatic_F77
14558
14559# Variables whose values should be saved in libtool wrapper scripts and
14560# restored at relink time.
14561variables_saved_for_relink="$variables_saved_for_relink"
14562
14563# Whether libtool must link a program against all its dependency libraries.
14564link_all_deplibs=$link_all_deplibs_F77
14565
14566# Compile-time system search path for libraries
14567sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14568
14569# Run-time system search path for libraries
14570sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14571
14572# Fix the shell variable \$srcfile for the compiler.
14573fix_srcfile_path="$fix_srcfile_path_F77"
14574
14575# Set to yes if exported symbols are required.
14576always_export_symbols=$always_export_symbols_F77
14577
14578# The commands to list exported symbols.
14579export_symbols_cmds=$lt_export_symbols_cmds_F77
14580
14581# The commands to extract the exported symbol list from a shared archive.
14582extract_expsyms_cmds=$lt_extract_expsyms_cmds
14583
14584# Symbols that should not be listed in the preloaded symbols.
14585exclude_expsyms=$lt_exclude_expsyms_F77
14586
14587# Symbols that must always be exported.
14588include_expsyms=$lt_include_expsyms_F77
14589
14590# ### END LIBTOOL TAG CONFIG: $tagname
14591
14592__EOF__
14593
14594
14595else
14596 # If there is no Makefile yet, we rely on a make rule to execute
14597 # `config.status --recheck' to rerun these tests and create the
14598 # libtool script then.
14599 test -f Makefile && make "$ltmain"
14600fi
14601
14602
14603ac_ext=c
14604ac_cpp='$CPP $CPPFLAGS'
14605ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14606ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14607ac_compiler_gnu=$ac_cv_c_compiler_gnu
14608
14609CC="$lt_save_CC"
14610
14611 else
14612 tagname=""
14613 fi
14614 ;;
14615
14616 GCJ)
14617 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
14618
14619
14620
14621# Source file extension for Java test sources.
14622ac_ext=java
14623
14624# Object file extension for compiled Java test sources.
14625objext=o
14626objext_GCJ=$objext
14627
14628# Code to be used in simple compile tests
14629lt_simple_compile_test_code="class foo {}\n"
14630
14631# Code to be used in simple link tests
14632lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
14633
14634# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14635
14636# If no C compiler was specified, use CC.
14637LTCC=${LTCC-"$CC"}
14638
14639# Allow CC to be a program name with arguments.
14640compiler=$CC
14641
14642
14643# Allow CC to be a program name with arguments.
14644lt_save_CC="$CC"
14645CC=${GCJ-"gcj"}
14646compiler=$CC
14647compiler_GCJ=$CC
14648
14649# GCJ did not exist at the time GCC didn't implicitly link libc in.
14650archive_cmds_need_lc_GCJ=no
14651
John Criswell47fdd832003-07-14 16:52:07 +000014652
14653lt_prog_compiler_no_builtin_flag_GCJ=
14654
14655if test "$GCC" = yes; then
14656 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
14657
14658 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14659echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
14660if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14661 echo $ECHO_N "(cached) $ECHO_C" >&6
14662else
14663 lt_cv_prog_compiler_rtti_exceptions=no
14664 ac_outfile=conftest.$ac_objext
14665 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14666 lt_compiler_flag="-fno-rtti -fno-exceptions"
14667 # Insert the option either (1) after the last *FLAGS variable, or
14668 # (2) before a word containing "conftest.", or (3) at the end.
14669 # Note that $ac_compile itself does not contain backslashes and begins
14670 # with a dollar sign (not a hyphen), so the echo should work correctly.
14671 # The option is referenced via a variable to avoid confusing sed.
14672 lt_compile=`echo "$ac_compile" | $SED \
14673 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14674 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14675 -e 's:$: $lt_compiler_flag:'`
Misha Brukmandb84a092004-06-22 15:35:32 +000014676 (eval echo "\"\$as_me:14676: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014677 (eval "$lt_compile" 2>conftest.err)
14678 ac_status=$?
14679 cat conftest.err >&5
Misha Brukmandb84a092004-06-22 15:35:32 +000014680 echo "$as_me:14680: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014681 if (exit $ac_status) && test -s "$ac_outfile"; then
14682 # The compiler can only warn and ignore the option if not recognized
14683 # So say no if there are warnings
14684 if test ! -s conftest.err; then
14685 lt_cv_prog_compiler_rtti_exceptions=yes
14686 fi
14687 fi
14688 $rm conftest*
14689
14690fi
14691echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14692echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
14693
14694if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14695 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
14696else
14697 :
14698fi
14699
14700fi
14701
14702lt_prog_compiler_wl_GCJ=
14703lt_prog_compiler_pic_GCJ=
14704lt_prog_compiler_static_GCJ=
14705
14706echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14707echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
14708
14709 if test "$GCC" = yes; then
14710 lt_prog_compiler_wl_GCJ='-Wl,'
14711 lt_prog_compiler_static_GCJ='-static'
14712
14713 case $host_os in
14714 aix*)
14715 # All AIX code is PIC.
14716 if test "$host_cpu" = ia64; then
14717 # AIX 5 now supports IA64 processor
14718 lt_prog_compiler_static_GCJ='-Bstatic'
14719 fi
14720 ;;
14721
14722 amigaos*)
14723 # FIXME: we need at least 68020 code to build shared libraries, but
14724 # adding the `-m68020' flag to GCC prevents building anything better,
14725 # like `-m68040'.
14726 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
14727 ;;
14728
14729 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14730 # PIC is the default for these OSes.
14731 ;;
14732
14733 mingw* | pw32* | os2*)
14734 # This hack is so that the source file can tell whether it is being
14735 # built for inclusion in a dll (and should export symbols for example).
14736 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
14737 ;;
14738
14739 darwin* | rhapsody*)
14740 # PIC is the default on this platform
14741 # Common symbols not allowed in MH_DYLIB files
14742 lt_prog_compiler_pic_GCJ='-fno-common'
14743 ;;
14744
14745 msdosdjgpp*)
14746 # Just because we use GCC doesn't mean we suddenly get shared libraries
14747 # on systems that don't support them.
14748 lt_prog_compiler_can_build_shared_GCJ=no
14749 enable_shared=no
14750 ;;
14751
14752 sysv4*MP*)
14753 if test -d /usr/nec; then
14754 lt_prog_compiler_pic_GCJ=-Kconform_pic
14755 fi
14756 ;;
14757
14758 hpux*)
14759 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14760 # not for PA HP-UX.
14761 case "$host_cpu" in
14762 hppa*64*|ia64*)
14763 # +Z the default
14764 ;;
14765 *)
14766 lt_prog_compiler_pic_GCJ='-fPIC'
14767 ;;
14768 esac
14769 ;;
14770
14771 *)
14772 lt_prog_compiler_pic_GCJ='-fPIC'
14773 ;;
14774 esac
14775 else
14776 # PORTME Check for flag to pass linker flags through the system compiler.
14777 case $host_os in
14778 aix*)
14779 lt_prog_compiler_wl_GCJ='-Wl,'
14780 if test "$host_cpu" = ia64; then
14781 # AIX 5 now supports IA64 processor
14782 lt_prog_compiler_static_GCJ='-Bstatic'
14783 else
14784 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
14785 fi
14786 ;;
14787
14788 mingw* | pw32* | os2*)
14789 # This hack is so that the source file can tell whether it is being
14790 # built for inclusion in a dll (and should export symbols for example).
14791 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
14792 ;;
14793
14794 hpux9* | hpux10* | hpux11*)
14795 lt_prog_compiler_wl_GCJ='-Wl,'
14796 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14797 # not for PA HP-UX.
14798 case "$host_cpu" in
14799 hppa*64*|ia64*)
14800 # +Z the default
14801 ;;
14802 *)
14803 lt_prog_compiler_pic_GCJ='+Z'
14804 ;;
14805 esac
14806 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14807 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
14808 ;;
14809
14810 irix5* | irix6* | nonstopux*)
14811 lt_prog_compiler_wl_GCJ='-Wl,'
14812 # PIC (with -KPIC) is the default.
14813 lt_prog_compiler_static_GCJ='-non_shared'
14814 ;;
14815
14816 newsos6)
14817 lt_prog_compiler_pic_GCJ='-KPIC'
14818 lt_prog_compiler_static_GCJ='-Bstatic'
14819 ;;
14820
14821 linux*)
14822 case $CC in
14823 icc|ecc)
14824 lt_prog_compiler_wl_GCJ='-Wl,'
14825 lt_prog_compiler_pic_GCJ='-KPIC'
14826 lt_prog_compiler_static_GCJ='-static'
14827 ;;
14828 ccc)
14829 lt_prog_compiler_wl_GCJ='-Wl,'
14830 # All Alpha code is PIC.
14831 lt_prog_compiler_static_GCJ='-non_shared'
14832 ;;
14833 esac
14834 ;;
14835
14836 osf3* | osf4* | osf5*)
14837 lt_prog_compiler_wl_GCJ='-Wl,'
14838 # All OSF/1 code is PIC.
14839 lt_prog_compiler_static_GCJ='-non_shared'
14840 ;;
14841
14842 sco3.2v5*)
14843 lt_prog_compiler_pic_GCJ='-Kpic'
14844 lt_prog_compiler_static_GCJ='-dn'
14845 ;;
14846
14847 solaris*)
14848 lt_prog_compiler_wl_GCJ='-Wl,'
14849 lt_prog_compiler_pic_GCJ='-KPIC'
14850 lt_prog_compiler_static_GCJ='-Bstatic'
14851 ;;
14852
14853 sunos4*)
14854 lt_prog_compiler_wl_GCJ='-Qoption ld '
14855 lt_prog_compiler_pic_GCJ='-PIC'
14856 lt_prog_compiler_static_GCJ='-Bstatic'
14857 ;;
14858
14859 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14860 lt_prog_compiler_wl_GCJ='-Wl,'
14861 lt_prog_compiler_pic_GCJ='-KPIC'
14862 lt_prog_compiler_static_GCJ='-Bstatic'
14863 ;;
14864
14865 sysv4*MP*)
14866 if test -d /usr/nec ;then
14867 lt_prog_compiler_pic_GCJ='-Kconform_pic'
14868 lt_prog_compiler_static_GCJ='-Bstatic'
14869 fi
14870 ;;
14871
14872 uts4*)
14873 lt_prog_compiler_pic_GCJ='-pic'
14874 lt_prog_compiler_static_GCJ='-Bstatic'
14875 ;;
14876
14877 *)
14878 lt_prog_compiler_can_build_shared_GCJ=no
14879 ;;
14880 esac
14881 fi
14882
14883echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
14884echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
14885
14886#
14887# Check to make sure the PIC flag actually works.
14888#
14889if test -n "$lt_prog_compiler_pic_GCJ"; then
14890 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
14891echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
14892if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
14893 echo $ECHO_N "(cached) $ECHO_C" >&6
14894else
14895 lt_prog_compiler_pic_works_GCJ=no
14896 ac_outfile=conftest.$ac_objext
14897 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14898 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
14899 # Insert the option either (1) after the last *FLAGS variable, or
14900 # (2) before a word containing "conftest.", or (3) at the end.
14901 # Note that $ac_compile itself does not contain backslashes and begins
14902 # with a dollar sign (not a hyphen), so the echo should work correctly.
14903 # The option is referenced via a variable to avoid confusing sed.
14904 lt_compile=`echo "$ac_compile" | $SED \
14905 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14906 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14907 -e 's:$: $lt_compiler_flag:'`
Misha Brukmandb84a092004-06-22 15:35:32 +000014908 (eval echo "\"\$as_me:14908: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014909 (eval "$lt_compile" 2>conftest.err)
14910 ac_status=$?
14911 cat conftest.err >&5
Misha Brukmandb84a092004-06-22 15:35:32 +000014912 echo "$as_me:14912: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014913 if (exit $ac_status) && test -s "$ac_outfile"; then
14914 # The compiler can only warn and ignore the option if not recognized
14915 # So say no if there are warnings
14916 if test ! -s conftest.err; then
14917 lt_prog_compiler_pic_works_GCJ=yes
14918 fi
14919 fi
14920 $rm conftest*
14921
14922fi
14923echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
14924echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
14925
14926if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
14927 case $lt_prog_compiler_pic_GCJ in
14928 "" | " "*) ;;
14929 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
14930 esac
14931else
14932 lt_prog_compiler_pic_GCJ=
14933 lt_prog_compiler_can_build_shared_GCJ=no
14934fi
14935
14936fi
14937case "$host_os" in
14938 # For platforms which do not support PIC, -DPIC is meaningless:
14939 *djgpp*)
14940 lt_prog_compiler_pic_GCJ=
14941 ;;
14942 *)
14943 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
14944 ;;
14945esac
14946
14947echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14948echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14949if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
14950 echo $ECHO_N "(cached) $ECHO_C" >&6
14951else
14952 lt_cv_prog_compiler_c_o_GCJ=no
14953 $rm -r conftest 2>/dev/null
14954 mkdir conftest
14955 cd conftest
14956 mkdir out
14957 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14958
14959 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
14960 # that will create temporary files in the current directory regardless of
14961 # the output directory. Thus, making CWD read-only will cause this test
14962 # to fail, enabling locking or at least warning the user not to do parallel
14963 # builds.
14964 chmod -w .
14965
14966 lt_compiler_flag="-o out/conftest2.$ac_objext"
14967 # Insert the option either (1) after the last *FLAGS variable, or
14968 # (2) before a word containing "conftest.", or (3) at the end.
14969 # Note that $ac_compile itself does not contain backslashes and begins
14970 # with a dollar sign (not a hyphen), so the echo should work correctly.
14971 lt_compile=`echo "$ac_compile" | $SED \
14972 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14973 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14974 -e 's:$: $lt_compiler_flag:'`
Misha Brukmandb84a092004-06-22 15:35:32 +000014975 (eval echo "\"\$as_me:14975: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014976 (eval "$lt_compile" 2>out/conftest.err)
14977 ac_status=$?
14978 cat out/conftest.err >&5
Misha Brukmandb84a092004-06-22 15:35:32 +000014979 echo "$as_me:14979: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014980 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14981 then
14982 # The compiler can only warn and ignore the option if not recognized
14983 # So say no if there are warnings
14984 if test ! -s out/conftest.err; then
14985 lt_cv_prog_compiler_c_o_GCJ=yes
14986 fi
14987 fi
14988 chmod u+w .
14989 $rm conftest* out/*
14990 rmdir out
14991 cd ..
14992 rmdir conftest
14993 $rm conftest*
14994
14995fi
14996echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
14997echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
14998
14999
15000hard_links="nottested"
15001if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15002 # do not overwrite the value of need_locks provided by the user
15003 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15004echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15005 hard_links=yes
15006 $rm conftest*
15007 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15008 touch conftest.a
15009 ln conftest.a conftest.b 2>&5 || hard_links=no
15010 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15011 echo "$as_me:$LINENO: result: $hard_links" >&5
15012echo "${ECHO_T}$hard_links" >&6
15013 if test "$hard_links" = no; then
15014 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15015echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15016 need_locks=warn
15017 fi
15018else
15019 need_locks=no
15020fi
15021
15022echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15023echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15024
15025 runpath_var=
15026 allow_undefined_flag_GCJ=
15027 enable_shared_with_static_runtimes_GCJ=no
15028 archive_cmds_GCJ=
15029 archive_expsym_cmds_GCJ=
15030 old_archive_From_new_cmds_GCJ=
15031 old_archive_from_expsyms_cmds_GCJ=
15032 export_dynamic_flag_spec_GCJ=
15033 whole_archive_flag_spec_GCJ=
15034 thread_safe_flag_spec_GCJ=
15035 hardcode_libdir_flag_spec_GCJ=
15036 hardcode_libdir_flag_spec_ld_GCJ=
15037 hardcode_libdir_separator_GCJ=
15038 hardcode_direct_GCJ=no
15039 hardcode_minus_L_GCJ=no
15040 hardcode_shlibpath_var_GCJ=unsupported
15041 link_all_deplibs_GCJ=unknown
15042 hardcode_automatic_GCJ=no
15043 module_cmds_GCJ=
15044 module_expsym_cmds_GCJ=
15045 always_export_symbols_GCJ=no
15046 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15047 # include_expsyms should be a list of space-separated symbols to be *always*
15048 # included in the symbol list
15049 include_expsyms_GCJ=
15050 # exclude_expsyms can be an extended regexp of symbols to exclude
15051 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15052 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15053 # as well as any symbol that contains `d'.
15054 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15055 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15056 # platforms (ab)use it in PIC code, but their linkers get confused if
15057 # the symbol is explicitly referenced. Since portable code cannot
15058 # rely on this symbol name, it's probably fine to never include it in
15059 # preloaded symbol tables.
15060 extract_expsyms_cmds=
15061
15062 case $host_os in
15063 cygwin* | mingw* | pw32*)
15064 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15065 # When not using gcc, we currently assume that we are using
15066 # Microsoft Visual C++.
15067 if test "$GCC" != yes; then
15068 with_gnu_ld=no
15069 fi
15070 ;;
15071 openbsd*)
15072 with_gnu_ld=no
15073 ;;
15074 esac
15075
15076 ld_shlibs_GCJ=yes
15077 if test "$with_gnu_ld" = yes; then
15078 # If archive_cmds runs LD, not CC, wlarc should be empty
15079 wlarc='${wl}'
15080
15081 # See if GNU ld supports shared libraries.
15082 case $host_os in
15083 aix3* | aix4* | aix5*)
15084 # On AIX/PPC, the GNU linker is very broken
15085 if test "$host_cpu" != ia64; then
15086 ld_shlibs_GCJ=no
15087 cat <<EOF 1>&2
15088
15089*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15090*** to be unable to reliably create shared libraries on AIX.
15091*** Therefore, libtool is disabling shared libraries support. If you
15092*** really care for shared libraries, you may want to modify your PATH
15093*** so that a non-GNU linker is found, and then restart.
15094
15095EOF
15096 fi
15097 ;;
15098
15099 amigaos*)
15100 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)'
15101 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15102 hardcode_minus_L_GCJ=yes
15103
15104 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15105 # that the semantics of dynamic libraries on AmigaOS, at least up
15106 # to version 4, is to share data among multiple programs linked
15107 # with the same dynamic library. Since this doesn't match the
15108 # behavior of shared libraries on other platforms, we can't use
15109 # them.
15110 ld_shlibs_GCJ=no
15111 ;;
15112
15113 beos*)
15114 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15115 allow_undefined_flag_GCJ=unsupported
15116 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15117 # support --undefined. This deserves some investigation. FIXME
15118 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15119 else
15120 ld_shlibs_GCJ=no
15121 fi
15122 ;;
15123
15124 cygwin* | mingw* | pw32*)
15125 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15126 # as there is no search path for DLLs.
15127 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15128 allow_undefined_flag_GCJ=unsupported
15129 always_export_symbols_GCJ=no
15130 enable_shared_with_static_runtimes_GCJ=yes
15131 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15132
15133 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15134 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15135 # If the export-symbols file already is a .def file (1st line
15136 # is EXPORTS), use it as is; otherwise, prepend...
15137 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15138 cp $export_symbols $output_objdir/$soname.def;
15139 else
15140 echo EXPORTS > $output_objdir/$soname.def;
15141 cat $export_symbols >> $output_objdir/$soname.def;
15142 fi~
15143 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15144 else
15145 ld_shlibs=no
15146 fi
15147 ;;
15148
15149 netbsd*)
15150 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15151 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15152 wlarc=
15153 else
15154 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15155 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15156 fi
15157 ;;
15158
15159 solaris* | sysv5*)
15160 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15161 ld_shlibs_GCJ=no
15162 cat <<EOF 1>&2
15163
15164*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15165*** create shared libraries on Solaris systems. Therefore, libtool
15166*** is disabling shared libraries support. We urge you to upgrade GNU
15167*** binutils to release 2.9.1 or newer. Another option is to modify
15168*** your PATH or compiler configuration so that the native linker is
15169*** used, and then restart.
15170
15171EOF
15172 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15173 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15174 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15175 else
15176 ld_shlibs_GCJ=no
15177 fi
15178 ;;
15179
15180 sunos4*)
15181 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15182 wlarc=
15183 hardcode_direct_GCJ=yes
15184 hardcode_shlibpath_var_GCJ=no
15185 ;;
15186
15187 *)
15188 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15189 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15190 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15191 else
15192 ld_shlibs_GCJ=no
15193 fi
15194 ;;
15195 esac
15196
15197 if test "$ld_shlibs_GCJ" = yes; then
15198 runpath_var=LD_RUN_PATH
15199 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15200 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15201 # ancient GNU ld didn't support --whole-archive et. al.
15202 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15203 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15204 else
15205 whole_archive_flag_spec_GCJ=
15206 fi
15207 fi
15208 else
15209 # PORTME fill in a description of your system's linker (not GNU ld)
15210 case $host_os in
15211 aix3*)
15212 allow_undefined_flag_GCJ=unsupported
15213 always_export_symbols_GCJ=yes
15214 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'
15215 # Note: this linker hardcodes the directories in LIBPATH if there
15216 # are no directories specified by -L.
15217 hardcode_minus_L_GCJ=yes
15218 if test "$GCC" = yes && test -z "$link_static_flag"; then
15219 # Neither direct hardcoding nor static linking is supported with a
15220 # broken collect2.
15221 hardcode_direct_GCJ=unsupported
15222 fi
15223 ;;
15224
15225 aix4* | aix5*)
15226 if test "$host_cpu" = ia64; then
15227 # On IA64, the linker does run time linking by default, so we don't
15228 # have to do anything special.
15229 aix_use_runtimelinking=no
15230 exp_sym_flag='-Bexport'
15231 no_entry_flag=""
15232 else
15233 # If we're using GNU nm, then we don't want the "-C" option.
15234 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15235 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15236 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'
15237 else
15238 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'
15239 fi
15240 aix_use_runtimelinking=no
15241
15242 # Test if we are trying to use run time linking or normal
15243 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15244 # need to do runtime linking.
15245 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15246 for ld_flag in $LDFLAGS; do
15247 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15248 aix_use_runtimelinking=yes
15249 break
15250 fi
15251 done
15252 esac
15253
15254 exp_sym_flag='-bexport'
15255 no_entry_flag='-bnoentry'
15256 fi
15257
15258 # When large executables or shared objects are built, AIX ld can
15259 # have problems creating the table of contents. If linking a library
15260 # or program results in "error TOC overflow" add -mminimal-toc to
15261 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15262 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15263
15264 archive_cmds_GCJ=''
15265 hardcode_direct_GCJ=yes
15266 hardcode_libdir_separator_GCJ=':'
15267 link_all_deplibs_GCJ=yes
15268
15269 if test "$GCC" = yes; then
15270 case $host_os in aix4.012|aix4.012.*)
15271 # We only want to do this on AIX 4.2 and lower, the check
15272 # below for broken collect2 doesn't work under 4.3+
15273 collect2name=`${CC} -print-prog-name=collect2`
15274 if test -f "$collect2name" && \
15275 strings "$collect2name" | grep resolve_lib_name >/dev/null
15276 then
15277 # We have reworked collect2
15278 hardcode_direct_GCJ=yes
15279 else
15280 # We have old collect2
15281 hardcode_direct_GCJ=unsupported
15282 # It fails to find uninstalled libraries when the uninstalled
15283 # path is not listed in the libpath. Setting hardcode_minus_L
15284 # to unsupported forces relinking
15285 hardcode_minus_L_GCJ=yes
15286 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15287 hardcode_libdir_separator_GCJ=
15288 fi
15289 esac
15290 shared_flag='-shared'
15291 else
15292 # not using gcc
15293 if test "$host_cpu" = ia64; then
15294 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15295 # chokes on -Wl,-G. The following line is correct:
15296 shared_flag='-G'
15297 else
15298 if test "$aix_use_runtimelinking" = yes; then
15299 shared_flag='${wl}-G'
15300 else
15301 shared_flag='${wl}-bM:SRE'
15302 fi
15303 fi
15304 fi
15305
15306 # It seems that -bexpall does not export symbols beginning with
15307 # underscore (_), so it is better to generate a list of symbols to export.
15308 always_export_symbols_GCJ=yes
15309 if test "$aix_use_runtimelinking" = yes; then
15310 # Warning - without using the other runtime loading flags (-brtl),
15311 # -berok will link without error, but may produce a broken library.
15312 allow_undefined_flag_GCJ='-berok'
15313 # Determine the default libpath from the value encoded in an empty executable.
15314 cat >conftest.$ac_ext <<_ACEOF
15315#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000015316/* confdefs.h. */
15317_ACEOF
15318cat confdefs.h >>conftest.$ac_ext
15319cat >>conftest.$ac_ext <<_ACEOF
15320/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000015321
John Criswell47fdd832003-07-14 16:52:07 +000015322int
15323main ()
15324{
15325
15326 ;
15327 return 0;
15328}
15329_ACEOF
15330rm -f conftest.$ac_objext conftest$ac_exeext
15331if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15332 (eval $ac_link) 2>&5
15333 ac_status=$?
15334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15335 (exit $ac_status); } &&
15336 { ac_try='test -s conftest$ac_exeext'
15337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15338 (eval $ac_try) 2>&5
15339 ac_status=$?
15340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15341 (exit $ac_status); }; }; then
15342
15343aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15344}'`
15345# Check for a 64-bit object if we didn't find anything.
15346if 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; }
15347}'`; fi
15348else
15349 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015350sed 's/^/| /' conftest.$ac_ext >&5
15351
John Criswell47fdd832003-07-14 16:52:07 +000015352fi
15353rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15354if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15355
15356 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15357 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"
15358 else
15359 if test "$host_cpu" = ia64; then
15360 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
15361 allow_undefined_flag_GCJ="-z nodefs"
15362 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"
15363 else
15364 # Determine the default libpath from the value encoded in an empty executable.
15365 cat >conftest.$ac_ext <<_ACEOF
15366#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000015367/* confdefs.h. */
15368_ACEOF
15369cat confdefs.h >>conftest.$ac_ext
15370cat >>conftest.$ac_ext <<_ACEOF
15371/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000015372
John Criswell47fdd832003-07-14 16:52:07 +000015373int
15374main ()
15375{
15376
15377 ;
15378 return 0;
15379}
15380_ACEOF
15381rm -f conftest.$ac_objext conftest$ac_exeext
15382if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15383 (eval $ac_link) 2>&5
15384 ac_status=$?
15385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15386 (exit $ac_status); } &&
15387 { ac_try='test -s conftest$ac_exeext'
15388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15389 (eval $ac_try) 2>&5
15390 ac_status=$?
15391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15392 (exit $ac_status); }; }; then
15393
15394aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15395}'`
15396# Check for a 64-bit object if we didn't find anything.
15397if 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; }
15398}'`; fi
15399else
15400 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015401sed 's/^/| /' conftest.$ac_ext >&5
15402
John Criswell47fdd832003-07-14 16:52:07 +000015403fi
15404rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15405if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15406
15407 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15408 # Warning - without using the other run time loading flags,
15409 # -berok will link without error, but may produce a broken library.
15410 no_undefined_flag_GCJ=' ${wl}-bernotok'
15411 allow_undefined_flag_GCJ=' ${wl}-berok'
15412 # -bexpall does not export symbols beginning with underscore (_)
15413 always_export_symbols_GCJ=yes
15414 # Exported symbols can be pulled into shared objects from archives
15415 whole_archive_flag_spec_GCJ=' '
15416 archive_cmds_need_lc_GCJ=yes
15417 # This is similar to how AIX traditionally builds it's shared libraries.
15418 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'
15419 fi
15420 fi
15421 ;;
15422
15423 amigaos*)
15424 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)'
15425 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15426 hardcode_minus_L_GCJ=yes
15427 # see comment about different semantics on the GNU ld section
15428 ld_shlibs_GCJ=no
15429 ;;
15430
15431 bsdi4*)
15432 export_dynamic_flag_spec_GCJ=-rdynamic
15433 ;;
15434
15435 cygwin* | mingw* | pw32*)
15436 # When not using gcc, we currently assume that we are using
15437 # Microsoft Visual C++.
15438 # hardcode_libdir_flag_spec is actually meaningless, as there is
15439 # no search path for DLLs.
15440 hardcode_libdir_flag_spec_GCJ=' '
15441 allow_undefined_flag_GCJ=unsupported
15442 # Tell ltmain to make .lib files, not .a files.
15443 libext=lib
15444 # Tell ltmain to make .dll files, not .so files.
15445 shrext=".dll"
15446 # FIXME: Setting linknames here is a bad hack.
15447 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15448 # The linker will automatically build a .lib file if we build a DLL.
15449 old_archive_From_new_cmds_GCJ='true'
15450 # FIXME: Should let the user specify the lib program.
15451 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
15452 fix_srcfile_path='`cygpath -w "$srcfile"`'
15453 enable_shared_with_static_runtimes_GCJ=yes
15454 ;;
15455
15456 darwin* | rhapsody*)
15457 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
15458 archive_cmds_need_lc_GCJ=no
15459 case "$host_os" in
15460 rhapsody* | darwin1.[012])
15461 allow_undefined_flag_GCJ='-undefined suppress'
15462 ;;
15463 *) # Darwin 1.3 on
15464 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15465 ;;
15466 esac
15467 # FIXME: Relying on posixy $() will cause problems for
15468 # cross-compilation, but unfortunately the echo tests do not
15469 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
15470 # `"' quotes if we put them in here... so don't!
15471 lt_int_apple_cc_single_mod=no
15472 output_verbose_link_cmd='echo'
15473 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15474 lt_int_apple_cc_single_mod=yes
15475 fi
15476 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15477 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15478 else
15479 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'
15480 fi
15481 module_cmds_GCJ='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
15482 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15483 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15484 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}'
15485 else
15486 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}'
15487 fi
15488 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}'
15489 hardcode_direct_GCJ=no
15490 hardcode_automatic_GCJ=yes
15491 hardcode_shlibpath_var_GCJ=unsupported
15492 whole_archive_flag_spec_GCJ='-all_load $convenience'
15493 link_all_deplibs_GCJ=yes
15494 fi
15495 ;;
15496
15497 dgux*)
15498 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15499 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15500 hardcode_shlibpath_var_GCJ=no
15501 ;;
15502
15503 freebsd1*)
15504 ld_shlibs_GCJ=no
15505 ;;
15506
15507 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15508 # support. Future versions do this automatically, but an explicit c++rt0.o
15509 # does not break anything, and helps significantly (at the cost of a little
15510 # extra space).
15511 freebsd2.2*)
15512 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15513 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15514 hardcode_direct_GCJ=yes
15515 hardcode_shlibpath_var_GCJ=no
15516 ;;
15517
15518 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15519 freebsd2*)
15520 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15521 hardcode_direct_GCJ=yes
15522 hardcode_minus_L_GCJ=yes
15523 hardcode_shlibpath_var_GCJ=no
15524 ;;
15525
15526 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15527 freebsd*)
15528 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15529 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15530 hardcode_direct_GCJ=yes
15531 hardcode_shlibpath_var_GCJ=no
15532 ;;
15533
15534 hpux9*)
15535 if test "$GCC" = yes; then
15536 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'
15537 else
15538 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'
15539 fi
15540 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15541 hardcode_libdir_separator_GCJ=:
15542 hardcode_direct_GCJ=yes
15543
15544 # hardcode_minus_L: Not really in the search PATH,
15545 # but as the default location of the library.
15546 hardcode_minus_L_GCJ=yes
15547 export_dynamic_flag_spec_GCJ='${wl}-E'
15548 ;;
15549
15550 hpux10* | hpux11*)
15551 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15552 case "$host_cpu" in
15553 hppa*64*|ia64*)
15554 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15555 ;;
15556 *)
15557 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15558 ;;
15559 esac
15560 else
15561 case "$host_cpu" in
15562 hppa*64*|ia64*)
15563 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15564 ;;
15565 *)
15566 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15567 ;;
15568 esac
15569 fi
15570 if test "$with_gnu_ld" = no; then
15571 case "$host_cpu" in
15572 hppa*64*)
15573 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15574 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
15575 hardcode_libdir_separator_GCJ=:
15576 hardcode_direct_GCJ=no
15577 hardcode_shlibpath_var_GCJ=no
15578 ;;
15579 ia64*)
15580 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15581 hardcode_direct_GCJ=no
15582 hardcode_shlibpath_var_GCJ=no
15583
15584 # hardcode_minus_L: Not really in the search PATH,
15585 # but as the default location of the library.
15586 hardcode_minus_L_GCJ=yes
15587 ;;
15588 *)
15589 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15590 hardcode_libdir_separator_GCJ=:
15591 hardcode_direct_GCJ=yes
15592 export_dynamic_flag_spec_GCJ='${wl}-E'
15593
15594 # hardcode_minus_L: Not really in the search PATH,
15595 # but as the default location of the library.
15596 hardcode_minus_L_GCJ=yes
15597 ;;
15598 esac
15599 fi
15600 ;;
15601
15602 irix5* | irix6* | nonstopux*)
15603 if test "$GCC" = yes; then
15604 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'
15605 else
15606 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'
15607 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
15608 fi
15609 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15610 hardcode_libdir_separator_GCJ=:
15611 link_all_deplibs_GCJ=yes
15612 ;;
15613
15614 netbsd*)
15615 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15616 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15617 else
15618 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15619 fi
15620 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15621 hardcode_direct_GCJ=yes
15622 hardcode_shlibpath_var_GCJ=no
15623 ;;
15624
15625 newsos6)
15626 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15627 hardcode_direct_GCJ=yes
15628 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15629 hardcode_libdir_separator_GCJ=:
15630 hardcode_shlibpath_var_GCJ=no
15631 ;;
15632
15633 openbsd*)
15634 hardcode_direct_GCJ=yes
15635 hardcode_shlibpath_var_GCJ=no
15636 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15637 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15638 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15639 export_dynamic_flag_spec_GCJ='${wl}-E'
15640 else
15641 case $host_os in
15642 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15643 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15644 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15645 ;;
15646 *)
15647 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15648 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15649 ;;
15650 esac
15651 fi
15652 ;;
15653
15654 os2*)
15655 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15656 hardcode_minus_L_GCJ=yes
15657 allow_undefined_flag_GCJ=unsupported
15658 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'
15659 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15660 ;;
15661
15662 osf3*)
15663 if test "$GCC" = yes; then
15664 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
15665 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'
15666 else
15667 allow_undefined_flag_GCJ=' -expect_unresolved \*'
15668 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'
15669 fi
15670 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15671 hardcode_libdir_separator_GCJ=:
15672 ;;
15673
15674 osf4* | osf5*) # as osf3* with the addition of -msym flag
15675 if test "$GCC" = yes; then
15676 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
15677 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'
15678 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15679 else
15680 allow_undefined_flag_GCJ=' -expect_unresolved \*'
15681 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'
15682 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~
15683 $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'
15684
15685 # Both c and cxx compiler support -rpath directly
15686 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
15687 fi
15688 hardcode_libdir_separator_GCJ=:
15689 ;;
15690
15691 sco3.2v5*)
15692 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15693 hardcode_shlibpath_var_GCJ=no
15694 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
15695 runpath_var=LD_RUN_PATH
15696 hardcode_runpath_var=yes
15697 ;;
15698
15699 solaris*)
15700 no_undefined_flag_GCJ=' -z text'
15701 if test "$GCC" = yes; then
15702 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15703 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15704 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15705 else
15706 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15707 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15708 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15709 fi
15710 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15711 hardcode_shlibpath_var_GCJ=no
15712 case $host_os in
15713 solaris2.[0-5] | solaris2.[0-5].*) ;;
15714 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
15715 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
15716 esac
15717 link_all_deplibs_GCJ=yes
15718 ;;
15719
15720 sunos4*)
15721 if test "x$host_vendor" = xsequent; then
15722 # Use $CC to link under sequent, because it throws in some extra .o
15723 # files that make .init and .fini sections work.
15724 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15725 else
15726 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15727 fi
15728 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15729 hardcode_direct_GCJ=yes
15730 hardcode_minus_L_GCJ=yes
15731 hardcode_shlibpath_var_GCJ=no
15732 ;;
15733
15734 sysv4)
15735 case $host_vendor in
15736 sni)
15737 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15738 hardcode_direct_GCJ=yes # is this really true???
15739 ;;
15740 siemens)
15741 ## LD is ld it makes a PLAMLIB
15742 ## CC just makes a GrossModule.
15743 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15744 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
15745 hardcode_direct_GCJ=no
15746 ;;
15747 motorola)
15748 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15749 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
15750 ;;
15751 esac
15752 runpath_var='LD_RUN_PATH'
15753 hardcode_shlibpath_var_GCJ=no
15754 ;;
15755
15756 sysv4.3*)
15757 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15758 hardcode_shlibpath_var_GCJ=no
15759 export_dynamic_flag_spec_GCJ='-Bexport'
15760 ;;
15761
15762 sysv4*MP*)
15763 if test -d /usr/nec; then
15764 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15765 hardcode_shlibpath_var_GCJ=no
15766 runpath_var=LD_RUN_PATH
15767 hardcode_runpath_var=yes
15768 ld_shlibs_GCJ=yes
15769 fi
15770 ;;
15771
15772 sysv4.2uw2*)
15773 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15774 hardcode_direct_GCJ=yes
15775 hardcode_minus_L_GCJ=no
15776 hardcode_shlibpath_var_GCJ=no
15777 hardcode_runpath_var=yes
15778 runpath_var=LD_RUN_PATH
15779 ;;
15780
15781 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
15782 no_undefined_flag_GCJ='${wl}-z ${wl}text'
15783 if test "$GCC" = yes; then
15784 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15785 else
15786 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15787 fi
15788 runpath_var='LD_RUN_PATH'
15789 hardcode_shlibpath_var_GCJ=no
15790 ;;
15791
15792 sysv5*)
15793 no_undefined_flag_GCJ=' -z text'
15794 # $CC -shared without GNU ld will not create a library from C++
15795 # object files and a static libstdc++, better avoid it by now
15796 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15797 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15798 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15799 hardcode_libdir_flag_spec_GCJ=
15800 hardcode_shlibpath_var_GCJ=no
15801 runpath_var='LD_RUN_PATH'
15802 ;;
15803
15804 uts4*)
15805 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15806 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15807 hardcode_shlibpath_var_GCJ=no
15808 ;;
15809
15810 *)
15811 ld_shlibs_GCJ=no
15812 ;;
15813 esac
15814 fi
15815
15816echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
15817echo "${ECHO_T}$ld_shlibs_GCJ" >&6
15818test "$ld_shlibs_GCJ" = no && can_build_shared=no
15819
15820variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15821if test "$GCC" = yes; then
15822 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15823fi
15824
15825#
15826# Do we need to explicitly link libc?
15827#
15828case "x$archive_cmds_need_lc_GCJ" in
15829x|xyes)
15830 # Assume -lc should be added
15831 archive_cmds_need_lc_GCJ=yes
15832
15833 if test "$enable_shared" = yes && test "$GCC" = yes; then
15834 case $archive_cmds_GCJ in
15835 *'~'*)
15836 # FIXME: we may have to deal with multi-command sequences.
15837 ;;
15838 '$CC '*)
15839 # Test whether the compiler implicitly links with -lc since on some
15840 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15841 # to ld, don't add -lc before -lgcc.
15842 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15843echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
15844 $rm conftest*
15845 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15846
15847 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15848 (eval $ac_compile) 2>&5
15849 ac_status=$?
15850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15851 (exit $ac_status); } 2>conftest.err; then
15852 soname=conftest
15853 lib=conftest
15854 libobjs=conftest.$ac_objext
15855 deplibs=
15856 wl=$lt_prog_compiler_wl_GCJ
15857 compiler_flags=-v
15858 linker_flags=-v
15859 verstring=
15860 output_objdir=.
15861 libname=conftest
15862 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
15863 allow_undefined_flag_GCJ=
15864 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15865 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15866 ac_status=$?
15867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15868 (exit $ac_status); }
15869 then
15870 archive_cmds_need_lc_GCJ=no
15871 else
15872 archive_cmds_need_lc_GCJ=yes
15873 fi
15874 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
15875 else
15876 cat conftest.err 1>&5
15877 fi
15878 $rm conftest*
15879 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
15880echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
15881 ;;
15882 esac
15883 fi
15884 ;;
15885esac
15886
15887echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15888echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15889hardcode_action_GCJ=
15890if test -n "$hardcode_libdir_flag_spec_GCJ" || \
15891 test -n "$runpath_var GCJ" || \
15892 test "X$hardcode_automatic_GCJ"="Xyes" ; then
15893
15894 # We can hardcode non-existant directories.
15895 if test "$hardcode_direct_GCJ" != no &&
15896 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15897 # have to relink, otherwise we might link with an installed library
15898 # when we should be linking with a yet-to-be-installed one
15899 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
15900 test "$hardcode_minus_L_GCJ" != no; then
15901 # Linking always hardcodes the temporary library directory.
15902 hardcode_action_GCJ=relink
15903 else
15904 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15905 hardcode_action_GCJ=immediate
15906 fi
15907else
15908 # We cannot hardcode anything, or else we can only hardcode existing
15909 # directories.
15910 hardcode_action_GCJ=unsupported
15911fi
15912echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
15913echo "${ECHO_T}$hardcode_action_GCJ" >&6
15914
15915if test "$hardcode_action_GCJ" = relink; then
15916 # Fast installation is not supported
15917 enable_fast_install=no
15918elif test "$shlibpath_overrides_runpath" = yes ||
15919 test "$enable_shared" = no; then
15920 # Fast installation is not necessary
15921 enable_fast_install=needless
15922fi
15923
15924striplib=
15925old_striplib=
15926echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15927echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15928if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15929 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15930 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15931 echo "$as_me:$LINENO: result: yes" >&5
15932echo "${ECHO_T}yes" >&6
15933else
15934# FIXME - insert some real tests, host_os isn't really good enough
15935 case $host_os in
15936 darwin*)
15937 if test -n "$STRIP" ; then
15938 striplib="$STRIP -x"
15939 echo "$as_me:$LINENO: result: yes" >&5
15940echo "${ECHO_T}yes" >&6
15941 else
15942 echo "$as_me:$LINENO: result: no" >&5
15943echo "${ECHO_T}no" >&6
15944fi
15945 ;;
15946 *)
15947 echo "$as_me:$LINENO: result: no" >&5
15948echo "${ECHO_T}no" >&6
15949 ;;
15950 esac
15951fi
15952
15953echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15954echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
15955library_names_spec=
15956libname_spec='lib$name'
15957soname_spec=
15958shrext=".so"
15959postinstall_cmds=
15960postuninstall_cmds=
15961finish_cmds=
15962finish_eval=
15963shlibpath_var=
15964shlibpath_overrides_runpath=unknown
15965version_type=none
15966dynamic_linker="$host_os ld.so"
15967sys_lib_dlsearch_path_spec="/lib /usr/lib"
15968if test "$GCC" = yes; then
15969 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15970 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15971 # if the path contains ";" then we assume it to be the separator
15972 # otherwise default to the standard path separator (i.e. ":") - it is
15973 # assumed that no part of a normal pathname contains ";" but that should
15974 # okay in the real world where ";" in dirpaths is itself problematic.
15975 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15976 else
15977 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15978 fi
15979else
15980 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15981fi
15982need_lib_prefix=unknown
15983hardcode_into_libs=no
15984
15985# when you set need_version to no, make sure it does not cause -set_version
15986# flags to be left without arguments
15987need_version=unknown
15988
15989case $host_os in
15990aix3*)
15991 version_type=linux
15992 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15993 shlibpath_var=LIBPATH
15994
15995 # AIX 3 has no versioning support, so we append a major version to the name.
15996 soname_spec='${libname}${release}${shared_ext}$major'
15997 ;;
15998
15999aix4* | aix5*)
16000 version_type=linux
16001 need_lib_prefix=no
16002 need_version=no
16003 hardcode_into_libs=yes
16004 if test "$host_cpu" = ia64; then
16005 # AIX 5 supports IA64
16006 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16007 shlibpath_var=LD_LIBRARY_PATH
16008 else
16009 # With GCC up to 2.95.x, collect2 would create an import file
16010 # for dependence libraries. The import file would start with
16011 # the line `#! .'. This would cause the generated library to
16012 # depend on `.', always an invalid library. This was fixed in
16013 # development snapshots of GCC prior to 3.0.
16014 case $host_os in
16015 aix4 | aix4.[01] | aix4.[01].*)
16016 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16017 echo ' yes '
16018 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16019 :
16020 else
16021 can_build_shared=no
16022 fi
16023 ;;
16024 esac
16025 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16026 # soname into executable. Probably we can add versioning support to
16027 # collect2, so additional links can be useful in future.
16028 if test "$aix_use_runtimelinking" = yes; then
16029 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16030 # instead of lib<name>.a to let people know that these are not
16031 # typical AIX shared libraries.
16032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16033 else
16034 # We preserve .a as extension for shared libraries through AIX4.2
16035 # and later when we are not doing run time linking.
16036 library_names_spec='${libname}${release}.a $libname.a'
16037 soname_spec='${libname}${release}${shared_ext}$major'
16038 fi
16039 shlibpath_var=LIBPATH
16040 fi
16041 ;;
16042
16043amigaos*)
16044 library_names_spec='$libname.ixlibrary $libname.a'
16045 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16046 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'
16047 ;;
16048
16049beos*)
16050 library_names_spec='${libname}${shared_ext}'
16051 dynamic_linker="$host_os ld.so"
16052 shlibpath_var=LIBRARY_PATH
16053 ;;
16054
16055bsdi4*)
16056 version_type=linux
16057 need_version=no
16058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16059 soname_spec='${libname}${release}${shared_ext}$major'
16060 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16061 shlibpath_var=LD_LIBRARY_PATH
16062 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16063 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16064 # the default ld.so.conf also contains /usr/contrib/lib and
16065 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16066 # libtool to hard-code these into programs
16067 ;;
16068
16069cygwin* | mingw* | pw32*)
16070 version_type=windows
16071 shrext=".dll"
16072 need_version=no
16073 need_lib_prefix=no
16074
16075 case $GCC,$host_os in
16076 yes,cygwin* | yes,mingw* | yes,pw32*)
16077 library_names_spec='$libname.dll.a'
16078 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16079 postinstall_cmds='base_file=`basename \${file}`~
16080 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16081 dldir=$destdir/`dirname \$dlpath`~
16082 test -d \$dldir || mkdir -p \$dldir~
16083 $install_prog $dir/$dlname \$dldir/$dlname'
16084 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16085 dlpath=$dir/\$dldll~
16086 $rm \$dlpath'
16087 shlibpath_overrides_runpath=yes
16088
16089 case $host_os in
16090 cygwin*)
16091 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16092 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16093 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
16094 ;;
16095 mingw*)
16096 # MinGW DLLs use traditional 'lib' prefix
16097 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16098 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16099 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16100 # It is most probably a Windows format PATH printed by
16101 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16102 # path with ; separators, and with drive letters. We can handle the
16103 # drive letters (cygwin fileutils understands them), so leave them,
16104 # especially as we might pass files found there to a mingw objdump,
16105 # which wouldn't understand a cygwinified path. Ahh.
16106 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16107 else
16108 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16109 fi
16110 ;;
16111 pw32*)
16112 # pw32 DLLs use 'pw' prefix rather than 'lib'
16113 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16114 ;;
16115 esac
16116 ;;
16117
16118 *)
16119 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16120 ;;
16121 esac
16122 dynamic_linker='Win32 ld.exe'
16123 # FIXME: first we should search . and the directory the executable is in
16124 shlibpath_var=PATH
16125 ;;
16126
16127darwin* | rhapsody*)
16128 dynamic_linker="$host_os dyld"
16129 version_type=darwin
16130 need_lib_prefix=no
16131 need_version=no
16132 # FIXME: Relying on posixy $() will cause problems for
16133 # cross-compilation, but unfortunately the echo tests do not
16134 # yet detect zsh echo's removal of \ escapes.
16135 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16136 soname_spec='${libname}${release}${major}$shared_ext'
16137 shlibpath_overrides_runpath=yes
16138 shlibpath_var=DYLD_LIBRARY_PATH
16139 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
16140 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16141 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
16142 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"`
16143 fi
16144 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16145 ;;
16146
16147dgux*)
16148 version_type=linux
16149 need_lib_prefix=no
16150 need_version=no
16151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16152 soname_spec='${libname}${release}${shared_ext}$major'
16153 shlibpath_var=LD_LIBRARY_PATH
16154 ;;
16155
16156freebsd1*)
16157 dynamic_linker=no
16158 ;;
16159
16160freebsd*)
16161 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16162 version_type=freebsd-$objformat
16163 case $version_type in
16164 freebsd-elf*)
16165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16166 need_version=no
16167 need_lib_prefix=no
16168 ;;
16169 freebsd-*)
16170 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16171 need_version=yes
16172 ;;
16173 esac
16174 shlibpath_var=LD_LIBRARY_PATH
16175 case $host_os in
16176 freebsd2*)
16177 shlibpath_overrides_runpath=yes
16178 ;;
16179 freebsd3.01* | freebsdelf3.01*)
16180 shlibpath_overrides_runpath=yes
16181 hardcode_into_libs=yes
16182 ;;
16183 *) # from 3.2 on
16184 shlibpath_overrides_runpath=no
16185 hardcode_into_libs=yes
16186 ;;
16187 esac
16188 ;;
16189
16190gnu*)
16191 version_type=linux
16192 need_lib_prefix=no
16193 need_version=no
16194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16195 soname_spec='${libname}${release}${shared_ext}$major'
16196 shlibpath_var=LD_LIBRARY_PATH
16197 hardcode_into_libs=yes
16198 ;;
16199
16200hpux9* | hpux10* | hpux11*)
16201 # Give a soname corresponding to the major version so that dld.sl refuses to
16202 # link against other versions.
16203 version_type=sunos
16204 need_lib_prefix=no
16205 need_version=no
16206 case "$host_cpu" in
16207 ia64*)
16208 shrext='.so'
16209 hardcode_into_libs=yes
16210 dynamic_linker="$host_os dld.so"
16211 shlibpath_var=LD_LIBRARY_PATH
16212 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16214 soname_spec='${libname}${release}${shared_ext}$major'
16215 if test "X$HPUX_IA64_MODE" = X32; then
16216 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16217 else
16218 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16219 fi
16220 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16221 ;;
16222 hppa*64*)
16223 shrext='.sl'
16224 hardcode_into_libs=yes
16225 dynamic_linker="$host_os dld.sl"
16226 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16227 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16228 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16229 soname_spec='${libname}${release}${shared_ext}$major'
16230 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16231 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16232 ;;
16233 *)
16234 shrext='.sl'
16235 dynamic_linker="$host_os dld.sl"
16236 shlibpath_var=SHLIB_PATH
16237 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16238 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16239 soname_spec='${libname}${release}${shared_ext}$major'
16240 ;;
16241 esac
16242 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16243 postinstall_cmds='chmod 555 $lib'
16244 ;;
16245
16246irix5* | irix6* | nonstopux*)
16247 case $host_os in
16248 nonstopux*) version_type=nonstopux ;;
16249 *)
16250 if test "$lt_cv_prog_gnu_ld" = yes; then
16251 version_type=linux
16252 else
16253 version_type=irix
16254 fi ;;
16255 esac
16256 need_lib_prefix=no
16257 need_version=no
16258 soname_spec='${libname}${release}${shared_ext}$major'
16259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16260 case $host_os in
16261 irix5* | nonstopux*)
16262 libsuff= shlibsuff=
16263 ;;
16264 *)
16265 case $LD in # libtool.m4 will add one of these switches to LD
16266 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16267 libsuff= shlibsuff= libmagic=32-bit;;
16268 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16269 libsuff=32 shlibsuff=N32 libmagic=N32;;
16270 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16271 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16272 *) libsuff= shlibsuff= libmagic=never-match;;
16273 esac
16274 ;;
16275 esac
16276 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16277 shlibpath_overrides_runpath=no
16278 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16279 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16280 hardcode_into_libs=yes
16281 ;;
16282
16283# No shared lib support for Linux oldld, aout, or coff.
16284linux*oldld* | linux*aout* | linux*coff*)
16285 dynamic_linker=no
16286 ;;
16287
16288# This must be Linux ELF.
16289linux*)
16290 version_type=linux
16291 need_lib_prefix=no
16292 need_version=no
16293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16294 soname_spec='${libname}${release}${shared_ext}$major'
16295 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16296 shlibpath_var=LD_LIBRARY_PATH
16297 shlibpath_overrides_runpath=no
16298 # This implies no fast_install, which is unacceptable.
16299 # Some rework will be needed to allow for fast_install
16300 # before this can be enabled.
16301 hardcode_into_libs=yes
16302
16303 # We used to test for /lib/ld.so.1 and disable shared libraries on
16304 # powerpc, because MkLinux only supported shared libraries with the
16305 # GNU dynamic linker. Since this was broken with cross compilers,
16306 # most powerpc-linux boxes support dynamic linking these days and
16307 # people can always --disable-shared, the test was removed, and we
16308 # assume the GNU/Linux dynamic linker is in use.
16309 dynamic_linker='GNU/Linux ld.so'
16310 ;;
16311
16312netbsd*)
16313 version_type=sunos
16314 need_lib_prefix=no
16315 need_version=no
16316 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16317 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16318 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16319 dynamic_linker='NetBSD (a.out) ld.so'
16320 else
16321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
16322 soname_spec='${libname}${release}${shared_ext}$major'
16323 dynamic_linker='NetBSD ld.elf_so'
16324 fi
16325 shlibpath_var=LD_LIBRARY_PATH
16326 shlibpath_overrides_runpath=yes
16327 hardcode_into_libs=yes
16328 ;;
16329
16330newsos6)
16331 version_type=linux
16332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16333 shlibpath_var=LD_LIBRARY_PATH
16334 shlibpath_overrides_runpath=yes
16335 ;;
16336
16337nto-qnx)
16338 version_type=linux
16339 need_lib_prefix=no
16340 need_version=no
16341 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16342 soname_spec='${libname}${release}${shared_ext}$major'
16343 shlibpath_var=LD_LIBRARY_PATH
16344 shlibpath_overrides_runpath=yes
16345 ;;
16346
16347openbsd*)
16348 version_type=sunos
16349 need_lib_prefix=no
16350 need_version=no
16351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16352 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16353 shlibpath_var=LD_LIBRARY_PATH
16354 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16355 case $host_os in
16356 openbsd2.[89] | openbsd2.[89].*)
16357 shlibpath_overrides_runpath=no
16358 ;;
16359 *)
16360 shlibpath_overrides_runpath=yes
16361 ;;
16362 esac
16363 else
16364 shlibpath_overrides_runpath=yes
16365 fi
16366 ;;
16367
16368os2*)
16369 libname_spec='$name'
16370 shrext=".dll"
16371 need_lib_prefix=no
16372 library_names_spec='$libname${shared_ext} $libname.a'
16373 dynamic_linker='OS/2 ld.exe'
16374 shlibpath_var=LIBPATH
16375 ;;
16376
16377osf3* | osf4* | osf5*)
16378 version_type=osf
16379 need_lib_prefix=no
16380 need_version=no
16381 soname_spec='${libname}${release}${shared_ext}$major'
16382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16383 shlibpath_var=LD_LIBRARY_PATH
16384 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16385 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16386 ;;
16387
16388sco3.2v5*)
16389 version_type=osf
16390 soname_spec='${libname}${release}${shared_ext}$major'
16391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16392 shlibpath_var=LD_LIBRARY_PATH
16393 ;;
16394
16395solaris*)
16396 version_type=linux
16397 need_lib_prefix=no
16398 need_version=no
16399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16400 soname_spec='${libname}${release}${shared_ext}$major'
16401 shlibpath_var=LD_LIBRARY_PATH
16402 shlibpath_overrides_runpath=yes
16403 hardcode_into_libs=yes
16404 # ldd complains unless libraries are executable
16405 postinstall_cmds='chmod +x $lib'
16406 ;;
16407
16408sunos4*)
16409 version_type=sunos
16410 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16411 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16412 shlibpath_var=LD_LIBRARY_PATH
16413 shlibpath_overrides_runpath=yes
16414 if test "$with_gnu_ld" = yes; then
16415 need_lib_prefix=no
16416 fi
16417 need_version=yes
16418 ;;
16419
16420sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16421 version_type=linux
16422 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16423 soname_spec='${libname}${release}${shared_ext}$major'
16424 shlibpath_var=LD_LIBRARY_PATH
16425 case $host_vendor in
16426 sni)
16427 shlibpath_overrides_runpath=no
16428 need_lib_prefix=no
16429 export_dynamic_flag_spec='${wl}-Blargedynsym'
16430 runpath_var=LD_RUN_PATH
16431 ;;
16432 siemens)
16433 need_lib_prefix=no
16434 ;;
16435 motorola)
16436 need_lib_prefix=no
16437 need_version=no
16438 shlibpath_overrides_runpath=no
16439 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16440 ;;
16441 esac
16442 ;;
16443
16444sysv4*MP*)
16445 if test -d /usr/nec ;then
16446 version_type=linux
16447 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16448 soname_spec='$libname${shared_ext}.$major'
16449 shlibpath_var=LD_LIBRARY_PATH
16450 fi
16451 ;;
16452
16453uts4*)
16454 version_type=linux
16455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16456 soname_spec='${libname}${release}${shared_ext}$major'
16457 shlibpath_var=LD_LIBRARY_PATH
16458 ;;
16459
16460*)
16461 dynamic_linker=no
16462 ;;
16463esac
16464echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16465echo "${ECHO_T}$dynamic_linker" >&6
16466test "$dynamic_linker" = no && can_build_shared=no
16467
16468if test "x$enable_dlopen" != xyes; then
16469 enable_dlopen=unknown
16470 enable_dlopen_self=unknown
16471 enable_dlopen_self_static=unknown
16472else
16473 lt_cv_dlopen=no
16474 lt_cv_dlopen_libs=
16475
16476 case $host_os in
16477 beos*)
16478 lt_cv_dlopen="load_add_on"
16479 lt_cv_dlopen_libs=
16480 lt_cv_dlopen_self=yes
16481 ;;
16482
16483 mingw* | pw32*)
16484 lt_cv_dlopen="LoadLibrary"
16485 lt_cv_dlopen_libs=
16486 ;;
16487
16488 cygwin*)
16489 lt_cv_dlopen="dlopen"
16490 lt_cv_dlopen_libs=
16491 ;;
16492
16493 darwin*)
16494 # if libdl is installed we need to link against it
16495 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16496echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16497if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16498 echo $ECHO_N "(cached) $ECHO_C" >&6
16499else
16500 ac_check_lib_save_LIBS=$LIBS
16501LIBS="-ldl $LIBS"
16502cat >conftest.$ac_ext <<_ACEOF
16503#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000016504/* confdefs.h. */
16505_ACEOF
16506cat confdefs.h >>conftest.$ac_ext
16507cat >>conftest.$ac_ext <<_ACEOF
16508/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016509
16510/* Override any gcc2 internal prototype to avoid an error. */
16511#ifdef __cplusplus
16512extern "C"
16513#endif
16514/* We use char because int might match the return type of a gcc2
16515 builtin and then its argument prototype would still apply. */
16516char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000016517int
16518main ()
16519{
16520dlopen ();
16521 ;
16522 return 0;
16523}
16524_ACEOF
16525rm -f conftest.$ac_objext conftest$ac_exeext
16526if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16527 (eval $ac_link) 2>&5
16528 ac_status=$?
16529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16530 (exit $ac_status); } &&
16531 { ac_try='test -s conftest$ac_exeext'
16532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16533 (eval $ac_try) 2>&5
16534 ac_status=$?
16535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16536 (exit $ac_status); }; }; then
16537 ac_cv_lib_dl_dlopen=yes
16538else
16539 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016540sed 's/^/| /' conftest.$ac_ext >&5
16541
John Criswell47fdd832003-07-14 16:52:07 +000016542ac_cv_lib_dl_dlopen=no
16543fi
16544rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16545LIBS=$ac_check_lib_save_LIBS
16546fi
16547echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16548echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16549if test $ac_cv_lib_dl_dlopen = yes; then
16550 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16551else
16552
16553 lt_cv_dlopen="dyld"
16554 lt_cv_dlopen_libs=
16555 lt_cv_dlopen_self=yes
16556
16557fi
16558
16559 ;;
16560
16561 *)
16562 echo "$as_me:$LINENO: checking for shl_load" >&5
16563echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
16564if test "${ac_cv_func_shl_load+set}" = set; then
16565 echo $ECHO_N "(cached) $ECHO_C" >&6
16566else
16567 cat >conftest.$ac_ext <<_ACEOF
16568#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000016569/* confdefs.h. */
16570_ACEOF
16571cat confdefs.h >>conftest.$ac_ext
16572cat >>conftest.$ac_ext <<_ACEOF
16573/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016574/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000016575 which can conflict with char shl_load (); below.
16576 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16577 <limits.h> exists even on freestanding compilers. */
16578#ifdef __STDC__
16579# include <limits.h>
16580#else
16581# include <assert.h>
16582#endif
John Criswell47fdd832003-07-14 16:52:07 +000016583/* Override any gcc2 internal prototype to avoid an error. */
16584#ifdef __cplusplus
16585extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000016586{
John Criswell47fdd832003-07-14 16:52:07 +000016587#endif
16588/* We use char because int might match the return type of a gcc2
16589 builtin and then its argument prototype would still apply. */
16590char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000016591/* The GNU C library defines this for functions which it implements
16592 to always fail with ENOSYS. Some functions are actually named
16593 something starting with __ and the normal name is an alias. */
16594#if defined (__stub_shl_load) || defined (__stub___shl_load)
16595choke me
16596#else
John Criswell0c38eaf2003-09-10 15:17:25 +000016597char (*f) () = shl_load;
16598#endif
16599#ifdef __cplusplus
16600}
John Criswell47fdd832003-07-14 16:52:07 +000016601#endif
16602
John Criswell0c38eaf2003-09-10 15:17:25 +000016603int
16604main ()
16605{
16606return f != shl_load;
John Criswell47fdd832003-07-14 16:52:07 +000016607 ;
16608 return 0;
16609}
16610_ACEOF
16611rm -f conftest.$ac_objext conftest$ac_exeext
16612if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16613 (eval $ac_link) 2>&5
16614 ac_status=$?
16615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16616 (exit $ac_status); } &&
16617 { ac_try='test -s conftest$ac_exeext'
16618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16619 (eval $ac_try) 2>&5
16620 ac_status=$?
16621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16622 (exit $ac_status); }; }; then
16623 ac_cv_func_shl_load=yes
16624else
16625 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016626sed 's/^/| /' conftest.$ac_ext >&5
16627
John Criswell47fdd832003-07-14 16:52:07 +000016628ac_cv_func_shl_load=no
16629fi
16630rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16631fi
16632echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16633echo "${ECHO_T}$ac_cv_func_shl_load" >&6
16634if test $ac_cv_func_shl_load = yes; then
16635 lt_cv_dlopen="shl_load"
16636else
16637 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16638echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
16639if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16640 echo $ECHO_N "(cached) $ECHO_C" >&6
16641else
16642 ac_check_lib_save_LIBS=$LIBS
16643LIBS="-ldld $LIBS"
16644cat >conftest.$ac_ext <<_ACEOF
16645#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000016646/* confdefs.h. */
16647_ACEOF
16648cat confdefs.h >>conftest.$ac_ext
16649cat >>conftest.$ac_ext <<_ACEOF
16650/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016651
16652/* Override any gcc2 internal prototype to avoid an error. */
16653#ifdef __cplusplus
16654extern "C"
16655#endif
16656/* We use char because int might match the return type of a gcc2
16657 builtin and then its argument prototype would still apply. */
16658char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000016659int
16660main ()
16661{
16662shl_load ();
16663 ;
16664 return 0;
16665}
16666_ACEOF
16667rm -f conftest.$ac_objext conftest$ac_exeext
16668if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16669 (eval $ac_link) 2>&5
16670 ac_status=$?
16671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16672 (exit $ac_status); } &&
16673 { ac_try='test -s conftest$ac_exeext'
16674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16675 (eval $ac_try) 2>&5
16676 ac_status=$?
16677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16678 (exit $ac_status); }; }; then
16679 ac_cv_lib_dld_shl_load=yes
16680else
16681 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016682sed 's/^/| /' conftest.$ac_ext >&5
16683
John Criswell47fdd832003-07-14 16:52:07 +000016684ac_cv_lib_dld_shl_load=no
16685fi
16686rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16687LIBS=$ac_check_lib_save_LIBS
16688fi
16689echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16690echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
16691if test $ac_cv_lib_dld_shl_load = yes; then
16692 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16693else
16694 echo "$as_me:$LINENO: checking for dlopen" >&5
16695echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
16696if test "${ac_cv_func_dlopen+set}" = set; then
16697 echo $ECHO_N "(cached) $ECHO_C" >&6
16698else
16699 cat >conftest.$ac_ext <<_ACEOF
16700#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000016701/* confdefs.h. */
16702_ACEOF
16703cat confdefs.h >>conftest.$ac_ext
16704cat >>conftest.$ac_ext <<_ACEOF
16705/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016706/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000016707 which can conflict with char dlopen (); below.
16708 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16709 <limits.h> exists even on freestanding compilers. */
16710#ifdef __STDC__
16711# include <limits.h>
16712#else
16713# include <assert.h>
16714#endif
John Criswell47fdd832003-07-14 16:52:07 +000016715/* Override any gcc2 internal prototype to avoid an error. */
16716#ifdef __cplusplus
16717extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000016718{
John Criswell47fdd832003-07-14 16:52:07 +000016719#endif
16720/* We use char because int might match the return type of a gcc2
16721 builtin and then its argument prototype would still apply. */
16722char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000016723/* The GNU C library defines this for functions which it implements
16724 to always fail with ENOSYS. Some functions are actually named
16725 something starting with __ and the normal name is an alias. */
16726#if defined (__stub_dlopen) || defined (__stub___dlopen)
16727choke me
16728#else
John Criswell0c38eaf2003-09-10 15:17:25 +000016729char (*f) () = dlopen;
16730#endif
16731#ifdef __cplusplus
16732}
John Criswell47fdd832003-07-14 16:52:07 +000016733#endif
16734
John Criswell0c38eaf2003-09-10 15:17:25 +000016735int
16736main ()
16737{
16738return f != dlopen;
John Criswell47fdd832003-07-14 16:52:07 +000016739 ;
16740 return 0;
16741}
16742_ACEOF
16743rm -f conftest.$ac_objext conftest$ac_exeext
16744if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16745 (eval $ac_link) 2>&5
16746 ac_status=$?
16747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16748 (exit $ac_status); } &&
16749 { ac_try='test -s conftest$ac_exeext'
16750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16751 (eval $ac_try) 2>&5
16752 ac_status=$?
16753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16754 (exit $ac_status); }; }; then
16755 ac_cv_func_dlopen=yes
16756else
16757 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016758sed 's/^/| /' conftest.$ac_ext >&5
16759
John Criswell47fdd832003-07-14 16:52:07 +000016760ac_cv_func_dlopen=no
16761fi
16762rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16763fi
16764echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16765echo "${ECHO_T}$ac_cv_func_dlopen" >&6
16766if test $ac_cv_func_dlopen = yes; then
16767 lt_cv_dlopen="dlopen"
16768else
16769 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16770echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16771if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16772 echo $ECHO_N "(cached) $ECHO_C" >&6
16773else
16774 ac_check_lib_save_LIBS=$LIBS
16775LIBS="-ldl $LIBS"
16776cat >conftest.$ac_ext <<_ACEOF
16777#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000016778/* confdefs.h. */
16779_ACEOF
16780cat confdefs.h >>conftest.$ac_ext
16781cat >>conftest.$ac_ext <<_ACEOF
16782/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016783
16784/* Override any gcc2 internal prototype to avoid an error. */
16785#ifdef __cplusplus
16786extern "C"
16787#endif
16788/* We use char because int might match the return type of a gcc2
16789 builtin and then its argument prototype would still apply. */
16790char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000016791int
16792main ()
16793{
16794dlopen ();
16795 ;
16796 return 0;
16797}
16798_ACEOF
16799rm -f conftest.$ac_objext conftest$ac_exeext
16800if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16801 (eval $ac_link) 2>&5
16802 ac_status=$?
16803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16804 (exit $ac_status); } &&
16805 { ac_try='test -s conftest$ac_exeext'
16806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16807 (eval $ac_try) 2>&5
16808 ac_status=$?
16809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16810 (exit $ac_status); }; }; then
16811 ac_cv_lib_dl_dlopen=yes
16812else
16813 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016814sed 's/^/| /' conftest.$ac_ext >&5
16815
John Criswell47fdd832003-07-14 16:52:07 +000016816ac_cv_lib_dl_dlopen=no
16817fi
16818rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16819LIBS=$ac_check_lib_save_LIBS
16820fi
16821echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16822echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16823if test $ac_cv_lib_dl_dlopen = yes; then
16824 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16825else
16826 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
16827echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
16828if test "${ac_cv_lib_svld_dlopen+set}" = set; then
16829 echo $ECHO_N "(cached) $ECHO_C" >&6
16830else
16831 ac_check_lib_save_LIBS=$LIBS
16832LIBS="-lsvld $LIBS"
16833cat >conftest.$ac_ext <<_ACEOF
16834#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000016835/* confdefs.h. */
16836_ACEOF
16837cat confdefs.h >>conftest.$ac_ext
16838cat >>conftest.$ac_ext <<_ACEOF
16839/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016840
16841/* Override any gcc2 internal prototype to avoid an error. */
16842#ifdef __cplusplus
16843extern "C"
16844#endif
16845/* We use char because int might match the return type of a gcc2
16846 builtin and then its argument prototype would still apply. */
16847char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000016848int
16849main ()
16850{
16851dlopen ();
16852 ;
16853 return 0;
16854}
16855_ACEOF
16856rm -f conftest.$ac_objext conftest$ac_exeext
16857if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16858 (eval $ac_link) 2>&5
16859 ac_status=$?
16860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16861 (exit $ac_status); } &&
16862 { ac_try='test -s conftest$ac_exeext'
16863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16864 (eval $ac_try) 2>&5
16865 ac_status=$?
16866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16867 (exit $ac_status); }; }; then
16868 ac_cv_lib_svld_dlopen=yes
16869else
16870 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016871sed 's/^/| /' conftest.$ac_ext >&5
16872
John Criswell47fdd832003-07-14 16:52:07 +000016873ac_cv_lib_svld_dlopen=no
16874fi
16875rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16876LIBS=$ac_check_lib_save_LIBS
16877fi
16878echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
16879echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
16880if test $ac_cv_lib_svld_dlopen = yes; then
16881 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16882else
16883 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
16884echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
16885if test "${ac_cv_lib_dld_dld_link+set}" = set; then
16886 echo $ECHO_N "(cached) $ECHO_C" >&6
16887else
16888 ac_check_lib_save_LIBS=$LIBS
16889LIBS="-ldld $LIBS"
16890cat >conftest.$ac_ext <<_ACEOF
16891#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000016892/* confdefs.h. */
16893_ACEOF
16894cat confdefs.h >>conftest.$ac_ext
16895cat >>conftest.$ac_ext <<_ACEOF
16896/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016897
16898/* Override any gcc2 internal prototype to avoid an error. */
16899#ifdef __cplusplus
16900extern "C"
16901#endif
16902/* We use char because int might match the return type of a gcc2
16903 builtin and then its argument prototype would still apply. */
16904char dld_link ();
John Criswell47fdd832003-07-14 16:52:07 +000016905int
16906main ()
16907{
16908dld_link ();
16909 ;
16910 return 0;
16911}
16912_ACEOF
16913rm -f conftest.$ac_objext conftest$ac_exeext
16914if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16915 (eval $ac_link) 2>&5
16916 ac_status=$?
16917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16918 (exit $ac_status); } &&
16919 { ac_try='test -s conftest$ac_exeext'
16920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16921 (eval $ac_try) 2>&5
16922 ac_status=$?
16923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16924 (exit $ac_status); }; }; then
16925 ac_cv_lib_dld_dld_link=yes
16926else
16927 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016928sed 's/^/| /' conftest.$ac_ext >&5
16929
John Criswell47fdd832003-07-14 16:52:07 +000016930ac_cv_lib_dld_dld_link=no
16931fi
16932rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16933LIBS=$ac_check_lib_save_LIBS
16934fi
16935echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
16936echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
16937if test $ac_cv_lib_dld_dld_link = yes; then
16938 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
16939fi
16940
16941
16942fi
16943
16944
16945fi
16946
16947
16948fi
16949
16950
16951fi
16952
16953
16954fi
16955
16956 ;;
16957 esac
16958
16959 if test "x$lt_cv_dlopen" != xno; then
16960 enable_dlopen=yes
16961 else
16962 enable_dlopen=no
16963 fi
16964
16965 case $lt_cv_dlopen in
16966 dlopen)
16967 save_CPPFLAGS="$CPPFLAGS"
16968 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16969
16970 save_LDFLAGS="$LDFLAGS"
16971 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
16972
16973 save_LIBS="$LIBS"
16974 LIBS="$lt_cv_dlopen_libs $LIBS"
16975
16976 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
16977echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
16978if test "${lt_cv_dlopen_self+set}" = set; then
16979 echo $ECHO_N "(cached) $ECHO_C" >&6
16980else
16981 if test "$cross_compiling" = yes; then :
16982 lt_cv_dlopen_self=cross
16983else
16984 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16985 lt_status=$lt_dlunknown
16986 cat > conftest.$ac_ext <<EOF
Misha Brukmandb84a092004-06-22 15:35:32 +000016987#line 16987 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000016988#include "confdefs.h"
16989
16990#if HAVE_DLFCN_H
16991#include <dlfcn.h>
16992#endif
16993
16994#include <stdio.h>
16995
16996#ifdef RTLD_GLOBAL
16997# define LT_DLGLOBAL RTLD_GLOBAL
16998#else
16999# ifdef DL_GLOBAL
17000# define LT_DLGLOBAL DL_GLOBAL
17001# else
17002# define LT_DLGLOBAL 0
17003# endif
17004#endif
17005
17006/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17007 find out it does not work in some platform. */
17008#ifndef LT_DLLAZY_OR_NOW
17009# ifdef RTLD_LAZY
17010# define LT_DLLAZY_OR_NOW RTLD_LAZY
17011# else
17012# ifdef DL_LAZY
17013# define LT_DLLAZY_OR_NOW DL_LAZY
17014# else
17015# ifdef RTLD_NOW
17016# define LT_DLLAZY_OR_NOW RTLD_NOW
17017# else
17018# ifdef DL_NOW
17019# define LT_DLLAZY_OR_NOW DL_NOW
17020# else
17021# define LT_DLLAZY_OR_NOW 0
17022# endif
17023# endif
17024# endif
17025# endif
17026#endif
17027
17028#ifdef __cplusplus
17029extern "C" void exit (int);
17030#endif
17031
17032void fnord() { int i=42;}
17033int main ()
17034{
17035 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17036 int status = $lt_dlunknown;
17037
17038 if (self)
17039 {
17040 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17041 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17042 /* dlclose (self); */
17043 }
17044
17045 exit (status);
17046}
17047EOF
17048 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17049 (eval $ac_link) 2>&5
17050 ac_status=$?
17051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17052 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17053 (./conftest; exit; ) 2>/dev/null
17054 lt_status=$?
17055 case x$lt_status in
17056 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17057 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17058 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17059 esac
17060 else :
17061 # compilation failed
17062 lt_cv_dlopen_self=no
17063 fi
17064fi
17065rm -fr conftest*
17066
17067
17068fi
17069echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17070echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17071
17072 if test "x$lt_cv_dlopen_self" = xyes; then
17073 LDFLAGS="$LDFLAGS $link_static_flag"
17074 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17075echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17076if test "${lt_cv_dlopen_self_static+set}" = set; then
17077 echo $ECHO_N "(cached) $ECHO_C" >&6
17078else
17079 if test "$cross_compiling" = yes; then :
17080 lt_cv_dlopen_self_static=cross
17081else
17082 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17083 lt_status=$lt_dlunknown
17084 cat > conftest.$ac_ext <<EOF
Misha Brukmandb84a092004-06-22 15:35:32 +000017085#line 17085 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000017086#include "confdefs.h"
17087
17088#if HAVE_DLFCN_H
17089#include <dlfcn.h>
17090#endif
17091
17092#include <stdio.h>
17093
17094#ifdef RTLD_GLOBAL
17095# define LT_DLGLOBAL RTLD_GLOBAL
17096#else
17097# ifdef DL_GLOBAL
17098# define LT_DLGLOBAL DL_GLOBAL
17099# else
17100# define LT_DLGLOBAL 0
17101# endif
17102#endif
17103
17104/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17105 find out it does not work in some platform. */
17106#ifndef LT_DLLAZY_OR_NOW
17107# ifdef RTLD_LAZY
17108# define LT_DLLAZY_OR_NOW RTLD_LAZY
17109# else
17110# ifdef DL_LAZY
17111# define LT_DLLAZY_OR_NOW DL_LAZY
17112# else
17113# ifdef RTLD_NOW
17114# define LT_DLLAZY_OR_NOW RTLD_NOW
17115# else
17116# ifdef DL_NOW
17117# define LT_DLLAZY_OR_NOW DL_NOW
17118# else
17119# define LT_DLLAZY_OR_NOW 0
17120# endif
17121# endif
17122# endif
17123# endif
17124#endif
17125
17126#ifdef __cplusplus
17127extern "C" void exit (int);
17128#endif
17129
17130void fnord() { int i=42;}
17131int main ()
17132{
17133 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17134 int status = $lt_dlunknown;
17135
17136 if (self)
17137 {
17138 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17139 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17140 /* dlclose (self); */
17141 }
17142
17143 exit (status);
17144}
17145EOF
17146 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17147 (eval $ac_link) 2>&5
17148 ac_status=$?
17149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17150 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17151 (./conftest; exit; ) 2>/dev/null
17152 lt_status=$?
17153 case x$lt_status in
17154 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17155 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17156 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17157 esac
17158 else :
17159 # compilation failed
17160 lt_cv_dlopen_self_static=no
17161 fi
17162fi
17163rm -fr conftest*
17164
17165
17166fi
17167echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17168echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17169 fi
17170
17171 CPPFLAGS="$save_CPPFLAGS"
17172 LDFLAGS="$save_LDFLAGS"
17173 LIBS="$save_LIBS"
17174 ;;
17175 esac
17176
17177 case $lt_cv_dlopen_self in
17178 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17179 *) enable_dlopen_self=unknown ;;
17180 esac
17181
17182 case $lt_cv_dlopen_self_static in
17183 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17184 *) enable_dlopen_self_static=unknown ;;
17185 esac
17186fi
17187
17188
17189# The else clause should only fire when bootstrapping the
17190# libtool distribution, otherwise you forgot to ship ltmain.sh
17191# with your package, and you will get complaints that there are
17192# no rules to generate ltmain.sh.
17193if test -f "$ltmain"; then
17194 # See if we are running on zsh, and set the options which allow our commands through
17195 # without removal of \ escapes.
17196 if test -n "${ZSH_VERSION+set}" ; then
17197 setopt NO_GLOB_SUBST
17198 fi
17199 # Now quote all the things that may contain metacharacters while being
17200 # careful not to overquote the AC_SUBSTed values. We take copies of the
17201 # variables and quote the copies for generation of the libtool script.
17202 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17203 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17204 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17205 deplibs_check_method reload_flag reload_cmds need_locks \
17206 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17207 lt_cv_sys_global_symbol_to_c_name_address \
17208 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17209 old_postinstall_cmds old_postuninstall_cmds \
17210 compiler_GCJ \
17211 CC_GCJ \
17212 LD_GCJ \
17213 lt_prog_compiler_wl_GCJ \
17214 lt_prog_compiler_pic_GCJ \
17215 lt_prog_compiler_static_GCJ \
17216 lt_prog_compiler_no_builtin_flag_GCJ \
17217 export_dynamic_flag_spec_GCJ \
17218 thread_safe_flag_spec_GCJ \
17219 whole_archive_flag_spec_GCJ \
17220 enable_shared_with_static_runtimes_GCJ \
17221 old_archive_cmds_GCJ \
17222 old_archive_from_new_cmds_GCJ \
17223 predep_objects_GCJ \
17224 postdep_objects_GCJ \
17225 predeps_GCJ \
17226 postdeps_GCJ \
17227 compiler_lib_search_path_GCJ \
17228 archive_cmds_GCJ \
17229 archive_expsym_cmds_GCJ \
17230 postinstall_cmds_GCJ \
17231 postuninstall_cmds_GCJ \
17232 old_archive_from_expsyms_cmds_GCJ \
17233 allow_undefined_flag_GCJ \
17234 no_undefined_flag_GCJ \
17235 export_symbols_cmds_GCJ \
17236 hardcode_libdir_flag_spec_GCJ \
17237 hardcode_libdir_flag_spec_ld_GCJ \
17238 hardcode_libdir_separator_GCJ \
17239 hardcode_automatic_GCJ \
17240 module_cmds_GCJ \
17241 module_expsym_cmds_GCJ \
17242 lt_cv_prog_compiler_c_o_GCJ \
17243 exclude_expsyms_GCJ \
17244 include_expsyms_GCJ; do
17245
17246 case $var in
17247 old_archive_cmds_GCJ | \
17248 old_archive_from_new_cmds_GCJ | \
17249 archive_cmds_GCJ | \
17250 archive_expsym_cmds_GCJ | \
17251 module_cmds_GCJ | \
17252 module_expsym_cmds_GCJ | \
17253 old_archive_from_expsyms_cmds_GCJ | \
17254 export_symbols_cmds_GCJ | \
17255 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17256 postinstall_cmds | postuninstall_cmds | \
17257 old_postinstall_cmds | old_postuninstall_cmds | \
17258 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17259 # Double-quote double-evaled strings.
17260 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17261 ;;
17262 *)
17263 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17264 ;;
17265 esac
17266 done
17267
17268 case $lt_echo in
17269 *'\$0 --fallback-echo"')
17270 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17271 ;;
17272 esac
17273
17274cfgfile="$ofile"
17275
17276 cat <<__EOF__ >> "$cfgfile"
17277# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17278
17279# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17280
17281# Shell to use when invoking shell scripts.
17282SHELL=$lt_SHELL
17283
17284# Whether or not to build shared libraries.
17285build_libtool_libs=$enable_shared
17286
17287# Whether or not to build static libraries.
17288build_old_libs=$enable_static
17289
17290# Whether or not to add -lc for building shared libraries.
17291build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17292
17293# Whether or not to disallow shared libs when runtime libs are static
17294allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17295
17296# Whether or not to optimize for fast installation.
17297fast_install=$enable_fast_install
17298
17299# The host system.
17300host_alias=$host_alias
17301host=$host
17302
17303# An echo program that does not interpret backslashes.
17304echo=$lt_echo
17305
17306# The archiver.
17307AR=$lt_AR
17308AR_FLAGS=$lt_AR_FLAGS
17309
17310# A C compiler.
17311LTCC=$lt_LTCC
17312
17313# A language-specific compiler.
17314CC=$lt_compiler_GCJ
17315
17316# Is the compiler the GNU C compiler?
17317with_gcc=$GCC_GCJ
17318
17319# An ERE matcher.
17320EGREP=$lt_EGREP
17321
17322# The linker used to build libraries.
17323LD=$lt_LD_GCJ
17324
17325# Whether we need hard or soft links.
17326LN_S=$lt_LN_S
17327
17328# A BSD-compatible nm program.
17329NM=$lt_NM
17330
17331# A symbol stripping program
17332STRIP=$STRIP
17333
17334# Used to examine libraries when file_magic_cmd begins "file"
17335MAGIC_CMD=$MAGIC_CMD
17336
17337# Used on cygwin: DLL creation program.
17338DLLTOOL="$DLLTOOL"
17339
17340# Used on cygwin: object dumper.
17341OBJDUMP="$OBJDUMP"
17342
17343# Used on cygwin: assembler.
17344AS="$AS"
17345
17346# The name of the directory that contains temporary libtool files.
17347objdir=$objdir
17348
17349# How to create reloadable object files.
17350reload_flag=$lt_reload_flag
17351reload_cmds=$lt_reload_cmds
17352
17353# How to pass a linker flag through the compiler.
17354wl=$lt_lt_prog_compiler_wl_GCJ
17355
17356# Object file suffix (normally "o").
17357objext="$ac_objext"
17358
17359# Old archive suffix (normally "a").
17360libext="$libext"
17361
17362# Shared library suffix (normally ".so").
17363shrext='$shrext'
17364
17365# Executable file suffix (normally "").
17366exeext="$exeext"
17367
17368# Additional compiler flags for building library objects.
17369pic_flag=$lt_lt_prog_compiler_pic_GCJ
17370pic_mode=$pic_mode
17371
17372# What is the maximum length of a command?
17373max_cmd_len=$lt_cv_sys_max_cmd_len
17374
17375# Does compiler simultaneously support -c and -o options?
17376compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17377
17378# Must we lock files when doing compilation ?
17379need_locks=$lt_need_locks
17380
17381# Do we need the lib prefix for modules?
17382need_lib_prefix=$need_lib_prefix
17383
17384# Do we need a version for libraries?
17385need_version=$need_version
17386
17387# Whether dlopen is supported.
17388dlopen_support=$enable_dlopen
17389
17390# Whether dlopen of programs is supported.
17391dlopen_self=$enable_dlopen_self
17392
17393# Whether dlopen of statically linked programs is supported.
17394dlopen_self_static=$enable_dlopen_self_static
17395
17396# Compiler flag to prevent dynamic linking.
17397link_static_flag=$lt_lt_prog_compiler_static_GCJ
17398
17399# Compiler flag to turn off builtin functions.
17400no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17401
17402# Compiler flag to allow reflexive dlopens.
17403export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17404
17405# Compiler flag to generate shared objects directly from archives.
17406whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17407
17408# Compiler flag to generate thread-safe objects.
17409thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17410
17411# Library versioning type.
17412version_type=$version_type
17413
17414# Format of library name prefix.
17415libname_spec=$lt_libname_spec
17416
17417# List of archive names. First name is the real one, the rest are links.
17418# The last name is the one that the linker finds with -lNAME.
17419library_names_spec=$lt_library_names_spec
17420
17421# The coded name of the library, if different from the real name.
17422soname_spec=$lt_soname_spec
17423
17424# Commands used to build and install an old-style archive.
17425RANLIB=$lt_RANLIB
17426old_archive_cmds=$lt_old_archive_cmds_GCJ
17427old_postinstall_cmds=$lt_old_postinstall_cmds
17428old_postuninstall_cmds=$lt_old_postuninstall_cmds
17429
17430# Create an old-style archive from a shared archive.
17431old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17432
17433# Create a temporary old-style archive to link instead of a shared archive.
17434old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17435
17436# Commands used to build and install a shared archive.
17437archive_cmds=$lt_archive_cmds_GCJ
17438archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17439postinstall_cmds=$lt_postinstall_cmds
17440postuninstall_cmds=$lt_postuninstall_cmds
17441
17442# Commands used to build a loadable module (assumed same as above if empty)
17443module_cmds=$lt_module_cmds_GCJ
17444module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17445
17446# Commands to strip libraries.
17447old_striplib=$lt_old_striplib
17448striplib=$lt_striplib
17449
17450# Dependencies to place before the objects being linked to create a
17451# shared library.
17452predep_objects=$lt_predep_objects_GCJ
17453
17454# Dependencies to place after the objects being linked to create a
17455# shared library.
17456postdep_objects=$lt_postdep_objects_GCJ
17457
17458# Dependencies to place before the objects being linked to create a
17459# shared library.
17460predeps=$lt_predeps_GCJ
17461
17462# Dependencies to place after the objects being linked to create a
17463# shared library.
17464postdeps=$lt_postdeps_GCJ
17465
17466# The library search path used internally by the compiler when linking
17467# a shared library.
17468compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17469
17470# Method to check whether dependent libraries are shared objects.
17471deplibs_check_method=$lt_deplibs_check_method
17472
17473# Command to use when deplibs_check_method == file_magic.
17474file_magic_cmd=$lt_file_magic_cmd
17475
17476# Flag that allows shared libraries with undefined symbols to be built.
17477allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17478
17479# Flag that forces no undefined symbols.
17480no_undefined_flag=$lt_no_undefined_flag_GCJ
17481
17482# Commands used to finish a libtool library installation in a directory.
17483finish_cmds=$lt_finish_cmds
17484
17485# Same as above, but a single script fragment to be evaled but not shown.
17486finish_eval=$lt_finish_eval
17487
17488# Take the output of nm and produce a listing of raw symbols and C names.
17489global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17490
17491# Transform the output of nm in a proper C declaration
17492global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17493
17494# Transform the output of nm in a C name address pair
17495global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17496
17497# This is the shared library runtime path variable.
17498runpath_var=$runpath_var
17499
17500# This is the shared library path variable.
17501shlibpath_var=$shlibpath_var
17502
17503# Is shlibpath searched before the hard-coded library search path?
17504shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17505
17506# How to hardcode a shared library path into an executable.
17507hardcode_action=$hardcode_action_GCJ
17508
17509# Whether we should hardcode library paths into libraries.
17510hardcode_into_libs=$hardcode_into_libs
17511
17512# Flag to hardcode \$libdir into a binary during linking.
17513# This must work even if \$libdir does not exist.
17514hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
17515
17516# If ld is used when linking, flag to hardcode \$libdir into
17517# a binary during linking. This must work even if \$libdir does
17518# not exist.
17519hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17520
17521# Whether we need a single -rpath flag with a separated argument.
17522hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17523
17524# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17525# resulting binary.
17526hardcode_direct=$hardcode_direct_GCJ
17527
17528# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17529# resulting binary.
17530hardcode_minus_L=$hardcode_minus_L_GCJ
17531
17532# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17533# the resulting binary.
17534hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
17535
17536# Set to yes if building a shared library automatically hardcodes DIR into the library
17537# and all subsequent libraries and executables linked against it.
17538hardcode_automatic=$hardcode_automatic_GCJ
17539
17540# Variables whose values should be saved in libtool wrapper scripts and
17541# restored at relink time.
17542variables_saved_for_relink="$variables_saved_for_relink"
17543
17544# Whether libtool must link a program against all its dependency libraries.
17545link_all_deplibs=$link_all_deplibs_GCJ
17546
17547# Compile-time system search path for libraries
17548sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17549
17550# Run-time system search path for libraries
17551sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17552
17553# Fix the shell variable \$srcfile for the compiler.
17554fix_srcfile_path="$fix_srcfile_path_GCJ"
17555
17556# Set to yes if exported symbols are required.
17557always_export_symbols=$always_export_symbols_GCJ
17558
17559# The commands to list exported symbols.
17560export_symbols_cmds=$lt_export_symbols_cmds_GCJ
17561
17562# The commands to extract the exported symbol list from a shared archive.
17563extract_expsyms_cmds=$lt_extract_expsyms_cmds
17564
17565# Symbols that should not be listed in the preloaded symbols.
17566exclude_expsyms=$lt_exclude_expsyms_GCJ
17567
17568# Symbols that must always be exported.
17569include_expsyms=$lt_include_expsyms_GCJ
17570
17571# ### END LIBTOOL TAG CONFIG: $tagname
17572
17573__EOF__
17574
17575
17576else
17577 # If there is no Makefile yet, we rely on a make rule to execute
17578 # `config.status --recheck' to rerun these tests and create the
17579 # libtool script then.
17580 test -f Makefile && make "$ltmain"
17581fi
17582
17583
17584ac_ext=c
17585ac_cpp='$CPP $CPPFLAGS'
17586ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17587ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17588ac_compiler_gnu=$ac_cv_c_compiler_gnu
17589
17590CC="$lt_save_CC"
17591
17592 else
17593 tagname=""
17594 fi
17595 ;;
17596
17597 RC)
17598
17599
17600
17601# Source file extension for RC test sources.
17602ac_ext=rc
17603
17604# Object file extension for compiled RC test sources.
17605objext=o
17606objext_RC=$objext
17607
17608# Code to be used in simple compile tests
17609lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
17610
17611# Code to be used in simple link tests
17612lt_simple_link_test_code="$lt_simple_compile_test_code"
17613
17614# ltmain only uses $CC for tagged configurations so make sure $CC is set.
17615
17616# If no C compiler was specified, use CC.
17617LTCC=${LTCC-"$CC"}
17618
17619# Allow CC to be a program name with arguments.
17620compiler=$CC
17621
17622
17623# Allow CC to be a program name with arguments.
17624lt_save_CC="$CC"
17625CC=${RC-"windres"}
17626compiler=$CC
17627compiler_RC=$CC
17628lt_cv_prog_compiler_c_o_RC=yes
17629
17630# The else clause should only fire when bootstrapping the
17631# libtool distribution, otherwise you forgot to ship ltmain.sh
17632# with your package, and you will get complaints that there are
17633# no rules to generate ltmain.sh.
17634if test -f "$ltmain"; then
17635 # See if we are running on zsh, and set the options which allow our commands through
17636 # without removal of \ escapes.
17637 if test -n "${ZSH_VERSION+set}" ; then
17638 setopt NO_GLOB_SUBST
17639 fi
17640 # Now quote all the things that may contain metacharacters while being
17641 # careful not to overquote the AC_SUBSTed values. We take copies of the
17642 # variables and quote the copies for generation of the libtool script.
17643 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17644 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17645 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17646 deplibs_check_method reload_flag reload_cmds need_locks \
17647 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17648 lt_cv_sys_global_symbol_to_c_name_address \
17649 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17650 old_postinstall_cmds old_postuninstall_cmds \
17651 compiler_RC \
17652 CC_RC \
17653 LD_RC \
17654 lt_prog_compiler_wl_RC \
17655 lt_prog_compiler_pic_RC \
17656 lt_prog_compiler_static_RC \
17657 lt_prog_compiler_no_builtin_flag_RC \
17658 export_dynamic_flag_spec_RC \
17659 thread_safe_flag_spec_RC \
17660 whole_archive_flag_spec_RC \
17661 enable_shared_with_static_runtimes_RC \
17662 old_archive_cmds_RC \
17663 old_archive_from_new_cmds_RC \
17664 predep_objects_RC \
17665 postdep_objects_RC \
17666 predeps_RC \
17667 postdeps_RC \
17668 compiler_lib_search_path_RC \
17669 archive_cmds_RC \
17670 archive_expsym_cmds_RC \
17671 postinstall_cmds_RC \
17672 postuninstall_cmds_RC \
17673 old_archive_from_expsyms_cmds_RC \
17674 allow_undefined_flag_RC \
17675 no_undefined_flag_RC \
17676 export_symbols_cmds_RC \
17677 hardcode_libdir_flag_spec_RC \
17678 hardcode_libdir_flag_spec_ld_RC \
17679 hardcode_libdir_separator_RC \
17680 hardcode_automatic_RC \
17681 module_cmds_RC \
17682 module_expsym_cmds_RC \
17683 lt_cv_prog_compiler_c_o_RC \
17684 exclude_expsyms_RC \
17685 include_expsyms_RC; do
17686
17687 case $var in
17688 old_archive_cmds_RC | \
17689 old_archive_from_new_cmds_RC | \
17690 archive_cmds_RC | \
17691 archive_expsym_cmds_RC | \
17692 module_cmds_RC | \
17693 module_expsym_cmds_RC | \
17694 old_archive_from_expsyms_cmds_RC | \
17695 export_symbols_cmds_RC | \
17696 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17697 postinstall_cmds | postuninstall_cmds | \
17698 old_postinstall_cmds | old_postuninstall_cmds | \
17699 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17700 # Double-quote double-evaled strings.
17701 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17702 ;;
17703 *)
17704 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17705 ;;
17706 esac
17707 done
17708
17709 case $lt_echo in
17710 *'\$0 --fallback-echo"')
17711 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17712 ;;
17713 esac
17714
17715cfgfile="$ofile"
17716
17717 cat <<__EOF__ >> "$cfgfile"
17718# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17719
17720# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17721
17722# Shell to use when invoking shell scripts.
17723SHELL=$lt_SHELL
17724
17725# Whether or not to build shared libraries.
17726build_libtool_libs=$enable_shared
17727
17728# Whether or not to build static libraries.
17729build_old_libs=$enable_static
17730
17731# Whether or not to add -lc for building shared libraries.
17732build_libtool_need_lc=$archive_cmds_need_lc_RC
17733
17734# Whether or not to disallow shared libs when runtime libs are static
17735allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
17736
17737# Whether or not to optimize for fast installation.
17738fast_install=$enable_fast_install
17739
17740# The host system.
17741host_alias=$host_alias
17742host=$host
17743
17744# An echo program that does not interpret backslashes.
17745echo=$lt_echo
17746
17747# The archiver.
17748AR=$lt_AR
17749AR_FLAGS=$lt_AR_FLAGS
17750
17751# A C compiler.
17752LTCC=$lt_LTCC
17753
17754# A language-specific compiler.
17755CC=$lt_compiler_RC
17756
17757# Is the compiler the GNU C compiler?
17758with_gcc=$GCC_RC
17759
17760# An ERE matcher.
17761EGREP=$lt_EGREP
17762
17763# The linker used to build libraries.
17764LD=$lt_LD_RC
17765
17766# Whether we need hard or soft links.
17767LN_S=$lt_LN_S
17768
17769# A BSD-compatible nm program.
17770NM=$lt_NM
17771
17772# A symbol stripping program
17773STRIP=$STRIP
17774
17775# Used to examine libraries when file_magic_cmd begins "file"
17776MAGIC_CMD=$MAGIC_CMD
17777
17778# Used on cygwin: DLL creation program.
17779DLLTOOL="$DLLTOOL"
17780
17781# Used on cygwin: object dumper.
17782OBJDUMP="$OBJDUMP"
17783
17784# Used on cygwin: assembler.
17785AS="$AS"
17786
17787# The name of the directory that contains temporary libtool files.
17788objdir=$objdir
17789
17790# How to create reloadable object files.
17791reload_flag=$lt_reload_flag
17792reload_cmds=$lt_reload_cmds
17793
17794# How to pass a linker flag through the compiler.
17795wl=$lt_lt_prog_compiler_wl_RC
17796
17797# Object file suffix (normally "o").
17798objext="$ac_objext"
17799
17800# Old archive suffix (normally "a").
17801libext="$libext"
17802
17803# Shared library suffix (normally ".so").
17804shrext='$shrext'
17805
17806# Executable file suffix (normally "").
17807exeext="$exeext"
17808
17809# Additional compiler flags for building library objects.
17810pic_flag=$lt_lt_prog_compiler_pic_RC
17811pic_mode=$pic_mode
17812
17813# What is the maximum length of a command?
17814max_cmd_len=$lt_cv_sys_max_cmd_len
17815
17816# Does compiler simultaneously support -c and -o options?
17817compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
17818
17819# Must we lock files when doing compilation ?
17820need_locks=$lt_need_locks
17821
17822# Do we need the lib prefix for modules?
17823need_lib_prefix=$need_lib_prefix
17824
17825# Do we need a version for libraries?
17826need_version=$need_version
17827
17828# Whether dlopen is supported.
17829dlopen_support=$enable_dlopen
17830
17831# Whether dlopen of programs is supported.
17832dlopen_self=$enable_dlopen_self
17833
17834# Whether dlopen of statically linked programs is supported.
17835dlopen_self_static=$enable_dlopen_self_static
17836
17837# Compiler flag to prevent dynamic linking.
17838link_static_flag=$lt_lt_prog_compiler_static_RC
17839
17840# Compiler flag to turn off builtin functions.
17841no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
17842
17843# Compiler flag to allow reflexive dlopens.
17844export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
17845
17846# Compiler flag to generate shared objects directly from archives.
17847whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
17848
17849# Compiler flag to generate thread-safe objects.
17850thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
17851
17852# Library versioning type.
17853version_type=$version_type
17854
17855# Format of library name prefix.
17856libname_spec=$lt_libname_spec
17857
17858# List of archive names. First name is the real one, the rest are links.
17859# The last name is the one that the linker finds with -lNAME.
17860library_names_spec=$lt_library_names_spec
17861
17862# The coded name of the library, if different from the real name.
17863soname_spec=$lt_soname_spec
17864
17865# Commands used to build and install an old-style archive.
17866RANLIB=$lt_RANLIB
17867old_archive_cmds=$lt_old_archive_cmds_RC
17868old_postinstall_cmds=$lt_old_postinstall_cmds
17869old_postuninstall_cmds=$lt_old_postuninstall_cmds
17870
17871# Create an old-style archive from a shared archive.
17872old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
17873
17874# Create a temporary old-style archive to link instead of a shared archive.
17875old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
17876
17877# Commands used to build and install a shared archive.
17878archive_cmds=$lt_archive_cmds_RC
17879archive_expsym_cmds=$lt_archive_expsym_cmds_RC
17880postinstall_cmds=$lt_postinstall_cmds
17881postuninstall_cmds=$lt_postuninstall_cmds
17882
17883# Commands used to build a loadable module (assumed same as above if empty)
17884module_cmds=$lt_module_cmds_RC
17885module_expsym_cmds=$lt_module_expsym_cmds_RC
17886
17887# Commands to strip libraries.
17888old_striplib=$lt_old_striplib
17889striplib=$lt_striplib
17890
17891# Dependencies to place before the objects being linked to create a
17892# shared library.
17893predep_objects=$lt_predep_objects_RC
17894
17895# Dependencies to place after the objects being linked to create a
17896# shared library.
17897postdep_objects=$lt_postdep_objects_RC
17898
17899# Dependencies to place before the objects being linked to create a
17900# shared library.
17901predeps=$lt_predeps_RC
17902
17903# Dependencies to place after the objects being linked to create a
17904# shared library.
17905postdeps=$lt_postdeps_RC
17906
17907# The library search path used internally by the compiler when linking
17908# a shared library.
17909compiler_lib_search_path=$lt_compiler_lib_search_path_RC
17910
17911# Method to check whether dependent libraries are shared objects.
17912deplibs_check_method=$lt_deplibs_check_method
17913
17914# Command to use when deplibs_check_method == file_magic.
17915file_magic_cmd=$lt_file_magic_cmd
17916
17917# Flag that allows shared libraries with undefined symbols to be built.
17918allow_undefined_flag=$lt_allow_undefined_flag_RC
17919
17920# Flag that forces no undefined symbols.
17921no_undefined_flag=$lt_no_undefined_flag_RC
17922
17923# Commands used to finish a libtool library installation in a directory.
17924finish_cmds=$lt_finish_cmds
17925
17926# Same as above, but a single script fragment to be evaled but not shown.
17927finish_eval=$lt_finish_eval
17928
17929# Take the output of nm and produce a listing of raw symbols and C names.
17930global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17931
17932# Transform the output of nm in a proper C declaration
17933global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17934
17935# Transform the output of nm in a C name address pair
17936global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17937
17938# This is the shared library runtime path variable.
17939runpath_var=$runpath_var
17940
17941# This is the shared library path variable.
17942shlibpath_var=$shlibpath_var
17943
17944# Is shlibpath searched before the hard-coded library search path?
17945shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17946
17947# How to hardcode a shared library path into an executable.
17948hardcode_action=$hardcode_action_RC
17949
17950# Whether we should hardcode library paths into libraries.
17951hardcode_into_libs=$hardcode_into_libs
17952
17953# Flag to hardcode \$libdir into a binary during linking.
17954# This must work even if \$libdir does not exist.
17955hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
17956
17957# If ld is used when linking, flag to hardcode \$libdir into
17958# a binary during linking. This must work even if \$libdir does
17959# not exist.
17960hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
17961
17962# Whether we need a single -rpath flag with a separated argument.
17963hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
17964
17965# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17966# resulting binary.
17967hardcode_direct=$hardcode_direct_RC
17968
17969# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17970# resulting binary.
17971hardcode_minus_L=$hardcode_minus_L_RC
17972
17973# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17974# the resulting binary.
17975hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
17976
17977# Set to yes if building a shared library automatically hardcodes DIR into the library
17978# and all subsequent libraries and executables linked against it.
17979hardcode_automatic=$hardcode_automatic_RC
17980
17981# Variables whose values should be saved in libtool wrapper scripts and
17982# restored at relink time.
17983variables_saved_for_relink="$variables_saved_for_relink"
17984
17985# Whether libtool must link a program against all its dependency libraries.
17986link_all_deplibs=$link_all_deplibs_RC
17987
17988# Compile-time system search path for libraries
17989sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17990
17991# Run-time system search path for libraries
17992sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17993
17994# Fix the shell variable \$srcfile for the compiler.
17995fix_srcfile_path="$fix_srcfile_path_RC"
17996
17997# Set to yes if exported symbols are required.
17998always_export_symbols=$always_export_symbols_RC
17999
18000# The commands to list exported symbols.
18001export_symbols_cmds=$lt_export_symbols_cmds_RC
18002
18003# The commands to extract the exported symbol list from a shared archive.
18004extract_expsyms_cmds=$lt_extract_expsyms_cmds
18005
18006# Symbols that should not be listed in the preloaded symbols.
18007exclude_expsyms=$lt_exclude_expsyms_RC
18008
18009# Symbols that must always be exported.
18010include_expsyms=$lt_include_expsyms_RC
18011
18012# ### END LIBTOOL TAG CONFIG: $tagname
18013
18014__EOF__
18015
18016
18017else
18018 # If there is no Makefile yet, we rely on a make rule to execute
18019 # `config.status --recheck' to rerun these tests and create the
18020 # libtool script then.
18021 test -f Makefile && make "$ltmain"
18022fi
18023
18024
18025ac_ext=c
18026ac_cpp='$CPP $CPPFLAGS'
18027ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18028ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18029ac_compiler_gnu=$ac_cv_c_compiler_gnu
18030
18031CC="$lt_save_CC"
18032
18033 ;;
18034
18035 *)
18036 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18037echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18038 { (exit 1); exit 1; }; }
18039 ;;
18040 esac
18041
18042 # Append the new tag name to the list of available tags.
18043 if test -n "$tagname" ; then
18044 available_tags="$available_tags $tagname"
18045 fi
18046 fi
18047 done
18048 IFS="$lt_save_ifs"
18049
18050 # Now substitute the updated list of available tags.
18051 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18052 mv "${ofile}T" "$ofile"
18053 chmod +x "$ofile"
18054 else
18055 rm -f "${ofile}T"
18056 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18057echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18058 { (exit 1); exit 1; }; }
18059 fi
18060fi
John Criswell7a73b802003-06-30 21:59:07 +000018061
18062
18063
18064# This can be used to rebuild libtool when needed
18065LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18066
18067# Always use our own libtool.
John Criswell8d4221e2003-07-23 16:52:50 +000018068LIBTOOL='$(SHELL) $(top_builddir)/mklib'
John Criswell7a73b802003-06-30 21:59:07 +000018069
18070# Prevent multiple expansion
18071
18072
18073
John Criswell47fdd832003-07-14 16:52:07 +000018074
18075
18076
18077
18078
18079
18080
18081
18082
18083
18084
18085
18086
18087
18088
18089
18090
18091
John Criswell7a73b802003-06-30 21:59:07 +000018092# Extract the first word of "dot", so it can be a program name with args.
18093set dummy dot; ac_word=$2
18094echo "$as_me:$LINENO: checking for $ac_word" >&5
18095echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18096if test "${ac_cv_path_DOT+set}" = set; then
18097 echo $ECHO_N "(cached) $ECHO_C" >&6
18098else
18099 case $DOT in
18100 [\\/]* | ?:[\\/]*)
18101 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
18102 ;;
18103 *)
18104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18105for as_dir in $PATH
18106do
18107 IFS=$as_save_IFS
18108 test -z "$as_dir" && as_dir=.
18109 for ac_exec_ext in '' $ac_executable_extensions; do
18110 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18111 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
18112 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18113 break 2
18114 fi
18115done
18116done
18117
Brian Gaeke26be9c52004-01-13 06:43:16 +000018118 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="true dot"
John Criswell7a73b802003-06-30 21:59:07 +000018119 ;;
18120esac
18121fi
18122DOT=$ac_cv_path_DOT
18123
18124if test -n "$DOT"; then
18125 echo "$as_me:$LINENO: result: $DOT" >&5
18126echo "${ECHO_T}$DOT" >&6
18127else
18128 echo "$as_me:$LINENO: result: no" >&5
18129echo "${ECHO_T}no" >&6
18130fi
18131
18132# Extract the first word of "etags", so it can be a program name with args.
18133set dummy etags; ac_word=$2
18134echo "$as_me:$LINENO: checking for $ac_word" >&5
18135echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18136if test "${ac_cv_path_ETAGS+set}" = set; then
18137 echo $ECHO_N "(cached) $ECHO_C" >&6
18138else
18139 case $ETAGS in
18140 [\\/]* | ?:[\\/]*)
18141 ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
18142 ;;
18143 *)
18144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18145for as_dir in $PATH
18146do
18147 IFS=$as_save_IFS
18148 test -z "$as_dir" && as_dir=.
18149 for ac_exec_ext in '' $ac_executable_extensions; do
18150 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18151 ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
18152 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18153 break 2
18154 fi
18155done
18156done
18157
Brian Gaeke26be9c52004-01-13 06:43:16 +000018158 test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="true etags"
John Criswell7a73b802003-06-30 21:59:07 +000018159 ;;
18160esac
18161fi
18162ETAGS=$ac_cv_path_ETAGS
18163
18164if test -n "$ETAGS"; then
18165 echo "$as_me:$LINENO: result: $ETAGS" >&5
18166echo "${ECHO_T}$ETAGS" >&6
18167else
18168 echo "$as_me:$LINENO: result: no" >&5
18169echo "${ECHO_T}no" >&6
18170fi
18171
Brian Gaekeafa3fbf2004-01-22 21:55:02 +000018172etags_version=`$ETAGS --version 2>&1`
18173case "$etags_version" in
18174 *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
18175 *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
18176 *) ETAGSFLAGS="" ;;
18177esac
18178ETAGSFLAGS=$ETAGSFLAGS
18179
John Criswellde00db22003-08-25 16:49:54 +000018180# Extract the first word of "python", so it can be a program name with args.
18181set dummy python; ac_word=$2
18182echo "$as_me:$LINENO: checking for $ac_word" >&5
18183echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18184if test "${ac_cv_path_PYTHON+set}" = set; then
18185 echo $ECHO_N "(cached) $ECHO_C" >&6
18186else
18187 case $PYTHON in
18188 [\\/]* | ?:[\\/]*)
18189 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
18190 ;;
18191 *)
18192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18193for as_dir in $PATH
18194do
18195 IFS=$as_save_IFS
18196 test -z "$as_dir" && as_dir=.
18197 for ac_exec_ext in '' $ac_executable_extensions; do
18198 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18199 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
18200 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18201 break 2
18202 fi
18203done
18204done
18205
Brian Gaeke26be9c52004-01-13 06:43:16 +000018206 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="true python"
John Criswellde00db22003-08-25 16:49:54 +000018207 ;;
18208esac
18209fi
18210PYTHON=$ac_cv_path_PYTHON
18211
18212if test -n "$PYTHON"; then
18213 echo "$as_me:$LINENO: result: $PYTHON" >&5
18214echo "${ECHO_T}$PYTHON" >&6
18215else
18216 echo "$as_me:$LINENO: result: no" >&5
18217echo "${ECHO_T}no" >&6
18218fi
18219
Brian Gaeke26be9c52004-01-13 06:43:16 +000018220if test "$PYTHON" = "false"
John Criswell39827c82003-09-23 15:28:52 +000018221then
Brian Gaeke26be9c52004-01-13 06:43:16 +000018222 { echo "$as_me:$LINENO: WARNING: Python is required for the test suite, but it was not found" >&5
18223echo "$as_me: WARNING: Python is required for the test suite, but it was not found" >&2;}
John Criswell39827c82003-09-23 15:28:52 +000018224fi
John Criswellde00db22003-08-25 16:49:54 +000018225# Extract the first word of "qmtest", so it can be a program name with args.
18226set dummy qmtest; ac_word=$2
18227echo "$as_me:$LINENO: checking for $ac_word" >&5
18228echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18229if test "${ac_cv_path_QMTEST+set}" = set; then
18230 echo $ECHO_N "(cached) $ECHO_C" >&6
18231else
18232 case $QMTEST in
18233 [\\/]* | ?:[\\/]*)
18234 ac_cv_path_QMTEST="$QMTEST" # Let the user override the test with a path.
18235 ;;
18236 *)
18237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18238for as_dir in $PATH
18239do
18240 IFS=$as_save_IFS
18241 test -z "$as_dir" && as_dir=.
18242 for ac_exec_ext in '' $ac_executable_extensions; do
18243 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18244 ac_cv_path_QMTEST="$as_dir/$ac_word$ac_exec_ext"
18245 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18246 break 2
18247 fi
18248done
18249done
18250
Brian Gaeke26be9c52004-01-13 06:43:16 +000018251 test -z "$ac_cv_path_QMTEST" && ac_cv_path_QMTEST="true qmtest"
John Criswellde00db22003-08-25 16:49:54 +000018252 ;;
18253esac
18254fi
18255QMTEST=$ac_cv_path_QMTEST
18256
18257if test -n "$QMTEST"; then
18258 echo "$as_me:$LINENO: result: $QMTEST" >&5
18259echo "${ECHO_T}$QMTEST" >&6
18260else
18261 echo "$as_me:$LINENO: result: no" >&5
18262echo "${ECHO_T}no" >&6
18263fi
18264
Brian Gaeke26be9c52004-01-13 06:43:16 +000018265if test "$QMTEST" = "false"
John Criswell39827c82003-09-23 15:28:52 +000018266then
Brian Gaeke26be9c52004-01-13 06:43:16 +000018267 { echo "$as_me:$LINENO: WARNING: QMTest is required for the test suite, but it was not found" >&5
18268echo "$as_me: WARNING: QMTest is required for the test suite, but it was not found" >&2;}
John Criswell39827c82003-09-23 15:28:52 +000018269fi
John Criswellde00db22003-08-25 16:49:54 +000018270
18271pyversion=`$PYTHON -V 2>&1 | cut -d\ -f2`
18272pymajor=`echo $pyversion | cut -d. -f1`
18273pyminor=`echo $pyversion | cut -d. -f2`
18274
18275if test "$pymajor" -ge "2"
18276then
18277 if test "$pymajor" -eq "2"
18278 then
18279 if test "$pyminor" -lt "2"
18280 then
Brian Gaeke26be9c52004-01-13 06:43:16 +000018281 { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5
18282echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;}
John Criswellde00db22003-08-25 16:49:54 +000018283 fi
18284 fi
18285else
Brian Gaeke26be9c52004-01-13 06:43:16 +000018286 { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5
18287echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;}
John Criswellde00db22003-08-25 16:49:54 +000018288fi
John Criswell7a73b802003-06-30 21:59:07 +000018289
18290
18291
18292
John Criswell7a73b802003-06-30 21:59:07 +000018293echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
18294echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
18295if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
18296 echo $ECHO_N "(cached) $ECHO_C" >&6
18297else
18298 ac_check_lib_save_LIBS=$LIBS
18299LIBS="-lelf $LIBS"
18300cat >conftest.$ac_ext <<_ACEOF
18301#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000018302/* confdefs.h. */
18303_ACEOF
18304cat confdefs.h >>conftest.$ac_ext
18305cat >>conftest.$ac_ext <<_ACEOF
18306/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000018307
18308/* Override any gcc2 internal prototype to avoid an error. */
18309#ifdef __cplusplus
18310extern "C"
18311#endif
18312/* We use char because int might match the return type of a gcc2
18313 builtin and then its argument prototype would still apply. */
18314char elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000018315int
18316main ()
18317{
18318elf_begin ();
18319 ;
18320 return 0;
18321}
18322_ACEOF
18323rm -f conftest.$ac_objext conftest$ac_exeext
18324if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18325 (eval $ac_link) 2>&5
18326 ac_status=$?
18327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18328 (exit $ac_status); } &&
18329 { ac_try='test -s conftest$ac_exeext'
18330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18331 (eval $ac_try) 2>&5
18332 ac_status=$?
18333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18334 (exit $ac_status); }; }; then
18335 ac_cv_lib_elf_elf_begin=yes
18336else
18337 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018338sed 's/^/| /' conftest.$ac_ext >&5
18339
John Criswell7a73b802003-06-30 21:59:07 +000018340ac_cv_lib_elf_elf_begin=no
18341fi
18342rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18343LIBS=$ac_check_lib_save_LIBS
18344fi
18345echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
18346echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
18347if test $ac_cv_lib_elf_elf_begin = yes; then
18348 cat >>confdefs.h <<_ACEOF
18349#define HAVE_LIBELF 1
18350_ACEOF
18351
18352 LIBS="-lelf $LIBS"
18353
18354fi
18355
18356
18357echo "$as_me:$LINENO: checking for library containing dlopen" >&5
18358echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
18359if test "${ac_cv_search_dlopen+set}" = set; then
18360 echo $ECHO_N "(cached) $ECHO_C" >&6
18361else
18362 ac_func_search_save_LIBS=$LIBS
18363ac_cv_search_dlopen=no
18364cat >conftest.$ac_ext <<_ACEOF
18365#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000018366/* confdefs.h. */
18367_ACEOF
18368cat confdefs.h >>conftest.$ac_ext
18369cat >>conftest.$ac_ext <<_ACEOF
18370/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000018371
18372/* Override any gcc2 internal prototype to avoid an error. */
18373#ifdef __cplusplus
18374extern "C"
18375#endif
18376/* We use char because int might match the return type of a gcc2
18377 builtin and then its argument prototype would still apply. */
18378char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000018379int
18380main ()
18381{
18382dlopen ();
18383 ;
18384 return 0;
18385}
18386_ACEOF
18387rm -f conftest.$ac_objext conftest$ac_exeext
18388if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18389 (eval $ac_link) 2>&5
18390 ac_status=$?
18391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18392 (exit $ac_status); } &&
18393 { ac_try='test -s conftest$ac_exeext'
18394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18395 (eval $ac_try) 2>&5
18396 ac_status=$?
18397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18398 (exit $ac_status); }; }; then
18399 ac_cv_search_dlopen="none required"
18400else
18401 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018402sed 's/^/| /' conftest.$ac_ext >&5
18403
John Criswell7a73b802003-06-30 21:59:07 +000018404fi
18405rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18406if test "$ac_cv_search_dlopen" = no; then
18407 for ac_lib in dl; do
18408 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18409 cat >conftest.$ac_ext <<_ACEOF
18410#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000018411/* confdefs.h. */
18412_ACEOF
18413cat confdefs.h >>conftest.$ac_ext
18414cat >>conftest.$ac_ext <<_ACEOF
18415/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000018416
18417/* Override any gcc2 internal prototype to avoid an error. */
18418#ifdef __cplusplus
18419extern "C"
18420#endif
18421/* We use char because int might match the return type of a gcc2
18422 builtin and then its argument prototype would still apply. */
18423char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000018424int
18425main ()
18426{
18427dlopen ();
18428 ;
18429 return 0;
18430}
18431_ACEOF
18432rm -f conftest.$ac_objext conftest$ac_exeext
18433if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18434 (eval $ac_link) 2>&5
18435 ac_status=$?
18436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18437 (exit $ac_status); } &&
18438 { ac_try='test -s conftest$ac_exeext'
18439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18440 (eval $ac_try) 2>&5
18441 ac_status=$?
18442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18443 (exit $ac_status); }; }; then
18444 ac_cv_search_dlopen="-l$ac_lib"
18445break
18446else
18447 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018448sed 's/^/| /' conftest.$ac_ext >&5
18449
John Criswell7a73b802003-06-30 21:59:07 +000018450fi
18451rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18452 done
18453fi
18454LIBS=$ac_func_search_save_LIBS
18455fi
18456echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
18457echo "${ECHO_T}$ac_cv_search_dlopen" >&6
18458if test "$ac_cv_search_dlopen" != no; then
18459 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000018460
18461cat >>confdefs.h <<\_ACEOF
Brian Gaekec45be042003-10-07 06:01:34 +000018462#define HAVE_DLOPEN 1
18463_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000018464
18465else
Brian Gaekec45be042003-10-07 06:01:34 +000018466 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
18467echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000018468fi
18469
18470
18471echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
18472echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
18473if test "${ac_cv_search_mallinfo+set}" = set; then
18474 echo $ECHO_N "(cached) $ECHO_C" >&6
18475else
18476 ac_func_search_save_LIBS=$LIBS
18477ac_cv_search_mallinfo=no
18478cat >conftest.$ac_ext <<_ACEOF
18479#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000018480/* confdefs.h. */
18481_ACEOF
18482cat confdefs.h >>conftest.$ac_ext
18483cat >>conftest.$ac_ext <<_ACEOF
18484/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000018485
18486/* Override any gcc2 internal prototype to avoid an error. */
18487#ifdef __cplusplus
18488extern "C"
18489#endif
18490/* We use char because int might match the return type of a gcc2
18491 builtin and then its argument prototype would still apply. */
18492char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000018493int
18494main ()
18495{
18496mallinfo ();
18497 ;
18498 return 0;
18499}
18500_ACEOF
18501rm -f conftest.$ac_objext conftest$ac_exeext
18502if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18503 (eval $ac_link) 2>&5
18504 ac_status=$?
18505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18506 (exit $ac_status); } &&
18507 { ac_try='test -s conftest$ac_exeext'
18508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18509 (eval $ac_try) 2>&5
18510 ac_status=$?
18511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18512 (exit $ac_status); }; }; then
18513 ac_cv_search_mallinfo="none required"
18514else
18515 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018516sed 's/^/| /' conftest.$ac_ext >&5
18517
John Criswell7a73b802003-06-30 21:59:07 +000018518fi
18519rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18520if test "$ac_cv_search_mallinfo" = no; then
18521 for ac_lib in malloc; do
18522 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18523 cat >conftest.$ac_ext <<_ACEOF
18524#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000018525/* confdefs.h. */
18526_ACEOF
18527cat confdefs.h >>conftest.$ac_ext
18528cat >>conftest.$ac_ext <<_ACEOF
18529/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000018530
18531/* Override any gcc2 internal prototype to avoid an error. */
18532#ifdef __cplusplus
18533extern "C"
18534#endif
18535/* We use char because int might match the return type of a gcc2
18536 builtin and then its argument prototype would still apply. */
18537char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000018538int
18539main ()
18540{
18541mallinfo ();
18542 ;
18543 return 0;
18544}
18545_ACEOF
18546rm -f conftest.$ac_objext conftest$ac_exeext
18547if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18548 (eval $ac_link) 2>&5
18549 ac_status=$?
18550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18551 (exit $ac_status); } &&
18552 { ac_try='test -s conftest$ac_exeext'
18553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18554 (eval $ac_try) 2>&5
18555 ac_status=$?
18556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18557 (exit $ac_status); }; }; then
18558 ac_cv_search_mallinfo="-l$ac_lib"
18559break
18560else
18561 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018562sed 's/^/| /' conftest.$ac_ext >&5
18563
John Criswell7a73b802003-06-30 21:59:07 +000018564fi
18565rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18566 done
18567fi
18568LIBS=$ac_func_search_save_LIBS
18569fi
18570echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
18571echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
18572if test "$ac_cv_search_mallinfo" != no; then
18573 test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000018574
18575cat >>confdefs.h <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000018576#define HAVE_MALLINFO 1
18577_ACEOF
18578
18579fi
18580
18581
Brian Gaeke5f268f72003-12-05 19:29:01 +000018582echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
18583echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
18584if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
18585 echo $ECHO_N "(cached) $ECHO_C" >&6
18586else
18587 ac_func_search_save_LIBS=$LIBS
18588ac_cv_search_pthread_mutex_lock=no
18589cat >conftest.$ac_ext <<_ACEOF
18590#line $LINENO "configure"
18591/* confdefs.h. */
18592_ACEOF
18593cat confdefs.h >>conftest.$ac_ext
18594cat >>conftest.$ac_ext <<_ACEOF
18595/* end confdefs.h. */
18596
18597/* Override any gcc2 internal prototype to avoid an error. */
18598#ifdef __cplusplus
18599extern "C"
18600#endif
18601/* We use char because int might match the return type of a gcc2
18602 builtin and then its argument prototype would still apply. */
18603char pthread_mutex_lock ();
18604int
18605main ()
18606{
18607pthread_mutex_lock ();
18608 ;
18609 return 0;
18610}
18611_ACEOF
18612rm -f conftest.$ac_objext conftest$ac_exeext
18613if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18614 (eval $ac_link) 2>&5
18615 ac_status=$?
18616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18617 (exit $ac_status); } &&
18618 { ac_try='test -s conftest$ac_exeext'
18619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18620 (eval $ac_try) 2>&5
18621 ac_status=$?
18622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18623 (exit $ac_status); }; }; then
18624 ac_cv_search_pthread_mutex_lock="none required"
18625else
18626 echo "$as_me: failed program was:" >&5
18627sed 's/^/| /' conftest.$ac_ext >&5
18628
18629fi
18630rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18631if test "$ac_cv_search_pthread_mutex_lock" = no; then
18632 for ac_lib in pthread; do
18633 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18634 cat >conftest.$ac_ext <<_ACEOF
18635#line $LINENO "configure"
18636/* confdefs.h. */
18637_ACEOF
18638cat confdefs.h >>conftest.$ac_ext
18639cat >>conftest.$ac_ext <<_ACEOF
18640/* end confdefs.h. */
18641
18642/* Override any gcc2 internal prototype to avoid an error. */
18643#ifdef __cplusplus
18644extern "C"
18645#endif
18646/* We use char because int might match the return type of a gcc2
18647 builtin and then its argument prototype would still apply. */
18648char pthread_mutex_lock ();
18649int
18650main ()
18651{
18652pthread_mutex_lock ();
18653 ;
18654 return 0;
18655}
18656_ACEOF
18657rm -f conftest.$ac_objext conftest$ac_exeext
18658if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18659 (eval $ac_link) 2>&5
18660 ac_status=$?
18661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18662 (exit $ac_status); } &&
18663 { ac_try='test -s conftest$ac_exeext'
18664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18665 (eval $ac_try) 2>&5
18666 ac_status=$?
18667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18668 (exit $ac_status); }; }; then
18669 ac_cv_search_pthread_mutex_lock="-l$ac_lib"
18670break
18671else
18672 echo "$as_me: failed program was:" >&5
18673sed 's/^/| /' conftest.$ac_ext >&5
18674
18675fi
18676rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18677 done
18678fi
18679LIBS=$ac_func_search_save_LIBS
18680fi
18681echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
18682echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
18683if test "$ac_cv_search_pthread_mutex_lock" != no; then
18684 test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
Brian Gaekec9a410c2004-02-23 21:30:37 +000018685 HAVE_PTHREAD_MUTEX_LOCK=1
18686else
18687 HAVE_PTHREAD_MUTEX_LOCK=0
Brian Gaeke5f268f72003-12-05 19:29:01 +000018688fi
18689
18690
Brian Gaekec9a410c2004-02-23 21:30:37 +000018691
John Criswell7a73b802003-06-30 21:59:07 +000018692echo "$as_me:$LINENO: checking for ANSI C header files" >&5
18693echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
18694if test "${ac_cv_header_stdc+set}" = set; then
18695 echo $ECHO_N "(cached) $ECHO_C" >&6
18696else
18697 cat >conftest.$ac_ext <<_ACEOF
18698#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000018699/* confdefs.h. */
18700_ACEOF
18701cat confdefs.h >>conftest.$ac_ext
18702cat >>conftest.$ac_ext <<_ACEOF
18703/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000018704#include <stdlib.h>
18705#include <stdarg.h>
18706#include <string.h>
18707#include <float.h>
18708
John Criswell0c38eaf2003-09-10 15:17:25 +000018709int
18710main ()
18711{
18712
18713 ;
18714 return 0;
18715}
John Criswell7a73b802003-06-30 21:59:07 +000018716_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018717rm -f conftest.$ac_objext
18718if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18719 (eval $ac_compile) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000018720 ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +000018721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018722 (exit $ac_status); } &&
18723 { ac_try='test -s conftest.$ac_objext'
18724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18725 (eval $ac_try) 2>&5
18726 ac_status=$?
18727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18728 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000018729 ac_cv_header_stdc=yes
18730else
18731 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018732sed 's/^/| /' conftest.$ac_ext >&5
18733
18734ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000018735fi
John Criswell0c38eaf2003-09-10 15:17:25 +000018736rm -f conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000018737
18738if test $ac_cv_header_stdc = yes; then
18739 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
18740 cat >conftest.$ac_ext <<_ACEOF
18741#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000018742/* confdefs.h. */
18743_ACEOF
18744cat confdefs.h >>conftest.$ac_ext
18745cat >>conftest.$ac_ext <<_ACEOF
18746/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000018747#include <string.h>
18748
18749_ACEOF
18750if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000018751 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000018752 :
18753else
18754 ac_cv_header_stdc=no
18755fi
18756rm -f conftest*
18757
18758fi
18759
18760if test $ac_cv_header_stdc = yes; then
18761 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
18762 cat >conftest.$ac_ext <<_ACEOF
18763#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000018764/* confdefs.h. */
18765_ACEOF
18766cat confdefs.h >>conftest.$ac_ext
18767cat >>conftest.$ac_ext <<_ACEOF
18768/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000018769#include <stdlib.h>
18770
18771_ACEOF
18772if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000018773 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000018774 :
18775else
18776 ac_cv_header_stdc=no
18777fi
18778rm -f conftest*
18779
18780fi
18781
18782if test $ac_cv_header_stdc = yes; then
18783 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
18784 if test "$cross_compiling" = yes; then
18785 :
18786else
18787 cat >conftest.$ac_ext <<_ACEOF
18788#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000018789/* confdefs.h. */
18790_ACEOF
18791cat confdefs.h >>conftest.$ac_ext
18792cat >>conftest.$ac_ext <<_ACEOF
18793/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000018794#include <ctype.h>
18795#if ((' ' & 0x0FF) == 0x020)
18796# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
18797# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
18798#else
John Criswell0c38eaf2003-09-10 15:17:25 +000018799# define ISLOWER(c) \
18800 (('a' <= (c) && (c) <= 'i') \
John Criswell7a73b802003-06-30 21:59:07 +000018801 || ('j' <= (c) && (c) <= 'r') \
18802 || ('s' <= (c) && (c) <= 'z'))
18803# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
18804#endif
18805
18806#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
18807int
18808main ()
18809{
18810 int i;
18811 for (i = 0; i < 256; i++)
18812 if (XOR (islower (i), ISLOWER (i))
18813 || toupper (i) != TOUPPER (i))
18814 exit(2);
18815 exit (0);
18816}
18817_ACEOF
18818rm -f conftest$ac_exeext
18819if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18820 (eval $ac_link) 2>&5
18821 ac_status=$?
18822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18823 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18825 (eval $ac_try) 2>&5
18826 ac_status=$?
18827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18828 (exit $ac_status); }; }; then
18829 :
18830else
18831 echo "$as_me: program exited with status $ac_status" >&5
18832echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018833sed 's/^/| /' conftest.$ac_ext >&5
18834
John Criswell7a73b802003-06-30 21:59:07 +000018835( exit $ac_status )
18836ac_cv_header_stdc=no
18837fi
John Criswell0c38eaf2003-09-10 15:17:25 +000018838rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000018839fi
18840fi
18841fi
18842echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
18843echo "${ECHO_T}$ac_cv_header_stdc" >&6
18844if test $ac_cv_header_stdc = yes; then
18845
18846cat >>confdefs.h <<\_ACEOF
18847#define STDC_HEADERS 1
18848_ACEOF
18849
18850fi
18851
18852echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
18853echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
18854if test "${ac_cv_header_sys_wait_h+set}" = set; then
18855 echo $ECHO_N "(cached) $ECHO_C" >&6
18856else
18857 cat >conftest.$ac_ext <<_ACEOF
18858#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000018859/* confdefs.h. */
18860_ACEOF
18861cat confdefs.h >>conftest.$ac_ext
18862cat >>conftest.$ac_ext <<_ACEOF
18863/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000018864#include <sys/types.h>
18865#include <sys/wait.h>
18866#ifndef WEXITSTATUS
18867# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
18868#endif
18869#ifndef WIFEXITED
18870# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
18871#endif
18872
John Criswell7a73b802003-06-30 21:59:07 +000018873int
18874main ()
18875{
18876 int s;
18877 wait (&s);
18878 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
18879 ;
18880 return 0;
18881}
18882_ACEOF
18883rm -f conftest.$ac_objext
18884if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18885 (eval $ac_compile) 2>&5
18886 ac_status=$?
18887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18888 (exit $ac_status); } &&
18889 { ac_try='test -s conftest.$ac_objext'
18890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18891 (eval $ac_try) 2>&5
18892 ac_status=$?
18893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18894 (exit $ac_status); }; }; then
18895 ac_cv_header_sys_wait_h=yes
18896else
18897 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018898sed 's/^/| /' conftest.$ac_ext >&5
18899
John Criswell7a73b802003-06-30 21:59:07 +000018900ac_cv_header_sys_wait_h=no
18901fi
18902rm -f conftest.$ac_objext conftest.$ac_ext
18903fi
18904echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
18905echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
18906if test $ac_cv_header_sys_wait_h = yes; then
18907
18908cat >>confdefs.h <<\_ACEOF
18909#define HAVE_SYS_WAIT_H 1
18910_ACEOF
18911
18912fi
18913
18914
18915
18916
18917
18918
18919
18920
18921
18922
Brian Gaeke26be9c52004-01-13 06:43:16 +000018923
Brian Gaekef5261472004-02-20 06:40:57 +000018924
John Criswellb2815e02004-05-27 20:40:39 +000018925
18926for 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 +000018927do
18928as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18929if eval "test \"\${$as_ac_Header+set}\" = set"; then
18930 echo "$as_me:$LINENO: checking for $ac_header" >&5
18931echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18932if eval "test \"\${$as_ac_Header+set}\" = set"; then
18933 echo $ECHO_N "(cached) $ECHO_C" >&6
18934fi
18935echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18936echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18937else
18938 # Is the header compilable?
18939echo "$as_me:$LINENO: checking $ac_header usability" >&5
18940echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18941cat >conftest.$ac_ext <<_ACEOF
18942#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000018943/* confdefs.h. */
18944_ACEOF
18945cat confdefs.h >>conftest.$ac_ext
18946cat >>conftest.$ac_ext <<_ACEOF
18947/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000018948$ac_includes_default
18949#include <$ac_header>
18950_ACEOF
18951rm -f conftest.$ac_objext
18952if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18953 (eval $ac_compile) 2>&5
18954 ac_status=$?
18955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18956 (exit $ac_status); } &&
18957 { ac_try='test -s conftest.$ac_objext'
18958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18959 (eval $ac_try) 2>&5
18960 ac_status=$?
18961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18962 (exit $ac_status); }; }; then
18963 ac_header_compiler=yes
18964else
18965 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018966sed 's/^/| /' conftest.$ac_ext >&5
18967
John Criswell7a73b802003-06-30 21:59:07 +000018968ac_header_compiler=no
18969fi
18970rm -f conftest.$ac_objext conftest.$ac_ext
18971echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18972echo "${ECHO_T}$ac_header_compiler" >&6
18973
18974# Is the header present?
18975echo "$as_me:$LINENO: checking $ac_header presence" >&5
18976echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18977cat >conftest.$ac_ext <<_ACEOF
18978#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000018979/* confdefs.h. */
18980_ACEOF
18981cat confdefs.h >>conftest.$ac_ext
18982cat >>conftest.$ac_ext <<_ACEOF
18983/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000018984#include <$ac_header>
18985_ACEOF
18986if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18987 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18988 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000018989 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000018990 rm -f conftest.er1
18991 cat conftest.err >&5
18992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18993 (exit $ac_status); } >/dev/null; then
18994 if test -s conftest.err; then
18995 ac_cpp_err=$ac_c_preproc_warn_flag
18996 else
18997 ac_cpp_err=
18998 fi
18999else
19000 ac_cpp_err=yes
19001fi
19002if test -z "$ac_cpp_err"; then
19003 ac_header_preproc=yes
19004else
19005 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019006sed 's/^/| /' conftest.$ac_ext >&5
19007
John Criswell7a73b802003-06-30 21:59:07 +000019008 ac_header_preproc=no
19009fi
19010rm -f conftest.err conftest.$ac_ext
19011echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19012echo "${ECHO_T}$ac_header_preproc" >&6
19013
19014# So? What about this header?
19015case $ac_header_compiler:$ac_header_preproc in
19016 yes:no )
19017 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19018echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19019 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019020echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19021 (
19022 cat <<\_ASBOX
19023## ------------------------------------ ##
19024## Report this to bug-autoconf@gnu.org. ##
19025## ------------------------------------ ##
19026_ASBOX
19027 ) |
19028 sed "s/^/$as_me: WARNING: /" >&2
19029 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019030 no:yes )
19031 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19032echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19033 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19034echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19035 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019036echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19037 (
19038 cat <<\_ASBOX
19039## ------------------------------------ ##
19040## Report this to bug-autoconf@gnu.org. ##
19041## ------------------------------------ ##
19042_ASBOX
19043 ) |
19044 sed "s/^/$as_me: WARNING: /" >&2
19045 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019046esac
19047echo "$as_me:$LINENO: checking for $ac_header" >&5
19048echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19049if eval "test \"\${$as_ac_Header+set}\" = set"; then
19050 echo $ECHO_N "(cached) $ECHO_C" >&6
19051else
19052 eval "$as_ac_Header=$ac_header_preproc"
19053fi
19054echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19055echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19056
19057fi
19058if test `eval echo '${'$as_ac_Header'}'` = yes; then
19059 cat >>confdefs.h <<_ACEOF
19060#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19061_ACEOF
19062
19063fi
19064
19065done
19066
19067
Brian Gaeke6c3fd812004-02-23 22:07:00 +000019068if test "${ac_cv_header_sys_types_h+set}" = set; then
19069 echo "$as_me:$LINENO: checking for sys/types.h" >&5
19070echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
19071if test "${ac_cv_header_sys_types_h+set}" = set; then
19072 echo $ECHO_N "(cached) $ECHO_C" >&6
19073fi
19074echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
19075echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
19076else
19077 # Is the header compilable?
19078echo "$as_me:$LINENO: checking sys/types.h usability" >&5
19079echo $ECHO_N "checking sys/types.h usability... $ECHO_C" >&6
19080cat >conftest.$ac_ext <<_ACEOF
19081#line $LINENO "configure"
19082/* confdefs.h. */
19083_ACEOF
19084cat confdefs.h >>conftest.$ac_ext
19085cat >>conftest.$ac_ext <<_ACEOF
19086/* end confdefs.h. */
19087$ac_includes_default
19088#include <sys/types.h>
19089_ACEOF
19090rm -f conftest.$ac_objext
19091if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19092 (eval $ac_compile) 2>&5
19093 ac_status=$?
19094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19095 (exit $ac_status); } &&
19096 { ac_try='test -s conftest.$ac_objext'
19097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19098 (eval $ac_try) 2>&5
19099 ac_status=$?
19100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19101 (exit $ac_status); }; }; then
19102 ac_header_compiler=yes
19103else
19104 echo "$as_me: failed program was:" >&5
19105sed 's/^/| /' conftest.$ac_ext >&5
19106
19107ac_header_compiler=no
19108fi
19109rm -f conftest.$ac_objext conftest.$ac_ext
19110echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19111echo "${ECHO_T}$ac_header_compiler" >&6
19112
19113# Is the header present?
19114echo "$as_me:$LINENO: checking sys/types.h presence" >&5
19115echo $ECHO_N "checking sys/types.h presence... $ECHO_C" >&6
19116cat >conftest.$ac_ext <<_ACEOF
19117#line $LINENO "configure"
19118/* confdefs.h. */
19119_ACEOF
19120cat confdefs.h >>conftest.$ac_ext
19121cat >>conftest.$ac_ext <<_ACEOF
19122/* end confdefs.h. */
19123#include <sys/types.h>
19124_ACEOF
19125if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19126 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19127 ac_status=$?
19128 grep -v '^ *+' conftest.er1 >conftest.err
19129 rm -f conftest.er1
19130 cat conftest.err >&5
19131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19132 (exit $ac_status); } >/dev/null; then
19133 if test -s conftest.err; then
19134 ac_cpp_err=$ac_c_preproc_warn_flag
19135 else
19136 ac_cpp_err=
19137 fi
19138else
19139 ac_cpp_err=yes
19140fi
19141if test -z "$ac_cpp_err"; then
19142 ac_header_preproc=yes
19143else
19144 echo "$as_me: failed program was:" >&5
19145sed 's/^/| /' conftest.$ac_ext >&5
19146
19147 ac_header_preproc=no
19148fi
19149rm -f conftest.err conftest.$ac_ext
19150echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19151echo "${ECHO_T}$ac_header_preproc" >&6
19152
19153# So? What about this header?
19154case $ac_header_compiler:$ac_header_preproc in
19155 yes:no )
19156 { echo "$as_me:$LINENO: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&5
19157echo "$as_me: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19158 { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the preprocessor's result" >&5
19159echo "$as_me: WARNING: sys/types.h: proceeding with the preprocessor's result" >&2;}
19160 (
19161 cat <<\_ASBOX
19162## ------------------------------------ ##
19163## Report this to bug-autoconf@gnu.org. ##
19164## ------------------------------------ ##
19165_ASBOX
19166 ) |
19167 sed "s/^/$as_me: WARNING: /" >&2
19168 ;;
19169 no:yes )
19170 { echo "$as_me:$LINENO: WARNING: sys/types.h: present but cannot be compiled" >&5
19171echo "$as_me: WARNING: sys/types.h: present but cannot be compiled" >&2;}
19172 { echo "$as_me:$LINENO: WARNING: sys/types.h: check for missing prerequisite headers?" >&5
19173echo "$as_me: WARNING: sys/types.h: check for missing prerequisite headers?" >&2;}
19174 { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the preprocessor's result" >&5
19175echo "$as_me: WARNING: sys/types.h: proceeding with the preprocessor's result" >&2;}
19176 (
19177 cat <<\_ASBOX
19178## ------------------------------------ ##
19179## Report this to bug-autoconf@gnu.org. ##
19180## ------------------------------------ ##
19181_ASBOX
19182 ) |
19183 sed "s/^/$as_me: WARNING: /" >&2
19184 ;;
19185esac
19186echo "$as_me:$LINENO: checking for sys/types.h" >&5
19187echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
19188if test "${ac_cv_header_sys_types_h+set}" = set; then
19189 echo $ECHO_N "(cached) $ECHO_C" >&6
19190else
19191 ac_cv_header_sys_types_h=$ac_header_preproc
19192fi
19193echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
19194echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
19195
19196fi
19197if test $ac_cv_header_sys_types_h = yes; then
19198 INCLUDE_SYS_TYPES_H='#include <sys/types.h>'
19199else
19200 INCLUDE_SYS_TYPES_H=''
19201fi
19202
19203
19204
19205if test "${ac_cv_header_inttypes_h+set}" = set; then
19206 echo "$as_me:$LINENO: checking for inttypes.h" >&5
19207echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
19208if test "${ac_cv_header_inttypes_h+set}" = set; then
19209 echo $ECHO_N "(cached) $ECHO_C" >&6
19210fi
19211echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
19212echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6
19213else
19214 # Is the header compilable?
19215echo "$as_me:$LINENO: checking inttypes.h usability" >&5
19216echo $ECHO_N "checking inttypes.h usability... $ECHO_C" >&6
19217cat >conftest.$ac_ext <<_ACEOF
19218#line $LINENO "configure"
19219/* confdefs.h. */
19220_ACEOF
19221cat confdefs.h >>conftest.$ac_ext
19222cat >>conftest.$ac_ext <<_ACEOF
19223/* end confdefs.h. */
19224$ac_includes_default
19225#include <inttypes.h>
19226_ACEOF
19227rm -f conftest.$ac_objext
19228if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19229 (eval $ac_compile) 2>&5
19230 ac_status=$?
19231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19232 (exit $ac_status); } &&
19233 { ac_try='test -s conftest.$ac_objext'
19234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19235 (eval $ac_try) 2>&5
19236 ac_status=$?
19237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19238 (exit $ac_status); }; }; then
19239 ac_header_compiler=yes
19240else
19241 echo "$as_me: failed program was:" >&5
19242sed 's/^/| /' conftest.$ac_ext >&5
19243
19244ac_header_compiler=no
19245fi
19246rm -f conftest.$ac_objext conftest.$ac_ext
19247echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19248echo "${ECHO_T}$ac_header_compiler" >&6
19249
19250# Is the header present?
19251echo "$as_me:$LINENO: checking inttypes.h presence" >&5
19252echo $ECHO_N "checking inttypes.h presence... $ECHO_C" >&6
19253cat >conftest.$ac_ext <<_ACEOF
19254#line $LINENO "configure"
19255/* confdefs.h. */
19256_ACEOF
19257cat confdefs.h >>conftest.$ac_ext
19258cat >>conftest.$ac_ext <<_ACEOF
19259/* end confdefs.h. */
19260#include <inttypes.h>
19261_ACEOF
19262if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19263 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19264 ac_status=$?
19265 grep -v '^ *+' conftest.er1 >conftest.err
19266 rm -f conftest.er1
19267 cat conftest.err >&5
19268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19269 (exit $ac_status); } >/dev/null; then
19270 if test -s conftest.err; then
19271 ac_cpp_err=$ac_c_preproc_warn_flag
19272 else
19273 ac_cpp_err=
19274 fi
19275else
19276 ac_cpp_err=yes
19277fi
19278if test -z "$ac_cpp_err"; then
19279 ac_header_preproc=yes
19280else
19281 echo "$as_me: failed program was:" >&5
19282sed 's/^/| /' conftest.$ac_ext >&5
19283
19284 ac_header_preproc=no
19285fi
19286rm -f conftest.err conftest.$ac_ext
19287echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19288echo "${ECHO_T}$ac_header_preproc" >&6
19289
19290# So? What about this header?
19291case $ac_header_compiler:$ac_header_preproc in
19292 yes:no )
19293 { echo "$as_me:$LINENO: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&5
19294echo "$as_me: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19295 { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the preprocessor's result" >&5
19296echo "$as_me: WARNING: inttypes.h: proceeding with the preprocessor's result" >&2;}
19297 (
19298 cat <<\_ASBOX
19299## ------------------------------------ ##
19300## Report this to bug-autoconf@gnu.org. ##
19301## ------------------------------------ ##
19302_ASBOX
19303 ) |
19304 sed "s/^/$as_me: WARNING: /" >&2
19305 ;;
19306 no:yes )
19307 { echo "$as_me:$LINENO: WARNING: inttypes.h: present but cannot be compiled" >&5
19308echo "$as_me: WARNING: inttypes.h: present but cannot be compiled" >&2;}
19309 { echo "$as_me:$LINENO: WARNING: inttypes.h: check for missing prerequisite headers?" >&5
19310echo "$as_me: WARNING: inttypes.h: check for missing prerequisite headers?" >&2;}
19311 { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the preprocessor's result" >&5
19312echo "$as_me: WARNING: inttypes.h: proceeding with the preprocessor's result" >&2;}
19313 (
19314 cat <<\_ASBOX
19315## ------------------------------------ ##
19316## Report this to bug-autoconf@gnu.org. ##
19317## ------------------------------------ ##
19318_ASBOX
19319 ) |
19320 sed "s/^/$as_me: WARNING: /" >&2
19321 ;;
19322esac
19323echo "$as_me:$LINENO: checking for inttypes.h" >&5
19324echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
19325if test "${ac_cv_header_inttypes_h+set}" = set; then
19326 echo $ECHO_N "(cached) $ECHO_C" >&6
19327else
19328 ac_cv_header_inttypes_h=$ac_header_preproc
19329fi
19330echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
19331echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6
19332
19333fi
19334if test $ac_cv_header_inttypes_h = yes; then
19335 INCLUDE_INTTYPES_H='#include <inttypes.h>'
19336else
19337 INCLUDE_INTTYPES_H=''
19338fi
19339
19340
19341
19342
John Criswell7a73b802003-06-30 21:59:07 +000019343echo "$as_me:$LINENO: checking for pid_t" >&5
19344echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
19345if test "${ac_cv_type_pid_t+set}" = set; then
19346 echo $ECHO_N "(cached) $ECHO_C" >&6
19347else
19348 cat >conftest.$ac_ext <<_ACEOF
19349#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019350/* confdefs.h. */
19351_ACEOF
19352cat confdefs.h >>conftest.$ac_ext
19353cat >>conftest.$ac_ext <<_ACEOF
19354/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019355$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000019356int
19357main ()
19358{
19359if ((pid_t *) 0)
19360 return 0;
19361if (sizeof (pid_t))
19362 return 0;
19363 ;
19364 return 0;
19365}
19366_ACEOF
19367rm -f conftest.$ac_objext
19368if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19369 (eval $ac_compile) 2>&5
19370 ac_status=$?
19371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19372 (exit $ac_status); } &&
19373 { ac_try='test -s conftest.$ac_objext'
19374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19375 (eval $ac_try) 2>&5
19376 ac_status=$?
19377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19378 (exit $ac_status); }; }; then
19379 ac_cv_type_pid_t=yes
19380else
19381 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019382sed 's/^/| /' conftest.$ac_ext >&5
19383
John Criswell7a73b802003-06-30 21:59:07 +000019384ac_cv_type_pid_t=no
19385fi
19386rm -f conftest.$ac_objext conftest.$ac_ext
19387fi
19388echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
19389echo "${ECHO_T}$ac_cv_type_pid_t" >&6
19390if test $ac_cv_type_pid_t = yes; then
19391 :
19392else
19393
19394cat >>confdefs.h <<_ACEOF
19395#define pid_t int
19396_ACEOF
19397
19398fi
19399
19400echo "$as_me:$LINENO: checking for size_t" >&5
19401echo $ECHO_N "checking for size_t... $ECHO_C" >&6
19402if test "${ac_cv_type_size_t+set}" = set; then
19403 echo $ECHO_N "(cached) $ECHO_C" >&6
19404else
19405 cat >conftest.$ac_ext <<_ACEOF
19406#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019407/* confdefs.h. */
19408_ACEOF
19409cat confdefs.h >>conftest.$ac_ext
19410cat >>conftest.$ac_ext <<_ACEOF
19411/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019412$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000019413int
19414main ()
19415{
19416if ((size_t *) 0)
19417 return 0;
19418if (sizeof (size_t))
19419 return 0;
19420 ;
19421 return 0;
19422}
19423_ACEOF
19424rm -f conftest.$ac_objext
19425if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19426 (eval $ac_compile) 2>&5
19427 ac_status=$?
19428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19429 (exit $ac_status); } &&
19430 { ac_try='test -s conftest.$ac_objext'
19431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19432 (eval $ac_try) 2>&5
19433 ac_status=$?
19434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19435 (exit $ac_status); }; }; then
19436 ac_cv_type_size_t=yes
19437else
19438 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019439sed 's/^/| /' conftest.$ac_ext >&5
19440
John Criswell7a73b802003-06-30 21:59:07 +000019441ac_cv_type_size_t=no
19442fi
19443rm -f conftest.$ac_objext conftest.$ac_ext
19444fi
19445echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
19446echo "${ECHO_T}$ac_cv_type_size_t" >&6
19447if test $ac_cv_type_size_t = yes; then
19448 :
19449else
19450
19451cat >>confdefs.h <<_ACEOF
19452#define size_t unsigned
19453_ACEOF
19454
19455fi
19456
19457echo "$as_me:$LINENO: checking for int64_t" >&5
19458echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
19459if test "${ac_cv_type_int64_t+set}" = set; then
19460 echo $ECHO_N "(cached) $ECHO_C" >&6
19461else
19462 cat >conftest.$ac_ext <<_ACEOF
19463#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019464/* confdefs.h. */
19465_ACEOF
19466cat confdefs.h >>conftest.$ac_ext
19467cat >>conftest.$ac_ext <<_ACEOF
19468/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019469$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000019470int
19471main ()
19472{
19473if ((int64_t *) 0)
19474 return 0;
19475if (sizeof (int64_t))
19476 return 0;
19477 ;
19478 return 0;
19479}
19480_ACEOF
19481rm -f conftest.$ac_objext
19482if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19483 (eval $ac_compile) 2>&5
19484 ac_status=$?
19485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19486 (exit $ac_status); } &&
19487 { ac_try='test -s conftest.$ac_objext'
19488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19489 (eval $ac_try) 2>&5
19490 ac_status=$?
19491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19492 (exit $ac_status); }; }; then
19493 ac_cv_type_int64_t=yes
19494else
19495 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019496sed 's/^/| /' conftest.$ac_ext >&5
19497
John Criswell7a73b802003-06-30 21:59:07 +000019498ac_cv_type_int64_t=no
19499fi
19500rm -f conftest.$ac_objext conftest.$ac_ext
19501fi
19502echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
19503echo "${ECHO_T}$ac_cv_type_int64_t" >&6
19504if test $ac_cv_type_int64_t = yes; then
19505
19506cat >>confdefs.h <<_ACEOF
19507#define HAVE_INT64_T 1
19508_ACEOF
19509
19510
19511else
19512 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
19513echo "$as_me: error: Type int64_t required but not found" >&2;}
19514 { (exit 1); exit 1; }; }
19515fi
19516
19517echo "$as_me:$LINENO: checking for uint64_t" >&5
19518echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
19519if test "${ac_cv_type_uint64_t+set}" = set; then
19520 echo $ECHO_N "(cached) $ECHO_C" >&6
19521else
19522 cat >conftest.$ac_ext <<_ACEOF
19523#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019524/* confdefs.h. */
19525_ACEOF
19526cat confdefs.h >>conftest.$ac_ext
19527cat >>conftest.$ac_ext <<_ACEOF
19528/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019529$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000019530int
19531main ()
19532{
19533if ((uint64_t *) 0)
19534 return 0;
19535if (sizeof (uint64_t))
19536 return 0;
19537 ;
19538 return 0;
19539}
19540_ACEOF
19541rm -f conftest.$ac_objext
19542if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19543 (eval $ac_compile) 2>&5
19544 ac_status=$?
19545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19546 (exit $ac_status); } &&
19547 { ac_try='test -s conftest.$ac_objext'
19548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19549 (eval $ac_try) 2>&5
19550 ac_status=$?
19551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19552 (exit $ac_status); }; }; then
19553 ac_cv_type_uint64_t=yes
19554else
19555 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019556sed 's/^/| /' conftest.$ac_ext >&5
19557
John Criswell7a73b802003-06-30 21:59:07 +000019558ac_cv_type_uint64_t=no
19559fi
19560rm -f conftest.$ac_objext conftest.$ac_ext
19561fi
19562echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
19563echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
19564if test $ac_cv_type_uint64_t = yes; then
19565
19566cat >>confdefs.h <<_ACEOF
19567#define HAVE_UINT64_T 1
19568_ACEOF
19569
19570
19571else
19572 { { echo "$as_me:$LINENO: error: Type uint64_t required but not found" >&5
19573echo "$as_me: error: Type uint64_t required but not found" >&2;}
19574 { (exit 1); exit 1; }; }
19575fi
19576
19577echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
19578echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
19579if test "${ac_cv_header_time+set}" = set; then
19580 echo $ECHO_N "(cached) $ECHO_C" >&6
19581else
19582 cat >conftest.$ac_ext <<_ACEOF
19583#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019584/* confdefs.h. */
19585_ACEOF
19586cat confdefs.h >>conftest.$ac_ext
19587cat >>conftest.$ac_ext <<_ACEOF
19588/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019589#include <sys/types.h>
19590#include <sys/time.h>
19591#include <time.h>
19592
John Criswell7a73b802003-06-30 21:59:07 +000019593int
19594main ()
19595{
19596if ((struct tm *) 0)
19597return 0;
19598 ;
19599 return 0;
19600}
19601_ACEOF
19602rm -f conftest.$ac_objext
19603if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19604 (eval $ac_compile) 2>&5
19605 ac_status=$?
19606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19607 (exit $ac_status); } &&
19608 { ac_try='test -s conftest.$ac_objext'
19609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19610 (eval $ac_try) 2>&5
19611 ac_status=$?
19612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19613 (exit $ac_status); }; }; then
19614 ac_cv_header_time=yes
19615else
19616 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019617sed 's/^/| /' conftest.$ac_ext >&5
19618
John Criswell7a73b802003-06-30 21:59:07 +000019619ac_cv_header_time=no
19620fi
19621rm -f conftest.$ac_objext conftest.$ac_ext
19622fi
19623echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
19624echo "${ECHO_T}$ac_cv_header_time" >&6
19625if test $ac_cv_header_time = yes; then
19626
19627cat >>confdefs.h <<\_ACEOF
19628#define TIME_WITH_SYS_TIME 1
19629_ACEOF
19630
19631fi
19632
19633echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
19634echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
19635if test "${ac_cv_struct_tm+set}" = set; then
19636 echo $ECHO_N "(cached) $ECHO_C" >&6
19637else
19638 cat >conftest.$ac_ext <<_ACEOF
19639#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019640/* confdefs.h. */
19641_ACEOF
19642cat confdefs.h >>conftest.$ac_ext
19643cat >>conftest.$ac_ext <<_ACEOF
19644/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019645#include <sys/types.h>
19646#include <time.h>
19647
John Criswell7a73b802003-06-30 21:59:07 +000019648int
19649main ()
19650{
19651struct tm *tp; tp->tm_sec;
19652 ;
19653 return 0;
19654}
19655_ACEOF
19656rm -f conftest.$ac_objext
19657if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19658 (eval $ac_compile) 2>&5
19659 ac_status=$?
19660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19661 (exit $ac_status); } &&
19662 { ac_try='test -s conftest.$ac_objext'
19663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19664 (eval $ac_try) 2>&5
19665 ac_status=$?
19666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19667 (exit $ac_status); }; }; then
19668 ac_cv_struct_tm=time.h
19669else
19670 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019671sed 's/^/| /' conftest.$ac_ext >&5
19672
John Criswell7a73b802003-06-30 21:59:07 +000019673ac_cv_struct_tm=sys/time.h
19674fi
19675rm -f conftest.$ac_objext conftest.$ac_ext
19676fi
19677echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
19678echo "${ECHO_T}$ac_cv_struct_tm" >&6
19679if test $ac_cv_struct_tm = sys/time.h; then
19680
19681cat >>confdefs.h <<\_ACEOF
19682#define TM_IN_SYS_TIME 1
19683_ACEOF
19684
19685fi
19686
19687
John Criswella0137d32003-10-13 16:22:01 +000019688
19689
19690
19691 ac_ext=c
19692ac_cpp='$CPP $CPPFLAGS'
19693ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19694ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19695ac_compiler_gnu=$ac_cv_c_compiler_gnu
19696
19697 if test "$cross_compiling" = yes; then
19698 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19699See \`config.log' for more details." >&5
19700echo "$as_me: error: cannot run test program while cross compiling
19701See \`config.log' for more details." >&2;}
19702 { (exit 1); exit 1; }; }
19703else
19704 cat >conftest.$ac_ext <<_ACEOF
19705#line $LINENO "configure"
19706/* confdefs.h. */
19707_ACEOF
19708cat confdefs.h >>conftest.$ac_ext
19709cat >>conftest.$ac_ext <<_ACEOF
19710/* end confdefs.h. */
19711#include <stdio.h>
19712 #include <stdlib.h>
19713int
19714main ()
19715{
19716
19717 volatile double A, B;
19718 char Buffer[100];
19719 A = 1;
19720 A /= 10.0;
19721 sprintf(Buffer, "%a", A);
19722 B = atof(Buffer);
19723 if (A != B)
19724 return (1);
19725 if (A != 0x1.999999999999ap-4)
19726 return (1);
19727 return (0);
19728 ;
19729 return 0;
19730}
19731_ACEOF
19732rm -f conftest$ac_exeext
19733if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19734 (eval $ac_link) 2>&5
19735 ac_status=$?
19736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19737 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19739 (eval $ac_try) 2>&5
19740 ac_status=$?
19741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19742 (exit $ac_status); }; }; then
19743 ac_c_printf_a=yes
19744else
19745 echo "$as_me: program exited with status $ac_status" >&5
19746echo "$as_me: failed program was:" >&5
19747sed 's/^/| /' conftest.$ac_ext >&5
19748
19749( exit $ac_status )
19750ac_c_printf_a=no
19751fi
19752rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19753fi
19754 ac_ext=c
19755ac_cpp='$CPP $CPPFLAGS'
19756ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19757ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19758ac_compiler_gnu=$ac_cv_c_compiler_gnu
19759
19760 if test "$ac_c_printf_a" = "yes"; then
19761
19762cat >>confdefs.h <<\_ACEOF
19763#define HAVE_PRINTF_A 1
19764_ACEOF
19765
19766 fi
19767
19768
John Criswell0021c312004-02-13 21:57:29 +000019769echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
19770echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
19771if test "${ac_cv_c_bigendian+set}" = set; then
19772 echo $ECHO_N "(cached) $ECHO_C" >&6
19773else
19774 # See if sys/param.h defines the BYTE_ORDER macro.
19775cat >conftest.$ac_ext <<_ACEOF
19776#line $LINENO "configure"
19777/* confdefs.h. */
19778_ACEOF
19779cat confdefs.h >>conftest.$ac_ext
19780cat >>conftest.$ac_ext <<_ACEOF
19781/* end confdefs.h. */
19782#include <sys/types.h>
19783#include <sys/param.h>
19784
19785int
19786main ()
19787{
19788#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
19789 bogus endian macros
19790#endif
19791
19792 ;
19793 return 0;
19794}
19795_ACEOF
19796rm -f conftest.$ac_objext
19797if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19798 (eval $ac_compile) 2>&5
19799 ac_status=$?
19800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19801 (exit $ac_status); } &&
19802 { ac_try='test -s conftest.$ac_objext'
19803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19804 (eval $ac_try) 2>&5
19805 ac_status=$?
19806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19807 (exit $ac_status); }; }; then
19808 # It does; now see whether it defined to BIG_ENDIAN or not.
19809cat >conftest.$ac_ext <<_ACEOF
19810#line $LINENO "configure"
19811/* confdefs.h. */
19812_ACEOF
19813cat confdefs.h >>conftest.$ac_ext
19814cat >>conftest.$ac_ext <<_ACEOF
19815/* end confdefs.h. */
19816#include <sys/types.h>
19817#include <sys/param.h>
19818
19819int
19820main ()
19821{
19822#if BYTE_ORDER != BIG_ENDIAN
19823 not big endian
19824#endif
19825
19826 ;
19827 return 0;
19828}
19829_ACEOF
19830rm -f conftest.$ac_objext
19831if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19832 (eval $ac_compile) 2>&5
19833 ac_status=$?
19834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19835 (exit $ac_status); } &&
19836 { ac_try='test -s conftest.$ac_objext'
19837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19838 (eval $ac_try) 2>&5
19839 ac_status=$?
19840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19841 (exit $ac_status); }; }; then
19842 ac_cv_c_bigendian=yes
19843else
19844 echo "$as_me: failed program was:" >&5
19845sed 's/^/| /' conftest.$ac_ext >&5
19846
19847ac_cv_c_bigendian=no
19848fi
19849rm -f conftest.$ac_objext conftest.$ac_ext
19850else
19851 echo "$as_me: failed program was:" >&5
19852sed 's/^/| /' conftest.$ac_ext >&5
19853
19854# It does not; compile a test program.
19855if test "$cross_compiling" = yes; then
19856 # try to guess the endianness by grepping values into an object file
19857 ac_cv_c_bigendian=unknown
19858 cat >conftest.$ac_ext <<_ACEOF
19859#line $LINENO "configure"
19860/* confdefs.h. */
19861_ACEOF
19862cat confdefs.h >>conftest.$ac_ext
19863cat >>conftest.$ac_ext <<_ACEOF
19864/* end confdefs.h. */
19865short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
19866short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
19867void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
19868short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
19869short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
19870void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
19871int
19872main ()
19873{
19874 _ascii (); _ebcdic ();
19875 ;
19876 return 0;
19877}
19878_ACEOF
19879rm -f conftest.$ac_objext
19880if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19881 (eval $ac_compile) 2>&5
19882 ac_status=$?
19883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19884 (exit $ac_status); } &&
19885 { ac_try='test -s conftest.$ac_objext'
19886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19887 (eval $ac_try) 2>&5
19888 ac_status=$?
19889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19890 (exit $ac_status); }; }; then
19891 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
19892 ac_cv_c_bigendian=yes
19893fi
19894if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
19895 if test "$ac_cv_c_bigendian" = unknown; then
19896 ac_cv_c_bigendian=no
19897 else
19898 # finding both strings is unlikely to happen, but who knows?
19899 ac_cv_c_bigendian=unknown
19900 fi
19901fi
19902else
19903 echo "$as_me: failed program was:" >&5
19904sed 's/^/| /' conftest.$ac_ext >&5
19905
19906fi
19907rm -f conftest.$ac_objext conftest.$ac_ext
19908else
19909 cat >conftest.$ac_ext <<_ACEOF
19910#line $LINENO "configure"
19911/* confdefs.h. */
19912_ACEOF
19913cat confdefs.h >>conftest.$ac_ext
19914cat >>conftest.$ac_ext <<_ACEOF
19915/* end confdefs.h. */
19916int
19917main ()
19918{
19919 /* Are we little or big endian? From Harbison&Steele. */
19920 union
19921 {
19922 long l;
19923 char c[sizeof (long)];
19924 } u;
19925 u.l = 1;
19926 exit (u.c[sizeof (long) - 1] == 1);
19927}
19928_ACEOF
19929rm -f conftest$ac_exeext
19930if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19931 (eval $ac_link) 2>&5
19932 ac_status=$?
19933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19934 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19936 (eval $ac_try) 2>&5
19937 ac_status=$?
19938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19939 (exit $ac_status); }; }; then
19940 ac_cv_c_bigendian=no
19941else
19942 echo "$as_me: program exited with status $ac_status" >&5
19943echo "$as_me: failed program was:" >&5
19944sed 's/^/| /' conftest.$ac_ext >&5
19945
19946( exit $ac_status )
19947ac_cv_c_bigendian=yes
19948fi
19949rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19950fi
19951fi
19952rm -f conftest.$ac_objext conftest.$ac_ext
19953fi
19954echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
19955echo "${ECHO_T}$ac_cv_c_bigendian" >&6
19956case $ac_cv_c_bigendian in
19957 yes)
19958 ENDIAN=big
19959 ;;
19960 no)
19961 ENDIAN=little
19962 ;;
19963 *)
19964 { { echo "$as_me:$LINENO: error: unknown endianness
19965presetting ac_cv_c_bigendian=no (or yes) will help" >&5
19966echo "$as_me: error: unknown endianness
19967presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
19968 { (exit 1); exit 1; }; } ;;
19969esac
19970
19971
John Criswell7a73b802003-06-30 21:59:07 +000019972echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
19973echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
19974if test "${ac_cv_cxx_namespaces+set}" = set; then
19975 echo $ECHO_N "(cached) $ECHO_C" >&6
19976else
19977
19978
19979 ac_ext=cc
19980ac_cpp='$CXXCPP $CPPFLAGS'
19981ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19982ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19983ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19984
19985 cat >conftest.$ac_ext <<_ACEOF
19986#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019987/* confdefs.h. */
19988_ACEOF
19989cat confdefs.h >>conftest.$ac_ext
19990cat >>conftest.$ac_ext <<_ACEOF
19991/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019992namespace Outer { namespace Inner { int i = 0; }}
John Criswell7a73b802003-06-30 21:59:07 +000019993int
19994main ()
19995{
19996using namespace Outer::Inner; return i;
19997 ;
19998 return 0;
19999}
20000_ACEOF
20001rm -f conftest.$ac_objext
20002if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20003 (eval $ac_compile) 2>&5
20004 ac_status=$?
20005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20006 (exit $ac_status); } &&
20007 { ac_try='test -s conftest.$ac_objext'
20008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20009 (eval $ac_try) 2>&5
20010 ac_status=$?
20011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20012 (exit $ac_status); }; }; then
20013 ac_cv_cxx_namespaces=yes
20014else
20015 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020016sed 's/^/| /' conftest.$ac_ext >&5
20017
John Criswell7a73b802003-06-30 21:59:07 +000020018ac_cv_cxx_namespaces=no
20019fi
20020rm -f conftest.$ac_objext conftest.$ac_ext
20021 ac_ext=c
20022ac_cpp='$CPP $CPPFLAGS'
20023ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20024ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20025ac_compiler_gnu=$ac_cv_c_compiler_gnu
20026
20027
20028fi
20029echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
20030echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
20031if test "$ac_cv_cxx_namespaces" = yes; then
20032
20033cat >>confdefs.h <<\_ACEOF
20034#define HAVE_NAMESPACES
20035_ACEOF
20036
20037fi
20038
Brian Gaeke90583492003-11-10 03:06:28 +000020039echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
20040echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
20041if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000020042 echo $ECHO_N "(cached) $ECHO_C" >&6
20043else
20044
20045
20046
20047 ac_ext=cc
20048ac_cpp='$CXXCPP $CPPFLAGS'
20049ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20050ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20051ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20052
20053 cat >conftest.$ac_ext <<_ACEOF
20054#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020055/* confdefs.h. */
20056_ACEOF
20057cat confdefs.h >>conftest.$ac_ext
20058cat >>conftest.$ac_ext <<_ACEOF
20059/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020060#include <ext/hash_map>
20061#ifdef HAVE_NAMESPACES
20062using namespace std;
20063#endif
John Criswell7a73b802003-06-30 21:59:07 +000020064int
20065main ()
20066{
Brian Gaeke90583492003-11-10 03:06:28 +000020067hash_map<int, int> t;
John Criswell7a73b802003-06-30 21:59:07 +000020068 ;
20069 return 0;
20070}
20071_ACEOF
20072rm -f conftest.$ac_objext
20073if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20074 (eval $ac_compile) 2>&5
20075 ac_status=$?
20076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20077 (exit $ac_status); } &&
20078 { ac_try='test -s conftest.$ac_objext'
20079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20080 (eval $ac_try) 2>&5
20081 ac_status=$?
20082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20083 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000020084 ac_cv_cxx_have_std_ext_hash_map=yes
John Criswell7a73b802003-06-30 21:59:07 +000020085else
20086 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020087sed 's/^/| /' conftest.$ac_ext >&5
20088
Brian Gaeke90583492003-11-10 03:06:28 +000020089ac_cv_cxx_have_std_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000020090fi
20091rm -f conftest.$ac_objext conftest.$ac_ext
20092 ac_ext=c
20093ac_cpp='$CPP $CPPFLAGS'
20094ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20095ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20096ac_compiler_gnu=$ac_cv_c_compiler_gnu
20097
John Criswell7a73b802003-06-30 21:59:07 +000020098fi
Brian Gaeke90583492003-11-10 03:06:28 +000020099echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
20100echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000020101 HAVE_STD_EXT_HASH_MAP=0
20102 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
20103 then
20104 HAVE_STD_EXT_HASH_MAP=1
Brian Gaeke90583492003-11-10 03:06:28 +000020105 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000020106
Brian Gaeke90583492003-11-10 03:06:28 +000020107 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
20108echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
20109if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
20110 echo $ECHO_N "(cached) $ECHO_C" >&6
20111else
20112
20113
20114
20115 ac_ext=cc
20116ac_cpp='$CXXCPP $CPPFLAGS'
20117ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20118ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20119ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20120
20121 cat >conftest.$ac_ext <<_ACEOF
20122#line $LINENO "configure"
20123/* confdefs.h. */
20124_ACEOF
20125cat confdefs.h >>conftest.$ac_ext
20126cat >>conftest.$ac_ext <<_ACEOF
20127/* end confdefs.h. */
20128#include <ext/hash_map>
20129#ifdef HAVE_NAMESPACES
20130using namespace __gnu_cxx;
20131#endif
20132int
20133main ()
20134{
20135hash_map<int,int> t;
20136 ;
20137 return 0;
20138}
20139_ACEOF
20140rm -f conftest.$ac_objext
20141if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20142 (eval $ac_compile) 2>&5
20143 ac_status=$?
20144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20145 (exit $ac_status); } &&
20146 { ac_try='test -s conftest.$ac_objext'
20147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20148 (eval $ac_try) 2>&5
20149 ac_status=$?
20150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20151 (exit $ac_status); }; }; then
20152 ac_cv_cxx_have_gnu_ext_hash_map=yes
20153else
20154 echo "$as_me: failed program was:" >&5
20155sed 's/^/| /' conftest.$ac_ext >&5
20156
20157ac_cv_cxx_have_gnu_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000020158fi
Brian Gaeke90583492003-11-10 03:06:28 +000020159rm -f conftest.$ac_objext conftest.$ac_ext
20160 ac_ext=c
20161ac_cpp='$CPP $CPPFLAGS'
20162ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20163ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20164ac_compiler_gnu=$ac_cv_c_compiler_gnu
20165
20166fi
20167echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
20168echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000020169 HAVE_GNU_EXT_HASH_MAP=0
20170 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
20171 then
20172 HAVE_GNU_EXT_HASH_MAP=1
Brian Gaeke90583492003-11-10 03:06:28 +000020173 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000020174
Brian Gaeke90583492003-11-10 03:06:28 +000020175 echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
20176echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
20177if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
20178 echo $ECHO_N "(cached) $ECHO_C" >&6
20179else
John Criswell7a73b802003-06-30 21:59:07 +000020180
Brian Gaeke90583492003-11-10 03:06:28 +000020181
20182
20183 ac_ext=cc
20184ac_cpp='$CXXCPP $CPPFLAGS'
20185ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20186ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20187ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20188
20189 cat >conftest.$ac_ext <<_ACEOF
20190#line $LINENO "configure"
20191/* confdefs.h. */
20192_ACEOF
20193cat confdefs.h >>conftest.$ac_ext
20194cat >>conftest.$ac_ext <<_ACEOF
20195/* end confdefs.h. */
20196#include <hash_map>
20197int
20198main ()
20199{
20200hash_map<int,int> t;
20201 ;
20202 return 0;
20203}
20204_ACEOF
20205rm -f conftest.$ac_objext
20206if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20207 (eval $ac_compile) 2>&5
20208 ac_status=$?
20209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20210 (exit $ac_status); } &&
20211 { ac_try='test -s conftest.$ac_objext'
20212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20213 (eval $ac_try) 2>&5
20214 ac_status=$?
20215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20216 (exit $ac_status); }; }; then
20217 ac_cv_cxx_have_global_hash_map=yes
20218else
20219 echo "$as_me: failed program was:" >&5
20220sed 's/^/| /' conftest.$ac_ext >&5
20221
20222ac_cv_cxx_have_global_hash_map=no
20223fi
20224rm -f conftest.$ac_objext conftest.$ac_ext
20225 ac_ext=c
20226ac_cpp='$CPP $CPPFLAGS'
20227ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20228ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20229ac_compiler_gnu=$ac_cv_c_compiler_gnu
20230
20231fi
20232echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
20233echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000020234 HAVE_GLOBAL_HASH_MAP=0
20235 if test "$ac_cv_cxx_have_global_hash_map" = yes
20236 then
20237 HAVE_GLOBAL_HASH_MAP=1
Brian Gaeke90583492003-11-10 03:06:28 +000020238 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000020239
Brian Gaeke90583492003-11-10 03:06:28 +000020240echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
20241echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
20242if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000020243 echo $ECHO_N "(cached) $ECHO_C" >&6
20244else
20245
20246
20247
20248 ac_ext=cc
20249ac_cpp='$CXXCPP $CPPFLAGS'
20250ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20251ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20252ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20253
20254 cat >conftest.$ac_ext <<_ACEOF
20255#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020256/* confdefs.h. */
20257_ACEOF
20258cat confdefs.h >>conftest.$ac_ext
20259cat >>conftest.$ac_ext <<_ACEOF
20260/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020261#include <ext/hash_set>
20262#ifdef HAVE_NAMESPACES
20263using namespace std;
20264#endif
John Criswell7a73b802003-06-30 21:59:07 +000020265int
20266main ()
20267{
Brian Gaeke90583492003-11-10 03:06:28 +000020268hash_set<int> t;
John Criswell7a73b802003-06-30 21:59:07 +000020269 ;
20270 return 0;
20271}
20272_ACEOF
20273rm -f conftest.$ac_objext
20274if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20275 (eval $ac_compile) 2>&5
20276 ac_status=$?
20277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20278 (exit $ac_status); } &&
20279 { ac_try='test -s conftest.$ac_objext'
20280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20281 (eval $ac_try) 2>&5
20282 ac_status=$?
20283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20284 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000020285 ac_cv_cxx_have_std_ext_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000020286else
20287 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020288sed 's/^/| /' conftest.$ac_ext >&5
20289
Brian Gaeke90583492003-11-10 03:06:28 +000020290ac_cv_cxx_have_std_ext_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000020291fi
20292rm -f conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000020293 ac_ext=c
20294ac_cpp='$CPP $CPPFLAGS'
20295ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20296ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20297ac_compiler_gnu=$ac_cv_c_compiler_gnu
20298
20299fi
20300echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
20301echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000020302 HAVE_STD_EXT_HASH_SET=0
20303 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
20304 then
20305 HAVE_STD_EXT_HASH_SET=1
Brian Gaeke90583492003-11-10 03:06:28 +000020306 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000020307
Brian Gaeke90583492003-11-10 03:06:28 +000020308 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
20309echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
20310if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
20311 echo $ECHO_N "(cached) $ECHO_C" >&6
20312else
20313
20314
20315
20316 ac_ext=cc
20317ac_cpp='$CXXCPP $CPPFLAGS'
20318ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20319ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20320ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20321
John Criswell7a73b802003-06-30 21:59:07 +000020322 cat >conftest.$ac_ext <<_ACEOF
20323#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020324/* confdefs.h. */
20325_ACEOF
20326cat confdefs.h >>conftest.$ac_ext
20327cat >>conftest.$ac_ext <<_ACEOF
20328/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020329#include <ext/hash_set>
20330#ifdef HAVE_NAMESPACES
20331using namespace __gnu_cxx;
20332#endif
John Criswell7a73b802003-06-30 21:59:07 +000020333int
20334main ()
20335{
Brian Gaeke90583492003-11-10 03:06:28 +000020336hash_set<int> t;
20337 ;
20338 return 0;
20339}
20340_ACEOF
20341rm -f conftest.$ac_objext
20342if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20343 (eval $ac_compile) 2>&5
20344 ac_status=$?
20345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20346 (exit $ac_status); } &&
20347 { ac_try='test -s conftest.$ac_objext'
20348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20349 (eval $ac_try) 2>&5
20350 ac_status=$?
20351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20352 (exit $ac_status); }; }; then
20353 ac_cv_cxx_have_gnu_ext_hash_set=yes
20354else
20355 echo "$as_me: failed program was:" >&5
20356sed 's/^/| /' conftest.$ac_ext >&5
20357
20358ac_cv_cxx_have_gnu_ext_hash_set=no
20359fi
20360rm -f conftest.$ac_objext conftest.$ac_ext
20361 ac_ext=c
20362ac_cpp='$CPP $CPPFLAGS'
20363ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20364ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20365ac_compiler_gnu=$ac_cv_c_compiler_gnu
20366
20367fi
20368echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
20369echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000020370 HAVE_GNU_EXT_HASH_SET=0
20371 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
20372 then
20373 HAVE_GNU_EXT_HASH_SET=1
Brian Gaeke90583492003-11-10 03:06:28 +000020374 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000020375
Brian Gaeke90583492003-11-10 03:06:28 +000020376 echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
20377echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
20378if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
20379 echo $ECHO_N "(cached) $ECHO_C" >&6
20380else
20381
20382
20383
20384 ac_ext=cc
20385ac_cpp='$CXXCPP $CPPFLAGS'
20386ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20387ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20388ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20389
20390 cat >conftest.$ac_ext <<_ACEOF
20391#line $LINENO "configure"
20392/* confdefs.h. */
20393_ACEOF
20394cat confdefs.h >>conftest.$ac_ext
20395cat >>conftest.$ac_ext <<_ACEOF
20396/* end confdefs.h. */
20397#include <hash_set>
20398int
20399main ()
20400{
John Criswell7a73b802003-06-30 21:59:07 +000020401hash_set<int> t; return 0;
20402 ;
20403 return 0;
20404}
20405_ACEOF
20406rm -f conftest.$ac_objext
20407if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20408 (eval $ac_compile) 2>&5
20409 ac_status=$?
20410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20411 (exit $ac_status); } &&
20412 { ac_try='test -s conftest.$ac_objext'
20413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20414 (eval $ac_try) 2>&5
20415 ac_status=$?
20416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20417 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000020418 ac_cv_cxx_have_global_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000020419else
20420 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020421sed 's/^/| /' conftest.$ac_ext >&5
20422
Brian Gaeke90583492003-11-10 03:06:28 +000020423ac_cv_cxx_have_global_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000020424fi
20425rm -f conftest.$ac_objext conftest.$ac_ext
20426 ac_ext=c
20427ac_cpp='$CPP $CPPFLAGS'
20428ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20429ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20430ac_compiler_gnu=$ac_cv_c_compiler_gnu
20431
John Criswell7a73b802003-06-30 21:59:07 +000020432fi
Brian Gaeke90583492003-11-10 03:06:28 +000020433echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
20434echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000020435 HAVE_GLOBAL_HASH_SET=0
20436 if test "$ac_cv_cxx_have_global_hash_set" = yes
20437 then
20438 HAVE_GLOBAL_HASH_SET=1
Brian Gaeke90583492003-11-10 03:06:28 +000020439 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000020440
John Criswell7a73b802003-06-30 21:59:07 +000020441echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
20442echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
20443if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
20444 echo $ECHO_N "(cached) $ECHO_C" >&6
20445else
20446
20447
20448
20449 ac_ext=cc
20450ac_cpp='$CXXCPP $CPPFLAGS'
20451ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20452ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20453ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20454
20455 cat >conftest.$ac_ext <<_ACEOF
20456#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020457/* confdefs.h. */
20458_ACEOF
20459cat confdefs.h >>conftest.$ac_ext
20460cat >>conftest.$ac_ext <<_ACEOF
20461/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020462#include <iterator>
20463#ifdef HAVE_NAMESPACES
20464using namespace std;
20465#endif
John Criswell7a73b802003-06-30 21:59:07 +000020466int
20467main ()
20468{
20469iterator<int,int,int> t; return 0;
20470 ;
20471 return 0;
20472}
20473_ACEOF
20474rm -f conftest.$ac_objext
20475if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20476 (eval $ac_compile) 2>&5
20477 ac_status=$?
20478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20479 (exit $ac_status); } &&
20480 { ac_try='test -s conftest.$ac_objext'
20481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20482 (eval $ac_try) 2>&5
20483 ac_status=$?
20484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20485 (exit $ac_status); }; }; then
20486 ac_cv_cxx_have_std_iterator=yes
20487else
20488 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020489sed 's/^/| /' conftest.$ac_ext >&5
20490
John Criswell7a73b802003-06-30 21:59:07 +000020491ac_cv_cxx_have_std_iterator=no
20492fi
20493rm -f conftest.$ac_objext conftest.$ac_ext
20494 ac_ext=c
20495ac_cpp='$CPP $CPPFLAGS'
20496ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20497ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20498ac_compiler_gnu=$ac_cv_c_compiler_gnu
20499
20500
20501fi
20502echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
20503echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
Brian Gaeke295d4b82004-02-23 18:16:06 +000020504HAVE_STD_ITERATOR=0
20505if test "$ac_cv_cxx_have_std_iterator" = yes
20506then
20507 HAVE_STD_ITERATOR=1
John Criswell7a73b802003-06-30 21:59:07 +000020508fi
20509
20510echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
20511echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
20512if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
20513 echo $ECHO_N "(cached) $ECHO_C" >&6
20514else
20515
20516
20517
20518 ac_ext=cc
20519ac_cpp='$CXXCPP $CPPFLAGS'
20520ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20521ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20522ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20523
20524 cat >conftest.$ac_ext <<_ACEOF
20525#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020526/* confdefs.h. */
20527_ACEOF
20528cat confdefs.h >>conftest.$ac_ext
20529cat >>conftest.$ac_ext <<_ACEOF
20530/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020531#include <iterator>
20532#ifdef HAVE_NAMESPACES
20533using namespace std;
20534#endif
John Criswell7a73b802003-06-30 21:59:07 +000020535int
20536main ()
20537{
John Criswellc78022e2003-07-29 19:11:58 +000020538bidirectional_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000020539 ;
20540 return 0;
20541}
20542_ACEOF
20543rm -f conftest.$ac_objext
20544if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20545 (eval $ac_compile) 2>&5
20546 ac_status=$?
20547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20548 (exit $ac_status); } &&
20549 { ac_try='test -s conftest.$ac_objext'
20550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20551 (eval $ac_try) 2>&5
20552 ac_status=$?
20553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20554 (exit $ac_status); }; }; then
20555 ac_cv_cxx_have_bi_iterator=yes
20556else
20557 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020558sed 's/^/| /' conftest.$ac_ext >&5
20559
John Criswell7a73b802003-06-30 21:59:07 +000020560ac_cv_cxx_have_bi_iterator=no
20561fi
20562rm -f conftest.$ac_objext conftest.$ac_ext
20563 ac_ext=c
20564ac_cpp='$CPP $CPPFLAGS'
20565ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20566ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20567ac_compiler_gnu=$ac_cv_c_compiler_gnu
20568
20569
20570fi
20571echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
20572echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
Brian Gaeke295d4b82004-02-23 18:16:06 +000020573HAVE_BI_ITERATOR=0
20574if test "$ac_cv_cxx_have_bi_iterator" = yes
20575then
20576 HAVE_BI_ITERATOR=1
John Criswell7a73b802003-06-30 21:59:07 +000020577fi
20578
20579echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
20580echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
20581if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
20582 echo $ECHO_N "(cached) $ECHO_C" >&6
20583else
20584
20585
20586
20587 ac_ext=cc
20588ac_cpp='$CXXCPP $CPPFLAGS'
20589ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20590ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20591ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20592
20593 cat >conftest.$ac_ext <<_ACEOF
20594#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020595/* confdefs.h. */
20596_ACEOF
20597cat confdefs.h >>conftest.$ac_ext
20598cat >>conftest.$ac_ext <<_ACEOF
20599/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020600#include <iterator>
20601#ifdef HAVE_NAMESPACES
20602using namespace std;
20603#endif
John Criswell7a73b802003-06-30 21:59:07 +000020604int
20605main ()
20606{
John Criswellc78022e2003-07-29 19:11:58 +000020607forward_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000020608 ;
20609 return 0;
20610}
20611_ACEOF
20612rm -f conftest.$ac_objext
20613if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20614 (eval $ac_compile) 2>&5
20615 ac_status=$?
20616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20617 (exit $ac_status); } &&
20618 { ac_try='test -s conftest.$ac_objext'
20619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20620 (eval $ac_try) 2>&5
20621 ac_status=$?
20622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20623 (exit $ac_status); }; }; then
20624 ac_cv_cxx_have_fwd_iterator=yes
20625else
20626 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020627sed 's/^/| /' conftest.$ac_ext >&5
20628
John Criswell7a73b802003-06-30 21:59:07 +000020629ac_cv_cxx_have_fwd_iterator=no
20630fi
20631rm -f conftest.$ac_objext conftest.$ac_ext
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
20639fi
20640echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
20641echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
Brian Gaeke295d4b82004-02-23 18:16:06 +000020642HAVE_FWD_ITERATOR=0
20643if test "$ac_cv_cxx_have_fwd_iterator" = yes
20644then
20645 HAVE_FWD_ITERATOR=1
John Criswell7a73b802003-06-30 21:59:07 +000020646fi
20647
20648
20649# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
20650# for constant arguments. Useless!
20651echo "$as_me:$LINENO: checking for working alloca.h" >&5
20652echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
20653if test "${ac_cv_working_alloca_h+set}" = set; then
20654 echo $ECHO_N "(cached) $ECHO_C" >&6
20655else
20656 cat >conftest.$ac_ext <<_ACEOF
20657#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020658/* confdefs.h. */
20659_ACEOF
20660cat confdefs.h >>conftest.$ac_ext
20661cat >>conftest.$ac_ext <<_ACEOF
20662/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020663#include <alloca.h>
John Criswell7a73b802003-06-30 21:59:07 +000020664int
20665main ()
20666{
20667char *p = (char *) alloca (2 * sizeof (int));
20668 ;
20669 return 0;
20670}
20671_ACEOF
20672rm -f conftest.$ac_objext 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); } &&
20678 { ac_try='test -s conftest$ac_exeext'
20679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20680 (eval $ac_try) 2>&5
20681 ac_status=$?
20682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20683 (exit $ac_status); }; }; then
20684 ac_cv_working_alloca_h=yes
20685else
20686 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020687sed 's/^/| /' conftest.$ac_ext >&5
20688
John Criswell7a73b802003-06-30 21:59:07 +000020689ac_cv_working_alloca_h=no
20690fi
20691rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20692fi
20693echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
20694echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
20695if test $ac_cv_working_alloca_h = yes; then
20696
20697cat >>confdefs.h <<\_ACEOF
20698#define HAVE_ALLOCA_H 1
20699_ACEOF
20700
20701fi
20702
20703echo "$as_me:$LINENO: checking for alloca" >&5
20704echo $ECHO_N "checking for alloca... $ECHO_C" >&6
20705if test "${ac_cv_func_alloca_works+set}" = set; then
20706 echo $ECHO_N "(cached) $ECHO_C" >&6
20707else
20708 cat >conftest.$ac_ext <<_ACEOF
20709#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020710/* confdefs.h. */
20711_ACEOF
20712cat confdefs.h >>conftest.$ac_ext
20713cat >>conftest.$ac_ext <<_ACEOF
20714/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020715#ifdef __GNUC__
20716# define alloca __builtin_alloca
20717#else
20718# ifdef _MSC_VER
20719# include <malloc.h>
20720# define alloca _alloca
20721# else
20722# if HAVE_ALLOCA_H
20723# include <alloca.h>
20724# else
20725# ifdef _AIX
20726 #pragma alloca
20727# else
20728# ifndef alloca /* predefined by HP cc +Olibcalls */
20729char *alloca ();
20730# endif
20731# endif
20732# endif
20733# endif
20734#endif
20735
John Criswell7a73b802003-06-30 21:59:07 +000020736int
20737main ()
20738{
20739char *p = (char *) alloca (1);
20740 ;
20741 return 0;
20742}
20743_ACEOF
20744rm -f conftest.$ac_objext conftest$ac_exeext
20745if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20746 (eval $ac_link) 2>&5
20747 ac_status=$?
20748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20749 (exit $ac_status); } &&
20750 { ac_try='test -s conftest$ac_exeext'
20751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20752 (eval $ac_try) 2>&5
20753 ac_status=$?
20754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20755 (exit $ac_status); }; }; then
20756 ac_cv_func_alloca_works=yes
20757else
20758 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020759sed 's/^/| /' conftest.$ac_ext >&5
20760
John Criswell7a73b802003-06-30 21:59:07 +000020761ac_cv_func_alloca_works=no
20762fi
20763rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20764fi
20765echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
20766echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
20767
20768if test $ac_cv_func_alloca_works = yes; then
20769
20770cat >>confdefs.h <<\_ACEOF
20771#define HAVE_ALLOCA 1
20772_ACEOF
20773
20774else
20775 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
20776# that cause trouble. Some versions do not even contain alloca or
20777# contain a buggy version. If you still want to use their alloca,
20778# use ar to extract alloca.o from them instead of compiling alloca.c.
20779
20780ALLOCA=alloca.$ac_objext
20781
20782cat >>confdefs.h <<\_ACEOF
20783#define C_ALLOCA 1
20784_ACEOF
20785
20786
20787echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
20788echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
20789if test "${ac_cv_os_cray+set}" = set; then
20790 echo $ECHO_N "(cached) $ECHO_C" >&6
20791else
20792 cat >conftest.$ac_ext <<_ACEOF
20793#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020794/* confdefs.h. */
20795_ACEOF
20796cat confdefs.h >>conftest.$ac_ext
20797cat >>conftest.$ac_ext <<_ACEOF
20798/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020799#if defined(CRAY) && ! defined(CRAY2)
20800webecray
20801#else
20802wenotbecray
20803#endif
20804
20805_ACEOF
20806if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000020807 $EGREP "webecray" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000020808 ac_cv_os_cray=yes
20809else
20810 ac_cv_os_cray=no
20811fi
20812rm -f conftest*
20813
20814fi
20815echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
20816echo "${ECHO_T}$ac_cv_os_cray" >&6
20817if test $ac_cv_os_cray = yes; then
20818 for ac_func in _getb67 GETB67 getb67; do
20819 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20820echo "$as_me:$LINENO: checking for $ac_func" >&5
20821echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20822if eval "test \"\${$as_ac_var+set}\" = set"; then
20823 echo $ECHO_N "(cached) $ECHO_C" >&6
20824else
20825 cat >conftest.$ac_ext <<_ACEOF
20826#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020827/* confdefs.h. */
20828_ACEOF
20829cat confdefs.h >>conftest.$ac_ext
20830cat >>conftest.$ac_ext <<_ACEOF
20831/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020832/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000020833 which can conflict with char $ac_func (); below.
20834 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20835 <limits.h> exists even on freestanding compilers. */
20836#ifdef __STDC__
20837# include <limits.h>
20838#else
20839# include <assert.h>
20840#endif
John Criswell7a73b802003-06-30 21:59:07 +000020841/* Override any gcc2 internal prototype to avoid an error. */
20842#ifdef __cplusplus
20843extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000020844{
John Criswell7a73b802003-06-30 21:59:07 +000020845#endif
20846/* We use char because int might match the return type of a gcc2
20847 builtin and then its argument prototype would still apply. */
20848char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000020849/* The GNU C library defines this for functions which it implements
20850 to always fail with ENOSYS. Some functions are actually named
20851 something starting with __ and the normal name is an alias. */
20852#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20853choke me
20854#else
John Criswell0c38eaf2003-09-10 15:17:25 +000020855char (*f) () = $ac_func;
20856#endif
20857#ifdef __cplusplus
20858}
John Criswell7a73b802003-06-30 21:59:07 +000020859#endif
20860
John Criswell0c38eaf2003-09-10 15:17:25 +000020861int
20862main ()
20863{
20864return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000020865 ;
20866 return 0;
20867}
20868_ACEOF
20869rm -f conftest.$ac_objext conftest$ac_exeext
20870if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20871 (eval $ac_link) 2>&5
20872 ac_status=$?
20873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20874 (exit $ac_status); } &&
20875 { ac_try='test -s conftest$ac_exeext'
20876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20877 (eval $ac_try) 2>&5
20878 ac_status=$?
20879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20880 (exit $ac_status); }; }; then
20881 eval "$as_ac_var=yes"
20882else
20883 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020884sed 's/^/| /' conftest.$ac_ext >&5
20885
John Criswell7a73b802003-06-30 21:59:07 +000020886eval "$as_ac_var=no"
20887fi
20888rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20889fi
20890echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20891echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20892if test `eval echo '${'$as_ac_var'}'` = yes; then
20893
20894cat >>confdefs.h <<_ACEOF
20895#define CRAY_STACKSEG_END $ac_func
20896_ACEOF
20897
20898 break
20899fi
20900
20901 done
20902fi
20903
20904echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
20905echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
20906if test "${ac_cv_c_stack_direction+set}" = set; then
20907 echo $ECHO_N "(cached) $ECHO_C" >&6
20908else
20909 if test "$cross_compiling" = yes; then
20910 ac_cv_c_stack_direction=0
20911else
20912 cat >conftest.$ac_ext <<_ACEOF
20913#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020914/* confdefs.h. */
20915_ACEOF
20916cat confdefs.h >>conftest.$ac_ext
20917cat >>conftest.$ac_ext <<_ACEOF
20918/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020919int
20920find_stack_direction ()
20921{
20922 static char *addr = 0;
20923 auto char dummy;
20924 if (addr == 0)
20925 {
20926 addr = &dummy;
20927 return find_stack_direction ();
20928 }
20929 else
20930 return (&dummy > addr) ? 1 : -1;
20931}
20932
20933int
20934main ()
20935{
20936 exit (find_stack_direction () < 0);
20937}
20938_ACEOF
20939rm -f conftest$ac_exeext
20940if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20941 (eval $ac_link) 2>&5
20942 ac_status=$?
20943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20944 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20946 (eval $ac_try) 2>&5
20947 ac_status=$?
20948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20949 (exit $ac_status); }; }; then
20950 ac_cv_c_stack_direction=1
20951else
20952 echo "$as_me: program exited with status $ac_status" >&5
20953echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020954sed 's/^/| /' conftest.$ac_ext >&5
20955
John Criswell7a73b802003-06-30 21:59:07 +000020956( exit $ac_status )
20957ac_cv_c_stack_direction=-1
20958fi
John Criswell0c38eaf2003-09-10 15:17:25 +000020959rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000020960fi
20961fi
20962echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
20963echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
20964
20965cat >>confdefs.h <<_ACEOF
20966#define STACK_DIRECTION $ac_cv_c_stack_direction
20967_ACEOF
20968
20969
20970fi
20971
John Criswell7a73b802003-06-30 21:59:07 +000020972
20973
20974for ac_header in stdlib.h unistd.h
20975do
20976as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20977if eval "test \"\${$as_ac_Header+set}\" = set"; then
20978 echo "$as_me:$LINENO: checking for $ac_header" >&5
20979echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20980if eval "test \"\${$as_ac_Header+set}\" = set"; then
20981 echo $ECHO_N "(cached) $ECHO_C" >&6
20982fi
20983echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20984echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20985else
20986 # Is the header compilable?
20987echo "$as_me:$LINENO: checking $ac_header usability" >&5
20988echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20989cat >conftest.$ac_ext <<_ACEOF
20990#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020991/* confdefs.h. */
20992_ACEOF
20993cat confdefs.h >>conftest.$ac_ext
20994cat >>conftest.$ac_ext <<_ACEOF
20995/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020996$ac_includes_default
20997#include <$ac_header>
20998_ACEOF
20999rm -f conftest.$ac_objext
21000if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21001 (eval $ac_compile) 2>&5
21002 ac_status=$?
21003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21004 (exit $ac_status); } &&
21005 { ac_try='test -s conftest.$ac_objext'
21006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21007 (eval $ac_try) 2>&5
21008 ac_status=$?
21009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21010 (exit $ac_status); }; }; then
21011 ac_header_compiler=yes
21012else
21013 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021014sed 's/^/| /' conftest.$ac_ext >&5
21015
John Criswell7a73b802003-06-30 21:59:07 +000021016ac_header_compiler=no
21017fi
21018rm -f conftest.$ac_objext conftest.$ac_ext
21019echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21020echo "${ECHO_T}$ac_header_compiler" >&6
21021
21022# Is the header present?
21023echo "$as_me:$LINENO: checking $ac_header presence" >&5
21024echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21025cat >conftest.$ac_ext <<_ACEOF
21026#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021027/* confdefs.h. */
21028_ACEOF
21029cat confdefs.h >>conftest.$ac_ext
21030cat >>conftest.$ac_ext <<_ACEOF
21031/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021032#include <$ac_header>
21033_ACEOF
21034if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21035 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21036 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000021037 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000021038 rm -f conftest.er1
21039 cat conftest.err >&5
21040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21041 (exit $ac_status); } >/dev/null; then
21042 if test -s conftest.err; then
21043 ac_cpp_err=$ac_c_preproc_warn_flag
21044 else
21045 ac_cpp_err=
21046 fi
21047else
21048 ac_cpp_err=yes
21049fi
21050if test -z "$ac_cpp_err"; then
21051 ac_header_preproc=yes
21052else
21053 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021054sed 's/^/| /' conftest.$ac_ext >&5
21055
John Criswell7a73b802003-06-30 21:59:07 +000021056 ac_header_preproc=no
21057fi
21058rm -f conftest.err conftest.$ac_ext
21059echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21060echo "${ECHO_T}$ac_header_preproc" >&6
21061
21062# So? What about this header?
21063case $ac_header_compiler:$ac_header_preproc in
21064 yes:no )
21065 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21066echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21067 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021068echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21069 (
21070 cat <<\_ASBOX
21071## ------------------------------------ ##
21072## Report this to bug-autoconf@gnu.org. ##
21073## ------------------------------------ ##
21074_ASBOX
21075 ) |
21076 sed "s/^/$as_me: WARNING: /" >&2
21077 ;;
John Criswell7a73b802003-06-30 21:59:07 +000021078 no:yes )
21079 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21080echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21081 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21082echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21083 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021084echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21085 (
21086 cat <<\_ASBOX
21087## ------------------------------------ ##
21088## Report this to bug-autoconf@gnu.org. ##
21089## ------------------------------------ ##
21090_ASBOX
21091 ) |
21092 sed "s/^/$as_me: WARNING: /" >&2
21093 ;;
John Criswell7a73b802003-06-30 21:59:07 +000021094esac
21095echo "$as_me:$LINENO: checking for $ac_header" >&5
21096echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21097if eval "test \"\${$as_ac_Header+set}\" = set"; then
21098 echo $ECHO_N "(cached) $ECHO_C" >&6
21099else
21100 eval "$as_ac_Header=$ac_header_preproc"
21101fi
21102echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21103echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21104
21105fi
21106if test `eval echo '${'$as_ac_Header'}'` = yes; then
21107 cat >>confdefs.h <<_ACEOF
21108#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21109_ACEOF
21110
21111fi
21112
21113done
21114
21115
21116for ac_func in getpagesize
21117do
21118as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21119echo "$as_me:$LINENO: checking for $ac_func" >&5
21120echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21121if eval "test \"\${$as_ac_var+set}\" = set"; then
21122 echo $ECHO_N "(cached) $ECHO_C" >&6
21123else
21124 cat >conftest.$ac_ext <<_ACEOF
21125#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021126/* confdefs.h. */
21127_ACEOF
21128cat confdefs.h >>conftest.$ac_ext
21129cat >>conftest.$ac_ext <<_ACEOF
21130/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021131/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000021132 which can conflict with char $ac_func (); below.
21133 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21134 <limits.h> exists even on freestanding compilers. */
21135#ifdef __STDC__
21136# include <limits.h>
21137#else
21138# include <assert.h>
21139#endif
John Criswell7a73b802003-06-30 21:59:07 +000021140/* Override any gcc2 internal prototype to avoid an error. */
21141#ifdef __cplusplus
21142extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000021143{
John Criswell7a73b802003-06-30 21:59:07 +000021144#endif
21145/* We use char because int might match the return type of a gcc2
21146 builtin and then its argument prototype would still apply. */
21147char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000021148/* The GNU C library defines this for functions which it implements
21149 to always fail with ENOSYS. Some functions are actually named
21150 something starting with __ and the normal name is an alias. */
21151#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21152choke me
21153#else
John Criswell0c38eaf2003-09-10 15:17:25 +000021154char (*f) () = $ac_func;
21155#endif
21156#ifdef __cplusplus
21157}
John Criswell7a73b802003-06-30 21:59:07 +000021158#endif
21159
John Criswell0c38eaf2003-09-10 15:17:25 +000021160int
21161main ()
21162{
21163return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000021164 ;
21165 return 0;
21166}
21167_ACEOF
21168rm -f conftest.$ac_objext conftest$ac_exeext
21169if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21170 (eval $ac_link) 2>&5
21171 ac_status=$?
21172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21173 (exit $ac_status); } &&
21174 { ac_try='test -s conftest$ac_exeext'
21175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21176 (eval $ac_try) 2>&5
21177 ac_status=$?
21178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21179 (exit $ac_status); }; }; then
21180 eval "$as_ac_var=yes"
21181else
21182 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021183sed 's/^/| /' conftest.$ac_ext >&5
21184
John Criswell7a73b802003-06-30 21:59:07 +000021185eval "$as_ac_var=no"
21186fi
21187rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21188fi
21189echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21190echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21191if test `eval echo '${'$as_ac_var'}'` = yes; then
21192 cat >>confdefs.h <<_ACEOF
21193#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21194_ACEOF
21195
21196fi
21197done
21198
21199echo "$as_me:$LINENO: checking for working mmap" >&5
21200echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
21201if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
21202 echo $ECHO_N "(cached) $ECHO_C" >&6
21203else
21204 if test "$cross_compiling" = yes; then
21205 ac_cv_func_mmap_fixed_mapped=no
21206else
21207 cat >conftest.$ac_ext <<_ACEOF
21208#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021209/* confdefs.h. */
21210_ACEOF
21211cat confdefs.h >>conftest.$ac_ext
21212cat >>conftest.$ac_ext <<_ACEOF
21213/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021214$ac_includes_default
21215/* malloc might have been renamed as rpl_malloc. */
21216#undef malloc
21217
21218/* Thanks to Mike Haertel and Jim Avera for this test.
21219 Here is a matrix of mmap possibilities:
21220 mmap private not fixed
21221 mmap private fixed at somewhere currently unmapped
21222 mmap private fixed at somewhere already mapped
21223 mmap shared not fixed
21224 mmap shared fixed at somewhere currently unmapped
21225 mmap shared fixed at somewhere already mapped
21226 For private mappings, we should verify that changes cannot be read()
21227 back from the file, nor mmap's back from the file at a different
21228 address. (There have been systems where private was not correctly
21229 implemented like the infamous i386 svr4.0, and systems where the
21230 VM page cache was not coherent with the file system buffer cache
21231 like early versions of FreeBSD and possibly contemporary NetBSD.)
21232 For shared mappings, we should conversely verify that changes get
21233 propagated back to all the places they're supposed to be.
21234
21235 Grep wants private fixed already mapped.
21236 The main things grep needs to know about mmap are:
21237 * does it exist and is it safe to write into the mmap'd area
21238 * how to use it (BSD variants) */
21239
21240#include <fcntl.h>
21241#include <sys/mman.h>
21242
21243#if !STDC_HEADERS && !HAVE_STDLIB_H
21244char *malloc ();
21245#endif
21246
21247/* This mess was copied from the GNU getpagesize.h. */
21248#if !HAVE_GETPAGESIZE
21249/* Assume that all systems that can run configure have sys/param.h. */
21250# if !HAVE_SYS_PARAM_H
21251# define HAVE_SYS_PARAM_H 1
21252# endif
21253
21254# ifdef _SC_PAGESIZE
21255# define getpagesize() sysconf(_SC_PAGESIZE)
21256# else /* no _SC_PAGESIZE */
21257# if HAVE_SYS_PARAM_H
21258# include <sys/param.h>
21259# ifdef EXEC_PAGESIZE
21260# define getpagesize() EXEC_PAGESIZE
21261# else /* no EXEC_PAGESIZE */
21262# ifdef NBPG
21263# define getpagesize() NBPG * CLSIZE
21264# ifndef CLSIZE
21265# define CLSIZE 1
21266# endif /* no CLSIZE */
21267# else /* no NBPG */
21268# ifdef NBPC
21269# define getpagesize() NBPC
21270# else /* no NBPC */
21271# ifdef PAGESIZE
21272# define getpagesize() PAGESIZE
21273# endif /* PAGESIZE */
21274# endif /* no NBPC */
21275# endif /* no NBPG */
21276# endif /* no EXEC_PAGESIZE */
21277# else /* no HAVE_SYS_PARAM_H */
21278# define getpagesize() 8192 /* punt totally */
21279# endif /* no HAVE_SYS_PARAM_H */
21280# endif /* no _SC_PAGESIZE */
21281
21282#endif /* no HAVE_GETPAGESIZE */
21283
21284int
21285main ()
21286{
21287 char *data, *data2, *data3;
21288 int i, pagesize;
21289 int fd;
21290
21291 pagesize = getpagesize ();
21292
21293 /* First, make a file with some known garbage in it. */
21294 data = (char *) malloc (pagesize);
21295 if (!data)
21296 exit (1);
21297 for (i = 0; i < pagesize; ++i)
21298 *(data + i) = rand ();
21299 umask (0);
21300 fd = creat ("conftest.mmap", 0600);
21301 if (fd < 0)
21302 exit (1);
21303 if (write (fd, data, pagesize) != pagesize)
21304 exit (1);
21305 close (fd);
21306
21307 /* Next, try to mmap the file at a fixed address which already has
21308 something else allocated at it. If we can, also make sure that
21309 we see the same garbage. */
21310 fd = open ("conftest.mmap", O_RDWR);
21311 if (fd < 0)
21312 exit (1);
21313 data2 = (char *) malloc (2 * pagesize);
21314 if (!data2)
21315 exit (1);
21316 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
21317 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
21318 MAP_PRIVATE | MAP_FIXED, fd, 0L))
21319 exit (1);
21320 for (i = 0; i < pagesize; ++i)
21321 if (*(data + i) != *(data2 + i))
21322 exit (1);
21323
21324 /* Finally, make sure that changes to the mapped area do not
21325 percolate back to the file as seen by read(). (This is a bug on
21326 some variants of i386 svr4.0.) */
21327 for (i = 0; i < pagesize; ++i)
21328 *(data2 + i) = *(data2 + i) + 1;
21329 data3 = (char *) malloc (pagesize);
21330 if (!data3)
21331 exit (1);
21332 if (read (fd, data3, pagesize) != pagesize)
21333 exit (1);
21334 for (i = 0; i < pagesize; ++i)
21335 if (*(data + i) != *(data3 + i))
21336 exit (1);
21337 close (fd);
21338 exit (0);
21339}
21340_ACEOF
21341rm -f conftest$ac_exeext
21342if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21343 (eval $ac_link) 2>&5
21344 ac_status=$?
21345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21346 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21348 (eval $ac_try) 2>&5
21349 ac_status=$?
21350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21351 (exit $ac_status); }; }; then
21352 ac_cv_func_mmap_fixed_mapped=yes
21353else
21354 echo "$as_me: program exited with status $ac_status" >&5
21355echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021356sed 's/^/| /' conftest.$ac_ext >&5
21357
John Criswell7a73b802003-06-30 21:59:07 +000021358( exit $ac_status )
21359ac_cv_func_mmap_fixed_mapped=no
21360fi
John Criswell0c38eaf2003-09-10 15:17:25 +000021361rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021362fi
21363fi
21364echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
21365echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
21366if test $ac_cv_func_mmap_fixed_mapped = yes; then
21367
21368cat >>confdefs.h <<\_ACEOF
21369#define HAVE_MMAP 1
21370_ACEOF
21371
21372fi
21373rm -f conftest.mmap
21374
Brian Gaeke26be9c52004-01-13 06:43:16 +000021375if test "$ac_cv_func_mmap_fixed_mapped" = "no"
21376then
John Criswellf3ecf3a2004-05-27 00:57:50 +000021377 { echo "$as_me:$LINENO: WARNING: mmap() required but not found" >&5
21378echo "$as_me: WARNING: mmap() required but not found" >&2;}
Brian Gaeke26be9c52004-01-13 06:43:16 +000021379fi
John Criswell7a73b802003-06-30 21:59:07 +000021380echo "$as_me:$LINENO: checking for mmap of files" >&5
21381echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
21382if test "${ac_cv_func_mmap_file+set}" = set; then
21383 echo $ECHO_N "(cached) $ECHO_C" >&6
21384else
21385
21386
21387 ac_ext=c
21388ac_cpp='$CPP $CPPFLAGS'
21389ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21390ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21391ac_compiler_gnu=$ac_cv_c_compiler_gnu
21392
21393 if test "$cross_compiling" = yes; then
John Criswell0c38eaf2003-09-10 15:17:25 +000021394 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
21395See \`config.log' for more details." >&5
21396echo "$as_me: error: cannot run test program while cross compiling
21397See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000021398 { (exit 1); exit 1; }; }
21399else
21400 cat >conftest.$ac_ext <<_ACEOF
21401#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021402/* confdefs.h. */
21403_ACEOF
21404cat confdefs.h >>conftest.$ac_ext
21405cat >>conftest.$ac_ext <<_ACEOF
21406/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021407
John Criswell7a73b802003-06-30 21:59:07 +000021408#ifdef HAVE_SYS_TYPES_H
21409#include <sys/types.h>
21410#endif
21411
John Criswell5ab73462003-10-09 15:44:28 +000021412#ifdef HAVE_SYS_MMAN_H
21413#include <sys/mman.h>
21414#endif
21415
John Criswell7a73b802003-06-30 21:59:07 +000021416#ifdef HAVE_FCNTL_H
21417#include <fcntl.h>
21418#endif
21419
21420 int fd;
21421 int main () {
John Criswell5ab73462003-10-09 15:44:28 +000021422 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 +000021423_ACEOF
21424rm -f conftest$ac_exeext
21425if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21426 (eval $ac_link) 2>&5
21427 ac_status=$?
21428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21429 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21431 (eval $ac_try) 2>&5
21432 ac_status=$?
21433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21434 (exit $ac_status); }; }; then
21435 ac_cv_func_mmap_file=yes
21436else
21437 echo "$as_me: program exited with status $ac_status" >&5
21438echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021439sed 's/^/| /' conftest.$ac_ext >&5
21440
John Criswell7a73b802003-06-30 21:59:07 +000021441( exit $ac_status )
21442ac_cv_func_mmap_file=no
21443fi
John Criswell0c38eaf2003-09-10 15:17:25 +000021444rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021445fi
21446 ac_ext=c
21447ac_cpp='$CPP $CPPFLAGS'
21448ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21449ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21450ac_compiler_gnu=$ac_cv_c_compiler_gnu
21451
21452
21453fi
21454echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
21455echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
21456if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000021457
21458cat >>confdefs.h <<\_ACEOF
21459#define HAVE_MMAP_FILE
John Criswell7a73b802003-06-30 21:59:07 +000021460_ACEOF
21461
21462 MMAP_FILE=yes
21463
21464fi
21465
Brian Gaeke26be9c52004-01-13 06:43:16 +000021466if test "$ac_cv_func_mmap_file" = "no"
John Criswell7a73b802003-06-30 21:59:07 +000021467then
John Criswellf3ecf3a2004-05-27 00:57:50 +000021468 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
21469echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000021470fi
21471echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
21472echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
21473if test "${ac_cv_header_mmap_anon+set}" = set; then
21474 echo $ECHO_N "(cached) $ECHO_C" >&6
21475else
21476
21477
21478 ac_ext=c
21479ac_cpp='$CPP $CPPFLAGS'
21480ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21481ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21482ac_compiler_gnu=$ac_cv_c_compiler_gnu
21483
21484 cat >conftest.$ac_ext <<_ACEOF
21485#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021486/* confdefs.h. */
21487_ACEOF
21488cat confdefs.h >>conftest.$ac_ext
21489cat >>conftest.$ac_ext <<_ACEOF
21490/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021491#include <sys/mman.h>
21492 #include <unistd.h>
21493 #include <fcntl.h>
John Criswell7a73b802003-06-30 21:59:07 +000021494int
21495main ()
21496{
21497mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
21498 ;
21499 return 0;
21500}
21501_ACEOF
21502rm -f conftest.$ac_objext
21503if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21504 (eval $ac_compile) 2>&5
21505 ac_status=$?
21506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21507 (exit $ac_status); } &&
21508 { ac_try='test -s conftest.$ac_objext'
21509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21510 (eval $ac_try) 2>&5
21511 ac_status=$?
21512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21513 (exit $ac_status); }; }; then
21514 ac_cv_header_mmap_anon=yes
21515else
21516 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021517sed 's/^/| /' conftest.$ac_ext >&5
21518
John Criswell7a73b802003-06-30 21:59:07 +000021519ac_cv_header_mmap_anon=no
21520fi
21521rm -f conftest.$ac_objext conftest.$ac_ext
21522 ac_ext=c
21523ac_cpp='$CPP $CPPFLAGS'
21524ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21525ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21526ac_compiler_gnu=$ac_cv_c_compiler_gnu
21527
21528
21529fi
21530echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
21531echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
21532if test "$ac_cv_header_mmap_anon" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000021533
21534cat >>confdefs.h <<\_ACEOF
21535#define HAVE_MMAP_ANONYMOUS
John Criswell7a73b802003-06-30 21:59:07 +000021536_ACEOF
21537
21538fi
21539
21540echo "$as_me:$LINENO: checking return type of signal handlers" >&5
21541echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
21542if test "${ac_cv_type_signal+set}" = set; then
21543 echo $ECHO_N "(cached) $ECHO_C" >&6
21544else
21545 cat >conftest.$ac_ext <<_ACEOF
21546#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021547/* confdefs.h. */
21548_ACEOF
21549cat confdefs.h >>conftest.$ac_ext
21550cat >>conftest.$ac_ext <<_ACEOF
21551/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021552#include <sys/types.h>
21553#include <signal.h>
21554#ifdef signal
21555# undef signal
21556#endif
21557#ifdef __cplusplus
21558extern "C" void (*signal (int, void (*)(int)))(int);
21559#else
21560void (*signal ()) ();
21561#endif
21562
John Criswell7a73b802003-06-30 21:59:07 +000021563int
21564main ()
21565{
21566int i;
21567 ;
21568 return 0;
21569}
21570_ACEOF
21571rm -f conftest.$ac_objext
21572if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21573 (eval $ac_compile) 2>&5
21574 ac_status=$?
21575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21576 (exit $ac_status); } &&
21577 { ac_try='test -s conftest.$ac_objext'
21578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21579 (eval $ac_try) 2>&5
21580 ac_status=$?
21581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21582 (exit $ac_status); }; }; then
21583 ac_cv_type_signal=void
21584else
21585 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021586sed 's/^/| /' conftest.$ac_ext >&5
21587
John Criswell7a73b802003-06-30 21:59:07 +000021588ac_cv_type_signal=int
21589fi
21590rm -f conftest.$ac_objext conftest.$ac_ext
21591fi
21592echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
21593echo "${ECHO_T}$ac_cv_type_signal" >&6
21594
21595cat >>confdefs.h <<_ACEOF
21596#define RETSIGTYPE $ac_cv_type_signal
21597_ACEOF
21598
21599
21600
21601
21602
21603
21604
Brian Gaekef5261472004-02-20 06:40:57 +000021605
Brian Gaeke9a08b5e2004-04-02 21:26:02 +000021606
John Criswelld6621562004-06-07 14:26:24 +000021607
21608
21609for ac_func in getcwd gettimeofday strdup strtoq strtoll backtrace isatty mkstemp getrusage
John Criswell7a73b802003-06-30 21:59:07 +000021610do
21611as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21612echo "$as_me:$LINENO: checking for $ac_func" >&5
21613echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21614if eval "test \"\${$as_ac_var+set}\" = set"; then
21615 echo $ECHO_N "(cached) $ECHO_C" >&6
21616else
21617 cat >conftest.$ac_ext <<_ACEOF
21618#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021619/* confdefs.h. */
21620_ACEOF
21621cat confdefs.h >>conftest.$ac_ext
21622cat >>conftest.$ac_ext <<_ACEOF
21623/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021624/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000021625 which can conflict with char $ac_func (); below.
21626 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21627 <limits.h> exists even on freestanding compilers. */
21628#ifdef __STDC__
21629# include <limits.h>
21630#else
21631# include <assert.h>
21632#endif
John Criswell7a73b802003-06-30 21:59:07 +000021633/* Override any gcc2 internal prototype to avoid an error. */
21634#ifdef __cplusplus
21635extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000021636{
John Criswell7a73b802003-06-30 21:59:07 +000021637#endif
21638/* We use char because int might match the return type of a gcc2
21639 builtin and then its argument prototype would still apply. */
21640char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000021641/* The GNU C library defines this for functions which it implements
21642 to always fail with ENOSYS. Some functions are actually named
21643 something starting with __ and the normal name is an alias. */
21644#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21645choke me
21646#else
John Criswell0c38eaf2003-09-10 15:17:25 +000021647char (*f) () = $ac_func;
21648#endif
21649#ifdef __cplusplus
21650}
John Criswell7a73b802003-06-30 21:59:07 +000021651#endif
21652
John Criswell0c38eaf2003-09-10 15:17:25 +000021653int
21654main ()
21655{
21656return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000021657 ;
21658 return 0;
21659}
21660_ACEOF
21661rm -f conftest.$ac_objext conftest$ac_exeext
21662if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21663 (eval $ac_link) 2>&5
21664 ac_status=$?
21665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21666 (exit $ac_status); } &&
21667 { ac_try='test -s conftest$ac_exeext'
21668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21669 (eval $ac_try) 2>&5
21670 ac_status=$?
21671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21672 (exit $ac_status); }; }; then
21673 eval "$as_ac_var=yes"
21674else
21675 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021676sed 's/^/| /' conftest.$ac_ext >&5
21677
John Criswell7a73b802003-06-30 21:59:07 +000021678eval "$as_ac_var=no"
21679fi
21680rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21681fi
21682echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21683echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21684if test `eval echo '${'$as_ac_var'}'` = yes; then
21685 cat >>confdefs.h <<_ACEOF
21686#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21687_ACEOF
21688
21689fi
21690done
21691
John Criswell7a73b802003-06-30 21:59:07 +000021692echo "$as_me:$LINENO: checking for mprotect" >&5
21693echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
21694if test "${ac_cv_func_mprotect+set}" = set; then
21695 echo $ECHO_N "(cached) $ECHO_C" >&6
21696else
21697 cat >conftest.$ac_ext <<_ACEOF
21698#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021699/* confdefs.h. */
21700_ACEOF
21701cat confdefs.h >>conftest.$ac_ext
21702cat >>conftest.$ac_ext <<_ACEOF
21703/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021704/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000021705 which can conflict with char mprotect (); below.
21706 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21707 <limits.h> exists even on freestanding compilers. */
21708#ifdef __STDC__
21709# include <limits.h>
21710#else
21711# include <assert.h>
21712#endif
John Criswell7a73b802003-06-30 21:59:07 +000021713/* Override any gcc2 internal prototype to avoid an error. */
21714#ifdef __cplusplus
21715extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000021716{
John Criswell7a73b802003-06-30 21:59:07 +000021717#endif
21718/* We use char because int might match the return type of a gcc2
21719 builtin and then its argument prototype would still apply. */
21720char mprotect ();
John Criswell7a73b802003-06-30 21:59:07 +000021721/* The GNU C library defines this for functions which it implements
21722 to always fail with ENOSYS. Some functions are actually named
21723 something starting with __ and the normal name is an alias. */
21724#if defined (__stub_mprotect) || defined (__stub___mprotect)
21725choke me
21726#else
John Criswell0c38eaf2003-09-10 15:17:25 +000021727char (*f) () = mprotect;
21728#endif
21729#ifdef __cplusplus
21730}
John Criswell7a73b802003-06-30 21:59:07 +000021731#endif
21732
John Criswell0c38eaf2003-09-10 15:17:25 +000021733int
21734main ()
21735{
21736return f != mprotect;
John Criswell7a73b802003-06-30 21:59:07 +000021737 ;
21738 return 0;
21739}
21740_ACEOF
21741rm -f conftest.$ac_objext conftest$ac_exeext
21742if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21743 (eval $ac_link) 2>&5
21744 ac_status=$?
21745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21746 (exit $ac_status); } &&
21747 { ac_try='test -s conftest$ac_exeext'
21748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21749 (eval $ac_try) 2>&5
21750 ac_status=$?
21751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21752 (exit $ac_status); }; }; then
21753 ac_cv_func_mprotect=yes
21754else
21755 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021756sed 's/^/| /' conftest.$ac_ext >&5
21757
John Criswell7a73b802003-06-30 21:59:07 +000021758ac_cv_func_mprotect=no
21759fi
21760rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21761fi
21762echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
21763echo "${ECHO_T}$ac_cv_func_mprotect" >&6
21764if test $ac_cv_func_mprotect = yes; then
21765 :
21766else
21767 { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
21768echo "$as_me: error: Function mprotect() required but not found" >&2;}
21769 { (exit 1); exit 1; }; }
21770fi
21771
21772
John Criswellb13092b2003-07-22 21:00:24 +000021773
John Criswellcb7a1eb2003-11-17 19:46:02 +000021774
21775
21776 ac_ext=c
21777ac_cpp='$CPP $CPPFLAGS'
21778ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21779ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21780ac_compiler_gnu=$ac_cv_c_compiler_gnu
21781
Brian Gaekef91a15c2003-11-18 06:20:41 +000021782 oldcflags="$CFLAGS"
21783 CFLAGS="$CFLAGS -Wl,-R."
John Criswellcb7a1eb2003-11-17 19:46:02 +000021784 cat >conftest.$ac_ext <<_ACEOF
Brian Gaekef91a15c2003-11-18 06:20:41 +000021785int main() { return 0; }
John Criswellcb7a1eb2003-11-17 19:46:02 +000021786_ACEOF
21787rm -f conftest.$ac_objext conftest$ac_exeext
21788if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21789 (eval $ac_link) 2>&5
21790 ac_status=$?
21791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21792 (exit $ac_status); } &&
21793 { ac_try='test -s conftest$ac_exeext'
21794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21795 (eval $ac_try) 2>&5
21796 ac_status=$?
21797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21798 (exit $ac_status); }; }; then
21799 ac_cv_link_use_r=yes
21800else
21801 echo "$as_me: failed program was:" >&5
21802sed 's/^/| /' conftest.$ac_ext >&5
21803
Brian Gaekef91a15c2003-11-18 06:20:41 +000021804ac_cv_link_use_r=no
John Criswellcb7a1eb2003-11-17 19:46:02 +000021805fi
21806rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Brian Gaekef91a15c2003-11-18 06:20:41 +000021807 CFLAGS="$oldcflags"
John Criswellcb7a1eb2003-11-17 19:46:02 +000021808 ac_ext=c
21809ac_cpp='$CPP $CPPFLAGS'
21810ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21811ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21812ac_compiler_gnu=$ac_cv_c_compiler_gnu
21813
Brian Gaekef91a15c2003-11-18 06:20:41 +000021814 if test "$ac_cv_link_use_r" = yes
John Criswellcb7a1eb2003-11-17 19:46:02 +000021815 then
Brian Gaekef91a15c2003-11-18 06:20:41 +000021816
21817cat >>confdefs.h <<\_ACEOF
John Criswellcb7a1eb2003-11-17 19:46:02 +000021818#define HAVE_LINK_R 1
21819_ACEOF
21820
21821 fi
21822
21823
John Criswell7a73b802003-06-30 21:59:07 +000021824# Check whether --enable-optimized or --disable-optimized was given.
21825if test "${enable_optimized+set}" = set; then
21826 enableval="$enable_optimized"
John Criswell7a73b802003-06-30 21:59:07 +000021827
21828else
John Criswellb13092b2003-07-22 21:00:24 +000021829 enableval=no
John Criswell7a73b802003-06-30 21:59:07 +000021830fi;
John Criswellb13092b2003-07-22 21:00:24 +000021831if test ${enableval} = "no"
21832then
21833 ENABLE_OPTIMIZED=
21834
21835else
21836 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
21837
21838fi
21839
John Criswell55126592003-10-07 21:57:39 +000021840
21841
John Criswell55126592003-10-07 21:57:39 +000021842
Brian Gaekee773b862004-04-16 17:13:44 +000021843 # Check whether --enable-spec95 or --disable-spec95 was given.
John Criswellcf2e9f72004-02-10 22:36:35 +000021844if test "${enable_spec95+set}" = set; then
21845 enableval="$enable_spec95"
Brian Gaekee773b862004-04-16 17:13:44 +000021846 checkresult=$enableval
John Criswellcf2e9f72004-02-10 22:36:35 +000021847else
Brian Gaekee773b862004-04-16 17:13:44 +000021848 checkresult=auto
John Criswellcf2e9f72004-02-10 22:36:35 +000021849fi;
Brian Gaekee773b862004-04-16 17:13:44 +000021850echo "$as_me:$LINENO: checking for spec95 benchmark sources" >&5
21851echo $ECHO_N "checking for spec95 benchmark sources... $ECHO_C" >&6
21852case "$checkresult" in
21853auto|yes)
21854 defaultdir=/home/vadve/shared/benchmarks/spec95/benchspec
21855 if test -d "$defaultdir"
John Criswellcf2e9f72004-02-10 22:36:35 +000021856 then
Brian Gaekee773b862004-04-16 17:13:44 +000021857 SPEC95_ROOT=$defaultdir
John Criswellcf2e9f72004-02-10 22:36:35 +000021858
21859 USE_SPEC95=USE_SPEC95=1
21860
Brian Gaekee773b862004-04-16 17:13:44 +000021861 checkresult="yes, found in $defaultdir"
21862 else
21863 checkresult=no
21864 fi
21865 ;;
21866no)
John Criswellcf2e9f72004-02-10 22:36:35 +000021867
21868
Brian Gaekee773b862004-04-16 17:13:44 +000021869 checkresult=no
21870 ;;
21871*) if test -d "$checkresult"
21872 then
21873 SPEC95_ROOT="$checkresult"
21874
21875 USE_SPEC95=USE_SPEC95=1
21876
21877 checkresult="yes, in $checkresult"
21878 else
21879
21880
21881 checkresult="no, not found in $checkresult"
21882 fi
21883 ;;
21884esac
21885echo "$as_me:$LINENO: result: $checkresult" >&5
21886echo "${ECHO_T}$checkresult" >&6
21887
21888
21889
21890 # Check whether --enable-spec2000 or --disable-spec2000 was given.
21891if test "${enable_spec2000+set}" = set; then
21892 enableval="$enable_spec2000"
21893 checkresult=$enableval
John Criswellcf2e9f72004-02-10 22:36:35 +000021894else
Brian Gaekee773b862004-04-16 17:13:44 +000021895 checkresult=auto
21896fi;
21897echo "$as_me:$LINENO: checking for spec2000 benchmark sources" >&5
21898echo $ECHO_N "checking for spec2000 benchmark sources... $ECHO_C" >&6
21899case "$checkresult" in
21900auto|yes)
21901 defaultdir=/home/vadve/shared/benchmarks/speccpu2000/benchspec
21902 if test -d "$defaultdir"
John Criswellcf2e9f72004-02-10 22:36:35 +000021903 then
Brian Gaekee773b862004-04-16 17:13:44 +000021904 SPEC2000_ROOT=$defaultdir
John Criswellcf2e9f72004-02-10 22:36:35 +000021905
Brian Gaekee773b862004-04-16 17:13:44 +000021906 USE_SPEC2000=USE_SPEC2000=1
John Criswellcf2e9f72004-02-10 22:36:35 +000021907
Brian Gaekee773b862004-04-16 17:13:44 +000021908 checkresult="yes, found in $defaultdir"
21909 else
21910 checkresult=no
21911 fi
21912 ;;
21913no)
John Criswellcf2e9f72004-02-10 22:36:35 +000021914
John Criswellcf2e9f72004-02-10 22:36:35 +000021915
Brian Gaekee773b862004-04-16 17:13:44 +000021916 checkresult=no
21917 ;;
21918*) if test -d "$checkresult"
21919 then
21920 SPEC2000_ROOT="$checkresult"
21921
21922 USE_SPEC2000=USE_SPEC2000=1
21923
21924 checkresult="yes, in $checkresult"
21925 else
21926
21927
21928 checkresult="no, not found in $checkresult"
21929 fi
21930 ;;
21931esac
21932echo "$as_me:$LINENO: result: $checkresult" >&5
21933echo "${ECHO_T}$checkresult" >&6
21934
21935
21936
21937 # Check whether --enable-povray or --disable-povray was given.
John Criswell0538d422004-02-20 22:30:22 +000021938if test "${enable_povray+set}" = set; then
21939 enableval="$enable_povray"
Brian Gaekee773b862004-04-16 17:13:44 +000021940 checkresult=$enableval
John Criswell0538d422004-02-20 22:30:22 +000021941else
Brian Gaekee773b862004-04-16 17:13:44 +000021942 checkresult=auto
John Criswell0538d422004-02-20 22:30:22 +000021943fi;
Brian Gaekee773b862004-04-16 17:13:44 +000021944echo "$as_me:$LINENO: checking for povray benchmark sources" >&5
21945echo $ECHO_N "checking for povray benchmark sources... $ECHO_C" >&6
21946case "$checkresult" in
Chris Lattner95f45c52004-04-14 16:32:09 +000021947auto|yes)
Brian Gaekef66cdf82004-04-13 19:03:49 +000021948 defaultdir=/home/vadve/shared/benchmarks/povray31
Brian Gaekee773b862004-04-16 17:13:44 +000021949 if test -d "$defaultdir"
John Criswell0538d422004-02-20 22:30:22 +000021950 then
Brian Gaekef66cdf82004-04-13 19:03:49 +000021951 POVRAY_ROOT=$defaultdir
John Criswell0538d422004-02-20 22:30:22 +000021952
21953 USE_POVRAY=USE_POVRAY=1
21954
Brian Gaekee773b862004-04-16 17:13:44 +000021955 checkresult="yes, found in $defaultdir"
Brian Gaekef66cdf82004-04-13 19:03:49 +000021956 else
Brian Gaekee773b862004-04-16 17:13:44 +000021957 checkresult=no
Brian Gaekef66cdf82004-04-13 19:03:49 +000021958 fi
21959 ;;
Chris Lattner95f45c52004-04-14 16:32:09 +000021960no)
John Criswell0538d422004-02-20 22:30:22 +000021961
21962
Brian Gaekee773b862004-04-16 17:13:44 +000021963 checkresult=no
Brian Gaekef66cdf82004-04-13 19:03:49 +000021964 ;;
Brian Gaekee773b862004-04-16 17:13:44 +000021965*) if test -d "$checkresult"
Brian Gaekef66cdf82004-04-13 19:03:49 +000021966 then
Brian Gaekee773b862004-04-16 17:13:44 +000021967 POVRAY_ROOT="$checkresult"
John Criswell0538d422004-02-20 22:30:22 +000021968
Brian Gaekef66cdf82004-04-13 19:03:49 +000021969 USE_POVRAY=USE_POVRAY=1
John Criswell0538d422004-02-20 22:30:22 +000021970
Brian Gaekee773b862004-04-16 17:13:44 +000021971 checkresult="yes, in $checkresult"
Brian Gaekef66cdf82004-04-13 19:03:49 +000021972 else
John Criswell0538d422004-02-20 22:30:22 +000021973
John Criswell0538d422004-02-20 22:30:22 +000021974
Brian Gaekee773b862004-04-16 17:13:44 +000021975 checkresult="no, not found in $checkresult"
Brian Gaekef66cdf82004-04-13 19:03:49 +000021976 fi
21977 ;;
21978esac
Brian Gaekee773b862004-04-16 17:13:44 +000021979echo "$as_me:$LINENO: result: $checkresult" >&5
21980echo "${ECHO_T}$checkresult" >&6
21981
21982
John Criswell0538d422004-02-20 22:30:22 +000021983
John Criswell7a73b802003-06-30 21:59:07 +000021984# Check whether --enable-precompiled_bytecode or --disable-precompiled_bytecode was given.
21985if test "${enable_precompiled_bytecode+set}" = set; then
21986 enableval="$enable_precompiled_bytecode"
John Criswell7a73b802003-06-30 21:59:07 +000021987
21988else
John Criswellb13092b2003-07-22 21:00:24 +000021989 enableval=no
John Criswell7a73b802003-06-30 21:59:07 +000021990fi;
John Criswellb13092b2003-07-22 21:00:24 +000021991if test ${enableval} = "no"
21992then
21993 UPB=
John Criswellf02dbf02003-07-22 20:07:49 +000021994
John Criswellb13092b2003-07-22 21:00:24 +000021995else
21996 UPB=USE_PRECOMPILED_BYTECODE=1
21997
21998fi
John Criswellf02dbf02003-07-22 20:07:49 +000021999
John Criswellf02dbf02003-07-22 20:07:49 +000022000# Check whether --enable-llc_diffs or --disable-llc_diffs was given.
22001if test "${enable_llc_diffs+set}" = set; then
22002 enableval="$enable_llc_diffs"
John Criswellf02dbf02003-07-22 20:07:49 +000022003
22004else
John Criswellb13092b2003-07-22 21:00:24 +000022005 enableval=yes
John Criswellf02dbf02003-07-22 20:07:49 +000022006fi;
John Criswellb13092b2003-07-22 21:00:24 +000022007if test ${enableval} = "no"
22008then
22009 DISABLE_LLC_DIFFS=DISABLE_LLC_DIFFS:=1
John Criswellf02dbf02003-07-22 20:07:49 +000022010
John Criswellb13092b2003-07-22 21:00:24 +000022011else
22012 DISABLE_LLC_DIFFS=
22013
22014fi
22015
22016# Check whether --enable-jit or --disable-jit was given.
John Criswell7a73b802003-06-30 21:59:07 +000022017if test "${enable_jit+set}" = set; then
22018 enableval="$enable_jit"
John Criswell7a73b802003-06-30 21:59:07 +000022019
22020else
John Criswellc78022e2003-07-29 19:11:58 +000022021 enableval=default
John Criswell7a73b802003-06-30 21:59:07 +000022022fi;
John Criswellb13092b2003-07-22 21:00:24 +000022023if test ${enableval} = "no"
22024then
22025 JIT=
22026
22027else
John Criswellc78022e2003-07-29 19:11:58 +000022028 case $target in
22029 *i*86*)
22030 JIT=TARGET_HAS_JIT=1
John Criswellb13092b2003-07-22 21:00:24 +000022031
John Criswellc78022e2003-07-29 19:11:58 +000022032 ;;
22033 *sparc*)
22034 JIT=TARGET_HAS_JIT=1
22035
22036 ;;
22037 *)
22038 JIT=
22039
22040 ;;
22041 esac
John Criswellb13092b2003-07-22 21:00:24 +000022042fi
John Criswell7a73b802003-06-30 21:59:07 +000022043
22044
John Criswell7a73b802003-06-30 21:59:07 +000022045# Check whether --with-llvmgccdir or --without-llvmgccdir was given.
22046if test "${with_llvmgccdir+set}" = set; then
22047 withval="$with_llvmgccdir"
22048 LLVMGCCDIR=$withval
22049
22050fi;
Brian Gaekef3b24102003-11-16 18:38:14 +000022051echo "$as_me:$LINENO: checking for llvm-gcc" >&5
22052echo $ECHO_N "checking for llvm-gcc... $ECHO_C" >&6
22053LLVM_GCC_CHECK=no
22054if test -d "$LLVMGCCDIR"
22055then
22056 if test -x "$LLVMGCCDIR/bin/gcc"
22057 then
22058 LLVM_GCC_CHECK="$LLVMGCCDIR/bin/gcc"
22059 fi
22060fi
22061llvmgccwarn=no
22062echo "$as_me:$LINENO: result: $LLVM_GCC_CHECK" >&5
22063echo "${ECHO_T}$LLVM_GCC_CHECK" >&6
22064if test "$LLVM_GCC_CHECK" = "no"
22065then
22066 llvmgccwarn=yes
22067fi
Brian Gaekef3b24102003-11-16 18:38:14 +000022068echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
22069echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
22070LLVM_GCC_SANE=no
22071if test -x "$LLVM_GCC_CHECK"
22072then
22073 cp /dev/null conftest.c
22074 "$LLVM_GCC_CHECK" -S -o - conftest.c | grep implementation > /dev/null 2>&1
22075 if test $? -eq 0
22076 then
22077 LLVM_GCC_SANE=yes
22078 fi
22079 rm conftest.c
Brian Gaeke2f50a042004-01-16 21:31:21 +000022080 llvmcc1path=`"$LLVM_GCC_CHECK" --print-prog-name=cc1`
Brian Gaeke554831c2004-01-21 19:39:29 +000022081 LLVMCC1=$llvmcc1path
Brian Gaeke2f50a042004-01-16 21:31:21 +000022082
22083 llvmcc1pluspath=`"$LLVM_GCC_CHECK" --print-prog-name=cc1plus`
Brian Gaeke554831c2004-01-21 19:39:29 +000022084 LLVMCC1PLUS=$llvmcc1pluspath
Brian Gaeke2f50a042004-01-16 21:31:21 +000022085
Brian Gaekef3b24102003-11-16 18:38:14 +000022086fi
22087echo "$as_me:$LINENO: result: $LLVM_GCC_SANE" >&5
22088echo "${ECHO_T}$LLVM_GCC_SANE" >&6
22089if test "$LLVM_GCC_SANE" = "no"
22090then
22091 llvmgccwarn=yes
22092fi
22093
John Criswellc78022e2003-07-29 19:11:58 +000022094
John Criswell7a73b802003-06-30 21:59:07 +000022095# Check whether --with-bcrepos or --without-bcrepos was given.
22096if test "${with_bcrepos+set}" = set; then
22097 withval="$with_bcrepos"
22098 BCR=$withval
22099
22100else
22101 BCR=/home/vadve/lattner/LLVMPrograms
22102
22103fi;
22104
John Criswellc78022e2003-07-29 19:11:58 +000022105
John Criswell7a73b802003-06-30 21:59:07 +000022106# Check whether --with-papi or --without-papi was given.
22107if test "${with_papi+set}" = set; then
22108 withval="$with_papi"
22109 PAPIDIR=$withval
22110
22111else
John Criswellde00db22003-08-25 16:49:54 +000022112 PAPIDIR=/home/vadve/shared/Sparc/papi-2.3.4.1
John Criswell7a73b802003-06-30 21:59:07 +000022113
22114fi;
22115
Brian Gaeke554831c2004-01-21 19:39:29 +000022116echo "$as_me:$LINENO: checking for shared library suffix" >&5
22117echo $ECHO_N "checking for shared library suffix... $ECHO_C" >&6
22118eval "SHLIBEXT=$shrext"
22119echo "$as_me:$LINENO: result: $SHLIBEXT" >&5
22120echo "${ECHO_T}$SHLIBEXT" >&6
22121SHLIBEXT=$SHLIBEXT
22122
22123
22124cat >>confdefs.h <<_ACEOF
22125#define SHLIBEXT "$SHLIBEXT"
22126_ACEOF
22127
22128
Brian Gaeke6c3fd812004-02-23 22:07:00 +000022129 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"
John Criswell7a73b802003-06-30 21:59:07 +000022130cat >confcache <<\_ACEOF
22131# This file is a shell script that caches the results of configure
22132# tests run on this system so they can be shared between configure
22133# scripts and configure runs, see configure's option --config-cache.
22134# It is not useful on other systems. If it contains results you don't
22135# want to keep, you may remove or edit it.
22136#
22137# config.status only pays attention to the cache file if you give it
22138# the --recheck option to rerun configure.
22139#
John Criswell0c38eaf2003-09-10 15:17:25 +000022140# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000022141# loading this file, other *unset* `ac_cv_foo' will be assigned the
22142# following values.
22143
22144_ACEOF
22145
22146# The following way of writing the cache mishandles newlines in values,
22147# but we know of no workaround that is simple, portable, and efficient.
22148# So, don't put newlines in cache variables' values.
22149# Ultrix sh set writes to stderr and can't be redirected directly,
22150# and sets the high bit in the cache file unless we assign to the vars.
22151{
22152 (set) 2>&1 |
22153 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22154 *ac_space=\ *)
22155 # `set' does not quote correctly, so add quotes (double-quote
22156 # substitution turns \\\\ into \\, and sed turns \\ into \).
22157 sed -n \
22158 "s/'/'\\\\''/g;
22159 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22160 ;;
22161 *)
22162 # `set' quotes correctly as required by POSIX, so do not add quotes.
22163 sed -n \
22164 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22165 ;;
22166 esac;
22167} |
22168 sed '
22169 t clear
22170 : clear
22171 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22172 t end
22173 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22174 : end' >>confcache
John Criswell0c38eaf2003-09-10 15:17:25 +000022175if diff $cache_file confcache >/dev/null 2>&1; then :; else
John Criswell7a73b802003-06-30 21:59:07 +000022176 if test -w $cache_file; then
22177 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22178 cat confcache >$cache_file
22179 else
22180 echo "not updating unwritable cache $cache_file"
22181 fi
22182fi
22183rm -f confcache
22184
22185test "x$prefix" = xNONE && prefix=$ac_default_prefix
22186# Let make expand exec_prefix.
22187test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22188
22189# VPATH may cause trouble with some makes, so we remove $(srcdir),
22190# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22191# trailing colons and then remove the whole line if VPATH becomes empty
22192# (actually we leave an empty line to preserve line numbers).
22193if test "x$srcdir" = x.; then
22194 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22195s/:*\$(srcdir):*/:/;
22196s/:*\${srcdir}:*/:/;
22197s/:*@srcdir@:*/:/;
22198s/^\([^=]*=[ ]*\):*/\1/;
22199s/:*$//;
22200s/^[^=]*=[ ]*$//;
22201}'
22202fi
22203
22204DEFS=-DHAVE_CONFIG_H
22205
John Criswell0c38eaf2003-09-10 15:17:25 +000022206ac_libobjs=
22207ac_ltlibobjs=
22208for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22209 # 1. Remove the extension, and $U if already installed.
22210 ac_i=`echo "$ac_i" |
22211 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22212 # 2. Add them.
22213 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22214 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22215done
22216LIBOBJS=$ac_libobjs
22217
22218LTLIBOBJS=$ac_ltlibobjs
22219
22220
John Criswell7a73b802003-06-30 21:59:07 +000022221
22222: ${CONFIG_STATUS=./config.status}
22223ac_clean_files_save=$ac_clean_files
22224ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22225{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22226echo "$as_me: creating $CONFIG_STATUS" >&6;}
22227cat >$CONFIG_STATUS <<_ACEOF
22228#! $SHELL
22229# Generated by $as_me.
22230# Run this file to recreate the current configuration.
22231# Compiler output produced by configure, useful for debugging
22232# configure, is in config.log if it exists.
22233
22234debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000022235ac_cs_recheck=false
22236ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000022237SHELL=\${CONFIG_SHELL-$SHELL}
22238_ACEOF
22239
22240cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022241## --------------------- ##
22242## M4sh Initialization. ##
22243## --------------------- ##
22244
22245# Be Bourne compatible
22246if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22247 emulate sh
22248 NULLCMD=:
John Criswell0c38eaf2003-09-10 15:17:25 +000022249 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22250 # is contrary to our usage. Disable this feature.
22251 alias -g '${1+"$@"}'='"$@"'
John Criswell7a73b802003-06-30 21:59:07 +000022252elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22253 set -o posix
22254fi
22255
John Criswell7a73b802003-06-30 21:59:07 +000022256# Support unset when possible.
22257if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
22258 as_unset=unset
22259else
22260 as_unset=false
22261fi
22262
John Criswell0c38eaf2003-09-10 15:17:25 +000022263
22264# Work around bugs in pre-3.0 UWIN ksh.
22265$as_unset ENV MAIL MAILPATH
22266PS1='$ '
22267PS2='> '
22268PS4='+ '
22269
22270# NLS nuisances.
22271for as_var in \
22272 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22273 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22274 LC_TELEPHONE LC_TIME
22275do
22276 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
22277 eval $as_var=C; export $as_var
22278 else
22279 $as_unset $as_var
22280 fi
22281done
22282
22283# Required to use basename.
22284if expr a : '\(a\)' >/dev/null 2>&1; then
22285 as_expr=expr
22286else
22287 as_expr=false
22288fi
22289
22290if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
22291 as_basename=basename
22292else
22293 as_basename=false
22294fi
John Criswell7a73b802003-06-30 21:59:07 +000022295
22296
22297# Name of the executable.
John Criswell0c38eaf2003-09-10 15:17:25 +000022298as_me=`$as_basename "$0" ||
John Criswell7a73b802003-06-30 21:59:07 +000022299$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22300 X"$0" : 'X\(//\)$' \| \
22301 X"$0" : 'X\(/\)$' \| \
22302 . : '\(.\)' 2>/dev/null ||
22303echo X/"$0" |
22304 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22305 /^X\/\(\/\/\)$/{ s//\1/; q; }
22306 /^X\/\(\/\).*/{ s//\1/; q; }
22307 s/.*/./; q'`
22308
John Criswell0c38eaf2003-09-10 15:17:25 +000022309
John Criswell7a73b802003-06-30 21:59:07 +000022310# PATH needs CR, and LINENO needs CR and PATH.
22311# Avoid depending upon Character Ranges.
22312as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22313as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22314as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22315as_cr_digits='0123456789'
22316as_cr_alnum=$as_cr_Letters$as_cr_digits
22317
22318# The user is always right.
22319if test "${PATH_SEPARATOR+set}" != set; then
John Criswell0c38eaf2003-09-10 15:17:25 +000022320 echo "#! /bin/sh" >conf$$.sh
22321 echo "exit 0" >>conf$$.sh
22322 chmod +x conf$$.sh
22323 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000022324 PATH_SEPARATOR=';'
22325 else
22326 PATH_SEPARATOR=:
22327 fi
John Criswell0c38eaf2003-09-10 15:17:25 +000022328 rm -f conf$$.sh
John Criswell7a73b802003-06-30 21:59:07 +000022329fi
22330
22331
22332 as_lineno_1=$LINENO
22333 as_lineno_2=$LINENO
22334 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22335 test "x$as_lineno_1" != "x$as_lineno_2" &&
22336 test "x$as_lineno_3" = "x$as_lineno_2" || {
22337 # Find who we are. Look in the path if we contain no path at all
22338 # relative or not.
22339 case $0 in
22340 *[\\/]* ) as_myself=$0 ;;
22341 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22342for as_dir in $PATH
22343do
22344 IFS=$as_save_IFS
22345 test -z "$as_dir" && as_dir=.
22346 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22347done
22348
22349 ;;
22350 esac
22351 # We did not find ourselves, most probably we were run as `sh COMMAND'
22352 # in which case we are not to be found in the path.
22353 if test "x$as_myself" = x; then
22354 as_myself=$0
22355 fi
22356 if test ! -f "$as_myself"; then
22357 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22358echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22359 { (exit 1); exit 1; }; }
22360 fi
22361 case $CONFIG_SHELL in
22362 '')
22363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22364for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
22365do
22366 IFS=$as_save_IFS
22367 test -z "$as_dir" && as_dir=.
22368 for as_base in sh bash ksh sh5; do
22369 case $as_dir in
22370 /*)
22371 if ("$as_dir/$as_base" -c '
22372 as_lineno_1=$LINENO
22373 as_lineno_2=$LINENO
22374 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22375 test "x$as_lineno_1" != "x$as_lineno_2" &&
22376 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
John Criswell0c38eaf2003-09-10 15:17:25 +000022377 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
22378 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
John Criswell7a73b802003-06-30 21:59:07 +000022379 CONFIG_SHELL=$as_dir/$as_base
22380 export CONFIG_SHELL
22381 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22382 fi;;
22383 esac
22384 done
22385done
22386;;
22387 esac
22388
22389 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22390 # uniformly replaced by the line number. The first 'sed' inserts a
22391 # line-number line before each line; the second 'sed' does the real
22392 # work. The second script uses 'N' to pair each line-number line
22393 # with the numbered line, and appends trailing '-' during
22394 # substitution so that $LINENO is not a special case at line end.
22395 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22396 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
22397 sed '=' <$as_myself |
22398 sed '
22399 N
22400 s,$,-,
22401 : loop
22402 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22403 t loop
22404 s,-$,,
22405 s,^['$as_cr_digits']*\n,,
22406 ' >$as_me.lineno &&
22407 chmod +x $as_me.lineno ||
22408 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22409echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22410 { (exit 1); exit 1; }; }
22411
22412 # Don't try to exec as it changes $[0], causing all sort of problems
22413 # (the dirname of $[0] is not the place where we might find the
22414 # original and so on. Autoconf is especially sensible to this).
22415 . ./$as_me.lineno
22416 # Exit status is that of the last command.
22417 exit
22418}
22419
22420
22421case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22422 *c*,-n*) ECHO_N= ECHO_C='
22423' ECHO_T=' ' ;;
22424 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
22425 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
22426esac
22427
22428if expr a : '\(a\)' >/dev/null 2>&1; then
22429 as_expr=expr
22430else
22431 as_expr=false
22432fi
22433
22434rm -f conf$$ conf$$.exe conf$$.file
22435echo >conf$$.file
22436if ln -s conf$$.file conf$$ 2>/dev/null; then
22437 # We could just check for DJGPP; but this test a) works b) is more generic
22438 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22439 if test -f conf$$.exe; then
22440 # Don't use ln at all; we don't have any links
22441 as_ln_s='cp -p'
22442 else
22443 as_ln_s='ln -s'
22444 fi
22445elif ln conf$$.file conf$$ 2>/dev/null; then
22446 as_ln_s=ln
22447else
22448 as_ln_s='cp -p'
22449fi
22450rm -f conf$$ conf$$.exe conf$$.file
22451
John Criswell0c38eaf2003-09-10 15:17:25 +000022452if mkdir -p . 2>/dev/null; then
22453 as_mkdir_p=:
22454else
22455 as_mkdir_p=false
22456fi
22457
John Criswell7a73b802003-06-30 21:59:07 +000022458as_executable_p="test -f"
22459
22460# Sed expression to map a string onto a valid CPP name.
22461as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
22462
22463# Sed expression to map a string onto a valid variable name.
22464as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
22465
22466
22467# IFS
22468# We need space, tab and new line, in precisely that order.
22469as_nl='
22470'
22471IFS=" $as_nl"
22472
22473# CDPATH.
John Criswell0c38eaf2003-09-10 15:17:25 +000022474$as_unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000022475
22476exec 6>&1
22477
22478# Open the log real soon, to keep \$[0] and so on meaningful, and to
22479# report actual input values of CONFIG_FILES etc. instead of their
22480# values after options handling. Logging --version etc. is OK.
22481exec 5>>config.log
22482{
22483 echo
22484 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22485## Running $as_me. ##
22486_ASBOX
22487} >&5
22488cat >&5 <<_CSEOF
22489
Chris Lattner95f45c52004-04-14 16:32:09 +000022490This file was extended by [LLVM] $as_me [1.3], which was
John Criswell0c38eaf2003-09-10 15:17:25 +000022491generated by GNU Autoconf 2.57. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000022492
22493 CONFIG_FILES = $CONFIG_FILES
22494 CONFIG_HEADERS = $CONFIG_HEADERS
22495 CONFIG_LINKS = $CONFIG_LINKS
22496 CONFIG_COMMANDS = $CONFIG_COMMANDS
22497 $ $0 $@
22498
22499_CSEOF
22500echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22501echo >&5
22502_ACEOF
22503
22504# Files that config.status was made for.
22505if test -n "$ac_config_files"; then
22506 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22507fi
22508
22509if test -n "$ac_config_headers"; then
22510 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22511fi
22512
22513if test -n "$ac_config_links"; then
22514 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
22515fi
22516
22517if test -n "$ac_config_commands"; then
22518 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22519fi
22520
22521cat >>$CONFIG_STATUS <<\_ACEOF
22522
22523ac_cs_usage="\
22524\`$as_me' instantiates files from templates according to the
22525current configuration.
22526
22527Usage: $0 [OPTIONS] [FILE]...
22528
22529 -h, --help print this help, then exit
22530 -V, --version print version number, then exit
John Criswell0c38eaf2003-09-10 15:17:25 +000022531 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000022532 -d, --debug don't remove temporary files
22533 --recheck update $as_me by reconfiguring in the same conditions
22534 --file=FILE[:TEMPLATE]
22535 instantiate the configuration file FILE
22536 --header=FILE[:TEMPLATE]
22537 instantiate the configuration header FILE
22538
22539Configuration files:
22540$config_files
22541
22542Configuration headers:
22543$config_headers
22544
John Criswellc764fbc2003-09-06 15:17:13 +000022545Configuration commands:
22546$config_commands
22547
John Criswell7a73b802003-06-30 21:59:07 +000022548Report bugs to <bug-autoconf@gnu.org>."
22549_ACEOF
22550
22551cat >>$CONFIG_STATUS <<_ACEOF
22552ac_cs_version="\\
Chris Lattner95f45c52004-04-14 16:32:09 +000022553[LLVM] config.status [1.3]
John Criswell0c38eaf2003-09-10 15:17:25 +000022554configured by $0, generated by GNU Autoconf 2.57,
John Criswell7a73b802003-06-30 21:59:07 +000022555 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22556
22557Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
22558Free Software Foundation, Inc.
22559This config.status script is free software; the Free Software Foundation
22560gives unlimited permission to copy, distribute and modify it."
22561srcdir=$srcdir
22562INSTALL="$INSTALL"
22563_ACEOF
22564
22565cat >>$CONFIG_STATUS <<\_ACEOF
22566# If no file are specified by the user, then we need to provide default
22567# value. By we need to know if files were specified by the user.
22568ac_need_defaults=:
22569while test $# != 0
22570do
22571 case $1 in
22572 --*=*)
22573 ac_option=`expr "x$1" : 'x\([^=]*\)='`
22574 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000022575 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000022576 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000022577 -*)
22578 ac_option=$1
22579 ac_optarg=$2
22580 ac_shift=shift
22581 ;;
John Criswell7a73b802003-06-30 21:59:07 +000022582 *) # This is not an option, so the user has probably given explicit
22583 # arguments.
John Criswell0c38eaf2003-09-10 15:17:25 +000022584 ac_option=$1
John Criswell7a73b802003-06-30 21:59:07 +000022585 ac_need_defaults=false;;
22586 esac
22587
John Criswell0c38eaf2003-09-10 15:17:25 +000022588 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000022589 # Handling of the options.
22590_ACEOF
John Criswelld9cd1442003-09-09 20:52:17 +000022591cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000022592 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22593 ac_cs_recheck=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000022594 --version | --vers* | -V )
22595 echo "$ac_cs_version"; exit 0 ;;
22596 --he | --h)
22597 # Conflict between --help and --header
22598 { { echo "$as_me:$LINENO: error: ambiguous option: $1
22599Try \`$0 --help' for more information." >&5
22600echo "$as_me: error: ambiguous option: $1
22601Try \`$0 --help' for more information." >&2;}
22602 { (exit 1); exit 1; }; };;
22603 --help | --hel | -h )
22604 echo "$ac_cs_usage"; exit 0 ;;
22605 --debug | --d* | -d )
22606 debug=: ;;
22607 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000022608 $ac_shift
22609 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000022610 ac_need_defaults=false;;
22611 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000022612 $ac_shift
22613 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000022614 ac_need_defaults=false;;
John Criswell0c38eaf2003-09-10 15:17:25 +000022615 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22616 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22617 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000022618
22619 # This is an error.
22620 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22621Try \`$0 --help' for more information." >&5
22622echo "$as_me: error: unrecognized option: $1
22623Try \`$0 --help' for more information." >&2;}
22624 { (exit 1); exit 1; }; } ;;
22625
22626 *) ac_config_targets="$ac_config_targets $1" ;;
22627
22628 esac
22629 shift
22630done
22631
John Criswell0c38eaf2003-09-10 15:17:25 +000022632ac_configure_extra_args=
22633
22634if $ac_cs_silent; then
22635 exec 6>/dev/null
22636 ac_configure_extra_args="$ac_configure_extra_args --silent"
22637fi
22638
22639_ACEOF
22640cat >>$CONFIG_STATUS <<_ACEOF
22641if \$ac_cs_recheck; then
22642 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22643 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22644fi
22645
John Criswell7a73b802003-06-30 21:59:07 +000022646_ACEOF
22647
John Criswellc764fbc2003-09-06 15:17:13 +000022648cat >>$CONFIG_STATUS <<_ACEOF
22649#
22650# INIT-COMMANDS section.
22651#
John Criswell7a73b802003-06-30 21:59:07 +000022652
John Criswellc764fbc2003-09-06 15:17:13 +000022653${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
22654${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common`
John Criswellc764fbc2003-09-06 15:17:13 +000022655${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000022656${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000022657${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile`
22658${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
John Criswellf424d742003-10-07 21:13:47 +000022659${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvm.py`
22660${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvmdb.py`
John Criswellc764fbc2003-09-06 15:17:13 +000022661${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile`
22662${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile.programs`
22663${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.Makefile`
22664${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.report`
John Criswellc764fbc2003-09-06 15:17:13 +000022665${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.report`
22666${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.example.Makefile`
22667${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.Makefile`
22668${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.buildrepo.Makefile`
22669${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.Makefile`
22670${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.report`
22671${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.Makefile`
22672${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.report`
22673${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.typesafe.Makefile`
22674${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.gnuplot`
John Criswell878be7d2004-02-24 21:43:38 +000022675${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.vtl.Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000022676${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/Makefile`
22677${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile`
John Criswell613758d2003-09-11 18:03:50 +000022678${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile.spec`
Alkis Evlogimenos271143f2004-02-26 04:14:10 +000022679${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile.spec2000`
John Criswellcf2e9f72004-02-10 22:36:35 +000022680${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile.spec95`
John Criswellc764fbc2003-09-06 15:17:13 +000022681${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile`
22682${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile.multisrc`
Misha Brukman811ce9f2003-11-12 22:16:51 +000022683${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in`
22684${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile`
22685${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in`
22686${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile`
22687${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in`
22688${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile`
22689${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in`
22690${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile`
22691${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in`
22692${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile`
22693${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in`
22694${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile`
22695${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in`
John Criswellc764fbc2003-09-06 15:17:13 +000022696${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile`
22697${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile.singlesrc`
Alkis Evlogimenos271143f2004-02-26 04:14:10 +000022698${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000022699${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
Brian Gaekec45be042003-10-07 06:01:34 +000022700${srcdir}/autoconf/mkinstalldirs `dirname utils/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000022701${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000022702
22703_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022704
22705
22706
22707cat >>$CONFIG_STATUS <<\_ACEOF
22708for ac_config_target in $ac_config_targets
22709do
22710 case "$ac_config_target" in
22711 # Handling of arguments.
22712 "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Brian Gaeke6c3fd812004-02-23 22:07:00 +000022713 "include/Support/DataTypes.h" ) CONFIG_FILES="$CONFIG_FILES include/Support/DataTypes.h" ;;
22714 "include/Support/ThreadSupport.h" ) CONFIG_FILES="$CONFIG_FILES include/Support/ThreadSupport.h" ;;
Brian Gaeke793c5f22004-02-23 18:56:02 +000022715 "include/Support/hash_map" ) CONFIG_FILES="$CONFIG_FILES include/Support/hash_map" ;;
22716 "include/Support/hash_set" ) CONFIG_FILES="$CONFIG_FILES include/Support/hash_set" ;;
Brian Gaeke6c3fd812004-02-23 22:07:00 +000022717 "include/Support/iterator" ) CONFIG_FILES="$CONFIG_FILES include/Support/iterator" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000022718 "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
22719 "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000022720 "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000022721 "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000022722 "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
22723 "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
John Criswellf424d742003-10-07 21:13:47 +000022724 "test/QMTest/llvm.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvm.py" ;;
22725 "test/QMTest/llvmdb.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvmdb.py" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000022726 "test/Programs/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile" ;;
22727 "test/Programs/Makefile.programs" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile.programs" ;;
22728 "test/Programs/TEST.aa.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.Makefile" ;;
22729 "test/Programs/TEST.dsgraph.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.report" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000022730 "test/Programs/TEST.aa.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.report" ;;
22731 "test/Programs/TEST.example.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.example.Makefile" ;;
22732 "test/Programs/TEST.nightly.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.Makefile" ;;
22733 "test/Programs/TEST.buildrepo.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.buildrepo.Makefile" ;;
22734 "test/Programs/TEST.jit.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.Makefile" ;;
22735 "test/Programs/TEST.nightly.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.report" ;;
22736 "test/Programs/TEST.dsgraph.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.Makefile" ;;
22737 "test/Programs/TEST.jit.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.report" ;;
22738 "test/Programs/TEST.typesafe.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.typesafe.Makefile" ;;
22739 "test/Programs/TEST.dsgraph.gnuplot" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.gnuplot" ;;
John Criswell878be7d2004-02-24 21:43:38 +000022740 "test/Programs/TEST.vtl.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.vtl.Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000022741 "test/Programs/External/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/Makefile" ;;
22742 "test/Programs/External/SPEC/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile" ;;
John Criswell613758d2003-09-11 18:03:50 +000022743 "test/Programs/External/SPEC/Makefile.spec" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile.spec" ;;
Alkis Evlogimenos271143f2004-02-26 04:14:10 +000022744 "test/Programs/External/SPEC/Makefile.spec2000" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile.spec2000" ;;
John Criswellcf2e9f72004-02-10 22:36:35 +000022745 "test/Programs/External/SPEC/Makefile.spec95" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile.spec95" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000022746 "test/Programs/MultiSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile" ;;
22747 "test/Programs/MultiSource/Makefile.multisrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile.multisrc" ;;
Misha Brukman811ce9f2003-11-12 22:16:51 +000022748 "test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in" ;;
22749 "test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile" ;;
22750 "test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in" ;;
22751 "test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile" ;;
22752 "test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in" ;;
22753 "test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile" ;;
22754 "test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in" ;;
22755 "test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile" ;;
22756 "test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in" ;;
22757 "test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile" ;;
22758 "test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in" ;;
22759 "test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile" ;;
22760 "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 +000022761 "test/Programs/SingleSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile" ;;
22762 "test/Programs/SingleSource/Makefile.singlesrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile.singlesrc" ;;
Alkis Evlogimenos271143f2004-02-26 04:14:10 +000022763 "test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000022764 "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
Brian Gaekec45be042003-10-07 06:01:34 +000022765 "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000022766 "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
John Criswell7a73b802003-06-30 21:59:07 +000022767 "include/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/Config/config.h" ;;
22768 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22769echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22770 { (exit 1); exit 1; }; };;
22771 esac
22772done
22773
22774# If the user did not use the arguments to specify the items to instantiate,
22775# then the envvar interface is used. Set only those that are not.
22776# We use the long form for the default assignment because of an extremely
22777# bizarre bug on SunOS 4.1.3.
22778if $ac_need_defaults; then
22779 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22780 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000022781 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000022782fi
22783
John Criswell0c38eaf2003-09-10 15:17:25 +000022784# Have a temporary directory for convenience. Make it in the build tree
22785# simply because there is no reason to put it here, and in addition,
22786# creating and moving files from /tmp can sometimes cause problems.
John Criswell7a73b802003-06-30 21:59:07 +000022787# Create a temporary directory, and hook for its removal unless debugging.
22788$debug ||
22789{
22790 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22791 trap '{ (exit 1); exit 1; }' 1 2 13 15
22792}
22793
22794# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000022795
John Criswell7a73b802003-06-30 21:59:07 +000022796{
John Criswell0c38eaf2003-09-10 15:17:25 +000022797 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000022798 test -n "$tmp" && test -d "$tmp"
22799} ||
22800{
John Criswell0c38eaf2003-09-10 15:17:25 +000022801 tmp=./confstat$$-$RANDOM
John Criswell7a73b802003-06-30 21:59:07 +000022802 (umask 077 && mkdir $tmp)
22803} ||
22804{
John Criswell0c38eaf2003-09-10 15:17:25 +000022805 echo "$me: cannot create a temporary directory in ." >&2
John Criswell7a73b802003-06-30 21:59:07 +000022806 { (exit 1); exit 1; }
22807}
22808
22809_ACEOF
22810
22811cat >>$CONFIG_STATUS <<_ACEOF
22812
22813#
22814# CONFIG_FILES section.
22815#
22816
22817# No need to generate the scripts if there are no CONFIG_FILES.
22818# This happens for instance when ./config.status config.h
22819if test -n "\$CONFIG_FILES"; then
22820 # Protect against being on the right side of a sed subst in config.status.
22821 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22822 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22823s,@SHELL@,$SHELL,;t t
22824s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22825s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22826s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22827s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22828s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22829s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22830s,@exec_prefix@,$exec_prefix,;t t
22831s,@prefix@,$prefix,;t t
22832s,@program_transform_name@,$program_transform_name,;t t
22833s,@bindir@,$bindir,;t t
22834s,@sbindir@,$sbindir,;t t
22835s,@libexecdir@,$libexecdir,;t t
22836s,@datadir@,$datadir,;t t
22837s,@sysconfdir@,$sysconfdir,;t t
22838s,@sharedstatedir@,$sharedstatedir,;t t
22839s,@localstatedir@,$localstatedir,;t t
22840s,@libdir@,$libdir,;t t
22841s,@includedir@,$includedir,;t t
22842s,@oldincludedir@,$oldincludedir,;t t
22843s,@infodir@,$infodir,;t t
22844s,@mandir@,$mandir,;t t
22845s,@build_alias@,$build_alias,;t t
22846s,@host_alias@,$host_alias,;t t
22847s,@target_alias@,$target_alias,;t t
22848s,@DEFS@,$DEFS,;t t
22849s,@ECHO_C@,$ECHO_C,;t t
22850s,@ECHO_N@,$ECHO_N,;t t
22851s,@ECHO_T@,$ECHO_T,;t t
22852s,@LIBS@,$LIBS,;t t
John Criswell12399a12003-09-30 15:55:44 +000022853s,@subdirs@,$subdirs,;t t
John Criswell7a73b802003-06-30 21:59:07 +000022854s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22855s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22856s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22857s,@build@,$build,;t t
22858s,@build_cpu@,$build_cpu,;t t
22859s,@build_vendor@,$build_vendor,;t t
22860s,@build_os@,$build_os,;t t
22861s,@host@,$host,;t t
22862s,@host_cpu@,$host_cpu,;t t
22863s,@host_vendor@,$host_vendor,;t t
22864s,@host_os@,$host_os,;t t
22865s,@target@,$target,;t t
22866s,@target_cpu@,$target_cpu,;t t
22867s,@target_vendor@,$target_vendor,;t t
22868s,@target_os@,$target_os,;t t
22869s,@OS@,$OS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000022870s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
John Criswell76595452003-07-01 22:07:39 +000022871s,@ARCH@,$ARCH,;t t
John Criswell7a73b802003-06-30 21:59:07 +000022872s,@CXX@,$CXX,;t t
22873s,@CXXFLAGS@,$CXXFLAGS,;t t
22874s,@LDFLAGS@,$LDFLAGS,;t t
22875s,@CPPFLAGS@,$CPPFLAGS,;t t
22876s,@ac_ct_CXX@,$ac_ct_CXX,;t t
22877s,@EXEEXT@,$EXEEXT,;t t
22878s,@OBJEXT@,$OBJEXT,;t t
22879s,@CC@,$CC,;t t
22880s,@CFLAGS@,$CFLAGS,;t t
22881s,@ac_ct_CC@,$ac_ct_CC,;t t
22882s,@CPP@,$CPP,;t t
22883s,@ifGNUmake@,$ifGNUmake,;t t
22884s,@LEX@,$LEX,;t t
22885s,@LEXLIB@,$LEXLIB,;t t
22886s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
22887s,@YACC@,$YACC,;t t
Brian Gaeke12810632004-01-13 06:52:10 +000022888s,@BISON@,$BISON,;t t
John Criswell47fdd832003-07-14 16:52:07 +000022889s,@EGREP@,$EGREP,;t t
John Criswell7a73b802003-06-30 21:59:07 +000022890s,@LN_S@,$LN_S,;t t
22891s,@ECHO@,$ECHO,;t t
John Criswell47fdd832003-07-14 16:52:07 +000022892s,@AR@,$AR,;t t
22893s,@ac_ct_AR@,$ac_ct_AR,;t t
John Criswell7a73b802003-06-30 21:59:07 +000022894s,@RANLIB@,$RANLIB,;t t
22895s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22896s,@STRIP@,$STRIP,;t t
22897s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
John Criswell47fdd832003-07-14 16:52:07 +000022898s,@CXXCPP@,$CXXCPP,;t t
22899s,@F77@,$F77,;t t
22900s,@FFLAGS@,$FFLAGS,;t t
22901s,@ac_ct_F77@,$ac_ct_F77,;t t
John Criswell7a73b802003-06-30 21:59:07 +000022902s,@LIBTOOL@,$LIBTOOL,;t t
John Criswell7a73b802003-06-30 21:59:07 +000022903s,@DOT@,$DOT,;t t
22904s,@ETAGS@,$ETAGS,;t t
Brian Gaekeafa3fbf2004-01-22 21:55:02 +000022905s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
John Criswellde00db22003-08-25 16:49:54 +000022906s,@PYTHON@,$PYTHON,;t t
22907s,@QMTEST@,$QMTEST,;t t
Brian Gaekec9a410c2004-02-23 21:30:37 +000022908s,@HAVE_PTHREAD_MUTEX_LOCK@,$HAVE_PTHREAD_MUTEX_LOCK,;t t
Brian Gaeke6c3fd812004-02-23 22:07:00 +000022909s,@INCLUDE_SYS_TYPES_H@,$INCLUDE_SYS_TYPES_H,;t t
22910s,@INCLUDE_INTTYPES_H@,$INCLUDE_INTTYPES_H,;t t
John Criswell0021c312004-02-13 21:57:29 +000022911s,@ENDIAN@,$ENDIAN,;t t
Brian Gaeke793c5f22004-02-23 18:56:02 +000022912s,@HAVE_STD_EXT_HASH_MAP@,$HAVE_STD_EXT_HASH_MAP,;t t
22913s,@HAVE_GNU_EXT_HASH_MAP@,$HAVE_GNU_EXT_HASH_MAP,;t t
22914s,@HAVE_GLOBAL_HASH_MAP@,$HAVE_GLOBAL_HASH_MAP,;t t
22915s,@HAVE_STD_EXT_HASH_SET@,$HAVE_STD_EXT_HASH_SET,;t t
22916s,@HAVE_GNU_EXT_HASH_SET@,$HAVE_GNU_EXT_HASH_SET,;t t
22917s,@HAVE_GLOBAL_HASH_SET@,$HAVE_GLOBAL_HASH_SET,;t t
Brian Gaeke295d4b82004-02-23 18:16:06 +000022918s,@HAVE_STD_ITERATOR@,$HAVE_STD_ITERATOR,;t t
22919s,@HAVE_BI_ITERATOR@,$HAVE_BI_ITERATOR,;t t
22920s,@HAVE_FWD_ITERATOR@,$HAVE_FWD_ITERATOR,;t t
John Criswell7a73b802003-06-30 21:59:07 +000022921s,@ALLOCA@,$ALLOCA,;t t
John Criswell7a73b802003-06-30 21:59:07 +000022922s,@MMAP_FILE@,$MMAP_FILE,;t t
John Criswell7a73b802003-06-30 21:59:07 +000022923s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
John Criswellcf2e9f72004-02-10 22:36:35 +000022924s,@SPEC95_ROOT@,$SPEC95_ROOT,;t t
22925s,@USE_SPEC95@,$USE_SPEC95,;t t
Brian Gaekee773b862004-04-16 17:13:44 +000022926s,@SPEC2000_ROOT@,$SPEC2000_ROOT,;t t
22927s,@USE_SPEC2000@,$USE_SPEC2000,;t t
John Criswell0538d422004-02-20 22:30:22 +000022928s,@POVRAY_ROOT@,$POVRAY_ROOT,;t t
22929s,@USE_POVRAY@,$USE_POVRAY,;t t
John Criswell7a73b802003-06-30 21:59:07 +000022930s,@UPB@,$UPB,;t t
John Criswellf02dbf02003-07-22 20:07:49 +000022931s,@DISABLE_LLC_DIFFS@,$DISABLE_LLC_DIFFS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000022932s,@JIT@,$JIT,;t t
Brian Gaeke2f50a042004-01-16 21:31:21 +000022933s,@LLVMCC1@,$LLVMCC1,;t t
22934s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000022935s,@BCR@,$BCR,;t t
22936s,@PAPIDIR@,$PAPIDIR,;t t
Brian Gaeke554831c2004-01-21 19:39:29 +000022937s,@SHLIBEXT@,$SHLIBEXT,;t t
Brian Gaeke26be9c52004-01-13 06:43:16 +000022938s,@LIBOBJS@,$LIBOBJS,;t t
John Criswell0c38eaf2003-09-10 15:17:25 +000022939s,@LTLIBOBJS@,$LTLIBOBJS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000022940CEOF
22941
22942_ACEOF
22943
22944 cat >>$CONFIG_STATUS <<\_ACEOF
22945 # Split the substitutions into bite-sized pieces for seds with
22946 # small command number limits, like on Digital OSF/1 and HP-UX.
22947 ac_max_sed_lines=48
22948 ac_sed_frag=1 # Number of current file.
22949 ac_beg=1 # First line for current file.
22950 ac_end=$ac_max_sed_lines # Line after last line for current file.
22951 ac_more_lines=:
22952 ac_sed_cmds=
22953 while $ac_more_lines; do
22954 if test $ac_beg -gt 1; then
22955 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22956 else
22957 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22958 fi
22959 if test ! -s $tmp/subs.frag; then
22960 ac_more_lines=false
22961 else
22962 # The purpose of the label and of the branching condition is to
22963 # speed up the sed processing (if there are no `@' at all, there
22964 # is no need to browse any of the substitutions).
22965 # These are the two extra sed commands mentioned above.
22966 (echo ':t
22967 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22968 if test -z "$ac_sed_cmds"; then
22969 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22970 else
22971 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22972 fi
22973 ac_sed_frag=`expr $ac_sed_frag + 1`
22974 ac_beg=$ac_end
22975 ac_end=`expr $ac_end + $ac_max_sed_lines`
22976 fi
22977 done
22978 if test -z "$ac_sed_cmds"; then
22979 ac_sed_cmds=cat
22980 fi
22981fi # test -n "$CONFIG_FILES"
22982
22983_ACEOF
22984cat >>$CONFIG_STATUS <<\_ACEOF
22985for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22986 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22987 case $ac_file in
22988 - | *:- | *:-:* ) # input from stdin
22989 cat >$tmp/stdin
22990 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22991 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22992 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22993 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22994 * ) ac_file_in=$ac_file.in ;;
22995 esac
22996
22997 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22998 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22999$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23000 X"$ac_file" : 'X\(//\)[^/]' \| \
23001 X"$ac_file" : 'X\(//\)$' \| \
23002 X"$ac_file" : 'X\(/\)' \| \
23003 . : '\(.\)' 2>/dev/null ||
23004echo X"$ac_file" |
23005 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23006 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23007 /^X\(\/\/\)$/{ s//\1/; q; }
23008 /^X\(\/\).*/{ s//\1/; q; }
23009 s/.*/./; q'`
John Criswell0c38eaf2003-09-10 15:17:25 +000023010 { if $as_mkdir_p; then
23011 mkdir -p "$ac_dir"
23012 else
23013 as_dir="$ac_dir"
23014 as_dirs=
23015 while test ! -d "$as_dir"; do
23016 as_dirs="$as_dir $as_dirs"
23017 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23018$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23019 X"$as_dir" : 'X\(//\)[^/]' \| \
23020 X"$as_dir" : 'X\(//\)$' \| \
23021 X"$as_dir" : 'X\(/\)' \| \
23022 . : '\(.\)' 2>/dev/null ||
23023echo X"$as_dir" |
23024 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23025 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23026 /^X\(\/\/\)$/{ s//\1/; q; }
23027 /^X\(\/\).*/{ s//\1/; q; }
23028 s/.*/./; q'`
23029 done
23030 test ! -n "$as_dirs" || mkdir $as_dirs
23031 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23032echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23033 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000023034
23035 ac_builddir=.
23036
23037if test "$ac_dir" != .; then
23038 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23039 # A "../" for each directory in $ac_dir_suffix.
23040 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23041else
23042 ac_dir_suffix= ac_top_builddir=
23043fi
23044
23045case $srcdir in
23046 .) # No --srcdir option. We are building in place.
23047 ac_srcdir=.
23048 if test -z "$ac_top_builddir"; then
23049 ac_top_srcdir=.
23050 else
23051 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23052 fi ;;
23053 [\\/]* | ?:[\\/]* ) # Absolute path.
23054 ac_srcdir=$srcdir$ac_dir_suffix;
23055 ac_top_srcdir=$srcdir ;;
23056 *) # Relative path.
23057 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23058 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23059esac
23060# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
23061# absolute.
23062ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
John Criswell0c38eaf2003-09-10 15:17:25 +000023063ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
John Criswell7a73b802003-06-30 21:59:07 +000023064ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
23065ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
23066
23067
23068 case $INSTALL in
23069 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23070 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
23071 esac
23072
23073 if test x"$ac_file" != x-; then
23074 { echo "$as_me:$LINENO: creating $ac_file" >&5
23075echo "$as_me: creating $ac_file" >&6;}
23076 rm -f "$ac_file"
23077 fi
23078 # Let's still pretend it is `configure' which instantiates (i.e., don't
23079 # use $as_me), people would be surprised to read:
23080 # /* config.h. Generated by config.status. */
23081 if test x"$ac_file" = x-; then
23082 configure_input=
23083 else
23084 configure_input="$ac_file. "
23085 fi
23086 configure_input=$configure_input"Generated from `echo $ac_file_in |
23087 sed 's,.*/,,'` by configure."
23088
23089 # First look for the input files in the build tree, otherwise in the
23090 # src tree.
23091 ac_file_inputs=`IFS=:
23092 for f in $ac_file_in; do
23093 case $f in
23094 -) echo $tmp/stdin ;;
23095 [\\/$]*)
23096 # Absolute (can't be DOS-style, as IFS=:)
23097 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23098echo "$as_me: error: cannot find input file: $f" >&2;}
23099 { (exit 1); exit 1; }; }
23100 echo $f;;
23101 *) # Relative
23102 if test -f "$f"; then
23103 # Build tree
23104 echo $f
23105 elif test -f "$srcdir/$f"; then
23106 # Source tree
23107 echo $srcdir/$f
23108 else
23109 # /dev/null tree
23110 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23111echo "$as_me: error: cannot find input file: $f" >&2;}
23112 { (exit 1); exit 1; }; }
23113 fi;;
23114 esac
23115 done` || { (exit 1); exit 1; }
23116_ACEOF
23117cat >>$CONFIG_STATUS <<_ACEOF
23118 sed "$ac_vpsub
23119$extrasub
23120_ACEOF
23121cat >>$CONFIG_STATUS <<\_ACEOF
23122:t
23123/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23124s,@configure_input@,$configure_input,;t t
23125s,@srcdir@,$ac_srcdir,;t t
23126s,@abs_srcdir@,$ac_abs_srcdir,;t t
23127s,@top_srcdir@,$ac_top_srcdir,;t t
23128s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
23129s,@builddir@,$ac_builddir,;t t
23130s,@abs_builddir@,$ac_abs_builddir,;t t
23131s,@top_builddir@,$ac_top_builddir,;t t
23132s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
23133s,@INSTALL@,$ac_INSTALL,;t t
23134" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23135 rm -f $tmp/stdin
23136 if test x"$ac_file" != x-; then
23137 mv $tmp/out $ac_file
23138 else
23139 cat $tmp/out
23140 rm -f $tmp/out
23141 fi
23142
23143done
23144_ACEOF
23145cat >>$CONFIG_STATUS <<\_ACEOF
23146
23147#
23148# CONFIG_HEADER section.
23149#
23150
23151# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
23152# NAME is the cpp macro being defined and VALUE is the value it is being given.
23153#
23154# ac_d sets the value in "#define NAME VALUE" lines.
23155ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
23156ac_dB='[ ].*$,\1#\2'
23157ac_dC=' '
23158ac_dD=',;t'
23159# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23160ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23161ac_uB='$,\1#\2define\3'
23162ac_uC=' '
23163ac_uD=',;t'
23164
23165for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
23166 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23167 case $ac_file in
23168 - | *:- | *:-:* ) # input from stdin
23169 cat >$tmp/stdin
23170 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23171 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23172 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23173 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23174 * ) ac_file_in=$ac_file.in ;;
23175 esac
23176
23177 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
23178echo "$as_me: creating $ac_file" >&6;}
23179
23180 # First look for the input files in the build tree, otherwise in the
23181 # src tree.
23182 ac_file_inputs=`IFS=:
23183 for f in $ac_file_in; do
23184 case $f in
23185 -) echo $tmp/stdin ;;
23186 [\\/$]*)
23187 # Absolute (can't be DOS-style, as IFS=:)
23188 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23189echo "$as_me: error: cannot find input file: $f" >&2;}
23190 { (exit 1); exit 1; }; }
23191 echo $f;;
23192 *) # Relative
23193 if test -f "$f"; then
23194 # Build tree
23195 echo $f
23196 elif test -f "$srcdir/$f"; then
23197 # Source tree
23198 echo $srcdir/$f
23199 else
23200 # /dev/null tree
23201 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23202echo "$as_me: error: cannot find input file: $f" >&2;}
23203 { (exit 1); exit 1; }; }
23204 fi;;
23205 esac
23206 done` || { (exit 1); exit 1; }
23207 # Remove the trailing spaces.
23208 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
23209
23210_ACEOF
23211
23212# Transform confdefs.h into two sed scripts, `conftest.defines' and
23213# `conftest.undefs', that substitutes the proper values into
23214# config.h.in to produce config.h. The first handles `#define'
23215# templates, and the second `#undef' templates.
23216# And first: Protect against being on the right side of a sed subst in
23217# config.status. Protect against being in an unquoted here document
23218# in config.status.
23219rm -f conftest.defines conftest.undefs
23220# Using a here document instead of a string reduces the quoting nightmare.
23221# Putting comments in sed scripts is not portable.
23222#
23223# `end' is used to avoid that the second main sed command (meant for
23224# 0-ary CPP macros) applies to n-ary macro definitions.
23225# See the Autoconf documentation for `clear'.
23226cat >confdef2sed.sed <<\_ACEOF
23227s/[\\&,]/\\&/g
23228s,[\\$`],\\&,g
23229t clear
23230: clear
23231s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
23232t end
23233s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
23234: end
23235_ACEOF
23236# If some macros were called several times there might be several times
23237# the same #defines, which is useless. Nevertheless, we may not want to
23238# sort them, since we want the *last* AC-DEFINE to be honored.
23239uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
23240sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
23241rm -f confdef2sed.sed
23242
23243# This sed command replaces #undef with comments. This is necessary, for
23244# example, in the case of _POSIX_SOURCE, which is predefined and required
23245# on some systems where configure will not decide to define it.
23246cat >>conftest.undefs <<\_ACEOF
23247s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
23248_ACEOF
23249
23250# Break up conftest.defines because some shells have a limit on the size
23251# of here documents, and old seds have small limits too (100 cmds).
23252echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
John Criswell0c38eaf2003-09-10 15:17:25 +000023253echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000023254echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
23255echo ' :' >>$CONFIG_STATUS
23256rm -f conftest.tail
23257while grep . conftest.defines >/dev/null
23258do
23259 # Write a limited-size here document to $tmp/defines.sed.
23260 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
23261 # Speed up: don't consider the non `#define' lines.
23262 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
23263 # Work around the forget-to-reset-the-flag bug.
23264 echo 't clr' >>$CONFIG_STATUS
23265 echo ': clr' >>$CONFIG_STATUS
23266 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
23267 echo 'CEOF
23268 sed -f $tmp/defines.sed $tmp/in >$tmp/out
23269 rm -f $tmp/in
23270 mv $tmp/out $tmp/in
23271' >>$CONFIG_STATUS
23272 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
23273 rm -f conftest.defines
23274 mv conftest.tail conftest.defines
23275done
23276rm -f conftest.defines
John Criswell0c38eaf2003-09-10 15:17:25 +000023277echo ' fi # grep' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000023278echo >>$CONFIG_STATUS
23279
23280# Break up conftest.undefs because some shells have a limit on the size
23281# of here documents, and old seds have small limits too (100 cmds).
23282echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
23283rm -f conftest.tail
23284while grep . conftest.undefs >/dev/null
23285do
23286 # Write a limited-size here document to $tmp/undefs.sed.
23287 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
23288 # Speed up: don't consider the non `#undef'
23289 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
23290 # Work around the forget-to-reset-the-flag bug.
23291 echo 't clr' >>$CONFIG_STATUS
23292 echo ': clr' >>$CONFIG_STATUS
23293 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
23294 echo 'CEOF
23295 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
23296 rm -f $tmp/in
23297 mv $tmp/out $tmp/in
23298' >>$CONFIG_STATUS
23299 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
23300 rm -f conftest.undefs
23301 mv conftest.tail conftest.undefs
23302done
23303rm -f conftest.undefs
23304
23305cat >>$CONFIG_STATUS <<\_ACEOF
23306 # Let's still pretend it is `configure' which instantiates (i.e., don't
23307 # use $as_me), people would be surprised to read:
23308 # /* config.h. Generated by config.status. */
23309 if test x"$ac_file" = x-; then
23310 echo "/* Generated by configure. */" >$tmp/config.h
23311 else
23312 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
23313 fi
23314 cat $tmp/in >>$tmp/config.h
23315 rm -f $tmp/in
23316 if test x"$ac_file" != x-; then
John Criswell0c38eaf2003-09-10 15:17:25 +000023317 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000023318 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23319echo "$as_me: $ac_file is unchanged" >&6;}
23320 else
23321 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23322$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23323 X"$ac_file" : 'X\(//\)[^/]' \| \
23324 X"$ac_file" : 'X\(//\)$' \| \
23325 X"$ac_file" : 'X\(/\)' \| \
23326 . : '\(.\)' 2>/dev/null ||
23327echo X"$ac_file" |
23328 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23329 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23330 /^X\(\/\/\)$/{ s//\1/; q; }
23331 /^X\(\/\).*/{ s//\1/; q; }
23332 s/.*/./; q'`
John Criswell0c38eaf2003-09-10 15:17:25 +000023333 { if $as_mkdir_p; then
23334 mkdir -p "$ac_dir"
23335 else
23336 as_dir="$ac_dir"
23337 as_dirs=
23338 while test ! -d "$as_dir"; do
23339 as_dirs="$as_dir $as_dirs"
23340 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23342 X"$as_dir" : 'X\(//\)[^/]' \| \
23343 X"$as_dir" : 'X\(//\)$' \| \
23344 X"$as_dir" : 'X\(/\)' \| \
23345 . : '\(.\)' 2>/dev/null ||
23346echo X"$as_dir" |
23347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23348 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23349 /^X\(\/\/\)$/{ s//\1/; q; }
23350 /^X\(\/\).*/{ s//\1/; q; }
23351 s/.*/./; q'`
23352 done
23353 test ! -n "$as_dirs" || mkdir $as_dirs
23354 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23355echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23356 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000023357
23358 rm -f $ac_file
23359 mv $tmp/config.h $ac_file
23360 fi
23361 else
23362 cat $tmp/config.h
23363 rm -f $tmp/config.h
23364 fi
23365done
23366_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000023367cat >>$CONFIG_STATUS <<\_ACEOF
23368
23369#
23370# CONFIG_COMMANDS section.
23371#
23372for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
23373 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
23374 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
23375 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
23376$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23377 X"$ac_dest" : 'X\(//\)[^/]' \| \
23378 X"$ac_dest" : 'X\(//\)$' \| \
23379 X"$ac_dest" : 'X\(/\)' \| \
23380 . : '\(.\)' 2>/dev/null ||
23381echo X"$ac_dest" |
23382 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23383 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23384 /^X\(\/\/\)$/{ s//\1/; q; }
23385 /^X\(\/\).*/{ s//\1/; q; }
23386 s/.*/./; q'`
23387 ac_builddir=.
23388
23389if test "$ac_dir" != .; then
23390 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23391 # A "../" for each directory in $ac_dir_suffix.
23392 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23393else
23394 ac_dir_suffix= ac_top_builddir=
23395fi
23396
23397case $srcdir in
23398 .) # No --srcdir option. We are building in place.
23399 ac_srcdir=.
23400 if test -z "$ac_top_builddir"; then
23401 ac_top_srcdir=.
23402 else
23403 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23404 fi ;;
23405 [\\/]* | ?:[\\/]* ) # Absolute path.
23406 ac_srcdir=$srcdir$ac_dir_suffix;
23407 ac_top_srcdir=$srcdir ;;
23408 *) # Relative path.
23409 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23410 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23411esac
23412# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
23413# absolute.
23414ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
John Criswell0c38eaf2003-09-10 15:17:25 +000023415ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
John Criswellc764fbc2003-09-06 15:17:13 +000023416ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
23417ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
23418
23419
23420 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
23421echo "$as_me: executing $ac_dest commands" >&6;}
23422 case $ac_dest in
23423 Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
23424 Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023425 lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023426 runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023427 test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
23428 test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
John Criswellf424d742003-10-07 21:13:47 +000023429 test/QMTest/llvm.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvm.py test/QMTest/llvm.py ;;
23430 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 +000023431 test/Programs/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile test/Programs/Makefile ;;
23432 test/Programs/Makefile.programs ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile.programs test/Programs/Makefile.programs ;;
23433 test/Programs/TEST.aa.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.Makefile test/Programs/TEST.aa.Makefile ;;
23434 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 +000023435 test/Programs/TEST.aa.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.report test/Programs/TEST.aa.report ;;
23436 test/Programs/TEST.example.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.example.Makefile test/Programs/TEST.example.Makefile ;;
23437 test/Programs/TEST.nightly.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.Makefile test/Programs/TEST.nightly.Makefile ;;
23438 test/Programs/TEST.buildrepo.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.buildrepo.Makefile test/Programs/TEST.buildrepo.Makefile ;;
23439 test/Programs/TEST.jit.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.Makefile test/Programs/TEST.jit.Makefile ;;
23440 test/Programs/TEST.nightly.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.report test/Programs/TEST.nightly.report ;;
23441 test/Programs/TEST.dsgraph.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.Makefile test/Programs/TEST.dsgraph.Makefile ;;
23442 test/Programs/TEST.jit.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.report test/Programs/TEST.jit.report ;;
23443 test/Programs/TEST.typesafe.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.typesafe.Makefile test/Programs/TEST.typesafe.Makefile ;;
23444 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 +000023445 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 +000023446 test/Programs/External/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/Makefile test/Programs/External/Makefile ;;
23447 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 +000023448 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 +000023449 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 +000023450 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 +000023451 test/Programs/MultiSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile test/Programs/MultiSource/Makefile ;;
23452 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 +000023453 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 ;;
23454 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 ;;
23455 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 ;;
23456 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 ;;
23457 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 ;;
23458 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 ;;
23459 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 ;;
23460 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 ;;
23461 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 ;;
23462 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 ;;
23463 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 ;;
23464 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 ;;
23465 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 +000023466 test/Programs/SingleSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile test/Programs/SingleSource/Makefile ;;
23467 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 +000023468 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 +000023469 tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
Brian Gaekec45be042003-10-07 06:01:34 +000023470 utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023471 projects/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023472 esac
23473done
23474_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000023475
23476cat >>$CONFIG_STATUS <<\_ACEOF
23477
23478{ (exit 0); exit 0; }
23479_ACEOF
23480chmod +x $CONFIG_STATUS
23481ac_clean_files=$ac_clean_files_save
23482
23483
23484# configure is writing to config.log, and then calls config.status.
23485# config.status does its own redirection, appending to config.log.
23486# Unfortunately, on DOS this fails, as config.log is still kept open
23487# by configure, so config.status won't be able to write to it; its
23488# output is simply discarded. So we exec the FD to /dev/null,
23489# effectively closing config.log, so it can be properly (re)opened and
23490# appended to by config.status. When coming back to configure, we
23491# need to make the FD available again.
23492if test "$no_create" != yes; then
23493 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000023494 ac_config_status_args=
23495 test "$silent" = yes &&
23496 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000023497 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000023498 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000023499 exec 5>>config.log
23500 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23501 # would make configure fail if this is the last instruction.
23502 $ac_cs_success || { (exit 1); exit 1; }
23503fi
23504
John Criswell12399a12003-09-30 15:55:44 +000023505#
23506# CONFIG_SUBDIRS section.
23507#
23508if test "$no_recursion" != yes; then
23509
23510 # Remove --cache-file and --srcdir arguments so they do not pile up.
23511 ac_sub_configure_args=
23512 ac_prev=
23513 for ac_arg in $ac_configure_args; do
23514 if test -n "$ac_prev"; then
23515 ac_prev=
23516 continue
23517 fi
23518 case $ac_arg in
23519 -cache-file | --cache-file | --cache-fil | --cache-fi \
23520 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
23521 ac_prev=cache_file ;;
23522 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
23523 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
23524 | --c=*)
23525 ;;
23526 --config-cache | -C)
23527 ;;
23528 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
23529 ac_prev=srcdir ;;
23530 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
23531 ;;
23532 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
23533 ac_prev=prefix ;;
23534 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
23535 ;;
23536 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
23537 esac
23538 done
23539
23540 # Always prepend --prefix to ensure using the same prefix
23541 # in subdir configurations.
23542 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
23543
23544 ac_popdir=`pwd`
23545 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
23546
23547 # Do not complain, so a configure script can configure whichever
23548 # parts of a large source tree are present.
23549 test -d $srcdir/$ac_dir || continue
23550
23551 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
23552echo "$as_me: configuring in $ac_dir" >&6;}
23553 { if $as_mkdir_p; then
23554 mkdir -p "$ac_dir"
23555 else
23556 as_dir="$ac_dir"
23557 as_dirs=
23558 while test ! -d "$as_dir"; do
23559 as_dirs="$as_dir $as_dirs"
23560 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23561$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23562 X"$as_dir" : 'X\(//\)[^/]' \| \
23563 X"$as_dir" : 'X\(//\)$' \| \
23564 X"$as_dir" : 'X\(/\)' \| \
23565 . : '\(.\)' 2>/dev/null ||
23566echo X"$as_dir" |
23567 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23568 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23569 /^X\(\/\/\)$/{ s//\1/; q; }
23570 /^X\(\/\).*/{ s//\1/; q; }
23571 s/.*/./; q'`
23572 done
23573 test ! -n "$as_dirs" || mkdir $as_dirs
23574 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23575echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23576 { (exit 1); exit 1; }; }; }
23577
23578 ac_builddir=.
23579
23580if test "$ac_dir" != .; then
23581 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23582 # A "../" for each directory in $ac_dir_suffix.
23583 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23584else
23585 ac_dir_suffix= ac_top_builddir=
23586fi
23587
23588case $srcdir in
23589 .) # No --srcdir option. We are building in place.
23590 ac_srcdir=.
23591 if test -z "$ac_top_builddir"; then
23592 ac_top_srcdir=.
23593 else
23594 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23595 fi ;;
23596 [\\/]* | ?:[\\/]* ) # Absolute path.
23597 ac_srcdir=$srcdir$ac_dir_suffix;
23598 ac_top_srcdir=$srcdir ;;
23599 *) # Relative path.
23600 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23601 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23602esac
23603# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
23604# absolute.
23605ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
23606ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
23607ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
23608ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
23609
23610
23611 cd $ac_dir
23612
23613 # Check for guested configure; otherwise get Cygnus style configure.
23614 if test -f $ac_srcdir/configure.gnu; then
23615 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
23616 elif test -f $ac_srcdir/configure; then
23617 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
23618 elif test -f $ac_srcdir/configure.in; then
23619 ac_sub_configure=$ac_configure
23620 else
23621 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
23622echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
23623 ac_sub_configure=
23624 fi
23625
23626 # The recursion is here.
23627 if test -n "$ac_sub_configure"; then
23628 # Make the cache file name correct relative to the subdirectory.
23629 case $cache_file in
23630 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
23631 *) # Relative path.
23632 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
23633 esac
23634
23635 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
23636echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
23637 # The eval makes quoting arguments work.
23638 eval $ac_sub_configure $ac_sub_configure_args \
23639 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
23640 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
23641echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
23642 { (exit 1); exit 1; }; }
23643 fi
23644
23645 cd $ac_popdir
23646 done
23647fi
23648
Brian Gaekef3b24102003-11-16 18:38:14 +000023649
23650if test $llvmgccwarn = yes
23651then
23652 { echo "$as_me:$LINENO: WARNING: ***** llvm C/C++ front end was not found, or does not" >&5
23653echo "$as_me: WARNING: ***** llvm C/C++ front end was not found, or does not" >&2;}
23654 { echo "$as_me:$LINENO: WARNING: ***** appear to be working." >&5
23655echo "$as_me: WARNING: ***** appear to be working." >&2;}
23656 { echo "$as_me:$LINENO: WARNING: ***** " >&5
23657echo "$as_me: WARNING: ***** " >&2;}
23658 { echo "$as_me:$LINENO: WARNING: ***** Please check configure's --with-llvmgccdir option." >&5
23659echo "$as_me: WARNING: ***** Please check configure's --with-llvmgccdir option." >&2;}
23660 { echo "$as_me:$LINENO: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&5
23661echo "$as_me: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&2;}
23662 { echo "$as_me:$LINENO: WARNING: ***** but you should be able to build the llvm tools." >&5
23663echo "$as_me: WARNING: ***** but you should be able to build the llvm tools." >&2;}
23664fi
Brian Gaeke554831c2004-01-21 19:39:29 +000023665