blob: 069a74f5c04655a22393547d45310808f8de7727 [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 Criswell8a54a1e2004-06-22 21:35:10 +00001568 ac_config_commands="$ac_config_commands test/Programs/Makefile.tests"
1569
1570
John Criswell0c38eaf2003-09-10 15:17:25 +00001571 ac_config_commands="$ac_config_commands test/Programs/TEST.aa.Makefile"
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.dsgraph.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.aa.report"
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.example.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.nightly.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.buildrepo.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.jit.Makefile"
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.nightly.report"
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.dsgraph.Makefile"
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.jit.report"
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.typesafe.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001602
1603
John Criswell0c38eaf2003-09-10 15:17:25 +00001604 ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.gnuplot"
John Criswellc764fbc2003-09-06 15:17:13 +00001605
1606
John Criswell878be7d2004-02-24 21:43:38 +00001607 ac_config_commands="$ac_config_commands test/Programs/TEST.vtl.Makefile"
1608
1609
John Criswell0c38eaf2003-09-10 15:17:25 +00001610 ac_config_commands="$ac_config_commands test/Programs/External/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001611
1612
John Criswell0c38eaf2003-09-10 15:17:25 +00001613 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001614
1615
John Criswell613758d2003-09-11 18:03:50 +00001616 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile.spec"
1617
1618
Alkis Evlogimenos271143f2004-02-26 04:14:10 +00001619 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile.spec2000"
1620
1621
John Criswellcf2e9f72004-02-10 22:36:35 +00001622 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile.spec95"
1623
1624
John Criswell0c38eaf2003-09-10 15:17:25 +00001625 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001626
1627
John Criswell0c38eaf2003-09-10 15:17:25 +00001628 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile.multisrc"
John Criswellc764fbc2003-09-06 15:17:13 +00001629
1630
Misha Brukman811ce9f2003-11-12 22:16:51 +00001631 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in"
1632
1633
1634 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile"
1635
1636
1637 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in"
1638
1639
1640 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile"
1641
1642
1643 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in"
1644
1645
1646 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile"
1647
1648
1649 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in"
1650
1651
1652 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile"
1653
1654
1655 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in"
1656
1657
1658 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile"
1659
1660
1661 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in"
1662
1663
1664 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile"
1665
1666
1667 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in"
1668
1669
John Criswell0c38eaf2003-09-10 15:17:25 +00001670 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001671
1672
John Criswell0c38eaf2003-09-10 15:17:25 +00001673 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile.singlesrc"
John Criswellc764fbc2003-09-06 15:17:13 +00001674
1675
Alkis Evlogimenos271143f2004-02-26 04:14:10 +00001676 ac_config_commands="$ac_config_commands test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile"
1677
1678
John Criswell0c38eaf2003-09-10 15:17:25 +00001679 ac_config_commands="$ac_config_commands tools/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001680
1681
Brian Gaekec45be042003-10-07 06:01:34 +00001682 ac_config_commands="$ac_config_commands utils/Makefile"
1683
1684
John Criswell0c38eaf2003-09-10 15:17:25 +00001685 ac_config_commands="$ac_config_commands projects/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001686
1687
John Criswell392aaa32003-07-22 19:18:09 +00001688
John Criswell7a73b802003-06-30 21:59:07 +00001689# Find a good install program. We prefer a C program (faster),
1690# so one script is as good as another. But avoid the broken or
1691# incompatible versions:
1692# SysV /etc/install, /usr/sbin/install
1693# SunOS /usr/etc/install
1694# IRIX /sbin/install
1695# AIX /bin/install
1696# AmigaOS /C/install, which installs bootblocks on floppy discs
1697# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1698# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1699# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1700# ./install, which can be erroneously created by make from ./install.sh.
1701echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1702echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1703if test -z "$INSTALL"; then
1704if test "${ac_cv_path_install+set}" = set; then
1705 echo $ECHO_N "(cached) $ECHO_C" >&6
1706else
1707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1708for as_dir in $PATH
1709do
1710 IFS=$as_save_IFS
1711 test -z "$as_dir" && as_dir=.
1712 # Account for people who put trailing slashes in PATH elements.
1713case $as_dir/ in
1714 ./ | .// | /cC/* | \
1715 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1716 /usr/ucb/* ) ;;
1717 *)
1718 # OSF1 and SCO ODT 3.0 have their own names for install.
1719 # Don't use installbsd from OSF since it installs stuff as root
1720 # by default.
1721 for ac_prog in ginstall scoinst install; do
1722 for ac_exec_ext in '' $ac_executable_extensions; do
1723 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1724 if test $ac_prog = install &&
1725 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1726 # AIX install. It has an incompatible calling convention.
1727 :
1728 elif test $ac_prog = install &&
1729 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1730 # program-specific install script used by HP pwplus--don't use.
1731 :
1732 else
1733 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1734 break 3
1735 fi
1736 fi
1737 done
1738 done
1739 ;;
1740esac
1741done
1742
1743
1744fi
1745 if test "${ac_cv_path_install+set}" = set; then
1746 INSTALL=$ac_cv_path_install
1747 else
1748 # As a last resort, use the slow shell script. We don't cache a
1749 # path for INSTALL within a source directory, because that will
1750 # break other packages using the cache if that directory is
1751 # removed, or if the path is relative.
1752 INSTALL=$ac_install_sh
1753 fi
1754fi
1755echo "$as_me:$LINENO: result: $INSTALL" >&5
1756echo "${ECHO_T}$INSTALL" >&6
1757
1758# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1759# It thinks the first close brace ends the variable substitution.
1760test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1761
1762test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1763
1764test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1765
1766
1767# Make sure we can run config.sub.
1768$ac_config_sub sun4 >/dev/null 2>&1 ||
1769 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1770echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1771 { (exit 1); exit 1; }; }
1772
1773echo "$as_me:$LINENO: checking build system type" >&5
1774echo $ECHO_N "checking build system type... $ECHO_C" >&6
1775if test "${ac_cv_build+set}" = set; then
1776 echo $ECHO_N "(cached) $ECHO_C" >&6
1777else
1778 ac_cv_build_alias=$build_alias
1779test -z "$ac_cv_build_alias" &&
1780 ac_cv_build_alias=`$ac_config_guess`
1781test -z "$ac_cv_build_alias" &&
1782 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1783echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1784 { (exit 1); exit 1; }; }
1785ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1786 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1787echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1788 { (exit 1); exit 1; }; }
1789
1790fi
1791echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1792echo "${ECHO_T}$ac_cv_build" >&6
1793build=$ac_cv_build
1794build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1795build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1796build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1797
1798
1799echo "$as_me:$LINENO: checking host system type" >&5
1800echo $ECHO_N "checking host system type... $ECHO_C" >&6
1801if test "${ac_cv_host+set}" = set; then
1802 echo $ECHO_N "(cached) $ECHO_C" >&6
1803else
1804 ac_cv_host_alias=$host_alias
1805test -z "$ac_cv_host_alias" &&
1806 ac_cv_host_alias=$ac_cv_build_alias
1807ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1808 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1809echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1810 { (exit 1); exit 1; }; }
1811
1812fi
1813echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1814echo "${ECHO_T}$ac_cv_host" >&6
1815host=$ac_cv_host
1816host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1817host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1818host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1819
1820
1821echo "$as_me:$LINENO: checking target system type" >&5
1822echo $ECHO_N "checking target system type... $ECHO_C" >&6
1823if test "${ac_cv_target+set}" = set; then
1824 echo $ECHO_N "(cached) $ECHO_C" >&6
1825else
1826 ac_cv_target_alias=$target_alias
1827test "x$ac_cv_target_alias" = "x" &&
1828 ac_cv_target_alias=$ac_cv_host_alias
1829ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1830 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1831echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1832 { (exit 1); exit 1; }; }
1833
1834fi
1835echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1836echo "${ECHO_T}$ac_cv_target" >&6
1837target=$ac_cv_target
1838target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1839target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1840target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1841
1842
1843# The aliases save the names the user supplied, while $host etc.
1844# will get canonicalized.
1845test -n "$target_alias" &&
1846 test "$program_prefix$program_suffix$program_transform_name" = \
1847 NONENONEs,x,x, &&
1848 program_prefix=${target_alias}-
1849
1850case $build in
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001851 *-*-linux*)
1852 OS=Linux
John Criswell7a73b802003-06-30 21:59:07 +00001853
Brian Gaekef3b24102003-11-16 18:38:14 +00001854 if test -d /home/vadve/lattner/local/x86/llvm-gcc
1855 then
1856 LLVMGCCDIR=/home/vadve/lattner/local/x86/llvm-gcc/
John Criswell7a73b802003-06-30 21:59:07 +00001857
Brian Gaekef3b24102003-11-16 18:38:14 +00001858 fi
John Criswell7a73b802003-06-30 21:59:07 +00001859 ;;
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001860 *-*-solaris*)
1861 OS=SunOS
John Criswell7a73b802003-06-30 21:59:07 +00001862
Brian Gaekef3b24102003-11-16 18:38:14 +00001863 if test -d /home/vadve/lattner/local/sparc/llvm-gcc
1864 then
1865 LLVMGCCDIR=/home/vadve/lattner/local/sparc/llvm-gcc/
John Criswell7a73b802003-06-30 21:59:07 +00001866
Brian Gaekef3b24102003-11-16 18:38:14 +00001867 fi
John Criswell7a73b802003-06-30 21:59:07 +00001868 ;;
John Criswelld6621562004-06-07 14:26:24 +00001869 *-*-cygwin*)
1870 OS=Cygwin
1871
1872 ;;
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001873 *-*-darwin*)
1874 OS=Darwin
1875
1876 ;;
Misha Brukmandb84a092004-06-22 15:35:32 +00001877 *-*-aix*)
1878 OS=AIX
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001879
Misha Brukmandb84a092004-06-22 15:35:32 +00001880 ;;
John Criswell7a73b802003-06-30 21:59:07 +00001881 *) OS=Unknown
1882
1883 ;;
1884esac
1885
1886case $target in
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001887 sparc*-*-solaris*) target=sparcv9-sun-solaris2.8
John Criswell7a73b802003-06-30 21:59:07 +00001888
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001889 ;;
John Criswell7a73b802003-06-30 21:59:07 +00001890esac
1891
John Criswell76595452003-07-01 22:07:39 +00001892case $target in
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001893 i*86-*) ARCH=x86
John Criswell76595452003-07-01 22:07:39 +00001894
1895 ;;
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001896 sparc*-*) ARCH=Sparc
1897
1898 ;;
1899 powerpc*-*) ARCH=PowerPC
1900
1901 ;;
1902 *) ARCH=Unknown
John Criswell76595452003-07-01 22:07:39 +00001903
1904 ;;
1905esac
1906
John Criswell7a73b802003-06-30 21:59:07 +00001907ac_ext=cc
1908ac_cpp='$CXXCPP $CPPFLAGS'
1909ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1910ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1911ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1912if test -n "$ac_tool_prefix"; then
1913 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1914 do
1915 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1916set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1917echo "$as_me:$LINENO: checking for $ac_word" >&5
1918echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1919if test "${ac_cv_prog_CXX+set}" = set; then
1920 echo $ECHO_N "(cached) $ECHO_C" >&6
1921else
1922 if test -n "$CXX"; then
1923 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1924else
1925as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1926for as_dir in $PATH
1927do
1928 IFS=$as_save_IFS
1929 test -z "$as_dir" && as_dir=.
1930 for ac_exec_ext in '' $ac_executable_extensions; do
1931 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1932 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1933 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1934 break 2
1935 fi
1936done
1937done
1938
1939fi
1940fi
1941CXX=$ac_cv_prog_CXX
1942if test -n "$CXX"; then
1943 echo "$as_me:$LINENO: result: $CXX" >&5
1944echo "${ECHO_T}$CXX" >&6
1945else
1946 echo "$as_me:$LINENO: result: no" >&5
1947echo "${ECHO_T}no" >&6
1948fi
1949
1950 test -n "$CXX" && break
1951 done
1952fi
1953if test -z "$CXX"; then
1954 ac_ct_CXX=$CXX
1955 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1956do
1957 # Extract the first word of "$ac_prog", so it can be a program name with args.
1958set dummy $ac_prog; ac_word=$2
1959echo "$as_me:$LINENO: checking for $ac_word" >&5
1960echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1961if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1962 echo $ECHO_N "(cached) $ECHO_C" >&6
1963else
1964 if test -n "$ac_ct_CXX"; then
1965 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1966else
1967as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1968for as_dir in $PATH
1969do
1970 IFS=$as_save_IFS
1971 test -z "$as_dir" && as_dir=.
1972 for ac_exec_ext in '' $ac_executable_extensions; do
1973 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1974 ac_cv_prog_ac_ct_CXX="$ac_prog"
1975 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1976 break 2
1977 fi
1978done
1979done
1980
1981fi
1982fi
1983ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
1984if test -n "$ac_ct_CXX"; then
1985 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
1986echo "${ECHO_T}$ac_ct_CXX" >&6
1987else
1988 echo "$as_me:$LINENO: result: no" >&5
1989echo "${ECHO_T}no" >&6
1990fi
1991
1992 test -n "$ac_ct_CXX" && break
1993done
1994test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
1995
1996 CXX=$ac_ct_CXX
1997fi
1998
1999
2000# Provide some information about the compiler.
2001echo "$as_me:$LINENO:" \
2002 "checking for C++ compiler version" >&5
2003ac_compiler=`set X $ac_compile; echo $2`
2004{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2005 (eval $ac_compiler --version </dev/null >&5) 2>&5
2006 ac_status=$?
2007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2008 (exit $ac_status); }
2009{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2010 (eval $ac_compiler -v </dev/null >&5) 2>&5
2011 ac_status=$?
2012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2013 (exit $ac_status); }
2014{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2015 (eval $ac_compiler -V </dev/null >&5) 2>&5
2016 ac_status=$?
2017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2018 (exit $ac_status); }
2019
2020cat >conftest.$ac_ext <<_ACEOF
2021#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002022/* confdefs.h. */
2023_ACEOF
2024cat confdefs.h >>conftest.$ac_ext
2025cat >>conftest.$ac_ext <<_ACEOF
2026/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002027
John Criswell7a73b802003-06-30 21:59:07 +00002028int
2029main ()
2030{
2031
2032 ;
2033 return 0;
2034}
2035_ACEOF
2036ac_clean_files_save=$ac_clean_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002037ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002038# Try to create an executable without -o first, disregard a.out.
2039# It will help us diagnose broken compilers, and finding out an intuition
2040# of exeext.
2041echo "$as_me:$LINENO: checking for C++ compiler default output" >&5
2042echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6
2043ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2044if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2045 (eval $ac_link_default) 2>&5
2046 ac_status=$?
2047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2048 (exit $ac_status); }; then
2049 # Find the output, starting from the most likely. This scheme is
2050# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2051# resort.
2052
2053# Be careful to initialize this variable, since it used to be cached.
2054# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2055ac_cv_exeext=
John Criswell0c38eaf2003-09-10 15:17:25 +00002056# b.out is created by i960 compilers.
2057for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2058do
2059 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002060 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002061 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2062 ;;
2063 conftest.$ac_ext )
2064 # This is the source file.
2065 ;;
2066 [ab].out )
2067 # We found the default executable, but exeext='' is most
2068 # certainly right.
2069 break;;
2070 *.* )
2071 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2072 # FIXME: I believe we export ac_cv_exeext for Libtool,
2073 # but it would be cool to find out if it's true. Does anybody
2074 # maintain Libtool? --akim.
2075 export ac_cv_exeext
2076 break;;
2077 * )
2078 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002079 esac
2080done
2081else
2082 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002083sed 's/^/| /' conftest.$ac_ext >&5
2084
2085{ { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2086See \`config.log' for more details." >&5
2087echo "$as_me: error: C++ compiler cannot create executables
2088See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002089 { (exit 77); exit 77; }; }
2090fi
2091
2092ac_exeext=$ac_cv_exeext
2093echo "$as_me:$LINENO: result: $ac_file" >&5
2094echo "${ECHO_T}$ac_file" >&6
2095
2096# Check the compiler produces executables we can run. If not, either
2097# the compiler is broken, or we cross compile.
2098echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2099echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2100# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2101# If not cross compiling, check that we can run a simple program.
2102if test "$cross_compiling" != yes; then
2103 if { ac_try='./$ac_file'
2104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2105 (eval $ac_try) 2>&5
2106 ac_status=$?
2107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2108 (exit $ac_status); }; }; then
2109 cross_compiling=no
2110 else
2111 if test "$cross_compiling" = maybe; then
2112 cross_compiling=yes
2113 else
2114 { { echo "$as_me:$LINENO: 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." >&5
John Criswell7a73b802003-06-30 21:59:07 +00002117echo "$as_me: error: cannot run C++ compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002118If you meant to cross compile, use \`--host'.
2119See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002120 { (exit 1); exit 1; }; }
2121 fi
2122 fi
2123fi
2124echo "$as_me:$LINENO: result: yes" >&5
2125echo "${ECHO_T}yes" >&6
2126
John Criswell0c38eaf2003-09-10 15:17:25 +00002127rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002128ac_clean_files=$ac_clean_files_save
2129# Check the compiler produces executables we can run. If not, either
2130# the compiler is broken, or we cross compile.
2131echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2132echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2133echo "$as_me:$LINENO: result: $cross_compiling" >&5
2134echo "${ECHO_T}$cross_compiling" >&6
2135
2136echo "$as_me:$LINENO: checking for suffix of executables" >&5
2137echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2138if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2139 (eval $ac_link) 2>&5
2140 ac_status=$?
2141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2142 (exit $ac_status); }; then
2143 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2144# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2145# work properly (i.e., refer to `conftest.exe'), while it won't with
2146# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002147for ac_file in conftest.exe conftest conftest.*; do
2148 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002149 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002150 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002151 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2152 export ac_cv_exeext
2153 break;;
2154 * ) break;;
2155 esac
2156done
2157else
John Criswell0c38eaf2003-09-10 15:17:25 +00002158 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2159See \`config.log' for more details." >&5
2160echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2161See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002162 { (exit 1); exit 1; }; }
2163fi
2164
2165rm -f conftest$ac_cv_exeext
2166echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2167echo "${ECHO_T}$ac_cv_exeext" >&6
2168
2169rm -f conftest.$ac_ext
2170EXEEXT=$ac_cv_exeext
2171ac_exeext=$EXEEXT
2172echo "$as_me:$LINENO: checking for suffix of object files" >&5
2173echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2174if test "${ac_cv_objext+set}" = set; then
2175 echo $ECHO_N "(cached) $ECHO_C" >&6
2176else
2177 cat >conftest.$ac_ext <<_ACEOF
2178#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002179/* confdefs.h. */
2180_ACEOF
2181cat confdefs.h >>conftest.$ac_ext
2182cat >>conftest.$ac_ext <<_ACEOF
2183/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002184
John Criswell7a73b802003-06-30 21:59:07 +00002185int
2186main ()
2187{
2188
2189 ;
2190 return 0;
2191}
2192_ACEOF
2193rm -f conftest.o conftest.obj
2194if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2195 (eval $ac_compile) 2>&5
2196 ac_status=$?
2197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2198 (exit $ac_status); }; then
2199 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2200 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002201 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002202 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2203 break;;
2204 esac
2205done
2206else
2207 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002208sed 's/^/| /' conftest.$ac_ext >&5
2209
2210{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2211See \`config.log' for more details." >&5
2212echo "$as_me: error: cannot compute suffix of object files: cannot compile
2213See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002214 { (exit 1); exit 1; }; }
2215fi
2216
2217rm -f conftest.$ac_cv_objext conftest.$ac_ext
2218fi
2219echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2220echo "${ECHO_T}$ac_cv_objext" >&6
2221OBJEXT=$ac_cv_objext
2222ac_objext=$OBJEXT
2223echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2224echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2225if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2226 echo $ECHO_N "(cached) $ECHO_C" >&6
2227else
2228 cat >conftest.$ac_ext <<_ACEOF
2229#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002230/* confdefs.h. */
2231_ACEOF
2232cat confdefs.h >>conftest.$ac_ext
2233cat >>conftest.$ac_ext <<_ACEOF
2234/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002235
John Criswell7a73b802003-06-30 21:59:07 +00002236int
2237main ()
2238{
2239#ifndef __GNUC__
2240 choke me
2241#endif
2242
2243 ;
2244 return 0;
2245}
2246_ACEOF
2247rm -f conftest.$ac_objext
2248if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2249 (eval $ac_compile) 2>&5
2250 ac_status=$?
2251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2252 (exit $ac_status); } &&
2253 { ac_try='test -s conftest.$ac_objext'
2254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2255 (eval $ac_try) 2>&5
2256 ac_status=$?
2257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2258 (exit $ac_status); }; }; then
2259 ac_compiler_gnu=yes
2260else
2261 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002262sed 's/^/| /' conftest.$ac_ext >&5
2263
John Criswell7a73b802003-06-30 21:59:07 +00002264ac_compiler_gnu=no
2265fi
2266rm -f conftest.$ac_objext conftest.$ac_ext
2267ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2268
2269fi
2270echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2271echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2272GXX=`test $ac_compiler_gnu = yes && echo yes`
2273ac_test_CXXFLAGS=${CXXFLAGS+set}
2274ac_save_CXXFLAGS=$CXXFLAGS
2275CXXFLAGS="-g"
2276echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2277echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2278if test "${ac_cv_prog_cxx_g+set}" = set; then
2279 echo $ECHO_N "(cached) $ECHO_C" >&6
2280else
2281 cat >conftest.$ac_ext <<_ACEOF
2282#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002283/* confdefs.h. */
2284_ACEOF
2285cat confdefs.h >>conftest.$ac_ext
2286cat >>conftest.$ac_ext <<_ACEOF
2287/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002288
John Criswell7a73b802003-06-30 21:59:07 +00002289int
2290main ()
2291{
2292
2293 ;
2294 return 0;
2295}
2296_ACEOF
2297rm -f conftest.$ac_objext
2298if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2299 (eval $ac_compile) 2>&5
2300 ac_status=$?
2301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2302 (exit $ac_status); } &&
2303 { ac_try='test -s conftest.$ac_objext'
2304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2305 (eval $ac_try) 2>&5
2306 ac_status=$?
2307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2308 (exit $ac_status); }; }; then
2309 ac_cv_prog_cxx_g=yes
2310else
2311 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002312sed 's/^/| /' conftest.$ac_ext >&5
2313
John Criswell7a73b802003-06-30 21:59:07 +00002314ac_cv_prog_cxx_g=no
2315fi
2316rm -f conftest.$ac_objext conftest.$ac_ext
2317fi
2318echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2319echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2320if test "$ac_test_CXXFLAGS" = set; then
2321 CXXFLAGS=$ac_save_CXXFLAGS
2322elif test $ac_cv_prog_cxx_g = yes; then
2323 if test "$GXX" = yes; then
2324 CXXFLAGS="-g -O2"
2325 else
2326 CXXFLAGS="-g"
2327 fi
2328else
2329 if test "$GXX" = yes; then
2330 CXXFLAGS="-O2"
2331 else
2332 CXXFLAGS=
2333 fi
2334fi
2335for ac_declaration in \
2336 ''\
2337 '#include <stdlib.h>' \
2338 'extern "C" void std::exit (int) throw (); using std::exit;' \
2339 'extern "C" void std::exit (int); using std::exit;' \
2340 'extern "C" void exit (int) throw ();' \
2341 'extern "C" void exit (int);' \
2342 'void exit (int);'
2343do
2344 cat >conftest.$ac_ext <<_ACEOF
2345#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002346/* confdefs.h. */
2347_ACEOF
2348cat confdefs.h >>conftest.$ac_ext
2349cat >>conftest.$ac_ext <<_ACEOF
2350/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002351#include <stdlib.h>
2352$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00002353int
2354main ()
2355{
2356exit (42);
2357 ;
2358 return 0;
2359}
2360_ACEOF
2361rm -f conftest.$ac_objext
2362if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2363 (eval $ac_compile) 2>&5
2364 ac_status=$?
2365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2366 (exit $ac_status); } &&
2367 { ac_try='test -s conftest.$ac_objext'
2368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2369 (eval $ac_try) 2>&5
2370 ac_status=$?
2371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2372 (exit $ac_status); }; }; then
2373 :
2374else
2375 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002376sed 's/^/| /' conftest.$ac_ext >&5
2377
John Criswell7a73b802003-06-30 21:59:07 +00002378continue
2379fi
2380rm -f conftest.$ac_objext conftest.$ac_ext
2381 cat >conftest.$ac_ext <<_ACEOF
2382#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002383/* confdefs.h. */
2384_ACEOF
2385cat confdefs.h >>conftest.$ac_ext
2386cat >>conftest.$ac_ext <<_ACEOF
2387/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002388$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00002389int
2390main ()
2391{
2392exit (42);
2393 ;
2394 return 0;
2395}
2396_ACEOF
2397rm -f conftest.$ac_objext
2398if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2399 (eval $ac_compile) 2>&5
2400 ac_status=$?
2401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2402 (exit $ac_status); } &&
2403 { ac_try='test -s conftest.$ac_objext'
2404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2405 (eval $ac_try) 2>&5
2406 ac_status=$?
2407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2408 (exit $ac_status); }; }; then
2409 break
2410else
2411 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002412sed 's/^/| /' conftest.$ac_ext >&5
2413
John Criswell7a73b802003-06-30 21:59:07 +00002414fi
2415rm -f conftest.$ac_objext conftest.$ac_ext
2416done
2417rm -f conftest*
2418if test -n "$ac_declaration"; then
2419 echo '#ifdef __cplusplus' >>confdefs.h
2420 echo $ac_declaration >>confdefs.h
2421 echo '#endif' >>confdefs.h
2422fi
2423
2424ac_ext=c
2425ac_cpp='$CPP $CPPFLAGS'
2426ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2427ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2428ac_compiler_gnu=$ac_cv_c_compiler_gnu
2429
2430ac_ext=c
2431ac_cpp='$CPP $CPPFLAGS'
2432ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2433ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2434ac_compiler_gnu=$ac_cv_c_compiler_gnu
2435if test -n "$ac_tool_prefix"; then
2436 for ac_prog in gcc
2437 do
2438 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2439set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2440echo "$as_me:$LINENO: checking for $ac_word" >&5
2441echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2442if test "${ac_cv_prog_CC+set}" = set; then
2443 echo $ECHO_N "(cached) $ECHO_C" >&6
2444else
2445 if test -n "$CC"; then
2446 ac_cv_prog_CC="$CC" # Let the user override the test.
2447else
2448as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2449for as_dir in $PATH
2450do
2451 IFS=$as_save_IFS
2452 test -z "$as_dir" && as_dir=.
2453 for ac_exec_ext in '' $ac_executable_extensions; do
2454 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2455 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2456 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2457 break 2
2458 fi
2459done
2460done
2461
2462fi
2463fi
2464CC=$ac_cv_prog_CC
2465if test -n "$CC"; then
2466 echo "$as_me:$LINENO: result: $CC" >&5
2467echo "${ECHO_T}$CC" >&6
2468else
2469 echo "$as_me:$LINENO: result: no" >&5
2470echo "${ECHO_T}no" >&6
2471fi
2472
2473 test -n "$CC" && break
2474 done
2475fi
2476if test -z "$CC"; then
2477 ac_ct_CC=$CC
2478 for ac_prog in gcc
2479do
2480 # Extract the first word of "$ac_prog", so it can be a program name with args.
2481set dummy $ac_prog; ac_word=$2
2482echo "$as_me:$LINENO: checking for $ac_word" >&5
2483echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2484if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2485 echo $ECHO_N "(cached) $ECHO_C" >&6
2486else
2487 if test -n "$ac_ct_CC"; then
2488 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2489else
2490as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2491for as_dir in $PATH
2492do
2493 IFS=$as_save_IFS
2494 test -z "$as_dir" && as_dir=.
2495 for ac_exec_ext in '' $ac_executable_extensions; do
2496 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2497 ac_cv_prog_ac_ct_CC="$ac_prog"
2498 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2499 break 2
2500 fi
2501done
2502done
2503
2504fi
2505fi
2506ac_ct_CC=$ac_cv_prog_ac_ct_CC
2507if test -n "$ac_ct_CC"; then
2508 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2509echo "${ECHO_T}$ac_ct_CC" >&6
2510else
2511 echo "$as_me:$LINENO: result: no" >&5
2512echo "${ECHO_T}no" >&6
2513fi
2514
2515 test -n "$ac_ct_CC" && break
2516done
2517
2518 CC=$ac_ct_CC
2519fi
2520
2521
John Criswell0c38eaf2003-09-10 15:17:25 +00002522test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2523See \`config.log' for more details." >&5
2524echo "$as_me: error: no acceptable C compiler found in \$PATH
2525See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002526 { (exit 1); exit 1; }; }
2527
2528# Provide some information about the compiler.
2529echo "$as_me:$LINENO:" \
2530 "checking for C compiler version" >&5
2531ac_compiler=`set X $ac_compile; echo $2`
2532{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2533 (eval $ac_compiler --version </dev/null >&5) 2>&5
2534 ac_status=$?
2535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2536 (exit $ac_status); }
2537{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2538 (eval $ac_compiler -v </dev/null >&5) 2>&5
2539 ac_status=$?
2540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2541 (exit $ac_status); }
2542{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2543 (eval $ac_compiler -V </dev/null >&5) 2>&5
2544 ac_status=$?
2545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2546 (exit $ac_status); }
2547
2548echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2549echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2550if test "${ac_cv_c_compiler_gnu+set}" = set; then
2551 echo $ECHO_N "(cached) $ECHO_C" >&6
2552else
2553 cat >conftest.$ac_ext <<_ACEOF
2554#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002555/* confdefs.h. */
2556_ACEOF
2557cat confdefs.h >>conftest.$ac_ext
2558cat >>conftest.$ac_ext <<_ACEOF
2559/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002560
John Criswell7a73b802003-06-30 21:59:07 +00002561int
2562main ()
2563{
2564#ifndef __GNUC__
2565 choke me
2566#endif
2567
2568 ;
2569 return 0;
2570}
2571_ACEOF
2572rm -f conftest.$ac_objext
2573if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2574 (eval $ac_compile) 2>&5
2575 ac_status=$?
2576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2577 (exit $ac_status); } &&
2578 { ac_try='test -s conftest.$ac_objext'
2579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2580 (eval $ac_try) 2>&5
2581 ac_status=$?
2582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2583 (exit $ac_status); }; }; then
2584 ac_compiler_gnu=yes
2585else
2586 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002587sed 's/^/| /' conftest.$ac_ext >&5
2588
John Criswell7a73b802003-06-30 21:59:07 +00002589ac_compiler_gnu=no
2590fi
2591rm -f conftest.$ac_objext conftest.$ac_ext
2592ac_cv_c_compiler_gnu=$ac_compiler_gnu
2593
2594fi
2595echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2596echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2597GCC=`test $ac_compiler_gnu = yes && echo yes`
2598ac_test_CFLAGS=${CFLAGS+set}
2599ac_save_CFLAGS=$CFLAGS
2600CFLAGS="-g"
2601echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2602echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2603if test "${ac_cv_prog_cc_g+set}" = set; then
2604 echo $ECHO_N "(cached) $ECHO_C" >&6
2605else
2606 cat >conftest.$ac_ext <<_ACEOF
2607#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002608/* confdefs.h. */
2609_ACEOF
2610cat confdefs.h >>conftest.$ac_ext
2611cat >>conftest.$ac_ext <<_ACEOF
2612/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002613
John Criswell7a73b802003-06-30 21:59:07 +00002614int
2615main ()
2616{
2617
2618 ;
2619 return 0;
2620}
2621_ACEOF
2622rm -f conftest.$ac_objext
2623if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2624 (eval $ac_compile) 2>&5
2625 ac_status=$?
2626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2627 (exit $ac_status); } &&
2628 { ac_try='test -s conftest.$ac_objext'
2629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2630 (eval $ac_try) 2>&5
2631 ac_status=$?
2632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2633 (exit $ac_status); }; }; then
2634 ac_cv_prog_cc_g=yes
2635else
2636 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002637sed 's/^/| /' conftest.$ac_ext >&5
2638
John Criswell7a73b802003-06-30 21:59:07 +00002639ac_cv_prog_cc_g=no
2640fi
2641rm -f conftest.$ac_objext conftest.$ac_ext
2642fi
2643echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2644echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2645if test "$ac_test_CFLAGS" = set; then
2646 CFLAGS=$ac_save_CFLAGS
2647elif test $ac_cv_prog_cc_g = yes; then
2648 if test "$GCC" = yes; then
2649 CFLAGS="-g -O2"
2650 else
2651 CFLAGS="-g"
2652 fi
2653else
2654 if test "$GCC" = yes; then
2655 CFLAGS="-O2"
2656 else
2657 CFLAGS=
2658 fi
2659fi
John Criswell0c38eaf2003-09-10 15:17:25 +00002660echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2661echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2662if test "${ac_cv_prog_cc_stdc+set}" = set; then
2663 echo $ECHO_N "(cached) $ECHO_C" >&6
2664else
2665 ac_cv_prog_cc_stdc=no
2666ac_save_CC=$CC
2667cat >conftest.$ac_ext <<_ACEOF
2668#line $LINENO "configure"
2669/* confdefs.h. */
2670_ACEOF
2671cat confdefs.h >>conftest.$ac_ext
2672cat >>conftest.$ac_ext <<_ACEOF
2673/* end confdefs.h. */
2674#include <stdarg.h>
2675#include <stdio.h>
2676#include <sys/types.h>
2677#include <sys/stat.h>
2678/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2679struct buf { int x; };
2680FILE * (*rcsopen) (struct buf *, struct stat *, int);
2681static char *e (p, i)
2682 char **p;
2683 int i;
2684{
2685 return p[i];
2686}
2687static char *f (char * (*g) (char **, int), char **p, ...)
2688{
2689 char *s;
2690 va_list v;
2691 va_start (v,p);
2692 s = g (p, va_arg (v,int));
2693 va_end (v);
2694 return s;
2695}
2696int test (int i, double x);
2697struct s1 {int (*f) (int a);};
2698struct s2 {int (*f) (double a);};
2699int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2700int argc;
2701char **argv;
2702int
2703main ()
2704{
2705return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2706 ;
2707 return 0;
2708}
2709_ACEOF
2710# Don't try gcc -ansi; that turns off useful extensions and
2711# breaks some systems' header files.
2712# AIX -qlanglvl=ansi
2713# Ultrix and OSF/1 -std1
2714# HP-UX 10.20 and later -Ae
2715# HP-UX older versions -Aa -D_HPUX_SOURCE
2716# SVR4 -Xc -D__EXTENSIONS__
2717for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2718do
2719 CC="$ac_save_CC $ac_arg"
2720 rm -f conftest.$ac_objext
2721if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2722 (eval $ac_compile) 2>&5
2723 ac_status=$?
2724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2725 (exit $ac_status); } &&
2726 { ac_try='test -s conftest.$ac_objext'
2727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2728 (eval $ac_try) 2>&5
2729 ac_status=$?
2730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2731 (exit $ac_status); }; }; then
2732 ac_cv_prog_cc_stdc=$ac_arg
2733break
2734else
2735 echo "$as_me: failed program was:" >&5
2736sed 's/^/| /' conftest.$ac_ext >&5
2737
2738fi
2739rm -f conftest.$ac_objext
2740done
2741rm -f conftest.$ac_ext conftest.$ac_objext
2742CC=$ac_save_CC
2743
2744fi
2745
2746case "x$ac_cv_prog_cc_stdc" in
2747 x|xno)
2748 echo "$as_me:$LINENO: result: none needed" >&5
2749echo "${ECHO_T}none needed" >&6 ;;
2750 *)
2751 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2752echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2753 CC="$CC $ac_cv_prog_cc_stdc" ;;
2754esac
2755
John Criswell7a73b802003-06-30 21:59:07 +00002756# Some people use a C++ compiler to compile C. Since we use `exit',
2757# in C++ we need to declare it. In case someone uses the same compiler
2758# for both compiling C and C++ we need to have the C++ compiler decide
2759# the declaration of exit, since it's the most demanding environment.
2760cat >conftest.$ac_ext <<_ACEOF
2761#ifndef __cplusplus
2762 choke me
2763#endif
2764_ACEOF
2765rm -f conftest.$ac_objext
2766if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2767 (eval $ac_compile) 2>&5
2768 ac_status=$?
2769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2770 (exit $ac_status); } &&
2771 { ac_try='test -s conftest.$ac_objext'
2772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2773 (eval $ac_try) 2>&5
2774 ac_status=$?
2775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2776 (exit $ac_status); }; }; then
2777 for ac_declaration in \
2778 ''\
2779 '#include <stdlib.h>' \
2780 'extern "C" void std::exit (int) throw (); using std::exit;' \
2781 'extern "C" void std::exit (int); using std::exit;' \
2782 'extern "C" void exit (int) throw ();' \
2783 'extern "C" void exit (int);' \
2784 'void exit (int);'
2785do
2786 cat >conftest.$ac_ext <<_ACEOF
2787#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002788/* confdefs.h. */
2789_ACEOF
2790cat confdefs.h >>conftest.$ac_ext
2791cat >>conftest.$ac_ext <<_ACEOF
2792/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002793#include <stdlib.h>
2794$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00002795int
2796main ()
2797{
2798exit (42);
2799 ;
2800 return 0;
2801}
2802_ACEOF
2803rm -f conftest.$ac_objext
2804if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2805 (eval $ac_compile) 2>&5
2806 ac_status=$?
2807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2808 (exit $ac_status); } &&
2809 { ac_try='test -s conftest.$ac_objext'
2810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2811 (eval $ac_try) 2>&5
2812 ac_status=$?
2813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2814 (exit $ac_status); }; }; then
2815 :
2816else
2817 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002818sed 's/^/| /' conftest.$ac_ext >&5
2819
John Criswell7a73b802003-06-30 21:59:07 +00002820continue
2821fi
2822rm -f conftest.$ac_objext conftest.$ac_ext
2823 cat >conftest.$ac_ext <<_ACEOF
2824#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002825/* confdefs.h. */
2826_ACEOF
2827cat confdefs.h >>conftest.$ac_ext
2828cat >>conftest.$ac_ext <<_ACEOF
2829/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002830$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00002831int
2832main ()
2833{
2834exit (42);
2835 ;
2836 return 0;
2837}
2838_ACEOF
2839rm -f conftest.$ac_objext
2840if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2841 (eval $ac_compile) 2>&5
2842 ac_status=$?
2843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2844 (exit $ac_status); } &&
2845 { ac_try='test -s conftest.$ac_objext'
2846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2847 (eval $ac_try) 2>&5
2848 ac_status=$?
2849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2850 (exit $ac_status); }; }; then
2851 break
2852else
2853 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002854sed 's/^/| /' conftest.$ac_ext >&5
2855
John Criswell7a73b802003-06-30 21:59:07 +00002856fi
2857rm -f conftest.$ac_objext conftest.$ac_ext
2858done
2859rm -f conftest*
2860if test -n "$ac_declaration"; then
2861 echo '#ifdef __cplusplus' >>confdefs.h
2862 echo $ac_declaration >>confdefs.h
2863 echo '#endif' >>confdefs.h
2864fi
2865
2866else
2867 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002868sed 's/^/| /' conftest.$ac_ext >&5
2869
John Criswell7a73b802003-06-30 21:59:07 +00002870fi
2871rm -f conftest.$ac_objext conftest.$ac_ext
2872ac_ext=c
2873ac_cpp='$CPP $CPPFLAGS'
2874ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2875ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2876ac_compiler_gnu=$ac_cv_c_compiler_gnu
2877
2878ac_ext=c
2879ac_cpp='$CPP $CPPFLAGS'
2880ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2881ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2882ac_compiler_gnu=$ac_cv_c_compiler_gnu
2883echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2884echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2885# On Suns, sometimes $CPP names a directory.
2886if test -n "$CPP" && test -d "$CPP"; then
2887 CPP=
2888fi
2889if test -z "$CPP"; then
2890 if test "${ac_cv_prog_CPP+set}" = set; then
2891 echo $ECHO_N "(cached) $ECHO_C" >&6
2892else
2893 # Double quotes because CPP needs to be expanded
2894 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2895 do
2896 ac_preproc_ok=false
2897for ac_c_preproc_warn_flag in '' yes
2898do
2899 # Use a header file that comes with gcc, so configuring glibc
2900 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00002901 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2902 # <limits.h> exists even on freestanding compilers.
John Criswell7a73b802003-06-30 21:59:07 +00002903 # On the NeXT, cc -E runs the code through the compiler's parser,
2904 # not just through cpp. "Syntax error" is here to catch this case.
2905 cat >conftest.$ac_ext <<_ACEOF
2906#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002907/* confdefs.h. */
2908_ACEOF
2909cat confdefs.h >>conftest.$ac_ext
2910cat >>conftest.$ac_ext <<_ACEOF
2911/* end confdefs.h. */
2912#ifdef __STDC__
2913# include <limits.h>
2914#else
2915# include <assert.h>
2916#endif
John Criswell7a73b802003-06-30 21:59:07 +00002917 Syntax error
2918_ACEOF
2919if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2920 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2921 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00002922 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00002923 rm -f conftest.er1
2924 cat conftest.err >&5
2925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2926 (exit $ac_status); } >/dev/null; then
2927 if test -s conftest.err; then
2928 ac_cpp_err=$ac_c_preproc_warn_flag
2929 else
2930 ac_cpp_err=
2931 fi
2932else
2933 ac_cpp_err=yes
2934fi
2935if test -z "$ac_cpp_err"; then
2936 :
2937else
2938 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002939sed 's/^/| /' conftest.$ac_ext >&5
2940
John Criswell7a73b802003-06-30 21:59:07 +00002941 # Broken: fails on valid input.
2942continue
2943fi
2944rm -f conftest.err conftest.$ac_ext
2945
2946 # OK, works on sane cases. Now check whether non-existent headers
2947 # can be detected and how.
2948 cat >conftest.$ac_ext <<_ACEOF
2949#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002950/* confdefs.h. */
2951_ACEOF
2952cat confdefs.h >>conftest.$ac_ext
2953cat >>conftest.$ac_ext <<_ACEOF
2954/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002955#include <ac_nonexistent.h>
2956_ACEOF
2957if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2958 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2959 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00002960 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00002961 rm -f conftest.er1
2962 cat conftest.err >&5
2963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2964 (exit $ac_status); } >/dev/null; then
2965 if test -s conftest.err; then
2966 ac_cpp_err=$ac_c_preproc_warn_flag
2967 else
2968 ac_cpp_err=
2969 fi
2970else
2971 ac_cpp_err=yes
2972fi
2973if test -z "$ac_cpp_err"; then
2974 # Broken: success on invalid input.
2975continue
2976else
2977 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002978sed 's/^/| /' conftest.$ac_ext >&5
2979
John Criswell7a73b802003-06-30 21:59:07 +00002980 # Passes both tests.
2981ac_preproc_ok=:
2982break
2983fi
2984rm -f conftest.err conftest.$ac_ext
2985
2986done
2987# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2988rm -f conftest.err conftest.$ac_ext
2989if $ac_preproc_ok; then
2990 break
2991fi
2992
2993 done
2994 ac_cv_prog_CPP=$CPP
2995
2996fi
2997 CPP=$ac_cv_prog_CPP
2998else
2999 ac_cv_prog_CPP=$CPP
3000fi
3001echo "$as_me:$LINENO: result: $CPP" >&5
3002echo "${ECHO_T}$CPP" >&6
3003ac_preproc_ok=false
3004for ac_c_preproc_warn_flag in '' yes
3005do
3006 # Use a header file that comes with gcc, so configuring glibc
3007 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00003008 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3009 # <limits.h> exists even on freestanding compilers.
John Criswell7a73b802003-06-30 21:59:07 +00003010 # On the NeXT, cc -E runs the code through the compiler's parser,
3011 # not just through cpp. "Syntax error" is here to catch this case.
3012 cat >conftest.$ac_ext <<_ACEOF
3013#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003014/* confdefs.h. */
3015_ACEOF
3016cat confdefs.h >>conftest.$ac_ext
3017cat >>conftest.$ac_ext <<_ACEOF
3018/* end confdefs.h. */
3019#ifdef __STDC__
3020# include <limits.h>
3021#else
3022# include <assert.h>
3023#endif
John Criswell7a73b802003-06-30 21:59:07 +00003024 Syntax error
3025_ACEOF
3026if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3027 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3028 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003029 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003030 rm -f conftest.er1
3031 cat conftest.err >&5
3032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3033 (exit $ac_status); } >/dev/null; then
3034 if test -s conftest.err; then
3035 ac_cpp_err=$ac_c_preproc_warn_flag
3036 else
3037 ac_cpp_err=
3038 fi
3039else
3040 ac_cpp_err=yes
3041fi
3042if test -z "$ac_cpp_err"; then
3043 :
3044else
3045 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003046sed 's/^/| /' conftest.$ac_ext >&5
3047
John Criswell7a73b802003-06-30 21:59:07 +00003048 # Broken: fails on valid input.
3049continue
3050fi
3051rm -f conftest.err conftest.$ac_ext
3052
3053 # OK, works on sane cases. Now check whether non-existent headers
3054 # can be detected and how.
3055 cat >conftest.$ac_ext <<_ACEOF
3056#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003057/* confdefs.h. */
3058_ACEOF
3059cat confdefs.h >>conftest.$ac_ext
3060cat >>conftest.$ac_ext <<_ACEOF
3061/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003062#include <ac_nonexistent.h>
3063_ACEOF
3064if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3065 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3066 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003067 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003068 rm -f conftest.er1
3069 cat conftest.err >&5
3070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3071 (exit $ac_status); } >/dev/null; then
3072 if test -s conftest.err; then
3073 ac_cpp_err=$ac_c_preproc_warn_flag
3074 else
3075 ac_cpp_err=
3076 fi
3077else
3078 ac_cpp_err=yes
3079fi
3080if test -z "$ac_cpp_err"; then
3081 # Broken: success on invalid input.
3082continue
3083else
3084 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003085sed 's/^/| /' conftest.$ac_ext >&5
3086
John Criswell7a73b802003-06-30 21:59:07 +00003087 # Passes both tests.
3088ac_preproc_ok=:
3089break
3090fi
3091rm -f conftest.err conftest.$ac_ext
3092
3093done
3094# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3095rm -f conftest.err conftest.$ac_ext
3096if $ac_preproc_ok; then
3097 :
3098else
John Criswell0c38eaf2003-09-10 15:17:25 +00003099 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3100See \`config.log' for more details." >&5
3101echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3102See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00003103 { (exit 1); exit 1; }; }
3104fi
3105
3106ac_ext=c
3107ac_cpp='$CPP $CPPFLAGS'
3108ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3109ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3110ac_compiler_gnu=$ac_cv_c_compiler_gnu
3111
3112
3113if test "$GCC" != "yes"
3114then
3115 { { echo "$as_me:$LINENO: error: gcc required but not found" >&5
3116echo "$as_me: error: gcc required but not found" >&2;}
3117 { (exit 1); exit 1; }; }
3118fi
John Criswell7a73b802003-06-30 21:59:07 +00003119if test "$GXX" != "yes"
3120then
3121 { { echo "$as_me:$LINENO: error: g++ required but not found" >&5
3122echo "$as_me: error: g++ required but not found" >&2;}
3123 { (exit 1); exit 1; }; }
3124fi
3125
John Criswellde00db22003-08-25 16:49:54 +00003126gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
3127if test "$gccmajor" -lt "3"
3128then
Brian Gaeke26be9c52004-01-13 06:43:16 +00003129 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
3130echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
John Criswellde00db22003-08-25 16:49:54 +00003131 { (exit 1); exit 1; }; }
3132fi
3133
John Criswell7a73b802003-06-30 21:59:07 +00003134 echo "$as_me:$LINENO: checking for GNU make" >&5
3135echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
3136if test "${_cv_gnu_make_command+set}" = set; then
3137 echo $ECHO_N "(cached) $ECHO_C" >&6
3138else
3139 _cv_gnu_make_command='' ;
3140 for a in "$MAKE" make gmake gnumake ; do
3141 if test -z "$a" ; then continue ; fi ;
3142 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
3143 _cv_gnu_make_command=$a ;
3144 break;
3145 fi
3146 done ;
3147
3148fi
3149echo "$as_me:$LINENO: result: $_cv_gnu_make_command" >&5
3150echo "${ECHO_T}$_cv_gnu_make_command" >&6 ;
3151 if test "x$_cv_gnu_make_command" != "x" ; then
3152 ifGNUmake='' ;
3153 else
3154 ifGNUmake='#' ;
3155 echo "$as_me:$LINENO: result: \"Not found\"" >&5
3156echo "${ECHO_T}\"Not found\"" >&6;
3157 fi
3158
3159
3160if test -z "$_cv_gnu_make_command"
3161then
3162 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
3163echo "$as_me: error: GNU Make required but not found" >&2;}
3164 { (exit 1); exit 1; }; }
3165fi
3166
3167
3168echo "$as_me:$LINENO: checking " >&5
3169echo $ECHO_N "checking ... $ECHO_C" >&6
3170if test "${ac_cv_has_flex+set}" = set; then
3171 echo $ECHO_N "(cached) $ECHO_C" >&6
3172else
3173 for ac_prog in flex lex
3174do
3175 # Extract the first word of "$ac_prog", so it can be a program name with args.
3176set dummy $ac_prog; ac_word=$2
3177echo "$as_me:$LINENO: checking for $ac_word" >&5
3178echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3179if test "${ac_cv_prog_LEX+set}" = set; then
3180 echo $ECHO_N "(cached) $ECHO_C" >&6
3181else
3182 if test -n "$LEX"; then
3183 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3184else
3185as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3186for as_dir in $PATH
3187do
3188 IFS=$as_save_IFS
3189 test -z "$as_dir" && as_dir=.
3190 for ac_exec_ext in '' $ac_executable_extensions; do
3191 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3192 ac_cv_prog_LEX="$ac_prog"
3193 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3194 break 2
3195 fi
3196done
3197done
3198
3199fi
3200fi
3201LEX=$ac_cv_prog_LEX
3202if test -n "$LEX"; then
3203 echo "$as_me:$LINENO: result: $LEX" >&5
3204echo "${ECHO_T}$LEX" >&6
3205else
3206 echo "$as_me:$LINENO: result: no" >&5
3207echo "${ECHO_T}no" >&6
3208fi
3209
3210 test -n "$LEX" && break
3211done
3212test -n "$LEX" || LEX=":"
3213
3214if test -z "$LEXLIB"
3215then
3216 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3217echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3218if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3219 echo $ECHO_N "(cached) $ECHO_C" >&6
3220else
3221 ac_check_lib_save_LIBS=$LIBS
3222LIBS="-lfl $LIBS"
3223cat >conftest.$ac_ext <<_ACEOF
3224#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003225/* confdefs.h. */
3226_ACEOF
3227cat confdefs.h >>conftest.$ac_ext
3228cat >>conftest.$ac_ext <<_ACEOF
3229/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003230
3231/* Override any gcc2 internal prototype to avoid an error. */
3232#ifdef __cplusplus
3233extern "C"
3234#endif
3235/* We use char because int might match the return type of a gcc2
3236 builtin and then its argument prototype would still apply. */
3237char yywrap ();
John Criswell7a73b802003-06-30 21:59:07 +00003238int
3239main ()
3240{
3241yywrap ();
3242 ;
3243 return 0;
3244}
3245_ACEOF
3246rm -f conftest.$ac_objext conftest$ac_exeext
3247if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3248 (eval $ac_link) 2>&5
3249 ac_status=$?
3250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3251 (exit $ac_status); } &&
3252 { ac_try='test -s conftest$ac_exeext'
3253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3254 (eval $ac_try) 2>&5
3255 ac_status=$?
3256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3257 (exit $ac_status); }; }; then
3258 ac_cv_lib_fl_yywrap=yes
3259else
3260 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003261sed 's/^/| /' conftest.$ac_ext >&5
3262
John Criswell7a73b802003-06-30 21:59:07 +00003263ac_cv_lib_fl_yywrap=no
3264fi
3265rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3266LIBS=$ac_check_lib_save_LIBS
3267fi
3268echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3269echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3270if test $ac_cv_lib_fl_yywrap = yes; then
3271 LEXLIB="-lfl"
3272else
3273 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3274echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3275if test "${ac_cv_lib_l_yywrap+set}" = set; then
3276 echo $ECHO_N "(cached) $ECHO_C" >&6
3277else
3278 ac_check_lib_save_LIBS=$LIBS
3279LIBS="-ll $LIBS"
3280cat >conftest.$ac_ext <<_ACEOF
3281#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003282/* confdefs.h. */
3283_ACEOF
3284cat confdefs.h >>conftest.$ac_ext
3285cat >>conftest.$ac_ext <<_ACEOF
3286/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003287
3288/* Override any gcc2 internal prototype to avoid an error. */
3289#ifdef __cplusplus
3290extern "C"
3291#endif
3292/* We use char because int might match the return type of a gcc2
3293 builtin and then its argument prototype would still apply. */
3294char yywrap ();
John Criswell7a73b802003-06-30 21:59:07 +00003295int
3296main ()
3297{
3298yywrap ();
3299 ;
3300 return 0;
3301}
3302_ACEOF
3303rm -f conftest.$ac_objext conftest$ac_exeext
3304if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3305 (eval $ac_link) 2>&5
3306 ac_status=$?
3307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3308 (exit $ac_status); } &&
3309 { ac_try='test -s conftest$ac_exeext'
3310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3311 (eval $ac_try) 2>&5
3312 ac_status=$?
3313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3314 (exit $ac_status); }; }; then
3315 ac_cv_lib_l_yywrap=yes
3316else
3317 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003318sed 's/^/| /' conftest.$ac_ext >&5
3319
John Criswell7a73b802003-06-30 21:59:07 +00003320ac_cv_lib_l_yywrap=no
3321fi
3322rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3323LIBS=$ac_check_lib_save_LIBS
3324fi
3325echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3326echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3327if test $ac_cv_lib_l_yywrap = yes; then
3328 LEXLIB="-ll"
3329fi
3330
3331fi
3332
3333fi
3334
3335if test "x$LEX" != "x:"; then
3336 echo "$as_me:$LINENO: checking lex output file root" >&5
3337echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3338if test "${ac_cv_prog_lex_root+set}" = set; then
3339 echo $ECHO_N "(cached) $ECHO_C" >&6
3340else
3341 # The minimal lex program is just a single line: %%. But some broken lexes
3342# (Solaris, I think it was) want two %% lines, so accommodate them.
3343cat >conftest.l <<_ACEOF
3344%%
3345%%
3346_ACEOF
3347{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3348 (eval $LEX conftest.l) 2>&5
3349 ac_status=$?
3350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3351 (exit $ac_status); }
3352if test -f lex.yy.c; then
3353 ac_cv_prog_lex_root=lex.yy
3354elif test -f lexyy.c; then
3355 ac_cv_prog_lex_root=lexyy
3356else
3357 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3358echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3359 { (exit 1); exit 1; }; }
3360fi
3361fi
3362echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3363echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3364rm -f conftest.l
3365LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3366
3367echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3368echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3369if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3370 echo $ECHO_N "(cached) $ECHO_C" >&6
3371else
3372 # POSIX says lex can declare yytext either as a pointer or an array; the
3373# default is implementation-dependent. Figure out which it is, since
3374# not all implementations provide the %pointer and %array declarations.
3375ac_cv_prog_lex_yytext_pointer=no
3376echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3377ac_save_LIBS=$LIBS
3378LIBS="$LIBS $LEXLIB"
3379cat >conftest.$ac_ext <<_ACEOF
3380`cat $LEX_OUTPUT_ROOT.c`
3381_ACEOF
3382rm -f conftest.$ac_objext conftest$ac_exeext
3383if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3384 (eval $ac_link) 2>&5
3385 ac_status=$?
3386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3387 (exit $ac_status); } &&
3388 { ac_try='test -s conftest$ac_exeext'
3389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3390 (eval $ac_try) 2>&5
3391 ac_status=$?
3392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3393 (exit $ac_status); }; }; then
3394 ac_cv_prog_lex_yytext_pointer=yes
3395else
3396 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003397sed 's/^/| /' conftest.$ac_ext >&5
3398
John Criswell7a73b802003-06-30 21:59:07 +00003399fi
3400rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3401LIBS=$ac_save_LIBS
3402rm -f "${LEX_OUTPUT_ROOT}.c"
3403
3404fi
3405echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3406echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3407if test $ac_cv_prog_lex_yytext_pointer = yes; then
3408
3409cat >>confdefs.h <<\_ACEOF
3410#define YYTEXT_POINTER 1
3411_ACEOF
3412
3413fi
3414
3415fi
3416
3417fi
3418echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
3419echo "${ECHO_T}$ac_cv_has_flex" >&6
3420if test "$LEX" != "flex"; then
3421 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
3422echo "$as_me: error: flex not found but required" >&2;}
3423 { (exit 1); exit 1; }; }
3424fi
3425
3426echo "$as_me:$LINENO: checking " >&5
3427echo $ECHO_N "checking ... $ECHO_C" >&6
3428if test "${ac_cv_has_bison+set}" = set; then
3429 echo $ECHO_N "(cached) $ECHO_C" >&6
3430else
3431 for ac_prog in 'bison -y' byacc
3432do
3433 # Extract the first word of "$ac_prog", so it can be a program name with args.
3434set dummy $ac_prog; ac_word=$2
3435echo "$as_me:$LINENO: checking for $ac_word" >&5
3436echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3437if test "${ac_cv_prog_YACC+set}" = set; then
3438 echo $ECHO_N "(cached) $ECHO_C" >&6
3439else
3440 if test -n "$YACC"; then
3441 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3442else
3443as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3444for as_dir in $PATH
3445do
3446 IFS=$as_save_IFS
3447 test -z "$as_dir" && as_dir=.
3448 for ac_exec_ext in '' $ac_executable_extensions; do
3449 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3450 ac_cv_prog_YACC="$ac_prog"
3451 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3452 break 2
3453 fi
3454done
3455done
3456
3457fi
3458fi
3459YACC=$ac_cv_prog_YACC
3460if test -n "$YACC"; then
3461 echo "$as_me:$LINENO: result: $YACC" >&5
3462echo "${ECHO_T}$YACC" >&6
3463else
3464 echo "$as_me:$LINENO: result: no" >&5
3465echo "${ECHO_T}no" >&6
3466fi
3467
3468 test -n "$YACC" && break
3469done
3470test -n "$YACC" || YACC="yacc"
3471
3472
3473fi
3474echo "$as_me:$LINENO: result: $ac_cv_has_bison" >&5
3475echo "${ECHO_T}$ac_cv_has_bison" >&6
3476if test "$YACC" != "bison -y"; then
3477 { { echo "$as_me:$LINENO: error: bison not found but required" >&5
3478echo "$as_me: error: bison not found but required" >&2;}
3479 { (exit 1); exit 1; }; }
3480else
Brian Gaeke12810632004-01-13 06:52:10 +00003481 BISON=bison
John Criswell7a73b802003-06-30 21:59:07 +00003482
3483fi
3484
John Criswell7a73b802003-06-30 21:59:07 +00003485# Check whether --enable-shared or --disable-shared was given.
3486if test "${enable_shared+set}" = set; then
3487 enableval="$enable_shared"
3488 p=${PACKAGE-default}
John Criswell47fdd832003-07-14 16:52:07 +00003489 case $enableval in
3490 yes) enable_shared=yes ;;
3491 no) enable_shared=no ;;
3492 *)
3493 enable_shared=no
3494 # Look at the argument we got. We use all the common list separators.
3495 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3496 for pkg in $enableval; do
3497 IFS="$lt_save_ifs"
3498 if test "X$pkg" = "X$p"; then
3499 enable_shared=yes
3500 fi
3501 done
3502 IFS="$lt_save_ifs"
3503 ;;
3504 esac
John Criswell7a73b802003-06-30 21:59:07 +00003505else
3506 enable_shared=yes
3507fi;
John Criswell47fdd832003-07-14 16:52:07 +00003508
John Criswell7a73b802003-06-30 21:59:07 +00003509# Check whether --enable-static or --disable-static was given.
3510if test "${enable_static+set}" = set; then
3511 enableval="$enable_static"
3512 p=${PACKAGE-default}
John Criswell47fdd832003-07-14 16:52:07 +00003513 case $enableval in
3514 yes) enable_static=yes ;;
3515 no) enable_static=no ;;
3516 *)
3517 enable_static=no
3518 # Look at the argument we got. We use all the common list separators.
3519 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3520 for pkg in $enableval; do
3521 IFS="$lt_save_ifs"
3522 if test "X$pkg" = "X$p"; then
3523 enable_static=yes
3524 fi
3525 done
3526 IFS="$lt_save_ifs"
3527 ;;
3528 esac
John Criswell7a73b802003-06-30 21:59:07 +00003529else
3530 enable_static=yes
3531fi;
John Criswell47fdd832003-07-14 16:52:07 +00003532
John Criswell7a73b802003-06-30 21:59:07 +00003533# Check whether --enable-fast-install or --disable-fast-install was given.
3534if test "${enable_fast_install+set}" = set; then
3535 enableval="$enable_fast_install"
3536 p=${PACKAGE-default}
John Criswell47fdd832003-07-14 16:52:07 +00003537 case $enableval in
3538 yes) enable_fast_install=yes ;;
3539 no) enable_fast_install=no ;;
3540 *)
3541 enable_fast_install=no
3542 # Look at the argument we got. We use all the common list separators.
3543 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3544 for pkg in $enableval; do
3545 IFS="$lt_save_ifs"
3546 if test "X$pkg" = "X$p"; then
3547 enable_fast_install=yes
3548 fi
3549 done
3550 IFS="$lt_save_ifs"
3551 ;;
3552 esac
John Criswell7a73b802003-06-30 21:59:07 +00003553else
3554 enable_fast_install=yes
3555fi;
John Criswell47fdd832003-07-14 16:52:07 +00003556
3557echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3558echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3559if test "${lt_cv_path_SED+set}" = set; then
3560 echo $ECHO_N "(cached) $ECHO_C" >&6
3561else
3562 # Loop through the user's path and test for sed and gsed.
3563# Then use that list of sed's as ones to test for truncation.
3564as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3565for as_dir in $PATH
3566do
3567 IFS=$as_save_IFS
3568 test -z "$as_dir" && as_dir=.
3569 for lt_ac_prog in sed gsed; do
3570 for ac_exec_ext in '' $ac_executable_extensions; do
3571 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3572 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3573 fi
3574 done
3575 done
3576done
3577lt_ac_max=0
3578lt_ac_count=0
3579# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3580# along with /bin/sed that truncates output.
3581for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3582 test ! -f $lt_ac_sed && break
3583 cat /dev/null > conftest.in
3584 lt_ac_count=0
3585 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3586 # Check for GNU sed and select it if it is found.
3587 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3588 lt_cv_path_SED=$lt_ac_sed
3589 break
3590 fi
3591 while true; do
3592 cat conftest.in conftest.in >conftest.tmp
3593 mv conftest.tmp conftest.in
3594 cp conftest.in conftest.nl
3595 echo >>conftest.nl
3596 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3597 cmp -s conftest.out conftest.nl || break
3598 # 10000 chars as input seems more than enough
3599 test $lt_ac_count -gt 10 && break
3600 lt_ac_count=`expr $lt_ac_count + 1`
3601 if test $lt_ac_count -gt $lt_ac_max; then
3602 lt_ac_max=$lt_ac_count
3603 lt_cv_path_SED=$lt_ac_sed
3604 fi
3605 done
3606done
3607SED=$lt_cv_path_SED
3608
John Criswell7a73b802003-06-30 21:59:07 +00003609fi
3610
John Criswell47fdd832003-07-14 16:52:07 +00003611echo "$as_me:$LINENO: result: $SED" >&5
3612echo "${ECHO_T}$SED" >&6
3613
3614echo "$as_me:$LINENO: checking for egrep" >&5
3615echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3616if test "${ac_cv_prog_egrep+set}" = set; then
3617 echo $ECHO_N "(cached) $ECHO_C" >&6
3618else
3619 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3620 then ac_cv_prog_egrep='grep -E'
3621 else ac_cv_prog_egrep='egrep'
3622 fi
3623fi
3624echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3625echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3626 EGREP=$ac_cv_prog_egrep
3627
3628
John Criswell7a73b802003-06-30 21:59:07 +00003629
3630# Check whether --with-gnu-ld or --without-gnu-ld was given.
3631if test "${with_gnu_ld+set}" = set; then
3632 withval="$with_gnu_ld"
3633 test "$withval" = no || with_gnu_ld=yes
3634else
3635 with_gnu_ld=no
3636fi;
3637ac_prog=ld
3638if test "$GCC" = yes; then
3639 # Check if gcc -print-prog-name=ld gives a path.
John Criswell47fdd832003-07-14 16:52:07 +00003640 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3641echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00003642 case $host in
3643 *-*-mingw*)
3644 # gcc leaves a trailing carriage return which upsets mingw
3645 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3646 *)
3647 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3648 esac
3649 case $ac_prog in
3650 # Accept absolute paths.
John Criswell47fdd832003-07-14 16:52:07 +00003651 [\\/]* | ?:[\\/]*)
John Criswell7a73b802003-06-30 21:59:07 +00003652 re_direlt='/[^/][^/]*/\.\./'
3653 # Canonicalize the path of ld
John Criswell47fdd832003-07-14 16:52:07 +00003654 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
John Criswell7a73b802003-06-30 21:59:07 +00003655 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
John Criswell47fdd832003-07-14 16:52:07 +00003656 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
John Criswell7a73b802003-06-30 21:59:07 +00003657 done
3658 test -z "$LD" && LD="$ac_prog"
3659 ;;
3660 "")
3661 # If it fails, then pretend we aren't using GCC.
3662 ac_prog=ld
3663 ;;
3664 *)
3665 # If it is relative, then search for the first ld in PATH.
3666 with_gnu_ld=unknown
3667 ;;
3668 esac
3669elif test "$with_gnu_ld" = yes; then
3670 echo "$as_me:$LINENO: checking for GNU ld" >&5
3671echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3672else
3673 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3674echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3675fi
3676if test "${lt_cv_path_LD+set}" = set; then
3677 echo $ECHO_N "(cached) $ECHO_C" >&6
3678else
3679 if test -z "$LD"; then
John Criswell47fdd832003-07-14 16:52:07 +00003680 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +00003681 for ac_dir in $PATH; do
John Criswell47fdd832003-07-14 16:52:07 +00003682 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00003683 test -z "$ac_dir" && ac_dir=.
3684 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3685 lt_cv_path_LD="$ac_dir/$ac_prog"
3686 # Check to see if the program is GNU ld. I'd rather use --version,
3687 # but apparently some GNU ld's only accept -v.
3688 # Break only if it was the GNU/non-GNU ld that we prefer.
John Criswell47fdd832003-07-14 16:52:07 +00003689 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3690 *GNU* | *'with BFD'*)
John Criswell7a73b802003-06-30 21:59:07 +00003691 test "$with_gnu_ld" != no && break
John Criswell47fdd832003-07-14 16:52:07 +00003692 ;;
3693 *)
John Criswell7a73b802003-06-30 21:59:07 +00003694 test "$with_gnu_ld" != yes && break
John Criswell47fdd832003-07-14 16:52:07 +00003695 ;;
3696 esac
John Criswell7a73b802003-06-30 21:59:07 +00003697 fi
3698 done
John Criswell47fdd832003-07-14 16:52:07 +00003699 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00003700else
3701 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3702fi
3703fi
3704
3705LD="$lt_cv_path_LD"
3706if test -n "$LD"; then
3707 echo "$as_me:$LINENO: result: $LD" >&5
3708echo "${ECHO_T}$LD" >&6
3709else
3710 echo "$as_me:$LINENO: result: no" >&5
3711echo "${ECHO_T}no" >&6
3712fi
3713test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3714echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3715 { (exit 1); exit 1; }; }
3716echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3717echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3718if test "${lt_cv_prog_gnu_ld+set}" = set; then
3719 echo $ECHO_N "(cached) $ECHO_C" >&6
3720else
3721 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
John Criswell47fdd832003-07-14 16:52:07 +00003722case `"$LD" -v 2>&1 </dev/null` in
3723*GNU* | *'with BFD'*)
John Criswell7a73b802003-06-30 21:59:07 +00003724 lt_cv_prog_gnu_ld=yes
John Criswell47fdd832003-07-14 16:52:07 +00003725 ;;
3726*)
John Criswell7a73b802003-06-30 21:59:07 +00003727 lt_cv_prog_gnu_ld=no
John Criswell47fdd832003-07-14 16:52:07 +00003728 ;;
3729esac
John Criswell7a73b802003-06-30 21:59:07 +00003730fi
3731echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3732echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3733with_gnu_ld=$lt_cv_prog_gnu_ld
3734
3735
3736echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3737echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3738if test "${lt_cv_ld_reload_flag+set}" = set; then
3739 echo $ECHO_N "(cached) $ECHO_C" >&6
3740else
3741 lt_cv_ld_reload_flag='-r'
3742fi
3743echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3744echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3745reload_flag=$lt_cv_ld_reload_flag
John Criswell47fdd832003-07-14 16:52:07 +00003746case $reload_flag in
3747"" | " "*) ;;
3748*) reload_flag=" $reload_flag" ;;
3749esac
3750reload_cmds='$LD$reload_flag -o $output$reload_objs'
John Criswell7a73b802003-06-30 21:59:07 +00003751
3752echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3753echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3754if test "${lt_cv_path_NM+set}" = set; then
3755 echo $ECHO_N "(cached) $ECHO_C" >&6
3756else
3757 if test -n "$NM"; then
3758 # Let the user override the test.
3759 lt_cv_path_NM="$NM"
3760else
John Criswell47fdd832003-07-14 16:52:07 +00003761 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +00003762 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
John Criswell47fdd832003-07-14 16:52:07 +00003763 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00003764 test -z "$ac_dir" && ac_dir=.
John Criswell47fdd832003-07-14 16:52:07 +00003765 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3766 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
John Criswell7a73b802003-06-30 21:59:07 +00003767 # Check to see if the nm accepts a BSD-compat flag.
3768 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3769 # nm: unknown option "B" ignored
3770 # Tru64's nm complains that /dev/null is an invalid object file
John Criswell47fdd832003-07-14 16:52:07 +00003771 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3772 */dev/null* | *'Invalid file or object type'*)
John Criswell7a73b802003-06-30 21:59:07 +00003773 lt_cv_path_NM="$tmp_nm -B"
3774 break
John Criswell47fdd832003-07-14 16:52:07 +00003775 ;;
3776 *)
3777 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3778 */dev/null*)
3779 lt_cv_path_NM="$tmp_nm -p"
3780 break
3781 ;;
3782 *)
3783 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3784 continue # so that we can try to find one that supports BSD flags
3785 ;;
3786 esac
3787 esac
John Criswell7a73b802003-06-30 21:59:07 +00003788 fi
3789 done
John Criswell47fdd832003-07-14 16:52:07 +00003790 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00003791 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3792fi
3793fi
John Criswell47fdd832003-07-14 16:52:07 +00003794echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3795echo "${ECHO_T}$lt_cv_path_NM" >&6
John Criswell7a73b802003-06-30 21:59:07 +00003796NM="$lt_cv_path_NM"
John Criswell7a73b802003-06-30 21:59:07 +00003797
3798echo "$as_me:$LINENO: checking whether ln -s works" >&5
3799echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3800LN_S=$as_ln_s
3801if test "$LN_S" = "ln -s"; then
3802 echo "$as_me:$LINENO: result: yes" >&5
3803echo "${ECHO_T}yes" >&6
3804else
3805 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3806echo "${ECHO_T}no, using $LN_S" >&6
3807fi
3808
John Criswell47fdd832003-07-14 16:52:07 +00003809echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3810echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00003811if test "${lt_cv_deplibs_check_method+set}" = set; then
3812 echo $ECHO_N "(cached) $ECHO_C" >&6
3813else
3814 lt_cv_file_magic_cmd='$MAGIC_CMD'
3815lt_cv_file_magic_test_file=
3816lt_cv_deplibs_check_method='unknown'
3817# Need to set the preceding variable on all platforms that support
3818# interlibrary dependencies.
3819# 'none' -- dependencies not supported.
3820# `unknown' -- same as none, but documents that we really don't know.
3821# 'pass_all' -- all dependencies passed with no checks.
3822# 'test_compile' -- check by making test program.
3823# 'file_magic [[regex]]' -- check by looking for files in library path
John Criswell47fdd832003-07-14 16:52:07 +00003824# which responds to the $file_magic_cmd with a given extended regex.
John Criswell7a73b802003-06-30 21:59:07 +00003825# If you have `file' or equivalent on your system and you're not sure
3826# whether `pass_all' will *always* work, you probably want this one.
3827
3828case $host_os in
3829aix4* | aix5*)
3830 lt_cv_deplibs_check_method=pass_all
3831 ;;
3832
3833beos*)
3834 lt_cv_deplibs_check_method=pass_all
3835 ;;
3836
3837bsdi4*)
3838 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3839 lt_cv_file_magic_cmd='/usr/bin/file -L'
3840 lt_cv_file_magic_test_file=/shlib/libc.so
3841 ;;
3842
3843cygwin* | mingw* | pw32*)
John Criswell47fdd832003-07-14 16:52:07 +00003844 # win32_libid is a shell function defined in ltmain.sh
3845 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3846 lt_cv_file_magic_cmd='win32_libid'
John Criswell7a73b802003-06-30 21:59:07 +00003847 ;;
3848
3849darwin* | rhapsody*)
John Criswell47fdd832003-07-14 16:52:07 +00003850 # this will be overwritten by pass_all, but leave it in just in case
John Criswell7a73b802003-06-30 21:59:07 +00003851 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3852 lt_cv_file_magic_cmd='/usr/bin/file -L'
3853 case "$host_os" in
3854 rhapsody* | darwin1.[012])
John Criswell47fdd832003-07-14 16:52:07 +00003855 lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
John Criswell7a73b802003-06-30 21:59:07 +00003856 ;;
3857 *) # Darwin 1.3 on
3858 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3859 ;;
3860 esac
John Criswell47fdd832003-07-14 16:52:07 +00003861 lt_cv_deplibs_check_method=pass_all
John Criswell7a73b802003-06-30 21:59:07 +00003862 ;;
3863
3864freebsd*)
3865 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3866 case $host_cpu in
3867 i*86 )
3868 # Not sure whether the presence of OpenBSD here was a mistake.
3869 # Let's accept both of them until this is cleared up.
3870 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3871 lt_cv_file_magic_cmd=/usr/bin/file
3872 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3873 ;;
3874 esac
3875 else
3876 lt_cv_deplibs_check_method=pass_all
3877 fi
3878 ;;
3879
3880gnu*)
3881 lt_cv_deplibs_check_method=pass_all
3882 ;;
3883
John Criswell47fdd832003-07-14 16:52:07 +00003884hpux10.20* | hpux11*)
John Criswell7a73b802003-06-30 21:59:07 +00003885 lt_cv_file_magic_cmd=/usr/bin/file
John Criswell47fdd832003-07-14 16:52:07 +00003886 case "$host_cpu" in
3887 ia64*)
3888 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3889 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3890 ;;
3891 hppa*64*)
3892 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]'
3893 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3894 ;;
3895 *)
3896 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3897 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3898 ;;
3899 esac
John Criswell7a73b802003-06-30 21:59:07 +00003900 ;;
3901
John Criswell47fdd832003-07-14 16:52:07 +00003902irix5* | irix6* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +00003903 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00003904 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +00003905 # this will be overridden with pass_all, but let us keep it just in case
3906 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3907 ;;
3908 *)
3909 case $LD in
3910 *-32|*"-32 ") libmagic=32-bit;;
3911 *-n32|*"-n32 ") libmagic=N32;;
3912 *-64|*"-64 ") libmagic=64-bit;;
3913 *) libmagic=never-match;;
3914 esac
3915 # this will be overridden with pass_all, but let us keep it just in case
3916 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3917 ;;
3918 esac
3919 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3920 lt_cv_deplibs_check_method=pass_all
3921 ;;
3922
3923# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +00003924linux*)
John Criswell7a73b802003-06-30 21:59:07 +00003925 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +00003926 alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*)
John Criswell7a73b802003-06-30 21:59:07 +00003927 lt_cv_deplibs_check_method=pass_all ;;
3928 *)
3929 # glibc up to 2.1.1 does not perform some relocations on ARM
3930 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3931 esac
3932 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3933 ;;
3934
3935netbsd*)
3936 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +00003937 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
John Criswell7a73b802003-06-30 21:59:07 +00003938 else
John Criswell47fdd832003-07-14 16:52:07 +00003939 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
John Criswell7a73b802003-06-30 21:59:07 +00003940 fi
3941 ;;
3942
3943newos6*)
3944 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3945 lt_cv_file_magic_cmd=/usr/bin/file
3946 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3947 ;;
3948
John Criswell47fdd832003-07-14 16:52:07 +00003949nto-qnx)
3950 lt_cv_deplibs_check_method=unknown
3951 ;;
3952
John Criswell7a73b802003-06-30 21:59:07 +00003953openbsd*)
3954 lt_cv_file_magic_cmd=/usr/bin/file
3955 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3956 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3957 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3958 else
3959 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3960 fi
3961 ;;
3962
3963osf3* | osf4* | osf5*)
3964 # this will be overridden with pass_all, but let us keep it just in case
3965 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3966 lt_cv_file_magic_test_file=/shlib/libc.so
3967 lt_cv_deplibs_check_method=pass_all
3968 ;;
3969
3970sco3.2v5*)
3971 lt_cv_deplibs_check_method=pass_all
3972 ;;
3973
3974solaris*)
3975 lt_cv_deplibs_check_method=pass_all
3976 lt_cv_file_magic_test_file=/lib/libc.so
3977 ;;
3978
John Criswell7a73b802003-06-30 21:59:07 +00003979sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3980 case $host_vendor in
3981 motorola)
3982 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]'
3983 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3984 ;;
3985 ncr)
3986 lt_cv_deplibs_check_method=pass_all
3987 ;;
3988 sequent)
3989 lt_cv_file_magic_cmd='/bin/file'
3990 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3991 ;;
3992 sni)
3993 lt_cv_file_magic_cmd='/bin/file'
3994 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3995 lt_cv_file_magic_test_file=/lib/libc.so
3996 ;;
John Criswell47fdd832003-07-14 16:52:07 +00003997 siemens)
3998 lt_cv_deplibs_check_method=pass_all
3999 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004000 esac
4001 ;;
John Criswell47fdd832003-07-14 16:52:07 +00004002
4003sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4004 lt_cv_deplibs_check_method=pass_all
4005 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004006esac
4007
4008fi
4009echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4010echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4011file_magic_cmd=$lt_cv_file_magic_cmd
4012deplibs_check_method=$lt_cv_deplibs_check_method
John Criswell47fdd832003-07-14 16:52:07 +00004013test -z "$deplibs_check_method" && deplibs_check_method=unknown
John Criswell7a73b802003-06-30 21:59:07 +00004014
4015
4016
4017
John Criswell47fdd832003-07-14 16:52:07 +00004018# If no C compiler was specified, use CC.
4019LTCC=${LTCC-"$CC"}
John Criswell7a73b802003-06-30 21:59:07 +00004020
John Criswell47fdd832003-07-14 16:52:07 +00004021# Allow CC to be a program name with arguments.
4022compiler=$CC
John Criswell7a73b802003-06-30 21:59:07 +00004023
John Criswell47fdd832003-07-14 16:52:07 +00004024# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4025if test "${enable_libtool_lock+set}" = set; then
4026 enableval="$enable_libtool_lock"
John Criswell7a73b802003-06-30 21:59:07 +00004027
John Criswell47fdd832003-07-14 16:52:07 +00004028fi;
4029test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
John Criswell7a73b802003-06-30 21:59:07 +00004030
John Criswell47fdd832003-07-14 16:52:07 +00004031# Some flags need to be propagated to the compiler or linker for good
4032# libtool support.
4033case $host in
4034ia64-*-hpux*)
4035 # Find out which ABI we are using.
4036 echo 'int i;' > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4038 (eval $ac_compile) 2>&5
4039 ac_status=$?
4040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4041 (exit $ac_status); }; then
John Criswell47fdd832003-07-14 16:52:07 +00004042 case `/usr/bin/file conftest.$ac_objext` in
4043 *ELF-32*)
4044 HPUX_IA64_MODE="32"
4045 ;;
4046 *ELF-64*)
4047 HPUX_IA64_MODE="64"
4048 ;;
4049 esac
4050 fi
4051 rm -rf conftest*
4052 ;;
4053*-*-irix6*)
4054 # Find out which ABI we are using.
John Criswell8a54a1e2004-06-22 21:35:10 +00004055 echo '#line 4055 "configure"' > conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +00004056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4057 (eval $ac_compile) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00004058 ac_status=$?
4059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00004060 (exit $ac_status); }; then
4061 if test "$lt_cv_prog_gnu_ld" = yes; then
4062 case `/usr/bin/file conftest.$ac_objext` in
4063 *32-bit*)
4064 LD="${LD-ld} -melf32bsmip"
4065 ;;
4066 *N32*)
4067 LD="${LD-ld} -melf32bmipn32"
4068 ;;
4069 *64-bit*)
4070 LD="${LD-ld} -melf64bmip"
4071 ;;
4072 esac
4073 else
4074 case `/usr/bin/file conftest.$ac_objext` in
4075 *32-bit*)
4076 LD="${LD-ld} -32"
4077 ;;
4078 *N32*)
4079 LD="${LD-ld} -n32"
4080 ;;
4081 *64-bit*)
4082 LD="${LD-ld} -64"
4083 ;;
4084 esac
4085 fi
4086 fi
4087 rm -rf conftest*
4088 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004089
John Criswell47fdd832003-07-14 16:52:07 +00004090x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4091 # Find out which ABI we are using.
4092 echo 'int i;' > conftest.$ac_ext
4093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4094 (eval $ac_compile) 2>&5
4095 ac_status=$?
4096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4097 (exit $ac_status); }; then
4098 case "`/usr/bin/file conftest.o`" in
4099 *32-bit*)
4100 case $host in
4101 x86_64-*linux*)
4102 LD="${LD-ld} -m elf_i386"
4103 ;;
4104 ppc64-*linux*)
4105 LD="${LD-ld} -m elf32ppclinux"
4106 ;;
4107 s390x-*linux*)
4108 LD="${LD-ld} -m elf_s390"
4109 ;;
4110 sparc64-*linux*)
4111 LD="${LD-ld} -m elf32_sparc"
4112 ;;
4113 esac
4114 ;;
4115 *64-bit*)
4116 case $host in
4117 x86_64-*linux*)
4118 LD="${LD-ld} -m elf_x86_64"
4119 ;;
4120 ppc*-*linux*|powerpc*-*linux*)
4121 LD="${LD-ld} -m elf64ppc"
4122 ;;
4123 s390*-*linux*)
4124 LD="${LD-ld} -m elf64_s390"
4125 ;;
4126 sparc*-*linux*)
4127 LD="${LD-ld} -m elf64_sparc"
4128 ;;
4129 esac
4130 ;;
4131 esac
4132 fi
4133 rm -rf conftest*
4134 ;;
4135
4136*-*-sco3.2v5*)
4137 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4138 SAVE_CFLAGS="$CFLAGS"
4139 CFLAGS="$CFLAGS -belf"
4140 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4141echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4142if test "${lt_cv_cc_needs_belf+set}" = set; then
4143 echo $ECHO_N "(cached) $ECHO_C" >&6
4144else
4145 ac_ext=c
4146ac_cpp='$CPP $CPPFLAGS'
4147ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4148ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4149ac_compiler_gnu=$ac_cv_c_compiler_gnu
4150
4151 cat >conftest.$ac_ext <<_ACEOF
4152#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004153/* confdefs.h. */
4154_ACEOF
4155cat confdefs.h >>conftest.$ac_ext
4156cat >>conftest.$ac_ext <<_ACEOF
4157/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00004158
John Criswell47fdd832003-07-14 16:52:07 +00004159int
4160main ()
John Criswell7a73b802003-06-30 21:59:07 +00004161{
John Criswell7a73b802003-06-30 21:59:07 +00004162
John Criswell47fdd832003-07-14 16:52:07 +00004163 ;
4164 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00004165}
John Criswell47fdd832003-07-14 16:52:07 +00004166_ACEOF
4167rm -f conftest.$ac_objext conftest$ac_exeext
4168if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
John Criswell7a73b802003-06-30 21:59:07 +00004169 (eval $ac_link) 2>&5
4170 ac_status=$?
4171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00004172 (exit $ac_status); } &&
4173 { ac_try='test -s conftest$ac_exeext'
4174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4175 (eval $ac_try) 2>&5
4176 ac_status=$?
4177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4178 (exit $ac_status); }; }; then
4179 lt_cv_cc_needs_belf=yes
John Criswell7a73b802003-06-30 21:59:07 +00004180else
John Criswell47fdd832003-07-14 16:52:07 +00004181 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004182sed 's/^/| /' conftest.$ac_ext >&5
4183
John Criswell47fdd832003-07-14 16:52:07 +00004184lt_cv_cc_needs_belf=no
John Criswell7a73b802003-06-30 21:59:07 +00004185fi
John Criswell47fdd832003-07-14 16:52:07 +00004186rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4187 ac_ext=c
4188ac_cpp='$CPP $CPPFLAGS'
4189ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4190ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4191ac_compiler_gnu=$ac_cv_c_compiler_gnu
4192
John Criswell7a73b802003-06-30 21:59:07 +00004193fi
John Criswell47fdd832003-07-14 16:52:07 +00004194echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4195echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4196 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4197 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4198 CFLAGS="$SAVE_CFLAGS"
4199 fi
4200 ;;
4201
4202esac
4203
4204need_locks="$enable_libtool_lock"
4205
John Criswell7a73b802003-06-30 21:59:07 +00004206
4207
4208echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4209echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4210if test "${ac_cv_header_stdc+set}" = set; then
4211 echo $ECHO_N "(cached) $ECHO_C" >&6
4212else
4213 cat >conftest.$ac_ext <<_ACEOF
4214#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004215/* confdefs.h. */
4216_ACEOF
4217cat confdefs.h >>conftest.$ac_ext
4218cat >>conftest.$ac_ext <<_ACEOF
4219/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004220#include <stdlib.h>
4221#include <stdarg.h>
4222#include <string.h>
4223#include <float.h>
4224
John Criswell0c38eaf2003-09-10 15:17:25 +00004225int
4226main ()
4227{
4228
4229 ;
4230 return 0;
4231}
John Criswell7a73b802003-06-30 21:59:07 +00004232_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004233rm -f conftest.$ac_objext
4234if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4235 (eval $ac_compile) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00004236 ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +00004237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004238 (exit $ac_status); } &&
4239 { ac_try='test -s conftest.$ac_objext'
4240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4241 (eval $ac_try) 2>&5
4242 ac_status=$?
4243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4244 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00004245 ac_cv_header_stdc=yes
4246else
4247 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004248sed 's/^/| /' conftest.$ac_ext >&5
4249
4250ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00004251fi
John Criswell0c38eaf2003-09-10 15:17:25 +00004252rm -f conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004253
4254if test $ac_cv_header_stdc = yes; then
4255 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4256 cat >conftest.$ac_ext <<_ACEOF
4257#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004258/* confdefs.h. */
4259_ACEOF
4260cat confdefs.h >>conftest.$ac_ext
4261cat >>conftest.$ac_ext <<_ACEOF
4262/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004263#include <string.h>
4264
4265_ACEOF
4266if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00004267 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00004268 :
4269else
4270 ac_cv_header_stdc=no
4271fi
4272rm -f conftest*
4273
4274fi
4275
4276if test $ac_cv_header_stdc = yes; then
4277 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4278 cat >conftest.$ac_ext <<_ACEOF
4279#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004280/* confdefs.h. */
4281_ACEOF
4282cat confdefs.h >>conftest.$ac_ext
4283cat >>conftest.$ac_ext <<_ACEOF
4284/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004285#include <stdlib.h>
4286
4287_ACEOF
4288if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00004289 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00004290 :
4291else
4292 ac_cv_header_stdc=no
4293fi
4294rm -f conftest*
4295
4296fi
4297
4298if test $ac_cv_header_stdc = yes; then
4299 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4300 if test "$cross_compiling" = yes; then
4301 :
4302else
4303 cat >conftest.$ac_ext <<_ACEOF
4304#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004305/* confdefs.h. */
4306_ACEOF
4307cat confdefs.h >>conftest.$ac_ext
4308cat >>conftest.$ac_ext <<_ACEOF
4309/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004310#include <ctype.h>
4311#if ((' ' & 0x0FF) == 0x020)
4312# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4313# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4314#else
John Criswell0c38eaf2003-09-10 15:17:25 +00004315# define ISLOWER(c) \
4316 (('a' <= (c) && (c) <= 'i') \
John Criswell7a73b802003-06-30 21:59:07 +00004317 || ('j' <= (c) && (c) <= 'r') \
4318 || ('s' <= (c) && (c) <= 'z'))
4319# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4320#endif
4321
4322#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4323int
4324main ()
4325{
4326 int i;
4327 for (i = 0; i < 256; i++)
4328 if (XOR (islower (i), ISLOWER (i))
4329 || toupper (i) != TOUPPER (i))
4330 exit(2);
4331 exit (0);
4332}
4333_ACEOF
4334rm -f conftest$ac_exeext
4335if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4336 (eval $ac_link) 2>&5
4337 ac_status=$?
4338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4339 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4341 (eval $ac_try) 2>&5
4342 ac_status=$?
4343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4344 (exit $ac_status); }; }; then
4345 :
4346else
4347 echo "$as_me: program exited with status $ac_status" >&5
4348echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004349sed 's/^/| /' conftest.$ac_ext >&5
4350
John Criswell7a73b802003-06-30 21:59:07 +00004351( exit $ac_status )
4352ac_cv_header_stdc=no
4353fi
John Criswell0c38eaf2003-09-10 15:17:25 +00004354rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004355fi
4356fi
4357fi
4358echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4359echo "${ECHO_T}$ac_cv_header_stdc" >&6
4360if test $ac_cv_header_stdc = yes; then
4361
4362cat >>confdefs.h <<\_ACEOF
4363#define STDC_HEADERS 1
4364_ACEOF
4365
4366fi
4367
4368# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4369
4370
4371
4372
4373
4374
4375
4376
4377
4378for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4379 inttypes.h stdint.h unistd.h
4380do
4381as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4382echo "$as_me:$LINENO: checking for $ac_header" >&5
4383echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4384if eval "test \"\${$as_ac_Header+set}\" = set"; then
4385 echo $ECHO_N "(cached) $ECHO_C" >&6
4386else
4387 cat >conftest.$ac_ext <<_ACEOF
4388#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004389/* confdefs.h. */
4390_ACEOF
4391cat confdefs.h >>conftest.$ac_ext
4392cat >>conftest.$ac_ext <<_ACEOF
4393/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004394$ac_includes_default
4395
4396#include <$ac_header>
4397_ACEOF
4398rm -f conftest.$ac_objext
4399if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4400 (eval $ac_compile) 2>&5
4401 ac_status=$?
4402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4403 (exit $ac_status); } &&
4404 { ac_try='test -s conftest.$ac_objext'
4405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4406 (eval $ac_try) 2>&5
4407 ac_status=$?
4408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4409 (exit $ac_status); }; }; then
4410 eval "$as_ac_Header=yes"
4411else
4412 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004413sed 's/^/| /' conftest.$ac_ext >&5
4414
John Criswell7a73b802003-06-30 21:59:07 +00004415eval "$as_ac_Header=no"
4416fi
4417rm -f conftest.$ac_objext conftest.$ac_ext
4418fi
4419echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4420echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4421if test `eval echo '${'$as_ac_Header'}'` = yes; then
4422 cat >>confdefs.h <<_ACEOF
4423#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4424_ACEOF
4425
4426fi
4427
4428done
4429
4430
4431
4432for ac_header in dlfcn.h
4433do
4434as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4435if eval "test \"\${$as_ac_Header+set}\" = set"; then
4436 echo "$as_me:$LINENO: checking for $ac_header" >&5
4437echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4438if eval "test \"\${$as_ac_Header+set}\" = set"; then
4439 echo $ECHO_N "(cached) $ECHO_C" >&6
4440fi
4441echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4442echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4443else
4444 # Is the header compilable?
4445echo "$as_me:$LINENO: checking $ac_header usability" >&5
4446echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4447cat >conftest.$ac_ext <<_ACEOF
4448#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004449/* confdefs.h. */
4450_ACEOF
4451cat confdefs.h >>conftest.$ac_ext
4452cat >>conftest.$ac_ext <<_ACEOF
4453/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004454$ac_includes_default
4455#include <$ac_header>
4456_ACEOF
4457rm -f conftest.$ac_objext
4458if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4459 (eval $ac_compile) 2>&5
4460 ac_status=$?
4461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4462 (exit $ac_status); } &&
4463 { ac_try='test -s conftest.$ac_objext'
4464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4465 (eval $ac_try) 2>&5
4466 ac_status=$?
4467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4468 (exit $ac_status); }; }; then
4469 ac_header_compiler=yes
4470else
4471 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004472sed 's/^/| /' conftest.$ac_ext >&5
4473
John Criswell7a73b802003-06-30 21:59:07 +00004474ac_header_compiler=no
4475fi
4476rm -f conftest.$ac_objext conftest.$ac_ext
4477echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4478echo "${ECHO_T}$ac_header_compiler" >&6
4479
4480# Is the header present?
4481echo "$as_me:$LINENO: checking $ac_header presence" >&5
4482echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4483cat >conftest.$ac_ext <<_ACEOF
4484#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004485/* confdefs.h. */
4486_ACEOF
4487cat confdefs.h >>conftest.$ac_ext
4488cat >>conftest.$ac_ext <<_ACEOF
4489/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004490#include <$ac_header>
4491_ACEOF
4492if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4493 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4494 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004495 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00004496 rm -f conftest.er1
4497 cat conftest.err >&5
4498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4499 (exit $ac_status); } >/dev/null; then
4500 if test -s conftest.err; then
4501 ac_cpp_err=$ac_c_preproc_warn_flag
4502 else
4503 ac_cpp_err=
4504 fi
4505else
4506 ac_cpp_err=yes
4507fi
4508if test -z "$ac_cpp_err"; then
4509 ac_header_preproc=yes
4510else
4511 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004512sed 's/^/| /' conftest.$ac_ext >&5
4513
John Criswell7a73b802003-06-30 21:59:07 +00004514 ac_header_preproc=no
4515fi
4516rm -f conftest.err conftest.$ac_ext
4517echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4518echo "${ECHO_T}$ac_header_preproc" >&6
4519
4520# So? What about this header?
4521case $ac_header_compiler:$ac_header_preproc in
4522 yes:no )
4523 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4524echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4525 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004526echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4527 (
4528 cat <<\_ASBOX
4529## ------------------------------------ ##
4530## Report this to bug-autoconf@gnu.org. ##
4531## ------------------------------------ ##
4532_ASBOX
4533 ) |
4534 sed "s/^/$as_me: WARNING: /" >&2
4535 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004536 no:yes )
4537 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4538echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4539 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4540echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4541 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004542echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4543 (
4544 cat <<\_ASBOX
4545## ------------------------------------ ##
4546## Report this to bug-autoconf@gnu.org. ##
4547## ------------------------------------ ##
4548_ASBOX
4549 ) |
4550 sed "s/^/$as_me: WARNING: /" >&2
4551 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004552esac
4553echo "$as_me:$LINENO: checking for $ac_header" >&5
4554echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4555if eval "test \"\${$as_ac_Header+set}\" = set"; then
4556 echo $ECHO_N "(cached) $ECHO_C" >&6
4557else
4558 eval "$as_ac_Header=$ac_header_preproc"
4559fi
4560echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4561echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4562
4563fi
4564if test `eval echo '${'$as_ac_Header'}'` = yes; then
4565 cat >>confdefs.h <<_ACEOF
4566#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4567_ACEOF
4568
4569fi
4570
4571done
4572
John Criswell47fdd832003-07-14 16:52:07 +00004573ac_ext=cc
4574ac_cpp='$CXXCPP $CPPFLAGS'
4575ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4576ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4577ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4578echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4579echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4580if test -z "$CXXCPP"; then
4581 if test "${ac_cv_prog_CXXCPP+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00004582 echo $ECHO_N "(cached) $ECHO_C" >&6
4583else
John Criswell47fdd832003-07-14 16:52:07 +00004584 # Double quotes because CXXCPP needs to be expanded
4585 for CXXCPP in "$CXX -E" "/lib/cpp"
4586 do
4587 ac_preproc_ok=false
4588for ac_cxx_preproc_warn_flag in '' yes
4589do
4590 # Use a header file that comes with gcc, so configuring glibc
4591 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00004592 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4593 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +00004594 # On the NeXT, cc -E runs the code through the compiler's parser,
4595 # not just through cpp. "Syntax error" is here to catch this case.
4596 cat >conftest.$ac_ext <<_ACEOF
4597#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004598/* confdefs.h. */
4599_ACEOF
4600cat confdefs.h >>conftest.$ac_ext
4601cat >>conftest.$ac_ext <<_ACEOF
4602/* end confdefs.h. */
4603#ifdef __STDC__
4604# include <limits.h>
4605#else
4606# include <assert.h>
4607#endif
John Criswell47fdd832003-07-14 16:52:07 +00004608 Syntax error
4609_ACEOF
4610if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4611 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4612 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004613 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00004614 rm -f conftest.er1
4615 cat conftest.err >&5
4616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4617 (exit $ac_status); } >/dev/null; then
4618 if test -s conftest.err; then
4619 ac_cpp_err=$ac_cxx_preproc_warn_flag
John Criswell7a73b802003-06-30 21:59:07 +00004620 else
John Criswell47fdd832003-07-14 16:52:07 +00004621 ac_cpp_err=
John Criswell7a73b802003-06-30 21:59:07 +00004622 fi
John Criswell47fdd832003-07-14 16:52:07 +00004623else
4624 ac_cpp_err=yes
4625fi
4626if test -z "$ac_cpp_err"; then
4627 :
4628else
4629 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004630sed 's/^/| /' conftest.$ac_ext >&5
4631
John Criswell47fdd832003-07-14 16:52:07 +00004632 # Broken: fails on valid input.
4633continue
4634fi
4635rm -f conftest.err conftest.$ac_ext
4636
4637 # OK, works on sane cases. Now check whether non-existent headers
4638 # can be detected and how.
4639 cat >conftest.$ac_ext <<_ACEOF
4640#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004641/* confdefs.h. */
4642_ACEOF
4643cat confdefs.h >>conftest.$ac_ext
4644cat >>conftest.$ac_ext <<_ACEOF
4645/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00004646#include <ac_nonexistent.h>
4647_ACEOF
4648if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4649 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4650 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004651 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00004652 rm -f conftest.er1
4653 cat conftest.err >&5
4654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4655 (exit $ac_status); } >/dev/null; then
4656 if test -s conftest.err; then
4657 ac_cpp_err=$ac_cxx_preproc_warn_flag
4658 else
4659 ac_cpp_err=
4660 fi
4661else
4662 ac_cpp_err=yes
4663fi
4664if test -z "$ac_cpp_err"; then
4665 # Broken: success on invalid input.
4666continue
4667else
4668 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004669sed 's/^/| /' conftest.$ac_ext >&5
4670
John Criswell47fdd832003-07-14 16:52:07 +00004671 # Passes both tests.
4672ac_preproc_ok=:
4673break
4674fi
4675rm -f conftest.err conftest.$ac_ext
4676
4677done
4678# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4679rm -f conftest.err conftest.$ac_ext
4680if $ac_preproc_ok; then
4681 break
John Criswell7a73b802003-06-30 21:59:07 +00004682fi
4683
John Criswell47fdd832003-07-14 16:52:07 +00004684 done
4685 ac_cv_prog_CXXCPP=$CXXCPP
4686
4687fi
4688 CXXCPP=$ac_cv_prog_CXXCPP
4689else
4690 ac_cv_prog_CXXCPP=$CXXCPP
4691fi
4692echo "$as_me:$LINENO: result: $CXXCPP" >&5
4693echo "${ECHO_T}$CXXCPP" >&6
4694ac_preproc_ok=false
4695for ac_cxx_preproc_warn_flag in '' yes
4696do
4697 # Use a header file that comes with gcc, so configuring glibc
4698 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00004699 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4700 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +00004701 # On the NeXT, cc -E runs the code through the compiler's parser,
4702 # not just through cpp. "Syntax error" is here to catch this case.
4703 cat >conftest.$ac_ext <<_ACEOF
4704#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004705/* confdefs.h. */
4706_ACEOF
4707cat confdefs.h >>conftest.$ac_ext
4708cat >>conftest.$ac_ext <<_ACEOF
4709/* end confdefs.h. */
4710#ifdef __STDC__
4711# include <limits.h>
4712#else
4713# include <assert.h>
4714#endif
John Criswell47fdd832003-07-14 16:52:07 +00004715 Syntax error
4716_ACEOF
4717if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4718 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4719 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004720 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00004721 rm -f conftest.er1
4722 cat conftest.err >&5
4723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4724 (exit $ac_status); } >/dev/null; then
4725 if test -s conftest.err; then
4726 ac_cpp_err=$ac_cxx_preproc_warn_flag
4727 else
4728 ac_cpp_err=
4729 fi
4730else
4731 ac_cpp_err=yes
4732fi
4733if test -z "$ac_cpp_err"; then
4734 :
4735else
4736 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004737sed 's/^/| /' conftest.$ac_ext >&5
4738
John Criswell47fdd832003-07-14 16:52:07 +00004739 # Broken: fails on valid input.
4740continue
4741fi
4742rm -f conftest.err conftest.$ac_ext
4743
4744 # OK, works on sane cases. Now check whether non-existent headers
4745 # can be detected and how.
4746 cat >conftest.$ac_ext <<_ACEOF
4747#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004748/* confdefs.h. */
4749_ACEOF
4750cat confdefs.h >>conftest.$ac_ext
4751cat >>conftest.$ac_ext <<_ACEOF
4752/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00004753#include <ac_nonexistent.h>
4754_ACEOF
4755if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4756 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4757 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004758 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00004759 rm -f conftest.er1
4760 cat conftest.err >&5
4761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4762 (exit $ac_status); } >/dev/null; then
4763 if test -s conftest.err; then
4764 ac_cpp_err=$ac_cxx_preproc_warn_flag
4765 else
4766 ac_cpp_err=
4767 fi
4768else
4769 ac_cpp_err=yes
4770fi
4771if test -z "$ac_cpp_err"; then
4772 # Broken: success on invalid input.
4773continue
4774else
4775 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004776sed 's/^/| /' conftest.$ac_ext >&5
4777
John Criswell47fdd832003-07-14 16:52:07 +00004778 # Passes both tests.
4779ac_preproc_ok=:
4780break
4781fi
4782rm -f conftest.err conftest.$ac_ext
4783
4784done
4785# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4786rm -f conftest.err conftest.$ac_ext
4787if $ac_preproc_ok; then
4788 :
4789else
John Criswell0c38eaf2003-09-10 15:17:25 +00004790 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4791See \`config.log' for more details." >&5
4792echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4793See \`config.log' for more details." >&2;}
John Criswell47fdd832003-07-14 16:52:07 +00004794 { (exit 1); exit 1; }; }
4795fi
4796
4797ac_ext=cc
4798ac_cpp='$CXXCPP $CPPFLAGS'
4799ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4800ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4801ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4802
4803
4804ac_ext=f
4805ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4806ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4807ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4808if test -n "$ac_tool_prefix"; then
John Criswell0c38eaf2003-09-10 15:17:25 +00004809 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 +00004810 do
4811 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4812set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4813echo "$as_me:$LINENO: checking for $ac_word" >&5
4814echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4815if test "${ac_cv_prog_F77+set}" = set; then
4816 echo $ECHO_N "(cached) $ECHO_C" >&6
4817else
4818 if test -n "$F77"; then
4819 ac_cv_prog_F77="$F77" # Let the user override the test.
4820else
4821as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4822for as_dir in $PATH
4823do
4824 IFS=$as_save_IFS
4825 test -z "$as_dir" && as_dir=.
4826 for ac_exec_ext in '' $ac_executable_extensions; do
4827 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4828 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4829 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4830 break 2
4831 fi
4832done
4833done
4834
4835fi
4836fi
4837F77=$ac_cv_prog_F77
4838if test -n "$F77"; then
4839 echo "$as_me:$LINENO: result: $F77" >&5
4840echo "${ECHO_T}$F77" >&6
4841else
4842 echo "$as_me:$LINENO: result: no" >&5
4843echo "${ECHO_T}no" >&6
4844fi
4845
4846 test -n "$F77" && break
4847 done
4848fi
4849if test -z "$F77"; then
4850 ac_ct_F77=$F77
John Criswell0c38eaf2003-09-10 15:17:25 +00004851 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 +00004852do
4853 # Extract the first word of "$ac_prog", so it can be a program name with args.
4854set dummy $ac_prog; ac_word=$2
4855echo "$as_me:$LINENO: checking for $ac_word" >&5
4856echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4857if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
4858 echo $ECHO_N "(cached) $ECHO_C" >&6
4859else
4860 if test -n "$ac_ct_F77"; then
4861 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4862else
4863as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4864for as_dir in $PATH
4865do
4866 IFS=$as_save_IFS
4867 test -z "$as_dir" && as_dir=.
4868 for ac_exec_ext in '' $ac_executable_extensions; do
4869 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4870 ac_cv_prog_ac_ct_F77="$ac_prog"
4871 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4872 break 2
4873 fi
4874done
4875done
4876
4877fi
4878fi
4879ac_ct_F77=$ac_cv_prog_ac_ct_F77
4880if test -n "$ac_ct_F77"; then
4881 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
4882echo "${ECHO_T}$ac_ct_F77" >&6
4883else
4884 echo "$as_me:$LINENO: result: no" >&5
4885echo "${ECHO_T}no" >&6
4886fi
4887
4888 test -n "$ac_ct_F77" && break
4889done
4890
4891 F77=$ac_ct_F77
4892fi
4893
4894
4895# Provide some information about the compiler.
John Criswell8a54a1e2004-06-22 21:35:10 +00004896echo "$as_me:4896:" \
John Criswell47fdd832003-07-14 16:52:07 +00004897 "checking for Fortran 77 compiler version" >&5
4898ac_compiler=`set X $ac_compile; echo $2`
4899{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4900 (eval $ac_compiler --version </dev/null >&5) 2>&5
4901 ac_status=$?
4902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4903 (exit $ac_status); }
4904{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4905 (eval $ac_compiler -v </dev/null >&5) 2>&5
4906 ac_status=$?
4907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4908 (exit $ac_status); }
4909{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4910 (eval $ac_compiler -V </dev/null >&5) 2>&5
4911 ac_status=$?
4912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4913 (exit $ac_status); }
4914
4915# If we don't use `.F' as extension, the preprocessor is not run on the
4916# input file.
4917ac_save_ext=$ac_ext
4918ac_ext=F
4919echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
4920echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
4921if test "${ac_cv_f77_compiler_gnu+set}" = set; then
4922 echo $ECHO_N "(cached) $ECHO_C" >&6
4923else
4924 cat >conftest.$ac_ext <<_ACEOF
4925 program main
4926#ifndef __GNUC__
4927 choke me
4928#endif
4929
4930 end
4931_ACEOF
4932rm -f conftest.$ac_objext
4933if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4934 (eval $ac_compile) 2>&5
4935 ac_status=$?
4936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4937 (exit $ac_status); } &&
4938 { ac_try='test -s conftest.$ac_objext'
4939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4940 (eval $ac_try) 2>&5
4941 ac_status=$?
4942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4943 (exit $ac_status); }; }; then
4944 ac_compiler_gnu=yes
4945else
4946 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004947sed 's/^/| /' conftest.$ac_ext >&5
4948
John Criswell47fdd832003-07-14 16:52:07 +00004949ac_compiler_gnu=no
4950fi
4951rm -f conftest.$ac_objext conftest.$ac_ext
4952ac_cv_f77_compiler_gnu=$ac_compiler_gnu
4953
4954fi
4955echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
4956echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
4957ac_ext=$ac_save_ext
4958G77=`test $ac_compiler_gnu = yes && echo yes`
4959ac_test_FFLAGS=${FFLAGS+set}
4960ac_save_FFLAGS=$FFLAGS
4961FFLAGS=
4962echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
4963echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
4964if test "${ac_cv_prog_f77_g+set}" = set; then
4965 echo $ECHO_N "(cached) $ECHO_C" >&6
4966else
4967 FFLAGS=-g
4968cat >conftest.$ac_ext <<_ACEOF
4969 program main
4970
4971 end
4972_ACEOF
4973rm -f conftest.$ac_objext
4974if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4975 (eval $ac_compile) 2>&5
4976 ac_status=$?
4977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4978 (exit $ac_status); } &&
4979 { ac_try='test -s conftest.$ac_objext'
4980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4981 (eval $ac_try) 2>&5
4982 ac_status=$?
4983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4984 (exit $ac_status); }; }; then
4985 ac_cv_prog_f77_g=yes
4986else
4987 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004988sed 's/^/| /' conftest.$ac_ext >&5
4989
John Criswell47fdd832003-07-14 16:52:07 +00004990ac_cv_prog_f77_g=no
4991fi
4992rm -f conftest.$ac_objext conftest.$ac_ext
4993
4994fi
4995echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
4996echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
4997if test "$ac_test_FFLAGS" = set; then
4998 FFLAGS=$ac_save_FFLAGS
4999elif test $ac_cv_prog_f77_g = yes; then
5000 if test "$G77" = yes; then
5001 FFLAGS="-g -O2"
5002 else
5003 FFLAGS="-g"
5004 fi
5005else
5006 if test "$G77" = yes; then
5007 FFLAGS="-O2"
5008 else
5009 FFLAGS=
5010 fi
5011fi
5012ac_ext=c
5013ac_cpp='$CPP $CPPFLAGS'
5014ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5015ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5016ac_compiler_gnu=$ac_cv_c_compiler_gnu
5017
5018
5019
5020# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5021
5022# find the maximum length of command line arguments
5023echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5024echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5025if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5026 echo $ECHO_N "(cached) $ECHO_C" >&6
5027else
5028 i=0
5029 testring="ABCD"
5030
5031 case $build_os in
5032 msdosdjgpp*)
5033 # On DJGPP, this test can blow up pretty badly due to problems in libc
5034 # (any single argument exceeding 2000 bytes causes a buffer overrun
5035 # during glob expansion). Even if it were fixed, the result of this
5036 # check would be larger than it should be.
5037 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5038 ;;
5039
5040 gnu*)
5041 # Under GNU Hurd, this test is not required because there is
5042 # no limit to the length of command line arguments.
5043 # Libtool will interpret -1 as no limit whatsoever
5044 lt_cv_sys_max_cmd_len=-1;
5045 ;;
5046
5047 cygwin* | mingw*)
5048 # On Win9x/ME, this test blows up -- it succeeds, but takes
5049 # about 5 minutes as the teststring grows exponentially.
5050 # Worse, since 9x/ME are not pre-emptively multitasking,
5051 # you end up with a "frozen" computer, even though with patience
5052 # the test eventually succeeds (with a max line length of 256k).
5053 # Instead, let's just punt: use the minimum linelength reported by
5054 # all of the supported platforms: 8192 (on NT/2K/XP).
5055 lt_cv_sys_max_cmd_len=8192;
5056 ;;
5057
5058 *)
5059 # If test is not a shell built-in, we'll probably end up computing a
5060 # maximum length that is only half of the actual maximum length, but
5061 # we can't tell.
5062 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5063 = "XX$testring") >/dev/null 2>&1 &&
5064 new_result=`expr "X$testring" : ".*" 2>&1` &&
5065 lt_cv_sys_max_cmd_len=$new_result &&
5066 test $i != 17 # 1/2 MB should be enough
5067 do
5068 i=`expr $i + 1`
5069 testring=$testring$testring
5070 done
5071 testring=
5072 # Add a significant safety factor because C++ compilers can tack on massive
5073 # amounts of additional arguments before passing them to the linker.
5074 # It appears as though 1/2 is a usable value.
5075 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5076 ;;
5077 esac
5078
5079fi
5080
5081if test -n $lt_cv_sys_max_cmd_len ; then
5082 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5083echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5084else
5085 echo "$as_me:$LINENO: result: none" >&5
5086echo "${ECHO_T}none" >&6
5087fi
5088
5089
5090
5091
5092# Check for command to grab the raw symbol name followed by C symbol from nm.
5093echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5094echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5095if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5096 echo $ECHO_N "(cached) $ECHO_C" >&6
5097else
5098
5099# These are sane defaults that work on at least a few old systems.
5100# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5101
5102# Character class describing NM global symbol codes.
5103symcode='[BCDEGRST]'
5104
5105# Regexp to match symbols that can be accessed directly from C.
5106sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5107
5108# Transform the above into a raw symbol and a C symbol.
5109symxfrm='\1 \2\3 \3'
5110
5111# Transform an extracted symbol line into a proper C declaration
5112lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5113
5114# Transform an extracted symbol line into symbol name and symbol address
5115lt_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'"
5116
5117# Define system-specific variables.
5118case $host_os in
5119aix*)
5120 symcode='[BCDT]'
5121 ;;
5122cygwin* | mingw* | pw32*)
5123 symcode='[ABCDGISTW]'
5124 ;;
5125hpux*) # Its linker distinguishes data from code symbols
5126 if test "$host_cpu" = ia64; then
5127 symcode='[ABCDEGRST]'
5128 fi
5129 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5130 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'"
5131 ;;
5132irix* | nonstopux*)
5133 symcode='[BCDEGRST]'
5134 ;;
5135osf*)
5136 symcode='[BCDEGQRST]'
5137 ;;
5138solaris* | sysv5*)
5139 symcode='[BDT]'
5140 ;;
5141sysv4)
5142 symcode='[DFNSTU]'
5143 ;;
5144esac
5145
5146# Handle CRLF in mingw tool chain
5147opt_cr=
5148case $build_os in
5149mingw*)
5150 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5151 ;;
5152esac
5153
5154# If we're using GNU nm, then use its standard symbol codes.
5155case `$NM -V 2>&1` in
5156*GNU* | *'with BFD'*)
5157 symcode='[ABCDGISTW]' ;;
5158esac
5159
5160# Try without a prefix undercore, then with it.
5161for ac_symprfx in "" "_"; do
5162
5163 # Write the raw and C identifiers.
5164 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5165
5166 # Check to see that the pipe works correctly.
5167 pipe_works=no
5168
5169 rm -f conftest*
5170 cat > conftest.$ac_ext <<EOF
5171#ifdef __cplusplus
5172extern "C" {
5173#endif
5174char nm_test_var;
5175void nm_test_func(){}
5176#ifdef __cplusplus
5177}
5178#endif
5179int main(){nm_test_var='a';nm_test_func();return(0);}
5180EOF
5181
5182 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5183 (eval $ac_compile) 2>&5
5184 ac_status=$?
5185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5186 (exit $ac_status); }; then
5187 # Now try to grab the symbols.
5188 nlist=conftest.nm
5189 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5190 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5191 ac_status=$?
5192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5193 (exit $ac_status); } && test -s "$nlist"; then
5194 # Try sorting and uniquifying the output.
5195 if sort "$nlist" | uniq > "$nlist"T; then
5196 mv -f "$nlist"T "$nlist"
5197 else
5198 rm -f "$nlist"T
5199 fi
5200
5201 # Make sure that we snagged all the symbols we need.
5202 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5203 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5204 cat <<EOF > conftest.$ac_ext
5205#ifdef __cplusplus
5206extern "C" {
5207#endif
5208
5209EOF
5210 # Now generate the symbol file.
5211 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5212
5213 cat <<EOF >> conftest.$ac_ext
5214#if defined (__STDC__) && __STDC__
5215# define lt_ptr_t void *
5216#else
5217# define lt_ptr_t char *
5218# define const
5219#endif
5220
5221/* The mapping between symbol names and symbols. */
5222const struct {
5223 const char *name;
5224 lt_ptr_t address;
5225}
5226lt_preloaded_symbols[] =
5227{
5228EOF
5229 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5230 cat <<\EOF >> conftest.$ac_ext
5231 {0, (lt_ptr_t) 0}
5232};
5233
5234#ifdef __cplusplus
5235}
5236#endif
5237EOF
5238 # Now try linking the two files.
5239 mv conftest.$ac_objext conftstm.$ac_objext
5240 lt_save_LIBS="$LIBS"
5241 lt_save_CFLAGS="$CFLAGS"
5242 LIBS="conftstm.$ac_objext"
5243 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5244 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5245 (eval $ac_link) 2>&5
5246 ac_status=$?
5247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5248 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5249 pipe_works=yes
5250 fi
5251 LIBS="$lt_save_LIBS"
5252 CFLAGS="$lt_save_CFLAGS"
5253 else
5254 echo "cannot find nm_test_func in $nlist" >&5
5255 fi
5256 else
5257 echo "cannot find nm_test_var in $nlist" >&5
5258 fi
5259 else
5260 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5261 fi
5262 else
5263 echo "$progname: failed program was:" >&5
5264 cat conftest.$ac_ext >&5
5265 fi
5266 rm -f conftest* conftst*
5267
5268 # Do not use the global_symbol_pipe unless it works.
5269 if test "$pipe_works" = yes; then
5270 break
5271 else
5272 lt_cv_sys_global_symbol_pipe=
5273 fi
5274done
5275
5276fi
5277
5278if test -z "$lt_cv_sys_global_symbol_pipe"; then
5279 lt_cv_sys_global_symbol_to_cdecl=
5280fi
5281if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5282 echo "$as_me:$LINENO: result: failed" >&5
5283echo "${ECHO_T}failed" >&6
5284else
5285 echo "$as_me:$LINENO: result: ok" >&5
5286echo "${ECHO_T}ok" >&6
5287fi
5288
5289echo "$as_me:$LINENO: checking for objdir" >&5
5290echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5291if test "${lt_cv_objdir+set}" = set; then
5292 echo $ECHO_N "(cached) $ECHO_C" >&6
5293else
5294 rm -f .libs 2>/dev/null
5295mkdir .libs 2>/dev/null
5296if test -d .libs; then
5297 lt_cv_objdir=.libs
5298else
5299 # MS-DOS does not allow filenames that begin with a dot.
5300 lt_cv_objdir=_libs
5301fi
5302rmdir .libs 2>/dev/null
5303fi
5304echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5305echo "${ECHO_T}$lt_cv_objdir" >&6
5306objdir=$lt_cv_objdir
5307
5308
5309
5310
5311
5312case $host_os in
5313aix3*)
5314 # AIX sometimes has problems with the GCC collect2 program. For some
5315 # reason, if we set the COLLECT_NAMES environment variable, the problems
5316 # vanish in a puff of smoke.
5317 if test "X${COLLECT_NAMES+set}" != Xset; then
5318 COLLECT_NAMES=
5319 export COLLECT_NAMES
John Criswell7a73b802003-06-30 21:59:07 +00005320 fi
5321 ;;
5322esac
5323
John Criswell47fdd832003-07-14 16:52:07 +00005324# Sed substitution that helps us do robust quoting. It backslashifies
5325# metacharacters that are still active within double-quoted strings.
5326Xsed='sed -e s/^X//'
5327sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5328
5329# Same as above, but do not quote variable references.
5330double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5331
5332# Sed substitution to delay expansion of an escaped shell variable in a
5333# double_quote_subst'ed string.
5334delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5335
5336# Sed substitution to avoid accidental globbing in evaled expressions
5337no_glob_subst='s/\*/\\\*/g'
5338
5339# Constants:
5340rm="rm -f"
5341
5342# Global variables:
John Criswell8d4221e2003-07-23 16:52:50 +00005343default_ofile=mklib
John Criswell47fdd832003-07-14 16:52:07 +00005344can_build_shared=yes
5345
5346# All known linkers require a `.a' archive for static linking (except M$VC,
5347# which needs '.lib').
5348libext=a
5349ltmain="$ac_aux_dir/ltmain.sh"
5350ofile="$default_ofile"
5351with_gnu_ld="$lt_cv_prog_gnu_ld"
5352
5353if test -n "$ac_tool_prefix"; then
5354 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5355set dummy ${ac_tool_prefix}ar; ac_word=$2
5356echo "$as_me:$LINENO: checking for $ac_word" >&5
5357echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5358if test "${ac_cv_prog_AR+set}" = set; then
5359 echo $ECHO_N "(cached) $ECHO_C" >&6
5360else
5361 if test -n "$AR"; then
5362 ac_cv_prog_AR="$AR" # Let the user override the test.
5363else
5364as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5365for as_dir in $PATH
5366do
5367 IFS=$as_save_IFS
5368 test -z "$as_dir" && as_dir=.
5369 for ac_exec_ext in '' $ac_executable_extensions; do
5370 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5371 ac_cv_prog_AR="${ac_tool_prefix}ar"
5372 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5373 break 2
5374 fi
5375done
5376done
5377
5378fi
5379fi
5380AR=$ac_cv_prog_AR
5381if test -n "$AR"; then
5382 echo "$as_me:$LINENO: result: $AR" >&5
5383echo "${ECHO_T}$AR" >&6
5384else
5385 echo "$as_me:$LINENO: result: no" >&5
5386echo "${ECHO_T}no" >&6
5387fi
5388
5389fi
5390if test -z "$ac_cv_prog_AR"; then
5391 ac_ct_AR=$AR
5392 # Extract the first word of "ar", so it can be a program name with args.
5393set dummy ar; ac_word=$2
5394echo "$as_me:$LINENO: checking for $ac_word" >&5
5395echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5396if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5397 echo $ECHO_N "(cached) $ECHO_C" >&6
5398else
5399 if test -n "$ac_ct_AR"; then
5400 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5401else
5402as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5403for as_dir in $PATH
5404do
5405 IFS=$as_save_IFS
5406 test -z "$as_dir" && as_dir=.
5407 for ac_exec_ext in '' $ac_executable_extensions; do
5408 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5409 ac_cv_prog_ac_ct_AR="ar"
5410 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5411 break 2
5412 fi
5413done
5414done
5415
5416 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5417fi
5418fi
5419ac_ct_AR=$ac_cv_prog_ac_ct_AR
5420if test -n "$ac_ct_AR"; then
5421 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5422echo "${ECHO_T}$ac_ct_AR" >&6
5423else
5424 echo "$as_me:$LINENO: result: no" >&5
5425echo "${ECHO_T}no" >&6
5426fi
5427
5428 AR=$ac_ct_AR
5429else
5430 AR="$ac_cv_prog_AR"
5431fi
5432
John Criswell7a73b802003-06-30 21:59:07 +00005433if test -n "$ac_tool_prefix"; then
5434 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5435set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5436echo "$as_me:$LINENO: checking for $ac_word" >&5
5437echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5438if test "${ac_cv_prog_RANLIB+set}" = set; then
5439 echo $ECHO_N "(cached) $ECHO_C" >&6
5440else
5441 if test -n "$RANLIB"; then
5442 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5443else
5444as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5445for as_dir in $PATH
5446do
5447 IFS=$as_save_IFS
5448 test -z "$as_dir" && as_dir=.
5449 for ac_exec_ext in '' $ac_executable_extensions; do
5450 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5451 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5452 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5453 break 2
5454 fi
5455done
5456done
5457
5458fi
5459fi
5460RANLIB=$ac_cv_prog_RANLIB
5461if test -n "$RANLIB"; then
5462 echo "$as_me:$LINENO: result: $RANLIB" >&5
5463echo "${ECHO_T}$RANLIB" >&6
5464else
5465 echo "$as_me:$LINENO: result: no" >&5
5466echo "${ECHO_T}no" >&6
5467fi
5468
5469fi
5470if test -z "$ac_cv_prog_RANLIB"; then
5471 ac_ct_RANLIB=$RANLIB
5472 # Extract the first word of "ranlib", so it can be a program name with args.
5473set dummy ranlib; ac_word=$2
5474echo "$as_me:$LINENO: checking for $ac_word" >&5
5475echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5476if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5477 echo $ECHO_N "(cached) $ECHO_C" >&6
5478else
5479 if test -n "$ac_ct_RANLIB"; then
5480 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5481else
5482as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5483for as_dir in $PATH
5484do
5485 IFS=$as_save_IFS
5486 test -z "$as_dir" && as_dir=.
5487 for ac_exec_ext in '' $ac_executable_extensions; do
5488 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5489 ac_cv_prog_ac_ct_RANLIB="ranlib"
5490 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5491 break 2
5492 fi
5493done
5494done
5495
5496 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5497fi
5498fi
5499ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5500if test -n "$ac_ct_RANLIB"; then
5501 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5502echo "${ECHO_T}$ac_ct_RANLIB" >&6
5503else
5504 echo "$as_me:$LINENO: result: no" >&5
5505echo "${ECHO_T}no" >&6
5506fi
5507
5508 RANLIB=$ac_ct_RANLIB
5509else
5510 RANLIB="$ac_cv_prog_RANLIB"
5511fi
5512
5513if test -n "$ac_tool_prefix"; then
5514 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5515set dummy ${ac_tool_prefix}strip; ac_word=$2
5516echo "$as_me:$LINENO: checking for $ac_word" >&5
5517echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5518if test "${ac_cv_prog_STRIP+set}" = set; then
5519 echo $ECHO_N "(cached) $ECHO_C" >&6
5520else
5521 if test -n "$STRIP"; then
5522 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5523else
5524as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5525for as_dir in $PATH
5526do
5527 IFS=$as_save_IFS
5528 test -z "$as_dir" && as_dir=.
5529 for ac_exec_ext in '' $ac_executable_extensions; do
5530 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5531 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5532 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5533 break 2
5534 fi
5535done
5536done
5537
5538fi
5539fi
5540STRIP=$ac_cv_prog_STRIP
5541if test -n "$STRIP"; then
5542 echo "$as_me:$LINENO: result: $STRIP" >&5
5543echo "${ECHO_T}$STRIP" >&6
5544else
5545 echo "$as_me:$LINENO: result: no" >&5
5546echo "${ECHO_T}no" >&6
5547fi
5548
5549fi
5550if test -z "$ac_cv_prog_STRIP"; then
5551 ac_ct_STRIP=$STRIP
5552 # Extract the first word of "strip", so it can be a program name with args.
5553set dummy strip; ac_word=$2
5554echo "$as_me:$LINENO: checking for $ac_word" >&5
5555echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5556if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5557 echo $ECHO_N "(cached) $ECHO_C" >&6
5558else
5559 if test -n "$ac_ct_STRIP"; then
5560 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5561else
5562as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5563for as_dir in $PATH
5564do
5565 IFS=$as_save_IFS
5566 test -z "$as_dir" && as_dir=.
5567 for ac_exec_ext in '' $ac_executable_extensions; do
5568 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5569 ac_cv_prog_ac_ct_STRIP="strip"
5570 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5571 break 2
5572 fi
5573done
5574done
5575
5576 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5577fi
5578fi
5579ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5580if test -n "$ac_ct_STRIP"; then
5581 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5582echo "${ECHO_T}$ac_ct_STRIP" >&6
5583else
5584 echo "$as_me:$LINENO: result: no" >&5
5585echo "${ECHO_T}no" >&6
5586fi
5587
5588 STRIP=$ac_ct_STRIP
5589else
5590 STRIP="$ac_cv_prog_STRIP"
5591fi
5592
5593
John Criswell7a73b802003-06-30 21:59:07 +00005594old_CC="$CC"
5595old_CFLAGS="$CFLAGS"
5596
5597# Set sane defaults for various variables
5598test -z "$AR" && AR=ar
5599test -z "$AR_FLAGS" && AR_FLAGS=cru
5600test -z "$AS" && AS=as
5601test -z "$CC" && CC=cc
John Criswell47fdd832003-07-14 16:52:07 +00005602test -z "$LTCC" && LTCC=$CC
John Criswell7a73b802003-06-30 21:59:07 +00005603test -z "$DLLTOOL" && DLLTOOL=dlltool
5604test -z "$LD" && LD=ld
5605test -z "$LN_S" && LN_S="ln -s"
5606test -z "$MAGIC_CMD" && MAGIC_CMD=file
5607test -z "$NM" && NM=nm
John Criswell47fdd832003-07-14 16:52:07 +00005608test -z "$SED" && SED=sed
John Criswell7a73b802003-06-30 21:59:07 +00005609test -z "$OBJDUMP" && OBJDUMP=objdump
5610test -z "$RANLIB" && RANLIB=:
5611test -z "$STRIP" && STRIP=:
5612test -z "$ac_objext" && ac_objext=o
5613
John Criswell7a73b802003-06-30 21:59:07 +00005614# Determine commands to create old-style static archives.
5615old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5616old_postinstall_cmds='chmod 644 $oldlib'
5617old_postuninstall_cmds=
5618
5619if test -n "$RANLIB"; then
5620 case $host_os in
5621 openbsd*)
5622 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5623 ;;
5624 *)
5625 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5626 ;;
5627 esac
5628 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5629fi
5630
John Criswell47fdd832003-07-14 16:52:07 +00005631# Only perform the check for file, if the check method requires it
5632case $deplibs_check_method in
5633file_magic*)
5634 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5635 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5636echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5637if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5638 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00005639else
John Criswell47fdd832003-07-14 16:52:07 +00005640 case $MAGIC_CMD in
5641[\\/*] | ?:[\\/]*)
5642 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5643 ;;
5644*)
5645 lt_save_MAGIC_CMD="$MAGIC_CMD"
5646 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5647 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5648 for ac_dir in $ac_dummy; do
5649 IFS="$lt_save_ifs"
5650 test -z "$ac_dir" && ac_dir=.
5651 if test -f $ac_dir/${ac_tool_prefix}file; then
5652 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5653 if test -n "$file_magic_test_file"; then
5654 case $deplibs_check_method in
5655 "file_magic "*)
5656 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5657 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5658 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5659 $EGREP "$file_magic_regex" > /dev/null; then
5660 :
5661 else
5662 cat <<EOF 1>&2
5663
5664*** Warning: the command libtool uses to detect shared libraries,
5665*** $file_magic_cmd, produces output that libtool cannot recognize.
5666*** The result is that libtool may fail to recognize shared libraries
5667*** as such. This will affect the creation of libtool libraries that
5668*** depend on shared libraries, but programs linked with such libtool
5669*** libraries will work regardless of this problem. Nevertheless, you
5670*** may want to report the problem to your system manager and/or to
5671*** bug-libtool@gnu.org
5672
5673EOF
5674 fi ;;
5675 esac
5676 fi
5677 break
5678 fi
5679 done
5680 IFS="$lt_save_ifs"
5681 MAGIC_CMD="$lt_save_MAGIC_CMD"
5682 ;;
5683esac
John Criswell7a73b802003-06-30 21:59:07 +00005684fi
John Criswell7a73b802003-06-30 21:59:07 +00005685
John Criswell47fdd832003-07-14 16:52:07 +00005686MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5687if test -n "$MAGIC_CMD"; then
5688 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5689echo "${ECHO_T}$MAGIC_CMD" >&6
5690else
5691 echo "$as_me:$LINENO: result: no" >&5
5692echo "${ECHO_T}no" >&6
5693fi
John Criswell7a73b802003-06-30 21:59:07 +00005694
John Criswell47fdd832003-07-14 16:52:07 +00005695if test -z "$lt_cv_path_MAGIC_CMD"; then
5696 if test -n "$ac_tool_prefix"; then
5697 echo "$as_me:$LINENO: checking for file" >&5
5698echo $ECHO_N "checking for file... $ECHO_C" >&6
5699if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5700 echo $ECHO_N "(cached) $ECHO_C" >&6
5701else
5702 case $MAGIC_CMD in
5703[\\/*] | ?:[\\/]*)
5704 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5705 ;;
5706*)
5707 lt_save_MAGIC_CMD="$MAGIC_CMD"
5708 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5709 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5710 for ac_dir in $ac_dummy; do
5711 IFS="$lt_save_ifs"
5712 test -z "$ac_dir" && ac_dir=.
5713 if test -f $ac_dir/file; then
5714 lt_cv_path_MAGIC_CMD="$ac_dir/file"
5715 if test -n "$file_magic_test_file"; then
5716 case $deplibs_check_method in
5717 "file_magic "*)
5718 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5719 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5720 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5721 $EGREP "$file_magic_regex" > /dev/null; then
5722 :
5723 else
5724 cat <<EOF 1>&2
5725
5726*** Warning: the command libtool uses to detect shared libraries,
5727*** $file_magic_cmd, produces output that libtool cannot recognize.
5728*** The result is that libtool may fail to recognize shared libraries
5729*** as such. This will affect the creation of libtool libraries that
5730*** depend on shared libraries, but programs linked with such libtool
5731*** libraries will work regardless of this problem. Nevertheless, you
5732*** may want to report the problem to your system manager and/or to
5733*** bug-libtool@gnu.org
5734
5735EOF
5736 fi ;;
5737 esac
5738 fi
5739 break
5740 fi
5741 done
5742 IFS="$lt_save_ifs"
5743 MAGIC_CMD="$lt_save_MAGIC_CMD"
5744 ;;
5745esac
5746fi
5747
5748MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5749if test -n "$MAGIC_CMD"; then
5750 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5751echo "${ECHO_T}$MAGIC_CMD" >&6
5752else
5753 echo "$as_me:$LINENO: result: no" >&5
5754echo "${ECHO_T}no" >&6
5755fi
5756
5757 else
5758 MAGIC_CMD=:
5759 fi
5760fi
5761
5762 fi
5763 ;;
5764esac
5765
5766enable_dlopen=no
5767enable_win32_dll=no
5768
5769# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5770if test "${enable_libtool_lock+set}" = set; then
5771 enableval="$enable_libtool_lock"
5772
5773fi;
5774test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5775
John Criswell7a73b802003-06-30 21:59:07 +00005776
5777# Check whether --with-pic or --without-pic was given.
5778if test "${with_pic+set}" = set; then
5779 withval="$with_pic"
5780 pic_mode="$withval"
5781else
5782 pic_mode=default
5783fi;
5784test -z "$pic_mode" && pic_mode=default
5785
John Criswell47fdd832003-07-14 16:52:07 +00005786# Use C for the default configuration in the libtool script
5787tagname=
5788lt_save_CC="$CC"
5789ac_ext=c
5790ac_cpp='$CPP $CPPFLAGS'
5791ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5792ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5793ac_compiler_gnu=$ac_cv_c_compiler_gnu
5794
5795
5796# Source file extension for C test sources.
5797ac_ext=c
5798
5799# Object file extension for compiled C test sources.
5800objext=o
5801objext=$objext
5802
5803# Code to be used in simple compile tests
5804lt_simple_compile_test_code="int some_variable = 0;\n"
5805
5806# Code to be used in simple link tests
5807lt_simple_link_test_code='int main(){return(0);}\n'
5808
5809
5810# If no C compiler was specified, use CC.
5811LTCC=${LTCC-"$CC"}
5812
5813# Allow CC to be a program name with arguments.
5814compiler=$CC
5815
5816
5817#
5818# Check for any special shared library compilation flags.
5819#
5820lt_prog_cc_shlib=
5821if test "$GCC" = no; then
5822 case $host_os in
5823 sco3.2v5*)
5824 lt_prog_cc_shlib='-belf'
5825 ;;
5826 esac
5827fi
5828if test -n "$lt_prog_cc_shlib"; then
5829 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
5830echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
5831 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
5832 else
5833 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5834echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5835 lt_cv_prog_cc_can_build_shared=no
5836 fi
5837fi
5838
5839
5840#
5841# Check to make sure the static flag actually works.
5842#
5843echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
5844echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
5845if test "${lt_prog_compiler_static_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00005846 echo $ECHO_N "(cached) $ECHO_C" >&6
5847else
John Criswell47fdd832003-07-14 16:52:07 +00005848 lt_prog_compiler_static_works=no
5849 save_LDFLAGS="$LDFLAGS"
5850 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
5851 printf "$lt_simple_link_test_code" > conftest.$ac_ext
5852 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
5853 # The compiler can only warn and ignore the option if not recognized
5854 # So say no if there are warnings
5855 if test -s conftest.err; then
5856 # Append any errors to the config.log.
5857 cat conftest.err 1>&5
5858 else
5859 lt_prog_compiler_static_works=yes
5860 fi
5861 fi
5862 $rm conftest*
5863 LDFLAGS="$save_LDFLAGS"
5864
5865fi
5866echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
5867echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
5868
5869if test x"$lt_prog_compiler_static_works" = xyes; then
5870 :
5871else
5872 lt_prog_compiler_static=
5873fi
5874
5875
5876
John Criswell47fdd832003-07-14 16:52:07 +00005877
5878lt_prog_compiler_no_builtin_flag=
5879
5880if test "$GCC" = yes; then
5881 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
5882
5883 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5884echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5885if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
5886 echo $ECHO_N "(cached) $ECHO_C" >&6
5887else
5888 lt_cv_prog_compiler_rtti_exceptions=no
5889 ac_outfile=conftest.$ac_objext
5890 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
5891 lt_compiler_flag="-fno-rtti -fno-exceptions"
5892 # Insert the option either (1) after the last *FLAGS variable, or
5893 # (2) before a word containing "conftest.", or (3) at the end.
5894 # Note that $ac_compile itself does not contain backslashes and begins
5895 # with a dollar sign (not a hyphen), so the echo should work correctly.
5896 # The option is referenced via a variable to avoid confusing sed.
5897 lt_compile=`echo "$ac_compile" | $SED \
5898 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
5899 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5900 -e 's:$: $lt_compiler_flag:'`
John Criswell8a54a1e2004-06-22 21:35:10 +00005901 (eval echo "\"\$as_me:5901: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +00005902 (eval "$lt_compile" 2>conftest.err)
5903 ac_status=$?
5904 cat conftest.err >&5
John Criswell8a54a1e2004-06-22 21:35:10 +00005905 echo "$as_me:5905: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00005906 if (exit $ac_status) && test -s "$ac_outfile"; then
5907 # The compiler can only warn and ignore the option if not recognized
5908 # So say no if there are warnings
5909 if test ! -s conftest.err; then
5910 lt_cv_prog_compiler_rtti_exceptions=yes
5911 fi
5912 fi
5913 $rm conftest*
5914
5915fi
5916echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
5917echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
5918
5919if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
5920 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
5921else
5922 :
5923fi
5924
5925fi
5926
5927lt_prog_compiler_wl=
5928lt_prog_compiler_pic=
5929lt_prog_compiler_static=
5930
5931echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5932echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00005933
5934 if test "$GCC" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +00005935 lt_prog_compiler_wl='-Wl,'
5936 lt_prog_compiler_static='-static'
John Criswell7a73b802003-06-30 21:59:07 +00005937
5938 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00005939 aix*)
5940 # All AIX code is PIC.
5941 if test "$host_cpu" = ia64; then
5942 # AIX 5 now supports IA64 processor
5943 lt_prog_compiler_static='-Bstatic'
5944 fi
John Criswell7a73b802003-06-30 21:59:07 +00005945 ;;
John Criswell47fdd832003-07-14 16:52:07 +00005946
John Criswell7a73b802003-06-30 21:59:07 +00005947 amigaos*)
5948 # FIXME: we need at least 68020 code to build shared libraries, but
5949 # adding the `-m68020' flag to GCC prevents building anything better,
5950 # like `-m68040'.
John Criswell47fdd832003-07-14 16:52:07 +00005951 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
John Criswell7a73b802003-06-30 21:59:07 +00005952 ;;
John Criswell47fdd832003-07-14 16:52:07 +00005953
5954 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
John Criswell7a73b802003-06-30 21:59:07 +00005955 # PIC is the default for these OSes.
5956 ;;
John Criswell47fdd832003-07-14 16:52:07 +00005957
5958 mingw* | pw32* | os2*)
5959 # This hack is so that the source file can tell whether it is being
5960 # built for inclusion in a dll (and should export symbols for example).
5961 lt_prog_compiler_pic='-DDLL_EXPORT'
5962 ;;
5963
John Criswell7a73b802003-06-30 21:59:07 +00005964 darwin* | rhapsody*)
5965 # PIC is the default on this platform
5966 # Common symbols not allowed in MH_DYLIB files
John Criswell47fdd832003-07-14 16:52:07 +00005967 lt_prog_compiler_pic='-fno-common'
John Criswell7a73b802003-06-30 21:59:07 +00005968 ;;
John Criswell47fdd832003-07-14 16:52:07 +00005969
5970 msdosdjgpp*)
5971 # Just because we use GCC doesn't mean we suddenly get shared libraries
5972 # on systems that don't support them.
5973 lt_prog_compiler_can_build_shared=no
5974 enable_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00005975 ;;
John Criswell47fdd832003-07-14 16:52:07 +00005976
John Criswell7a73b802003-06-30 21:59:07 +00005977 sysv4*MP*)
5978 if test -d /usr/nec; then
John Criswell47fdd832003-07-14 16:52:07 +00005979 lt_prog_compiler_pic=-Kconform_pic
John Criswell7a73b802003-06-30 21:59:07 +00005980 fi
5981 ;;
John Criswell47fdd832003-07-14 16:52:07 +00005982
5983 hpux*)
5984 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5985 # not for PA HP-UX.
5986 case "$host_cpu" in
5987 hppa*64*|ia64*)
5988 # +Z the default
5989 ;;
5990 *)
5991 lt_prog_compiler_pic='-fPIC'
5992 ;;
5993 esac
5994 ;;
5995
John Criswell7a73b802003-06-30 21:59:07 +00005996 *)
John Criswell47fdd832003-07-14 16:52:07 +00005997 lt_prog_compiler_pic='-fPIC'
John Criswell7a73b802003-06-30 21:59:07 +00005998 ;;
5999 esac
6000 else
John Criswell47fdd832003-07-14 16:52:07 +00006001 # PORTME Check for flag to pass linker flags through the system compiler.
John Criswell7a73b802003-06-30 21:59:07 +00006002 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00006003 aix*)
6004 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +00006005 if test "$host_cpu" = ia64; then
6006 # AIX 5 now supports IA64 processor
John Criswell47fdd832003-07-14 16:52:07 +00006007 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006008 else
John Criswell47fdd832003-07-14 16:52:07 +00006009 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
John Criswell7a73b802003-06-30 21:59:07 +00006010 fi
6011 ;;
6012
John Criswell47fdd832003-07-14 16:52:07 +00006013 mingw* | pw32* | os2*)
6014 # This hack is so that the source file can tell whether it is being
6015 # built for inclusion in a dll (and should export symbols for example).
6016 lt_prog_compiler_pic='-DDLL_EXPORT'
6017 ;;
6018
John Criswell7a73b802003-06-30 21:59:07 +00006019 hpux9* | hpux10* | hpux11*)
John Criswell47fdd832003-07-14 16:52:07 +00006020 lt_prog_compiler_wl='-Wl,'
6021 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6022 # not for PA HP-UX.
6023 case "$host_cpu" in
6024 hppa*64*|ia64*)
6025 # +Z the default
6026 ;;
6027 *)
6028 lt_prog_compiler_pic='+Z'
6029 ;;
6030 esac
6031 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6032 lt_prog_compiler_static='${wl}-a ${wl}archive'
John Criswell7a73b802003-06-30 21:59:07 +00006033 ;;
6034
John Criswell47fdd832003-07-14 16:52:07 +00006035 irix5* | irix6* | nonstopux*)
6036 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +00006037 # PIC (with -KPIC) is the default.
John Criswell47fdd832003-07-14 16:52:07 +00006038 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +00006039 ;;
6040
6041 newsos6)
John Criswell47fdd832003-07-14 16:52:07 +00006042 lt_prog_compiler_pic='-KPIC'
6043 lt_prog_compiler_static='-Bstatic'
6044 ;;
6045
6046 linux*)
6047 case $CC in
6048 icc|ecc)
6049 lt_prog_compiler_wl='-Wl,'
6050 lt_prog_compiler_pic='-KPIC'
6051 lt_prog_compiler_static='-static'
6052 ;;
6053 ccc)
6054 lt_prog_compiler_wl='-Wl,'
6055 # All Alpha code is PIC.
6056 lt_prog_compiler_static='-non_shared'
6057 ;;
6058 esac
John Criswell7a73b802003-06-30 21:59:07 +00006059 ;;
6060
6061 osf3* | osf4* | osf5*)
John Criswell47fdd832003-07-14 16:52:07 +00006062 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +00006063 # All OSF/1 code is PIC.
John Criswell47fdd832003-07-14 16:52:07 +00006064 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +00006065 ;;
6066
6067 sco3.2v5*)
John Criswell47fdd832003-07-14 16:52:07 +00006068 lt_prog_compiler_pic='-Kpic'
6069 lt_prog_compiler_static='-dn'
John Criswell7a73b802003-06-30 21:59:07 +00006070 ;;
6071
6072 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +00006073 lt_prog_compiler_wl='-Wl,'
6074 lt_prog_compiler_pic='-KPIC'
6075 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006076 ;;
6077
6078 sunos4*)
John Criswell47fdd832003-07-14 16:52:07 +00006079 lt_prog_compiler_wl='-Qoption ld '
6080 lt_prog_compiler_pic='-PIC'
6081 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006082 ;;
6083
6084 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
John Criswell47fdd832003-07-14 16:52:07 +00006085 lt_prog_compiler_wl='-Wl,'
6086 lt_prog_compiler_pic='-KPIC'
6087 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006088 ;;
6089
6090 sysv4*MP*)
6091 if test -d /usr/nec ;then
John Criswell47fdd832003-07-14 16:52:07 +00006092 lt_prog_compiler_pic='-Kconform_pic'
6093 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006094 fi
6095 ;;
6096
John Criswell47fdd832003-07-14 16:52:07 +00006097 uts4*)
6098 lt_prog_compiler_pic='-pic'
6099 lt_prog_compiler_static='-Bstatic'
6100 ;;
6101
John Criswell7a73b802003-06-30 21:59:07 +00006102 *)
John Criswell47fdd832003-07-14 16:52:07 +00006103 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00006104 ;;
6105 esac
6106 fi
6107
John Criswell47fdd832003-07-14 16:52:07 +00006108echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6109echo "${ECHO_T}$lt_prog_compiler_pic" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006110
John Criswell47fdd832003-07-14 16:52:07 +00006111#
6112# Check to make sure the PIC flag actually works.
6113#
6114if test -n "$lt_prog_compiler_pic"; then
6115 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6116echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6117if test "${lt_prog_compiler_pic_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00006118 echo $ECHO_N "(cached) $ECHO_C" >&6
6119else
John Criswell47fdd832003-07-14 16:52:07 +00006120 lt_prog_compiler_pic_works=no
6121 ac_outfile=conftest.$ac_objext
6122 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6123 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6124 # Insert the option either (1) after the last *FLAGS variable, or
6125 # (2) before a word containing "conftest.", or (3) at the end.
6126 # Note that $ac_compile itself does not contain backslashes and begins
6127 # with a dollar sign (not a hyphen), so the echo should work correctly.
6128 # The option is referenced via a variable to avoid confusing sed.
6129 lt_compile=`echo "$ac_compile" | $SED \
6130 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6131 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6132 -e 's:$: $lt_compiler_flag:'`
John Criswell8a54a1e2004-06-22 21:35:10 +00006133 (eval echo "\"\$as_me:6133: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +00006134 (eval "$lt_compile" 2>conftest.err)
6135 ac_status=$?
6136 cat conftest.err >&5
John Criswell8a54a1e2004-06-22 21:35:10 +00006137 echo "$as_me:6137: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00006138 if (exit $ac_status) && test -s "$ac_outfile"; then
6139 # The compiler can only warn and ignore the option if not recognized
6140 # So say no if there are warnings
6141 if test ! -s conftest.err; then
6142 lt_prog_compiler_pic_works=yes
6143 fi
6144 fi
6145 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +00006146
John Criswell47fdd832003-07-14 16:52:07 +00006147fi
6148echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6149echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006150
John Criswell47fdd832003-07-14 16:52:07 +00006151if test x"$lt_prog_compiler_pic_works" = xyes; then
6152 case $lt_prog_compiler_pic in
6153 "" | " "*) ;;
6154 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6155 esac
John Criswell7a73b802003-06-30 21:59:07 +00006156else
John Criswell47fdd832003-07-14 16:52:07 +00006157 lt_prog_compiler_pic=
6158 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00006159fi
6160
John Criswell7a73b802003-06-30 21:59:07 +00006161fi
John Criswell47fdd832003-07-14 16:52:07 +00006162case "$host_os" in
6163 # For platforms which do not support PIC, -DPIC is meaningless:
6164 *djgpp*)
6165 lt_prog_compiler_pic=
6166 ;;
6167 *)
6168 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6169 ;;
6170esac
John Criswell7a73b802003-06-30 21:59:07 +00006171
John Criswell7a73b802003-06-30 21:59:07 +00006172echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6173echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
John Criswell47fdd832003-07-14 16:52:07 +00006174if test "${lt_cv_prog_compiler_c_o+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00006175 echo $ECHO_N "(cached) $ECHO_C" >&6
6176else
John Criswell47fdd832003-07-14 16:52:07 +00006177 lt_cv_prog_compiler_c_o=no
6178 $rm -r conftest 2>/dev/null
6179 mkdir conftest
6180 cd conftest
6181 mkdir out
6182 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00006183
John Criswell47fdd832003-07-14 16:52:07 +00006184 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
6185 # that will create temporary files in the current directory regardless of
6186 # the output directory. Thus, making CWD read-only will cause this test
6187 # to fail, enabling locking or at least warning the user not to do parallel
6188 # builds.
6189 chmod -w .
6190
6191 lt_compiler_flag="-o out/conftest2.$ac_objext"
6192 # Insert the option either (1) after the last *FLAGS variable, or
6193 # (2) before a word containing "conftest.", or (3) at the end.
6194 # Note that $ac_compile itself does not contain backslashes and begins
6195 # with a dollar sign (not a hyphen), so the echo should work correctly.
6196 lt_compile=`echo "$ac_compile" | $SED \
6197 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6198 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6199 -e 's:$: $lt_compiler_flag:'`
John Criswell8a54a1e2004-06-22 21:35:10 +00006200 (eval echo "\"\$as_me:6200: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +00006201 (eval "$lt_compile" 2>out/conftest.err)
6202 ac_status=$?
6203 cat out/conftest.err >&5
John Criswell8a54a1e2004-06-22 21:35:10 +00006204 echo "$as_me:6204: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00006205 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6206 then
6207 # The compiler can only warn and ignore the option if not recognized
6208 # So say no if there are warnings
6209 if test ! -s out/conftest.err; then
6210 lt_cv_prog_compiler_c_o=yes
6211 fi
6212 fi
6213 chmod u+w .
6214 $rm conftest* out/*
6215 rmdir out
6216 cd ..
6217 rmdir conftest
6218 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +00006219
6220fi
John Criswell47fdd832003-07-14 16:52:07 +00006221echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6222echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006223
John Criswell7a73b802003-06-30 21:59:07 +00006224
John Criswell7a73b802003-06-30 21:59:07 +00006225hard_links="nottested"
John Criswell47fdd832003-07-14 16:52:07 +00006226if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
John Criswell7a73b802003-06-30 21:59:07 +00006227 # do not overwrite the value of need_locks provided by the user
6228 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6229echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6230 hard_links=yes
6231 $rm conftest*
6232 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6233 touch conftest.a
6234 ln conftest.a conftest.b 2>&5 || hard_links=no
6235 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6236 echo "$as_me:$LINENO: result: $hard_links" >&5
6237echo "${ECHO_T}$hard_links" >&6
6238 if test "$hard_links" = no; then
6239 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6240echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6241 need_locks=warn
6242 fi
6243else
6244 need_locks=no
6245fi
John Criswell7a73b802003-06-30 21:59:07 +00006246
John Criswell47fdd832003-07-14 16:52:07 +00006247echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6248echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6249
6250 runpath_var=
6251 allow_undefined_flag=
6252 enable_shared_with_static_runtimes=no
6253 archive_cmds=
6254 archive_expsym_cmds=
6255 old_archive_From_new_cmds=
6256 old_archive_from_expsyms_cmds=
6257 export_dynamic_flag_spec=
6258 whole_archive_flag_spec=
6259 thread_safe_flag_spec=
6260 hardcode_libdir_flag_spec=
6261 hardcode_libdir_flag_spec_ld=
6262 hardcode_libdir_separator=
6263 hardcode_direct=no
6264 hardcode_minus_L=no
6265 hardcode_shlibpath_var=unsupported
6266 link_all_deplibs=unknown
6267 hardcode_automatic=no
6268 module_cmds=
6269 module_expsym_cmds=
6270 always_export_symbols=no
6271 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6272 # include_expsyms should be a list of space-separated symbols to be *always*
6273 # included in the symbol list
6274 include_expsyms=
6275 # exclude_expsyms can be an extended regexp of symbols to exclude
6276 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6277 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6278 # as well as any symbol that contains `d'.
6279 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6280 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6281 # platforms (ab)use it in PIC code, but their linkers get confused if
6282 # the symbol is explicitly referenced. Since portable code cannot
6283 # rely on this symbol name, it's probably fine to never include it in
6284 # preloaded symbol tables.
6285 extract_expsyms_cmds=
6286
6287 case $host_os in
6288 cygwin* | mingw* | pw32*)
6289 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6290 # When not using gcc, we currently assume that we are using
6291 # Microsoft Visual C++.
6292 if test "$GCC" != yes; then
6293 with_gnu_ld=no
6294 fi
6295 ;;
6296 openbsd*)
6297 with_gnu_ld=no
6298 ;;
6299 esac
6300
6301 ld_shlibs=yes
6302 if test "$with_gnu_ld" = yes; then
6303 # If archive_cmds runs LD, not CC, wlarc should be empty
6304 wlarc='${wl}'
6305
6306 # See if GNU ld supports shared libraries.
6307 case $host_os in
6308 aix3* | aix4* | aix5*)
6309 # On AIX/PPC, the GNU linker is very broken
6310 if test "$host_cpu" != ia64; then
6311 ld_shlibs=no
6312 cat <<EOF 1>&2
6313
6314*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6315*** to be unable to reliably create shared libraries on AIX.
6316*** Therefore, libtool is disabling shared libraries support. If you
6317*** really care for shared libraries, you may want to modify your PATH
6318*** so that a non-GNU linker is found, and then restart.
6319
6320EOF
6321 fi
6322 ;;
6323
6324 amigaos*)
6325 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)'
6326 hardcode_libdir_flag_spec='-L$libdir'
6327 hardcode_minus_L=yes
6328
6329 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6330 # that the semantics of dynamic libraries on AmigaOS, at least up
6331 # to version 4, is to share data among multiple programs linked
6332 # with the same dynamic library. Since this doesn't match the
6333 # behavior of shared libraries on other platforms, we can't use
6334 # them.
6335 ld_shlibs=no
6336 ;;
6337
6338 beos*)
6339 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6340 allow_undefined_flag=unsupported
6341 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6342 # support --undefined. This deserves some investigation. FIXME
6343 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6344 else
6345 ld_shlibs=no
6346 fi
6347 ;;
6348
6349 cygwin* | mingw* | pw32*)
6350 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6351 # as there is no search path for DLLs.
6352 hardcode_libdir_flag_spec='-L$libdir'
6353 allow_undefined_flag=unsupported
6354 always_export_symbols=no
6355 enable_shared_with_static_runtimes=yes
6356 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6357
6358 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6359 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6360 # If the export-symbols file already is a .def file (1st line
6361 # is EXPORTS), use it as is; otherwise, prepend...
6362 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6363 cp $export_symbols $output_objdir/$soname.def;
6364 else
6365 echo EXPORTS > $output_objdir/$soname.def;
6366 cat $export_symbols >> $output_objdir/$soname.def;
6367 fi~
6368 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6369 else
6370 ld_shlibs=no
6371 fi
6372 ;;
6373
6374 netbsd*)
6375 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6376 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6377 wlarc=
6378 else
6379 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6380 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6381 fi
6382 ;;
6383
6384 solaris* | sysv5*)
6385 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6386 ld_shlibs=no
6387 cat <<EOF 1>&2
6388
6389*** Warning: The releases 2.8.* of the GNU linker cannot reliably
6390*** create shared libraries on Solaris systems. Therefore, libtool
6391*** is disabling shared libraries support. We urge you to upgrade GNU
6392*** binutils to release 2.9.1 or newer. Another option is to modify
6393*** your PATH or compiler configuration so that the native linker is
6394*** used, and then restart.
6395
6396EOF
6397 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6398 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6399 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6400 else
6401 ld_shlibs=no
6402 fi
6403 ;;
6404
6405 sunos4*)
6406 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6407 wlarc=
6408 hardcode_direct=yes
6409 hardcode_shlibpath_var=no
6410 ;;
6411
6412 *)
6413 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6414 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6415 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6416 else
6417 ld_shlibs=no
6418 fi
6419 ;;
6420 esac
6421
6422 if test "$ld_shlibs" = yes; then
6423 runpath_var=LD_RUN_PATH
6424 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6425 export_dynamic_flag_spec='${wl}--export-dynamic'
6426 # ancient GNU ld didn't support --whole-archive et. al.
6427 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6428 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6429 else
6430 whole_archive_flag_spec=
6431 fi
6432 fi
6433 else
6434 # PORTME fill in a description of your system's linker (not GNU ld)
6435 case $host_os in
6436 aix3*)
6437 allow_undefined_flag=unsupported
6438 always_export_symbols=yes
6439 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'
6440 # Note: this linker hardcodes the directories in LIBPATH if there
6441 # are no directories specified by -L.
6442 hardcode_minus_L=yes
6443 if test "$GCC" = yes && test -z "$link_static_flag"; then
6444 # Neither direct hardcoding nor static linking is supported with a
6445 # broken collect2.
6446 hardcode_direct=unsupported
6447 fi
6448 ;;
6449
6450 aix4* | aix5*)
6451 if test "$host_cpu" = ia64; then
6452 # On IA64, the linker does run time linking by default, so we don't
6453 # have to do anything special.
6454 aix_use_runtimelinking=no
6455 exp_sym_flag='-Bexport'
6456 no_entry_flag=""
6457 else
6458 # If we're using GNU nm, then we don't want the "-C" option.
6459 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6460 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6461 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'
6462 else
6463 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'
6464 fi
6465 aix_use_runtimelinking=no
6466
6467 # Test if we are trying to use run time linking or normal
6468 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6469 # need to do runtime linking.
6470 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6471 for ld_flag in $LDFLAGS; do
6472 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6473 aix_use_runtimelinking=yes
6474 break
6475 fi
6476 done
6477 esac
6478
6479 exp_sym_flag='-bexport'
6480 no_entry_flag='-bnoentry'
6481 fi
6482
6483 # When large executables or shared objects are built, AIX ld can
6484 # have problems creating the table of contents. If linking a library
6485 # or program results in "error TOC overflow" add -mminimal-toc to
6486 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6487 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6488
6489 archive_cmds=''
6490 hardcode_direct=yes
6491 hardcode_libdir_separator=':'
6492 link_all_deplibs=yes
6493
6494 if test "$GCC" = yes; then
6495 case $host_os in aix4.012|aix4.012.*)
6496 # We only want to do this on AIX 4.2 and lower, the check
6497 # below for broken collect2 doesn't work under 4.3+
6498 collect2name=`${CC} -print-prog-name=collect2`
6499 if test -f "$collect2name" && \
6500 strings "$collect2name" | grep resolve_lib_name >/dev/null
6501 then
6502 # We have reworked collect2
6503 hardcode_direct=yes
6504 else
6505 # We have old collect2
6506 hardcode_direct=unsupported
6507 # It fails to find uninstalled libraries when the uninstalled
6508 # path is not listed in the libpath. Setting hardcode_minus_L
6509 # to unsupported forces relinking
6510 hardcode_minus_L=yes
6511 hardcode_libdir_flag_spec='-L$libdir'
6512 hardcode_libdir_separator=
6513 fi
6514 esac
6515 shared_flag='-shared'
6516 else
6517 # not using gcc
6518 if test "$host_cpu" = ia64; then
6519 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6520 # chokes on -Wl,-G. The following line is correct:
6521 shared_flag='-G'
6522 else
6523 if test "$aix_use_runtimelinking" = yes; then
6524 shared_flag='${wl}-G'
6525 else
6526 shared_flag='${wl}-bM:SRE'
6527 fi
6528 fi
6529 fi
6530
6531 # It seems that -bexpall does not export symbols beginning with
6532 # underscore (_), so it is better to generate a list of symbols to export.
6533 always_export_symbols=yes
6534 if test "$aix_use_runtimelinking" = yes; then
6535 # Warning - without using the other runtime loading flags (-brtl),
6536 # -berok will link without error, but may produce a broken library.
6537 allow_undefined_flag='-berok'
6538 # Determine the default libpath from the value encoded in an empty executable.
6539 cat >conftest.$ac_ext <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00006540#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00006541/* confdefs.h. */
6542_ACEOF
6543cat confdefs.h >>conftest.$ac_ext
6544cat >>conftest.$ac_ext <<_ACEOF
6545/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006546
John Criswell7a73b802003-06-30 21:59:07 +00006547int
6548main ()
6549{
John Criswell47fdd832003-07-14 16:52:07 +00006550
John Criswell7a73b802003-06-30 21:59:07 +00006551 ;
6552 return 0;
6553}
6554_ACEOF
John Criswell47fdd832003-07-14 16:52:07 +00006555rm -f conftest.$ac_objext conftest$ac_exeext
6556if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6557 (eval $ac_link) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00006558 ac_status=$?
6559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6560 (exit $ac_status); } &&
John Criswell47fdd832003-07-14 16:52:07 +00006561 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00006562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6563 (eval $ac_try) 2>&5
6564 ac_status=$?
6565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6566 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00006567
John Criswell47fdd832003-07-14 16:52:07 +00006568aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6569}'`
6570# Check for a 64-bit object if we didn't find anything.
6571if 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; }
6572}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +00006573else
6574 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006575sed 's/^/| /' conftest.$ac_ext >&5
6576
John Criswell7a73b802003-06-30 21:59:07 +00006577fi
John Criswell47fdd832003-07-14 16:52:07 +00006578rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6579if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +00006580
John Criswell47fdd832003-07-14 16:52:07 +00006581 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6582 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"
6583 else
6584 if test "$host_cpu" = ia64; then
6585 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6586 allow_undefined_flag="-z nodefs"
6587 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"
6588 else
6589 # Determine the default libpath from the value encoded in an empty executable.
6590 cat >conftest.$ac_ext <<_ACEOF
6591#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00006592/* confdefs.h. */
6593_ACEOF
6594cat confdefs.h >>conftest.$ac_ext
6595cat >>conftest.$ac_ext <<_ACEOF
6596/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006597
John Criswell47fdd832003-07-14 16:52:07 +00006598int
6599main ()
6600{
John Criswell7a73b802003-06-30 21:59:07 +00006601
John Criswell47fdd832003-07-14 16:52:07 +00006602 ;
6603 return 0;
6604}
6605_ACEOF
6606rm -f conftest.$ac_objext conftest$ac_exeext
6607if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6608 (eval $ac_link) 2>&5
6609 ac_status=$?
6610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6611 (exit $ac_status); } &&
6612 { ac_try='test -s conftest$ac_exeext'
6613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6614 (eval $ac_try) 2>&5
6615 ac_status=$?
6616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6617 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00006618
John Criswell47fdd832003-07-14 16:52:07 +00006619aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6620}'`
6621# Check for a 64-bit object if we didn't find anything.
6622if 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; }
6623}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +00006624else
John Criswell47fdd832003-07-14 16:52:07 +00006625 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006626sed 's/^/| /' conftest.$ac_ext >&5
6627
John Criswell47fdd832003-07-14 16:52:07 +00006628fi
6629rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6630if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +00006631
John Criswell47fdd832003-07-14 16:52:07 +00006632 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6633 # Warning - without using the other run time loading flags,
6634 # -berok will link without error, but may produce a broken library.
6635 no_undefined_flag=' ${wl}-bernotok'
6636 allow_undefined_flag=' ${wl}-berok'
6637 # -bexpall does not export symbols beginning with underscore (_)
6638 always_export_symbols=yes
6639 # Exported symbols can be pulled into shared objects from archives
6640 whole_archive_flag_spec=' '
6641 archive_cmds_need_lc=yes
6642 # This is similar to how AIX traditionally builds it's shared libraries.
6643 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 +00006644 fi
6645 fi
John Criswell7a73b802003-06-30 21:59:07 +00006646 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006647
6648 amigaos*)
6649 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)'
6650 hardcode_libdir_flag_spec='-L$libdir'
6651 hardcode_minus_L=yes
6652 # see comment about different semantics on the GNU ld section
6653 ld_shlibs=no
John Criswell7a73b802003-06-30 21:59:07 +00006654 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006655
John Criswell47fdd832003-07-14 16:52:07 +00006656 bsdi4*)
6657 export_dynamic_flag_spec=-rdynamic
6658 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006659
John Criswell47fdd832003-07-14 16:52:07 +00006660 cygwin* | mingw* | pw32*)
6661 # When not using gcc, we currently assume that we are using
6662 # Microsoft Visual C++.
6663 # hardcode_libdir_flag_spec is actually meaningless, as there is
6664 # no search path for DLLs.
6665 hardcode_libdir_flag_spec=' '
6666 allow_undefined_flag=unsupported
6667 # Tell ltmain to make .lib files, not .a files.
6668 libext=lib
6669 # Tell ltmain to make .dll files, not .so files.
6670 shrext=".dll"
6671 # FIXME: Setting linknames here is a bad hack.
6672 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
6673 # The linker will automatically build a .lib file if we build a DLL.
6674 old_archive_From_new_cmds='true'
6675 # FIXME: Should let the user specify the lib program.
6676 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6677 fix_srcfile_path='`cygpath -w "$srcfile"`'
6678 enable_shared_with_static_runtimes=yes
6679 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006680
John Criswell47fdd832003-07-14 16:52:07 +00006681 darwin* | rhapsody*)
6682 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
6683 archive_cmds_need_lc=no
John Criswell7a73b802003-06-30 21:59:07 +00006684 case "$host_os" in
John Criswell47fdd832003-07-14 16:52:07 +00006685 rhapsody* | darwin1.[012])
6686 allow_undefined_flag='-undefined suppress'
6687 ;;
6688 *) # Darwin 1.3 on
6689 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
John Criswell7a73b802003-06-30 21:59:07 +00006690 ;;
6691 esac
John Criswell47fdd832003-07-14 16:52:07 +00006692 # FIXME: Relying on posixy $() will cause problems for
6693 # cross-compilation, but unfortunately the echo tests do not
6694 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
6695 # `"' quotes if we put them in here... so don't!
6696 lt_int_apple_cc_single_mod=no
6697 output_verbose_link_cmd='echo'
6698 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
6699 lt_int_apple_cc_single_mod=yes
6700 fi
6701 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6702 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6703 else
6704 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'
6705 fi
6706 module_cmds='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
6707 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6708 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6709 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}'
6710 else
6711 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}'
6712 fi
6713 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}'
6714 hardcode_direct=no
6715 hardcode_automatic=yes
6716 hardcode_shlibpath_var=unsupported
6717 whole_archive_flag_spec='-all_load $convenience'
6718 link_all_deplibs=yes
John Criswell7a73b802003-06-30 21:59:07 +00006719 fi
John Criswell47fdd832003-07-14 16:52:07 +00006720 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006721
John Criswell47fdd832003-07-14 16:52:07 +00006722 dgux*)
John Criswell7a73b802003-06-30 21:59:07 +00006723 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
John Criswell47fdd832003-07-14 16:52:07 +00006724 hardcode_libdir_flag_spec='-L$libdir'
6725 hardcode_shlibpath_var=no
6726 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006727
John Criswell47fdd832003-07-14 16:52:07 +00006728 freebsd1*)
6729 ld_shlibs=no
6730 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006731
John Criswell47fdd832003-07-14 16:52:07 +00006732 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6733 # support. Future versions do this automatically, but an explicit c++rt0.o
6734 # does not break anything, and helps significantly (at the cost of a little
6735 # extra space).
6736 freebsd2.2*)
6737 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6738 hardcode_libdir_flag_spec='-R$libdir'
6739 hardcode_direct=yes
6740 hardcode_shlibpath_var=no
6741 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006742
John Criswell47fdd832003-07-14 16:52:07 +00006743 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6744 freebsd2*)
6745 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6746 hardcode_direct=yes
6747 hardcode_minus_L=yes
6748 hardcode_shlibpath_var=no
6749 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006750
John Criswell47fdd832003-07-14 16:52:07 +00006751 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6752 freebsd*)
6753 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6754 hardcode_libdir_flag_spec='-R$libdir'
6755 hardcode_direct=yes
6756 hardcode_shlibpath_var=no
6757 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006758
John Criswell47fdd832003-07-14 16:52:07 +00006759 hpux9*)
6760 if test "$GCC" = yes; then
6761 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'
6762 else
6763 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'
6764 fi
6765 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6766 hardcode_libdir_separator=:
6767 hardcode_direct=yes
6768
6769 # hardcode_minus_L: Not really in the search PATH,
6770 # but as the default location of the library.
6771 hardcode_minus_L=yes
6772 export_dynamic_flag_spec='${wl}-E'
6773 ;;
6774
6775 hpux10* | hpux11*)
6776 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6777 case "$host_cpu" in
6778 hppa*64*|ia64*)
6779 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6780 ;;
6781 *)
6782 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6783 ;;
6784 esac
6785 else
6786 case "$host_cpu" in
6787 hppa*64*|ia64*)
6788 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
6789 ;;
6790 *)
6791 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
6792 ;;
6793 esac
6794 fi
6795 if test "$with_gnu_ld" = no; then
6796 case "$host_cpu" in
6797 hppa*64*)
6798 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6799 hardcode_libdir_flag_spec_ld='+b $libdir'
6800 hardcode_libdir_separator=:
6801 hardcode_direct=no
6802 hardcode_shlibpath_var=no
6803 ;;
6804 ia64*)
6805 hardcode_libdir_flag_spec='-L$libdir'
6806 hardcode_direct=no
6807 hardcode_shlibpath_var=no
6808
6809 # hardcode_minus_L: Not really in the search PATH,
6810 # but as the default location of the library.
6811 hardcode_minus_L=yes
6812 ;;
6813 *)
6814 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6815 hardcode_libdir_separator=:
6816 hardcode_direct=yes
6817 export_dynamic_flag_spec='${wl}-E'
6818
6819 # hardcode_minus_L: Not really in the search PATH,
6820 # but as the default location of the library.
6821 hardcode_minus_L=yes
6822 ;;
6823 esac
6824 fi
6825 ;;
6826
6827 irix5* | irix6* | nonstopux*)
6828 if test "$GCC" = yes; then
6829 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'
6830 else
6831 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'
6832 hardcode_libdir_flag_spec_ld='-rpath $libdir'
6833 fi
6834 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6835 hardcode_libdir_separator=:
6836 link_all_deplibs=yes
6837 ;;
6838
6839 netbsd*)
6840 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6841 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
6842 else
6843 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
6844 fi
6845 hardcode_libdir_flag_spec='-R$libdir'
6846 hardcode_direct=yes
6847 hardcode_shlibpath_var=no
6848 ;;
6849
6850 newsos6)
6851 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6852 hardcode_direct=yes
6853 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6854 hardcode_libdir_separator=:
6855 hardcode_shlibpath_var=no
6856 ;;
6857
6858 openbsd*)
6859 hardcode_direct=yes
6860 hardcode_shlibpath_var=no
6861 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6862 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6863 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6864 export_dynamic_flag_spec='${wl}-E'
6865 else
6866 case $host_os in
6867 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
6868 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6869 hardcode_libdir_flag_spec='-R$libdir'
6870 ;;
6871 *)
6872 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6873 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6874 ;;
6875 esac
6876 fi
6877 ;;
6878
6879 os2*)
6880 hardcode_libdir_flag_spec='-L$libdir'
6881 hardcode_minus_L=yes
6882 allow_undefined_flag=unsupported
6883 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'
6884 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6885 ;;
6886
6887 osf3*)
6888 if test "$GCC" = yes; then
6889 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6890 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'
6891 else
6892 allow_undefined_flag=' -expect_unresolved \*'
6893 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'
6894 fi
6895 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6896 hardcode_libdir_separator=:
6897 ;;
6898
6899 osf4* | osf5*) # as osf3* with the addition of -msym flag
6900 if test "$GCC" = yes; then
6901 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6902 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'
6903 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6904 else
6905 allow_undefined_flag=' -expect_unresolved \*'
6906 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'
6907 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6908 $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'
6909
6910 # Both c and cxx compiler support -rpath directly
6911 hardcode_libdir_flag_spec='-rpath $libdir'
6912 fi
6913 hardcode_libdir_separator=:
6914 ;;
6915
6916 sco3.2v5*)
John Criswell7a73b802003-06-30 21:59:07 +00006917 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6918 hardcode_shlibpath_var=no
John Criswell47fdd832003-07-14 16:52:07 +00006919 export_dynamic_flag_spec='${wl}-Bexport'
John Criswell7a73b802003-06-30 21:59:07 +00006920 runpath_var=LD_RUN_PATH
6921 hardcode_runpath_var=yes
John Criswell47fdd832003-07-14 16:52:07 +00006922 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006923
John Criswell47fdd832003-07-14 16:52:07 +00006924 solaris*)
6925 no_undefined_flag=' -z text'
6926 if test "$GCC" = yes; then
6927 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6928 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6929 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
6930 else
6931 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6932 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6933 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6934 fi
6935 hardcode_libdir_flag_spec='-R$libdir'
6936 hardcode_shlibpath_var=no
6937 case $host_os in
6938 solaris2.[0-5] | solaris2.[0-5].*) ;;
6939 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6940 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6941 esac
6942 link_all_deplibs=yes
6943 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006944
John Criswell47fdd832003-07-14 16:52:07 +00006945 sunos4*)
6946 if test "x$host_vendor" = xsequent; then
6947 # Use $CC to link under sequent, because it throws in some extra .o
6948 # files that make .init and .fini sections work.
6949 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6950 else
6951 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6952 fi
6953 hardcode_libdir_flag_spec='-L$libdir'
6954 hardcode_direct=yes
6955 hardcode_minus_L=yes
6956 hardcode_shlibpath_var=no
6957 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006958
John Criswell47fdd832003-07-14 16:52:07 +00006959 sysv4)
6960 case $host_vendor in
6961 sni)
6962 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6963 hardcode_direct=yes # is this really true???
6964 ;;
6965 siemens)
6966 ## LD is ld it makes a PLAMLIB
6967 ## CC just makes a GrossModule.
6968 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6969 reload_cmds='$CC -r -o $output$reload_objs'
6970 hardcode_direct=no
6971 ;;
6972 motorola)
6973 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6974 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6975 ;;
6976 esac
6977 runpath_var='LD_RUN_PATH'
6978 hardcode_shlibpath_var=no
6979 ;;
6980
6981 sysv4.3*)
6982 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6983 hardcode_shlibpath_var=no
6984 export_dynamic_flag_spec='-Bexport'
6985 ;;
6986
6987 sysv4*MP*)
6988 if test -d /usr/nec; then
6989 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6990 hardcode_shlibpath_var=no
6991 runpath_var=LD_RUN_PATH
6992 hardcode_runpath_var=yes
6993 ld_shlibs=yes
6994 fi
6995 ;;
6996
6997 sysv4.2uw2*)
6998 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6999 hardcode_direct=yes
7000 hardcode_minus_L=no
7001 hardcode_shlibpath_var=no
7002 hardcode_runpath_var=yes
7003 runpath_var=LD_RUN_PATH
7004 ;;
7005
7006 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7007 no_undefined_flag='${wl}-z ${wl}text'
7008 if test "$GCC" = yes; then
7009 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7010 else
7011 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7012 fi
7013 runpath_var='LD_RUN_PATH'
7014 hardcode_shlibpath_var=no
7015 ;;
7016
7017 sysv5*)
7018 no_undefined_flag=' -z text'
7019 # $CC -shared without GNU ld will not create a library from C++
7020 # object files and a static libstdc++, better avoid it by now
7021 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7022 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7023 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7024 hardcode_libdir_flag_spec=
7025 hardcode_shlibpath_var=no
7026 runpath_var='LD_RUN_PATH'
7027 ;;
7028
7029 uts4*)
7030 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7031 hardcode_libdir_flag_spec='-L$libdir'
7032 hardcode_shlibpath_var=no
7033 ;;
7034
7035 *)
7036 ld_shlibs=no
7037 ;;
7038 esac
7039 fi
7040
John Criswell7a73b802003-06-30 21:59:07 +00007041echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7042echo "${ECHO_T}$ld_shlibs" >&6
7043test "$ld_shlibs" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00007044
John Criswell47fdd832003-07-14 16:52:07 +00007045variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7046if test "$GCC" = yes; then
7047 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7048fi
7049
7050#
7051# Do we need to explicitly link libc?
7052#
7053case "x$archive_cmds_need_lc" in
7054x|xyes)
7055 # Assume -lc should be added
7056 archive_cmds_need_lc=yes
7057
7058 if test "$enable_shared" = yes && test "$GCC" = yes; then
7059 case $archive_cmds in
7060 *'~'*)
7061 # FIXME: we may have to deal with multi-command sequences.
7062 ;;
7063 '$CC '*)
7064 # Test whether the compiler implicitly links with -lc since on some
7065 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7066 # to ld, don't add -lc before -lgcc.
7067 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7068echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7069 $rm conftest*
7070 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7071
7072 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7073 (eval $ac_compile) 2>&5
7074 ac_status=$?
7075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7076 (exit $ac_status); } 2>conftest.err; then
7077 soname=conftest
7078 lib=conftest
7079 libobjs=conftest.$ac_objext
7080 deplibs=
7081 wl=$lt_prog_compiler_wl
7082 compiler_flags=-v
7083 linker_flags=-v
7084 verstring=
7085 output_objdir=.
7086 libname=conftest
7087 lt_save_allow_undefined_flag=$allow_undefined_flag
7088 allow_undefined_flag=
7089 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7090 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7091 ac_status=$?
7092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7093 (exit $ac_status); }
7094 then
7095 archive_cmds_need_lc=no
7096 else
7097 archive_cmds_need_lc=yes
7098 fi
7099 allow_undefined_flag=$lt_save_allow_undefined_flag
7100 else
7101 cat conftest.err 1>&5
7102 fi
7103 $rm conftest*
7104 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7105echo "${ECHO_T}$archive_cmds_need_lc" >&6
7106 ;;
7107 esac
7108 fi
7109 ;;
7110esac
7111
John Criswell7a73b802003-06-30 21:59:07 +00007112echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7113echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7114hardcode_action=
7115if test -n "$hardcode_libdir_flag_spec" || \
John Criswell47fdd832003-07-14 16:52:07 +00007116 test -n "$runpath_var " || \
7117 test "X$hardcode_automatic"="Xyes" ; then
John Criswell7a73b802003-06-30 21:59:07 +00007118
7119 # We can hardcode non-existant directories.
7120 if test "$hardcode_direct" != no &&
7121 # If the only mechanism to avoid hardcoding is shlibpath_var, we
7122 # have to relink, otherwise we might link with an installed library
7123 # when we should be linking with a yet-to-be-installed one
John Criswell47fdd832003-07-14 16:52:07 +00007124 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
John Criswell7a73b802003-06-30 21:59:07 +00007125 test "$hardcode_minus_L" != no; then
7126 # Linking always hardcodes the temporary library directory.
7127 hardcode_action=relink
7128 else
7129 # We can link without hardcoding, and we can hardcode nonexisting dirs.
7130 hardcode_action=immediate
7131 fi
7132else
7133 # We cannot hardcode anything, or else we can only hardcode existing
7134 # directories.
7135 hardcode_action=unsupported
7136fi
7137echo "$as_me:$LINENO: result: $hardcode_action" >&5
7138echo "${ECHO_T}$hardcode_action" >&6
John Criswell7a73b802003-06-30 21:59:07 +00007139
John Criswell47fdd832003-07-14 16:52:07 +00007140if test "$hardcode_action" = relink; then
7141 # Fast installation is not supported
7142 enable_fast_install=no
7143elif test "$shlibpath_overrides_runpath" = yes ||
7144 test "$enable_shared" = no; then
7145 # Fast installation is not necessary
7146 enable_fast_install=needless
7147fi
7148
John Criswell7a73b802003-06-30 21:59:07 +00007149striplib=
7150old_striplib=
7151echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7152echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7153if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7154 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7155 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7156 echo "$as_me:$LINENO: result: yes" >&5
7157echo "${ECHO_T}yes" >&6
7158else
John Criswell47fdd832003-07-14 16:52:07 +00007159# FIXME - insert some real tests, host_os isn't really good enough
7160 case $host_os in
7161 darwin*)
7162 if test -n "$STRIP" ; then
7163 striplib="$STRIP -x"
7164 echo "$as_me:$LINENO: result: yes" >&5
7165echo "${ECHO_T}yes" >&6
7166 else
John Criswell7a73b802003-06-30 21:59:07 +00007167 echo "$as_me:$LINENO: result: no" >&5
7168echo "${ECHO_T}no" >&6
7169fi
John Criswell47fdd832003-07-14 16:52:07 +00007170 ;;
7171 *)
7172 echo "$as_me:$LINENO: result: no" >&5
7173echo "${ECHO_T}no" >&6
7174 ;;
7175 esac
7176fi
John Criswell7a73b802003-06-30 21:59:07 +00007177
John Criswell7a73b802003-06-30 21:59:07 +00007178echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7179echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7180library_names_spec=
7181libname_spec='lib$name'
7182soname_spec=
John Criswell47fdd832003-07-14 16:52:07 +00007183shrext=".so"
John Criswell7a73b802003-06-30 21:59:07 +00007184postinstall_cmds=
7185postuninstall_cmds=
7186finish_cmds=
7187finish_eval=
7188shlibpath_var=
7189shlibpath_overrides_runpath=unknown
7190version_type=none
7191dynamic_linker="$host_os ld.so"
7192sys_lib_dlsearch_path_spec="/lib /usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +00007193if test "$GCC" = yes; then
7194 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7195 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7196 # if the path contains ";" then we assume it to be the separator
7197 # otherwise default to the standard path separator (i.e. ":") - it is
7198 # assumed that no part of a normal pathname contains ";" but that should
7199 # okay in the real world where ";" in dirpaths is itself problematic.
7200 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7201 else
7202 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7203 fi
7204else
7205 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7206fi
7207need_lib_prefix=unknown
7208hardcode_into_libs=no
7209
7210# when you set need_version to no, make sure it does not cause -set_version
7211# flags to be left without arguments
7212need_version=unknown
John Criswell7a73b802003-06-30 21:59:07 +00007213
7214case $host_os in
7215aix3*)
7216 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007217 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +00007218 shlibpath_var=LIBPATH
7219
John Criswell47fdd832003-07-14 16:52:07 +00007220 # AIX 3 has no versioning support, so we append a major version to the name.
7221 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007222 ;;
7223
7224aix4* | aix5*)
7225 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007226 need_lib_prefix=no
7227 need_version=no
7228 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +00007229 if test "$host_cpu" = ia64; then
7230 # AIX 5 supports IA64
John Criswell47fdd832003-07-14 16:52:07 +00007231 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007232 shlibpath_var=LD_LIBRARY_PATH
7233 else
7234 # With GCC up to 2.95.x, collect2 would create an import file
7235 # for dependence libraries. The import file would start with
7236 # the line `#! .'. This would cause the generated library to
7237 # depend on `.', always an invalid library. This was fixed in
7238 # development snapshots of GCC prior to 3.0.
7239 case $host_os in
7240 aix4 | aix4.[01] | aix4.[01].*)
John Criswell47fdd832003-07-14 16:52:07 +00007241 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7242 echo ' yes '
7243 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7244 :
7245 else
7246 can_build_shared=no
7247 fi
7248 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007249 esac
John Criswell47fdd832003-07-14 16:52:07 +00007250 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7251 # soname into executable. Probably we can add versioning support to
7252 # collect2, so additional links can be useful in future.
John Criswell7a73b802003-06-30 21:59:07 +00007253 if test "$aix_use_runtimelinking" = yes; then
7254 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7255 # instead of lib<name>.a to let people know that these are not
7256 # typical AIX shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +00007257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007258 else
7259 # We preserve .a as extension for shared libraries through AIX4.2
7260 # and later when we are not doing run time linking.
7261 library_names_spec='${libname}${release}.a $libname.a'
John Criswell47fdd832003-07-14 16:52:07 +00007262 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007263 fi
7264 shlibpath_var=LIBPATH
7265 fi
7266 ;;
7267
7268amigaos*)
7269 library_names_spec='$libname.ixlibrary $libname.a'
7270 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7271 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'
7272 ;;
7273
7274beos*)
John Criswell47fdd832003-07-14 16:52:07 +00007275 library_names_spec='${libname}${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007276 dynamic_linker="$host_os ld.so"
7277 shlibpath_var=LIBRARY_PATH
7278 ;;
7279
7280bsdi4*)
7281 version_type=linux
7282 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7284 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007285 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7286 shlibpath_var=LD_LIBRARY_PATH
7287 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7288 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
John Criswell7a73b802003-06-30 21:59:07 +00007289 # the default ld.so.conf also contains /usr/contrib/lib and
7290 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7291 # libtool to hard-code these into programs
7292 ;;
7293
7294cygwin* | mingw* | pw32*)
7295 version_type=windows
John Criswell47fdd832003-07-14 16:52:07 +00007296 shrext=".dll"
John Criswell7a73b802003-06-30 21:59:07 +00007297 need_version=no
7298 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +00007299
John Criswell7a73b802003-06-30 21:59:07 +00007300 case $GCC,$host_os in
John Criswell47fdd832003-07-14 16:52:07 +00007301 yes,cygwin* | yes,mingw* | yes,pw32*)
John Criswell7a73b802003-06-30 21:59:07 +00007302 library_names_spec='$libname.dll.a'
John Criswell47fdd832003-07-14 16:52:07 +00007303 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7304 postinstall_cmds='base_file=`basename \${file}`~
7305 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
John Criswell7a73b802003-06-30 21:59:07 +00007306 dldir=$destdir/`dirname \$dlpath`~
7307 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +00007308 $install_prog $dir/$dlname \$dldir/$dlname'
7309 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
John Criswell7a73b802003-06-30 21:59:07 +00007310 dlpath=$dir/\$dldll~
7311 $rm \$dlpath'
John Criswell47fdd832003-07-14 16:52:07 +00007312 shlibpath_overrides_runpath=yes
7313
7314 case $host_os in
7315 cygwin*)
7316 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7317 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7318 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
7319 ;;
7320 mingw*)
7321 # MinGW DLLs use traditional 'lib' prefix
7322 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7323 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7324 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7325 # It is most probably a Windows format PATH printed by
7326 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7327 # path with ; separators, and with drive letters. We can handle the
7328 # drive letters (cygwin fileutils understands them), so leave them,
7329 # especially as we might pass files found there to a mingw objdump,
7330 # which wouldn't understand a cygwinified path. Ahh.
7331 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7332 else
7333 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7334 fi
7335 ;;
7336 pw32*)
7337 # pw32 DLLs use 'pw' prefix rather than 'lib'
7338 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7339 ;;
7340 esac
John Criswell7a73b802003-06-30 21:59:07 +00007341 ;;
John Criswell47fdd832003-07-14 16:52:07 +00007342
John Criswell7a73b802003-06-30 21:59:07 +00007343 *)
John Criswell47fdd832003-07-14 16:52:07 +00007344 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
John Criswell7a73b802003-06-30 21:59:07 +00007345 ;;
7346 esac
7347 dynamic_linker='Win32 ld.exe'
7348 # FIXME: first we should search . and the directory the executable is in
7349 shlibpath_var=PATH
7350 ;;
7351
7352darwin* | rhapsody*)
7353 dynamic_linker="$host_os dyld"
7354 version_type=darwin
7355 need_lib_prefix=no
7356 need_version=no
7357 # FIXME: Relying on posixy $() will cause problems for
7358 # cross-compilation, but unfortunately the echo tests do not
7359 # yet detect zsh echo's removal of \ escapes.
John Criswell47fdd832003-07-14 16:52:07 +00007360 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7361 soname_spec='${libname}${release}${major}$shared_ext'
John Criswell7a73b802003-06-30 21:59:07 +00007362 shlibpath_overrides_runpath=yes
7363 shlibpath_var=DYLD_LIBRARY_PATH
John Criswell47fdd832003-07-14 16:52:07 +00007364 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
7365 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7366 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7367 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"`
7368 fi
7369 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7370 ;;
7371
7372dgux*)
7373 version_type=linux
7374 need_lib_prefix=no
7375 need_version=no
7376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7377 soname_spec='${libname}${release}${shared_ext}$major'
7378 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +00007379 ;;
7380
7381freebsd1*)
7382 dynamic_linker=no
7383 ;;
7384
7385freebsd*)
7386 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7387 version_type=freebsd-$objformat
7388 case $version_type in
7389 freebsd-elf*)
John Criswell47fdd832003-07-14 16:52:07 +00007390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007391 need_version=no
7392 need_lib_prefix=no
7393 ;;
7394 freebsd-*)
John Criswell47fdd832003-07-14 16:52:07 +00007395 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +00007396 need_version=yes
7397 ;;
7398 esac
7399 shlibpath_var=LD_LIBRARY_PATH
7400 case $host_os in
7401 freebsd2*)
7402 shlibpath_overrides_runpath=yes
7403 ;;
John Criswell47fdd832003-07-14 16:52:07 +00007404 freebsd3.01* | freebsdelf3.01*)
7405 shlibpath_overrides_runpath=yes
7406 hardcode_into_libs=yes
7407 ;;
7408 *) # from 3.2 on
John Criswell7a73b802003-06-30 21:59:07 +00007409 shlibpath_overrides_runpath=no
7410 hardcode_into_libs=yes
7411 ;;
7412 esac
7413 ;;
7414
7415gnu*)
7416 version_type=linux
7417 need_lib_prefix=no
7418 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7420 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007421 shlibpath_var=LD_LIBRARY_PATH
7422 hardcode_into_libs=yes
7423 ;;
7424
7425hpux9* | hpux10* | hpux11*)
7426 # Give a soname corresponding to the major version so that dld.sl refuses to
7427 # link against other versions.
John Criswell7a73b802003-06-30 21:59:07 +00007428 version_type=sunos
7429 need_lib_prefix=no
7430 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007431 case "$host_cpu" in
7432 ia64*)
7433 shrext='.so'
7434 hardcode_into_libs=yes
7435 dynamic_linker="$host_os dld.so"
7436 shlibpath_var=LD_LIBRARY_PATH
7437 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7438 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7439 soname_spec='${libname}${release}${shared_ext}$major'
7440 if test "X$HPUX_IA64_MODE" = X32; then
7441 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7442 else
7443 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7444 fi
7445 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7446 ;;
7447 hppa*64*)
7448 shrext='.sl'
7449 hardcode_into_libs=yes
7450 dynamic_linker="$host_os dld.sl"
7451 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7452 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7454 soname_spec='${libname}${release}${shared_ext}$major'
7455 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7456 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7457 ;;
7458 *)
7459 shrext='.sl'
7460 dynamic_linker="$host_os dld.sl"
7461 shlibpath_var=SHLIB_PATH
7462 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7464 soname_spec='${libname}${release}${shared_ext}$major'
7465 ;;
7466 esac
John Criswell7a73b802003-06-30 21:59:07 +00007467 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7468 postinstall_cmds='chmod 555 $lib'
7469 ;;
7470
John Criswell47fdd832003-07-14 16:52:07 +00007471irix5* | irix6* | nonstopux*)
7472 case $host_os in
7473 nonstopux*) version_type=nonstopux ;;
7474 *)
7475 if test "$lt_cv_prog_gnu_ld" = yes; then
7476 version_type=linux
7477 else
7478 version_type=irix
7479 fi ;;
7480 esac
John Criswell7a73b802003-06-30 21:59:07 +00007481 need_lib_prefix=no
7482 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007483 soname_spec='${libname}${release}${shared_ext}$major'
7484 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 +00007485 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00007486 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +00007487 libsuff= shlibsuff=
7488 ;;
7489 *)
7490 case $LD in # libtool.m4 will add one of these switches to LD
John Criswell47fdd832003-07-14 16:52:07 +00007491 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7492 libsuff= shlibsuff= libmagic=32-bit;;
7493 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7494 libsuff=32 shlibsuff=N32 libmagic=N32;;
7495 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7496 libsuff=64 shlibsuff=64 libmagic=64-bit;;
John Criswell7a73b802003-06-30 21:59:07 +00007497 *) libsuff= shlibsuff= libmagic=never-match;;
7498 esac
7499 ;;
7500 esac
7501 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7502 shlibpath_overrides_runpath=no
7503 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7504 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
John Criswell47fdd832003-07-14 16:52:07 +00007505 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +00007506 ;;
7507
7508# No shared lib support for Linux oldld, aout, or coff.
John Criswell47fdd832003-07-14 16:52:07 +00007509linux*oldld* | linux*aout* | linux*coff*)
John Criswell7a73b802003-06-30 21:59:07 +00007510 dynamic_linker=no
7511 ;;
7512
7513# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +00007514linux*)
John Criswell7a73b802003-06-30 21:59:07 +00007515 version_type=linux
7516 need_lib_prefix=no
7517 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7519 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007520 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7521 shlibpath_var=LD_LIBRARY_PATH
7522 shlibpath_overrides_runpath=no
7523 # This implies no fast_install, which is unacceptable.
7524 # Some rework will be needed to allow for fast_install
7525 # before this can be enabled.
7526 hardcode_into_libs=yes
7527
7528 # We used to test for /lib/ld.so.1 and disable shared libraries on
7529 # powerpc, because MkLinux only supported shared libraries with the
7530 # GNU dynamic linker. Since this was broken with cross compilers,
7531 # most powerpc-linux boxes support dynamic linking these days and
7532 # people can always --disable-shared, the test was removed, and we
7533 # assume the GNU/Linux dynamic linker is in use.
7534 dynamic_linker='GNU/Linux ld.so'
7535 ;;
7536
7537netbsd*)
7538 version_type=sunos
7539 need_lib_prefix=no
7540 need_version=no
7541 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +00007542 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +00007543 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7544 dynamic_linker='NetBSD (a.out) ld.so'
7545 else
John Criswell47fdd832003-07-14 16:52:07 +00007546 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
7547 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007548 dynamic_linker='NetBSD ld.elf_so'
7549 fi
7550 shlibpath_var=LD_LIBRARY_PATH
7551 shlibpath_overrides_runpath=yes
7552 hardcode_into_libs=yes
7553 ;;
7554
7555newsos6)
7556 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7558 shlibpath_var=LD_LIBRARY_PATH
7559 shlibpath_overrides_runpath=yes
7560 ;;
7561
7562nto-qnx)
7563 version_type=linux
7564 need_lib_prefix=no
7565 need_version=no
7566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7567 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007568 shlibpath_var=LD_LIBRARY_PATH
7569 shlibpath_overrides_runpath=yes
7570 ;;
7571
7572openbsd*)
7573 version_type=sunos
7574 need_lib_prefix=no
7575 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7577 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7578 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +00007579 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 +00007580 case $host_os in
7581 openbsd2.[89] | openbsd2.[89].*)
7582 shlibpath_overrides_runpath=no
7583 ;;
7584 *)
7585 shlibpath_overrides_runpath=yes
7586 ;;
7587 esac
John Criswell7a73b802003-06-30 21:59:07 +00007588 else
7589 shlibpath_overrides_runpath=yes
7590 fi
John Criswell7a73b802003-06-30 21:59:07 +00007591 ;;
7592
7593os2*)
7594 libname_spec='$name'
John Criswell47fdd832003-07-14 16:52:07 +00007595 shrext=".dll"
John Criswell7a73b802003-06-30 21:59:07 +00007596 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +00007597 library_names_spec='$libname${shared_ext} $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +00007598 dynamic_linker='OS/2 ld.exe'
7599 shlibpath_var=LIBPATH
7600 ;;
7601
7602osf3* | osf4* | osf5*)
7603 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +00007604 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +00007605 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007606 soname_spec='${libname}${release}${shared_ext}$major'
7607 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007608 shlibpath_var=LD_LIBRARY_PATH
7609 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7610 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7611 ;;
7612
7613sco3.2v5*)
7614 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +00007615 soname_spec='${libname}${release}${shared_ext}$major'
7616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007617 shlibpath_var=LD_LIBRARY_PATH
7618 ;;
7619
7620solaris*)
7621 version_type=linux
7622 need_lib_prefix=no
7623 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7625 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007626 shlibpath_var=LD_LIBRARY_PATH
7627 shlibpath_overrides_runpath=yes
7628 hardcode_into_libs=yes
7629 # ldd complains unless libraries are executable
7630 postinstall_cmds='chmod +x $lib'
7631 ;;
7632
7633sunos4*)
7634 version_type=sunos
John Criswell47fdd832003-07-14 16:52:07 +00007635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +00007636 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7637 shlibpath_var=LD_LIBRARY_PATH
7638 shlibpath_overrides_runpath=yes
7639 if test "$with_gnu_ld" = yes; then
7640 need_lib_prefix=no
7641 fi
7642 need_version=yes
7643 ;;
7644
7645sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7646 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7648 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007649 shlibpath_var=LD_LIBRARY_PATH
7650 case $host_vendor in
7651 sni)
7652 shlibpath_overrides_runpath=no
John Criswell47fdd832003-07-14 16:52:07 +00007653 need_lib_prefix=no
7654 export_dynamic_flag_spec='${wl}-Blargedynsym'
7655 runpath_var=LD_RUN_PATH
7656 ;;
7657 siemens)
7658 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +00007659 ;;
7660 motorola)
7661 need_lib_prefix=no
7662 need_version=no
7663 shlibpath_overrides_runpath=no
7664 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7665 ;;
7666 esac
7667 ;;
7668
John Criswell7a73b802003-06-30 21:59:07 +00007669sysv4*MP*)
7670 if test -d /usr/nec ;then
7671 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007672 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7673 soname_spec='$libname${shared_ext}.$major'
John Criswell7a73b802003-06-30 21:59:07 +00007674 shlibpath_var=LD_LIBRARY_PATH
7675 fi
7676 ;;
7677
John Criswell47fdd832003-07-14 16:52:07 +00007678uts4*)
7679 version_type=linux
7680 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7681 soname_spec='${libname}${release}${shared_ext}$major'
7682 shlibpath_var=LD_LIBRARY_PATH
7683 ;;
7684
John Criswell7a73b802003-06-30 21:59:07 +00007685*)
7686 dynamic_linker=no
7687 ;;
7688esac
7689echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7690echo "${ECHO_T}$dynamic_linker" >&6
7691test "$dynamic_linker" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00007692
7693if test "x$enable_dlopen" != xyes; then
7694 enable_dlopen=unknown
7695 enable_dlopen_self=unknown
7696 enable_dlopen_self_static=unknown
7697else
7698 lt_cv_dlopen=no
7699 lt_cv_dlopen_libs=
7700
7701 case $host_os in
7702 beos*)
7703 lt_cv_dlopen="load_add_on"
7704 lt_cv_dlopen_libs=
7705 lt_cv_dlopen_self=yes
7706 ;;
7707
John Criswell47fdd832003-07-14 16:52:07 +00007708 mingw* | pw32*)
John Criswell7a73b802003-06-30 21:59:07 +00007709 lt_cv_dlopen="LoadLibrary"
7710 lt_cv_dlopen_libs=
7711 ;;
7712
John Criswell47fdd832003-07-14 16:52:07 +00007713 cygwin*)
7714 lt_cv_dlopen="dlopen"
7715 lt_cv_dlopen_libs=
7716 ;;
7717
7718 darwin*)
7719 # if libdl is installed we need to link against it
7720 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7721echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7722if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7723 echo $ECHO_N "(cached) $ECHO_C" >&6
7724else
7725 ac_check_lib_save_LIBS=$LIBS
7726LIBS="-ldl $LIBS"
7727cat >conftest.$ac_ext <<_ACEOF
7728#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00007729/* confdefs.h. */
7730_ACEOF
7731cat confdefs.h >>conftest.$ac_ext
7732cat >>conftest.$ac_ext <<_ACEOF
7733/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00007734
7735/* Override any gcc2 internal prototype to avoid an error. */
7736#ifdef __cplusplus
7737extern "C"
7738#endif
7739/* We use char because int might match the return type of a gcc2
7740 builtin and then its argument prototype would still apply. */
7741char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +00007742int
7743main ()
7744{
7745dlopen ();
7746 ;
7747 return 0;
7748}
7749_ACEOF
7750rm -f conftest.$ac_objext conftest$ac_exeext
7751if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7752 (eval $ac_link) 2>&5
7753 ac_status=$?
7754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7755 (exit $ac_status); } &&
7756 { ac_try='test -s conftest$ac_exeext'
7757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7758 (eval $ac_try) 2>&5
7759 ac_status=$?
7760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7761 (exit $ac_status); }; }; then
7762 ac_cv_lib_dl_dlopen=yes
7763else
7764 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00007765sed 's/^/| /' conftest.$ac_ext >&5
7766
John Criswell47fdd832003-07-14 16:52:07 +00007767ac_cv_lib_dl_dlopen=no
7768fi
7769rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7770LIBS=$ac_check_lib_save_LIBS
7771fi
7772echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7773echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7774if test $ac_cv_lib_dl_dlopen = yes; then
7775 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7776else
7777
7778 lt_cv_dlopen="dyld"
7779 lt_cv_dlopen_libs=
7780 lt_cv_dlopen_self=yes
7781
7782fi
7783
7784 ;;
7785
John Criswell7a73b802003-06-30 21:59:07 +00007786 *)
7787 echo "$as_me:$LINENO: checking for shl_load" >&5
7788echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7789if test "${ac_cv_func_shl_load+set}" = set; then
7790 echo $ECHO_N "(cached) $ECHO_C" >&6
7791else
7792 cat >conftest.$ac_ext <<_ACEOF
7793#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00007794/* confdefs.h. */
7795_ACEOF
7796cat confdefs.h >>conftest.$ac_ext
7797cat >>conftest.$ac_ext <<_ACEOF
7798/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00007799/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +00007800 which can conflict with char shl_load (); below.
7801 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7802 <limits.h> exists even on freestanding compilers. */
7803#ifdef __STDC__
7804# include <limits.h>
7805#else
7806# include <assert.h>
7807#endif
John Criswell7a73b802003-06-30 21:59:07 +00007808/* Override any gcc2 internal prototype to avoid an error. */
7809#ifdef __cplusplus
7810extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +00007811{
John Criswell7a73b802003-06-30 21:59:07 +00007812#endif
7813/* We use char because int might match the return type of a gcc2
7814 builtin and then its argument prototype would still apply. */
7815char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +00007816/* The GNU C library defines this for functions which it implements
7817 to always fail with ENOSYS. Some functions are actually named
7818 something starting with __ and the normal name is an alias. */
7819#if defined (__stub_shl_load) || defined (__stub___shl_load)
7820choke me
7821#else
John Criswell0c38eaf2003-09-10 15:17:25 +00007822char (*f) () = shl_load;
7823#endif
7824#ifdef __cplusplus
7825}
John Criswell7a73b802003-06-30 21:59:07 +00007826#endif
7827
John Criswell0c38eaf2003-09-10 15:17:25 +00007828int
7829main ()
7830{
7831return f != shl_load;
John Criswell7a73b802003-06-30 21:59:07 +00007832 ;
7833 return 0;
7834}
7835_ACEOF
7836rm -f conftest.$ac_objext conftest$ac_exeext
7837if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7838 (eval $ac_link) 2>&5
7839 ac_status=$?
7840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7841 (exit $ac_status); } &&
7842 { ac_try='test -s conftest$ac_exeext'
7843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7844 (eval $ac_try) 2>&5
7845 ac_status=$?
7846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7847 (exit $ac_status); }; }; then
7848 ac_cv_func_shl_load=yes
7849else
7850 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00007851sed 's/^/| /' conftest.$ac_ext >&5
7852
John Criswell7a73b802003-06-30 21:59:07 +00007853ac_cv_func_shl_load=no
7854fi
7855rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7856fi
7857echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7858echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7859if test $ac_cv_func_shl_load = yes; then
7860 lt_cv_dlopen="shl_load"
7861else
7862 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7863echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7864if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7865 echo $ECHO_N "(cached) $ECHO_C" >&6
7866else
7867 ac_check_lib_save_LIBS=$LIBS
7868LIBS="-ldld $LIBS"
7869cat >conftest.$ac_ext <<_ACEOF
7870#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00007871/* confdefs.h. */
7872_ACEOF
7873cat confdefs.h >>conftest.$ac_ext
7874cat >>conftest.$ac_ext <<_ACEOF
7875/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00007876
7877/* Override any gcc2 internal prototype to avoid an error. */
7878#ifdef __cplusplus
7879extern "C"
7880#endif
7881/* We use char because int might match the return type of a gcc2
7882 builtin and then its argument prototype would still apply. */
7883char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +00007884int
7885main ()
7886{
7887shl_load ();
7888 ;
7889 return 0;
7890}
7891_ACEOF
7892rm -f conftest.$ac_objext conftest$ac_exeext
7893if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7894 (eval $ac_link) 2>&5
7895 ac_status=$?
7896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7897 (exit $ac_status); } &&
7898 { ac_try='test -s conftest$ac_exeext'
7899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7900 (eval $ac_try) 2>&5
7901 ac_status=$?
7902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7903 (exit $ac_status); }; }; then
7904 ac_cv_lib_dld_shl_load=yes
7905else
7906 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00007907sed 's/^/| /' conftest.$ac_ext >&5
7908
John Criswell7a73b802003-06-30 21:59:07 +00007909ac_cv_lib_dld_shl_load=no
7910fi
7911rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7912LIBS=$ac_check_lib_save_LIBS
7913fi
7914echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7915echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7916if test $ac_cv_lib_dld_shl_load = yes; then
7917 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
7918else
7919 echo "$as_me:$LINENO: checking for dlopen" >&5
7920echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
7921if test "${ac_cv_func_dlopen+set}" = set; then
7922 echo $ECHO_N "(cached) $ECHO_C" >&6
7923else
7924 cat >conftest.$ac_ext <<_ACEOF
7925#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00007926/* confdefs.h. */
7927_ACEOF
7928cat confdefs.h >>conftest.$ac_ext
7929cat >>conftest.$ac_ext <<_ACEOF
7930/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00007931/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +00007932 which can conflict with char dlopen (); below.
7933 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7934 <limits.h> exists even on freestanding compilers. */
7935#ifdef __STDC__
7936# include <limits.h>
7937#else
7938# include <assert.h>
7939#endif
John Criswell7a73b802003-06-30 21:59:07 +00007940/* Override any gcc2 internal prototype to avoid an error. */
7941#ifdef __cplusplus
7942extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +00007943{
John Criswell7a73b802003-06-30 21:59:07 +00007944#endif
7945/* We use char because int might match the return type of a gcc2
7946 builtin and then its argument prototype would still apply. */
7947char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +00007948/* The GNU C library defines this for functions which it implements
7949 to always fail with ENOSYS. Some functions are actually named
7950 something starting with __ and the normal name is an alias. */
7951#if defined (__stub_dlopen) || defined (__stub___dlopen)
7952choke me
7953#else
John Criswell0c38eaf2003-09-10 15:17:25 +00007954char (*f) () = dlopen;
7955#endif
7956#ifdef __cplusplus
7957}
John Criswell7a73b802003-06-30 21:59:07 +00007958#endif
7959
John Criswell0c38eaf2003-09-10 15:17:25 +00007960int
7961main ()
7962{
7963return f != dlopen;
John Criswell7a73b802003-06-30 21:59:07 +00007964 ;
7965 return 0;
7966}
7967_ACEOF
7968rm -f conftest.$ac_objext conftest$ac_exeext
7969if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7970 (eval $ac_link) 2>&5
7971 ac_status=$?
7972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7973 (exit $ac_status); } &&
7974 { ac_try='test -s conftest$ac_exeext'
7975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7976 (eval $ac_try) 2>&5
7977 ac_status=$?
7978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7979 (exit $ac_status); }; }; then
7980 ac_cv_func_dlopen=yes
7981else
7982 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00007983sed 's/^/| /' conftest.$ac_ext >&5
7984
John Criswell7a73b802003-06-30 21:59:07 +00007985ac_cv_func_dlopen=no
7986fi
7987rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7988fi
7989echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
7990echo "${ECHO_T}$ac_cv_func_dlopen" >&6
7991if test $ac_cv_func_dlopen = yes; then
7992 lt_cv_dlopen="dlopen"
7993else
7994 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7995echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7996if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7997 echo $ECHO_N "(cached) $ECHO_C" >&6
7998else
7999 ac_check_lib_save_LIBS=$LIBS
8000LIBS="-ldl $LIBS"
8001cat >conftest.$ac_ext <<_ACEOF
8002#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008003/* confdefs.h. */
8004_ACEOF
8005cat confdefs.h >>conftest.$ac_ext
8006cat >>conftest.$ac_ext <<_ACEOF
8007/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008008
8009/* Override any gcc2 internal prototype to avoid an error. */
8010#ifdef __cplusplus
8011extern "C"
8012#endif
8013/* We use char because int might match the return type of a gcc2
8014 builtin and then its argument prototype would still apply. */
8015char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +00008016int
8017main ()
8018{
8019dlopen ();
8020 ;
8021 return 0;
8022}
8023_ACEOF
8024rm -f conftest.$ac_objext conftest$ac_exeext
8025if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8026 (eval $ac_link) 2>&5
8027 ac_status=$?
8028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8029 (exit $ac_status); } &&
8030 { ac_try='test -s conftest$ac_exeext'
8031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8032 (eval $ac_try) 2>&5
8033 ac_status=$?
8034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8035 (exit $ac_status); }; }; then
8036 ac_cv_lib_dl_dlopen=yes
8037else
8038 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008039sed 's/^/| /' conftest.$ac_ext >&5
8040
John Criswell7a73b802003-06-30 21:59:07 +00008041ac_cv_lib_dl_dlopen=no
8042fi
8043rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8044LIBS=$ac_check_lib_save_LIBS
8045fi
8046echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8047echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8048if test $ac_cv_lib_dl_dlopen = yes; then
8049 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8050else
8051 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8052echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8053if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8054 echo $ECHO_N "(cached) $ECHO_C" >&6
8055else
8056 ac_check_lib_save_LIBS=$LIBS
8057LIBS="-lsvld $LIBS"
8058cat >conftest.$ac_ext <<_ACEOF
8059#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008060/* confdefs.h. */
8061_ACEOF
8062cat confdefs.h >>conftest.$ac_ext
8063cat >>conftest.$ac_ext <<_ACEOF
8064/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008065
8066/* Override any gcc2 internal prototype to avoid an error. */
8067#ifdef __cplusplus
8068extern "C"
8069#endif
8070/* We use char because int might match the return type of a gcc2
8071 builtin and then its argument prototype would still apply. */
8072char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +00008073int
8074main ()
8075{
8076dlopen ();
8077 ;
8078 return 0;
8079}
8080_ACEOF
8081rm -f conftest.$ac_objext conftest$ac_exeext
8082if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8083 (eval $ac_link) 2>&5
8084 ac_status=$?
8085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8086 (exit $ac_status); } &&
8087 { ac_try='test -s conftest$ac_exeext'
8088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8089 (eval $ac_try) 2>&5
8090 ac_status=$?
8091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8092 (exit $ac_status); }; }; then
8093 ac_cv_lib_svld_dlopen=yes
8094else
8095 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008096sed 's/^/| /' conftest.$ac_ext >&5
8097
John Criswell7a73b802003-06-30 21:59:07 +00008098ac_cv_lib_svld_dlopen=no
8099fi
8100rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8101LIBS=$ac_check_lib_save_LIBS
8102fi
8103echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8104echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8105if test $ac_cv_lib_svld_dlopen = yes; then
8106 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8107else
8108 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8109echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8110if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8111 echo $ECHO_N "(cached) $ECHO_C" >&6
8112else
8113 ac_check_lib_save_LIBS=$LIBS
8114LIBS="-ldld $LIBS"
8115cat >conftest.$ac_ext <<_ACEOF
8116#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008117/* confdefs.h. */
8118_ACEOF
8119cat confdefs.h >>conftest.$ac_ext
8120cat >>conftest.$ac_ext <<_ACEOF
8121/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008122
8123/* Override any gcc2 internal prototype to avoid an error. */
8124#ifdef __cplusplus
8125extern "C"
8126#endif
8127/* We use char because int might match the return type of a gcc2
8128 builtin and then its argument prototype would still apply. */
8129char dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +00008130int
8131main ()
8132{
8133dld_link ();
8134 ;
8135 return 0;
8136}
8137_ACEOF
8138rm -f conftest.$ac_objext conftest$ac_exeext
8139if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8140 (eval $ac_link) 2>&5
8141 ac_status=$?
8142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8143 (exit $ac_status); } &&
8144 { ac_try='test -s conftest$ac_exeext'
8145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8146 (eval $ac_try) 2>&5
8147 ac_status=$?
8148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8149 (exit $ac_status); }; }; then
8150 ac_cv_lib_dld_dld_link=yes
8151else
8152 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008153sed 's/^/| /' conftest.$ac_ext >&5
8154
John Criswell7a73b802003-06-30 21:59:07 +00008155ac_cv_lib_dld_dld_link=no
8156fi
8157rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8158LIBS=$ac_check_lib_save_LIBS
8159fi
8160echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8161echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8162if test $ac_cv_lib_dld_dld_link = yes; then
8163 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8164fi
8165
8166
8167fi
8168
8169
8170fi
8171
8172
8173fi
8174
8175
8176fi
8177
8178
8179fi
8180
8181 ;;
8182 esac
8183
8184 if test "x$lt_cv_dlopen" != xno; then
8185 enable_dlopen=yes
8186 else
8187 enable_dlopen=no
8188 fi
8189
8190 case $lt_cv_dlopen in
8191 dlopen)
8192 save_CPPFLAGS="$CPPFLAGS"
John Criswell47fdd832003-07-14 16:52:07 +00008193 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
John Criswell7a73b802003-06-30 21:59:07 +00008194
8195 save_LDFLAGS="$LDFLAGS"
8196 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8197
8198 save_LIBS="$LIBS"
8199 LIBS="$lt_cv_dlopen_libs $LIBS"
8200
8201 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8202echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8203if test "${lt_cv_dlopen_self+set}" = set; then
8204 echo $ECHO_N "(cached) $ECHO_C" >&6
8205else
8206 if test "$cross_compiling" = yes; then :
8207 lt_cv_dlopen_self=cross
8208else
John Criswell47fdd832003-07-14 16:52:07 +00008209 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +00008210 lt_status=$lt_dlunknown
8211 cat > conftest.$ac_ext <<EOF
John Criswell8a54a1e2004-06-22 21:35:10 +00008212#line 8212 "configure"
John Criswell7a73b802003-06-30 21:59:07 +00008213#include "confdefs.h"
8214
8215#if HAVE_DLFCN_H
8216#include <dlfcn.h>
8217#endif
8218
8219#include <stdio.h>
8220
8221#ifdef RTLD_GLOBAL
8222# define LT_DLGLOBAL RTLD_GLOBAL
8223#else
8224# ifdef DL_GLOBAL
8225# define LT_DLGLOBAL DL_GLOBAL
8226# else
8227# define LT_DLGLOBAL 0
8228# endif
8229#endif
8230
8231/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8232 find out it does not work in some platform. */
8233#ifndef LT_DLLAZY_OR_NOW
8234# ifdef RTLD_LAZY
8235# define LT_DLLAZY_OR_NOW RTLD_LAZY
8236# else
8237# ifdef DL_LAZY
8238# define LT_DLLAZY_OR_NOW DL_LAZY
8239# else
8240# ifdef RTLD_NOW
8241# define LT_DLLAZY_OR_NOW RTLD_NOW
8242# else
8243# ifdef DL_NOW
8244# define LT_DLLAZY_OR_NOW DL_NOW
8245# else
8246# define LT_DLLAZY_OR_NOW 0
8247# endif
8248# endif
8249# endif
8250# endif
8251#endif
8252
8253#ifdef __cplusplus
8254extern "C" void exit (int);
8255#endif
8256
8257void fnord() { int i=42;}
8258int main ()
8259{
8260 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8261 int status = $lt_dlunknown;
8262
8263 if (self)
8264 {
8265 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8266 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8267 /* dlclose (self); */
8268 }
8269
8270 exit (status);
8271}
8272EOF
8273 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8274 (eval $ac_link) 2>&5
8275 ac_status=$?
8276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8277 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8278 (./conftest; exit; ) 2>/dev/null
8279 lt_status=$?
8280 case x$lt_status in
8281 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8282 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8283 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8284 esac
8285 else :
8286 # compilation failed
8287 lt_cv_dlopen_self=no
8288 fi
8289fi
8290rm -fr conftest*
8291
8292
8293fi
8294echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8295echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8296
8297 if test "x$lt_cv_dlopen_self" = xyes; then
8298 LDFLAGS="$LDFLAGS $link_static_flag"
8299 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8300echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8301if test "${lt_cv_dlopen_self_static+set}" = set; then
8302 echo $ECHO_N "(cached) $ECHO_C" >&6
8303else
8304 if test "$cross_compiling" = yes; then :
8305 lt_cv_dlopen_self_static=cross
8306else
John Criswell47fdd832003-07-14 16:52:07 +00008307 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +00008308 lt_status=$lt_dlunknown
8309 cat > conftest.$ac_ext <<EOF
John Criswell8a54a1e2004-06-22 21:35:10 +00008310#line 8310 "configure"
John Criswell7a73b802003-06-30 21:59:07 +00008311#include "confdefs.h"
8312
8313#if HAVE_DLFCN_H
8314#include <dlfcn.h>
8315#endif
8316
8317#include <stdio.h>
8318
8319#ifdef RTLD_GLOBAL
8320# define LT_DLGLOBAL RTLD_GLOBAL
8321#else
8322# ifdef DL_GLOBAL
8323# define LT_DLGLOBAL DL_GLOBAL
8324# else
8325# define LT_DLGLOBAL 0
8326# endif
8327#endif
8328
8329/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8330 find out it does not work in some platform. */
8331#ifndef LT_DLLAZY_OR_NOW
8332# ifdef RTLD_LAZY
8333# define LT_DLLAZY_OR_NOW RTLD_LAZY
8334# else
8335# ifdef DL_LAZY
8336# define LT_DLLAZY_OR_NOW DL_LAZY
8337# else
8338# ifdef RTLD_NOW
8339# define LT_DLLAZY_OR_NOW RTLD_NOW
8340# else
8341# ifdef DL_NOW
8342# define LT_DLLAZY_OR_NOW DL_NOW
8343# else
8344# define LT_DLLAZY_OR_NOW 0
8345# endif
8346# endif
8347# endif
8348# endif
8349#endif
8350
8351#ifdef __cplusplus
8352extern "C" void exit (int);
8353#endif
8354
8355void fnord() { int i=42;}
8356int main ()
8357{
8358 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8359 int status = $lt_dlunknown;
8360
8361 if (self)
8362 {
8363 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8364 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8365 /* dlclose (self); */
8366 }
8367
8368 exit (status);
8369}
8370EOF
8371 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8372 (eval $ac_link) 2>&5
8373 ac_status=$?
8374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8375 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8376 (./conftest; exit; ) 2>/dev/null
8377 lt_status=$?
8378 case x$lt_status in
8379 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8380 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8381 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8382 esac
8383 else :
8384 # compilation failed
8385 lt_cv_dlopen_self_static=no
8386 fi
8387fi
8388rm -fr conftest*
8389
8390
8391fi
8392echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8393echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8394 fi
8395
8396 CPPFLAGS="$save_CPPFLAGS"
8397 LDFLAGS="$save_LDFLAGS"
8398 LIBS="$save_LIBS"
8399 ;;
8400 esac
8401
8402 case $lt_cv_dlopen_self in
8403 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8404 *) enable_dlopen_self=unknown ;;
8405 esac
8406
8407 case $lt_cv_dlopen_self_static in
8408 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8409 *) enable_dlopen_self_static=unknown ;;
8410 esac
8411fi
8412
8413
John Criswell47fdd832003-07-14 16:52:07 +00008414# Report which librarie types wil actually be built
8415echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8416echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8417echo "$as_me:$LINENO: result: $can_build_shared" >&5
8418echo "${ECHO_T}$can_build_shared" >&6
John Criswell7a73b802003-06-30 21:59:07 +00008419
John Criswell47fdd832003-07-14 16:52:07 +00008420echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8421echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8422test "$can_build_shared" = "no" && enable_shared=no
8423
8424# On AIX, shared libraries and static libraries use the same namespace, and
8425# are all built from PIC.
8426case "$host_os" in
8427aix3*)
8428 test "$enable_shared" = yes && enable_static=no
8429 if test -n "$RANLIB"; then
8430 archive_cmds="$archive_cmds~\$RANLIB \$lib"
8431 postinstall_cmds='$RANLIB $lib'
8432 fi
8433 ;;
8434
8435aix4*)
8436 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8437 test "$enable_shared" = yes && enable_static=no
8438 fi
8439 ;;
8440 darwin* | rhapsody*)
8441 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
8442 archive_cmds_need_lc=no
8443 case "$host_os" in
8444 rhapsody* | darwin1.[012])
8445 allow_undefined_flag='-undefined suppress'
8446 ;;
8447 *) # Darwin 1.3 on
8448 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
8449 ;;
8450 esac
8451 # FIXME: Relying on posixy $() will cause problems for
8452 # cross-compilation, but unfortunately the echo tests do not
8453 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
8454 # `"' quotes if we put them in here... so don't!
8455 output_verbose_link_cmd='echo'
8456 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8457 module_cmds='$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
8458 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8459 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}'
8460 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}'
8461 hardcode_direct=no
8462 hardcode_automatic=yes
8463 hardcode_shlibpath_var=unsupported
8464 whole_archive_flag_spec='-all_load $convenience'
8465 link_all_deplibs=yes
John Criswell7a73b802003-06-30 21:59:07 +00008466 fi
John Criswell7a73b802003-06-30 21:59:07 +00008467 ;;
John Criswell47fdd832003-07-14 16:52:07 +00008468esac
8469echo "$as_me:$LINENO: result: $enable_shared" >&5
8470echo "${ECHO_T}$enable_shared" >&6
John Criswell7a73b802003-06-30 21:59:07 +00008471
John Criswell47fdd832003-07-14 16:52:07 +00008472echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8473echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8474# Make sure either enable_shared or enable_static is yes.
8475test "$enable_shared" = yes || enable_static=yes
8476echo "$as_me:$LINENO: result: $enable_static" >&5
8477echo "${ECHO_T}$enable_static" >&6
8478
8479# The else clause should only fire when bootstrapping the
John Criswell7a73b802003-06-30 21:59:07 +00008480# libtool distribution, otherwise you forgot to ship ltmain.sh
8481# with your package, and you will get complaints that there are
8482# no rules to generate ltmain.sh.
8483if test -f "$ltmain"; then
John Criswell47fdd832003-07-14 16:52:07 +00008484 # See if we are running on zsh, and set the options which allow our commands through
8485 # without removal of \ escapes.
8486 if test -n "${ZSH_VERSION+set}" ; then
8487 setopt NO_GLOB_SUBST
8488 fi
John Criswell7a73b802003-06-30 21:59:07 +00008489 # Now quote all the things that may contain metacharacters while being
8490 # careful not to overquote the AC_SUBSTed values. We take copies of the
8491 # variables and quote the copies for generation of the libtool script.
John Criswell47fdd832003-07-14 16:52:07 +00008492 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
8493 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8494 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8495 deplibs_check_method reload_flag reload_cmds need_locks \
8496 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8497 lt_cv_sys_global_symbol_to_c_name_address \
John Criswell7a73b802003-06-30 21:59:07 +00008498 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
John Criswell47fdd832003-07-14 16:52:07 +00008499 old_postinstall_cmds old_postuninstall_cmds \
8500 compiler \
8501 CC \
8502 LD \
8503 lt_prog_compiler_wl \
8504 lt_prog_compiler_pic \
8505 lt_prog_compiler_static \
8506 lt_prog_compiler_no_builtin_flag \
8507 export_dynamic_flag_spec \
8508 thread_safe_flag_spec \
8509 whole_archive_flag_spec \
8510 enable_shared_with_static_runtimes \
8511 old_archive_cmds \
8512 old_archive_from_new_cmds \
8513 predep_objects \
8514 postdep_objects \
8515 predeps \
8516 postdeps \
8517 compiler_lib_search_path \
8518 archive_cmds \
8519 archive_expsym_cmds \
8520 postinstall_cmds \
8521 postuninstall_cmds \
8522 old_archive_from_expsyms_cmds \
8523 allow_undefined_flag \
8524 no_undefined_flag \
8525 export_symbols_cmds \
8526 hardcode_libdir_flag_spec \
8527 hardcode_libdir_flag_spec_ld \
8528 hardcode_libdir_separator \
8529 hardcode_automatic \
8530 module_cmds \
8531 module_expsym_cmds \
8532 lt_cv_prog_compiler_c_o \
8533 exclude_expsyms \
8534 include_expsyms; do
John Criswell7a73b802003-06-30 21:59:07 +00008535
8536 case $var in
John Criswell47fdd832003-07-14 16:52:07 +00008537 old_archive_cmds | \
8538 old_archive_from_new_cmds | \
8539 archive_cmds | \
8540 archive_expsym_cmds | \
8541 module_cmds | \
8542 module_expsym_cmds | \
8543 old_archive_from_expsyms_cmds | \
8544 export_symbols_cmds | \
8545 extract_expsyms_cmds | reload_cmds | finish_cmds | \
John Criswell7a73b802003-06-30 21:59:07 +00008546 postinstall_cmds | postuninstall_cmds | \
John Criswell47fdd832003-07-14 16:52:07 +00008547 old_postinstall_cmds | old_postuninstall_cmds | \
8548 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
John Criswell7a73b802003-06-30 21:59:07 +00008549 # Double-quote double-evaled strings.
8550 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8551 ;;
8552 *)
8553 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8554 ;;
8555 esac
8556 done
8557
John Criswell47fdd832003-07-14 16:52:07 +00008558 case $lt_echo in
8559 *'\$0 --fallback-echo"')
8560 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8561 ;;
8562 esac
8563
8564cfgfile="${ofile}T"
8565 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8566 $rm -f "$cfgfile"
8567 { echo "$as_me:$LINENO: creating $ofile" >&5
8568echo "$as_me: creating $ofile" >&6;}
8569
8570 cat <<__EOF__ >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +00008571#! $SHELL
8572
John Criswell47fdd832003-07-14 16:52:07 +00008573# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
John Criswell7a73b802003-06-30 21:59:07 +00008574# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8575# NOTE: Changes made to this file will be lost: look at ltmain.sh.
8576#
John Criswell47fdd832003-07-14 16:52:07 +00008577# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8578# Free Software Foundation, Inc.
8579#
8580# This file is part of GNU Libtool:
John Criswell7a73b802003-06-30 21:59:07 +00008581# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8582#
8583# This program is free software; you can redistribute it and/or modify
8584# it under the terms of the GNU General Public License as published by
8585# the Free Software Foundation; either version 2 of the License, or
8586# (at your option) any later version.
8587#
8588# This program is distributed in the hope that it will be useful, but
8589# WITHOUT ANY WARRANTY; without even the implied warranty of
8590# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
8591# General Public License for more details.
8592#
8593# You should have received a copy of the GNU General Public License
8594# along with this program; if not, write to the Free Software
8595# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8596#
8597# As a special exception to the GNU General Public License, if you
8598# distribute this file as part of a program that contains a
8599# configuration script generated by Autoconf, you may include it under
8600# the same distribution terms that you use for the rest of that program.
8601
John Criswell47fdd832003-07-14 16:52:07 +00008602# A sed program that does not truncate output.
8603SED=$lt_SED
8604
John Criswell7a73b802003-06-30 21:59:07 +00008605# Sed that helps us avoid accidentally triggering echo(1) options like -n.
John Criswell47fdd832003-07-14 16:52:07 +00008606Xsed="$SED -e s/^X//"
John Criswell7a73b802003-06-30 21:59:07 +00008607
8608# The HP-UX ksh and POSIX shell print the target directory to stdout
8609# if CDPATH is set.
8610if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8611
John Criswell47fdd832003-07-14 16:52:07 +00008612# The names of the tagged configurations supported by this script.
8613available_tags=
8614
John Criswell7a73b802003-06-30 21:59:07 +00008615# ### BEGIN LIBTOOL CONFIG
8616
8617# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8618
8619# Shell to use when invoking shell scripts.
8620SHELL=$lt_SHELL
8621
8622# Whether or not to build shared libraries.
8623build_libtool_libs=$enable_shared
8624
8625# Whether or not to build static libraries.
8626build_old_libs=$enable_static
8627
8628# Whether or not to add -lc for building shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +00008629build_libtool_need_lc=$archive_cmds_need_lc
8630
8631# Whether or not to disallow shared libs when runtime libs are static
8632allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
John Criswell7a73b802003-06-30 21:59:07 +00008633
8634# Whether or not to optimize for fast installation.
8635fast_install=$enable_fast_install
8636
8637# The host system.
8638host_alias=$host_alias
8639host=$host
8640
8641# An echo program that does not interpret backslashes.
8642echo=$lt_echo
8643
8644# The archiver.
8645AR=$lt_AR
8646AR_FLAGS=$lt_AR_FLAGS
8647
John Criswell47fdd832003-07-14 16:52:07 +00008648# A C compiler.
8649LTCC=$lt_LTCC
8650
8651# A language-specific compiler.
8652CC=$lt_compiler
John Criswell7a73b802003-06-30 21:59:07 +00008653
8654# Is the compiler the GNU C compiler?
8655with_gcc=$GCC
8656
John Criswell47fdd832003-07-14 16:52:07 +00008657# An ERE matcher.
8658EGREP=$lt_EGREP
8659
John Criswell7a73b802003-06-30 21:59:07 +00008660# The linker used to build libraries.
8661LD=$lt_LD
8662
8663# Whether we need hard or soft links.
8664LN_S=$lt_LN_S
8665
8666# A BSD-compatible nm program.
8667NM=$lt_NM
8668
8669# A symbol stripping program
8670STRIP=$STRIP
8671
8672# Used to examine libraries when file_magic_cmd begins "file"
8673MAGIC_CMD=$MAGIC_CMD
8674
8675# Used on cygwin: DLL creation program.
8676DLLTOOL="$DLLTOOL"
8677
8678# Used on cygwin: object dumper.
8679OBJDUMP="$OBJDUMP"
8680
8681# Used on cygwin: assembler.
8682AS="$AS"
8683
8684# The name of the directory that contains temporary libtool files.
8685objdir=$objdir
8686
8687# How to create reloadable object files.
8688reload_flag=$lt_reload_flag
8689reload_cmds=$lt_reload_cmds
8690
8691# How to pass a linker flag through the compiler.
John Criswell47fdd832003-07-14 16:52:07 +00008692wl=$lt_lt_prog_compiler_wl
John Criswell7a73b802003-06-30 21:59:07 +00008693
8694# Object file suffix (normally "o").
8695objext="$ac_objext"
8696
8697# Old archive suffix (normally "a").
8698libext="$libext"
8699
John Criswell47fdd832003-07-14 16:52:07 +00008700# Shared library suffix (normally ".so").
8701shrext='$shrext'
8702
John Criswell7a73b802003-06-30 21:59:07 +00008703# Executable file suffix (normally "").
8704exeext="$exeext"
8705
8706# Additional compiler flags for building library objects.
John Criswell47fdd832003-07-14 16:52:07 +00008707pic_flag=$lt_lt_prog_compiler_pic
John Criswell7a73b802003-06-30 21:59:07 +00008708pic_mode=$pic_mode
8709
John Criswell47fdd832003-07-14 16:52:07 +00008710# What is the maximum length of a command?
8711max_cmd_len=$lt_cv_sys_max_cmd_len
John Criswell7a73b802003-06-30 21:59:07 +00008712
John Criswell47fdd832003-07-14 16:52:07 +00008713# Does compiler simultaneously support -c and -o options?
8714compiler_c_o=$lt_lt_cv_prog_compiler_c_o
John Criswell7a73b802003-06-30 21:59:07 +00008715
8716# Must we lock files when doing compilation ?
8717need_locks=$lt_need_locks
8718
8719# Do we need the lib prefix for modules?
8720need_lib_prefix=$need_lib_prefix
8721
8722# Do we need a version for libraries?
8723need_version=$need_version
8724
8725# Whether dlopen is supported.
8726dlopen_support=$enable_dlopen
8727
8728# Whether dlopen of programs is supported.
8729dlopen_self=$enable_dlopen_self
8730
8731# Whether dlopen of statically linked programs is supported.
8732dlopen_self_static=$enable_dlopen_self_static
8733
8734# Compiler flag to prevent dynamic linking.
John Criswell47fdd832003-07-14 16:52:07 +00008735link_static_flag=$lt_lt_prog_compiler_static
John Criswell7a73b802003-06-30 21:59:07 +00008736
8737# Compiler flag to turn off builtin functions.
John Criswell47fdd832003-07-14 16:52:07 +00008738no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
John Criswell7a73b802003-06-30 21:59:07 +00008739
8740# Compiler flag to allow reflexive dlopens.
8741export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
8742
8743# Compiler flag to generate shared objects directly from archives.
8744whole_archive_flag_spec=$lt_whole_archive_flag_spec
8745
8746# Compiler flag to generate thread-safe objects.
8747thread_safe_flag_spec=$lt_thread_safe_flag_spec
8748
8749# Library versioning type.
8750version_type=$version_type
8751
8752# Format of library name prefix.
8753libname_spec=$lt_libname_spec
8754
8755# List of archive names. First name is the real one, the rest are links.
8756# The last name is the one that the linker finds with -lNAME.
8757library_names_spec=$lt_library_names_spec
8758
8759# The coded name of the library, if different from the real name.
8760soname_spec=$lt_soname_spec
8761
8762# Commands used to build and install an old-style archive.
8763RANLIB=$lt_RANLIB
8764old_archive_cmds=$lt_old_archive_cmds
8765old_postinstall_cmds=$lt_old_postinstall_cmds
8766old_postuninstall_cmds=$lt_old_postuninstall_cmds
8767
8768# Create an old-style archive from a shared archive.
8769old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
8770
8771# Create a temporary old-style archive to link instead of a shared archive.
8772old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
8773
8774# Commands used to build and install a shared archive.
8775archive_cmds=$lt_archive_cmds
8776archive_expsym_cmds=$lt_archive_expsym_cmds
8777postinstall_cmds=$lt_postinstall_cmds
8778postuninstall_cmds=$lt_postuninstall_cmds
8779
John Criswell47fdd832003-07-14 16:52:07 +00008780# Commands used to build a loadable module (assumed same as above if empty)
8781module_cmds=$lt_module_cmds
8782module_expsym_cmds=$lt_module_expsym_cmds
8783
John Criswell7a73b802003-06-30 21:59:07 +00008784# Commands to strip libraries.
8785old_striplib=$lt_old_striplib
8786striplib=$lt_striplib
8787
John Criswell47fdd832003-07-14 16:52:07 +00008788# Dependencies to place before the objects being linked to create a
8789# shared library.
8790predep_objects=$lt_predep_objects
8791
8792# Dependencies to place after the objects being linked to create a
8793# shared library.
8794postdep_objects=$lt_postdep_objects
8795
8796# Dependencies to place before the objects being linked to create a
8797# shared library.
8798predeps=$lt_predeps
8799
8800# Dependencies to place after the objects being linked to create a
8801# shared library.
8802postdeps=$lt_postdeps
8803
8804# The library search path used internally by the compiler when linking
8805# a shared library.
8806compiler_lib_search_path=$lt_compiler_lib_search_path
8807
John Criswell7a73b802003-06-30 21:59:07 +00008808# Method to check whether dependent libraries are shared objects.
8809deplibs_check_method=$lt_deplibs_check_method
8810
8811# Command to use when deplibs_check_method == file_magic.
8812file_magic_cmd=$lt_file_magic_cmd
8813
8814# Flag that allows shared libraries with undefined symbols to be built.
8815allow_undefined_flag=$lt_allow_undefined_flag
8816
8817# Flag that forces no undefined symbols.
8818no_undefined_flag=$lt_no_undefined_flag
8819
8820# Commands used to finish a libtool library installation in a directory.
8821finish_cmds=$lt_finish_cmds
8822
8823# Same as above, but a single script fragment to be evaled but not shown.
8824finish_eval=$lt_finish_eval
8825
8826# Take the output of nm and produce a listing of raw symbols and C names.
John Criswell47fdd832003-07-14 16:52:07 +00008827global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
John Criswell7a73b802003-06-30 21:59:07 +00008828
8829# Transform the output of nm in a proper C declaration
John Criswell47fdd832003-07-14 16:52:07 +00008830global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
John Criswell7a73b802003-06-30 21:59:07 +00008831
8832# Transform the output of nm in a C name address pair
John Criswell47fdd832003-07-14 16:52:07 +00008833global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
John Criswell7a73b802003-06-30 21:59:07 +00008834
8835# This is the shared library runtime path variable.
8836runpath_var=$runpath_var
8837
8838# This is the shared library path variable.
8839shlibpath_var=$shlibpath_var
8840
8841# Is shlibpath searched before the hard-coded library search path?
8842shlibpath_overrides_runpath=$shlibpath_overrides_runpath
8843
8844# How to hardcode a shared library path into an executable.
8845hardcode_action=$hardcode_action
8846
8847# Whether we should hardcode library paths into libraries.
8848hardcode_into_libs=$hardcode_into_libs
8849
8850# Flag to hardcode \$libdir into a binary during linking.
8851# This must work even if \$libdir does not exist.
8852hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
8853
John Criswell47fdd832003-07-14 16:52:07 +00008854# If ld is used when linking, flag to hardcode \$libdir into
8855# a binary during linking. This must work even if \$libdir does
8856# not exist.
8857hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
8858
John Criswell7a73b802003-06-30 21:59:07 +00008859# Whether we need a single -rpath flag with a separated argument.
8860hardcode_libdir_separator=$lt_hardcode_libdir_separator
8861
John Criswell47fdd832003-07-14 16:52:07 +00008862# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
John Criswell7a73b802003-06-30 21:59:07 +00008863# resulting binary.
8864hardcode_direct=$hardcode_direct
8865
8866# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
8867# resulting binary.
8868hardcode_minus_L=$hardcode_minus_L
8869
8870# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
8871# the resulting binary.
8872hardcode_shlibpath_var=$hardcode_shlibpath_var
8873
John Criswell47fdd832003-07-14 16:52:07 +00008874# Set to yes if building a shared library automatically hardcodes DIR into the library
8875# and all subsequent libraries and executables linked against it.
8876hardcode_automatic=$hardcode_automatic
8877
John Criswell7a73b802003-06-30 21:59:07 +00008878# Variables whose values should be saved in libtool wrapper scripts and
8879# restored at relink time.
8880variables_saved_for_relink="$variables_saved_for_relink"
8881
8882# Whether libtool must link a program against all its dependency libraries.
8883link_all_deplibs=$link_all_deplibs
8884
8885# Compile-time system search path for libraries
8886sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
8887
8888# Run-time system search path for libraries
8889sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
8890
8891# Fix the shell variable \$srcfile for the compiler.
8892fix_srcfile_path="$fix_srcfile_path"
8893
8894# Set to yes if exported symbols are required.
8895always_export_symbols=$always_export_symbols
8896
8897# The commands to list exported symbols.
8898export_symbols_cmds=$lt_export_symbols_cmds
8899
8900# The commands to extract the exported symbol list from a shared archive.
8901extract_expsyms_cmds=$lt_extract_expsyms_cmds
8902
8903# Symbols that should not be listed in the preloaded symbols.
8904exclude_expsyms=$lt_exclude_expsyms
8905
8906# Symbols that must always be exported.
8907include_expsyms=$lt_include_expsyms
8908
8909# ### END LIBTOOL CONFIG
8910
8911__EOF__
8912
John Criswell47fdd832003-07-14 16:52:07 +00008913
John Criswell7a73b802003-06-30 21:59:07 +00008914 case $host_os in
8915 aix3*)
John Criswell47fdd832003-07-14 16:52:07 +00008916 cat <<\EOF >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +00008917
8918# AIX sometimes has problems with the GCC collect2 program. For some
8919# reason, if we set the COLLECT_NAMES environment variable, the problems
8920# vanish in a puff of smoke.
8921if test "X${COLLECT_NAMES+set}" != Xset; then
8922 COLLECT_NAMES=
8923 export COLLECT_NAMES
8924fi
8925EOF
8926 ;;
8927 esac
8928
John Criswell7a73b802003-06-30 21:59:07 +00008929 # We use sed instead of cat because bash on DJGPP gets confused if
8930 # if finds mixed CR/LF and LF-only lines. Since sed operates in
8931 # text mode, it properly converts lines to CR/LF. This bash problem
8932 # is reportedly fixed, but why not run on old versions too?
John Criswell47fdd832003-07-14 16:52:07 +00008933 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
John Criswell7a73b802003-06-30 21:59:07 +00008934
John Criswell47fdd832003-07-14 16:52:07 +00008935 mv -f "$cfgfile" "$ofile" || \
8936 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
John Criswell7a73b802003-06-30 21:59:07 +00008937 chmod +x "$ofile"
John Criswell47fdd832003-07-14 16:52:07 +00008938
8939else
8940 # If there is no Makefile yet, we rely on a make rule to execute
8941 # `config.status --recheck' to rerun these tests and create the
8942 # libtool script then.
8943 test -f Makefile && make "$ltmain"
John Criswell7a73b802003-06-30 21:59:07 +00008944fi
John Criswell7a73b802003-06-30 21:59:07 +00008945
8946
John Criswell47fdd832003-07-14 16:52:07 +00008947ac_ext=c
8948ac_cpp='$CPP $CPPFLAGS'
8949ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8950ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8951ac_compiler_gnu=$ac_cv_c_compiler_gnu
8952
8953CC="$lt_save_CC"
8954
8955
8956# Check whether --with-tags or --without-tags was given.
8957if test "${with_tags+set}" = set; then
8958 withval="$with_tags"
8959 tagnames="$withval"
8960fi;
8961
8962if test -f "$ltmain" && test -n "$tagnames"; then
8963 if test ! -f "${ofile}"; then
8964 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
8965echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
8966 fi
8967
8968 if test -z "$LTCC"; then
8969 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
8970 if test -z "$LTCC"; then
8971 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
8972echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
8973 else
8974 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
8975echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
8976 fi
8977 fi
8978
8979 # Extract list of available tagged configurations in $ofile.
8980 # Note that this assumes the entire list is on one line.
8981 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
8982
8983 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8984 for tagname in $tagnames; do
8985 IFS="$lt_save_ifs"
8986 # Check whether tagname contains only valid characters
8987 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
8988 "") ;;
8989 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
8990echo "$as_me: error: invalid tag name: $tagname" >&2;}
8991 { (exit 1); exit 1; }; }
8992 ;;
8993 esac
8994
8995 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
8996 then
8997 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
8998echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
8999 { (exit 1); exit 1; }; }
9000 fi
9001
9002 # Update the list of available tags.
9003 if test -n "$tagname"; then
9004 echo appending configuration tag \"$tagname\" to $ofile
9005
9006 case $tagname in
9007 CXX)
9008 if test -n "$CXX" && test "X$CXX" != "Xno"; then
9009 ac_ext=cc
9010ac_cpp='$CXXCPP $CPPFLAGS'
9011ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9012ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9013ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9014
9015
9016
9017
9018archive_cmds_need_lc_CXX=no
9019allow_undefined_flag_CXX=
9020always_export_symbols_CXX=no
9021archive_expsym_cmds_CXX=
9022export_dynamic_flag_spec_CXX=
9023hardcode_direct_CXX=no
9024hardcode_libdir_flag_spec_CXX=
9025hardcode_libdir_flag_spec_ld_CXX=
9026hardcode_libdir_separator_CXX=
9027hardcode_minus_L_CXX=no
9028hardcode_automatic_CXX=no
9029module_cmds_CXX=
9030module_expsym_cmds_CXX=
9031link_all_deplibs_CXX=unknown
9032old_archive_cmds_CXX=$old_archive_cmds
9033no_undefined_flag_CXX=
9034whole_archive_flag_spec_CXX=
9035enable_shared_with_static_runtimes_CXX=no
9036
9037# Dependencies to place before and after the object being linked:
9038predep_objects_CXX=
9039postdep_objects_CXX=
9040predeps_CXX=
9041postdeps_CXX=
9042compiler_lib_search_path_CXX=
9043
9044# Source file extension for C++ test sources.
9045ac_ext=cc
9046
9047# Object file extension for compiled C++ test sources.
9048objext=o
9049objext_CXX=$objext
9050
9051# Code to be used in simple compile tests
9052lt_simple_compile_test_code="int some_variable = 0;\n"
9053
9054# Code to be used in simple link tests
9055lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9056
9057# ltmain only uses $CC for tagged configurations so make sure $CC is set.
9058
9059# If no C compiler was specified, use CC.
9060LTCC=${LTCC-"$CC"}
9061
9062# Allow CC to be a program name with arguments.
9063compiler=$CC
9064
9065
9066# Allow CC to be a program name with arguments.
9067lt_save_CC=$CC
9068lt_save_LD=$LD
9069lt_save_GCC=$GCC
9070GCC=$GXX
9071lt_save_with_gnu_ld=$with_gnu_ld
9072lt_save_path_LD=$lt_cv_path_LD
9073if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9074 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9075else
9076 unset lt_cv_prog_gnu_ld
9077fi
9078if test -n "${lt_cv_path_LDCXX+set}"; then
9079 lt_cv_path_LD=$lt_cv_path_LDCXX
9080else
9081 unset lt_cv_path_LD
9082fi
9083test -z "${LDCXX+set}" || LD=$LDCXX
9084CC=${CXX-"c++"}
9085compiler=$CC
9086compiler_CXX=$CC
9087cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9088
9089# We don't want -fno-exception wen compiling C++ code, so set the
9090# no_builtin_flag separately
9091if test "$GXX" = yes; then
9092 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9093else
9094 lt_prog_compiler_no_builtin_flag_CXX=
9095fi
9096
9097if test "$GXX" = yes; then
9098 # Set up default GNU C++ configuration
9099
9100
9101# Check whether --with-gnu-ld or --without-gnu-ld was given.
9102if test "${with_gnu_ld+set}" = set; then
9103 withval="$with_gnu_ld"
9104 test "$withval" = no || with_gnu_ld=yes
9105else
9106 with_gnu_ld=no
9107fi;
9108ac_prog=ld
9109if test "$GCC" = yes; then
9110 # Check if gcc -print-prog-name=ld gives a path.
9111 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9112echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9113 case $host in
9114 *-*-mingw*)
9115 # gcc leaves a trailing carriage return which upsets mingw
9116 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9117 *)
9118 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9119 esac
9120 case $ac_prog in
9121 # Accept absolute paths.
9122 [\\/]* | ?:[\\/]*)
9123 re_direlt='/[^/][^/]*/\.\./'
9124 # Canonicalize the path of ld
9125 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9126 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9127 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9128 done
9129 test -z "$LD" && LD="$ac_prog"
9130 ;;
9131 "")
9132 # If it fails, then pretend we aren't using GCC.
9133 ac_prog=ld
9134 ;;
9135 *)
9136 # If it is relative, then search for the first ld in PATH.
9137 with_gnu_ld=unknown
9138 ;;
9139 esac
9140elif test "$with_gnu_ld" = yes; then
9141 echo "$as_me:$LINENO: checking for GNU ld" >&5
9142echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9143else
9144 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9145echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9146fi
9147if test "${lt_cv_path_LD+set}" = set; then
9148 echo $ECHO_N "(cached) $ECHO_C" >&6
9149else
9150 if test -z "$LD"; then
9151 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9152 for ac_dir in $PATH; do
9153 IFS="$lt_save_ifs"
9154 test -z "$ac_dir" && ac_dir=.
9155 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9156 lt_cv_path_LD="$ac_dir/$ac_prog"
9157 # Check to see if the program is GNU ld. I'd rather use --version,
9158 # but apparently some GNU ld's only accept -v.
9159 # Break only if it was the GNU/non-GNU ld that we prefer.
9160 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9161 *GNU* | *'with BFD'*)
9162 test "$with_gnu_ld" != no && break
9163 ;;
9164 *)
9165 test "$with_gnu_ld" != yes && break
9166 ;;
9167 esac
9168 fi
9169 done
9170 IFS="$lt_save_ifs"
9171else
9172 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9173fi
9174fi
9175
9176LD="$lt_cv_path_LD"
9177if test -n "$LD"; then
9178 echo "$as_me:$LINENO: result: $LD" >&5
9179echo "${ECHO_T}$LD" >&6
9180else
9181 echo "$as_me:$LINENO: result: no" >&5
9182echo "${ECHO_T}no" >&6
9183fi
9184test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9185echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9186 { (exit 1); exit 1; }; }
9187echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9188echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9189if test "${lt_cv_prog_gnu_ld+set}" = set; then
9190 echo $ECHO_N "(cached) $ECHO_C" >&6
9191else
9192 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9193case `"$LD" -v 2>&1 </dev/null` in
9194*GNU* | *'with BFD'*)
9195 lt_cv_prog_gnu_ld=yes
9196 ;;
9197*)
9198 lt_cv_prog_gnu_ld=no
9199 ;;
9200esac
9201fi
9202echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9203echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9204with_gnu_ld=$lt_cv_prog_gnu_ld
9205
9206
9207
9208 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9209 # archiving commands below assume that GNU ld is being used.
9210 if test "$with_gnu_ld" = yes; then
9211 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9212 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'
9213
9214 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9215 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9216
9217 # If archive_cmds runs LD, not CC, wlarc should be empty
9218 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9219 # investigate it a little bit more. (MM)
9220 wlarc='${wl}'
9221
9222 # ancient GNU ld didn't support --whole-archive et. al.
9223 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9224 grep 'no-whole-archive' > /dev/null; then
9225 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9226 else
9227 whole_archive_flag_spec_CXX=
9228 fi
9229 else
9230 with_gnu_ld=no
9231 wlarc=
9232
9233 # A generic and very simple default shared library creation
9234 # command for GNU C++ for the case where it uses the native
9235 # linker, instead of GNU ld. If possible, this setting should
9236 # overridden to take advantage of the native linker features on
9237 # the platform it is being used on.
9238 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9239 fi
9240
9241 # Commands to make compiler produce verbose output that lists
9242 # what "hidden" libraries, object files and flags are used when
9243 # linking a shared library.
9244 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9245
9246else
9247 GXX=no
9248 with_gnu_ld=no
9249 wlarc=
9250fi
9251
9252# PORTME: fill in a description of your system's C++ link characteristics
9253echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9254echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9255ld_shlibs_CXX=yes
9256case $host_os in
9257 aix3*)
9258 # FIXME: insert proper C++ library support
9259 ld_shlibs_CXX=no
9260 ;;
9261 aix4* | aix5*)
9262 if test "$host_cpu" = ia64; then
9263 # On IA64, the linker does run time linking by default, so we don't
9264 # have to do anything special.
9265 aix_use_runtimelinking=no
9266 exp_sym_flag='-Bexport'
9267 no_entry_flag=""
9268 else
9269 aix_use_runtimelinking=no
9270
9271 # Test if we are trying to use run time linking or normal
9272 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9273 # need to do runtime linking.
9274 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9275 for ld_flag in $LDFLAGS; do
9276 case $ld_flag in
9277 *-brtl*)
9278 aix_use_runtimelinking=yes
9279 break
9280 ;;
9281 esac
9282 done
9283 esac
9284
9285 exp_sym_flag='-bexport'
9286 no_entry_flag='-bnoentry'
9287 fi
9288
9289 # When large executables or shared objects are built, AIX ld can
9290 # have problems creating the table of contents. If linking a library
9291 # or program results in "error TOC overflow" add -mminimal-toc to
9292 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9293 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9294
9295 archive_cmds_CXX=''
9296 hardcode_direct_CXX=yes
9297 hardcode_libdir_separator_CXX=':'
9298 link_all_deplibs_CXX=yes
9299
9300 if test "$GXX" = yes; then
9301 case $host_os in aix4.012|aix4.012.*)
9302 # We only want to do this on AIX 4.2 and lower, the check
9303 # below for broken collect2 doesn't work under 4.3+
9304 collect2name=`${CC} -print-prog-name=collect2`
9305 if test -f "$collect2name" && \
9306 strings "$collect2name" | grep resolve_lib_name >/dev/null
9307 then
9308 # We have reworked collect2
9309 hardcode_direct_CXX=yes
9310 else
9311 # We have old collect2
9312 hardcode_direct_CXX=unsupported
9313 # It fails to find uninstalled libraries when the uninstalled
9314 # path is not listed in the libpath. Setting hardcode_minus_L
9315 # to unsupported forces relinking
9316 hardcode_minus_L_CXX=yes
9317 hardcode_libdir_flag_spec_CXX='-L$libdir'
9318 hardcode_libdir_separator_CXX=
9319 fi
9320 esac
9321 shared_flag='-shared'
9322 else
9323 # not using gcc
9324 if test "$host_cpu" = ia64; then
9325 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9326 # chokes on -Wl,-G. The following line is correct:
9327 shared_flag='-G'
9328 else
9329 if test "$aix_use_runtimelinking" = yes; then
9330 shared_flag='${wl}-G'
9331 else
9332 shared_flag='${wl}-bM:SRE'
9333 fi
9334 fi
9335 fi
9336
9337 # It seems that -bexpall does not export symbols beginning with
9338 # underscore (_), so it is better to generate a list of symbols to export.
9339 always_export_symbols_CXX=yes
9340 if test "$aix_use_runtimelinking" = yes; then
9341 # Warning - without using the other runtime loading flags (-brtl),
9342 # -berok will link without error, but may produce a broken library.
9343 allow_undefined_flag_CXX='-berok'
9344 # Determine the default libpath from the value encoded in an empty executable.
9345 cat >conftest.$ac_ext <<_ACEOF
9346#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00009347/* confdefs.h. */
9348_ACEOF
9349cat confdefs.h >>conftest.$ac_ext
9350cat >>conftest.$ac_ext <<_ACEOF
9351/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00009352
John Criswell47fdd832003-07-14 16:52:07 +00009353int
9354main ()
9355{
9356
9357 ;
9358 return 0;
9359}
9360_ACEOF
9361rm -f conftest.$ac_objext conftest$ac_exeext
9362if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9363 (eval $ac_link) 2>&5
9364 ac_status=$?
9365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9366 (exit $ac_status); } &&
9367 { ac_try='test -s conftest$ac_exeext'
9368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9369 (eval $ac_try) 2>&5
9370 ac_status=$?
9371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9372 (exit $ac_status); }; }; then
9373
9374aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9375}'`
9376# Check for a 64-bit object if we didn't find anything.
9377if 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; }
9378}'`; fi
9379else
9380 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00009381sed 's/^/| /' conftest.$ac_ext >&5
9382
John Criswell47fdd832003-07-14 16:52:07 +00009383fi
9384rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9385if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9386
9387 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9388
9389 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"
9390 else
9391 if test "$host_cpu" = ia64; then
9392 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9393 allow_undefined_flag_CXX="-z nodefs"
9394 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"
9395 else
9396 # Determine the default libpath from the value encoded in an empty executable.
9397 cat >conftest.$ac_ext <<_ACEOF
9398#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00009399/* confdefs.h. */
9400_ACEOF
9401cat confdefs.h >>conftest.$ac_ext
9402cat >>conftest.$ac_ext <<_ACEOF
9403/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00009404
John Criswell47fdd832003-07-14 16:52:07 +00009405int
9406main ()
9407{
9408
9409 ;
9410 return 0;
9411}
9412_ACEOF
9413rm -f conftest.$ac_objext conftest$ac_exeext
9414if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9415 (eval $ac_link) 2>&5
9416 ac_status=$?
9417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9418 (exit $ac_status); } &&
9419 { ac_try='test -s conftest$ac_exeext'
9420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9421 (eval $ac_try) 2>&5
9422 ac_status=$?
9423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9424 (exit $ac_status); }; }; then
9425
9426aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9427}'`
9428# Check for a 64-bit object if we didn't find anything.
9429if 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; }
9430}'`; fi
9431else
9432 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00009433sed 's/^/| /' conftest.$ac_ext >&5
9434
John Criswell47fdd832003-07-14 16:52:07 +00009435fi
9436rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9437if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9438
9439 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9440 # Warning - without using the other run time loading flags,
9441 # -berok will link without error, but may produce a broken library.
9442 no_undefined_flag_CXX=' ${wl}-bernotok'
9443 allow_undefined_flag_CXX=' ${wl}-berok'
9444 # -bexpall does not export symbols beginning with underscore (_)
9445 always_export_symbols_CXX=yes
9446 # Exported symbols can be pulled into shared objects from archives
9447 whole_archive_flag_spec_CXX=' '
9448 archive_cmds_need_lc_CXX=yes
9449 # This is similar to how AIX traditionally builds it's shared libraries.
9450 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'
9451 fi
9452 fi
9453 ;;
9454 chorus*)
9455 case $cc_basename in
9456 *)
9457 # FIXME: insert proper C++ library support
9458 ld_shlibs_CXX=no
9459 ;;
9460 esac
9461 ;;
9462
9463 cygwin* | mingw* | pw32*)
9464 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9465 # as there is no search path for DLLs.
9466 hardcode_libdir_flag_spec_CXX='-L$libdir'
9467 allow_undefined_flag_CXX=unsupported
9468 always_export_symbols_CXX=no
9469 enable_shared_with_static_runtimes_CXX=yes
9470
9471 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9472 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'
9473 # If the export-symbols file already is a .def file (1st line
9474 # is EXPORTS), use it as is; otherwise, prepend...
9475 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9476 cp $export_symbols $output_objdir/$soname.def;
9477 else
9478 echo EXPORTS > $output_objdir/$soname.def;
9479 cat $export_symbols >> $output_objdir/$soname.def;
9480 fi~
9481 $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'
9482 else
9483 ld_shlibs_CXX=no
9484 fi
9485 ;;
9486
9487 darwin* | rhapsody*)
9488 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
9489 archive_cmds_need_lc_CXX=no
9490 case "$host_os" in
9491 rhapsody* | darwin1.[012])
9492 allow_undefined_flag_CXX='-undefined suppress'
9493 ;;
9494 *) # Darwin 1.3 on
9495 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9496 ;;
9497 esac
9498 lt_int_apple_cc_single_mod=no
9499 output_verbose_link_cmd='echo'
9500 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9501 lt_int_apple_cc_single_mod=yes
9502 fi
9503 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9504 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9505 else
9506 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'
9507 fi
9508 module_cmds_CXX='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
9509
9510 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9511 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9512 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}'
9513 else
9514 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}'
9515 fi
9516 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}'
9517 hardcode_direct_CXX=no
9518 hardcode_automatic_CXX=yes
9519 hardcode_shlibpath_var_CXX=unsupported
9520 whole_archive_flag_spec_CXX='-all_load $convenience'
9521 link_all_deplibs_CXX=yes
9522 fi
9523 ;;
9524
9525 dgux*)
9526 case $cc_basename in
9527 ec++)
9528 # FIXME: insert proper C++ library support
9529 ld_shlibs_CXX=no
9530 ;;
9531 ghcx)
9532 # Green Hills C++ Compiler
9533 # FIXME: insert proper C++ library support
9534 ld_shlibs_CXX=no
9535 ;;
9536 *)
9537 # FIXME: insert proper C++ library support
9538 ld_shlibs_CXX=no
9539 ;;
9540 esac
9541 ;;
9542 freebsd12*)
9543 # C++ shared libraries reported to be fairly broken before switch to ELF
9544 ld_shlibs_CXX=no
9545 ;;
9546 freebsd-elf*)
9547 archive_cmds_need_lc_CXX=no
9548 ;;
9549 freebsd*)
9550 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9551 # conventions
9552 ld_shlibs_CXX=yes
9553 ;;
9554 gnu*)
9555 ;;
9556 hpux9*)
9557 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9558 hardcode_libdir_separator_CXX=:
9559 export_dynamic_flag_spec_CXX='${wl}-E'
9560 hardcode_direct_CXX=yes
9561 hardcode_minus_L_CXX=yes # Not in the search PATH,
9562 # but as the default
9563 # location of the library.
9564
9565 case $cc_basename in
9566 CC)
9567 # FIXME: insert proper C++ library support
9568 ld_shlibs_CXX=no
9569 ;;
9570 aCC)
9571 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'
9572 # Commands to make compiler produce verbose output that lists
9573 # what "hidden" libraries, object files and flags are used when
9574 # linking a shared library.
9575 #
9576 # There doesn't appear to be a way to prevent this compiler from
9577 # explicitly linking system object files so we need to strip them
9578 # from the output so that they don't get included in the library
9579 # dependencies.
9580 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'
9581 ;;
9582 *)
9583 if test "$GXX" = yes; then
9584 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'
9585 else
9586 # FIXME: insert proper C++ library support
9587 ld_shlibs_CXX=no
9588 fi
9589 ;;
9590 esac
9591 ;;
9592 hpux10*|hpux11*)
9593 if test $with_gnu_ld = no; then
9594 case "$host_cpu" in
9595 hppa*64*)
9596 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9597 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
9598 hardcode_libdir_separator_CXX=:
9599 ;;
9600 ia64*)
9601 hardcode_libdir_flag_spec_CXX='-L$libdir'
9602 ;;
9603 *)
9604 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9605 hardcode_libdir_separator_CXX=:
9606 export_dynamic_flag_spec_CXX='${wl}-E'
9607 ;;
9608 esac
9609 fi
9610 case "$host_cpu" in
9611 hppa*64*)
9612 hardcode_direct_CXX=no
9613 hardcode_shlibpath_var_CXX=no
9614 ;;
9615 ia64*)
9616 hardcode_direct_CXX=no
9617 hardcode_shlibpath_var_CXX=no
9618 hardcode_minus_L_CXX=yes # Not in the search PATH,
9619 # but as the default
9620 # location of the library.
9621 ;;
9622 *)
9623 hardcode_direct_CXX=yes
9624 hardcode_minus_L_CXX=yes # Not in the search PATH,
9625 # but as the default
9626 # location of the library.
9627 ;;
9628 esac
9629
9630 case $cc_basename in
9631 CC)
9632 # FIXME: insert proper C++ library support
9633 ld_shlibs_CXX=no
9634 ;;
9635 aCC)
9636 case "$host_cpu" in
9637 hppa*64*|ia64*)
9638 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9639 ;;
9640 *)
9641 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9642 ;;
9643 esac
9644 # Commands to make compiler produce verbose output that lists
9645 # what "hidden" libraries, object files and flags are used when
9646 # linking a shared library.
9647 #
9648 # There doesn't appear to be a way to prevent this compiler from
9649 # explicitly linking system object files so we need to strip them
9650 # from the output so that they don't get included in the library
9651 # dependencies.
9652 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'
9653 ;;
9654 *)
9655 if test "$GXX" = yes; then
9656 if test $with_gnu_ld = no; then
9657 case "$host_cpu" in
9658 ia64*|hppa*64*)
9659 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9660 ;;
9661 *)
9662 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'
9663 ;;
9664 esac
9665 fi
9666 else
9667 # FIXME: insert proper C++ library support
9668 ld_shlibs_CXX=no
9669 fi
9670 ;;
9671 esac
9672 ;;
9673 irix5* | irix6*)
9674 case $cc_basename in
9675 CC)
9676 # SGI C++
9677 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'
9678
9679 # Archives containing C++ object files must be created using
9680 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
9681 # necessary to make sure instantiated templates are included
9682 # in the archive.
9683 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
9684 ;;
9685 *)
9686 if test "$GXX" = yes; then
9687 if test "$with_gnu_ld" = no; then
9688 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'
9689 else
9690 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'
9691 fi
9692 fi
9693 link_all_deplibs_CXX=yes
9694 ;;
9695 esac
9696 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9697 hardcode_libdir_separator_CXX=:
9698 ;;
9699 linux*)
9700 case $cc_basename in
9701 KCC)
9702 # Kuck and Associates, Inc. (KAI) C++ Compiler
9703
9704 # KCC will only create a shared library if the output file
9705 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9706 # to its proper name (with version) after linking.
9707 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'
9708 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'
9709 # Commands to make compiler produce verbose output that lists
9710 # what "hidden" libraries, object files and flags are used when
9711 # linking a shared library.
9712 #
9713 # There doesn't appear to be a way to prevent this compiler from
9714 # explicitly linking system object files so we need to strip them
9715 # from the output so that they don't get included in the library
9716 # dependencies.
9717 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'
9718
9719 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
9720 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9721
9722 # Archives containing C++ object files must be created using
9723 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9724 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9725 ;;
9726 icpc)
9727 # Intel C++
9728 with_gnu_ld=yes
9729 archive_cmds_need_lc_CXX=no
9730 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9731 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'
9732 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9733 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9734 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9735 ;;
9736 cxx)
9737 # Compaq C++
9738 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9739 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'
9740
9741 runpath_var=LD_RUN_PATH
9742 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9743 hardcode_libdir_separator_CXX=:
9744
9745 # Commands to make compiler produce verbose output that lists
9746 # what "hidden" libraries, object files and flags are used when
9747 # linking a shared library.
9748 #
9749 # There doesn't appear to be a way to prevent this compiler from
9750 # explicitly linking system object files so we need to strip them
9751 # from the output so that they don't get included in the library
9752 # dependencies.
9753 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'
9754 ;;
9755 esac
9756 ;;
9757 lynxos*)
9758 # FIXME: insert proper C++ library support
9759 ld_shlibs_CXX=no
9760 ;;
9761 m88k*)
9762 # FIXME: insert proper C++ library support
9763 ld_shlibs_CXX=no
9764 ;;
9765 mvs*)
9766 case $cc_basename in
9767 cxx)
9768 # FIXME: insert proper C++ library support
9769 ld_shlibs_CXX=no
9770 ;;
9771 *)
9772 # FIXME: insert proper C++ library support
9773 ld_shlibs_CXX=no
9774 ;;
9775 esac
9776 ;;
9777 netbsd*)
9778 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9779 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
9780 wlarc=
9781 hardcode_libdir_flag_spec_CXX='-R$libdir'
9782 hardcode_direct_CXX=yes
9783 hardcode_shlibpath_var_CXX=no
9784 fi
9785 # Workaround some broken pre-1.5 toolchains
9786 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
9787 ;;
9788 osf3*)
9789 case $cc_basename in
9790 KCC)
9791 # Kuck and Associates, Inc. (KAI) C++ Compiler
9792
9793 # KCC will only create a shared library if the output file
9794 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9795 # to its proper name (with version) after linking.
9796 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'
9797
9798 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9799 hardcode_libdir_separator_CXX=:
9800
9801 # Archives containing C++ object files must be created using
9802 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9803 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9804
9805 ;;
9806 RCC)
9807 # Rational C++ 2.4.1
9808 # FIXME: insert proper C++ library support
9809 ld_shlibs_CXX=no
9810 ;;
9811 cxx)
9812 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9813 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'
9814
9815 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9816 hardcode_libdir_separator_CXX=:
9817
9818 # Commands to make compiler produce verbose output that lists
9819 # what "hidden" libraries, object files and flags are used when
9820 # linking a shared library.
9821 #
9822 # There doesn't appear to be a way to prevent this compiler from
9823 # explicitly linking system object files so we need to strip them
9824 # from the output so that they don't get included in the library
9825 # dependencies.
9826 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'
9827 ;;
9828 *)
9829 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9830 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9831 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'
9832
9833 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9834 hardcode_libdir_separator_CXX=:
9835
9836 # Commands to make compiler produce verbose output that lists
9837 # what "hidden" libraries, object files and flags are used when
9838 # linking a shared library.
9839 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9840
9841 else
9842 # FIXME: insert proper C++ library support
9843 ld_shlibs_CXX=no
9844 fi
9845 ;;
9846 esac
9847 ;;
9848 osf4* | osf5*)
9849 case $cc_basename in
9850 KCC)
9851 # Kuck and Associates, Inc. (KAI) C++ Compiler
9852
9853 # KCC will only create a shared library if the output file
9854 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9855 # to its proper name (with version) after linking.
9856 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'
9857
9858 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9859 hardcode_libdir_separator_CXX=:
9860
9861 # Archives containing C++ object files must be created using
9862 # the KAI C++ compiler.
9863 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
9864 ;;
9865 RCC)
9866 # Rational C++ 2.4.1
9867 # FIXME: insert proper C++ library support
9868 ld_shlibs_CXX=no
9869 ;;
9870 cxx)
9871 allow_undefined_flag_CXX=' -expect_unresolved \*'
9872 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'
9873 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
9874 echo "-hidden">> $lib.exp~
9875 $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~
9876 $rm $lib.exp'
9877
9878 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9879 hardcode_libdir_separator_CXX=:
9880
9881 # Commands to make compiler produce verbose output that lists
9882 # what "hidden" libraries, object files and flags are used when
9883 # linking a shared library.
9884 #
9885 # There doesn't appear to be a way to prevent this compiler from
9886 # explicitly linking system object files so we need to strip them
9887 # from the output so that they don't get included in the library
9888 # dependencies.
9889 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'
9890 ;;
9891 *)
9892 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9893 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9894 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'
9895
9896 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9897 hardcode_libdir_separator_CXX=:
9898
9899 # Commands to make compiler produce verbose output that lists
9900 # what "hidden" libraries, object files and flags are used when
9901 # linking a shared library.
9902 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9903
9904 else
9905 # FIXME: insert proper C++ library support
9906 ld_shlibs_CXX=no
9907 fi
9908 ;;
9909 esac
9910 ;;
9911 psos*)
9912 # FIXME: insert proper C++ library support
9913 ld_shlibs_CXX=no
9914 ;;
9915 sco*)
9916 archive_cmds_need_lc_CXX=no
9917 case $cc_basename in
9918 CC)
9919 # FIXME: insert proper C++ library support
9920 ld_shlibs_CXX=no
9921 ;;
9922 *)
9923 # FIXME: insert proper C++ library support
9924 ld_shlibs_CXX=no
9925 ;;
9926 esac
9927 ;;
9928 sunos4*)
9929 case $cc_basename in
9930 CC)
9931 # Sun C++ 4.x
9932 # FIXME: insert proper C++ library support
9933 ld_shlibs_CXX=no
9934 ;;
9935 lcc)
9936 # Lucid
9937 # FIXME: insert proper C++ library support
9938 ld_shlibs_CXX=no
9939 ;;
9940 *)
9941 # FIXME: insert proper C++ library support
9942 ld_shlibs_CXX=no
9943 ;;
9944 esac
9945 ;;
9946 solaris*)
9947 case $cc_basename in
9948 CC)
9949 # Sun C++ 4.2, 5.x and Centerline C++
9950 no_undefined_flag_CXX=' -zdefs'
9951 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9952 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9953 $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'
9954
9955 hardcode_libdir_flag_spec_CXX='-R$libdir'
9956 hardcode_shlibpath_var_CXX=no
9957 case $host_os in
9958 solaris2.0-5 | solaris2.0-5.*) ;;
9959 *)
9960 # The C++ compiler is used as linker so we must use $wl
9961 # flag to pass the commands to the underlying system
9962 # linker.
9963 # Supported since Solaris 2.6 (maybe 2.5.1?)
9964 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9965 ;;
9966 esac
9967 link_all_deplibs_CXX=yes
9968
9969 # Commands to make compiler produce verbose output that lists
9970 # what "hidden" libraries, object files and flags are used when
9971 # linking a shared library.
9972 #
9973 # There doesn't appear to be a way to prevent this compiler from
9974 # explicitly linking system object files so we need to strip them
9975 # from the output so that they don't get included in the library
9976 # dependencies.
9977 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'
9978
9979 # Archives containing C++ object files must be created using
9980 # "CC -xar", where "CC" is the Sun C++ compiler. This is
9981 # necessary to make sure instantiated templates are included
9982 # in the archive.
9983 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
9984 ;;
9985 gcx)
9986 # Green Hills C++ Compiler
9987 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9988
9989 # The C++ compiler must be used to create the archive.
9990 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
9991 ;;
9992 *)
9993 # GNU C++ compiler with Solaris linker
9994 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9995 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
9996 if $CC --version | grep -v '^2\.7' > /dev/null; then
9997 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9998 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9999 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10000
10001 # Commands to make compiler produce verbose output that lists
10002 # what "hidden" libraries, object files and flags are used when
10003 # linking a shared library.
10004 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10005 else
10006 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10007 # platform.
10008 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10009 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10010 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10011
10012 # Commands to make compiler produce verbose output that lists
10013 # what "hidden" libraries, object files and flags are used when
10014 # linking a shared library.
10015 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10016 fi
10017
10018 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10019 fi
10020 ;;
10021 esac
10022 ;;
10023 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10024 archive_cmds_need_lc_CXX=no
10025 ;;
10026 tandem*)
10027 case $cc_basename in
10028 NCC)
10029 # NonStop-UX NCC 3.20
10030 # FIXME: insert proper C++ library support
10031 ld_shlibs_CXX=no
10032 ;;
10033 *)
10034 # FIXME: insert proper C++ library support
10035 ld_shlibs_CXX=no
10036 ;;
10037 esac
10038 ;;
10039 vxworks*)
10040 # FIXME: insert proper C++ library support
10041 ld_shlibs_CXX=no
10042 ;;
10043 *)
10044 # FIXME: insert proper C++ library support
10045 ld_shlibs_CXX=no
10046 ;;
10047esac
10048echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10049echo "${ECHO_T}$ld_shlibs_CXX" >&6
10050test "$ld_shlibs_CXX" = no && can_build_shared=no
10051
10052GCC_CXX="$GXX"
10053LD_CXX="$LD"
10054
John Criswell47fdd832003-07-14 16:52:07 +000010055
10056cat > conftest.$ac_ext <<EOF
10057class Foo
10058{
10059public:
10060 Foo (void) { a = 0; }
10061private:
10062 int a;
10063};
10064EOF
10065
10066if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10067 (eval $ac_compile) 2>&5
10068 ac_status=$?
10069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10070 (exit $ac_status); }; then
10071 # Parse the compiler output and extract the necessary
10072 # objects, libraries and library flags.
10073
10074 # Sentinel used to keep track of whether or not we are before
10075 # the conftest object file.
10076 pre_test_object_deps_done=no
10077
10078 # The `*' in the case matches for architectures that use `case' in
10079 # $output_verbose_cmd can trigger glob expansion during the loop
10080 # eval without this substitution.
10081 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10082
10083 for p in `eval $output_verbose_link_cmd`; do
10084 case $p in
10085
10086 -L* | -R* | -l*)
10087 # Some compilers place space between "-{L,R}" and the path.
10088 # Remove the space.
10089 if test $p = "-L" \
10090 || test $p = "-R"; then
10091 prev=$p
10092 continue
10093 else
10094 prev=
10095 fi
10096
10097 if test "$pre_test_object_deps_done" = no; then
10098 case $p in
10099 -L* | -R*)
10100 # Internal compiler library paths should come after those
10101 # provided the user. The postdeps already come after the
10102 # user supplied libs so there is no need to process them.
10103 if test -z "$compiler_lib_search_path_CXX"; then
10104 compiler_lib_search_path_CXX="${prev}${p}"
10105 else
10106 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10107 fi
10108 ;;
10109 # The "-l" case would never come before the object being
10110 # linked, so don't bother handling this case.
10111 esac
10112 else
10113 if test -z "$postdeps_CXX"; then
10114 postdeps_CXX="${prev}${p}"
10115 else
10116 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10117 fi
10118 fi
10119 ;;
10120
10121 *.$objext)
10122 # This assumes that the test object file only shows up
10123 # once in the compiler output.
10124 if test "$p" = "conftest.$objext"; then
10125 pre_test_object_deps_done=yes
10126 continue
10127 fi
10128
10129 if test "$pre_test_object_deps_done" = no; then
10130 if test -z "$predep_objects_CXX"; then
10131 predep_objects_CXX="$p"
10132 else
10133 predep_objects_CXX="$predep_objects_CXX $p"
10134 fi
10135 else
10136 if test -z "$postdep_objects_CXX"; then
10137 postdep_objects_CXX="$p"
10138 else
10139 postdep_objects_CXX="$postdep_objects_CXX $p"
10140 fi
10141 fi
10142 ;;
10143
10144 *) ;; # Ignore the rest.
10145
10146 esac
10147 done
10148
10149 # Clean up.
10150 rm -f a.out a.exe
10151else
10152 echo "libtool.m4: error: problem compiling CXX test program"
10153fi
10154
10155$rm -f confest.$objext
10156
10157case " $postdeps_CXX " in
10158*" -lc "*) archive_cmds_need_lc_CXX=no ;;
10159esac
10160
10161lt_prog_compiler_wl_CXX=
10162lt_prog_compiler_pic_CXX=
10163lt_prog_compiler_static_CXX=
10164
10165echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10166echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10167
10168 # C++ specific cases for pic, static, wl, etc.
10169 if test "$GXX" = yes; then
10170 lt_prog_compiler_wl_CXX='-Wl,'
10171 lt_prog_compiler_static_CXX='-static'
10172
10173 case $host_os in
10174 aix*)
10175 # All AIX code is PIC.
10176 if test "$host_cpu" = ia64; then
10177 # AIX 5 now supports IA64 processor
10178 lt_prog_compiler_static_CXX='-Bstatic'
10179 fi
10180 ;;
10181 amigaos*)
10182 # FIXME: we need at least 68020 code to build shared libraries, but
10183 # adding the `-m68020' flag to GCC prevents building anything better,
10184 # like `-m68040'.
10185 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10186 ;;
10187 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10188 # PIC is the default for these OSes.
10189 ;;
10190 mingw* | os2* | pw32*)
10191 # This hack is so that the source file can tell whether it is being
10192 # built for inclusion in a dll (and should export symbols for example).
10193 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10194 ;;
10195 darwin* | rhapsody*)
10196 # PIC is the default on this platform
10197 # Common symbols not allowed in MH_DYLIB files
10198 lt_prog_compiler_pic_CXX='-fno-common'
10199 ;;
10200 *djgpp*)
10201 # DJGPP does not support shared libraries at all
10202 lt_prog_compiler_pic_CXX=
10203 ;;
10204 sysv4*MP*)
10205 if test -d /usr/nec; then
10206 lt_prog_compiler_pic_CXX=-Kconform_pic
10207 fi
10208 ;;
10209 hpux*)
10210 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10211 # not for PA HP-UX.
10212 case "$host_cpu" in
10213 hppa*64*|ia64*)
10214 ;;
10215 *)
10216 lt_prog_compiler_pic_CXX='-fPIC'
10217 ;;
10218 esac
10219 ;;
10220 *)
10221 lt_prog_compiler_pic_CXX='-fPIC'
10222 ;;
10223 esac
10224 else
10225 case $host_os in
10226 aix4* | aix5*)
10227 # All AIX code is PIC.
10228 if test "$host_cpu" = ia64; then
10229 # AIX 5 now supports IA64 processor
10230 lt_prog_compiler_static_CXX='-Bstatic'
10231 else
10232 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10233 fi
10234 ;;
10235 chorus*)
10236 case $cc_basename in
10237 cxch68)
10238 # Green Hills C++ Compiler
10239 # _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"
10240 ;;
10241 esac
10242 ;;
10243 dgux*)
10244 case $cc_basename in
10245 ec++)
10246 lt_prog_compiler_pic_CXX='-KPIC'
10247 ;;
10248 ghcx)
10249 # Green Hills C++ Compiler
10250 lt_prog_compiler_pic_CXX='-pic'
10251 ;;
10252 *)
10253 ;;
10254 esac
10255 ;;
10256 freebsd*)
10257 # FreeBSD uses GNU C++
10258 ;;
10259 hpux9* | hpux10* | hpux11*)
10260 case $cc_basename in
10261 CC)
10262 lt_prog_compiler_wl_CXX='-Wl,'
10263 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10264 if test "$host_cpu" != ia64; then
10265 lt_prog_compiler_pic_CXX='+Z'
10266 fi
10267 ;;
10268 aCC)
10269 lt_prog_compiler_wl_CXX='-Wl,'
10270 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10271 case "$host_cpu" in
10272 hppa*64*|ia64*)
10273 # +Z the default
10274 ;;
10275 *)
10276 lt_prog_compiler_pic_CXX='+Z'
10277 ;;
10278 esac
10279 ;;
10280 *)
10281 ;;
10282 esac
10283 ;;
10284 irix5* | irix6* | nonstopux*)
10285 case $cc_basename in
10286 CC)
10287 lt_prog_compiler_wl_CXX='-Wl,'
10288 lt_prog_compiler_static_CXX='-non_shared'
10289 # CC pic flag -KPIC is the default.
10290 ;;
10291 *)
10292 ;;
10293 esac
10294 ;;
10295 linux*)
10296 case $cc_basename in
10297 KCC)
10298 # KAI C++ Compiler
10299 lt_prog_compiler_wl_CXX='--backend -Wl,'
10300 lt_prog_compiler_pic_CXX='-fPIC'
10301 ;;
10302 icpc)
10303 # Intel C++
10304 lt_prog_compiler_wl_CXX='-Wl,'
10305 lt_prog_compiler_pic_CXX='-KPIC'
10306 lt_prog_compiler_static_CXX='-static'
10307 ;;
10308 cxx)
10309 # Compaq C++
10310 # Make sure the PIC flag is empty. It appears that all Alpha
10311 # Linux and Compaq Tru64 Unix objects are PIC.
10312 lt_prog_compiler_pic_CXX=
10313 lt_prog_compiler_static_CXX='-non_shared'
10314 ;;
10315 *)
10316 ;;
10317 esac
10318 ;;
10319 lynxos*)
10320 ;;
10321 m88k*)
10322 ;;
10323 mvs*)
10324 case $cc_basename in
10325 cxx)
10326 lt_prog_compiler_pic_CXX='-W c,exportall'
10327 ;;
10328 *)
10329 ;;
10330 esac
10331 ;;
10332 netbsd*)
10333 ;;
10334 osf3* | osf4* | osf5*)
10335 case $cc_basename in
10336 KCC)
10337 lt_prog_compiler_wl_CXX='--backend -Wl,'
10338 ;;
10339 RCC)
10340 # Rational C++ 2.4.1
10341 lt_prog_compiler_pic_CXX='-pic'
10342 ;;
10343 cxx)
10344 # Digital/Compaq C++
10345 lt_prog_compiler_wl_CXX='-Wl,'
10346 # Make sure the PIC flag is empty. It appears that all Alpha
10347 # Linux and Compaq Tru64 Unix objects are PIC.
10348 lt_prog_compiler_pic_CXX=
10349 lt_prog_compiler_static_CXX='-non_shared'
10350 ;;
10351 *)
10352 ;;
10353 esac
10354 ;;
10355 psos*)
10356 ;;
10357 sco*)
10358 case $cc_basename in
10359 CC)
10360 lt_prog_compiler_pic_CXX='-fPIC'
10361 ;;
10362 *)
10363 ;;
10364 esac
10365 ;;
10366 solaris*)
10367 case $cc_basename in
10368 CC)
10369 # Sun C++ 4.2, 5.x and Centerline C++
10370 lt_prog_compiler_pic_CXX='-KPIC'
10371 lt_prog_compiler_static_CXX='-Bstatic'
10372 lt_prog_compiler_wl_CXX='-Qoption ld '
10373 ;;
10374 gcx)
10375 # Green Hills C++ Compiler
10376 lt_prog_compiler_pic_CXX='-PIC'
10377 ;;
10378 *)
10379 ;;
10380 esac
10381 ;;
10382 sunos4*)
10383 case $cc_basename in
10384 CC)
10385 # Sun C++ 4.x
10386 lt_prog_compiler_pic_CXX='-pic'
10387 lt_prog_compiler_static_CXX='-Bstatic'
10388 ;;
10389 lcc)
10390 # Lucid
10391 lt_prog_compiler_pic_CXX='-pic'
10392 ;;
10393 *)
10394 ;;
10395 esac
10396 ;;
10397 tandem*)
10398 case $cc_basename in
10399 NCC)
10400 # NonStop-UX NCC 3.20
10401 lt_prog_compiler_pic_CXX='-KPIC'
10402 ;;
10403 *)
10404 ;;
10405 esac
10406 ;;
10407 unixware*)
10408 ;;
10409 vxworks*)
10410 ;;
10411 *)
10412 lt_prog_compiler_can_build_shared_CXX=no
10413 ;;
10414 esac
10415 fi
10416
10417echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10418echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10419
10420#
10421# Check to make sure the PIC flag actually works.
10422#
10423if test -n "$lt_prog_compiler_pic_CXX"; then
10424 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10425echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10426if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10427 echo $ECHO_N "(cached) $ECHO_C" >&6
10428else
10429 lt_prog_compiler_pic_works_CXX=no
10430 ac_outfile=conftest.$ac_objext
10431 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10432 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10433 # Insert the option either (1) after the last *FLAGS variable, or
10434 # (2) before a word containing "conftest.", or (3) at the end.
10435 # Note that $ac_compile itself does not contain backslashes and begins
10436 # with a dollar sign (not a hyphen), so the echo should work correctly.
10437 # The option is referenced via a variable to avoid confusing sed.
10438 lt_compile=`echo "$ac_compile" | $SED \
10439 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10440 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10441 -e 's:$: $lt_compiler_flag:'`
John Criswell8a54a1e2004-06-22 21:35:10 +000010442 (eval echo "\"\$as_me:10442: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000010443 (eval "$lt_compile" 2>conftest.err)
10444 ac_status=$?
10445 cat conftest.err >&5
John Criswell8a54a1e2004-06-22 21:35:10 +000010446 echo "$as_me:10446: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000010447 if (exit $ac_status) && test -s "$ac_outfile"; then
10448 # The compiler can only warn and ignore the option if not recognized
10449 # So say no if there are warnings
10450 if test ! -s conftest.err; then
10451 lt_prog_compiler_pic_works_CXX=yes
10452 fi
10453 fi
10454 $rm conftest*
10455
10456fi
10457echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10458echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10459
10460if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10461 case $lt_prog_compiler_pic_CXX in
10462 "" | " "*) ;;
10463 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10464 esac
10465else
10466 lt_prog_compiler_pic_CXX=
10467 lt_prog_compiler_can_build_shared_CXX=no
10468fi
10469
10470fi
10471case "$host_os" in
10472 # For platforms which do not support PIC, -DPIC is meaningless:
10473 *djgpp*)
10474 lt_prog_compiler_pic_CXX=
10475 ;;
10476 *)
10477 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10478 ;;
10479esac
10480
10481echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10482echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10483if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10484 echo $ECHO_N "(cached) $ECHO_C" >&6
10485else
10486 lt_cv_prog_compiler_c_o_CXX=no
10487 $rm -r conftest 2>/dev/null
10488 mkdir conftest
10489 cd conftest
10490 mkdir out
10491 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10492
10493 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
10494 # that will create temporary files in the current directory regardless of
10495 # the output directory. Thus, making CWD read-only will cause this test
10496 # to fail, enabling locking or at least warning the user not to do parallel
10497 # builds.
10498 chmod -w .
10499
10500 lt_compiler_flag="-o out/conftest2.$ac_objext"
10501 # Insert the option either (1) after the last *FLAGS variable, or
10502 # (2) before a word containing "conftest.", or (3) at the end.
10503 # Note that $ac_compile itself does not contain backslashes and begins
10504 # with a dollar sign (not a hyphen), so the echo should work correctly.
10505 lt_compile=`echo "$ac_compile" | $SED \
10506 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10507 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10508 -e 's:$: $lt_compiler_flag:'`
John Criswell8a54a1e2004-06-22 21:35:10 +000010509 (eval echo "\"\$as_me:10509: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000010510 (eval "$lt_compile" 2>out/conftest.err)
10511 ac_status=$?
10512 cat out/conftest.err >&5
John Criswell8a54a1e2004-06-22 21:35:10 +000010513 echo "$as_me:10513: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000010514 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10515 then
10516 # The compiler can only warn and ignore the option if not recognized
10517 # So say no if there are warnings
10518 if test ! -s out/conftest.err; then
10519 lt_cv_prog_compiler_c_o_CXX=yes
10520 fi
10521 fi
10522 chmod u+w .
10523 $rm conftest* out/*
10524 rmdir out
10525 cd ..
10526 rmdir conftest
10527 $rm conftest*
10528
10529fi
10530echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10531echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10532
10533
10534hard_links="nottested"
10535if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10536 # do not overwrite the value of need_locks provided by the user
10537 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10538echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10539 hard_links=yes
10540 $rm conftest*
10541 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10542 touch conftest.a
10543 ln conftest.a conftest.b 2>&5 || hard_links=no
10544 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10545 echo "$as_me:$LINENO: result: $hard_links" >&5
10546echo "${ECHO_T}$hard_links" >&6
10547 if test "$hard_links" = no; then
10548 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10549echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10550 need_locks=warn
10551 fi
10552else
10553 need_locks=no
10554fi
10555
10556echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10557echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10558
10559 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10560 case $host_os in
10561 aix4* | aix5*)
10562 # If we're using GNU nm, then we don't want the "-C" option.
10563 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10564 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10565 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'
10566 else
10567 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'
10568 fi
10569 ;;
10570 pw32*)
10571 export_symbols_cmds_CXX="$ltdll_cmds"
10572 ;;
10573 cygwin* | mingw*)
10574 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10575 ;;
10576 *)
10577 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10578 ;;
10579 esac
10580
10581echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10582echo "${ECHO_T}$ld_shlibs_CXX" >&6
10583test "$ld_shlibs_CXX" = no && can_build_shared=no
10584
10585variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10586if test "$GCC" = yes; then
10587 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10588fi
10589
10590#
10591# Do we need to explicitly link libc?
10592#
10593case "x$archive_cmds_need_lc_CXX" in
10594x|xyes)
10595 # Assume -lc should be added
10596 archive_cmds_need_lc_CXX=yes
10597
10598 if test "$enable_shared" = yes && test "$GCC" = yes; then
10599 case $archive_cmds_CXX in
10600 *'~'*)
10601 # FIXME: we may have to deal with multi-command sequences.
10602 ;;
10603 '$CC '*)
10604 # Test whether the compiler implicitly links with -lc since on some
10605 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10606 # to ld, don't add -lc before -lgcc.
10607 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10608echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10609 $rm conftest*
10610 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10611
10612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10613 (eval $ac_compile) 2>&5
10614 ac_status=$?
10615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10616 (exit $ac_status); } 2>conftest.err; then
10617 soname=conftest
10618 lib=conftest
10619 libobjs=conftest.$ac_objext
10620 deplibs=
10621 wl=$lt_prog_compiler_wl_CXX
10622 compiler_flags=-v
10623 linker_flags=-v
10624 verstring=
10625 output_objdir=.
10626 libname=conftest
10627 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
10628 allow_undefined_flag_CXX=
10629 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10630 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10631 ac_status=$?
10632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10633 (exit $ac_status); }
10634 then
10635 archive_cmds_need_lc_CXX=no
10636 else
10637 archive_cmds_need_lc_CXX=yes
10638 fi
10639 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
10640 else
10641 cat conftest.err 1>&5
10642 fi
10643 $rm conftest*
10644 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
10645echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
10646 ;;
10647 esac
10648 fi
10649 ;;
10650esac
10651
10652echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10653echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10654hardcode_action_CXX=
10655if test -n "$hardcode_libdir_flag_spec_CXX" || \
10656 test -n "$runpath_var CXX" || \
10657 test "X$hardcode_automatic_CXX"="Xyes" ; then
10658
10659 # We can hardcode non-existant directories.
10660 if test "$hardcode_direct_CXX" != no &&
10661 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10662 # have to relink, otherwise we might link with an installed library
10663 # when we should be linking with a yet-to-be-installed one
10664 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
10665 test "$hardcode_minus_L_CXX" != no; then
10666 # Linking always hardcodes the temporary library directory.
10667 hardcode_action_CXX=relink
10668 else
10669 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10670 hardcode_action_CXX=immediate
10671 fi
10672else
10673 # We cannot hardcode anything, or else we can only hardcode existing
10674 # directories.
10675 hardcode_action_CXX=unsupported
10676fi
10677echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
10678echo "${ECHO_T}$hardcode_action_CXX" >&6
10679
10680if test "$hardcode_action_CXX" = relink; then
10681 # Fast installation is not supported
10682 enable_fast_install=no
10683elif test "$shlibpath_overrides_runpath" = yes ||
10684 test "$enable_shared" = no; then
10685 # Fast installation is not necessary
10686 enable_fast_install=needless
10687fi
10688
10689striplib=
10690old_striplib=
10691echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10692echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10693if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10694 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10695 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10696 echo "$as_me:$LINENO: result: yes" >&5
10697echo "${ECHO_T}yes" >&6
10698else
10699# FIXME - insert some real tests, host_os isn't really good enough
10700 case $host_os in
10701 darwin*)
10702 if test -n "$STRIP" ; then
10703 striplib="$STRIP -x"
10704 echo "$as_me:$LINENO: result: yes" >&5
10705echo "${ECHO_T}yes" >&6
10706 else
10707 echo "$as_me:$LINENO: result: no" >&5
10708echo "${ECHO_T}no" >&6
10709fi
10710 ;;
10711 *)
10712 echo "$as_me:$LINENO: result: no" >&5
10713echo "${ECHO_T}no" >&6
10714 ;;
10715 esac
10716fi
10717
10718echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10719echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10720library_names_spec=
10721libname_spec='lib$name'
10722soname_spec=
10723shrext=".so"
10724postinstall_cmds=
10725postuninstall_cmds=
10726finish_cmds=
10727finish_eval=
10728shlibpath_var=
10729shlibpath_overrides_runpath=unknown
10730version_type=none
10731dynamic_linker="$host_os ld.so"
10732sys_lib_dlsearch_path_spec="/lib /usr/lib"
10733if test "$GCC" = yes; then
10734 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10735 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10736 # if the path contains ";" then we assume it to be the separator
10737 # otherwise default to the standard path separator (i.e. ":") - it is
10738 # assumed that no part of a normal pathname contains ";" but that should
10739 # okay in the real world where ";" in dirpaths is itself problematic.
10740 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10741 else
10742 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10743 fi
10744else
10745 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10746fi
10747need_lib_prefix=unknown
10748hardcode_into_libs=no
10749
10750# when you set need_version to no, make sure it does not cause -set_version
10751# flags to be left without arguments
10752need_version=unknown
10753
10754case $host_os in
10755aix3*)
10756 version_type=linux
10757 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10758 shlibpath_var=LIBPATH
10759
10760 # AIX 3 has no versioning support, so we append a major version to the name.
10761 soname_spec='${libname}${release}${shared_ext}$major'
10762 ;;
10763
10764aix4* | aix5*)
10765 version_type=linux
10766 need_lib_prefix=no
10767 need_version=no
10768 hardcode_into_libs=yes
10769 if test "$host_cpu" = ia64; then
10770 # AIX 5 supports IA64
10771 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10772 shlibpath_var=LD_LIBRARY_PATH
10773 else
10774 # With GCC up to 2.95.x, collect2 would create an import file
10775 # for dependence libraries. The import file would start with
10776 # the line `#! .'. This would cause the generated library to
10777 # depend on `.', always an invalid library. This was fixed in
10778 # development snapshots of GCC prior to 3.0.
10779 case $host_os in
10780 aix4 | aix4.[01] | aix4.[01].*)
10781 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10782 echo ' yes '
10783 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10784 :
10785 else
10786 can_build_shared=no
10787 fi
10788 ;;
10789 esac
10790 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10791 # soname into executable. Probably we can add versioning support to
10792 # collect2, so additional links can be useful in future.
10793 if test "$aix_use_runtimelinking" = yes; then
10794 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10795 # instead of lib<name>.a to let people know that these are not
10796 # typical AIX shared libraries.
10797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10798 else
10799 # We preserve .a as extension for shared libraries through AIX4.2
10800 # and later when we are not doing run time linking.
10801 library_names_spec='${libname}${release}.a $libname.a'
10802 soname_spec='${libname}${release}${shared_ext}$major'
10803 fi
10804 shlibpath_var=LIBPATH
10805 fi
10806 ;;
10807
10808amigaos*)
10809 library_names_spec='$libname.ixlibrary $libname.a'
10810 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10811 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'
10812 ;;
10813
10814beos*)
10815 library_names_spec='${libname}${shared_ext}'
10816 dynamic_linker="$host_os ld.so"
10817 shlibpath_var=LIBRARY_PATH
10818 ;;
10819
10820bsdi4*)
10821 version_type=linux
10822 need_version=no
10823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10824 soname_spec='${libname}${release}${shared_ext}$major'
10825 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10826 shlibpath_var=LD_LIBRARY_PATH
10827 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10828 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10829 # the default ld.so.conf also contains /usr/contrib/lib and
10830 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10831 # libtool to hard-code these into programs
10832 ;;
10833
10834cygwin* | mingw* | pw32*)
10835 version_type=windows
10836 shrext=".dll"
10837 need_version=no
10838 need_lib_prefix=no
10839
10840 case $GCC,$host_os in
10841 yes,cygwin* | yes,mingw* | yes,pw32*)
10842 library_names_spec='$libname.dll.a'
10843 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10844 postinstall_cmds='base_file=`basename \${file}`~
10845 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10846 dldir=$destdir/`dirname \$dlpath`~
10847 test -d \$dldir || mkdir -p \$dldir~
10848 $install_prog $dir/$dlname \$dldir/$dlname'
10849 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10850 dlpath=$dir/\$dldll~
10851 $rm \$dlpath'
10852 shlibpath_overrides_runpath=yes
10853
10854 case $host_os in
10855 cygwin*)
10856 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10857 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10858 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
10859 ;;
10860 mingw*)
10861 # MinGW DLLs use traditional 'lib' prefix
10862 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10863 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10864 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10865 # It is most probably a Windows format PATH printed by
10866 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10867 # path with ; separators, and with drive letters. We can handle the
10868 # drive letters (cygwin fileutils understands them), so leave them,
10869 # especially as we might pass files found there to a mingw objdump,
10870 # which wouldn't understand a cygwinified path. Ahh.
10871 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10872 else
10873 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10874 fi
10875 ;;
10876 pw32*)
10877 # pw32 DLLs use 'pw' prefix rather than 'lib'
10878 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
10879 ;;
10880 esac
10881 ;;
10882
10883 *)
10884 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10885 ;;
10886 esac
10887 dynamic_linker='Win32 ld.exe'
10888 # FIXME: first we should search . and the directory the executable is in
10889 shlibpath_var=PATH
10890 ;;
10891
10892darwin* | rhapsody*)
10893 dynamic_linker="$host_os dyld"
10894 version_type=darwin
10895 need_lib_prefix=no
10896 need_version=no
10897 # FIXME: Relying on posixy $() will cause problems for
10898 # cross-compilation, but unfortunately the echo tests do not
10899 # yet detect zsh echo's removal of \ escapes.
10900 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10901 soname_spec='${libname}${release}${major}$shared_ext'
10902 shlibpath_overrides_runpath=yes
10903 shlibpath_var=DYLD_LIBRARY_PATH
10904 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
10905 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10906 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
10907 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"`
10908 fi
10909 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10910 ;;
10911
10912dgux*)
10913 version_type=linux
10914 need_lib_prefix=no
10915 need_version=no
10916 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10917 soname_spec='${libname}${release}${shared_ext}$major'
10918 shlibpath_var=LD_LIBRARY_PATH
10919 ;;
10920
10921freebsd1*)
10922 dynamic_linker=no
10923 ;;
10924
10925freebsd*)
10926 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
10927 version_type=freebsd-$objformat
10928 case $version_type in
10929 freebsd-elf*)
10930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10931 need_version=no
10932 need_lib_prefix=no
10933 ;;
10934 freebsd-*)
10935 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10936 need_version=yes
10937 ;;
10938 esac
10939 shlibpath_var=LD_LIBRARY_PATH
10940 case $host_os in
10941 freebsd2*)
10942 shlibpath_overrides_runpath=yes
10943 ;;
10944 freebsd3.01* | freebsdelf3.01*)
10945 shlibpath_overrides_runpath=yes
10946 hardcode_into_libs=yes
10947 ;;
10948 *) # from 3.2 on
10949 shlibpath_overrides_runpath=no
10950 hardcode_into_libs=yes
10951 ;;
10952 esac
10953 ;;
10954
10955gnu*)
10956 version_type=linux
10957 need_lib_prefix=no
10958 need_version=no
10959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10960 soname_spec='${libname}${release}${shared_ext}$major'
10961 shlibpath_var=LD_LIBRARY_PATH
10962 hardcode_into_libs=yes
10963 ;;
10964
10965hpux9* | hpux10* | hpux11*)
10966 # Give a soname corresponding to the major version so that dld.sl refuses to
10967 # link against other versions.
10968 version_type=sunos
10969 need_lib_prefix=no
10970 need_version=no
10971 case "$host_cpu" in
10972 ia64*)
10973 shrext='.so'
10974 hardcode_into_libs=yes
10975 dynamic_linker="$host_os dld.so"
10976 shlibpath_var=LD_LIBRARY_PATH
10977 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10979 soname_spec='${libname}${release}${shared_ext}$major'
10980 if test "X$HPUX_IA64_MODE" = X32; then
10981 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10982 else
10983 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10984 fi
10985 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10986 ;;
10987 hppa*64*)
10988 shrext='.sl'
10989 hardcode_into_libs=yes
10990 dynamic_linker="$host_os dld.sl"
10991 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10992 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10993 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10994 soname_spec='${libname}${release}${shared_ext}$major'
10995 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10996 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10997 ;;
10998 *)
10999 shrext='.sl'
11000 dynamic_linker="$host_os dld.sl"
11001 shlibpath_var=SHLIB_PATH
11002 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11004 soname_spec='${libname}${release}${shared_ext}$major'
11005 ;;
11006 esac
11007 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11008 postinstall_cmds='chmod 555 $lib'
11009 ;;
11010
11011irix5* | irix6* | nonstopux*)
11012 case $host_os in
11013 nonstopux*) version_type=nonstopux ;;
11014 *)
11015 if test "$lt_cv_prog_gnu_ld" = yes; then
11016 version_type=linux
11017 else
11018 version_type=irix
11019 fi ;;
11020 esac
11021 need_lib_prefix=no
11022 need_version=no
11023 soname_spec='${libname}${release}${shared_ext}$major'
11024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11025 case $host_os in
11026 irix5* | nonstopux*)
11027 libsuff= shlibsuff=
11028 ;;
11029 *)
11030 case $LD in # libtool.m4 will add one of these switches to LD
11031 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11032 libsuff= shlibsuff= libmagic=32-bit;;
11033 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11034 libsuff=32 shlibsuff=N32 libmagic=N32;;
11035 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11036 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11037 *) libsuff= shlibsuff= libmagic=never-match;;
11038 esac
11039 ;;
11040 esac
11041 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11042 shlibpath_overrides_runpath=no
11043 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11044 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11045 hardcode_into_libs=yes
11046 ;;
11047
11048# No shared lib support for Linux oldld, aout, or coff.
11049linux*oldld* | linux*aout* | linux*coff*)
11050 dynamic_linker=no
11051 ;;
11052
11053# This must be Linux ELF.
11054linux*)
11055 version_type=linux
11056 need_lib_prefix=no
11057 need_version=no
11058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11059 soname_spec='${libname}${release}${shared_ext}$major'
11060 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11061 shlibpath_var=LD_LIBRARY_PATH
11062 shlibpath_overrides_runpath=no
11063 # This implies no fast_install, which is unacceptable.
11064 # Some rework will be needed to allow for fast_install
11065 # before this can be enabled.
11066 hardcode_into_libs=yes
11067
11068 # We used to test for /lib/ld.so.1 and disable shared libraries on
11069 # powerpc, because MkLinux only supported shared libraries with the
11070 # GNU dynamic linker. Since this was broken with cross compilers,
11071 # most powerpc-linux boxes support dynamic linking these days and
11072 # people can always --disable-shared, the test was removed, and we
11073 # assume the GNU/Linux dynamic linker is in use.
11074 dynamic_linker='GNU/Linux ld.so'
11075 ;;
11076
11077netbsd*)
11078 version_type=sunos
11079 need_lib_prefix=no
11080 need_version=no
11081 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11082 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11083 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11084 dynamic_linker='NetBSD (a.out) ld.so'
11085 else
11086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
11087 soname_spec='${libname}${release}${shared_ext}$major'
11088 dynamic_linker='NetBSD ld.elf_so'
11089 fi
11090 shlibpath_var=LD_LIBRARY_PATH
11091 shlibpath_overrides_runpath=yes
11092 hardcode_into_libs=yes
11093 ;;
11094
11095newsos6)
11096 version_type=linux
11097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11098 shlibpath_var=LD_LIBRARY_PATH
11099 shlibpath_overrides_runpath=yes
11100 ;;
11101
11102nto-qnx)
11103 version_type=linux
11104 need_lib_prefix=no
11105 need_version=no
11106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11107 soname_spec='${libname}${release}${shared_ext}$major'
11108 shlibpath_var=LD_LIBRARY_PATH
11109 shlibpath_overrides_runpath=yes
11110 ;;
11111
11112openbsd*)
11113 version_type=sunos
11114 need_lib_prefix=no
11115 need_version=no
11116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11117 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11118 shlibpath_var=LD_LIBRARY_PATH
11119 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11120 case $host_os in
11121 openbsd2.[89] | openbsd2.[89].*)
11122 shlibpath_overrides_runpath=no
11123 ;;
11124 *)
11125 shlibpath_overrides_runpath=yes
11126 ;;
11127 esac
11128 else
11129 shlibpath_overrides_runpath=yes
11130 fi
11131 ;;
11132
11133os2*)
11134 libname_spec='$name'
11135 shrext=".dll"
11136 need_lib_prefix=no
11137 library_names_spec='$libname${shared_ext} $libname.a'
11138 dynamic_linker='OS/2 ld.exe'
11139 shlibpath_var=LIBPATH
11140 ;;
11141
11142osf3* | osf4* | osf5*)
11143 version_type=osf
11144 need_lib_prefix=no
11145 need_version=no
11146 soname_spec='${libname}${release}${shared_ext}$major'
11147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11148 shlibpath_var=LD_LIBRARY_PATH
11149 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11150 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11151 ;;
11152
11153sco3.2v5*)
11154 version_type=osf
11155 soname_spec='${libname}${release}${shared_ext}$major'
11156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11157 shlibpath_var=LD_LIBRARY_PATH
11158 ;;
11159
11160solaris*)
11161 version_type=linux
11162 need_lib_prefix=no
11163 need_version=no
11164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11165 soname_spec='${libname}${release}${shared_ext}$major'
11166 shlibpath_var=LD_LIBRARY_PATH
11167 shlibpath_overrides_runpath=yes
11168 hardcode_into_libs=yes
11169 # ldd complains unless libraries are executable
11170 postinstall_cmds='chmod +x $lib'
11171 ;;
11172
11173sunos4*)
11174 version_type=sunos
11175 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11176 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11177 shlibpath_var=LD_LIBRARY_PATH
11178 shlibpath_overrides_runpath=yes
11179 if test "$with_gnu_ld" = yes; then
11180 need_lib_prefix=no
11181 fi
11182 need_version=yes
11183 ;;
11184
11185sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11186 version_type=linux
11187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11188 soname_spec='${libname}${release}${shared_ext}$major'
11189 shlibpath_var=LD_LIBRARY_PATH
11190 case $host_vendor in
11191 sni)
11192 shlibpath_overrides_runpath=no
11193 need_lib_prefix=no
11194 export_dynamic_flag_spec='${wl}-Blargedynsym'
11195 runpath_var=LD_RUN_PATH
11196 ;;
11197 siemens)
11198 need_lib_prefix=no
11199 ;;
11200 motorola)
11201 need_lib_prefix=no
11202 need_version=no
11203 shlibpath_overrides_runpath=no
11204 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11205 ;;
11206 esac
11207 ;;
11208
11209sysv4*MP*)
11210 if test -d /usr/nec ;then
11211 version_type=linux
11212 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11213 soname_spec='$libname${shared_ext}.$major'
11214 shlibpath_var=LD_LIBRARY_PATH
11215 fi
11216 ;;
11217
11218uts4*)
11219 version_type=linux
11220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11221 soname_spec='${libname}${release}${shared_ext}$major'
11222 shlibpath_var=LD_LIBRARY_PATH
11223 ;;
11224
11225*)
11226 dynamic_linker=no
11227 ;;
11228esac
11229echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11230echo "${ECHO_T}$dynamic_linker" >&6
11231test "$dynamic_linker" = no && can_build_shared=no
11232
11233if test "x$enable_dlopen" != xyes; then
11234 enable_dlopen=unknown
11235 enable_dlopen_self=unknown
11236 enable_dlopen_self_static=unknown
11237else
11238 lt_cv_dlopen=no
11239 lt_cv_dlopen_libs=
11240
11241 case $host_os in
11242 beos*)
11243 lt_cv_dlopen="load_add_on"
11244 lt_cv_dlopen_libs=
11245 lt_cv_dlopen_self=yes
11246 ;;
11247
11248 mingw* | pw32*)
11249 lt_cv_dlopen="LoadLibrary"
11250 lt_cv_dlopen_libs=
11251 ;;
11252
11253 cygwin*)
11254 lt_cv_dlopen="dlopen"
11255 lt_cv_dlopen_libs=
11256 ;;
11257
11258 darwin*)
11259 # if libdl is installed we need to link against it
11260 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11261echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11262if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11263 echo $ECHO_N "(cached) $ECHO_C" >&6
11264else
11265 ac_check_lib_save_LIBS=$LIBS
11266LIBS="-ldl $LIBS"
11267cat >conftest.$ac_ext <<_ACEOF
11268#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011269/* confdefs.h. */
11270_ACEOF
11271cat confdefs.h >>conftest.$ac_ext
11272cat >>conftest.$ac_ext <<_ACEOF
11273/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011274
11275/* Override any gcc2 internal prototype to avoid an error. */
11276#ifdef __cplusplus
11277extern "C"
11278#endif
11279/* We use char because int might match the return type of a gcc2
11280 builtin and then its argument prototype would still apply. */
11281char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011282int
11283main ()
11284{
11285dlopen ();
11286 ;
11287 return 0;
11288}
11289_ACEOF
11290rm -f conftest.$ac_objext conftest$ac_exeext
11291if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11292 (eval $ac_link) 2>&5
11293 ac_status=$?
11294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11295 (exit $ac_status); } &&
11296 { ac_try='test -s conftest$ac_exeext'
11297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11298 (eval $ac_try) 2>&5
11299 ac_status=$?
11300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11301 (exit $ac_status); }; }; then
11302 ac_cv_lib_dl_dlopen=yes
11303else
11304 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011305sed 's/^/| /' conftest.$ac_ext >&5
11306
John Criswell47fdd832003-07-14 16:52:07 +000011307ac_cv_lib_dl_dlopen=no
11308fi
11309rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11310LIBS=$ac_check_lib_save_LIBS
11311fi
11312echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11313echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11314if test $ac_cv_lib_dl_dlopen = yes; then
11315 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11316else
11317
11318 lt_cv_dlopen="dyld"
11319 lt_cv_dlopen_libs=
11320 lt_cv_dlopen_self=yes
11321
11322fi
11323
11324 ;;
11325
11326 *)
11327 echo "$as_me:$LINENO: checking for shl_load" >&5
11328echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11329if test "${ac_cv_func_shl_load+set}" = set; then
11330 echo $ECHO_N "(cached) $ECHO_C" >&6
11331else
11332 cat >conftest.$ac_ext <<_ACEOF
11333#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011334/* confdefs.h. */
11335_ACEOF
11336cat confdefs.h >>conftest.$ac_ext
11337cat >>conftest.$ac_ext <<_ACEOF
11338/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011339/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000011340 which can conflict with char shl_load (); below.
11341 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11342 <limits.h> exists even on freestanding compilers. */
11343#ifdef __STDC__
11344# include <limits.h>
11345#else
11346# include <assert.h>
11347#endif
John Criswell47fdd832003-07-14 16:52:07 +000011348/* Override any gcc2 internal prototype to avoid an error. */
11349#ifdef __cplusplus
11350extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000011351{
John Criswell47fdd832003-07-14 16:52:07 +000011352#endif
11353/* We use char because int might match the return type of a gcc2
11354 builtin and then its argument prototype would still apply. */
11355char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000011356/* The GNU C library defines this for functions which it implements
11357 to always fail with ENOSYS. Some functions are actually named
11358 something starting with __ and the normal name is an alias. */
11359#if defined (__stub_shl_load) || defined (__stub___shl_load)
11360choke me
11361#else
John Criswell0c38eaf2003-09-10 15:17:25 +000011362char (*f) () = shl_load;
11363#endif
11364#ifdef __cplusplus
11365}
John Criswell47fdd832003-07-14 16:52:07 +000011366#endif
11367
John Criswell0c38eaf2003-09-10 15:17:25 +000011368int
11369main ()
11370{
11371return f != shl_load;
John Criswell47fdd832003-07-14 16:52:07 +000011372 ;
11373 return 0;
11374}
11375_ACEOF
11376rm -f conftest.$ac_objext conftest$ac_exeext
11377if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11378 (eval $ac_link) 2>&5
11379 ac_status=$?
11380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11381 (exit $ac_status); } &&
11382 { ac_try='test -s conftest$ac_exeext'
11383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11384 (eval $ac_try) 2>&5
11385 ac_status=$?
11386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11387 (exit $ac_status); }; }; then
11388 ac_cv_func_shl_load=yes
11389else
11390 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011391sed 's/^/| /' conftest.$ac_ext >&5
11392
John Criswell47fdd832003-07-14 16:52:07 +000011393ac_cv_func_shl_load=no
11394fi
11395rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11396fi
11397echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11398echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11399if test $ac_cv_func_shl_load = yes; then
11400 lt_cv_dlopen="shl_load"
11401else
11402 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11403echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11404if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11405 echo $ECHO_N "(cached) $ECHO_C" >&6
11406else
11407 ac_check_lib_save_LIBS=$LIBS
11408LIBS="-ldld $LIBS"
11409cat >conftest.$ac_ext <<_ACEOF
11410#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011411/* confdefs.h. */
11412_ACEOF
11413cat confdefs.h >>conftest.$ac_ext
11414cat >>conftest.$ac_ext <<_ACEOF
11415/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011416
11417/* Override any gcc2 internal prototype to avoid an error. */
11418#ifdef __cplusplus
11419extern "C"
11420#endif
11421/* We use char because int might match the return type of a gcc2
11422 builtin and then its argument prototype would still apply. */
11423char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000011424int
11425main ()
11426{
11427shl_load ();
11428 ;
11429 return 0;
11430}
11431_ACEOF
11432rm -f conftest.$ac_objext conftest$ac_exeext
11433if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11434 (eval $ac_link) 2>&5
11435 ac_status=$?
11436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11437 (exit $ac_status); } &&
11438 { ac_try='test -s conftest$ac_exeext'
11439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11440 (eval $ac_try) 2>&5
11441 ac_status=$?
11442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11443 (exit $ac_status); }; }; then
11444 ac_cv_lib_dld_shl_load=yes
11445else
11446 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011447sed 's/^/| /' conftest.$ac_ext >&5
11448
John Criswell47fdd832003-07-14 16:52:07 +000011449ac_cv_lib_dld_shl_load=no
11450fi
11451rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11452LIBS=$ac_check_lib_save_LIBS
11453fi
11454echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11455echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11456if test $ac_cv_lib_dld_shl_load = yes; then
11457 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11458else
11459 echo "$as_me:$LINENO: checking for dlopen" >&5
11460echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11461if test "${ac_cv_func_dlopen+set}" = set; then
11462 echo $ECHO_N "(cached) $ECHO_C" >&6
11463else
11464 cat >conftest.$ac_ext <<_ACEOF
11465#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011466/* confdefs.h. */
11467_ACEOF
11468cat confdefs.h >>conftest.$ac_ext
11469cat >>conftest.$ac_ext <<_ACEOF
11470/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011471/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000011472 which can conflict with char dlopen (); below.
11473 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11474 <limits.h> exists even on freestanding compilers. */
11475#ifdef __STDC__
11476# include <limits.h>
11477#else
11478# include <assert.h>
11479#endif
John Criswell47fdd832003-07-14 16:52:07 +000011480/* Override any gcc2 internal prototype to avoid an error. */
11481#ifdef __cplusplus
11482extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000011483{
John Criswell47fdd832003-07-14 16:52:07 +000011484#endif
11485/* We use char because int might match the return type of a gcc2
11486 builtin and then its argument prototype would still apply. */
11487char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011488/* The GNU C library defines this for functions which it implements
11489 to always fail with ENOSYS. Some functions are actually named
11490 something starting with __ and the normal name is an alias. */
11491#if defined (__stub_dlopen) || defined (__stub___dlopen)
11492choke me
11493#else
John Criswell0c38eaf2003-09-10 15:17:25 +000011494char (*f) () = dlopen;
11495#endif
11496#ifdef __cplusplus
11497}
John Criswell47fdd832003-07-14 16:52:07 +000011498#endif
11499
John Criswell0c38eaf2003-09-10 15:17:25 +000011500int
11501main ()
11502{
11503return f != dlopen;
John Criswell47fdd832003-07-14 16:52:07 +000011504 ;
11505 return 0;
11506}
11507_ACEOF
11508rm -f conftest.$ac_objext conftest$ac_exeext
11509if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11510 (eval $ac_link) 2>&5
11511 ac_status=$?
11512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11513 (exit $ac_status); } &&
11514 { ac_try='test -s conftest$ac_exeext'
11515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11516 (eval $ac_try) 2>&5
11517 ac_status=$?
11518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11519 (exit $ac_status); }; }; then
11520 ac_cv_func_dlopen=yes
11521else
11522 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011523sed 's/^/| /' conftest.$ac_ext >&5
11524
John Criswell47fdd832003-07-14 16:52:07 +000011525ac_cv_func_dlopen=no
11526fi
11527rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11528fi
11529echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11530echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11531if test $ac_cv_func_dlopen = yes; then
11532 lt_cv_dlopen="dlopen"
11533else
11534 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11535echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11536if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11537 echo $ECHO_N "(cached) $ECHO_C" >&6
11538else
11539 ac_check_lib_save_LIBS=$LIBS
11540LIBS="-ldl $LIBS"
11541cat >conftest.$ac_ext <<_ACEOF
11542#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011543/* confdefs.h. */
11544_ACEOF
11545cat confdefs.h >>conftest.$ac_ext
11546cat >>conftest.$ac_ext <<_ACEOF
11547/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011548
11549/* Override any gcc2 internal prototype to avoid an error. */
11550#ifdef __cplusplus
11551extern "C"
11552#endif
11553/* We use char because int might match the return type of a gcc2
11554 builtin and then its argument prototype would still apply. */
11555char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011556int
11557main ()
11558{
11559dlopen ();
11560 ;
11561 return 0;
11562}
11563_ACEOF
11564rm -f conftest.$ac_objext conftest$ac_exeext
11565if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11566 (eval $ac_link) 2>&5
11567 ac_status=$?
11568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11569 (exit $ac_status); } &&
11570 { ac_try='test -s conftest$ac_exeext'
11571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11572 (eval $ac_try) 2>&5
11573 ac_status=$?
11574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11575 (exit $ac_status); }; }; then
11576 ac_cv_lib_dl_dlopen=yes
11577else
11578 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011579sed 's/^/| /' conftest.$ac_ext >&5
11580
John Criswell47fdd832003-07-14 16:52:07 +000011581ac_cv_lib_dl_dlopen=no
11582fi
11583rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11584LIBS=$ac_check_lib_save_LIBS
11585fi
11586echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11587echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11588if test $ac_cv_lib_dl_dlopen = yes; then
11589 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11590else
11591 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11592echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11593if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11594 echo $ECHO_N "(cached) $ECHO_C" >&6
11595else
11596 ac_check_lib_save_LIBS=$LIBS
11597LIBS="-lsvld $LIBS"
11598cat >conftest.$ac_ext <<_ACEOF
11599#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011600/* confdefs.h. */
11601_ACEOF
11602cat confdefs.h >>conftest.$ac_ext
11603cat >>conftest.$ac_ext <<_ACEOF
11604/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011605
11606/* Override any gcc2 internal prototype to avoid an error. */
11607#ifdef __cplusplus
11608extern "C"
11609#endif
11610/* We use char because int might match the return type of a gcc2
11611 builtin and then its argument prototype would still apply. */
11612char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011613int
11614main ()
11615{
11616dlopen ();
11617 ;
11618 return 0;
11619}
11620_ACEOF
11621rm -f conftest.$ac_objext conftest$ac_exeext
11622if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11623 (eval $ac_link) 2>&5
11624 ac_status=$?
11625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11626 (exit $ac_status); } &&
11627 { ac_try='test -s conftest$ac_exeext'
11628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11629 (eval $ac_try) 2>&5
11630 ac_status=$?
11631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11632 (exit $ac_status); }; }; then
11633 ac_cv_lib_svld_dlopen=yes
11634else
11635 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011636sed 's/^/| /' conftest.$ac_ext >&5
11637
John Criswell47fdd832003-07-14 16:52:07 +000011638ac_cv_lib_svld_dlopen=no
11639fi
11640rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11641LIBS=$ac_check_lib_save_LIBS
11642fi
11643echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11644echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11645if test $ac_cv_lib_svld_dlopen = yes; then
11646 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11647else
11648 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11649echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
11650if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11651 echo $ECHO_N "(cached) $ECHO_C" >&6
11652else
11653 ac_check_lib_save_LIBS=$LIBS
11654LIBS="-ldld $LIBS"
11655cat >conftest.$ac_ext <<_ACEOF
11656#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011657/* confdefs.h. */
11658_ACEOF
11659cat confdefs.h >>conftest.$ac_ext
11660cat >>conftest.$ac_ext <<_ACEOF
11661/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011662
11663/* Override any gcc2 internal prototype to avoid an error. */
11664#ifdef __cplusplus
11665extern "C"
11666#endif
11667/* We use char because int might match the return type of a gcc2
11668 builtin and then its argument prototype would still apply. */
11669char dld_link ();
John Criswell47fdd832003-07-14 16:52:07 +000011670int
11671main ()
11672{
11673dld_link ();
11674 ;
11675 return 0;
11676}
11677_ACEOF
11678rm -f conftest.$ac_objext conftest$ac_exeext
11679if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11680 (eval $ac_link) 2>&5
11681 ac_status=$?
11682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11683 (exit $ac_status); } &&
11684 { ac_try='test -s conftest$ac_exeext'
11685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11686 (eval $ac_try) 2>&5
11687 ac_status=$?
11688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11689 (exit $ac_status); }; }; then
11690 ac_cv_lib_dld_dld_link=yes
11691else
11692 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011693sed 's/^/| /' conftest.$ac_ext >&5
11694
John Criswell47fdd832003-07-14 16:52:07 +000011695ac_cv_lib_dld_dld_link=no
11696fi
11697rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11698LIBS=$ac_check_lib_save_LIBS
11699fi
11700echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11701echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
11702if test $ac_cv_lib_dld_dld_link = yes; then
11703 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11704fi
11705
11706
11707fi
11708
11709
11710fi
11711
11712
11713fi
11714
11715
11716fi
11717
11718
11719fi
11720
11721 ;;
11722 esac
11723
11724 if test "x$lt_cv_dlopen" != xno; then
11725 enable_dlopen=yes
11726 else
11727 enable_dlopen=no
11728 fi
11729
11730 case $lt_cv_dlopen in
11731 dlopen)
11732 save_CPPFLAGS="$CPPFLAGS"
11733 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11734
11735 save_LDFLAGS="$LDFLAGS"
11736 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11737
11738 save_LIBS="$LIBS"
11739 LIBS="$lt_cv_dlopen_libs $LIBS"
11740
11741 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11742echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11743if test "${lt_cv_dlopen_self+set}" = set; then
11744 echo $ECHO_N "(cached) $ECHO_C" >&6
11745else
11746 if test "$cross_compiling" = yes; then :
11747 lt_cv_dlopen_self=cross
11748else
11749 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11750 lt_status=$lt_dlunknown
11751 cat > conftest.$ac_ext <<EOF
John Criswell8a54a1e2004-06-22 21:35:10 +000011752#line 11752 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000011753#include "confdefs.h"
11754
11755#if HAVE_DLFCN_H
11756#include <dlfcn.h>
11757#endif
11758
11759#include <stdio.h>
11760
11761#ifdef RTLD_GLOBAL
11762# define LT_DLGLOBAL RTLD_GLOBAL
11763#else
11764# ifdef DL_GLOBAL
11765# define LT_DLGLOBAL DL_GLOBAL
11766# else
11767# define LT_DLGLOBAL 0
11768# endif
11769#endif
11770
11771/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11772 find out it does not work in some platform. */
11773#ifndef LT_DLLAZY_OR_NOW
11774# ifdef RTLD_LAZY
11775# define LT_DLLAZY_OR_NOW RTLD_LAZY
11776# else
11777# ifdef DL_LAZY
11778# define LT_DLLAZY_OR_NOW DL_LAZY
11779# else
11780# ifdef RTLD_NOW
11781# define LT_DLLAZY_OR_NOW RTLD_NOW
11782# else
11783# ifdef DL_NOW
11784# define LT_DLLAZY_OR_NOW DL_NOW
11785# else
11786# define LT_DLLAZY_OR_NOW 0
11787# endif
11788# endif
11789# endif
11790# endif
11791#endif
11792
11793#ifdef __cplusplus
11794extern "C" void exit (int);
11795#endif
11796
11797void fnord() { int i=42;}
11798int main ()
11799{
11800 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11801 int status = $lt_dlunknown;
11802
11803 if (self)
11804 {
11805 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11806 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11807 /* dlclose (self); */
11808 }
11809
11810 exit (status);
11811}
11812EOF
11813 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11814 (eval $ac_link) 2>&5
11815 ac_status=$?
11816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11817 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11818 (./conftest; exit; ) 2>/dev/null
11819 lt_status=$?
11820 case x$lt_status in
11821 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11822 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11823 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
11824 esac
11825 else :
11826 # compilation failed
11827 lt_cv_dlopen_self=no
11828 fi
11829fi
11830rm -fr conftest*
11831
11832
11833fi
11834echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11835echo "${ECHO_T}$lt_cv_dlopen_self" >&6
11836
11837 if test "x$lt_cv_dlopen_self" = xyes; then
11838 LDFLAGS="$LDFLAGS $link_static_flag"
11839 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11840echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
11841if test "${lt_cv_dlopen_self_static+set}" = set; then
11842 echo $ECHO_N "(cached) $ECHO_C" >&6
11843else
11844 if test "$cross_compiling" = yes; then :
11845 lt_cv_dlopen_self_static=cross
11846else
11847 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11848 lt_status=$lt_dlunknown
11849 cat > conftest.$ac_ext <<EOF
John Criswell8a54a1e2004-06-22 21:35:10 +000011850#line 11850 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000011851#include "confdefs.h"
11852
11853#if HAVE_DLFCN_H
11854#include <dlfcn.h>
11855#endif
11856
11857#include <stdio.h>
11858
11859#ifdef RTLD_GLOBAL
11860# define LT_DLGLOBAL RTLD_GLOBAL
11861#else
11862# ifdef DL_GLOBAL
11863# define LT_DLGLOBAL DL_GLOBAL
11864# else
11865# define LT_DLGLOBAL 0
11866# endif
11867#endif
11868
11869/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11870 find out it does not work in some platform. */
11871#ifndef LT_DLLAZY_OR_NOW
11872# ifdef RTLD_LAZY
11873# define LT_DLLAZY_OR_NOW RTLD_LAZY
11874# else
11875# ifdef DL_LAZY
11876# define LT_DLLAZY_OR_NOW DL_LAZY
11877# else
11878# ifdef RTLD_NOW
11879# define LT_DLLAZY_OR_NOW RTLD_NOW
11880# else
11881# ifdef DL_NOW
11882# define LT_DLLAZY_OR_NOW DL_NOW
11883# else
11884# define LT_DLLAZY_OR_NOW 0
11885# endif
11886# endif
11887# endif
11888# endif
11889#endif
11890
11891#ifdef __cplusplus
11892extern "C" void exit (int);
11893#endif
11894
11895void fnord() { int i=42;}
11896int main ()
11897{
11898 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11899 int status = $lt_dlunknown;
11900
11901 if (self)
11902 {
11903 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11904 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11905 /* dlclose (self); */
11906 }
11907
11908 exit (status);
11909}
11910EOF
11911 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11912 (eval $ac_link) 2>&5
11913 ac_status=$?
11914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11915 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11916 (./conftest; exit; ) 2>/dev/null
11917 lt_status=$?
11918 case x$lt_status in
11919 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11920 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11921 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
11922 esac
11923 else :
11924 # compilation failed
11925 lt_cv_dlopen_self_static=no
11926 fi
11927fi
11928rm -fr conftest*
11929
11930
11931fi
11932echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11933echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
11934 fi
11935
11936 CPPFLAGS="$save_CPPFLAGS"
11937 LDFLAGS="$save_LDFLAGS"
11938 LIBS="$save_LIBS"
11939 ;;
11940 esac
11941
11942 case $lt_cv_dlopen_self in
11943 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11944 *) enable_dlopen_self=unknown ;;
11945 esac
11946
11947 case $lt_cv_dlopen_self_static in
11948 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11949 *) enable_dlopen_self_static=unknown ;;
11950 esac
11951fi
11952
11953
11954# The else clause should only fire when bootstrapping the
11955# libtool distribution, otherwise you forgot to ship ltmain.sh
11956# with your package, and you will get complaints that there are
11957# no rules to generate ltmain.sh.
11958if test -f "$ltmain"; then
11959 # See if we are running on zsh, and set the options which allow our commands through
11960 # without removal of \ escapes.
11961 if test -n "${ZSH_VERSION+set}" ; then
11962 setopt NO_GLOB_SUBST
11963 fi
11964 # Now quote all the things that may contain metacharacters while being
11965 # careful not to overquote the AC_SUBSTed values. We take copies of the
11966 # variables and quote the copies for generation of the libtool script.
11967 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
11968 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11969 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11970 deplibs_check_method reload_flag reload_cmds need_locks \
11971 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11972 lt_cv_sys_global_symbol_to_c_name_address \
11973 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11974 old_postinstall_cmds old_postuninstall_cmds \
11975 compiler_CXX \
11976 CC_CXX \
11977 LD_CXX \
11978 lt_prog_compiler_wl_CXX \
11979 lt_prog_compiler_pic_CXX \
11980 lt_prog_compiler_static_CXX \
11981 lt_prog_compiler_no_builtin_flag_CXX \
11982 export_dynamic_flag_spec_CXX \
11983 thread_safe_flag_spec_CXX \
11984 whole_archive_flag_spec_CXX \
11985 enable_shared_with_static_runtimes_CXX \
11986 old_archive_cmds_CXX \
11987 old_archive_from_new_cmds_CXX \
11988 predep_objects_CXX \
11989 postdep_objects_CXX \
11990 predeps_CXX \
11991 postdeps_CXX \
11992 compiler_lib_search_path_CXX \
11993 archive_cmds_CXX \
11994 archive_expsym_cmds_CXX \
11995 postinstall_cmds_CXX \
11996 postuninstall_cmds_CXX \
11997 old_archive_from_expsyms_cmds_CXX \
11998 allow_undefined_flag_CXX \
11999 no_undefined_flag_CXX \
12000 export_symbols_cmds_CXX \
12001 hardcode_libdir_flag_spec_CXX \
12002 hardcode_libdir_flag_spec_ld_CXX \
12003 hardcode_libdir_separator_CXX \
12004 hardcode_automatic_CXX \
12005 module_cmds_CXX \
12006 module_expsym_cmds_CXX \
12007 lt_cv_prog_compiler_c_o_CXX \
12008 exclude_expsyms_CXX \
12009 include_expsyms_CXX; do
12010
12011 case $var in
12012 old_archive_cmds_CXX | \
12013 old_archive_from_new_cmds_CXX | \
12014 archive_cmds_CXX | \
12015 archive_expsym_cmds_CXX | \
12016 module_cmds_CXX | \
12017 module_expsym_cmds_CXX | \
12018 old_archive_from_expsyms_cmds_CXX | \
12019 export_symbols_cmds_CXX | \
12020 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12021 postinstall_cmds | postuninstall_cmds | \
12022 old_postinstall_cmds | old_postuninstall_cmds | \
12023 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12024 # Double-quote double-evaled strings.
12025 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12026 ;;
12027 *)
12028 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12029 ;;
12030 esac
12031 done
12032
12033 case $lt_echo in
12034 *'\$0 --fallback-echo"')
12035 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12036 ;;
12037 esac
12038
12039cfgfile="$ofile"
12040
12041 cat <<__EOF__ >> "$cfgfile"
12042# ### BEGIN LIBTOOL TAG CONFIG: $tagname
12043
12044# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12045
12046# Shell to use when invoking shell scripts.
12047SHELL=$lt_SHELL
12048
12049# Whether or not to build shared libraries.
12050build_libtool_libs=$enable_shared
12051
12052# Whether or not to build static libraries.
12053build_old_libs=$enable_static
12054
12055# Whether or not to add -lc for building shared libraries.
12056build_libtool_need_lc=$archive_cmds_need_lc_CXX
12057
12058# Whether or not to disallow shared libs when runtime libs are static
12059allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12060
12061# Whether or not to optimize for fast installation.
12062fast_install=$enable_fast_install
12063
12064# The host system.
12065host_alias=$host_alias
12066host=$host
12067
12068# An echo program that does not interpret backslashes.
12069echo=$lt_echo
12070
12071# The archiver.
12072AR=$lt_AR
12073AR_FLAGS=$lt_AR_FLAGS
12074
12075# A C compiler.
12076LTCC=$lt_LTCC
12077
12078# A language-specific compiler.
12079CC=$lt_compiler_CXX
12080
12081# Is the compiler the GNU C compiler?
12082with_gcc=$GCC_CXX
12083
12084# An ERE matcher.
12085EGREP=$lt_EGREP
12086
12087# The linker used to build libraries.
12088LD=$lt_LD_CXX
12089
12090# Whether we need hard or soft links.
12091LN_S=$lt_LN_S
12092
12093# A BSD-compatible nm program.
12094NM=$lt_NM
12095
12096# A symbol stripping program
12097STRIP=$STRIP
12098
12099# Used to examine libraries when file_magic_cmd begins "file"
12100MAGIC_CMD=$MAGIC_CMD
12101
12102# Used on cygwin: DLL creation program.
12103DLLTOOL="$DLLTOOL"
12104
12105# Used on cygwin: object dumper.
12106OBJDUMP="$OBJDUMP"
12107
12108# Used on cygwin: assembler.
12109AS="$AS"
12110
12111# The name of the directory that contains temporary libtool files.
12112objdir=$objdir
12113
12114# How to create reloadable object files.
12115reload_flag=$lt_reload_flag
12116reload_cmds=$lt_reload_cmds
12117
12118# How to pass a linker flag through the compiler.
12119wl=$lt_lt_prog_compiler_wl_CXX
12120
12121# Object file suffix (normally "o").
12122objext="$ac_objext"
12123
12124# Old archive suffix (normally "a").
12125libext="$libext"
12126
12127# Shared library suffix (normally ".so").
12128shrext='$shrext'
12129
12130# Executable file suffix (normally "").
12131exeext="$exeext"
12132
12133# Additional compiler flags for building library objects.
12134pic_flag=$lt_lt_prog_compiler_pic_CXX
12135pic_mode=$pic_mode
12136
12137# What is the maximum length of a command?
12138max_cmd_len=$lt_cv_sys_max_cmd_len
12139
12140# Does compiler simultaneously support -c and -o options?
12141compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12142
12143# Must we lock files when doing compilation ?
12144need_locks=$lt_need_locks
12145
12146# Do we need the lib prefix for modules?
12147need_lib_prefix=$need_lib_prefix
12148
12149# Do we need a version for libraries?
12150need_version=$need_version
12151
12152# Whether dlopen is supported.
12153dlopen_support=$enable_dlopen
12154
12155# Whether dlopen of programs is supported.
12156dlopen_self=$enable_dlopen_self
12157
12158# Whether dlopen of statically linked programs is supported.
12159dlopen_self_static=$enable_dlopen_self_static
12160
12161# Compiler flag to prevent dynamic linking.
12162link_static_flag=$lt_lt_prog_compiler_static_CXX
12163
12164# Compiler flag to turn off builtin functions.
12165no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12166
12167# Compiler flag to allow reflexive dlopens.
12168export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12169
12170# Compiler flag to generate shared objects directly from archives.
12171whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12172
12173# Compiler flag to generate thread-safe objects.
12174thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12175
12176# Library versioning type.
12177version_type=$version_type
12178
12179# Format of library name prefix.
12180libname_spec=$lt_libname_spec
12181
12182# List of archive names. First name is the real one, the rest are links.
12183# The last name is the one that the linker finds with -lNAME.
12184library_names_spec=$lt_library_names_spec
12185
12186# The coded name of the library, if different from the real name.
12187soname_spec=$lt_soname_spec
12188
12189# Commands used to build and install an old-style archive.
12190RANLIB=$lt_RANLIB
12191old_archive_cmds=$lt_old_archive_cmds_CXX
12192old_postinstall_cmds=$lt_old_postinstall_cmds
12193old_postuninstall_cmds=$lt_old_postuninstall_cmds
12194
12195# Create an old-style archive from a shared archive.
12196old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12197
12198# Create a temporary old-style archive to link instead of a shared archive.
12199old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12200
12201# Commands used to build and install a shared archive.
12202archive_cmds=$lt_archive_cmds_CXX
12203archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12204postinstall_cmds=$lt_postinstall_cmds
12205postuninstall_cmds=$lt_postuninstall_cmds
12206
12207# Commands used to build a loadable module (assumed same as above if empty)
12208module_cmds=$lt_module_cmds_CXX
12209module_expsym_cmds=$lt_module_expsym_cmds_CXX
12210
12211# Commands to strip libraries.
12212old_striplib=$lt_old_striplib
12213striplib=$lt_striplib
12214
12215# Dependencies to place before the objects being linked to create a
12216# shared library.
12217predep_objects=$lt_predep_objects_CXX
12218
12219# Dependencies to place after the objects being linked to create a
12220# shared library.
12221postdep_objects=$lt_postdep_objects_CXX
12222
12223# Dependencies to place before the objects being linked to create a
12224# shared library.
12225predeps=$lt_predeps_CXX
12226
12227# Dependencies to place after the objects being linked to create a
12228# shared library.
12229postdeps=$lt_postdeps_CXX
12230
12231# The library search path used internally by the compiler when linking
12232# a shared library.
12233compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12234
12235# Method to check whether dependent libraries are shared objects.
12236deplibs_check_method=$lt_deplibs_check_method
12237
12238# Command to use when deplibs_check_method == file_magic.
12239file_magic_cmd=$lt_file_magic_cmd
12240
12241# Flag that allows shared libraries with undefined symbols to be built.
12242allow_undefined_flag=$lt_allow_undefined_flag_CXX
12243
12244# Flag that forces no undefined symbols.
12245no_undefined_flag=$lt_no_undefined_flag_CXX
12246
12247# Commands used to finish a libtool library installation in a directory.
12248finish_cmds=$lt_finish_cmds
12249
12250# Same as above, but a single script fragment to be evaled but not shown.
12251finish_eval=$lt_finish_eval
12252
12253# Take the output of nm and produce a listing of raw symbols and C names.
12254global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12255
12256# Transform the output of nm in a proper C declaration
12257global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12258
12259# Transform the output of nm in a C name address pair
12260global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12261
12262# This is the shared library runtime path variable.
12263runpath_var=$runpath_var
12264
12265# This is the shared library path variable.
12266shlibpath_var=$shlibpath_var
12267
12268# Is shlibpath searched before the hard-coded library search path?
12269shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12270
12271# How to hardcode a shared library path into an executable.
12272hardcode_action=$hardcode_action_CXX
12273
12274# Whether we should hardcode library paths into libraries.
12275hardcode_into_libs=$hardcode_into_libs
12276
12277# Flag to hardcode \$libdir into a binary during linking.
12278# This must work even if \$libdir does not exist.
12279hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12280
12281# If ld is used when linking, flag to hardcode \$libdir into
12282# a binary during linking. This must work even if \$libdir does
12283# not exist.
12284hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12285
12286# Whether we need a single -rpath flag with a separated argument.
12287hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12288
12289# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12290# resulting binary.
12291hardcode_direct=$hardcode_direct_CXX
12292
12293# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12294# resulting binary.
12295hardcode_minus_L=$hardcode_minus_L_CXX
12296
12297# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12298# the resulting binary.
12299hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12300
12301# Set to yes if building a shared library automatically hardcodes DIR into the library
12302# and all subsequent libraries and executables linked against it.
12303hardcode_automatic=$hardcode_automatic_CXX
12304
12305# Variables whose values should be saved in libtool wrapper scripts and
12306# restored at relink time.
12307variables_saved_for_relink="$variables_saved_for_relink"
12308
12309# Whether libtool must link a program against all its dependency libraries.
12310link_all_deplibs=$link_all_deplibs_CXX
12311
12312# Compile-time system search path for libraries
12313sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12314
12315# Run-time system search path for libraries
12316sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12317
12318# Fix the shell variable \$srcfile for the compiler.
12319fix_srcfile_path="$fix_srcfile_path_CXX"
12320
12321# Set to yes if exported symbols are required.
12322always_export_symbols=$always_export_symbols_CXX
12323
12324# The commands to list exported symbols.
12325export_symbols_cmds=$lt_export_symbols_cmds_CXX
12326
12327# The commands to extract the exported symbol list from a shared archive.
12328extract_expsyms_cmds=$lt_extract_expsyms_cmds
12329
12330# Symbols that should not be listed in the preloaded symbols.
12331exclude_expsyms=$lt_exclude_expsyms_CXX
12332
12333# Symbols that must always be exported.
12334include_expsyms=$lt_include_expsyms_CXX
12335
12336# ### END LIBTOOL TAG CONFIG: $tagname
12337
12338__EOF__
12339
12340
12341else
12342 # If there is no Makefile yet, we rely on a make rule to execute
12343 # `config.status --recheck' to rerun these tests and create the
12344 # libtool script then.
12345 test -f Makefile && make "$ltmain"
12346fi
12347
12348
12349ac_ext=c
12350ac_cpp='$CPP $CPPFLAGS'
12351ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12352ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12353ac_compiler_gnu=$ac_cv_c_compiler_gnu
12354
12355CC=$lt_save_CC
12356LDCXX=$LD
12357LD=$lt_save_LD
12358GCC=$lt_save_GCC
12359with_gnu_ldcxx=$with_gnu_ld
12360with_gnu_ld=$lt_save_with_gnu_ld
12361lt_cv_path_LDCXX=$lt_cv_path_LD
12362lt_cv_path_LD=$lt_save_path_LD
12363lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12364lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12365
12366 else
12367 tagname=""
12368 fi
12369 ;;
12370
12371 F77)
12372 if test -n "$F77" && test "X$F77" != "Xno"; then
12373
12374ac_ext=f
12375ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12376ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12377ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12378
12379
12380archive_cmds_need_lc_F77=no
12381allow_undefined_flag_F77=
12382always_export_symbols_F77=no
12383archive_expsym_cmds_F77=
12384export_dynamic_flag_spec_F77=
12385hardcode_direct_F77=no
12386hardcode_libdir_flag_spec_F77=
12387hardcode_libdir_flag_spec_ld_F77=
12388hardcode_libdir_separator_F77=
12389hardcode_minus_L_F77=no
12390hardcode_automatic_F77=no
12391module_cmds_F77=
12392module_expsym_cmds_F77=
12393link_all_deplibs_F77=unknown
12394old_archive_cmds_F77=$old_archive_cmds
12395no_undefined_flag_F77=
12396whole_archive_flag_spec_F77=
12397enable_shared_with_static_runtimes_F77=no
12398
12399# Source file extension for f77 test sources.
12400ac_ext=f
12401
12402# Object file extension for compiled f77 test sources.
12403objext=o
12404objext_F77=$objext
12405
12406# Code to be used in simple compile tests
12407lt_simple_compile_test_code=" subroutine t\n return\n end\n"
12408
12409# Code to be used in simple link tests
12410lt_simple_link_test_code=" program t\n end\n"
12411
12412# ltmain only uses $CC for tagged configurations so make sure $CC is set.
12413
12414# If no C compiler was specified, use CC.
12415LTCC=${LTCC-"$CC"}
12416
12417# Allow CC to be a program name with arguments.
12418compiler=$CC
12419
12420
12421# Allow CC to be a program name with arguments.
12422lt_save_CC="$CC"
12423CC=${F77-"f77"}
12424compiler=$CC
12425compiler_F77=$CC
12426cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12427
12428echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12429echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12430echo "$as_me:$LINENO: result: $can_build_shared" >&5
12431echo "${ECHO_T}$can_build_shared" >&6
12432
12433echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12434echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12435test "$can_build_shared" = "no" && enable_shared=no
12436
12437# On AIX, shared libraries and static libraries use the same namespace, and
12438# are all built from PIC.
12439case "$host_os" in
12440aix3*)
12441 test "$enable_shared" = yes && enable_static=no
12442 if test -n "$RANLIB"; then
12443 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12444 postinstall_cmds='$RANLIB $lib'
12445 fi
12446 ;;
12447aix4*)
12448 test "$enable_shared" = yes && enable_static=no
12449 ;;
12450esac
12451echo "$as_me:$LINENO: result: $enable_shared" >&5
12452echo "${ECHO_T}$enable_shared" >&6
12453
12454echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12455echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12456# Make sure either enable_shared or enable_static is yes.
12457test "$enable_shared" = yes || enable_static=yes
12458echo "$as_me:$LINENO: result: $enable_static" >&5
12459echo "${ECHO_T}$enable_static" >&6
12460
12461test "$ld_shlibs_F77" = no && can_build_shared=no
12462
12463GCC_F77="$G77"
12464LD_F77="$LD"
12465
12466lt_prog_compiler_wl_F77=
12467lt_prog_compiler_pic_F77=
12468lt_prog_compiler_static_F77=
12469
12470echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12471echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12472
12473 if test "$GCC" = yes; then
12474 lt_prog_compiler_wl_F77='-Wl,'
12475 lt_prog_compiler_static_F77='-static'
12476
12477 case $host_os in
12478 aix*)
12479 # All AIX code is PIC.
12480 if test "$host_cpu" = ia64; then
12481 # AIX 5 now supports IA64 processor
12482 lt_prog_compiler_static_F77='-Bstatic'
12483 fi
12484 ;;
12485
12486 amigaos*)
12487 # FIXME: we need at least 68020 code to build shared libraries, but
12488 # adding the `-m68020' flag to GCC prevents building anything better,
12489 # like `-m68040'.
12490 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12491 ;;
12492
12493 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12494 # PIC is the default for these OSes.
12495 ;;
12496
12497 mingw* | pw32* | os2*)
12498 # This hack is so that the source file can tell whether it is being
12499 # built for inclusion in a dll (and should export symbols for example).
12500 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12501 ;;
12502
12503 darwin* | rhapsody*)
12504 # PIC is the default on this platform
12505 # Common symbols not allowed in MH_DYLIB files
12506 lt_prog_compiler_pic_F77='-fno-common'
12507 ;;
12508
12509 msdosdjgpp*)
12510 # Just because we use GCC doesn't mean we suddenly get shared libraries
12511 # on systems that don't support them.
12512 lt_prog_compiler_can_build_shared_F77=no
12513 enable_shared=no
12514 ;;
12515
12516 sysv4*MP*)
12517 if test -d /usr/nec; then
12518 lt_prog_compiler_pic_F77=-Kconform_pic
12519 fi
12520 ;;
12521
12522 hpux*)
12523 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12524 # not for PA HP-UX.
12525 case "$host_cpu" in
12526 hppa*64*|ia64*)
12527 # +Z the default
12528 ;;
12529 *)
12530 lt_prog_compiler_pic_F77='-fPIC'
12531 ;;
12532 esac
12533 ;;
12534
12535 *)
12536 lt_prog_compiler_pic_F77='-fPIC'
12537 ;;
12538 esac
12539 else
12540 # PORTME Check for flag to pass linker flags through the system compiler.
12541 case $host_os in
12542 aix*)
12543 lt_prog_compiler_wl_F77='-Wl,'
12544 if test "$host_cpu" = ia64; then
12545 # AIX 5 now supports IA64 processor
12546 lt_prog_compiler_static_F77='-Bstatic'
12547 else
12548 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12549 fi
12550 ;;
12551
12552 mingw* | pw32* | os2*)
12553 # This hack is so that the source file can tell whether it is being
12554 # built for inclusion in a dll (and should export symbols for example).
12555 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12556 ;;
12557
12558 hpux9* | hpux10* | hpux11*)
12559 lt_prog_compiler_wl_F77='-Wl,'
12560 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12561 # not for PA HP-UX.
12562 case "$host_cpu" in
12563 hppa*64*|ia64*)
12564 # +Z the default
12565 ;;
12566 *)
12567 lt_prog_compiler_pic_F77='+Z'
12568 ;;
12569 esac
12570 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12571 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
12572 ;;
12573
12574 irix5* | irix6* | nonstopux*)
12575 lt_prog_compiler_wl_F77='-Wl,'
12576 # PIC (with -KPIC) is the default.
12577 lt_prog_compiler_static_F77='-non_shared'
12578 ;;
12579
12580 newsos6)
12581 lt_prog_compiler_pic_F77='-KPIC'
12582 lt_prog_compiler_static_F77='-Bstatic'
12583 ;;
12584
12585 linux*)
12586 case $CC in
12587 icc|ecc)
12588 lt_prog_compiler_wl_F77='-Wl,'
12589 lt_prog_compiler_pic_F77='-KPIC'
12590 lt_prog_compiler_static_F77='-static'
12591 ;;
12592 ccc)
12593 lt_prog_compiler_wl_F77='-Wl,'
12594 # All Alpha code is PIC.
12595 lt_prog_compiler_static_F77='-non_shared'
12596 ;;
12597 esac
12598 ;;
12599
12600 osf3* | osf4* | osf5*)
12601 lt_prog_compiler_wl_F77='-Wl,'
12602 # All OSF/1 code is PIC.
12603 lt_prog_compiler_static_F77='-non_shared'
12604 ;;
12605
12606 sco3.2v5*)
12607 lt_prog_compiler_pic_F77='-Kpic'
12608 lt_prog_compiler_static_F77='-dn'
12609 ;;
12610
12611 solaris*)
12612 lt_prog_compiler_wl_F77='-Wl,'
12613 lt_prog_compiler_pic_F77='-KPIC'
12614 lt_prog_compiler_static_F77='-Bstatic'
12615 ;;
12616
12617 sunos4*)
12618 lt_prog_compiler_wl_F77='-Qoption ld '
12619 lt_prog_compiler_pic_F77='-PIC'
12620 lt_prog_compiler_static_F77='-Bstatic'
12621 ;;
12622
12623 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12624 lt_prog_compiler_wl_F77='-Wl,'
12625 lt_prog_compiler_pic_F77='-KPIC'
12626 lt_prog_compiler_static_F77='-Bstatic'
12627 ;;
12628
12629 sysv4*MP*)
12630 if test -d /usr/nec ;then
12631 lt_prog_compiler_pic_F77='-Kconform_pic'
12632 lt_prog_compiler_static_F77='-Bstatic'
12633 fi
12634 ;;
12635
12636 uts4*)
12637 lt_prog_compiler_pic_F77='-pic'
12638 lt_prog_compiler_static_F77='-Bstatic'
12639 ;;
12640
12641 *)
12642 lt_prog_compiler_can_build_shared_F77=no
12643 ;;
12644 esac
12645 fi
12646
12647echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
12648echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
12649
12650#
12651# Check to make sure the PIC flag actually works.
12652#
12653if test -n "$lt_prog_compiler_pic_F77"; then
12654 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
12655echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
12656if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
12657 echo $ECHO_N "(cached) $ECHO_C" >&6
12658else
12659 lt_prog_compiler_pic_works_F77=no
12660 ac_outfile=conftest.$ac_objext
12661 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12662 lt_compiler_flag="$lt_prog_compiler_pic_F77"
12663 # Insert the option either (1) after the last *FLAGS variable, or
12664 # (2) before a word containing "conftest.", or (3) at the end.
12665 # Note that $ac_compile itself does not contain backslashes and begins
12666 # with a dollar sign (not a hyphen), so the echo should work correctly.
12667 # The option is referenced via a variable to avoid confusing sed.
12668 lt_compile=`echo "$ac_compile" | $SED \
12669 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12670 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12671 -e 's:$: $lt_compiler_flag:'`
John Criswell8a54a1e2004-06-22 21:35:10 +000012672 (eval echo "\"\$as_me:12672: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000012673 (eval "$lt_compile" 2>conftest.err)
12674 ac_status=$?
12675 cat conftest.err >&5
John Criswell8a54a1e2004-06-22 21:35:10 +000012676 echo "$as_me:12676: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000012677 if (exit $ac_status) && test -s "$ac_outfile"; then
12678 # The compiler can only warn and ignore the option if not recognized
12679 # So say no if there are warnings
12680 if test ! -s conftest.err; then
12681 lt_prog_compiler_pic_works_F77=yes
12682 fi
12683 fi
12684 $rm conftest*
12685
12686fi
12687echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
12688echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
12689
12690if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
12691 case $lt_prog_compiler_pic_F77 in
12692 "" | " "*) ;;
12693 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
12694 esac
12695else
12696 lt_prog_compiler_pic_F77=
12697 lt_prog_compiler_can_build_shared_F77=no
12698fi
12699
12700fi
12701case "$host_os" in
12702 # For platforms which do not support PIC, -DPIC is meaningless:
12703 *djgpp*)
12704 lt_prog_compiler_pic_F77=
12705 ;;
12706 *)
12707 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
12708 ;;
12709esac
12710
12711echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12712echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12713if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
12714 echo $ECHO_N "(cached) $ECHO_C" >&6
12715else
12716 lt_cv_prog_compiler_c_o_F77=no
12717 $rm -r conftest 2>/dev/null
12718 mkdir conftest
12719 cd conftest
12720 mkdir out
12721 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12722
12723 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
12724 # that will create temporary files in the current directory regardless of
12725 # the output directory. Thus, making CWD read-only will cause this test
12726 # to fail, enabling locking or at least warning the user not to do parallel
12727 # builds.
12728 chmod -w .
12729
12730 lt_compiler_flag="-o out/conftest2.$ac_objext"
12731 # Insert the option either (1) after the last *FLAGS variable, or
12732 # (2) before a word containing "conftest.", or (3) at the end.
12733 # Note that $ac_compile itself does not contain backslashes and begins
12734 # with a dollar sign (not a hyphen), so the echo should work correctly.
12735 lt_compile=`echo "$ac_compile" | $SED \
12736 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12737 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12738 -e 's:$: $lt_compiler_flag:'`
John Criswell8a54a1e2004-06-22 21:35:10 +000012739 (eval echo "\"\$as_me:12739: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000012740 (eval "$lt_compile" 2>out/conftest.err)
12741 ac_status=$?
12742 cat out/conftest.err >&5
John Criswell8a54a1e2004-06-22 21:35:10 +000012743 echo "$as_me:12743: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000012744 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12745 then
12746 # The compiler can only warn and ignore the option if not recognized
12747 # So say no if there are warnings
12748 if test ! -s out/conftest.err; then
12749 lt_cv_prog_compiler_c_o_F77=yes
12750 fi
12751 fi
12752 chmod u+w .
12753 $rm conftest* out/*
12754 rmdir out
12755 cd ..
12756 rmdir conftest
12757 $rm conftest*
12758
12759fi
12760echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
12761echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
12762
12763
12764hard_links="nottested"
12765if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
12766 # do not overwrite the value of need_locks provided by the user
12767 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12768echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12769 hard_links=yes
12770 $rm conftest*
12771 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12772 touch conftest.a
12773 ln conftest.a conftest.b 2>&5 || hard_links=no
12774 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12775 echo "$as_me:$LINENO: result: $hard_links" >&5
12776echo "${ECHO_T}$hard_links" >&6
12777 if test "$hard_links" = no; then
12778 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12779echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12780 need_locks=warn
12781 fi
12782else
12783 need_locks=no
12784fi
12785
12786echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12787echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12788
12789 runpath_var=
12790 allow_undefined_flag_F77=
12791 enable_shared_with_static_runtimes_F77=no
12792 archive_cmds_F77=
12793 archive_expsym_cmds_F77=
12794 old_archive_From_new_cmds_F77=
12795 old_archive_from_expsyms_cmds_F77=
12796 export_dynamic_flag_spec_F77=
12797 whole_archive_flag_spec_F77=
12798 thread_safe_flag_spec_F77=
12799 hardcode_libdir_flag_spec_F77=
12800 hardcode_libdir_flag_spec_ld_F77=
12801 hardcode_libdir_separator_F77=
12802 hardcode_direct_F77=no
12803 hardcode_minus_L_F77=no
12804 hardcode_shlibpath_var_F77=unsupported
12805 link_all_deplibs_F77=unknown
12806 hardcode_automatic_F77=no
12807 module_cmds_F77=
12808 module_expsym_cmds_F77=
12809 always_export_symbols_F77=no
12810 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12811 # include_expsyms should be a list of space-separated symbols to be *always*
12812 # included in the symbol list
12813 include_expsyms_F77=
12814 # exclude_expsyms can be an extended regexp of symbols to exclude
12815 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12816 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12817 # as well as any symbol that contains `d'.
12818 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
12819 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12820 # platforms (ab)use it in PIC code, but their linkers get confused if
12821 # the symbol is explicitly referenced. Since portable code cannot
12822 # rely on this symbol name, it's probably fine to never include it in
12823 # preloaded symbol tables.
12824 extract_expsyms_cmds=
12825
12826 case $host_os in
12827 cygwin* | mingw* | pw32*)
12828 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12829 # When not using gcc, we currently assume that we are using
12830 # Microsoft Visual C++.
12831 if test "$GCC" != yes; then
12832 with_gnu_ld=no
12833 fi
12834 ;;
12835 openbsd*)
12836 with_gnu_ld=no
12837 ;;
12838 esac
12839
12840 ld_shlibs_F77=yes
12841 if test "$with_gnu_ld" = yes; then
12842 # If archive_cmds runs LD, not CC, wlarc should be empty
12843 wlarc='${wl}'
12844
12845 # See if GNU ld supports shared libraries.
12846 case $host_os in
12847 aix3* | aix4* | aix5*)
12848 # On AIX/PPC, the GNU linker is very broken
12849 if test "$host_cpu" != ia64; then
12850 ld_shlibs_F77=no
12851 cat <<EOF 1>&2
12852
12853*** Warning: the GNU linker, at least up to release 2.9.1, is reported
12854*** to be unable to reliably create shared libraries on AIX.
12855*** Therefore, libtool is disabling shared libraries support. If you
12856*** really care for shared libraries, you may want to modify your PATH
12857*** so that a non-GNU linker is found, and then restart.
12858
12859EOF
12860 fi
12861 ;;
12862
12863 amigaos*)
12864 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)'
12865 hardcode_libdir_flag_spec_F77='-L$libdir'
12866 hardcode_minus_L_F77=yes
12867
12868 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12869 # that the semantics of dynamic libraries on AmigaOS, at least up
12870 # to version 4, is to share data among multiple programs linked
12871 # with the same dynamic library. Since this doesn't match the
12872 # behavior of shared libraries on other platforms, we can't use
12873 # them.
12874 ld_shlibs_F77=no
12875 ;;
12876
12877 beos*)
12878 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12879 allow_undefined_flag_F77=unsupported
12880 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12881 # support --undefined. This deserves some investigation. FIXME
12882 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12883 else
12884 ld_shlibs_F77=no
12885 fi
12886 ;;
12887
12888 cygwin* | mingw* | pw32*)
12889 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
12890 # as there is no search path for DLLs.
12891 hardcode_libdir_flag_spec_F77='-L$libdir'
12892 allow_undefined_flag_F77=unsupported
12893 always_export_symbols_F77=no
12894 enable_shared_with_static_runtimes_F77=yes
12895 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12896
12897 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12898 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12899 # If the export-symbols file already is a .def file (1st line
12900 # is EXPORTS), use it as is; otherwise, prepend...
12901 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12902 cp $export_symbols $output_objdir/$soname.def;
12903 else
12904 echo EXPORTS > $output_objdir/$soname.def;
12905 cat $export_symbols >> $output_objdir/$soname.def;
12906 fi~
12907 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12908 else
12909 ld_shlibs=no
12910 fi
12911 ;;
12912
12913 netbsd*)
12914 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12915 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12916 wlarc=
12917 else
12918 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12919 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12920 fi
12921 ;;
12922
12923 solaris* | sysv5*)
12924 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12925 ld_shlibs_F77=no
12926 cat <<EOF 1>&2
12927
12928*** Warning: The releases 2.8.* of the GNU linker cannot reliably
12929*** create shared libraries on Solaris systems. Therefore, libtool
12930*** is disabling shared libraries support. We urge you to upgrade GNU
12931*** binutils to release 2.9.1 or newer. Another option is to modify
12932*** your PATH or compiler configuration so that the native linker is
12933*** used, and then restart.
12934
12935EOF
12936 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12937 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12938 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12939 else
12940 ld_shlibs_F77=no
12941 fi
12942 ;;
12943
12944 sunos4*)
12945 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12946 wlarc=
12947 hardcode_direct_F77=yes
12948 hardcode_shlibpath_var_F77=no
12949 ;;
12950
12951 *)
12952 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12953 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12954 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12955 else
12956 ld_shlibs_F77=no
12957 fi
12958 ;;
12959 esac
12960
12961 if test "$ld_shlibs_F77" = yes; then
12962 runpath_var=LD_RUN_PATH
12963 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
12964 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
12965 # ancient GNU ld didn't support --whole-archive et. al.
12966 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
12967 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12968 else
12969 whole_archive_flag_spec_F77=
12970 fi
12971 fi
12972 else
12973 # PORTME fill in a description of your system's linker (not GNU ld)
12974 case $host_os in
12975 aix3*)
12976 allow_undefined_flag_F77=unsupported
12977 always_export_symbols_F77=yes
12978 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'
12979 # Note: this linker hardcodes the directories in LIBPATH if there
12980 # are no directories specified by -L.
12981 hardcode_minus_L_F77=yes
12982 if test "$GCC" = yes && test -z "$link_static_flag"; then
12983 # Neither direct hardcoding nor static linking is supported with a
12984 # broken collect2.
12985 hardcode_direct_F77=unsupported
12986 fi
12987 ;;
12988
12989 aix4* | aix5*)
12990 if test "$host_cpu" = ia64; then
12991 # On IA64, the linker does run time linking by default, so we don't
12992 # have to do anything special.
12993 aix_use_runtimelinking=no
12994 exp_sym_flag='-Bexport'
12995 no_entry_flag=""
12996 else
12997 # If we're using GNU nm, then we don't want the "-C" option.
12998 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12999 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13000 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'
13001 else
13002 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'
13003 fi
13004 aix_use_runtimelinking=no
13005
13006 # Test if we are trying to use run time linking or normal
13007 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13008 # need to do runtime linking.
13009 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13010 for ld_flag in $LDFLAGS; do
13011 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13012 aix_use_runtimelinking=yes
13013 break
13014 fi
13015 done
13016 esac
13017
13018 exp_sym_flag='-bexport'
13019 no_entry_flag='-bnoentry'
13020 fi
13021
13022 # When large executables or shared objects are built, AIX ld can
13023 # have problems creating the table of contents. If linking a library
13024 # or program results in "error TOC overflow" add -mminimal-toc to
13025 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13026 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13027
13028 archive_cmds_F77=''
13029 hardcode_direct_F77=yes
13030 hardcode_libdir_separator_F77=':'
13031 link_all_deplibs_F77=yes
13032
13033 if test "$GCC" = yes; then
13034 case $host_os in aix4.012|aix4.012.*)
13035 # We only want to do this on AIX 4.2 and lower, the check
13036 # below for broken collect2 doesn't work under 4.3+
13037 collect2name=`${CC} -print-prog-name=collect2`
13038 if test -f "$collect2name" && \
13039 strings "$collect2name" | grep resolve_lib_name >/dev/null
13040 then
13041 # We have reworked collect2
13042 hardcode_direct_F77=yes
13043 else
13044 # We have old collect2
13045 hardcode_direct_F77=unsupported
13046 # It fails to find uninstalled libraries when the uninstalled
13047 # path is not listed in the libpath. Setting hardcode_minus_L
13048 # to unsupported forces relinking
13049 hardcode_minus_L_F77=yes
13050 hardcode_libdir_flag_spec_F77='-L$libdir'
13051 hardcode_libdir_separator_F77=
13052 fi
13053 esac
13054 shared_flag='-shared'
13055 else
13056 # not using gcc
13057 if test "$host_cpu" = ia64; then
13058 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13059 # chokes on -Wl,-G. The following line is correct:
13060 shared_flag='-G'
13061 else
13062 if test "$aix_use_runtimelinking" = yes; then
13063 shared_flag='${wl}-G'
13064 else
13065 shared_flag='${wl}-bM:SRE'
13066 fi
13067 fi
13068 fi
13069
13070 # It seems that -bexpall does not export symbols beginning with
13071 # underscore (_), so it is better to generate a list of symbols to export.
13072 always_export_symbols_F77=yes
13073 if test "$aix_use_runtimelinking" = yes; then
13074 # Warning - without using the other runtime loading flags (-brtl),
13075 # -berok will link without error, but may produce a broken library.
13076 allow_undefined_flag_F77='-berok'
13077 # Determine the default libpath from the value encoded in an empty executable.
13078 cat >conftest.$ac_ext <<_ACEOF
13079 program main
13080
13081 end
13082_ACEOF
13083rm -f conftest.$ac_objext conftest$ac_exeext
13084if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13085 (eval $ac_link) 2>&5
13086 ac_status=$?
13087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13088 (exit $ac_status); } &&
13089 { ac_try='test -s conftest$ac_exeext'
13090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13091 (eval $ac_try) 2>&5
13092 ac_status=$?
13093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13094 (exit $ac_status); }; }; then
13095
13096aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13097}'`
13098# Check for a 64-bit object if we didn't find anything.
13099if 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; }
13100}'`; fi
13101else
13102 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013103sed 's/^/| /' conftest.$ac_ext >&5
13104
John Criswell47fdd832003-07-14 16:52:07 +000013105fi
13106rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13107if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13108
13109 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13110 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"
13111 else
13112 if test "$host_cpu" = ia64; then
13113 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13114 allow_undefined_flag_F77="-z nodefs"
13115 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"
13116 else
13117 # Determine the default libpath from the value encoded in an empty executable.
13118 cat >conftest.$ac_ext <<_ACEOF
13119 program main
13120
13121 end
13122_ACEOF
13123rm -f conftest.$ac_objext conftest$ac_exeext
13124if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13125 (eval $ac_link) 2>&5
13126 ac_status=$?
13127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13128 (exit $ac_status); } &&
13129 { ac_try='test -s conftest$ac_exeext'
13130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13131 (eval $ac_try) 2>&5
13132 ac_status=$?
13133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13134 (exit $ac_status); }; }; then
13135
13136aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13137}'`
13138# Check for a 64-bit object if we didn't find anything.
13139if 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; }
13140}'`; fi
13141else
13142 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013143sed 's/^/| /' conftest.$ac_ext >&5
13144
John Criswell47fdd832003-07-14 16:52:07 +000013145fi
13146rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13147if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13148
13149 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13150 # Warning - without using the other run time loading flags,
13151 # -berok will link without error, but may produce a broken library.
13152 no_undefined_flag_F77=' ${wl}-bernotok'
13153 allow_undefined_flag_F77=' ${wl}-berok'
13154 # -bexpall does not export symbols beginning with underscore (_)
13155 always_export_symbols_F77=yes
13156 # Exported symbols can be pulled into shared objects from archives
13157 whole_archive_flag_spec_F77=' '
13158 archive_cmds_need_lc_F77=yes
13159 # This is similar to how AIX traditionally builds it's shared libraries.
13160 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'
13161 fi
13162 fi
13163 ;;
13164
13165 amigaos*)
13166 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)'
13167 hardcode_libdir_flag_spec_F77='-L$libdir'
13168 hardcode_minus_L_F77=yes
13169 # see comment about different semantics on the GNU ld section
13170 ld_shlibs_F77=no
13171 ;;
13172
13173 bsdi4*)
13174 export_dynamic_flag_spec_F77=-rdynamic
13175 ;;
13176
13177 cygwin* | mingw* | pw32*)
13178 # When not using gcc, we currently assume that we are using
13179 # Microsoft Visual C++.
13180 # hardcode_libdir_flag_spec is actually meaningless, as there is
13181 # no search path for DLLs.
13182 hardcode_libdir_flag_spec_F77=' '
13183 allow_undefined_flag_F77=unsupported
13184 # Tell ltmain to make .lib files, not .a files.
13185 libext=lib
13186 # Tell ltmain to make .dll files, not .so files.
13187 shrext=".dll"
13188 # FIXME: Setting linknames here is a bad hack.
13189 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13190 # The linker will automatically build a .lib file if we build a DLL.
13191 old_archive_From_new_cmds_F77='true'
13192 # FIXME: Should let the user specify the lib program.
13193 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13194 fix_srcfile_path='`cygpath -w "$srcfile"`'
13195 enable_shared_with_static_runtimes_F77=yes
13196 ;;
13197
13198 darwin* | rhapsody*)
13199 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13200 archive_cmds_need_lc_F77=no
13201 case "$host_os" in
13202 rhapsody* | darwin1.[012])
13203 allow_undefined_flag_F77='-undefined suppress'
13204 ;;
13205 *) # Darwin 1.3 on
13206 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13207 ;;
13208 esac
13209 # FIXME: Relying on posixy $() will cause problems for
13210 # cross-compilation, but unfortunately the echo tests do not
13211 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
13212 # `"' quotes if we put them in here... so don't!
13213 lt_int_apple_cc_single_mod=no
13214 output_verbose_link_cmd='echo'
13215 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13216 lt_int_apple_cc_single_mod=yes
13217 fi
13218 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13219 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13220 else
13221 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'
13222 fi
13223 module_cmds_F77='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
13224 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13225 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13226 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}'
13227 else
13228 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}'
13229 fi
13230 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}'
13231 hardcode_direct_F77=no
13232 hardcode_automatic_F77=yes
13233 hardcode_shlibpath_var_F77=unsupported
13234 whole_archive_flag_spec_F77='-all_load $convenience'
13235 link_all_deplibs_F77=yes
13236 fi
13237 ;;
13238
13239 dgux*)
13240 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13241 hardcode_libdir_flag_spec_F77='-L$libdir'
13242 hardcode_shlibpath_var_F77=no
13243 ;;
13244
13245 freebsd1*)
13246 ld_shlibs_F77=no
13247 ;;
13248
13249 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13250 # support. Future versions do this automatically, but an explicit c++rt0.o
13251 # does not break anything, and helps significantly (at the cost of a little
13252 # extra space).
13253 freebsd2.2*)
13254 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13255 hardcode_libdir_flag_spec_F77='-R$libdir'
13256 hardcode_direct_F77=yes
13257 hardcode_shlibpath_var_F77=no
13258 ;;
13259
13260 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13261 freebsd2*)
13262 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13263 hardcode_direct_F77=yes
13264 hardcode_minus_L_F77=yes
13265 hardcode_shlibpath_var_F77=no
13266 ;;
13267
13268 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13269 freebsd*)
13270 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13271 hardcode_libdir_flag_spec_F77='-R$libdir'
13272 hardcode_direct_F77=yes
13273 hardcode_shlibpath_var_F77=no
13274 ;;
13275
13276 hpux9*)
13277 if test "$GCC" = yes; then
13278 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'
13279 else
13280 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'
13281 fi
13282 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13283 hardcode_libdir_separator_F77=:
13284 hardcode_direct_F77=yes
13285
13286 # hardcode_minus_L: Not really in the search PATH,
13287 # but as the default location of the library.
13288 hardcode_minus_L_F77=yes
13289 export_dynamic_flag_spec_F77='${wl}-E'
13290 ;;
13291
13292 hpux10* | hpux11*)
13293 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13294 case "$host_cpu" in
13295 hppa*64*|ia64*)
13296 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13297 ;;
13298 *)
13299 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13300 ;;
13301 esac
13302 else
13303 case "$host_cpu" in
13304 hppa*64*|ia64*)
13305 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13306 ;;
13307 *)
13308 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13309 ;;
13310 esac
13311 fi
13312 if test "$with_gnu_ld" = no; then
13313 case "$host_cpu" in
13314 hppa*64*)
13315 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13316 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13317 hardcode_libdir_separator_F77=:
13318 hardcode_direct_F77=no
13319 hardcode_shlibpath_var_F77=no
13320 ;;
13321 ia64*)
13322 hardcode_libdir_flag_spec_F77='-L$libdir'
13323 hardcode_direct_F77=no
13324 hardcode_shlibpath_var_F77=no
13325
13326 # hardcode_minus_L: Not really in the search PATH,
13327 # but as the default location of the library.
13328 hardcode_minus_L_F77=yes
13329 ;;
13330 *)
13331 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13332 hardcode_libdir_separator_F77=:
13333 hardcode_direct_F77=yes
13334 export_dynamic_flag_spec_F77='${wl}-E'
13335
13336 # hardcode_minus_L: Not really in the search PATH,
13337 # but as the default location of the library.
13338 hardcode_minus_L_F77=yes
13339 ;;
13340 esac
13341 fi
13342 ;;
13343
13344 irix5* | irix6* | nonstopux*)
13345 if test "$GCC" = yes; then
13346 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'
13347 else
13348 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'
13349 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13350 fi
13351 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13352 hardcode_libdir_separator_F77=:
13353 link_all_deplibs_F77=yes
13354 ;;
13355
13356 netbsd*)
13357 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13358 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13359 else
13360 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13361 fi
13362 hardcode_libdir_flag_spec_F77='-R$libdir'
13363 hardcode_direct_F77=yes
13364 hardcode_shlibpath_var_F77=no
13365 ;;
13366
13367 newsos6)
13368 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13369 hardcode_direct_F77=yes
13370 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13371 hardcode_libdir_separator_F77=:
13372 hardcode_shlibpath_var_F77=no
13373 ;;
13374
13375 openbsd*)
13376 hardcode_direct_F77=yes
13377 hardcode_shlibpath_var_F77=no
13378 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13379 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13380 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13381 export_dynamic_flag_spec_F77='${wl}-E'
13382 else
13383 case $host_os in
13384 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13385 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13386 hardcode_libdir_flag_spec_F77='-R$libdir'
13387 ;;
13388 *)
13389 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13390 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13391 ;;
13392 esac
13393 fi
13394 ;;
13395
13396 os2*)
13397 hardcode_libdir_flag_spec_F77='-L$libdir'
13398 hardcode_minus_L_F77=yes
13399 allow_undefined_flag_F77=unsupported
13400 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'
13401 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13402 ;;
13403
13404 osf3*)
13405 if test "$GCC" = yes; then
13406 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13407 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'
13408 else
13409 allow_undefined_flag_F77=' -expect_unresolved \*'
13410 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'
13411 fi
13412 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13413 hardcode_libdir_separator_F77=:
13414 ;;
13415
13416 osf4* | osf5*) # as osf3* with the addition of -msym flag
13417 if test "$GCC" = yes; then
13418 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13419 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'
13420 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13421 else
13422 allow_undefined_flag_F77=' -expect_unresolved \*'
13423 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'
13424 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~
13425 $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'
13426
13427 # Both c and cxx compiler support -rpath directly
13428 hardcode_libdir_flag_spec_F77='-rpath $libdir'
13429 fi
13430 hardcode_libdir_separator_F77=:
13431 ;;
13432
13433 sco3.2v5*)
13434 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13435 hardcode_shlibpath_var_F77=no
13436 export_dynamic_flag_spec_F77='${wl}-Bexport'
13437 runpath_var=LD_RUN_PATH
13438 hardcode_runpath_var=yes
13439 ;;
13440
13441 solaris*)
13442 no_undefined_flag_F77=' -z text'
13443 if test "$GCC" = yes; then
13444 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13445 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13446 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13447 else
13448 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13449 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13450 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13451 fi
13452 hardcode_libdir_flag_spec_F77='-R$libdir'
13453 hardcode_shlibpath_var_F77=no
13454 case $host_os in
13455 solaris2.[0-5] | solaris2.[0-5].*) ;;
13456 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13457 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13458 esac
13459 link_all_deplibs_F77=yes
13460 ;;
13461
13462 sunos4*)
13463 if test "x$host_vendor" = xsequent; then
13464 # Use $CC to link under sequent, because it throws in some extra .o
13465 # files that make .init and .fini sections work.
13466 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13467 else
13468 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13469 fi
13470 hardcode_libdir_flag_spec_F77='-L$libdir'
13471 hardcode_direct_F77=yes
13472 hardcode_minus_L_F77=yes
13473 hardcode_shlibpath_var_F77=no
13474 ;;
13475
13476 sysv4)
13477 case $host_vendor in
13478 sni)
13479 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13480 hardcode_direct_F77=yes # is this really true???
13481 ;;
13482 siemens)
13483 ## LD is ld it makes a PLAMLIB
13484 ## CC just makes a GrossModule.
13485 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13486 reload_cmds_F77='$CC -r -o $output$reload_objs'
13487 hardcode_direct_F77=no
13488 ;;
13489 motorola)
13490 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13491 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13492 ;;
13493 esac
13494 runpath_var='LD_RUN_PATH'
13495 hardcode_shlibpath_var_F77=no
13496 ;;
13497
13498 sysv4.3*)
13499 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13500 hardcode_shlibpath_var_F77=no
13501 export_dynamic_flag_spec_F77='-Bexport'
13502 ;;
13503
13504 sysv4*MP*)
13505 if test -d /usr/nec; then
13506 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13507 hardcode_shlibpath_var_F77=no
13508 runpath_var=LD_RUN_PATH
13509 hardcode_runpath_var=yes
13510 ld_shlibs_F77=yes
13511 fi
13512 ;;
13513
13514 sysv4.2uw2*)
13515 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13516 hardcode_direct_F77=yes
13517 hardcode_minus_L_F77=no
13518 hardcode_shlibpath_var_F77=no
13519 hardcode_runpath_var=yes
13520 runpath_var=LD_RUN_PATH
13521 ;;
13522
13523 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
13524 no_undefined_flag_F77='${wl}-z ${wl}text'
13525 if test "$GCC" = yes; then
13526 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13527 else
13528 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13529 fi
13530 runpath_var='LD_RUN_PATH'
13531 hardcode_shlibpath_var_F77=no
13532 ;;
13533
13534 sysv5*)
13535 no_undefined_flag_F77=' -z text'
13536 # $CC -shared without GNU ld will not create a library from C++
13537 # object files and a static libstdc++, better avoid it by now
13538 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13539 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13540 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13541 hardcode_libdir_flag_spec_F77=
13542 hardcode_shlibpath_var_F77=no
13543 runpath_var='LD_RUN_PATH'
13544 ;;
13545
13546 uts4*)
13547 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13548 hardcode_libdir_flag_spec_F77='-L$libdir'
13549 hardcode_shlibpath_var_F77=no
13550 ;;
13551
13552 *)
13553 ld_shlibs_F77=no
13554 ;;
13555 esac
13556 fi
13557
13558echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
13559echo "${ECHO_T}$ld_shlibs_F77" >&6
13560test "$ld_shlibs_F77" = no && can_build_shared=no
13561
13562variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13563if test "$GCC" = yes; then
13564 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13565fi
13566
13567#
13568# Do we need to explicitly link libc?
13569#
13570case "x$archive_cmds_need_lc_F77" in
13571x|xyes)
13572 # Assume -lc should be added
13573 archive_cmds_need_lc_F77=yes
13574
13575 if test "$enable_shared" = yes && test "$GCC" = yes; then
13576 case $archive_cmds_F77 in
13577 *'~'*)
13578 # FIXME: we may have to deal with multi-command sequences.
13579 ;;
13580 '$CC '*)
13581 # Test whether the compiler implicitly links with -lc since on some
13582 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13583 # to ld, don't add -lc before -lgcc.
13584 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13585echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13586 $rm conftest*
13587 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13588
13589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13590 (eval $ac_compile) 2>&5
13591 ac_status=$?
13592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13593 (exit $ac_status); } 2>conftest.err; then
13594 soname=conftest
13595 lib=conftest
13596 libobjs=conftest.$ac_objext
13597 deplibs=
13598 wl=$lt_prog_compiler_wl_F77
13599 compiler_flags=-v
13600 linker_flags=-v
13601 verstring=
13602 output_objdir=.
13603 libname=conftest
13604 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
13605 allow_undefined_flag_F77=
13606 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13607 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13608 ac_status=$?
13609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13610 (exit $ac_status); }
13611 then
13612 archive_cmds_need_lc_F77=no
13613 else
13614 archive_cmds_need_lc_F77=yes
13615 fi
13616 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
13617 else
13618 cat conftest.err 1>&5
13619 fi
13620 $rm conftest*
13621 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
13622echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
13623 ;;
13624 esac
13625 fi
13626 ;;
13627esac
13628
13629echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13630echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13631hardcode_action_F77=
13632if test -n "$hardcode_libdir_flag_spec_F77" || \
13633 test -n "$runpath_var F77" || \
13634 test "X$hardcode_automatic_F77"="Xyes" ; then
13635
13636 # We can hardcode non-existant directories.
13637 if test "$hardcode_direct_F77" != no &&
13638 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13639 # have to relink, otherwise we might link with an installed library
13640 # when we should be linking with a yet-to-be-installed one
13641 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
13642 test "$hardcode_minus_L_F77" != no; then
13643 # Linking always hardcodes the temporary library directory.
13644 hardcode_action_F77=relink
13645 else
13646 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13647 hardcode_action_F77=immediate
13648 fi
13649else
13650 # We cannot hardcode anything, or else we can only hardcode existing
13651 # directories.
13652 hardcode_action_F77=unsupported
13653fi
13654echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
13655echo "${ECHO_T}$hardcode_action_F77" >&6
13656
13657if test "$hardcode_action_F77" = relink; then
13658 # Fast installation is not supported
13659 enable_fast_install=no
13660elif test "$shlibpath_overrides_runpath" = yes ||
13661 test "$enable_shared" = no; then
13662 # Fast installation is not necessary
13663 enable_fast_install=needless
13664fi
13665
13666striplib=
13667old_striplib=
13668echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13669echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13670if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13671 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13672 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13673 echo "$as_me:$LINENO: result: yes" >&5
13674echo "${ECHO_T}yes" >&6
13675else
13676# FIXME - insert some real tests, host_os isn't really good enough
13677 case $host_os in
13678 darwin*)
13679 if test -n "$STRIP" ; then
13680 striplib="$STRIP -x"
13681 echo "$as_me:$LINENO: result: yes" >&5
13682echo "${ECHO_T}yes" >&6
13683 else
13684 echo "$as_me:$LINENO: result: no" >&5
13685echo "${ECHO_T}no" >&6
13686fi
13687 ;;
13688 *)
13689 echo "$as_me:$LINENO: result: no" >&5
13690echo "${ECHO_T}no" >&6
13691 ;;
13692 esac
13693fi
13694
13695echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13696echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13697library_names_spec=
13698libname_spec='lib$name'
13699soname_spec=
13700shrext=".so"
13701postinstall_cmds=
13702postuninstall_cmds=
13703finish_cmds=
13704finish_eval=
13705shlibpath_var=
13706shlibpath_overrides_runpath=unknown
13707version_type=none
13708dynamic_linker="$host_os ld.so"
13709sys_lib_dlsearch_path_spec="/lib /usr/lib"
13710if test "$GCC" = yes; then
13711 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13712 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13713 # if the path contains ";" then we assume it to be the separator
13714 # otherwise default to the standard path separator (i.e. ":") - it is
13715 # assumed that no part of a normal pathname contains ";" but that should
13716 # okay in the real world where ";" in dirpaths is itself problematic.
13717 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13718 else
13719 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13720 fi
13721else
13722 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13723fi
13724need_lib_prefix=unknown
13725hardcode_into_libs=no
13726
13727# when you set need_version to no, make sure it does not cause -set_version
13728# flags to be left without arguments
13729need_version=unknown
13730
13731case $host_os in
13732aix3*)
13733 version_type=linux
13734 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13735 shlibpath_var=LIBPATH
13736
13737 # AIX 3 has no versioning support, so we append a major version to the name.
13738 soname_spec='${libname}${release}${shared_ext}$major'
13739 ;;
13740
13741aix4* | aix5*)
13742 version_type=linux
13743 need_lib_prefix=no
13744 need_version=no
13745 hardcode_into_libs=yes
13746 if test "$host_cpu" = ia64; then
13747 # AIX 5 supports IA64
13748 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13749 shlibpath_var=LD_LIBRARY_PATH
13750 else
13751 # With GCC up to 2.95.x, collect2 would create an import file
13752 # for dependence libraries. The import file would start with
13753 # the line `#! .'. This would cause the generated library to
13754 # depend on `.', always an invalid library. This was fixed in
13755 # development snapshots of GCC prior to 3.0.
13756 case $host_os in
13757 aix4 | aix4.[01] | aix4.[01].*)
13758 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13759 echo ' yes '
13760 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13761 :
13762 else
13763 can_build_shared=no
13764 fi
13765 ;;
13766 esac
13767 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13768 # soname into executable. Probably we can add versioning support to
13769 # collect2, so additional links can be useful in future.
13770 if test "$aix_use_runtimelinking" = yes; then
13771 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13772 # instead of lib<name>.a to let people know that these are not
13773 # typical AIX shared libraries.
13774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13775 else
13776 # We preserve .a as extension for shared libraries through AIX4.2
13777 # and later when we are not doing run time linking.
13778 library_names_spec='${libname}${release}.a $libname.a'
13779 soname_spec='${libname}${release}${shared_ext}$major'
13780 fi
13781 shlibpath_var=LIBPATH
13782 fi
13783 ;;
13784
13785amigaos*)
13786 library_names_spec='$libname.ixlibrary $libname.a'
13787 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13788 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'
13789 ;;
13790
13791beos*)
13792 library_names_spec='${libname}${shared_ext}'
13793 dynamic_linker="$host_os ld.so"
13794 shlibpath_var=LIBRARY_PATH
13795 ;;
13796
13797bsdi4*)
13798 version_type=linux
13799 need_version=no
13800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13801 soname_spec='${libname}${release}${shared_ext}$major'
13802 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13803 shlibpath_var=LD_LIBRARY_PATH
13804 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13805 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13806 # the default ld.so.conf also contains /usr/contrib/lib and
13807 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13808 # libtool to hard-code these into programs
13809 ;;
13810
13811cygwin* | mingw* | pw32*)
13812 version_type=windows
13813 shrext=".dll"
13814 need_version=no
13815 need_lib_prefix=no
13816
13817 case $GCC,$host_os in
13818 yes,cygwin* | yes,mingw* | yes,pw32*)
13819 library_names_spec='$libname.dll.a'
13820 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13821 postinstall_cmds='base_file=`basename \${file}`~
13822 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13823 dldir=$destdir/`dirname \$dlpath`~
13824 test -d \$dldir || mkdir -p \$dldir~
13825 $install_prog $dir/$dlname \$dldir/$dlname'
13826 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13827 dlpath=$dir/\$dldll~
13828 $rm \$dlpath'
13829 shlibpath_overrides_runpath=yes
13830
13831 case $host_os in
13832 cygwin*)
13833 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13834 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13835 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
13836 ;;
13837 mingw*)
13838 # MinGW DLLs use traditional 'lib' prefix
13839 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13840 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13841 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13842 # It is most probably a Windows format PATH printed by
13843 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13844 # path with ; separators, and with drive letters. We can handle the
13845 # drive letters (cygwin fileutils understands them), so leave them,
13846 # especially as we might pass files found there to a mingw objdump,
13847 # which wouldn't understand a cygwinified path. Ahh.
13848 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13849 else
13850 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13851 fi
13852 ;;
13853 pw32*)
13854 # pw32 DLLs use 'pw' prefix rather than 'lib'
13855 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13856 ;;
13857 esac
13858 ;;
13859
13860 *)
13861 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13862 ;;
13863 esac
13864 dynamic_linker='Win32 ld.exe'
13865 # FIXME: first we should search . and the directory the executable is in
13866 shlibpath_var=PATH
13867 ;;
13868
13869darwin* | rhapsody*)
13870 dynamic_linker="$host_os dyld"
13871 version_type=darwin
13872 need_lib_prefix=no
13873 need_version=no
13874 # FIXME: Relying on posixy $() will cause problems for
13875 # cross-compilation, but unfortunately the echo tests do not
13876 # yet detect zsh echo's removal of \ escapes.
13877 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13878 soname_spec='${libname}${release}${major}$shared_ext'
13879 shlibpath_overrides_runpath=yes
13880 shlibpath_var=DYLD_LIBRARY_PATH
13881 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
13882 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13883 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13884 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"`
13885 fi
13886 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13887 ;;
13888
13889dgux*)
13890 version_type=linux
13891 need_lib_prefix=no
13892 need_version=no
13893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13894 soname_spec='${libname}${release}${shared_ext}$major'
13895 shlibpath_var=LD_LIBRARY_PATH
13896 ;;
13897
13898freebsd1*)
13899 dynamic_linker=no
13900 ;;
13901
13902freebsd*)
13903 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13904 version_type=freebsd-$objformat
13905 case $version_type in
13906 freebsd-elf*)
13907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13908 need_version=no
13909 need_lib_prefix=no
13910 ;;
13911 freebsd-*)
13912 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13913 need_version=yes
13914 ;;
13915 esac
13916 shlibpath_var=LD_LIBRARY_PATH
13917 case $host_os in
13918 freebsd2*)
13919 shlibpath_overrides_runpath=yes
13920 ;;
13921 freebsd3.01* | freebsdelf3.01*)
13922 shlibpath_overrides_runpath=yes
13923 hardcode_into_libs=yes
13924 ;;
13925 *) # from 3.2 on
13926 shlibpath_overrides_runpath=no
13927 hardcode_into_libs=yes
13928 ;;
13929 esac
13930 ;;
13931
13932gnu*)
13933 version_type=linux
13934 need_lib_prefix=no
13935 need_version=no
13936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13937 soname_spec='${libname}${release}${shared_ext}$major'
13938 shlibpath_var=LD_LIBRARY_PATH
13939 hardcode_into_libs=yes
13940 ;;
13941
13942hpux9* | hpux10* | hpux11*)
13943 # Give a soname corresponding to the major version so that dld.sl refuses to
13944 # link against other versions.
13945 version_type=sunos
13946 need_lib_prefix=no
13947 need_version=no
13948 case "$host_cpu" in
13949 ia64*)
13950 shrext='.so'
13951 hardcode_into_libs=yes
13952 dynamic_linker="$host_os dld.so"
13953 shlibpath_var=LD_LIBRARY_PATH
13954 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13956 soname_spec='${libname}${release}${shared_ext}$major'
13957 if test "X$HPUX_IA64_MODE" = X32; then
13958 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13959 else
13960 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13961 fi
13962 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13963 ;;
13964 hppa*64*)
13965 shrext='.sl'
13966 hardcode_into_libs=yes
13967 dynamic_linker="$host_os dld.sl"
13968 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13969 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13971 soname_spec='${libname}${release}${shared_ext}$major'
13972 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13973 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13974 ;;
13975 *)
13976 shrext='.sl'
13977 dynamic_linker="$host_os dld.sl"
13978 shlibpath_var=SHLIB_PATH
13979 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13981 soname_spec='${libname}${release}${shared_ext}$major'
13982 ;;
13983 esac
13984 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13985 postinstall_cmds='chmod 555 $lib'
13986 ;;
13987
13988irix5* | irix6* | nonstopux*)
13989 case $host_os in
13990 nonstopux*) version_type=nonstopux ;;
13991 *)
13992 if test "$lt_cv_prog_gnu_ld" = yes; then
13993 version_type=linux
13994 else
13995 version_type=irix
13996 fi ;;
13997 esac
13998 need_lib_prefix=no
13999 need_version=no
14000 soname_spec='${libname}${release}${shared_ext}$major'
14001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14002 case $host_os in
14003 irix5* | nonstopux*)
14004 libsuff= shlibsuff=
14005 ;;
14006 *)
14007 case $LD in # libtool.m4 will add one of these switches to LD
14008 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14009 libsuff= shlibsuff= libmagic=32-bit;;
14010 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14011 libsuff=32 shlibsuff=N32 libmagic=N32;;
14012 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14013 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14014 *) libsuff= shlibsuff= libmagic=never-match;;
14015 esac
14016 ;;
14017 esac
14018 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14019 shlibpath_overrides_runpath=no
14020 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14021 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14022 hardcode_into_libs=yes
14023 ;;
14024
14025# No shared lib support for Linux oldld, aout, or coff.
14026linux*oldld* | linux*aout* | linux*coff*)
14027 dynamic_linker=no
14028 ;;
14029
14030# This must be Linux ELF.
14031linux*)
14032 version_type=linux
14033 need_lib_prefix=no
14034 need_version=no
14035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14036 soname_spec='${libname}${release}${shared_ext}$major'
14037 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14038 shlibpath_var=LD_LIBRARY_PATH
14039 shlibpath_overrides_runpath=no
14040 # This implies no fast_install, which is unacceptable.
14041 # Some rework will be needed to allow for fast_install
14042 # before this can be enabled.
14043 hardcode_into_libs=yes
14044
14045 # We used to test for /lib/ld.so.1 and disable shared libraries on
14046 # powerpc, because MkLinux only supported shared libraries with the
14047 # GNU dynamic linker. Since this was broken with cross compilers,
14048 # most powerpc-linux boxes support dynamic linking these days and
14049 # people can always --disable-shared, the test was removed, and we
14050 # assume the GNU/Linux dynamic linker is in use.
14051 dynamic_linker='GNU/Linux ld.so'
14052 ;;
14053
14054netbsd*)
14055 version_type=sunos
14056 need_lib_prefix=no
14057 need_version=no
14058 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14059 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14060 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14061 dynamic_linker='NetBSD (a.out) ld.so'
14062 else
14063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
14064 soname_spec='${libname}${release}${shared_ext}$major'
14065 dynamic_linker='NetBSD ld.elf_so'
14066 fi
14067 shlibpath_var=LD_LIBRARY_PATH
14068 shlibpath_overrides_runpath=yes
14069 hardcode_into_libs=yes
14070 ;;
14071
14072newsos6)
14073 version_type=linux
14074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14075 shlibpath_var=LD_LIBRARY_PATH
14076 shlibpath_overrides_runpath=yes
14077 ;;
14078
14079nto-qnx)
14080 version_type=linux
14081 need_lib_prefix=no
14082 need_version=no
14083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14084 soname_spec='${libname}${release}${shared_ext}$major'
14085 shlibpath_var=LD_LIBRARY_PATH
14086 shlibpath_overrides_runpath=yes
14087 ;;
14088
14089openbsd*)
14090 version_type=sunos
14091 need_lib_prefix=no
14092 need_version=no
14093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14094 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14095 shlibpath_var=LD_LIBRARY_PATH
14096 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14097 case $host_os in
14098 openbsd2.[89] | openbsd2.[89].*)
14099 shlibpath_overrides_runpath=no
14100 ;;
14101 *)
14102 shlibpath_overrides_runpath=yes
14103 ;;
14104 esac
14105 else
14106 shlibpath_overrides_runpath=yes
14107 fi
14108 ;;
14109
14110os2*)
14111 libname_spec='$name'
14112 shrext=".dll"
14113 need_lib_prefix=no
14114 library_names_spec='$libname${shared_ext} $libname.a'
14115 dynamic_linker='OS/2 ld.exe'
14116 shlibpath_var=LIBPATH
14117 ;;
14118
14119osf3* | osf4* | osf5*)
14120 version_type=osf
14121 need_lib_prefix=no
14122 need_version=no
14123 soname_spec='${libname}${release}${shared_ext}$major'
14124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14125 shlibpath_var=LD_LIBRARY_PATH
14126 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14127 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14128 ;;
14129
14130sco3.2v5*)
14131 version_type=osf
14132 soname_spec='${libname}${release}${shared_ext}$major'
14133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14134 shlibpath_var=LD_LIBRARY_PATH
14135 ;;
14136
14137solaris*)
14138 version_type=linux
14139 need_lib_prefix=no
14140 need_version=no
14141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14142 soname_spec='${libname}${release}${shared_ext}$major'
14143 shlibpath_var=LD_LIBRARY_PATH
14144 shlibpath_overrides_runpath=yes
14145 hardcode_into_libs=yes
14146 # ldd complains unless libraries are executable
14147 postinstall_cmds='chmod +x $lib'
14148 ;;
14149
14150sunos4*)
14151 version_type=sunos
14152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14153 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14154 shlibpath_var=LD_LIBRARY_PATH
14155 shlibpath_overrides_runpath=yes
14156 if test "$with_gnu_ld" = yes; then
14157 need_lib_prefix=no
14158 fi
14159 need_version=yes
14160 ;;
14161
14162sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14163 version_type=linux
14164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14165 soname_spec='${libname}${release}${shared_ext}$major'
14166 shlibpath_var=LD_LIBRARY_PATH
14167 case $host_vendor in
14168 sni)
14169 shlibpath_overrides_runpath=no
14170 need_lib_prefix=no
14171 export_dynamic_flag_spec='${wl}-Blargedynsym'
14172 runpath_var=LD_RUN_PATH
14173 ;;
14174 siemens)
14175 need_lib_prefix=no
14176 ;;
14177 motorola)
14178 need_lib_prefix=no
14179 need_version=no
14180 shlibpath_overrides_runpath=no
14181 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14182 ;;
14183 esac
14184 ;;
14185
14186sysv4*MP*)
14187 if test -d /usr/nec ;then
14188 version_type=linux
14189 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14190 soname_spec='$libname${shared_ext}.$major'
14191 shlibpath_var=LD_LIBRARY_PATH
14192 fi
14193 ;;
14194
14195uts4*)
14196 version_type=linux
14197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14198 soname_spec='${libname}${release}${shared_ext}$major'
14199 shlibpath_var=LD_LIBRARY_PATH
14200 ;;
14201
14202*)
14203 dynamic_linker=no
14204 ;;
14205esac
14206echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14207echo "${ECHO_T}$dynamic_linker" >&6
14208test "$dynamic_linker" = no && can_build_shared=no
14209
14210
14211# The else clause should only fire when bootstrapping the
14212# libtool distribution, otherwise you forgot to ship ltmain.sh
14213# with your package, and you will get complaints that there are
14214# no rules to generate ltmain.sh.
14215if test -f "$ltmain"; then
14216 # See if we are running on zsh, and set the options which allow our commands through
14217 # without removal of \ escapes.
14218 if test -n "${ZSH_VERSION+set}" ; then
14219 setopt NO_GLOB_SUBST
14220 fi
14221 # Now quote all the things that may contain metacharacters while being
14222 # careful not to overquote the AC_SUBSTed values. We take copies of the
14223 # variables and quote the copies for generation of the libtool script.
14224 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
14225 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14226 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14227 deplibs_check_method reload_flag reload_cmds need_locks \
14228 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14229 lt_cv_sys_global_symbol_to_c_name_address \
14230 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14231 old_postinstall_cmds old_postuninstall_cmds \
14232 compiler_F77 \
14233 CC_F77 \
14234 LD_F77 \
14235 lt_prog_compiler_wl_F77 \
14236 lt_prog_compiler_pic_F77 \
14237 lt_prog_compiler_static_F77 \
14238 lt_prog_compiler_no_builtin_flag_F77 \
14239 export_dynamic_flag_spec_F77 \
14240 thread_safe_flag_spec_F77 \
14241 whole_archive_flag_spec_F77 \
14242 enable_shared_with_static_runtimes_F77 \
14243 old_archive_cmds_F77 \
14244 old_archive_from_new_cmds_F77 \
14245 predep_objects_F77 \
14246 postdep_objects_F77 \
14247 predeps_F77 \
14248 postdeps_F77 \
14249 compiler_lib_search_path_F77 \
14250 archive_cmds_F77 \
14251 archive_expsym_cmds_F77 \
14252 postinstall_cmds_F77 \
14253 postuninstall_cmds_F77 \
14254 old_archive_from_expsyms_cmds_F77 \
14255 allow_undefined_flag_F77 \
14256 no_undefined_flag_F77 \
14257 export_symbols_cmds_F77 \
14258 hardcode_libdir_flag_spec_F77 \
14259 hardcode_libdir_flag_spec_ld_F77 \
14260 hardcode_libdir_separator_F77 \
14261 hardcode_automatic_F77 \
14262 module_cmds_F77 \
14263 module_expsym_cmds_F77 \
14264 lt_cv_prog_compiler_c_o_F77 \
14265 exclude_expsyms_F77 \
14266 include_expsyms_F77; do
14267
14268 case $var in
14269 old_archive_cmds_F77 | \
14270 old_archive_from_new_cmds_F77 | \
14271 archive_cmds_F77 | \
14272 archive_expsym_cmds_F77 | \
14273 module_cmds_F77 | \
14274 module_expsym_cmds_F77 | \
14275 old_archive_from_expsyms_cmds_F77 | \
14276 export_symbols_cmds_F77 | \
14277 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14278 postinstall_cmds | postuninstall_cmds | \
14279 old_postinstall_cmds | old_postuninstall_cmds | \
14280 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14281 # Double-quote double-evaled strings.
14282 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14283 ;;
14284 *)
14285 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14286 ;;
14287 esac
14288 done
14289
14290 case $lt_echo in
14291 *'\$0 --fallback-echo"')
14292 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14293 ;;
14294 esac
14295
14296cfgfile="$ofile"
14297
14298 cat <<__EOF__ >> "$cfgfile"
14299# ### BEGIN LIBTOOL TAG CONFIG: $tagname
14300
14301# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14302
14303# Shell to use when invoking shell scripts.
14304SHELL=$lt_SHELL
14305
14306# Whether or not to build shared libraries.
14307build_libtool_libs=$enable_shared
14308
14309# Whether or not to build static libraries.
14310build_old_libs=$enable_static
14311
14312# Whether or not to add -lc for building shared libraries.
14313build_libtool_need_lc=$archive_cmds_need_lc_F77
14314
14315# Whether or not to disallow shared libs when runtime libs are static
14316allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14317
14318# Whether or not to optimize for fast installation.
14319fast_install=$enable_fast_install
14320
14321# The host system.
14322host_alias=$host_alias
14323host=$host
14324
14325# An echo program that does not interpret backslashes.
14326echo=$lt_echo
14327
14328# The archiver.
14329AR=$lt_AR
14330AR_FLAGS=$lt_AR_FLAGS
14331
14332# A C compiler.
14333LTCC=$lt_LTCC
14334
14335# A language-specific compiler.
14336CC=$lt_compiler_F77
14337
14338# Is the compiler the GNU C compiler?
14339with_gcc=$GCC_F77
14340
14341# An ERE matcher.
14342EGREP=$lt_EGREP
14343
14344# The linker used to build libraries.
14345LD=$lt_LD_F77
14346
14347# Whether we need hard or soft links.
14348LN_S=$lt_LN_S
14349
14350# A BSD-compatible nm program.
14351NM=$lt_NM
14352
14353# A symbol stripping program
14354STRIP=$STRIP
14355
14356# Used to examine libraries when file_magic_cmd begins "file"
14357MAGIC_CMD=$MAGIC_CMD
14358
14359# Used on cygwin: DLL creation program.
14360DLLTOOL="$DLLTOOL"
14361
14362# Used on cygwin: object dumper.
14363OBJDUMP="$OBJDUMP"
14364
14365# Used on cygwin: assembler.
14366AS="$AS"
14367
14368# The name of the directory that contains temporary libtool files.
14369objdir=$objdir
14370
14371# How to create reloadable object files.
14372reload_flag=$lt_reload_flag
14373reload_cmds=$lt_reload_cmds
14374
14375# How to pass a linker flag through the compiler.
14376wl=$lt_lt_prog_compiler_wl_F77
14377
14378# Object file suffix (normally "o").
14379objext="$ac_objext"
14380
14381# Old archive suffix (normally "a").
14382libext="$libext"
14383
14384# Shared library suffix (normally ".so").
14385shrext='$shrext'
14386
14387# Executable file suffix (normally "").
14388exeext="$exeext"
14389
14390# Additional compiler flags for building library objects.
14391pic_flag=$lt_lt_prog_compiler_pic_F77
14392pic_mode=$pic_mode
14393
14394# What is the maximum length of a command?
14395max_cmd_len=$lt_cv_sys_max_cmd_len
14396
14397# Does compiler simultaneously support -c and -o options?
14398compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14399
14400# Must we lock files when doing compilation ?
14401need_locks=$lt_need_locks
14402
14403# Do we need the lib prefix for modules?
14404need_lib_prefix=$need_lib_prefix
14405
14406# Do we need a version for libraries?
14407need_version=$need_version
14408
14409# Whether dlopen is supported.
14410dlopen_support=$enable_dlopen
14411
14412# Whether dlopen of programs is supported.
14413dlopen_self=$enable_dlopen_self
14414
14415# Whether dlopen of statically linked programs is supported.
14416dlopen_self_static=$enable_dlopen_self_static
14417
14418# Compiler flag to prevent dynamic linking.
14419link_static_flag=$lt_lt_prog_compiler_static_F77
14420
14421# Compiler flag to turn off builtin functions.
14422no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14423
14424# Compiler flag to allow reflexive dlopens.
14425export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14426
14427# Compiler flag to generate shared objects directly from archives.
14428whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14429
14430# Compiler flag to generate thread-safe objects.
14431thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14432
14433# Library versioning type.
14434version_type=$version_type
14435
14436# Format of library name prefix.
14437libname_spec=$lt_libname_spec
14438
14439# List of archive names. First name is the real one, the rest are links.
14440# The last name is the one that the linker finds with -lNAME.
14441library_names_spec=$lt_library_names_spec
14442
14443# The coded name of the library, if different from the real name.
14444soname_spec=$lt_soname_spec
14445
14446# Commands used to build and install an old-style archive.
14447RANLIB=$lt_RANLIB
14448old_archive_cmds=$lt_old_archive_cmds_F77
14449old_postinstall_cmds=$lt_old_postinstall_cmds
14450old_postuninstall_cmds=$lt_old_postuninstall_cmds
14451
14452# Create an old-style archive from a shared archive.
14453old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14454
14455# Create a temporary old-style archive to link instead of a shared archive.
14456old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14457
14458# Commands used to build and install a shared archive.
14459archive_cmds=$lt_archive_cmds_F77
14460archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14461postinstall_cmds=$lt_postinstall_cmds
14462postuninstall_cmds=$lt_postuninstall_cmds
14463
14464# Commands used to build a loadable module (assumed same as above if empty)
14465module_cmds=$lt_module_cmds_F77
14466module_expsym_cmds=$lt_module_expsym_cmds_F77
14467
14468# Commands to strip libraries.
14469old_striplib=$lt_old_striplib
14470striplib=$lt_striplib
14471
14472# Dependencies to place before the objects being linked to create a
14473# shared library.
14474predep_objects=$lt_predep_objects_F77
14475
14476# Dependencies to place after the objects being linked to create a
14477# shared library.
14478postdep_objects=$lt_postdep_objects_F77
14479
14480# Dependencies to place before the objects being linked to create a
14481# shared library.
14482predeps=$lt_predeps_F77
14483
14484# Dependencies to place after the objects being linked to create a
14485# shared library.
14486postdeps=$lt_postdeps_F77
14487
14488# The library search path used internally by the compiler when linking
14489# a shared library.
14490compiler_lib_search_path=$lt_compiler_lib_search_path_F77
14491
14492# Method to check whether dependent libraries are shared objects.
14493deplibs_check_method=$lt_deplibs_check_method
14494
14495# Command to use when deplibs_check_method == file_magic.
14496file_magic_cmd=$lt_file_magic_cmd
14497
14498# Flag that allows shared libraries with undefined symbols to be built.
14499allow_undefined_flag=$lt_allow_undefined_flag_F77
14500
14501# Flag that forces no undefined symbols.
14502no_undefined_flag=$lt_no_undefined_flag_F77
14503
14504# Commands used to finish a libtool library installation in a directory.
14505finish_cmds=$lt_finish_cmds
14506
14507# Same as above, but a single script fragment to be evaled but not shown.
14508finish_eval=$lt_finish_eval
14509
14510# Take the output of nm and produce a listing of raw symbols and C names.
14511global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14512
14513# Transform the output of nm in a proper C declaration
14514global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14515
14516# Transform the output of nm in a C name address pair
14517global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14518
14519# This is the shared library runtime path variable.
14520runpath_var=$runpath_var
14521
14522# This is the shared library path variable.
14523shlibpath_var=$shlibpath_var
14524
14525# Is shlibpath searched before the hard-coded library search path?
14526shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14527
14528# How to hardcode a shared library path into an executable.
14529hardcode_action=$hardcode_action_F77
14530
14531# Whether we should hardcode library paths into libraries.
14532hardcode_into_libs=$hardcode_into_libs
14533
14534# Flag to hardcode \$libdir into a binary during linking.
14535# This must work even if \$libdir does not exist.
14536hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
14537
14538# If ld is used when linking, flag to hardcode \$libdir into
14539# a binary during linking. This must work even if \$libdir does
14540# not exist.
14541hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
14542
14543# Whether we need a single -rpath flag with a separated argument.
14544hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
14545
14546# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14547# resulting binary.
14548hardcode_direct=$hardcode_direct_F77
14549
14550# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14551# resulting binary.
14552hardcode_minus_L=$hardcode_minus_L_F77
14553
14554# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14555# the resulting binary.
14556hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
14557
14558# Set to yes if building a shared library automatically hardcodes DIR into the library
14559# and all subsequent libraries and executables linked against it.
14560hardcode_automatic=$hardcode_automatic_F77
14561
14562# Variables whose values should be saved in libtool wrapper scripts and
14563# restored at relink time.
14564variables_saved_for_relink="$variables_saved_for_relink"
14565
14566# Whether libtool must link a program against all its dependency libraries.
14567link_all_deplibs=$link_all_deplibs_F77
14568
14569# Compile-time system search path for libraries
14570sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14571
14572# Run-time system search path for libraries
14573sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14574
14575# Fix the shell variable \$srcfile for the compiler.
14576fix_srcfile_path="$fix_srcfile_path_F77"
14577
14578# Set to yes if exported symbols are required.
14579always_export_symbols=$always_export_symbols_F77
14580
14581# The commands to list exported symbols.
14582export_symbols_cmds=$lt_export_symbols_cmds_F77
14583
14584# The commands to extract the exported symbol list from a shared archive.
14585extract_expsyms_cmds=$lt_extract_expsyms_cmds
14586
14587# Symbols that should not be listed in the preloaded symbols.
14588exclude_expsyms=$lt_exclude_expsyms_F77
14589
14590# Symbols that must always be exported.
14591include_expsyms=$lt_include_expsyms_F77
14592
14593# ### END LIBTOOL TAG CONFIG: $tagname
14594
14595__EOF__
14596
14597
14598else
14599 # If there is no Makefile yet, we rely on a make rule to execute
14600 # `config.status --recheck' to rerun these tests and create the
14601 # libtool script then.
14602 test -f Makefile && make "$ltmain"
14603fi
14604
14605
14606ac_ext=c
14607ac_cpp='$CPP $CPPFLAGS'
14608ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14609ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14610ac_compiler_gnu=$ac_cv_c_compiler_gnu
14611
14612CC="$lt_save_CC"
14613
14614 else
14615 tagname=""
14616 fi
14617 ;;
14618
14619 GCJ)
14620 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
14621
14622
14623
14624# Source file extension for Java test sources.
14625ac_ext=java
14626
14627# Object file extension for compiled Java test sources.
14628objext=o
14629objext_GCJ=$objext
14630
14631# Code to be used in simple compile tests
14632lt_simple_compile_test_code="class foo {}\n"
14633
14634# Code to be used in simple link tests
14635lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
14636
14637# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14638
14639# If no C compiler was specified, use CC.
14640LTCC=${LTCC-"$CC"}
14641
14642# Allow CC to be a program name with arguments.
14643compiler=$CC
14644
14645
14646# Allow CC to be a program name with arguments.
14647lt_save_CC="$CC"
14648CC=${GCJ-"gcj"}
14649compiler=$CC
14650compiler_GCJ=$CC
14651
14652# GCJ did not exist at the time GCC didn't implicitly link libc in.
14653archive_cmds_need_lc_GCJ=no
14654
John Criswell47fdd832003-07-14 16:52:07 +000014655
14656lt_prog_compiler_no_builtin_flag_GCJ=
14657
14658if test "$GCC" = yes; then
14659 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
14660
14661 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14662echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
14663if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14664 echo $ECHO_N "(cached) $ECHO_C" >&6
14665else
14666 lt_cv_prog_compiler_rtti_exceptions=no
14667 ac_outfile=conftest.$ac_objext
14668 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14669 lt_compiler_flag="-fno-rtti -fno-exceptions"
14670 # Insert the option either (1) after the last *FLAGS variable, or
14671 # (2) before a word containing "conftest.", or (3) at the end.
14672 # Note that $ac_compile itself does not contain backslashes and begins
14673 # with a dollar sign (not a hyphen), so the echo should work correctly.
14674 # The option is referenced via a variable to avoid confusing sed.
14675 lt_compile=`echo "$ac_compile" | $SED \
14676 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14677 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14678 -e 's:$: $lt_compiler_flag:'`
John Criswell8a54a1e2004-06-22 21:35:10 +000014679 (eval echo "\"\$as_me:14679: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014680 (eval "$lt_compile" 2>conftest.err)
14681 ac_status=$?
14682 cat conftest.err >&5
John Criswell8a54a1e2004-06-22 21:35:10 +000014683 echo "$as_me:14683: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014684 if (exit $ac_status) && test -s "$ac_outfile"; then
14685 # The compiler can only warn and ignore the option if not recognized
14686 # So say no if there are warnings
14687 if test ! -s conftest.err; then
14688 lt_cv_prog_compiler_rtti_exceptions=yes
14689 fi
14690 fi
14691 $rm conftest*
14692
14693fi
14694echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14695echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
14696
14697if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14698 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
14699else
14700 :
14701fi
14702
14703fi
14704
14705lt_prog_compiler_wl_GCJ=
14706lt_prog_compiler_pic_GCJ=
14707lt_prog_compiler_static_GCJ=
14708
14709echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14710echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
14711
14712 if test "$GCC" = yes; then
14713 lt_prog_compiler_wl_GCJ='-Wl,'
14714 lt_prog_compiler_static_GCJ='-static'
14715
14716 case $host_os in
14717 aix*)
14718 # All AIX code is PIC.
14719 if test "$host_cpu" = ia64; then
14720 # AIX 5 now supports IA64 processor
14721 lt_prog_compiler_static_GCJ='-Bstatic'
14722 fi
14723 ;;
14724
14725 amigaos*)
14726 # FIXME: we need at least 68020 code to build shared libraries, but
14727 # adding the `-m68020' flag to GCC prevents building anything better,
14728 # like `-m68040'.
14729 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
14730 ;;
14731
14732 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14733 # PIC is the default for these OSes.
14734 ;;
14735
14736 mingw* | pw32* | os2*)
14737 # This hack is so that the source file can tell whether it is being
14738 # built for inclusion in a dll (and should export symbols for example).
14739 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
14740 ;;
14741
14742 darwin* | rhapsody*)
14743 # PIC is the default on this platform
14744 # Common symbols not allowed in MH_DYLIB files
14745 lt_prog_compiler_pic_GCJ='-fno-common'
14746 ;;
14747
14748 msdosdjgpp*)
14749 # Just because we use GCC doesn't mean we suddenly get shared libraries
14750 # on systems that don't support them.
14751 lt_prog_compiler_can_build_shared_GCJ=no
14752 enable_shared=no
14753 ;;
14754
14755 sysv4*MP*)
14756 if test -d /usr/nec; then
14757 lt_prog_compiler_pic_GCJ=-Kconform_pic
14758 fi
14759 ;;
14760
14761 hpux*)
14762 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14763 # not for PA HP-UX.
14764 case "$host_cpu" in
14765 hppa*64*|ia64*)
14766 # +Z the default
14767 ;;
14768 *)
14769 lt_prog_compiler_pic_GCJ='-fPIC'
14770 ;;
14771 esac
14772 ;;
14773
14774 *)
14775 lt_prog_compiler_pic_GCJ='-fPIC'
14776 ;;
14777 esac
14778 else
14779 # PORTME Check for flag to pass linker flags through the system compiler.
14780 case $host_os in
14781 aix*)
14782 lt_prog_compiler_wl_GCJ='-Wl,'
14783 if test "$host_cpu" = ia64; then
14784 # AIX 5 now supports IA64 processor
14785 lt_prog_compiler_static_GCJ='-Bstatic'
14786 else
14787 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
14788 fi
14789 ;;
14790
14791 mingw* | pw32* | os2*)
14792 # This hack is so that the source file can tell whether it is being
14793 # built for inclusion in a dll (and should export symbols for example).
14794 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
14795 ;;
14796
14797 hpux9* | hpux10* | hpux11*)
14798 lt_prog_compiler_wl_GCJ='-Wl,'
14799 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14800 # not for PA HP-UX.
14801 case "$host_cpu" in
14802 hppa*64*|ia64*)
14803 # +Z the default
14804 ;;
14805 *)
14806 lt_prog_compiler_pic_GCJ='+Z'
14807 ;;
14808 esac
14809 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14810 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
14811 ;;
14812
14813 irix5* | irix6* | nonstopux*)
14814 lt_prog_compiler_wl_GCJ='-Wl,'
14815 # PIC (with -KPIC) is the default.
14816 lt_prog_compiler_static_GCJ='-non_shared'
14817 ;;
14818
14819 newsos6)
14820 lt_prog_compiler_pic_GCJ='-KPIC'
14821 lt_prog_compiler_static_GCJ='-Bstatic'
14822 ;;
14823
14824 linux*)
14825 case $CC in
14826 icc|ecc)
14827 lt_prog_compiler_wl_GCJ='-Wl,'
14828 lt_prog_compiler_pic_GCJ='-KPIC'
14829 lt_prog_compiler_static_GCJ='-static'
14830 ;;
14831 ccc)
14832 lt_prog_compiler_wl_GCJ='-Wl,'
14833 # All Alpha code is PIC.
14834 lt_prog_compiler_static_GCJ='-non_shared'
14835 ;;
14836 esac
14837 ;;
14838
14839 osf3* | osf4* | osf5*)
14840 lt_prog_compiler_wl_GCJ='-Wl,'
14841 # All OSF/1 code is PIC.
14842 lt_prog_compiler_static_GCJ='-non_shared'
14843 ;;
14844
14845 sco3.2v5*)
14846 lt_prog_compiler_pic_GCJ='-Kpic'
14847 lt_prog_compiler_static_GCJ='-dn'
14848 ;;
14849
14850 solaris*)
14851 lt_prog_compiler_wl_GCJ='-Wl,'
14852 lt_prog_compiler_pic_GCJ='-KPIC'
14853 lt_prog_compiler_static_GCJ='-Bstatic'
14854 ;;
14855
14856 sunos4*)
14857 lt_prog_compiler_wl_GCJ='-Qoption ld '
14858 lt_prog_compiler_pic_GCJ='-PIC'
14859 lt_prog_compiler_static_GCJ='-Bstatic'
14860 ;;
14861
14862 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14863 lt_prog_compiler_wl_GCJ='-Wl,'
14864 lt_prog_compiler_pic_GCJ='-KPIC'
14865 lt_prog_compiler_static_GCJ='-Bstatic'
14866 ;;
14867
14868 sysv4*MP*)
14869 if test -d /usr/nec ;then
14870 lt_prog_compiler_pic_GCJ='-Kconform_pic'
14871 lt_prog_compiler_static_GCJ='-Bstatic'
14872 fi
14873 ;;
14874
14875 uts4*)
14876 lt_prog_compiler_pic_GCJ='-pic'
14877 lt_prog_compiler_static_GCJ='-Bstatic'
14878 ;;
14879
14880 *)
14881 lt_prog_compiler_can_build_shared_GCJ=no
14882 ;;
14883 esac
14884 fi
14885
14886echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
14887echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
14888
14889#
14890# Check to make sure the PIC flag actually works.
14891#
14892if test -n "$lt_prog_compiler_pic_GCJ"; then
14893 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
14894echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
14895if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
14896 echo $ECHO_N "(cached) $ECHO_C" >&6
14897else
14898 lt_prog_compiler_pic_works_GCJ=no
14899 ac_outfile=conftest.$ac_objext
14900 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14901 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
14902 # Insert the option either (1) after the last *FLAGS variable, or
14903 # (2) before a word containing "conftest.", or (3) at the end.
14904 # Note that $ac_compile itself does not contain backslashes and begins
14905 # with a dollar sign (not a hyphen), so the echo should work correctly.
14906 # The option is referenced via a variable to avoid confusing sed.
14907 lt_compile=`echo "$ac_compile" | $SED \
14908 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14909 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14910 -e 's:$: $lt_compiler_flag:'`
John Criswell8a54a1e2004-06-22 21:35:10 +000014911 (eval echo "\"\$as_me:14911: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014912 (eval "$lt_compile" 2>conftest.err)
14913 ac_status=$?
14914 cat conftest.err >&5
John Criswell8a54a1e2004-06-22 21:35:10 +000014915 echo "$as_me:14915: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014916 if (exit $ac_status) && test -s "$ac_outfile"; then
14917 # The compiler can only warn and ignore the option if not recognized
14918 # So say no if there are warnings
14919 if test ! -s conftest.err; then
14920 lt_prog_compiler_pic_works_GCJ=yes
14921 fi
14922 fi
14923 $rm conftest*
14924
14925fi
14926echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
14927echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
14928
14929if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
14930 case $lt_prog_compiler_pic_GCJ in
14931 "" | " "*) ;;
14932 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
14933 esac
14934else
14935 lt_prog_compiler_pic_GCJ=
14936 lt_prog_compiler_can_build_shared_GCJ=no
14937fi
14938
14939fi
14940case "$host_os" in
14941 # For platforms which do not support PIC, -DPIC is meaningless:
14942 *djgpp*)
14943 lt_prog_compiler_pic_GCJ=
14944 ;;
14945 *)
14946 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
14947 ;;
14948esac
14949
14950echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14951echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14952if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
14953 echo $ECHO_N "(cached) $ECHO_C" >&6
14954else
14955 lt_cv_prog_compiler_c_o_GCJ=no
14956 $rm -r conftest 2>/dev/null
14957 mkdir conftest
14958 cd conftest
14959 mkdir out
14960 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14961
14962 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
14963 # that will create temporary files in the current directory regardless of
14964 # the output directory. Thus, making CWD read-only will cause this test
14965 # to fail, enabling locking or at least warning the user not to do parallel
14966 # builds.
14967 chmod -w .
14968
14969 lt_compiler_flag="-o out/conftest2.$ac_objext"
14970 # Insert the option either (1) after the last *FLAGS variable, or
14971 # (2) before a word containing "conftest.", or (3) at the end.
14972 # Note that $ac_compile itself does not contain backslashes and begins
14973 # with a dollar sign (not a hyphen), so the echo should work correctly.
14974 lt_compile=`echo "$ac_compile" | $SED \
14975 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14976 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14977 -e 's:$: $lt_compiler_flag:'`
John Criswell8a54a1e2004-06-22 21:35:10 +000014978 (eval echo "\"\$as_me:14978: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014979 (eval "$lt_compile" 2>out/conftest.err)
14980 ac_status=$?
14981 cat out/conftest.err >&5
John Criswell8a54a1e2004-06-22 21:35:10 +000014982 echo "$as_me:14982: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014983 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14984 then
14985 # The compiler can only warn and ignore the option if not recognized
14986 # So say no if there are warnings
14987 if test ! -s out/conftest.err; then
14988 lt_cv_prog_compiler_c_o_GCJ=yes
14989 fi
14990 fi
14991 chmod u+w .
14992 $rm conftest* out/*
14993 rmdir out
14994 cd ..
14995 rmdir conftest
14996 $rm conftest*
14997
14998fi
14999echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15000echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15001
15002
15003hard_links="nottested"
15004if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15005 # do not overwrite the value of need_locks provided by the user
15006 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15007echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15008 hard_links=yes
15009 $rm conftest*
15010 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15011 touch conftest.a
15012 ln conftest.a conftest.b 2>&5 || hard_links=no
15013 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15014 echo "$as_me:$LINENO: result: $hard_links" >&5
15015echo "${ECHO_T}$hard_links" >&6
15016 if test "$hard_links" = no; then
15017 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15018echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15019 need_locks=warn
15020 fi
15021else
15022 need_locks=no
15023fi
15024
15025echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15026echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15027
15028 runpath_var=
15029 allow_undefined_flag_GCJ=
15030 enable_shared_with_static_runtimes_GCJ=no
15031 archive_cmds_GCJ=
15032 archive_expsym_cmds_GCJ=
15033 old_archive_From_new_cmds_GCJ=
15034 old_archive_from_expsyms_cmds_GCJ=
15035 export_dynamic_flag_spec_GCJ=
15036 whole_archive_flag_spec_GCJ=
15037 thread_safe_flag_spec_GCJ=
15038 hardcode_libdir_flag_spec_GCJ=
15039 hardcode_libdir_flag_spec_ld_GCJ=
15040 hardcode_libdir_separator_GCJ=
15041 hardcode_direct_GCJ=no
15042 hardcode_minus_L_GCJ=no
15043 hardcode_shlibpath_var_GCJ=unsupported
15044 link_all_deplibs_GCJ=unknown
15045 hardcode_automatic_GCJ=no
15046 module_cmds_GCJ=
15047 module_expsym_cmds_GCJ=
15048 always_export_symbols_GCJ=no
15049 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15050 # include_expsyms should be a list of space-separated symbols to be *always*
15051 # included in the symbol list
15052 include_expsyms_GCJ=
15053 # exclude_expsyms can be an extended regexp of symbols to exclude
15054 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15055 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15056 # as well as any symbol that contains `d'.
15057 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15058 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15059 # platforms (ab)use it in PIC code, but their linkers get confused if
15060 # the symbol is explicitly referenced. Since portable code cannot
15061 # rely on this symbol name, it's probably fine to never include it in
15062 # preloaded symbol tables.
15063 extract_expsyms_cmds=
15064
15065 case $host_os in
15066 cygwin* | mingw* | pw32*)
15067 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15068 # When not using gcc, we currently assume that we are using
15069 # Microsoft Visual C++.
15070 if test "$GCC" != yes; then
15071 with_gnu_ld=no
15072 fi
15073 ;;
15074 openbsd*)
15075 with_gnu_ld=no
15076 ;;
15077 esac
15078
15079 ld_shlibs_GCJ=yes
15080 if test "$with_gnu_ld" = yes; then
15081 # If archive_cmds runs LD, not CC, wlarc should be empty
15082 wlarc='${wl}'
15083
15084 # See if GNU ld supports shared libraries.
15085 case $host_os in
15086 aix3* | aix4* | aix5*)
15087 # On AIX/PPC, the GNU linker is very broken
15088 if test "$host_cpu" != ia64; then
15089 ld_shlibs_GCJ=no
15090 cat <<EOF 1>&2
15091
15092*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15093*** to be unable to reliably create shared libraries on AIX.
15094*** Therefore, libtool is disabling shared libraries support. If you
15095*** really care for shared libraries, you may want to modify your PATH
15096*** so that a non-GNU linker is found, and then restart.
15097
15098EOF
15099 fi
15100 ;;
15101
15102 amigaos*)
15103 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)'
15104 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15105 hardcode_minus_L_GCJ=yes
15106
15107 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15108 # that the semantics of dynamic libraries on AmigaOS, at least up
15109 # to version 4, is to share data among multiple programs linked
15110 # with the same dynamic library. Since this doesn't match the
15111 # behavior of shared libraries on other platforms, we can't use
15112 # them.
15113 ld_shlibs_GCJ=no
15114 ;;
15115
15116 beos*)
15117 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15118 allow_undefined_flag_GCJ=unsupported
15119 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15120 # support --undefined. This deserves some investigation. FIXME
15121 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15122 else
15123 ld_shlibs_GCJ=no
15124 fi
15125 ;;
15126
15127 cygwin* | mingw* | pw32*)
15128 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15129 # as there is no search path for DLLs.
15130 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15131 allow_undefined_flag_GCJ=unsupported
15132 always_export_symbols_GCJ=no
15133 enable_shared_with_static_runtimes_GCJ=yes
15134 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15135
15136 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15137 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15138 # If the export-symbols file already is a .def file (1st line
15139 # is EXPORTS), use it as is; otherwise, prepend...
15140 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15141 cp $export_symbols $output_objdir/$soname.def;
15142 else
15143 echo EXPORTS > $output_objdir/$soname.def;
15144 cat $export_symbols >> $output_objdir/$soname.def;
15145 fi~
15146 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15147 else
15148 ld_shlibs=no
15149 fi
15150 ;;
15151
15152 netbsd*)
15153 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15154 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15155 wlarc=
15156 else
15157 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15158 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15159 fi
15160 ;;
15161
15162 solaris* | sysv5*)
15163 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15164 ld_shlibs_GCJ=no
15165 cat <<EOF 1>&2
15166
15167*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15168*** create shared libraries on Solaris systems. Therefore, libtool
15169*** is disabling shared libraries support. We urge you to upgrade GNU
15170*** binutils to release 2.9.1 or newer. Another option is to modify
15171*** your PATH or compiler configuration so that the native linker is
15172*** used, and then restart.
15173
15174EOF
15175 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15176 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15177 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15178 else
15179 ld_shlibs_GCJ=no
15180 fi
15181 ;;
15182
15183 sunos4*)
15184 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15185 wlarc=
15186 hardcode_direct_GCJ=yes
15187 hardcode_shlibpath_var_GCJ=no
15188 ;;
15189
15190 *)
15191 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15192 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15193 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15194 else
15195 ld_shlibs_GCJ=no
15196 fi
15197 ;;
15198 esac
15199
15200 if test "$ld_shlibs_GCJ" = yes; then
15201 runpath_var=LD_RUN_PATH
15202 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15203 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15204 # ancient GNU ld didn't support --whole-archive et. al.
15205 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15206 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15207 else
15208 whole_archive_flag_spec_GCJ=
15209 fi
15210 fi
15211 else
15212 # PORTME fill in a description of your system's linker (not GNU ld)
15213 case $host_os in
15214 aix3*)
15215 allow_undefined_flag_GCJ=unsupported
15216 always_export_symbols_GCJ=yes
15217 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'
15218 # Note: this linker hardcodes the directories in LIBPATH if there
15219 # are no directories specified by -L.
15220 hardcode_minus_L_GCJ=yes
15221 if test "$GCC" = yes && test -z "$link_static_flag"; then
15222 # Neither direct hardcoding nor static linking is supported with a
15223 # broken collect2.
15224 hardcode_direct_GCJ=unsupported
15225 fi
15226 ;;
15227
15228 aix4* | aix5*)
15229 if test "$host_cpu" = ia64; then
15230 # On IA64, the linker does run time linking by default, so we don't
15231 # have to do anything special.
15232 aix_use_runtimelinking=no
15233 exp_sym_flag='-Bexport'
15234 no_entry_flag=""
15235 else
15236 # If we're using GNU nm, then we don't want the "-C" option.
15237 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15238 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15239 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'
15240 else
15241 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'
15242 fi
15243 aix_use_runtimelinking=no
15244
15245 # Test if we are trying to use run time linking or normal
15246 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15247 # need to do runtime linking.
15248 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15249 for ld_flag in $LDFLAGS; do
15250 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15251 aix_use_runtimelinking=yes
15252 break
15253 fi
15254 done
15255 esac
15256
15257 exp_sym_flag='-bexport'
15258 no_entry_flag='-bnoentry'
15259 fi
15260
15261 # When large executables or shared objects are built, AIX ld can
15262 # have problems creating the table of contents. If linking a library
15263 # or program results in "error TOC overflow" add -mminimal-toc to
15264 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15265 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15266
15267 archive_cmds_GCJ=''
15268 hardcode_direct_GCJ=yes
15269 hardcode_libdir_separator_GCJ=':'
15270 link_all_deplibs_GCJ=yes
15271
15272 if test "$GCC" = yes; then
15273 case $host_os in aix4.012|aix4.012.*)
15274 # We only want to do this on AIX 4.2 and lower, the check
15275 # below for broken collect2 doesn't work under 4.3+
15276 collect2name=`${CC} -print-prog-name=collect2`
15277 if test -f "$collect2name" && \
15278 strings "$collect2name" | grep resolve_lib_name >/dev/null
15279 then
15280 # We have reworked collect2
15281 hardcode_direct_GCJ=yes
15282 else
15283 # We have old collect2
15284 hardcode_direct_GCJ=unsupported
15285 # It fails to find uninstalled libraries when the uninstalled
15286 # path is not listed in the libpath. Setting hardcode_minus_L
15287 # to unsupported forces relinking
15288 hardcode_minus_L_GCJ=yes
15289 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15290 hardcode_libdir_separator_GCJ=
15291 fi
15292 esac
15293 shared_flag='-shared'
15294 else
15295 # not using gcc
15296 if test "$host_cpu" = ia64; then
15297 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15298 # chokes on -Wl,-G. The following line is correct:
15299 shared_flag='-G'
15300 else
15301 if test "$aix_use_runtimelinking" = yes; then
15302 shared_flag='${wl}-G'
15303 else
15304 shared_flag='${wl}-bM:SRE'
15305 fi
15306 fi
15307 fi
15308
15309 # It seems that -bexpall does not export symbols beginning with
15310 # underscore (_), so it is better to generate a list of symbols to export.
15311 always_export_symbols_GCJ=yes
15312 if test "$aix_use_runtimelinking" = yes; then
15313 # Warning - without using the other runtime loading flags (-brtl),
15314 # -berok will link without error, but may produce a broken library.
15315 allow_undefined_flag_GCJ='-berok'
15316 # Determine the default libpath from the value encoded in an empty executable.
15317 cat >conftest.$ac_ext <<_ACEOF
15318#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000015319/* confdefs.h. */
15320_ACEOF
15321cat confdefs.h >>conftest.$ac_ext
15322cat >>conftest.$ac_ext <<_ACEOF
15323/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000015324
John Criswell47fdd832003-07-14 16:52:07 +000015325int
15326main ()
15327{
15328
15329 ;
15330 return 0;
15331}
15332_ACEOF
15333rm -f conftest.$ac_objext conftest$ac_exeext
15334if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15335 (eval $ac_link) 2>&5
15336 ac_status=$?
15337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15338 (exit $ac_status); } &&
15339 { ac_try='test -s conftest$ac_exeext'
15340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15341 (eval $ac_try) 2>&5
15342 ac_status=$?
15343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15344 (exit $ac_status); }; }; then
15345
15346aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15347}'`
15348# Check for a 64-bit object if we didn't find anything.
15349if 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; }
15350}'`; fi
15351else
15352 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015353sed 's/^/| /' conftest.$ac_ext >&5
15354
John Criswell47fdd832003-07-14 16:52:07 +000015355fi
15356rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15357if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15358
15359 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15360 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"
15361 else
15362 if test "$host_cpu" = ia64; then
15363 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
15364 allow_undefined_flag_GCJ="-z nodefs"
15365 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"
15366 else
15367 # Determine the default libpath from the value encoded in an empty executable.
15368 cat >conftest.$ac_ext <<_ACEOF
15369#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000015370/* confdefs.h. */
15371_ACEOF
15372cat confdefs.h >>conftest.$ac_ext
15373cat >>conftest.$ac_ext <<_ACEOF
15374/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000015375
John Criswell47fdd832003-07-14 16:52:07 +000015376int
15377main ()
15378{
15379
15380 ;
15381 return 0;
15382}
15383_ACEOF
15384rm -f conftest.$ac_objext conftest$ac_exeext
15385if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15386 (eval $ac_link) 2>&5
15387 ac_status=$?
15388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15389 (exit $ac_status); } &&
15390 { ac_try='test -s conftest$ac_exeext'
15391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15392 (eval $ac_try) 2>&5
15393 ac_status=$?
15394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15395 (exit $ac_status); }; }; then
15396
15397aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15398}'`
15399# Check for a 64-bit object if we didn't find anything.
15400if 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; }
15401}'`; fi
15402else
15403 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015404sed 's/^/| /' conftest.$ac_ext >&5
15405
John Criswell47fdd832003-07-14 16:52:07 +000015406fi
15407rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15408if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15409
15410 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15411 # Warning - without using the other run time loading flags,
15412 # -berok will link without error, but may produce a broken library.
15413 no_undefined_flag_GCJ=' ${wl}-bernotok'
15414 allow_undefined_flag_GCJ=' ${wl}-berok'
15415 # -bexpall does not export symbols beginning with underscore (_)
15416 always_export_symbols_GCJ=yes
15417 # Exported symbols can be pulled into shared objects from archives
15418 whole_archive_flag_spec_GCJ=' '
15419 archive_cmds_need_lc_GCJ=yes
15420 # This is similar to how AIX traditionally builds it's shared libraries.
15421 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'
15422 fi
15423 fi
15424 ;;
15425
15426 amigaos*)
15427 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)'
15428 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15429 hardcode_minus_L_GCJ=yes
15430 # see comment about different semantics on the GNU ld section
15431 ld_shlibs_GCJ=no
15432 ;;
15433
15434 bsdi4*)
15435 export_dynamic_flag_spec_GCJ=-rdynamic
15436 ;;
15437
15438 cygwin* | mingw* | pw32*)
15439 # When not using gcc, we currently assume that we are using
15440 # Microsoft Visual C++.
15441 # hardcode_libdir_flag_spec is actually meaningless, as there is
15442 # no search path for DLLs.
15443 hardcode_libdir_flag_spec_GCJ=' '
15444 allow_undefined_flag_GCJ=unsupported
15445 # Tell ltmain to make .lib files, not .a files.
15446 libext=lib
15447 # Tell ltmain to make .dll files, not .so files.
15448 shrext=".dll"
15449 # FIXME: Setting linknames here is a bad hack.
15450 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15451 # The linker will automatically build a .lib file if we build a DLL.
15452 old_archive_From_new_cmds_GCJ='true'
15453 # FIXME: Should let the user specify the lib program.
15454 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
15455 fix_srcfile_path='`cygpath -w "$srcfile"`'
15456 enable_shared_with_static_runtimes_GCJ=yes
15457 ;;
15458
15459 darwin* | rhapsody*)
15460 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
15461 archive_cmds_need_lc_GCJ=no
15462 case "$host_os" in
15463 rhapsody* | darwin1.[012])
15464 allow_undefined_flag_GCJ='-undefined suppress'
15465 ;;
15466 *) # Darwin 1.3 on
15467 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15468 ;;
15469 esac
15470 # FIXME: Relying on posixy $() will cause problems for
15471 # cross-compilation, but unfortunately the echo tests do not
15472 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
15473 # `"' quotes if we put them in here... so don't!
15474 lt_int_apple_cc_single_mod=no
15475 output_verbose_link_cmd='echo'
15476 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15477 lt_int_apple_cc_single_mod=yes
15478 fi
15479 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15480 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15481 else
15482 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'
15483 fi
15484 module_cmds_GCJ='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
15485 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15486 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15487 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}'
15488 else
15489 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}'
15490 fi
15491 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}'
15492 hardcode_direct_GCJ=no
15493 hardcode_automatic_GCJ=yes
15494 hardcode_shlibpath_var_GCJ=unsupported
15495 whole_archive_flag_spec_GCJ='-all_load $convenience'
15496 link_all_deplibs_GCJ=yes
15497 fi
15498 ;;
15499
15500 dgux*)
15501 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15502 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15503 hardcode_shlibpath_var_GCJ=no
15504 ;;
15505
15506 freebsd1*)
15507 ld_shlibs_GCJ=no
15508 ;;
15509
15510 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15511 # support. Future versions do this automatically, but an explicit c++rt0.o
15512 # does not break anything, and helps significantly (at the cost of a little
15513 # extra space).
15514 freebsd2.2*)
15515 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15516 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15517 hardcode_direct_GCJ=yes
15518 hardcode_shlibpath_var_GCJ=no
15519 ;;
15520
15521 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15522 freebsd2*)
15523 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15524 hardcode_direct_GCJ=yes
15525 hardcode_minus_L_GCJ=yes
15526 hardcode_shlibpath_var_GCJ=no
15527 ;;
15528
15529 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15530 freebsd*)
15531 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15532 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15533 hardcode_direct_GCJ=yes
15534 hardcode_shlibpath_var_GCJ=no
15535 ;;
15536
15537 hpux9*)
15538 if test "$GCC" = yes; then
15539 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'
15540 else
15541 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'
15542 fi
15543 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15544 hardcode_libdir_separator_GCJ=:
15545 hardcode_direct_GCJ=yes
15546
15547 # hardcode_minus_L: Not really in the search PATH,
15548 # but as the default location of the library.
15549 hardcode_minus_L_GCJ=yes
15550 export_dynamic_flag_spec_GCJ='${wl}-E'
15551 ;;
15552
15553 hpux10* | hpux11*)
15554 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15555 case "$host_cpu" in
15556 hppa*64*|ia64*)
15557 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15558 ;;
15559 *)
15560 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15561 ;;
15562 esac
15563 else
15564 case "$host_cpu" in
15565 hppa*64*|ia64*)
15566 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15567 ;;
15568 *)
15569 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15570 ;;
15571 esac
15572 fi
15573 if test "$with_gnu_ld" = no; then
15574 case "$host_cpu" in
15575 hppa*64*)
15576 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15577 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
15578 hardcode_libdir_separator_GCJ=:
15579 hardcode_direct_GCJ=no
15580 hardcode_shlibpath_var_GCJ=no
15581 ;;
15582 ia64*)
15583 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15584 hardcode_direct_GCJ=no
15585 hardcode_shlibpath_var_GCJ=no
15586
15587 # hardcode_minus_L: Not really in the search PATH,
15588 # but as the default location of the library.
15589 hardcode_minus_L_GCJ=yes
15590 ;;
15591 *)
15592 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15593 hardcode_libdir_separator_GCJ=:
15594 hardcode_direct_GCJ=yes
15595 export_dynamic_flag_spec_GCJ='${wl}-E'
15596
15597 # hardcode_minus_L: Not really in the search PATH,
15598 # but as the default location of the library.
15599 hardcode_minus_L_GCJ=yes
15600 ;;
15601 esac
15602 fi
15603 ;;
15604
15605 irix5* | irix6* | nonstopux*)
15606 if test "$GCC" = yes; then
15607 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'
15608 else
15609 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'
15610 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
15611 fi
15612 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15613 hardcode_libdir_separator_GCJ=:
15614 link_all_deplibs_GCJ=yes
15615 ;;
15616
15617 netbsd*)
15618 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15619 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15620 else
15621 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15622 fi
15623 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15624 hardcode_direct_GCJ=yes
15625 hardcode_shlibpath_var_GCJ=no
15626 ;;
15627
15628 newsos6)
15629 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15630 hardcode_direct_GCJ=yes
15631 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15632 hardcode_libdir_separator_GCJ=:
15633 hardcode_shlibpath_var_GCJ=no
15634 ;;
15635
15636 openbsd*)
15637 hardcode_direct_GCJ=yes
15638 hardcode_shlibpath_var_GCJ=no
15639 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15640 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15641 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15642 export_dynamic_flag_spec_GCJ='${wl}-E'
15643 else
15644 case $host_os in
15645 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15646 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15647 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15648 ;;
15649 *)
15650 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15651 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15652 ;;
15653 esac
15654 fi
15655 ;;
15656
15657 os2*)
15658 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15659 hardcode_minus_L_GCJ=yes
15660 allow_undefined_flag_GCJ=unsupported
15661 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'
15662 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15663 ;;
15664
15665 osf3*)
15666 if test "$GCC" = yes; then
15667 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
15668 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'
15669 else
15670 allow_undefined_flag_GCJ=' -expect_unresolved \*'
15671 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'
15672 fi
15673 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15674 hardcode_libdir_separator_GCJ=:
15675 ;;
15676
15677 osf4* | osf5*) # as osf3* with the addition of -msym flag
15678 if test "$GCC" = yes; then
15679 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
15680 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'
15681 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15682 else
15683 allow_undefined_flag_GCJ=' -expect_unresolved \*'
15684 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'
15685 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~
15686 $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'
15687
15688 # Both c and cxx compiler support -rpath directly
15689 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
15690 fi
15691 hardcode_libdir_separator_GCJ=:
15692 ;;
15693
15694 sco3.2v5*)
15695 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15696 hardcode_shlibpath_var_GCJ=no
15697 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
15698 runpath_var=LD_RUN_PATH
15699 hardcode_runpath_var=yes
15700 ;;
15701
15702 solaris*)
15703 no_undefined_flag_GCJ=' -z text'
15704 if test "$GCC" = yes; then
15705 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15706 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15707 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15708 else
15709 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15710 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15711 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15712 fi
15713 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15714 hardcode_shlibpath_var_GCJ=no
15715 case $host_os in
15716 solaris2.[0-5] | solaris2.[0-5].*) ;;
15717 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
15718 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
15719 esac
15720 link_all_deplibs_GCJ=yes
15721 ;;
15722
15723 sunos4*)
15724 if test "x$host_vendor" = xsequent; then
15725 # Use $CC to link under sequent, because it throws in some extra .o
15726 # files that make .init and .fini sections work.
15727 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15728 else
15729 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15730 fi
15731 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15732 hardcode_direct_GCJ=yes
15733 hardcode_minus_L_GCJ=yes
15734 hardcode_shlibpath_var_GCJ=no
15735 ;;
15736
15737 sysv4)
15738 case $host_vendor in
15739 sni)
15740 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15741 hardcode_direct_GCJ=yes # is this really true???
15742 ;;
15743 siemens)
15744 ## LD is ld it makes a PLAMLIB
15745 ## CC just makes a GrossModule.
15746 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15747 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
15748 hardcode_direct_GCJ=no
15749 ;;
15750 motorola)
15751 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15752 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
15753 ;;
15754 esac
15755 runpath_var='LD_RUN_PATH'
15756 hardcode_shlibpath_var_GCJ=no
15757 ;;
15758
15759 sysv4.3*)
15760 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15761 hardcode_shlibpath_var_GCJ=no
15762 export_dynamic_flag_spec_GCJ='-Bexport'
15763 ;;
15764
15765 sysv4*MP*)
15766 if test -d /usr/nec; then
15767 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15768 hardcode_shlibpath_var_GCJ=no
15769 runpath_var=LD_RUN_PATH
15770 hardcode_runpath_var=yes
15771 ld_shlibs_GCJ=yes
15772 fi
15773 ;;
15774
15775 sysv4.2uw2*)
15776 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15777 hardcode_direct_GCJ=yes
15778 hardcode_minus_L_GCJ=no
15779 hardcode_shlibpath_var_GCJ=no
15780 hardcode_runpath_var=yes
15781 runpath_var=LD_RUN_PATH
15782 ;;
15783
15784 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
15785 no_undefined_flag_GCJ='${wl}-z ${wl}text'
15786 if test "$GCC" = yes; then
15787 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15788 else
15789 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15790 fi
15791 runpath_var='LD_RUN_PATH'
15792 hardcode_shlibpath_var_GCJ=no
15793 ;;
15794
15795 sysv5*)
15796 no_undefined_flag_GCJ=' -z text'
15797 # $CC -shared without GNU ld will not create a library from C++
15798 # object files and a static libstdc++, better avoid it by now
15799 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15800 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15801 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15802 hardcode_libdir_flag_spec_GCJ=
15803 hardcode_shlibpath_var_GCJ=no
15804 runpath_var='LD_RUN_PATH'
15805 ;;
15806
15807 uts4*)
15808 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15809 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15810 hardcode_shlibpath_var_GCJ=no
15811 ;;
15812
15813 *)
15814 ld_shlibs_GCJ=no
15815 ;;
15816 esac
15817 fi
15818
15819echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
15820echo "${ECHO_T}$ld_shlibs_GCJ" >&6
15821test "$ld_shlibs_GCJ" = no && can_build_shared=no
15822
15823variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15824if test "$GCC" = yes; then
15825 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15826fi
15827
15828#
15829# Do we need to explicitly link libc?
15830#
15831case "x$archive_cmds_need_lc_GCJ" in
15832x|xyes)
15833 # Assume -lc should be added
15834 archive_cmds_need_lc_GCJ=yes
15835
15836 if test "$enable_shared" = yes && test "$GCC" = yes; then
15837 case $archive_cmds_GCJ in
15838 *'~'*)
15839 # FIXME: we may have to deal with multi-command sequences.
15840 ;;
15841 '$CC '*)
15842 # Test whether the compiler implicitly links with -lc since on some
15843 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15844 # to ld, don't add -lc before -lgcc.
15845 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15846echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
15847 $rm conftest*
15848 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15849
15850 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15851 (eval $ac_compile) 2>&5
15852 ac_status=$?
15853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15854 (exit $ac_status); } 2>conftest.err; then
15855 soname=conftest
15856 lib=conftest
15857 libobjs=conftest.$ac_objext
15858 deplibs=
15859 wl=$lt_prog_compiler_wl_GCJ
15860 compiler_flags=-v
15861 linker_flags=-v
15862 verstring=
15863 output_objdir=.
15864 libname=conftest
15865 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
15866 allow_undefined_flag_GCJ=
15867 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15868 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15869 ac_status=$?
15870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15871 (exit $ac_status); }
15872 then
15873 archive_cmds_need_lc_GCJ=no
15874 else
15875 archive_cmds_need_lc_GCJ=yes
15876 fi
15877 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
15878 else
15879 cat conftest.err 1>&5
15880 fi
15881 $rm conftest*
15882 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
15883echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
15884 ;;
15885 esac
15886 fi
15887 ;;
15888esac
15889
15890echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15891echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15892hardcode_action_GCJ=
15893if test -n "$hardcode_libdir_flag_spec_GCJ" || \
15894 test -n "$runpath_var GCJ" || \
15895 test "X$hardcode_automatic_GCJ"="Xyes" ; then
15896
15897 # We can hardcode non-existant directories.
15898 if test "$hardcode_direct_GCJ" != no &&
15899 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15900 # have to relink, otherwise we might link with an installed library
15901 # when we should be linking with a yet-to-be-installed one
15902 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
15903 test "$hardcode_minus_L_GCJ" != no; then
15904 # Linking always hardcodes the temporary library directory.
15905 hardcode_action_GCJ=relink
15906 else
15907 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15908 hardcode_action_GCJ=immediate
15909 fi
15910else
15911 # We cannot hardcode anything, or else we can only hardcode existing
15912 # directories.
15913 hardcode_action_GCJ=unsupported
15914fi
15915echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
15916echo "${ECHO_T}$hardcode_action_GCJ" >&6
15917
15918if test "$hardcode_action_GCJ" = relink; then
15919 # Fast installation is not supported
15920 enable_fast_install=no
15921elif test "$shlibpath_overrides_runpath" = yes ||
15922 test "$enable_shared" = no; then
15923 # Fast installation is not necessary
15924 enable_fast_install=needless
15925fi
15926
15927striplib=
15928old_striplib=
15929echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15930echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15931if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15932 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15933 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15934 echo "$as_me:$LINENO: result: yes" >&5
15935echo "${ECHO_T}yes" >&6
15936else
15937# FIXME - insert some real tests, host_os isn't really good enough
15938 case $host_os in
15939 darwin*)
15940 if test -n "$STRIP" ; then
15941 striplib="$STRIP -x"
15942 echo "$as_me:$LINENO: result: yes" >&5
15943echo "${ECHO_T}yes" >&6
15944 else
15945 echo "$as_me:$LINENO: result: no" >&5
15946echo "${ECHO_T}no" >&6
15947fi
15948 ;;
15949 *)
15950 echo "$as_me:$LINENO: result: no" >&5
15951echo "${ECHO_T}no" >&6
15952 ;;
15953 esac
15954fi
15955
15956echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15957echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
15958library_names_spec=
15959libname_spec='lib$name'
15960soname_spec=
15961shrext=".so"
15962postinstall_cmds=
15963postuninstall_cmds=
15964finish_cmds=
15965finish_eval=
15966shlibpath_var=
15967shlibpath_overrides_runpath=unknown
15968version_type=none
15969dynamic_linker="$host_os ld.so"
15970sys_lib_dlsearch_path_spec="/lib /usr/lib"
15971if test "$GCC" = yes; then
15972 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15973 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15974 # if the path contains ";" then we assume it to be the separator
15975 # otherwise default to the standard path separator (i.e. ":") - it is
15976 # assumed that no part of a normal pathname contains ";" but that should
15977 # okay in the real world where ";" in dirpaths is itself problematic.
15978 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15979 else
15980 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15981 fi
15982else
15983 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15984fi
15985need_lib_prefix=unknown
15986hardcode_into_libs=no
15987
15988# when you set need_version to no, make sure it does not cause -set_version
15989# flags to be left without arguments
15990need_version=unknown
15991
15992case $host_os in
15993aix3*)
15994 version_type=linux
15995 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15996 shlibpath_var=LIBPATH
15997
15998 # AIX 3 has no versioning support, so we append a major version to the name.
15999 soname_spec='${libname}${release}${shared_ext}$major'
16000 ;;
16001
16002aix4* | aix5*)
16003 version_type=linux
16004 need_lib_prefix=no
16005 need_version=no
16006 hardcode_into_libs=yes
16007 if test "$host_cpu" = ia64; then
16008 # AIX 5 supports IA64
16009 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16010 shlibpath_var=LD_LIBRARY_PATH
16011 else
16012 # With GCC up to 2.95.x, collect2 would create an import file
16013 # for dependence libraries. The import file would start with
16014 # the line `#! .'. This would cause the generated library to
16015 # depend on `.', always an invalid library. This was fixed in
16016 # development snapshots of GCC prior to 3.0.
16017 case $host_os in
16018 aix4 | aix4.[01] | aix4.[01].*)
16019 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16020 echo ' yes '
16021 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16022 :
16023 else
16024 can_build_shared=no
16025 fi
16026 ;;
16027 esac
16028 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16029 # soname into executable. Probably we can add versioning support to
16030 # collect2, so additional links can be useful in future.
16031 if test "$aix_use_runtimelinking" = yes; then
16032 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16033 # instead of lib<name>.a to let people know that these are not
16034 # typical AIX shared libraries.
16035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16036 else
16037 # We preserve .a as extension for shared libraries through AIX4.2
16038 # and later when we are not doing run time linking.
16039 library_names_spec='${libname}${release}.a $libname.a'
16040 soname_spec='${libname}${release}${shared_ext}$major'
16041 fi
16042 shlibpath_var=LIBPATH
16043 fi
16044 ;;
16045
16046amigaos*)
16047 library_names_spec='$libname.ixlibrary $libname.a'
16048 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16049 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'
16050 ;;
16051
16052beos*)
16053 library_names_spec='${libname}${shared_ext}'
16054 dynamic_linker="$host_os ld.so"
16055 shlibpath_var=LIBRARY_PATH
16056 ;;
16057
16058bsdi4*)
16059 version_type=linux
16060 need_version=no
16061 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16062 soname_spec='${libname}${release}${shared_ext}$major'
16063 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16064 shlibpath_var=LD_LIBRARY_PATH
16065 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16066 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16067 # the default ld.so.conf also contains /usr/contrib/lib and
16068 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16069 # libtool to hard-code these into programs
16070 ;;
16071
16072cygwin* | mingw* | pw32*)
16073 version_type=windows
16074 shrext=".dll"
16075 need_version=no
16076 need_lib_prefix=no
16077
16078 case $GCC,$host_os in
16079 yes,cygwin* | yes,mingw* | yes,pw32*)
16080 library_names_spec='$libname.dll.a'
16081 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16082 postinstall_cmds='base_file=`basename \${file}`~
16083 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16084 dldir=$destdir/`dirname \$dlpath`~
16085 test -d \$dldir || mkdir -p \$dldir~
16086 $install_prog $dir/$dlname \$dldir/$dlname'
16087 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16088 dlpath=$dir/\$dldll~
16089 $rm \$dlpath'
16090 shlibpath_overrides_runpath=yes
16091
16092 case $host_os in
16093 cygwin*)
16094 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16095 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16096 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
16097 ;;
16098 mingw*)
16099 # MinGW DLLs use traditional 'lib' prefix
16100 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16101 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16102 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16103 # It is most probably a Windows format PATH printed by
16104 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16105 # path with ; separators, and with drive letters. We can handle the
16106 # drive letters (cygwin fileutils understands them), so leave them,
16107 # especially as we might pass files found there to a mingw objdump,
16108 # which wouldn't understand a cygwinified path. Ahh.
16109 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16110 else
16111 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16112 fi
16113 ;;
16114 pw32*)
16115 # pw32 DLLs use 'pw' prefix rather than 'lib'
16116 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16117 ;;
16118 esac
16119 ;;
16120
16121 *)
16122 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16123 ;;
16124 esac
16125 dynamic_linker='Win32 ld.exe'
16126 # FIXME: first we should search . and the directory the executable is in
16127 shlibpath_var=PATH
16128 ;;
16129
16130darwin* | rhapsody*)
16131 dynamic_linker="$host_os dyld"
16132 version_type=darwin
16133 need_lib_prefix=no
16134 need_version=no
16135 # FIXME: Relying on posixy $() will cause problems for
16136 # cross-compilation, but unfortunately the echo tests do not
16137 # yet detect zsh echo's removal of \ escapes.
16138 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16139 soname_spec='${libname}${release}${major}$shared_ext'
16140 shlibpath_overrides_runpath=yes
16141 shlibpath_var=DYLD_LIBRARY_PATH
16142 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
16143 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16144 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
16145 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"`
16146 fi
16147 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16148 ;;
16149
16150dgux*)
16151 version_type=linux
16152 need_lib_prefix=no
16153 need_version=no
16154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16155 soname_spec='${libname}${release}${shared_ext}$major'
16156 shlibpath_var=LD_LIBRARY_PATH
16157 ;;
16158
16159freebsd1*)
16160 dynamic_linker=no
16161 ;;
16162
16163freebsd*)
16164 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16165 version_type=freebsd-$objformat
16166 case $version_type in
16167 freebsd-elf*)
16168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16169 need_version=no
16170 need_lib_prefix=no
16171 ;;
16172 freebsd-*)
16173 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16174 need_version=yes
16175 ;;
16176 esac
16177 shlibpath_var=LD_LIBRARY_PATH
16178 case $host_os in
16179 freebsd2*)
16180 shlibpath_overrides_runpath=yes
16181 ;;
16182 freebsd3.01* | freebsdelf3.01*)
16183 shlibpath_overrides_runpath=yes
16184 hardcode_into_libs=yes
16185 ;;
16186 *) # from 3.2 on
16187 shlibpath_overrides_runpath=no
16188 hardcode_into_libs=yes
16189 ;;
16190 esac
16191 ;;
16192
16193gnu*)
16194 version_type=linux
16195 need_lib_prefix=no
16196 need_version=no
16197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16198 soname_spec='${libname}${release}${shared_ext}$major'
16199 shlibpath_var=LD_LIBRARY_PATH
16200 hardcode_into_libs=yes
16201 ;;
16202
16203hpux9* | hpux10* | hpux11*)
16204 # Give a soname corresponding to the major version so that dld.sl refuses to
16205 # link against other versions.
16206 version_type=sunos
16207 need_lib_prefix=no
16208 need_version=no
16209 case "$host_cpu" in
16210 ia64*)
16211 shrext='.so'
16212 hardcode_into_libs=yes
16213 dynamic_linker="$host_os dld.so"
16214 shlibpath_var=LD_LIBRARY_PATH
16215 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16216 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16217 soname_spec='${libname}${release}${shared_ext}$major'
16218 if test "X$HPUX_IA64_MODE" = X32; then
16219 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16220 else
16221 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16222 fi
16223 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16224 ;;
16225 hppa*64*)
16226 shrext='.sl'
16227 hardcode_into_libs=yes
16228 dynamic_linker="$host_os dld.sl"
16229 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16230 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16231 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16232 soname_spec='${libname}${release}${shared_ext}$major'
16233 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16234 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16235 ;;
16236 *)
16237 shrext='.sl'
16238 dynamic_linker="$host_os dld.sl"
16239 shlibpath_var=SHLIB_PATH
16240 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16242 soname_spec='${libname}${release}${shared_ext}$major'
16243 ;;
16244 esac
16245 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16246 postinstall_cmds='chmod 555 $lib'
16247 ;;
16248
16249irix5* | irix6* | nonstopux*)
16250 case $host_os in
16251 nonstopux*) version_type=nonstopux ;;
16252 *)
16253 if test "$lt_cv_prog_gnu_ld" = yes; then
16254 version_type=linux
16255 else
16256 version_type=irix
16257 fi ;;
16258 esac
16259 need_lib_prefix=no
16260 need_version=no
16261 soname_spec='${libname}${release}${shared_ext}$major'
16262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16263 case $host_os in
16264 irix5* | nonstopux*)
16265 libsuff= shlibsuff=
16266 ;;
16267 *)
16268 case $LD in # libtool.m4 will add one of these switches to LD
16269 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16270 libsuff= shlibsuff= libmagic=32-bit;;
16271 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16272 libsuff=32 shlibsuff=N32 libmagic=N32;;
16273 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16274 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16275 *) libsuff= shlibsuff= libmagic=never-match;;
16276 esac
16277 ;;
16278 esac
16279 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16280 shlibpath_overrides_runpath=no
16281 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16282 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16283 hardcode_into_libs=yes
16284 ;;
16285
16286# No shared lib support for Linux oldld, aout, or coff.
16287linux*oldld* | linux*aout* | linux*coff*)
16288 dynamic_linker=no
16289 ;;
16290
16291# This must be Linux ELF.
16292linux*)
16293 version_type=linux
16294 need_lib_prefix=no
16295 need_version=no
16296 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16297 soname_spec='${libname}${release}${shared_ext}$major'
16298 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16299 shlibpath_var=LD_LIBRARY_PATH
16300 shlibpath_overrides_runpath=no
16301 # This implies no fast_install, which is unacceptable.
16302 # Some rework will be needed to allow for fast_install
16303 # before this can be enabled.
16304 hardcode_into_libs=yes
16305
16306 # We used to test for /lib/ld.so.1 and disable shared libraries on
16307 # powerpc, because MkLinux only supported shared libraries with the
16308 # GNU dynamic linker. Since this was broken with cross compilers,
16309 # most powerpc-linux boxes support dynamic linking these days and
16310 # people can always --disable-shared, the test was removed, and we
16311 # assume the GNU/Linux dynamic linker is in use.
16312 dynamic_linker='GNU/Linux ld.so'
16313 ;;
16314
16315netbsd*)
16316 version_type=sunos
16317 need_lib_prefix=no
16318 need_version=no
16319 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16321 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16322 dynamic_linker='NetBSD (a.out) ld.so'
16323 else
16324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
16325 soname_spec='${libname}${release}${shared_ext}$major'
16326 dynamic_linker='NetBSD ld.elf_so'
16327 fi
16328 shlibpath_var=LD_LIBRARY_PATH
16329 shlibpath_overrides_runpath=yes
16330 hardcode_into_libs=yes
16331 ;;
16332
16333newsos6)
16334 version_type=linux
16335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16336 shlibpath_var=LD_LIBRARY_PATH
16337 shlibpath_overrides_runpath=yes
16338 ;;
16339
16340nto-qnx)
16341 version_type=linux
16342 need_lib_prefix=no
16343 need_version=no
16344 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16345 soname_spec='${libname}${release}${shared_ext}$major'
16346 shlibpath_var=LD_LIBRARY_PATH
16347 shlibpath_overrides_runpath=yes
16348 ;;
16349
16350openbsd*)
16351 version_type=sunos
16352 need_lib_prefix=no
16353 need_version=no
16354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16355 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16356 shlibpath_var=LD_LIBRARY_PATH
16357 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16358 case $host_os in
16359 openbsd2.[89] | openbsd2.[89].*)
16360 shlibpath_overrides_runpath=no
16361 ;;
16362 *)
16363 shlibpath_overrides_runpath=yes
16364 ;;
16365 esac
16366 else
16367 shlibpath_overrides_runpath=yes
16368 fi
16369 ;;
16370
16371os2*)
16372 libname_spec='$name'
16373 shrext=".dll"
16374 need_lib_prefix=no
16375 library_names_spec='$libname${shared_ext} $libname.a'
16376 dynamic_linker='OS/2 ld.exe'
16377 shlibpath_var=LIBPATH
16378 ;;
16379
16380osf3* | osf4* | osf5*)
16381 version_type=osf
16382 need_lib_prefix=no
16383 need_version=no
16384 soname_spec='${libname}${release}${shared_ext}$major'
16385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16386 shlibpath_var=LD_LIBRARY_PATH
16387 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16388 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16389 ;;
16390
16391sco3.2v5*)
16392 version_type=osf
16393 soname_spec='${libname}${release}${shared_ext}$major'
16394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16395 shlibpath_var=LD_LIBRARY_PATH
16396 ;;
16397
16398solaris*)
16399 version_type=linux
16400 need_lib_prefix=no
16401 need_version=no
16402 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16403 soname_spec='${libname}${release}${shared_ext}$major'
16404 shlibpath_var=LD_LIBRARY_PATH
16405 shlibpath_overrides_runpath=yes
16406 hardcode_into_libs=yes
16407 # ldd complains unless libraries are executable
16408 postinstall_cmds='chmod +x $lib'
16409 ;;
16410
16411sunos4*)
16412 version_type=sunos
16413 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16414 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16415 shlibpath_var=LD_LIBRARY_PATH
16416 shlibpath_overrides_runpath=yes
16417 if test "$with_gnu_ld" = yes; then
16418 need_lib_prefix=no
16419 fi
16420 need_version=yes
16421 ;;
16422
16423sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16424 version_type=linux
16425 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16426 soname_spec='${libname}${release}${shared_ext}$major'
16427 shlibpath_var=LD_LIBRARY_PATH
16428 case $host_vendor in
16429 sni)
16430 shlibpath_overrides_runpath=no
16431 need_lib_prefix=no
16432 export_dynamic_flag_spec='${wl}-Blargedynsym'
16433 runpath_var=LD_RUN_PATH
16434 ;;
16435 siemens)
16436 need_lib_prefix=no
16437 ;;
16438 motorola)
16439 need_lib_prefix=no
16440 need_version=no
16441 shlibpath_overrides_runpath=no
16442 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16443 ;;
16444 esac
16445 ;;
16446
16447sysv4*MP*)
16448 if test -d /usr/nec ;then
16449 version_type=linux
16450 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16451 soname_spec='$libname${shared_ext}.$major'
16452 shlibpath_var=LD_LIBRARY_PATH
16453 fi
16454 ;;
16455
16456uts4*)
16457 version_type=linux
16458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16459 soname_spec='${libname}${release}${shared_ext}$major'
16460 shlibpath_var=LD_LIBRARY_PATH
16461 ;;
16462
16463*)
16464 dynamic_linker=no
16465 ;;
16466esac
16467echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16468echo "${ECHO_T}$dynamic_linker" >&6
16469test "$dynamic_linker" = no && can_build_shared=no
16470
16471if test "x$enable_dlopen" != xyes; then
16472 enable_dlopen=unknown
16473 enable_dlopen_self=unknown
16474 enable_dlopen_self_static=unknown
16475else
16476 lt_cv_dlopen=no
16477 lt_cv_dlopen_libs=
16478
16479 case $host_os in
16480 beos*)
16481 lt_cv_dlopen="load_add_on"
16482 lt_cv_dlopen_libs=
16483 lt_cv_dlopen_self=yes
16484 ;;
16485
16486 mingw* | pw32*)
16487 lt_cv_dlopen="LoadLibrary"
16488 lt_cv_dlopen_libs=
16489 ;;
16490
16491 cygwin*)
16492 lt_cv_dlopen="dlopen"
16493 lt_cv_dlopen_libs=
16494 ;;
16495
16496 darwin*)
16497 # if libdl is installed we need to link against it
16498 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16499echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16500if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16501 echo $ECHO_N "(cached) $ECHO_C" >&6
16502else
16503 ac_check_lib_save_LIBS=$LIBS
16504LIBS="-ldl $LIBS"
16505cat >conftest.$ac_ext <<_ACEOF
16506#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000016507/* confdefs.h. */
16508_ACEOF
16509cat confdefs.h >>conftest.$ac_ext
16510cat >>conftest.$ac_ext <<_ACEOF
16511/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016512
16513/* Override any gcc2 internal prototype to avoid an error. */
16514#ifdef __cplusplus
16515extern "C"
16516#endif
16517/* We use char because int might match the return type of a gcc2
16518 builtin and then its argument prototype would still apply. */
16519char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000016520int
16521main ()
16522{
16523dlopen ();
16524 ;
16525 return 0;
16526}
16527_ACEOF
16528rm -f conftest.$ac_objext conftest$ac_exeext
16529if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16530 (eval $ac_link) 2>&5
16531 ac_status=$?
16532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16533 (exit $ac_status); } &&
16534 { ac_try='test -s conftest$ac_exeext'
16535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16536 (eval $ac_try) 2>&5
16537 ac_status=$?
16538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16539 (exit $ac_status); }; }; then
16540 ac_cv_lib_dl_dlopen=yes
16541else
16542 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016543sed 's/^/| /' conftest.$ac_ext >&5
16544
John Criswell47fdd832003-07-14 16:52:07 +000016545ac_cv_lib_dl_dlopen=no
16546fi
16547rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16548LIBS=$ac_check_lib_save_LIBS
16549fi
16550echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16551echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16552if test $ac_cv_lib_dl_dlopen = yes; then
16553 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16554else
16555
16556 lt_cv_dlopen="dyld"
16557 lt_cv_dlopen_libs=
16558 lt_cv_dlopen_self=yes
16559
16560fi
16561
16562 ;;
16563
16564 *)
16565 echo "$as_me:$LINENO: checking for shl_load" >&5
16566echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
16567if test "${ac_cv_func_shl_load+set}" = set; then
16568 echo $ECHO_N "(cached) $ECHO_C" >&6
16569else
16570 cat >conftest.$ac_ext <<_ACEOF
16571#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000016572/* confdefs.h. */
16573_ACEOF
16574cat confdefs.h >>conftest.$ac_ext
16575cat >>conftest.$ac_ext <<_ACEOF
16576/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016577/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000016578 which can conflict with char shl_load (); below.
16579 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16580 <limits.h> exists even on freestanding compilers. */
16581#ifdef __STDC__
16582# include <limits.h>
16583#else
16584# include <assert.h>
16585#endif
John Criswell47fdd832003-07-14 16:52:07 +000016586/* Override any gcc2 internal prototype to avoid an error. */
16587#ifdef __cplusplus
16588extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000016589{
John Criswell47fdd832003-07-14 16:52:07 +000016590#endif
16591/* We use char because int might match the return type of a gcc2
16592 builtin and then its argument prototype would still apply. */
16593char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000016594/* The GNU C library defines this for functions which it implements
16595 to always fail with ENOSYS. Some functions are actually named
16596 something starting with __ and the normal name is an alias. */
16597#if defined (__stub_shl_load) || defined (__stub___shl_load)
16598choke me
16599#else
John Criswell0c38eaf2003-09-10 15:17:25 +000016600char (*f) () = shl_load;
16601#endif
16602#ifdef __cplusplus
16603}
John Criswell47fdd832003-07-14 16:52:07 +000016604#endif
16605
John Criswell0c38eaf2003-09-10 15:17:25 +000016606int
16607main ()
16608{
16609return f != shl_load;
John Criswell47fdd832003-07-14 16:52:07 +000016610 ;
16611 return 0;
16612}
16613_ACEOF
16614rm -f conftest.$ac_objext conftest$ac_exeext
16615if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16616 (eval $ac_link) 2>&5
16617 ac_status=$?
16618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16619 (exit $ac_status); } &&
16620 { ac_try='test -s conftest$ac_exeext'
16621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16622 (eval $ac_try) 2>&5
16623 ac_status=$?
16624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16625 (exit $ac_status); }; }; then
16626 ac_cv_func_shl_load=yes
16627else
16628 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016629sed 's/^/| /' conftest.$ac_ext >&5
16630
John Criswell47fdd832003-07-14 16:52:07 +000016631ac_cv_func_shl_load=no
16632fi
16633rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16634fi
16635echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16636echo "${ECHO_T}$ac_cv_func_shl_load" >&6
16637if test $ac_cv_func_shl_load = yes; then
16638 lt_cv_dlopen="shl_load"
16639else
16640 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16641echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
16642if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16643 echo $ECHO_N "(cached) $ECHO_C" >&6
16644else
16645 ac_check_lib_save_LIBS=$LIBS
16646LIBS="-ldld $LIBS"
16647cat >conftest.$ac_ext <<_ACEOF
16648#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000016649/* confdefs.h. */
16650_ACEOF
16651cat confdefs.h >>conftest.$ac_ext
16652cat >>conftest.$ac_ext <<_ACEOF
16653/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016654
16655/* Override any gcc2 internal prototype to avoid an error. */
16656#ifdef __cplusplus
16657extern "C"
16658#endif
16659/* We use char because int might match the return type of a gcc2
16660 builtin and then its argument prototype would still apply. */
16661char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000016662int
16663main ()
16664{
16665shl_load ();
16666 ;
16667 return 0;
16668}
16669_ACEOF
16670rm -f conftest.$ac_objext conftest$ac_exeext
16671if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16672 (eval $ac_link) 2>&5
16673 ac_status=$?
16674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16675 (exit $ac_status); } &&
16676 { ac_try='test -s conftest$ac_exeext'
16677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16678 (eval $ac_try) 2>&5
16679 ac_status=$?
16680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16681 (exit $ac_status); }; }; then
16682 ac_cv_lib_dld_shl_load=yes
16683else
16684 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016685sed 's/^/| /' conftest.$ac_ext >&5
16686
John Criswell47fdd832003-07-14 16:52:07 +000016687ac_cv_lib_dld_shl_load=no
16688fi
16689rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16690LIBS=$ac_check_lib_save_LIBS
16691fi
16692echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16693echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
16694if test $ac_cv_lib_dld_shl_load = yes; then
16695 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16696else
16697 echo "$as_me:$LINENO: checking for dlopen" >&5
16698echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
16699if test "${ac_cv_func_dlopen+set}" = set; then
16700 echo $ECHO_N "(cached) $ECHO_C" >&6
16701else
16702 cat >conftest.$ac_ext <<_ACEOF
16703#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000016704/* confdefs.h. */
16705_ACEOF
16706cat confdefs.h >>conftest.$ac_ext
16707cat >>conftest.$ac_ext <<_ACEOF
16708/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016709/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000016710 which can conflict with char dlopen (); below.
16711 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16712 <limits.h> exists even on freestanding compilers. */
16713#ifdef __STDC__
16714# include <limits.h>
16715#else
16716# include <assert.h>
16717#endif
John Criswell47fdd832003-07-14 16:52:07 +000016718/* Override any gcc2 internal prototype to avoid an error. */
16719#ifdef __cplusplus
16720extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000016721{
John Criswell47fdd832003-07-14 16:52:07 +000016722#endif
16723/* We use char because int might match the return type of a gcc2
16724 builtin and then its argument prototype would still apply. */
16725char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000016726/* The GNU C library defines this for functions which it implements
16727 to always fail with ENOSYS. Some functions are actually named
16728 something starting with __ and the normal name is an alias. */
16729#if defined (__stub_dlopen) || defined (__stub___dlopen)
16730choke me
16731#else
John Criswell0c38eaf2003-09-10 15:17:25 +000016732char (*f) () = dlopen;
16733#endif
16734#ifdef __cplusplus
16735}
John Criswell47fdd832003-07-14 16:52:07 +000016736#endif
16737
John Criswell0c38eaf2003-09-10 15:17:25 +000016738int
16739main ()
16740{
16741return f != dlopen;
John Criswell47fdd832003-07-14 16:52:07 +000016742 ;
16743 return 0;
16744}
16745_ACEOF
16746rm -f conftest.$ac_objext conftest$ac_exeext
16747if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16748 (eval $ac_link) 2>&5
16749 ac_status=$?
16750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16751 (exit $ac_status); } &&
16752 { ac_try='test -s conftest$ac_exeext'
16753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16754 (eval $ac_try) 2>&5
16755 ac_status=$?
16756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16757 (exit $ac_status); }; }; then
16758 ac_cv_func_dlopen=yes
16759else
16760 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016761sed 's/^/| /' conftest.$ac_ext >&5
16762
John Criswell47fdd832003-07-14 16:52:07 +000016763ac_cv_func_dlopen=no
16764fi
16765rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16766fi
16767echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16768echo "${ECHO_T}$ac_cv_func_dlopen" >&6
16769if test $ac_cv_func_dlopen = yes; then
16770 lt_cv_dlopen="dlopen"
16771else
16772 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16773echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16774if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16775 echo $ECHO_N "(cached) $ECHO_C" >&6
16776else
16777 ac_check_lib_save_LIBS=$LIBS
16778LIBS="-ldl $LIBS"
16779cat >conftest.$ac_ext <<_ACEOF
16780#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000016781/* confdefs.h. */
16782_ACEOF
16783cat confdefs.h >>conftest.$ac_ext
16784cat >>conftest.$ac_ext <<_ACEOF
16785/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016786
16787/* Override any gcc2 internal prototype to avoid an error. */
16788#ifdef __cplusplus
16789extern "C"
16790#endif
16791/* We use char because int might match the return type of a gcc2
16792 builtin and then its argument prototype would still apply. */
16793char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000016794int
16795main ()
16796{
16797dlopen ();
16798 ;
16799 return 0;
16800}
16801_ACEOF
16802rm -f conftest.$ac_objext conftest$ac_exeext
16803if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16804 (eval $ac_link) 2>&5
16805 ac_status=$?
16806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16807 (exit $ac_status); } &&
16808 { ac_try='test -s conftest$ac_exeext'
16809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16810 (eval $ac_try) 2>&5
16811 ac_status=$?
16812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16813 (exit $ac_status); }; }; then
16814 ac_cv_lib_dl_dlopen=yes
16815else
16816 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016817sed 's/^/| /' conftest.$ac_ext >&5
16818
John Criswell47fdd832003-07-14 16:52:07 +000016819ac_cv_lib_dl_dlopen=no
16820fi
16821rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16822LIBS=$ac_check_lib_save_LIBS
16823fi
16824echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16825echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16826if test $ac_cv_lib_dl_dlopen = yes; then
16827 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16828else
16829 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
16830echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
16831if test "${ac_cv_lib_svld_dlopen+set}" = set; then
16832 echo $ECHO_N "(cached) $ECHO_C" >&6
16833else
16834 ac_check_lib_save_LIBS=$LIBS
16835LIBS="-lsvld $LIBS"
16836cat >conftest.$ac_ext <<_ACEOF
16837#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000016838/* confdefs.h. */
16839_ACEOF
16840cat confdefs.h >>conftest.$ac_ext
16841cat >>conftest.$ac_ext <<_ACEOF
16842/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016843
16844/* Override any gcc2 internal prototype to avoid an error. */
16845#ifdef __cplusplus
16846extern "C"
16847#endif
16848/* We use char because int might match the return type of a gcc2
16849 builtin and then its argument prototype would still apply. */
16850char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000016851int
16852main ()
16853{
16854dlopen ();
16855 ;
16856 return 0;
16857}
16858_ACEOF
16859rm -f conftest.$ac_objext conftest$ac_exeext
16860if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16861 (eval $ac_link) 2>&5
16862 ac_status=$?
16863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16864 (exit $ac_status); } &&
16865 { ac_try='test -s conftest$ac_exeext'
16866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16867 (eval $ac_try) 2>&5
16868 ac_status=$?
16869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16870 (exit $ac_status); }; }; then
16871 ac_cv_lib_svld_dlopen=yes
16872else
16873 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016874sed 's/^/| /' conftest.$ac_ext >&5
16875
John Criswell47fdd832003-07-14 16:52:07 +000016876ac_cv_lib_svld_dlopen=no
16877fi
16878rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16879LIBS=$ac_check_lib_save_LIBS
16880fi
16881echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
16882echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
16883if test $ac_cv_lib_svld_dlopen = yes; then
16884 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16885else
16886 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
16887echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
16888if test "${ac_cv_lib_dld_dld_link+set}" = set; then
16889 echo $ECHO_N "(cached) $ECHO_C" >&6
16890else
16891 ac_check_lib_save_LIBS=$LIBS
16892LIBS="-ldld $LIBS"
16893cat >conftest.$ac_ext <<_ACEOF
16894#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000016895/* confdefs.h. */
16896_ACEOF
16897cat confdefs.h >>conftest.$ac_ext
16898cat >>conftest.$ac_ext <<_ACEOF
16899/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016900
16901/* Override any gcc2 internal prototype to avoid an error. */
16902#ifdef __cplusplus
16903extern "C"
16904#endif
16905/* We use char because int might match the return type of a gcc2
16906 builtin and then its argument prototype would still apply. */
16907char dld_link ();
John Criswell47fdd832003-07-14 16:52:07 +000016908int
16909main ()
16910{
16911dld_link ();
16912 ;
16913 return 0;
16914}
16915_ACEOF
16916rm -f conftest.$ac_objext conftest$ac_exeext
16917if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16918 (eval $ac_link) 2>&5
16919 ac_status=$?
16920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16921 (exit $ac_status); } &&
16922 { ac_try='test -s conftest$ac_exeext'
16923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16924 (eval $ac_try) 2>&5
16925 ac_status=$?
16926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16927 (exit $ac_status); }; }; then
16928 ac_cv_lib_dld_dld_link=yes
16929else
16930 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016931sed 's/^/| /' conftest.$ac_ext >&5
16932
John Criswell47fdd832003-07-14 16:52:07 +000016933ac_cv_lib_dld_dld_link=no
16934fi
16935rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16936LIBS=$ac_check_lib_save_LIBS
16937fi
16938echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
16939echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
16940if test $ac_cv_lib_dld_dld_link = yes; then
16941 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
16942fi
16943
16944
16945fi
16946
16947
16948fi
16949
16950
16951fi
16952
16953
16954fi
16955
16956
16957fi
16958
16959 ;;
16960 esac
16961
16962 if test "x$lt_cv_dlopen" != xno; then
16963 enable_dlopen=yes
16964 else
16965 enable_dlopen=no
16966 fi
16967
16968 case $lt_cv_dlopen in
16969 dlopen)
16970 save_CPPFLAGS="$CPPFLAGS"
16971 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16972
16973 save_LDFLAGS="$LDFLAGS"
16974 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
16975
16976 save_LIBS="$LIBS"
16977 LIBS="$lt_cv_dlopen_libs $LIBS"
16978
16979 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
16980echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
16981if test "${lt_cv_dlopen_self+set}" = set; then
16982 echo $ECHO_N "(cached) $ECHO_C" >&6
16983else
16984 if test "$cross_compiling" = yes; then :
16985 lt_cv_dlopen_self=cross
16986else
16987 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16988 lt_status=$lt_dlunknown
16989 cat > conftest.$ac_ext <<EOF
John Criswell8a54a1e2004-06-22 21:35:10 +000016990#line 16990 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000016991#include "confdefs.h"
16992
16993#if HAVE_DLFCN_H
16994#include <dlfcn.h>
16995#endif
16996
16997#include <stdio.h>
16998
16999#ifdef RTLD_GLOBAL
17000# define LT_DLGLOBAL RTLD_GLOBAL
17001#else
17002# ifdef DL_GLOBAL
17003# define LT_DLGLOBAL DL_GLOBAL
17004# else
17005# define LT_DLGLOBAL 0
17006# endif
17007#endif
17008
17009/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17010 find out it does not work in some platform. */
17011#ifndef LT_DLLAZY_OR_NOW
17012# ifdef RTLD_LAZY
17013# define LT_DLLAZY_OR_NOW RTLD_LAZY
17014# else
17015# ifdef DL_LAZY
17016# define LT_DLLAZY_OR_NOW DL_LAZY
17017# else
17018# ifdef RTLD_NOW
17019# define LT_DLLAZY_OR_NOW RTLD_NOW
17020# else
17021# ifdef DL_NOW
17022# define LT_DLLAZY_OR_NOW DL_NOW
17023# else
17024# define LT_DLLAZY_OR_NOW 0
17025# endif
17026# endif
17027# endif
17028# endif
17029#endif
17030
17031#ifdef __cplusplus
17032extern "C" void exit (int);
17033#endif
17034
17035void fnord() { int i=42;}
17036int main ()
17037{
17038 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17039 int status = $lt_dlunknown;
17040
17041 if (self)
17042 {
17043 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17044 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17045 /* dlclose (self); */
17046 }
17047
17048 exit (status);
17049}
17050EOF
17051 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17052 (eval $ac_link) 2>&5
17053 ac_status=$?
17054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17055 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17056 (./conftest; exit; ) 2>/dev/null
17057 lt_status=$?
17058 case x$lt_status in
17059 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17060 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17061 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17062 esac
17063 else :
17064 # compilation failed
17065 lt_cv_dlopen_self=no
17066 fi
17067fi
17068rm -fr conftest*
17069
17070
17071fi
17072echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17073echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17074
17075 if test "x$lt_cv_dlopen_self" = xyes; then
17076 LDFLAGS="$LDFLAGS $link_static_flag"
17077 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17078echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17079if test "${lt_cv_dlopen_self_static+set}" = set; then
17080 echo $ECHO_N "(cached) $ECHO_C" >&6
17081else
17082 if test "$cross_compiling" = yes; then :
17083 lt_cv_dlopen_self_static=cross
17084else
17085 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17086 lt_status=$lt_dlunknown
17087 cat > conftest.$ac_ext <<EOF
John Criswell8a54a1e2004-06-22 21:35:10 +000017088#line 17088 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000017089#include "confdefs.h"
17090
17091#if HAVE_DLFCN_H
17092#include <dlfcn.h>
17093#endif
17094
17095#include <stdio.h>
17096
17097#ifdef RTLD_GLOBAL
17098# define LT_DLGLOBAL RTLD_GLOBAL
17099#else
17100# ifdef DL_GLOBAL
17101# define LT_DLGLOBAL DL_GLOBAL
17102# else
17103# define LT_DLGLOBAL 0
17104# endif
17105#endif
17106
17107/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17108 find out it does not work in some platform. */
17109#ifndef LT_DLLAZY_OR_NOW
17110# ifdef RTLD_LAZY
17111# define LT_DLLAZY_OR_NOW RTLD_LAZY
17112# else
17113# ifdef DL_LAZY
17114# define LT_DLLAZY_OR_NOW DL_LAZY
17115# else
17116# ifdef RTLD_NOW
17117# define LT_DLLAZY_OR_NOW RTLD_NOW
17118# else
17119# ifdef DL_NOW
17120# define LT_DLLAZY_OR_NOW DL_NOW
17121# else
17122# define LT_DLLAZY_OR_NOW 0
17123# endif
17124# endif
17125# endif
17126# endif
17127#endif
17128
17129#ifdef __cplusplus
17130extern "C" void exit (int);
17131#endif
17132
17133void fnord() { int i=42;}
17134int main ()
17135{
17136 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17137 int status = $lt_dlunknown;
17138
17139 if (self)
17140 {
17141 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17142 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17143 /* dlclose (self); */
17144 }
17145
17146 exit (status);
17147}
17148EOF
17149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17150 (eval $ac_link) 2>&5
17151 ac_status=$?
17152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17153 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17154 (./conftest; exit; ) 2>/dev/null
17155 lt_status=$?
17156 case x$lt_status in
17157 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17158 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17159 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17160 esac
17161 else :
17162 # compilation failed
17163 lt_cv_dlopen_self_static=no
17164 fi
17165fi
17166rm -fr conftest*
17167
17168
17169fi
17170echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17171echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17172 fi
17173
17174 CPPFLAGS="$save_CPPFLAGS"
17175 LDFLAGS="$save_LDFLAGS"
17176 LIBS="$save_LIBS"
17177 ;;
17178 esac
17179
17180 case $lt_cv_dlopen_self in
17181 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17182 *) enable_dlopen_self=unknown ;;
17183 esac
17184
17185 case $lt_cv_dlopen_self_static in
17186 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17187 *) enable_dlopen_self_static=unknown ;;
17188 esac
17189fi
17190
17191
17192# The else clause should only fire when bootstrapping the
17193# libtool distribution, otherwise you forgot to ship ltmain.sh
17194# with your package, and you will get complaints that there are
17195# no rules to generate ltmain.sh.
17196if test -f "$ltmain"; then
17197 # See if we are running on zsh, and set the options which allow our commands through
17198 # without removal of \ escapes.
17199 if test -n "${ZSH_VERSION+set}" ; then
17200 setopt NO_GLOB_SUBST
17201 fi
17202 # Now quote all the things that may contain metacharacters while being
17203 # careful not to overquote the AC_SUBSTed values. We take copies of the
17204 # variables and quote the copies for generation of the libtool script.
17205 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17206 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17207 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17208 deplibs_check_method reload_flag reload_cmds need_locks \
17209 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17210 lt_cv_sys_global_symbol_to_c_name_address \
17211 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17212 old_postinstall_cmds old_postuninstall_cmds \
17213 compiler_GCJ \
17214 CC_GCJ \
17215 LD_GCJ \
17216 lt_prog_compiler_wl_GCJ \
17217 lt_prog_compiler_pic_GCJ \
17218 lt_prog_compiler_static_GCJ \
17219 lt_prog_compiler_no_builtin_flag_GCJ \
17220 export_dynamic_flag_spec_GCJ \
17221 thread_safe_flag_spec_GCJ \
17222 whole_archive_flag_spec_GCJ \
17223 enable_shared_with_static_runtimes_GCJ \
17224 old_archive_cmds_GCJ \
17225 old_archive_from_new_cmds_GCJ \
17226 predep_objects_GCJ \
17227 postdep_objects_GCJ \
17228 predeps_GCJ \
17229 postdeps_GCJ \
17230 compiler_lib_search_path_GCJ \
17231 archive_cmds_GCJ \
17232 archive_expsym_cmds_GCJ \
17233 postinstall_cmds_GCJ \
17234 postuninstall_cmds_GCJ \
17235 old_archive_from_expsyms_cmds_GCJ \
17236 allow_undefined_flag_GCJ \
17237 no_undefined_flag_GCJ \
17238 export_symbols_cmds_GCJ \
17239 hardcode_libdir_flag_spec_GCJ \
17240 hardcode_libdir_flag_spec_ld_GCJ \
17241 hardcode_libdir_separator_GCJ \
17242 hardcode_automatic_GCJ \
17243 module_cmds_GCJ \
17244 module_expsym_cmds_GCJ \
17245 lt_cv_prog_compiler_c_o_GCJ \
17246 exclude_expsyms_GCJ \
17247 include_expsyms_GCJ; do
17248
17249 case $var in
17250 old_archive_cmds_GCJ | \
17251 old_archive_from_new_cmds_GCJ | \
17252 archive_cmds_GCJ | \
17253 archive_expsym_cmds_GCJ | \
17254 module_cmds_GCJ | \
17255 module_expsym_cmds_GCJ | \
17256 old_archive_from_expsyms_cmds_GCJ | \
17257 export_symbols_cmds_GCJ | \
17258 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17259 postinstall_cmds | postuninstall_cmds | \
17260 old_postinstall_cmds | old_postuninstall_cmds | \
17261 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17262 # Double-quote double-evaled strings.
17263 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17264 ;;
17265 *)
17266 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17267 ;;
17268 esac
17269 done
17270
17271 case $lt_echo in
17272 *'\$0 --fallback-echo"')
17273 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17274 ;;
17275 esac
17276
17277cfgfile="$ofile"
17278
17279 cat <<__EOF__ >> "$cfgfile"
17280# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17281
17282# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17283
17284# Shell to use when invoking shell scripts.
17285SHELL=$lt_SHELL
17286
17287# Whether or not to build shared libraries.
17288build_libtool_libs=$enable_shared
17289
17290# Whether or not to build static libraries.
17291build_old_libs=$enable_static
17292
17293# Whether or not to add -lc for building shared libraries.
17294build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17295
17296# Whether or not to disallow shared libs when runtime libs are static
17297allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17298
17299# Whether or not to optimize for fast installation.
17300fast_install=$enable_fast_install
17301
17302# The host system.
17303host_alias=$host_alias
17304host=$host
17305
17306# An echo program that does not interpret backslashes.
17307echo=$lt_echo
17308
17309# The archiver.
17310AR=$lt_AR
17311AR_FLAGS=$lt_AR_FLAGS
17312
17313# A C compiler.
17314LTCC=$lt_LTCC
17315
17316# A language-specific compiler.
17317CC=$lt_compiler_GCJ
17318
17319# Is the compiler the GNU C compiler?
17320with_gcc=$GCC_GCJ
17321
17322# An ERE matcher.
17323EGREP=$lt_EGREP
17324
17325# The linker used to build libraries.
17326LD=$lt_LD_GCJ
17327
17328# Whether we need hard or soft links.
17329LN_S=$lt_LN_S
17330
17331# A BSD-compatible nm program.
17332NM=$lt_NM
17333
17334# A symbol stripping program
17335STRIP=$STRIP
17336
17337# Used to examine libraries when file_magic_cmd begins "file"
17338MAGIC_CMD=$MAGIC_CMD
17339
17340# Used on cygwin: DLL creation program.
17341DLLTOOL="$DLLTOOL"
17342
17343# Used on cygwin: object dumper.
17344OBJDUMP="$OBJDUMP"
17345
17346# Used on cygwin: assembler.
17347AS="$AS"
17348
17349# The name of the directory that contains temporary libtool files.
17350objdir=$objdir
17351
17352# How to create reloadable object files.
17353reload_flag=$lt_reload_flag
17354reload_cmds=$lt_reload_cmds
17355
17356# How to pass a linker flag through the compiler.
17357wl=$lt_lt_prog_compiler_wl_GCJ
17358
17359# Object file suffix (normally "o").
17360objext="$ac_objext"
17361
17362# Old archive suffix (normally "a").
17363libext="$libext"
17364
17365# Shared library suffix (normally ".so").
17366shrext='$shrext'
17367
17368# Executable file suffix (normally "").
17369exeext="$exeext"
17370
17371# Additional compiler flags for building library objects.
17372pic_flag=$lt_lt_prog_compiler_pic_GCJ
17373pic_mode=$pic_mode
17374
17375# What is the maximum length of a command?
17376max_cmd_len=$lt_cv_sys_max_cmd_len
17377
17378# Does compiler simultaneously support -c and -o options?
17379compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17380
17381# Must we lock files when doing compilation ?
17382need_locks=$lt_need_locks
17383
17384# Do we need the lib prefix for modules?
17385need_lib_prefix=$need_lib_prefix
17386
17387# Do we need a version for libraries?
17388need_version=$need_version
17389
17390# Whether dlopen is supported.
17391dlopen_support=$enable_dlopen
17392
17393# Whether dlopen of programs is supported.
17394dlopen_self=$enable_dlopen_self
17395
17396# Whether dlopen of statically linked programs is supported.
17397dlopen_self_static=$enable_dlopen_self_static
17398
17399# Compiler flag to prevent dynamic linking.
17400link_static_flag=$lt_lt_prog_compiler_static_GCJ
17401
17402# Compiler flag to turn off builtin functions.
17403no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17404
17405# Compiler flag to allow reflexive dlopens.
17406export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17407
17408# Compiler flag to generate shared objects directly from archives.
17409whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17410
17411# Compiler flag to generate thread-safe objects.
17412thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17413
17414# Library versioning type.
17415version_type=$version_type
17416
17417# Format of library name prefix.
17418libname_spec=$lt_libname_spec
17419
17420# List of archive names. First name is the real one, the rest are links.
17421# The last name is the one that the linker finds with -lNAME.
17422library_names_spec=$lt_library_names_spec
17423
17424# The coded name of the library, if different from the real name.
17425soname_spec=$lt_soname_spec
17426
17427# Commands used to build and install an old-style archive.
17428RANLIB=$lt_RANLIB
17429old_archive_cmds=$lt_old_archive_cmds_GCJ
17430old_postinstall_cmds=$lt_old_postinstall_cmds
17431old_postuninstall_cmds=$lt_old_postuninstall_cmds
17432
17433# Create an old-style archive from a shared archive.
17434old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17435
17436# Create a temporary old-style archive to link instead of a shared archive.
17437old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17438
17439# Commands used to build and install a shared archive.
17440archive_cmds=$lt_archive_cmds_GCJ
17441archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17442postinstall_cmds=$lt_postinstall_cmds
17443postuninstall_cmds=$lt_postuninstall_cmds
17444
17445# Commands used to build a loadable module (assumed same as above if empty)
17446module_cmds=$lt_module_cmds_GCJ
17447module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17448
17449# Commands to strip libraries.
17450old_striplib=$lt_old_striplib
17451striplib=$lt_striplib
17452
17453# Dependencies to place before the objects being linked to create a
17454# shared library.
17455predep_objects=$lt_predep_objects_GCJ
17456
17457# Dependencies to place after the objects being linked to create a
17458# shared library.
17459postdep_objects=$lt_postdep_objects_GCJ
17460
17461# Dependencies to place before the objects being linked to create a
17462# shared library.
17463predeps=$lt_predeps_GCJ
17464
17465# Dependencies to place after the objects being linked to create a
17466# shared library.
17467postdeps=$lt_postdeps_GCJ
17468
17469# The library search path used internally by the compiler when linking
17470# a shared library.
17471compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17472
17473# Method to check whether dependent libraries are shared objects.
17474deplibs_check_method=$lt_deplibs_check_method
17475
17476# Command to use when deplibs_check_method == file_magic.
17477file_magic_cmd=$lt_file_magic_cmd
17478
17479# Flag that allows shared libraries with undefined symbols to be built.
17480allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17481
17482# Flag that forces no undefined symbols.
17483no_undefined_flag=$lt_no_undefined_flag_GCJ
17484
17485# Commands used to finish a libtool library installation in a directory.
17486finish_cmds=$lt_finish_cmds
17487
17488# Same as above, but a single script fragment to be evaled but not shown.
17489finish_eval=$lt_finish_eval
17490
17491# Take the output of nm and produce a listing of raw symbols and C names.
17492global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17493
17494# Transform the output of nm in a proper C declaration
17495global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17496
17497# Transform the output of nm in a C name address pair
17498global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17499
17500# This is the shared library runtime path variable.
17501runpath_var=$runpath_var
17502
17503# This is the shared library path variable.
17504shlibpath_var=$shlibpath_var
17505
17506# Is shlibpath searched before the hard-coded library search path?
17507shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17508
17509# How to hardcode a shared library path into an executable.
17510hardcode_action=$hardcode_action_GCJ
17511
17512# Whether we should hardcode library paths into libraries.
17513hardcode_into_libs=$hardcode_into_libs
17514
17515# Flag to hardcode \$libdir into a binary during linking.
17516# This must work even if \$libdir does not exist.
17517hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
17518
17519# If ld is used when linking, flag to hardcode \$libdir into
17520# a binary during linking. This must work even if \$libdir does
17521# not exist.
17522hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17523
17524# Whether we need a single -rpath flag with a separated argument.
17525hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17526
17527# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17528# resulting binary.
17529hardcode_direct=$hardcode_direct_GCJ
17530
17531# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17532# resulting binary.
17533hardcode_minus_L=$hardcode_minus_L_GCJ
17534
17535# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17536# the resulting binary.
17537hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
17538
17539# Set to yes if building a shared library automatically hardcodes DIR into the library
17540# and all subsequent libraries and executables linked against it.
17541hardcode_automatic=$hardcode_automatic_GCJ
17542
17543# Variables whose values should be saved in libtool wrapper scripts and
17544# restored at relink time.
17545variables_saved_for_relink="$variables_saved_for_relink"
17546
17547# Whether libtool must link a program against all its dependency libraries.
17548link_all_deplibs=$link_all_deplibs_GCJ
17549
17550# Compile-time system search path for libraries
17551sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17552
17553# Run-time system search path for libraries
17554sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17555
17556# Fix the shell variable \$srcfile for the compiler.
17557fix_srcfile_path="$fix_srcfile_path_GCJ"
17558
17559# Set to yes if exported symbols are required.
17560always_export_symbols=$always_export_symbols_GCJ
17561
17562# The commands to list exported symbols.
17563export_symbols_cmds=$lt_export_symbols_cmds_GCJ
17564
17565# The commands to extract the exported symbol list from a shared archive.
17566extract_expsyms_cmds=$lt_extract_expsyms_cmds
17567
17568# Symbols that should not be listed in the preloaded symbols.
17569exclude_expsyms=$lt_exclude_expsyms_GCJ
17570
17571# Symbols that must always be exported.
17572include_expsyms=$lt_include_expsyms_GCJ
17573
17574# ### END LIBTOOL TAG CONFIG: $tagname
17575
17576__EOF__
17577
17578
17579else
17580 # If there is no Makefile yet, we rely on a make rule to execute
17581 # `config.status --recheck' to rerun these tests and create the
17582 # libtool script then.
17583 test -f Makefile && make "$ltmain"
17584fi
17585
17586
17587ac_ext=c
17588ac_cpp='$CPP $CPPFLAGS'
17589ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17590ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17591ac_compiler_gnu=$ac_cv_c_compiler_gnu
17592
17593CC="$lt_save_CC"
17594
17595 else
17596 tagname=""
17597 fi
17598 ;;
17599
17600 RC)
17601
17602
17603
17604# Source file extension for RC test sources.
17605ac_ext=rc
17606
17607# Object file extension for compiled RC test sources.
17608objext=o
17609objext_RC=$objext
17610
17611# Code to be used in simple compile tests
17612lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
17613
17614# Code to be used in simple link tests
17615lt_simple_link_test_code="$lt_simple_compile_test_code"
17616
17617# ltmain only uses $CC for tagged configurations so make sure $CC is set.
17618
17619# If no C compiler was specified, use CC.
17620LTCC=${LTCC-"$CC"}
17621
17622# Allow CC to be a program name with arguments.
17623compiler=$CC
17624
17625
17626# Allow CC to be a program name with arguments.
17627lt_save_CC="$CC"
17628CC=${RC-"windres"}
17629compiler=$CC
17630compiler_RC=$CC
17631lt_cv_prog_compiler_c_o_RC=yes
17632
17633# The else clause should only fire when bootstrapping the
17634# libtool distribution, otherwise you forgot to ship ltmain.sh
17635# with your package, and you will get complaints that there are
17636# no rules to generate ltmain.sh.
17637if test -f "$ltmain"; then
17638 # See if we are running on zsh, and set the options which allow our commands through
17639 # without removal of \ escapes.
17640 if test -n "${ZSH_VERSION+set}" ; then
17641 setopt NO_GLOB_SUBST
17642 fi
17643 # Now quote all the things that may contain metacharacters while being
17644 # careful not to overquote the AC_SUBSTed values. We take copies of the
17645 # variables and quote the copies for generation of the libtool script.
17646 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17647 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17648 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17649 deplibs_check_method reload_flag reload_cmds need_locks \
17650 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17651 lt_cv_sys_global_symbol_to_c_name_address \
17652 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17653 old_postinstall_cmds old_postuninstall_cmds \
17654 compiler_RC \
17655 CC_RC \
17656 LD_RC \
17657 lt_prog_compiler_wl_RC \
17658 lt_prog_compiler_pic_RC \
17659 lt_prog_compiler_static_RC \
17660 lt_prog_compiler_no_builtin_flag_RC \
17661 export_dynamic_flag_spec_RC \
17662 thread_safe_flag_spec_RC \
17663 whole_archive_flag_spec_RC \
17664 enable_shared_with_static_runtimes_RC \
17665 old_archive_cmds_RC \
17666 old_archive_from_new_cmds_RC \
17667 predep_objects_RC \
17668 postdep_objects_RC \
17669 predeps_RC \
17670 postdeps_RC \
17671 compiler_lib_search_path_RC \
17672 archive_cmds_RC \
17673 archive_expsym_cmds_RC \
17674 postinstall_cmds_RC \
17675 postuninstall_cmds_RC \
17676 old_archive_from_expsyms_cmds_RC \
17677 allow_undefined_flag_RC \
17678 no_undefined_flag_RC \
17679 export_symbols_cmds_RC \
17680 hardcode_libdir_flag_spec_RC \
17681 hardcode_libdir_flag_spec_ld_RC \
17682 hardcode_libdir_separator_RC \
17683 hardcode_automatic_RC \
17684 module_cmds_RC \
17685 module_expsym_cmds_RC \
17686 lt_cv_prog_compiler_c_o_RC \
17687 exclude_expsyms_RC \
17688 include_expsyms_RC; do
17689
17690 case $var in
17691 old_archive_cmds_RC | \
17692 old_archive_from_new_cmds_RC | \
17693 archive_cmds_RC | \
17694 archive_expsym_cmds_RC | \
17695 module_cmds_RC | \
17696 module_expsym_cmds_RC | \
17697 old_archive_from_expsyms_cmds_RC | \
17698 export_symbols_cmds_RC | \
17699 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17700 postinstall_cmds | postuninstall_cmds | \
17701 old_postinstall_cmds | old_postuninstall_cmds | \
17702 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17703 # Double-quote double-evaled strings.
17704 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17705 ;;
17706 *)
17707 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17708 ;;
17709 esac
17710 done
17711
17712 case $lt_echo in
17713 *'\$0 --fallback-echo"')
17714 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17715 ;;
17716 esac
17717
17718cfgfile="$ofile"
17719
17720 cat <<__EOF__ >> "$cfgfile"
17721# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17722
17723# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17724
17725# Shell to use when invoking shell scripts.
17726SHELL=$lt_SHELL
17727
17728# Whether or not to build shared libraries.
17729build_libtool_libs=$enable_shared
17730
17731# Whether or not to build static libraries.
17732build_old_libs=$enable_static
17733
17734# Whether or not to add -lc for building shared libraries.
17735build_libtool_need_lc=$archive_cmds_need_lc_RC
17736
17737# Whether or not to disallow shared libs when runtime libs are static
17738allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
17739
17740# Whether or not to optimize for fast installation.
17741fast_install=$enable_fast_install
17742
17743# The host system.
17744host_alias=$host_alias
17745host=$host
17746
17747# An echo program that does not interpret backslashes.
17748echo=$lt_echo
17749
17750# The archiver.
17751AR=$lt_AR
17752AR_FLAGS=$lt_AR_FLAGS
17753
17754# A C compiler.
17755LTCC=$lt_LTCC
17756
17757# A language-specific compiler.
17758CC=$lt_compiler_RC
17759
17760# Is the compiler the GNU C compiler?
17761with_gcc=$GCC_RC
17762
17763# An ERE matcher.
17764EGREP=$lt_EGREP
17765
17766# The linker used to build libraries.
17767LD=$lt_LD_RC
17768
17769# Whether we need hard or soft links.
17770LN_S=$lt_LN_S
17771
17772# A BSD-compatible nm program.
17773NM=$lt_NM
17774
17775# A symbol stripping program
17776STRIP=$STRIP
17777
17778# Used to examine libraries when file_magic_cmd begins "file"
17779MAGIC_CMD=$MAGIC_CMD
17780
17781# Used on cygwin: DLL creation program.
17782DLLTOOL="$DLLTOOL"
17783
17784# Used on cygwin: object dumper.
17785OBJDUMP="$OBJDUMP"
17786
17787# Used on cygwin: assembler.
17788AS="$AS"
17789
17790# The name of the directory that contains temporary libtool files.
17791objdir=$objdir
17792
17793# How to create reloadable object files.
17794reload_flag=$lt_reload_flag
17795reload_cmds=$lt_reload_cmds
17796
17797# How to pass a linker flag through the compiler.
17798wl=$lt_lt_prog_compiler_wl_RC
17799
17800# Object file suffix (normally "o").
17801objext="$ac_objext"
17802
17803# Old archive suffix (normally "a").
17804libext="$libext"
17805
17806# Shared library suffix (normally ".so").
17807shrext='$shrext'
17808
17809# Executable file suffix (normally "").
17810exeext="$exeext"
17811
17812# Additional compiler flags for building library objects.
17813pic_flag=$lt_lt_prog_compiler_pic_RC
17814pic_mode=$pic_mode
17815
17816# What is the maximum length of a command?
17817max_cmd_len=$lt_cv_sys_max_cmd_len
17818
17819# Does compiler simultaneously support -c and -o options?
17820compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
17821
17822# Must we lock files when doing compilation ?
17823need_locks=$lt_need_locks
17824
17825# Do we need the lib prefix for modules?
17826need_lib_prefix=$need_lib_prefix
17827
17828# Do we need a version for libraries?
17829need_version=$need_version
17830
17831# Whether dlopen is supported.
17832dlopen_support=$enable_dlopen
17833
17834# Whether dlopen of programs is supported.
17835dlopen_self=$enable_dlopen_self
17836
17837# Whether dlopen of statically linked programs is supported.
17838dlopen_self_static=$enable_dlopen_self_static
17839
17840# Compiler flag to prevent dynamic linking.
17841link_static_flag=$lt_lt_prog_compiler_static_RC
17842
17843# Compiler flag to turn off builtin functions.
17844no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
17845
17846# Compiler flag to allow reflexive dlopens.
17847export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
17848
17849# Compiler flag to generate shared objects directly from archives.
17850whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
17851
17852# Compiler flag to generate thread-safe objects.
17853thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
17854
17855# Library versioning type.
17856version_type=$version_type
17857
17858# Format of library name prefix.
17859libname_spec=$lt_libname_spec
17860
17861# List of archive names. First name is the real one, the rest are links.
17862# The last name is the one that the linker finds with -lNAME.
17863library_names_spec=$lt_library_names_spec
17864
17865# The coded name of the library, if different from the real name.
17866soname_spec=$lt_soname_spec
17867
17868# Commands used to build and install an old-style archive.
17869RANLIB=$lt_RANLIB
17870old_archive_cmds=$lt_old_archive_cmds_RC
17871old_postinstall_cmds=$lt_old_postinstall_cmds
17872old_postuninstall_cmds=$lt_old_postuninstall_cmds
17873
17874# Create an old-style archive from a shared archive.
17875old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
17876
17877# Create a temporary old-style archive to link instead of a shared archive.
17878old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
17879
17880# Commands used to build and install a shared archive.
17881archive_cmds=$lt_archive_cmds_RC
17882archive_expsym_cmds=$lt_archive_expsym_cmds_RC
17883postinstall_cmds=$lt_postinstall_cmds
17884postuninstall_cmds=$lt_postuninstall_cmds
17885
17886# Commands used to build a loadable module (assumed same as above if empty)
17887module_cmds=$lt_module_cmds_RC
17888module_expsym_cmds=$lt_module_expsym_cmds_RC
17889
17890# Commands to strip libraries.
17891old_striplib=$lt_old_striplib
17892striplib=$lt_striplib
17893
17894# Dependencies to place before the objects being linked to create a
17895# shared library.
17896predep_objects=$lt_predep_objects_RC
17897
17898# Dependencies to place after the objects being linked to create a
17899# shared library.
17900postdep_objects=$lt_postdep_objects_RC
17901
17902# Dependencies to place before the objects being linked to create a
17903# shared library.
17904predeps=$lt_predeps_RC
17905
17906# Dependencies to place after the objects being linked to create a
17907# shared library.
17908postdeps=$lt_postdeps_RC
17909
17910# The library search path used internally by the compiler when linking
17911# a shared library.
17912compiler_lib_search_path=$lt_compiler_lib_search_path_RC
17913
17914# Method to check whether dependent libraries are shared objects.
17915deplibs_check_method=$lt_deplibs_check_method
17916
17917# Command to use when deplibs_check_method == file_magic.
17918file_magic_cmd=$lt_file_magic_cmd
17919
17920# Flag that allows shared libraries with undefined symbols to be built.
17921allow_undefined_flag=$lt_allow_undefined_flag_RC
17922
17923# Flag that forces no undefined symbols.
17924no_undefined_flag=$lt_no_undefined_flag_RC
17925
17926# Commands used to finish a libtool library installation in a directory.
17927finish_cmds=$lt_finish_cmds
17928
17929# Same as above, but a single script fragment to be evaled but not shown.
17930finish_eval=$lt_finish_eval
17931
17932# Take the output of nm and produce a listing of raw symbols and C names.
17933global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17934
17935# Transform the output of nm in a proper C declaration
17936global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17937
17938# Transform the output of nm in a C name address pair
17939global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17940
17941# This is the shared library runtime path variable.
17942runpath_var=$runpath_var
17943
17944# This is the shared library path variable.
17945shlibpath_var=$shlibpath_var
17946
17947# Is shlibpath searched before the hard-coded library search path?
17948shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17949
17950# How to hardcode a shared library path into an executable.
17951hardcode_action=$hardcode_action_RC
17952
17953# Whether we should hardcode library paths into libraries.
17954hardcode_into_libs=$hardcode_into_libs
17955
17956# Flag to hardcode \$libdir into a binary during linking.
17957# This must work even if \$libdir does not exist.
17958hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
17959
17960# If ld is used when linking, flag to hardcode \$libdir into
17961# a binary during linking. This must work even if \$libdir does
17962# not exist.
17963hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
17964
17965# Whether we need a single -rpath flag with a separated argument.
17966hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
17967
17968# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17969# resulting binary.
17970hardcode_direct=$hardcode_direct_RC
17971
17972# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17973# resulting binary.
17974hardcode_minus_L=$hardcode_minus_L_RC
17975
17976# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17977# the resulting binary.
17978hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
17979
17980# Set to yes if building a shared library automatically hardcodes DIR into the library
17981# and all subsequent libraries and executables linked against it.
17982hardcode_automatic=$hardcode_automatic_RC
17983
17984# Variables whose values should be saved in libtool wrapper scripts and
17985# restored at relink time.
17986variables_saved_for_relink="$variables_saved_for_relink"
17987
17988# Whether libtool must link a program against all its dependency libraries.
17989link_all_deplibs=$link_all_deplibs_RC
17990
17991# Compile-time system search path for libraries
17992sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17993
17994# Run-time system search path for libraries
17995sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17996
17997# Fix the shell variable \$srcfile for the compiler.
17998fix_srcfile_path="$fix_srcfile_path_RC"
17999
18000# Set to yes if exported symbols are required.
18001always_export_symbols=$always_export_symbols_RC
18002
18003# The commands to list exported symbols.
18004export_symbols_cmds=$lt_export_symbols_cmds_RC
18005
18006# The commands to extract the exported symbol list from a shared archive.
18007extract_expsyms_cmds=$lt_extract_expsyms_cmds
18008
18009# Symbols that should not be listed in the preloaded symbols.
18010exclude_expsyms=$lt_exclude_expsyms_RC
18011
18012# Symbols that must always be exported.
18013include_expsyms=$lt_include_expsyms_RC
18014
18015# ### END LIBTOOL TAG CONFIG: $tagname
18016
18017__EOF__
18018
18019
18020else
18021 # If there is no Makefile yet, we rely on a make rule to execute
18022 # `config.status --recheck' to rerun these tests and create the
18023 # libtool script then.
18024 test -f Makefile && make "$ltmain"
18025fi
18026
18027
18028ac_ext=c
18029ac_cpp='$CPP $CPPFLAGS'
18030ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18031ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18032ac_compiler_gnu=$ac_cv_c_compiler_gnu
18033
18034CC="$lt_save_CC"
18035
18036 ;;
18037
18038 *)
18039 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18040echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18041 { (exit 1); exit 1; }; }
18042 ;;
18043 esac
18044
18045 # Append the new tag name to the list of available tags.
18046 if test -n "$tagname" ; then
18047 available_tags="$available_tags $tagname"
18048 fi
18049 fi
18050 done
18051 IFS="$lt_save_ifs"
18052
18053 # Now substitute the updated list of available tags.
18054 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18055 mv "${ofile}T" "$ofile"
18056 chmod +x "$ofile"
18057 else
18058 rm -f "${ofile}T"
18059 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18060echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18061 { (exit 1); exit 1; }; }
18062 fi
18063fi
John Criswell7a73b802003-06-30 21:59:07 +000018064
18065
18066
18067# This can be used to rebuild libtool when needed
18068LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18069
18070# Always use our own libtool.
John Criswell8d4221e2003-07-23 16:52:50 +000018071LIBTOOL='$(SHELL) $(top_builddir)/mklib'
John Criswell7a73b802003-06-30 21:59:07 +000018072
18073# Prevent multiple expansion
18074
18075
18076
John Criswell47fdd832003-07-14 16:52:07 +000018077
18078
18079
18080
18081
18082
18083
18084
18085
18086
18087
18088
18089
18090
18091
18092
18093
18094
John Criswell7a73b802003-06-30 21:59:07 +000018095# Extract the first word of "dot", so it can be a program name with args.
18096set dummy dot; ac_word=$2
18097echo "$as_me:$LINENO: checking for $ac_word" >&5
18098echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18099if test "${ac_cv_path_DOT+set}" = set; then
18100 echo $ECHO_N "(cached) $ECHO_C" >&6
18101else
18102 case $DOT in
18103 [\\/]* | ?:[\\/]*)
18104 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
18105 ;;
18106 *)
18107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18108for as_dir in $PATH
18109do
18110 IFS=$as_save_IFS
18111 test -z "$as_dir" && as_dir=.
18112 for ac_exec_ext in '' $ac_executable_extensions; do
18113 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18114 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
18115 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18116 break 2
18117 fi
18118done
18119done
18120
Brian Gaeke26be9c52004-01-13 06:43:16 +000018121 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="true dot"
John Criswell7a73b802003-06-30 21:59:07 +000018122 ;;
18123esac
18124fi
18125DOT=$ac_cv_path_DOT
18126
18127if test -n "$DOT"; then
18128 echo "$as_me:$LINENO: result: $DOT" >&5
18129echo "${ECHO_T}$DOT" >&6
18130else
18131 echo "$as_me:$LINENO: result: no" >&5
18132echo "${ECHO_T}no" >&6
18133fi
18134
18135# Extract the first word of "etags", so it can be a program name with args.
18136set dummy etags; ac_word=$2
18137echo "$as_me:$LINENO: checking for $ac_word" >&5
18138echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18139if test "${ac_cv_path_ETAGS+set}" = set; then
18140 echo $ECHO_N "(cached) $ECHO_C" >&6
18141else
18142 case $ETAGS in
18143 [\\/]* | ?:[\\/]*)
18144 ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
18145 ;;
18146 *)
18147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18148for as_dir in $PATH
18149do
18150 IFS=$as_save_IFS
18151 test -z "$as_dir" && as_dir=.
18152 for ac_exec_ext in '' $ac_executable_extensions; do
18153 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18154 ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
18155 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18156 break 2
18157 fi
18158done
18159done
18160
Brian Gaeke26be9c52004-01-13 06:43:16 +000018161 test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="true etags"
John Criswell7a73b802003-06-30 21:59:07 +000018162 ;;
18163esac
18164fi
18165ETAGS=$ac_cv_path_ETAGS
18166
18167if test -n "$ETAGS"; then
18168 echo "$as_me:$LINENO: result: $ETAGS" >&5
18169echo "${ECHO_T}$ETAGS" >&6
18170else
18171 echo "$as_me:$LINENO: result: no" >&5
18172echo "${ECHO_T}no" >&6
18173fi
18174
Brian Gaekeafa3fbf2004-01-22 21:55:02 +000018175etags_version=`$ETAGS --version 2>&1`
18176case "$etags_version" in
18177 *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
18178 *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
18179 *) ETAGSFLAGS="" ;;
18180esac
18181ETAGSFLAGS=$ETAGSFLAGS
18182
John Criswellde00db22003-08-25 16:49:54 +000018183# Extract the first word of "python", so it can be a program name with args.
18184set dummy python; ac_word=$2
18185echo "$as_me:$LINENO: checking for $ac_word" >&5
18186echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18187if test "${ac_cv_path_PYTHON+set}" = set; then
18188 echo $ECHO_N "(cached) $ECHO_C" >&6
18189else
18190 case $PYTHON in
18191 [\\/]* | ?:[\\/]*)
18192 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
18193 ;;
18194 *)
18195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18196for as_dir in $PATH
18197do
18198 IFS=$as_save_IFS
18199 test -z "$as_dir" && as_dir=.
18200 for ac_exec_ext in '' $ac_executable_extensions; do
18201 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18202 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
18203 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18204 break 2
18205 fi
18206done
18207done
18208
Brian Gaeke26be9c52004-01-13 06:43:16 +000018209 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="true python"
John Criswellde00db22003-08-25 16:49:54 +000018210 ;;
18211esac
18212fi
18213PYTHON=$ac_cv_path_PYTHON
18214
18215if test -n "$PYTHON"; then
18216 echo "$as_me:$LINENO: result: $PYTHON" >&5
18217echo "${ECHO_T}$PYTHON" >&6
18218else
18219 echo "$as_me:$LINENO: result: no" >&5
18220echo "${ECHO_T}no" >&6
18221fi
18222
Brian Gaeke26be9c52004-01-13 06:43:16 +000018223if test "$PYTHON" = "false"
John Criswell39827c82003-09-23 15:28:52 +000018224then
Brian Gaeke26be9c52004-01-13 06:43:16 +000018225 { echo "$as_me:$LINENO: WARNING: Python is required for the test suite, but it was not found" >&5
18226echo "$as_me: WARNING: Python is required for the test suite, but it was not found" >&2;}
John Criswell39827c82003-09-23 15:28:52 +000018227fi
John Criswellde00db22003-08-25 16:49:54 +000018228# Extract the first word of "qmtest", so it can be a program name with args.
18229set dummy qmtest; ac_word=$2
18230echo "$as_me:$LINENO: checking for $ac_word" >&5
18231echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18232if test "${ac_cv_path_QMTEST+set}" = set; then
18233 echo $ECHO_N "(cached) $ECHO_C" >&6
18234else
18235 case $QMTEST in
18236 [\\/]* | ?:[\\/]*)
18237 ac_cv_path_QMTEST="$QMTEST" # Let the user override the test with a path.
18238 ;;
18239 *)
18240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18241for as_dir in $PATH
18242do
18243 IFS=$as_save_IFS
18244 test -z "$as_dir" && as_dir=.
18245 for ac_exec_ext in '' $ac_executable_extensions; do
18246 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18247 ac_cv_path_QMTEST="$as_dir/$ac_word$ac_exec_ext"
18248 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18249 break 2
18250 fi
18251done
18252done
18253
Brian Gaeke26be9c52004-01-13 06:43:16 +000018254 test -z "$ac_cv_path_QMTEST" && ac_cv_path_QMTEST="true qmtest"
John Criswellde00db22003-08-25 16:49:54 +000018255 ;;
18256esac
18257fi
18258QMTEST=$ac_cv_path_QMTEST
18259
18260if test -n "$QMTEST"; then
18261 echo "$as_me:$LINENO: result: $QMTEST" >&5
18262echo "${ECHO_T}$QMTEST" >&6
18263else
18264 echo "$as_me:$LINENO: result: no" >&5
18265echo "${ECHO_T}no" >&6
18266fi
18267
Brian Gaeke26be9c52004-01-13 06:43:16 +000018268if test "$QMTEST" = "false"
John Criswell39827c82003-09-23 15:28:52 +000018269then
Brian Gaeke26be9c52004-01-13 06:43:16 +000018270 { echo "$as_me:$LINENO: WARNING: QMTest is required for the test suite, but it was not found" >&5
18271echo "$as_me: WARNING: QMTest is required for the test suite, but it was not found" >&2;}
John Criswell39827c82003-09-23 15:28:52 +000018272fi
John Criswellde00db22003-08-25 16:49:54 +000018273
18274pyversion=`$PYTHON -V 2>&1 | cut -d\ -f2`
18275pymajor=`echo $pyversion | cut -d. -f1`
18276pyminor=`echo $pyversion | cut -d. -f2`
18277
18278if test "$pymajor" -ge "2"
18279then
18280 if test "$pymajor" -eq "2"
18281 then
18282 if test "$pyminor" -lt "2"
18283 then
Brian Gaeke26be9c52004-01-13 06:43:16 +000018284 { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5
18285echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;}
John Criswellde00db22003-08-25 16:49:54 +000018286 fi
18287 fi
18288else
Brian Gaeke26be9c52004-01-13 06:43:16 +000018289 { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5
18290echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;}
John Criswellde00db22003-08-25 16:49:54 +000018291fi
John Criswell7a73b802003-06-30 21:59:07 +000018292
18293
18294
18295
John Criswell7a73b802003-06-30 21:59:07 +000018296echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
18297echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
18298if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
18299 echo $ECHO_N "(cached) $ECHO_C" >&6
18300else
18301 ac_check_lib_save_LIBS=$LIBS
18302LIBS="-lelf $LIBS"
18303cat >conftest.$ac_ext <<_ACEOF
18304#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000018305/* confdefs.h. */
18306_ACEOF
18307cat confdefs.h >>conftest.$ac_ext
18308cat >>conftest.$ac_ext <<_ACEOF
18309/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000018310
18311/* Override any gcc2 internal prototype to avoid an error. */
18312#ifdef __cplusplus
18313extern "C"
18314#endif
18315/* We use char because int might match the return type of a gcc2
18316 builtin and then its argument prototype would still apply. */
18317char elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000018318int
18319main ()
18320{
18321elf_begin ();
18322 ;
18323 return 0;
18324}
18325_ACEOF
18326rm -f conftest.$ac_objext conftest$ac_exeext
18327if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18328 (eval $ac_link) 2>&5
18329 ac_status=$?
18330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18331 (exit $ac_status); } &&
18332 { ac_try='test -s conftest$ac_exeext'
18333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18334 (eval $ac_try) 2>&5
18335 ac_status=$?
18336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18337 (exit $ac_status); }; }; then
18338 ac_cv_lib_elf_elf_begin=yes
18339else
18340 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018341sed 's/^/| /' conftest.$ac_ext >&5
18342
John Criswell7a73b802003-06-30 21:59:07 +000018343ac_cv_lib_elf_elf_begin=no
18344fi
18345rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18346LIBS=$ac_check_lib_save_LIBS
18347fi
18348echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
18349echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
18350if test $ac_cv_lib_elf_elf_begin = yes; then
18351 cat >>confdefs.h <<_ACEOF
18352#define HAVE_LIBELF 1
18353_ACEOF
18354
18355 LIBS="-lelf $LIBS"
18356
18357fi
18358
18359
18360echo "$as_me:$LINENO: checking for library containing dlopen" >&5
18361echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
18362if test "${ac_cv_search_dlopen+set}" = set; then
18363 echo $ECHO_N "(cached) $ECHO_C" >&6
18364else
18365 ac_func_search_save_LIBS=$LIBS
18366ac_cv_search_dlopen=no
18367cat >conftest.$ac_ext <<_ACEOF
18368#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000018369/* confdefs.h. */
18370_ACEOF
18371cat confdefs.h >>conftest.$ac_ext
18372cat >>conftest.$ac_ext <<_ACEOF
18373/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000018374
18375/* Override any gcc2 internal prototype to avoid an error. */
18376#ifdef __cplusplus
18377extern "C"
18378#endif
18379/* We use char because int might match the return type of a gcc2
18380 builtin and then its argument prototype would still apply. */
18381char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000018382int
18383main ()
18384{
18385dlopen ();
18386 ;
18387 return 0;
18388}
18389_ACEOF
18390rm -f conftest.$ac_objext conftest$ac_exeext
18391if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18392 (eval $ac_link) 2>&5
18393 ac_status=$?
18394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18395 (exit $ac_status); } &&
18396 { ac_try='test -s conftest$ac_exeext'
18397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18398 (eval $ac_try) 2>&5
18399 ac_status=$?
18400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18401 (exit $ac_status); }; }; then
18402 ac_cv_search_dlopen="none required"
18403else
18404 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018405sed 's/^/| /' conftest.$ac_ext >&5
18406
John Criswell7a73b802003-06-30 21:59:07 +000018407fi
18408rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18409if test "$ac_cv_search_dlopen" = no; then
18410 for ac_lib in dl; do
18411 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18412 cat >conftest.$ac_ext <<_ACEOF
18413#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000018414/* confdefs.h. */
18415_ACEOF
18416cat confdefs.h >>conftest.$ac_ext
18417cat >>conftest.$ac_ext <<_ACEOF
18418/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000018419
18420/* Override any gcc2 internal prototype to avoid an error. */
18421#ifdef __cplusplus
18422extern "C"
18423#endif
18424/* We use char because int might match the return type of a gcc2
18425 builtin and then its argument prototype would still apply. */
18426char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000018427int
18428main ()
18429{
18430dlopen ();
18431 ;
18432 return 0;
18433}
18434_ACEOF
18435rm -f conftest.$ac_objext conftest$ac_exeext
18436if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18437 (eval $ac_link) 2>&5
18438 ac_status=$?
18439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18440 (exit $ac_status); } &&
18441 { ac_try='test -s conftest$ac_exeext'
18442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18443 (eval $ac_try) 2>&5
18444 ac_status=$?
18445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18446 (exit $ac_status); }; }; then
18447 ac_cv_search_dlopen="-l$ac_lib"
18448break
18449else
18450 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018451sed 's/^/| /' conftest.$ac_ext >&5
18452
John Criswell7a73b802003-06-30 21:59:07 +000018453fi
18454rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18455 done
18456fi
18457LIBS=$ac_func_search_save_LIBS
18458fi
18459echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
18460echo "${ECHO_T}$ac_cv_search_dlopen" >&6
18461if test "$ac_cv_search_dlopen" != no; then
18462 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000018463
18464cat >>confdefs.h <<\_ACEOF
Brian Gaekec45be042003-10-07 06:01:34 +000018465#define HAVE_DLOPEN 1
18466_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000018467
18468else
Brian Gaekec45be042003-10-07 06:01:34 +000018469 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
18470echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000018471fi
18472
18473
18474echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
18475echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
18476if test "${ac_cv_search_mallinfo+set}" = set; then
18477 echo $ECHO_N "(cached) $ECHO_C" >&6
18478else
18479 ac_func_search_save_LIBS=$LIBS
18480ac_cv_search_mallinfo=no
18481cat >conftest.$ac_ext <<_ACEOF
18482#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000018483/* confdefs.h. */
18484_ACEOF
18485cat confdefs.h >>conftest.$ac_ext
18486cat >>conftest.$ac_ext <<_ACEOF
18487/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000018488
18489/* Override any gcc2 internal prototype to avoid an error. */
18490#ifdef __cplusplus
18491extern "C"
18492#endif
18493/* We use char because int might match the return type of a gcc2
18494 builtin and then its argument prototype would still apply. */
18495char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000018496int
18497main ()
18498{
18499mallinfo ();
18500 ;
18501 return 0;
18502}
18503_ACEOF
18504rm -f conftest.$ac_objext conftest$ac_exeext
18505if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18506 (eval $ac_link) 2>&5
18507 ac_status=$?
18508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18509 (exit $ac_status); } &&
18510 { ac_try='test -s conftest$ac_exeext'
18511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18512 (eval $ac_try) 2>&5
18513 ac_status=$?
18514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18515 (exit $ac_status); }; }; then
18516 ac_cv_search_mallinfo="none required"
18517else
18518 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018519sed 's/^/| /' conftest.$ac_ext >&5
18520
John Criswell7a73b802003-06-30 21:59:07 +000018521fi
18522rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18523if test "$ac_cv_search_mallinfo" = no; then
18524 for ac_lib in malloc; do
18525 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18526 cat >conftest.$ac_ext <<_ACEOF
18527#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000018528/* confdefs.h. */
18529_ACEOF
18530cat confdefs.h >>conftest.$ac_ext
18531cat >>conftest.$ac_ext <<_ACEOF
18532/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000018533
18534/* Override any gcc2 internal prototype to avoid an error. */
18535#ifdef __cplusplus
18536extern "C"
18537#endif
18538/* We use char because int might match the return type of a gcc2
18539 builtin and then its argument prototype would still apply. */
18540char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000018541int
18542main ()
18543{
18544mallinfo ();
18545 ;
18546 return 0;
18547}
18548_ACEOF
18549rm -f conftest.$ac_objext conftest$ac_exeext
18550if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18551 (eval $ac_link) 2>&5
18552 ac_status=$?
18553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18554 (exit $ac_status); } &&
18555 { ac_try='test -s conftest$ac_exeext'
18556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18557 (eval $ac_try) 2>&5
18558 ac_status=$?
18559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18560 (exit $ac_status); }; }; then
18561 ac_cv_search_mallinfo="-l$ac_lib"
18562break
18563else
18564 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018565sed 's/^/| /' conftest.$ac_ext >&5
18566
John Criswell7a73b802003-06-30 21:59:07 +000018567fi
18568rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18569 done
18570fi
18571LIBS=$ac_func_search_save_LIBS
18572fi
18573echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
18574echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
18575if test "$ac_cv_search_mallinfo" != no; then
18576 test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000018577
18578cat >>confdefs.h <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000018579#define HAVE_MALLINFO 1
18580_ACEOF
18581
18582fi
18583
18584
Brian Gaeke5f268f72003-12-05 19:29:01 +000018585echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
18586echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
18587if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
18588 echo $ECHO_N "(cached) $ECHO_C" >&6
18589else
18590 ac_func_search_save_LIBS=$LIBS
18591ac_cv_search_pthread_mutex_lock=no
18592cat >conftest.$ac_ext <<_ACEOF
18593#line $LINENO "configure"
18594/* confdefs.h. */
18595_ACEOF
18596cat confdefs.h >>conftest.$ac_ext
18597cat >>conftest.$ac_ext <<_ACEOF
18598/* end confdefs.h. */
18599
18600/* Override any gcc2 internal prototype to avoid an error. */
18601#ifdef __cplusplus
18602extern "C"
18603#endif
18604/* We use char because int might match the return type of a gcc2
18605 builtin and then its argument prototype would still apply. */
18606char pthread_mutex_lock ();
18607int
18608main ()
18609{
18610pthread_mutex_lock ();
18611 ;
18612 return 0;
18613}
18614_ACEOF
18615rm -f conftest.$ac_objext conftest$ac_exeext
18616if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18617 (eval $ac_link) 2>&5
18618 ac_status=$?
18619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18620 (exit $ac_status); } &&
18621 { ac_try='test -s conftest$ac_exeext'
18622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18623 (eval $ac_try) 2>&5
18624 ac_status=$?
18625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18626 (exit $ac_status); }; }; then
18627 ac_cv_search_pthread_mutex_lock="none required"
18628else
18629 echo "$as_me: failed program was:" >&5
18630sed 's/^/| /' conftest.$ac_ext >&5
18631
18632fi
18633rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18634if test "$ac_cv_search_pthread_mutex_lock" = no; then
18635 for ac_lib in pthread; do
18636 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18637 cat >conftest.$ac_ext <<_ACEOF
18638#line $LINENO "configure"
18639/* confdefs.h. */
18640_ACEOF
18641cat confdefs.h >>conftest.$ac_ext
18642cat >>conftest.$ac_ext <<_ACEOF
18643/* end confdefs.h. */
18644
18645/* Override any gcc2 internal prototype to avoid an error. */
18646#ifdef __cplusplus
18647extern "C"
18648#endif
18649/* We use char because int might match the return type of a gcc2
18650 builtin and then its argument prototype would still apply. */
18651char pthread_mutex_lock ();
18652int
18653main ()
18654{
18655pthread_mutex_lock ();
18656 ;
18657 return 0;
18658}
18659_ACEOF
18660rm -f conftest.$ac_objext conftest$ac_exeext
18661if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18662 (eval $ac_link) 2>&5
18663 ac_status=$?
18664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18665 (exit $ac_status); } &&
18666 { ac_try='test -s conftest$ac_exeext'
18667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18668 (eval $ac_try) 2>&5
18669 ac_status=$?
18670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18671 (exit $ac_status); }; }; then
18672 ac_cv_search_pthread_mutex_lock="-l$ac_lib"
18673break
18674else
18675 echo "$as_me: failed program was:" >&5
18676sed 's/^/| /' conftest.$ac_ext >&5
18677
18678fi
18679rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18680 done
18681fi
18682LIBS=$ac_func_search_save_LIBS
18683fi
18684echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
18685echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
18686if test "$ac_cv_search_pthread_mutex_lock" != no; then
18687 test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
Brian Gaekec9a410c2004-02-23 21:30:37 +000018688 HAVE_PTHREAD_MUTEX_LOCK=1
18689else
18690 HAVE_PTHREAD_MUTEX_LOCK=0
Brian Gaeke5f268f72003-12-05 19:29:01 +000018691fi
18692
18693
Brian Gaekec9a410c2004-02-23 21:30:37 +000018694
John Criswell7a73b802003-06-30 21:59:07 +000018695echo "$as_me:$LINENO: checking for ANSI C header files" >&5
18696echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
18697if test "${ac_cv_header_stdc+set}" = set; then
18698 echo $ECHO_N "(cached) $ECHO_C" >&6
18699else
18700 cat >conftest.$ac_ext <<_ACEOF
18701#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000018702/* confdefs.h. */
18703_ACEOF
18704cat confdefs.h >>conftest.$ac_ext
18705cat >>conftest.$ac_ext <<_ACEOF
18706/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000018707#include <stdlib.h>
18708#include <stdarg.h>
18709#include <string.h>
18710#include <float.h>
18711
John Criswell0c38eaf2003-09-10 15:17:25 +000018712int
18713main ()
18714{
18715
18716 ;
18717 return 0;
18718}
John Criswell7a73b802003-06-30 21:59:07 +000018719_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018720rm -f conftest.$ac_objext
18721if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18722 (eval $ac_compile) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000018723 ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +000018724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018725 (exit $ac_status); } &&
18726 { ac_try='test -s conftest.$ac_objext'
18727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18728 (eval $ac_try) 2>&5
18729 ac_status=$?
18730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18731 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000018732 ac_cv_header_stdc=yes
18733else
18734 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018735sed 's/^/| /' conftest.$ac_ext >&5
18736
18737ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000018738fi
John Criswell0c38eaf2003-09-10 15:17:25 +000018739rm -f conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000018740
18741if test $ac_cv_header_stdc = yes; then
18742 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
18743 cat >conftest.$ac_ext <<_ACEOF
18744#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000018745/* confdefs.h. */
18746_ACEOF
18747cat confdefs.h >>conftest.$ac_ext
18748cat >>conftest.$ac_ext <<_ACEOF
18749/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000018750#include <string.h>
18751
18752_ACEOF
18753if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000018754 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000018755 :
18756else
18757 ac_cv_header_stdc=no
18758fi
18759rm -f conftest*
18760
18761fi
18762
18763if test $ac_cv_header_stdc = yes; then
18764 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
18765 cat >conftest.$ac_ext <<_ACEOF
18766#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000018767/* confdefs.h. */
18768_ACEOF
18769cat confdefs.h >>conftest.$ac_ext
18770cat >>conftest.$ac_ext <<_ACEOF
18771/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000018772#include <stdlib.h>
18773
18774_ACEOF
18775if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000018776 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000018777 :
18778else
18779 ac_cv_header_stdc=no
18780fi
18781rm -f conftest*
18782
18783fi
18784
18785if test $ac_cv_header_stdc = yes; then
18786 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
18787 if test "$cross_compiling" = yes; then
18788 :
18789else
18790 cat >conftest.$ac_ext <<_ACEOF
18791#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000018792/* confdefs.h. */
18793_ACEOF
18794cat confdefs.h >>conftest.$ac_ext
18795cat >>conftest.$ac_ext <<_ACEOF
18796/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000018797#include <ctype.h>
18798#if ((' ' & 0x0FF) == 0x020)
18799# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
18800# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
18801#else
John Criswell0c38eaf2003-09-10 15:17:25 +000018802# define ISLOWER(c) \
18803 (('a' <= (c) && (c) <= 'i') \
John Criswell7a73b802003-06-30 21:59:07 +000018804 || ('j' <= (c) && (c) <= 'r') \
18805 || ('s' <= (c) && (c) <= 'z'))
18806# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
18807#endif
18808
18809#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
18810int
18811main ()
18812{
18813 int i;
18814 for (i = 0; i < 256; i++)
18815 if (XOR (islower (i), ISLOWER (i))
18816 || toupper (i) != TOUPPER (i))
18817 exit(2);
18818 exit (0);
18819}
18820_ACEOF
18821rm -f conftest$ac_exeext
18822if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18823 (eval $ac_link) 2>&5
18824 ac_status=$?
18825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18826 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18828 (eval $ac_try) 2>&5
18829 ac_status=$?
18830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18831 (exit $ac_status); }; }; then
18832 :
18833else
18834 echo "$as_me: program exited with status $ac_status" >&5
18835echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018836sed 's/^/| /' conftest.$ac_ext >&5
18837
John Criswell7a73b802003-06-30 21:59:07 +000018838( exit $ac_status )
18839ac_cv_header_stdc=no
18840fi
John Criswell0c38eaf2003-09-10 15:17:25 +000018841rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000018842fi
18843fi
18844fi
18845echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
18846echo "${ECHO_T}$ac_cv_header_stdc" >&6
18847if test $ac_cv_header_stdc = yes; then
18848
18849cat >>confdefs.h <<\_ACEOF
18850#define STDC_HEADERS 1
18851_ACEOF
18852
18853fi
18854
18855echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
18856echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
18857if test "${ac_cv_header_sys_wait_h+set}" = set; then
18858 echo $ECHO_N "(cached) $ECHO_C" >&6
18859else
18860 cat >conftest.$ac_ext <<_ACEOF
18861#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000018862/* confdefs.h. */
18863_ACEOF
18864cat confdefs.h >>conftest.$ac_ext
18865cat >>conftest.$ac_ext <<_ACEOF
18866/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000018867#include <sys/types.h>
18868#include <sys/wait.h>
18869#ifndef WEXITSTATUS
18870# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
18871#endif
18872#ifndef WIFEXITED
18873# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
18874#endif
18875
John Criswell7a73b802003-06-30 21:59:07 +000018876int
18877main ()
18878{
18879 int s;
18880 wait (&s);
18881 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
18882 ;
18883 return 0;
18884}
18885_ACEOF
18886rm -f conftest.$ac_objext
18887if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18888 (eval $ac_compile) 2>&5
18889 ac_status=$?
18890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18891 (exit $ac_status); } &&
18892 { ac_try='test -s conftest.$ac_objext'
18893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18894 (eval $ac_try) 2>&5
18895 ac_status=$?
18896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18897 (exit $ac_status); }; }; then
18898 ac_cv_header_sys_wait_h=yes
18899else
18900 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018901sed 's/^/| /' conftest.$ac_ext >&5
18902
John Criswell7a73b802003-06-30 21:59:07 +000018903ac_cv_header_sys_wait_h=no
18904fi
18905rm -f conftest.$ac_objext conftest.$ac_ext
18906fi
18907echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
18908echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
18909if test $ac_cv_header_sys_wait_h = yes; then
18910
18911cat >>confdefs.h <<\_ACEOF
18912#define HAVE_SYS_WAIT_H 1
18913_ACEOF
18914
18915fi
18916
18917
18918
18919
18920
18921
18922
18923
18924
18925
Brian Gaeke26be9c52004-01-13 06:43:16 +000018926
Brian Gaekef5261472004-02-20 06:40:57 +000018927
John Criswellb2815e02004-05-27 20:40:39 +000018928
18929for 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 +000018930do
18931as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18932if eval "test \"\${$as_ac_Header+set}\" = set"; then
18933 echo "$as_me:$LINENO: checking for $ac_header" >&5
18934echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18935if eval "test \"\${$as_ac_Header+set}\" = set"; then
18936 echo $ECHO_N "(cached) $ECHO_C" >&6
18937fi
18938echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18939echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18940else
18941 # Is the header compilable?
18942echo "$as_me:$LINENO: checking $ac_header usability" >&5
18943echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18944cat >conftest.$ac_ext <<_ACEOF
18945#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000018946/* confdefs.h. */
18947_ACEOF
18948cat confdefs.h >>conftest.$ac_ext
18949cat >>conftest.$ac_ext <<_ACEOF
18950/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000018951$ac_includes_default
18952#include <$ac_header>
18953_ACEOF
18954rm -f conftest.$ac_objext
18955if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18956 (eval $ac_compile) 2>&5
18957 ac_status=$?
18958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18959 (exit $ac_status); } &&
18960 { ac_try='test -s conftest.$ac_objext'
18961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18962 (eval $ac_try) 2>&5
18963 ac_status=$?
18964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18965 (exit $ac_status); }; }; then
18966 ac_header_compiler=yes
18967else
18968 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018969sed 's/^/| /' conftest.$ac_ext >&5
18970
John Criswell7a73b802003-06-30 21:59:07 +000018971ac_header_compiler=no
18972fi
18973rm -f conftest.$ac_objext conftest.$ac_ext
18974echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18975echo "${ECHO_T}$ac_header_compiler" >&6
18976
18977# Is the header present?
18978echo "$as_me:$LINENO: checking $ac_header presence" >&5
18979echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18980cat >conftest.$ac_ext <<_ACEOF
18981#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000018982/* confdefs.h. */
18983_ACEOF
18984cat confdefs.h >>conftest.$ac_ext
18985cat >>conftest.$ac_ext <<_ACEOF
18986/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000018987#include <$ac_header>
18988_ACEOF
18989if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18990 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18991 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000018992 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000018993 rm -f conftest.er1
18994 cat conftest.err >&5
18995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18996 (exit $ac_status); } >/dev/null; then
18997 if test -s conftest.err; then
18998 ac_cpp_err=$ac_c_preproc_warn_flag
18999 else
19000 ac_cpp_err=
19001 fi
19002else
19003 ac_cpp_err=yes
19004fi
19005if test -z "$ac_cpp_err"; then
19006 ac_header_preproc=yes
19007else
19008 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019009sed 's/^/| /' conftest.$ac_ext >&5
19010
John Criswell7a73b802003-06-30 21:59:07 +000019011 ac_header_preproc=no
19012fi
19013rm -f conftest.err conftest.$ac_ext
19014echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19015echo "${ECHO_T}$ac_header_preproc" >&6
19016
19017# So? What about this header?
19018case $ac_header_compiler:$ac_header_preproc in
19019 yes:no )
19020 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19021echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19022 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019023echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19024 (
19025 cat <<\_ASBOX
19026## ------------------------------------ ##
19027## Report this to bug-autoconf@gnu.org. ##
19028## ------------------------------------ ##
19029_ASBOX
19030 ) |
19031 sed "s/^/$as_me: WARNING: /" >&2
19032 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019033 no:yes )
19034 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19035echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19036 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19037echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19038 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019039echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19040 (
19041 cat <<\_ASBOX
19042## ------------------------------------ ##
19043## Report this to bug-autoconf@gnu.org. ##
19044## ------------------------------------ ##
19045_ASBOX
19046 ) |
19047 sed "s/^/$as_me: WARNING: /" >&2
19048 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019049esac
19050echo "$as_me:$LINENO: checking for $ac_header" >&5
19051echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19052if eval "test \"\${$as_ac_Header+set}\" = set"; then
19053 echo $ECHO_N "(cached) $ECHO_C" >&6
19054else
19055 eval "$as_ac_Header=$ac_header_preproc"
19056fi
19057echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19058echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19059
19060fi
19061if test `eval echo '${'$as_ac_Header'}'` = yes; then
19062 cat >>confdefs.h <<_ACEOF
19063#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19064_ACEOF
19065
19066fi
19067
19068done
19069
19070
Brian Gaeke6c3fd812004-02-23 22:07:00 +000019071if test "${ac_cv_header_sys_types_h+set}" = set; then
19072 echo "$as_me:$LINENO: checking for sys/types.h" >&5
19073echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
19074if test "${ac_cv_header_sys_types_h+set}" = set; then
19075 echo $ECHO_N "(cached) $ECHO_C" >&6
19076fi
19077echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
19078echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
19079else
19080 # Is the header compilable?
19081echo "$as_me:$LINENO: checking sys/types.h usability" >&5
19082echo $ECHO_N "checking sys/types.h usability... $ECHO_C" >&6
19083cat >conftest.$ac_ext <<_ACEOF
19084#line $LINENO "configure"
19085/* confdefs.h. */
19086_ACEOF
19087cat confdefs.h >>conftest.$ac_ext
19088cat >>conftest.$ac_ext <<_ACEOF
19089/* end confdefs.h. */
19090$ac_includes_default
19091#include <sys/types.h>
19092_ACEOF
19093rm -f conftest.$ac_objext
19094if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19095 (eval $ac_compile) 2>&5
19096 ac_status=$?
19097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19098 (exit $ac_status); } &&
19099 { ac_try='test -s conftest.$ac_objext'
19100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19101 (eval $ac_try) 2>&5
19102 ac_status=$?
19103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19104 (exit $ac_status); }; }; then
19105 ac_header_compiler=yes
19106else
19107 echo "$as_me: failed program was:" >&5
19108sed 's/^/| /' conftest.$ac_ext >&5
19109
19110ac_header_compiler=no
19111fi
19112rm -f conftest.$ac_objext conftest.$ac_ext
19113echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19114echo "${ECHO_T}$ac_header_compiler" >&6
19115
19116# Is the header present?
19117echo "$as_me:$LINENO: checking sys/types.h presence" >&5
19118echo $ECHO_N "checking sys/types.h presence... $ECHO_C" >&6
19119cat >conftest.$ac_ext <<_ACEOF
19120#line $LINENO "configure"
19121/* confdefs.h. */
19122_ACEOF
19123cat confdefs.h >>conftest.$ac_ext
19124cat >>conftest.$ac_ext <<_ACEOF
19125/* end confdefs.h. */
19126#include <sys/types.h>
19127_ACEOF
19128if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19129 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19130 ac_status=$?
19131 grep -v '^ *+' conftest.er1 >conftest.err
19132 rm -f conftest.er1
19133 cat conftest.err >&5
19134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19135 (exit $ac_status); } >/dev/null; then
19136 if test -s conftest.err; then
19137 ac_cpp_err=$ac_c_preproc_warn_flag
19138 else
19139 ac_cpp_err=
19140 fi
19141else
19142 ac_cpp_err=yes
19143fi
19144if test -z "$ac_cpp_err"; then
19145 ac_header_preproc=yes
19146else
19147 echo "$as_me: failed program was:" >&5
19148sed 's/^/| /' conftest.$ac_ext >&5
19149
19150 ac_header_preproc=no
19151fi
19152rm -f conftest.err conftest.$ac_ext
19153echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19154echo "${ECHO_T}$ac_header_preproc" >&6
19155
19156# So? What about this header?
19157case $ac_header_compiler:$ac_header_preproc in
19158 yes:no )
19159 { echo "$as_me:$LINENO: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&5
19160echo "$as_me: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19161 { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the preprocessor's result" >&5
19162echo "$as_me: WARNING: sys/types.h: proceeding with the preprocessor's result" >&2;}
19163 (
19164 cat <<\_ASBOX
19165## ------------------------------------ ##
19166## Report this to bug-autoconf@gnu.org. ##
19167## ------------------------------------ ##
19168_ASBOX
19169 ) |
19170 sed "s/^/$as_me: WARNING: /" >&2
19171 ;;
19172 no:yes )
19173 { echo "$as_me:$LINENO: WARNING: sys/types.h: present but cannot be compiled" >&5
19174echo "$as_me: WARNING: sys/types.h: present but cannot be compiled" >&2;}
19175 { echo "$as_me:$LINENO: WARNING: sys/types.h: check for missing prerequisite headers?" >&5
19176echo "$as_me: WARNING: sys/types.h: check for missing prerequisite headers?" >&2;}
19177 { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the preprocessor's result" >&5
19178echo "$as_me: WARNING: sys/types.h: proceeding with the preprocessor's result" >&2;}
19179 (
19180 cat <<\_ASBOX
19181## ------------------------------------ ##
19182## Report this to bug-autoconf@gnu.org. ##
19183## ------------------------------------ ##
19184_ASBOX
19185 ) |
19186 sed "s/^/$as_me: WARNING: /" >&2
19187 ;;
19188esac
19189echo "$as_me:$LINENO: checking for sys/types.h" >&5
19190echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
19191if test "${ac_cv_header_sys_types_h+set}" = set; then
19192 echo $ECHO_N "(cached) $ECHO_C" >&6
19193else
19194 ac_cv_header_sys_types_h=$ac_header_preproc
19195fi
19196echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
19197echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
19198
19199fi
19200if test $ac_cv_header_sys_types_h = yes; then
19201 INCLUDE_SYS_TYPES_H='#include <sys/types.h>'
19202else
19203 INCLUDE_SYS_TYPES_H=''
19204fi
19205
19206
19207
19208if test "${ac_cv_header_inttypes_h+set}" = set; then
19209 echo "$as_me:$LINENO: checking for inttypes.h" >&5
19210echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
19211if test "${ac_cv_header_inttypes_h+set}" = set; then
19212 echo $ECHO_N "(cached) $ECHO_C" >&6
19213fi
19214echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
19215echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6
19216else
19217 # Is the header compilable?
19218echo "$as_me:$LINENO: checking inttypes.h usability" >&5
19219echo $ECHO_N "checking inttypes.h usability... $ECHO_C" >&6
19220cat >conftest.$ac_ext <<_ACEOF
19221#line $LINENO "configure"
19222/* confdefs.h. */
19223_ACEOF
19224cat confdefs.h >>conftest.$ac_ext
19225cat >>conftest.$ac_ext <<_ACEOF
19226/* end confdefs.h. */
19227$ac_includes_default
19228#include <inttypes.h>
19229_ACEOF
19230rm -f conftest.$ac_objext
19231if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19232 (eval $ac_compile) 2>&5
19233 ac_status=$?
19234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19235 (exit $ac_status); } &&
19236 { ac_try='test -s conftest.$ac_objext'
19237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19238 (eval $ac_try) 2>&5
19239 ac_status=$?
19240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19241 (exit $ac_status); }; }; then
19242 ac_header_compiler=yes
19243else
19244 echo "$as_me: failed program was:" >&5
19245sed 's/^/| /' conftest.$ac_ext >&5
19246
19247ac_header_compiler=no
19248fi
19249rm -f conftest.$ac_objext conftest.$ac_ext
19250echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19251echo "${ECHO_T}$ac_header_compiler" >&6
19252
19253# Is the header present?
19254echo "$as_me:$LINENO: checking inttypes.h presence" >&5
19255echo $ECHO_N "checking inttypes.h presence... $ECHO_C" >&6
19256cat >conftest.$ac_ext <<_ACEOF
19257#line $LINENO "configure"
19258/* confdefs.h. */
19259_ACEOF
19260cat confdefs.h >>conftest.$ac_ext
19261cat >>conftest.$ac_ext <<_ACEOF
19262/* end confdefs.h. */
19263#include <inttypes.h>
19264_ACEOF
19265if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19266 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19267 ac_status=$?
19268 grep -v '^ *+' conftest.er1 >conftest.err
19269 rm -f conftest.er1
19270 cat conftest.err >&5
19271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19272 (exit $ac_status); } >/dev/null; then
19273 if test -s conftest.err; then
19274 ac_cpp_err=$ac_c_preproc_warn_flag
19275 else
19276 ac_cpp_err=
19277 fi
19278else
19279 ac_cpp_err=yes
19280fi
19281if test -z "$ac_cpp_err"; then
19282 ac_header_preproc=yes
19283else
19284 echo "$as_me: failed program was:" >&5
19285sed 's/^/| /' conftest.$ac_ext >&5
19286
19287 ac_header_preproc=no
19288fi
19289rm -f conftest.err conftest.$ac_ext
19290echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19291echo "${ECHO_T}$ac_header_preproc" >&6
19292
19293# So? What about this header?
19294case $ac_header_compiler:$ac_header_preproc in
19295 yes:no )
19296 { echo "$as_me:$LINENO: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&5
19297echo "$as_me: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19298 { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the preprocessor's result" >&5
19299echo "$as_me: WARNING: inttypes.h: proceeding with the preprocessor's result" >&2;}
19300 (
19301 cat <<\_ASBOX
19302## ------------------------------------ ##
19303## Report this to bug-autoconf@gnu.org. ##
19304## ------------------------------------ ##
19305_ASBOX
19306 ) |
19307 sed "s/^/$as_me: WARNING: /" >&2
19308 ;;
19309 no:yes )
19310 { echo "$as_me:$LINENO: WARNING: inttypes.h: present but cannot be compiled" >&5
19311echo "$as_me: WARNING: inttypes.h: present but cannot be compiled" >&2;}
19312 { echo "$as_me:$LINENO: WARNING: inttypes.h: check for missing prerequisite headers?" >&5
19313echo "$as_me: WARNING: inttypes.h: check for missing prerequisite headers?" >&2;}
19314 { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the preprocessor's result" >&5
19315echo "$as_me: WARNING: inttypes.h: proceeding with the preprocessor's result" >&2;}
19316 (
19317 cat <<\_ASBOX
19318## ------------------------------------ ##
19319## Report this to bug-autoconf@gnu.org. ##
19320## ------------------------------------ ##
19321_ASBOX
19322 ) |
19323 sed "s/^/$as_me: WARNING: /" >&2
19324 ;;
19325esac
19326echo "$as_me:$LINENO: checking for inttypes.h" >&5
19327echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
19328if test "${ac_cv_header_inttypes_h+set}" = set; then
19329 echo $ECHO_N "(cached) $ECHO_C" >&6
19330else
19331 ac_cv_header_inttypes_h=$ac_header_preproc
19332fi
19333echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
19334echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6
19335
19336fi
19337if test $ac_cv_header_inttypes_h = yes; then
19338 INCLUDE_INTTYPES_H='#include <inttypes.h>'
19339else
19340 INCLUDE_INTTYPES_H=''
19341fi
19342
19343
19344
19345
John Criswell7a73b802003-06-30 21:59:07 +000019346echo "$as_me:$LINENO: checking for pid_t" >&5
19347echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
19348if test "${ac_cv_type_pid_t+set}" = set; then
19349 echo $ECHO_N "(cached) $ECHO_C" >&6
19350else
19351 cat >conftest.$ac_ext <<_ACEOF
19352#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019353/* confdefs.h. */
19354_ACEOF
19355cat confdefs.h >>conftest.$ac_ext
19356cat >>conftest.$ac_ext <<_ACEOF
19357/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019358$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000019359int
19360main ()
19361{
19362if ((pid_t *) 0)
19363 return 0;
19364if (sizeof (pid_t))
19365 return 0;
19366 ;
19367 return 0;
19368}
19369_ACEOF
19370rm -f conftest.$ac_objext
19371if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19372 (eval $ac_compile) 2>&5
19373 ac_status=$?
19374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19375 (exit $ac_status); } &&
19376 { ac_try='test -s conftest.$ac_objext'
19377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19378 (eval $ac_try) 2>&5
19379 ac_status=$?
19380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19381 (exit $ac_status); }; }; then
19382 ac_cv_type_pid_t=yes
19383else
19384 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019385sed 's/^/| /' conftest.$ac_ext >&5
19386
John Criswell7a73b802003-06-30 21:59:07 +000019387ac_cv_type_pid_t=no
19388fi
19389rm -f conftest.$ac_objext conftest.$ac_ext
19390fi
19391echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
19392echo "${ECHO_T}$ac_cv_type_pid_t" >&6
19393if test $ac_cv_type_pid_t = yes; then
19394 :
19395else
19396
19397cat >>confdefs.h <<_ACEOF
19398#define pid_t int
19399_ACEOF
19400
19401fi
19402
19403echo "$as_me:$LINENO: checking for size_t" >&5
19404echo $ECHO_N "checking for size_t... $ECHO_C" >&6
19405if test "${ac_cv_type_size_t+set}" = set; then
19406 echo $ECHO_N "(cached) $ECHO_C" >&6
19407else
19408 cat >conftest.$ac_ext <<_ACEOF
19409#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019410/* confdefs.h. */
19411_ACEOF
19412cat confdefs.h >>conftest.$ac_ext
19413cat >>conftest.$ac_ext <<_ACEOF
19414/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019415$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000019416int
19417main ()
19418{
19419if ((size_t *) 0)
19420 return 0;
19421if (sizeof (size_t))
19422 return 0;
19423 ;
19424 return 0;
19425}
19426_ACEOF
19427rm -f conftest.$ac_objext
19428if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19429 (eval $ac_compile) 2>&5
19430 ac_status=$?
19431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19432 (exit $ac_status); } &&
19433 { ac_try='test -s conftest.$ac_objext'
19434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19435 (eval $ac_try) 2>&5
19436 ac_status=$?
19437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19438 (exit $ac_status); }; }; then
19439 ac_cv_type_size_t=yes
19440else
19441 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019442sed 's/^/| /' conftest.$ac_ext >&5
19443
John Criswell7a73b802003-06-30 21:59:07 +000019444ac_cv_type_size_t=no
19445fi
19446rm -f conftest.$ac_objext conftest.$ac_ext
19447fi
19448echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
19449echo "${ECHO_T}$ac_cv_type_size_t" >&6
19450if test $ac_cv_type_size_t = yes; then
19451 :
19452else
19453
19454cat >>confdefs.h <<_ACEOF
19455#define size_t unsigned
19456_ACEOF
19457
19458fi
19459
19460echo "$as_me:$LINENO: checking for int64_t" >&5
19461echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
19462if test "${ac_cv_type_int64_t+set}" = set; then
19463 echo $ECHO_N "(cached) $ECHO_C" >&6
19464else
19465 cat >conftest.$ac_ext <<_ACEOF
19466#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019467/* confdefs.h. */
19468_ACEOF
19469cat confdefs.h >>conftest.$ac_ext
19470cat >>conftest.$ac_ext <<_ACEOF
19471/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019472$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000019473int
19474main ()
19475{
19476if ((int64_t *) 0)
19477 return 0;
19478if (sizeof (int64_t))
19479 return 0;
19480 ;
19481 return 0;
19482}
19483_ACEOF
19484rm -f conftest.$ac_objext
19485if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19486 (eval $ac_compile) 2>&5
19487 ac_status=$?
19488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19489 (exit $ac_status); } &&
19490 { ac_try='test -s conftest.$ac_objext'
19491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19492 (eval $ac_try) 2>&5
19493 ac_status=$?
19494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19495 (exit $ac_status); }; }; then
19496 ac_cv_type_int64_t=yes
19497else
19498 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019499sed 's/^/| /' conftest.$ac_ext >&5
19500
John Criswell7a73b802003-06-30 21:59:07 +000019501ac_cv_type_int64_t=no
19502fi
19503rm -f conftest.$ac_objext conftest.$ac_ext
19504fi
19505echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
19506echo "${ECHO_T}$ac_cv_type_int64_t" >&6
19507if test $ac_cv_type_int64_t = yes; then
19508
19509cat >>confdefs.h <<_ACEOF
19510#define HAVE_INT64_T 1
19511_ACEOF
19512
19513
19514else
19515 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
19516echo "$as_me: error: Type int64_t required but not found" >&2;}
19517 { (exit 1); exit 1; }; }
19518fi
19519
19520echo "$as_me:$LINENO: checking for uint64_t" >&5
19521echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
19522if test "${ac_cv_type_uint64_t+set}" = set; then
19523 echo $ECHO_N "(cached) $ECHO_C" >&6
19524else
19525 cat >conftest.$ac_ext <<_ACEOF
19526#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019527/* confdefs.h. */
19528_ACEOF
19529cat confdefs.h >>conftest.$ac_ext
19530cat >>conftest.$ac_ext <<_ACEOF
19531/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019532$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000019533int
19534main ()
19535{
19536if ((uint64_t *) 0)
19537 return 0;
19538if (sizeof (uint64_t))
19539 return 0;
19540 ;
19541 return 0;
19542}
19543_ACEOF
19544rm -f conftest.$ac_objext
19545if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19546 (eval $ac_compile) 2>&5
19547 ac_status=$?
19548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19549 (exit $ac_status); } &&
19550 { ac_try='test -s conftest.$ac_objext'
19551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19552 (eval $ac_try) 2>&5
19553 ac_status=$?
19554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19555 (exit $ac_status); }; }; then
19556 ac_cv_type_uint64_t=yes
19557else
19558 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019559sed 's/^/| /' conftest.$ac_ext >&5
19560
John Criswell7a73b802003-06-30 21:59:07 +000019561ac_cv_type_uint64_t=no
19562fi
19563rm -f conftest.$ac_objext conftest.$ac_ext
19564fi
19565echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
19566echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
19567if test $ac_cv_type_uint64_t = yes; then
19568
19569cat >>confdefs.h <<_ACEOF
19570#define HAVE_UINT64_T 1
19571_ACEOF
19572
19573
19574else
19575 { { echo "$as_me:$LINENO: error: Type uint64_t required but not found" >&5
19576echo "$as_me: error: Type uint64_t required but not found" >&2;}
19577 { (exit 1); exit 1; }; }
19578fi
19579
19580echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
19581echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
19582if test "${ac_cv_header_time+set}" = set; then
19583 echo $ECHO_N "(cached) $ECHO_C" >&6
19584else
19585 cat >conftest.$ac_ext <<_ACEOF
19586#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019587/* confdefs.h. */
19588_ACEOF
19589cat confdefs.h >>conftest.$ac_ext
19590cat >>conftest.$ac_ext <<_ACEOF
19591/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019592#include <sys/types.h>
19593#include <sys/time.h>
19594#include <time.h>
19595
John Criswell7a73b802003-06-30 21:59:07 +000019596int
19597main ()
19598{
19599if ((struct tm *) 0)
19600return 0;
19601 ;
19602 return 0;
19603}
19604_ACEOF
19605rm -f conftest.$ac_objext
19606if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19607 (eval $ac_compile) 2>&5
19608 ac_status=$?
19609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19610 (exit $ac_status); } &&
19611 { ac_try='test -s conftest.$ac_objext'
19612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19613 (eval $ac_try) 2>&5
19614 ac_status=$?
19615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19616 (exit $ac_status); }; }; then
19617 ac_cv_header_time=yes
19618else
19619 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019620sed 's/^/| /' conftest.$ac_ext >&5
19621
John Criswell7a73b802003-06-30 21:59:07 +000019622ac_cv_header_time=no
19623fi
19624rm -f conftest.$ac_objext conftest.$ac_ext
19625fi
19626echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
19627echo "${ECHO_T}$ac_cv_header_time" >&6
19628if test $ac_cv_header_time = yes; then
19629
19630cat >>confdefs.h <<\_ACEOF
19631#define TIME_WITH_SYS_TIME 1
19632_ACEOF
19633
19634fi
19635
19636echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
19637echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
19638if test "${ac_cv_struct_tm+set}" = set; then
19639 echo $ECHO_N "(cached) $ECHO_C" >&6
19640else
19641 cat >conftest.$ac_ext <<_ACEOF
19642#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019643/* confdefs.h. */
19644_ACEOF
19645cat confdefs.h >>conftest.$ac_ext
19646cat >>conftest.$ac_ext <<_ACEOF
19647/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019648#include <sys/types.h>
19649#include <time.h>
19650
John Criswell7a73b802003-06-30 21:59:07 +000019651int
19652main ()
19653{
19654struct tm *tp; tp->tm_sec;
19655 ;
19656 return 0;
19657}
19658_ACEOF
19659rm -f conftest.$ac_objext
19660if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19661 (eval $ac_compile) 2>&5
19662 ac_status=$?
19663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19664 (exit $ac_status); } &&
19665 { ac_try='test -s conftest.$ac_objext'
19666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19667 (eval $ac_try) 2>&5
19668 ac_status=$?
19669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19670 (exit $ac_status); }; }; then
19671 ac_cv_struct_tm=time.h
19672else
19673 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019674sed 's/^/| /' conftest.$ac_ext >&5
19675
John Criswell7a73b802003-06-30 21:59:07 +000019676ac_cv_struct_tm=sys/time.h
19677fi
19678rm -f conftest.$ac_objext conftest.$ac_ext
19679fi
19680echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
19681echo "${ECHO_T}$ac_cv_struct_tm" >&6
19682if test $ac_cv_struct_tm = sys/time.h; then
19683
19684cat >>confdefs.h <<\_ACEOF
19685#define TM_IN_SYS_TIME 1
19686_ACEOF
19687
19688fi
19689
19690
John Criswella0137d32003-10-13 16:22:01 +000019691
19692
19693
19694 ac_ext=c
19695ac_cpp='$CPP $CPPFLAGS'
19696ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19697ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19698ac_compiler_gnu=$ac_cv_c_compiler_gnu
19699
19700 if test "$cross_compiling" = yes; then
19701 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19702See \`config.log' for more details." >&5
19703echo "$as_me: error: cannot run test program while cross compiling
19704See \`config.log' for more details." >&2;}
19705 { (exit 1); exit 1; }; }
19706else
19707 cat >conftest.$ac_ext <<_ACEOF
19708#line $LINENO "configure"
19709/* confdefs.h. */
19710_ACEOF
19711cat confdefs.h >>conftest.$ac_ext
19712cat >>conftest.$ac_ext <<_ACEOF
19713/* end confdefs.h. */
19714#include <stdio.h>
19715 #include <stdlib.h>
19716int
19717main ()
19718{
19719
19720 volatile double A, B;
19721 char Buffer[100];
19722 A = 1;
19723 A /= 10.0;
19724 sprintf(Buffer, "%a", A);
19725 B = atof(Buffer);
19726 if (A != B)
19727 return (1);
19728 if (A != 0x1.999999999999ap-4)
19729 return (1);
19730 return (0);
19731 ;
19732 return 0;
19733}
19734_ACEOF
19735rm -f conftest$ac_exeext
19736if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19737 (eval $ac_link) 2>&5
19738 ac_status=$?
19739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19740 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19742 (eval $ac_try) 2>&5
19743 ac_status=$?
19744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19745 (exit $ac_status); }; }; then
19746 ac_c_printf_a=yes
19747else
19748 echo "$as_me: program exited with status $ac_status" >&5
19749echo "$as_me: failed program was:" >&5
19750sed 's/^/| /' conftest.$ac_ext >&5
19751
19752( exit $ac_status )
19753ac_c_printf_a=no
19754fi
19755rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19756fi
19757 ac_ext=c
19758ac_cpp='$CPP $CPPFLAGS'
19759ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19760ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19761ac_compiler_gnu=$ac_cv_c_compiler_gnu
19762
19763 if test "$ac_c_printf_a" = "yes"; then
19764
19765cat >>confdefs.h <<\_ACEOF
19766#define HAVE_PRINTF_A 1
19767_ACEOF
19768
19769 fi
19770
19771
John Criswell0021c312004-02-13 21:57:29 +000019772echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
19773echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
19774if test "${ac_cv_c_bigendian+set}" = set; then
19775 echo $ECHO_N "(cached) $ECHO_C" >&6
19776else
19777 # See if sys/param.h defines the BYTE_ORDER macro.
19778cat >conftest.$ac_ext <<_ACEOF
19779#line $LINENO "configure"
19780/* confdefs.h. */
19781_ACEOF
19782cat confdefs.h >>conftest.$ac_ext
19783cat >>conftest.$ac_ext <<_ACEOF
19784/* end confdefs.h. */
19785#include <sys/types.h>
19786#include <sys/param.h>
19787
19788int
19789main ()
19790{
19791#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
19792 bogus endian macros
19793#endif
19794
19795 ;
19796 return 0;
19797}
19798_ACEOF
19799rm -f conftest.$ac_objext
19800if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19801 (eval $ac_compile) 2>&5
19802 ac_status=$?
19803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19804 (exit $ac_status); } &&
19805 { ac_try='test -s conftest.$ac_objext'
19806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19807 (eval $ac_try) 2>&5
19808 ac_status=$?
19809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19810 (exit $ac_status); }; }; then
19811 # It does; now see whether it defined to BIG_ENDIAN or not.
19812cat >conftest.$ac_ext <<_ACEOF
19813#line $LINENO "configure"
19814/* confdefs.h. */
19815_ACEOF
19816cat confdefs.h >>conftest.$ac_ext
19817cat >>conftest.$ac_ext <<_ACEOF
19818/* end confdefs.h. */
19819#include <sys/types.h>
19820#include <sys/param.h>
19821
19822int
19823main ()
19824{
19825#if BYTE_ORDER != BIG_ENDIAN
19826 not big endian
19827#endif
19828
19829 ;
19830 return 0;
19831}
19832_ACEOF
19833rm -f conftest.$ac_objext
19834if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19835 (eval $ac_compile) 2>&5
19836 ac_status=$?
19837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19838 (exit $ac_status); } &&
19839 { ac_try='test -s conftest.$ac_objext'
19840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19841 (eval $ac_try) 2>&5
19842 ac_status=$?
19843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19844 (exit $ac_status); }; }; then
19845 ac_cv_c_bigendian=yes
19846else
19847 echo "$as_me: failed program was:" >&5
19848sed 's/^/| /' conftest.$ac_ext >&5
19849
19850ac_cv_c_bigendian=no
19851fi
19852rm -f conftest.$ac_objext conftest.$ac_ext
19853else
19854 echo "$as_me: failed program was:" >&5
19855sed 's/^/| /' conftest.$ac_ext >&5
19856
19857# It does not; compile a test program.
19858if test "$cross_compiling" = yes; then
19859 # try to guess the endianness by grepping values into an object file
19860 ac_cv_c_bigendian=unknown
19861 cat >conftest.$ac_ext <<_ACEOF
19862#line $LINENO "configure"
19863/* confdefs.h. */
19864_ACEOF
19865cat confdefs.h >>conftest.$ac_ext
19866cat >>conftest.$ac_ext <<_ACEOF
19867/* end confdefs.h. */
19868short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
19869short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
19870void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
19871short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
19872short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
19873void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
19874int
19875main ()
19876{
19877 _ascii (); _ebcdic ();
19878 ;
19879 return 0;
19880}
19881_ACEOF
19882rm -f conftest.$ac_objext
19883if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19884 (eval $ac_compile) 2>&5
19885 ac_status=$?
19886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19887 (exit $ac_status); } &&
19888 { ac_try='test -s conftest.$ac_objext'
19889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19890 (eval $ac_try) 2>&5
19891 ac_status=$?
19892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19893 (exit $ac_status); }; }; then
19894 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
19895 ac_cv_c_bigendian=yes
19896fi
19897if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
19898 if test "$ac_cv_c_bigendian" = unknown; then
19899 ac_cv_c_bigendian=no
19900 else
19901 # finding both strings is unlikely to happen, but who knows?
19902 ac_cv_c_bigendian=unknown
19903 fi
19904fi
19905else
19906 echo "$as_me: failed program was:" >&5
19907sed 's/^/| /' conftest.$ac_ext >&5
19908
19909fi
19910rm -f conftest.$ac_objext conftest.$ac_ext
19911else
19912 cat >conftest.$ac_ext <<_ACEOF
19913#line $LINENO "configure"
19914/* confdefs.h. */
19915_ACEOF
19916cat confdefs.h >>conftest.$ac_ext
19917cat >>conftest.$ac_ext <<_ACEOF
19918/* end confdefs.h. */
19919int
19920main ()
19921{
19922 /* Are we little or big endian? From Harbison&Steele. */
19923 union
19924 {
19925 long l;
19926 char c[sizeof (long)];
19927 } u;
19928 u.l = 1;
19929 exit (u.c[sizeof (long) - 1] == 1);
19930}
19931_ACEOF
19932rm -f conftest$ac_exeext
19933if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19934 (eval $ac_link) 2>&5
19935 ac_status=$?
19936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19937 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19939 (eval $ac_try) 2>&5
19940 ac_status=$?
19941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19942 (exit $ac_status); }; }; then
19943 ac_cv_c_bigendian=no
19944else
19945 echo "$as_me: program exited with status $ac_status" >&5
19946echo "$as_me: failed program was:" >&5
19947sed 's/^/| /' conftest.$ac_ext >&5
19948
19949( exit $ac_status )
19950ac_cv_c_bigendian=yes
19951fi
19952rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19953fi
19954fi
19955rm -f conftest.$ac_objext conftest.$ac_ext
19956fi
19957echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
19958echo "${ECHO_T}$ac_cv_c_bigendian" >&6
19959case $ac_cv_c_bigendian in
19960 yes)
19961 ENDIAN=big
19962 ;;
19963 no)
19964 ENDIAN=little
19965 ;;
19966 *)
19967 { { echo "$as_me:$LINENO: error: unknown endianness
19968presetting ac_cv_c_bigendian=no (or yes) will help" >&5
19969echo "$as_me: error: unknown endianness
19970presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
19971 { (exit 1); exit 1; }; } ;;
19972esac
19973
19974
John Criswell7a73b802003-06-30 21:59:07 +000019975echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
19976echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
19977if test "${ac_cv_cxx_namespaces+set}" = set; then
19978 echo $ECHO_N "(cached) $ECHO_C" >&6
19979else
19980
19981
19982 ac_ext=cc
19983ac_cpp='$CXXCPP $CPPFLAGS'
19984ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19985ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19986ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19987
19988 cat >conftest.$ac_ext <<_ACEOF
19989#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019990/* confdefs.h. */
19991_ACEOF
19992cat confdefs.h >>conftest.$ac_ext
19993cat >>conftest.$ac_ext <<_ACEOF
19994/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019995namespace Outer { namespace Inner { int i = 0; }}
John Criswell7a73b802003-06-30 21:59:07 +000019996int
19997main ()
19998{
19999using namespace Outer::Inner; return i;
20000 ;
20001 return 0;
20002}
20003_ACEOF
20004rm -f conftest.$ac_objext
20005if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20006 (eval $ac_compile) 2>&5
20007 ac_status=$?
20008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20009 (exit $ac_status); } &&
20010 { ac_try='test -s conftest.$ac_objext'
20011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20012 (eval $ac_try) 2>&5
20013 ac_status=$?
20014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20015 (exit $ac_status); }; }; then
20016 ac_cv_cxx_namespaces=yes
20017else
20018 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020019sed 's/^/| /' conftest.$ac_ext >&5
20020
John Criswell7a73b802003-06-30 21:59:07 +000020021ac_cv_cxx_namespaces=no
20022fi
20023rm -f conftest.$ac_objext conftest.$ac_ext
20024 ac_ext=c
20025ac_cpp='$CPP $CPPFLAGS'
20026ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20027ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20028ac_compiler_gnu=$ac_cv_c_compiler_gnu
20029
20030
20031fi
20032echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
20033echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
20034if test "$ac_cv_cxx_namespaces" = yes; then
20035
20036cat >>confdefs.h <<\_ACEOF
20037#define HAVE_NAMESPACES
20038_ACEOF
20039
20040fi
20041
Brian Gaeke90583492003-11-10 03:06:28 +000020042echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
20043echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
20044if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000020045 echo $ECHO_N "(cached) $ECHO_C" >&6
20046else
20047
20048
20049
20050 ac_ext=cc
20051ac_cpp='$CXXCPP $CPPFLAGS'
20052ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20053ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20054ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20055
20056 cat >conftest.$ac_ext <<_ACEOF
20057#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020058/* confdefs.h. */
20059_ACEOF
20060cat confdefs.h >>conftest.$ac_ext
20061cat >>conftest.$ac_ext <<_ACEOF
20062/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020063#include <ext/hash_map>
20064#ifdef HAVE_NAMESPACES
20065using namespace std;
20066#endif
John Criswell7a73b802003-06-30 21:59:07 +000020067int
20068main ()
20069{
Brian Gaeke90583492003-11-10 03:06:28 +000020070hash_map<int, int> t;
John Criswell7a73b802003-06-30 21:59:07 +000020071 ;
20072 return 0;
20073}
20074_ACEOF
20075rm -f conftest.$ac_objext
20076if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20077 (eval $ac_compile) 2>&5
20078 ac_status=$?
20079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20080 (exit $ac_status); } &&
20081 { ac_try='test -s conftest.$ac_objext'
20082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20083 (eval $ac_try) 2>&5
20084 ac_status=$?
20085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20086 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000020087 ac_cv_cxx_have_std_ext_hash_map=yes
John Criswell7a73b802003-06-30 21:59:07 +000020088else
20089 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020090sed 's/^/| /' conftest.$ac_ext >&5
20091
Brian Gaeke90583492003-11-10 03:06:28 +000020092ac_cv_cxx_have_std_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000020093fi
20094rm -f conftest.$ac_objext conftest.$ac_ext
20095 ac_ext=c
20096ac_cpp='$CPP $CPPFLAGS'
20097ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20098ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20099ac_compiler_gnu=$ac_cv_c_compiler_gnu
20100
John Criswell7a73b802003-06-30 21:59:07 +000020101fi
Brian Gaeke90583492003-11-10 03:06:28 +000020102echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
20103echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000020104 HAVE_STD_EXT_HASH_MAP=0
20105 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
20106 then
20107 HAVE_STD_EXT_HASH_MAP=1
Brian Gaeke90583492003-11-10 03:06:28 +000020108 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000020109
Brian Gaeke90583492003-11-10 03:06:28 +000020110 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
20111echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
20112if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
20113 echo $ECHO_N "(cached) $ECHO_C" >&6
20114else
20115
20116
20117
20118 ac_ext=cc
20119ac_cpp='$CXXCPP $CPPFLAGS'
20120ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20121ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20122ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20123
20124 cat >conftest.$ac_ext <<_ACEOF
20125#line $LINENO "configure"
20126/* confdefs.h. */
20127_ACEOF
20128cat confdefs.h >>conftest.$ac_ext
20129cat >>conftest.$ac_ext <<_ACEOF
20130/* end confdefs.h. */
20131#include <ext/hash_map>
20132#ifdef HAVE_NAMESPACES
20133using namespace __gnu_cxx;
20134#endif
20135int
20136main ()
20137{
20138hash_map<int,int> t;
20139 ;
20140 return 0;
20141}
20142_ACEOF
20143rm -f conftest.$ac_objext
20144if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20145 (eval $ac_compile) 2>&5
20146 ac_status=$?
20147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20148 (exit $ac_status); } &&
20149 { ac_try='test -s conftest.$ac_objext'
20150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20151 (eval $ac_try) 2>&5
20152 ac_status=$?
20153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20154 (exit $ac_status); }; }; then
20155 ac_cv_cxx_have_gnu_ext_hash_map=yes
20156else
20157 echo "$as_me: failed program was:" >&5
20158sed 's/^/| /' conftest.$ac_ext >&5
20159
20160ac_cv_cxx_have_gnu_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000020161fi
Brian Gaeke90583492003-11-10 03:06:28 +000020162rm -f conftest.$ac_objext conftest.$ac_ext
20163 ac_ext=c
20164ac_cpp='$CPP $CPPFLAGS'
20165ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20166ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20167ac_compiler_gnu=$ac_cv_c_compiler_gnu
20168
20169fi
20170echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
20171echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000020172 HAVE_GNU_EXT_HASH_MAP=0
20173 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
20174 then
20175 HAVE_GNU_EXT_HASH_MAP=1
Brian Gaeke90583492003-11-10 03:06:28 +000020176 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000020177
Brian Gaeke90583492003-11-10 03:06:28 +000020178 echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
20179echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
20180if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
20181 echo $ECHO_N "(cached) $ECHO_C" >&6
20182else
John Criswell7a73b802003-06-30 21:59:07 +000020183
Brian Gaeke90583492003-11-10 03:06:28 +000020184
20185
20186 ac_ext=cc
20187ac_cpp='$CXXCPP $CPPFLAGS'
20188ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20189ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20190ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20191
20192 cat >conftest.$ac_ext <<_ACEOF
20193#line $LINENO "configure"
20194/* confdefs.h. */
20195_ACEOF
20196cat confdefs.h >>conftest.$ac_ext
20197cat >>conftest.$ac_ext <<_ACEOF
20198/* end confdefs.h. */
20199#include <hash_map>
20200int
20201main ()
20202{
20203hash_map<int,int> t;
20204 ;
20205 return 0;
20206}
20207_ACEOF
20208rm -f conftest.$ac_objext
20209if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20210 (eval $ac_compile) 2>&5
20211 ac_status=$?
20212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20213 (exit $ac_status); } &&
20214 { ac_try='test -s conftest.$ac_objext'
20215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20216 (eval $ac_try) 2>&5
20217 ac_status=$?
20218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20219 (exit $ac_status); }; }; then
20220 ac_cv_cxx_have_global_hash_map=yes
20221else
20222 echo "$as_me: failed program was:" >&5
20223sed 's/^/| /' conftest.$ac_ext >&5
20224
20225ac_cv_cxx_have_global_hash_map=no
20226fi
20227rm -f conftest.$ac_objext conftest.$ac_ext
20228 ac_ext=c
20229ac_cpp='$CPP $CPPFLAGS'
20230ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20231ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20232ac_compiler_gnu=$ac_cv_c_compiler_gnu
20233
20234fi
20235echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
20236echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000020237 HAVE_GLOBAL_HASH_MAP=0
20238 if test "$ac_cv_cxx_have_global_hash_map" = yes
20239 then
20240 HAVE_GLOBAL_HASH_MAP=1
Brian Gaeke90583492003-11-10 03:06:28 +000020241 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000020242
Brian Gaeke90583492003-11-10 03:06:28 +000020243echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
20244echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
20245if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000020246 echo $ECHO_N "(cached) $ECHO_C" >&6
20247else
20248
20249
20250
20251 ac_ext=cc
20252ac_cpp='$CXXCPP $CPPFLAGS'
20253ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20254ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20255ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20256
20257 cat >conftest.$ac_ext <<_ACEOF
20258#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020259/* confdefs.h. */
20260_ACEOF
20261cat confdefs.h >>conftest.$ac_ext
20262cat >>conftest.$ac_ext <<_ACEOF
20263/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020264#include <ext/hash_set>
20265#ifdef HAVE_NAMESPACES
20266using namespace std;
20267#endif
John Criswell7a73b802003-06-30 21:59:07 +000020268int
20269main ()
20270{
Brian Gaeke90583492003-11-10 03:06:28 +000020271hash_set<int> t;
John Criswell7a73b802003-06-30 21:59:07 +000020272 ;
20273 return 0;
20274}
20275_ACEOF
20276rm -f conftest.$ac_objext
20277if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20278 (eval $ac_compile) 2>&5
20279 ac_status=$?
20280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20281 (exit $ac_status); } &&
20282 { ac_try='test -s conftest.$ac_objext'
20283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20284 (eval $ac_try) 2>&5
20285 ac_status=$?
20286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20287 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000020288 ac_cv_cxx_have_std_ext_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000020289else
20290 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020291sed 's/^/| /' conftest.$ac_ext >&5
20292
Brian Gaeke90583492003-11-10 03:06:28 +000020293ac_cv_cxx_have_std_ext_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000020294fi
20295rm -f conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000020296 ac_ext=c
20297ac_cpp='$CPP $CPPFLAGS'
20298ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20299ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20300ac_compiler_gnu=$ac_cv_c_compiler_gnu
20301
20302fi
20303echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
20304echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000020305 HAVE_STD_EXT_HASH_SET=0
20306 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
20307 then
20308 HAVE_STD_EXT_HASH_SET=1
Brian Gaeke90583492003-11-10 03:06:28 +000020309 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000020310
Brian Gaeke90583492003-11-10 03:06:28 +000020311 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
20312echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
20313if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
20314 echo $ECHO_N "(cached) $ECHO_C" >&6
20315else
20316
20317
20318
20319 ac_ext=cc
20320ac_cpp='$CXXCPP $CPPFLAGS'
20321ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20322ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20323ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20324
John Criswell7a73b802003-06-30 21:59:07 +000020325 cat >conftest.$ac_ext <<_ACEOF
20326#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020327/* confdefs.h. */
20328_ACEOF
20329cat confdefs.h >>conftest.$ac_ext
20330cat >>conftest.$ac_ext <<_ACEOF
20331/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020332#include <ext/hash_set>
20333#ifdef HAVE_NAMESPACES
20334using namespace __gnu_cxx;
20335#endif
John Criswell7a73b802003-06-30 21:59:07 +000020336int
20337main ()
20338{
Brian Gaeke90583492003-11-10 03:06:28 +000020339hash_set<int> t;
20340 ;
20341 return 0;
20342}
20343_ACEOF
20344rm -f conftest.$ac_objext
20345if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20346 (eval $ac_compile) 2>&5
20347 ac_status=$?
20348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20349 (exit $ac_status); } &&
20350 { ac_try='test -s conftest.$ac_objext'
20351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20352 (eval $ac_try) 2>&5
20353 ac_status=$?
20354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20355 (exit $ac_status); }; }; then
20356 ac_cv_cxx_have_gnu_ext_hash_set=yes
20357else
20358 echo "$as_me: failed program was:" >&5
20359sed 's/^/| /' conftest.$ac_ext >&5
20360
20361ac_cv_cxx_have_gnu_ext_hash_set=no
20362fi
20363rm -f conftest.$ac_objext conftest.$ac_ext
20364 ac_ext=c
20365ac_cpp='$CPP $CPPFLAGS'
20366ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20367ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20368ac_compiler_gnu=$ac_cv_c_compiler_gnu
20369
20370fi
20371echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
20372echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000020373 HAVE_GNU_EXT_HASH_SET=0
20374 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
20375 then
20376 HAVE_GNU_EXT_HASH_SET=1
Brian Gaeke90583492003-11-10 03:06:28 +000020377 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000020378
Brian Gaeke90583492003-11-10 03:06:28 +000020379 echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
20380echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
20381if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
20382 echo $ECHO_N "(cached) $ECHO_C" >&6
20383else
20384
20385
20386
20387 ac_ext=cc
20388ac_cpp='$CXXCPP $CPPFLAGS'
20389ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20390ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20391ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20392
20393 cat >conftest.$ac_ext <<_ACEOF
20394#line $LINENO "configure"
20395/* confdefs.h. */
20396_ACEOF
20397cat confdefs.h >>conftest.$ac_ext
20398cat >>conftest.$ac_ext <<_ACEOF
20399/* end confdefs.h. */
20400#include <hash_set>
20401int
20402main ()
20403{
John Criswell7a73b802003-06-30 21:59:07 +000020404hash_set<int> t; return 0;
20405 ;
20406 return 0;
20407}
20408_ACEOF
20409rm -f conftest.$ac_objext
20410if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20411 (eval $ac_compile) 2>&5
20412 ac_status=$?
20413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20414 (exit $ac_status); } &&
20415 { ac_try='test -s conftest.$ac_objext'
20416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20417 (eval $ac_try) 2>&5
20418 ac_status=$?
20419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20420 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000020421 ac_cv_cxx_have_global_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000020422else
20423 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020424sed 's/^/| /' conftest.$ac_ext >&5
20425
Brian Gaeke90583492003-11-10 03:06:28 +000020426ac_cv_cxx_have_global_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000020427fi
20428rm -f conftest.$ac_objext conftest.$ac_ext
20429 ac_ext=c
20430ac_cpp='$CPP $CPPFLAGS'
20431ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20432ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20433ac_compiler_gnu=$ac_cv_c_compiler_gnu
20434
John Criswell7a73b802003-06-30 21:59:07 +000020435fi
Brian Gaeke90583492003-11-10 03:06:28 +000020436echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
20437echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000020438 HAVE_GLOBAL_HASH_SET=0
20439 if test "$ac_cv_cxx_have_global_hash_set" = yes
20440 then
20441 HAVE_GLOBAL_HASH_SET=1
Brian Gaeke90583492003-11-10 03:06:28 +000020442 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000020443
John Criswell7a73b802003-06-30 21:59:07 +000020444echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
20445echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
20446if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
20447 echo $ECHO_N "(cached) $ECHO_C" >&6
20448else
20449
20450
20451
20452 ac_ext=cc
20453ac_cpp='$CXXCPP $CPPFLAGS'
20454ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20455ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20456ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20457
20458 cat >conftest.$ac_ext <<_ACEOF
20459#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020460/* confdefs.h. */
20461_ACEOF
20462cat confdefs.h >>conftest.$ac_ext
20463cat >>conftest.$ac_ext <<_ACEOF
20464/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020465#include <iterator>
20466#ifdef HAVE_NAMESPACES
20467using namespace std;
20468#endif
John Criswell7a73b802003-06-30 21:59:07 +000020469int
20470main ()
20471{
20472iterator<int,int,int> t; return 0;
20473 ;
20474 return 0;
20475}
20476_ACEOF
20477rm -f conftest.$ac_objext
20478if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20479 (eval $ac_compile) 2>&5
20480 ac_status=$?
20481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20482 (exit $ac_status); } &&
20483 { ac_try='test -s conftest.$ac_objext'
20484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20485 (eval $ac_try) 2>&5
20486 ac_status=$?
20487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20488 (exit $ac_status); }; }; then
20489 ac_cv_cxx_have_std_iterator=yes
20490else
20491 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020492sed 's/^/| /' conftest.$ac_ext >&5
20493
John Criswell7a73b802003-06-30 21:59:07 +000020494ac_cv_cxx_have_std_iterator=no
20495fi
20496rm -f conftest.$ac_objext conftest.$ac_ext
20497 ac_ext=c
20498ac_cpp='$CPP $CPPFLAGS'
20499ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20500ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20501ac_compiler_gnu=$ac_cv_c_compiler_gnu
20502
20503
20504fi
20505echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
20506echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
Brian Gaeke295d4b82004-02-23 18:16:06 +000020507HAVE_STD_ITERATOR=0
20508if test "$ac_cv_cxx_have_std_iterator" = yes
20509then
20510 HAVE_STD_ITERATOR=1
John Criswell7a73b802003-06-30 21:59:07 +000020511fi
20512
20513echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
20514echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
20515if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
20516 echo $ECHO_N "(cached) $ECHO_C" >&6
20517else
20518
20519
20520
20521 ac_ext=cc
20522ac_cpp='$CXXCPP $CPPFLAGS'
20523ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20524ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20525ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20526
20527 cat >conftest.$ac_ext <<_ACEOF
20528#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020529/* confdefs.h. */
20530_ACEOF
20531cat confdefs.h >>conftest.$ac_ext
20532cat >>conftest.$ac_ext <<_ACEOF
20533/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020534#include <iterator>
20535#ifdef HAVE_NAMESPACES
20536using namespace std;
20537#endif
John Criswell7a73b802003-06-30 21:59:07 +000020538int
20539main ()
20540{
John Criswellc78022e2003-07-29 19:11:58 +000020541bidirectional_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000020542 ;
20543 return 0;
20544}
20545_ACEOF
20546rm -f conftest.$ac_objext
20547if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20548 (eval $ac_compile) 2>&5
20549 ac_status=$?
20550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20551 (exit $ac_status); } &&
20552 { ac_try='test -s conftest.$ac_objext'
20553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20554 (eval $ac_try) 2>&5
20555 ac_status=$?
20556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20557 (exit $ac_status); }; }; then
20558 ac_cv_cxx_have_bi_iterator=yes
20559else
20560 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020561sed 's/^/| /' conftest.$ac_ext >&5
20562
John Criswell7a73b802003-06-30 21:59:07 +000020563ac_cv_cxx_have_bi_iterator=no
20564fi
20565rm -f conftest.$ac_objext conftest.$ac_ext
20566 ac_ext=c
20567ac_cpp='$CPP $CPPFLAGS'
20568ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20569ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20570ac_compiler_gnu=$ac_cv_c_compiler_gnu
20571
20572
20573fi
20574echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
20575echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
Brian Gaeke295d4b82004-02-23 18:16:06 +000020576HAVE_BI_ITERATOR=0
20577if test "$ac_cv_cxx_have_bi_iterator" = yes
20578then
20579 HAVE_BI_ITERATOR=1
John Criswell7a73b802003-06-30 21:59:07 +000020580fi
20581
20582echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
20583echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
20584if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
20585 echo $ECHO_N "(cached) $ECHO_C" >&6
20586else
20587
20588
20589
20590 ac_ext=cc
20591ac_cpp='$CXXCPP $CPPFLAGS'
20592ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20593ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20594ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20595
20596 cat >conftest.$ac_ext <<_ACEOF
20597#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020598/* confdefs.h. */
20599_ACEOF
20600cat confdefs.h >>conftest.$ac_ext
20601cat >>conftest.$ac_ext <<_ACEOF
20602/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020603#include <iterator>
20604#ifdef HAVE_NAMESPACES
20605using namespace std;
20606#endif
John Criswell7a73b802003-06-30 21:59:07 +000020607int
20608main ()
20609{
John Criswellc78022e2003-07-29 19:11:58 +000020610forward_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000020611 ;
20612 return 0;
20613}
20614_ACEOF
20615rm -f conftest.$ac_objext
20616if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20617 (eval $ac_compile) 2>&5
20618 ac_status=$?
20619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20620 (exit $ac_status); } &&
20621 { ac_try='test -s conftest.$ac_objext'
20622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20623 (eval $ac_try) 2>&5
20624 ac_status=$?
20625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20626 (exit $ac_status); }; }; then
20627 ac_cv_cxx_have_fwd_iterator=yes
20628else
20629 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020630sed 's/^/| /' conftest.$ac_ext >&5
20631
John Criswell7a73b802003-06-30 21:59:07 +000020632ac_cv_cxx_have_fwd_iterator=no
20633fi
20634rm -f conftest.$ac_objext conftest.$ac_ext
20635 ac_ext=c
20636ac_cpp='$CPP $CPPFLAGS'
20637ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20638ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20639ac_compiler_gnu=$ac_cv_c_compiler_gnu
20640
20641
20642fi
20643echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
20644echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
Brian Gaeke295d4b82004-02-23 18:16:06 +000020645HAVE_FWD_ITERATOR=0
20646if test "$ac_cv_cxx_have_fwd_iterator" = yes
20647then
20648 HAVE_FWD_ITERATOR=1
John Criswell7a73b802003-06-30 21:59:07 +000020649fi
20650
20651
20652# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
20653# for constant arguments. Useless!
20654echo "$as_me:$LINENO: checking for working alloca.h" >&5
20655echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
20656if test "${ac_cv_working_alloca_h+set}" = set; then
20657 echo $ECHO_N "(cached) $ECHO_C" >&6
20658else
20659 cat >conftest.$ac_ext <<_ACEOF
20660#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020661/* confdefs.h. */
20662_ACEOF
20663cat confdefs.h >>conftest.$ac_ext
20664cat >>conftest.$ac_ext <<_ACEOF
20665/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020666#include <alloca.h>
John Criswell7a73b802003-06-30 21:59:07 +000020667int
20668main ()
20669{
20670char *p = (char *) alloca (2 * sizeof (int));
20671 ;
20672 return 0;
20673}
20674_ACEOF
20675rm -f conftest.$ac_objext conftest$ac_exeext
20676if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20677 (eval $ac_link) 2>&5
20678 ac_status=$?
20679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20680 (exit $ac_status); } &&
20681 { ac_try='test -s conftest$ac_exeext'
20682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20683 (eval $ac_try) 2>&5
20684 ac_status=$?
20685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20686 (exit $ac_status); }; }; then
20687 ac_cv_working_alloca_h=yes
20688else
20689 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020690sed 's/^/| /' conftest.$ac_ext >&5
20691
John Criswell7a73b802003-06-30 21:59:07 +000020692ac_cv_working_alloca_h=no
20693fi
20694rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20695fi
20696echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
20697echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
20698if test $ac_cv_working_alloca_h = yes; then
20699
20700cat >>confdefs.h <<\_ACEOF
20701#define HAVE_ALLOCA_H 1
20702_ACEOF
20703
20704fi
20705
20706echo "$as_me:$LINENO: checking for alloca" >&5
20707echo $ECHO_N "checking for alloca... $ECHO_C" >&6
20708if test "${ac_cv_func_alloca_works+set}" = set; then
20709 echo $ECHO_N "(cached) $ECHO_C" >&6
20710else
20711 cat >conftest.$ac_ext <<_ACEOF
20712#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020713/* confdefs.h. */
20714_ACEOF
20715cat confdefs.h >>conftest.$ac_ext
20716cat >>conftest.$ac_ext <<_ACEOF
20717/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020718#ifdef __GNUC__
20719# define alloca __builtin_alloca
20720#else
20721# ifdef _MSC_VER
20722# include <malloc.h>
20723# define alloca _alloca
20724# else
20725# if HAVE_ALLOCA_H
20726# include <alloca.h>
20727# else
20728# ifdef _AIX
20729 #pragma alloca
20730# else
20731# ifndef alloca /* predefined by HP cc +Olibcalls */
20732char *alloca ();
20733# endif
20734# endif
20735# endif
20736# endif
20737#endif
20738
John Criswell7a73b802003-06-30 21:59:07 +000020739int
20740main ()
20741{
20742char *p = (char *) alloca (1);
20743 ;
20744 return 0;
20745}
20746_ACEOF
20747rm -f conftest.$ac_objext conftest$ac_exeext
20748if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20749 (eval $ac_link) 2>&5
20750 ac_status=$?
20751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20752 (exit $ac_status); } &&
20753 { ac_try='test -s conftest$ac_exeext'
20754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20755 (eval $ac_try) 2>&5
20756 ac_status=$?
20757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20758 (exit $ac_status); }; }; then
20759 ac_cv_func_alloca_works=yes
20760else
20761 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020762sed 's/^/| /' conftest.$ac_ext >&5
20763
John Criswell7a73b802003-06-30 21:59:07 +000020764ac_cv_func_alloca_works=no
20765fi
20766rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20767fi
20768echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
20769echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
20770
20771if test $ac_cv_func_alloca_works = yes; then
20772
20773cat >>confdefs.h <<\_ACEOF
20774#define HAVE_ALLOCA 1
20775_ACEOF
20776
20777else
20778 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
20779# that cause trouble. Some versions do not even contain alloca or
20780# contain a buggy version. If you still want to use their alloca,
20781# use ar to extract alloca.o from them instead of compiling alloca.c.
20782
20783ALLOCA=alloca.$ac_objext
20784
20785cat >>confdefs.h <<\_ACEOF
20786#define C_ALLOCA 1
20787_ACEOF
20788
20789
20790echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
20791echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
20792if test "${ac_cv_os_cray+set}" = set; then
20793 echo $ECHO_N "(cached) $ECHO_C" >&6
20794else
20795 cat >conftest.$ac_ext <<_ACEOF
20796#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020797/* confdefs.h. */
20798_ACEOF
20799cat confdefs.h >>conftest.$ac_ext
20800cat >>conftest.$ac_ext <<_ACEOF
20801/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020802#if defined(CRAY) && ! defined(CRAY2)
20803webecray
20804#else
20805wenotbecray
20806#endif
20807
20808_ACEOF
20809if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000020810 $EGREP "webecray" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000020811 ac_cv_os_cray=yes
20812else
20813 ac_cv_os_cray=no
20814fi
20815rm -f conftest*
20816
20817fi
20818echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
20819echo "${ECHO_T}$ac_cv_os_cray" >&6
20820if test $ac_cv_os_cray = yes; then
20821 for ac_func in _getb67 GETB67 getb67; do
20822 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20823echo "$as_me:$LINENO: checking for $ac_func" >&5
20824echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20825if eval "test \"\${$as_ac_var+set}\" = set"; then
20826 echo $ECHO_N "(cached) $ECHO_C" >&6
20827else
20828 cat >conftest.$ac_ext <<_ACEOF
20829#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020830/* confdefs.h. */
20831_ACEOF
20832cat confdefs.h >>conftest.$ac_ext
20833cat >>conftest.$ac_ext <<_ACEOF
20834/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020835/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000020836 which can conflict with char $ac_func (); below.
20837 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20838 <limits.h> exists even on freestanding compilers. */
20839#ifdef __STDC__
20840# include <limits.h>
20841#else
20842# include <assert.h>
20843#endif
John Criswell7a73b802003-06-30 21:59:07 +000020844/* Override any gcc2 internal prototype to avoid an error. */
20845#ifdef __cplusplus
20846extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000020847{
John Criswell7a73b802003-06-30 21:59:07 +000020848#endif
20849/* We use char because int might match the return type of a gcc2
20850 builtin and then its argument prototype would still apply. */
20851char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000020852/* The GNU C library defines this for functions which it implements
20853 to always fail with ENOSYS. Some functions are actually named
20854 something starting with __ and the normal name is an alias. */
20855#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20856choke me
20857#else
John Criswell0c38eaf2003-09-10 15:17:25 +000020858char (*f) () = $ac_func;
20859#endif
20860#ifdef __cplusplus
20861}
John Criswell7a73b802003-06-30 21:59:07 +000020862#endif
20863
John Criswell0c38eaf2003-09-10 15:17:25 +000020864int
20865main ()
20866{
20867return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000020868 ;
20869 return 0;
20870}
20871_ACEOF
20872rm -f conftest.$ac_objext conftest$ac_exeext
20873if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20874 (eval $ac_link) 2>&5
20875 ac_status=$?
20876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20877 (exit $ac_status); } &&
20878 { ac_try='test -s conftest$ac_exeext'
20879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20880 (eval $ac_try) 2>&5
20881 ac_status=$?
20882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20883 (exit $ac_status); }; }; then
20884 eval "$as_ac_var=yes"
20885else
20886 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020887sed 's/^/| /' conftest.$ac_ext >&5
20888
John Criswell7a73b802003-06-30 21:59:07 +000020889eval "$as_ac_var=no"
20890fi
20891rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20892fi
20893echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20894echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20895if test `eval echo '${'$as_ac_var'}'` = yes; then
20896
20897cat >>confdefs.h <<_ACEOF
20898#define CRAY_STACKSEG_END $ac_func
20899_ACEOF
20900
20901 break
20902fi
20903
20904 done
20905fi
20906
20907echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
20908echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
20909if test "${ac_cv_c_stack_direction+set}" = set; then
20910 echo $ECHO_N "(cached) $ECHO_C" >&6
20911else
20912 if test "$cross_compiling" = yes; then
20913 ac_cv_c_stack_direction=0
20914else
20915 cat >conftest.$ac_ext <<_ACEOF
20916#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020917/* confdefs.h. */
20918_ACEOF
20919cat confdefs.h >>conftest.$ac_ext
20920cat >>conftest.$ac_ext <<_ACEOF
20921/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020922int
20923find_stack_direction ()
20924{
20925 static char *addr = 0;
20926 auto char dummy;
20927 if (addr == 0)
20928 {
20929 addr = &dummy;
20930 return find_stack_direction ();
20931 }
20932 else
20933 return (&dummy > addr) ? 1 : -1;
20934}
20935
20936int
20937main ()
20938{
20939 exit (find_stack_direction () < 0);
20940}
20941_ACEOF
20942rm -f conftest$ac_exeext
20943if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20944 (eval $ac_link) 2>&5
20945 ac_status=$?
20946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20947 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20949 (eval $ac_try) 2>&5
20950 ac_status=$?
20951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20952 (exit $ac_status); }; }; then
20953 ac_cv_c_stack_direction=1
20954else
20955 echo "$as_me: program exited with status $ac_status" >&5
20956echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020957sed 's/^/| /' conftest.$ac_ext >&5
20958
John Criswell7a73b802003-06-30 21:59:07 +000020959( exit $ac_status )
20960ac_cv_c_stack_direction=-1
20961fi
John Criswell0c38eaf2003-09-10 15:17:25 +000020962rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000020963fi
20964fi
20965echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
20966echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
20967
20968cat >>confdefs.h <<_ACEOF
20969#define STACK_DIRECTION $ac_cv_c_stack_direction
20970_ACEOF
20971
20972
20973fi
20974
John Criswell7a73b802003-06-30 21:59:07 +000020975
20976
20977for ac_header in stdlib.h unistd.h
20978do
20979as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20980if eval "test \"\${$as_ac_Header+set}\" = set"; then
20981 echo "$as_me:$LINENO: checking for $ac_header" >&5
20982echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20983if eval "test \"\${$as_ac_Header+set}\" = set"; then
20984 echo $ECHO_N "(cached) $ECHO_C" >&6
20985fi
20986echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20987echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20988else
20989 # Is the header compilable?
20990echo "$as_me:$LINENO: checking $ac_header usability" >&5
20991echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20992cat >conftest.$ac_ext <<_ACEOF
20993#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020994/* confdefs.h. */
20995_ACEOF
20996cat confdefs.h >>conftest.$ac_ext
20997cat >>conftest.$ac_ext <<_ACEOF
20998/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020999$ac_includes_default
21000#include <$ac_header>
21001_ACEOF
21002rm -f conftest.$ac_objext
21003if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21004 (eval $ac_compile) 2>&5
21005 ac_status=$?
21006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21007 (exit $ac_status); } &&
21008 { ac_try='test -s conftest.$ac_objext'
21009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21010 (eval $ac_try) 2>&5
21011 ac_status=$?
21012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21013 (exit $ac_status); }; }; then
21014 ac_header_compiler=yes
21015else
21016 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021017sed 's/^/| /' conftest.$ac_ext >&5
21018
John Criswell7a73b802003-06-30 21:59:07 +000021019ac_header_compiler=no
21020fi
21021rm -f conftest.$ac_objext conftest.$ac_ext
21022echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21023echo "${ECHO_T}$ac_header_compiler" >&6
21024
21025# Is the header present?
21026echo "$as_me:$LINENO: checking $ac_header presence" >&5
21027echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21028cat >conftest.$ac_ext <<_ACEOF
21029#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021030/* confdefs.h. */
21031_ACEOF
21032cat confdefs.h >>conftest.$ac_ext
21033cat >>conftest.$ac_ext <<_ACEOF
21034/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021035#include <$ac_header>
21036_ACEOF
21037if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21038 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21039 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000021040 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000021041 rm -f conftest.er1
21042 cat conftest.err >&5
21043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21044 (exit $ac_status); } >/dev/null; then
21045 if test -s conftest.err; then
21046 ac_cpp_err=$ac_c_preproc_warn_flag
21047 else
21048 ac_cpp_err=
21049 fi
21050else
21051 ac_cpp_err=yes
21052fi
21053if test -z "$ac_cpp_err"; then
21054 ac_header_preproc=yes
21055else
21056 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021057sed 's/^/| /' conftest.$ac_ext >&5
21058
John Criswell7a73b802003-06-30 21:59:07 +000021059 ac_header_preproc=no
21060fi
21061rm -f conftest.err conftest.$ac_ext
21062echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21063echo "${ECHO_T}$ac_header_preproc" >&6
21064
21065# So? What about this header?
21066case $ac_header_compiler:$ac_header_preproc in
21067 yes:no )
21068 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21069echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21070 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021071echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21072 (
21073 cat <<\_ASBOX
21074## ------------------------------------ ##
21075## Report this to bug-autoconf@gnu.org. ##
21076## ------------------------------------ ##
21077_ASBOX
21078 ) |
21079 sed "s/^/$as_me: WARNING: /" >&2
21080 ;;
John Criswell7a73b802003-06-30 21:59:07 +000021081 no:yes )
21082 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21083echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21084 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21085echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21086 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021087echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21088 (
21089 cat <<\_ASBOX
21090## ------------------------------------ ##
21091## Report this to bug-autoconf@gnu.org. ##
21092## ------------------------------------ ##
21093_ASBOX
21094 ) |
21095 sed "s/^/$as_me: WARNING: /" >&2
21096 ;;
John Criswell7a73b802003-06-30 21:59:07 +000021097esac
21098echo "$as_me:$LINENO: checking for $ac_header" >&5
21099echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21100if eval "test \"\${$as_ac_Header+set}\" = set"; then
21101 echo $ECHO_N "(cached) $ECHO_C" >&6
21102else
21103 eval "$as_ac_Header=$ac_header_preproc"
21104fi
21105echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21106echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21107
21108fi
21109if test `eval echo '${'$as_ac_Header'}'` = yes; then
21110 cat >>confdefs.h <<_ACEOF
21111#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21112_ACEOF
21113
21114fi
21115
21116done
21117
21118
21119for ac_func in getpagesize
21120do
21121as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21122echo "$as_me:$LINENO: checking for $ac_func" >&5
21123echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21124if eval "test \"\${$as_ac_var+set}\" = set"; then
21125 echo $ECHO_N "(cached) $ECHO_C" >&6
21126else
21127 cat >conftest.$ac_ext <<_ACEOF
21128#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021129/* confdefs.h. */
21130_ACEOF
21131cat confdefs.h >>conftest.$ac_ext
21132cat >>conftest.$ac_ext <<_ACEOF
21133/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021134/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000021135 which can conflict with char $ac_func (); below.
21136 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21137 <limits.h> exists even on freestanding compilers. */
21138#ifdef __STDC__
21139# include <limits.h>
21140#else
21141# include <assert.h>
21142#endif
John Criswell7a73b802003-06-30 21:59:07 +000021143/* Override any gcc2 internal prototype to avoid an error. */
21144#ifdef __cplusplus
21145extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000021146{
John Criswell7a73b802003-06-30 21:59:07 +000021147#endif
21148/* We use char because int might match the return type of a gcc2
21149 builtin and then its argument prototype would still apply. */
21150char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000021151/* The GNU C library defines this for functions which it implements
21152 to always fail with ENOSYS. Some functions are actually named
21153 something starting with __ and the normal name is an alias. */
21154#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21155choke me
21156#else
John Criswell0c38eaf2003-09-10 15:17:25 +000021157char (*f) () = $ac_func;
21158#endif
21159#ifdef __cplusplus
21160}
John Criswell7a73b802003-06-30 21:59:07 +000021161#endif
21162
John Criswell0c38eaf2003-09-10 15:17:25 +000021163int
21164main ()
21165{
21166return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000021167 ;
21168 return 0;
21169}
21170_ACEOF
21171rm -f conftest.$ac_objext conftest$ac_exeext
21172if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21173 (eval $ac_link) 2>&5
21174 ac_status=$?
21175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21176 (exit $ac_status); } &&
21177 { ac_try='test -s conftest$ac_exeext'
21178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21179 (eval $ac_try) 2>&5
21180 ac_status=$?
21181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21182 (exit $ac_status); }; }; then
21183 eval "$as_ac_var=yes"
21184else
21185 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021186sed 's/^/| /' conftest.$ac_ext >&5
21187
John Criswell7a73b802003-06-30 21:59:07 +000021188eval "$as_ac_var=no"
21189fi
21190rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21191fi
21192echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21193echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21194if test `eval echo '${'$as_ac_var'}'` = yes; then
21195 cat >>confdefs.h <<_ACEOF
21196#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21197_ACEOF
21198
21199fi
21200done
21201
21202echo "$as_me:$LINENO: checking for working mmap" >&5
21203echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
21204if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
21205 echo $ECHO_N "(cached) $ECHO_C" >&6
21206else
21207 if test "$cross_compiling" = yes; then
21208 ac_cv_func_mmap_fixed_mapped=no
21209else
21210 cat >conftest.$ac_ext <<_ACEOF
21211#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021212/* confdefs.h. */
21213_ACEOF
21214cat confdefs.h >>conftest.$ac_ext
21215cat >>conftest.$ac_ext <<_ACEOF
21216/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021217$ac_includes_default
21218/* malloc might have been renamed as rpl_malloc. */
21219#undef malloc
21220
21221/* Thanks to Mike Haertel and Jim Avera for this test.
21222 Here is a matrix of mmap possibilities:
21223 mmap private not fixed
21224 mmap private fixed at somewhere currently unmapped
21225 mmap private fixed at somewhere already mapped
21226 mmap shared not fixed
21227 mmap shared fixed at somewhere currently unmapped
21228 mmap shared fixed at somewhere already mapped
21229 For private mappings, we should verify that changes cannot be read()
21230 back from the file, nor mmap's back from the file at a different
21231 address. (There have been systems where private was not correctly
21232 implemented like the infamous i386 svr4.0, and systems where the
21233 VM page cache was not coherent with the file system buffer cache
21234 like early versions of FreeBSD and possibly contemporary NetBSD.)
21235 For shared mappings, we should conversely verify that changes get
21236 propagated back to all the places they're supposed to be.
21237
21238 Grep wants private fixed already mapped.
21239 The main things grep needs to know about mmap are:
21240 * does it exist and is it safe to write into the mmap'd area
21241 * how to use it (BSD variants) */
21242
21243#include <fcntl.h>
21244#include <sys/mman.h>
21245
21246#if !STDC_HEADERS && !HAVE_STDLIB_H
21247char *malloc ();
21248#endif
21249
21250/* This mess was copied from the GNU getpagesize.h. */
21251#if !HAVE_GETPAGESIZE
21252/* Assume that all systems that can run configure have sys/param.h. */
21253# if !HAVE_SYS_PARAM_H
21254# define HAVE_SYS_PARAM_H 1
21255# endif
21256
21257# ifdef _SC_PAGESIZE
21258# define getpagesize() sysconf(_SC_PAGESIZE)
21259# else /* no _SC_PAGESIZE */
21260# if HAVE_SYS_PARAM_H
21261# include <sys/param.h>
21262# ifdef EXEC_PAGESIZE
21263# define getpagesize() EXEC_PAGESIZE
21264# else /* no EXEC_PAGESIZE */
21265# ifdef NBPG
21266# define getpagesize() NBPG * CLSIZE
21267# ifndef CLSIZE
21268# define CLSIZE 1
21269# endif /* no CLSIZE */
21270# else /* no NBPG */
21271# ifdef NBPC
21272# define getpagesize() NBPC
21273# else /* no NBPC */
21274# ifdef PAGESIZE
21275# define getpagesize() PAGESIZE
21276# endif /* PAGESIZE */
21277# endif /* no NBPC */
21278# endif /* no NBPG */
21279# endif /* no EXEC_PAGESIZE */
21280# else /* no HAVE_SYS_PARAM_H */
21281# define getpagesize() 8192 /* punt totally */
21282# endif /* no HAVE_SYS_PARAM_H */
21283# endif /* no _SC_PAGESIZE */
21284
21285#endif /* no HAVE_GETPAGESIZE */
21286
21287int
21288main ()
21289{
21290 char *data, *data2, *data3;
21291 int i, pagesize;
21292 int fd;
21293
21294 pagesize = getpagesize ();
21295
21296 /* First, make a file with some known garbage in it. */
21297 data = (char *) malloc (pagesize);
21298 if (!data)
21299 exit (1);
21300 for (i = 0; i < pagesize; ++i)
21301 *(data + i) = rand ();
21302 umask (0);
21303 fd = creat ("conftest.mmap", 0600);
21304 if (fd < 0)
21305 exit (1);
21306 if (write (fd, data, pagesize) != pagesize)
21307 exit (1);
21308 close (fd);
21309
21310 /* Next, try to mmap the file at a fixed address which already has
21311 something else allocated at it. If we can, also make sure that
21312 we see the same garbage. */
21313 fd = open ("conftest.mmap", O_RDWR);
21314 if (fd < 0)
21315 exit (1);
21316 data2 = (char *) malloc (2 * pagesize);
21317 if (!data2)
21318 exit (1);
21319 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
21320 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
21321 MAP_PRIVATE | MAP_FIXED, fd, 0L))
21322 exit (1);
21323 for (i = 0; i < pagesize; ++i)
21324 if (*(data + i) != *(data2 + i))
21325 exit (1);
21326
21327 /* Finally, make sure that changes to the mapped area do not
21328 percolate back to the file as seen by read(). (This is a bug on
21329 some variants of i386 svr4.0.) */
21330 for (i = 0; i < pagesize; ++i)
21331 *(data2 + i) = *(data2 + i) + 1;
21332 data3 = (char *) malloc (pagesize);
21333 if (!data3)
21334 exit (1);
21335 if (read (fd, data3, pagesize) != pagesize)
21336 exit (1);
21337 for (i = 0; i < pagesize; ++i)
21338 if (*(data + i) != *(data3 + i))
21339 exit (1);
21340 close (fd);
21341 exit (0);
21342}
21343_ACEOF
21344rm -f conftest$ac_exeext
21345if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21346 (eval $ac_link) 2>&5
21347 ac_status=$?
21348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21349 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21351 (eval $ac_try) 2>&5
21352 ac_status=$?
21353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21354 (exit $ac_status); }; }; then
21355 ac_cv_func_mmap_fixed_mapped=yes
21356else
21357 echo "$as_me: program exited with status $ac_status" >&5
21358echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021359sed 's/^/| /' conftest.$ac_ext >&5
21360
John Criswell7a73b802003-06-30 21:59:07 +000021361( exit $ac_status )
21362ac_cv_func_mmap_fixed_mapped=no
21363fi
John Criswell0c38eaf2003-09-10 15:17:25 +000021364rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021365fi
21366fi
21367echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
21368echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
21369if test $ac_cv_func_mmap_fixed_mapped = yes; then
21370
21371cat >>confdefs.h <<\_ACEOF
21372#define HAVE_MMAP 1
21373_ACEOF
21374
21375fi
21376rm -f conftest.mmap
21377
Brian Gaeke26be9c52004-01-13 06:43:16 +000021378if test "$ac_cv_func_mmap_fixed_mapped" = "no"
21379then
John Criswellf3ecf3a2004-05-27 00:57:50 +000021380 { echo "$as_me:$LINENO: WARNING: mmap() required but not found" >&5
21381echo "$as_me: WARNING: mmap() required but not found" >&2;}
Brian Gaeke26be9c52004-01-13 06:43:16 +000021382fi
John Criswell7a73b802003-06-30 21:59:07 +000021383echo "$as_me:$LINENO: checking for mmap of files" >&5
21384echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
21385if test "${ac_cv_func_mmap_file+set}" = set; then
21386 echo $ECHO_N "(cached) $ECHO_C" >&6
21387else
21388
21389
21390 ac_ext=c
21391ac_cpp='$CPP $CPPFLAGS'
21392ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21393ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21394ac_compiler_gnu=$ac_cv_c_compiler_gnu
21395
21396 if test "$cross_compiling" = yes; then
John Criswell0c38eaf2003-09-10 15:17:25 +000021397 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
21398See \`config.log' for more details." >&5
21399echo "$as_me: error: cannot run test program while cross compiling
21400See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000021401 { (exit 1); exit 1; }; }
21402else
21403 cat >conftest.$ac_ext <<_ACEOF
21404#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021405/* confdefs.h. */
21406_ACEOF
21407cat confdefs.h >>conftest.$ac_ext
21408cat >>conftest.$ac_ext <<_ACEOF
21409/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021410
John Criswell7a73b802003-06-30 21:59:07 +000021411#ifdef HAVE_SYS_TYPES_H
21412#include <sys/types.h>
21413#endif
21414
John Criswell5ab73462003-10-09 15:44:28 +000021415#ifdef HAVE_SYS_MMAN_H
21416#include <sys/mman.h>
21417#endif
21418
John Criswell7a73b802003-06-30 21:59:07 +000021419#ifdef HAVE_FCNTL_H
21420#include <fcntl.h>
21421#endif
21422
21423 int fd;
21424 int main () {
John Criswell5ab73462003-10-09 15:44:28 +000021425 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 +000021426_ACEOF
21427rm -f conftest$ac_exeext
21428if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21429 (eval $ac_link) 2>&5
21430 ac_status=$?
21431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21432 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21434 (eval $ac_try) 2>&5
21435 ac_status=$?
21436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21437 (exit $ac_status); }; }; then
21438 ac_cv_func_mmap_file=yes
21439else
21440 echo "$as_me: program exited with status $ac_status" >&5
21441echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021442sed 's/^/| /' conftest.$ac_ext >&5
21443
John Criswell7a73b802003-06-30 21:59:07 +000021444( exit $ac_status )
21445ac_cv_func_mmap_file=no
21446fi
John Criswell0c38eaf2003-09-10 15:17:25 +000021447rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021448fi
21449 ac_ext=c
21450ac_cpp='$CPP $CPPFLAGS'
21451ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21452ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21453ac_compiler_gnu=$ac_cv_c_compiler_gnu
21454
21455
21456fi
21457echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
21458echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
21459if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000021460
21461cat >>confdefs.h <<\_ACEOF
21462#define HAVE_MMAP_FILE
John Criswell7a73b802003-06-30 21:59:07 +000021463_ACEOF
21464
21465 MMAP_FILE=yes
21466
21467fi
21468
Brian Gaeke26be9c52004-01-13 06:43:16 +000021469if test "$ac_cv_func_mmap_file" = "no"
John Criswell7a73b802003-06-30 21:59:07 +000021470then
John Criswellf3ecf3a2004-05-27 00:57:50 +000021471 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
21472echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000021473fi
21474echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
21475echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
21476if test "${ac_cv_header_mmap_anon+set}" = set; then
21477 echo $ECHO_N "(cached) $ECHO_C" >&6
21478else
21479
21480
21481 ac_ext=c
21482ac_cpp='$CPP $CPPFLAGS'
21483ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21484ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21485ac_compiler_gnu=$ac_cv_c_compiler_gnu
21486
21487 cat >conftest.$ac_ext <<_ACEOF
21488#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021489/* confdefs.h. */
21490_ACEOF
21491cat confdefs.h >>conftest.$ac_ext
21492cat >>conftest.$ac_ext <<_ACEOF
21493/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021494#include <sys/mman.h>
21495 #include <unistd.h>
21496 #include <fcntl.h>
John Criswell7a73b802003-06-30 21:59:07 +000021497int
21498main ()
21499{
21500mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
21501 ;
21502 return 0;
21503}
21504_ACEOF
21505rm -f conftest.$ac_objext
21506if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21507 (eval $ac_compile) 2>&5
21508 ac_status=$?
21509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21510 (exit $ac_status); } &&
21511 { ac_try='test -s conftest.$ac_objext'
21512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21513 (eval $ac_try) 2>&5
21514 ac_status=$?
21515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21516 (exit $ac_status); }; }; then
21517 ac_cv_header_mmap_anon=yes
21518else
21519 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021520sed 's/^/| /' conftest.$ac_ext >&5
21521
John Criswell7a73b802003-06-30 21:59:07 +000021522ac_cv_header_mmap_anon=no
21523fi
21524rm -f conftest.$ac_objext conftest.$ac_ext
21525 ac_ext=c
21526ac_cpp='$CPP $CPPFLAGS'
21527ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21528ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21529ac_compiler_gnu=$ac_cv_c_compiler_gnu
21530
21531
21532fi
21533echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
21534echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
21535if test "$ac_cv_header_mmap_anon" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000021536
21537cat >>confdefs.h <<\_ACEOF
21538#define HAVE_MMAP_ANONYMOUS
John Criswell7a73b802003-06-30 21:59:07 +000021539_ACEOF
21540
21541fi
21542
21543echo "$as_me:$LINENO: checking return type of signal handlers" >&5
21544echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
21545if test "${ac_cv_type_signal+set}" = set; then
21546 echo $ECHO_N "(cached) $ECHO_C" >&6
21547else
21548 cat >conftest.$ac_ext <<_ACEOF
21549#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021550/* confdefs.h. */
21551_ACEOF
21552cat confdefs.h >>conftest.$ac_ext
21553cat >>conftest.$ac_ext <<_ACEOF
21554/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021555#include <sys/types.h>
21556#include <signal.h>
21557#ifdef signal
21558# undef signal
21559#endif
21560#ifdef __cplusplus
21561extern "C" void (*signal (int, void (*)(int)))(int);
21562#else
21563void (*signal ()) ();
21564#endif
21565
John Criswell7a73b802003-06-30 21:59:07 +000021566int
21567main ()
21568{
21569int i;
21570 ;
21571 return 0;
21572}
21573_ACEOF
21574rm -f conftest.$ac_objext
21575if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21576 (eval $ac_compile) 2>&5
21577 ac_status=$?
21578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21579 (exit $ac_status); } &&
21580 { ac_try='test -s conftest.$ac_objext'
21581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21582 (eval $ac_try) 2>&5
21583 ac_status=$?
21584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21585 (exit $ac_status); }; }; then
21586 ac_cv_type_signal=void
21587else
21588 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021589sed 's/^/| /' conftest.$ac_ext >&5
21590
John Criswell7a73b802003-06-30 21:59:07 +000021591ac_cv_type_signal=int
21592fi
21593rm -f conftest.$ac_objext conftest.$ac_ext
21594fi
21595echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
21596echo "${ECHO_T}$ac_cv_type_signal" >&6
21597
21598cat >>confdefs.h <<_ACEOF
21599#define RETSIGTYPE $ac_cv_type_signal
21600_ACEOF
21601
21602
21603
21604
21605
21606
21607
Brian Gaekef5261472004-02-20 06:40:57 +000021608
Brian Gaeke9a08b5e2004-04-02 21:26:02 +000021609
John Criswelld6621562004-06-07 14:26:24 +000021610
21611
John Criswell8a54a1e2004-06-22 21:35:10 +000021612
21613for ac_func in getcwd gettimeofday strdup strtoq strtoll backtrace isatty mkstemp getrusage isnan
John Criswell7a73b802003-06-30 21:59:07 +000021614do
21615as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21616echo "$as_me:$LINENO: checking for $ac_func" >&5
21617echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21618if eval "test \"\${$as_ac_var+set}\" = set"; then
21619 echo $ECHO_N "(cached) $ECHO_C" >&6
21620else
21621 cat >conftest.$ac_ext <<_ACEOF
21622#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021623/* confdefs.h. */
21624_ACEOF
21625cat confdefs.h >>conftest.$ac_ext
21626cat >>conftest.$ac_ext <<_ACEOF
21627/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021628/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000021629 which can conflict with char $ac_func (); below.
21630 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21631 <limits.h> exists even on freestanding compilers. */
21632#ifdef __STDC__
21633# include <limits.h>
21634#else
21635# include <assert.h>
21636#endif
John Criswell7a73b802003-06-30 21:59:07 +000021637/* Override any gcc2 internal prototype to avoid an error. */
21638#ifdef __cplusplus
21639extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000021640{
John Criswell7a73b802003-06-30 21:59:07 +000021641#endif
21642/* We use char because int might match the return type of a gcc2
21643 builtin and then its argument prototype would still apply. */
21644char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000021645/* The GNU C library defines this for functions which it implements
21646 to always fail with ENOSYS. Some functions are actually named
21647 something starting with __ and the normal name is an alias. */
21648#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21649choke me
21650#else
John Criswell0c38eaf2003-09-10 15:17:25 +000021651char (*f) () = $ac_func;
21652#endif
21653#ifdef __cplusplus
21654}
John Criswell7a73b802003-06-30 21:59:07 +000021655#endif
21656
John Criswell0c38eaf2003-09-10 15:17:25 +000021657int
21658main ()
21659{
21660return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000021661 ;
21662 return 0;
21663}
21664_ACEOF
21665rm -f conftest.$ac_objext conftest$ac_exeext
21666if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21667 (eval $ac_link) 2>&5
21668 ac_status=$?
21669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21670 (exit $ac_status); } &&
21671 { ac_try='test -s conftest$ac_exeext'
21672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21673 (eval $ac_try) 2>&5
21674 ac_status=$?
21675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21676 (exit $ac_status); }; }; then
21677 eval "$as_ac_var=yes"
21678else
21679 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021680sed 's/^/| /' conftest.$ac_ext >&5
21681
John Criswell7a73b802003-06-30 21:59:07 +000021682eval "$as_ac_var=no"
21683fi
21684rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21685fi
21686echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21687echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21688if test `eval echo '${'$as_ac_var'}'` = yes; then
21689 cat >>confdefs.h <<_ACEOF
21690#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21691_ACEOF
21692
21693fi
21694done
21695
John Criswell7a73b802003-06-30 21:59:07 +000021696echo "$as_me:$LINENO: checking for mprotect" >&5
21697echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
21698if test "${ac_cv_func_mprotect+set}" = set; then
21699 echo $ECHO_N "(cached) $ECHO_C" >&6
21700else
21701 cat >conftest.$ac_ext <<_ACEOF
21702#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021703/* confdefs.h. */
21704_ACEOF
21705cat confdefs.h >>conftest.$ac_ext
21706cat >>conftest.$ac_ext <<_ACEOF
21707/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021708/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000021709 which can conflict with char mprotect (); below.
21710 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21711 <limits.h> exists even on freestanding compilers. */
21712#ifdef __STDC__
21713# include <limits.h>
21714#else
21715# include <assert.h>
21716#endif
John Criswell7a73b802003-06-30 21:59:07 +000021717/* Override any gcc2 internal prototype to avoid an error. */
21718#ifdef __cplusplus
21719extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000021720{
John Criswell7a73b802003-06-30 21:59:07 +000021721#endif
21722/* We use char because int might match the return type of a gcc2
21723 builtin and then its argument prototype would still apply. */
21724char mprotect ();
John Criswell7a73b802003-06-30 21:59:07 +000021725/* The GNU C library defines this for functions which it implements
21726 to always fail with ENOSYS. Some functions are actually named
21727 something starting with __ and the normal name is an alias. */
21728#if defined (__stub_mprotect) || defined (__stub___mprotect)
21729choke me
21730#else
John Criswell0c38eaf2003-09-10 15:17:25 +000021731char (*f) () = mprotect;
21732#endif
21733#ifdef __cplusplus
21734}
John Criswell7a73b802003-06-30 21:59:07 +000021735#endif
21736
John Criswell0c38eaf2003-09-10 15:17:25 +000021737int
21738main ()
21739{
21740return f != mprotect;
John Criswell7a73b802003-06-30 21:59:07 +000021741 ;
21742 return 0;
21743}
21744_ACEOF
21745rm -f conftest.$ac_objext conftest$ac_exeext
21746if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21747 (eval $ac_link) 2>&5
21748 ac_status=$?
21749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21750 (exit $ac_status); } &&
21751 { ac_try='test -s conftest$ac_exeext'
21752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21753 (eval $ac_try) 2>&5
21754 ac_status=$?
21755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21756 (exit $ac_status); }; }; then
21757 ac_cv_func_mprotect=yes
21758else
21759 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021760sed 's/^/| /' conftest.$ac_ext >&5
21761
John Criswell7a73b802003-06-30 21:59:07 +000021762ac_cv_func_mprotect=no
21763fi
21764rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21765fi
21766echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
21767echo "${ECHO_T}$ac_cv_func_mprotect" >&6
21768if test $ac_cv_func_mprotect = yes; then
21769 :
21770else
21771 { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
21772echo "$as_me: error: Function mprotect() required but not found" >&2;}
21773 { (exit 1); exit 1; }; }
21774fi
21775
21776
John Criswellb13092b2003-07-22 21:00:24 +000021777
John Criswellcb7a1eb2003-11-17 19:46:02 +000021778
21779
21780 ac_ext=c
21781ac_cpp='$CPP $CPPFLAGS'
21782ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21783ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21784ac_compiler_gnu=$ac_cv_c_compiler_gnu
21785
Brian Gaekef91a15c2003-11-18 06:20:41 +000021786 oldcflags="$CFLAGS"
21787 CFLAGS="$CFLAGS -Wl,-R."
John Criswellcb7a1eb2003-11-17 19:46:02 +000021788 cat >conftest.$ac_ext <<_ACEOF
Brian Gaekef91a15c2003-11-18 06:20:41 +000021789int main() { return 0; }
John Criswellcb7a1eb2003-11-17 19:46:02 +000021790_ACEOF
21791rm -f conftest.$ac_objext conftest$ac_exeext
21792if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21793 (eval $ac_link) 2>&5
21794 ac_status=$?
21795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21796 (exit $ac_status); } &&
21797 { ac_try='test -s conftest$ac_exeext'
21798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21799 (eval $ac_try) 2>&5
21800 ac_status=$?
21801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21802 (exit $ac_status); }; }; then
21803 ac_cv_link_use_r=yes
21804else
21805 echo "$as_me: failed program was:" >&5
21806sed 's/^/| /' conftest.$ac_ext >&5
21807
Brian Gaekef91a15c2003-11-18 06:20:41 +000021808ac_cv_link_use_r=no
John Criswellcb7a1eb2003-11-17 19:46:02 +000021809fi
21810rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Brian Gaekef91a15c2003-11-18 06:20:41 +000021811 CFLAGS="$oldcflags"
John Criswellcb7a1eb2003-11-17 19:46:02 +000021812 ac_ext=c
21813ac_cpp='$CPP $CPPFLAGS'
21814ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21815ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21816ac_compiler_gnu=$ac_cv_c_compiler_gnu
21817
Brian Gaekef91a15c2003-11-18 06:20:41 +000021818 if test "$ac_cv_link_use_r" = yes
John Criswellcb7a1eb2003-11-17 19:46:02 +000021819 then
Brian Gaekef91a15c2003-11-18 06:20:41 +000021820
21821cat >>confdefs.h <<\_ACEOF
John Criswellcb7a1eb2003-11-17 19:46:02 +000021822#define HAVE_LINK_R 1
21823_ACEOF
21824
21825 fi
21826
21827
John Criswell7a73b802003-06-30 21:59:07 +000021828# Check whether --enable-optimized or --disable-optimized was given.
21829if test "${enable_optimized+set}" = set; then
21830 enableval="$enable_optimized"
John Criswell7a73b802003-06-30 21:59:07 +000021831
21832else
John Criswellb13092b2003-07-22 21:00:24 +000021833 enableval=no
John Criswell7a73b802003-06-30 21:59:07 +000021834fi;
John Criswellb13092b2003-07-22 21:00:24 +000021835if test ${enableval} = "no"
21836then
21837 ENABLE_OPTIMIZED=
21838
21839else
21840 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
21841
21842fi
21843
John Criswell55126592003-10-07 21:57:39 +000021844
21845
John Criswell55126592003-10-07 21:57:39 +000021846
Brian Gaekee773b862004-04-16 17:13:44 +000021847 # Check whether --enable-spec95 or --disable-spec95 was given.
John Criswellcf2e9f72004-02-10 22:36:35 +000021848if test "${enable_spec95+set}" = set; then
21849 enableval="$enable_spec95"
Brian Gaekee773b862004-04-16 17:13:44 +000021850 checkresult=$enableval
John Criswellcf2e9f72004-02-10 22:36:35 +000021851else
Brian Gaekee773b862004-04-16 17:13:44 +000021852 checkresult=auto
John Criswellcf2e9f72004-02-10 22:36:35 +000021853fi;
Brian Gaekee773b862004-04-16 17:13:44 +000021854echo "$as_me:$LINENO: checking for spec95 benchmark sources" >&5
21855echo $ECHO_N "checking for spec95 benchmark sources... $ECHO_C" >&6
21856case "$checkresult" in
21857auto|yes)
21858 defaultdir=/home/vadve/shared/benchmarks/spec95/benchspec
21859 if test -d "$defaultdir"
John Criswellcf2e9f72004-02-10 22:36:35 +000021860 then
Brian Gaekee773b862004-04-16 17:13:44 +000021861 SPEC95_ROOT=$defaultdir
John Criswellcf2e9f72004-02-10 22:36:35 +000021862
21863 USE_SPEC95=USE_SPEC95=1
21864
Brian Gaekee773b862004-04-16 17:13:44 +000021865 checkresult="yes, found in $defaultdir"
21866 else
21867 checkresult=no
21868 fi
21869 ;;
21870no)
John Criswellcf2e9f72004-02-10 22:36:35 +000021871
21872
Brian Gaekee773b862004-04-16 17:13:44 +000021873 checkresult=no
21874 ;;
21875*) if test -d "$checkresult"
21876 then
21877 SPEC95_ROOT="$checkresult"
21878
21879 USE_SPEC95=USE_SPEC95=1
21880
21881 checkresult="yes, in $checkresult"
21882 else
21883
21884
21885 checkresult="no, not found in $checkresult"
21886 fi
21887 ;;
21888esac
21889echo "$as_me:$LINENO: result: $checkresult" >&5
21890echo "${ECHO_T}$checkresult" >&6
21891
21892
21893
21894 # Check whether --enable-spec2000 or --disable-spec2000 was given.
21895if test "${enable_spec2000+set}" = set; then
21896 enableval="$enable_spec2000"
21897 checkresult=$enableval
John Criswellcf2e9f72004-02-10 22:36:35 +000021898else
Brian Gaekee773b862004-04-16 17:13:44 +000021899 checkresult=auto
21900fi;
21901echo "$as_me:$LINENO: checking for spec2000 benchmark sources" >&5
21902echo $ECHO_N "checking for spec2000 benchmark sources... $ECHO_C" >&6
21903case "$checkresult" in
21904auto|yes)
21905 defaultdir=/home/vadve/shared/benchmarks/speccpu2000/benchspec
21906 if test -d "$defaultdir"
John Criswellcf2e9f72004-02-10 22:36:35 +000021907 then
Brian Gaekee773b862004-04-16 17:13:44 +000021908 SPEC2000_ROOT=$defaultdir
John Criswellcf2e9f72004-02-10 22:36:35 +000021909
Brian Gaekee773b862004-04-16 17:13:44 +000021910 USE_SPEC2000=USE_SPEC2000=1
John Criswellcf2e9f72004-02-10 22:36:35 +000021911
Brian Gaekee773b862004-04-16 17:13:44 +000021912 checkresult="yes, found in $defaultdir"
21913 else
21914 checkresult=no
21915 fi
21916 ;;
21917no)
John Criswellcf2e9f72004-02-10 22:36:35 +000021918
John Criswellcf2e9f72004-02-10 22:36:35 +000021919
Brian Gaekee773b862004-04-16 17:13:44 +000021920 checkresult=no
21921 ;;
21922*) if test -d "$checkresult"
21923 then
21924 SPEC2000_ROOT="$checkresult"
21925
21926 USE_SPEC2000=USE_SPEC2000=1
21927
21928 checkresult="yes, in $checkresult"
21929 else
21930
21931
21932 checkresult="no, not found in $checkresult"
21933 fi
21934 ;;
21935esac
21936echo "$as_me:$LINENO: result: $checkresult" >&5
21937echo "${ECHO_T}$checkresult" >&6
21938
21939
21940
21941 # Check whether --enable-povray or --disable-povray was given.
John Criswell0538d422004-02-20 22:30:22 +000021942if test "${enable_povray+set}" = set; then
21943 enableval="$enable_povray"
Brian Gaekee773b862004-04-16 17:13:44 +000021944 checkresult=$enableval
John Criswell0538d422004-02-20 22:30:22 +000021945else
Brian Gaekee773b862004-04-16 17:13:44 +000021946 checkresult=auto
John Criswell0538d422004-02-20 22:30:22 +000021947fi;
Brian Gaekee773b862004-04-16 17:13:44 +000021948echo "$as_me:$LINENO: checking for povray benchmark sources" >&5
21949echo $ECHO_N "checking for povray benchmark sources... $ECHO_C" >&6
21950case "$checkresult" in
Chris Lattner95f45c52004-04-14 16:32:09 +000021951auto|yes)
Brian Gaekef66cdf82004-04-13 19:03:49 +000021952 defaultdir=/home/vadve/shared/benchmarks/povray31
Brian Gaekee773b862004-04-16 17:13:44 +000021953 if test -d "$defaultdir"
John Criswell0538d422004-02-20 22:30:22 +000021954 then
Brian Gaekef66cdf82004-04-13 19:03:49 +000021955 POVRAY_ROOT=$defaultdir
John Criswell0538d422004-02-20 22:30:22 +000021956
21957 USE_POVRAY=USE_POVRAY=1
21958
Brian Gaekee773b862004-04-16 17:13:44 +000021959 checkresult="yes, found in $defaultdir"
Brian Gaekef66cdf82004-04-13 19:03:49 +000021960 else
Brian Gaekee773b862004-04-16 17:13:44 +000021961 checkresult=no
Brian Gaekef66cdf82004-04-13 19:03:49 +000021962 fi
21963 ;;
Chris Lattner95f45c52004-04-14 16:32:09 +000021964no)
John Criswell0538d422004-02-20 22:30:22 +000021965
21966
Brian Gaekee773b862004-04-16 17:13:44 +000021967 checkresult=no
Brian Gaekef66cdf82004-04-13 19:03:49 +000021968 ;;
Brian Gaekee773b862004-04-16 17:13:44 +000021969*) if test -d "$checkresult"
Brian Gaekef66cdf82004-04-13 19:03:49 +000021970 then
Brian Gaekee773b862004-04-16 17:13:44 +000021971 POVRAY_ROOT="$checkresult"
John Criswell0538d422004-02-20 22:30:22 +000021972
Brian Gaekef66cdf82004-04-13 19:03:49 +000021973 USE_POVRAY=USE_POVRAY=1
John Criswell0538d422004-02-20 22:30:22 +000021974
Brian Gaekee773b862004-04-16 17:13:44 +000021975 checkresult="yes, in $checkresult"
Brian Gaekef66cdf82004-04-13 19:03:49 +000021976 else
John Criswell0538d422004-02-20 22:30:22 +000021977
John Criswell0538d422004-02-20 22:30:22 +000021978
Brian Gaekee773b862004-04-16 17:13:44 +000021979 checkresult="no, not found in $checkresult"
Brian Gaekef66cdf82004-04-13 19:03:49 +000021980 fi
21981 ;;
21982esac
Brian Gaekee773b862004-04-16 17:13:44 +000021983echo "$as_me:$LINENO: result: $checkresult" >&5
21984echo "${ECHO_T}$checkresult" >&6
21985
21986
John Criswell0538d422004-02-20 22:30:22 +000021987
John Criswell7a73b802003-06-30 21:59:07 +000021988# Check whether --enable-precompiled_bytecode or --disable-precompiled_bytecode was given.
21989if test "${enable_precompiled_bytecode+set}" = set; then
21990 enableval="$enable_precompiled_bytecode"
John Criswell7a73b802003-06-30 21:59:07 +000021991
21992else
John Criswellb13092b2003-07-22 21:00:24 +000021993 enableval=no
John Criswell7a73b802003-06-30 21:59:07 +000021994fi;
John Criswellb13092b2003-07-22 21:00:24 +000021995if test ${enableval} = "no"
21996then
21997 UPB=
John Criswellf02dbf02003-07-22 20:07:49 +000021998
John Criswellb13092b2003-07-22 21:00:24 +000021999else
22000 UPB=USE_PRECOMPILED_BYTECODE=1
22001
22002fi
John Criswellf02dbf02003-07-22 20:07:49 +000022003
John Criswellf02dbf02003-07-22 20:07:49 +000022004# Check whether --enable-llc_diffs or --disable-llc_diffs was given.
22005if test "${enable_llc_diffs+set}" = set; then
22006 enableval="$enable_llc_diffs"
John Criswellf02dbf02003-07-22 20:07:49 +000022007
22008else
John Criswellb13092b2003-07-22 21:00:24 +000022009 enableval=yes
John Criswellf02dbf02003-07-22 20:07:49 +000022010fi;
John Criswellb13092b2003-07-22 21:00:24 +000022011if test ${enableval} = "no"
22012then
22013 DISABLE_LLC_DIFFS=DISABLE_LLC_DIFFS:=1
John Criswellf02dbf02003-07-22 20:07:49 +000022014
John Criswellb13092b2003-07-22 21:00:24 +000022015else
22016 DISABLE_LLC_DIFFS=
22017
22018fi
22019
22020# Check whether --enable-jit or --disable-jit was given.
John Criswell7a73b802003-06-30 21:59:07 +000022021if test "${enable_jit+set}" = set; then
22022 enableval="$enable_jit"
John Criswell7a73b802003-06-30 21:59:07 +000022023
22024else
John Criswellc78022e2003-07-29 19:11:58 +000022025 enableval=default
John Criswell7a73b802003-06-30 21:59:07 +000022026fi;
John Criswellb13092b2003-07-22 21:00:24 +000022027if test ${enableval} = "no"
22028then
22029 JIT=
22030
22031else
John Criswellc78022e2003-07-29 19:11:58 +000022032 case $target in
22033 *i*86*)
22034 JIT=TARGET_HAS_JIT=1
John Criswellb13092b2003-07-22 21:00:24 +000022035
John Criswellc78022e2003-07-29 19:11:58 +000022036 ;;
22037 *sparc*)
22038 JIT=TARGET_HAS_JIT=1
22039
22040 ;;
22041 *)
22042 JIT=
22043
22044 ;;
22045 esac
John Criswellb13092b2003-07-22 21:00:24 +000022046fi
John Criswell7a73b802003-06-30 21:59:07 +000022047
22048
John Criswell7a73b802003-06-30 21:59:07 +000022049# Check whether --with-llvmgccdir or --without-llvmgccdir was given.
22050if test "${with_llvmgccdir+set}" = set; then
22051 withval="$with_llvmgccdir"
22052 LLVMGCCDIR=$withval
22053
22054fi;
Brian Gaekef3b24102003-11-16 18:38:14 +000022055echo "$as_me:$LINENO: checking for llvm-gcc" >&5
22056echo $ECHO_N "checking for llvm-gcc... $ECHO_C" >&6
22057LLVM_GCC_CHECK=no
22058if test -d "$LLVMGCCDIR"
22059then
22060 if test -x "$LLVMGCCDIR/bin/gcc"
22061 then
22062 LLVM_GCC_CHECK="$LLVMGCCDIR/bin/gcc"
22063 fi
22064fi
22065llvmgccwarn=no
22066echo "$as_me:$LINENO: result: $LLVM_GCC_CHECK" >&5
22067echo "${ECHO_T}$LLVM_GCC_CHECK" >&6
22068if test "$LLVM_GCC_CHECK" = "no"
22069then
22070 llvmgccwarn=yes
22071fi
Brian Gaekef3b24102003-11-16 18:38:14 +000022072echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
22073echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
22074LLVM_GCC_SANE=no
22075if test -x "$LLVM_GCC_CHECK"
22076then
22077 cp /dev/null conftest.c
22078 "$LLVM_GCC_CHECK" -S -o - conftest.c | grep implementation > /dev/null 2>&1
22079 if test $? -eq 0
22080 then
22081 LLVM_GCC_SANE=yes
22082 fi
22083 rm conftest.c
Brian Gaeke2f50a042004-01-16 21:31:21 +000022084 llvmcc1path=`"$LLVM_GCC_CHECK" --print-prog-name=cc1`
Brian Gaeke554831c2004-01-21 19:39:29 +000022085 LLVMCC1=$llvmcc1path
Brian Gaeke2f50a042004-01-16 21:31:21 +000022086
22087 llvmcc1pluspath=`"$LLVM_GCC_CHECK" --print-prog-name=cc1plus`
Brian Gaeke554831c2004-01-21 19:39:29 +000022088 LLVMCC1PLUS=$llvmcc1pluspath
Brian Gaeke2f50a042004-01-16 21:31:21 +000022089
Brian Gaekef3b24102003-11-16 18:38:14 +000022090fi
22091echo "$as_me:$LINENO: result: $LLVM_GCC_SANE" >&5
22092echo "${ECHO_T}$LLVM_GCC_SANE" >&6
22093if test "$LLVM_GCC_SANE" = "no"
22094then
22095 llvmgccwarn=yes
22096fi
22097
John Criswellc78022e2003-07-29 19:11:58 +000022098
John Criswell7a73b802003-06-30 21:59:07 +000022099# Check whether --with-bcrepos or --without-bcrepos was given.
22100if test "${with_bcrepos+set}" = set; then
22101 withval="$with_bcrepos"
22102 BCR=$withval
22103
22104else
22105 BCR=/home/vadve/lattner/LLVMPrograms
22106
22107fi;
22108
John Criswellc78022e2003-07-29 19:11:58 +000022109
John Criswell7a73b802003-06-30 21:59:07 +000022110# Check whether --with-papi or --without-papi was given.
22111if test "${with_papi+set}" = set; then
22112 withval="$with_papi"
22113 PAPIDIR=$withval
22114
22115else
John Criswellde00db22003-08-25 16:49:54 +000022116 PAPIDIR=/home/vadve/shared/Sparc/papi-2.3.4.1
John Criswell7a73b802003-06-30 21:59:07 +000022117
22118fi;
22119
Brian Gaeke554831c2004-01-21 19:39:29 +000022120echo "$as_me:$LINENO: checking for shared library suffix" >&5
22121echo $ECHO_N "checking for shared library suffix... $ECHO_C" >&6
22122eval "SHLIBEXT=$shrext"
22123echo "$as_me:$LINENO: result: $SHLIBEXT" >&5
22124echo "${ECHO_T}$SHLIBEXT" >&6
22125SHLIBEXT=$SHLIBEXT
22126
22127
22128cat >>confdefs.h <<_ACEOF
22129#define SHLIBEXT "$SHLIBEXT"
22130_ACEOF
22131
22132
Brian Gaeke6c3fd812004-02-23 22:07:00 +000022133 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 +000022134cat >confcache <<\_ACEOF
22135# This file is a shell script that caches the results of configure
22136# tests run on this system so they can be shared between configure
22137# scripts and configure runs, see configure's option --config-cache.
22138# It is not useful on other systems. If it contains results you don't
22139# want to keep, you may remove or edit it.
22140#
22141# config.status only pays attention to the cache file if you give it
22142# the --recheck option to rerun configure.
22143#
John Criswell0c38eaf2003-09-10 15:17:25 +000022144# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000022145# loading this file, other *unset* `ac_cv_foo' will be assigned the
22146# following values.
22147
22148_ACEOF
22149
22150# The following way of writing the cache mishandles newlines in values,
22151# but we know of no workaround that is simple, portable, and efficient.
22152# So, don't put newlines in cache variables' values.
22153# Ultrix sh set writes to stderr and can't be redirected directly,
22154# and sets the high bit in the cache file unless we assign to the vars.
22155{
22156 (set) 2>&1 |
22157 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22158 *ac_space=\ *)
22159 # `set' does not quote correctly, so add quotes (double-quote
22160 # substitution turns \\\\ into \\, and sed turns \\ into \).
22161 sed -n \
22162 "s/'/'\\\\''/g;
22163 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22164 ;;
22165 *)
22166 # `set' quotes correctly as required by POSIX, so do not add quotes.
22167 sed -n \
22168 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22169 ;;
22170 esac;
22171} |
22172 sed '
22173 t clear
22174 : clear
22175 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22176 t end
22177 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22178 : end' >>confcache
John Criswell0c38eaf2003-09-10 15:17:25 +000022179if diff $cache_file confcache >/dev/null 2>&1; then :; else
John Criswell7a73b802003-06-30 21:59:07 +000022180 if test -w $cache_file; then
22181 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22182 cat confcache >$cache_file
22183 else
22184 echo "not updating unwritable cache $cache_file"
22185 fi
22186fi
22187rm -f confcache
22188
22189test "x$prefix" = xNONE && prefix=$ac_default_prefix
22190# Let make expand exec_prefix.
22191test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22192
22193# VPATH may cause trouble with some makes, so we remove $(srcdir),
22194# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22195# trailing colons and then remove the whole line if VPATH becomes empty
22196# (actually we leave an empty line to preserve line numbers).
22197if test "x$srcdir" = x.; then
22198 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22199s/:*\$(srcdir):*/:/;
22200s/:*\${srcdir}:*/:/;
22201s/:*@srcdir@:*/:/;
22202s/^\([^=]*=[ ]*\):*/\1/;
22203s/:*$//;
22204s/^[^=]*=[ ]*$//;
22205}'
22206fi
22207
22208DEFS=-DHAVE_CONFIG_H
22209
John Criswell0c38eaf2003-09-10 15:17:25 +000022210ac_libobjs=
22211ac_ltlibobjs=
22212for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22213 # 1. Remove the extension, and $U if already installed.
22214 ac_i=`echo "$ac_i" |
22215 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22216 # 2. Add them.
22217 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22218 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22219done
22220LIBOBJS=$ac_libobjs
22221
22222LTLIBOBJS=$ac_ltlibobjs
22223
22224
John Criswell7a73b802003-06-30 21:59:07 +000022225
22226: ${CONFIG_STATUS=./config.status}
22227ac_clean_files_save=$ac_clean_files
22228ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22229{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22230echo "$as_me: creating $CONFIG_STATUS" >&6;}
22231cat >$CONFIG_STATUS <<_ACEOF
22232#! $SHELL
22233# Generated by $as_me.
22234# Run this file to recreate the current configuration.
22235# Compiler output produced by configure, useful for debugging
22236# configure, is in config.log if it exists.
22237
22238debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000022239ac_cs_recheck=false
22240ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000022241SHELL=\${CONFIG_SHELL-$SHELL}
22242_ACEOF
22243
22244cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022245## --------------------- ##
22246## M4sh Initialization. ##
22247## --------------------- ##
22248
22249# Be Bourne compatible
22250if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22251 emulate sh
22252 NULLCMD=:
John Criswell0c38eaf2003-09-10 15:17:25 +000022253 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22254 # is contrary to our usage. Disable this feature.
22255 alias -g '${1+"$@"}'='"$@"'
John Criswell7a73b802003-06-30 21:59:07 +000022256elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22257 set -o posix
22258fi
22259
John Criswell7a73b802003-06-30 21:59:07 +000022260# Support unset when possible.
22261if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
22262 as_unset=unset
22263else
22264 as_unset=false
22265fi
22266
John Criswell0c38eaf2003-09-10 15:17:25 +000022267
22268# Work around bugs in pre-3.0 UWIN ksh.
22269$as_unset ENV MAIL MAILPATH
22270PS1='$ '
22271PS2='> '
22272PS4='+ '
22273
22274# NLS nuisances.
22275for as_var in \
22276 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22277 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22278 LC_TELEPHONE LC_TIME
22279do
22280 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
22281 eval $as_var=C; export $as_var
22282 else
22283 $as_unset $as_var
22284 fi
22285done
22286
22287# Required to use basename.
22288if expr a : '\(a\)' >/dev/null 2>&1; then
22289 as_expr=expr
22290else
22291 as_expr=false
22292fi
22293
22294if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
22295 as_basename=basename
22296else
22297 as_basename=false
22298fi
John Criswell7a73b802003-06-30 21:59:07 +000022299
22300
22301# Name of the executable.
John Criswell0c38eaf2003-09-10 15:17:25 +000022302as_me=`$as_basename "$0" ||
John Criswell7a73b802003-06-30 21:59:07 +000022303$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22304 X"$0" : 'X\(//\)$' \| \
22305 X"$0" : 'X\(/\)$' \| \
22306 . : '\(.\)' 2>/dev/null ||
22307echo X/"$0" |
22308 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22309 /^X\/\(\/\/\)$/{ s//\1/; q; }
22310 /^X\/\(\/\).*/{ s//\1/; q; }
22311 s/.*/./; q'`
22312
John Criswell0c38eaf2003-09-10 15:17:25 +000022313
John Criswell7a73b802003-06-30 21:59:07 +000022314# PATH needs CR, and LINENO needs CR and PATH.
22315# Avoid depending upon Character Ranges.
22316as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22317as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22318as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22319as_cr_digits='0123456789'
22320as_cr_alnum=$as_cr_Letters$as_cr_digits
22321
22322# The user is always right.
22323if test "${PATH_SEPARATOR+set}" != set; then
John Criswell0c38eaf2003-09-10 15:17:25 +000022324 echo "#! /bin/sh" >conf$$.sh
22325 echo "exit 0" >>conf$$.sh
22326 chmod +x conf$$.sh
22327 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000022328 PATH_SEPARATOR=';'
22329 else
22330 PATH_SEPARATOR=:
22331 fi
John Criswell0c38eaf2003-09-10 15:17:25 +000022332 rm -f conf$$.sh
John Criswell7a73b802003-06-30 21:59:07 +000022333fi
22334
22335
22336 as_lineno_1=$LINENO
22337 as_lineno_2=$LINENO
22338 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22339 test "x$as_lineno_1" != "x$as_lineno_2" &&
22340 test "x$as_lineno_3" = "x$as_lineno_2" || {
22341 # Find who we are. Look in the path if we contain no path at all
22342 # relative or not.
22343 case $0 in
22344 *[\\/]* ) as_myself=$0 ;;
22345 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22346for as_dir in $PATH
22347do
22348 IFS=$as_save_IFS
22349 test -z "$as_dir" && as_dir=.
22350 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22351done
22352
22353 ;;
22354 esac
22355 # We did not find ourselves, most probably we were run as `sh COMMAND'
22356 # in which case we are not to be found in the path.
22357 if test "x$as_myself" = x; then
22358 as_myself=$0
22359 fi
22360 if test ! -f "$as_myself"; then
22361 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22362echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22363 { (exit 1); exit 1; }; }
22364 fi
22365 case $CONFIG_SHELL in
22366 '')
22367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22368for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
22369do
22370 IFS=$as_save_IFS
22371 test -z "$as_dir" && as_dir=.
22372 for as_base in sh bash ksh sh5; do
22373 case $as_dir in
22374 /*)
22375 if ("$as_dir/$as_base" -c '
22376 as_lineno_1=$LINENO
22377 as_lineno_2=$LINENO
22378 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22379 test "x$as_lineno_1" != "x$as_lineno_2" &&
22380 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
John Criswell0c38eaf2003-09-10 15:17:25 +000022381 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
22382 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
John Criswell7a73b802003-06-30 21:59:07 +000022383 CONFIG_SHELL=$as_dir/$as_base
22384 export CONFIG_SHELL
22385 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22386 fi;;
22387 esac
22388 done
22389done
22390;;
22391 esac
22392
22393 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22394 # uniformly replaced by the line number. The first 'sed' inserts a
22395 # line-number line before each line; the second 'sed' does the real
22396 # work. The second script uses 'N' to pair each line-number line
22397 # with the numbered line, and appends trailing '-' during
22398 # substitution so that $LINENO is not a special case at line end.
22399 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22400 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
22401 sed '=' <$as_myself |
22402 sed '
22403 N
22404 s,$,-,
22405 : loop
22406 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22407 t loop
22408 s,-$,,
22409 s,^['$as_cr_digits']*\n,,
22410 ' >$as_me.lineno &&
22411 chmod +x $as_me.lineno ||
22412 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22413echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22414 { (exit 1); exit 1; }; }
22415
22416 # Don't try to exec as it changes $[0], causing all sort of problems
22417 # (the dirname of $[0] is not the place where we might find the
22418 # original and so on. Autoconf is especially sensible to this).
22419 . ./$as_me.lineno
22420 # Exit status is that of the last command.
22421 exit
22422}
22423
22424
22425case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22426 *c*,-n*) ECHO_N= ECHO_C='
22427' ECHO_T=' ' ;;
22428 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
22429 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
22430esac
22431
22432if expr a : '\(a\)' >/dev/null 2>&1; then
22433 as_expr=expr
22434else
22435 as_expr=false
22436fi
22437
22438rm -f conf$$ conf$$.exe conf$$.file
22439echo >conf$$.file
22440if ln -s conf$$.file conf$$ 2>/dev/null; then
22441 # We could just check for DJGPP; but this test a) works b) is more generic
22442 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22443 if test -f conf$$.exe; then
22444 # Don't use ln at all; we don't have any links
22445 as_ln_s='cp -p'
22446 else
22447 as_ln_s='ln -s'
22448 fi
22449elif ln conf$$.file conf$$ 2>/dev/null; then
22450 as_ln_s=ln
22451else
22452 as_ln_s='cp -p'
22453fi
22454rm -f conf$$ conf$$.exe conf$$.file
22455
John Criswell0c38eaf2003-09-10 15:17:25 +000022456if mkdir -p . 2>/dev/null; then
22457 as_mkdir_p=:
22458else
22459 as_mkdir_p=false
22460fi
22461
John Criswell7a73b802003-06-30 21:59:07 +000022462as_executable_p="test -f"
22463
22464# Sed expression to map a string onto a valid CPP name.
22465as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
22466
22467# Sed expression to map a string onto a valid variable name.
22468as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
22469
22470
22471# IFS
22472# We need space, tab and new line, in precisely that order.
22473as_nl='
22474'
22475IFS=" $as_nl"
22476
22477# CDPATH.
John Criswell0c38eaf2003-09-10 15:17:25 +000022478$as_unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000022479
22480exec 6>&1
22481
22482# Open the log real soon, to keep \$[0] and so on meaningful, and to
22483# report actual input values of CONFIG_FILES etc. instead of their
22484# values after options handling. Logging --version etc. is OK.
22485exec 5>>config.log
22486{
22487 echo
22488 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22489## Running $as_me. ##
22490_ASBOX
22491} >&5
22492cat >&5 <<_CSEOF
22493
Chris Lattner95f45c52004-04-14 16:32:09 +000022494This file was extended by [LLVM] $as_me [1.3], which was
John Criswell0c38eaf2003-09-10 15:17:25 +000022495generated by GNU Autoconf 2.57. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000022496
22497 CONFIG_FILES = $CONFIG_FILES
22498 CONFIG_HEADERS = $CONFIG_HEADERS
22499 CONFIG_LINKS = $CONFIG_LINKS
22500 CONFIG_COMMANDS = $CONFIG_COMMANDS
22501 $ $0 $@
22502
22503_CSEOF
22504echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22505echo >&5
22506_ACEOF
22507
22508# Files that config.status was made for.
22509if test -n "$ac_config_files"; then
22510 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22511fi
22512
22513if test -n "$ac_config_headers"; then
22514 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22515fi
22516
22517if test -n "$ac_config_links"; then
22518 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
22519fi
22520
22521if test -n "$ac_config_commands"; then
22522 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22523fi
22524
22525cat >>$CONFIG_STATUS <<\_ACEOF
22526
22527ac_cs_usage="\
22528\`$as_me' instantiates files from templates according to the
22529current configuration.
22530
22531Usage: $0 [OPTIONS] [FILE]...
22532
22533 -h, --help print this help, then exit
22534 -V, --version print version number, then exit
John Criswell0c38eaf2003-09-10 15:17:25 +000022535 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000022536 -d, --debug don't remove temporary files
22537 --recheck update $as_me by reconfiguring in the same conditions
22538 --file=FILE[:TEMPLATE]
22539 instantiate the configuration file FILE
22540 --header=FILE[:TEMPLATE]
22541 instantiate the configuration header FILE
22542
22543Configuration files:
22544$config_files
22545
22546Configuration headers:
22547$config_headers
22548
John Criswellc764fbc2003-09-06 15:17:13 +000022549Configuration commands:
22550$config_commands
22551
John Criswell7a73b802003-06-30 21:59:07 +000022552Report bugs to <bug-autoconf@gnu.org>."
22553_ACEOF
22554
22555cat >>$CONFIG_STATUS <<_ACEOF
22556ac_cs_version="\\
Chris Lattner95f45c52004-04-14 16:32:09 +000022557[LLVM] config.status [1.3]
John Criswell0c38eaf2003-09-10 15:17:25 +000022558configured by $0, generated by GNU Autoconf 2.57,
John Criswell7a73b802003-06-30 21:59:07 +000022559 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22560
22561Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
22562Free Software Foundation, Inc.
22563This config.status script is free software; the Free Software Foundation
22564gives unlimited permission to copy, distribute and modify it."
22565srcdir=$srcdir
22566INSTALL="$INSTALL"
22567_ACEOF
22568
22569cat >>$CONFIG_STATUS <<\_ACEOF
22570# If no file are specified by the user, then we need to provide default
22571# value. By we need to know if files were specified by the user.
22572ac_need_defaults=:
22573while test $# != 0
22574do
22575 case $1 in
22576 --*=*)
22577 ac_option=`expr "x$1" : 'x\([^=]*\)='`
22578 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000022579 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000022580 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000022581 -*)
22582 ac_option=$1
22583 ac_optarg=$2
22584 ac_shift=shift
22585 ;;
John Criswell7a73b802003-06-30 21:59:07 +000022586 *) # This is not an option, so the user has probably given explicit
22587 # arguments.
John Criswell0c38eaf2003-09-10 15:17:25 +000022588 ac_option=$1
John Criswell7a73b802003-06-30 21:59:07 +000022589 ac_need_defaults=false;;
22590 esac
22591
John Criswell0c38eaf2003-09-10 15:17:25 +000022592 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000022593 # Handling of the options.
22594_ACEOF
John Criswelld9cd1442003-09-09 20:52:17 +000022595cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000022596 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22597 ac_cs_recheck=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000022598 --version | --vers* | -V )
22599 echo "$ac_cs_version"; exit 0 ;;
22600 --he | --h)
22601 # Conflict between --help and --header
22602 { { echo "$as_me:$LINENO: error: ambiguous option: $1
22603Try \`$0 --help' for more information." >&5
22604echo "$as_me: error: ambiguous option: $1
22605Try \`$0 --help' for more information." >&2;}
22606 { (exit 1); exit 1; }; };;
22607 --help | --hel | -h )
22608 echo "$ac_cs_usage"; exit 0 ;;
22609 --debug | --d* | -d )
22610 debug=: ;;
22611 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000022612 $ac_shift
22613 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000022614 ac_need_defaults=false;;
22615 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000022616 $ac_shift
22617 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000022618 ac_need_defaults=false;;
John Criswell0c38eaf2003-09-10 15:17:25 +000022619 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22620 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22621 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000022622
22623 # This is an error.
22624 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22625Try \`$0 --help' for more information." >&5
22626echo "$as_me: error: unrecognized option: $1
22627Try \`$0 --help' for more information." >&2;}
22628 { (exit 1); exit 1; }; } ;;
22629
22630 *) ac_config_targets="$ac_config_targets $1" ;;
22631
22632 esac
22633 shift
22634done
22635
John Criswell0c38eaf2003-09-10 15:17:25 +000022636ac_configure_extra_args=
22637
22638if $ac_cs_silent; then
22639 exec 6>/dev/null
22640 ac_configure_extra_args="$ac_configure_extra_args --silent"
22641fi
22642
22643_ACEOF
22644cat >>$CONFIG_STATUS <<_ACEOF
22645if \$ac_cs_recheck; then
22646 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22647 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22648fi
22649
John Criswell7a73b802003-06-30 21:59:07 +000022650_ACEOF
22651
John Criswellc764fbc2003-09-06 15:17:13 +000022652cat >>$CONFIG_STATUS <<_ACEOF
22653#
22654# INIT-COMMANDS section.
22655#
John Criswell7a73b802003-06-30 21:59:07 +000022656
John Criswellc764fbc2003-09-06 15:17:13 +000022657${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
22658${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common`
John Criswellc764fbc2003-09-06 15:17:13 +000022659${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000022660${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000022661${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile`
22662${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
John Criswellf424d742003-10-07 21:13:47 +000022663${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvm.py`
22664${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvmdb.py`
John Criswellc764fbc2003-09-06 15:17:13 +000022665${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile`
22666${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile.programs`
John Criswell8a54a1e2004-06-22 21:35:10 +000022667${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile.tests`
John Criswellc764fbc2003-09-06 15:17:13 +000022668${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.Makefile`
22669${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.report`
John Criswellc764fbc2003-09-06 15:17:13 +000022670${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.report`
22671${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.example.Makefile`
22672${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.Makefile`
22673${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.buildrepo.Makefile`
22674${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.Makefile`
22675${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.report`
22676${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.Makefile`
22677${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.report`
22678${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.typesafe.Makefile`
22679${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.gnuplot`
John Criswell878be7d2004-02-24 21:43:38 +000022680${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.vtl.Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000022681${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/Makefile`
22682${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile`
John Criswell613758d2003-09-11 18:03:50 +000022683${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile.spec`
Alkis Evlogimenos271143f2004-02-26 04:14:10 +000022684${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile.spec2000`
John Criswellcf2e9f72004-02-10 22:36:35 +000022685${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile.spec95`
John Criswellc764fbc2003-09-06 15:17:13 +000022686${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile`
22687${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile.multisrc`
Misha Brukman811ce9f2003-11-12 22:16:51 +000022688${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in`
22689${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile`
22690${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in`
22691${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile`
22692${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in`
22693${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile`
22694${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in`
22695${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile`
22696${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in`
22697${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile`
22698${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in`
22699${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile`
22700${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in`
John Criswellc764fbc2003-09-06 15:17:13 +000022701${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile`
22702${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile.singlesrc`
Alkis Evlogimenos271143f2004-02-26 04:14:10 +000022703${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000022704${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
Brian Gaekec45be042003-10-07 06:01:34 +000022705${srcdir}/autoconf/mkinstalldirs `dirname utils/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000022706${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000022707
22708_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022709
22710
22711
22712cat >>$CONFIG_STATUS <<\_ACEOF
22713for ac_config_target in $ac_config_targets
22714do
22715 case "$ac_config_target" in
22716 # Handling of arguments.
22717 "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Brian Gaeke6c3fd812004-02-23 22:07:00 +000022718 "include/Support/DataTypes.h" ) CONFIG_FILES="$CONFIG_FILES include/Support/DataTypes.h" ;;
22719 "include/Support/ThreadSupport.h" ) CONFIG_FILES="$CONFIG_FILES include/Support/ThreadSupport.h" ;;
Brian Gaeke793c5f22004-02-23 18:56:02 +000022720 "include/Support/hash_map" ) CONFIG_FILES="$CONFIG_FILES include/Support/hash_map" ;;
22721 "include/Support/hash_set" ) CONFIG_FILES="$CONFIG_FILES include/Support/hash_set" ;;
Brian Gaeke6c3fd812004-02-23 22:07:00 +000022722 "include/Support/iterator" ) CONFIG_FILES="$CONFIG_FILES include/Support/iterator" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000022723 "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
22724 "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000022725 "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000022726 "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000022727 "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
22728 "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
John Criswellf424d742003-10-07 21:13:47 +000022729 "test/QMTest/llvm.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvm.py" ;;
22730 "test/QMTest/llvmdb.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvmdb.py" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000022731 "test/Programs/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile" ;;
22732 "test/Programs/Makefile.programs" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile.programs" ;;
John Criswell8a54a1e2004-06-22 21:35:10 +000022733 "test/Programs/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile.tests" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000022734 "test/Programs/TEST.aa.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.Makefile" ;;
22735 "test/Programs/TEST.dsgraph.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.report" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000022736 "test/Programs/TEST.aa.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.report" ;;
22737 "test/Programs/TEST.example.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.example.Makefile" ;;
22738 "test/Programs/TEST.nightly.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.Makefile" ;;
22739 "test/Programs/TEST.buildrepo.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.buildrepo.Makefile" ;;
22740 "test/Programs/TEST.jit.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.Makefile" ;;
22741 "test/Programs/TEST.nightly.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.report" ;;
22742 "test/Programs/TEST.dsgraph.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.Makefile" ;;
22743 "test/Programs/TEST.jit.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.report" ;;
22744 "test/Programs/TEST.typesafe.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.typesafe.Makefile" ;;
22745 "test/Programs/TEST.dsgraph.gnuplot" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.gnuplot" ;;
John Criswell878be7d2004-02-24 21:43:38 +000022746 "test/Programs/TEST.vtl.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.vtl.Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000022747 "test/Programs/External/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/Makefile" ;;
22748 "test/Programs/External/SPEC/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile" ;;
John Criswell613758d2003-09-11 18:03:50 +000022749 "test/Programs/External/SPEC/Makefile.spec" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile.spec" ;;
Alkis Evlogimenos271143f2004-02-26 04:14:10 +000022750 "test/Programs/External/SPEC/Makefile.spec2000" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile.spec2000" ;;
John Criswellcf2e9f72004-02-10 22:36:35 +000022751 "test/Programs/External/SPEC/Makefile.spec95" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile.spec95" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000022752 "test/Programs/MultiSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile" ;;
22753 "test/Programs/MultiSource/Makefile.multisrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile.multisrc" ;;
Misha Brukman811ce9f2003-11-12 22:16:51 +000022754 "test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in" ;;
22755 "test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile" ;;
22756 "test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in" ;;
22757 "test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile" ;;
22758 "test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in" ;;
22759 "test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile" ;;
22760 "test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in" ;;
22761 "test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile" ;;
22762 "test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in" ;;
22763 "test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile" ;;
22764 "test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in" ;;
22765 "test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile" ;;
22766 "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 +000022767 "test/Programs/SingleSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile" ;;
22768 "test/Programs/SingleSource/Makefile.singlesrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile.singlesrc" ;;
Alkis Evlogimenos271143f2004-02-26 04:14:10 +000022769 "test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000022770 "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
Brian Gaekec45be042003-10-07 06:01:34 +000022771 "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000022772 "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
John Criswell7a73b802003-06-30 21:59:07 +000022773 "include/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/Config/config.h" ;;
22774 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22775echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22776 { (exit 1); exit 1; }; };;
22777 esac
22778done
22779
22780# If the user did not use the arguments to specify the items to instantiate,
22781# then the envvar interface is used. Set only those that are not.
22782# We use the long form for the default assignment because of an extremely
22783# bizarre bug on SunOS 4.1.3.
22784if $ac_need_defaults; then
22785 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22786 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000022787 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000022788fi
22789
John Criswell0c38eaf2003-09-10 15:17:25 +000022790# Have a temporary directory for convenience. Make it in the build tree
22791# simply because there is no reason to put it here, and in addition,
22792# creating and moving files from /tmp can sometimes cause problems.
John Criswell7a73b802003-06-30 21:59:07 +000022793# Create a temporary directory, and hook for its removal unless debugging.
22794$debug ||
22795{
22796 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22797 trap '{ (exit 1); exit 1; }' 1 2 13 15
22798}
22799
22800# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000022801
John Criswell7a73b802003-06-30 21:59:07 +000022802{
John Criswell0c38eaf2003-09-10 15:17:25 +000022803 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000022804 test -n "$tmp" && test -d "$tmp"
22805} ||
22806{
John Criswell0c38eaf2003-09-10 15:17:25 +000022807 tmp=./confstat$$-$RANDOM
John Criswell7a73b802003-06-30 21:59:07 +000022808 (umask 077 && mkdir $tmp)
22809} ||
22810{
John Criswell0c38eaf2003-09-10 15:17:25 +000022811 echo "$me: cannot create a temporary directory in ." >&2
John Criswell7a73b802003-06-30 21:59:07 +000022812 { (exit 1); exit 1; }
22813}
22814
22815_ACEOF
22816
22817cat >>$CONFIG_STATUS <<_ACEOF
22818
22819#
22820# CONFIG_FILES section.
22821#
22822
22823# No need to generate the scripts if there are no CONFIG_FILES.
22824# This happens for instance when ./config.status config.h
22825if test -n "\$CONFIG_FILES"; then
22826 # Protect against being on the right side of a sed subst in config.status.
22827 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22828 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22829s,@SHELL@,$SHELL,;t t
22830s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22831s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22832s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22833s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22834s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22835s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22836s,@exec_prefix@,$exec_prefix,;t t
22837s,@prefix@,$prefix,;t t
22838s,@program_transform_name@,$program_transform_name,;t t
22839s,@bindir@,$bindir,;t t
22840s,@sbindir@,$sbindir,;t t
22841s,@libexecdir@,$libexecdir,;t t
22842s,@datadir@,$datadir,;t t
22843s,@sysconfdir@,$sysconfdir,;t t
22844s,@sharedstatedir@,$sharedstatedir,;t t
22845s,@localstatedir@,$localstatedir,;t t
22846s,@libdir@,$libdir,;t t
22847s,@includedir@,$includedir,;t t
22848s,@oldincludedir@,$oldincludedir,;t t
22849s,@infodir@,$infodir,;t t
22850s,@mandir@,$mandir,;t t
22851s,@build_alias@,$build_alias,;t t
22852s,@host_alias@,$host_alias,;t t
22853s,@target_alias@,$target_alias,;t t
22854s,@DEFS@,$DEFS,;t t
22855s,@ECHO_C@,$ECHO_C,;t t
22856s,@ECHO_N@,$ECHO_N,;t t
22857s,@ECHO_T@,$ECHO_T,;t t
22858s,@LIBS@,$LIBS,;t t
John Criswell12399a12003-09-30 15:55:44 +000022859s,@subdirs@,$subdirs,;t t
John Criswell7a73b802003-06-30 21:59:07 +000022860s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22861s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22862s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22863s,@build@,$build,;t t
22864s,@build_cpu@,$build_cpu,;t t
22865s,@build_vendor@,$build_vendor,;t t
22866s,@build_os@,$build_os,;t t
22867s,@host@,$host,;t t
22868s,@host_cpu@,$host_cpu,;t t
22869s,@host_vendor@,$host_vendor,;t t
22870s,@host_os@,$host_os,;t t
22871s,@target@,$target,;t t
22872s,@target_cpu@,$target_cpu,;t t
22873s,@target_vendor@,$target_vendor,;t t
22874s,@target_os@,$target_os,;t t
22875s,@OS@,$OS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000022876s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
John Criswell76595452003-07-01 22:07:39 +000022877s,@ARCH@,$ARCH,;t t
John Criswell7a73b802003-06-30 21:59:07 +000022878s,@CXX@,$CXX,;t t
22879s,@CXXFLAGS@,$CXXFLAGS,;t t
22880s,@LDFLAGS@,$LDFLAGS,;t t
22881s,@CPPFLAGS@,$CPPFLAGS,;t t
22882s,@ac_ct_CXX@,$ac_ct_CXX,;t t
22883s,@EXEEXT@,$EXEEXT,;t t
22884s,@OBJEXT@,$OBJEXT,;t t
22885s,@CC@,$CC,;t t
22886s,@CFLAGS@,$CFLAGS,;t t
22887s,@ac_ct_CC@,$ac_ct_CC,;t t
22888s,@CPP@,$CPP,;t t
22889s,@ifGNUmake@,$ifGNUmake,;t t
22890s,@LEX@,$LEX,;t t
22891s,@LEXLIB@,$LEXLIB,;t t
22892s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
22893s,@YACC@,$YACC,;t t
Brian Gaeke12810632004-01-13 06:52:10 +000022894s,@BISON@,$BISON,;t t
John Criswell47fdd832003-07-14 16:52:07 +000022895s,@EGREP@,$EGREP,;t t
John Criswell7a73b802003-06-30 21:59:07 +000022896s,@LN_S@,$LN_S,;t t
22897s,@ECHO@,$ECHO,;t t
John Criswell47fdd832003-07-14 16:52:07 +000022898s,@AR@,$AR,;t t
22899s,@ac_ct_AR@,$ac_ct_AR,;t t
John Criswell7a73b802003-06-30 21:59:07 +000022900s,@RANLIB@,$RANLIB,;t t
22901s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22902s,@STRIP@,$STRIP,;t t
22903s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
John Criswell47fdd832003-07-14 16:52:07 +000022904s,@CXXCPP@,$CXXCPP,;t t
22905s,@F77@,$F77,;t t
22906s,@FFLAGS@,$FFLAGS,;t t
22907s,@ac_ct_F77@,$ac_ct_F77,;t t
John Criswell7a73b802003-06-30 21:59:07 +000022908s,@LIBTOOL@,$LIBTOOL,;t t
John Criswell7a73b802003-06-30 21:59:07 +000022909s,@DOT@,$DOT,;t t
22910s,@ETAGS@,$ETAGS,;t t
Brian Gaekeafa3fbf2004-01-22 21:55:02 +000022911s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
John Criswellde00db22003-08-25 16:49:54 +000022912s,@PYTHON@,$PYTHON,;t t
22913s,@QMTEST@,$QMTEST,;t t
Brian Gaekec9a410c2004-02-23 21:30:37 +000022914s,@HAVE_PTHREAD_MUTEX_LOCK@,$HAVE_PTHREAD_MUTEX_LOCK,;t t
Brian Gaeke6c3fd812004-02-23 22:07:00 +000022915s,@INCLUDE_SYS_TYPES_H@,$INCLUDE_SYS_TYPES_H,;t t
22916s,@INCLUDE_INTTYPES_H@,$INCLUDE_INTTYPES_H,;t t
John Criswell0021c312004-02-13 21:57:29 +000022917s,@ENDIAN@,$ENDIAN,;t t
Brian Gaeke793c5f22004-02-23 18:56:02 +000022918s,@HAVE_STD_EXT_HASH_MAP@,$HAVE_STD_EXT_HASH_MAP,;t t
22919s,@HAVE_GNU_EXT_HASH_MAP@,$HAVE_GNU_EXT_HASH_MAP,;t t
22920s,@HAVE_GLOBAL_HASH_MAP@,$HAVE_GLOBAL_HASH_MAP,;t t
22921s,@HAVE_STD_EXT_HASH_SET@,$HAVE_STD_EXT_HASH_SET,;t t
22922s,@HAVE_GNU_EXT_HASH_SET@,$HAVE_GNU_EXT_HASH_SET,;t t
22923s,@HAVE_GLOBAL_HASH_SET@,$HAVE_GLOBAL_HASH_SET,;t t
Brian Gaeke295d4b82004-02-23 18:16:06 +000022924s,@HAVE_STD_ITERATOR@,$HAVE_STD_ITERATOR,;t t
22925s,@HAVE_BI_ITERATOR@,$HAVE_BI_ITERATOR,;t t
22926s,@HAVE_FWD_ITERATOR@,$HAVE_FWD_ITERATOR,;t t
John Criswell7a73b802003-06-30 21:59:07 +000022927s,@ALLOCA@,$ALLOCA,;t t
John Criswell7a73b802003-06-30 21:59:07 +000022928s,@MMAP_FILE@,$MMAP_FILE,;t t
John Criswell7a73b802003-06-30 21:59:07 +000022929s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
John Criswellcf2e9f72004-02-10 22:36:35 +000022930s,@SPEC95_ROOT@,$SPEC95_ROOT,;t t
22931s,@USE_SPEC95@,$USE_SPEC95,;t t
Brian Gaekee773b862004-04-16 17:13:44 +000022932s,@SPEC2000_ROOT@,$SPEC2000_ROOT,;t t
22933s,@USE_SPEC2000@,$USE_SPEC2000,;t t
John Criswell0538d422004-02-20 22:30:22 +000022934s,@POVRAY_ROOT@,$POVRAY_ROOT,;t t
22935s,@USE_POVRAY@,$USE_POVRAY,;t t
John Criswell7a73b802003-06-30 21:59:07 +000022936s,@UPB@,$UPB,;t t
John Criswellf02dbf02003-07-22 20:07:49 +000022937s,@DISABLE_LLC_DIFFS@,$DISABLE_LLC_DIFFS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000022938s,@JIT@,$JIT,;t t
Brian Gaeke2f50a042004-01-16 21:31:21 +000022939s,@LLVMCC1@,$LLVMCC1,;t t
22940s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000022941s,@BCR@,$BCR,;t t
22942s,@PAPIDIR@,$PAPIDIR,;t t
Brian Gaeke554831c2004-01-21 19:39:29 +000022943s,@SHLIBEXT@,$SHLIBEXT,;t t
Brian Gaeke26be9c52004-01-13 06:43:16 +000022944s,@LIBOBJS@,$LIBOBJS,;t t
John Criswell0c38eaf2003-09-10 15:17:25 +000022945s,@LTLIBOBJS@,$LTLIBOBJS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000022946CEOF
22947
22948_ACEOF
22949
22950 cat >>$CONFIG_STATUS <<\_ACEOF
22951 # Split the substitutions into bite-sized pieces for seds with
22952 # small command number limits, like on Digital OSF/1 and HP-UX.
22953 ac_max_sed_lines=48
22954 ac_sed_frag=1 # Number of current file.
22955 ac_beg=1 # First line for current file.
22956 ac_end=$ac_max_sed_lines # Line after last line for current file.
22957 ac_more_lines=:
22958 ac_sed_cmds=
22959 while $ac_more_lines; do
22960 if test $ac_beg -gt 1; then
22961 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22962 else
22963 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22964 fi
22965 if test ! -s $tmp/subs.frag; then
22966 ac_more_lines=false
22967 else
22968 # The purpose of the label and of the branching condition is to
22969 # speed up the sed processing (if there are no `@' at all, there
22970 # is no need to browse any of the substitutions).
22971 # These are the two extra sed commands mentioned above.
22972 (echo ':t
22973 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22974 if test -z "$ac_sed_cmds"; then
22975 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22976 else
22977 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22978 fi
22979 ac_sed_frag=`expr $ac_sed_frag + 1`
22980 ac_beg=$ac_end
22981 ac_end=`expr $ac_end + $ac_max_sed_lines`
22982 fi
22983 done
22984 if test -z "$ac_sed_cmds"; then
22985 ac_sed_cmds=cat
22986 fi
22987fi # test -n "$CONFIG_FILES"
22988
22989_ACEOF
22990cat >>$CONFIG_STATUS <<\_ACEOF
22991for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22992 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22993 case $ac_file in
22994 - | *:- | *:-:* ) # input from stdin
22995 cat >$tmp/stdin
22996 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22997 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22998 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22999 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23000 * ) ac_file_in=$ac_file.in ;;
23001 esac
23002
23003 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23004 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23005$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23006 X"$ac_file" : 'X\(//\)[^/]' \| \
23007 X"$ac_file" : 'X\(//\)$' \| \
23008 X"$ac_file" : 'X\(/\)' \| \
23009 . : '\(.\)' 2>/dev/null ||
23010echo X"$ac_file" |
23011 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23012 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23013 /^X\(\/\/\)$/{ s//\1/; q; }
23014 /^X\(\/\).*/{ s//\1/; q; }
23015 s/.*/./; q'`
John Criswell0c38eaf2003-09-10 15:17:25 +000023016 { if $as_mkdir_p; then
23017 mkdir -p "$ac_dir"
23018 else
23019 as_dir="$ac_dir"
23020 as_dirs=
23021 while test ! -d "$as_dir"; do
23022 as_dirs="$as_dir $as_dirs"
23023 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23024$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23025 X"$as_dir" : 'X\(//\)[^/]' \| \
23026 X"$as_dir" : 'X\(//\)$' \| \
23027 X"$as_dir" : 'X\(/\)' \| \
23028 . : '\(.\)' 2>/dev/null ||
23029echo X"$as_dir" |
23030 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23031 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23032 /^X\(\/\/\)$/{ s//\1/; q; }
23033 /^X\(\/\).*/{ s//\1/; q; }
23034 s/.*/./; q'`
23035 done
23036 test ! -n "$as_dirs" || mkdir $as_dirs
23037 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23038echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23039 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000023040
23041 ac_builddir=.
23042
23043if test "$ac_dir" != .; then
23044 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23045 # A "../" for each directory in $ac_dir_suffix.
23046 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23047else
23048 ac_dir_suffix= ac_top_builddir=
23049fi
23050
23051case $srcdir in
23052 .) # No --srcdir option. We are building in place.
23053 ac_srcdir=.
23054 if test -z "$ac_top_builddir"; then
23055 ac_top_srcdir=.
23056 else
23057 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23058 fi ;;
23059 [\\/]* | ?:[\\/]* ) # Absolute path.
23060 ac_srcdir=$srcdir$ac_dir_suffix;
23061 ac_top_srcdir=$srcdir ;;
23062 *) # Relative path.
23063 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23064 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23065esac
23066# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
23067# absolute.
23068ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
John Criswell0c38eaf2003-09-10 15:17:25 +000023069ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
John Criswell7a73b802003-06-30 21:59:07 +000023070ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
23071ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
23072
23073
23074 case $INSTALL in
23075 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23076 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
23077 esac
23078
23079 if test x"$ac_file" != x-; then
23080 { echo "$as_me:$LINENO: creating $ac_file" >&5
23081echo "$as_me: creating $ac_file" >&6;}
23082 rm -f "$ac_file"
23083 fi
23084 # Let's still pretend it is `configure' which instantiates (i.e., don't
23085 # use $as_me), people would be surprised to read:
23086 # /* config.h. Generated by config.status. */
23087 if test x"$ac_file" = x-; then
23088 configure_input=
23089 else
23090 configure_input="$ac_file. "
23091 fi
23092 configure_input=$configure_input"Generated from `echo $ac_file_in |
23093 sed 's,.*/,,'` by configure."
23094
23095 # First look for the input files in the build tree, otherwise in the
23096 # src tree.
23097 ac_file_inputs=`IFS=:
23098 for f in $ac_file_in; do
23099 case $f in
23100 -) echo $tmp/stdin ;;
23101 [\\/$]*)
23102 # Absolute (can't be DOS-style, as IFS=:)
23103 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23104echo "$as_me: error: cannot find input file: $f" >&2;}
23105 { (exit 1); exit 1; }; }
23106 echo $f;;
23107 *) # Relative
23108 if test -f "$f"; then
23109 # Build tree
23110 echo $f
23111 elif test -f "$srcdir/$f"; then
23112 # Source tree
23113 echo $srcdir/$f
23114 else
23115 # /dev/null tree
23116 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23117echo "$as_me: error: cannot find input file: $f" >&2;}
23118 { (exit 1); exit 1; }; }
23119 fi;;
23120 esac
23121 done` || { (exit 1); exit 1; }
23122_ACEOF
23123cat >>$CONFIG_STATUS <<_ACEOF
23124 sed "$ac_vpsub
23125$extrasub
23126_ACEOF
23127cat >>$CONFIG_STATUS <<\_ACEOF
23128:t
23129/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23130s,@configure_input@,$configure_input,;t t
23131s,@srcdir@,$ac_srcdir,;t t
23132s,@abs_srcdir@,$ac_abs_srcdir,;t t
23133s,@top_srcdir@,$ac_top_srcdir,;t t
23134s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
23135s,@builddir@,$ac_builddir,;t t
23136s,@abs_builddir@,$ac_abs_builddir,;t t
23137s,@top_builddir@,$ac_top_builddir,;t t
23138s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
23139s,@INSTALL@,$ac_INSTALL,;t t
23140" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23141 rm -f $tmp/stdin
23142 if test x"$ac_file" != x-; then
23143 mv $tmp/out $ac_file
23144 else
23145 cat $tmp/out
23146 rm -f $tmp/out
23147 fi
23148
23149done
23150_ACEOF
23151cat >>$CONFIG_STATUS <<\_ACEOF
23152
23153#
23154# CONFIG_HEADER section.
23155#
23156
23157# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
23158# NAME is the cpp macro being defined and VALUE is the value it is being given.
23159#
23160# ac_d sets the value in "#define NAME VALUE" lines.
23161ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
23162ac_dB='[ ].*$,\1#\2'
23163ac_dC=' '
23164ac_dD=',;t'
23165# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23166ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23167ac_uB='$,\1#\2define\3'
23168ac_uC=' '
23169ac_uD=',;t'
23170
23171for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
23172 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23173 case $ac_file in
23174 - | *:- | *:-:* ) # input from stdin
23175 cat >$tmp/stdin
23176 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23177 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23178 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23179 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23180 * ) ac_file_in=$ac_file.in ;;
23181 esac
23182
23183 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
23184echo "$as_me: creating $ac_file" >&6;}
23185
23186 # First look for the input files in the build tree, otherwise in the
23187 # src tree.
23188 ac_file_inputs=`IFS=:
23189 for f in $ac_file_in; do
23190 case $f in
23191 -) echo $tmp/stdin ;;
23192 [\\/$]*)
23193 # Absolute (can't be DOS-style, as IFS=:)
23194 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23195echo "$as_me: error: cannot find input file: $f" >&2;}
23196 { (exit 1); exit 1; }; }
23197 echo $f;;
23198 *) # Relative
23199 if test -f "$f"; then
23200 # Build tree
23201 echo $f
23202 elif test -f "$srcdir/$f"; then
23203 # Source tree
23204 echo $srcdir/$f
23205 else
23206 # /dev/null tree
23207 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23208echo "$as_me: error: cannot find input file: $f" >&2;}
23209 { (exit 1); exit 1; }; }
23210 fi;;
23211 esac
23212 done` || { (exit 1); exit 1; }
23213 # Remove the trailing spaces.
23214 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
23215
23216_ACEOF
23217
23218# Transform confdefs.h into two sed scripts, `conftest.defines' and
23219# `conftest.undefs', that substitutes the proper values into
23220# config.h.in to produce config.h. The first handles `#define'
23221# templates, and the second `#undef' templates.
23222# And first: Protect against being on the right side of a sed subst in
23223# config.status. Protect against being in an unquoted here document
23224# in config.status.
23225rm -f conftest.defines conftest.undefs
23226# Using a here document instead of a string reduces the quoting nightmare.
23227# Putting comments in sed scripts is not portable.
23228#
23229# `end' is used to avoid that the second main sed command (meant for
23230# 0-ary CPP macros) applies to n-ary macro definitions.
23231# See the Autoconf documentation for `clear'.
23232cat >confdef2sed.sed <<\_ACEOF
23233s/[\\&,]/\\&/g
23234s,[\\$`],\\&,g
23235t clear
23236: clear
23237s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
23238t end
23239s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
23240: end
23241_ACEOF
23242# If some macros were called several times there might be several times
23243# the same #defines, which is useless. Nevertheless, we may not want to
23244# sort them, since we want the *last* AC-DEFINE to be honored.
23245uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
23246sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
23247rm -f confdef2sed.sed
23248
23249# This sed command replaces #undef with comments. This is necessary, for
23250# example, in the case of _POSIX_SOURCE, which is predefined and required
23251# on some systems where configure will not decide to define it.
23252cat >>conftest.undefs <<\_ACEOF
23253s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
23254_ACEOF
23255
23256# Break up conftest.defines because some shells have a limit on the size
23257# of here documents, and old seds have small limits too (100 cmds).
23258echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
John Criswell0c38eaf2003-09-10 15:17:25 +000023259echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000023260echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
23261echo ' :' >>$CONFIG_STATUS
23262rm -f conftest.tail
23263while grep . conftest.defines >/dev/null
23264do
23265 # Write a limited-size here document to $tmp/defines.sed.
23266 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
23267 # Speed up: don't consider the non `#define' lines.
23268 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
23269 # Work around the forget-to-reset-the-flag bug.
23270 echo 't clr' >>$CONFIG_STATUS
23271 echo ': clr' >>$CONFIG_STATUS
23272 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
23273 echo 'CEOF
23274 sed -f $tmp/defines.sed $tmp/in >$tmp/out
23275 rm -f $tmp/in
23276 mv $tmp/out $tmp/in
23277' >>$CONFIG_STATUS
23278 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
23279 rm -f conftest.defines
23280 mv conftest.tail conftest.defines
23281done
23282rm -f conftest.defines
John Criswell0c38eaf2003-09-10 15:17:25 +000023283echo ' fi # grep' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000023284echo >>$CONFIG_STATUS
23285
23286# Break up conftest.undefs because some shells have a limit on the size
23287# of here documents, and old seds have small limits too (100 cmds).
23288echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
23289rm -f conftest.tail
23290while grep . conftest.undefs >/dev/null
23291do
23292 # Write a limited-size here document to $tmp/undefs.sed.
23293 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
23294 # Speed up: don't consider the non `#undef'
23295 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
23296 # Work around the forget-to-reset-the-flag bug.
23297 echo 't clr' >>$CONFIG_STATUS
23298 echo ': clr' >>$CONFIG_STATUS
23299 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
23300 echo 'CEOF
23301 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
23302 rm -f $tmp/in
23303 mv $tmp/out $tmp/in
23304' >>$CONFIG_STATUS
23305 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
23306 rm -f conftest.undefs
23307 mv conftest.tail conftest.undefs
23308done
23309rm -f conftest.undefs
23310
23311cat >>$CONFIG_STATUS <<\_ACEOF
23312 # Let's still pretend it is `configure' which instantiates (i.e., don't
23313 # use $as_me), people would be surprised to read:
23314 # /* config.h. Generated by config.status. */
23315 if test x"$ac_file" = x-; then
23316 echo "/* Generated by configure. */" >$tmp/config.h
23317 else
23318 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
23319 fi
23320 cat $tmp/in >>$tmp/config.h
23321 rm -f $tmp/in
23322 if test x"$ac_file" != x-; then
John Criswell0c38eaf2003-09-10 15:17:25 +000023323 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000023324 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23325echo "$as_me: $ac_file is unchanged" >&6;}
23326 else
23327 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23328$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23329 X"$ac_file" : 'X\(//\)[^/]' \| \
23330 X"$ac_file" : 'X\(//\)$' \| \
23331 X"$ac_file" : 'X\(/\)' \| \
23332 . : '\(.\)' 2>/dev/null ||
23333echo X"$ac_file" |
23334 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23335 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23336 /^X\(\/\/\)$/{ s//\1/; q; }
23337 /^X\(\/\).*/{ s//\1/; q; }
23338 s/.*/./; q'`
John Criswell0c38eaf2003-09-10 15:17:25 +000023339 { if $as_mkdir_p; then
23340 mkdir -p "$ac_dir"
23341 else
23342 as_dir="$ac_dir"
23343 as_dirs=
23344 while test ! -d "$as_dir"; do
23345 as_dirs="$as_dir $as_dirs"
23346 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23347$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23348 X"$as_dir" : 'X\(//\)[^/]' \| \
23349 X"$as_dir" : 'X\(//\)$' \| \
23350 X"$as_dir" : 'X\(/\)' \| \
23351 . : '\(.\)' 2>/dev/null ||
23352echo X"$as_dir" |
23353 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23354 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23355 /^X\(\/\/\)$/{ s//\1/; q; }
23356 /^X\(\/\).*/{ s//\1/; q; }
23357 s/.*/./; q'`
23358 done
23359 test ! -n "$as_dirs" || mkdir $as_dirs
23360 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23361echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23362 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000023363
23364 rm -f $ac_file
23365 mv $tmp/config.h $ac_file
23366 fi
23367 else
23368 cat $tmp/config.h
23369 rm -f $tmp/config.h
23370 fi
23371done
23372_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000023373cat >>$CONFIG_STATUS <<\_ACEOF
23374
23375#
23376# CONFIG_COMMANDS section.
23377#
23378for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
23379 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
23380 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
23381 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
23382$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23383 X"$ac_dest" : 'X\(//\)[^/]' \| \
23384 X"$ac_dest" : 'X\(//\)$' \| \
23385 X"$ac_dest" : 'X\(/\)' \| \
23386 . : '\(.\)' 2>/dev/null ||
23387echo X"$ac_dest" |
23388 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23389 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23390 /^X\(\/\/\)$/{ s//\1/; q; }
23391 /^X\(\/\).*/{ s//\1/; q; }
23392 s/.*/./; q'`
23393 ac_builddir=.
23394
23395if test "$ac_dir" != .; then
23396 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23397 # A "../" for each directory in $ac_dir_suffix.
23398 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23399else
23400 ac_dir_suffix= ac_top_builddir=
23401fi
23402
23403case $srcdir in
23404 .) # No --srcdir option. We are building in place.
23405 ac_srcdir=.
23406 if test -z "$ac_top_builddir"; then
23407 ac_top_srcdir=.
23408 else
23409 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23410 fi ;;
23411 [\\/]* | ?:[\\/]* ) # Absolute path.
23412 ac_srcdir=$srcdir$ac_dir_suffix;
23413 ac_top_srcdir=$srcdir ;;
23414 *) # Relative path.
23415 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23416 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23417esac
23418# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
23419# absolute.
23420ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
John Criswell0c38eaf2003-09-10 15:17:25 +000023421ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
John Criswellc764fbc2003-09-06 15:17:13 +000023422ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
23423ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
23424
23425
23426 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
23427echo "$as_me: executing $ac_dest commands" >&6;}
23428 case $ac_dest in
23429 Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
23430 Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023431 lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023432 runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023433 test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
23434 test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
John Criswellf424d742003-10-07 21:13:47 +000023435 test/QMTest/llvm.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvm.py test/QMTest/llvm.py ;;
23436 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 +000023437 test/Programs/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile test/Programs/Makefile ;;
23438 test/Programs/Makefile.programs ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile.programs test/Programs/Makefile.programs ;;
John Criswell8a54a1e2004-06-22 21:35:10 +000023439 test/Programs/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile.tests test/Programs/Makefile.tests ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023440 test/Programs/TEST.aa.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.Makefile test/Programs/TEST.aa.Makefile ;;
23441 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 +000023442 test/Programs/TEST.aa.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.report test/Programs/TEST.aa.report ;;
23443 test/Programs/TEST.example.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.example.Makefile test/Programs/TEST.example.Makefile ;;
23444 test/Programs/TEST.nightly.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.Makefile test/Programs/TEST.nightly.Makefile ;;
23445 test/Programs/TEST.buildrepo.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.buildrepo.Makefile test/Programs/TEST.buildrepo.Makefile ;;
23446 test/Programs/TEST.jit.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.Makefile test/Programs/TEST.jit.Makefile ;;
23447 test/Programs/TEST.nightly.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.report test/Programs/TEST.nightly.report ;;
23448 test/Programs/TEST.dsgraph.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.Makefile test/Programs/TEST.dsgraph.Makefile ;;
23449 test/Programs/TEST.jit.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.report test/Programs/TEST.jit.report ;;
23450 test/Programs/TEST.typesafe.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.typesafe.Makefile test/Programs/TEST.typesafe.Makefile ;;
23451 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 +000023452 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 +000023453 test/Programs/External/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/Makefile test/Programs/External/Makefile ;;
23454 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 +000023455 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 +000023456 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 +000023457 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 +000023458 test/Programs/MultiSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile test/Programs/MultiSource/Makefile ;;
23459 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 +000023460 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 ;;
23461 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 ;;
23462 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 ;;
23463 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 ;;
23464 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 ;;
23465 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 ;;
23466 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 ;;
23467 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 ;;
23468 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 ;;
23469 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 ;;
23470 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 ;;
23471 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 ;;
23472 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 +000023473 test/Programs/SingleSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile test/Programs/SingleSource/Makefile ;;
23474 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 +000023475 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 +000023476 tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
Brian Gaekec45be042003-10-07 06:01:34 +000023477 utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023478 projects/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023479 esac
23480done
23481_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000023482
23483cat >>$CONFIG_STATUS <<\_ACEOF
23484
23485{ (exit 0); exit 0; }
23486_ACEOF
23487chmod +x $CONFIG_STATUS
23488ac_clean_files=$ac_clean_files_save
23489
23490
23491# configure is writing to config.log, and then calls config.status.
23492# config.status does its own redirection, appending to config.log.
23493# Unfortunately, on DOS this fails, as config.log is still kept open
23494# by configure, so config.status won't be able to write to it; its
23495# output is simply discarded. So we exec the FD to /dev/null,
23496# effectively closing config.log, so it can be properly (re)opened and
23497# appended to by config.status. When coming back to configure, we
23498# need to make the FD available again.
23499if test "$no_create" != yes; then
23500 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000023501 ac_config_status_args=
23502 test "$silent" = yes &&
23503 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000023504 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000023505 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000023506 exec 5>>config.log
23507 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23508 # would make configure fail if this is the last instruction.
23509 $ac_cs_success || { (exit 1); exit 1; }
23510fi
23511
John Criswell12399a12003-09-30 15:55:44 +000023512#
23513# CONFIG_SUBDIRS section.
23514#
23515if test "$no_recursion" != yes; then
23516
23517 # Remove --cache-file and --srcdir arguments so they do not pile up.
23518 ac_sub_configure_args=
23519 ac_prev=
23520 for ac_arg in $ac_configure_args; do
23521 if test -n "$ac_prev"; then
23522 ac_prev=
23523 continue
23524 fi
23525 case $ac_arg in
23526 -cache-file | --cache-file | --cache-fil | --cache-fi \
23527 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
23528 ac_prev=cache_file ;;
23529 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
23530 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
23531 | --c=*)
23532 ;;
23533 --config-cache | -C)
23534 ;;
23535 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
23536 ac_prev=srcdir ;;
23537 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
23538 ;;
23539 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
23540 ac_prev=prefix ;;
23541 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
23542 ;;
23543 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
23544 esac
23545 done
23546
23547 # Always prepend --prefix to ensure using the same prefix
23548 # in subdir configurations.
23549 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
23550
23551 ac_popdir=`pwd`
23552 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
23553
23554 # Do not complain, so a configure script can configure whichever
23555 # parts of a large source tree are present.
23556 test -d $srcdir/$ac_dir || continue
23557
23558 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
23559echo "$as_me: configuring in $ac_dir" >&6;}
23560 { if $as_mkdir_p; then
23561 mkdir -p "$ac_dir"
23562 else
23563 as_dir="$ac_dir"
23564 as_dirs=
23565 while test ! -d "$as_dir"; do
23566 as_dirs="$as_dir $as_dirs"
23567 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23568$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23569 X"$as_dir" : 'X\(//\)[^/]' \| \
23570 X"$as_dir" : 'X\(//\)$' \| \
23571 X"$as_dir" : 'X\(/\)' \| \
23572 . : '\(.\)' 2>/dev/null ||
23573echo X"$as_dir" |
23574 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23575 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23576 /^X\(\/\/\)$/{ s//\1/; q; }
23577 /^X\(\/\).*/{ s//\1/; q; }
23578 s/.*/./; q'`
23579 done
23580 test ! -n "$as_dirs" || mkdir $as_dirs
23581 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23582echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23583 { (exit 1); exit 1; }; }; }
23584
23585 ac_builddir=.
23586
23587if test "$ac_dir" != .; then
23588 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23589 # A "../" for each directory in $ac_dir_suffix.
23590 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23591else
23592 ac_dir_suffix= ac_top_builddir=
23593fi
23594
23595case $srcdir in
23596 .) # No --srcdir option. We are building in place.
23597 ac_srcdir=.
23598 if test -z "$ac_top_builddir"; then
23599 ac_top_srcdir=.
23600 else
23601 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23602 fi ;;
23603 [\\/]* | ?:[\\/]* ) # Absolute path.
23604 ac_srcdir=$srcdir$ac_dir_suffix;
23605 ac_top_srcdir=$srcdir ;;
23606 *) # Relative path.
23607 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23608 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23609esac
23610# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
23611# absolute.
23612ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
23613ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
23614ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
23615ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
23616
23617
23618 cd $ac_dir
23619
23620 # Check for guested configure; otherwise get Cygnus style configure.
23621 if test -f $ac_srcdir/configure.gnu; then
23622 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
23623 elif test -f $ac_srcdir/configure; then
23624 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
23625 elif test -f $ac_srcdir/configure.in; then
23626 ac_sub_configure=$ac_configure
23627 else
23628 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
23629echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
23630 ac_sub_configure=
23631 fi
23632
23633 # The recursion is here.
23634 if test -n "$ac_sub_configure"; then
23635 # Make the cache file name correct relative to the subdirectory.
23636 case $cache_file in
23637 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
23638 *) # Relative path.
23639 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
23640 esac
23641
23642 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
23643echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
23644 # The eval makes quoting arguments work.
23645 eval $ac_sub_configure $ac_sub_configure_args \
23646 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
23647 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
23648echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
23649 { (exit 1); exit 1; }; }
23650 fi
23651
23652 cd $ac_popdir
23653 done
23654fi
23655
Brian Gaekef3b24102003-11-16 18:38:14 +000023656
23657if test $llvmgccwarn = yes
23658then
23659 { echo "$as_me:$LINENO: WARNING: ***** llvm C/C++ front end was not found, or does not" >&5
23660echo "$as_me: WARNING: ***** llvm C/C++ front end was not found, or does not" >&2;}
23661 { echo "$as_me:$LINENO: WARNING: ***** appear to be working." >&5
23662echo "$as_me: WARNING: ***** appear to be working." >&2;}
23663 { echo "$as_me:$LINENO: WARNING: ***** " >&5
23664echo "$as_me: WARNING: ***** " >&2;}
23665 { echo "$as_me:$LINENO: WARNING: ***** Please check configure's --with-llvmgccdir option." >&5
23666echo "$as_me: WARNING: ***** Please check configure's --with-llvmgccdir option." >&2;}
23667 { echo "$as_me:$LINENO: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&5
23668echo "$as_me: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&2;}
23669 { echo "$as_me:$LINENO: WARNING: ***** but you should be able to build the llvm tools." >&5
23670echo "$as_me: WARNING: ***** but you should be able to build the llvm tools." >&2;}
23671fi
Brian Gaeke554831c2004-01-21 19:39:29 +000023672