blob: 35a5d7a156f158faaaef79c8efea5833bcd82e32 [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""
John Criswell7ed43ad2004-07-19 16:12:29 +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 INCLUDE_STDINT_H ENDIAN HAVE_STD_EXT_HASH_MAP HAVE_GNU_EXT_HASH_MAP HAVE_GLOBAL_HASH_MAP HAVE_STD_EXT_HASH_SET HAVE_GNU_EXT_HASH_SET HAVE_GLOBAL_HASH_SET HAVE_STD_ITERATOR HAVE_BI_ITERATOR HAVE_FWD_ITERATOR ALLOCA MMAP_FILE ENABLE_OPTIMIZED SPEC95_ROOT USE_SPEC95 SPEC2000_ROOT USE_SPEC2000 POVRAY_ROOT USE_POVRAY UPB DISABLE_LLC_DIFFS JIT LLVMCC1 LLVMCC1PLUS BCR PAPIDIR SHLIBEXT 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 Criswelldc76e322004-07-23 15:40:57 +00001538
1539 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"
1540
1541
John Criswell0c38eaf2003-09-10 15:17:25 +00001542 ac_config_commands="$ac_config_commands Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001543
1544
John Criswell0c38eaf2003-09-10 15:17:25 +00001545 ac_config_commands="$ac_config_commands Makefile.common"
John Criswellc764fbc2003-09-06 15:17:13 +00001546
1547
John Criswell0c38eaf2003-09-10 15:17:25 +00001548 ac_config_commands="$ac_config_commands lib/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001549
1550
John Criswell0c38eaf2003-09-10 15:17:25 +00001551 ac_config_commands="$ac_config_commands runtime/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001552
1553
John Criswell0c38eaf2003-09-10 15:17:25 +00001554 ac_config_commands="$ac_config_commands test/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001555
1556
John Criswell0c38eaf2003-09-10 15:17:25 +00001557 ac_config_commands="$ac_config_commands test/Makefile.tests"
John Criswellc764fbc2003-09-06 15:17:13 +00001558
1559
John Criswellf424d742003-10-07 21:13:47 +00001560 ac_config_commands="$ac_config_commands test/QMTest/llvm.py"
1561
1562
1563 ac_config_commands="$ac_config_commands test/QMTest/llvmdb.py"
John Criswell08acb9b2003-09-16 02:12:45 +00001564
1565
John Criswell0c38eaf2003-09-10 15:17:25 +00001566 ac_config_commands="$ac_config_commands test/Programs/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001567
1568
John Criswell0c38eaf2003-09-10 15:17:25 +00001569 ac_config_commands="$ac_config_commands test/Programs/Makefile.programs"
John Criswellc764fbc2003-09-06 15:17:13 +00001570
1571
John Criswell8a54a1e2004-06-22 21:35:10 +00001572 ac_config_commands="$ac_config_commands test/Programs/Makefile.tests"
1573
1574
John Criswell0c38eaf2003-09-10 15:17:25 +00001575 ac_config_commands="$ac_config_commands test/Programs/TEST.aa.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001576
1577
John Criswell0c38eaf2003-09-10 15:17:25 +00001578 ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.report"
John Criswellc764fbc2003-09-06 15:17:13 +00001579
1580
John Criswell0c38eaf2003-09-10 15:17:25 +00001581 ac_config_commands="$ac_config_commands test/Programs/TEST.aa.report"
John Criswellc764fbc2003-09-06 15:17:13 +00001582
1583
John Criswell0c38eaf2003-09-10 15:17:25 +00001584 ac_config_commands="$ac_config_commands test/Programs/TEST.example.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001585
1586
John Criswell0c38eaf2003-09-10 15:17:25 +00001587 ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001588
1589
John Criswell0c38eaf2003-09-10 15:17:25 +00001590 ac_config_commands="$ac_config_commands test/Programs/TEST.buildrepo.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001591
1592
John Criswell0c38eaf2003-09-10 15:17:25 +00001593 ac_config_commands="$ac_config_commands test/Programs/TEST.jit.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001594
1595
John Criswell0c38eaf2003-09-10 15:17:25 +00001596 ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.report"
John Criswellc764fbc2003-09-06 15:17:13 +00001597
1598
John Criswell0c38eaf2003-09-10 15:17:25 +00001599 ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001600
1601
John Criswell0c38eaf2003-09-10 15:17:25 +00001602 ac_config_commands="$ac_config_commands test/Programs/TEST.jit.report"
John Criswellc764fbc2003-09-06 15:17:13 +00001603
1604
John Criswell0c38eaf2003-09-10 15:17:25 +00001605 ac_config_commands="$ac_config_commands test/Programs/TEST.typesafe.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001606
1607
John Criswell0c38eaf2003-09-10 15:17:25 +00001608 ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.gnuplot"
John Criswellc764fbc2003-09-06 15:17:13 +00001609
1610
John Criswell878be7d2004-02-24 21:43:38 +00001611 ac_config_commands="$ac_config_commands test/Programs/TEST.vtl.Makefile"
1612
1613
John Criswell0c38eaf2003-09-10 15:17:25 +00001614 ac_config_commands="$ac_config_commands test/Programs/External/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001615
1616
John Criswell0c38eaf2003-09-10 15:17:25 +00001617 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001618
1619
John Criswell613758d2003-09-11 18:03:50 +00001620 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile.spec"
1621
1622
Alkis Evlogimenos271143f2004-02-26 04:14:10 +00001623 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile.spec2000"
1624
1625
John Criswellcf2e9f72004-02-10 22:36:35 +00001626 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile.spec95"
1627
1628
John Criswell0c38eaf2003-09-10 15:17:25 +00001629 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001630
1631
John Criswell0c38eaf2003-09-10 15:17:25 +00001632 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile.multisrc"
John Criswellc764fbc2003-09-06 15:17:13 +00001633
1634
Misha Brukman811ce9f2003-11-12 22:16:51 +00001635 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in"
1636
1637
1638 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile"
1639
1640
1641 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in"
1642
1643
1644 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile"
1645
1646
1647 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in"
1648
1649
1650 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile"
1651
1652
1653 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in"
1654
1655
1656 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile"
1657
1658
1659 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in"
1660
1661
1662 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile"
1663
1664
1665 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in"
1666
1667
1668 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile"
1669
1670
1671 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in"
1672
1673
John Criswell0c38eaf2003-09-10 15:17:25 +00001674 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001675
1676
John Criswell0c38eaf2003-09-10 15:17:25 +00001677 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile.singlesrc"
John Criswellc764fbc2003-09-06 15:17:13 +00001678
1679
Alkis Evlogimenos271143f2004-02-26 04:14:10 +00001680 ac_config_commands="$ac_config_commands test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile"
1681
1682
John Criswell0c38eaf2003-09-10 15:17:25 +00001683 ac_config_commands="$ac_config_commands tools/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001684
1685
Brian Gaekec45be042003-10-07 06:01:34 +00001686 ac_config_commands="$ac_config_commands utils/Makefile"
1687
1688
John Criswell0c38eaf2003-09-10 15:17:25 +00001689 ac_config_commands="$ac_config_commands projects/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001690
1691
John Criswell392aaa32003-07-22 19:18:09 +00001692
John Criswell7a73b802003-06-30 21:59:07 +00001693# Find a good install program. We prefer a C program (faster),
1694# so one script is as good as another. But avoid the broken or
1695# incompatible versions:
1696# SysV /etc/install, /usr/sbin/install
1697# SunOS /usr/etc/install
1698# IRIX /sbin/install
1699# AIX /bin/install
1700# AmigaOS /C/install, which installs bootblocks on floppy discs
1701# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1702# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1703# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1704# ./install, which can be erroneously created by make from ./install.sh.
1705echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1706echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1707if test -z "$INSTALL"; then
1708if test "${ac_cv_path_install+set}" = set; then
1709 echo $ECHO_N "(cached) $ECHO_C" >&6
1710else
1711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1712for as_dir in $PATH
1713do
1714 IFS=$as_save_IFS
1715 test -z "$as_dir" && as_dir=.
1716 # Account for people who put trailing slashes in PATH elements.
1717case $as_dir/ in
1718 ./ | .// | /cC/* | \
1719 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1720 /usr/ucb/* ) ;;
1721 *)
1722 # OSF1 and SCO ODT 3.0 have their own names for install.
1723 # Don't use installbsd from OSF since it installs stuff as root
1724 # by default.
1725 for ac_prog in ginstall scoinst install; do
1726 for ac_exec_ext in '' $ac_executable_extensions; do
1727 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1728 if test $ac_prog = install &&
1729 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1730 # AIX install. It has an incompatible calling convention.
1731 :
1732 elif test $ac_prog = install &&
1733 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1734 # program-specific install script used by HP pwplus--don't use.
1735 :
1736 else
1737 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1738 break 3
1739 fi
1740 fi
1741 done
1742 done
1743 ;;
1744esac
1745done
1746
1747
1748fi
1749 if test "${ac_cv_path_install+set}" = set; then
1750 INSTALL=$ac_cv_path_install
1751 else
1752 # As a last resort, use the slow shell script. We don't cache a
1753 # path for INSTALL within a source directory, because that will
1754 # break other packages using the cache if that directory is
1755 # removed, or if the path is relative.
1756 INSTALL=$ac_install_sh
1757 fi
1758fi
1759echo "$as_me:$LINENO: result: $INSTALL" >&5
1760echo "${ECHO_T}$INSTALL" >&6
1761
1762# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1763# It thinks the first close brace ends the variable substitution.
1764test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1765
1766test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1767
1768test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1769
1770
1771# Make sure we can run config.sub.
1772$ac_config_sub sun4 >/dev/null 2>&1 ||
1773 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1774echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1775 { (exit 1); exit 1; }; }
1776
1777echo "$as_me:$LINENO: checking build system type" >&5
1778echo $ECHO_N "checking build system type... $ECHO_C" >&6
1779if test "${ac_cv_build+set}" = set; then
1780 echo $ECHO_N "(cached) $ECHO_C" >&6
1781else
1782 ac_cv_build_alias=$build_alias
1783test -z "$ac_cv_build_alias" &&
1784 ac_cv_build_alias=`$ac_config_guess`
1785test -z "$ac_cv_build_alias" &&
1786 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1787echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1788 { (exit 1); exit 1; }; }
1789ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1790 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1791echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1792 { (exit 1); exit 1; }; }
1793
1794fi
1795echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1796echo "${ECHO_T}$ac_cv_build" >&6
1797build=$ac_cv_build
1798build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1799build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1800build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1801
1802
1803echo "$as_me:$LINENO: checking host system type" >&5
1804echo $ECHO_N "checking host system type... $ECHO_C" >&6
1805if test "${ac_cv_host+set}" = set; then
1806 echo $ECHO_N "(cached) $ECHO_C" >&6
1807else
1808 ac_cv_host_alias=$host_alias
1809test -z "$ac_cv_host_alias" &&
1810 ac_cv_host_alias=$ac_cv_build_alias
1811ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1812 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1813echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1814 { (exit 1); exit 1; }; }
1815
1816fi
1817echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1818echo "${ECHO_T}$ac_cv_host" >&6
1819host=$ac_cv_host
1820host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1821host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1822host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1823
1824
1825echo "$as_me:$LINENO: checking target system type" >&5
1826echo $ECHO_N "checking target system type... $ECHO_C" >&6
1827if test "${ac_cv_target+set}" = set; then
1828 echo $ECHO_N "(cached) $ECHO_C" >&6
1829else
1830 ac_cv_target_alias=$target_alias
1831test "x$ac_cv_target_alias" = "x" &&
1832 ac_cv_target_alias=$ac_cv_host_alias
1833ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1834 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1835echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1836 { (exit 1); exit 1; }; }
1837
1838fi
1839echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1840echo "${ECHO_T}$ac_cv_target" >&6
1841target=$ac_cv_target
1842target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1843target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1844target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1845
1846
1847# The aliases save the names the user supplied, while $host etc.
1848# will get canonicalized.
1849test -n "$target_alias" &&
1850 test "$program_prefix$program_suffix$program_transform_name" = \
1851 NONENONEs,x,x, &&
1852 program_prefix=${target_alias}-
1853
1854case $build in
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001855 *-*-linux*)
1856 OS=Linux
John Criswell7a73b802003-06-30 21:59:07 +00001857
Brian Gaekef3b24102003-11-16 18:38:14 +00001858 if test -d /home/vadve/lattner/local/x86/llvm-gcc
1859 then
1860 LLVMGCCDIR=/home/vadve/lattner/local/x86/llvm-gcc/
John Criswell7a73b802003-06-30 21:59:07 +00001861
Brian Gaekef3b24102003-11-16 18:38:14 +00001862 fi
John Criswell7a73b802003-06-30 21:59:07 +00001863 ;;
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001864 *-*-solaris*)
1865 OS=SunOS
John Criswell7a73b802003-06-30 21:59:07 +00001866
Brian Gaekef3b24102003-11-16 18:38:14 +00001867 if test -d /home/vadve/lattner/local/sparc/llvm-gcc
1868 then
1869 LLVMGCCDIR=/home/vadve/lattner/local/sparc/llvm-gcc/
John Criswell7a73b802003-06-30 21:59:07 +00001870
Brian Gaekef3b24102003-11-16 18:38:14 +00001871 fi
John Criswell7a73b802003-06-30 21:59:07 +00001872 ;;
John Criswelld6621562004-06-07 14:26:24 +00001873 *-*-cygwin*)
1874 OS=Cygwin
1875
1876 ;;
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001877 *-*-darwin*)
1878 OS=Darwin
1879
1880 ;;
Misha Brukmandb84a092004-06-22 15:35:32 +00001881 *-*-aix*)
1882 OS=AIX
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001883
Misha Brukmandb84a092004-06-22 15:35:32 +00001884 ;;
John Criswell7a73b802003-06-30 21:59:07 +00001885 *) OS=Unknown
1886
1887 ;;
1888esac
1889
1890case $target in
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001891 sparc*-*-solaris*) target=sparcv9-sun-solaris2.8
John Criswell7a73b802003-06-30 21:59:07 +00001892
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001893 ;;
John Criswell7a73b802003-06-30 21:59:07 +00001894esac
1895
John Criswell76595452003-07-01 22:07:39 +00001896case $target in
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001897 i*86-*) ARCH=x86
John Criswell76595452003-07-01 22:07:39 +00001898
1899 ;;
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001900 sparc*-*) ARCH=Sparc
1901
1902 ;;
1903 powerpc*-*) ARCH=PowerPC
1904
1905 ;;
1906 *) ARCH=Unknown
John Criswell76595452003-07-01 22:07:39 +00001907
1908 ;;
1909esac
1910
John Criswell7a73b802003-06-30 21:59:07 +00001911ac_ext=cc
1912ac_cpp='$CXXCPP $CPPFLAGS'
1913ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1914ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1915ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1916if test -n "$ac_tool_prefix"; then
1917 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1918 do
1919 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1920set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1921echo "$as_me:$LINENO: checking for $ac_word" >&5
1922echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1923if test "${ac_cv_prog_CXX+set}" = set; then
1924 echo $ECHO_N "(cached) $ECHO_C" >&6
1925else
1926 if test -n "$CXX"; then
1927 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1928else
1929as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1930for as_dir in $PATH
1931do
1932 IFS=$as_save_IFS
1933 test -z "$as_dir" && as_dir=.
1934 for ac_exec_ext in '' $ac_executable_extensions; do
1935 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1936 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1937 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1938 break 2
1939 fi
1940done
1941done
1942
1943fi
1944fi
1945CXX=$ac_cv_prog_CXX
1946if test -n "$CXX"; then
1947 echo "$as_me:$LINENO: result: $CXX" >&5
1948echo "${ECHO_T}$CXX" >&6
1949else
1950 echo "$as_me:$LINENO: result: no" >&5
1951echo "${ECHO_T}no" >&6
1952fi
1953
1954 test -n "$CXX" && break
1955 done
1956fi
1957if test -z "$CXX"; then
1958 ac_ct_CXX=$CXX
1959 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1960do
1961 # Extract the first word of "$ac_prog", so it can be a program name with args.
1962set dummy $ac_prog; ac_word=$2
1963echo "$as_me:$LINENO: checking for $ac_word" >&5
1964echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1965if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1966 echo $ECHO_N "(cached) $ECHO_C" >&6
1967else
1968 if test -n "$ac_ct_CXX"; then
1969 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1970else
1971as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1972for as_dir in $PATH
1973do
1974 IFS=$as_save_IFS
1975 test -z "$as_dir" && as_dir=.
1976 for ac_exec_ext in '' $ac_executable_extensions; do
1977 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1978 ac_cv_prog_ac_ct_CXX="$ac_prog"
1979 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1980 break 2
1981 fi
1982done
1983done
1984
1985fi
1986fi
1987ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
1988if test -n "$ac_ct_CXX"; then
1989 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
1990echo "${ECHO_T}$ac_ct_CXX" >&6
1991else
1992 echo "$as_me:$LINENO: result: no" >&5
1993echo "${ECHO_T}no" >&6
1994fi
1995
1996 test -n "$ac_ct_CXX" && break
1997done
1998test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
1999
2000 CXX=$ac_ct_CXX
2001fi
2002
2003
2004# Provide some information about the compiler.
2005echo "$as_me:$LINENO:" \
2006 "checking for C++ compiler version" >&5
2007ac_compiler=`set X $ac_compile; echo $2`
2008{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2009 (eval $ac_compiler --version </dev/null >&5) 2>&5
2010 ac_status=$?
2011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2012 (exit $ac_status); }
2013{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2014 (eval $ac_compiler -v </dev/null >&5) 2>&5
2015 ac_status=$?
2016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2017 (exit $ac_status); }
2018{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2019 (eval $ac_compiler -V </dev/null >&5) 2>&5
2020 ac_status=$?
2021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2022 (exit $ac_status); }
2023
2024cat >conftest.$ac_ext <<_ACEOF
2025#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002026/* confdefs.h. */
2027_ACEOF
2028cat confdefs.h >>conftest.$ac_ext
2029cat >>conftest.$ac_ext <<_ACEOF
2030/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002031
John Criswell7a73b802003-06-30 21:59:07 +00002032int
2033main ()
2034{
2035
2036 ;
2037 return 0;
2038}
2039_ACEOF
2040ac_clean_files_save=$ac_clean_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002041ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002042# Try to create an executable without -o first, disregard a.out.
2043# It will help us diagnose broken compilers, and finding out an intuition
2044# of exeext.
2045echo "$as_me:$LINENO: checking for C++ compiler default output" >&5
2046echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6
2047ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2048if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2049 (eval $ac_link_default) 2>&5
2050 ac_status=$?
2051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2052 (exit $ac_status); }; then
2053 # Find the output, starting from the most likely. This scheme is
2054# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2055# resort.
2056
2057# Be careful to initialize this variable, since it used to be cached.
2058# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2059ac_cv_exeext=
John Criswell0c38eaf2003-09-10 15:17:25 +00002060# b.out is created by i960 compilers.
2061for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2062do
2063 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002064 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002065 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2066 ;;
2067 conftest.$ac_ext )
2068 # This is the source file.
2069 ;;
2070 [ab].out )
2071 # We found the default executable, but exeext='' is most
2072 # certainly right.
2073 break;;
2074 *.* )
2075 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2076 # FIXME: I believe we export ac_cv_exeext for Libtool,
2077 # but it would be cool to find out if it's true. Does anybody
2078 # maintain Libtool? --akim.
2079 export ac_cv_exeext
2080 break;;
2081 * )
2082 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002083 esac
2084done
2085else
2086 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002087sed 's/^/| /' conftest.$ac_ext >&5
2088
2089{ { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2090See \`config.log' for more details." >&5
2091echo "$as_me: error: C++ compiler cannot create executables
2092See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002093 { (exit 77); exit 77; }; }
2094fi
2095
2096ac_exeext=$ac_cv_exeext
2097echo "$as_me:$LINENO: result: $ac_file" >&5
2098echo "${ECHO_T}$ac_file" >&6
2099
2100# Check the compiler produces executables we can run. If not, either
2101# the compiler is broken, or we cross compile.
2102echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2103echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2104# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2105# If not cross compiling, check that we can run a simple program.
2106if test "$cross_compiling" != yes; then
2107 if { ac_try='./$ac_file'
2108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2109 (eval $ac_try) 2>&5
2110 ac_status=$?
2111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2112 (exit $ac_status); }; }; then
2113 cross_compiling=no
2114 else
2115 if test "$cross_compiling" = maybe; then
2116 cross_compiling=yes
2117 else
2118 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002119If you meant to cross compile, use \`--host'.
2120See \`config.log' for more details." >&5
John Criswell7a73b802003-06-30 21:59:07 +00002121echo "$as_me: error: cannot run C++ compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002122If you meant to cross compile, use \`--host'.
2123See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002124 { (exit 1); exit 1; }; }
2125 fi
2126 fi
2127fi
2128echo "$as_me:$LINENO: result: yes" >&5
2129echo "${ECHO_T}yes" >&6
2130
John Criswell0c38eaf2003-09-10 15:17:25 +00002131rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002132ac_clean_files=$ac_clean_files_save
2133# Check the compiler produces executables we can run. If not, either
2134# the compiler is broken, or we cross compile.
2135echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2136echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2137echo "$as_me:$LINENO: result: $cross_compiling" >&5
2138echo "${ECHO_T}$cross_compiling" >&6
2139
2140echo "$as_me:$LINENO: checking for suffix of executables" >&5
2141echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2142if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2143 (eval $ac_link) 2>&5
2144 ac_status=$?
2145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2146 (exit $ac_status); }; then
2147 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2148# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2149# work properly (i.e., refer to `conftest.exe'), while it won't with
2150# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002151for ac_file in conftest.exe conftest conftest.*; do
2152 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002153 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002154 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002155 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2156 export ac_cv_exeext
2157 break;;
2158 * ) break;;
2159 esac
2160done
2161else
John Criswell0c38eaf2003-09-10 15:17:25 +00002162 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2163See \`config.log' for more details." >&5
2164echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2165See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002166 { (exit 1); exit 1; }; }
2167fi
2168
2169rm -f conftest$ac_cv_exeext
2170echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2171echo "${ECHO_T}$ac_cv_exeext" >&6
2172
2173rm -f conftest.$ac_ext
2174EXEEXT=$ac_cv_exeext
2175ac_exeext=$EXEEXT
2176echo "$as_me:$LINENO: checking for suffix of object files" >&5
2177echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2178if test "${ac_cv_objext+set}" = set; then
2179 echo $ECHO_N "(cached) $ECHO_C" >&6
2180else
2181 cat >conftest.$ac_ext <<_ACEOF
2182#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002183/* confdefs.h. */
2184_ACEOF
2185cat confdefs.h >>conftest.$ac_ext
2186cat >>conftest.$ac_ext <<_ACEOF
2187/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002188
John Criswell7a73b802003-06-30 21:59:07 +00002189int
2190main ()
2191{
2192
2193 ;
2194 return 0;
2195}
2196_ACEOF
2197rm -f conftest.o conftest.obj
2198if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2199 (eval $ac_compile) 2>&5
2200 ac_status=$?
2201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2202 (exit $ac_status); }; then
2203 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2204 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002205 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002206 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2207 break;;
2208 esac
2209done
2210else
2211 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002212sed 's/^/| /' conftest.$ac_ext >&5
2213
2214{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2215See \`config.log' for more details." >&5
2216echo "$as_me: error: cannot compute suffix of object files: cannot compile
2217See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002218 { (exit 1); exit 1; }; }
2219fi
2220
2221rm -f conftest.$ac_cv_objext conftest.$ac_ext
2222fi
2223echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2224echo "${ECHO_T}$ac_cv_objext" >&6
2225OBJEXT=$ac_cv_objext
2226ac_objext=$OBJEXT
2227echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2228echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2229if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2230 echo $ECHO_N "(cached) $ECHO_C" >&6
2231else
2232 cat >conftest.$ac_ext <<_ACEOF
2233#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002234/* confdefs.h. */
2235_ACEOF
2236cat confdefs.h >>conftest.$ac_ext
2237cat >>conftest.$ac_ext <<_ACEOF
2238/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002239
John Criswell7a73b802003-06-30 21:59:07 +00002240int
2241main ()
2242{
2243#ifndef __GNUC__
2244 choke me
2245#endif
2246
2247 ;
2248 return 0;
2249}
2250_ACEOF
2251rm -f conftest.$ac_objext
2252if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2253 (eval $ac_compile) 2>&5
2254 ac_status=$?
2255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2256 (exit $ac_status); } &&
2257 { ac_try='test -s conftest.$ac_objext'
2258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2259 (eval $ac_try) 2>&5
2260 ac_status=$?
2261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2262 (exit $ac_status); }; }; then
2263 ac_compiler_gnu=yes
2264else
2265 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002266sed 's/^/| /' conftest.$ac_ext >&5
2267
John Criswell7a73b802003-06-30 21:59:07 +00002268ac_compiler_gnu=no
2269fi
2270rm -f conftest.$ac_objext conftest.$ac_ext
2271ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2272
2273fi
2274echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2275echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2276GXX=`test $ac_compiler_gnu = yes && echo yes`
2277ac_test_CXXFLAGS=${CXXFLAGS+set}
2278ac_save_CXXFLAGS=$CXXFLAGS
2279CXXFLAGS="-g"
2280echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2281echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2282if test "${ac_cv_prog_cxx_g+set}" = set; then
2283 echo $ECHO_N "(cached) $ECHO_C" >&6
2284else
2285 cat >conftest.$ac_ext <<_ACEOF
2286#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002287/* confdefs.h. */
2288_ACEOF
2289cat confdefs.h >>conftest.$ac_ext
2290cat >>conftest.$ac_ext <<_ACEOF
2291/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002292
John Criswell7a73b802003-06-30 21:59:07 +00002293int
2294main ()
2295{
2296
2297 ;
2298 return 0;
2299}
2300_ACEOF
2301rm -f conftest.$ac_objext
2302if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2303 (eval $ac_compile) 2>&5
2304 ac_status=$?
2305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2306 (exit $ac_status); } &&
2307 { ac_try='test -s conftest.$ac_objext'
2308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2309 (eval $ac_try) 2>&5
2310 ac_status=$?
2311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2312 (exit $ac_status); }; }; then
2313 ac_cv_prog_cxx_g=yes
2314else
2315 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002316sed 's/^/| /' conftest.$ac_ext >&5
2317
John Criswell7a73b802003-06-30 21:59:07 +00002318ac_cv_prog_cxx_g=no
2319fi
2320rm -f conftest.$ac_objext conftest.$ac_ext
2321fi
2322echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2323echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2324if test "$ac_test_CXXFLAGS" = set; then
2325 CXXFLAGS=$ac_save_CXXFLAGS
2326elif test $ac_cv_prog_cxx_g = yes; then
2327 if test "$GXX" = yes; then
2328 CXXFLAGS="-g -O2"
2329 else
2330 CXXFLAGS="-g"
2331 fi
2332else
2333 if test "$GXX" = yes; then
2334 CXXFLAGS="-O2"
2335 else
2336 CXXFLAGS=
2337 fi
2338fi
2339for ac_declaration in \
2340 ''\
2341 '#include <stdlib.h>' \
2342 'extern "C" void std::exit (int) throw (); using std::exit;' \
2343 'extern "C" void std::exit (int); using std::exit;' \
2344 'extern "C" void exit (int) throw ();' \
2345 'extern "C" void exit (int);' \
2346 'void exit (int);'
2347do
2348 cat >conftest.$ac_ext <<_ACEOF
2349#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002350/* confdefs.h. */
2351_ACEOF
2352cat confdefs.h >>conftest.$ac_ext
2353cat >>conftest.$ac_ext <<_ACEOF
2354/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002355#include <stdlib.h>
2356$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00002357int
2358main ()
2359{
2360exit (42);
2361 ;
2362 return 0;
2363}
2364_ACEOF
2365rm -f conftest.$ac_objext
2366if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2367 (eval $ac_compile) 2>&5
2368 ac_status=$?
2369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2370 (exit $ac_status); } &&
2371 { ac_try='test -s conftest.$ac_objext'
2372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2373 (eval $ac_try) 2>&5
2374 ac_status=$?
2375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2376 (exit $ac_status); }; }; then
2377 :
2378else
2379 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002380sed 's/^/| /' conftest.$ac_ext >&5
2381
John Criswell7a73b802003-06-30 21:59:07 +00002382continue
2383fi
2384rm -f conftest.$ac_objext conftest.$ac_ext
2385 cat >conftest.$ac_ext <<_ACEOF
2386#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002387/* confdefs.h. */
2388_ACEOF
2389cat confdefs.h >>conftest.$ac_ext
2390cat >>conftest.$ac_ext <<_ACEOF
2391/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002392$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00002393int
2394main ()
2395{
2396exit (42);
2397 ;
2398 return 0;
2399}
2400_ACEOF
2401rm -f conftest.$ac_objext
2402if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2403 (eval $ac_compile) 2>&5
2404 ac_status=$?
2405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2406 (exit $ac_status); } &&
2407 { ac_try='test -s conftest.$ac_objext'
2408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2409 (eval $ac_try) 2>&5
2410 ac_status=$?
2411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2412 (exit $ac_status); }; }; then
2413 break
2414else
2415 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002416sed 's/^/| /' conftest.$ac_ext >&5
2417
John Criswell7a73b802003-06-30 21:59:07 +00002418fi
2419rm -f conftest.$ac_objext conftest.$ac_ext
2420done
2421rm -f conftest*
2422if test -n "$ac_declaration"; then
2423 echo '#ifdef __cplusplus' >>confdefs.h
2424 echo $ac_declaration >>confdefs.h
2425 echo '#endif' >>confdefs.h
2426fi
2427
2428ac_ext=c
2429ac_cpp='$CPP $CPPFLAGS'
2430ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2431ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2432ac_compiler_gnu=$ac_cv_c_compiler_gnu
2433
2434ac_ext=c
2435ac_cpp='$CPP $CPPFLAGS'
2436ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2437ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2438ac_compiler_gnu=$ac_cv_c_compiler_gnu
2439if test -n "$ac_tool_prefix"; then
2440 for ac_prog in gcc
2441 do
2442 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2443set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2444echo "$as_me:$LINENO: checking for $ac_word" >&5
2445echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2446if test "${ac_cv_prog_CC+set}" = set; then
2447 echo $ECHO_N "(cached) $ECHO_C" >&6
2448else
2449 if test -n "$CC"; then
2450 ac_cv_prog_CC="$CC" # Let the user override the test.
2451else
2452as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2453for as_dir in $PATH
2454do
2455 IFS=$as_save_IFS
2456 test -z "$as_dir" && as_dir=.
2457 for ac_exec_ext in '' $ac_executable_extensions; do
2458 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2459 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2460 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2461 break 2
2462 fi
2463done
2464done
2465
2466fi
2467fi
2468CC=$ac_cv_prog_CC
2469if test -n "$CC"; then
2470 echo "$as_me:$LINENO: result: $CC" >&5
2471echo "${ECHO_T}$CC" >&6
2472else
2473 echo "$as_me:$LINENO: result: no" >&5
2474echo "${ECHO_T}no" >&6
2475fi
2476
2477 test -n "$CC" && break
2478 done
2479fi
2480if test -z "$CC"; then
2481 ac_ct_CC=$CC
2482 for ac_prog in gcc
2483do
2484 # Extract the first word of "$ac_prog", so it can be a program name with args.
2485set dummy $ac_prog; ac_word=$2
2486echo "$as_me:$LINENO: checking for $ac_word" >&5
2487echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2488if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2489 echo $ECHO_N "(cached) $ECHO_C" >&6
2490else
2491 if test -n "$ac_ct_CC"; then
2492 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2493else
2494as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2495for as_dir in $PATH
2496do
2497 IFS=$as_save_IFS
2498 test -z "$as_dir" && as_dir=.
2499 for ac_exec_ext in '' $ac_executable_extensions; do
2500 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2501 ac_cv_prog_ac_ct_CC="$ac_prog"
2502 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2503 break 2
2504 fi
2505done
2506done
2507
2508fi
2509fi
2510ac_ct_CC=$ac_cv_prog_ac_ct_CC
2511if test -n "$ac_ct_CC"; then
2512 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2513echo "${ECHO_T}$ac_ct_CC" >&6
2514else
2515 echo "$as_me:$LINENO: result: no" >&5
2516echo "${ECHO_T}no" >&6
2517fi
2518
2519 test -n "$ac_ct_CC" && break
2520done
2521
2522 CC=$ac_ct_CC
2523fi
2524
2525
John Criswell0c38eaf2003-09-10 15:17:25 +00002526test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2527See \`config.log' for more details." >&5
2528echo "$as_me: error: no acceptable C compiler found in \$PATH
2529See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002530 { (exit 1); exit 1; }; }
2531
2532# Provide some information about the compiler.
2533echo "$as_me:$LINENO:" \
2534 "checking for C compiler version" >&5
2535ac_compiler=`set X $ac_compile; echo $2`
2536{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2537 (eval $ac_compiler --version </dev/null >&5) 2>&5
2538 ac_status=$?
2539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2540 (exit $ac_status); }
2541{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2542 (eval $ac_compiler -v </dev/null >&5) 2>&5
2543 ac_status=$?
2544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2545 (exit $ac_status); }
2546{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2547 (eval $ac_compiler -V </dev/null >&5) 2>&5
2548 ac_status=$?
2549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2550 (exit $ac_status); }
2551
2552echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2553echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2554if test "${ac_cv_c_compiler_gnu+set}" = set; then
2555 echo $ECHO_N "(cached) $ECHO_C" >&6
2556else
2557 cat >conftest.$ac_ext <<_ACEOF
2558#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002559/* confdefs.h. */
2560_ACEOF
2561cat confdefs.h >>conftest.$ac_ext
2562cat >>conftest.$ac_ext <<_ACEOF
2563/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002564
John Criswell7a73b802003-06-30 21:59:07 +00002565int
2566main ()
2567{
2568#ifndef __GNUC__
2569 choke me
2570#endif
2571
2572 ;
2573 return 0;
2574}
2575_ACEOF
2576rm -f conftest.$ac_objext
2577if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2578 (eval $ac_compile) 2>&5
2579 ac_status=$?
2580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2581 (exit $ac_status); } &&
2582 { ac_try='test -s conftest.$ac_objext'
2583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2584 (eval $ac_try) 2>&5
2585 ac_status=$?
2586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2587 (exit $ac_status); }; }; then
2588 ac_compiler_gnu=yes
2589else
2590 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002591sed 's/^/| /' conftest.$ac_ext >&5
2592
John Criswell7a73b802003-06-30 21:59:07 +00002593ac_compiler_gnu=no
2594fi
2595rm -f conftest.$ac_objext conftest.$ac_ext
2596ac_cv_c_compiler_gnu=$ac_compiler_gnu
2597
2598fi
2599echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2600echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2601GCC=`test $ac_compiler_gnu = yes && echo yes`
2602ac_test_CFLAGS=${CFLAGS+set}
2603ac_save_CFLAGS=$CFLAGS
2604CFLAGS="-g"
2605echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2606echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2607if test "${ac_cv_prog_cc_g+set}" = set; then
2608 echo $ECHO_N "(cached) $ECHO_C" >&6
2609else
2610 cat >conftest.$ac_ext <<_ACEOF
2611#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002612/* confdefs.h. */
2613_ACEOF
2614cat confdefs.h >>conftest.$ac_ext
2615cat >>conftest.$ac_ext <<_ACEOF
2616/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002617
John Criswell7a73b802003-06-30 21:59:07 +00002618int
2619main ()
2620{
2621
2622 ;
2623 return 0;
2624}
2625_ACEOF
2626rm -f conftest.$ac_objext
2627if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2628 (eval $ac_compile) 2>&5
2629 ac_status=$?
2630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2631 (exit $ac_status); } &&
2632 { ac_try='test -s conftest.$ac_objext'
2633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2634 (eval $ac_try) 2>&5
2635 ac_status=$?
2636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2637 (exit $ac_status); }; }; then
2638 ac_cv_prog_cc_g=yes
2639else
2640 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002641sed 's/^/| /' conftest.$ac_ext >&5
2642
John Criswell7a73b802003-06-30 21:59:07 +00002643ac_cv_prog_cc_g=no
2644fi
2645rm -f conftest.$ac_objext conftest.$ac_ext
2646fi
2647echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2648echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2649if test "$ac_test_CFLAGS" = set; then
2650 CFLAGS=$ac_save_CFLAGS
2651elif test $ac_cv_prog_cc_g = yes; then
2652 if test "$GCC" = yes; then
2653 CFLAGS="-g -O2"
2654 else
2655 CFLAGS="-g"
2656 fi
2657else
2658 if test "$GCC" = yes; then
2659 CFLAGS="-O2"
2660 else
2661 CFLAGS=
2662 fi
2663fi
John Criswell0c38eaf2003-09-10 15:17:25 +00002664echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2665echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2666if test "${ac_cv_prog_cc_stdc+set}" = set; then
2667 echo $ECHO_N "(cached) $ECHO_C" >&6
2668else
2669 ac_cv_prog_cc_stdc=no
2670ac_save_CC=$CC
2671cat >conftest.$ac_ext <<_ACEOF
2672#line $LINENO "configure"
2673/* confdefs.h. */
2674_ACEOF
2675cat confdefs.h >>conftest.$ac_ext
2676cat >>conftest.$ac_ext <<_ACEOF
2677/* end confdefs.h. */
2678#include <stdarg.h>
2679#include <stdio.h>
2680#include <sys/types.h>
2681#include <sys/stat.h>
2682/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2683struct buf { int x; };
2684FILE * (*rcsopen) (struct buf *, struct stat *, int);
2685static char *e (p, i)
2686 char **p;
2687 int i;
2688{
2689 return p[i];
2690}
2691static char *f (char * (*g) (char **, int), char **p, ...)
2692{
2693 char *s;
2694 va_list v;
2695 va_start (v,p);
2696 s = g (p, va_arg (v,int));
2697 va_end (v);
2698 return s;
2699}
2700int test (int i, double x);
2701struct s1 {int (*f) (int a);};
2702struct s2 {int (*f) (double a);};
2703int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2704int argc;
2705char **argv;
2706int
2707main ()
2708{
2709return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2710 ;
2711 return 0;
2712}
2713_ACEOF
2714# Don't try gcc -ansi; that turns off useful extensions and
2715# breaks some systems' header files.
2716# AIX -qlanglvl=ansi
2717# Ultrix and OSF/1 -std1
2718# HP-UX 10.20 and later -Ae
2719# HP-UX older versions -Aa -D_HPUX_SOURCE
2720# SVR4 -Xc -D__EXTENSIONS__
2721for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2722do
2723 CC="$ac_save_CC $ac_arg"
2724 rm -f conftest.$ac_objext
2725if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2726 (eval $ac_compile) 2>&5
2727 ac_status=$?
2728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2729 (exit $ac_status); } &&
2730 { ac_try='test -s conftest.$ac_objext'
2731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2732 (eval $ac_try) 2>&5
2733 ac_status=$?
2734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2735 (exit $ac_status); }; }; then
2736 ac_cv_prog_cc_stdc=$ac_arg
2737break
2738else
2739 echo "$as_me: failed program was:" >&5
2740sed 's/^/| /' conftest.$ac_ext >&5
2741
2742fi
2743rm -f conftest.$ac_objext
2744done
2745rm -f conftest.$ac_ext conftest.$ac_objext
2746CC=$ac_save_CC
2747
2748fi
2749
2750case "x$ac_cv_prog_cc_stdc" in
2751 x|xno)
2752 echo "$as_me:$LINENO: result: none needed" >&5
2753echo "${ECHO_T}none needed" >&6 ;;
2754 *)
2755 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2756echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2757 CC="$CC $ac_cv_prog_cc_stdc" ;;
2758esac
2759
John Criswell7a73b802003-06-30 21:59:07 +00002760# Some people use a C++ compiler to compile C. Since we use `exit',
2761# in C++ we need to declare it. In case someone uses the same compiler
2762# for both compiling C and C++ we need to have the C++ compiler decide
2763# the declaration of exit, since it's the most demanding environment.
2764cat >conftest.$ac_ext <<_ACEOF
2765#ifndef __cplusplus
2766 choke me
2767#endif
2768_ACEOF
2769rm -f conftest.$ac_objext
2770if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2771 (eval $ac_compile) 2>&5
2772 ac_status=$?
2773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2774 (exit $ac_status); } &&
2775 { ac_try='test -s conftest.$ac_objext'
2776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2777 (eval $ac_try) 2>&5
2778 ac_status=$?
2779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2780 (exit $ac_status); }; }; then
2781 for ac_declaration in \
2782 ''\
2783 '#include <stdlib.h>' \
2784 'extern "C" void std::exit (int) throw (); using std::exit;' \
2785 'extern "C" void std::exit (int); using std::exit;' \
2786 'extern "C" void exit (int) throw ();' \
2787 'extern "C" void exit (int);' \
2788 'void exit (int);'
2789do
2790 cat >conftest.$ac_ext <<_ACEOF
2791#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002792/* confdefs.h. */
2793_ACEOF
2794cat confdefs.h >>conftest.$ac_ext
2795cat >>conftest.$ac_ext <<_ACEOF
2796/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002797#include <stdlib.h>
2798$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00002799int
2800main ()
2801{
2802exit (42);
2803 ;
2804 return 0;
2805}
2806_ACEOF
2807rm -f conftest.$ac_objext
2808if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2809 (eval $ac_compile) 2>&5
2810 ac_status=$?
2811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2812 (exit $ac_status); } &&
2813 { ac_try='test -s conftest.$ac_objext'
2814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2815 (eval $ac_try) 2>&5
2816 ac_status=$?
2817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2818 (exit $ac_status); }; }; then
2819 :
2820else
2821 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002822sed 's/^/| /' conftest.$ac_ext >&5
2823
John Criswell7a73b802003-06-30 21:59:07 +00002824continue
2825fi
2826rm -f conftest.$ac_objext conftest.$ac_ext
2827 cat >conftest.$ac_ext <<_ACEOF
2828#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002829/* confdefs.h. */
2830_ACEOF
2831cat confdefs.h >>conftest.$ac_ext
2832cat >>conftest.$ac_ext <<_ACEOF
2833/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002834$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00002835int
2836main ()
2837{
2838exit (42);
2839 ;
2840 return 0;
2841}
2842_ACEOF
2843rm -f conftest.$ac_objext
2844if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2845 (eval $ac_compile) 2>&5
2846 ac_status=$?
2847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2848 (exit $ac_status); } &&
2849 { ac_try='test -s conftest.$ac_objext'
2850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2851 (eval $ac_try) 2>&5
2852 ac_status=$?
2853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2854 (exit $ac_status); }; }; then
2855 break
2856else
2857 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002858sed 's/^/| /' conftest.$ac_ext >&5
2859
John Criswell7a73b802003-06-30 21:59:07 +00002860fi
2861rm -f conftest.$ac_objext conftest.$ac_ext
2862done
2863rm -f conftest*
2864if test -n "$ac_declaration"; then
2865 echo '#ifdef __cplusplus' >>confdefs.h
2866 echo $ac_declaration >>confdefs.h
2867 echo '#endif' >>confdefs.h
2868fi
2869
2870else
2871 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002872sed 's/^/| /' conftest.$ac_ext >&5
2873
John Criswell7a73b802003-06-30 21:59:07 +00002874fi
2875rm -f conftest.$ac_objext conftest.$ac_ext
2876ac_ext=c
2877ac_cpp='$CPP $CPPFLAGS'
2878ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2879ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2880ac_compiler_gnu=$ac_cv_c_compiler_gnu
2881
2882ac_ext=c
2883ac_cpp='$CPP $CPPFLAGS'
2884ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2885ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2886ac_compiler_gnu=$ac_cv_c_compiler_gnu
2887echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2888echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2889# On Suns, sometimes $CPP names a directory.
2890if test -n "$CPP" && test -d "$CPP"; then
2891 CPP=
2892fi
2893if test -z "$CPP"; then
2894 if test "${ac_cv_prog_CPP+set}" = set; then
2895 echo $ECHO_N "(cached) $ECHO_C" >&6
2896else
2897 # Double quotes because CPP needs to be expanded
2898 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2899 do
2900 ac_preproc_ok=false
2901for ac_c_preproc_warn_flag in '' yes
2902do
2903 # Use a header file that comes with gcc, so configuring glibc
2904 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00002905 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2906 # <limits.h> exists even on freestanding compilers.
John Criswell7a73b802003-06-30 21:59:07 +00002907 # On the NeXT, cc -E runs the code through the compiler's parser,
2908 # not just through cpp. "Syntax error" is here to catch this case.
2909 cat >conftest.$ac_ext <<_ACEOF
2910#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002911/* confdefs.h. */
2912_ACEOF
2913cat confdefs.h >>conftest.$ac_ext
2914cat >>conftest.$ac_ext <<_ACEOF
2915/* end confdefs.h. */
2916#ifdef __STDC__
2917# include <limits.h>
2918#else
2919# include <assert.h>
2920#endif
John Criswell7a73b802003-06-30 21:59:07 +00002921 Syntax error
2922_ACEOF
2923if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2924 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2925 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00002926 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00002927 rm -f conftest.er1
2928 cat conftest.err >&5
2929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2930 (exit $ac_status); } >/dev/null; then
2931 if test -s conftest.err; then
2932 ac_cpp_err=$ac_c_preproc_warn_flag
2933 else
2934 ac_cpp_err=
2935 fi
2936else
2937 ac_cpp_err=yes
2938fi
2939if test -z "$ac_cpp_err"; then
2940 :
2941else
2942 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002943sed 's/^/| /' conftest.$ac_ext >&5
2944
John Criswell7a73b802003-06-30 21:59:07 +00002945 # Broken: fails on valid input.
2946continue
2947fi
2948rm -f conftest.err conftest.$ac_ext
2949
2950 # OK, works on sane cases. Now check whether non-existent headers
2951 # can be detected and how.
2952 cat >conftest.$ac_ext <<_ACEOF
2953#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002954/* confdefs.h. */
2955_ACEOF
2956cat confdefs.h >>conftest.$ac_ext
2957cat >>conftest.$ac_ext <<_ACEOF
2958/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002959#include <ac_nonexistent.h>
2960_ACEOF
2961if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2962 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2963 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00002964 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00002965 rm -f conftest.er1
2966 cat conftest.err >&5
2967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2968 (exit $ac_status); } >/dev/null; then
2969 if test -s conftest.err; then
2970 ac_cpp_err=$ac_c_preproc_warn_flag
2971 else
2972 ac_cpp_err=
2973 fi
2974else
2975 ac_cpp_err=yes
2976fi
2977if test -z "$ac_cpp_err"; then
2978 # Broken: success on invalid input.
2979continue
2980else
2981 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002982sed 's/^/| /' conftest.$ac_ext >&5
2983
John Criswell7a73b802003-06-30 21:59:07 +00002984 # Passes both tests.
2985ac_preproc_ok=:
2986break
2987fi
2988rm -f conftest.err conftest.$ac_ext
2989
2990done
2991# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2992rm -f conftest.err conftest.$ac_ext
2993if $ac_preproc_ok; then
2994 break
2995fi
2996
2997 done
2998 ac_cv_prog_CPP=$CPP
2999
3000fi
3001 CPP=$ac_cv_prog_CPP
3002else
3003 ac_cv_prog_CPP=$CPP
3004fi
3005echo "$as_me:$LINENO: result: $CPP" >&5
3006echo "${ECHO_T}$CPP" >&6
3007ac_preproc_ok=false
3008for ac_c_preproc_warn_flag in '' yes
3009do
3010 # Use a header file that comes with gcc, so configuring glibc
3011 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00003012 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3013 # <limits.h> exists even on freestanding compilers.
John Criswell7a73b802003-06-30 21:59:07 +00003014 # On the NeXT, cc -E runs the code through the compiler's parser,
3015 # not just through cpp. "Syntax error" is here to catch this case.
3016 cat >conftest.$ac_ext <<_ACEOF
3017#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003018/* confdefs.h. */
3019_ACEOF
3020cat confdefs.h >>conftest.$ac_ext
3021cat >>conftest.$ac_ext <<_ACEOF
3022/* end confdefs.h. */
3023#ifdef __STDC__
3024# include <limits.h>
3025#else
3026# include <assert.h>
3027#endif
John Criswell7a73b802003-06-30 21:59:07 +00003028 Syntax error
3029_ACEOF
3030if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3031 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3032 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003033 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003034 rm -f conftest.er1
3035 cat conftest.err >&5
3036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3037 (exit $ac_status); } >/dev/null; then
3038 if test -s conftest.err; then
3039 ac_cpp_err=$ac_c_preproc_warn_flag
3040 else
3041 ac_cpp_err=
3042 fi
3043else
3044 ac_cpp_err=yes
3045fi
3046if test -z "$ac_cpp_err"; then
3047 :
3048else
3049 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003050sed 's/^/| /' conftest.$ac_ext >&5
3051
John Criswell7a73b802003-06-30 21:59:07 +00003052 # Broken: fails on valid input.
3053continue
3054fi
3055rm -f conftest.err conftest.$ac_ext
3056
3057 # OK, works on sane cases. Now check whether non-existent headers
3058 # can be detected and how.
3059 cat >conftest.$ac_ext <<_ACEOF
3060#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003061/* confdefs.h. */
3062_ACEOF
3063cat confdefs.h >>conftest.$ac_ext
3064cat >>conftest.$ac_ext <<_ACEOF
3065/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003066#include <ac_nonexistent.h>
3067_ACEOF
3068if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3069 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3070 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003071 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003072 rm -f conftest.er1
3073 cat conftest.err >&5
3074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3075 (exit $ac_status); } >/dev/null; then
3076 if test -s conftest.err; then
3077 ac_cpp_err=$ac_c_preproc_warn_flag
3078 else
3079 ac_cpp_err=
3080 fi
3081else
3082 ac_cpp_err=yes
3083fi
3084if test -z "$ac_cpp_err"; then
3085 # Broken: success on invalid input.
3086continue
3087else
3088 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003089sed 's/^/| /' conftest.$ac_ext >&5
3090
John Criswell7a73b802003-06-30 21:59:07 +00003091 # Passes both tests.
3092ac_preproc_ok=:
3093break
3094fi
3095rm -f conftest.err conftest.$ac_ext
3096
3097done
3098# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3099rm -f conftest.err conftest.$ac_ext
3100if $ac_preproc_ok; then
3101 :
3102else
John Criswell0c38eaf2003-09-10 15:17:25 +00003103 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3104See \`config.log' for more details." >&5
3105echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3106See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00003107 { (exit 1); exit 1; }; }
3108fi
3109
3110ac_ext=c
3111ac_cpp='$CPP $CPPFLAGS'
3112ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3113ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3114ac_compiler_gnu=$ac_cv_c_compiler_gnu
3115
3116
3117if test "$GCC" != "yes"
3118then
3119 { { echo "$as_me:$LINENO: error: gcc required but not found" >&5
3120echo "$as_me: error: gcc required but not found" >&2;}
3121 { (exit 1); exit 1; }; }
3122fi
John Criswell7a73b802003-06-30 21:59:07 +00003123if test "$GXX" != "yes"
3124then
3125 { { echo "$as_me:$LINENO: error: g++ required but not found" >&5
3126echo "$as_me: error: g++ required but not found" >&2;}
3127 { (exit 1); exit 1; }; }
3128fi
3129
John Criswellde00db22003-08-25 16:49:54 +00003130gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
3131if test "$gccmajor" -lt "3"
3132then
Brian Gaeke26be9c52004-01-13 06:43:16 +00003133 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
3134echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
John Criswellde00db22003-08-25 16:49:54 +00003135 { (exit 1); exit 1; }; }
3136fi
3137
John Criswell7a73b802003-06-30 21:59:07 +00003138 echo "$as_me:$LINENO: checking for GNU make" >&5
3139echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
3140if test "${_cv_gnu_make_command+set}" = set; then
3141 echo $ECHO_N "(cached) $ECHO_C" >&6
3142else
3143 _cv_gnu_make_command='' ;
3144 for a in "$MAKE" make gmake gnumake ; do
3145 if test -z "$a" ; then continue ; fi ;
3146 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
3147 _cv_gnu_make_command=$a ;
3148 break;
3149 fi
3150 done ;
3151
3152fi
3153echo "$as_me:$LINENO: result: $_cv_gnu_make_command" >&5
3154echo "${ECHO_T}$_cv_gnu_make_command" >&6 ;
3155 if test "x$_cv_gnu_make_command" != "x" ; then
3156 ifGNUmake='' ;
3157 else
3158 ifGNUmake='#' ;
3159 echo "$as_me:$LINENO: result: \"Not found\"" >&5
3160echo "${ECHO_T}\"Not found\"" >&6;
3161 fi
3162
3163
3164if test -z "$_cv_gnu_make_command"
3165then
3166 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
3167echo "$as_me: error: GNU Make required but not found" >&2;}
3168 { (exit 1); exit 1; }; }
3169fi
3170
3171
3172echo "$as_me:$LINENO: checking " >&5
3173echo $ECHO_N "checking ... $ECHO_C" >&6
3174if test "${ac_cv_has_flex+set}" = set; then
3175 echo $ECHO_N "(cached) $ECHO_C" >&6
3176else
3177 for ac_prog in flex lex
3178do
3179 # Extract the first word of "$ac_prog", so it can be a program name with args.
3180set dummy $ac_prog; ac_word=$2
3181echo "$as_me:$LINENO: checking for $ac_word" >&5
3182echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3183if test "${ac_cv_prog_LEX+set}" = set; then
3184 echo $ECHO_N "(cached) $ECHO_C" >&6
3185else
3186 if test -n "$LEX"; then
3187 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3188else
3189as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3190for as_dir in $PATH
3191do
3192 IFS=$as_save_IFS
3193 test -z "$as_dir" && as_dir=.
3194 for ac_exec_ext in '' $ac_executable_extensions; do
3195 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3196 ac_cv_prog_LEX="$ac_prog"
3197 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3198 break 2
3199 fi
3200done
3201done
3202
3203fi
3204fi
3205LEX=$ac_cv_prog_LEX
3206if test -n "$LEX"; then
3207 echo "$as_me:$LINENO: result: $LEX" >&5
3208echo "${ECHO_T}$LEX" >&6
3209else
3210 echo "$as_me:$LINENO: result: no" >&5
3211echo "${ECHO_T}no" >&6
3212fi
3213
3214 test -n "$LEX" && break
3215done
3216test -n "$LEX" || LEX=":"
3217
3218if test -z "$LEXLIB"
3219then
3220 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3221echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3222if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3223 echo $ECHO_N "(cached) $ECHO_C" >&6
3224else
3225 ac_check_lib_save_LIBS=$LIBS
3226LIBS="-lfl $LIBS"
3227cat >conftest.$ac_ext <<_ACEOF
3228#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003229/* confdefs.h. */
3230_ACEOF
3231cat confdefs.h >>conftest.$ac_ext
3232cat >>conftest.$ac_ext <<_ACEOF
3233/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003234
3235/* Override any gcc2 internal prototype to avoid an error. */
3236#ifdef __cplusplus
3237extern "C"
3238#endif
3239/* We use char because int might match the return type of a gcc2
3240 builtin and then its argument prototype would still apply. */
3241char yywrap ();
John Criswell7a73b802003-06-30 21:59:07 +00003242int
3243main ()
3244{
3245yywrap ();
3246 ;
3247 return 0;
3248}
3249_ACEOF
3250rm -f conftest.$ac_objext conftest$ac_exeext
3251if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3252 (eval $ac_link) 2>&5
3253 ac_status=$?
3254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3255 (exit $ac_status); } &&
3256 { ac_try='test -s conftest$ac_exeext'
3257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3258 (eval $ac_try) 2>&5
3259 ac_status=$?
3260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3261 (exit $ac_status); }; }; then
3262 ac_cv_lib_fl_yywrap=yes
3263else
3264 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003265sed 's/^/| /' conftest.$ac_ext >&5
3266
John Criswell7a73b802003-06-30 21:59:07 +00003267ac_cv_lib_fl_yywrap=no
3268fi
3269rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3270LIBS=$ac_check_lib_save_LIBS
3271fi
3272echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3273echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3274if test $ac_cv_lib_fl_yywrap = yes; then
3275 LEXLIB="-lfl"
3276else
3277 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3278echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3279if test "${ac_cv_lib_l_yywrap+set}" = set; then
3280 echo $ECHO_N "(cached) $ECHO_C" >&6
3281else
3282 ac_check_lib_save_LIBS=$LIBS
3283LIBS="-ll $LIBS"
3284cat >conftest.$ac_ext <<_ACEOF
3285#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003286/* confdefs.h. */
3287_ACEOF
3288cat confdefs.h >>conftest.$ac_ext
3289cat >>conftest.$ac_ext <<_ACEOF
3290/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003291
3292/* Override any gcc2 internal prototype to avoid an error. */
3293#ifdef __cplusplus
3294extern "C"
3295#endif
3296/* We use char because int might match the return type of a gcc2
3297 builtin and then its argument prototype would still apply. */
3298char yywrap ();
John Criswell7a73b802003-06-30 21:59:07 +00003299int
3300main ()
3301{
3302yywrap ();
3303 ;
3304 return 0;
3305}
3306_ACEOF
3307rm -f conftest.$ac_objext conftest$ac_exeext
3308if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3309 (eval $ac_link) 2>&5
3310 ac_status=$?
3311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3312 (exit $ac_status); } &&
3313 { ac_try='test -s conftest$ac_exeext'
3314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3315 (eval $ac_try) 2>&5
3316 ac_status=$?
3317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3318 (exit $ac_status); }; }; then
3319 ac_cv_lib_l_yywrap=yes
3320else
3321 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003322sed 's/^/| /' conftest.$ac_ext >&5
3323
John Criswell7a73b802003-06-30 21:59:07 +00003324ac_cv_lib_l_yywrap=no
3325fi
3326rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3327LIBS=$ac_check_lib_save_LIBS
3328fi
3329echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3330echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3331if test $ac_cv_lib_l_yywrap = yes; then
3332 LEXLIB="-ll"
3333fi
3334
3335fi
3336
3337fi
3338
3339if test "x$LEX" != "x:"; then
3340 echo "$as_me:$LINENO: checking lex output file root" >&5
3341echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3342if test "${ac_cv_prog_lex_root+set}" = set; then
3343 echo $ECHO_N "(cached) $ECHO_C" >&6
3344else
3345 # The minimal lex program is just a single line: %%. But some broken lexes
3346# (Solaris, I think it was) want two %% lines, so accommodate them.
3347cat >conftest.l <<_ACEOF
3348%%
3349%%
3350_ACEOF
3351{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3352 (eval $LEX conftest.l) 2>&5
3353 ac_status=$?
3354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3355 (exit $ac_status); }
3356if test -f lex.yy.c; then
3357 ac_cv_prog_lex_root=lex.yy
3358elif test -f lexyy.c; then
3359 ac_cv_prog_lex_root=lexyy
3360else
3361 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3362echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3363 { (exit 1); exit 1; }; }
3364fi
3365fi
3366echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3367echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3368rm -f conftest.l
3369LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3370
3371echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3372echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3373if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3374 echo $ECHO_N "(cached) $ECHO_C" >&6
3375else
3376 # POSIX says lex can declare yytext either as a pointer or an array; the
3377# default is implementation-dependent. Figure out which it is, since
3378# not all implementations provide the %pointer and %array declarations.
3379ac_cv_prog_lex_yytext_pointer=no
3380echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3381ac_save_LIBS=$LIBS
3382LIBS="$LIBS $LEXLIB"
3383cat >conftest.$ac_ext <<_ACEOF
3384`cat $LEX_OUTPUT_ROOT.c`
3385_ACEOF
3386rm -f conftest.$ac_objext conftest$ac_exeext
3387if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3388 (eval $ac_link) 2>&5
3389 ac_status=$?
3390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3391 (exit $ac_status); } &&
3392 { ac_try='test -s conftest$ac_exeext'
3393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3394 (eval $ac_try) 2>&5
3395 ac_status=$?
3396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3397 (exit $ac_status); }; }; then
3398 ac_cv_prog_lex_yytext_pointer=yes
3399else
3400 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003401sed 's/^/| /' conftest.$ac_ext >&5
3402
John Criswell7a73b802003-06-30 21:59:07 +00003403fi
3404rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3405LIBS=$ac_save_LIBS
3406rm -f "${LEX_OUTPUT_ROOT}.c"
3407
3408fi
3409echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3410echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3411if test $ac_cv_prog_lex_yytext_pointer = yes; then
3412
3413cat >>confdefs.h <<\_ACEOF
3414#define YYTEXT_POINTER 1
3415_ACEOF
3416
3417fi
3418
3419fi
3420
3421fi
3422echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
3423echo "${ECHO_T}$ac_cv_has_flex" >&6
3424if test "$LEX" != "flex"; then
3425 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
3426echo "$as_me: error: flex not found but required" >&2;}
3427 { (exit 1); exit 1; }; }
3428fi
3429
3430echo "$as_me:$LINENO: checking " >&5
3431echo $ECHO_N "checking ... $ECHO_C" >&6
3432if test "${ac_cv_has_bison+set}" = set; then
3433 echo $ECHO_N "(cached) $ECHO_C" >&6
3434else
3435 for ac_prog in 'bison -y' byacc
3436do
3437 # Extract the first word of "$ac_prog", so it can be a program name with args.
3438set dummy $ac_prog; ac_word=$2
3439echo "$as_me:$LINENO: checking for $ac_word" >&5
3440echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3441if test "${ac_cv_prog_YACC+set}" = set; then
3442 echo $ECHO_N "(cached) $ECHO_C" >&6
3443else
3444 if test -n "$YACC"; then
3445 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3446else
3447as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3448for as_dir in $PATH
3449do
3450 IFS=$as_save_IFS
3451 test -z "$as_dir" && as_dir=.
3452 for ac_exec_ext in '' $ac_executable_extensions; do
3453 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3454 ac_cv_prog_YACC="$ac_prog"
3455 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3456 break 2
3457 fi
3458done
3459done
3460
3461fi
3462fi
3463YACC=$ac_cv_prog_YACC
3464if test -n "$YACC"; then
3465 echo "$as_me:$LINENO: result: $YACC" >&5
3466echo "${ECHO_T}$YACC" >&6
3467else
3468 echo "$as_me:$LINENO: result: no" >&5
3469echo "${ECHO_T}no" >&6
3470fi
3471
3472 test -n "$YACC" && break
3473done
3474test -n "$YACC" || YACC="yacc"
3475
3476
3477fi
3478echo "$as_me:$LINENO: result: $ac_cv_has_bison" >&5
3479echo "${ECHO_T}$ac_cv_has_bison" >&6
3480if test "$YACC" != "bison -y"; then
3481 { { echo "$as_me:$LINENO: error: bison not found but required" >&5
3482echo "$as_me: error: bison not found but required" >&2;}
3483 { (exit 1); exit 1; }; }
3484else
Brian Gaeke12810632004-01-13 06:52:10 +00003485 BISON=bison
John Criswell7a73b802003-06-30 21:59:07 +00003486
3487fi
3488
John Criswell7a73b802003-06-30 21:59:07 +00003489# Check whether --enable-shared or --disable-shared was given.
3490if test "${enable_shared+set}" = set; then
3491 enableval="$enable_shared"
3492 p=${PACKAGE-default}
John Criswell47fdd832003-07-14 16:52:07 +00003493 case $enableval in
3494 yes) enable_shared=yes ;;
3495 no) enable_shared=no ;;
3496 *)
3497 enable_shared=no
3498 # Look at the argument we got. We use all the common list separators.
3499 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3500 for pkg in $enableval; do
3501 IFS="$lt_save_ifs"
3502 if test "X$pkg" = "X$p"; then
3503 enable_shared=yes
3504 fi
3505 done
3506 IFS="$lt_save_ifs"
3507 ;;
3508 esac
John Criswell7a73b802003-06-30 21:59:07 +00003509else
3510 enable_shared=yes
3511fi;
John Criswell47fdd832003-07-14 16:52:07 +00003512
John Criswell7a73b802003-06-30 21:59:07 +00003513# Check whether --enable-static or --disable-static was given.
3514if test "${enable_static+set}" = set; then
3515 enableval="$enable_static"
3516 p=${PACKAGE-default}
John Criswell47fdd832003-07-14 16:52:07 +00003517 case $enableval in
3518 yes) enable_static=yes ;;
3519 no) enable_static=no ;;
3520 *)
3521 enable_static=no
3522 # Look at the argument we got. We use all the common list separators.
3523 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3524 for pkg in $enableval; do
3525 IFS="$lt_save_ifs"
3526 if test "X$pkg" = "X$p"; then
3527 enable_static=yes
3528 fi
3529 done
3530 IFS="$lt_save_ifs"
3531 ;;
3532 esac
John Criswell7a73b802003-06-30 21:59:07 +00003533else
3534 enable_static=yes
3535fi;
John Criswell47fdd832003-07-14 16:52:07 +00003536
John Criswell7a73b802003-06-30 21:59:07 +00003537# Check whether --enable-fast-install or --disable-fast-install was given.
3538if test "${enable_fast_install+set}" = set; then
3539 enableval="$enable_fast_install"
3540 p=${PACKAGE-default}
John Criswell47fdd832003-07-14 16:52:07 +00003541 case $enableval in
3542 yes) enable_fast_install=yes ;;
3543 no) enable_fast_install=no ;;
3544 *)
3545 enable_fast_install=no
3546 # Look at the argument we got. We use all the common list separators.
3547 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3548 for pkg in $enableval; do
3549 IFS="$lt_save_ifs"
3550 if test "X$pkg" = "X$p"; then
3551 enable_fast_install=yes
3552 fi
3553 done
3554 IFS="$lt_save_ifs"
3555 ;;
3556 esac
John Criswell7a73b802003-06-30 21:59:07 +00003557else
3558 enable_fast_install=yes
3559fi;
John Criswell47fdd832003-07-14 16:52:07 +00003560
3561echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3562echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3563if test "${lt_cv_path_SED+set}" = set; then
3564 echo $ECHO_N "(cached) $ECHO_C" >&6
3565else
3566 # Loop through the user's path and test for sed and gsed.
3567# Then use that list of sed's as ones to test for truncation.
3568as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3569for as_dir in $PATH
3570do
3571 IFS=$as_save_IFS
3572 test -z "$as_dir" && as_dir=.
3573 for lt_ac_prog in sed gsed; do
3574 for ac_exec_ext in '' $ac_executable_extensions; do
3575 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3576 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3577 fi
3578 done
3579 done
3580done
3581lt_ac_max=0
3582lt_ac_count=0
3583# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3584# along with /bin/sed that truncates output.
3585for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3586 test ! -f $lt_ac_sed && break
3587 cat /dev/null > conftest.in
3588 lt_ac_count=0
3589 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3590 # Check for GNU sed and select it if it is found.
3591 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3592 lt_cv_path_SED=$lt_ac_sed
3593 break
3594 fi
3595 while true; do
3596 cat conftest.in conftest.in >conftest.tmp
3597 mv conftest.tmp conftest.in
3598 cp conftest.in conftest.nl
3599 echo >>conftest.nl
3600 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3601 cmp -s conftest.out conftest.nl || break
3602 # 10000 chars as input seems more than enough
3603 test $lt_ac_count -gt 10 && break
3604 lt_ac_count=`expr $lt_ac_count + 1`
3605 if test $lt_ac_count -gt $lt_ac_max; then
3606 lt_ac_max=$lt_ac_count
3607 lt_cv_path_SED=$lt_ac_sed
3608 fi
3609 done
3610done
3611SED=$lt_cv_path_SED
3612
John Criswell7a73b802003-06-30 21:59:07 +00003613fi
3614
John Criswell47fdd832003-07-14 16:52:07 +00003615echo "$as_me:$LINENO: result: $SED" >&5
3616echo "${ECHO_T}$SED" >&6
3617
3618echo "$as_me:$LINENO: checking for egrep" >&5
3619echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3620if test "${ac_cv_prog_egrep+set}" = set; then
3621 echo $ECHO_N "(cached) $ECHO_C" >&6
3622else
3623 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3624 then ac_cv_prog_egrep='grep -E'
3625 else ac_cv_prog_egrep='egrep'
3626 fi
3627fi
3628echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3629echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3630 EGREP=$ac_cv_prog_egrep
3631
3632
John Criswell7a73b802003-06-30 21:59:07 +00003633
3634# Check whether --with-gnu-ld or --without-gnu-ld was given.
3635if test "${with_gnu_ld+set}" = set; then
3636 withval="$with_gnu_ld"
3637 test "$withval" = no || with_gnu_ld=yes
3638else
3639 with_gnu_ld=no
3640fi;
3641ac_prog=ld
3642if test "$GCC" = yes; then
3643 # Check if gcc -print-prog-name=ld gives a path.
John Criswell47fdd832003-07-14 16:52:07 +00003644 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3645echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00003646 case $host in
3647 *-*-mingw*)
3648 # gcc leaves a trailing carriage return which upsets mingw
3649 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3650 *)
3651 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3652 esac
3653 case $ac_prog in
3654 # Accept absolute paths.
John Criswell47fdd832003-07-14 16:52:07 +00003655 [\\/]* | ?:[\\/]*)
John Criswell7a73b802003-06-30 21:59:07 +00003656 re_direlt='/[^/][^/]*/\.\./'
3657 # Canonicalize the path of ld
John Criswell47fdd832003-07-14 16:52:07 +00003658 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
John Criswell7a73b802003-06-30 21:59:07 +00003659 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
John Criswell47fdd832003-07-14 16:52:07 +00003660 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
John Criswell7a73b802003-06-30 21:59:07 +00003661 done
3662 test -z "$LD" && LD="$ac_prog"
3663 ;;
3664 "")
3665 # If it fails, then pretend we aren't using GCC.
3666 ac_prog=ld
3667 ;;
3668 *)
3669 # If it is relative, then search for the first ld in PATH.
3670 with_gnu_ld=unknown
3671 ;;
3672 esac
3673elif test "$with_gnu_ld" = yes; then
3674 echo "$as_me:$LINENO: checking for GNU ld" >&5
3675echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3676else
3677 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3678echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3679fi
3680if test "${lt_cv_path_LD+set}" = set; then
3681 echo $ECHO_N "(cached) $ECHO_C" >&6
3682else
3683 if test -z "$LD"; then
John Criswell47fdd832003-07-14 16:52:07 +00003684 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +00003685 for ac_dir in $PATH; do
John Criswell47fdd832003-07-14 16:52:07 +00003686 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00003687 test -z "$ac_dir" && ac_dir=.
3688 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3689 lt_cv_path_LD="$ac_dir/$ac_prog"
3690 # Check to see if the program is GNU ld. I'd rather use --version,
3691 # but apparently some GNU ld's only accept -v.
3692 # Break only if it was the GNU/non-GNU ld that we prefer.
John Criswell47fdd832003-07-14 16:52:07 +00003693 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3694 *GNU* | *'with BFD'*)
John Criswell7a73b802003-06-30 21:59:07 +00003695 test "$with_gnu_ld" != no && break
John Criswell47fdd832003-07-14 16:52:07 +00003696 ;;
3697 *)
John Criswell7a73b802003-06-30 21:59:07 +00003698 test "$with_gnu_ld" != yes && break
John Criswell47fdd832003-07-14 16:52:07 +00003699 ;;
3700 esac
John Criswell7a73b802003-06-30 21:59:07 +00003701 fi
3702 done
John Criswell47fdd832003-07-14 16:52:07 +00003703 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00003704else
3705 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3706fi
3707fi
3708
3709LD="$lt_cv_path_LD"
3710if test -n "$LD"; then
3711 echo "$as_me:$LINENO: result: $LD" >&5
3712echo "${ECHO_T}$LD" >&6
3713else
3714 echo "$as_me:$LINENO: result: no" >&5
3715echo "${ECHO_T}no" >&6
3716fi
3717test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3718echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3719 { (exit 1); exit 1; }; }
3720echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3721echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3722if test "${lt_cv_prog_gnu_ld+set}" = set; then
3723 echo $ECHO_N "(cached) $ECHO_C" >&6
3724else
3725 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
John Criswell47fdd832003-07-14 16:52:07 +00003726case `"$LD" -v 2>&1 </dev/null` in
3727*GNU* | *'with BFD'*)
John Criswell7a73b802003-06-30 21:59:07 +00003728 lt_cv_prog_gnu_ld=yes
John Criswell47fdd832003-07-14 16:52:07 +00003729 ;;
3730*)
John Criswell7a73b802003-06-30 21:59:07 +00003731 lt_cv_prog_gnu_ld=no
John Criswell47fdd832003-07-14 16:52:07 +00003732 ;;
3733esac
John Criswell7a73b802003-06-30 21:59:07 +00003734fi
3735echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3736echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3737with_gnu_ld=$lt_cv_prog_gnu_ld
3738
3739
3740echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3741echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3742if test "${lt_cv_ld_reload_flag+set}" = set; then
3743 echo $ECHO_N "(cached) $ECHO_C" >&6
3744else
3745 lt_cv_ld_reload_flag='-r'
3746fi
3747echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3748echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3749reload_flag=$lt_cv_ld_reload_flag
John Criswell47fdd832003-07-14 16:52:07 +00003750case $reload_flag in
3751"" | " "*) ;;
3752*) reload_flag=" $reload_flag" ;;
3753esac
3754reload_cmds='$LD$reload_flag -o $output$reload_objs'
John Criswell7a73b802003-06-30 21:59:07 +00003755
3756echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3757echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3758if test "${lt_cv_path_NM+set}" = set; then
3759 echo $ECHO_N "(cached) $ECHO_C" >&6
3760else
3761 if test -n "$NM"; then
3762 # Let the user override the test.
3763 lt_cv_path_NM="$NM"
3764else
John Criswell47fdd832003-07-14 16:52:07 +00003765 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +00003766 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
John Criswell47fdd832003-07-14 16:52:07 +00003767 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00003768 test -z "$ac_dir" && ac_dir=.
John Criswell47fdd832003-07-14 16:52:07 +00003769 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3770 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
John Criswell7a73b802003-06-30 21:59:07 +00003771 # Check to see if the nm accepts a BSD-compat flag.
3772 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3773 # nm: unknown option "B" ignored
3774 # Tru64's nm complains that /dev/null is an invalid object file
John Criswell47fdd832003-07-14 16:52:07 +00003775 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3776 */dev/null* | *'Invalid file or object type'*)
John Criswell7a73b802003-06-30 21:59:07 +00003777 lt_cv_path_NM="$tmp_nm -B"
3778 break
John Criswell47fdd832003-07-14 16:52:07 +00003779 ;;
3780 *)
3781 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3782 */dev/null*)
3783 lt_cv_path_NM="$tmp_nm -p"
3784 break
3785 ;;
3786 *)
3787 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3788 continue # so that we can try to find one that supports BSD flags
3789 ;;
3790 esac
3791 esac
John Criswell7a73b802003-06-30 21:59:07 +00003792 fi
3793 done
John Criswell47fdd832003-07-14 16:52:07 +00003794 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00003795 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3796fi
3797fi
John Criswell47fdd832003-07-14 16:52:07 +00003798echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3799echo "${ECHO_T}$lt_cv_path_NM" >&6
John Criswell7a73b802003-06-30 21:59:07 +00003800NM="$lt_cv_path_NM"
John Criswell7a73b802003-06-30 21:59:07 +00003801
3802echo "$as_me:$LINENO: checking whether ln -s works" >&5
3803echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3804LN_S=$as_ln_s
3805if test "$LN_S" = "ln -s"; then
3806 echo "$as_me:$LINENO: result: yes" >&5
3807echo "${ECHO_T}yes" >&6
3808else
3809 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3810echo "${ECHO_T}no, using $LN_S" >&6
3811fi
3812
John Criswell47fdd832003-07-14 16:52:07 +00003813echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3814echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00003815if test "${lt_cv_deplibs_check_method+set}" = set; then
3816 echo $ECHO_N "(cached) $ECHO_C" >&6
3817else
3818 lt_cv_file_magic_cmd='$MAGIC_CMD'
3819lt_cv_file_magic_test_file=
3820lt_cv_deplibs_check_method='unknown'
3821# Need to set the preceding variable on all platforms that support
3822# interlibrary dependencies.
3823# 'none' -- dependencies not supported.
3824# `unknown' -- same as none, but documents that we really don't know.
3825# 'pass_all' -- all dependencies passed with no checks.
3826# 'test_compile' -- check by making test program.
3827# 'file_magic [[regex]]' -- check by looking for files in library path
John Criswell47fdd832003-07-14 16:52:07 +00003828# which responds to the $file_magic_cmd with a given extended regex.
John Criswell7a73b802003-06-30 21:59:07 +00003829# If you have `file' or equivalent on your system and you're not sure
3830# whether `pass_all' will *always* work, you probably want this one.
3831
3832case $host_os in
3833aix4* | aix5*)
3834 lt_cv_deplibs_check_method=pass_all
3835 ;;
3836
3837beos*)
3838 lt_cv_deplibs_check_method=pass_all
3839 ;;
3840
3841bsdi4*)
3842 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3843 lt_cv_file_magic_cmd='/usr/bin/file -L'
3844 lt_cv_file_magic_test_file=/shlib/libc.so
3845 ;;
3846
3847cygwin* | mingw* | pw32*)
John Criswell47fdd832003-07-14 16:52:07 +00003848 # win32_libid is a shell function defined in ltmain.sh
3849 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3850 lt_cv_file_magic_cmd='win32_libid'
John Criswell7a73b802003-06-30 21:59:07 +00003851 ;;
3852
3853darwin* | rhapsody*)
John Criswell47fdd832003-07-14 16:52:07 +00003854 # this will be overwritten by pass_all, but leave it in just in case
John Criswell7a73b802003-06-30 21:59:07 +00003855 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3856 lt_cv_file_magic_cmd='/usr/bin/file -L'
3857 case "$host_os" in
3858 rhapsody* | darwin1.[012])
John Criswell47fdd832003-07-14 16:52:07 +00003859 lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
John Criswell7a73b802003-06-30 21:59:07 +00003860 ;;
3861 *) # Darwin 1.3 on
3862 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3863 ;;
3864 esac
John Criswell47fdd832003-07-14 16:52:07 +00003865 lt_cv_deplibs_check_method=pass_all
John Criswell7a73b802003-06-30 21:59:07 +00003866 ;;
3867
3868freebsd*)
3869 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3870 case $host_cpu in
3871 i*86 )
3872 # Not sure whether the presence of OpenBSD here was a mistake.
3873 # Let's accept both of them until this is cleared up.
3874 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3875 lt_cv_file_magic_cmd=/usr/bin/file
3876 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3877 ;;
3878 esac
3879 else
3880 lt_cv_deplibs_check_method=pass_all
3881 fi
3882 ;;
3883
3884gnu*)
3885 lt_cv_deplibs_check_method=pass_all
3886 ;;
3887
John Criswell47fdd832003-07-14 16:52:07 +00003888hpux10.20* | hpux11*)
John Criswell7a73b802003-06-30 21:59:07 +00003889 lt_cv_file_magic_cmd=/usr/bin/file
John Criswell47fdd832003-07-14 16:52:07 +00003890 case "$host_cpu" in
3891 ia64*)
3892 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3893 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3894 ;;
3895 hppa*64*)
3896 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]'
3897 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3898 ;;
3899 *)
3900 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3901 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3902 ;;
3903 esac
John Criswell7a73b802003-06-30 21:59:07 +00003904 ;;
3905
John Criswell47fdd832003-07-14 16:52:07 +00003906irix5* | irix6* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +00003907 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00003908 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +00003909 # this will be overridden with pass_all, but let us keep it just in case
3910 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3911 ;;
3912 *)
3913 case $LD in
3914 *-32|*"-32 ") libmagic=32-bit;;
3915 *-n32|*"-n32 ") libmagic=N32;;
3916 *-64|*"-64 ") libmagic=64-bit;;
3917 *) libmagic=never-match;;
3918 esac
3919 # this will be overridden with pass_all, but let us keep it just in case
3920 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3921 ;;
3922 esac
3923 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3924 lt_cv_deplibs_check_method=pass_all
3925 ;;
3926
3927# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +00003928linux*)
John Criswell7a73b802003-06-30 21:59:07 +00003929 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +00003930 alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*)
John Criswell7a73b802003-06-30 21:59:07 +00003931 lt_cv_deplibs_check_method=pass_all ;;
3932 *)
3933 # glibc up to 2.1.1 does not perform some relocations on ARM
3934 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3935 esac
3936 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3937 ;;
3938
3939netbsd*)
3940 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +00003941 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
John Criswell7a73b802003-06-30 21:59:07 +00003942 else
John Criswell47fdd832003-07-14 16:52:07 +00003943 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
John Criswell7a73b802003-06-30 21:59:07 +00003944 fi
3945 ;;
3946
3947newos6*)
3948 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3949 lt_cv_file_magic_cmd=/usr/bin/file
3950 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3951 ;;
3952
John Criswell47fdd832003-07-14 16:52:07 +00003953nto-qnx)
3954 lt_cv_deplibs_check_method=unknown
3955 ;;
3956
John Criswell7a73b802003-06-30 21:59:07 +00003957openbsd*)
3958 lt_cv_file_magic_cmd=/usr/bin/file
3959 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3960 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3961 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3962 else
3963 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3964 fi
3965 ;;
3966
3967osf3* | osf4* | osf5*)
3968 # this will be overridden with pass_all, but let us keep it just in case
3969 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3970 lt_cv_file_magic_test_file=/shlib/libc.so
3971 lt_cv_deplibs_check_method=pass_all
3972 ;;
3973
3974sco3.2v5*)
3975 lt_cv_deplibs_check_method=pass_all
3976 ;;
3977
3978solaris*)
3979 lt_cv_deplibs_check_method=pass_all
3980 lt_cv_file_magic_test_file=/lib/libc.so
3981 ;;
3982
John Criswell7a73b802003-06-30 21:59:07 +00003983sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3984 case $host_vendor in
3985 motorola)
3986 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]'
3987 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3988 ;;
3989 ncr)
3990 lt_cv_deplibs_check_method=pass_all
3991 ;;
3992 sequent)
3993 lt_cv_file_magic_cmd='/bin/file'
3994 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3995 ;;
3996 sni)
3997 lt_cv_file_magic_cmd='/bin/file'
3998 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3999 lt_cv_file_magic_test_file=/lib/libc.so
4000 ;;
John Criswell47fdd832003-07-14 16:52:07 +00004001 siemens)
4002 lt_cv_deplibs_check_method=pass_all
4003 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004004 esac
4005 ;;
John Criswell47fdd832003-07-14 16:52:07 +00004006
4007sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4008 lt_cv_deplibs_check_method=pass_all
4009 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004010esac
4011
4012fi
4013echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4014echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4015file_magic_cmd=$lt_cv_file_magic_cmd
4016deplibs_check_method=$lt_cv_deplibs_check_method
John Criswell47fdd832003-07-14 16:52:07 +00004017test -z "$deplibs_check_method" && deplibs_check_method=unknown
John Criswell7a73b802003-06-30 21:59:07 +00004018
4019
4020
4021
John Criswell47fdd832003-07-14 16:52:07 +00004022# If no C compiler was specified, use CC.
4023LTCC=${LTCC-"$CC"}
John Criswell7a73b802003-06-30 21:59:07 +00004024
John Criswell47fdd832003-07-14 16:52:07 +00004025# Allow CC to be a program name with arguments.
4026compiler=$CC
John Criswell7a73b802003-06-30 21:59:07 +00004027
John Criswell47fdd832003-07-14 16:52:07 +00004028# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4029if test "${enable_libtool_lock+set}" = set; then
4030 enableval="$enable_libtool_lock"
John Criswell7a73b802003-06-30 21:59:07 +00004031
John Criswell47fdd832003-07-14 16:52:07 +00004032fi;
4033test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
John Criswell7a73b802003-06-30 21:59:07 +00004034
John Criswell47fdd832003-07-14 16:52:07 +00004035# Some flags need to be propagated to the compiler or linker for good
4036# libtool support.
4037case $host in
4038ia64-*-hpux*)
4039 # Find out which ABI we are using.
4040 echo 'int i;' > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4042 (eval $ac_compile) 2>&5
4043 ac_status=$?
4044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4045 (exit $ac_status); }; then
John Criswell47fdd832003-07-14 16:52:07 +00004046 case `/usr/bin/file conftest.$ac_objext` in
4047 *ELF-32*)
4048 HPUX_IA64_MODE="32"
4049 ;;
4050 *ELF-64*)
4051 HPUX_IA64_MODE="64"
4052 ;;
4053 esac
4054 fi
4055 rm -rf conftest*
4056 ;;
4057*-*-irix6*)
4058 # Find out which ABI we are using.
John Criswelldc76e322004-07-23 15:40:57 +00004059 echo '#line 4059 "configure"' > conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +00004060 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4061 (eval $ac_compile) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00004062 ac_status=$?
4063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00004064 (exit $ac_status); }; then
4065 if test "$lt_cv_prog_gnu_ld" = yes; then
4066 case `/usr/bin/file conftest.$ac_objext` in
4067 *32-bit*)
4068 LD="${LD-ld} -melf32bsmip"
4069 ;;
4070 *N32*)
4071 LD="${LD-ld} -melf32bmipn32"
4072 ;;
4073 *64-bit*)
4074 LD="${LD-ld} -melf64bmip"
4075 ;;
4076 esac
4077 else
4078 case `/usr/bin/file conftest.$ac_objext` in
4079 *32-bit*)
4080 LD="${LD-ld} -32"
4081 ;;
4082 *N32*)
4083 LD="${LD-ld} -n32"
4084 ;;
4085 *64-bit*)
4086 LD="${LD-ld} -64"
4087 ;;
4088 esac
4089 fi
4090 fi
4091 rm -rf conftest*
4092 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004093
John Criswell47fdd832003-07-14 16:52:07 +00004094x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4095 # Find out which ABI we are using.
4096 echo 'int i;' > conftest.$ac_ext
4097 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4098 (eval $ac_compile) 2>&5
4099 ac_status=$?
4100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4101 (exit $ac_status); }; then
4102 case "`/usr/bin/file conftest.o`" in
4103 *32-bit*)
4104 case $host in
4105 x86_64-*linux*)
4106 LD="${LD-ld} -m elf_i386"
4107 ;;
4108 ppc64-*linux*)
4109 LD="${LD-ld} -m elf32ppclinux"
4110 ;;
4111 s390x-*linux*)
4112 LD="${LD-ld} -m elf_s390"
4113 ;;
4114 sparc64-*linux*)
4115 LD="${LD-ld} -m elf32_sparc"
4116 ;;
4117 esac
4118 ;;
4119 *64-bit*)
4120 case $host in
4121 x86_64-*linux*)
4122 LD="${LD-ld} -m elf_x86_64"
4123 ;;
4124 ppc*-*linux*|powerpc*-*linux*)
4125 LD="${LD-ld} -m elf64ppc"
4126 ;;
4127 s390*-*linux*)
4128 LD="${LD-ld} -m elf64_s390"
4129 ;;
4130 sparc*-*linux*)
4131 LD="${LD-ld} -m elf64_sparc"
4132 ;;
4133 esac
4134 ;;
4135 esac
4136 fi
4137 rm -rf conftest*
4138 ;;
4139
4140*-*-sco3.2v5*)
4141 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4142 SAVE_CFLAGS="$CFLAGS"
4143 CFLAGS="$CFLAGS -belf"
4144 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4145echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4146if test "${lt_cv_cc_needs_belf+set}" = set; then
4147 echo $ECHO_N "(cached) $ECHO_C" >&6
4148else
4149 ac_ext=c
4150ac_cpp='$CPP $CPPFLAGS'
4151ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4152ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4153ac_compiler_gnu=$ac_cv_c_compiler_gnu
4154
4155 cat >conftest.$ac_ext <<_ACEOF
4156#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004157/* confdefs.h. */
4158_ACEOF
4159cat confdefs.h >>conftest.$ac_ext
4160cat >>conftest.$ac_ext <<_ACEOF
4161/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00004162
John Criswell47fdd832003-07-14 16:52:07 +00004163int
4164main ()
John Criswell7a73b802003-06-30 21:59:07 +00004165{
John Criswell7a73b802003-06-30 21:59:07 +00004166
John Criswell47fdd832003-07-14 16:52:07 +00004167 ;
4168 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00004169}
John Criswell47fdd832003-07-14 16:52:07 +00004170_ACEOF
4171rm -f conftest.$ac_objext conftest$ac_exeext
4172if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
John Criswell7a73b802003-06-30 21:59:07 +00004173 (eval $ac_link) 2>&5
4174 ac_status=$?
4175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00004176 (exit $ac_status); } &&
4177 { ac_try='test -s conftest$ac_exeext'
4178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4179 (eval $ac_try) 2>&5
4180 ac_status=$?
4181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4182 (exit $ac_status); }; }; then
4183 lt_cv_cc_needs_belf=yes
John Criswell7a73b802003-06-30 21:59:07 +00004184else
John Criswell47fdd832003-07-14 16:52:07 +00004185 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004186sed 's/^/| /' conftest.$ac_ext >&5
4187
John Criswell47fdd832003-07-14 16:52:07 +00004188lt_cv_cc_needs_belf=no
John Criswell7a73b802003-06-30 21:59:07 +00004189fi
John Criswell47fdd832003-07-14 16:52:07 +00004190rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4191 ac_ext=c
4192ac_cpp='$CPP $CPPFLAGS'
4193ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4194ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4195ac_compiler_gnu=$ac_cv_c_compiler_gnu
4196
John Criswell7a73b802003-06-30 21:59:07 +00004197fi
John Criswell47fdd832003-07-14 16:52:07 +00004198echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4199echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4200 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4201 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4202 CFLAGS="$SAVE_CFLAGS"
4203 fi
4204 ;;
4205
4206esac
4207
4208need_locks="$enable_libtool_lock"
4209
John Criswell7a73b802003-06-30 21:59:07 +00004210
4211
4212echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4213echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4214if test "${ac_cv_header_stdc+set}" = set; then
4215 echo $ECHO_N "(cached) $ECHO_C" >&6
4216else
4217 cat >conftest.$ac_ext <<_ACEOF
4218#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004219/* confdefs.h. */
4220_ACEOF
4221cat confdefs.h >>conftest.$ac_ext
4222cat >>conftest.$ac_ext <<_ACEOF
4223/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004224#include <stdlib.h>
4225#include <stdarg.h>
4226#include <string.h>
4227#include <float.h>
4228
John Criswell0c38eaf2003-09-10 15:17:25 +00004229int
4230main ()
4231{
4232
4233 ;
4234 return 0;
4235}
John Criswell7a73b802003-06-30 21:59:07 +00004236_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004237rm -f conftest.$ac_objext
4238if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4239 (eval $ac_compile) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00004240 ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +00004241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004242 (exit $ac_status); } &&
4243 { ac_try='test -s conftest.$ac_objext'
4244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4245 (eval $ac_try) 2>&5
4246 ac_status=$?
4247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4248 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00004249 ac_cv_header_stdc=yes
4250else
4251 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004252sed 's/^/| /' conftest.$ac_ext >&5
4253
4254ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00004255fi
John Criswell0c38eaf2003-09-10 15:17:25 +00004256rm -f conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004257
4258if test $ac_cv_header_stdc = yes; then
4259 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4260 cat >conftest.$ac_ext <<_ACEOF
4261#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004262/* confdefs.h. */
4263_ACEOF
4264cat confdefs.h >>conftest.$ac_ext
4265cat >>conftest.$ac_ext <<_ACEOF
4266/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004267#include <string.h>
4268
4269_ACEOF
4270if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00004271 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00004272 :
4273else
4274 ac_cv_header_stdc=no
4275fi
4276rm -f conftest*
4277
4278fi
4279
4280if test $ac_cv_header_stdc = yes; then
4281 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4282 cat >conftest.$ac_ext <<_ACEOF
4283#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004284/* confdefs.h. */
4285_ACEOF
4286cat confdefs.h >>conftest.$ac_ext
4287cat >>conftest.$ac_ext <<_ACEOF
4288/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004289#include <stdlib.h>
4290
4291_ACEOF
4292if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00004293 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00004294 :
4295else
4296 ac_cv_header_stdc=no
4297fi
4298rm -f conftest*
4299
4300fi
4301
4302if test $ac_cv_header_stdc = yes; then
4303 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4304 if test "$cross_compiling" = yes; then
4305 :
4306else
4307 cat >conftest.$ac_ext <<_ACEOF
4308#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004309/* confdefs.h. */
4310_ACEOF
4311cat confdefs.h >>conftest.$ac_ext
4312cat >>conftest.$ac_ext <<_ACEOF
4313/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004314#include <ctype.h>
4315#if ((' ' & 0x0FF) == 0x020)
4316# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4317# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4318#else
John Criswell0c38eaf2003-09-10 15:17:25 +00004319# define ISLOWER(c) \
4320 (('a' <= (c) && (c) <= 'i') \
John Criswell7a73b802003-06-30 21:59:07 +00004321 || ('j' <= (c) && (c) <= 'r') \
4322 || ('s' <= (c) && (c) <= 'z'))
4323# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4324#endif
4325
4326#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4327int
4328main ()
4329{
4330 int i;
4331 for (i = 0; i < 256; i++)
4332 if (XOR (islower (i), ISLOWER (i))
4333 || toupper (i) != TOUPPER (i))
4334 exit(2);
4335 exit (0);
4336}
4337_ACEOF
4338rm -f conftest$ac_exeext
4339if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4340 (eval $ac_link) 2>&5
4341 ac_status=$?
4342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4343 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4345 (eval $ac_try) 2>&5
4346 ac_status=$?
4347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4348 (exit $ac_status); }; }; then
4349 :
4350else
4351 echo "$as_me: program exited with status $ac_status" >&5
4352echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004353sed 's/^/| /' conftest.$ac_ext >&5
4354
John Criswell7a73b802003-06-30 21:59:07 +00004355( exit $ac_status )
4356ac_cv_header_stdc=no
4357fi
John Criswell0c38eaf2003-09-10 15:17:25 +00004358rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004359fi
4360fi
4361fi
4362echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4363echo "${ECHO_T}$ac_cv_header_stdc" >&6
4364if test $ac_cv_header_stdc = yes; then
4365
4366cat >>confdefs.h <<\_ACEOF
4367#define STDC_HEADERS 1
4368_ACEOF
4369
4370fi
4371
4372# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4373
4374
4375
4376
4377
4378
4379
4380
4381
4382for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4383 inttypes.h stdint.h unistd.h
4384do
4385as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4386echo "$as_me:$LINENO: checking for $ac_header" >&5
4387echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4388if eval "test \"\${$as_ac_Header+set}\" = set"; then
4389 echo $ECHO_N "(cached) $ECHO_C" >&6
4390else
4391 cat >conftest.$ac_ext <<_ACEOF
4392#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004393/* confdefs.h. */
4394_ACEOF
4395cat confdefs.h >>conftest.$ac_ext
4396cat >>conftest.$ac_ext <<_ACEOF
4397/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004398$ac_includes_default
4399
4400#include <$ac_header>
4401_ACEOF
4402rm -f conftest.$ac_objext
4403if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4404 (eval $ac_compile) 2>&5
4405 ac_status=$?
4406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4407 (exit $ac_status); } &&
4408 { ac_try='test -s conftest.$ac_objext'
4409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4410 (eval $ac_try) 2>&5
4411 ac_status=$?
4412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4413 (exit $ac_status); }; }; then
4414 eval "$as_ac_Header=yes"
4415else
4416 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004417sed 's/^/| /' conftest.$ac_ext >&5
4418
John Criswell7a73b802003-06-30 21:59:07 +00004419eval "$as_ac_Header=no"
4420fi
4421rm -f conftest.$ac_objext conftest.$ac_ext
4422fi
4423echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4424echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4425if test `eval echo '${'$as_ac_Header'}'` = yes; then
4426 cat >>confdefs.h <<_ACEOF
4427#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4428_ACEOF
4429
4430fi
4431
4432done
4433
4434
4435
4436for ac_header in dlfcn.h
4437do
4438as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4439if eval "test \"\${$as_ac_Header+set}\" = set"; then
4440 echo "$as_me:$LINENO: checking for $ac_header" >&5
4441echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4442if eval "test \"\${$as_ac_Header+set}\" = set"; then
4443 echo $ECHO_N "(cached) $ECHO_C" >&6
4444fi
4445echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4446echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4447else
4448 # Is the header compilable?
4449echo "$as_me:$LINENO: checking $ac_header usability" >&5
4450echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4451cat >conftest.$ac_ext <<_ACEOF
4452#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004453/* confdefs.h. */
4454_ACEOF
4455cat confdefs.h >>conftest.$ac_ext
4456cat >>conftest.$ac_ext <<_ACEOF
4457/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004458$ac_includes_default
4459#include <$ac_header>
4460_ACEOF
4461rm -f conftest.$ac_objext
4462if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4463 (eval $ac_compile) 2>&5
4464 ac_status=$?
4465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4466 (exit $ac_status); } &&
4467 { ac_try='test -s conftest.$ac_objext'
4468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4469 (eval $ac_try) 2>&5
4470 ac_status=$?
4471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4472 (exit $ac_status); }; }; then
4473 ac_header_compiler=yes
4474else
4475 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004476sed 's/^/| /' conftest.$ac_ext >&5
4477
John Criswell7a73b802003-06-30 21:59:07 +00004478ac_header_compiler=no
4479fi
4480rm -f conftest.$ac_objext conftest.$ac_ext
4481echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4482echo "${ECHO_T}$ac_header_compiler" >&6
4483
4484# Is the header present?
4485echo "$as_me:$LINENO: checking $ac_header presence" >&5
4486echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4487cat >conftest.$ac_ext <<_ACEOF
4488#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004489/* confdefs.h. */
4490_ACEOF
4491cat confdefs.h >>conftest.$ac_ext
4492cat >>conftest.$ac_ext <<_ACEOF
4493/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004494#include <$ac_header>
4495_ACEOF
4496if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4497 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4498 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004499 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00004500 rm -f conftest.er1
4501 cat conftest.err >&5
4502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4503 (exit $ac_status); } >/dev/null; then
4504 if test -s conftest.err; then
4505 ac_cpp_err=$ac_c_preproc_warn_flag
4506 else
4507 ac_cpp_err=
4508 fi
4509else
4510 ac_cpp_err=yes
4511fi
4512if test -z "$ac_cpp_err"; then
4513 ac_header_preproc=yes
4514else
4515 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004516sed 's/^/| /' conftest.$ac_ext >&5
4517
John Criswell7a73b802003-06-30 21:59:07 +00004518 ac_header_preproc=no
4519fi
4520rm -f conftest.err conftest.$ac_ext
4521echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4522echo "${ECHO_T}$ac_header_preproc" >&6
4523
4524# So? What about this header?
4525case $ac_header_compiler:$ac_header_preproc in
4526 yes:no )
4527 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4528echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4529 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004530echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4531 (
4532 cat <<\_ASBOX
4533## ------------------------------------ ##
4534## Report this to bug-autoconf@gnu.org. ##
4535## ------------------------------------ ##
4536_ASBOX
4537 ) |
4538 sed "s/^/$as_me: WARNING: /" >&2
4539 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004540 no:yes )
4541 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4542echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4543 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4544echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4545 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004546echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4547 (
4548 cat <<\_ASBOX
4549## ------------------------------------ ##
4550## Report this to bug-autoconf@gnu.org. ##
4551## ------------------------------------ ##
4552_ASBOX
4553 ) |
4554 sed "s/^/$as_me: WARNING: /" >&2
4555 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004556esac
4557echo "$as_me:$LINENO: checking for $ac_header" >&5
4558echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4559if eval "test \"\${$as_ac_Header+set}\" = set"; then
4560 echo $ECHO_N "(cached) $ECHO_C" >&6
4561else
4562 eval "$as_ac_Header=$ac_header_preproc"
4563fi
4564echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4565echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4566
4567fi
4568if test `eval echo '${'$as_ac_Header'}'` = yes; then
4569 cat >>confdefs.h <<_ACEOF
4570#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4571_ACEOF
4572
4573fi
4574
4575done
4576
John Criswell47fdd832003-07-14 16:52:07 +00004577ac_ext=cc
4578ac_cpp='$CXXCPP $CPPFLAGS'
4579ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4580ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4581ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4582echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4583echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4584if test -z "$CXXCPP"; then
4585 if test "${ac_cv_prog_CXXCPP+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00004586 echo $ECHO_N "(cached) $ECHO_C" >&6
4587else
John Criswell47fdd832003-07-14 16:52:07 +00004588 # Double quotes because CXXCPP needs to be expanded
4589 for CXXCPP in "$CXX -E" "/lib/cpp"
4590 do
4591 ac_preproc_ok=false
4592for ac_cxx_preproc_warn_flag in '' yes
4593do
4594 # Use a header file that comes with gcc, so configuring glibc
4595 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00004596 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4597 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +00004598 # On the NeXT, cc -E runs the code through the compiler's parser,
4599 # not just through cpp. "Syntax error" is here to catch this case.
4600 cat >conftest.$ac_ext <<_ACEOF
4601#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004602/* confdefs.h. */
4603_ACEOF
4604cat confdefs.h >>conftest.$ac_ext
4605cat >>conftest.$ac_ext <<_ACEOF
4606/* end confdefs.h. */
4607#ifdef __STDC__
4608# include <limits.h>
4609#else
4610# include <assert.h>
4611#endif
John Criswell47fdd832003-07-14 16:52:07 +00004612 Syntax error
4613_ACEOF
4614if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4615 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4616 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004617 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00004618 rm -f conftest.er1
4619 cat conftest.err >&5
4620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4621 (exit $ac_status); } >/dev/null; then
4622 if test -s conftest.err; then
4623 ac_cpp_err=$ac_cxx_preproc_warn_flag
John Criswell7a73b802003-06-30 21:59:07 +00004624 else
John Criswell47fdd832003-07-14 16:52:07 +00004625 ac_cpp_err=
John Criswell7a73b802003-06-30 21:59:07 +00004626 fi
John Criswell47fdd832003-07-14 16:52:07 +00004627else
4628 ac_cpp_err=yes
4629fi
4630if test -z "$ac_cpp_err"; then
4631 :
4632else
4633 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004634sed 's/^/| /' conftest.$ac_ext >&5
4635
John Criswell47fdd832003-07-14 16:52:07 +00004636 # Broken: fails on valid input.
4637continue
4638fi
4639rm -f conftest.err conftest.$ac_ext
4640
4641 # OK, works on sane cases. Now check whether non-existent headers
4642 # can be detected and how.
4643 cat >conftest.$ac_ext <<_ACEOF
4644#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004645/* confdefs.h. */
4646_ACEOF
4647cat confdefs.h >>conftest.$ac_ext
4648cat >>conftest.$ac_ext <<_ACEOF
4649/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00004650#include <ac_nonexistent.h>
4651_ACEOF
4652if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4653 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4654 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004655 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00004656 rm -f conftest.er1
4657 cat conftest.err >&5
4658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4659 (exit $ac_status); } >/dev/null; then
4660 if test -s conftest.err; then
4661 ac_cpp_err=$ac_cxx_preproc_warn_flag
4662 else
4663 ac_cpp_err=
4664 fi
4665else
4666 ac_cpp_err=yes
4667fi
4668if test -z "$ac_cpp_err"; then
4669 # Broken: success on invalid input.
4670continue
4671else
4672 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004673sed 's/^/| /' conftest.$ac_ext >&5
4674
John Criswell47fdd832003-07-14 16:52:07 +00004675 # Passes both tests.
4676ac_preproc_ok=:
4677break
4678fi
4679rm -f conftest.err conftest.$ac_ext
4680
4681done
4682# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4683rm -f conftest.err conftest.$ac_ext
4684if $ac_preproc_ok; then
4685 break
John Criswell7a73b802003-06-30 21:59:07 +00004686fi
4687
John Criswell47fdd832003-07-14 16:52:07 +00004688 done
4689 ac_cv_prog_CXXCPP=$CXXCPP
4690
4691fi
4692 CXXCPP=$ac_cv_prog_CXXCPP
4693else
4694 ac_cv_prog_CXXCPP=$CXXCPP
4695fi
4696echo "$as_me:$LINENO: result: $CXXCPP" >&5
4697echo "${ECHO_T}$CXXCPP" >&6
4698ac_preproc_ok=false
4699for ac_cxx_preproc_warn_flag in '' yes
4700do
4701 # Use a header file that comes with gcc, so configuring glibc
4702 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00004703 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4704 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +00004705 # On the NeXT, cc -E runs the code through the compiler's parser,
4706 # not just through cpp. "Syntax error" is here to catch this case.
4707 cat >conftest.$ac_ext <<_ACEOF
4708#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004709/* confdefs.h. */
4710_ACEOF
4711cat confdefs.h >>conftest.$ac_ext
4712cat >>conftest.$ac_ext <<_ACEOF
4713/* end confdefs.h. */
4714#ifdef __STDC__
4715# include <limits.h>
4716#else
4717# include <assert.h>
4718#endif
John Criswell47fdd832003-07-14 16:52:07 +00004719 Syntax error
4720_ACEOF
4721if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4722 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4723 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004724 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00004725 rm -f conftest.er1
4726 cat conftest.err >&5
4727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4728 (exit $ac_status); } >/dev/null; then
4729 if test -s conftest.err; then
4730 ac_cpp_err=$ac_cxx_preproc_warn_flag
4731 else
4732 ac_cpp_err=
4733 fi
4734else
4735 ac_cpp_err=yes
4736fi
4737if test -z "$ac_cpp_err"; then
4738 :
4739else
4740 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004741sed 's/^/| /' conftest.$ac_ext >&5
4742
John Criswell47fdd832003-07-14 16:52:07 +00004743 # Broken: fails on valid input.
4744continue
4745fi
4746rm -f conftest.err conftest.$ac_ext
4747
4748 # OK, works on sane cases. Now check whether non-existent headers
4749 # can be detected and how.
4750 cat >conftest.$ac_ext <<_ACEOF
4751#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004752/* confdefs.h. */
4753_ACEOF
4754cat confdefs.h >>conftest.$ac_ext
4755cat >>conftest.$ac_ext <<_ACEOF
4756/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00004757#include <ac_nonexistent.h>
4758_ACEOF
4759if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4760 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4761 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004762 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00004763 rm -f conftest.er1
4764 cat conftest.err >&5
4765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4766 (exit $ac_status); } >/dev/null; then
4767 if test -s conftest.err; then
4768 ac_cpp_err=$ac_cxx_preproc_warn_flag
4769 else
4770 ac_cpp_err=
4771 fi
4772else
4773 ac_cpp_err=yes
4774fi
4775if test -z "$ac_cpp_err"; then
4776 # Broken: success on invalid input.
4777continue
4778else
4779 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004780sed 's/^/| /' conftest.$ac_ext >&5
4781
John Criswell47fdd832003-07-14 16:52:07 +00004782 # Passes both tests.
4783ac_preproc_ok=:
4784break
4785fi
4786rm -f conftest.err conftest.$ac_ext
4787
4788done
4789# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4790rm -f conftest.err conftest.$ac_ext
4791if $ac_preproc_ok; then
4792 :
4793else
John Criswell0c38eaf2003-09-10 15:17:25 +00004794 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4795See \`config.log' for more details." >&5
4796echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4797See \`config.log' for more details." >&2;}
John Criswell47fdd832003-07-14 16:52:07 +00004798 { (exit 1); exit 1; }; }
4799fi
4800
4801ac_ext=cc
4802ac_cpp='$CXXCPP $CPPFLAGS'
4803ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4804ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4805ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4806
4807
4808ac_ext=f
4809ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4810ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4811ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4812if test -n "$ac_tool_prefix"; then
John Criswell0c38eaf2003-09-10 15:17:25 +00004813 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 +00004814 do
4815 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4816set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4817echo "$as_me:$LINENO: checking for $ac_word" >&5
4818echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4819if test "${ac_cv_prog_F77+set}" = set; then
4820 echo $ECHO_N "(cached) $ECHO_C" >&6
4821else
4822 if test -n "$F77"; then
4823 ac_cv_prog_F77="$F77" # Let the user override the test.
4824else
4825as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4826for as_dir in $PATH
4827do
4828 IFS=$as_save_IFS
4829 test -z "$as_dir" && as_dir=.
4830 for ac_exec_ext in '' $ac_executable_extensions; do
4831 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4832 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4833 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4834 break 2
4835 fi
4836done
4837done
4838
4839fi
4840fi
4841F77=$ac_cv_prog_F77
4842if test -n "$F77"; then
4843 echo "$as_me:$LINENO: result: $F77" >&5
4844echo "${ECHO_T}$F77" >&6
4845else
4846 echo "$as_me:$LINENO: result: no" >&5
4847echo "${ECHO_T}no" >&6
4848fi
4849
4850 test -n "$F77" && break
4851 done
4852fi
4853if test -z "$F77"; then
4854 ac_ct_F77=$F77
John Criswell0c38eaf2003-09-10 15:17:25 +00004855 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 +00004856do
4857 # Extract the first word of "$ac_prog", so it can be a program name with args.
4858set dummy $ac_prog; ac_word=$2
4859echo "$as_me:$LINENO: checking for $ac_word" >&5
4860echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4861if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
4862 echo $ECHO_N "(cached) $ECHO_C" >&6
4863else
4864 if test -n "$ac_ct_F77"; then
4865 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4866else
4867as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4868for as_dir in $PATH
4869do
4870 IFS=$as_save_IFS
4871 test -z "$as_dir" && as_dir=.
4872 for ac_exec_ext in '' $ac_executable_extensions; do
4873 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4874 ac_cv_prog_ac_ct_F77="$ac_prog"
4875 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4876 break 2
4877 fi
4878done
4879done
4880
4881fi
4882fi
4883ac_ct_F77=$ac_cv_prog_ac_ct_F77
4884if test -n "$ac_ct_F77"; then
4885 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
4886echo "${ECHO_T}$ac_ct_F77" >&6
4887else
4888 echo "$as_me:$LINENO: result: no" >&5
4889echo "${ECHO_T}no" >&6
4890fi
4891
4892 test -n "$ac_ct_F77" && break
4893done
4894
4895 F77=$ac_ct_F77
4896fi
4897
4898
4899# Provide some information about the compiler.
John Criswelldc76e322004-07-23 15:40:57 +00004900echo "$as_me:4900:" \
John Criswell47fdd832003-07-14 16:52:07 +00004901 "checking for Fortran 77 compiler version" >&5
4902ac_compiler=`set X $ac_compile; echo $2`
4903{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4904 (eval $ac_compiler --version </dev/null >&5) 2>&5
4905 ac_status=$?
4906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4907 (exit $ac_status); }
4908{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4909 (eval $ac_compiler -v </dev/null >&5) 2>&5
4910 ac_status=$?
4911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4912 (exit $ac_status); }
4913{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4914 (eval $ac_compiler -V </dev/null >&5) 2>&5
4915 ac_status=$?
4916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4917 (exit $ac_status); }
4918
4919# If we don't use `.F' as extension, the preprocessor is not run on the
4920# input file.
4921ac_save_ext=$ac_ext
4922ac_ext=F
4923echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
4924echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
4925if test "${ac_cv_f77_compiler_gnu+set}" = set; then
4926 echo $ECHO_N "(cached) $ECHO_C" >&6
4927else
4928 cat >conftest.$ac_ext <<_ACEOF
4929 program main
4930#ifndef __GNUC__
4931 choke me
4932#endif
4933
4934 end
4935_ACEOF
4936rm -f conftest.$ac_objext
4937if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4938 (eval $ac_compile) 2>&5
4939 ac_status=$?
4940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4941 (exit $ac_status); } &&
4942 { ac_try='test -s conftest.$ac_objext'
4943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4944 (eval $ac_try) 2>&5
4945 ac_status=$?
4946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4947 (exit $ac_status); }; }; then
4948 ac_compiler_gnu=yes
4949else
4950 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004951sed 's/^/| /' conftest.$ac_ext >&5
4952
John Criswell47fdd832003-07-14 16:52:07 +00004953ac_compiler_gnu=no
4954fi
4955rm -f conftest.$ac_objext conftest.$ac_ext
4956ac_cv_f77_compiler_gnu=$ac_compiler_gnu
4957
4958fi
4959echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
4960echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
4961ac_ext=$ac_save_ext
4962G77=`test $ac_compiler_gnu = yes && echo yes`
4963ac_test_FFLAGS=${FFLAGS+set}
4964ac_save_FFLAGS=$FFLAGS
4965FFLAGS=
4966echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
4967echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
4968if test "${ac_cv_prog_f77_g+set}" = set; then
4969 echo $ECHO_N "(cached) $ECHO_C" >&6
4970else
4971 FFLAGS=-g
4972cat >conftest.$ac_ext <<_ACEOF
4973 program main
4974
4975 end
4976_ACEOF
4977rm -f conftest.$ac_objext
4978if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4979 (eval $ac_compile) 2>&5
4980 ac_status=$?
4981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4982 (exit $ac_status); } &&
4983 { ac_try='test -s conftest.$ac_objext'
4984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4985 (eval $ac_try) 2>&5
4986 ac_status=$?
4987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4988 (exit $ac_status); }; }; then
4989 ac_cv_prog_f77_g=yes
4990else
4991 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004992sed 's/^/| /' conftest.$ac_ext >&5
4993
John Criswell47fdd832003-07-14 16:52:07 +00004994ac_cv_prog_f77_g=no
4995fi
4996rm -f conftest.$ac_objext conftest.$ac_ext
4997
4998fi
4999echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5000echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5001if test "$ac_test_FFLAGS" = set; then
5002 FFLAGS=$ac_save_FFLAGS
5003elif test $ac_cv_prog_f77_g = yes; then
5004 if test "$G77" = yes; then
5005 FFLAGS="-g -O2"
5006 else
5007 FFLAGS="-g"
5008 fi
5009else
5010 if test "$G77" = yes; then
5011 FFLAGS="-O2"
5012 else
5013 FFLAGS=
5014 fi
5015fi
5016ac_ext=c
5017ac_cpp='$CPP $CPPFLAGS'
5018ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5019ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5020ac_compiler_gnu=$ac_cv_c_compiler_gnu
5021
5022
5023
5024# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5025
5026# find the maximum length of command line arguments
5027echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5028echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5029if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5030 echo $ECHO_N "(cached) $ECHO_C" >&6
5031else
5032 i=0
5033 testring="ABCD"
5034
5035 case $build_os in
5036 msdosdjgpp*)
5037 # On DJGPP, this test can blow up pretty badly due to problems in libc
5038 # (any single argument exceeding 2000 bytes causes a buffer overrun
5039 # during glob expansion). Even if it were fixed, the result of this
5040 # check would be larger than it should be.
5041 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5042 ;;
5043
5044 gnu*)
5045 # Under GNU Hurd, this test is not required because there is
5046 # no limit to the length of command line arguments.
5047 # Libtool will interpret -1 as no limit whatsoever
5048 lt_cv_sys_max_cmd_len=-1;
5049 ;;
5050
5051 cygwin* | mingw*)
5052 # On Win9x/ME, this test blows up -- it succeeds, but takes
5053 # about 5 minutes as the teststring grows exponentially.
5054 # Worse, since 9x/ME are not pre-emptively multitasking,
5055 # you end up with a "frozen" computer, even though with patience
5056 # the test eventually succeeds (with a max line length of 256k).
5057 # Instead, let's just punt: use the minimum linelength reported by
5058 # all of the supported platforms: 8192 (on NT/2K/XP).
5059 lt_cv_sys_max_cmd_len=8192;
5060 ;;
5061
5062 *)
5063 # If test is not a shell built-in, we'll probably end up computing a
5064 # maximum length that is only half of the actual maximum length, but
5065 # we can't tell.
5066 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5067 = "XX$testring") >/dev/null 2>&1 &&
5068 new_result=`expr "X$testring" : ".*" 2>&1` &&
5069 lt_cv_sys_max_cmd_len=$new_result &&
5070 test $i != 17 # 1/2 MB should be enough
5071 do
5072 i=`expr $i + 1`
5073 testring=$testring$testring
5074 done
5075 testring=
5076 # Add a significant safety factor because C++ compilers can tack on massive
5077 # amounts of additional arguments before passing them to the linker.
5078 # It appears as though 1/2 is a usable value.
5079 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5080 ;;
5081 esac
5082
5083fi
5084
5085if test -n $lt_cv_sys_max_cmd_len ; then
5086 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5087echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5088else
5089 echo "$as_me:$LINENO: result: none" >&5
5090echo "${ECHO_T}none" >&6
5091fi
5092
5093
5094
5095
5096# Check for command to grab the raw symbol name followed by C symbol from nm.
5097echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5098echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5099if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5100 echo $ECHO_N "(cached) $ECHO_C" >&6
5101else
5102
5103# These are sane defaults that work on at least a few old systems.
5104# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5105
5106# Character class describing NM global symbol codes.
5107symcode='[BCDEGRST]'
5108
5109# Regexp to match symbols that can be accessed directly from C.
5110sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5111
5112# Transform the above into a raw symbol and a C symbol.
5113symxfrm='\1 \2\3 \3'
5114
5115# Transform an extracted symbol line into a proper C declaration
5116lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5117
5118# Transform an extracted symbol line into symbol name and symbol address
5119lt_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'"
5120
5121# Define system-specific variables.
5122case $host_os in
5123aix*)
5124 symcode='[BCDT]'
5125 ;;
5126cygwin* | mingw* | pw32*)
5127 symcode='[ABCDGISTW]'
5128 ;;
5129hpux*) # Its linker distinguishes data from code symbols
5130 if test "$host_cpu" = ia64; then
5131 symcode='[ABCDEGRST]'
5132 fi
5133 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5134 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'"
5135 ;;
5136irix* | nonstopux*)
5137 symcode='[BCDEGRST]'
5138 ;;
5139osf*)
5140 symcode='[BCDEGQRST]'
5141 ;;
5142solaris* | sysv5*)
5143 symcode='[BDT]'
5144 ;;
5145sysv4)
5146 symcode='[DFNSTU]'
5147 ;;
5148esac
5149
5150# Handle CRLF in mingw tool chain
5151opt_cr=
5152case $build_os in
5153mingw*)
5154 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5155 ;;
5156esac
5157
5158# If we're using GNU nm, then use its standard symbol codes.
5159case `$NM -V 2>&1` in
5160*GNU* | *'with BFD'*)
5161 symcode='[ABCDGISTW]' ;;
5162esac
5163
5164# Try without a prefix undercore, then with it.
5165for ac_symprfx in "" "_"; do
5166
5167 # Write the raw and C identifiers.
5168 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5169
5170 # Check to see that the pipe works correctly.
5171 pipe_works=no
5172
5173 rm -f conftest*
5174 cat > conftest.$ac_ext <<EOF
5175#ifdef __cplusplus
5176extern "C" {
5177#endif
5178char nm_test_var;
5179void nm_test_func(){}
5180#ifdef __cplusplus
5181}
5182#endif
5183int main(){nm_test_var='a';nm_test_func();return(0);}
5184EOF
5185
5186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5187 (eval $ac_compile) 2>&5
5188 ac_status=$?
5189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5190 (exit $ac_status); }; then
5191 # Now try to grab the symbols.
5192 nlist=conftest.nm
5193 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5194 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5195 ac_status=$?
5196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5197 (exit $ac_status); } && test -s "$nlist"; then
5198 # Try sorting and uniquifying the output.
5199 if sort "$nlist" | uniq > "$nlist"T; then
5200 mv -f "$nlist"T "$nlist"
5201 else
5202 rm -f "$nlist"T
5203 fi
5204
5205 # Make sure that we snagged all the symbols we need.
5206 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5207 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5208 cat <<EOF > conftest.$ac_ext
5209#ifdef __cplusplus
5210extern "C" {
5211#endif
5212
5213EOF
5214 # Now generate the symbol file.
5215 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5216
5217 cat <<EOF >> conftest.$ac_ext
5218#if defined (__STDC__) && __STDC__
5219# define lt_ptr_t void *
5220#else
5221# define lt_ptr_t char *
5222# define const
5223#endif
5224
5225/* The mapping between symbol names and symbols. */
5226const struct {
5227 const char *name;
5228 lt_ptr_t address;
5229}
5230lt_preloaded_symbols[] =
5231{
5232EOF
5233 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5234 cat <<\EOF >> conftest.$ac_ext
5235 {0, (lt_ptr_t) 0}
5236};
5237
5238#ifdef __cplusplus
5239}
5240#endif
5241EOF
5242 # Now try linking the two files.
5243 mv conftest.$ac_objext conftstm.$ac_objext
5244 lt_save_LIBS="$LIBS"
5245 lt_save_CFLAGS="$CFLAGS"
5246 LIBS="conftstm.$ac_objext"
5247 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5248 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5249 (eval $ac_link) 2>&5
5250 ac_status=$?
5251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5252 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5253 pipe_works=yes
5254 fi
5255 LIBS="$lt_save_LIBS"
5256 CFLAGS="$lt_save_CFLAGS"
5257 else
5258 echo "cannot find nm_test_func in $nlist" >&5
5259 fi
5260 else
5261 echo "cannot find nm_test_var in $nlist" >&5
5262 fi
5263 else
5264 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5265 fi
5266 else
5267 echo "$progname: failed program was:" >&5
5268 cat conftest.$ac_ext >&5
5269 fi
5270 rm -f conftest* conftst*
5271
5272 # Do not use the global_symbol_pipe unless it works.
5273 if test "$pipe_works" = yes; then
5274 break
5275 else
5276 lt_cv_sys_global_symbol_pipe=
5277 fi
5278done
5279
5280fi
5281
5282if test -z "$lt_cv_sys_global_symbol_pipe"; then
5283 lt_cv_sys_global_symbol_to_cdecl=
5284fi
5285if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5286 echo "$as_me:$LINENO: result: failed" >&5
5287echo "${ECHO_T}failed" >&6
5288else
5289 echo "$as_me:$LINENO: result: ok" >&5
5290echo "${ECHO_T}ok" >&6
5291fi
5292
5293echo "$as_me:$LINENO: checking for objdir" >&5
5294echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5295if test "${lt_cv_objdir+set}" = set; then
5296 echo $ECHO_N "(cached) $ECHO_C" >&6
5297else
5298 rm -f .libs 2>/dev/null
5299mkdir .libs 2>/dev/null
5300if test -d .libs; then
5301 lt_cv_objdir=.libs
5302else
5303 # MS-DOS does not allow filenames that begin with a dot.
5304 lt_cv_objdir=_libs
5305fi
5306rmdir .libs 2>/dev/null
5307fi
5308echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5309echo "${ECHO_T}$lt_cv_objdir" >&6
5310objdir=$lt_cv_objdir
5311
5312
5313
5314
5315
5316case $host_os in
5317aix3*)
5318 # AIX sometimes has problems with the GCC collect2 program. For some
5319 # reason, if we set the COLLECT_NAMES environment variable, the problems
5320 # vanish in a puff of smoke.
5321 if test "X${COLLECT_NAMES+set}" != Xset; then
5322 COLLECT_NAMES=
5323 export COLLECT_NAMES
John Criswell7a73b802003-06-30 21:59:07 +00005324 fi
5325 ;;
5326esac
5327
John Criswell47fdd832003-07-14 16:52:07 +00005328# Sed substitution that helps us do robust quoting. It backslashifies
5329# metacharacters that are still active within double-quoted strings.
5330Xsed='sed -e s/^X//'
5331sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5332
5333# Same as above, but do not quote variable references.
5334double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5335
5336# Sed substitution to delay expansion of an escaped shell variable in a
5337# double_quote_subst'ed string.
5338delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5339
5340# Sed substitution to avoid accidental globbing in evaled expressions
5341no_glob_subst='s/\*/\\\*/g'
5342
5343# Constants:
5344rm="rm -f"
5345
5346# Global variables:
John Criswell8d4221e2003-07-23 16:52:50 +00005347default_ofile=mklib
John Criswell47fdd832003-07-14 16:52:07 +00005348can_build_shared=yes
5349
5350# All known linkers require a `.a' archive for static linking (except M$VC,
5351# which needs '.lib').
5352libext=a
5353ltmain="$ac_aux_dir/ltmain.sh"
5354ofile="$default_ofile"
5355with_gnu_ld="$lt_cv_prog_gnu_ld"
5356
5357if test -n "$ac_tool_prefix"; then
5358 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5359set dummy ${ac_tool_prefix}ar; ac_word=$2
5360echo "$as_me:$LINENO: checking for $ac_word" >&5
5361echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5362if test "${ac_cv_prog_AR+set}" = set; then
5363 echo $ECHO_N "(cached) $ECHO_C" >&6
5364else
5365 if test -n "$AR"; then
5366 ac_cv_prog_AR="$AR" # Let the user override the test.
5367else
5368as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5369for as_dir in $PATH
5370do
5371 IFS=$as_save_IFS
5372 test -z "$as_dir" && as_dir=.
5373 for ac_exec_ext in '' $ac_executable_extensions; do
5374 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5375 ac_cv_prog_AR="${ac_tool_prefix}ar"
5376 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5377 break 2
5378 fi
5379done
5380done
5381
5382fi
5383fi
5384AR=$ac_cv_prog_AR
5385if test -n "$AR"; then
5386 echo "$as_me:$LINENO: result: $AR" >&5
5387echo "${ECHO_T}$AR" >&6
5388else
5389 echo "$as_me:$LINENO: result: no" >&5
5390echo "${ECHO_T}no" >&6
5391fi
5392
5393fi
5394if test -z "$ac_cv_prog_AR"; then
5395 ac_ct_AR=$AR
5396 # Extract the first word of "ar", so it can be a program name with args.
5397set dummy ar; ac_word=$2
5398echo "$as_me:$LINENO: checking for $ac_word" >&5
5399echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5400if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5401 echo $ECHO_N "(cached) $ECHO_C" >&6
5402else
5403 if test -n "$ac_ct_AR"; then
5404 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5405else
5406as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5407for as_dir in $PATH
5408do
5409 IFS=$as_save_IFS
5410 test -z "$as_dir" && as_dir=.
5411 for ac_exec_ext in '' $ac_executable_extensions; do
5412 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5413 ac_cv_prog_ac_ct_AR="ar"
5414 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5415 break 2
5416 fi
5417done
5418done
5419
5420 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5421fi
5422fi
5423ac_ct_AR=$ac_cv_prog_ac_ct_AR
5424if test -n "$ac_ct_AR"; then
5425 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5426echo "${ECHO_T}$ac_ct_AR" >&6
5427else
5428 echo "$as_me:$LINENO: result: no" >&5
5429echo "${ECHO_T}no" >&6
5430fi
5431
5432 AR=$ac_ct_AR
5433else
5434 AR="$ac_cv_prog_AR"
5435fi
5436
John Criswell7a73b802003-06-30 21:59:07 +00005437if test -n "$ac_tool_prefix"; then
5438 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5439set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5440echo "$as_me:$LINENO: checking for $ac_word" >&5
5441echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5442if test "${ac_cv_prog_RANLIB+set}" = set; then
5443 echo $ECHO_N "(cached) $ECHO_C" >&6
5444else
5445 if test -n "$RANLIB"; then
5446 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5447else
5448as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5449for as_dir in $PATH
5450do
5451 IFS=$as_save_IFS
5452 test -z "$as_dir" && as_dir=.
5453 for ac_exec_ext in '' $ac_executable_extensions; do
5454 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5455 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5456 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5457 break 2
5458 fi
5459done
5460done
5461
5462fi
5463fi
5464RANLIB=$ac_cv_prog_RANLIB
5465if test -n "$RANLIB"; then
5466 echo "$as_me:$LINENO: result: $RANLIB" >&5
5467echo "${ECHO_T}$RANLIB" >&6
5468else
5469 echo "$as_me:$LINENO: result: no" >&5
5470echo "${ECHO_T}no" >&6
5471fi
5472
5473fi
5474if test -z "$ac_cv_prog_RANLIB"; then
5475 ac_ct_RANLIB=$RANLIB
5476 # Extract the first word of "ranlib", so it can be a program name with args.
5477set dummy ranlib; ac_word=$2
5478echo "$as_me:$LINENO: checking for $ac_word" >&5
5479echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5480if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5481 echo $ECHO_N "(cached) $ECHO_C" >&6
5482else
5483 if test -n "$ac_ct_RANLIB"; then
5484 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5485else
5486as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5487for as_dir in $PATH
5488do
5489 IFS=$as_save_IFS
5490 test -z "$as_dir" && as_dir=.
5491 for ac_exec_ext in '' $ac_executable_extensions; do
5492 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5493 ac_cv_prog_ac_ct_RANLIB="ranlib"
5494 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5495 break 2
5496 fi
5497done
5498done
5499
5500 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5501fi
5502fi
5503ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5504if test -n "$ac_ct_RANLIB"; then
5505 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5506echo "${ECHO_T}$ac_ct_RANLIB" >&6
5507else
5508 echo "$as_me:$LINENO: result: no" >&5
5509echo "${ECHO_T}no" >&6
5510fi
5511
5512 RANLIB=$ac_ct_RANLIB
5513else
5514 RANLIB="$ac_cv_prog_RANLIB"
5515fi
5516
5517if test -n "$ac_tool_prefix"; then
5518 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5519set dummy ${ac_tool_prefix}strip; ac_word=$2
5520echo "$as_me:$LINENO: checking for $ac_word" >&5
5521echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5522if test "${ac_cv_prog_STRIP+set}" = set; then
5523 echo $ECHO_N "(cached) $ECHO_C" >&6
5524else
5525 if test -n "$STRIP"; then
5526 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5527else
5528as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5529for as_dir in $PATH
5530do
5531 IFS=$as_save_IFS
5532 test -z "$as_dir" && as_dir=.
5533 for ac_exec_ext in '' $ac_executable_extensions; do
5534 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5535 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5536 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5537 break 2
5538 fi
5539done
5540done
5541
5542fi
5543fi
5544STRIP=$ac_cv_prog_STRIP
5545if test -n "$STRIP"; then
5546 echo "$as_me:$LINENO: result: $STRIP" >&5
5547echo "${ECHO_T}$STRIP" >&6
5548else
5549 echo "$as_me:$LINENO: result: no" >&5
5550echo "${ECHO_T}no" >&6
5551fi
5552
5553fi
5554if test -z "$ac_cv_prog_STRIP"; then
5555 ac_ct_STRIP=$STRIP
5556 # Extract the first word of "strip", so it can be a program name with args.
5557set dummy strip; ac_word=$2
5558echo "$as_me:$LINENO: checking for $ac_word" >&5
5559echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5560if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5561 echo $ECHO_N "(cached) $ECHO_C" >&6
5562else
5563 if test -n "$ac_ct_STRIP"; then
5564 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5565else
5566as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5567for as_dir in $PATH
5568do
5569 IFS=$as_save_IFS
5570 test -z "$as_dir" && as_dir=.
5571 for ac_exec_ext in '' $ac_executable_extensions; do
5572 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5573 ac_cv_prog_ac_ct_STRIP="strip"
5574 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5575 break 2
5576 fi
5577done
5578done
5579
5580 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5581fi
5582fi
5583ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5584if test -n "$ac_ct_STRIP"; then
5585 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5586echo "${ECHO_T}$ac_ct_STRIP" >&6
5587else
5588 echo "$as_me:$LINENO: result: no" >&5
5589echo "${ECHO_T}no" >&6
5590fi
5591
5592 STRIP=$ac_ct_STRIP
5593else
5594 STRIP="$ac_cv_prog_STRIP"
5595fi
5596
5597
John Criswell7a73b802003-06-30 21:59:07 +00005598old_CC="$CC"
5599old_CFLAGS="$CFLAGS"
5600
5601# Set sane defaults for various variables
5602test -z "$AR" && AR=ar
5603test -z "$AR_FLAGS" && AR_FLAGS=cru
5604test -z "$AS" && AS=as
5605test -z "$CC" && CC=cc
John Criswell47fdd832003-07-14 16:52:07 +00005606test -z "$LTCC" && LTCC=$CC
John Criswell7a73b802003-06-30 21:59:07 +00005607test -z "$DLLTOOL" && DLLTOOL=dlltool
5608test -z "$LD" && LD=ld
5609test -z "$LN_S" && LN_S="ln -s"
5610test -z "$MAGIC_CMD" && MAGIC_CMD=file
5611test -z "$NM" && NM=nm
John Criswell47fdd832003-07-14 16:52:07 +00005612test -z "$SED" && SED=sed
John Criswell7a73b802003-06-30 21:59:07 +00005613test -z "$OBJDUMP" && OBJDUMP=objdump
5614test -z "$RANLIB" && RANLIB=:
5615test -z "$STRIP" && STRIP=:
5616test -z "$ac_objext" && ac_objext=o
5617
John Criswell7a73b802003-06-30 21:59:07 +00005618# Determine commands to create old-style static archives.
5619old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5620old_postinstall_cmds='chmod 644 $oldlib'
5621old_postuninstall_cmds=
5622
5623if test -n "$RANLIB"; then
5624 case $host_os in
5625 openbsd*)
5626 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5627 ;;
5628 *)
5629 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5630 ;;
5631 esac
5632 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5633fi
5634
John Criswell47fdd832003-07-14 16:52:07 +00005635# Only perform the check for file, if the check method requires it
5636case $deplibs_check_method in
5637file_magic*)
5638 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5639 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5640echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5641if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5642 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00005643else
John Criswell47fdd832003-07-14 16:52:07 +00005644 case $MAGIC_CMD in
5645[\\/*] | ?:[\\/]*)
5646 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5647 ;;
5648*)
5649 lt_save_MAGIC_CMD="$MAGIC_CMD"
5650 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5651 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5652 for ac_dir in $ac_dummy; do
5653 IFS="$lt_save_ifs"
5654 test -z "$ac_dir" && ac_dir=.
5655 if test -f $ac_dir/${ac_tool_prefix}file; then
5656 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5657 if test -n "$file_magic_test_file"; then
5658 case $deplibs_check_method in
5659 "file_magic "*)
5660 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5661 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5662 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5663 $EGREP "$file_magic_regex" > /dev/null; then
5664 :
5665 else
5666 cat <<EOF 1>&2
5667
5668*** Warning: the command libtool uses to detect shared libraries,
5669*** $file_magic_cmd, produces output that libtool cannot recognize.
5670*** The result is that libtool may fail to recognize shared libraries
5671*** as such. This will affect the creation of libtool libraries that
5672*** depend on shared libraries, but programs linked with such libtool
5673*** libraries will work regardless of this problem. Nevertheless, you
5674*** may want to report the problem to your system manager and/or to
5675*** bug-libtool@gnu.org
5676
5677EOF
5678 fi ;;
5679 esac
5680 fi
5681 break
5682 fi
5683 done
5684 IFS="$lt_save_ifs"
5685 MAGIC_CMD="$lt_save_MAGIC_CMD"
5686 ;;
5687esac
John Criswell7a73b802003-06-30 21:59:07 +00005688fi
John Criswell7a73b802003-06-30 21:59:07 +00005689
John Criswell47fdd832003-07-14 16:52:07 +00005690MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5691if test -n "$MAGIC_CMD"; then
5692 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5693echo "${ECHO_T}$MAGIC_CMD" >&6
5694else
5695 echo "$as_me:$LINENO: result: no" >&5
5696echo "${ECHO_T}no" >&6
5697fi
John Criswell7a73b802003-06-30 21:59:07 +00005698
John Criswell47fdd832003-07-14 16:52:07 +00005699if test -z "$lt_cv_path_MAGIC_CMD"; then
5700 if test -n "$ac_tool_prefix"; then
5701 echo "$as_me:$LINENO: checking for file" >&5
5702echo $ECHO_N "checking for file... $ECHO_C" >&6
5703if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5704 echo $ECHO_N "(cached) $ECHO_C" >&6
5705else
5706 case $MAGIC_CMD in
5707[\\/*] | ?:[\\/]*)
5708 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5709 ;;
5710*)
5711 lt_save_MAGIC_CMD="$MAGIC_CMD"
5712 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5713 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5714 for ac_dir in $ac_dummy; do
5715 IFS="$lt_save_ifs"
5716 test -z "$ac_dir" && ac_dir=.
5717 if test -f $ac_dir/file; then
5718 lt_cv_path_MAGIC_CMD="$ac_dir/file"
5719 if test -n "$file_magic_test_file"; then
5720 case $deplibs_check_method in
5721 "file_magic "*)
5722 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5723 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5724 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5725 $EGREP "$file_magic_regex" > /dev/null; then
5726 :
5727 else
5728 cat <<EOF 1>&2
5729
5730*** Warning: the command libtool uses to detect shared libraries,
5731*** $file_magic_cmd, produces output that libtool cannot recognize.
5732*** The result is that libtool may fail to recognize shared libraries
5733*** as such. This will affect the creation of libtool libraries that
5734*** depend on shared libraries, but programs linked with such libtool
5735*** libraries will work regardless of this problem. Nevertheless, you
5736*** may want to report the problem to your system manager and/or to
5737*** bug-libtool@gnu.org
5738
5739EOF
5740 fi ;;
5741 esac
5742 fi
5743 break
5744 fi
5745 done
5746 IFS="$lt_save_ifs"
5747 MAGIC_CMD="$lt_save_MAGIC_CMD"
5748 ;;
5749esac
5750fi
5751
5752MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5753if test -n "$MAGIC_CMD"; then
5754 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5755echo "${ECHO_T}$MAGIC_CMD" >&6
5756else
5757 echo "$as_me:$LINENO: result: no" >&5
5758echo "${ECHO_T}no" >&6
5759fi
5760
5761 else
5762 MAGIC_CMD=:
5763 fi
5764fi
5765
5766 fi
5767 ;;
5768esac
5769
5770enable_dlopen=no
5771enable_win32_dll=no
5772
5773# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5774if test "${enable_libtool_lock+set}" = set; then
5775 enableval="$enable_libtool_lock"
5776
5777fi;
5778test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5779
John Criswell7a73b802003-06-30 21:59:07 +00005780
5781# Check whether --with-pic or --without-pic was given.
5782if test "${with_pic+set}" = set; then
5783 withval="$with_pic"
5784 pic_mode="$withval"
5785else
5786 pic_mode=default
5787fi;
5788test -z "$pic_mode" && pic_mode=default
5789
John Criswell47fdd832003-07-14 16:52:07 +00005790# Use C for the default configuration in the libtool script
5791tagname=
5792lt_save_CC="$CC"
5793ac_ext=c
5794ac_cpp='$CPP $CPPFLAGS'
5795ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5796ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5797ac_compiler_gnu=$ac_cv_c_compiler_gnu
5798
5799
5800# Source file extension for C test sources.
5801ac_ext=c
5802
5803# Object file extension for compiled C test sources.
5804objext=o
5805objext=$objext
5806
5807# Code to be used in simple compile tests
5808lt_simple_compile_test_code="int some_variable = 0;\n"
5809
5810# Code to be used in simple link tests
5811lt_simple_link_test_code='int main(){return(0);}\n'
5812
5813
5814# If no C compiler was specified, use CC.
5815LTCC=${LTCC-"$CC"}
5816
5817# Allow CC to be a program name with arguments.
5818compiler=$CC
5819
5820
5821#
5822# Check for any special shared library compilation flags.
5823#
5824lt_prog_cc_shlib=
5825if test "$GCC" = no; then
5826 case $host_os in
5827 sco3.2v5*)
5828 lt_prog_cc_shlib='-belf'
5829 ;;
5830 esac
5831fi
5832if test -n "$lt_prog_cc_shlib"; then
5833 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
5834echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
5835 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
5836 else
5837 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5838echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5839 lt_cv_prog_cc_can_build_shared=no
5840 fi
5841fi
5842
5843
5844#
5845# Check to make sure the static flag actually works.
5846#
5847echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
5848echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
5849if test "${lt_prog_compiler_static_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00005850 echo $ECHO_N "(cached) $ECHO_C" >&6
5851else
John Criswell47fdd832003-07-14 16:52:07 +00005852 lt_prog_compiler_static_works=no
5853 save_LDFLAGS="$LDFLAGS"
5854 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
5855 printf "$lt_simple_link_test_code" > conftest.$ac_ext
5856 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
5857 # The compiler can only warn and ignore the option if not recognized
5858 # So say no if there are warnings
5859 if test -s conftest.err; then
5860 # Append any errors to the config.log.
5861 cat conftest.err 1>&5
5862 else
5863 lt_prog_compiler_static_works=yes
5864 fi
5865 fi
5866 $rm conftest*
5867 LDFLAGS="$save_LDFLAGS"
5868
5869fi
5870echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
5871echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
5872
5873if test x"$lt_prog_compiler_static_works" = xyes; then
5874 :
5875else
5876 lt_prog_compiler_static=
5877fi
5878
5879
5880
John Criswell47fdd832003-07-14 16:52:07 +00005881
5882lt_prog_compiler_no_builtin_flag=
5883
5884if test "$GCC" = yes; then
5885 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
5886
5887 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5888echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5889if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
5890 echo $ECHO_N "(cached) $ECHO_C" >&6
5891else
5892 lt_cv_prog_compiler_rtti_exceptions=no
5893 ac_outfile=conftest.$ac_objext
5894 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
5895 lt_compiler_flag="-fno-rtti -fno-exceptions"
5896 # Insert the option either (1) after the last *FLAGS variable, or
5897 # (2) before a word containing "conftest.", or (3) at the end.
5898 # Note that $ac_compile itself does not contain backslashes and begins
5899 # with a dollar sign (not a hyphen), so the echo should work correctly.
5900 # The option is referenced via a variable to avoid confusing sed.
5901 lt_compile=`echo "$ac_compile" | $SED \
5902 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
5903 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5904 -e 's:$: $lt_compiler_flag:'`
John Criswelldc76e322004-07-23 15:40:57 +00005905 (eval echo "\"\$as_me:5905: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +00005906 (eval "$lt_compile" 2>conftest.err)
5907 ac_status=$?
5908 cat conftest.err >&5
John Criswelldc76e322004-07-23 15:40:57 +00005909 echo "$as_me:5909: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00005910 if (exit $ac_status) && test -s "$ac_outfile"; then
5911 # The compiler can only warn and ignore the option if not recognized
5912 # So say no if there are warnings
5913 if test ! -s conftest.err; then
5914 lt_cv_prog_compiler_rtti_exceptions=yes
5915 fi
5916 fi
5917 $rm conftest*
5918
5919fi
5920echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
5921echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
5922
5923if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
5924 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
5925else
5926 :
5927fi
5928
5929fi
5930
5931lt_prog_compiler_wl=
5932lt_prog_compiler_pic=
5933lt_prog_compiler_static=
5934
5935echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5936echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00005937
5938 if test "$GCC" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +00005939 lt_prog_compiler_wl='-Wl,'
5940 lt_prog_compiler_static='-static'
John Criswell7a73b802003-06-30 21:59:07 +00005941
5942 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00005943 aix*)
5944 # All AIX code is PIC.
5945 if test "$host_cpu" = ia64; then
5946 # AIX 5 now supports IA64 processor
5947 lt_prog_compiler_static='-Bstatic'
5948 fi
John Criswell7a73b802003-06-30 21:59:07 +00005949 ;;
John Criswell47fdd832003-07-14 16:52:07 +00005950
John Criswell7a73b802003-06-30 21:59:07 +00005951 amigaos*)
5952 # FIXME: we need at least 68020 code to build shared libraries, but
5953 # adding the `-m68020' flag to GCC prevents building anything better,
5954 # like `-m68040'.
John Criswell47fdd832003-07-14 16:52:07 +00005955 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
John Criswell7a73b802003-06-30 21:59:07 +00005956 ;;
John Criswell47fdd832003-07-14 16:52:07 +00005957
5958 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
John Criswell7a73b802003-06-30 21:59:07 +00005959 # PIC is the default for these OSes.
5960 ;;
John Criswell47fdd832003-07-14 16:52:07 +00005961
5962 mingw* | pw32* | os2*)
5963 # This hack is so that the source file can tell whether it is being
5964 # built for inclusion in a dll (and should export symbols for example).
5965 lt_prog_compiler_pic='-DDLL_EXPORT'
5966 ;;
5967
John Criswell7a73b802003-06-30 21:59:07 +00005968 darwin* | rhapsody*)
5969 # PIC is the default on this platform
5970 # Common symbols not allowed in MH_DYLIB files
John Criswell47fdd832003-07-14 16:52:07 +00005971 lt_prog_compiler_pic='-fno-common'
John Criswell7a73b802003-06-30 21:59:07 +00005972 ;;
John Criswell47fdd832003-07-14 16:52:07 +00005973
5974 msdosdjgpp*)
5975 # Just because we use GCC doesn't mean we suddenly get shared libraries
5976 # on systems that don't support them.
5977 lt_prog_compiler_can_build_shared=no
5978 enable_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00005979 ;;
John Criswell47fdd832003-07-14 16:52:07 +00005980
John Criswell7a73b802003-06-30 21:59:07 +00005981 sysv4*MP*)
5982 if test -d /usr/nec; then
John Criswell47fdd832003-07-14 16:52:07 +00005983 lt_prog_compiler_pic=-Kconform_pic
John Criswell7a73b802003-06-30 21:59:07 +00005984 fi
5985 ;;
John Criswell47fdd832003-07-14 16:52:07 +00005986
5987 hpux*)
5988 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5989 # not for PA HP-UX.
5990 case "$host_cpu" in
5991 hppa*64*|ia64*)
5992 # +Z the default
5993 ;;
5994 *)
5995 lt_prog_compiler_pic='-fPIC'
5996 ;;
5997 esac
5998 ;;
5999
John Criswell7a73b802003-06-30 21:59:07 +00006000 *)
John Criswell47fdd832003-07-14 16:52:07 +00006001 lt_prog_compiler_pic='-fPIC'
John Criswell7a73b802003-06-30 21:59:07 +00006002 ;;
6003 esac
6004 else
John Criswell47fdd832003-07-14 16:52:07 +00006005 # PORTME Check for flag to pass linker flags through the system compiler.
John Criswell7a73b802003-06-30 21:59:07 +00006006 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00006007 aix*)
6008 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +00006009 if test "$host_cpu" = ia64; then
6010 # AIX 5 now supports IA64 processor
John Criswell47fdd832003-07-14 16:52:07 +00006011 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006012 else
John Criswell47fdd832003-07-14 16:52:07 +00006013 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
John Criswell7a73b802003-06-30 21:59:07 +00006014 fi
6015 ;;
6016
John Criswell47fdd832003-07-14 16:52:07 +00006017 mingw* | pw32* | os2*)
6018 # This hack is so that the source file can tell whether it is being
6019 # built for inclusion in a dll (and should export symbols for example).
6020 lt_prog_compiler_pic='-DDLL_EXPORT'
6021 ;;
6022
John Criswell7a73b802003-06-30 21:59:07 +00006023 hpux9* | hpux10* | hpux11*)
John Criswell47fdd832003-07-14 16:52:07 +00006024 lt_prog_compiler_wl='-Wl,'
6025 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6026 # not for PA HP-UX.
6027 case "$host_cpu" in
6028 hppa*64*|ia64*)
6029 # +Z the default
6030 ;;
6031 *)
6032 lt_prog_compiler_pic='+Z'
6033 ;;
6034 esac
6035 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6036 lt_prog_compiler_static='${wl}-a ${wl}archive'
John Criswell7a73b802003-06-30 21:59:07 +00006037 ;;
6038
John Criswell47fdd832003-07-14 16:52:07 +00006039 irix5* | irix6* | nonstopux*)
6040 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +00006041 # PIC (with -KPIC) is the default.
John Criswell47fdd832003-07-14 16:52:07 +00006042 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +00006043 ;;
6044
6045 newsos6)
John Criswell47fdd832003-07-14 16:52:07 +00006046 lt_prog_compiler_pic='-KPIC'
6047 lt_prog_compiler_static='-Bstatic'
6048 ;;
6049
6050 linux*)
6051 case $CC in
6052 icc|ecc)
6053 lt_prog_compiler_wl='-Wl,'
6054 lt_prog_compiler_pic='-KPIC'
6055 lt_prog_compiler_static='-static'
6056 ;;
6057 ccc)
6058 lt_prog_compiler_wl='-Wl,'
6059 # All Alpha code is PIC.
6060 lt_prog_compiler_static='-non_shared'
6061 ;;
6062 esac
John Criswell7a73b802003-06-30 21:59:07 +00006063 ;;
6064
6065 osf3* | osf4* | osf5*)
John Criswell47fdd832003-07-14 16:52:07 +00006066 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +00006067 # All OSF/1 code is PIC.
John Criswell47fdd832003-07-14 16:52:07 +00006068 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +00006069 ;;
6070
6071 sco3.2v5*)
John Criswell47fdd832003-07-14 16:52:07 +00006072 lt_prog_compiler_pic='-Kpic'
6073 lt_prog_compiler_static='-dn'
John Criswell7a73b802003-06-30 21:59:07 +00006074 ;;
6075
6076 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +00006077 lt_prog_compiler_wl='-Wl,'
6078 lt_prog_compiler_pic='-KPIC'
6079 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006080 ;;
6081
6082 sunos4*)
John Criswell47fdd832003-07-14 16:52:07 +00006083 lt_prog_compiler_wl='-Qoption ld '
6084 lt_prog_compiler_pic='-PIC'
6085 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006086 ;;
6087
6088 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
John Criswell47fdd832003-07-14 16:52:07 +00006089 lt_prog_compiler_wl='-Wl,'
6090 lt_prog_compiler_pic='-KPIC'
6091 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006092 ;;
6093
6094 sysv4*MP*)
6095 if test -d /usr/nec ;then
John Criswell47fdd832003-07-14 16:52:07 +00006096 lt_prog_compiler_pic='-Kconform_pic'
6097 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006098 fi
6099 ;;
6100
John Criswell47fdd832003-07-14 16:52:07 +00006101 uts4*)
6102 lt_prog_compiler_pic='-pic'
6103 lt_prog_compiler_static='-Bstatic'
6104 ;;
6105
John Criswell7a73b802003-06-30 21:59:07 +00006106 *)
John Criswell47fdd832003-07-14 16:52:07 +00006107 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00006108 ;;
6109 esac
6110 fi
6111
John Criswell47fdd832003-07-14 16:52:07 +00006112echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6113echo "${ECHO_T}$lt_prog_compiler_pic" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006114
John Criswell47fdd832003-07-14 16:52:07 +00006115#
6116# Check to make sure the PIC flag actually works.
6117#
6118if test -n "$lt_prog_compiler_pic"; then
6119 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6120echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6121if test "${lt_prog_compiler_pic_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00006122 echo $ECHO_N "(cached) $ECHO_C" >&6
6123else
John Criswell47fdd832003-07-14 16:52:07 +00006124 lt_prog_compiler_pic_works=no
6125 ac_outfile=conftest.$ac_objext
6126 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6127 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6128 # Insert the option either (1) after the last *FLAGS variable, or
6129 # (2) before a word containing "conftest.", or (3) at the end.
6130 # Note that $ac_compile itself does not contain backslashes and begins
6131 # with a dollar sign (not a hyphen), so the echo should work correctly.
6132 # The option is referenced via a variable to avoid confusing sed.
6133 lt_compile=`echo "$ac_compile" | $SED \
6134 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6135 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6136 -e 's:$: $lt_compiler_flag:'`
John Criswelldc76e322004-07-23 15:40:57 +00006137 (eval echo "\"\$as_me:6137: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +00006138 (eval "$lt_compile" 2>conftest.err)
6139 ac_status=$?
6140 cat conftest.err >&5
John Criswelldc76e322004-07-23 15:40:57 +00006141 echo "$as_me:6141: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00006142 if (exit $ac_status) && test -s "$ac_outfile"; then
6143 # The compiler can only warn and ignore the option if not recognized
6144 # So say no if there are warnings
6145 if test ! -s conftest.err; then
6146 lt_prog_compiler_pic_works=yes
6147 fi
6148 fi
6149 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +00006150
John Criswell47fdd832003-07-14 16:52:07 +00006151fi
6152echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6153echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006154
John Criswell47fdd832003-07-14 16:52:07 +00006155if test x"$lt_prog_compiler_pic_works" = xyes; then
6156 case $lt_prog_compiler_pic in
6157 "" | " "*) ;;
6158 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6159 esac
John Criswell7a73b802003-06-30 21:59:07 +00006160else
John Criswell47fdd832003-07-14 16:52:07 +00006161 lt_prog_compiler_pic=
6162 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00006163fi
6164
John Criswell7a73b802003-06-30 21:59:07 +00006165fi
John Criswell47fdd832003-07-14 16:52:07 +00006166case "$host_os" in
6167 # For platforms which do not support PIC, -DPIC is meaningless:
6168 *djgpp*)
6169 lt_prog_compiler_pic=
6170 ;;
6171 *)
6172 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6173 ;;
6174esac
John Criswell7a73b802003-06-30 21:59:07 +00006175
John Criswell7a73b802003-06-30 21:59:07 +00006176echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6177echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
John Criswell47fdd832003-07-14 16:52:07 +00006178if test "${lt_cv_prog_compiler_c_o+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00006179 echo $ECHO_N "(cached) $ECHO_C" >&6
6180else
John Criswell47fdd832003-07-14 16:52:07 +00006181 lt_cv_prog_compiler_c_o=no
6182 $rm -r conftest 2>/dev/null
6183 mkdir conftest
6184 cd conftest
6185 mkdir out
6186 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00006187
John Criswell47fdd832003-07-14 16:52:07 +00006188 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
6189 # that will create temporary files in the current directory regardless of
6190 # the output directory. Thus, making CWD read-only will cause this test
6191 # to fail, enabling locking or at least warning the user not to do parallel
6192 # builds.
6193 chmod -w .
6194
6195 lt_compiler_flag="-o out/conftest2.$ac_objext"
6196 # Insert the option either (1) after the last *FLAGS variable, or
6197 # (2) before a word containing "conftest.", or (3) at the end.
6198 # Note that $ac_compile itself does not contain backslashes and begins
6199 # with a dollar sign (not a hyphen), so the echo should work correctly.
6200 lt_compile=`echo "$ac_compile" | $SED \
6201 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6202 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6203 -e 's:$: $lt_compiler_flag:'`
John Criswelldc76e322004-07-23 15:40:57 +00006204 (eval echo "\"\$as_me:6204: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +00006205 (eval "$lt_compile" 2>out/conftest.err)
6206 ac_status=$?
6207 cat out/conftest.err >&5
John Criswelldc76e322004-07-23 15:40:57 +00006208 echo "$as_me:6208: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00006209 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6210 then
6211 # The compiler can only warn and ignore the option if not recognized
6212 # So say no if there are warnings
6213 if test ! -s out/conftest.err; then
6214 lt_cv_prog_compiler_c_o=yes
6215 fi
6216 fi
6217 chmod u+w .
6218 $rm conftest* out/*
6219 rmdir out
6220 cd ..
6221 rmdir conftest
6222 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +00006223
6224fi
John Criswell47fdd832003-07-14 16:52:07 +00006225echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6226echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006227
John Criswell7a73b802003-06-30 21:59:07 +00006228
John Criswell7a73b802003-06-30 21:59:07 +00006229hard_links="nottested"
John Criswell47fdd832003-07-14 16:52:07 +00006230if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
John Criswell7a73b802003-06-30 21:59:07 +00006231 # do not overwrite the value of need_locks provided by the user
6232 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6233echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6234 hard_links=yes
6235 $rm conftest*
6236 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6237 touch conftest.a
6238 ln conftest.a conftest.b 2>&5 || hard_links=no
6239 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6240 echo "$as_me:$LINENO: result: $hard_links" >&5
6241echo "${ECHO_T}$hard_links" >&6
6242 if test "$hard_links" = no; then
6243 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6244echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6245 need_locks=warn
6246 fi
6247else
6248 need_locks=no
6249fi
John Criswell7a73b802003-06-30 21:59:07 +00006250
John Criswell47fdd832003-07-14 16:52:07 +00006251echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6252echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6253
6254 runpath_var=
6255 allow_undefined_flag=
6256 enable_shared_with_static_runtimes=no
6257 archive_cmds=
6258 archive_expsym_cmds=
6259 old_archive_From_new_cmds=
6260 old_archive_from_expsyms_cmds=
6261 export_dynamic_flag_spec=
6262 whole_archive_flag_spec=
6263 thread_safe_flag_spec=
6264 hardcode_libdir_flag_spec=
6265 hardcode_libdir_flag_spec_ld=
6266 hardcode_libdir_separator=
6267 hardcode_direct=no
6268 hardcode_minus_L=no
6269 hardcode_shlibpath_var=unsupported
6270 link_all_deplibs=unknown
6271 hardcode_automatic=no
6272 module_cmds=
6273 module_expsym_cmds=
6274 always_export_symbols=no
6275 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6276 # include_expsyms should be a list of space-separated symbols to be *always*
6277 # included in the symbol list
6278 include_expsyms=
6279 # exclude_expsyms can be an extended regexp of symbols to exclude
6280 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6281 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6282 # as well as any symbol that contains `d'.
6283 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6284 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6285 # platforms (ab)use it in PIC code, but their linkers get confused if
6286 # the symbol is explicitly referenced. Since portable code cannot
6287 # rely on this symbol name, it's probably fine to never include it in
6288 # preloaded symbol tables.
6289 extract_expsyms_cmds=
6290
6291 case $host_os in
6292 cygwin* | mingw* | pw32*)
6293 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6294 # When not using gcc, we currently assume that we are using
6295 # Microsoft Visual C++.
6296 if test "$GCC" != yes; then
6297 with_gnu_ld=no
6298 fi
6299 ;;
6300 openbsd*)
6301 with_gnu_ld=no
6302 ;;
6303 esac
6304
6305 ld_shlibs=yes
6306 if test "$with_gnu_ld" = yes; then
6307 # If archive_cmds runs LD, not CC, wlarc should be empty
6308 wlarc='${wl}'
6309
6310 # See if GNU ld supports shared libraries.
6311 case $host_os in
6312 aix3* | aix4* | aix5*)
6313 # On AIX/PPC, the GNU linker is very broken
6314 if test "$host_cpu" != ia64; then
6315 ld_shlibs=no
6316 cat <<EOF 1>&2
6317
6318*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6319*** to be unable to reliably create shared libraries on AIX.
6320*** Therefore, libtool is disabling shared libraries support. If you
6321*** really care for shared libraries, you may want to modify your PATH
6322*** so that a non-GNU linker is found, and then restart.
6323
6324EOF
6325 fi
6326 ;;
6327
6328 amigaos*)
6329 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)'
6330 hardcode_libdir_flag_spec='-L$libdir'
6331 hardcode_minus_L=yes
6332
6333 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6334 # that the semantics of dynamic libraries on AmigaOS, at least up
6335 # to version 4, is to share data among multiple programs linked
6336 # with the same dynamic library. Since this doesn't match the
6337 # behavior of shared libraries on other platforms, we can't use
6338 # them.
6339 ld_shlibs=no
6340 ;;
6341
6342 beos*)
6343 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6344 allow_undefined_flag=unsupported
6345 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6346 # support --undefined. This deserves some investigation. FIXME
6347 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6348 else
6349 ld_shlibs=no
6350 fi
6351 ;;
6352
6353 cygwin* | mingw* | pw32*)
6354 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6355 # as there is no search path for DLLs.
6356 hardcode_libdir_flag_spec='-L$libdir'
6357 allow_undefined_flag=unsupported
6358 always_export_symbols=no
6359 enable_shared_with_static_runtimes=yes
6360 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6361
6362 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6363 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6364 # If the export-symbols file already is a .def file (1st line
6365 # is EXPORTS), use it as is; otherwise, prepend...
6366 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6367 cp $export_symbols $output_objdir/$soname.def;
6368 else
6369 echo EXPORTS > $output_objdir/$soname.def;
6370 cat $export_symbols >> $output_objdir/$soname.def;
6371 fi~
6372 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6373 else
6374 ld_shlibs=no
6375 fi
6376 ;;
6377
6378 netbsd*)
6379 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6380 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6381 wlarc=
6382 else
6383 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6384 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6385 fi
6386 ;;
6387
6388 solaris* | sysv5*)
6389 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6390 ld_shlibs=no
6391 cat <<EOF 1>&2
6392
6393*** Warning: The releases 2.8.* of the GNU linker cannot reliably
6394*** create shared libraries on Solaris systems. Therefore, libtool
6395*** is disabling shared libraries support. We urge you to upgrade GNU
6396*** binutils to release 2.9.1 or newer. Another option is to modify
6397*** your PATH or compiler configuration so that the native linker is
6398*** used, and then restart.
6399
6400EOF
6401 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6402 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6403 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6404 else
6405 ld_shlibs=no
6406 fi
6407 ;;
6408
6409 sunos4*)
6410 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6411 wlarc=
6412 hardcode_direct=yes
6413 hardcode_shlibpath_var=no
6414 ;;
6415
6416 *)
6417 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6418 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6419 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6420 else
6421 ld_shlibs=no
6422 fi
6423 ;;
6424 esac
6425
6426 if test "$ld_shlibs" = yes; then
6427 runpath_var=LD_RUN_PATH
6428 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6429 export_dynamic_flag_spec='${wl}--export-dynamic'
6430 # ancient GNU ld didn't support --whole-archive et. al.
6431 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6432 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6433 else
6434 whole_archive_flag_spec=
6435 fi
6436 fi
6437 else
6438 # PORTME fill in a description of your system's linker (not GNU ld)
6439 case $host_os in
6440 aix3*)
6441 allow_undefined_flag=unsupported
6442 always_export_symbols=yes
6443 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'
6444 # Note: this linker hardcodes the directories in LIBPATH if there
6445 # are no directories specified by -L.
6446 hardcode_minus_L=yes
6447 if test "$GCC" = yes && test -z "$link_static_flag"; then
6448 # Neither direct hardcoding nor static linking is supported with a
6449 # broken collect2.
6450 hardcode_direct=unsupported
6451 fi
6452 ;;
6453
6454 aix4* | aix5*)
6455 if test "$host_cpu" = ia64; then
6456 # On IA64, the linker does run time linking by default, so we don't
6457 # have to do anything special.
6458 aix_use_runtimelinking=no
6459 exp_sym_flag='-Bexport'
6460 no_entry_flag=""
6461 else
6462 # If we're using GNU nm, then we don't want the "-C" option.
6463 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6464 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6465 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'
6466 else
6467 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'
6468 fi
6469 aix_use_runtimelinking=no
6470
6471 # Test if we are trying to use run time linking or normal
6472 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6473 # need to do runtime linking.
6474 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6475 for ld_flag in $LDFLAGS; do
6476 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6477 aix_use_runtimelinking=yes
6478 break
6479 fi
6480 done
6481 esac
6482
6483 exp_sym_flag='-bexport'
6484 no_entry_flag='-bnoentry'
6485 fi
6486
6487 # When large executables or shared objects are built, AIX ld can
6488 # have problems creating the table of contents. If linking a library
6489 # or program results in "error TOC overflow" add -mminimal-toc to
6490 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6491 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6492
6493 archive_cmds=''
6494 hardcode_direct=yes
6495 hardcode_libdir_separator=':'
6496 link_all_deplibs=yes
6497
6498 if test "$GCC" = yes; then
6499 case $host_os in aix4.012|aix4.012.*)
6500 # We only want to do this on AIX 4.2 and lower, the check
6501 # below for broken collect2 doesn't work under 4.3+
6502 collect2name=`${CC} -print-prog-name=collect2`
6503 if test -f "$collect2name" && \
6504 strings "$collect2name" | grep resolve_lib_name >/dev/null
6505 then
6506 # We have reworked collect2
6507 hardcode_direct=yes
6508 else
6509 # We have old collect2
6510 hardcode_direct=unsupported
6511 # It fails to find uninstalled libraries when the uninstalled
6512 # path is not listed in the libpath. Setting hardcode_minus_L
6513 # to unsupported forces relinking
6514 hardcode_minus_L=yes
6515 hardcode_libdir_flag_spec='-L$libdir'
6516 hardcode_libdir_separator=
6517 fi
6518 esac
6519 shared_flag='-shared'
6520 else
6521 # not using gcc
6522 if test "$host_cpu" = ia64; then
6523 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6524 # chokes on -Wl,-G. The following line is correct:
6525 shared_flag='-G'
6526 else
6527 if test "$aix_use_runtimelinking" = yes; then
6528 shared_flag='${wl}-G'
6529 else
6530 shared_flag='${wl}-bM:SRE'
6531 fi
6532 fi
6533 fi
6534
6535 # It seems that -bexpall does not export symbols beginning with
6536 # underscore (_), so it is better to generate a list of symbols to export.
6537 always_export_symbols=yes
6538 if test "$aix_use_runtimelinking" = yes; then
6539 # Warning - without using the other runtime loading flags (-brtl),
6540 # -berok will link without error, but may produce a broken library.
6541 allow_undefined_flag='-berok'
6542 # Determine the default libpath from the value encoded in an empty executable.
6543 cat >conftest.$ac_ext <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00006544#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00006545/* confdefs.h. */
6546_ACEOF
6547cat confdefs.h >>conftest.$ac_ext
6548cat >>conftest.$ac_ext <<_ACEOF
6549/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006550
John Criswell7a73b802003-06-30 21:59:07 +00006551int
6552main ()
6553{
John Criswell47fdd832003-07-14 16:52:07 +00006554
John Criswell7a73b802003-06-30 21:59:07 +00006555 ;
6556 return 0;
6557}
6558_ACEOF
John Criswell47fdd832003-07-14 16:52:07 +00006559rm -f conftest.$ac_objext conftest$ac_exeext
6560if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6561 (eval $ac_link) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00006562 ac_status=$?
6563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6564 (exit $ac_status); } &&
John Criswell47fdd832003-07-14 16:52:07 +00006565 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00006566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6567 (eval $ac_try) 2>&5
6568 ac_status=$?
6569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6570 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00006571
John Criswell47fdd832003-07-14 16:52:07 +00006572aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6573}'`
6574# Check for a 64-bit object if we didn't find anything.
6575if 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; }
6576}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +00006577else
6578 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006579sed 's/^/| /' conftest.$ac_ext >&5
6580
John Criswell7a73b802003-06-30 21:59:07 +00006581fi
John Criswell47fdd832003-07-14 16:52:07 +00006582rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6583if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +00006584
John Criswell47fdd832003-07-14 16:52:07 +00006585 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6586 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"
6587 else
6588 if test "$host_cpu" = ia64; then
6589 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6590 allow_undefined_flag="-z nodefs"
6591 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"
6592 else
6593 # Determine the default libpath from the value encoded in an empty executable.
6594 cat >conftest.$ac_ext <<_ACEOF
6595#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00006596/* confdefs.h. */
6597_ACEOF
6598cat confdefs.h >>conftest.$ac_ext
6599cat >>conftest.$ac_ext <<_ACEOF
6600/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006601
John Criswell47fdd832003-07-14 16:52:07 +00006602int
6603main ()
6604{
John Criswell7a73b802003-06-30 21:59:07 +00006605
John Criswell47fdd832003-07-14 16:52:07 +00006606 ;
6607 return 0;
6608}
6609_ACEOF
6610rm -f conftest.$ac_objext conftest$ac_exeext
6611if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6612 (eval $ac_link) 2>&5
6613 ac_status=$?
6614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6615 (exit $ac_status); } &&
6616 { ac_try='test -s conftest$ac_exeext'
6617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6618 (eval $ac_try) 2>&5
6619 ac_status=$?
6620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6621 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00006622
John Criswell47fdd832003-07-14 16:52:07 +00006623aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6624}'`
6625# Check for a 64-bit object if we didn't find anything.
6626if 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; }
6627}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +00006628else
John Criswell47fdd832003-07-14 16:52:07 +00006629 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006630sed 's/^/| /' conftest.$ac_ext >&5
6631
John Criswell47fdd832003-07-14 16:52:07 +00006632fi
6633rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6634if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +00006635
John Criswell47fdd832003-07-14 16:52:07 +00006636 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6637 # Warning - without using the other run time loading flags,
6638 # -berok will link without error, but may produce a broken library.
6639 no_undefined_flag=' ${wl}-bernotok'
6640 allow_undefined_flag=' ${wl}-berok'
6641 # -bexpall does not export symbols beginning with underscore (_)
6642 always_export_symbols=yes
6643 # Exported symbols can be pulled into shared objects from archives
6644 whole_archive_flag_spec=' '
6645 archive_cmds_need_lc=yes
6646 # This is similar to how AIX traditionally builds it's shared libraries.
6647 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 +00006648 fi
6649 fi
John Criswell7a73b802003-06-30 21:59:07 +00006650 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006651
6652 amigaos*)
6653 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)'
6654 hardcode_libdir_flag_spec='-L$libdir'
6655 hardcode_minus_L=yes
6656 # see comment about different semantics on the GNU ld section
6657 ld_shlibs=no
John Criswell7a73b802003-06-30 21:59:07 +00006658 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006659
John Criswell47fdd832003-07-14 16:52:07 +00006660 bsdi4*)
6661 export_dynamic_flag_spec=-rdynamic
6662 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006663
John Criswell47fdd832003-07-14 16:52:07 +00006664 cygwin* | mingw* | pw32*)
6665 # When not using gcc, we currently assume that we are using
6666 # Microsoft Visual C++.
6667 # hardcode_libdir_flag_spec is actually meaningless, as there is
6668 # no search path for DLLs.
6669 hardcode_libdir_flag_spec=' '
6670 allow_undefined_flag=unsupported
6671 # Tell ltmain to make .lib files, not .a files.
6672 libext=lib
6673 # Tell ltmain to make .dll files, not .so files.
6674 shrext=".dll"
6675 # FIXME: Setting linknames here is a bad hack.
6676 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
6677 # The linker will automatically build a .lib file if we build a DLL.
6678 old_archive_From_new_cmds='true'
6679 # FIXME: Should let the user specify the lib program.
6680 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6681 fix_srcfile_path='`cygpath -w "$srcfile"`'
6682 enable_shared_with_static_runtimes=yes
6683 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006684
John Criswell47fdd832003-07-14 16:52:07 +00006685 darwin* | rhapsody*)
6686 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
6687 archive_cmds_need_lc=no
John Criswell7a73b802003-06-30 21:59:07 +00006688 case "$host_os" in
John Criswell47fdd832003-07-14 16:52:07 +00006689 rhapsody* | darwin1.[012])
6690 allow_undefined_flag='-undefined suppress'
6691 ;;
6692 *) # Darwin 1.3 on
6693 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
John Criswell7a73b802003-06-30 21:59:07 +00006694 ;;
6695 esac
John Criswell47fdd832003-07-14 16:52:07 +00006696 # FIXME: Relying on posixy $() will cause problems for
6697 # cross-compilation, but unfortunately the echo tests do not
6698 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
6699 # `"' quotes if we put them in here... so don't!
6700 lt_int_apple_cc_single_mod=no
6701 output_verbose_link_cmd='echo'
6702 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
6703 lt_int_apple_cc_single_mod=yes
6704 fi
6705 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6706 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6707 else
6708 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'
6709 fi
6710 module_cmds='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
6711 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6712 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6713 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}'
6714 else
6715 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}'
6716 fi
6717 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}'
6718 hardcode_direct=no
6719 hardcode_automatic=yes
6720 hardcode_shlibpath_var=unsupported
6721 whole_archive_flag_spec='-all_load $convenience'
6722 link_all_deplibs=yes
John Criswell7a73b802003-06-30 21:59:07 +00006723 fi
John Criswell47fdd832003-07-14 16:52:07 +00006724 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006725
John Criswell47fdd832003-07-14 16:52:07 +00006726 dgux*)
John Criswell7a73b802003-06-30 21:59:07 +00006727 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
John Criswell47fdd832003-07-14 16:52:07 +00006728 hardcode_libdir_flag_spec='-L$libdir'
6729 hardcode_shlibpath_var=no
6730 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006731
John Criswell47fdd832003-07-14 16:52:07 +00006732 freebsd1*)
6733 ld_shlibs=no
6734 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006735
John Criswell47fdd832003-07-14 16:52:07 +00006736 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6737 # support. Future versions do this automatically, but an explicit c++rt0.o
6738 # does not break anything, and helps significantly (at the cost of a little
6739 # extra space).
6740 freebsd2.2*)
6741 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6742 hardcode_libdir_flag_spec='-R$libdir'
6743 hardcode_direct=yes
6744 hardcode_shlibpath_var=no
6745 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006746
John Criswell47fdd832003-07-14 16:52:07 +00006747 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6748 freebsd2*)
6749 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6750 hardcode_direct=yes
6751 hardcode_minus_L=yes
6752 hardcode_shlibpath_var=no
6753 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006754
John Criswell47fdd832003-07-14 16:52:07 +00006755 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6756 freebsd*)
6757 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6758 hardcode_libdir_flag_spec='-R$libdir'
6759 hardcode_direct=yes
6760 hardcode_shlibpath_var=no
6761 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006762
John Criswell47fdd832003-07-14 16:52:07 +00006763 hpux9*)
6764 if test "$GCC" = yes; then
6765 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'
6766 else
6767 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'
6768 fi
6769 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6770 hardcode_libdir_separator=:
6771 hardcode_direct=yes
6772
6773 # hardcode_minus_L: Not really in the search PATH,
6774 # but as the default location of the library.
6775 hardcode_minus_L=yes
6776 export_dynamic_flag_spec='${wl}-E'
6777 ;;
6778
6779 hpux10* | hpux11*)
6780 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6781 case "$host_cpu" in
6782 hppa*64*|ia64*)
6783 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6784 ;;
6785 *)
6786 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6787 ;;
6788 esac
6789 else
6790 case "$host_cpu" in
6791 hppa*64*|ia64*)
6792 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
6793 ;;
6794 *)
6795 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
6796 ;;
6797 esac
6798 fi
6799 if test "$with_gnu_ld" = no; then
6800 case "$host_cpu" in
6801 hppa*64*)
6802 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6803 hardcode_libdir_flag_spec_ld='+b $libdir'
6804 hardcode_libdir_separator=:
6805 hardcode_direct=no
6806 hardcode_shlibpath_var=no
6807 ;;
6808 ia64*)
6809 hardcode_libdir_flag_spec='-L$libdir'
6810 hardcode_direct=no
6811 hardcode_shlibpath_var=no
6812
6813 # hardcode_minus_L: Not really in the search PATH,
6814 # but as the default location of the library.
6815 hardcode_minus_L=yes
6816 ;;
6817 *)
6818 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6819 hardcode_libdir_separator=:
6820 hardcode_direct=yes
6821 export_dynamic_flag_spec='${wl}-E'
6822
6823 # hardcode_minus_L: Not really in the search PATH,
6824 # but as the default location of the library.
6825 hardcode_minus_L=yes
6826 ;;
6827 esac
6828 fi
6829 ;;
6830
6831 irix5* | irix6* | nonstopux*)
6832 if test "$GCC" = yes; then
6833 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'
6834 else
6835 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'
6836 hardcode_libdir_flag_spec_ld='-rpath $libdir'
6837 fi
6838 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6839 hardcode_libdir_separator=:
6840 link_all_deplibs=yes
6841 ;;
6842
6843 netbsd*)
6844 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6845 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
6846 else
6847 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
6848 fi
6849 hardcode_libdir_flag_spec='-R$libdir'
6850 hardcode_direct=yes
6851 hardcode_shlibpath_var=no
6852 ;;
6853
6854 newsos6)
6855 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6856 hardcode_direct=yes
6857 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6858 hardcode_libdir_separator=:
6859 hardcode_shlibpath_var=no
6860 ;;
6861
6862 openbsd*)
6863 hardcode_direct=yes
6864 hardcode_shlibpath_var=no
6865 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6866 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6867 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6868 export_dynamic_flag_spec='${wl}-E'
6869 else
6870 case $host_os in
6871 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
6872 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6873 hardcode_libdir_flag_spec='-R$libdir'
6874 ;;
6875 *)
6876 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6877 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6878 ;;
6879 esac
6880 fi
6881 ;;
6882
6883 os2*)
6884 hardcode_libdir_flag_spec='-L$libdir'
6885 hardcode_minus_L=yes
6886 allow_undefined_flag=unsupported
6887 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'
6888 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6889 ;;
6890
6891 osf3*)
6892 if test "$GCC" = yes; then
6893 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6894 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'
6895 else
6896 allow_undefined_flag=' -expect_unresolved \*'
6897 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'
6898 fi
6899 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6900 hardcode_libdir_separator=:
6901 ;;
6902
6903 osf4* | osf5*) # as osf3* with the addition of -msym flag
6904 if test "$GCC" = yes; then
6905 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6906 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'
6907 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6908 else
6909 allow_undefined_flag=' -expect_unresolved \*'
6910 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'
6911 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6912 $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'
6913
6914 # Both c and cxx compiler support -rpath directly
6915 hardcode_libdir_flag_spec='-rpath $libdir'
6916 fi
6917 hardcode_libdir_separator=:
6918 ;;
6919
6920 sco3.2v5*)
John Criswell7a73b802003-06-30 21:59:07 +00006921 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6922 hardcode_shlibpath_var=no
John Criswell47fdd832003-07-14 16:52:07 +00006923 export_dynamic_flag_spec='${wl}-Bexport'
John Criswell7a73b802003-06-30 21:59:07 +00006924 runpath_var=LD_RUN_PATH
6925 hardcode_runpath_var=yes
John Criswell47fdd832003-07-14 16:52:07 +00006926 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006927
John Criswell47fdd832003-07-14 16:52:07 +00006928 solaris*)
6929 no_undefined_flag=' -z text'
6930 if test "$GCC" = yes; then
6931 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6932 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6933 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
6934 else
6935 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6936 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6937 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6938 fi
6939 hardcode_libdir_flag_spec='-R$libdir'
6940 hardcode_shlibpath_var=no
6941 case $host_os in
6942 solaris2.[0-5] | solaris2.[0-5].*) ;;
6943 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6944 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6945 esac
6946 link_all_deplibs=yes
6947 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006948
John Criswell47fdd832003-07-14 16:52:07 +00006949 sunos4*)
6950 if test "x$host_vendor" = xsequent; then
6951 # Use $CC to link under sequent, because it throws in some extra .o
6952 # files that make .init and .fini sections work.
6953 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6954 else
6955 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6956 fi
6957 hardcode_libdir_flag_spec='-L$libdir'
6958 hardcode_direct=yes
6959 hardcode_minus_L=yes
6960 hardcode_shlibpath_var=no
6961 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006962
John Criswell47fdd832003-07-14 16:52:07 +00006963 sysv4)
6964 case $host_vendor in
6965 sni)
6966 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6967 hardcode_direct=yes # is this really true???
6968 ;;
6969 siemens)
6970 ## LD is ld it makes a PLAMLIB
6971 ## CC just makes a GrossModule.
6972 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6973 reload_cmds='$CC -r -o $output$reload_objs'
6974 hardcode_direct=no
6975 ;;
6976 motorola)
6977 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6978 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6979 ;;
6980 esac
6981 runpath_var='LD_RUN_PATH'
6982 hardcode_shlibpath_var=no
6983 ;;
6984
6985 sysv4.3*)
6986 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6987 hardcode_shlibpath_var=no
6988 export_dynamic_flag_spec='-Bexport'
6989 ;;
6990
6991 sysv4*MP*)
6992 if test -d /usr/nec; then
6993 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6994 hardcode_shlibpath_var=no
6995 runpath_var=LD_RUN_PATH
6996 hardcode_runpath_var=yes
6997 ld_shlibs=yes
6998 fi
6999 ;;
7000
7001 sysv4.2uw2*)
7002 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7003 hardcode_direct=yes
7004 hardcode_minus_L=no
7005 hardcode_shlibpath_var=no
7006 hardcode_runpath_var=yes
7007 runpath_var=LD_RUN_PATH
7008 ;;
7009
7010 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7011 no_undefined_flag='${wl}-z ${wl}text'
7012 if test "$GCC" = yes; then
7013 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7014 else
7015 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7016 fi
7017 runpath_var='LD_RUN_PATH'
7018 hardcode_shlibpath_var=no
7019 ;;
7020
7021 sysv5*)
7022 no_undefined_flag=' -z text'
7023 # $CC -shared without GNU ld will not create a library from C++
7024 # object files and a static libstdc++, better avoid it by now
7025 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7026 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7027 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7028 hardcode_libdir_flag_spec=
7029 hardcode_shlibpath_var=no
7030 runpath_var='LD_RUN_PATH'
7031 ;;
7032
7033 uts4*)
7034 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7035 hardcode_libdir_flag_spec='-L$libdir'
7036 hardcode_shlibpath_var=no
7037 ;;
7038
7039 *)
7040 ld_shlibs=no
7041 ;;
7042 esac
7043 fi
7044
John Criswell7a73b802003-06-30 21:59:07 +00007045echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7046echo "${ECHO_T}$ld_shlibs" >&6
7047test "$ld_shlibs" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00007048
John Criswell47fdd832003-07-14 16:52:07 +00007049variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7050if test "$GCC" = yes; then
7051 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7052fi
7053
7054#
7055# Do we need to explicitly link libc?
7056#
7057case "x$archive_cmds_need_lc" in
7058x|xyes)
7059 # Assume -lc should be added
7060 archive_cmds_need_lc=yes
7061
7062 if test "$enable_shared" = yes && test "$GCC" = yes; then
7063 case $archive_cmds in
7064 *'~'*)
7065 # FIXME: we may have to deal with multi-command sequences.
7066 ;;
7067 '$CC '*)
7068 # Test whether the compiler implicitly links with -lc since on some
7069 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7070 # to ld, don't add -lc before -lgcc.
7071 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7072echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7073 $rm conftest*
7074 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7075
7076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7077 (eval $ac_compile) 2>&5
7078 ac_status=$?
7079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7080 (exit $ac_status); } 2>conftest.err; then
7081 soname=conftest
7082 lib=conftest
7083 libobjs=conftest.$ac_objext
7084 deplibs=
7085 wl=$lt_prog_compiler_wl
7086 compiler_flags=-v
7087 linker_flags=-v
7088 verstring=
7089 output_objdir=.
7090 libname=conftest
7091 lt_save_allow_undefined_flag=$allow_undefined_flag
7092 allow_undefined_flag=
7093 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7094 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7095 ac_status=$?
7096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7097 (exit $ac_status); }
7098 then
7099 archive_cmds_need_lc=no
7100 else
7101 archive_cmds_need_lc=yes
7102 fi
7103 allow_undefined_flag=$lt_save_allow_undefined_flag
7104 else
7105 cat conftest.err 1>&5
7106 fi
7107 $rm conftest*
7108 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7109echo "${ECHO_T}$archive_cmds_need_lc" >&6
7110 ;;
7111 esac
7112 fi
7113 ;;
7114esac
7115
John Criswell7a73b802003-06-30 21:59:07 +00007116echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7117echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7118hardcode_action=
7119if test -n "$hardcode_libdir_flag_spec" || \
John Criswell47fdd832003-07-14 16:52:07 +00007120 test -n "$runpath_var " || \
7121 test "X$hardcode_automatic"="Xyes" ; then
John Criswell7a73b802003-06-30 21:59:07 +00007122
7123 # We can hardcode non-existant directories.
7124 if test "$hardcode_direct" != no &&
7125 # If the only mechanism to avoid hardcoding is shlibpath_var, we
7126 # have to relink, otherwise we might link with an installed library
7127 # when we should be linking with a yet-to-be-installed one
John Criswell47fdd832003-07-14 16:52:07 +00007128 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
John Criswell7a73b802003-06-30 21:59:07 +00007129 test "$hardcode_minus_L" != no; then
7130 # Linking always hardcodes the temporary library directory.
7131 hardcode_action=relink
7132 else
7133 # We can link without hardcoding, and we can hardcode nonexisting dirs.
7134 hardcode_action=immediate
7135 fi
7136else
7137 # We cannot hardcode anything, or else we can only hardcode existing
7138 # directories.
7139 hardcode_action=unsupported
7140fi
7141echo "$as_me:$LINENO: result: $hardcode_action" >&5
7142echo "${ECHO_T}$hardcode_action" >&6
John Criswell7a73b802003-06-30 21:59:07 +00007143
John Criswell47fdd832003-07-14 16:52:07 +00007144if test "$hardcode_action" = relink; then
7145 # Fast installation is not supported
7146 enable_fast_install=no
7147elif test "$shlibpath_overrides_runpath" = yes ||
7148 test "$enable_shared" = no; then
7149 # Fast installation is not necessary
7150 enable_fast_install=needless
7151fi
7152
John Criswell7a73b802003-06-30 21:59:07 +00007153striplib=
7154old_striplib=
7155echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7156echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7157if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7158 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7159 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7160 echo "$as_me:$LINENO: result: yes" >&5
7161echo "${ECHO_T}yes" >&6
7162else
John Criswell47fdd832003-07-14 16:52:07 +00007163# FIXME - insert some real tests, host_os isn't really good enough
7164 case $host_os in
7165 darwin*)
7166 if test -n "$STRIP" ; then
7167 striplib="$STRIP -x"
7168 echo "$as_me:$LINENO: result: yes" >&5
7169echo "${ECHO_T}yes" >&6
7170 else
John Criswell7a73b802003-06-30 21:59:07 +00007171 echo "$as_me:$LINENO: result: no" >&5
7172echo "${ECHO_T}no" >&6
7173fi
John Criswell47fdd832003-07-14 16:52:07 +00007174 ;;
7175 *)
7176 echo "$as_me:$LINENO: result: no" >&5
7177echo "${ECHO_T}no" >&6
7178 ;;
7179 esac
7180fi
John Criswell7a73b802003-06-30 21:59:07 +00007181
John Criswell7a73b802003-06-30 21:59:07 +00007182echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7183echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7184library_names_spec=
7185libname_spec='lib$name'
7186soname_spec=
John Criswell47fdd832003-07-14 16:52:07 +00007187shrext=".so"
John Criswell7a73b802003-06-30 21:59:07 +00007188postinstall_cmds=
7189postuninstall_cmds=
7190finish_cmds=
7191finish_eval=
7192shlibpath_var=
7193shlibpath_overrides_runpath=unknown
7194version_type=none
7195dynamic_linker="$host_os ld.so"
7196sys_lib_dlsearch_path_spec="/lib /usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +00007197if test "$GCC" = yes; then
7198 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7199 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7200 # if the path contains ";" then we assume it to be the separator
7201 # otherwise default to the standard path separator (i.e. ":") - it is
7202 # assumed that no part of a normal pathname contains ";" but that should
7203 # okay in the real world where ";" in dirpaths is itself problematic.
7204 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7205 else
7206 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7207 fi
7208else
7209 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7210fi
7211need_lib_prefix=unknown
7212hardcode_into_libs=no
7213
7214# when you set need_version to no, make sure it does not cause -set_version
7215# flags to be left without arguments
7216need_version=unknown
John Criswell7a73b802003-06-30 21:59:07 +00007217
7218case $host_os in
7219aix3*)
7220 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007221 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +00007222 shlibpath_var=LIBPATH
7223
John Criswell47fdd832003-07-14 16:52:07 +00007224 # AIX 3 has no versioning support, so we append a major version to the name.
7225 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007226 ;;
7227
7228aix4* | aix5*)
7229 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007230 need_lib_prefix=no
7231 need_version=no
7232 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +00007233 if test "$host_cpu" = ia64; then
7234 # AIX 5 supports IA64
John Criswell47fdd832003-07-14 16:52:07 +00007235 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007236 shlibpath_var=LD_LIBRARY_PATH
7237 else
7238 # With GCC up to 2.95.x, collect2 would create an import file
7239 # for dependence libraries. The import file would start with
7240 # the line `#! .'. This would cause the generated library to
7241 # depend on `.', always an invalid library. This was fixed in
7242 # development snapshots of GCC prior to 3.0.
7243 case $host_os in
7244 aix4 | aix4.[01] | aix4.[01].*)
John Criswell47fdd832003-07-14 16:52:07 +00007245 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7246 echo ' yes '
7247 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7248 :
7249 else
7250 can_build_shared=no
7251 fi
7252 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007253 esac
John Criswell47fdd832003-07-14 16:52:07 +00007254 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7255 # soname into executable. Probably we can add versioning support to
7256 # collect2, so additional links can be useful in future.
John Criswell7a73b802003-06-30 21:59:07 +00007257 if test "$aix_use_runtimelinking" = yes; then
7258 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7259 # instead of lib<name>.a to let people know that these are not
7260 # typical AIX shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +00007261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007262 else
7263 # We preserve .a as extension for shared libraries through AIX4.2
7264 # and later when we are not doing run time linking.
7265 library_names_spec='${libname}${release}.a $libname.a'
John Criswell47fdd832003-07-14 16:52:07 +00007266 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007267 fi
7268 shlibpath_var=LIBPATH
7269 fi
7270 ;;
7271
7272amigaos*)
7273 library_names_spec='$libname.ixlibrary $libname.a'
7274 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7275 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'
7276 ;;
7277
7278beos*)
John Criswell47fdd832003-07-14 16:52:07 +00007279 library_names_spec='${libname}${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007280 dynamic_linker="$host_os ld.so"
7281 shlibpath_var=LIBRARY_PATH
7282 ;;
7283
7284bsdi4*)
7285 version_type=linux
7286 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7288 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007289 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7290 shlibpath_var=LD_LIBRARY_PATH
7291 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7292 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
John Criswell7a73b802003-06-30 21:59:07 +00007293 # the default ld.so.conf also contains /usr/contrib/lib and
7294 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7295 # libtool to hard-code these into programs
7296 ;;
7297
7298cygwin* | mingw* | pw32*)
7299 version_type=windows
John Criswell47fdd832003-07-14 16:52:07 +00007300 shrext=".dll"
John Criswell7a73b802003-06-30 21:59:07 +00007301 need_version=no
7302 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +00007303
John Criswell7a73b802003-06-30 21:59:07 +00007304 case $GCC,$host_os in
John Criswell47fdd832003-07-14 16:52:07 +00007305 yes,cygwin* | yes,mingw* | yes,pw32*)
John Criswell7a73b802003-06-30 21:59:07 +00007306 library_names_spec='$libname.dll.a'
John Criswell47fdd832003-07-14 16:52:07 +00007307 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7308 postinstall_cmds='base_file=`basename \${file}`~
7309 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
John Criswell7a73b802003-06-30 21:59:07 +00007310 dldir=$destdir/`dirname \$dlpath`~
7311 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +00007312 $install_prog $dir/$dlname \$dldir/$dlname'
7313 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
John Criswell7a73b802003-06-30 21:59:07 +00007314 dlpath=$dir/\$dldll~
7315 $rm \$dlpath'
John Criswell47fdd832003-07-14 16:52:07 +00007316 shlibpath_overrides_runpath=yes
7317
7318 case $host_os in
7319 cygwin*)
7320 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7321 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7322 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
7323 ;;
7324 mingw*)
7325 # MinGW DLLs use traditional 'lib' prefix
7326 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7327 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7328 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7329 # It is most probably a Windows format PATH printed by
7330 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7331 # path with ; separators, and with drive letters. We can handle the
7332 # drive letters (cygwin fileutils understands them), so leave them,
7333 # especially as we might pass files found there to a mingw objdump,
7334 # which wouldn't understand a cygwinified path. Ahh.
7335 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7336 else
7337 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7338 fi
7339 ;;
7340 pw32*)
7341 # pw32 DLLs use 'pw' prefix rather than 'lib'
7342 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7343 ;;
7344 esac
John Criswell7a73b802003-06-30 21:59:07 +00007345 ;;
John Criswell47fdd832003-07-14 16:52:07 +00007346
John Criswell7a73b802003-06-30 21:59:07 +00007347 *)
John Criswell47fdd832003-07-14 16:52:07 +00007348 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
John Criswell7a73b802003-06-30 21:59:07 +00007349 ;;
7350 esac
7351 dynamic_linker='Win32 ld.exe'
7352 # FIXME: first we should search . and the directory the executable is in
7353 shlibpath_var=PATH
7354 ;;
7355
7356darwin* | rhapsody*)
7357 dynamic_linker="$host_os dyld"
7358 version_type=darwin
7359 need_lib_prefix=no
7360 need_version=no
7361 # FIXME: Relying on posixy $() will cause problems for
7362 # cross-compilation, but unfortunately the echo tests do not
7363 # yet detect zsh echo's removal of \ escapes.
John Criswell47fdd832003-07-14 16:52:07 +00007364 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7365 soname_spec='${libname}${release}${major}$shared_ext'
John Criswell7a73b802003-06-30 21:59:07 +00007366 shlibpath_overrides_runpath=yes
7367 shlibpath_var=DYLD_LIBRARY_PATH
John Criswell47fdd832003-07-14 16:52:07 +00007368 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
7369 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7370 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7371 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"`
7372 fi
7373 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7374 ;;
7375
7376dgux*)
7377 version_type=linux
7378 need_lib_prefix=no
7379 need_version=no
7380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7381 soname_spec='${libname}${release}${shared_ext}$major'
7382 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +00007383 ;;
7384
7385freebsd1*)
7386 dynamic_linker=no
7387 ;;
7388
7389freebsd*)
7390 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7391 version_type=freebsd-$objformat
7392 case $version_type in
7393 freebsd-elf*)
John Criswell47fdd832003-07-14 16:52:07 +00007394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007395 need_version=no
7396 need_lib_prefix=no
7397 ;;
7398 freebsd-*)
John Criswell47fdd832003-07-14 16:52:07 +00007399 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +00007400 need_version=yes
7401 ;;
7402 esac
7403 shlibpath_var=LD_LIBRARY_PATH
7404 case $host_os in
7405 freebsd2*)
7406 shlibpath_overrides_runpath=yes
7407 ;;
John Criswell47fdd832003-07-14 16:52:07 +00007408 freebsd3.01* | freebsdelf3.01*)
7409 shlibpath_overrides_runpath=yes
7410 hardcode_into_libs=yes
7411 ;;
7412 *) # from 3.2 on
John Criswell7a73b802003-06-30 21:59:07 +00007413 shlibpath_overrides_runpath=no
7414 hardcode_into_libs=yes
7415 ;;
7416 esac
7417 ;;
7418
7419gnu*)
7420 version_type=linux
7421 need_lib_prefix=no
7422 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007423 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7424 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007425 shlibpath_var=LD_LIBRARY_PATH
7426 hardcode_into_libs=yes
7427 ;;
7428
7429hpux9* | hpux10* | hpux11*)
7430 # Give a soname corresponding to the major version so that dld.sl refuses to
7431 # link against other versions.
John Criswell7a73b802003-06-30 21:59:07 +00007432 version_type=sunos
7433 need_lib_prefix=no
7434 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007435 case "$host_cpu" in
7436 ia64*)
7437 shrext='.so'
7438 hardcode_into_libs=yes
7439 dynamic_linker="$host_os dld.so"
7440 shlibpath_var=LD_LIBRARY_PATH
7441 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7443 soname_spec='${libname}${release}${shared_ext}$major'
7444 if test "X$HPUX_IA64_MODE" = X32; then
7445 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7446 else
7447 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7448 fi
7449 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7450 ;;
7451 hppa*64*)
7452 shrext='.sl'
7453 hardcode_into_libs=yes
7454 dynamic_linker="$host_os dld.sl"
7455 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7456 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7458 soname_spec='${libname}${release}${shared_ext}$major'
7459 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7460 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7461 ;;
7462 *)
7463 shrext='.sl'
7464 dynamic_linker="$host_os dld.sl"
7465 shlibpath_var=SHLIB_PATH
7466 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7467 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7468 soname_spec='${libname}${release}${shared_ext}$major'
7469 ;;
7470 esac
John Criswell7a73b802003-06-30 21:59:07 +00007471 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7472 postinstall_cmds='chmod 555 $lib'
7473 ;;
7474
John Criswell47fdd832003-07-14 16:52:07 +00007475irix5* | irix6* | nonstopux*)
7476 case $host_os in
7477 nonstopux*) version_type=nonstopux ;;
7478 *)
7479 if test "$lt_cv_prog_gnu_ld" = yes; then
7480 version_type=linux
7481 else
7482 version_type=irix
7483 fi ;;
7484 esac
John Criswell7a73b802003-06-30 21:59:07 +00007485 need_lib_prefix=no
7486 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007487 soname_spec='${libname}${release}${shared_ext}$major'
7488 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 +00007489 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00007490 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +00007491 libsuff= shlibsuff=
7492 ;;
7493 *)
7494 case $LD in # libtool.m4 will add one of these switches to LD
John Criswell47fdd832003-07-14 16:52:07 +00007495 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7496 libsuff= shlibsuff= libmagic=32-bit;;
7497 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7498 libsuff=32 shlibsuff=N32 libmagic=N32;;
7499 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7500 libsuff=64 shlibsuff=64 libmagic=64-bit;;
John Criswell7a73b802003-06-30 21:59:07 +00007501 *) libsuff= shlibsuff= libmagic=never-match;;
7502 esac
7503 ;;
7504 esac
7505 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7506 shlibpath_overrides_runpath=no
7507 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7508 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
John Criswell47fdd832003-07-14 16:52:07 +00007509 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +00007510 ;;
7511
7512# No shared lib support for Linux oldld, aout, or coff.
John Criswell47fdd832003-07-14 16:52:07 +00007513linux*oldld* | linux*aout* | linux*coff*)
John Criswell7a73b802003-06-30 21:59:07 +00007514 dynamic_linker=no
7515 ;;
7516
7517# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +00007518linux*)
John Criswell7a73b802003-06-30 21:59:07 +00007519 version_type=linux
7520 need_lib_prefix=no
7521 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7523 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007524 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7525 shlibpath_var=LD_LIBRARY_PATH
7526 shlibpath_overrides_runpath=no
7527 # This implies no fast_install, which is unacceptable.
7528 # Some rework will be needed to allow for fast_install
7529 # before this can be enabled.
7530 hardcode_into_libs=yes
7531
7532 # We used to test for /lib/ld.so.1 and disable shared libraries on
7533 # powerpc, because MkLinux only supported shared libraries with the
7534 # GNU dynamic linker. Since this was broken with cross compilers,
7535 # most powerpc-linux boxes support dynamic linking these days and
7536 # people can always --disable-shared, the test was removed, and we
7537 # assume the GNU/Linux dynamic linker is in use.
7538 dynamic_linker='GNU/Linux ld.so'
7539 ;;
7540
7541netbsd*)
7542 version_type=sunos
7543 need_lib_prefix=no
7544 need_version=no
7545 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +00007546 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +00007547 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7548 dynamic_linker='NetBSD (a.out) ld.so'
7549 else
John Criswell47fdd832003-07-14 16:52:07 +00007550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
7551 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007552 dynamic_linker='NetBSD ld.elf_so'
7553 fi
7554 shlibpath_var=LD_LIBRARY_PATH
7555 shlibpath_overrides_runpath=yes
7556 hardcode_into_libs=yes
7557 ;;
7558
7559newsos6)
7560 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007561 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7562 shlibpath_var=LD_LIBRARY_PATH
7563 shlibpath_overrides_runpath=yes
7564 ;;
7565
7566nto-qnx)
7567 version_type=linux
7568 need_lib_prefix=no
7569 need_version=no
7570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7571 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007572 shlibpath_var=LD_LIBRARY_PATH
7573 shlibpath_overrides_runpath=yes
7574 ;;
7575
7576openbsd*)
7577 version_type=sunos
7578 need_lib_prefix=no
7579 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7581 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7582 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +00007583 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 +00007584 case $host_os in
7585 openbsd2.[89] | openbsd2.[89].*)
7586 shlibpath_overrides_runpath=no
7587 ;;
7588 *)
7589 shlibpath_overrides_runpath=yes
7590 ;;
7591 esac
John Criswell7a73b802003-06-30 21:59:07 +00007592 else
7593 shlibpath_overrides_runpath=yes
7594 fi
John Criswell7a73b802003-06-30 21:59:07 +00007595 ;;
7596
7597os2*)
7598 libname_spec='$name'
John Criswell47fdd832003-07-14 16:52:07 +00007599 shrext=".dll"
John Criswell7a73b802003-06-30 21:59:07 +00007600 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +00007601 library_names_spec='$libname${shared_ext} $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +00007602 dynamic_linker='OS/2 ld.exe'
7603 shlibpath_var=LIBPATH
7604 ;;
7605
7606osf3* | osf4* | osf5*)
7607 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +00007608 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +00007609 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007610 soname_spec='${libname}${release}${shared_ext}$major'
7611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007612 shlibpath_var=LD_LIBRARY_PATH
7613 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7614 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7615 ;;
7616
7617sco3.2v5*)
7618 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +00007619 soname_spec='${libname}${release}${shared_ext}$major'
7620 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007621 shlibpath_var=LD_LIBRARY_PATH
7622 ;;
7623
7624solaris*)
7625 version_type=linux
7626 need_lib_prefix=no
7627 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7629 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007630 shlibpath_var=LD_LIBRARY_PATH
7631 shlibpath_overrides_runpath=yes
7632 hardcode_into_libs=yes
7633 # ldd complains unless libraries are executable
7634 postinstall_cmds='chmod +x $lib'
7635 ;;
7636
7637sunos4*)
7638 version_type=sunos
John Criswell47fdd832003-07-14 16:52:07 +00007639 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +00007640 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7641 shlibpath_var=LD_LIBRARY_PATH
7642 shlibpath_overrides_runpath=yes
7643 if test "$with_gnu_ld" = yes; then
7644 need_lib_prefix=no
7645 fi
7646 need_version=yes
7647 ;;
7648
7649sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7650 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7652 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007653 shlibpath_var=LD_LIBRARY_PATH
7654 case $host_vendor in
7655 sni)
7656 shlibpath_overrides_runpath=no
John Criswell47fdd832003-07-14 16:52:07 +00007657 need_lib_prefix=no
7658 export_dynamic_flag_spec='${wl}-Blargedynsym'
7659 runpath_var=LD_RUN_PATH
7660 ;;
7661 siemens)
7662 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +00007663 ;;
7664 motorola)
7665 need_lib_prefix=no
7666 need_version=no
7667 shlibpath_overrides_runpath=no
7668 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7669 ;;
7670 esac
7671 ;;
7672
John Criswell7a73b802003-06-30 21:59:07 +00007673sysv4*MP*)
7674 if test -d /usr/nec ;then
7675 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007676 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7677 soname_spec='$libname${shared_ext}.$major'
John Criswell7a73b802003-06-30 21:59:07 +00007678 shlibpath_var=LD_LIBRARY_PATH
7679 fi
7680 ;;
7681
John Criswell47fdd832003-07-14 16:52:07 +00007682uts4*)
7683 version_type=linux
7684 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7685 soname_spec='${libname}${release}${shared_ext}$major'
7686 shlibpath_var=LD_LIBRARY_PATH
7687 ;;
7688
John Criswell7a73b802003-06-30 21:59:07 +00007689*)
7690 dynamic_linker=no
7691 ;;
7692esac
7693echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7694echo "${ECHO_T}$dynamic_linker" >&6
7695test "$dynamic_linker" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00007696
7697if test "x$enable_dlopen" != xyes; then
7698 enable_dlopen=unknown
7699 enable_dlopen_self=unknown
7700 enable_dlopen_self_static=unknown
7701else
7702 lt_cv_dlopen=no
7703 lt_cv_dlopen_libs=
7704
7705 case $host_os in
7706 beos*)
7707 lt_cv_dlopen="load_add_on"
7708 lt_cv_dlopen_libs=
7709 lt_cv_dlopen_self=yes
7710 ;;
7711
John Criswell47fdd832003-07-14 16:52:07 +00007712 mingw* | pw32*)
John Criswell7a73b802003-06-30 21:59:07 +00007713 lt_cv_dlopen="LoadLibrary"
7714 lt_cv_dlopen_libs=
7715 ;;
7716
John Criswell47fdd832003-07-14 16:52:07 +00007717 cygwin*)
7718 lt_cv_dlopen="dlopen"
7719 lt_cv_dlopen_libs=
7720 ;;
7721
7722 darwin*)
7723 # if libdl is installed we need to link against it
7724 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7725echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7726if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7727 echo $ECHO_N "(cached) $ECHO_C" >&6
7728else
7729 ac_check_lib_save_LIBS=$LIBS
7730LIBS="-ldl $LIBS"
7731cat >conftest.$ac_ext <<_ACEOF
7732#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00007733/* confdefs.h. */
7734_ACEOF
7735cat confdefs.h >>conftest.$ac_ext
7736cat >>conftest.$ac_ext <<_ACEOF
7737/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00007738
7739/* Override any gcc2 internal prototype to avoid an error. */
7740#ifdef __cplusplus
7741extern "C"
7742#endif
7743/* We use char because int might match the return type of a gcc2
7744 builtin and then its argument prototype would still apply. */
7745char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +00007746int
7747main ()
7748{
7749dlopen ();
7750 ;
7751 return 0;
7752}
7753_ACEOF
7754rm -f conftest.$ac_objext conftest$ac_exeext
7755if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7756 (eval $ac_link) 2>&5
7757 ac_status=$?
7758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7759 (exit $ac_status); } &&
7760 { ac_try='test -s conftest$ac_exeext'
7761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7762 (eval $ac_try) 2>&5
7763 ac_status=$?
7764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7765 (exit $ac_status); }; }; then
7766 ac_cv_lib_dl_dlopen=yes
7767else
7768 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00007769sed 's/^/| /' conftest.$ac_ext >&5
7770
John Criswell47fdd832003-07-14 16:52:07 +00007771ac_cv_lib_dl_dlopen=no
7772fi
7773rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7774LIBS=$ac_check_lib_save_LIBS
7775fi
7776echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7777echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7778if test $ac_cv_lib_dl_dlopen = yes; then
7779 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7780else
7781
7782 lt_cv_dlopen="dyld"
7783 lt_cv_dlopen_libs=
7784 lt_cv_dlopen_self=yes
7785
7786fi
7787
7788 ;;
7789
John Criswell7a73b802003-06-30 21:59:07 +00007790 *)
7791 echo "$as_me:$LINENO: checking for shl_load" >&5
7792echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7793if test "${ac_cv_func_shl_load+set}" = set; then
7794 echo $ECHO_N "(cached) $ECHO_C" >&6
7795else
7796 cat >conftest.$ac_ext <<_ACEOF
7797#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00007798/* confdefs.h. */
7799_ACEOF
7800cat confdefs.h >>conftest.$ac_ext
7801cat >>conftest.$ac_ext <<_ACEOF
7802/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00007803/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +00007804 which can conflict with char shl_load (); below.
7805 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7806 <limits.h> exists even on freestanding compilers. */
7807#ifdef __STDC__
7808# include <limits.h>
7809#else
7810# include <assert.h>
7811#endif
John Criswell7a73b802003-06-30 21:59:07 +00007812/* Override any gcc2 internal prototype to avoid an error. */
7813#ifdef __cplusplus
7814extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +00007815{
John Criswell7a73b802003-06-30 21:59:07 +00007816#endif
7817/* We use char because int might match the return type of a gcc2
7818 builtin and then its argument prototype would still apply. */
7819char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +00007820/* The GNU C library defines this for functions which it implements
7821 to always fail with ENOSYS. Some functions are actually named
7822 something starting with __ and the normal name is an alias. */
7823#if defined (__stub_shl_load) || defined (__stub___shl_load)
7824choke me
7825#else
John Criswell0c38eaf2003-09-10 15:17:25 +00007826char (*f) () = shl_load;
7827#endif
7828#ifdef __cplusplus
7829}
John Criswell7a73b802003-06-30 21:59:07 +00007830#endif
7831
John Criswell0c38eaf2003-09-10 15:17:25 +00007832int
7833main ()
7834{
7835return f != shl_load;
John Criswell7a73b802003-06-30 21:59:07 +00007836 ;
7837 return 0;
7838}
7839_ACEOF
7840rm -f conftest.$ac_objext conftest$ac_exeext
7841if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7842 (eval $ac_link) 2>&5
7843 ac_status=$?
7844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7845 (exit $ac_status); } &&
7846 { ac_try='test -s conftest$ac_exeext'
7847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7848 (eval $ac_try) 2>&5
7849 ac_status=$?
7850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7851 (exit $ac_status); }; }; then
7852 ac_cv_func_shl_load=yes
7853else
7854 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00007855sed 's/^/| /' conftest.$ac_ext >&5
7856
John Criswell7a73b802003-06-30 21:59:07 +00007857ac_cv_func_shl_load=no
7858fi
7859rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7860fi
7861echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7862echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7863if test $ac_cv_func_shl_load = yes; then
7864 lt_cv_dlopen="shl_load"
7865else
7866 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7867echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7868if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7869 echo $ECHO_N "(cached) $ECHO_C" >&6
7870else
7871 ac_check_lib_save_LIBS=$LIBS
7872LIBS="-ldld $LIBS"
7873cat >conftest.$ac_ext <<_ACEOF
7874#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00007875/* confdefs.h. */
7876_ACEOF
7877cat confdefs.h >>conftest.$ac_ext
7878cat >>conftest.$ac_ext <<_ACEOF
7879/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00007880
7881/* Override any gcc2 internal prototype to avoid an error. */
7882#ifdef __cplusplus
7883extern "C"
7884#endif
7885/* We use char because int might match the return type of a gcc2
7886 builtin and then its argument prototype would still apply. */
7887char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +00007888int
7889main ()
7890{
7891shl_load ();
7892 ;
7893 return 0;
7894}
7895_ACEOF
7896rm -f conftest.$ac_objext conftest$ac_exeext
7897if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7898 (eval $ac_link) 2>&5
7899 ac_status=$?
7900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7901 (exit $ac_status); } &&
7902 { ac_try='test -s conftest$ac_exeext'
7903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7904 (eval $ac_try) 2>&5
7905 ac_status=$?
7906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7907 (exit $ac_status); }; }; then
7908 ac_cv_lib_dld_shl_load=yes
7909else
7910 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00007911sed 's/^/| /' conftest.$ac_ext >&5
7912
John Criswell7a73b802003-06-30 21:59:07 +00007913ac_cv_lib_dld_shl_load=no
7914fi
7915rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7916LIBS=$ac_check_lib_save_LIBS
7917fi
7918echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7919echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7920if test $ac_cv_lib_dld_shl_load = yes; then
7921 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
7922else
7923 echo "$as_me:$LINENO: checking for dlopen" >&5
7924echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
7925if test "${ac_cv_func_dlopen+set}" = set; then
7926 echo $ECHO_N "(cached) $ECHO_C" >&6
7927else
7928 cat >conftest.$ac_ext <<_ACEOF
7929#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00007930/* confdefs.h. */
7931_ACEOF
7932cat confdefs.h >>conftest.$ac_ext
7933cat >>conftest.$ac_ext <<_ACEOF
7934/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00007935/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +00007936 which can conflict with char dlopen (); below.
7937 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7938 <limits.h> exists even on freestanding compilers. */
7939#ifdef __STDC__
7940# include <limits.h>
7941#else
7942# include <assert.h>
7943#endif
John Criswell7a73b802003-06-30 21:59:07 +00007944/* Override any gcc2 internal prototype to avoid an error. */
7945#ifdef __cplusplus
7946extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +00007947{
John Criswell7a73b802003-06-30 21:59:07 +00007948#endif
7949/* We use char because int might match the return type of a gcc2
7950 builtin and then its argument prototype would still apply. */
7951char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +00007952/* The GNU C library defines this for functions which it implements
7953 to always fail with ENOSYS. Some functions are actually named
7954 something starting with __ and the normal name is an alias. */
7955#if defined (__stub_dlopen) || defined (__stub___dlopen)
7956choke me
7957#else
John Criswell0c38eaf2003-09-10 15:17:25 +00007958char (*f) () = dlopen;
7959#endif
7960#ifdef __cplusplus
7961}
John Criswell7a73b802003-06-30 21:59:07 +00007962#endif
7963
John Criswell0c38eaf2003-09-10 15:17:25 +00007964int
7965main ()
7966{
7967return f != dlopen;
John Criswell7a73b802003-06-30 21:59:07 +00007968 ;
7969 return 0;
7970}
7971_ACEOF
7972rm -f conftest.$ac_objext conftest$ac_exeext
7973if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7974 (eval $ac_link) 2>&5
7975 ac_status=$?
7976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7977 (exit $ac_status); } &&
7978 { ac_try='test -s conftest$ac_exeext'
7979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7980 (eval $ac_try) 2>&5
7981 ac_status=$?
7982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7983 (exit $ac_status); }; }; then
7984 ac_cv_func_dlopen=yes
7985else
7986 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00007987sed 's/^/| /' conftest.$ac_ext >&5
7988
John Criswell7a73b802003-06-30 21:59:07 +00007989ac_cv_func_dlopen=no
7990fi
7991rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7992fi
7993echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
7994echo "${ECHO_T}$ac_cv_func_dlopen" >&6
7995if test $ac_cv_func_dlopen = yes; then
7996 lt_cv_dlopen="dlopen"
7997else
7998 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7999echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8000if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8001 echo $ECHO_N "(cached) $ECHO_C" >&6
8002else
8003 ac_check_lib_save_LIBS=$LIBS
8004LIBS="-ldl $LIBS"
8005cat >conftest.$ac_ext <<_ACEOF
8006#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008007/* confdefs.h. */
8008_ACEOF
8009cat confdefs.h >>conftest.$ac_ext
8010cat >>conftest.$ac_ext <<_ACEOF
8011/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008012
8013/* Override any gcc2 internal prototype to avoid an error. */
8014#ifdef __cplusplus
8015extern "C"
8016#endif
8017/* We use char because int might match the return type of a gcc2
8018 builtin and then its argument prototype would still apply. */
8019char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +00008020int
8021main ()
8022{
8023dlopen ();
8024 ;
8025 return 0;
8026}
8027_ACEOF
8028rm -f conftest.$ac_objext conftest$ac_exeext
8029if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8030 (eval $ac_link) 2>&5
8031 ac_status=$?
8032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8033 (exit $ac_status); } &&
8034 { ac_try='test -s conftest$ac_exeext'
8035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8036 (eval $ac_try) 2>&5
8037 ac_status=$?
8038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8039 (exit $ac_status); }; }; then
8040 ac_cv_lib_dl_dlopen=yes
8041else
8042 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008043sed 's/^/| /' conftest.$ac_ext >&5
8044
John Criswell7a73b802003-06-30 21:59:07 +00008045ac_cv_lib_dl_dlopen=no
8046fi
8047rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8048LIBS=$ac_check_lib_save_LIBS
8049fi
8050echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8051echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8052if test $ac_cv_lib_dl_dlopen = yes; then
8053 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8054else
8055 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8056echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8057if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8058 echo $ECHO_N "(cached) $ECHO_C" >&6
8059else
8060 ac_check_lib_save_LIBS=$LIBS
8061LIBS="-lsvld $LIBS"
8062cat >conftest.$ac_ext <<_ACEOF
8063#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008064/* confdefs.h. */
8065_ACEOF
8066cat confdefs.h >>conftest.$ac_ext
8067cat >>conftest.$ac_ext <<_ACEOF
8068/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008069
8070/* Override any gcc2 internal prototype to avoid an error. */
8071#ifdef __cplusplus
8072extern "C"
8073#endif
8074/* We use char because int might match the return type of a gcc2
8075 builtin and then its argument prototype would still apply. */
8076char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +00008077int
8078main ()
8079{
8080dlopen ();
8081 ;
8082 return 0;
8083}
8084_ACEOF
8085rm -f conftest.$ac_objext conftest$ac_exeext
8086if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8087 (eval $ac_link) 2>&5
8088 ac_status=$?
8089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8090 (exit $ac_status); } &&
8091 { ac_try='test -s conftest$ac_exeext'
8092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8093 (eval $ac_try) 2>&5
8094 ac_status=$?
8095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8096 (exit $ac_status); }; }; then
8097 ac_cv_lib_svld_dlopen=yes
8098else
8099 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008100sed 's/^/| /' conftest.$ac_ext >&5
8101
John Criswell7a73b802003-06-30 21:59:07 +00008102ac_cv_lib_svld_dlopen=no
8103fi
8104rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8105LIBS=$ac_check_lib_save_LIBS
8106fi
8107echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8108echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8109if test $ac_cv_lib_svld_dlopen = yes; then
8110 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8111else
8112 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8113echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8114if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8115 echo $ECHO_N "(cached) $ECHO_C" >&6
8116else
8117 ac_check_lib_save_LIBS=$LIBS
8118LIBS="-ldld $LIBS"
8119cat >conftest.$ac_ext <<_ACEOF
8120#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008121/* confdefs.h. */
8122_ACEOF
8123cat confdefs.h >>conftest.$ac_ext
8124cat >>conftest.$ac_ext <<_ACEOF
8125/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008126
8127/* Override any gcc2 internal prototype to avoid an error. */
8128#ifdef __cplusplus
8129extern "C"
8130#endif
8131/* We use char because int might match the return type of a gcc2
8132 builtin and then its argument prototype would still apply. */
8133char dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +00008134int
8135main ()
8136{
8137dld_link ();
8138 ;
8139 return 0;
8140}
8141_ACEOF
8142rm -f conftest.$ac_objext conftest$ac_exeext
8143if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8144 (eval $ac_link) 2>&5
8145 ac_status=$?
8146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8147 (exit $ac_status); } &&
8148 { ac_try='test -s conftest$ac_exeext'
8149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8150 (eval $ac_try) 2>&5
8151 ac_status=$?
8152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8153 (exit $ac_status); }; }; then
8154 ac_cv_lib_dld_dld_link=yes
8155else
8156 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008157sed 's/^/| /' conftest.$ac_ext >&5
8158
John Criswell7a73b802003-06-30 21:59:07 +00008159ac_cv_lib_dld_dld_link=no
8160fi
8161rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8162LIBS=$ac_check_lib_save_LIBS
8163fi
8164echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8165echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8166if test $ac_cv_lib_dld_dld_link = yes; then
8167 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8168fi
8169
8170
8171fi
8172
8173
8174fi
8175
8176
8177fi
8178
8179
8180fi
8181
8182
8183fi
8184
8185 ;;
8186 esac
8187
8188 if test "x$lt_cv_dlopen" != xno; then
8189 enable_dlopen=yes
8190 else
8191 enable_dlopen=no
8192 fi
8193
8194 case $lt_cv_dlopen in
8195 dlopen)
8196 save_CPPFLAGS="$CPPFLAGS"
John Criswell47fdd832003-07-14 16:52:07 +00008197 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
John Criswell7a73b802003-06-30 21:59:07 +00008198
8199 save_LDFLAGS="$LDFLAGS"
8200 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8201
8202 save_LIBS="$LIBS"
8203 LIBS="$lt_cv_dlopen_libs $LIBS"
8204
8205 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8206echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8207if test "${lt_cv_dlopen_self+set}" = set; then
8208 echo $ECHO_N "(cached) $ECHO_C" >&6
8209else
8210 if test "$cross_compiling" = yes; then :
8211 lt_cv_dlopen_self=cross
8212else
John Criswell47fdd832003-07-14 16:52:07 +00008213 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +00008214 lt_status=$lt_dlunknown
8215 cat > conftest.$ac_ext <<EOF
John Criswelldc76e322004-07-23 15:40:57 +00008216#line 8216 "configure"
John Criswell7a73b802003-06-30 21:59:07 +00008217#include "confdefs.h"
8218
8219#if HAVE_DLFCN_H
8220#include <dlfcn.h>
8221#endif
8222
8223#include <stdio.h>
8224
8225#ifdef RTLD_GLOBAL
8226# define LT_DLGLOBAL RTLD_GLOBAL
8227#else
8228# ifdef DL_GLOBAL
8229# define LT_DLGLOBAL DL_GLOBAL
8230# else
8231# define LT_DLGLOBAL 0
8232# endif
8233#endif
8234
8235/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8236 find out it does not work in some platform. */
8237#ifndef LT_DLLAZY_OR_NOW
8238# ifdef RTLD_LAZY
8239# define LT_DLLAZY_OR_NOW RTLD_LAZY
8240# else
8241# ifdef DL_LAZY
8242# define LT_DLLAZY_OR_NOW DL_LAZY
8243# else
8244# ifdef RTLD_NOW
8245# define LT_DLLAZY_OR_NOW RTLD_NOW
8246# else
8247# ifdef DL_NOW
8248# define LT_DLLAZY_OR_NOW DL_NOW
8249# else
8250# define LT_DLLAZY_OR_NOW 0
8251# endif
8252# endif
8253# endif
8254# endif
8255#endif
8256
8257#ifdef __cplusplus
8258extern "C" void exit (int);
8259#endif
8260
8261void fnord() { int i=42;}
8262int main ()
8263{
8264 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8265 int status = $lt_dlunknown;
8266
8267 if (self)
8268 {
8269 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8270 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8271 /* dlclose (self); */
8272 }
8273
8274 exit (status);
8275}
8276EOF
8277 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8278 (eval $ac_link) 2>&5
8279 ac_status=$?
8280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8281 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8282 (./conftest; exit; ) 2>/dev/null
8283 lt_status=$?
8284 case x$lt_status in
8285 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8286 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8287 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8288 esac
8289 else :
8290 # compilation failed
8291 lt_cv_dlopen_self=no
8292 fi
8293fi
8294rm -fr conftest*
8295
8296
8297fi
8298echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8299echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8300
8301 if test "x$lt_cv_dlopen_self" = xyes; then
8302 LDFLAGS="$LDFLAGS $link_static_flag"
8303 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8304echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8305if test "${lt_cv_dlopen_self_static+set}" = set; then
8306 echo $ECHO_N "(cached) $ECHO_C" >&6
8307else
8308 if test "$cross_compiling" = yes; then :
8309 lt_cv_dlopen_self_static=cross
8310else
John Criswell47fdd832003-07-14 16:52:07 +00008311 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +00008312 lt_status=$lt_dlunknown
8313 cat > conftest.$ac_ext <<EOF
John Criswelldc76e322004-07-23 15:40:57 +00008314#line 8314 "configure"
John Criswell7a73b802003-06-30 21:59:07 +00008315#include "confdefs.h"
8316
8317#if HAVE_DLFCN_H
8318#include <dlfcn.h>
8319#endif
8320
8321#include <stdio.h>
8322
8323#ifdef RTLD_GLOBAL
8324# define LT_DLGLOBAL RTLD_GLOBAL
8325#else
8326# ifdef DL_GLOBAL
8327# define LT_DLGLOBAL DL_GLOBAL
8328# else
8329# define LT_DLGLOBAL 0
8330# endif
8331#endif
8332
8333/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8334 find out it does not work in some platform. */
8335#ifndef LT_DLLAZY_OR_NOW
8336# ifdef RTLD_LAZY
8337# define LT_DLLAZY_OR_NOW RTLD_LAZY
8338# else
8339# ifdef DL_LAZY
8340# define LT_DLLAZY_OR_NOW DL_LAZY
8341# else
8342# ifdef RTLD_NOW
8343# define LT_DLLAZY_OR_NOW RTLD_NOW
8344# else
8345# ifdef DL_NOW
8346# define LT_DLLAZY_OR_NOW DL_NOW
8347# else
8348# define LT_DLLAZY_OR_NOW 0
8349# endif
8350# endif
8351# endif
8352# endif
8353#endif
8354
8355#ifdef __cplusplus
8356extern "C" void exit (int);
8357#endif
8358
8359void fnord() { int i=42;}
8360int main ()
8361{
8362 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8363 int status = $lt_dlunknown;
8364
8365 if (self)
8366 {
8367 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8368 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8369 /* dlclose (self); */
8370 }
8371
8372 exit (status);
8373}
8374EOF
8375 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8376 (eval $ac_link) 2>&5
8377 ac_status=$?
8378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8379 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8380 (./conftest; exit; ) 2>/dev/null
8381 lt_status=$?
8382 case x$lt_status in
8383 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8384 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8385 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8386 esac
8387 else :
8388 # compilation failed
8389 lt_cv_dlopen_self_static=no
8390 fi
8391fi
8392rm -fr conftest*
8393
8394
8395fi
8396echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8397echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8398 fi
8399
8400 CPPFLAGS="$save_CPPFLAGS"
8401 LDFLAGS="$save_LDFLAGS"
8402 LIBS="$save_LIBS"
8403 ;;
8404 esac
8405
8406 case $lt_cv_dlopen_self in
8407 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8408 *) enable_dlopen_self=unknown ;;
8409 esac
8410
8411 case $lt_cv_dlopen_self_static in
8412 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8413 *) enable_dlopen_self_static=unknown ;;
8414 esac
8415fi
8416
8417
John Criswell47fdd832003-07-14 16:52:07 +00008418# Report which librarie types wil actually be built
8419echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8420echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8421echo "$as_me:$LINENO: result: $can_build_shared" >&5
8422echo "${ECHO_T}$can_build_shared" >&6
John Criswell7a73b802003-06-30 21:59:07 +00008423
John Criswell47fdd832003-07-14 16:52:07 +00008424echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8425echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8426test "$can_build_shared" = "no" && enable_shared=no
8427
8428# On AIX, shared libraries and static libraries use the same namespace, and
8429# are all built from PIC.
8430case "$host_os" in
8431aix3*)
8432 test "$enable_shared" = yes && enable_static=no
8433 if test -n "$RANLIB"; then
8434 archive_cmds="$archive_cmds~\$RANLIB \$lib"
8435 postinstall_cmds='$RANLIB $lib'
8436 fi
8437 ;;
8438
8439aix4*)
8440 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8441 test "$enable_shared" = yes && enable_static=no
8442 fi
8443 ;;
8444 darwin* | rhapsody*)
8445 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
8446 archive_cmds_need_lc=no
8447 case "$host_os" in
8448 rhapsody* | darwin1.[012])
8449 allow_undefined_flag='-undefined suppress'
8450 ;;
8451 *) # Darwin 1.3 on
8452 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
8453 ;;
8454 esac
8455 # FIXME: Relying on posixy $() will cause problems for
8456 # cross-compilation, but unfortunately the echo tests do not
8457 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
8458 # `"' quotes if we put them in here... so don't!
8459 output_verbose_link_cmd='echo'
8460 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8461 module_cmds='$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
8462 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8463 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}'
8464 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}'
8465 hardcode_direct=no
8466 hardcode_automatic=yes
8467 hardcode_shlibpath_var=unsupported
8468 whole_archive_flag_spec='-all_load $convenience'
8469 link_all_deplibs=yes
John Criswell7a73b802003-06-30 21:59:07 +00008470 fi
John Criswell7a73b802003-06-30 21:59:07 +00008471 ;;
John Criswell47fdd832003-07-14 16:52:07 +00008472esac
8473echo "$as_me:$LINENO: result: $enable_shared" >&5
8474echo "${ECHO_T}$enable_shared" >&6
John Criswell7a73b802003-06-30 21:59:07 +00008475
John Criswell47fdd832003-07-14 16:52:07 +00008476echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8477echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8478# Make sure either enable_shared or enable_static is yes.
8479test "$enable_shared" = yes || enable_static=yes
8480echo "$as_me:$LINENO: result: $enable_static" >&5
8481echo "${ECHO_T}$enable_static" >&6
8482
8483# The else clause should only fire when bootstrapping the
John Criswell7a73b802003-06-30 21:59:07 +00008484# libtool distribution, otherwise you forgot to ship ltmain.sh
8485# with your package, and you will get complaints that there are
8486# no rules to generate ltmain.sh.
8487if test -f "$ltmain"; then
John Criswell47fdd832003-07-14 16:52:07 +00008488 # See if we are running on zsh, and set the options which allow our commands through
8489 # without removal of \ escapes.
8490 if test -n "${ZSH_VERSION+set}" ; then
8491 setopt NO_GLOB_SUBST
8492 fi
John Criswell7a73b802003-06-30 21:59:07 +00008493 # Now quote all the things that may contain metacharacters while being
8494 # careful not to overquote the AC_SUBSTed values. We take copies of the
8495 # variables and quote the copies for generation of the libtool script.
John Criswell47fdd832003-07-14 16:52:07 +00008496 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
8497 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8498 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8499 deplibs_check_method reload_flag reload_cmds need_locks \
8500 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8501 lt_cv_sys_global_symbol_to_c_name_address \
John Criswell7a73b802003-06-30 21:59:07 +00008502 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
John Criswell47fdd832003-07-14 16:52:07 +00008503 old_postinstall_cmds old_postuninstall_cmds \
8504 compiler \
8505 CC \
8506 LD \
8507 lt_prog_compiler_wl \
8508 lt_prog_compiler_pic \
8509 lt_prog_compiler_static \
8510 lt_prog_compiler_no_builtin_flag \
8511 export_dynamic_flag_spec \
8512 thread_safe_flag_spec \
8513 whole_archive_flag_spec \
8514 enable_shared_with_static_runtimes \
8515 old_archive_cmds \
8516 old_archive_from_new_cmds \
8517 predep_objects \
8518 postdep_objects \
8519 predeps \
8520 postdeps \
8521 compiler_lib_search_path \
8522 archive_cmds \
8523 archive_expsym_cmds \
8524 postinstall_cmds \
8525 postuninstall_cmds \
8526 old_archive_from_expsyms_cmds \
8527 allow_undefined_flag \
8528 no_undefined_flag \
8529 export_symbols_cmds \
8530 hardcode_libdir_flag_spec \
8531 hardcode_libdir_flag_spec_ld \
8532 hardcode_libdir_separator \
8533 hardcode_automatic \
8534 module_cmds \
8535 module_expsym_cmds \
8536 lt_cv_prog_compiler_c_o \
8537 exclude_expsyms \
8538 include_expsyms; do
John Criswell7a73b802003-06-30 21:59:07 +00008539
8540 case $var in
John Criswell47fdd832003-07-14 16:52:07 +00008541 old_archive_cmds | \
8542 old_archive_from_new_cmds | \
8543 archive_cmds | \
8544 archive_expsym_cmds | \
8545 module_cmds | \
8546 module_expsym_cmds | \
8547 old_archive_from_expsyms_cmds | \
8548 export_symbols_cmds | \
8549 extract_expsyms_cmds | reload_cmds | finish_cmds | \
John Criswell7a73b802003-06-30 21:59:07 +00008550 postinstall_cmds | postuninstall_cmds | \
John Criswell47fdd832003-07-14 16:52:07 +00008551 old_postinstall_cmds | old_postuninstall_cmds | \
8552 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
John Criswell7a73b802003-06-30 21:59:07 +00008553 # Double-quote double-evaled strings.
8554 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8555 ;;
8556 *)
8557 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8558 ;;
8559 esac
8560 done
8561
John Criswell47fdd832003-07-14 16:52:07 +00008562 case $lt_echo in
8563 *'\$0 --fallback-echo"')
8564 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8565 ;;
8566 esac
8567
8568cfgfile="${ofile}T"
8569 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8570 $rm -f "$cfgfile"
8571 { echo "$as_me:$LINENO: creating $ofile" >&5
8572echo "$as_me: creating $ofile" >&6;}
8573
8574 cat <<__EOF__ >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +00008575#! $SHELL
8576
John Criswell47fdd832003-07-14 16:52:07 +00008577# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
John Criswell7a73b802003-06-30 21:59:07 +00008578# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8579# NOTE: Changes made to this file will be lost: look at ltmain.sh.
8580#
John Criswell47fdd832003-07-14 16:52:07 +00008581# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8582# Free Software Foundation, Inc.
8583#
8584# This file is part of GNU Libtool:
John Criswell7a73b802003-06-30 21:59:07 +00008585# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8586#
8587# This program is free software; you can redistribute it and/or modify
8588# it under the terms of the GNU General Public License as published by
8589# the Free Software Foundation; either version 2 of the License, or
8590# (at your option) any later version.
8591#
8592# This program is distributed in the hope that it will be useful, but
8593# WITHOUT ANY WARRANTY; without even the implied warranty of
8594# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
8595# General Public License for more details.
8596#
8597# You should have received a copy of the GNU General Public License
8598# along with this program; if not, write to the Free Software
8599# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8600#
8601# As a special exception to the GNU General Public License, if you
8602# distribute this file as part of a program that contains a
8603# configuration script generated by Autoconf, you may include it under
8604# the same distribution terms that you use for the rest of that program.
8605
John Criswell47fdd832003-07-14 16:52:07 +00008606# A sed program that does not truncate output.
8607SED=$lt_SED
8608
John Criswell7a73b802003-06-30 21:59:07 +00008609# Sed that helps us avoid accidentally triggering echo(1) options like -n.
John Criswell47fdd832003-07-14 16:52:07 +00008610Xsed="$SED -e s/^X//"
John Criswell7a73b802003-06-30 21:59:07 +00008611
8612# The HP-UX ksh and POSIX shell print the target directory to stdout
8613# if CDPATH is set.
8614if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8615
John Criswell47fdd832003-07-14 16:52:07 +00008616# The names of the tagged configurations supported by this script.
8617available_tags=
8618
John Criswell7a73b802003-06-30 21:59:07 +00008619# ### BEGIN LIBTOOL CONFIG
8620
8621# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8622
8623# Shell to use when invoking shell scripts.
8624SHELL=$lt_SHELL
8625
8626# Whether or not to build shared libraries.
8627build_libtool_libs=$enable_shared
8628
8629# Whether or not to build static libraries.
8630build_old_libs=$enable_static
8631
8632# Whether or not to add -lc for building shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +00008633build_libtool_need_lc=$archive_cmds_need_lc
8634
8635# Whether or not to disallow shared libs when runtime libs are static
8636allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
John Criswell7a73b802003-06-30 21:59:07 +00008637
8638# Whether or not to optimize for fast installation.
8639fast_install=$enable_fast_install
8640
8641# The host system.
8642host_alias=$host_alias
8643host=$host
8644
8645# An echo program that does not interpret backslashes.
8646echo=$lt_echo
8647
8648# The archiver.
8649AR=$lt_AR
8650AR_FLAGS=$lt_AR_FLAGS
8651
John Criswell47fdd832003-07-14 16:52:07 +00008652# A C compiler.
8653LTCC=$lt_LTCC
8654
8655# A language-specific compiler.
8656CC=$lt_compiler
John Criswell7a73b802003-06-30 21:59:07 +00008657
8658# Is the compiler the GNU C compiler?
8659with_gcc=$GCC
8660
John Criswell47fdd832003-07-14 16:52:07 +00008661# An ERE matcher.
8662EGREP=$lt_EGREP
8663
John Criswell7a73b802003-06-30 21:59:07 +00008664# The linker used to build libraries.
8665LD=$lt_LD
8666
8667# Whether we need hard or soft links.
8668LN_S=$lt_LN_S
8669
8670# A BSD-compatible nm program.
8671NM=$lt_NM
8672
8673# A symbol stripping program
8674STRIP=$STRIP
8675
8676# Used to examine libraries when file_magic_cmd begins "file"
8677MAGIC_CMD=$MAGIC_CMD
8678
8679# Used on cygwin: DLL creation program.
8680DLLTOOL="$DLLTOOL"
8681
8682# Used on cygwin: object dumper.
8683OBJDUMP="$OBJDUMP"
8684
8685# Used on cygwin: assembler.
8686AS="$AS"
8687
8688# The name of the directory that contains temporary libtool files.
8689objdir=$objdir
8690
8691# How to create reloadable object files.
8692reload_flag=$lt_reload_flag
8693reload_cmds=$lt_reload_cmds
8694
8695# How to pass a linker flag through the compiler.
John Criswell47fdd832003-07-14 16:52:07 +00008696wl=$lt_lt_prog_compiler_wl
John Criswell7a73b802003-06-30 21:59:07 +00008697
8698# Object file suffix (normally "o").
8699objext="$ac_objext"
8700
8701# Old archive suffix (normally "a").
8702libext="$libext"
8703
John Criswell47fdd832003-07-14 16:52:07 +00008704# Shared library suffix (normally ".so").
8705shrext='$shrext'
8706
John Criswell7a73b802003-06-30 21:59:07 +00008707# Executable file suffix (normally "").
8708exeext="$exeext"
8709
8710# Additional compiler flags for building library objects.
John Criswell47fdd832003-07-14 16:52:07 +00008711pic_flag=$lt_lt_prog_compiler_pic
John Criswell7a73b802003-06-30 21:59:07 +00008712pic_mode=$pic_mode
8713
John Criswell47fdd832003-07-14 16:52:07 +00008714# What is the maximum length of a command?
8715max_cmd_len=$lt_cv_sys_max_cmd_len
John Criswell7a73b802003-06-30 21:59:07 +00008716
John Criswell47fdd832003-07-14 16:52:07 +00008717# Does compiler simultaneously support -c and -o options?
8718compiler_c_o=$lt_lt_cv_prog_compiler_c_o
John Criswell7a73b802003-06-30 21:59:07 +00008719
8720# Must we lock files when doing compilation ?
8721need_locks=$lt_need_locks
8722
8723# Do we need the lib prefix for modules?
8724need_lib_prefix=$need_lib_prefix
8725
8726# Do we need a version for libraries?
8727need_version=$need_version
8728
8729# Whether dlopen is supported.
8730dlopen_support=$enable_dlopen
8731
8732# Whether dlopen of programs is supported.
8733dlopen_self=$enable_dlopen_self
8734
8735# Whether dlopen of statically linked programs is supported.
8736dlopen_self_static=$enable_dlopen_self_static
8737
8738# Compiler flag to prevent dynamic linking.
John Criswell47fdd832003-07-14 16:52:07 +00008739link_static_flag=$lt_lt_prog_compiler_static
John Criswell7a73b802003-06-30 21:59:07 +00008740
8741# Compiler flag to turn off builtin functions.
John Criswell47fdd832003-07-14 16:52:07 +00008742no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
John Criswell7a73b802003-06-30 21:59:07 +00008743
8744# Compiler flag to allow reflexive dlopens.
8745export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
8746
8747# Compiler flag to generate shared objects directly from archives.
8748whole_archive_flag_spec=$lt_whole_archive_flag_spec
8749
8750# Compiler flag to generate thread-safe objects.
8751thread_safe_flag_spec=$lt_thread_safe_flag_spec
8752
8753# Library versioning type.
8754version_type=$version_type
8755
8756# Format of library name prefix.
8757libname_spec=$lt_libname_spec
8758
8759# List of archive names. First name is the real one, the rest are links.
8760# The last name is the one that the linker finds with -lNAME.
8761library_names_spec=$lt_library_names_spec
8762
8763# The coded name of the library, if different from the real name.
8764soname_spec=$lt_soname_spec
8765
8766# Commands used to build and install an old-style archive.
8767RANLIB=$lt_RANLIB
8768old_archive_cmds=$lt_old_archive_cmds
8769old_postinstall_cmds=$lt_old_postinstall_cmds
8770old_postuninstall_cmds=$lt_old_postuninstall_cmds
8771
8772# Create an old-style archive from a shared archive.
8773old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
8774
8775# Create a temporary old-style archive to link instead of a shared archive.
8776old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
8777
8778# Commands used to build and install a shared archive.
8779archive_cmds=$lt_archive_cmds
8780archive_expsym_cmds=$lt_archive_expsym_cmds
8781postinstall_cmds=$lt_postinstall_cmds
8782postuninstall_cmds=$lt_postuninstall_cmds
8783
John Criswell47fdd832003-07-14 16:52:07 +00008784# Commands used to build a loadable module (assumed same as above if empty)
8785module_cmds=$lt_module_cmds
8786module_expsym_cmds=$lt_module_expsym_cmds
8787
John Criswell7a73b802003-06-30 21:59:07 +00008788# Commands to strip libraries.
8789old_striplib=$lt_old_striplib
8790striplib=$lt_striplib
8791
John Criswell47fdd832003-07-14 16:52:07 +00008792# Dependencies to place before the objects being linked to create a
8793# shared library.
8794predep_objects=$lt_predep_objects
8795
8796# Dependencies to place after the objects being linked to create a
8797# shared library.
8798postdep_objects=$lt_postdep_objects
8799
8800# Dependencies to place before the objects being linked to create a
8801# shared library.
8802predeps=$lt_predeps
8803
8804# Dependencies to place after the objects being linked to create a
8805# shared library.
8806postdeps=$lt_postdeps
8807
8808# The library search path used internally by the compiler when linking
8809# a shared library.
8810compiler_lib_search_path=$lt_compiler_lib_search_path
8811
John Criswell7a73b802003-06-30 21:59:07 +00008812# Method to check whether dependent libraries are shared objects.
8813deplibs_check_method=$lt_deplibs_check_method
8814
8815# Command to use when deplibs_check_method == file_magic.
8816file_magic_cmd=$lt_file_magic_cmd
8817
8818# Flag that allows shared libraries with undefined symbols to be built.
8819allow_undefined_flag=$lt_allow_undefined_flag
8820
8821# Flag that forces no undefined symbols.
8822no_undefined_flag=$lt_no_undefined_flag
8823
8824# Commands used to finish a libtool library installation in a directory.
8825finish_cmds=$lt_finish_cmds
8826
8827# Same as above, but a single script fragment to be evaled but not shown.
8828finish_eval=$lt_finish_eval
8829
8830# Take the output of nm and produce a listing of raw symbols and C names.
John Criswell47fdd832003-07-14 16:52:07 +00008831global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
John Criswell7a73b802003-06-30 21:59:07 +00008832
8833# Transform the output of nm in a proper C declaration
John Criswell47fdd832003-07-14 16:52:07 +00008834global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
John Criswell7a73b802003-06-30 21:59:07 +00008835
8836# Transform the output of nm in a C name address pair
John Criswell47fdd832003-07-14 16:52:07 +00008837global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
John Criswell7a73b802003-06-30 21:59:07 +00008838
8839# This is the shared library runtime path variable.
8840runpath_var=$runpath_var
8841
8842# This is the shared library path variable.
8843shlibpath_var=$shlibpath_var
8844
8845# Is shlibpath searched before the hard-coded library search path?
8846shlibpath_overrides_runpath=$shlibpath_overrides_runpath
8847
8848# How to hardcode a shared library path into an executable.
8849hardcode_action=$hardcode_action
8850
8851# Whether we should hardcode library paths into libraries.
8852hardcode_into_libs=$hardcode_into_libs
8853
8854# Flag to hardcode \$libdir into a binary during linking.
8855# This must work even if \$libdir does not exist.
8856hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
8857
John Criswell47fdd832003-07-14 16:52:07 +00008858# If ld is used when linking, flag to hardcode \$libdir into
8859# a binary during linking. This must work even if \$libdir does
8860# not exist.
8861hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
8862
John Criswell7a73b802003-06-30 21:59:07 +00008863# Whether we need a single -rpath flag with a separated argument.
8864hardcode_libdir_separator=$lt_hardcode_libdir_separator
8865
John Criswell47fdd832003-07-14 16:52:07 +00008866# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
John Criswell7a73b802003-06-30 21:59:07 +00008867# resulting binary.
8868hardcode_direct=$hardcode_direct
8869
8870# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
8871# resulting binary.
8872hardcode_minus_L=$hardcode_minus_L
8873
8874# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
8875# the resulting binary.
8876hardcode_shlibpath_var=$hardcode_shlibpath_var
8877
John Criswell47fdd832003-07-14 16:52:07 +00008878# Set to yes if building a shared library automatically hardcodes DIR into the library
8879# and all subsequent libraries and executables linked against it.
8880hardcode_automatic=$hardcode_automatic
8881
John Criswell7a73b802003-06-30 21:59:07 +00008882# Variables whose values should be saved in libtool wrapper scripts and
8883# restored at relink time.
8884variables_saved_for_relink="$variables_saved_for_relink"
8885
8886# Whether libtool must link a program against all its dependency libraries.
8887link_all_deplibs=$link_all_deplibs
8888
8889# Compile-time system search path for libraries
8890sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
8891
8892# Run-time system search path for libraries
8893sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
8894
8895# Fix the shell variable \$srcfile for the compiler.
8896fix_srcfile_path="$fix_srcfile_path"
8897
8898# Set to yes if exported symbols are required.
8899always_export_symbols=$always_export_symbols
8900
8901# The commands to list exported symbols.
8902export_symbols_cmds=$lt_export_symbols_cmds
8903
8904# The commands to extract the exported symbol list from a shared archive.
8905extract_expsyms_cmds=$lt_extract_expsyms_cmds
8906
8907# Symbols that should not be listed in the preloaded symbols.
8908exclude_expsyms=$lt_exclude_expsyms
8909
8910# Symbols that must always be exported.
8911include_expsyms=$lt_include_expsyms
8912
8913# ### END LIBTOOL CONFIG
8914
8915__EOF__
8916
John Criswell47fdd832003-07-14 16:52:07 +00008917
John Criswell7a73b802003-06-30 21:59:07 +00008918 case $host_os in
8919 aix3*)
John Criswell47fdd832003-07-14 16:52:07 +00008920 cat <<\EOF >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +00008921
8922# AIX sometimes has problems with the GCC collect2 program. For some
8923# reason, if we set the COLLECT_NAMES environment variable, the problems
8924# vanish in a puff of smoke.
8925if test "X${COLLECT_NAMES+set}" != Xset; then
8926 COLLECT_NAMES=
8927 export COLLECT_NAMES
8928fi
8929EOF
8930 ;;
8931 esac
8932
John Criswell7a73b802003-06-30 21:59:07 +00008933 # We use sed instead of cat because bash on DJGPP gets confused if
8934 # if finds mixed CR/LF and LF-only lines. Since sed operates in
8935 # text mode, it properly converts lines to CR/LF. This bash problem
8936 # is reportedly fixed, but why not run on old versions too?
John Criswell47fdd832003-07-14 16:52:07 +00008937 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
John Criswell7a73b802003-06-30 21:59:07 +00008938
John Criswell47fdd832003-07-14 16:52:07 +00008939 mv -f "$cfgfile" "$ofile" || \
8940 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
John Criswell7a73b802003-06-30 21:59:07 +00008941 chmod +x "$ofile"
John Criswell47fdd832003-07-14 16:52:07 +00008942
8943else
8944 # If there is no Makefile yet, we rely on a make rule to execute
8945 # `config.status --recheck' to rerun these tests and create the
8946 # libtool script then.
8947 test -f Makefile && make "$ltmain"
John Criswell7a73b802003-06-30 21:59:07 +00008948fi
John Criswell7a73b802003-06-30 21:59:07 +00008949
8950
John Criswell47fdd832003-07-14 16:52:07 +00008951ac_ext=c
8952ac_cpp='$CPP $CPPFLAGS'
8953ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8954ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8955ac_compiler_gnu=$ac_cv_c_compiler_gnu
8956
8957CC="$lt_save_CC"
8958
8959
8960# Check whether --with-tags or --without-tags was given.
8961if test "${with_tags+set}" = set; then
8962 withval="$with_tags"
8963 tagnames="$withval"
8964fi;
8965
8966if test -f "$ltmain" && test -n "$tagnames"; then
8967 if test ! -f "${ofile}"; then
8968 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
8969echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
8970 fi
8971
8972 if test -z "$LTCC"; then
8973 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
8974 if test -z "$LTCC"; then
8975 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
8976echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
8977 else
8978 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
8979echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
8980 fi
8981 fi
8982
8983 # Extract list of available tagged configurations in $ofile.
8984 # Note that this assumes the entire list is on one line.
8985 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
8986
8987 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8988 for tagname in $tagnames; do
8989 IFS="$lt_save_ifs"
8990 # Check whether tagname contains only valid characters
8991 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
8992 "") ;;
8993 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
8994echo "$as_me: error: invalid tag name: $tagname" >&2;}
8995 { (exit 1); exit 1; }; }
8996 ;;
8997 esac
8998
8999 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9000 then
9001 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9002echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9003 { (exit 1); exit 1; }; }
9004 fi
9005
9006 # Update the list of available tags.
9007 if test -n "$tagname"; then
9008 echo appending configuration tag \"$tagname\" to $ofile
9009
9010 case $tagname in
9011 CXX)
9012 if test -n "$CXX" && test "X$CXX" != "Xno"; then
9013 ac_ext=cc
9014ac_cpp='$CXXCPP $CPPFLAGS'
9015ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9016ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9017ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9018
9019
9020
9021
9022archive_cmds_need_lc_CXX=no
9023allow_undefined_flag_CXX=
9024always_export_symbols_CXX=no
9025archive_expsym_cmds_CXX=
9026export_dynamic_flag_spec_CXX=
9027hardcode_direct_CXX=no
9028hardcode_libdir_flag_spec_CXX=
9029hardcode_libdir_flag_spec_ld_CXX=
9030hardcode_libdir_separator_CXX=
9031hardcode_minus_L_CXX=no
9032hardcode_automatic_CXX=no
9033module_cmds_CXX=
9034module_expsym_cmds_CXX=
9035link_all_deplibs_CXX=unknown
9036old_archive_cmds_CXX=$old_archive_cmds
9037no_undefined_flag_CXX=
9038whole_archive_flag_spec_CXX=
9039enable_shared_with_static_runtimes_CXX=no
9040
9041# Dependencies to place before and after the object being linked:
9042predep_objects_CXX=
9043postdep_objects_CXX=
9044predeps_CXX=
9045postdeps_CXX=
9046compiler_lib_search_path_CXX=
9047
9048# Source file extension for C++ test sources.
9049ac_ext=cc
9050
9051# Object file extension for compiled C++ test sources.
9052objext=o
9053objext_CXX=$objext
9054
9055# Code to be used in simple compile tests
9056lt_simple_compile_test_code="int some_variable = 0;\n"
9057
9058# Code to be used in simple link tests
9059lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9060
9061# ltmain only uses $CC for tagged configurations so make sure $CC is set.
9062
9063# If no C compiler was specified, use CC.
9064LTCC=${LTCC-"$CC"}
9065
9066# Allow CC to be a program name with arguments.
9067compiler=$CC
9068
9069
9070# Allow CC to be a program name with arguments.
9071lt_save_CC=$CC
9072lt_save_LD=$LD
9073lt_save_GCC=$GCC
9074GCC=$GXX
9075lt_save_with_gnu_ld=$with_gnu_ld
9076lt_save_path_LD=$lt_cv_path_LD
9077if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9078 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9079else
9080 unset lt_cv_prog_gnu_ld
9081fi
9082if test -n "${lt_cv_path_LDCXX+set}"; then
9083 lt_cv_path_LD=$lt_cv_path_LDCXX
9084else
9085 unset lt_cv_path_LD
9086fi
9087test -z "${LDCXX+set}" || LD=$LDCXX
9088CC=${CXX-"c++"}
9089compiler=$CC
9090compiler_CXX=$CC
9091cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9092
9093# We don't want -fno-exception wen compiling C++ code, so set the
9094# no_builtin_flag separately
9095if test "$GXX" = yes; then
9096 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9097else
9098 lt_prog_compiler_no_builtin_flag_CXX=
9099fi
9100
9101if test "$GXX" = yes; then
9102 # Set up default GNU C++ configuration
9103
9104
9105# Check whether --with-gnu-ld or --without-gnu-ld was given.
9106if test "${with_gnu_ld+set}" = set; then
9107 withval="$with_gnu_ld"
9108 test "$withval" = no || with_gnu_ld=yes
9109else
9110 with_gnu_ld=no
9111fi;
9112ac_prog=ld
9113if test "$GCC" = yes; then
9114 # Check if gcc -print-prog-name=ld gives a path.
9115 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9116echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9117 case $host in
9118 *-*-mingw*)
9119 # gcc leaves a trailing carriage return which upsets mingw
9120 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9121 *)
9122 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9123 esac
9124 case $ac_prog in
9125 # Accept absolute paths.
9126 [\\/]* | ?:[\\/]*)
9127 re_direlt='/[^/][^/]*/\.\./'
9128 # Canonicalize the path of ld
9129 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9130 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9131 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9132 done
9133 test -z "$LD" && LD="$ac_prog"
9134 ;;
9135 "")
9136 # If it fails, then pretend we aren't using GCC.
9137 ac_prog=ld
9138 ;;
9139 *)
9140 # If it is relative, then search for the first ld in PATH.
9141 with_gnu_ld=unknown
9142 ;;
9143 esac
9144elif test "$with_gnu_ld" = yes; then
9145 echo "$as_me:$LINENO: checking for GNU ld" >&5
9146echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9147else
9148 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9149echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9150fi
9151if test "${lt_cv_path_LD+set}" = set; then
9152 echo $ECHO_N "(cached) $ECHO_C" >&6
9153else
9154 if test -z "$LD"; then
9155 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9156 for ac_dir in $PATH; do
9157 IFS="$lt_save_ifs"
9158 test -z "$ac_dir" && ac_dir=.
9159 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9160 lt_cv_path_LD="$ac_dir/$ac_prog"
9161 # Check to see if the program is GNU ld. I'd rather use --version,
9162 # but apparently some GNU ld's only accept -v.
9163 # Break only if it was the GNU/non-GNU ld that we prefer.
9164 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9165 *GNU* | *'with BFD'*)
9166 test "$with_gnu_ld" != no && break
9167 ;;
9168 *)
9169 test "$with_gnu_ld" != yes && break
9170 ;;
9171 esac
9172 fi
9173 done
9174 IFS="$lt_save_ifs"
9175else
9176 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9177fi
9178fi
9179
9180LD="$lt_cv_path_LD"
9181if test -n "$LD"; then
9182 echo "$as_me:$LINENO: result: $LD" >&5
9183echo "${ECHO_T}$LD" >&6
9184else
9185 echo "$as_me:$LINENO: result: no" >&5
9186echo "${ECHO_T}no" >&6
9187fi
9188test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9189echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9190 { (exit 1); exit 1; }; }
9191echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9192echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9193if test "${lt_cv_prog_gnu_ld+set}" = set; then
9194 echo $ECHO_N "(cached) $ECHO_C" >&6
9195else
9196 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9197case `"$LD" -v 2>&1 </dev/null` in
9198*GNU* | *'with BFD'*)
9199 lt_cv_prog_gnu_ld=yes
9200 ;;
9201*)
9202 lt_cv_prog_gnu_ld=no
9203 ;;
9204esac
9205fi
9206echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9207echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9208with_gnu_ld=$lt_cv_prog_gnu_ld
9209
9210
9211
9212 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9213 # archiving commands below assume that GNU ld is being used.
9214 if test "$with_gnu_ld" = yes; then
9215 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9216 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'
9217
9218 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9219 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9220
9221 # If archive_cmds runs LD, not CC, wlarc should be empty
9222 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9223 # investigate it a little bit more. (MM)
9224 wlarc='${wl}'
9225
9226 # ancient GNU ld didn't support --whole-archive et. al.
9227 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9228 grep 'no-whole-archive' > /dev/null; then
9229 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9230 else
9231 whole_archive_flag_spec_CXX=
9232 fi
9233 else
9234 with_gnu_ld=no
9235 wlarc=
9236
9237 # A generic and very simple default shared library creation
9238 # command for GNU C++ for the case where it uses the native
9239 # linker, instead of GNU ld. If possible, this setting should
9240 # overridden to take advantage of the native linker features on
9241 # the platform it is being used on.
9242 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9243 fi
9244
9245 # Commands to make compiler produce verbose output that lists
9246 # what "hidden" libraries, object files and flags are used when
9247 # linking a shared library.
9248 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9249
9250else
9251 GXX=no
9252 with_gnu_ld=no
9253 wlarc=
9254fi
9255
9256# PORTME: fill in a description of your system's C++ link characteristics
9257echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9258echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9259ld_shlibs_CXX=yes
9260case $host_os in
9261 aix3*)
9262 # FIXME: insert proper C++ library support
9263 ld_shlibs_CXX=no
9264 ;;
9265 aix4* | aix5*)
9266 if test "$host_cpu" = ia64; then
9267 # On IA64, the linker does run time linking by default, so we don't
9268 # have to do anything special.
9269 aix_use_runtimelinking=no
9270 exp_sym_flag='-Bexport'
9271 no_entry_flag=""
9272 else
9273 aix_use_runtimelinking=no
9274
9275 # Test if we are trying to use run time linking or normal
9276 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9277 # need to do runtime linking.
9278 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9279 for ld_flag in $LDFLAGS; do
9280 case $ld_flag in
9281 *-brtl*)
9282 aix_use_runtimelinking=yes
9283 break
9284 ;;
9285 esac
9286 done
9287 esac
9288
9289 exp_sym_flag='-bexport'
9290 no_entry_flag='-bnoentry'
9291 fi
9292
9293 # When large executables or shared objects are built, AIX ld can
9294 # have problems creating the table of contents. If linking a library
9295 # or program results in "error TOC overflow" add -mminimal-toc to
9296 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9297 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9298
9299 archive_cmds_CXX=''
9300 hardcode_direct_CXX=yes
9301 hardcode_libdir_separator_CXX=':'
9302 link_all_deplibs_CXX=yes
9303
9304 if test "$GXX" = yes; then
9305 case $host_os in aix4.012|aix4.012.*)
9306 # We only want to do this on AIX 4.2 and lower, the check
9307 # below for broken collect2 doesn't work under 4.3+
9308 collect2name=`${CC} -print-prog-name=collect2`
9309 if test -f "$collect2name" && \
9310 strings "$collect2name" | grep resolve_lib_name >/dev/null
9311 then
9312 # We have reworked collect2
9313 hardcode_direct_CXX=yes
9314 else
9315 # We have old collect2
9316 hardcode_direct_CXX=unsupported
9317 # It fails to find uninstalled libraries when the uninstalled
9318 # path is not listed in the libpath. Setting hardcode_minus_L
9319 # to unsupported forces relinking
9320 hardcode_minus_L_CXX=yes
9321 hardcode_libdir_flag_spec_CXX='-L$libdir'
9322 hardcode_libdir_separator_CXX=
9323 fi
9324 esac
9325 shared_flag='-shared'
9326 else
9327 # not using gcc
9328 if test "$host_cpu" = ia64; then
9329 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9330 # chokes on -Wl,-G. The following line is correct:
9331 shared_flag='-G'
9332 else
9333 if test "$aix_use_runtimelinking" = yes; then
9334 shared_flag='${wl}-G'
9335 else
9336 shared_flag='${wl}-bM:SRE'
9337 fi
9338 fi
9339 fi
9340
9341 # It seems that -bexpall does not export symbols beginning with
9342 # underscore (_), so it is better to generate a list of symbols to export.
9343 always_export_symbols_CXX=yes
9344 if test "$aix_use_runtimelinking" = yes; then
9345 # Warning - without using the other runtime loading flags (-brtl),
9346 # -berok will link without error, but may produce a broken library.
9347 allow_undefined_flag_CXX='-berok'
9348 # Determine the default libpath from the value encoded in an empty executable.
9349 cat >conftest.$ac_ext <<_ACEOF
9350#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00009351/* confdefs.h. */
9352_ACEOF
9353cat confdefs.h >>conftest.$ac_ext
9354cat >>conftest.$ac_ext <<_ACEOF
9355/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00009356
John Criswell47fdd832003-07-14 16:52:07 +00009357int
9358main ()
9359{
9360
9361 ;
9362 return 0;
9363}
9364_ACEOF
9365rm -f conftest.$ac_objext conftest$ac_exeext
9366if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9367 (eval $ac_link) 2>&5
9368 ac_status=$?
9369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9370 (exit $ac_status); } &&
9371 { ac_try='test -s conftest$ac_exeext'
9372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9373 (eval $ac_try) 2>&5
9374 ac_status=$?
9375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9376 (exit $ac_status); }; }; then
9377
9378aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9379}'`
9380# Check for a 64-bit object if we didn't find anything.
9381if 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; }
9382}'`; fi
9383else
9384 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00009385sed 's/^/| /' conftest.$ac_ext >&5
9386
John Criswell47fdd832003-07-14 16:52:07 +00009387fi
9388rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9389if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9390
9391 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9392
9393 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"
9394 else
9395 if test "$host_cpu" = ia64; then
9396 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9397 allow_undefined_flag_CXX="-z nodefs"
9398 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"
9399 else
9400 # Determine the default libpath from the value encoded in an empty executable.
9401 cat >conftest.$ac_ext <<_ACEOF
9402#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00009403/* confdefs.h. */
9404_ACEOF
9405cat confdefs.h >>conftest.$ac_ext
9406cat >>conftest.$ac_ext <<_ACEOF
9407/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00009408
John Criswell47fdd832003-07-14 16:52:07 +00009409int
9410main ()
9411{
9412
9413 ;
9414 return 0;
9415}
9416_ACEOF
9417rm -f conftest.$ac_objext conftest$ac_exeext
9418if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9419 (eval $ac_link) 2>&5
9420 ac_status=$?
9421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9422 (exit $ac_status); } &&
9423 { ac_try='test -s conftest$ac_exeext'
9424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9425 (eval $ac_try) 2>&5
9426 ac_status=$?
9427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9428 (exit $ac_status); }; }; then
9429
9430aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9431}'`
9432# Check for a 64-bit object if we didn't find anything.
9433if 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; }
9434}'`; fi
9435else
9436 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00009437sed 's/^/| /' conftest.$ac_ext >&5
9438
John Criswell47fdd832003-07-14 16:52:07 +00009439fi
9440rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9441if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9442
9443 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9444 # Warning - without using the other run time loading flags,
9445 # -berok will link without error, but may produce a broken library.
9446 no_undefined_flag_CXX=' ${wl}-bernotok'
9447 allow_undefined_flag_CXX=' ${wl}-berok'
9448 # -bexpall does not export symbols beginning with underscore (_)
9449 always_export_symbols_CXX=yes
9450 # Exported symbols can be pulled into shared objects from archives
9451 whole_archive_flag_spec_CXX=' '
9452 archive_cmds_need_lc_CXX=yes
9453 # This is similar to how AIX traditionally builds it's shared libraries.
9454 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'
9455 fi
9456 fi
9457 ;;
9458 chorus*)
9459 case $cc_basename in
9460 *)
9461 # FIXME: insert proper C++ library support
9462 ld_shlibs_CXX=no
9463 ;;
9464 esac
9465 ;;
9466
9467 cygwin* | mingw* | pw32*)
9468 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9469 # as there is no search path for DLLs.
9470 hardcode_libdir_flag_spec_CXX='-L$libdir'
9471 allow_undefined_flag_CXX=unsupported
9472 always_export_symbols_CXX=no
9473 enable_shared_with_static_runtimes_CXX=yes
9474
9475 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9476 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'
9477 # If the export-symbols file already is a .def file (1st line
9478 # is EXPORTS), use it as is; otherwise, prepend...
9479 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9480 cp $export_symbols $output_objdir/$soname.def;
9481 else
9482 echo EXPORTS > $output_objdir/$soname.def;
9483 cat $export_symbols >> $output_objdir/$soname.def;
9484 fi~
9485 $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'
9486 else
9487 ld_shlibs_CXX=no
9488 fi
9489 ;;
9490
9491 darwin* | rhapsody*)
9492 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
9493 archive_cmds_need_lc_CXX=no
9494 case "$host_os" in
9495 rhapsody* | darwin1.[012])
9496 allow_undefined_flag_CXX='-undefined suppress'
9497 ;;
9498 *) # Darwin 1.3 on
9499 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9500 ;;
9501 esac
9502 lt_int_apple_cc_single_mod=no
9503 output_verbose_link_cmd='echo'
9504 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9505 lt_int_apple_cc_single_mod=yes
9506 fi
9507 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9508 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9509 else
9510 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'
9511 fi
9512 module_cmds_CXX='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
9513
9514 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9515 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9516 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}'
9517 else
9518 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}'
9519 fi
9520 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}'
9521 hardcode_direct_CXX=no
9522 hardcode_automatic_CXX=yes
9523 hardcode_shlibpath_var_CXX=unsupported
9524 whole_archive_flag_spec_CXX='-all_load $convenience'
9525 link_all_deplibs_CXX=yes
9526 fi
9527 ;;
9528
9529 dgux*)
9530 case $cc_basename in
9531 ec++)
9532 # FIXME: insert proper C++ library support
9533 ld_shlibs_CXX=no
9534 ;;
9535 ghcx)
9536 # Green Hills C++ Compiler
9537 # FIXME: insert proper C++ library support
9538 ld_shlibs_CXX=no
9539 ;;
9540 *)
9541 # FIXME: insert proper C++ library support
9542 ld_shlibs_CXX=no
9543 ;;
9544 esac
9545 ;;
9546 freebsd12*)
9547 # C++ shared libraries reported to be fairly broken before switch to ELF
9548 ld_shlibs_CXX=no
9549 ;;
9550 freebsd-elf*)
9551 archive_cmds_need_lc_CXX=no
9552 ;;
9553 freebsd*)
9554 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9555 # conventions
9556 ld_shlibs_CXX=yes
9557 ;;
9558 gnu*)
9559 ;;
9560 hpux9*)
9561 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9562 hardcode_libdir_separator_CXX=:
9563 export_dynamic_flag_spec_CXX='${wl}-E'
9564 hardcode_direct_CXX=yes
9565 hardcode_minus_L_CXX=yes # Not in the search PATH,
9566 # but as the default
9567 # location of the library.
9568
9569 case $cc_basename in
9570 CC)
9571 # FIXME: insert proper C++ library support
9572 ld_shlibs_CXX=no
9573 ;;
9574 aCC)
9575 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'
9576 # Commands to make compiler produce verbose output that lists
9577 # what "hidden" libraries, object files and flags are used when
9578 # linking a shared library.
9579 #
9580 # There doesn't appear to be a way to prevent this compiler from
9581 # explicitly linking system object files so we need to strip them
9582 # from the output so that they don't get included in the library
9583 # dependencies.
9584 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'
9585 ;;
9586 *)
9587 if test "$GXX" = yes; then
9588 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'
9589 else
9590 # FIXME: insert proper C++ library support
9591 ld_shlibs_CXX=no
9592 fi
9593 ;;
9594 esac
9595 ;;
9596 hpux10*|hpux11*)
9597 if test $with_gnu_ld = no; then
9598 case "$host_cpu" in
9599 hppa*64*)
9600 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9601 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
9602 hardcode_libdir_separator_CXX=:
9603 ;;
9604 ia64*)
9605 hardcode_libdir_flag_spec_CXX='-L$libdir'
9606 ;;
9607 *)
9608 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9609 hardcode_libdir_separator_CXX=:
9610 export_dynamic_flag_spec_CXX='${wl}-E'
9611 ;;
9612 esac
9613 fi
9614 case "$host_cpu" in
9615 hppa*64*)
9616 hardcode_direct_CXX=no
9617 hardcode_shlibpath_var_CXX=no
9618 ;;
9619 ia64*)
9620 hardcode_direct_CXX=no
9621 hardcode_shlibpath_var_CXX=no
9622 hardcode_minus_L_CXX=yes # Not in the search PATH,
9623 # but as the default
9624 # location of the library.
9625 ;;
9626 *)
9627 hardcode_direct_CXX=yes
9628 hardcode_minus_L_CXX=yes # Not in the search PATH,
9629 # but as the default
9630 # location of the library.
9631 ;;
9632 esac
9633
9634 case $cc_basename in
9635 CC)
9636 # FIXME: insert proper C++ library support
9637 ld_shlibs_CXX=no
9638 ;;
9639 aCC)
9640 case "$host_cpu" in
9641 hppa*64*|ia64*)
9642 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9643 ;;
9644 *)
9645 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9646 ;;
9647 esac
9648 # Commands to make compiler produce verbose output that lists
9649 # what "hidden" libraries, object files and flags are used when
9650 # linking a shared library.
9651 #
9652 # There doesn't appear to be a way to prevent this compiler from
9653 # explicitly linking system object files so we need to strip them
9654 # from the output so that they don't get included in the library
9655 # dependencies.
9656 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'
9657 ;;
9658 *)
9659 if test "$GXX" = yes; then
9660 if test $with_gnu_ld = no; then
9661 case "$host_cpu" in
9662 ia64*|hppa*64*)
9663 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9664 ;;
9665 *)
9666 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'
9667 ;;
9668 esac
9669 fi
9670 else
9671 # FIXME: insert proper C++ library support
9672 ld_shlibs_CXX=no
9673 fi
9674 ;;
9675 esac
9676 ;;
9677 irix5* | irix6*)
9678 case $cc_basename in
9679 CC)
9680 # SGI C++
9681 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'
9682
9683 # Archives containing C++ object files must be created using
9684 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
9685 # necessary to make sure instantiated templates are included
9686 # in the archive.
9687 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
9688 ;;
9689 *)
9690 if test "$GXX" = yes; then
9691 if test "$with_gnu_ld" = no; then
9692 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'
9693 else
9694 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'
9695 fi
9696 fi
9697 link_all_deplibs_CXX=yes
9698 ;;
9699 esac
9700 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9701 hardcode_libdir_separator_CXX=:
9702 ;;
9703 linux*)
9704 case $cc_basename in
9705 KCC)
9706 # Kuck and Associates, Inc. (KAI) C++ Compiler
9707
9708 # KCC will only create a shared library if the output file
9709 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9710 # to its proper name (with version) after linking.
9711 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'
9712 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'
9713 # Commands to make compiler produce verbose output that lists
9714 # what "hidden" libraries, object files and flags are used when
9715 # linking a shared library.
9716 #
9717 # There doesn't appear to be a way to prevent this compiler from
9718 # explicitly linking system object files so we need to strip them
9719 # from the output so that they don't get included in the library
9720 # dependencies.
9721 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'
9722
9723 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
9724 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9725
9726 # Archives containing C++ object files must be created using
9727 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9728 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9729 ;;
9730 icpc)
9731 # Intel C++
9732 with_gnu_ld=yes
9733 archive_cmds_need_lc_CXX=no
9734 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9735 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'
9736 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9737 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9738 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9739 ;;
9740 cxx)
9741 # Compaq C++
9742 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9743 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'
9744
9745 runpath_var=LD_RUN_PATH
9746 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9747 hardcode_libdir_separator_CXX=:
9748
9749 # Commands to make compiler produce verbose output that lists
9750 # what "hidden" libraries, object files and flags are used when
9751 # linking a shared library.
9752 #
9753 # There doesn't appear to be a way to prevent this compiler from
9754 # explicitly linking system object files so we need to strip them
9755 # from the output so that they don't get included in the library
9756 # dependencies.
9757 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'
9758 ;;
9759 esac
9760 ;;
9761 lynxos*)
9762 # FIXME: insert proper C++ library support
9763 ld_shlibs_CXX=no
9764 ;;
9765 m88k*)
9766 # FIXME: insert proper C++ library support
9767 ld_shlibs_CXX=no
9768 ;;
9769 mvs*)
9770 case $cc_basename in
9771 cxx)
9772 # FIXME: insert proper C++ library support
9773 ld_shlibs_CXX=no
9774 ;;
9775 *)
9776 # FIXME: insert proper C++ library support
9777 ld_shlibs_CXX=no
9778 ;;
9779 esac
9780 ;;
9781 netbsd*)
9782 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9783 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
9784 wlarc=
9785 hardcode_libdir_flag_spec_CXX='-R$libdir'
9786 hardcode_direct_CXX=yes
9787 hardcode_shlibpath_var_CXX=no
9788 fi
9789 # Workaround some broken pre-1.5 toolchains
9790 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
9791 ;;
9792 osf3*)
9793 case $cc_basename in
9794 KCC)
9795 # Kuck and Associates, Inc. (KAI) C++ Compiler
9796
9797 # KCC will only create a shared library if the output file
9798 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9799 # to its proper name (with version) after linking.
9800 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'
9801
9802 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9803 hardcode_libdir_separator_CXX=:
9804
9805 # Archives containing C++ object files must be created using
9806 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9807 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9808
9809 ;;
9810 RCC)
9811 # Rational C++ 2.4.1
9812 # FIXME: insert proper C++ library support
9813 ld_shlibs_CXX=no
9814 ;;
9815 cxx)
9816 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9817 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'
9818
9819 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9820 hardcode_libdir_separator_CXX=:
9821
9822 # Commands to make compiler produce verbose output that lists
9823 # what "hidden" libraries, object files and flags are used when
9824 # linking a shared library.
9825 #
9826 # There doesn't appear to be a way to prevent this compiler from
9827 # explicitly linking system object files so we need to strip them
9828 # from the output so that they don't get included in the library
9829 # dependencies.
9830 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'
9831 ;;
9832 *)
9833 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9834 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9835 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'
9836
9837 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9838 hardcode_libdir_separator_CXX=:
9839
9840 # Commands to make compiler produce verbose output that lists
9841 # what "hidden" libraries, object files and flags are used when
9842 # linking a shared library.
9843 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9844
9845 else
9846 # FIXME: insert proper C++ library support
9847 ld_shlibs_CXX=no
9848 fi
9849 ;;
9850 esac
9851 ;;
9852 osf4* | osf5*)
9853 case $cc_basename in
9854 KCC)
9855 # Kuck and Associates, Inc. (KAI) C++ Compiler
9856
9857 # KCC will only create a shared library if the output file
9858 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9859 # to its proper name (with version) after linking.
9860 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'
9861
9862 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9863 hardcode_libdir_separator_CXX=:
9864
9865 # Archives containing C++ object files must be created using
9866 # the KAI C++ compiler.
9867 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
9868 ;;
9869 RCC)
9870 # Rational C++ 2.4.1
9871 # FIXME: insert proper C++ library support
9872 ld_shlibs_CXX=no
9873 ;;
9874 cxx)
9875 allow_undefined_flag_CXX=' -expect_unresolved \*'
9876 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'
9877 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
9878 echo "-hidden">> $lib.exp~
9879 $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~
9880 $rm $lib.exp'
9881
9882 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9883 hardcode_libdir_separator_CXX=:
9884
9885 # Commands to make compiler produce verbose output that lists
9886 # what "hidden" libraries, object files and flags are used when
9887 # linking a shared library.
9888 #
9889 # There doesn't appear to be a way to prevent this compiler from
9890 # explicitly linking system object files so we need to strip them
9891 # from the output so that they don't get included in the library
9892 # dependencies.
9893 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'
9894 ;;
9895 *)
9896 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9897 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9898 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'
9899
9900 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9901 hardcode_libdir_separator_CXX=:
9902
9903 # Commands to make compiler produce verbose output that lists
9904 # what "hidden" libraries, object files and flags are used when
9905 # linking a shared library.
9906 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9907
9908 else
9909 # FIXME: insert proper C++ library support
9910 ld_shlibs_CXX=no
9911 fi
9912 ;;
9913 esac
9914 ;;
9915 psos*)
9916 # FIXME: insert proper C++ library support
9917 ld_shlibs_CXX=no
9918 ;;
9919 sco*)
9920 archive_cmds_need_lc_CXX=no
9921 case $cc_basename in
9922 CC)
9923 # FIXME: insert proper C++ library support
9924 ld_shlibs_CXX=no
9925 ;;
9926 *)
9927 # FIXME: insert proper C++ library support
9928 ld_shlibs_CXX=no
9929 ;;
9930 esac
9931 ;;
9932 sunos4*)
9933 case $cc_basename in
9934 CC)
9935 # Sun C++ 4.x
9936 # FIXME: insert proper C++ library support
9937 ld_shlibs_CXX=no
9938 ;;
9939 lcc)
9940 # Lucid
9941 # FIXME: insert proper C++ library support
9942 ld_shlibs_CXX=no
9943 ;;
9944 *)
9945 # FIXME: insert proper C++ library support
9946 ld_shlibs_CXX=no
9947 ;;
9948 esac
9949 ;;
9950 solaris*)
9951 case $cc_basename in
9952 CC)
9953 # Sun C++ 4.2, 5.x and Centerline C++
9954 no_undefined_flag_CXX=' -zdefs'
9955 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9956 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9957 $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'
9958
9959 hardcode_libdir_flag_spec_CXX='-R$libdir'
9960 hardcode_shlibpath_var_CXX=no
9961 case $host_os in
9962 solaris2.0-5 | solaris2.0-5.*) ;;
9963 *)
9964 # The C++ compiler is used as linker so we must use $wl
9965 # flag to pass the commands to the underlying system
9966 # linker.
9967 # Supported since Solaris 2.6 (maybe 2.5.1?)
9968 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9969 ;;
9970 esac
9971 link_all_deplibs_CXX=yes
9972
9973 # Commands to make compiler produce verbose output that lists
9974 # what "hidden" libraries, object files and flags are used when
9975 # linking a shared library.
9976 #
9977 # There doesn't appear to be a way to prevent this compiler from
9978 # explicitly linking system object files so we need to strip them
9979 # from the output so that they don't get included in the library
9980 # dependencies.
9981 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'
9982
9983 # Archives containing C++ object files must be created using
9984 # "CC -xar", where "CC" is the Sun C++ compiler. This is
9985 # necessary to make sure instantiated templates are included
9986 # in the archive.
9987 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
9988 ;;
9989 gcx)
9990 # Green Hills C++ Compiler
9991 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9992
9993 # The C++ compiler must be used to create the archive.
9994 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
9995 ;;
9996 *)
9997 # GNU C++ compiler with Solaris linker
9998 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9999 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10000 if $CC --version | grep -v '^2\.7' > /dev/null; then
10001 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10002 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10003 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10004
10005 # Commands to make compiler produce verbose output that lists
10006 # what "hidden" libraries, object files and flags are used when
10007 # linking a shared library.
10008 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10009 else
10010 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10011 # platform.
10012 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10013 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10014 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10015
10016 # Commands to make compiler produce verbose output that lists
10017 # what "hidden" libraries, object files and flags are used when
10018 # linking a shared library.
10019 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10020 fi
10021
10022 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10023 fi
10024 ;;
10025 esac
10026 ;;
10027 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10028 archive_cmds_need_lc_CXX=no
10029 ;;
10030 tandem*)
10031 case $cc_basename in
10032 NCC)
10033 # NonStop-UX NCC 3.20
10034 # FIXME: insert proper C++ library support
10035 ld_shlibs_CXX=no
10036 ;;
10037 *)
10038 # FIXME: insert proper C++ library support
10039 ld_shlibs_CXX=no
10040 ;;
10041 esac
10042 ;;
10043 vxworks*)
10044 # FIXME: insert proper C++ library support
10045 ld_shlibs_CXX=no
10046 ;;
10047 *)
10048 # FIXME: insert proper C++ library support
10049 ld_shlibs_CXX=no
10050 ;;
10051esac
10052echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10053echo "${ECHO_T}$ld_shlibs_CXX" >&6
10054test "$ld_shlibs_CXX" = no && can_build_shared=no
10055
10056GCC_CXX="$GXX"
10057LD_CXX="$LD"
10058
John Criswell47fdd832003-07-14 16:52:07 +000010059
10060cat > conftest.$ac_ext <<EOF
10061class Foo
10062{
10063public:
10064 Foo (void) { a = 0; }
10065private:
10066 int a;
10067};
10068EOF
10069
10070if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10071 (eval $ac_compile) 2>&5
10072 ac_status=$?
10073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10074 (exit $ac_status); }; then
10075 # Parse the compiler output and extract the necessary
10076 # objects, libraries and library flags.
10077
10078 # Sentinel used to keep track of whether or not we are before
10079 # the conftest object file.
10080 pre_test_object_deps_done=no
10081
10082 # The `*' in the case matches for architectures that use `case' in
10083 # $output_verbose_cmd can trigger glob expansion during the loop
10084 # eval without this substitution.
10085 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10086
10087 for p in `eval $output_verbose_link_cmd`; do
10088 case $p in
10089
10090 -L* | -R* | -l*)
10091 # Some compilers place space between "-{L,R}" and the path.
10092 # Remove the space.
10093 if test $p = "-L" \
10094 || test $p = "-R"; then
10095 prev=$p
10096 continue
10097 else
10098 prev=
10099 fi
10100
10101 if test "$pre_test_object_deps_done" = no; then
10102 case $p in
10103 -L* | -R*)
10104 # Internal compiler library paths should come after those
10105 # provided the user. The postdeps already come after the
10106 # user supplied libs so there is no need to process them.
10107 if test -z "$compiler_lib_search_path_CXX"; then
10108 compiler_lib_search_path_CXX="${prev}${p}"
10109 else
10110 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10111 fi
10112 ;;
10113 # The "-l" case would never come before the object being
10114 # linked, so don't bother handling this case.
10115 esac
10116 else
10117 if test -z "$postdeps_CXX"; then
10118 postdeps_CXX="${prev}${p}"
10119 else
10120 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10121 fi
10122 fi
10123 ;;
10124
10125 *.$objext)
10126 # This assumes that the test object file only shows up
10127 # once in the compiler output.
10128 if test "$p" = "conftest.$objext"; then
10129 pre_test_object_deps_done=yes
10130 continue
10131 fi
10132
10133 if test "$pre_test_object_deps_done" = no; then
10134 if test -z "$predep_objects_CXX"; then
10135 predep_objects_CXX="$p"
10136 else
10137 predep_objects_CXX="$predep_objects_CXX $p"
10138 fi
10139 else
10140 if test -z "$postdep_objects_CXX"; then
10141 postdep_objects_CXX="$p"
10142 else
10143 postdep_objects_CXX="$postdep_objects_CXX $p"
10144 fi
10145 fi
10146 ;;
10147
10148 *) ;; # Ignore the rest.
10149
10150 esac
10151 done
10152
10153 # Clean up.
10154 rm -f a.out a.exe
10155else
10156 echo "libtool.m4: error: problem compiling CXX test program"
10157fi
10158
10159$rm -f confest.$objext
10160
10161case " $postdeps_CXX " in
10162*" -lc "*) archive_cmds_need_lc_CXX=no ;;
10163esac
10164
10165lt_prog_compiler_wl_CXX=
10166lt_prog_compiler_pic_CXX=
10167lt_prog_compiler_static_CXX=
10168
10169echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10170echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10171
10172 # C++ specific cases for pic, static, wl, etc.
10173 if test "$GXX" = yes; then
10174 lt_prog_compiler_wl_CXX='-Wl,'
10175 lt_prog_compiler_static_CXX='-static'
10176
10177 case $host_os in
10178 aix*)
10179 # All AIX code is PIC.
10180 if test "$host_cpu" = ia64; then
10181 # AIX 5 now supports IA64 processor
10182 lt_prog_compiler_static_CXX='-Bstatic'
10183 fi
10184 ;;
10185 amigaos*)
10186 # FIXME: we need at least 68020 code to build shared libraries, but
10187 # adding the `-m68020' flag to GCC prevents building anything better,
10188 # like `-m68040'.
10189 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10190 ;;
10191 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10192 # PIC is the default for these OSes.
10193 ;;
10194 mingw* | os2* | pw32*)
10195 # This hack is so that the source file can tell whether it is being
10196 # built for inclusion in a dll (and should export symbols for example).
10197 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10198 ;;
10199 darwin* | rhapsody*)
10200 # PIC is the default on this platform
10201 # Common symbols not allowed in MH_DYLIB files
10202 lt_prog_compiler_pic_CXX='-fno-common'
10203 ;;
10204 *djgpp*)
10205 # DJGPP does not support shared libraries at all
10206 lt_prog_compiler_pic_CXX=
10207 ;;
10208 sysv4*MP*)
10209 if test -d /usr/nec; then
10210 lt_prog_compiler_pic_CXX=-Kconform_pic
10211 fi
10212 ;;
10213 hpux*)
10214 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10215 # not for PA HP-UX.
10216 case "$host_cpu" in
10217 hppa*64*|ia64*)
10218 ;;
10219 *)
10220 lt_prog_compiler_pic_CXX='-fPIC'
10221 ;;
10222 esac
10223 ;;
10224 *)
10225 lt_prog_compiler_pic_CXX='-fPIC'
10226 ;;
10227 esac
10228 else
10229 case $host_os in
10230 aix4* | aix5*)
10231 # All AIX code is PIC.
10232 if test "$host_cpu" = ia64; then
10233 # AIX 5 now supports IA64 processor
10234 lt_prog_compiler_static_CXX='-Bstatic'
10235 else
10236 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10237 fi
10238 ;;
10239 chorus*)
10240 case $cc_basename in
10241 cxch68)
10242 # Green Hills C++ Compiler
10243 # _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"
10244 ;;
10245 esac
10246 ;;
10247 dgux*)
10248 case $cc_basename in
10249 ec++)
10250 lt_prog_compiler_pic_CXX='-KPIC'
10251 ;;
10252 ghcx)
10253 # Green Hills C++ Compiler
10254 lt_prog_compiler_pic_CXX='-pic'
10255 ;;
10256 *)
10257 ;;
10258 esac
10259 ;;
10260 freebsd*)
10261 # FreeBSD uses GNU C++
10262 ;;
10263 hpux9* | hpux10* | hpux11*)
10264 case $cc_basename in
10265 CC)
10266 lt_prog_compiler_wl_CXX='-Wl,'
10267 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10268 if test "$host_cpu" != ia64; then
10269 lt_prog_compiler_pic_CXX='+Z'
10270 fi
10271 ;;
10272 aCC)
10273 lt_prog_compiler_wl_CXX='-Wl,'
10274 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10275 case "$host_cpu" in
10276 hppa*64*|ia64*)
10277 # +Z the default
10278 ;;
10279 *)
10280 lt_prog_compiler_pic_CXX='+Z'
10281 ;;
10282 esac
10283 ;;
10284 *)
10285 ;;
10286 esac
10287 ;;
10288 irix5* | irix6* | nonstopux*)
10289 case $cc_basename in
10290 CC)
10291 lt_prog_compiler_wl_CXX='-Wl,'
10292 lt_prog_compiler_static_CXX='-non_shared'
10293 # CC pic flag -KPIC is the default.
10294 ;;
10295 *)
10296 ;;
10297 esac
10298 ;;
10299 linux*)
10300 case $cc_basename in
10301 KCC)
10302 # KAI C++ Compiler
10303 lt_prog_compiler_wl_CXX='--backend -Wl,'
10304 lt_prog_compiler_pic_CXX='-fPIC'
10305 ;;
10306 icpc)
10307 # Intel C++
10308 lt_prog_compiler_wl_CXX='-Wl,'
10309 lt_prog_compiler_pic_CXX='-KPIC'
10310 lt_prog_compiler_static_CXX='-static'
10311 ;;
10312 cxx)
10313 # Compaq C++
10314 # Make sure the PIC flag is empty. It appears that all Alpha
10315 # Linux and Compaq Tru64 Unix objects are PIC.
10316 lt_prog_compiler_pic_CXX=
10317 lt_prog_compiler_static_CXX='-non_shared'
10318 ;;
10319 *)
10320 ;;
10321 esac
10322 ;;
10323 lynxos*)
10324 ;;
10325 m88k*)
10326 ;;
10327 mvs*)
10328 case $cc_basename in
10329 cxx)
10330 lt_prog_compiler_pic_CXX='-W c,exportall'
10331 ;;
10332 *)
10333 ;;
10334 esac
10335 ;;
10336 netbsd*)
10337 ;;
10338 osf3* | osf4* | osf5*)
10339 case $cc_basename in
10340 KCC)
10341 lt_prog_compiler_wl_CXX='--backend -Wl,'
10342 ;;
10343 RCC)
10344 # Rational C++ 2.4.1
10345 lt_prog_compiler_pic_CXX='-pic'
10346 ;;
10347 cxx)
10348 # Digital/Compaq C++
10349 lt_prog_compiler_wl_CXX='-Wl,'
10350 # Make sure the PIC flag is empty. It appears that all Alpha
10351 # Linux and Compaq Tru64 Unix objects are PIC.
10352 lt_prog_compiler_pic_CXX=
10353 lt_prog_compiler_static_CXX='-non_shared'
10354 ;;
10355 *)
10356 ;;
10357 esac
10358 ;;
10359 psos*)
10360 ;;
10361 sco*)
10362 case $cc_basename in
10363 CC)
10364 lt_prog_compiler_pic_CXX='-fPIC'
10365 ;;
10366 *)
10367 ;;
10368 esac
10369 ;;
10370 solaris*)
10371 case $cc_basename in
10372 CC)
10373 # Sun C++ 4.2, 5.x and Centerline C++
10374 lt_prog_compiler_pic_CXX='-KPIC'
10375 lt_prog_compiler_static_CXX='-Bstatic'
10376 lt_prog_compiler_wl_CXX='-Qoption ld '
10377 ;;
10378 gcx)
10379 # Green Hills C++ Compiler
10380 lt_prog_compiler_pic_CXX='-PIC'
10381 ;;
10382 *)
10383 ;;
10384 esac
10385 ;;
10386 sunos4*)
10387 case $cc_basename in
10388 CC)
10389 # Sun C++ 4.x
10390 lt_prog_compiler_pic_CXX='-pic'
10391 lt_prog_compiler_static_CXX='-Bstatic'
10392 ;;
10393 lcc)
10394 # Lucid
10395 lt_prog_compiler_pic_CXX='-pic'
10396 ;;
10397 *)
10398 ;;
10399 esac
10400 ;;
10401 tandem*)
10402 case $cc_basename in
10403 NCC)
10404 # NonStop-UX NCC 3.20
10405 lt_prog_compiler_pic_CXX='-KPIC'
10406 ;;
10407 *)
10408 ;;
10409 esac
10410 ;;
10411 unixware*)
10412 ;;
10413 vxworks*)
10414 ;;
10415 *)
10416 lt_prog_compiler_can_build_shared_CXX=no
10417 ;;
10418 esac
10419 fi
10420
10421echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10422echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10423
10424#
10425# Check to make sure the PIC flag actually works.
10426#
10427if test -n "$lt_prog_compiler_pic_CXX"; then
10428 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10429echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10430if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10431 echo $ECHO_N "(cached) $ECHO_C" >&6
10432else
10433 lt_prog_compiler_pic_works_CXX=no
10434 ac_outfile=conftest.$ac_objext
10435 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10436 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10437 # Insert the option either (1) after the last *FLAGS variable, or
10438 # (2) before a word containing "conftest.", or (3) at the end.
10439 # Note that $ac_compile itself does not contain backslashes and begins
10440 # with a dollar sign (not a hyphen), so the echo should work correctly.
10441 # The option is referenced via a variable to avoid confusing sed.
10442 lt_compile=`echo "$ac_compile" | $SED \
10443 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10444 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10445 -e 's:$: $lt_compiler_flag:'`
John Criswelldc76e322004-07-23 15:40:57 +000010446 (eval echo "\"\$as_me:10446: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000010447 (eval "$lt_compile" 2>conftest.err)
10448 ac_status=$?
10449 cat conftest.err >&5
John Criswelldc76e322004-07-23 15:40:57 +000010450 echo "$as_me:10450: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000010451 if (exit $ac_status) && test -s "$ac_outfile"; then
10452 # The compiler can only warn and ignore the option if not recognized
10453 # So say no if there are warnings
10454 if test ! -s conftest.err; then
10455 lt_prog_compiler_pic_works_CXX=yes
10456 fi
10457 fi
10458 $rm conftest*
10459
10460fi
10461echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10462echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10463
10464if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10465 case $lt_prog_compiler_pic_CXX in
10466 "" | " "*) ;;
10467 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10468 esac
10469else
10470 lt_prog_compiler_pic_CXX=
10471 lt_prog_compiler_can_build_shared_CXX=no
10472fi
10473
10474fi
10475case "$host_os" in
10476 # For platforms which do not support PIC, -DPIC is meaningless:
10477 *djgpp*)
10478 lt_prog_compiler_pic_CXX=
10479 ;;
10480 *)
10481 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10482 ;;
10483esac
10484
10485echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10486echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10487if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10488 echo $ECHO_N "(cached) $ECHO_C" >&6
10489else
10490 lt_cv_prog_compiler_c_o_CXX=no
10491 $rm -r conftest 2>/dev/null
10492 mkdir conftest
10493 cd conftest
10494 mkdir out
10495 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10496
10497 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
10498 # that will create temporary files in the current directory regardless of
10499 # the output directory. Thus, making CWD read-only will cause this test
10500 # to fail, enabling locking or at least warning the user not to do parallel
10501 # builds.
10502 chmod -w .
10503
10504 lt_compiler_flag="-o out/conftest2.$ac_objext"
10505 # Insert the option either (1) after the last *FLAGS variable, or
10506 # (2) before a word containing "conftest.", or (3) at the end.
10507 # Note that $ac_compile itself does not contain backslashes and begins
10508 # with a dollar sign (not a hyphen), so the echo should work correctly.
10509 lt_compile=`echo "$ac_compile" | $SED \
10510 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10511 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10512 -e 's:$: $lt_compiler_flag:'`
John Criswelldc76e322004-07-23 15:40:57 +000010513 (eval echo "\"\$as_me:10513: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000010514 (eval "$lt_compile" 2>out/conftest.err)
10515 ac_status=$?
10516 cat out/conftest.err >&5
John Criswelldc76e322004-07-23 15:40:57 +000010517 echo "$as_me:10517: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000010518 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10519 then
10520 # The compiler can only warn and ignore the option if not recognized
10521 # So say no if there are warnings
10522 if test ! -s out/conftest.err; then
10523 lt_cv_prog_compiler_c_o_CXX=yes
10524 fi
10525 fi
10526 chmod u+w .
10527 $rm conftest* out/*
10528 rmdir out
10529 cd ..
10530 rmdir conftest
10531 $rm conftest*
10532
10533fi
10534echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10535echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10536
10537
10538hard_links="nottested"
10539if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10540 # do not overwrite the value of need_locks provided by the user
10541 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10542echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10543 hard_links=yes
10544 $rm conftest*
10545 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10546 touch conftest.a
10547 ln conftest.a conftest.b 2>&5 || hard_links=no
10548 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10549 echo "$as_me:$LINENO: result: $hard_links" >&5
10550echo "${ECHO_T}$hard_links" >&6
10551 if test "$hard_links" = no; then
10552 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10553echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10554 need_locks=warn
10555 fi
10556else
10557 need_locks=no
10558fi
10559
10560echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10561echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10562
10563 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10564 case $host_os in
10565 aix4* | aix5*)
10566 # If we're using GNU nm, then we don't want the "-C" option.
10567 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10568 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10569 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'
10570 else
10571 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'
10572 fi
10573 ;;
10574 pw32*)
10575 export_symbols_cmds_CXX="$ltdll_cmds"
10576 ;;
10577 cygwin* | mingw*)
10578 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10579 ;;
10580 *)
10581 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10582 ;;
10583 esac
10584
10585echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10586echo "${ECHO_T}$ld_shlibs_CXX" >&6
10587test "$ld_shlibs_CXX" = no && can_build_shared=no
10588
10589variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10590if test "$GCC" = yes; then
10591 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10592fi
10593
10594#
10595# Do we need to explicitly link libc?
10596#
10597case "x$archive_cmds_need_lc_CXX" in
10598x|xyes)
10599 # Assume -lc should be added
10600 archive_cmds_need_lc_CXX=yes
10601
10602 if test "$enable_shared" = yes && test "$GCC" = yes; then
10603 case $archive_cmds_CXX in
10604 *'~'*)
10605 # FIXME: we may have to deal with multi-command sequences.
10606 ;;
10607 '$CC '*)
10608 # Test whether the compiler implicitly links with -lc since on some
10609 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10610 # to ld, don't add -lc before -lgcc.
10611 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10612echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10613 $rm conftest*
10614 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10615
10616 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10617 (eval $ac_compile) 2>&5
10618 ac_status=$?
10619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10620 (exit $ac_status); } 2>conftest.err; then
10621 soname=conftest
10622 lib=conftest
10623 libobjs=conftest.$ac_objext
10624 deplibs=
10625 wl=$lt_prog_compiler_wl_CXX
10626 compiler_flags=-v
10627 linker_flags=-v
10628 verstring=
10629 output_objdir=.
10630 libname=conftest
10631 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
10632 allow_undefined_flag_CXX=
10633 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10634 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10635 ac_status=$?
10636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10637 (exit $ac_status); }
10638 then
10639 archive_cmds_need_lc_CXX=no
10640 else
10641 archive_cmds_need_lc_CXX=yes
10642 fi
10643 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
10644 else
10645 cat conftest.err 1>&5
10646 fi
10647 $rm conftest*
10648 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
10649echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
10650 ;;
10651 esac
10652 fi
10653 ;;
10654esac
10655
10656echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10657echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10658hardcode_action_CXX=
10659if test -n "$hardcode_libdir_flag_spec_CXX" || \
10660 test -n "$runpath_var CXX" || \
10661 test "X$hardcode_automatic_CXX"="Xyes" ; then
10662
10663 # We can hardcode non-existant directories.
10664 if test "$hardcode_direct_CXX" != no &&
10665 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10666 # have to relink, otherwise we might link with an installed library
10667 # when we should be linking with a yet-to-be-installed one
10668 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
10669 test "$hardcode_minus_L_CXX" != no; then
10670 # Linking always hardcodes the temporary library directory.
10671 hardcode_action_CXX=relink
10672 else
10673 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10674 hardcode_action_CXX=immediate
10675 fi
10676else
10677 # We cannot hardcode anything, or else we can only hardcode existing
10678 # directories.
10679 hardcode_action_CXX=unsupported
10680fi
10681echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
10682echo "${ECHO_T}$hardcode_action_CXX" >&6
10683
10684if test "$hardcode_action_CXX" = relink; then
10685 # Fast installation is not supported
10686 enable_fast_install=no
10687elif test "$shlibpath_overrides_runpath" = yes ||
10688 test "$enable_shared" = no; then
10689 # Fast installation is not necessary
10690 enable_fast_install=needless
10691fi
10692
10693striplib=
10694old_striplib=
10695echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10696echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10697if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10698 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10699 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10700 echo "$as_me:$LINENO: result: yes" >&5
10701echo "${ECHO_T}yes" >&6
10702else
10703# FIXME - insert some real tests, host_os isn't really good enough
10704 case $host_os in
10705 darwin*)
10706 if test -n "$STRIP" ; then
10707 striplib="$STRIP -x"
10708 echo "$as_me:$LINENO: result: yes" >&5
10709echo "${ECHO_T}yes" >&6
10710 else
10711 echo "$as_me:$LINENO: result: no" >&5
10712echo "${ECHO_T}no" >&6
10713fi
10714 ;;
10715 *)
10716 echo "$as_me:$LINENO: result: no" >&5
10717echo "${ECHO_T}no" >&6
10718 ;;
10719 esac
10720fi
10721
10722echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10723echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10724library_names_spec=
10725libname_spec='lib$name'
10726soname_spec=
10727shrext=".so"
10728postinstall_cmds=
10729postuninstall_cmds=
10730finish_cmds=
10731finish_eval=
10732shlibpath_var=
10733shlibpath_overrides_runpath=unknown
10734version_type=none
10735dynamic_linker="$host_os ld.so"
10736sys_lib_dlsearch_path_spec="/lib /usr/lib"
10737if test "$GCC" = yes; then
10738 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10739 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10740 # if the path contains ";" then we assume it to be the separator
10741 # otherwise default to the standard path separator (i.e. ":") - it is
10742 # assumed that no part of a normal pathname contains ";" but that should
10743 # okay in the real world where ";" in dirpaths is itself problematic.
10744 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10745 else
10746 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10747 fi
10748else
10749 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10750fi
10751need_lib_prefix=unknown
10752hardcode_into_libs=no
10753
10754# when you set need_version to no, make sure it does not cause -set_version
10755# flags to be left without arguments
10756need_version=unknown
10757
10758case $host_os in
10759aix3*)
10760 version_type=linux
10761 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10762 shlibpath_var=LIBPATH
10763
10764 # AIX 3 has no versioning support, so we append a major version to the name.
10765 soname_spec='${libname}${release}${shared_ext}$major'
10766 ;;
10767
10768aix4* | aix5*)
10769 version_type=linux
10770 need_lib_prefix=no
10771 need_version=no
10772 hardcode_into_libs=yes
10773 if test "$host_cpu" = ia64; then
10774 # AIX 5 supports IA64
10775 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10776 shlibpath_var=LD_LIBRARY_PATH
10777 else
10778 # With GCC up to 2.95.x, collect2 would create an import file
10779 # for dependence libraries. The import file would start with
10780 # the line `#! .'. This would cause the generated library to
10781 # depend on `.', always an invalid library. This was fixed in
10782 # development snapshots of GCC prior to 3.0.
10783 case $host_os in
10784 aix4 | aix4.[01] | aix4.[01].*)
10785 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10786 echo ' yes '
10787 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10788 :
10789 else
10790 can_build_shared=no
10791 fi
10792 ;;
10793 esac
10794 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10795 # soname into executable. Probably we can add versioning support to
10796 # collect2, so additional links can be useful in future.
10797 if test "$aix_use_runtimelinking" = yes; then
10798 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10799 # instead of lib<name>.a to let people know that these are not
10800 # typical AIX shared libraries.
10801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10802 else
10803 # We preserve .a as extension for shared libraries through AIX4.2
10804 # and later when we are not doing run time linking.
10805 library_names_spec='${libname}${release}.a $libname.a'
10806 soname_spec='${libname}${release}${shared_ext}$major'
10807 fi
10808 shlibpath_var=LIBPATH
10809 fi
10810 ;;
10811
10812amigaos*)
10813 library_names_spec='$libname.ixlibrary $libname.a'
10814 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10815 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'
10816 ;;
10817
10818beos*)
10819 library_names_spec='${libname}${shared_ext}'
10820 dynamic_linker="$host_os ld.so"
10821 shlibpath_var=LIBRARY_PATH
10822 ;;
10823
10824bsdi4*)
10825 version_type=linux
10826 need_version=no
10827 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10828 soname_spec='${libname}${release}${shared_ext}$major'
10829 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10830 shlibpath_var=LD_LIBRARY_PATH
10831 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10832 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10833 # the default ld.so.conf also contains /usr/contrib/lib and
10834 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10835 # libtool to hard-code these into programs
10836 ;;
10837
10838cygwin* | mingw* | pw32*)
10839 version_type=windows
10840 shrext=".dll"
10841 need_version=no
10842 need_lib_prefix=no
10843
10844 case $GCC,$host_os in
10845 yes,cygwin* | yes,mingw* | yes,pw32*)
10846 library_names_spec='$libname.dll.a'
10847 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10848 postinstall_cmds='base_file=`basename \${file}`~
10849 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10850 dldir=$destdir/`dirname \$dlpath`~
10851 test -d \$dldir || mkdir -p \$dldir~
10852 $install_prog $dir/$dlname \$dldir/$dlname'
10853 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10854 dlpath=$dir/\$dldll~
10855 $rm \$dlpath'
10856 shlibpath_overrides_runpath=yes
10857
10858 case $host_os in
10859 cygwin*)
10860 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10861 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10862 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
10863 ;;
10864 mingw*)
10865 # MinGW DLLs use traditional 'lib' prefix
10866 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10867 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10868 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10869 # It is most probably a Windows format PATH printed by
10870 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10871 # path with ; separators, and with drive letters. We can handle the
10872 # drive letters (cygwin fileutils understands them), so leave them,
10873 # especially as we might pass files found there to a mingw objdump,
10874 # which wouldn't understand a cygwinified path. Ahh.
10875 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10876 else
10877 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10878 fi
10879 ;;
10880 pw32*)
10881 # pw32 DLLs use 'pw' prefix rather than 'lib'
10882 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
10883 ;;
10884 esac
10885 ;;
10886
10887 *)
10888 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10889 ;;
10890 esac
10891 dynamic_linker='Win32 ld.exe'
10892 # FIXME: first we should search . and the directory the executable is in
10893 shlibpath_var=PATH
10894 ;;
10895
10896darwin* | rhapsody*)
10897 dynamic_linker="$host_os dyld"
10898 version_type=darwin
10899 need_lib_prefix=no
10900 need_version=no
10901 # FIXME: Relying on posixy $() will cause problems for
10902 # cross-compilation, but unfortunately the echo tests do not
10903 # yet detect zsh echo's removal of \ escapes.
10904 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10905 soname_spec='${libname}${release}${major}$shared_ext'
10906 shlibpath_overrides_runpath=yes
10907 shlibpath_var=DYLD_LIBRARY_PATH
10908 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
10909 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10910 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
10911 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"`
10912 fi
10913 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10914 ;;
10915
10916dgux*)
10917 version_type=linux
10918 need_lib_prefix=no
10919 need_version=no
10920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10921 soname_spec='${libname}${release}${shared_ext}$major'
10922 shlibpath_var=LD_LIBRARY_PATH
10923 ;;
10924
10925freebsd1*)
10926 dynamic_linker=no
10927 ;;
10928
10929freebsd*)
10930 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
10931 version_type=freebsd-$objformat
10932 case $version_type in
10933 freebsd-elf*)
10934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10935 need_version=no
10936 need_lib_prefix=no
10937 ;;
10938 freebsd-*)
10939 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10940 need_version=yes
10941 ;;
10942 esac
10943 shlibpath_var=LD_LIBRARY_PATH
10944 case $host_os in
10945 freebsd2*)
10946 shlibpath_overrides_runpath=yes
10947 ;;
10948 freebsd3.01* | freebsdelf3.01*)
10949 shlibpath_overrides_runpath=yes
10950 hardcode_into_libs=yes
10951 ;;
10952 *) # from 3.2 on
10953 shlibpath_overrides_runpath=no
10954 hardcode_into_libs=yes
10955 ;;
10956 esac
10957 ;;
10958
10959gnu*)
10960 version_type=linux
10961 need_lib_prefix=no
10962 need_version=no
10963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10964 soname_spec='${libname}${release}${shared_ext}$major'
10965 shlibpath_var=LD_LIBRARY_PATH
10966 hardcode_into_libs=yes
10967 ;;
10968
10969hpux9* | hpux10* | hpux11*)
10970 # Give a soname corresponding to the major version so that dld.sl refuses to
10971 # link against other versions.
10972 version_type=sunos
10973 need_lib_prefix=no
10974 need_version=no
10975 case "$host_cpu" in
10976 ia64*)
10977 shrext='.so'
10978 hardcode_into_libs=yes
10979 dynamic_linker="$host_os dld.so"
10980 shlibpath_var=LD_LIBRARY_PATH
10981 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10983 soname_spec='${libname}${release}${shared_ext}$major'
10984 if test "X$HPUX_IA64_MODE" = X32; then
10985 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10986 else
10987 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10988 fi
10989 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10990 ;;
10991 hppa*64*)
10992 shrext='.sl'
10993 hardcode_into_libs=yes
10994 dynamic_linker="$host_os dld.sl"
10995 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10996 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10998 soname_spec='${libname}${release}${shared_ext}$major'
10999 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11000 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11001 ;;
11002 *)
11003 shrext='.sl'
11004 dynamic_linker="$host_os dld.sl"
11005 shlibpath_var=SHLIB_PATH
11006 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11008 soname_spec='${libname}${release}${shared_ext}$major'
11009 ;;
11010 esac
11011 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11012 postinstall_cmds='chmod 555 $lib'
11013 ;;
11014
11015irix5* | irix6* | nonstopux*)
11016 case $host_os in
11017 nonstopux*) version_type=nonstopux ;;
11018 *)
11019 if test "$lt_cv_prog_gnu_ld" = yes; then
11020 version_type=linux
11021 else
11022 version_type=irix
11023 fi ;;
11024 esac
11025 need_lib_prefix=no
11026 need_version=no
11027 soname_spec='${libname}${release}${shared_ext}$major'
11028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11029 case $host_os in
11030 irix5* | nonstopux*)
11031 libsuff= shlibsuff=
11032 ;;
11033 *)
11034 case $LD in # libtool.m4 will add one of these switches to LD
11035 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11036 libsuff= shlibsuff= libmagic=32-bit;;
11037 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11038 libsuff=32 shlibsuff=N32 libmagic=N32;;
11039 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11040 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11041 *) libsuff= shlibsuff= libmagic=never-match;;
11042 esac
11043 ;;
11044 esac
11045 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11046 shlibpath_overrides_runpath=no
11047 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11048 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11049 hardcode_into_libs=yes
11050 ;;
11051
11052# No shared lib support for Linux oldld, aout, or coff.
11053linux*oldld* | linux*aout* | linux*coff*)
11054 dynamic_linker=no
11055 ;;
11056
11057# This must be Linux ELF.
11058linux*)
11059 version_type=linux
11060 need_lib_prefix=no
11061 need_version=no
11062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11063 soname_spec='${libname}${release}${shared_ext}$major'
11064 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11065 shlibpath_var=LD_LIBRARY_PATH
11066 shlibpath_overrides_runpath=no
11067 # This implies no fast_install, which is unacceptable.
11068 # Some rework will be needed to allow for fast_install
11069 # before this can be enabled.
11070 hardcode_into_libs=yes
11071
11072 # We used to test for /lib/ld.so.1 and disable shared libraries on
11073 # powerpc, because MkLinux only supported shared libraries with the
11074 # GNU dynamic linker. Since this was broken with cross compilers,
11075 # most powerpc-linux boxes support dynamic linking these days and
11076 # people can always --disable-shared, the test was removed, and we
11077 # assume the GNU/Linux dynamic linker is in use.
11078 dynamic_linker='GNU/Linux ld.so'
11079 ;;
11080
11081netbsd*)
11082 version_type=sunos
11083 need_lib_prefix=no
11084 need_version=no
11085 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11087 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11088 dynamic_linker='NetBSD (a.out) ld.so'
11089 else
11090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
11091 soname_spec='${libname}${release}${shared_ext}$major'
11092 dynamic_linker='NetBSD ld.elf_so'
11093 fi
11094 shlibpath_var=LD_LIBRARY_PATH
11095 shlibpath_overrides_runpath=yes
11096 hardcode_into_libs=yes
11097 ;;
11098
11099newsos6)
11100 version_type=linux
11101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11102 shlibpath_var=LD_LIBRARY_PATH
11103 shlibpath_overrides_runpath=yes
11104 ;;
11105
11106nto-qnx)
11107 version_type=linux
11108 need_lib_prefix=no
11109 need_version=no
11110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11111 soname_spec='${libname}${release}${shared_ext}$major'
11112 shlibpath_var=LD_LIBRARY_PATH
11113 shlibpath_overrides_runpath=yes
11114 ;;
11115
11116openbsd*)
11117 version_type=sunos
11118 need_lib_prefix=no
11119 need_version=no
11120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11121 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11122 shlibpath_var=LD_LIBRARY_PATH
11123 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11124 case $host_os in
11125 openbsd2.[89] | openbsd2.[89].*)
11126 shlibpath_overrides_runpath=no
11127 ;;
11128 *)
11129 shlibpath_overrides_runpath=yes
11130 ;;
11131 esac
11132 else
11133 shlibpath_overrides_runpath=yes
11134 fi
11135 ;;
11136
11137os2*)
11138 libname_spec='$name'
11139 shrext=".dll"
11140 need_lib_prefix=no
11141 library_names_spec='$libname${shared_ext} $libname.a'
11142 dynamic_linker='OS/2 ld.exe'
11143 shlibpath_var=LIBPATH
11144 ;;
11145
11146osf3* | osf4* | osf5*)
11147 version_type=osf
11148 need_lib_prefix=no
11149 need_version=no
11150 soname_spec='${libname}${release}${shared_ext}$major'
11151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11152 shlibpath_var=LD_LIBRARY_PATH
11153 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11154 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11155 ;;
11156
11157sco3.2v5*)
11158 version_type=osf
11159 soname_spec='${libname}${release}${shared_ext}$major'
11160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11161 shlibpath_var=LD_LIBRARY_PATH
11162 ;;
11163
11164solaris*)
11165 version_type=linux
11166 need_lib_prefix=no
11167 need_version=no
11168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11169 soname_spec='${libname}${release}${shared_ext}$major'
11170 shlibpath_var=LD_LIBRARY_PATH
11171 shlibpath_overrides_runpath=yes
11172 hardcode_into_libs=yes
11173 # ldd complains unless libraries are executable
11174 postinstall_cmds='chmod +x $lib'
11175 ;;
11176
11177sunos4*)
11178 version_type=sunos
11179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11180 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11181 shlibpath_var=LD_LIBRARY_PATH
11182 shlibpath_overrides_runpath=yes
11183 if test "$with_gnu_ld" = yes; then
11184 need_lib_prefix=no
11185 fi
11186 need_version=yes
11187 ;;
11188
11189sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11190 version_type=linux
11191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11192 soname_spec='${libname}${release}${shared_ext}$major'
11193 shlibpath_var=LD_LIBRARY_PATH
11194 case $host_vendor in
11195 sni)
11196 shlibpath_overrides_runpath=no
11197 need_lib_prefix=no
11198 export_dynamic_flag_spec='${wl}-Blargedynsym'
11199 runpath_var=LD_RUN_PATH
11200 ;;
11201 siemens)
11202 need_lib_prefix=no
11203 ;;
11204 motorola)
11205 need_lib_prefix=no
11206 need_version=no
11207 shlibpath_overrides_runpath=no
11208 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11209 ;;
11210 esac
11211 ;;
11212
11213sysv4*MP*)
11214 if test -d /usr/nec ;then
11215 version_type=linux
11216 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11217 soname_spec='$libname${shared_ext}.$major'
11218 shlibpath_var=LD_LIBRARY_PATH
11219 fi
11220 ;;
11221
11222uts4*)
11223 version_type=linux
11224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11225 soname_spec='${libname}${release}${shared_ext}$major'
11226 shlibpath_var=LD_LIBRARY_PATH
11227 ;;
11228
11229*)
11230 dynamic_linker=no
11231 ;;
11232esac
11233echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11234echo "${ECHO_T}$dynamic_linker" >&6
11235test "$dynamic_linker" = no && can_build_shared=no
11236
11237if test "x$enable_dlopen" != xyes; then
11238 enable_dlopen=unknown
11239 enable_dlopen_self=unknown
11240 enable_dlopen_self_static=unknown
11241else
11242 lt_cv_dlopen=no
11243 lt_cv_dlopen_libs=
11244
11245 case $host_os in
11246 beos*)
11247 lt_cv_dlopen="load_add_on"
11248 lt_cv_dlopen_libs=
11249 lt_cv_dlopen_self=yes
11250 ;;
11251
11252 mingw* | pw32*)
11253 lt_cv_dlopen="LoadLibrary"
11254 lt_cv_dlopen_libs=
11255 ;;
11256
11257 cygwin*)
11258 lt_cv_dlopen="dlopen"
11259 lt_cv_dlopen_libs=
11260 ;;
11261
11262 darwin*)
11263 # if libdl is installed we need to link against it
11264 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11265echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11266if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11267 echo $ECHO_N "(cached) $ECHO_C" >&6
11268else
11269 ac_check_lib_save_LIBS=$LIBS
11270LIBS="-ldl $LIBS"
11271cat >conftest.$ac_ext <<_ACEOF
11272#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011273/* confdefs.h. */
11274_ACEOF
11275cat confdefs.h >>conftest.$ac_ext
11276cat >>conftest.$ac_ext <<_ACEOF
11277/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011278
11279/* Override any gcc2 internal prototype to avoid an error. */
11280#ifdef __cplusplus
11281extern "C"
11282#endif
11283/* We use char because int might match the return type of a gcc2
11284 builtin and then its argument prototype would still apply. */
11285char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011286int
11287main ()
11288{
11289dlopen ();
11290 ;
11291 return 0;
11292}
11293_ACEOF
11294rm -f conftest.$ac_objext conftest$ac_exeext
11295if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11296 (eval $ac_link) 2>&5
11297 ac_status=$?
11298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11299 (exit $ac_status); } &&
11300 { ac_try='test -s conftest$ac_exeext'
11301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11302 (eval $ac_try) 2>&5
11303 ac_status=$?
11304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11305 (exit $ac_status); }; }; then
11306 ac_cv_lib_dl_dlopen=yes
11307else
11308 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011309sed 's/^/| /' conftest.$ac_ext >&5
11310
John Criswell47fdd832003-07-14 16:52:07 +000011311ac_cv_lib_dl_dlopen=no
11312fi
11313rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11314LIBS=$ac_check_lib_save_LIBS
11315fi
11316echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11317echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11318if test $ac_cv_lib_dl_dlopen = yes; then
11319 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11320else
11321
11322 lt_cv_dlopen="dyld"
11323 lt_cv_dlopen_libs=
11324 lt_cv_dlopen_self=yes
11325
11326fi
11327
11328 ;;
11329
11330 *)
11331 echo "$as_me:$LINENO: checking for shl_load" >&5
11332echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11333if test "${ac_cv_func_shl_load+set}" = set; then
11334 echo $ECHO_N "(cached) $ECHO_C" >&6
11335else
11336 cat >conftest.$ac_ext <<_ACEOF
11337#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011338/* confdefs.h. */
11339_ACEOF
11340cat confdefs.h >>conftest.$ac_ext
11341cat >>conftest.$ac_ext <<_ACEOF
11342/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011343/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000011344 which can conflict with char shl_load (); below.
11345 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11346 <limits.h> exists even on freestanding compilers. */
11347#ifdef __STDC__
11348# include <limits.h>
11349#else
11350# include <assert.h>
11351#endif
John Criswell47fdd832003-07-14 16:52:07 +000011352/* Override any gcc2 internal prototype to avoid an error. */
11353#ifdef __cplusplus
11354extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000011355{
John Criswell47fdd832003-07-14 16:52:07 +000011356#endif
11357/* We use char because int might match the return type of a gcc2
11358 builtin and then its argument prototype would still apply. */
11359char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000011360/* The GNU C library defines this for functions which it implements
11361 to always fail with ENOSYS. Some functions are actually named
11362 something starting with __ and the normal name is an alias. */
11363#if defined (__stub_shl_load) || defined (__stub___shl_load)
11364choke me
11365#else
John Criswell0c38eaf2003-09-10 15:17:25 +000011366char (*f) () = shl_load;
11367#endif
11368#ifdef __cplusplus
11369}
John Criswell47fdd832003-07-14 16:52:07 +000011370#endif
11371
John Criswell0c38eaf2003-09-10 15:17:25 +000011372int
11373main ()
11374{
11375return f != shl_load;
John Criswell47fdd832003-07-14 16:52:07 +000011376 ;
11377 return 0;
11378}
11379_ACEOF
11380rm -f conftest.$ac_objext conftest$ac_exeext
11381if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11382 (eval $ac_link) 2>&5
11383 ac_status=$?
11384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11385 (exit $ac_status); } &&
11386 { ac_try='test -s conftest$ac_exeext'
11387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11388 (eval $ac_try) 2>&5
11389 ac_status=$?
11390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11391 (exit $ac_status); }; }; then
11392 ac_cv_func_shl_load=yes
11393else
11394 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011395sed 's/^/| /' conftest.$ac_ext >&5
11396
John Criswell47fdd832003-07-14 16:52:07 +000011397ac_cv_func_shl_load=no
11398fi
11399rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11400fi
11401echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11402echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11403if test $ac_cv_func_shl_load = yes; then
11404 lt_cv_dlopen="shl_load"
11405else
11406 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11407echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11408if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11409 echo $ECHO_N "(cached) $ECHO_C" >&6
11410else
11411 ac_check_lib_save_LIBS=$LIBS
11412LIBS="-ldld $LIBS"
11413cat >conftest.$ac_ext <<_ACEOF
11414#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011415/* confdefs.h. */
11416_ACEOF
11417cat confdefs.h >>conftest.$ac_ext
11418cat >>conftest.$ac_ext <<_ACEOF
11419/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011420
11421/* Override any gcc2 internal prototype to avoid an error. */
11422#ifdef __cplusplus
11423extern "C"
11424#endif
11425/* We use char because int might match the return type of a gcc2
11426 builtin and then its argument prototype would still apply. */
11427char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000011428int
11429main ()
11430{
11431shl_load ();
11432 ;
11433 return 0;
11434}
11435_ACEOF
11436rm -f conftest.$ac_objext conftest$ac_exeext
11437if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11438 (eval $ac_link) 2>&5
11439 ac_status=$?
11440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11441 (exit $ac_status); } &&
11442 { ac_try='test -s conftest$ac_exeext'
11443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11444 (eval $ac_try) 2>&5
11445 ac_status=$?
11446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11447 (exit $ac_status); }; }; then
11448 ac_cv_lib_dld_shl_load=yes
11449else
11450 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011451sed 's/^/| /' conftest.$ac_ext >&5
11452
John Criswell47fdd832003-07-14 16:52:07 +000011453ac_cv_lib_dld_shl_load=no
11454fi
11455rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11456LIBS=$ac_check_lib_save_LIBS
11457fi
11458echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11459echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11460if test $ac_cv_lib_dld_shl_load = yes; then
11461 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11462else
11463 echo "$as_me:$LINENO: checking for dlopen" >&5
11464echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11465if test "${ac_cv_func_dlopen+set}" = set; then
11466 echo $ECHO_N "(cached) $ECHO_C" >&6
11467else
11468 cat >conftest.$ac_ext <<_ACEOF
11469#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011470/* confdefs.h. */
11471_ACEOF
11472cat confdefs.h >>conftest.$ac_ext
11473cat >>conftest.$ac_ext <<_ACEOF
11474/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011475/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000011476 which can conflict with char dlopen (); below.
11477 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11478 <limits.h> exists even on freestanding compilers. */
11479#ifdef __STDC__
11480# include <limits.h>
11481#else
11482# include <assert.h>
11483#endif
John Criswell47fdd832003-07-14 16:52:07 +000011484/* Override any gcc2 internal prototype to avoid an error. */
11485#ifdef __cplusplus
11486extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000011487{
John Criswell47fdd832003-07-14 16:52:07 +000011488#endif
11489/* We use char because int might match the return type of a gcc2
11490 builtin and then its argument prototype would still apply. */
11491char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011492/* The GNU C library defines this for functions which it implements
11493 to always fail with ENOSYS. Some functions are actually named
11494 something starting with __ and the normal name is an alias. */
11495#if defined (__stub_dlopen) || defined (__stub___dlopen)
11496choke me
11497#else
John Criswell0c38eaf2003-09-10 15:17:25 +000011498char (*f) () = dlopen;
11499#endif
11500#ifdef __cplusplus
11501}
John Criswell47fdd832003-07-14 16:52:07 +000011502#endif
11503
John Criswell0c38eaf2003-09-10 15:17:25 +000011504int
11505main ()
11506{
11507return f != dlopen;
John Criswell47fdd832003-07-14 16:52:07 +000011508 ;
11509 return 0;
11510}
11511_ACEOF
11512rm -f conftest.$ac_objext conftest$ac_exeext
11513if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11514 (eval $ac_link) 2>&5
11515 ac_status=$?
11516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11517 (exit $ac_status); } &&
11518 { ac_try='test -s conftest$ac_exeext'
11519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11520 (eval $ac_try) 2>&5
11521 ac_status=$?
11522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11523 (exit $ac_status); }; }; then
11524 ac_cv_func_dlopen=yes
11525else
11526 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011527sed 's/^/| /' conftest.$ac_ext >&5
11528
John Criswell47fdd832003-07-14 16:52:07 +000011529ac_cv_func_dlopen=no
11530fi
11531rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11532fi
11533echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11534echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11535if test $ac_cv_func_dlopen = yes; then
11536 lt_cv_dlopen="dlopen"
11537else
11538 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11539echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11540if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11541 echo $ECHO_N "(cached) $ECHO_C" >&6
11542else
11543 ac_check_lib_save_LIBS=$LIBS
11544LIBS="-ldl $LIBS"
11545cat >conftest.$ac_ext <<_ACEOF
11546#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011547/* confdefs.h. */
11548_ACEOF
11549cat confdefs.h >>conftest.$ac_ext
11550cat >>conftest.$ac_ext <<_ACEOF
11551/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011552
11553/* Override any gcc2 internal prototype to avoid an error. */
11554#ifdef __cplusplus
11555extern "C"
11556#endif
11557/* We use char because int might match the return type of a gcc2
11558 builtin and then its argument prototype would still apply. */
11559char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011560int
11561main ()
11562{
11563dlopen ();
11564 ;
11565 return 0;
11566}
11567_ACEOF
11568rm -f conftest.$ac_objext conftest$ac_exeext
11569if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11570 (eval $ac_link) 2>&5
11571 ac_status=$?
11572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11573 (exit $ac_status); } &&
11574 { ac_try='test -s conftest$ac_exeext'
11575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11576 (eval $ac_try) 2>&5
11577 ac_status=$?
11578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11579 (exit $ac_status); }; }; then
11580 ac_cv_lib_dl_dlopen=yes
11581else
11582 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011583sed 's/^/| /' conftest.$ac_ext >&5
11584
John Criswell47fdd832003-07-14 16:52:07 +000011585ac_cv_lib_dl_dlopen=no
11586fi
11587rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11588LIBS=$ac_check_lib_save_LIBS
11589fi
11590echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11591echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11592if test $ac_cv_lib_dl_dlopen = yes; then
11593 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11594else
11595 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11596echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11597if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11598 echo $ECHO_N "(cached) $ECHO_C" >&6
11599else
11600 ac_check_lib_save_LIBS=$LIBS
11601LIBS="-lsvld $LIBS"
11602cat >conftest.$ac_ext <<_ACEOF
11603#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011604/* confdefs.h. */
11605_ACEOF
11606cat confdefs.h >>conftest.$ac_ext
11607cat >>conftest.$ac_ext <<_ACEOF
11608/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011609
11610/* Override any gcc2 internal prototype to avoid an error. */
11611#ifdef __cplusplus
11612extern "C"
11613#endif
11614/* We use char because int might match the return type of a gcc2
11615 builtin and then its argument prototype would still apply. */
11616char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011617int
11618main ()
11619{
11620dlopen ();
11621 ;
11622 return 0;
11623}
11624_ACEOF
11625rm -f conftest.$ac_objext conftest$ac_exeext
11626if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11627 (eval $ac_link) 2>&5
11628 ac_status=$?
11629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11630 (exit $ac_status); } &&
11631 { ac_try='test -s conftest$ac_exeext'
11632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11633 (eval $ac_try) 2>&5
11634 ac_status=$?
11635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11636 (exit $ac_status); }; }; then
11637 ac_cv_lib_svld_dlopen=yes
11638else
11639 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011640sed 's/^/| /' conftest.$ac_ext >&5
11641
John Criswell47fdd832003-07-14 16:52:07 +000011642ac_cv_lib_svld_dlopen=no
11643fi
11644rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11645LIBS=$ac_check_lib_save_LIBS
11646fi
11647echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11648echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11649if test $ac_cv_lib_svld_dlopen = yes; then
11650 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11651else
11652 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11653echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
11654if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11655 echo $ECHO_N "(cached) $ECHO_C" >&6
11656else
11657 ac_check_lib_save_LIBS=$LIBS
11658LIBS="-ldld $LIBS"
11659cat >conftest.$ac_ext <<_ACEOF
11660#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011661/* confdefs.h. */
11662_ACEOF
11663cat confdefs.h >>conftest.$ac_ext
11664cat >>conftest.$ac_ext <<_ACEOF
11665/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011666
11667/* Override any gcc2 internal prototype to avoid an error. */
11668#ifdef __cplusplus
11669extern "C"
11670#endif
11671/* We use char because int might match the return type of a gcc2
11672 builtin and then its argument prototype would still apply. */
11673char dld_link ();
John Criswell47fdd832003-07-14 16:52:07 +000011674int
11675main ()
11676{
11677dld_link ();
11678 ;
11679 return 0;
11680}
11681_ACEOF
11682rm -f conftest.$ac_objext conftest$ac_exeext
11683if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11684 (eval $ac_link) 2>&5
11685 ac_status=$?
11686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11687 (exit $ac_status); } &&
11688 { ac_try='test -s conftest$ac_exeext'
11689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11690 (eval $ac_try) 2>&5
11691 ac_status=$?
11692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11693 (exit $ac_status); }; }; then
11694 ac_cv_lib_dld_dld_link=yes
11695else
11696 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011697sed 's/^/| /' conftest.$ac_ext >&5
11698
John Criswell47fdd832003-07-14 16:52:07 +000011699ac_cv_lib_dld_dld_link=no
11700fi
11701rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11702LIBS=$ac_check_lib_save_LIBS
11703fi
11704echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11705echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
11706if test $ac_cv_lib_dld_dld_link = yes; then
11707 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11708fi
11709
11710
11711fi
11712
11713
11714fi
11715
11716
11717fi
11718
11719
11720fi
11721
11722
11723fi
11724
11725 ;;
11726 esac
11727
11728 if test "x$lt_cv_dlopen" != xno; then
11729 enable_dlopen=yes
11730 else
11731 enable_dlopen=no
11732 fi
11733
11734 case $lt_cv_dlopen in
11735 dlopen)
11736 save_CPPFLAGS="$CPPFLAGS"
11737 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11738
11739 save_LDFLAGS="$LDFLAGS"
11740 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11741
11742 save_LIBS="$LIBS"
11743 LIBS="$lt_cv_dlopen_libs $LIBS"
11744
11745 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11746echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11747if test "${lt_cv_dlopen_self+set}" = set; then
11748 echo $ECHO_N "(cached) $ECHO_C" >&6
11749else
11750 if test "$cross_compiling" = yes; then :
11751 lt_cv_dlopen_self=cross
11752else
11753 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11754 lt_status=$lt_dlunknown
11755 cat > conftest.$ac_ext <<EOF
John Criswelldc76e322004-07-23 15:40:57 +000011756#line 11756 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000011757#include "confdefs.h"
11758
11759#if HAVE_DLFCN_H
11760#include <dlfcn.h>
11761#endif
11762
11763#include <stdio.h>
11764
11765#ifdef RTLD_GLOBAL
11766# define LT_DLGLOBAL RTLD_GLOBAL
11767#else
11768# ifdef DL_GLOBAL
11769# define LT_DLGLOBAL DL_GLOBAL
11770# else
11771# define LT_DLGLOBAL 0
11772# endif
11773#endif
11774
11775/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11776 find out it does not work in some platform. */
11777#ifndef LT_DLLAZY_OR_NOW
11778# ifdef RTLD_LAZY
11779# define LT_DLLAZY_OR_NOW RTLD_LAZY
11780# else
11781# ifdef DL_LAZY
11782# define LT_DLLAZY_OR_NOW DL_LAZY
11783# else
11784# ifdef RTLD_NOW
11785# define LT_DLLAZY_OR_NOW RTLD_NOW
11786# else
11787# ifdef DL_NOW
11788# define LT_DLLAZY_OR_NOW DL_NOW
11789# else
11790# define LT_DLLAZY_OR_NOW 0
11791# endif
11792# endif
11793# endif
11794# endif
11795#endif
11796
11797#ifdef __cplusplus
11798extern "C" void exit (int);
11799#endif
11800
11801void fnord() { int i=42;}
11802int main ()
11803{
11804 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11805 int status = $lt_dlunknown;
11806
11807 if (self)
11808 {
11809 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11810 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11811 /* dlclose (self); */
11812 }
11813
11814 exit (status);
11815}
11816EOF
11817 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11818 (eval $ac_link) 2>&5
11819 ac_status=$?
11820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11821 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11822 (./conftest; exit; ) 2>/dev/null
11823 lt_status=$?
11824 case x$lt_status in
11825 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11826 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11827 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
11828 esac
11829 else :
11830 # compilation failed
11831 lt_cv_dlopen_self=no
11832 fi
11833fi
11834rm -fr conftest*
11835
11836
11837fi
11838echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11839echo "${ECHO_T}$lt_cv_dlopen_self" >&6
11840
11841 if test "x$lt_cv_dlopen_self" = xyes; then
11842 LDFLAGS="$LDFLAGS $link_static_flag"
11843 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11844echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
11845if test "${lt_cv_dlopen_self_static+set}" = set; then
11846 echo $ECHO_N "(cached) $ECHO_C" >&6
11847else
11848 if test "$cross_compiling" = yes; then :
11849 lt_cv_dlopen_self_static=cross
11850else
11851 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11852 lt_status=$lt_dlunknown
11853 cat > conftest.$ac_ext <<EOF
John Criswelldc76e322004-07-23 15:40:57 +000011854#line 11854 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000011855#include "confdefs.h"
11856
11857#if HAVE_DLFCN_H
11858#include <dlfcn.h>
11859#endif
11860
11861#include <stdio.h>
11862
11863#ifdef RTLD_GLOBAL
11864# define LT_DLGLOBAL RTLD_GLOBAL
11865#else
11866# ifdef DL_GLOBAL
11867# define LT_DLGLOBAL DL_GLOBAL
11868# else
11869# define LT_DLGLOBAL 0
11870# endif
11871#endif
11872
11873/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11874 find out it does not work in some platform. */
11875#ifndef LT_DLLAZY_OR_NOW
11876# ifdef RTLD_LAZY
11877# define LT_DLLAZY_OR_NOW RTLD_LAZY
11878# else
11879# ifdef DL_LAZY
11880# define LT_DLLAZY_OR_NOW DL_LAZY
11881# else
11882# ifdef RTLD_NOW
11883# define LT_DLLAZY_OR_NOW RTLD_NOW
11884# else
11885# ifdef DL_NOW
11886# define LT_DLLAZY_OR_NOW DL_NOW
11887# else
11888# define LT_DLLAZY_OR_NOW 0
11889# endif
11890# endif
11891# endif
11892# endif
11893#endif
11894
11895#ifdef __cplusplus
11896extern "C" void exit (int);
11897#endif
11898
11899void fnord() { int i=42;}
11900int main ()
11901{
11902 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11903 int status = $lt_dlunknown;
11904
11905 if (self)
11906 {
11907 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11908 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11909 /* dlclose (self); */
11910 }
11911
11912 exit (status);
11913}
11914EOF
11915 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11916 (eval $ac_link) 2>&5
11917 ac_status=$?
11918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11919 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11920 (./conftest; exit; ) 2>/dev/null
11921 lt_status=$?
11922 case x$lt_status in
11923 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11924 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11925 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
11926 esac
11927 else :
11928 # compilation failed
11929 lt_cv_dlopen_self_static=no
11930 fi
11931fi
11932rm -fr conftest*
11933
11934
11935fi
11936echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11937echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
11938 fi
11939
11940 CPPFLAGS="$save_CPPFLAGS"
11941 LDFLAGS="$save_LDFLAGS"
11942 LIBS="$save_LIBS"
11943 ;;
11944 esac
11945
11946 case $lt_cv_dlopen_self in
11947 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11948 *) enable_dlopen_self=unknown ;;
11949 esac
11950
11951 case $lt_cv_dlopen_self_static in
11952 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11953 *) enable_dlopen_self_static=unknown ;;
11954 esac
11955fi
11956
11957
11958# The else clause should only fire when bootstrapping the
11959# libtool distribution, otherwise you forgot to ship ltmain.sh
11960# with your package, and you will get complaints that there are
11961# no rules to generate ltmain.sh.
11962if test -f "$ltmain"; then
11963 # See if we are running on zsh, and set the options which allow our commands through
11964 # without removal of \ escapes.
11965 if test -n "${ZSH_VERSION+set}" ; then
11966 setopt NO_GLOB_SUBST
11967 fi
11968 # Now quote all the things that may contain metacharacters while being
11969 # careful not to overquote the AC_SUBSTed values. We take copies of the
11970 # variables and quote the copies for generation of the libtool script.
11971 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
11972 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11973 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11974 deplibs_check_method reload_flag reload_cmds need_locks \
11975 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11976 lt_cv_sys_global_symbol_to_c_name_address \
11977 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11978 old_postinstall_cmds old_postuninstall_cmds \
11979 compiler_CXX \
11980 CC_CXX \
11981 LD_CXX \
11982 lt_prog_compiler_wl_CXX \
11983 lt_prog_compiler_pic_CXX \
11984 lt_prog_compiler_static_CXX \
11985 lt_prog_compiler_no_builtin_flag_CXX \
11986 export_dynamic_flag_spec_CXX \
11987 thread_safe_flag_spec_CXX \
11988 whole_archive_flag_spec_CXX \
11989 enable_shared_with_static_runtimes_CXX \
11990 old_archive_cmds_CXX \
11991 old_archive_from_new_cmds_CXX \
11992 predep_objects_CXX \
11993 postdep_objects_CXX \
11994 predeps_CXX \
11995 postdeps_CXX \
11996 compiler_lib_search_path_CXX \
11997 archive_cmds_CXX \
11998 archive_expsym_cmds_CXX \
11999 postinstall_cmds_CXX \
12000 postuninstall_cmds_CXX \
12001 old_archive_from_expsyms_cmds_CXX \
12002 allow_undefined_flag_CXX \
12003 no_undefined_flag_CXX \
12004 export_symbols_cmds_CXX \
12005 hardcode_libdir_flag_spec_CXX \
12006 hardcode_libdir_flag_spec_ld_CXX \
12007 hardcode_libdir_separator_CXX \
12008 hardcode_automatic_CXX \
12009 module_cmds_CXX \
12010 module_expsym_cmds_CXX \
12011 lt_cv_prog_compiler_c_o_CXX \
12012 exclude_expsyms_CXX \
12013 include_expsyms_CXX; do
12014
12015 case $var in
12016 old_archive_cmds_CXX | \
12017 old_archive_from_new_cmds_CXX | \
12018 archive_cmds_CXX | \
12019 archive_expsym_cmds_CXX | \
12020 module_cmds_CXX | \
12021 module_expsym_cmds_CXX | \
12022 old_archive_from_expsyms_cmds_CXX | \
12023 export_symbols_cmds_CXX | \
12024 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12025 postinstall_cmds | postuninstall_cmds | \
12026 old_postinstall_cmds | old_postuninstall_cmds | \
12027 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12028 # Double-quote double-evaled strings.
12029 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12030 ;;
12031 *)
12032 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12033 ;;
12034 esac
12035 done
12036
12037 case $lt_echo in
12038 *'\$0 --fallback-echo"')
12039 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12040 ;;
12041 esac
12042
12043cfgfile="$ofile"
12044
12045 cat <<__EOF__ >> "$cfgfile"
12046# ### BEGIN LIBTOOL TAG CONFIG: $tagname
12047
12048# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12049
12050# Shell to use when invoking shell scripts.
12051SHELL=$lt_SHELL
12052
12053# Whether or not to build shared libraries.
12054build_libtool_libs=$enable_shared
12055
12056# Whether or not to build static libraries.
12057build_old_libs=$enable_static
12058
12059# Whether or not to add -lc for building shared libraries.
12060build_libtool_need_lc=$archive_cmds_need_lc_CXX
12061
12062# Whether or not to disallow shared libs when runtime libs are static
12063allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12064
12065# Whether or not to optimize for fast installation.
12066fast_install=$enable_fast_install
12067
12068# The host system.
12069host_alias=$host_alias
12070host=$host
12071
12072# An echo program that does not interpret backslashes.
12073echo=$lt_echo
12074
12075# The archiver.
12076AR=$lt_AR
12077AR_FLAGS=$lt_AR_FLAGS
12078
12079# A C compiler.
12080LTCC=$lt_LTCC
12081
12082# A language-specific compiler.
12083CC=$lt_compiler_CXX
12084
12085# Is the compiler the GNU C compiler?
12086with_gcc=$GCC_CXX
12087
12088# An ERE matcher.
12089EGREP=$lt_EGREP
12090
12091# The linker used to build libraries.
12092LD=$lt_LD_CXX
12093
12094# Whether we need hard or soft links.
12095LN_S=$lt_LN_S
12096
12097# A BSD-compatible nm program.
12098NM=$lt_NM
12099
12100# A symbol stripping program
12101STRIP=$STRIP
12102
12103# Used to examine libraries when file_magic_cmd begins "file"
12104MAGIC_CMD=$MAGIC_CMD
12105
12106# Used on cygwin: DLL creation program.
12107DLLTOOL="$DLLTOOL"
12108
12109# Used on cygwin: object dumper.
12110OBJDUMP="$OBJDUMP"
12111
12112# Used on cygwin: assembler.
12113AS="$AS"
12114
12115# The name of the directory that contains temporary libtool files.
12116objdir=$objdir
12117
12118# How to create reloadable object files.
12119reload_flag=$lt_reload_flag
12120reload_cmds=$lt_reload_cmds
12121
12122# How to pass a linker flag through the compiler.
12123wl=$lt_lt_prog_compiler_wl_CXX
12124
12125# Object file suffix (normally "o").
12126objext="$ac_objext"
12127
12128# Old archive suffix (normally "a").
12129libext="$libext"
12130
12131# Shared library suffix (normally ".so").
12132shrext='$shrext'
12133
12134# Executable file suffix (normally "").
12135exeext="$exeext"
12136
12137# Additional compiler flags for building library objects.
12138pic_flag=$lt_lt_prog_compiler_pic_CXX
12139pic_mode=$pic_mode
12140
12141# What is the maximum length of a command?
12142max_cmd_len=$lt_cv_sys_max_cmd_len
12143
12144# Does compiler simultaneously support -c and -o options?
12145compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12146
12147# Must we lock files when doing compilation ?
12148need_locks=$lt_need_locks
12149
12150# Do we need the lib prefix for modules?
12151need_lib_prefix=$need_lib_prefix
12152
12153# Do we need a version for libraries?
12154need_version=$need_version
12155
12156# Whether dlopen is supported.
12157dlopen_support=$enable_dlopen
12158
12159# Whether dlopen of programs is supported.
12160dlopen_self=$enable_dlopen_self
12161
12162# Whether dlopen of statically linked programs is supported.
12163dlopen_self_static=$enable_dlopen_self_static
12164
12165# Compiler flag to prevent dynamic linking.
12166link_static_flag=$lt_lt_prog_compiler_static_CXX
12167
12168# Compiler flag to turn off builtin functions.
12169no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12170
12171# Compiler flag to allow reflexive dlopens.
12172export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12173
12174# Compiler flag to generate shared objects directly from archives.
12175whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12176
12177# Compiler flag to generate thread-safe objects.
12178thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12179
12180# Library versioning type.
12181version_type=$version_type
12182
12183# Format of library name prefix.
12184libname_spec=$lt_libname_spec
12185
12186# List of archive names. First name is the real one, the rest are links.
12187# The last name is the one that the linker finds with -lNAME.
12188library_names_spec=$lt_library_names_spec
12189
12190# The coded name of the library, if different from the real name.
12191soname_spec=$lt_soname_spec
12192
12193# Commands used to build and install an old-style archive.
12194RANLIB=$lt_RANLIB
12195old_archive_cmds=$lt_old_archive_cmds_CXX
12196old_postinstall_cmds=$lt_old_postinstall_cmds
12197old_postuninstall_cmds=$lt_old_postuninstall_cmds
12198
12199# Create an old-style archive from a shared archive.
12200old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12201
12202# Create a temporary old-style archive to link instead of a shared archive.
12203old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12204
12205# Commands used to build and install a shared archive.
12206archive_cmds=$lt_archive_cmds_CXX
12207archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12208postinstall_cmds=$lt_postinstall_cmds
12209postuninstall_cmds=$lt_postuninstall_cmds
12210
12211# Commands used to build a loadable module (assumed same as above if empty)
12212module_cmds=$lt_module_cmds_CXX
12213module_expsym_cmds=$lt_module_expsym_cmds_CXX
12214
12215# Commands to strip libraries.
12216old_striplib=$lt_old_striplib
12217striplib=$lt_striplib
12218
12219# Dependencies to place before the objects being linked to create a
12220# shared library.
12221predep_objects=$lt_predep_objects_CXX
12222
12223# Dependencies to place after the objects being linked to create a
12224# shared library.
12225postdep_objects=$lt_postdep_objects_CXX
12226
12227# Dependencies to place before the objects being linked to create a
12228# shared library.
12229predeps=$lt_predeps_CXX
12230
12231# Dependencies to place after the objects being linked to create a
12232# shared library.
12233postdeps=$lt_postdeps_CXX
12234
12235# The library search path used internally by the compiler when linking
12236# a shared library.
12237compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12238
12239# Method to check whether dependent libraries are shared objects.
12240deplibs_check_method=$lt_deplibs_check_method
12241
12242# Command to use when deplibs_check_method == file_magic.
12243file_magic_cmd=$lt_file_magic_cmd
12244
12245# Flag that allows shared libraries with undefined symbols to be built.
12246allow_undefined_flag=$lt_allow_undefined_flag_CXX
12247
12248# Flag that forces no undefined symbols.
12249no_undefined_flag=$lt_no_undefined_flag_CXX
12250
12251# Commands used to finish a libtool library installation in a directory.
12252finish_cmds=$lt_finish_cmds
12253
12254# Same as above, but a single script fragment to be evaled but not shown.
12255finish_eval=$lt_finish_eval
12256
12257# Take the output of nm and produce a listing of raw symbols and C names.
12258global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12259
12260# Transform the output of nm in a proper C declaration
12261global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12262
12263# Transform the output of nm in a C name address pair
12264global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12265
12266# This is the shared library runtime path variable.
12267runpath_var=$runpath_var
12268
12269# This is the shared library path variable.
12270shlibpath_var=$shlibpath_var
12271
12272# Is shlibpath searched before the hard-coded library search path?
12273shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12274
12275# How to hardcode a shared library path into an executable.
12276hardcode_action=$hardcode_action_CXX
12277
12278# Whether we should hardcode library paths into libraries.
12279hardcode_into_libs=$hardcode_into_libs
12280
12281# Flag to hardcode \$libdir into a binary during linking.
12282# This must work even if \$libdir does not exist.
12283hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12284
12285# If ld is used when linking, flag to hardcode \$libdir into
12286# a binary during linking. This must work even if \$libdir does
12287# not exist.
12288hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12289
12290# Whether we need a single -rpath flag with a separated argument.
12291hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12292
12293# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12294# resulting binary.
12295hardcode_direct=$hardcode_direct_CXX
12296
12297# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12298# resulting binary.
12299hardcode_minus_L=$hardcode_minus_L_CXX
12300
12301# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12302# the resulting binary.
12303hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12304
12305# Set to yes if building a shared library automatically hardcodes DIR into the library
12306# and all subsequent libraries and executables linked against it.
12307hardcode_automatic=$hardcode_automatic_CXX
12308
12309# Variables whose values should be saved in libtool wrapper scripts and
12310# restored at relink time.
12311variables_saved_for_relink="$variables_saved_for_relink"
12312
12313# Whether libtool must link a program against all its dependency libraries.
12314link_all_deplibs=$link_all_deplibs_CXX
12315
12316# Compile-time system search path for libraries
12317sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12318
12319# Run-time system search path for libraries
12320sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12321
12322# Fix the shell variable \$srcfile for the compiler.
12323fix_srcfile_path="$fix_srcfile_path_CXX"
12324
12325# Set to yes if exported symbols are required.
12326always_export_symbols=$always_export_symbols_CXX
12327
12328# The commands to list exported symbols.
12329export_symbols_cmds=$lt_export_symbols_cmds_CXX
12330
12331# The commands to extract the exported symbol list from a shared archive.
12332extract_expsyms_cmds=$lt_extract_expsyms_cmds
12333
12334# Symbols that should not be listed in the preloaded symbols.
12335exclude_expsyms=$lt_exclude_expsyms_CXX
12336
12337# Symbols that must always be exported.
12338include_expsyms=$lt_include_expsyms_CXX
12339
12340# ### END LIBTOOL TAG CONFIG: $tagname
12341
12342__EOF__
12343
12344
12345else
12346 # If there is no Makefile yet, we rely on a make rule to execute
12347 # `config.status --recheck' to rerun these tests and create the
12348 # libtool script then.
12349 test -f Makefile && make "$ltmain"
12350fi
12351
12352
12353ac_ext=c
12354ac_cpp='$CPP $CPPFLAGS'
12355ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12356ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12357ac_compiler_gnu=$ac_cv_c_compiler_gnu
12358
12359CC=$lt_save_CC
12360LDCXX=$LD
12361LD=$lt_save_LD
12362GCC=$lt_save_GCC
12363with_gnu_ldcxx=$with_gnu_ld
12364with_gnu_ld=$lt_save_with_gnu_ld
12365lt_cv_path_LDCXX=$lt_cv_path_LD
12366lt_cv_path_LD=$lt_save_path_LD
12367lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12368lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12369
12370 else
12371 tagname=""
12372 fi
12373 ;;
12374
12375 F77)
12376 if test -n "$F77" && test "X$F77" != "Xno"; then
12377
12378ac_ext=f
12379ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12380ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12381ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12382
12383
12384archive_cmds_need_lc_F77=no
12385allow_undefined_flag_F77=
12386always_export_symbols_F77=no
12387archive_expsym_cmds_F77=
12388export_dynamic_flag_spec_F77=
12389hardcode_direct_F77=no
12390hardcode_libdir_flag_spec_F77=
12391hardcode_libdir_flag_spec_ld_F77=
12392hardcode_libdir_separator_F77=
12393hardcode_minus_L_F77=no
12394hardcode_automatic_F77=no
12395module_cmds_F77=
12396module_expsym_cmds_F77=
12397link_all_deplibs_F77=unknown
12398old_archive_cmds_F77=$old_archive_cmds
12399no_undefined_flag_F77=
12400whole_archive_flag_spec_F77=
12401enable_shared_with_static_runtimes_F77=no
12402
12403# Source file extension for f77 test sources.
12404ac_ext=f
12405
12406# Object file extension for compiled f77 test sources.
12407objext=o
12408objext_F77=$objext
12409
12410# Code to be used in simple compile tests
12411lt_simple_compile_test_code=" subroutine t\n return\n end\n"
12412
12413# Code to be used in simple link tests
12414lt_simple_link_test_code=" program t\n end\n"
12415
12416# ltmain only uses $CC for tagged configurations so make sure $CC is set.
12417
12418# If no C compiler was specified, use CC.
12419LTCC=${LTCC-"$CC"}
12420
12421# Allow CC to be a program name with arguments.
12422compiler=$CC
12423
12424
12425# Allow CC to be a program name with arguments.
12426lt_save_CC="$CC"
12427CC=${F77-"f77"}
12428compiler=$CC
12429compiler_F77=$CC
12430cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12431
12432echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12433echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12434echo "$as_me:$LINENO: result: $can_build_shared" >&5
12435echo "${ECHO_T}$can_build_shared" >&6
12436
12437echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12438echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12439test "$can_build_shared" = "no" && enable_shared=no
12440
12441# On AIX, shared libraries and static libraries use the same namespace, and
12442# are all built from PIC.
12443case "$host_os" in
12444aix3*)
12445 test "$enable_shared" = yes && enable_static=no
12446 if test -n "$RANLIB"; then
12447 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12448 postinstall_cmds='$RANLIB $lib'
12449 fi
12450 ;;
12451aix4*)
12452 test "$enable_shared" = yes && enable_static=no
12453 ;;
12454esac
12455echo "$as_me:$LINENO: result: $enable_shared" >&5
12456echo "${ECHO_T}$enable_shared" >&6
12457
12458echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12459echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12460# Make sure either enable_shared or enable_static is yes.
12461test "$enable_shared" = yes || enable_static=yes
12462echo "$as_me:$LINENO: result: $enable_static" >&5
12463echo "${ECHO_T}$enable_static" >&6
12464
12465test "$ld_shlibs_F77" = no && can_build_shared=no
12466
12467GCC_F77="$G77"
12468LD_F77="$LD"
12469
12470lt_prog_compiler_wl_F77=
12471lt_prog_compiler_pic_F77=
12472lt_prog_compiler_static_F77=
12473
12474echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12475echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12476
12477 if test "$GCC" = yes; then
12478 lt_prog_compiler_wl_F77='-Wl,'
12479 lt_prog_compiler_static_F77='-static'
12480
12481 case $host_os in
12482 aix*)
12483 # All AIX code is PIC.
12484 if test "$host_cpu" = ia64; then
12485 # AIX 5 now supports IA64 processor
12486 lt_prog_compiler_static_F77='-Bstatic'
12487 fi
12488 ;;
12489
12490 amigaos*)
12491 # FIXME: we need at least 68020 code to build shared libraries, but
12492 # adding the `-m68020' flag to GCC prevents building anything better,
12493 # like `-m68040'.
12494 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12495 ;;
12496
12497 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12498 # PIC is the default for these OSes.
12499 ;;
12500
12501 mingw* | pw32* | os2*)
12502 # This hack is so that the source file can tell whether it is being
12503 # built for inclusion in a dll (and should export symbols for example).
12504 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12505 ;;
12506
12507 darwin* | rhapsody*)
12508 # PIC is the default on this platform
12509 # Common symbols not allowed in MH_DYLIB files
12510 lt_prog_compiler_pic_F77='-fno-common'
12511 ;;
12512
12513 msdosdjgpp*)
12514 # Just because we use GCC doesn't mean we suddenly get shared libraries
12515 # on systems that don't support them.
12516 lt_prog_compiler_can_build_shared_F77=no
12517 enable_shared=no
12518 ;;
12519
12520 sysv4*MP*)
12521 if test -d /usr/nec; then
12522 lt_prog_compiler_pic_F77=-Kconform_pic
12523 fi
12524 ;;
12525
12526 hpux*)
12527 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12528 # not for PA HP-UX.
12529 case "$host_cpu" in
12530 hppa*64*|ia64*)
12531 # +Z the default
12532 ;;
12533 *)
12534 lt_prog_compiler_pic_F77='-fPIC'
12535 ;;
12536 esac
12537 ;;
12538
12539 *)
12540 lt_prog_compiler_pic_F77='-fPIC'
12541 ;;
12542 esac
12543 else
12544 # PORTME Check for flag to pass linker flags through the system compiler.
12545 case $host_os in
12546 aix*)
12547 lt_prog_compiler_wl_F77='-Wl,'
12548 if test "$host_cpu" = ia64; then
12549 # AIX 5 now supports IA64 processor
12550 lt_prog_compiler_static_F77='-Bstatic'
12551 else
12552 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12553 fi
12554 ;;
12555
12556 mingw* | pw32* | os2*)
12557 # This hack is so that the source file can tell whether it is being
12558 # built for inclusion in a dll (and should export symbols for example).
12559 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12560 ;;
12561
12562 hpux9* | hpux10* | hpux11*)
12563 lt_prog_compiler_wl_F77='-Wl,'
12564 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12565 # not for PA HP-UX.
12566 case "$host_cpu" in
12567 hppa*64*|ia64*)
12568 # +Z the default
12569 ;;
12570 *)
12571 lt_prog_compiler_pic_F77='+Z'
12572 ;;
12573 esac
12574 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12575 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
12576 ;;
12577
12578 irix5* | irix6* | nonstopux*)
12579 lt_prog_compiler_wl_F77='-Wl,'
12580 # PIC (with -KPIC) is the default.
12581 lt_prog_compiler_static_F77='-non_shared'
12582 ;;
12583
12584 newsos6)
12585 lt_prog_compiler_pic_F77='-KPIC'
12586 lt_prog_compiler_static_F77='-Bstatic'
12587 ;;
12588
12589 linux*)
12590 case $CC in
12591 icc|ecc)
12592 lt_prog_compiler_wl_F77='-Wl,'
12593 lt_prog_compiler_pic_F77='-KPIC'
12594 lt_prog_compiler_static_F77='-static'
12595 ;;
12596 ccc)
12597 lt_prog_compiler_wl_F77='-Wl,'
12598 # All Alpha code is PIC.
12599 lt_prog_compiler_static_F77='-non_shared'
12600 ;;
12601 esac
12602 ;;
12603
12604 osf3* | osf4* | osf5*)
12605 lt_prog_compiler_wl_F77='-Wl,'
12606 # All OSF/1 code is PIC.
12607 lt_prog_compiler_static_F77='-non_shared'
12608 ;;
12609
12610 sco3.2v5*)
12611 lt_prog_compiler_pic_F77='-Kpic'
12612 lt_prog_compiler_static_F77='-dn'
12613 ;;
12614
12615 solaris*)
12616 lt_prog_compiler_wl_F77='-Wl,'
12617 lt_prog_compiler_pic_F77='-KPIC'
12618 lt_prog_compiler_static_F77='-Bstatic'
12619 ;;
12620
12621 sunos4*)
12622 lt_prog_compiler_wl_F77='-Qoption ld '
12623 lt_prog_compiler_pic_F77='-PIC'
12624 lt_prog_compiler_static_F77='-Bstatic'
12625 ;;
12626
12627 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12628 lt_prog_compiler_wl_F77='-Wl,'
12629 lt_prog_compiler_pic_F77='-KPIC'
12630 lt_prog_compiler_static_F77='-Bstatic'
12631 ;;
12632
12633 sysv4*MP*)
12634 if test -d /usr/nec ;then
12635 lt_prog_compiler_pic_F77='-Kconform_pic'
12636 lt_prog_compiler_static_F77='-Bstatic'
12637 fi
12638 ;;
12639
12640 uts4*)
12641 lt_prog_compiler_pic_F77='-pic'
12642 lt_prog_compiler_static_F77='-Bstatic'
12643 ;;
12644
12645 *)
12646 lt_prog_compiler_can_build_shared_F77=no
12647 ;;
12648 esac
12649 fi
12650
12651echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
12652echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
12653
12654#
12655# Check to make sure the PIC flag actually works.
12656#
12657if test -n "$lt_prog_compiler_pic_F77"; then
12658 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
12659echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
12660if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
12661 echo $ECHO_N "(cached) $ECHO_C" >&6
12662else
12663 lt_prog_compiler_pic_works_F77=no
12664 ac_outfile=conftest.$ac_objext
12665 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12666 lt_compiler_flag="$lt_prog_compiler_pic_F77"
12667 # Insert the option either (1) after the last *FLAGS variable, or
12668 # (2) before a word containing "conftest.", or (3) at the end.
12669 # Note that $ac_compile itself does not contain backslashes and begins
12670 # with a dollar sign (not a hyphen), so the echo should work correctly.
12671 # The option is referenced via a variable to avoid confusing sed.
12672 lt_compile=`echo "$ac_compile" | $SED \
12673 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12674 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12675 -e 's:$: $lt_compiler_flag:'`
John Criswelldc76e322004-07-23 15:40:57 +000012676 (eval echo "\"\$as_me:12676: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000012677 (eval "$lt_compile" 2>conftest.err)
12678 ac_status=$?
12679 cat conftest.err >&5
John Criswelldc76e322004-07-23 15:40:57 +000012680 echo "$as_me:12680: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000012681 if (exit $ac_status) && test -s "$ac_outfile"; then
12682 # The compiler can only warn and ignore the option if not recognized
12683 # So say no if there are warnings
12684 if test ! -s conftest.err; then
12685 lt_prog_compiler_pic_works_F77=yes
12686 fi
12687 fi
12688 $rm conftest*
12689
12690fi
12691echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
12692echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
12693
12694if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
12695 case $lt_prog_compiler_pic_F77 in
12696 "" | " "*) ;;
12697 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
12698 esac
12699else
12700 lt_prog_compiler_pic_F77=
12701 lt_prog_compiler_can_build_shared_F77=no
12702fi
12703
12704fi
12705case "$host_os" in
12706 # For platforms which do not support PIC, -DPIC is meaningless:
12707 *djgpp*)
12708 lt_prog_compiler_pic_F77=
12709 ;;
12710 *)
12711 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
12712 ;;
12713esac
12714
12715echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12716echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12717if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
12718 echo $ECHO_N "(cached) $ECHO_C" >&6
12719else
12720 lt_cv_prog_compiler_c_o_F77=no
12721 $rm -r conftest 2>/dev/null
12722 mkdir conftest
12723 cd conftest
12724 mkdir out
12725 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12726
12727 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
12728 # that will create temporary files in the current directory regardless of
12729 # the output directory. Thus, making CWD read-only will cause this test
12730 # to fail, enabling locking or at least warning the user not to do parallel
12731 # builds.
12732 chmod -w .
12733
12734 lt_compiler_flag="-o out/conftest2.$ac_objext"
12735 # Insert the option either (1) after the last *FLAGS variable, or
12736 # (2) before a word containing "conftest.", or (3) at the end.
12737 # Note that $ac_compile itself does not contain backslashes and begins
12738 # with a dollar sign (not a hyphen), so the echo should work correctly.
12739 lt_compile=`echo "$ac_compile" | $SED \
12740 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12741 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12742 -e 's:$: $lt_compiler_flag:'`
John Criswelldc76e322004-07-23 15:40:57 +000012743 (eval echo "\"\$as_me:12743: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000012744 (eval "$lt_compile" 2>out/conftest.err)
12745 ac_status=$?
12746 cat out/conftest.err >&5
John Criswelldc76e322004-07-23 15:40:57 +000012747 echo "$as_me:12747: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000012748 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12749 then
12750 # The compiler can only warn and ignore the option if not recognized
12751 # So say no if there are warnings
12752 if test ! -s out/conftest.err; then
12753 lt_cv_prog_compiler_c_o_F77=yes
12754 fi
12755 fi
12756 chmod u+w .
12757 $rm conftest* out/*
12758 rmdir out
12759 cd ..
12760 rmdir conftest
12761 $rm conftest*
12762
12763fi
12764echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
12765echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
12766
12767
12768hard_links="nottested"
12769if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
12770 # do not overwrite the value of need_locks provided by the user
12771 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12772echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12773 hard_links=yes
12774 $rm conftest*
12775 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12776 touch conftest.a
12777 ln conftest.a conftest.b 2>&5 || hard_links=no
12778 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12779 echo "$as_me:$LINENO: result: $hard_links" >&5
12780echo "${ECHO_T}$hard_links" >&6
12781 if test "$hard_links" = no; then
12782 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12783echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12784 need_locks=warn
12785 fi
12786else
12787 need_locks=no
12788fi
12789
12790echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12791echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12792
12793 runpath_var=
12794 allow_undefined_flag_F77=
12795 enable_shared_with_static_runtimes_F77=no
12796 archive_cmds_F77=
12797 archive_expsym_cmds_F77=
12798 old_archive_From_new_cmds_F77=
12799 old_archive_from_expsyms_cmds_F77=
12800 export_dynamic_flag_spec_F77=
12801 whole_archive_flag_spec_F77=
12802 thread_safe_flag_spec_F77=
12803 hardcode_libdir_flag_spec_F77=
12804 hardcode_libdir_flag_spec_ld_F77=
12805 hardcode_libdir_separator_F77=
12806 hardcode_direct_F77=no
12807 hardcode_minus_L_F77=no
12808 hardcode_shlibpath_var_F77=unsupported
12809 link_all_deplibs_F77=unknown
12810 hardcode_automatic_F77=no
12811 module_cmds_F77=
12812 module_expsym_cmds_F77=
12813 always_export_symbols_F77=no
12814 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12815 # include_expsyms should be a list of space-separated symbols to be *always*
12816 # included in the symbol list
12817 include_expsyms_F77=
12818 # exclude_expsyms can be an extended regexp of symbols to exclude
12819 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12820 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12821 # as well as any symbol that contains `d'.
12822 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
12823 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12824 # platforms (ab)use it in PIC code, but their linkers get confused if
12825 # the symbol is explicitly referenced. Since portable code cannot
12826 # rely on this symbol name, it's probably fine to never include it in
12827 # preloaded symbol tables.
12828 extract_expsyms_cmds=
12829
12830 case $host_os in
12831 cygwin* | mingw* | pw32*)
12832 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12833 # When not using gcc, we currently assume that we are using
12834 # Microsoft Visual C++.
12835 if test "$GCC" != yes; then
12836 with_gnu_ld=no
12837 fi
12838 ;;
12839 openbsd*)
12840 with_gnu_ld=no
12841 ;;
12842 esac
12843
12844 ld_shlibs_F77=yes
12845 if test "$with_gnu_ld" = yes; then
12846 # If archive_cmds runs LD, not CC, wlarc should be empty
12847 wlarc='${wl}'
12848
12849 # See if GNU ld supports shared libraries.
12850 case $host_os in
12851 aix3* | aix4* | aix5*)
12852 # On AIX/PPC, the GNU linker is very broken
12853 if test "$host_cpu" != ia64; then
12854 ld_shlibs_F77=no
12855 cat <<EOF 1>&2
12856
12857*** Warning: the GNU linker, at least up to release 2.9.1, is reported
12858*** to be unable to reliably create shared libraries on AIX.
12859*** Therefore, libtool is disabling shared libraries support. If you
12860*** really care for shared libraries, you may want to modify your PATH
12861*** so that a non-GNU linker is found, and then restart.
12862
12863EOF
12864 fi
12865 ;;
12866
12867 amigaos*)
12868 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)'
12869 hardcode_libdir_flag_spec_F77='-L$libdir'
12870 hardcode_minus_L_F77=yes
12871
12872 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12873 # that the semantics of dynamic libraries on AmigaOS, at least up
12874 # to version 4, is to share data among multiple programs linked
12875 # with the same dynamic library. Since this doesn't match the
12876 # behavior of shared libraries on other platforms, we can't use
12877 # them.
12878 ld_shlibs_F77=no
12879 ;;
12880
12881 beos*)
12882 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12883 allow_undefined_flag_F77=unsupported
12884 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12885 # support --undefined. This deserves some investigation. FIXME
12886 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12887 else
12888 ld_shlibs_F77=no
12889 fi
12890 ;;
12891
12892 cygwin* | mingw* | pw32*)
12893 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
12894 # as there is no search path for DLLs.
12895 hardcode_libdir_flag_spec_F77='-L$libdir'
12896 allow_undefined_flag_F77=unsupported
12897 always_export_symbols_F77=no
12898 enable_shared_with_static_runtimes_F77=yes
12899 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12900
12901 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12902 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12903 # If the export-symbols file already is a .def file (1st line
12904 # is EXPORTS), use it as is; otherwise, prepend...
12905 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12906 cp $export_symbols $output_objdir/$soname.def;
12907 else
12908 echo EXPORTS > $output_objdir/$soname.def;
12909 cat $export_symbols >> $output_objdir/$soname.def;
12910 fi~
12911 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12912 else
12913 ld_shlibs=no
12914 fi
12915 ;;
12916
12917 netbsd*)
12918 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12919 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12920 wlarc=
12921 else
12922 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12923 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12924 fi
12925 ;;
12926
12927 solaris* | sysv5*)
12928 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12929 ld_shlibs_F77=no
12930 cat <<EOF 1>&2
12931
12932*** Warning: The releases 2.8.* of the GNU linker cannot reliably
12933*** create shared libraries on Solaris systems. Therefore, libtool
12934*** is disabling shared libraries support. We urge you to upgrade GNU
12935*** binutils to release 2.9.1 or newer. Another option is to modify
12936*** your PATH or compiler configuration so that the native linker is
12937*** used, and then restart.
12938
12939EOF
12940 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12941 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12942 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12943 else
12944 ld_shlibs_F77=no
12945 fi
12946 ;;
12947
12948 sunos4*)
12949 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12950 wlarc=
12951 hardcode_direct_F77=yes
12952 hardcode_shlibpath_var_F77=no
12953 ;;
12954
12955 *)
12956 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12957 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12958 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12959 else
12960 ld_shlibs_F77=no
12961 fi
12962 ;;
12963 esac
12964
12965 if test "$ld_shlibs_F77" = yes; then
12966 runpath_var=LD_RUN_PATH
12967 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
12968 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
12969 # ancient GNU ld didn't support --whole-archive et. al.
12970 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
12971 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12972 else
12973 whole_archive_flag_spec_F77=
12974 fi
12975 fi
12976 else
12977 # PORTME fill in a description of your system's linker (not GNU ld)
12978 case $host_os in
12979 aix3*)
12980 allow_undefined_flag_F77=unsupported
12981 always_export_symbols_F77=yes
12982 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'
12983 # Note: this linker hardcodes the directories in LIBPATH if there
12984 # are no directories specified by -L.
12985 hardcode_minus_L_F77=yes
12986 if test "$GCC" = yes && test -z "$link_static_flag"; then
12987 # Neither direct hardcoding nor static linking is supported with a
12988 # broken collect2.
12989 hardcode_direct_F77=unsupported
12990 fi
12991 ;;
12992
12993 aix4* | aix5*)
12994 if test "$host_cpu" = ia64; then
12995 # On IA64, the linker does run time linking by default, so we don't
12996 # have to do anything special.
12997 aix_use_runtimelinking=no
12998 exp_sym_flag='-Bexport'
12999 no_entry_flag=""
13000 else
13001 # If we're using GNU nm, then we don't want the "-C" option.
13002 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13003 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13004 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'
13005 else
13006 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'
13007 fi
13008 aix_use_runtimelinking=no
13009
13010 # Test if we are trying to use run time linking or normal
13011 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13012 # need to do runtime linking.
13013 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13014 for ld_flag in $LDFLAGS; do
13015 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13016 aix_use_runtimelinking=yes
13017 break
13018 fi
13019 done
13020 esac
13021
13022 exp_sym_flag='-bexport'
13023 no_entry_flag='-bnoentry'
13024 fi
13025
13026 # When large executables or shared objects are built, AIX ld can
13027 # have problems creating the table of contents. If linking a library
13028 # or program results in "error TOC overflow" add -mminimal-toc to
13029 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13030 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13031
13032 archive_cmds_F77=''
13033 hardcode_direct_F77=yes
13034 hardcode_libdir_separator_F77=':'
13035 link_all_deplibs_F77=yes
13036
13037 if test "$GCC" = yes; then
13038 case $host_os in aix4.012|aix4.012.*)
13039 # We only want to do this on AIX 4.2 and lower, the check
13040 # below for broken collect2 doesn't work under 4.3+
13041 collect2name=`${CC} -print-prog-name=collect2`
13042 if test -f "$collect2name" && \
13043 strings "$collect2name" | grep resolve_lib_name >/dev/null
13044 then
13045 # We have reworked collect2
13046 hardcode_direct_F77=yes
13047 else
13048 # We have old collect2
13049 hardcode_direct_F77=unsupported
13050 # It fails to find uninstalled libraries when the uninstalled
13051 # path is not listed in the libpath. Setting hardcode_minus_L
13052 # to unsupported forces relinking
13053 hardcode_minus_L_F77=yes
13054 hardcode_libdir_flag_spec_F77='-L$libdir'
13055 hardcode_libdir_separator_F77=
13056 fi
13057 esac
13058 shared_flag='-shared'
13059 else
13060 # not using gcc
13061 if test "$host_cpu" = ia64; then
13062 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13063 # chokes on -Wl,-G. The following line is correct:
13064 shared_flag='-G'
13065 else
13066 if test "$aix_use_runtimelinking" = yes; then
13067 shared_flag='${wl}-G'
13068 else
13069 shared_flag='${wl}-bM:SRE'
13070 fi
13071 fi
13072 fi
13073
13074 # It seems that -bexpall does not export symbols beginning with
13075 # underscore (_), so it is better to generate a list of symbols to export.
13076 always_export_symbols_F77=yes
13077 if test "$aix_use_runtimelinking" = yes; then
13078 # Warning - without using the other runtime loading flags (-brtl),
13079 # -berok will link without error, but may produce a broken library.
13080 allow_undefined_flag_F77='-berok'
13081 # Determine the default libpath from the value encoded in an empty executable.
13082 cat >conftest.$ac_ext <<_ACEOF
13083 program main
13084
13085 end
13086_ACEOF
13087rm -f conftest.$ac_objext conftest$ac_exeext
13088if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13089 (eval $ac_link) 2>&5
13090 ac_status=$?
13091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13092 (exit $ac_status); } &&
13093 { ac_try='test -s conftest$ac_exeext'
13094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13095 (eval $ac_try) 2>&5
13096 ac_status=$?
13097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13098 (exit $ac_status); }; }; then
13099
13100aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13101}'`
13102# Check for a 64-bit object if we didn't find anything.
13103if 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; }
13104}'`; fi
13105else
13106 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013107sed 's/^/| /' conftest.$ac_ext >&5
13108
John Criswell47fdd832003-07-14 16:52:07 +000013109fi
13110rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13111if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13112
13113 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13114 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"
13115 else
13116 if test "$host_cpu" = ia64; then
13117 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13118 allow_undefined_flag_F77="-z nodefs"
13119 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"
13120 else
13121 # Determine the default libpath from the value encoded in an empty executable.
13122 cat >conftest.$ac_ext <<_ACEOF
13123 program main
13124
13125 end
13126_ACEOF
13127rm -f conftest.$ac_objext conftest$ac_exeext
13128if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13129 (eval $ac_link) 2>&5
13130 ac_status=$?
13131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13132 (exit $ac_status); } &&
13133 { ac_try='test -s conftest$ac_exeext'
13134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13135 (eval $ac_try) 2>&5
13136 ac_status=$?
13137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13138 (exit $ac_status); }; }; then
13139
13140aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13141}'`
13142# Check for a 64-bit object if we didn't find anything.
13143if 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; }
13144}'`; fi
13145else
13146 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013147sed 's/^/| /' conftest.$ac_ext >&5
13148
John Criswell47fdd832003-07-14 16:52:07 +000013149fi
13150rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13151if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13152
13153 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13154 # Warning - without using the other run time loading flags,
13155 # -berok will link without error, but may produce a broken library.
13156 no_undefined_flag_F77=' ${wl}-bernotok'
13157 allow_undefined_flag_F77=' ${wl}-berok'
13158 # -bexpall does not export symbols beginning with underscore (_)
13159 always_export_symbols_F77=yes
13160 # Exported symbols can be pulled into shared objects from archives
13161 whole_archive_flag_spec_F77=' '
13162 archive_cmds_need_lc_F77=yes
13163 # This is similar to how AIX traditionally builds it's shared libraries.
13164 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'
13165 fi
13166 fi
13167 ;;
13168
13169 amigaos*)
13170 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)'
13171 hardcode_libdir_flag_spec_F77='-L$libdir'
13172 hardcode_minus_L_F77=yes
13173 # see comment about different semantics on the GNU ld section
13174 ld_shlibs_F77=no
13175 ;;
13176
13177 bsdi4*)
13178 export_dynamic_flag_spec_F77=-rdynamic
13179 ;;
13180
13181 cygwin* | mingw* | pw32*)
13182 # When not using gcc, we currently assume that we are using
13183 # Microsoft Visual C++.
13184 # hardcode_libdir_flag_spec is actually meaningless, as there is
13185 # no search path for DLLs.
13186 hardcode_libdir_flag_spec_F77=' '
13187 allow_undefined_flag_F77=unsupported
13188 # Tell ltmain to make .lib files, not .a files.
13189 libext=lib
13190 # Tell ltmain to make .dll files, not .so files.
13191 shrext=".dll"
13192 # FIXME: Setting linknames here is a bad hack.
13193 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13194 # The linker will automatically build a .lib file if we build a DLL.
13195 old_archive_From_new_cmds_F77='true'
13196 # FIXME: Should let the user specify the lib program.
13197 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13198 fix_srcfile_path='`cygpath -w "$srcfile"`'
13199 enable_shared_with_static_runtimes_F77=yes
13200 ;;
13201
13202 darwin* | rhapsody*)
13203 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13204 archive_cmds_need_lc_F77=no
13205 case "$host_os" in
13206 rhapsody* | darwin1.[012])
13207 allow_undefined_flag_F77='-undefined suppress'
13208 ;;
13209 *) # Darwin 1.3 on
13210 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13211 ;;
13212 esac
13213 # FIXME: Relying on posixy $() will cause problems for
13214 # cross-compilation, but unfortunately the echo tests do not
13215 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
13216 # `"' quotes if we put them in here... so don't!
13217 lt_int_apple_cc_single_mod=no
13218 output_verbose_link_cmd='echo'
13219 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13220 lt_int_apple_cc_single_mod=yes
13221 fi
13222 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13223 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13224 else
13225 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'
13226 fi
13227 module_cmds_F77='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
13228 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13229 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13230 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}'
13231 else
13232 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}'
13233 fi
13234 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}'
13235 hardcode_direct_F77=no
13236 hardcode_automatic_F77=yes
13237 hardcode_shlibpath_var_F77=unsupported
13238 whole_archive_flag_spec_F77='-all_load $convenience'
13239 link_all_deplibs_F77=yes
13240 fi
13241 ;;
13242
13243 dgux*)
13244 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13245 hardcode_libdir_flag_spec_F77='-L$libdir'
13246 hardcode_shlibpath_var_F77=no
13247 ;;
13248
13249 freebsd1*)
13250 ld_shlibs_F77=no
13251 ;;
13252
13253 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13254 # support. Future versions do this automatically, but an explicit c++rt0.o
13255 # does not break anything, and helps significantly (at the cost of a little
13256 # extra space).
13257 freebsd2.2*)
13258 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13259 hardcode_libdir_flag_spec_F77='-R$libdir'
13260 hardcode_direct_F77=yes
13261 hardcode_shlibpath_var_F77=no
13262 ;;
13263
13264 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13265 freebsd2*)
13266 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13267 hardcode_direct_F77=yes
13268 hardcode_minus_L_F77=yes
13269 hardcode_shlibpath_var_F77=no
13270 ;;
13271
13272 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13273 freebsd*)
13274 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13275 hardcode_libdir_flag_spec_F77='-R$libdir'
13276 hardcode_direct_F77=yes
13277 hardcode_shlibpath_var_F77=no
13278 ;;
13279
13280 hpux9*)
13281 if test "$GCC" = yes; then
13282 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'
13283 else
13284 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'
13285 fi
13286 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13287 hardcode_libdir_separator_F77=:
13288 hardcode_direct_F77=yes
13289
13290 # hardcode_minus_L: Not really in the search PATH,
13291 # but as the default location of the library.
13292 hardcode_minus_L_F77=yes
13293 export_dynamic_flag_spec_F77='${wl}-E'
13294 ;;
13295
13296 hpux10* | hpux11*)
13297 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13298 case "$host_cpu" in
13299 hppa*64*|ia64*)
13300 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13301 ;;
13302 *)
13303 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13304 ;;
13305 esac
13306 else
13307 case "$host_cpu" in
13308 hppa*64*|ia64*)
13309 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13310 ;;
13311 *)
13312 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13313 ;;
13314 esac
13315 fi
13316 if test "$with_gnu_ld" = no; then
13317 case "$host_cpu" in
13318 hppa*64*)
13319 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13320 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13321 hardcode_libdir_separator_F77=:
13322 hardcode_direct_F77=no
13323 hardcode_shlibpath_var_F77=no
13324 ;;
13325 ia64*)
13326 hardcode_libdir_flag_spec_F77='-L$libdir'
13327 hardcode_direct_F77=no
13328 hardcode_shlibpath_var_F77=no
13329
13330 # hardcode_minus_L: Not really in the search PATH,
13331 # but as the default location of the library.
13332 hardcode_minus_L_F77=yes
13333 ;;
13334 *)
13335 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13336 hardcode_libdir_separator_F77=:
13337 hardcode_direct_F77=yes
13338 export_dynamic_flag_spec_F77='${wl}-E'
13339
13340 # hardcode_minus_L: Not really in the search PATH,
13341 # but as the default location of the library.
13342 hardcode_minus_L_F77=yes
13343 ;;
13344 esac
13345 fi
13346 ;;
13347
13348 irix5* | irix6* | nonstopux*)
13349 if test "$GCC" = yes; then
13350 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'
13351 else
13352 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'
13353 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13354 fi
13355 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13356 hardcode_libdir_separator_F77=:
13357 link_all_deplibs_F77=yes
13358 ;;
13359
13360 netbsd*)
13361 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13362 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13363 else
13364 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13365 fi
13366 hardcode_libdir_flag_spec_F77='-R$libdir'
13367 hardcode_direct_F77=yes
13368 hardcode_shlibpath_var_F77=no
13369 ;;
13370
13371 newsos6)
13372 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13373 hardcode_direct_F77=yes
13374 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13375 hardcode_libdir_separator_F77=:
13376 hardcode_shlibpath_var_F77=no
13377 ;;
13378
13379 openbsd*)
13380 hardcode_direct_F77=yes
13381 hardcode_shlibpath_var_F77=no
13382 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13383 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13384 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13385 export_dynamic_flag_spec_F77='${wl}-E'
13386 else
13387 case $host_os in
13388 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13389 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13390 hardcode_libdir_flag_spec_F77='-R$libdir'
13391 ;;
13392 *)
13393 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13394 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13395 ;;
13396 esac
13397 fi
13398 ;;
13399
13400 os2*)
13401 hardcode_libdir_flag_spec_F77='-L$libdir'
13402 hardcode_minus_L_F77=yes
13403 allow_undefined_flag_F77=unsupported
13404 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'
13405 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13406 ;;
13407
13408 osf3*)
13409 if test "$GCC" = yes; then
13410 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13411 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'
13412 else
13413 allow_undefined_flag_F77=' -expect_unresolved \*'
13414 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'
13415 fi
13416 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13417 hardcode_libdir_separator_F77=:
13418 ;;
13419
13420 osf4* | osf5*) # as osf3* with the addition of -msym flag
13421 if test "$GCC" = yes; then
13422 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13423 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'
13424 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13425 else
13426 allow_undefined_flag_F77=' -expect_unresolved \*'
13427 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'
13428 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~
13429 $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'
13430
13431 # Both c and cxx compiler support -rpath directly
13432 hardcode_libdir_flag_spec_F77='-rpath $libdir'
13433 fi
13434 hardcode_libdir_separator_F77=:
13435 ;;
13436
13437 sco3.2v5*)
13438 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13439 hardcode_shlibpath_var_F77=no
13440 export_dynamic_flag_spec_F77='${wl}-Bexport'
13441 runpath_var=LD_RUN_PATH
13442 hardcode_runpath_var=yes
13443 ;;
13444
13445 solaris*)
13446 no_undefined_flag_F77=' -z text'
13447 if test "$GCC" = yes; then
13448 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13449 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13450 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13451 else
13452 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13453 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13454 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13455 fi
13456 hardcode_libdir_flag_spec_F77='-R$libdir'
13457 hardcode_shlibpath_var_F77=no
13458 case $host_os in
13459 solaris2.[0-5] | solaris2.[0-5].*) ;;
13460 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13461 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13462 esac
13463 link_all_deplibs_F77=yes
13464 ;;
13465
13466 sunos4*)
13467 if test "x$host_vendor" = xsequent; then
13468 # Use $CC to link under sequent, because it throws in some extra .o
13469 # files that make .init and .fini sections work.
13470 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13471 else
13472 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13473 fi
13474 hardcode_libdir_flag_spec_F77='-L$libdir'
13475 hardcode_direct_F77=yes
13476 hardcode_minus_L_F77=yes
13477 hardcode_shlibpath_var_F77=no
13478 ;;
13479
13480 sysv4)
13481 case $host_vendor in
13482 sni)
13483 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13484 hardcode_direct_F77=yes # is this really true???
13485 ;;
13486 siemens)
13487 ## LD is ld it makes a PLAMLIB
13488 ## CC just makes a GrossModule.
13489 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13490 reload_cmds_F77='$CC -r -o $output$reload_objs'
13491 hardcode_direct_F77=no
13492 ;;
13493 motorola)
13494 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13495 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13496 ;;
13497 esac
13498 runpath_var='LD_RUN_PATH'
13499 hardcode_shlibpath_var_F77=no
13500 ;;
13501
13502 sysv4.3*)
13503 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13504 hardcode_shlibpath_var_F77=no
13505 export_dynamic_flag_spec_F77='-Bexport'
13506 ;;
13507
13508 sysv4*MP*)
13509 if test -d /usr/nec; then
13510 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13511 hardcode_shlibpath_var_F77=no
13512 runpath_var=LD_RUN_PATH
13513 hardcode_runpath_var=yes
13514 ld_shlibs_F77=yes
13515 fi
13516 ;;
13517
13518 sysv4.2uw2*)
13519 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13520 hardcode_direct_F77=yes
13521 hardcode_minus_L_F77=no
13522 hardcode_shlibpath_var_F77=no
13523 hardcode_runpath_var=yes
13524 runpath_var=LD_RUN_PATH
13525 ;;
13526
13527 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
13528 no_undefined_flag_F77='${wl}-z ${wl}text'
13529 if test "$GCC" = yes; then
13530 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13531 else
13532 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13533 fi
13534 runpath_var='LD_RUN_PATH'
13535 hardcode_shlibpath_var_F77=no
13536 ;;
13537
13538 sysv5*)
13539 no_undefined_flag_F77=' -z text'
13540 # $CC -shared without GNU ld will not create a library from C++
13541 # object files and a static libstdc++, better avoid it by now
13542 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13543 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13544 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13545 hardcode_libdir_flag_spec_F77=
13546 hardcode_shlibpath_var_F77=no
13547 runpath_var='LD_RUN_PATH'
13548 ;;
13549
13550 uts4*)
13551 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13552 hardcode_libdir_flag_spec_F77='-L$libdir'
13553 hardcode_shlibpath_var_F77=no
13554 ;;
13555
13556 *)
13557 ld_shlibs_F77=no
13558 ;;
13559 esac
13560 fi
13561
13562echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
13563echo "${ECHO_T}$ld_shlibs_F77" >&6
13564test "$ld_shlibs_F77" = no && can_build_shared=no
13565
13566variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13567if test "$GCC" = yes; then
13568 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13569fi
13570
13571#
13572# Do we need to explicitly link libc?
13573#
13574case "x$archive_cmds_need_lc_F77" in
13575x|xyes)
13576 # Assume -lc should be added
13577 archive_cmds_need_lc_F77=yes
13578
13579 if test "$enable_shared" = yes && test "$GCC" = yes; then
13580 case $archive_cmds_F77 in
13581 *'~'*)
13582 # FIXME: we may have to deal with multi-command sequences.
13583 ;;
13584 '$CC '*)
13585 # Test whether the compiler implicitly links with -lc since on some
13586 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13587 # to ld, don't add -lc before -lgcc.
13588 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13589echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13590 $rm conftest*
13591 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13592
13593 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13594 (eval $ac_compile) 2>&5
13595 ac_status=$?
13596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13597 (exit $ac_status); } 2>conftest.err; then
13598 soname=conftest
13599 lib=conftest
13600 libobjs=conftest.$ac_objext
13601 deplibs=
13602 wl=$lt_prog_compiler_wl_F77
13603 compiler_flags=-v
13604 linker_flags=-v
13605 verstring=
13606 output_objdir=.
13607 libname=conftest
13608 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
13609 allow_undefined_flag_F77=
13610 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13611 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13612 ac_status=$?
13613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13614 (exit $ac_status); }
13615 then
13616 archive_cmds_need_lc_F77=no
13617 else
13618 archive_cmds_need_lc_F77=yes
13619 fi
13620 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
13621 else
13622 cat conftest.err 1>&5
13623 fi
13624 $rm conftest*
13625 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
13626echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
13627 ;;
13628 esac
13629 fi
13630 ;;
13631esac
13632
13633echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13634echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13635hardcode_action_F77=
13636if test -n "$hardcode_libdir_flag_spec_F77" || \
13637 test -n "$runpath_var F77" || \
13638 test "X$hardcode_automatic_F77"="Xyes" ; then
13639
13640 # We can hardcode non-existant directories.
13641 if test "$hardcode_direct_F77" != no &&
13642 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13643 # have to relink, otherwise we might link with an installed library
13644 # when we should be linking with a yet-to-be-installed one
13645 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
13646 test "$hardcode_minus_L_F77" != no; then
13647 # Linking always hardcodes the temporary library directory.
13648 hardcode_action_F77=relink
13649 else
13650 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13651 hardcode_action_F77=immediate
13652 fi
13653else
13654 # We cannot hardcode anything, or else we can only hardcode existing
13655 # directories.
13656 hardcode_action_F77=unsupported
13657fi
13658echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
13659echo "${ECHO_T}$hardcode_action_F77" >&6
13660
13661if test "$hardcode_action_F77" = relink; then
13662 # Fast installation is not supported
13663 enable_fast_install=no
13664elif test "$shlibpath_overrides_runpath" = yes ||
13665 test "$enable_shared" = no; then
13666 # Fast installation is not necessary
13667 enable_fast_install=needless
13668fi
13669
13670striplib=
13671old_striplib=
13672echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13673echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13674if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13675 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13676 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13677 echo "$as_me:$LINENO: result: yes" >&5
13678echo "${ECHO_T}yes" >&6
13679else
13680# FIXME - insert some real tests, host_os isn't really good enough
13681 case $host_os in
13682 darwin*)
13683 if test -n "$STRIP" ; then
13684 striplib="$STRIP -x"
13685 echo "$as_me:$LINENO: result: yes" >&5
13686echo "${ECHO_T}yes" >&6
13687 else
13688 echo "$as_me:$LINENO: result: no" >&5
13689echo "${ECHO_T}no" >&6
13690fi
13691 ;;
13692 *)
13693 echo "$as_me:$LINENO: result: no" >&5
13694echo "${ECHO_T}no" >&6
13695 ;;
13696 esac
13697fi
13698
13699echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13700echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13701library_names_spec=
13702libname_spec='lib$name'
13703soname_spec=
13704shrext=".so"
13705postinstall_cmds=
13706postuninstall_cmds=
13707finish_cmds=
13708finish_eval=
13709shlibpath_var=
13710shlibpath_overrides_runpath=unknown
13711version_type=none
13712dynamic_linker="$host_os ld.so"
13713sys_lib_dlsearch_path_spec="/lib /usr/lib"
13714if test "$GCC" = yes; then
13715 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13716 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13717 # if the path contains ";" then we assume it to be the separator
13718 # otherwise default to the standard path separator (i.e. ":") - it is
13719 # assumed that no part of a normal pathname contains ";" but that should
13720 # okay in the real world where ";" in dirpaths is itself problematic.
13721 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13722 else
13723 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13724 fi
13725else
13726 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13727fi
13728need_lib_prefix=unknown
13729hardcode_into_libs=no
13730
13731# when you set need_version to no, make sure it does not cause -set_version
13732# flags to be left without arguments
13733need_version=unknown
13734
13735case $host_os in
13736aix3*)
13737 version_type=linux
13738 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13739 shlibpath_var=LIBPATH
13740
13741 # AIX 3 has no versioning support, so we append a major version to the name.
13742 soname_spec='${libname}${release}${shared_ext}$major'
13743 ;;
13744
13745aix4* | aix5*)
13746 version_type=linux
13747 need_lib_prefix=no
13748 need_version=no
13749 hardcode_into_libs=yes
13750 if test "$host_cpu" = ia64; then
13751 # AIX 5 supports IA64
13752 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13753 shlibpath_var=LD_LIBRARY_PATH
13754 else
13755 # With GCC up to 2.95.x, collect2 would create an import file
13756 # for dependence libraries. The import file would start with
13757 # the line `#! .'. This would cause the generated library to
13758 # depend on `.', always an invalid library. This was fixed in
13759 # development snapshots of GCC prior to 3.0.
13760 case $host_os in
13761 aix4 | aix4.[01] | aix4.[01].*)
13762 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13763 echo ' yes '
13764 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13765 :
13766 else
13767 can_build_shared=no
13768 fi
13769 ;;
13770 esac
13771 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13772 # soname into executable. Probably we can add versioning support to
13773 # collect2, so additional links can be useful in future.
13774 if test "$aix_use_runtimelinking" = yes; then
13775 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13776 # instead of lib<name>.a to let people know that these are not
13777 # typical AIX shared libraries.
13778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13779 else
13780 # We preserve .a as extension for shared libraries through AIX4.2
13781 # and later when we are not doing run time linking.
13782 library_names_spec='${libname}${release}.a $libname.a'
13783 soname_spec='${libname}${release}${shared_ext}$major'
13784 fi
13785 shlibpath_var=LIBPATH
13786 fi
13787 ;;
13788
13789amigaos*)
13790 library_names_spec='$libname.ixlibrary $libname.a'
13791 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13792 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'
13793 ;;
13794
13795beos*)
13796 library_names_spec='${libname}${shared_ext}'
13797 dynamic_linker="$host_os ld.so"
13798 shlibpath_var=LIBRARY_PATH
13799 ;;
13800
13801bsdi4*)
13802 version_type=linux
13803 need_version=no
13804 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13805 soname_spec='${libname}${release}${shared_ext}$major'
13806 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13807 shlibpath_var=LD_LIBRARY_PATH
13808 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13809 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13810 # the default ld.so.conf also contains /usr/contrib/lib and
13811 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13812 # libtool to hard-code these into programs
13813 ;;
13814
13815cygwin* | mingw* | pw32*)
13816 version_type=windows
13817 shrext=".dll"
13818 need_version=no
13819 need_lib_prefix=no
13820
13821 case $GCC,$host_os in
13822 yes,cygwin* | yes,mingw* | yes,pw32*)
13823 library_names_spec='$libname.dll.a'
13824 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13825 postinstall_cmds='base_file=`basename \${file}`~
13826 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13827 dldir=$destdir/`dirname \$dlpath`~
13828 test -d \$dldir || mkdir -p \$dldir~
13829 $install_prog $dir/$dlname \$dldir/$dlname'
13830 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13831 dlpath=$dir/\$dldll~
13832 $rm \$dlpath'
13833 shlibpath_overrides_runpath=yes
13834
13835 case $host_os in
13836 cygwin*)
13837 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13838 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13839 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
13840 ;;
13841 mingw*)
13842 # MinGW DLLs use traditional 'lib' prefix
13843 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13844 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13845 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13846 # It is most probably a Windows format PATH printed by
13847 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13848 # path with ; separators, and with drive letters. We can handle the
13849 # drive letters (cygwin fileutils understands them), so leave them,
13850 # especially as we might pass files found there to a mingw objdump,
13851 # which wouldn't understand a cygwinified path. Ahh.
13852 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13853 else
13854 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13855 fi
13856 ;;
13857 pw32*)
13858 # pw32 DLLs use 'pw' prefix rather than 'lib'
13859 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13860 ;;
13861 esac
13862 ;;
13863
13864 *)
13865 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13866 ;;
13867 esac
13868 dynamic_linker='Win32 ld.exe'
13869 # FIXME: first we should search . and the directory the executable is in
13870 shlibpath_var=PATH
13871 ;;
13872
13873darwin* | rhapsody*)
13874 dynamic_linker="$host_os dyld"
13875 version_type=darwin
13876 need_lib_prefix=no
13877 need_version=no
13878 # FIXME: Relying on posixy $() will cause problems for
13879 # cross-compilation, but unfortunately the echo tests do not
13880 # yet detect zsh echo's removal of \ escapes.
13881 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13882 soname_spec='${libname}${release}${major}$shared_ext'
13883 shlibpath_overrides_runpath=yes
13884 shlibpath_var=DYLD_LIBRARY_PATH
13885 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
13886 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13887 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13888 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"`
13889 fi
13890 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13891 ;;
13892
13893dgux*)
13894 version_type=linux
13895 need_lib_prefix=no
13896 need_version=no
13897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13898 soname_spec='${libname}${release}${shared_ext}$major'
13899 shlibpath_var=LD_LIBRARY_PATH
13900 ;;
13901
13902freebsd1*)
13903 dynamic_linker=no
13904 ;;
13905
13906freebsd*)
13907 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13908 version_type=freebsd-$objformat
13909 case $version_type in
13910 freebsd-elf*)
13911 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13912 need_version=no
13913 need_lib_prefix=no
13914 ;;
13915 freebsd-*)
13916 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13917 need_version=yes
13918 ;;
13919 esac
13920 shlibpath_var=LD_LIBRARY_PATH
13921 case $host_os in
13922 freebsd2*)
13923 shlibpath_overrides_runpath=yes
13924 ;;
13925 freebsd3.01* | freebsdelf3.01*)
13926 shlibpath_overrides_runpath=yes
13927 hardcode_into_libs=yes
13928 ;;
13929 *) # from 3.2 on
13930 shlibpath_overrides_runpath=no
13931 hardcode_into_libs=yes
13932 ;;
13933 esac
13934 ;;
13935
13936gnu*)
13937 version_type=linux
13938 need_lib_prefix=no
13939 need_version=no
13940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13941 soname_spec='${libname}${release}${shared_ext}$major'
13942 shlibpath_var=LD_LIBRARY_PATH
13943 hardcode_into_libs=yes
13944 ;;
13945
13946hpux9* | hpux10* | hpux11*)
13947 # Give a soname corresponding to the major version so that dld.sl refuses to
13948 # link against other versions.
13949 version_type=sunos
13950 need_lib_prefix=no
13951 need_version=no
13952 case "$host_cpu" in
13953 ia64*)
13954 shrext='.so'
13955 hardcode_into_libs=yes
13956 dynamic_linker="$host_os dld.so"
13957 shlibpath_var=LD_LIBRARY_PATH
13958 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13960 soname_spec='${libname}${release}${shared_ext}$major'
13961 if test "X$HPUX_IA64_MODE" = X32; then
13962 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13963 else
13964 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13965 fi
13966 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13967 ;;
13968 hppa*64*)
13969 shrext='.sl'
13970 hardcode_into_libs=yes
13971 dynamic_linker="$host_os dld.sl"
13972 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13973 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13975 soname_spec='${libname}${release}${shared_ext}$major'
13976 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13977 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13978 ;;
13979 *)
13980 shrext='.sl'
13981 dynamic_linker="$host_os dld.sl"
13982 shlibpath_var=SHLIB_PATH
13983 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13985 soname_spec='${libname}${release}${shared_ext}$major'
13986 ;;
13987 esac
13988 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13989 postinstall_cmds='chmod 555 $lib'
13990 ;;
13991
13992irix5* | irix6* | nonstopux*)
13993 case $host_os in
13994 nonstopux*) version_type=nonstopux ;;
13995 *)
13996 if test "$lt_cv_prog_gnu_ld" = yes; then
13997 version_type=linux
13998 else
13999 version_type=irix
14000 fi ;;
14001 esac
14002 need_lib_prefix=no
14003 need_version=no
14004 soname_spec='${libname}${release}${shared_ext}$major'
14005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14006 case $host_os in
14007 irix5* | nonstopux*)
14008 libsuff= shlibsuff=
14009 ;;
14010 *)
14011 case $LD in # libtool.m4 will add one of these switches to LD
14012 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14013 libsuff= shlibsuff= libmagic=32-bit;;
14014 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14015 libsuff=32 shlibsuff=N32 libmagic=N32;;
14016 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14017 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14018 *) libsuff= shlibsuff= libmagic=never-match;;
14019 esac
14020 ;;
14021 esac
14022 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14023 shlibpath_overrides_runpath=no
14024 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14025 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14026 hardcode_into_libs=yes
14027 ;;
14028
14029# No shared lib support for Linux oldld, aout, or coff.
14030linux*oldld* | linux*aout* | linux*coff*)
14031 dynamic_linker=no
14032 ;;
14033
14034# This must be Linux ELF.
14035linux*)
14036 version_type=linux
14037 need_lib_prefix=no
14038 need_version=no
14039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14040 soname_spec='${libname}${release}${shared_ext}$major'
14041 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14042 shlibpath_var=LD_LIBRARY_PATH
14043 shlibpath_overrides_runpath=no
14044 # This implies no fast_install, which is unacceptable.
14045 # Some rework will be needed to allow for fast_install
14046 # before this can be enabled.
14047 hardcode_into_libs=yes
14048
14049 # We used to test for /lib/ld.so.1 and disable shared libraries on
14050 # powerpc, because MkLinux only supported shared libraries with the
14051 # GNU dynamic linker. Since this was broken with cross compilers,
14052 # most powerpc-linux boxes support dynamic linking these days and
14053 # people can always --disable-shared, the test was removed, and we
14054 # assume the GNU/Linux dynamic linker is in use.
14055 dynamic_linker='GNU/Linux ld.so'
14056 ;;
14057
14058netbsd*)
14059 version_type=sunos
14060 need_lib_prefix=no
14061 need_version=no
14062 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14064 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14065 dynamic_linker='NetBSD (a.out) ld.so'
14066 else
14067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
14068 soname_spec='${libname}${release}${shared_ext}$major'
14069 dynamic_linker='NetBSD ld.elf_so'
14070 fi
14071 shlibpath_var=LD_LIBRARY_PATH
14072 shlibpath_overrides_runpath=yes
14073 hardcode_into_libs=yes
14074 ;;
14075
14076newsos6)
14077 version_type=linux
14078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14079 shlibpath_var=LD_LIBRARY_PATH
14080 shlibpath_overrides_runpath=yes
14081 ;;
14082
14083nto-qnx)
14084 version_type=linux
14085 need_lib_prefix=no
14086 need_version=no
14087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14088 soname_spec='${libname}${release}${shared_ext}$major'
14089 shlibpath_var=LD_LIBRARY_PATH
14090 shlibpath_overrides_runpath=yes
14091 ;;
14092
14093openbsd*)
14094 version_type=sunos
14095 need_lib_prefix=no
14096 need_version=no
14097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14098 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14099 shlibpath_var=LD_LIBRARY_PATH
14100 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14101 case $host_os in
14102 openbsd2.[89] | openbsd2.[89].*)
14103 shlibpath_overrides_runpath=no
14104 ;;
14105 *)
14106 shlibpath_overrides_runpath=yes
14107 ;;
14108 esac
14109 else
14110 shlibpath_overrides_runpath=yes
14111 fi
14112 ;;
14113
14114os2*)
14115 libname_spec='$name'
14116 shrext=".dll"
14117 need_lib_prefix=no
14118 library_names_spec='$libname${shared_ext} $libname.a'
14119 dynamic_linker='OS/2 ld.exe'
14120 shlibpath_var=LIBPATH
14121 ;;
14122
14123osf3* | osf4* | osf5*)
14124 version_type=osf
14125 need_lib_prefix=no
14126 need_version=no
14127 soname_spec='${libname}${release}${shared_ext}$major'
14128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14129 shlibpath_var=LD_LIBRARY_PATH
14130 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14131 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14132 ;;
14133
14134sco3.2v5*)
14135 version_type=osf
14136 soname_spec='${libname}${release}${shared_ext}$major'
14137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14138 shlibpath_var=LD_LIBRARY_PATH
14139 ;;
14140
14141solaris*)
14142 version_type=linux
14143 need_lib_prefix=no
14144 need_version=no
14145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14146 soname_spec='${libname}${release}${shared_ext}$major'
14147 shlibpath_var=LD_LIBRARY_PATH
14148 shlibpath_overrides_runpath=yes
14149 hardcode_into_libs=yes
14150 # ldd complains unless libraries are executable
14151 postinstall_cmds='chmod +x $lib'
14152 ;;
14153
14154sunos4*)
14155 version_type=sunos
14156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14157 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14158 shlibpath_var=LD_LIBRARY_PATH
14159 shlibpath_overrides_runpath=yes
14160 if test "$with_gnu_ld" = yes; then
14161 need_lib_prefix=no
14162 fi
14163 need_version=yes
14164 ;;
14165
14166sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14167 version_type=linux
14168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14169 soname_spec='${libname}${release}${shared_ext}$major'
14170 shlibpath_var=LD_LIBRARY_PATH
14171 case $host_vendor in
14172 sni)
14173 shlibpath_overrides_runpath=no
14174 need_lib_prefix=no
14175 export_dynamic_flag_spec='${wl}-Blargedynsym'
14176 runpath_var=LD_RUN_PATH
14177 ;;
14178 siemens)
14179 need_lib_prefix=no
14180 ;;
14181 motorola)
14182 need_lib_prefix=no
14183 need_version=no
14184 shlibpath_overrides_runpath=no
14185 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14186 ;;
14187 esac
14188 ;;
14189
14190sysv4*MP*)
14191 if test -d /usr/nec ;then
14192 version_type=linux
14193 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14194 soname_spec='$libname${shared_ext}.$major'
14195 shlibpath_var=LD_LIBRARY_PATH
14196 fi
14197 ;;
14198
14199uts4*)
14200 version_type=linux
14201 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14202 soname_spec='${libname}${release}${shared_ext}$major'
14203 shlibpath_var=LD_LIBRARY_PATH
14204 ;;
14205
14206*)
14207 dynamic_linker=no
14208 ;;
14209esac
14210echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14211echo "${ECHO_T}$dynamic_linker" >&6
14212test "$dynamic_linker" = no && can_build_shared=no
14213
14214
14215# The else clause should only fire when bootstrapping the
14216# libtool distribution, otherwise you forgot to ship ltmain.sh
14217# with your package, and you will get complaints that there are
14218# no rules to generate ltmain.sh.
14219if test -f "$ltmain"; then
14220 # See if we are running on zsh, and set the options which allow our commands through
14221 # without removal of \ escapes.
14222 if test -n "${ZSH_VERSION+set}" ; then
14223 setopt NO_GLOB_SUBST
14224 fi
14225 # Now quote all the things that may contain metacharacters while being
14226 # careful not to overquote the AC_SUBSTed values. We take copies of the
14227 # variables and quote the copies for generation of the libtool script.
14228 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
14229 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14230 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14231 deplibs_check_method reload_flag reload_cmds need_locks \
14232 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14233 lt_cv_sys_global_symbol_to_c_name_address \
14234 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14235 old_postinstall_cmds old_postuninstall_cmds \
14236 compiler_F77 \
14237 CC_F77 \
14238 LD_F77 \
14239 lt_prog_compiler_wl_F77 \
14240 lt_prog_compiler_pic_F77 \
14241 lt_prog_compiler_static_F77 \
14242 lt_prog_compiler_no_builtin_flag_F77 \
14243 export_dynamic_flag_spec_F77 \
14244 thread_safe_flag_spec_F77 \
14245 whole_archive_flag_spec_F77 \
14246 enable_shared_with_static_runtimes_F77 \
14247 old_archive_cmds_F77 \
14248 old_archive_from_new_cmds_F77 \
14249 predep_objects_F77 \
14250 postdep_objects_F77 \
14251 predeps_F77 \
14252 postdeps_F77 \
14253 compiler_lib_search_path_F77 \
14254 archive_cmds_F77 \
14255 archive_expsym_cmds_F77 \
14256 postinstall_cmds_F77 \
14257 postuninstall_cmds_F77 \
14258 old_archive_from_expsyms_cmds_F77 \
14259 allow_undefined_flag_F77 \
14260 no_undefined_flag_F77 \
14261 export_symbols_cmds_F77 \
14262 hardcode_libdir_flag_spec_F77 \
14263 hardcode_libdir_flag_spec_ld_F77 \
14264 hardcode_libdir_separator_F77 \
14265 hardcode_automatic_F77 \
14266 module_cmds_F77 \
14267 module_expsym_cmds_F77 \
14268 lt_cv_prog_compiler_c_o_F77 \
14269 exclude_expsyms_F77 \
14270 include_expsyms_F77; do
14271
14272 case $var in
14273 old_archive_cmds_F77 | \
14274 old_archive_from_new_cmds_F77 | \
14275 archive_cmds_F77 | \
14276 archive_expsym_cmds_F77 | \
14277 module_cmds_F77 | \
14278 module_expsym_cmds_F77 | \
14279 old_archive_from_expsyms_cmds_F77 | \
14280 export_symbols_cmds_F77 | \
14281 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14282 postinstall_cmds | postuninstall_cmds | \
14283 old_postinstall_cmds | old_postuninstall_cmds | \
14284 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14285 # Double-quote double-evaled strings.
14286 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14287 ;;
14288 *)
14289 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14290 ;;
14291 esac
14292 done
14293
14294 case $lt_echo in
14295 *'\$0 --fallback-echo"')
14296 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14297 ;;
14298 esac
14299
14300cfgfile="$ofile"
14301
14302 cat <<__EOF__ >> "$cfgfile"
14303# ### BEGIN LIBTOOL TAG CONFIG: $tagname
14304
14305# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14306
14307# Shell to use when invoking shell scripts.
14308SHELL=$lt_SHELL
14309
14310# Whether or not to build shared libraries.
14311build_libtool_libs=$enable_shared
14312
14313# Whether or not to build static libraries.
14314build_old_libs=$enable_static
14315
14316# Whether or not to add -lc for building shared libraries.
14317build_libtool_need_lc=$archive_cmds_need_lc_F77
14318
14319# Whether or not to disallow shared libs when runtime libs are static
14320allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14321
14322# Whether or not to optimize for fast installation.
14323fast_install=$enable_fast_install
14324
14325# The host system.
14326host_alias=$host_alias
14327host=$host
14328
14329# An echo program that does not interpret backslashes.
14330echo=$lt_echo
14331
14332# The archiver.
14333AR=$lt_AR
14334AR_FLAGS=$lt_AR_FLAGS
14335
14336# A C compiler.
14337LTCC=$lt_LTCC
14338
14339# A language-specific compiler.
14340CC=$lt_compiler_F77
14341
14342# Is the compiler the GNU C compiler?
14343with_gcc=$GCC_F77
14344
14345# An ERE matcher.
14346EGREP=$lt_EGREP
14347
14348# The linker used to build libraries.
14349LD=$lt_LD_F77
14350
14351# Whether we need hard or soft links.
14352LN_S=$lt_LN_S
14353
14354# A BSD-compatible nm program.
14355NM=$lt_NM
14356
14357# A symbol stripping program
14358STRIP=$STRIP
14359
14360# Used to examine libraries when file_magic_cmd begins "file"
14361MAGIC_CMD=$MAGIC_CMD
14362
14363# Used on cygwin: DLL creation program.
14364DLLTOOL="$DLLTOOL"
14365
14366# Used on cygwin: object dumper.
14367OBJDUMP="$OBJDUMP"
14368
14369# Used on cygwin: assembler.
14370AS="$AS"
14371
14372# The name of the directory that contains temporary libtool files.
14373objdir=$objdir
14374
14375# How to create reloadable object files.
14376reload_flag=$lt_reload_flag
14377reload_cmds=$lt_reload_cmds
14378
14379# How to pass a linker flag through the compiler.
14380wl=$lt_lt_prog_compiler_wl_F77
14381
14382# Object file suffix (normally "o").
14383objext="$ac_objext"
14384
14385# Old archive suffix (normally "a").
14386libext="$libext"
14387
14388# Shared library suffix (normally ".so").
14389shrext='$shrext'
14390
14391# Executable file suffix (normally "").
14392exeext="$exeext"
14393
14394# Additional compiler flags for building library objects.
14395pic_flag=$lt_lt_prog_compiler_pic_F77
14396pic_mode=$pic_mode
14397
14398# What is the maximum length of a command?
14399max_cmd_len=$lt_cv_sys_max_cmd_len
14400
14401# Does compiler simultaneously support -c and -o options?
14402compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14403
14404# Must we lock files when doing compilation ?
14405need_locks=$lt_need_locks
14406
14407# Do we need the lib prefix for modules?
14408need_lib_prefix=$need_lib_prefix
14409
14410# Do we need a version for libraries?
14411need_version=$need_version
14412
14413# Whether dlopen is supported.
14414dlopen_support=$enable_dlopen
14415
14416# Whether dlopen of programs is supported.
14417dlopen_self=$enable_dlopen_self
14418
14419# Whether dlopen of statically linked programs is supported.
14420dlopen_self_static=$enable_dlopen_self_static
14421
14422# Compiler flag to prevent dynamic linking.
14423link_static_flag=$lt_lt_prog_compiler_static_F77
14424
14425# Compiler flag to turn off builtin functions.
14426no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14427
14428# Compiler flag to allow reflexive dlopens.
14429export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14430
14431# Compiler flag to generate shared objects directly from archives.
14432whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14433
14434# Compiler flag to generate thread-safe objects.
14435thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14436
14437# Library versioning type.
14438version_type=$version_type
14439
14440# Format of library name prefix.
14441libname_spec=$lt_libname_spec
14442
14443# List of archive names. First name is the real one, the rest are links.
14444# The last name is the one that the linker finds with -lNAME.
14445library_names_spec=$lt_library_names_spec
14446
14447# The coded name of the library, if different from the real name.
14448soname_spec=$lt_soname_spec
14449
14450# Commands used to build and install an old-style archive.
14451RANLIB=$lt_RANLIB
14452old_archive_cmds=$lt_old_archive_cmds_F77
14453old_postinstall_cmds=$lt_old_postinstall_cmds
14454old_postuninstall_cmds=$lt_old_postuninstall_cmds
14455
14456# Create an old-style archive from a shared archive.
14457old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14458
14459# Create a temporary old-style archive to link instead of a shared archive.
14460old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14461
14462# Commands used to build and install a shared archive.
14463archive_cmds=$lt_archive_cmds_F77
14464archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14465postinstall_cmds=$lt_postinstall_cmds
14466postuninstall_cmds=$lt_postuninstall_cmds
14467
14468# Commands used to build a loadable module (assumed same as above if empty)
14469module_cmds=$lt_module_cmds_F77
14470module_expsym_cmds=$lt_module_expsym_cmds_F77
14471
14472# Commands to strip libraries.
14473old_striplib=$lt_old_striplib
14474striplib=$lt_striplib
14475
14476# Dependencies to place before the objects being linked to create a
14477# shared library.
14478predep_objects=$lt_predep_objects_F77
14479
14480# Dependencies to place after the objects being linked to create a
14481# shared library.
14482postdep_objects=$lt_postdep_objects_F77
14483
14484# Dependencies to place before the objects being linked to create a
14485# shared library.
14486predeps=$lt_predeps_F77
14487
14488# Dependencies to place after the objects being linked to create a
14489# shared library.
14490postdeps=$lt_postdeps_F77
14491
14492# The library search path used internally by the compiler when linking
14493# a shared library.
14494compiler_lib_search_path=$lt_compiler_lib_search_path_F77
14495
14496# Method to check whether dependent libraries are shared objects.
14497deplibs_check_method=$lt_deplibs_check_method
14498
14499# Command to use when deplibs_check_method == file_magic.
14500file_magic_cmd=$lt_file_magic_cmd
14501
14502# Flag that allows shared libraries with undefined symbols to be built.
14503allow_undefined_flag=$lt_allow_undefined_flag_F77
14504
14505# Flag that forces no undefined symbols.
14506no_undefined_flag=$lt_no_undefined_flag_F77
14507
14508# Commands used to finish a libtool library installation in a directory.
14509finish_cmds=$lt_finish_cmds
14510
14511# Same as above, but a single script fragment to be evaled but not shown.
14512finish_eval=$lt_finish_eval
14513
14514# Take the output of nm and produce a listing of raw symbols and C names.
14515global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14516
14517# Transform the output of nm in a proper C declaration
14518global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14519
14520# Transform the output of nm in a C name address pair
14521global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14522
14523# This is the shared library runtime path variable.
14524runpath_var=$runpath_var
14525
14526# This is the shared library path variable.
14527shlibpath_var=$shlibpath_var
14528
14529# Is shlibpath searched before the hard-coded library search path?
14530shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14531
14532# How to hardcode a shared library path into an executable.
14533hardcode_action=$hardcode_action_F77
14534
14535# Whether we should hardcode library paths into libraries.
14536hardcode_into_libs=$hardcode_into_libs
14537
14538# Flag to hardcode \$libdir into a binary during linking.
14539# This must work even if \$libdir does not exist.
14540hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
14541
14542# If ld is used when linking, flag to hardcode \$libdir into
14543# a binary during linking. This must work even if \$libdir does
14544# not exist.
14545hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
14546
14547# Whether we need a single -rpath flag with a separated argument.
14548hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
14549
14550# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14551# resulting binary.
14552hardcode_direct=$hardcode_direct_F77
14553
14554# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14555# resulting binary.
14556hardcode_minus_L=$hardcode_minus_L_F77
14557
14558# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14559# the resulting binary.
14560hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
14561
14562# Set to yes if building a shared library automatically hardcodes DIR into the library
14563# and all subsequent libraries and executables linked against it.
14564hardcode_automatic=$hardcode_automatic_F77
14565
14566# Variables whose values should be saved in libtool wrapper scripts and
14567# restored at relink time.
14568variables_saved_for_relink="$variables_saved_for_relink"
14569
14570# Whether libtool must link a program against all its dependency libraries.
14571link_all_deplibs=$link_all_deplibs_F77
14572
14573# Compile-time system search path for libraries
14574sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14575
14576# Run-time system search path for libraries
14577sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14578
14579# Fix the shell variable \$srcfile for the compiler.
14580fix_srcfile_path="$fix_srcfile_path_F77"
14581
14582# Set to yes if exported symbols are required.
14583always_export_symbols=$always_export_symbols_F77
14584
14585# The commands to list exported symbols.
14586export_symbols_cmds=$lt_export_symbols_cmds_F77
14587
14588# The commands to extract the exported symbol list from a shared archive.
14589extract_expsyms_cmds=$lt_extract_expsyms_cmds
14590
14591# Symbols that should not be listed in the preloaded symbols.
14592exclude_expsyms=$lt_exclude_expsyms_F77
14593
14594# Symbols that must always be exported.
14595include_expsyms=$lt_include_expsyms_F77
14596
14597# ### END LIBTOOL TAG CONFIG: $tagname
14598
14599__EOF__
14600
14601
14602else
14603 # If there is no Makefile yet, we rely on a make rule to execute
14604 # `config.status --recheck' to rerun these tests and create the
14605 # libtool script then.
14606 test -f Makefile && make "$ltmain"
14607fi
14608
14609
14610ac_ext=c
14611ac_cpp='$CPP $CPPFLAGS'
14612ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14613ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14614ac_compiler_gnu=$ac_cv_c_compiler_gnu
14615
14616CC="$lt_save_CC"
14617
14618 else
14619 tagname=""
14620 fi
14621 ;;
14622
14623 GCJ)
14624 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
14625
14626
14627
14628# Source file extension for Java test sources.
14629ac_ext=java
14630
14631# Object file extension for compiled Java test sources.
14632objext=o
14633objext_GCJ=$objext
14634
14635# Code to be used in simple compile tests
14636lt_simple_compile_test_code="class foo {}\n"
14637
14638# Code to be used in simple link tests
14639lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
14640
14641# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14642
14643# If no C compiler was specified, use CC.
14644LTCC=${LTCC-"$CC"}
14645
14646# Allow CC to be a program name with arguments.
14647compiler=$CC
14648
14649
14650# Allow CC to be a program name with arguments.
14651lt_save_CC="$CC"
14652CC=${GCJ-"gcj"}
14653compiler=$CC
14654compiler_GCJ=$CC
14655
14656# GCJ did not exist at the time GCC didn't implicitly link libc in.
14657archive_cmds_need_lc_GCJ=no
14658
John Criswell47fdd832003-07-14 16:52:07 +000014659
14660lt_prog_compiler_no_builtin_flag_GCJ=
14661
14662if test "$GCC" = yes; then
14663 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
14664
14665 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14666echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
14667if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14668 echo $ECHO_N "(cached) $ECHO_C" >&6
14669else
14670 lt_cv_prog_compiler_rtti_exceptions=no
14671 ac_outfile=conftest.$ac_objext
14672 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14673 lt_compiler_flag="-fno-rtti -fno-exceptions"
14674 # Insert the option either (1) after the last *FLAGS variable, or
14675 # (2) before a word containing "conftest.", or (3) at the end.
14676 # Note that $ac_compile itself does not contain backslashes and begins
14677 # with a dollar sign (not a hyphen), so the echo should work correctly.
14678 # The option is referenced via a variable to avoid confusing sed.
14679 lt_compile=`echo "$ac_compile" | $SED \
14680 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14681 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14682 -e 's:$: $lt_compiler_flag:'`
John Criswelldc76e322004-07-23 15:40:57 +000014683 (eval echo "\"\$as_me:14683: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014684 (eval "$lt_compile" 2>conftest.err)
14685 ac_status=$?
14686 cat conftest.err >&5
John Criswelldc76e322004-07-23 15:40:57 +000014687 echo "$as_me:14687: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014688 if (exit $ac_status) && test -s "$ac_outfile"; then
14689 # The compiler can only warn and ignore the option if not recognized
14690 # So say no if there are warnings
14691 if test ! -s conftest.err; then
14692 lt_cv_prog_compiler_rtti_exceptions=yes
14693 fi
14694 fi
14695 $rm conftest*
14696
14697fi
14698echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14699echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
14700
14701if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14702 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
14703else
14704 :
14705fi
14706
14707fi
14708
14709lt_prog_compiler_wl_GCJ=
14710lt_prog_compiler_pic_GCJ=
14711lt_prog_compiler_static_GCJ=
14712
14713echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14714echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
14715
14716 if test "$GCC" = yes; then
14717 lt_prog_compiler_wl_GCJ='-Wl,'
14718 lt_prog_compiler_static_GCJ='-static'
14719
14720 case $host_os in
14721 aix*)
14722 # All AIX code is PIC.
14723 if test "$host_cpu" = ia64; then
14724 # AIX 5 now supports IA64 processor
14725 lt_prog_compiler_static_GCJ='-Bstatic'
14726 fi
14727 ;;
14728
14729 amigaos*)
14730 # FIXME: we need at least 68020 code to build shared libraries, but
14731 # adding the `-m68020' flag to GCC prevents building anything better,
14732 # like `-m68040'.
14733 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
14734 ;;
14735
14736 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14737 # PIC is the default for these OSes.
14738 ;;
14739
14740 mingw* | pw32* | os2*)
14741 # This hack is so that the source file can tell whether it is being
14742 # built for inclusion in a dll (and should export symbols for example).
14743 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
14744 ;;
14745
14746 darwin* | rhapsody*)
14747 # PIC is the default on this platform
14748 # Common symbols not allowed in MH_DYLIB files
14749 lt_prog_compiler_pic_GCJ='-fno-common'
14750 ;;
14751
14752 msdosdjgpp*)
14753 # Just because we use GCC doesn't mean we suddenly get shared libraries
14754 # on systems that don't support them.
14755 lt_prog_compiler_can_build_shared_GCJ=no
14756 enable_shared=no
14757 ;;
14758
14759 sysv4*MP*)
14760 if test -d /usr/nec; then
14761 lt_prog_compiler_pic_GCJ=-Kconform_pic
14762 fi
14763 ;;
14764
14765 hpux*)
14766 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14767 # not for PA HP-UX.
14768 case "$host_cpu" in
14769 hppa*64*|ia64*)
14770 # +Z the default
14771 ;;
14772 *)
14773 lt_prog_compiler_pic_GCJ='-fPIC'
14774 ;;
14775 esac
14776 ;;
14777
14778 *)
14779 lt_prog_compiler_pic_GCJ='-fPIC'
14780 ;;
14781 esac
14782 else
14783 # PORTME Check for flag to pass linker flags through the system compiler.
14784 case $host_os in
14785 aix*)
14786 lt_prog_compiler_wl_GCJ='-Wl,'
14787 if test "$host_cpu" = ia64; then
14788 # AIX 5 now supports IA64 processor
14789 lt_prog_compiler_static_GCJ='-Bstatic'
14790 else
14791 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
14792 fi
14793 ;;
14794
14795 mingw* | pw32* | os2*)
14796 # This hack is so that the source file can tell whether it is being
14797 # built for inclusion in a dll (and should export symbols for example).
14798 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
14799 ;;
14800
14801 hpux9* | hpux10* | hpux11*)
14802 lt_prog_compiler_wl_GCJ='-Wl,'
14803 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14804 # not for PA HP-UX.
14805 case "$host_cpu" in
14806 hppa*64*|ia64*)
14807 # +Z the default
14808 ;;
14809 *)
14810 lt_prog_compiler_pic_GCJ='+Z'
14811 ;;
14812 esac
14813 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14814 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
14815 ;;
14816
14817 irix5* | irix6* | nonstopux*)
14818 lt_prog_compiler_wl_GCJ='-Wl,'
14819 # PIC (with -KPIC) is the default.
14820 lt_prog_compiler_static_GCJ='-non_shared'
14821 ;;
14822
14823 newsos6)
14824 lt_prog_compiler_pic_GCJ='-KPIC'
14825 lt_prog_compiler_static_GCJ='-Bstatic'
14826 ;;
14827
14828 linux*)
14829 case $CC in
14830 icc|ecc)
14831 lt_prog_compiler_wl_GCJ='-Wl,'
14832 lt_prog_compiler_pic_GCJ='-KPIC'
14833 lt_prog_compiler_static_GCJ='-static'
14834 ;;
14835 ccc)
14836 lt_prog_compiler_wl_GCJ='-Wl,'
14837 # All Alpha code is PIC.
14838 lt_prog_compiler_static_GCJ='-non_shared'
14839 ;;
14840 esac
14841 ;;
14842
14843 osf3* | osf4* | osf5*)
14844 lt_prog_compiler_wl_GCJ='-Wl,'
14845 # All OSF/1 code is PIC.
14846 lt_prog_compiler_static_GCJ='-non_shared'
14847 ;;
14848
14849 sco3.2v5*)
14850 lt_prog_compiler_pic_GCJ='-Kpic'
14851 lt_prog_compiler_static_GCJ='-dn'
14852 ;;
14853
14854 solaris*)
14855 lt_prog_compiler_wl_GCJ='-Wl,'
14856 lt_prog_compiler_pic_GCJ='-KPIC'
14857 lt_prog_compiler_static_GCJ='-Bstatic'
14858 ;;
14859
14860 sunos4*)
14861 lt_prog_compiler_wl_GCJ='-Qoption ld '
14862 lt_prog_compiler_pic_GCJ='-PIC'
14863 lt_prog_compiler_static_GCJ='-Bstatic'
14864 ;;
14865
14866 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14867 lt_prog_compiler_wl_GCJ='-Wl,'
14868 lt_prog_compiler_pic_GCJ='-KPIC'
14869 lt_prog_compiler_static_GCJ='-Bstatic'
14870 ;;
14871
14872 sysv4*MP*)
14873 if test -d /usr/nec ;then
14874 lt_prog_compiler_pic_GCJ='-Kconform_pic'
14875 lt_prog_compiler_static_GCJ='-Bstatic'
14876 fi
14877 ;;
14878
14879 uts4*)
14880 lt_prog_compiler_pic_GCJ='-pic'
14881 lt_prog_compiler_static_GCJ='-Bstatic'
14882 ;;
14883
14884 *)
14885 lt_prog_compiler_can_build_shared_GCJ=no
14886 ;;
14887 esac
14888 fi
14889
14890echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
14891echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
14892
14893#
14894# Check to make sure the PIC flag actually works.
14895#
14896if test -n "$lt_prog_compiler_pic_GCJ"; then
14897 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
14898echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
14899if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
14900 echo $ECHO_N "(cached) $ECHO_C" >&6
14901else
14902 lt_prog_compiler_pic_works_GCJ=no
14903 ac_outfile=conftest.$ac_objext
14904 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14905 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
14906 # Insert the option either (1) after the last *FLAGS variable, or
14907 # (2) before a word containing "conftest.", or (3) at the end.
14908 # Note that $ac_compile itself does not contain backslashes and begins
14909 # with a dollar sign (not a hyphen), so the echo should work correctly.
14910 # The option is referenced via a variable to avoid confusing sed.
14911 lt_compile=`echo "$ac_compile" | $SED \
14912 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14913 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14914 -e 's:$: $lt_compiler_flag:'`
John Criswelldc76e322004-07-23 15:40:57 +000014915 (eval echo "\"\$as_me:14915: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014916 (eval "$lt_compile" 2>conftest.err)
14917 ac_status=$?
14918 cat conftest.err >&5
John Criswelldc76e322004-07-23 15:40:57 +000014919 echo "$as_me:14919: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014920 if (exit $ac_status) && test -s "$ac_outfile"; then
14921 # The compiler can only warn and ignore the option if not recognized
14922 # So say no if there are warnings
14923 if test ! -s conftest.err; then
14924 lt_prog_compiler_pic_works_GCJ=yes
14925 fi
14926 fi
14927 $rm conftest*
14928
14929fi
14930echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
14931echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
14932
14933if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
14934 case $lt_prog_compiler_pic_GCJ in
14935 "" | " "*) ;;
14936 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
14937 esac
14938else
14939 lt_prog_compiler_pic_GCJ=
14940 lt_prog_compiler_can_build_shared_GCJ=no
14941fi
14942
14943fi
14944case "$host_os" in
14945 # For platforms which do not support PIC, -DPIC is meaningless:
14946 *djgpp*)
14947 lt_prog_compiler_pic_GCJ=
14948 ;;
14949 *)
14950 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
14951 ;;
14952esac
14953
14954echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14955echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14956if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
14957 echo $ECHO_N "(cached) $ECHO_C" >&6
14958else
14959 lt_cv_prog_compiler_c_o_GCJ=no
14960 $rm -r conftest 2>/dev/null
14961 mkdir conftest
14962 cd conftest
14963 mkdir out
14964 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14965
14966 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
14967 # that will create temporary files in the current directory regardless of
14968 # the output directory. Thus, making CWD read-only will cause this test
14969 # to fail, enabling locking or at least warning the user not to do parallel
14970 # builds.
14971 chmod -w .
14972
14973 lt_compiler_flag="-o out/conftest2.$ac_objext"
14974 # Insert the option either (1) after the last *FLAGS variable, or
14975 # (2) before a word containing "conftest.", or (3) at the end.
14976 # Note that $ac_compile itself does not contain backslashes and begins
14977 # with a dollar sign (not a hyphen), so the echo should work correctly.
14978 lt_compile=`echo "$ac_compile" | $SED \
14979 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14980 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14981 -e 's:$: $lt_compiler_flag:'`
John Criswelldc76e322004-07-23 15:40:57 +000014982 (eval echo "\"\$as_me:14982: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014983 (eval "$lt_compile" 2>out/conftest.err)
14984 ac_status=$?
14985 cat out/conftest.err >&5
John Criswelldc76e322004-07-23 15:40:57 +000014986 echo "$as_me:14986: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014987 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14988 then
14989 # The compiler can only warn and ignore the option if not recognized
14990 # So say no if there are warnings
14991 if test ! -s out/conftest.err; then
14992 lt_cv_prog_compiler_c_o_GCJ=yes
14993 fi
14994 fi
14995 chmod u+w .
14996 $rm conftest* out/*
14997 rmdir out
14998 cd ..
14999 rmdir conftest
15000 $rm conftest*
15001
15002fi
15003echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15004echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15005
15006
15007hard_links="nottested"
15008if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15009 # do not overwrite the value of need_locks provided by the user
15010 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15011echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15012 hard_links=yes
15013 $rm conftest*
15014 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15015 touch conftest.a
15016 ln conftest.a conftest.b 2>&5 || hard_links=no
15017 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15018 echo "$as_me:$LINENO: result: $hard_links" >&5
15019echo "${ECHO_T}$hard_links" >&6
15020 if test "$hard_links" = no; then
15021 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15022echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15023 need_locks=warn
15024 fi
15025else
15026 need_locks=no
15027fi
15028
15029echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15030echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15031
15032 runpath_var=
15033 allow_undefined_flag_GCJ=
15034 enable_shared_with_static_runtimes_GCJ=no
15035 archive_cmds_GCJ=
15036 archive_expsym_cmds_GCJ=
15037 old_archive_From_new_cmds_GCJ=
15038 old_archive_from_expsyms_cmds_GCJ=
15039 export_dynamic_flag_spec_GCJ=
15040 whole_archive_flag_spec_GCJ=
15041 thread_safe_flag_spec_GCJ=
15042 hardcode_libdir_flag_spec_GCJ=
15043 hardcode_libdir_flag_spec_ld_GCJ=
15044 hardcode_libdir_separator_GCJ=
15045 hardcode_direct_GCJ=no
15046 hardcode_minus_L_GCJ=no
15047 hardcode_shlibpath_var_GCJ=unsupported
15048 link_all_deplibs_GCJ=unknown
15049 hardcode_automatic_GCJ=no
15050 module_cmds_GCJ=
15051 module_expsym_cmds_GCJ=
15052 always_export_symbols_GCJ=no
15053 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15054 # include_expsyms should be a list of space-separated symbols to be *always*
15055 # included in the symbol list
15056 include_expsyms_GCJ=
15057 # exclude_expsyms can be an extended regexp of symbols to exclude
15058 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15059 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15060 # as well as any symbol that contains `d'.
15061 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15062 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15063 # platforms (ab)use it in PIC code, but their linkers get confused if
15064 # the symbol is explicitly referenced. Since portable code cannot
15065 # rely on this symbol name, it's probably fine to never include it in
15066 # preloaded symbol tables.
15067 extract_expsyms_cmds=
15068
15069 case $host_os in
15070 cygwin* | mingw* | pw32*)
15071 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15072 # When not using gcc, we currently assume that we are using
15073 # Microsoft Visual C++.
15074 if test "$GCC" != yes; then
15075 with_gnu_ld=no
15076 fi
15077 ;;
15078 openbsd*)
15079 with_gnu_ld=no
15080 ;;
15081 esac
15082
15083 ld_shlibs_GCJ=yes
15084 if test "$with_gnu_ld" = yes; then
15085 # If archive_cmds runs LD, not CC, wlarc should be empty
15086 wlarc='${wl}'
15087
15088 # See if GNU ld supports shared libraries.
15089 case $host_os in
15090 aix3* | aix4* | aix5*)
15091 # On AIX/PPC, the GNU linker is very broken
15092 if test "$host_cpu" != ia64; then
15093 ld_shlibs_GCJ=no
15094 cat <<EOF 1>&2
15095
15096*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15097*** to be unable to reliably create shared libraries on AIX.
15098*** Therefore, libtool is disabling shared libraries support. If you
15099*** really care for shared libraries, you may want to modify your PATH
15100*** so that a non-GNU linker is found, and then restart.
15101
15102EOF
15103 fi
15104 ;;
15105
15106 amigaos*)
15107 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)'
15108 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15109 hardcode_minus_L_GCJ=yes
15110
15111 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15112 # that the semantics of dynamic libraries on AmigaOS, at least up
15113 # to version 4, is to share data among multiple programs linked
15114 # with the same dynamic library. Since this doesn't match the
15115 # behavior of shared libraries on other platforms, we can't use
15116 # them.
15117 ld_shlibs_GCJ=no
15118 ;;
15119
15120 beos*)
15121 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15122 allow_undefined_flag_GCJ=unsupported
15123 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15124 # support --undefined. This deserves some investigation. FIXME
15125 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15126 else
15127 ld_shlibs_GCJ=no
15128 fi
15129 ;;
15130
15131 cygwin* | mingw* | pw32*)
15132 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15133 # as there is no search path for DLLs.
15134 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15135 allow_undefined_flag_GCJ=unsupported
15136 always_export_symbols_GCJ=no
15137 enable_shared_with_static_runtimes_GCJ=yes
15138 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15139
15140 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15141 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15142 # If the export-symbols file already is a .def file (1st line
15143 # is EXPORTS), use it as is; otherwise, prepend...
15144 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15145 cp $export_symbols $output_objdir/$soname.def;
15146 else
15147 echo EXPORTS > $output_objdir/$soname.def;
15148 cat $export_symbols >> $output_objdir/$soname.def;
15149 fi~
15150 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15151 else
15152 ld_shlibs=no
15153 fi
15154 ;;
15155
15156 netbsd*)
15157 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15158 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15159 wlarc=
15160 else
15161 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15162 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15163 fi
15164 ;;
15165
15166 solaris* | sysv5*)
15167 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15168 ld_shlibs_GCJ=no
15169 cat <<EOF 1>&2
15170
15171*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15172*** create shared libraries on Solaris systems. Therefore, libtool
15173*** is disabling shared libraries support. We urge you to upgrade GNU
15174*** binutils to release 2.9.1 or newer. Another option is to modify
15175*** your PATH or compiler configuration so that the native linker is
15176*** used, and then restart.
15177
15178EOF
15179 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15180 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15181 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15182 else
15183 ld_shlibs_GCJ=no
15184 fi
15185 ;;
15186
15187 sunos4*)
15188 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15189 wlarc=
15190 hardcode_direct_GCJ=yes
15191 hardcode_shlibpath_var_GCJ=no
15192 ;;
15193
15194 *)
15195 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15196 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15197 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15198 else
15199 ld_shlibs_GCJ=no
15200 fi
15201 ;;
15202 esac
15203
15204 if test "$ld_shlibs_GCJ" = yes; then
15205 runpath_var=LD_RUN_PATH
15206 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15207 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15208 # ancient GNU ld didn't support --whole-archive et. al.
15209 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15210 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15211 else
15212 whole_archive_flag_spec_GCJ=
15213 fi
15214 fi
15215 else
15216 # PORTME fill in a description of your system's linker (not GNU ld)
15217 case $host_os in
15218 aix3*)
15219 allow_undefined_flag_GCJ=unsupported
15220 always_export_symbols_GCJ=yes
15221 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'
15222 # Note: this linker hardcodes the directories in LIBPATH if there
15223 # are no directories specified by -L.
15224 hardcode_minus_L_GCJ=yes
15225 if test "$GCC" = yes && test -z "$link_static_flag"; then
15226 # Neither direct hardcoding nor static linking is supported with a
15227 # broken collect2.
15228 hardcode_direct_GCJ=unsupported
15229 fi
15230 ;;
15231
15232 aix4* | aix5*)
15233 if test "$host_cpu" = ia64; then
15234 # On IA64, the linker does run time linking by default, so we don't
15235 # have to do anything special.
15236 aix_use_runtimelinking=no
15237 exp_sym_flag='-Bexport'
15238 no_entry_flag=""
15239 else
15240 # If we're using GNU nm, then we don't want the "-C" option.
15241 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15242 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15243 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'
15244 else
15245 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'
15246 fi
15247 aix_use_runtimelinking=no
15248
15249 # Test if we are trying to use run time linking or normal
15250 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15251 # need to do runtime linking.
15252 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15253 for ld_flag in $LDFLAGS; do
15254 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15255 aix_use_runtimelinking=yes
15256 break
15257 fi
15258 done
15259 esac
15260
15261 exp_sym_flag='-bexport'
15262 no_entry_flag='-bnoentry'
15263 fi
15264
15265 # When large executables or shared objects are built, AIX ld can
15266 # have problems creating the table of contents. If linking a library
15267 # or program results in "error TOC overflow" add -mminimal-toc to
15268 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15269 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15270
15271 archive_cmds_GCJ=''
15272 hardcode_direct_GCJ=yes
15273 hardcode_libdir_separator_GCJ=':'
15274 link_all_deplibs_GCJ=yes
15275
15276 if test "$GCC" = yes; then
15277 case $host_os in aix4.012|aix4.012.*)
15278 # We only want to do this on AIX 4.2 and lower, the check
15279 # below for broken collect2 doesn't work under 4.3+
15280 collect2name=`${CC} -print-prog-name=collect2`
15281 if test -f "$collect2name" && \
15282 strings "$collect2name" | grep resolve_lib_name >/dev/null
15283 then
15284 # We have reworked collect2
15285 hardcode_direct_GCJ=yes
15286 else
15287 # We have old collect2
15288 hardcode_direct_GCJ=unsupported
15289 # It fails to find uninstalled libraries when the uninstalled
15290 # path is not listed in the libpath. Setting hardcode_minus_L
15291 # to unsupported forces relinking
15292 hardcode_minus_L_GCJ=yes
15293 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15294 hardcode_libdir_separator_GCJ=
15295 fi
15296 esac
15297 shared_flag='-shared'
15298 else
15299 # not using gcc
15300 if test "$host_cpu" = ia64; then
15301 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15302 # chokes on -Wl,-G. The following line is correct:
15303 shared_flag='-G'
15304 else
15305 if test "$aix_use_runtimelinking" = yes; then
15306 shared_flag='${wl}-G'
15307 else
15308 shared_flag='${wl}-bM:SRE'
15309 fi
15310 fi
15311 fi
15312
15313 # It seems that -bexpall does not export symbols beginning with
15314 # underscore (_), so it is better to generate a list of symbols to export.
15315 always_export_symbols_GCJ=yes
15316 if test "$aix_use_runtimelinking" = yes; then
15317 # Warning - without using the other runtime loading flags (-brtl),
15318 # -berok will link without error, but may produce a broken library.
15319 allow_undefined_flag_GCJ='-berok'
15320 # Determine the default libpath from the value encoded in an empty executable.
15321 cat >conftest.$ac_ext <<_ACEOF
15322#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000015323/* confdefs.h. */
15324_ACEOF
15325cat confdefs.h >>conftest.$ac_ext
15326cat >>conftest.$ac_ext <<_ACEOF
15327/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000015328
John Criswell47fdd832003-07-14 16:52:07 +000015329int
15330main ()
15331{
15332
15333 ;
15334 return 0;
15335}
15336_ACEOF
15337rm -f conftest.$ac_objext conftest$ac_exeext
15338if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15339 (eval $ac_link) 2>&5
15340 ac_status=$?
15341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15342 (exit $ac_status); } &&
15343 { ac_try='test -s conftest$ac_exeext'
15344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15345 (eval $ac_try) 2>&5
15346 ac_status=$?
15347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15348 (exit $ac_status); }; }; then
15349
15350aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15351}'`
15352# Check for a 64-bit object if we didn't find anything.
15353if 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; }
15354}'`; fi
15355else
15356 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015357sed 's/^/| /' conftest.$ac_ext >&5
15358
John Criswell47fdd832003-07-14 16:52:07 +000015359fi
15360rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15361if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15362
15363 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15364 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"
15365 else
15366 if test "$host_cpu" = ia64; then
15367 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
15368 allow_undefined_flag_GCJ="-z nodefs"
15369 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"
15370 else
15371 # Determine the default libpath from the value encoded in an empty executable.
15372 cat >conftest.$ac_ext <<_ACEOF
15373#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000015374/* confdefs.h. */
15375_ACEOF
15376cat confdefs.h >>conftest.$ac_ext
15377cat >>conftest.$ac_ext <<_ACEOF
15378/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000015379
John Criswell47fdd832003-07-14 16:52:07 +000015380int
15381main ()
15382{
15383
15384 ;
15385 return 0;
15386}
15387_ACEOF
15388rm -f conftest.$ac_objext conftest$ac_exeext
15389if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15390 (eval $ac_link) 2>&5
15391 ac_status=$?
15392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15393 (exit $ac_status); } &&
15394 { ac_try='test -s conftest$ac_exeext'
15395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15396 (eval $ac_try) 2>&5
15397 ac_status=$?
15398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15399 (exit $ac_status); }; }; then
15400
15401aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15402}'`
15403# Check for a 64-bit object if we didn't find anything.
15404if 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; }
15405}'`; fi
15406else
15407 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015408sed 's/^/| /' conftest.$ac_ext >&5
15409
John Criswell47fdd832003-07-14 16:52:07 +000015410fi
15411rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15412if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15413
15414 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15415 # Warning - without using the other run time loading flags,
15416 # -berok will link without error, but may produce a broken library.
15417 no_undefined_flag_GCJ=' ${wl}-bernotok'
15418 allow_undefined_flag_GCJ=' ${wl}-berok'
15419 # -bexpall does not export symbols beginning with underscore (_)
15420 always_export_symbols_GCJ=yes
15421 # Exported symbols can be pulled into shared objects from archives
15422 whole_archive_flag_spec_GCJ=' '
15423 archive_cmds_need_lc_GCJ=yes
15424 # This is similar to how AIX traditionally builds it's shared libraries.
15425 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'
15426 fi
15427 fi
15428 ;;
15429
15430 amigaos*)
15431 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)'
15432 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15433 hardcode_minus_L_GCJ=yes
15434 # see comment about different semantics on the GNU ld section
15435 ld_shlibs_GCJ=no
15436 ;;
15437
15438 bsdi4*)
15439 export_dynamic_flag_spec_GCJ=-rdynamic
15440 ;;
15441
15442 cygwin* | mingw* | pw32*)
15443 # When not using gcc, we currently assume that we are using
15444 # Microsoft Visual C++.
15445 # hardcode_libdir_flag_spec is actually meaningless, as there is
15446 # no search path for DLLs.
15447 hardcode_libdir_flag_spec_GCJ=' '
15448 allow_undefined_flag_GCJ=unsupported
15449 # Tell ltmain to make .lib files, not .a files.
15450 libext=lib
15451 # Tell ltmain to make .dll files, not .so files.
15452 shrext=".dll"
15453 # FIXME: Setting linknames here is a bad hack.
15454 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15455 # The linker will automatically build a .lib file if we build a DLL.
15456 old_archive_From_new_cmds_GCJ='true'
15457 # FIXME: Should let the user specify the lib program.
15458 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
15459 fix_srcfile_path='`cygpath -w "$srcfile"`'
15460 enable_shared_with_static_runtimes_GCJ=yes
15461 ;;
15462
15463 darwin* | rhapsody*)
15464 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
15465 archive_cmds_need_lc_GCJ=no
15466 case "$host_os" in
15467 rhapsody* | darwin1.[012])
15468 allow_undefined_flag_GCJ='-undefined suppress'
15469 ;;
15470 *) # Darwin 1.3 on
15471 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15472 ;;
15473 esac
15474 # FIXME: Relying on posixy $() will cause problems for
15475 # cross-compilation, but unfortunately the echo tests do not
15476 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
15477 # `"' quotes if we put them in here... so don't!
15478 lt_int_apple_cc_single_mod=no
15479 output_verbose_link_cmd='echo'
15480 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15481 lt_int_apple_cc_single_mod=yes
15482 fi
15483 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15484 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15485 else
15486 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'
15487 fi
15488 module_cmds_GCJ='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
15489 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15490 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15491 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}'
15492 else
15493 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}'
15494 fi
15495 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}'
15496 hardcode_direct_GCJ=no
15497 hardcode_automatic_GCJ=yes
15498 hardcode_shlibpath_var_GCJ=unsupported
15499 whole_archive_flag_spec_GCJ='-all_load $convenience'
15500 link_all_deplibs_GCJ=yes
15501 fi
15502 ;;
15503
15504 dgux*)
15505 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15506 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15507 hardcode_shlibpath_var_GCJ=no
15508 ;;
15509
15510 freebsd1*)
15511 ld_shlibs_GCJ=no
15512 ;;
15513
15514 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15515 # support. Future versions do this automatically, but an explicit c++rt0.o
15516 # does not break anything, and helps significantly (at the cost of a little
15517 # extra space).
15518 freebsd2.2*)
15519 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15520 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15521 hardcode_direct_GCJ=yes
15522 hardcode_shlibpath_var_GCJ=no
15523 ;;
15524
15525 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15526 freebsd2*)
15527 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15528 hardcode_direct_GCJ=yes
15529 hardcode_minus_L_GCJ=yes
15530 hardcode_shlibpath_var_GCJ=no
15531 ;;
15532
15533 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15534 freebsd*)
15535 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15536 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15537 hardcode_direct_GCJ=yes
15538 hardcode_shlibpath_var_GCJ=no
15539 ;;
15540
15541 hpux9*)
15542 if test "$GCC" = yes; then
15543 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'
15544 else
15545 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'
15546 fi
15547 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15548 hardcode_libdir_separator_GCJ=:
15549 hardcode_direct_GCJ=yes
15550
15551 # hardcode_minus_L: Not really in the search PATH,
15552 # but as the default location of the library.
15553 hardcode_minus_L_GCJ=yes
15554 export_dynamic_flag_spec_GCJ='${wl}-E'
15555 ;;
15556
15557 hpux10* | hpux11*)
15558 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15559 case "$host_cpu" in
15560 hppa*64*|ia64*)
15561 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15562 ;;
15563 *)
15564 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15565 ;;
15566 esac
15567 else
15568 case "$host_cpu" in
15569 hppa*64*|ia64*)
15570 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15571 ;;
15572 *)
15573 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15574 ;;
15575 esac
15576 fi
15577 if test "$with_gnu_ld" = no; then
15578 case "$host_cpu" in
15579 hppa*64*)
15580 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15581 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
15582 hardcode_libdir_separator_GCJ=:
15583 hardcode_direct_GCJ=no
15584 hardcode_shlibpath_var_GCJ=no
15585 ;;
15586 ia64*)
15587 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15588 hardcode_direct_GCJ=no
15589 hardcode_shlibpath_var_GCJ=no
15590
15591 # hardcode_minus_L: Not really in the search PATH,
15592 # but as the default location of the library.
15593 hardcode_minus_L_GCJ=yes
15594 ;;
15595 *)
15596 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15597 hardcode_libdir_separator_GCJ=:
15598 hardcode_direct_GCJ=yes
15599 export_dynamic_flag_spec_GCJ='${wl}-E'
15600
15601 # hardcode_minus_L: Not really in the search PATH,
15602 # but as the default location of the library.
15603 hardcode_minus_L_GCJ=yes
15604 ;;
15605 esac
15606 fi
15607 ;;
15608
15609 irix5* | irix6* | nonstopux*)
15610 if test "$GCC" = yes; then
15611 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'
15612 else
15613 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'
15614 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
15615 fi
15616 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15617 hardcode_libdir_separator_GCJ=:
15618 link_all_deplibs_GCJ=yes
15619 ;;
15620
15621 netbsd*)
15622 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15623 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15624 else
15625 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15626 fi
15627 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15628 hardcode_direct_GCJ=yes
15629 hardcode_shlibpath_var_GCJ=no
15630 ;;
15631
15632 newsos6)
15633 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15634 hardcode_direct_GCJ=yes
15635 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15636 hardcode_libdir_separator_GCJ=:
15637 hardcode_shlibpath_var_GCJ=no
15638 ;;
15639
15640 openbsd*)
15641 hardcode_direct_GCJ=yes
15642 hardcode_shlibpath_var_GCJ=no
15643 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15644 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15645 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15646 export_dynamic_flag_spec_GCJ='${wl}-E'
15647 else
15648 case $host_os in
15649 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15650 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15651 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15652 ;;
15653 *)
15654 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15655 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15656 ;;
15657 esac
15658 fi
15659 ;;
15660
15661 os2*)
15662 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15663 hardcode_minus_L_GCJ=yes
15664 allow_undefined_flag_GCJ=unsupported
15665 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'
15666 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15667 ;;
15668
15669 osf3*)
15670 if test "$GCC" = yes; then
15671 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
15672 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'
15673 else
15674 allow_undefined_flag_GCJ=' -expect_unresolved \*'
15675 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'
15676 fi
15677 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15678 hardcode_libdir_separator_GCJ=:
15679 ;;
15680
15681 osf4* | osf5*) # as osf3* with the addition of -msym flag
15682 if test "$GCC" = yes; then
15683 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
15684 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'
15685 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15686 else
15687 allow_undefined_flag_GCJ=' -expect_unresolved \*'
15688 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'
15689 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~
15690 $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'
15691
15692 # Both c and cxx compiler support -rpath directly
15693 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
15694 fi
15695 hardcode_libdir_separator_GCJ=:
15696 ;;
15697
15698 sco3.2v5*)
15699 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15700 hardcode_shlibpath_var_GCJ=no
15701 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
15702 runpath_var=LD_RUN_PATH
15703 hardcode_runpath_var=yes
15704 ;;
15705
15706 solaris*)
15707 no_undefined_flag_GCJ=' -z text'
15708 if test "$GCC" = yes; then
15709 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15710 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15711 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15712 else
15713 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15714 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15715 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15716 fi
15717 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15718 hardcode_shlibpath_var_GCJ=no
15719 case $host_os in
15720 solaris2.[0-5] | solaris2.[0-5].*) ;;
15721 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
15722 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
15723 esac
15724 link_all_deplibs_GCJ=yes
15725 ;;
15726
15727 sunos4*)
15728 if test "x$host_vendor" = xsequent; then
15729 # Use $CC to link under sequent, because it throws in some extra .o
15730 # files that make .init and .fini sections work.
15731 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15732 else
15733 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15734 fi
15735 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15736 hardcode_direct_GCJ=yes
15737 hardcode_minus_L_GCJ=yes
15738 hardcode_shlibpath_var_GCJ=no
15739 ;;
15740
15741 sysv4)
15742 case $host_vendor in
15743 sni)
15744 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15745 hardcode_direct_GCJ=yes # is this really true???
15746 ;;
15747 siemens)
15748 ## LD is ld it makes a PLAMLIB
15749 ## CC just makes a GrossModule.
15750 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15751 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
15752 hardcode_direct_GCJ=no
15753 ;;
15754 motorola)
15755 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15756 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
15757 ;;
15758 esac
15759 runpath_var='LD_RUN_PATH'
15760 hardcode_shlibpath_var_GCJ=no
15761 ;;
15762
15763 sysv4.3*)
15764 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15765 hardcode_shlibpath_var_GCJ=no
15766 export_dynamic_flag_spec_GCJ='-Bexport'
15767 ;;
15768
15769 sysv4*MP*)
15770 if test -d /usr/nec; then
15771 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15772 hardcode_shlibpath_var_GCJ=no
15773 runpath_var=LD_RUN_PATH
15774 hardcode_runpath_var=yes
15775 ld_shlibs_GCJ=yes
15776 fi
15777 ;;
15778
15779 sysv4.2uw2*)
15780 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15781 hardcode_direct_GCJ=yes
15782 hardcode_minus_L_GCJ=no
15783 hardcode_shlibpath_var_GCJ=no
15784 hardcode_runpath_var=yes
15785 runpath_var=LD_RUN_PATH
15786 ;;
15787
15788 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
15789 no_undefined_flag_GCJ='${wl}-z ${wl}text'
15790 if test "$GCC" = yes; then
15791 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15792 else
15793 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15794 fi
15795 runpath_var='LD_RUN_PATH'
15796 hardcode_shlibpath_var_GCJ=no
15797 ;;
15798
15799 sysv5*)
15800 no_undefined_flag_GCJ=' -z text'
15801 # $CC -shared without GNU ld will not create a library from C++
15802 # object files and a static libstdc++, better avoid it by now
15803 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15804 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15805 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15806 hardcode_libdir_flag_spec_GCJ=
15807 hardcode_shlibpath_var_GCJ=no
15808 runpath_var='LD_RUN_PATH'
15809 ;;
15810
15811 uts4*)
15812 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15813 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15814 hardcode_shlibpath_var_GCJ=no
15815 ;;
15816
15817 *)
15818 ld_shlibs_GCJ=no
15819 ;;
15820 esac
15821 fi
15822
15823echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
15824echo "${ECHO_T}$ld_shlibs_GCJ" >&6
15825test "$ld_shlibs_GCJ" = no && can_build_shared=no
15826
15827variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15828if test "$GCC" = yes; then
15829 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15830fi
15831
15832#
15833# Do we need to explicitly link libc?
15834#
15835case "x$archive_cmds_need_lc_GCJ" in
15836x|xyes)
15837 # Assume -lc should be added
15838 archive_cmds_need_lc_GCJ=yes
15839
15840 if test "$enable_shared" = yes && test "$GCC" = yes; then
15841 case $archive_cmds_GCJ in
15842 *'~'*)
15843 # FIXME: we may have to deal with multi-command sequences.
15844 ;;
15845 '$CC '*)
15846 # Test whether the compiler implicitly links with -lc since on some
15847 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15848 # to ld, don't add -lc before -lgcc.
15849 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15850echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
15851 $rm conftest*
15852 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15853
15854 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15855 (eval $ac_compile) 2>&5
15856 ac_status=$?
15857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15858 (exit $ac_status); } 2>conftest.err; then
15859 soname=conftest
15860 lib=conftest
15861 libobjs=conftest.$ac_objext
15862 deplibs=
15863 wl=$lt_prog_compiler_wl_GCJ
15864 compiler_flags=-v
15865 linker_flags=-v
15866 verstring=
15867 output_objdir=.
15868 libname=conftest
15869 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
15870 allow_undefined_flag_GCJ=
15871 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15872 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15873 ac_status=$?
15874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15875 (exit $ac_status); }
15876 then
15877 archive_cmds_need_lc_GCJ=no
15878 else
15879 archive_cmds_need_lc_GCJ=yes
15880 fi
15881 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
15882 else
15883 cat conftest.err 1>&5
15884 fi
15885 $rm conftest*
15886 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
15887echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
15888 ;;
15889 esac
15890 fi
15891 ;;
15892esac
15893
15894echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15895echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15896hardcode_action_GCJ=
15897if test -n "$hardcode_libdir_flag_spec_GCJ" || \
15898 test -n "$runpath_var GCJ" || \
15899 test "X$hardcode_automatic_GCJ"="Xyes" ; then
15900
15901 # We can hardcode non-existant directories.
15902 if test "$hardcode_direct_GCJ" != no &&
15903 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15904 # have to relink, otherwise we might link with an installed library
15905 # when we should be linking with a yet-to-be-installed one
15906 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
15907 test "$hardcode_minus_L_GCJ" != no; then
15908 # Linking always hardcodes the temporary library directory.
15909 hardcode_action_GCJ=relink
15910 else
15911 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15912 hardcode_action_GCJ=immediate
15913 fi
15914else
15915 # We cannot hardcode anything, or else we can only hardcode existing
15916 # directories.
15917 hardcode_action_GCJ=unsupported
15918fi
15919echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
15920echo "${ECHO_T}$hardcode_action_GCJ" >&6
15921
15922if test "$hardcode_action_GCJ" = relink; then
15923 # Fast installation is not supported
15924 enable_fast_install=no
15925elif test "$shlibpath_overrides_runpath" = yes ||
15926 test "$enable_shared" = no; then
15927 # Fast installation is not necessary
15928 enable_fast_install=needless
15929fi
15930
15931striplib=
15932old_striplib=
15933echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15934echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15935if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15936 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15937 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15938 echo "$as_me:$LINENO: result: yes" >&5
15939echo "${ECHO_T}yes" >&6
15940else
15941# FIXME - insert some real tests, host_os isn't really good enough
15942 case $host_os in
15943 darwin*)
15944 if test -n "$STRIP" ; then
15945 striplib="$STRIP -x"
15946 echo "$as_me:$LINENO: result: yes" >&5
15947echo "${ECHO_T}yes" >&6
15948 else
15949 echo "$as_me:$LINENO: result: no" >&5
15950echo "${ECHO_T}no" >&6
15951fi
15952 ;;
15953 *)
15954 echo "$as_me:$LINENO: result: no" >&5
15955echo "${ECHO_T}no" >&6
15956 ;;
15957 esac
15958fi
15959
15960echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15961echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
15962library_names_spec=
15963libname_spec='lib$name'
15964soname_spec=
15965shrext=".so"
15966postinstall_cmds=
15967postuninstall_cmds=
15968finish_cmds=
15969finish_eval=
15970shlibpath_var=
15971shlibpath_overrides_runpath=unknown
15972version_type=none
15973dynamic_linker="$host_os ld.so"
15974sys_lib_dlsearch_path_spec="/lib /usr/lib"
15975if test "$GCC" = yes; then
15976 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15977 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15978 # if the path contains ";" then we assume it to be the separator
15979 # otherwise default to the standard path separator (i.e. ":") - it is
15980 # assumed that no part of a normal pathname contains ";" but that should
15981 # okay in the real world where ";" in dirpaths is itself problematic.
15982 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15983 else
15984 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15985 fi
15986else
15987 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15988fi
15989need_lib_prefix=unknown
15990hardcode_into_libs=no
15991
15992# when you set need_version to no, make sure it does not cause -set_version
15993# flags to be left without arguments
15994need_version=unknown
15995
15996case $host_os in
15997aix3*)
15998 version_type=linux
15999 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16000 shlibpath_var=LIBPATH
16001
16002 # AIX 3 has no versioning support, so we append a major version to the name.
16003 soname_spec='${libname}${release}${shared_ext}$major'
16004 ;;
16005
16006aix4* | aix5*)
16007 version_type=linux
16008 need_lib_prefix=no
16009 need_version=no
16010 hardcode_into_libs=yes
16011 if test "$host_cpu" = ia64; then
16012 # AIX 5 supports IA64
16013 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16014 shlibpath_var=LD_LIBRARY_PATH
16015 else
16016 # With GCC up to 2.95.x, collect2 would create an import file
16017 # for dependence libraries. The import file would start with
16018 # the line `#! .'. This would cause the generated library to
16019 # depend on `.', always an invalid library. This was fixed in
16020 # development snapshots of GCC prior to 3.0.
16021 case $host_os in
16022 aix4 | aix4.[01] | aix4.[01].*)
16023 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16024 echo ' yes '
16025 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16026 :
16027 else
16028 can_build_shared=no
16029 fi
16030 ;;
16031 esac
16032 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16033 # soname into executable. Probably we can add versioning support to
16034 # collect2, so additional links can be useful in future.
16035 if test "$aix_use_runtimelinking" = yes; then
16036 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16037 # instead of lib<name>.a to let people know that these are not
16038 # typical AIX shared libraries.
16039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16040 else
16041 # We preserve .a as extension for shared libraries through AIX4.2
16042 # and later when we are not doing run time linking.
16043 library_names_spec='${libname}${release}.a $libname.a'
16044 soname_spec='${libname}${release}${shared_ext}$major'
16045 fi
16046 shlibpath_var=LIBPATH
16047 fi
16048 ;;
16049
16050amigaos*)
16051 library_names_spec='$libname.ixlibrary $libname.a'
16052 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16053 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'
16054 ;;
16055
16056beos*)
16057 library_names_spec='${libname}${shared_ext}'
16058 dynamic_linker="$host_os ld.so"
16059 shlibpath_var=LIBRARY_PATH
16060 ;;
16061
16062bsdi4*)
16063 version_type=linux
16064 need_version=no
16065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16066 soname_spec='${libname}${release}${shared_ext}$major'
16067 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16068 shlibpath_var=LD_LIBRARY_PATH
16069 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16070 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16071 # the default ld.so.conf also contains /usr/contrib/lib and
16072 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16073 # libtool to hard-code these into programs
16074 ;;
16075
16076cygwin* | mingw* | pw32*)
16077 version_type=windows
16078 shrext=".dll"
16079 need_version=no
16080 need_lib_prefix=no
16081
16082 case $GCC,$host_os in
16083 yes,cygwin* | yes,mingw* | yes,pw32*)
16084 library_names_spec='$libname.dll.a'
16085 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16086 postinstall_cmds='base_file=`basename \${file}`~
16087 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16088 dldir=$destdir/`dirname \$dlpath`~
16089 test -d \$dldir || mkdir -p \$dldir~
16090 $install_prog $dir/$dlname \$dldir/$dlname'
16091 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16092 dlpath=$dir/\$dldll~
16093 $rm \$dlpath'
16094 shlibpath_overrides_runpath=yes
16095
16096 case $host_os in
16097 cygwin*)
16098 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16099 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16100 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
16101 ;;
16102 mingw*)
16103 # MinGW DLLs use traditional 'lib' prefix
16104 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16105 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16106 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16107 # It is most probably a Windows format PATH printed by
16108 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16109 # path with ; separators, and with drive letters. We can handle the
16110 # drive letters (cygwin fileutils understands them), so leave them,
16111 # especially as we might pass files found there to a mingw objdump,
16112 # which wouldn't understand a cygwinified path. Ahh.
16113 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16114 else
16115 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16116 fi
16117 ;;
16118 pw32*)
16119 # pw32 DLLs use 'pw' prefix rather than 'lib'
16120 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16121 ;;
16122 esac
16123 ;;
16124
16125 *)
16126 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16127 ;;
16128 esac
16129 dynamic_linker='Win32 ld.exe'
16130 # FIXME: first we should search . and the directory the executable is in
16131 shlibpath_var=PATH
16132 ;;
16133
16134darwin* | rhapsody*)
16135 dynamic_linker="$host_os dyld"
16136 version_type=darwin
16137 need_lib_prefix=no
16138 need_version=no
16139 # FIXME: Relying on posixy $() will cause problems for
16140 # cross-compilation, but unfortunately the echo tests do not
16141 # yet detect zsh echo's removal of \ escapes.
16142 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16143 soname_spec='${libname}${release}${major}$shared_ext'
16144 shlibpath_overrides_runpath=yes
16145 shlibpath_var=DYLD_LIBRARY_PATH
16146 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
16147 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16148 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
16149 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"`
16150 fi
16151 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16152 ;;
16153
16154dgux*)
16155 version_type=linux
16156 need_lib_prefix=no
16157 need_version=no
16158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16159 soname_spec='${libname}${release}${shared_ext}$major'
16160 shlibpath_var=LD_LIBRARY_PATH
16161 ;;
16162
16163freebsd1*)
16164 dynamic_linker=no
16165 ;;
16166
16167freebsd*)
16168 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16169 version_type=freebsd-$objformat
16170 case $version_type in
16171 freebsd-elf*)
16172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16173 need_version=no
16174 need_lib_prefix=no
16175 ;;
16176 freebsd-*)
16177 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16178 need_version=yes
16179 ;;
16180 esac
16181 shlibpath_var=LD_LIBRARY_PATH
16182 case $host_os in
16183 freebsd2*)
16184 shlibpath_overrides_runpath=yes
16185 ;;
16186 freebsd3.01* | freebsdelf3.01*)
16187 shlibpath_overrides_runpath=yes
16188 hardcode_into_libs=yes
16189 ;;
16190 *) # from 3.2 on
16191 shlibpath_overrides_runpath=no
16192 hardcode_into_libs=yes
16193 ;;
16194 esac
16195 ;;
16196
16197gnu*)
16198 version_type=linux
16199 need_lib_prefix=no
16200 need_version=no
16201 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16202 soname_spec='${libname}${release}${shared_ext}$major'
16203 shlibpath_var=LD_LIBRARY_PATH
16204 hardcode_into_libs=yes
16205 ;;
16206
16207hpux9* | hpux10* | hpux11*)
16208 # Give a soname corresponding to the major version so that dld.sl refuses to
16209 # link against other versions.
16210 version_type=sunos
16211 need_lib_prefix=no
16212 need_version=no
16213 case "$host_cpu" in
16214 ia64*)
16215 shrext='.so'
16216 hardcode_into_libs=yes
16217 dynamic_linker="$host_os dld.so"
16218 shlibpath_var=LD_LIBRARY_PATH
16219 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16221 soname_spec='${libname}${release}${shared_ext}$major'
16222 if test "X$HPUX_IA64_MODE" = X32; then
16223 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16224 else
16225 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16226 fi
16227 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16228 ;;
16229 hppa*64*)
16230 shrext='.sl'
16231 hardcode_into_libs=yes
16232 dynamic_linker="$host_os dld.sl"
16233 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16234 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16236 soname_spec='${libname}${release}${shared_ext}$major'
16237 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16238 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16239 ;;
16240 *)
16241 shrext='.sl'
16242 dynamic_linker="$host_os dld.sl"
16243 shlibpath_var=SHLIB_PATH
16244 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16246 soname_spec='${libname}${release}${shared_ext}$major'
16247 ;;
16248 esac
16249 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16250 postinstall_cmds='chmod 555 $lib'
16251 ;;
16252
16253irix5* | irix6* | nonstopux*)
16254 case $host_os in
16255 nonstopux*) version_type=nonstopux ;;
16256 *)
16257 if test "$lt_cv_prog_gnu_ld" = yes; then
16258 version_type=linux
16259 else
16260 version_type=irix
16261 fi ;;
16262 esac
16263 need_lib_prefix=no
16264 need_version=no
16265 soname_spec='${libname}${release}${shared_ext}$major'
16266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16267 case $host_os in
16268 irix5* | nonstopux*)
16269 libsuff= shlibsuff=
16270 ;;
16271 *)
16272 case $LD in # libtool.m4 will add one of these switches to LD
16273 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16274 libsuff= shlibsuff= libmagic=32-bit;;
16275 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16276 libsuff=32 shlibsuff=N32 libmagic=N32;;
16277 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16278 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16279 *) libsuff= shlibsuff= libmagic=never-match;;
16280 esac
16281 ;;
16282 esac
16283 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16284 shlibpath_overrides_runpath=no
16285 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16286 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16287 hardcode_into_libs=yes
16288 ;;
16289
16290# No shared lib support for Linux oldld, aout, or coff.
16291linux*oldld* | linux*aout* | linux*coff*)
16292 dynamic_linker=no
16293 ;;
16294
16295# This must be Linux ELF.
16296linux*)
16297 version_type=linux
16298 need_lib_prefix=no
16299 need_version=no
16300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16301 soname_spec='${libname}${release}${shared_ext}$major'
16302 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16303 shlibpath_var=LD_LIBRARY_PATH
16304 shlibpath_overrides_runpath=no
16305 # This implies no fast_install, which is unacceptable.
16306 # Some rework will be needed to allow for fast_install
16307 # before this can be enabled.
16308 hardcode_into_libs=yes
16309
16310 # We used to test for /lib/ld.so.1 and disable shared libraries on
16311 # powerpc, because MkLinux only supported shared libraries with the
16312 # GNU dynamic linker. Since this was broken with cross compilers,
16313 # most powerpc-linux boxes support dynamic linking these days and
16314 # people can always --disable-shared, the test was removed, and we
16315 # assume the GNU/Linux dynamic linker is in use.
16316 dynamic_linker='GNU/Linux ld.so'
16317 ;;
16318
16319netbsd*)
16320 version_type=sunos
16321 need_lib_prefix=no
16322 need_version=no
16323 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16325 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16326 dynamic_linker='NetBSD (a.out) ld.so'
16327 else
16328 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
16329 soname_spec='${libname}${release}${shared_ext}$major'
16330 dynamic_linker='NetBSD ld.elf_so'
16331 fi
16332 shlibpath_var=LD_LIBRARY_PATH
16333 shlibpath_overrides_runpath=yes
16334 hardcode_into_libs=yes
16335 ;;
16336
16337newsos6)
16338 version_type=linux
16339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16340 shlibpath_var=LD_LIBRARY_PATH
16341 shlibpath_overrides_runpath=yes
16342 ;;
16343
16344nto-qnx)
16345 version_type=linux
16346 need_lib_prefix=no
16347 need_version=no
16348 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16349 soname_spec='${libname}${release}${shared_ext}$major'
16350 shlibpath_var=LD_LIBRARY_PATH
16351 shlibpath_overrides_runpath=yes
16352 ;;
16353
16354openbsd*)
16355 version_type=sunos
16356 need_lib_prefix=no
16357 need_version=no
16358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16359 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16360 shlibpath_var=LD_LIBRARY_PATH
16361 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16362 case $host_os in
16363 openbsd2.[89] | openbsd2.[89].*)
16364 shlibpath_overrides_runpath=no
16365 ;;
16366 *)
16367 shlibpath_overrides_runpath=yes
16368 ;;
16369 esac
16370 else
16371 shlibpath_overrides_runpath=yes
16372 fi
16373 ;;
16374
16375os2*)
16376 libname_spec='$name'
16377 shrext=".dll"
16378 need_lib_prefix=no
16379 library_names_spec='$libname${shared_ext} $libname.a'
16380 dynamic_linker='OS/2 ld.exe'
16381 shlibpath_var=LIBPATH
16382 ;;
16383
16384osf3* | osf4* | osf5*)
16385 version_type=osf
16386 need_lib_prefix=no
16387 need_version=no
16388 soname_spec='${libname}${release}${shared_ext}$major'
16389 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16390 shlibpath_var=LD_LIBRARY_PATH
16391 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16392 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16393 ;;
16394
16395sco3.2v5*)
16396 version_type=osf
16397 soname_spec='${libname}${release}${shared_ext}$major'
16398 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16399 shlibpath_var=LD_LIBRARY_PATH
16400 ;;
16401
16402solaris*)
16403 version_type=linux
16404 need_lib_prefix=no
16405 need_version=no
16406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16407 soname_spec='${libname}${release}${shared_ext}$major'
16408 shlibpath_var=LD_LIBRARY_PATH
16409 shlibpath_overrides_runpath=yes
16410 hardcode_into_libs=yes
16411 # ldd complains unless libraries are executable
16412 postinstall_cmds='chmod +x $lib'
16413 ;;
16414
16415sunos4*)
16416 version_type=sunos
16417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16418 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16419 shlibpath_var=LD_LIBRARY_PATH
16420 shlibpath_overrides_runpath=yes
16421 if test "$with_gnu_ld" = yes; then
16422 need_lib_prefix=no
16423 fi
16424 need_version=yes
16425 ;;
16426
16427sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16428 version_type=linux
16429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16430 soname_spec='${libname}${release}${shared_ext}$major'
16431 shlibpath_var=LD_LIBRARY_PATH
16432 case $host_vendor in
16433 sni)
16434 shlibpath_overrides_runpath=no
16435 need_lib_prefix=no
16436 export_dynamic_flag_spec='${wl}-Blargedynsym'
16437 runpath_var=LD_RUN_PATH
16438 ;;
16439 siemens)
16440 need_lib_prefix=no
16441 ;;
16442 motorola)
16443 need_lib_prefix=no
16444 need_version=no
16445 shlibpath_overrides_runpath=no
16446 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16447 ;;
16448 esac
16449 ;;
16450
16451sysv4*MP*)
16452 if test -d /usr/nec ;then
16453 version_type=linux
16454 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16455 soname_spec='$libname${shared_ext}.$major'
16456 shlibpath_var=LD_LIBRARY_PATH
16457 fi
16458 ;;
16459
16460uts4*)
16461 version_type=linux
16462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16463 soname_spec='${libname}${release}${shared_ext}$major'
16464 shlibpath_var=LD_LIBRARY_PATH
16465 ;;
16466
16467*)
16468 dynamic_linker=no
16469 ;;
16470esac
16471echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16472echo "${ECHO_T}$dynamic_linker" >&6
16473test "$dynamic_linker" = no && can_build_shared=no
16474
16475if test "x$enable_dlopen" != xyes; then
16476 enable_dlopen=unknown
16477 enable_dlopen_self=unknown
16478 enable_dlopen_self_static=unknown
16479else
16480 lt_cv_dlopen=no
16481 lt_cv_dlopen_libs=
16482
16483 case $host_os in
16484 beos*)
16485 lt_cv_dlopen="load_add_on"
16486 lt_cv_dlopen_libs=
16487 lt_cv_dlopen_self=yes
16488 ;;
16489
16490 mingw* | pw32*)
16491 lt_cv_dlopen="LoadLibrary"
16492 lt_cv_dlopen_libs=
16493 ;;
16494
16495 cygwin*)
16496 lt_cv_dlopen="dlopen"
16497 lt_cv_dlopen_libs=
16498 ;;
16499
16500 darwin*)
16501 # if libdl is installed we need to link against it
16502 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16503echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16504if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16505 echo $ECHO_N "(cached) $ECHO_C" >&6
16506else
16507 ac_check_lib_save_LIBS=$LIBS
16508LIBS="-ldl $LIBS"
16509cat >conftest.$ac_ext <<_ACEOF
16510#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000016511/* confdefs.h. */
16512_ACEOF
16513cat confdefs.h >>conftest.$ac_ext
16514cat >>conftest.$ac_ext <<_ACEOF
16515/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016516
16517/* Override any gcc2 internal prototype to avoid an error. */
16518#ifdef __cplusplus
16519extern "C"
16520#endif
16521/* We use char because int might match the return type of a gcc2
16522 builtin and then its argument prototype would still apply. */
16523char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000016524int
16525main ()
16526{
16527dlopen ();
16528 ;
16529 return 0;
16530}
16531_ACEOF
16532rm -f conftest.$ac_objext conftest$ac_exeext
16533if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16534 (eval $ac_link) 2>&5
16535 ac_status=$?
16536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16537 (exit $ac_status); } &&
16538 { ac_try='test -s conftest$ac_exeext'
16539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16540 (eval $ac_try) 2>&5
16541 ac_status=$?
16542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16543 (exit $ac_status); }; }; then
16544 ac_cv_lib_dl_dlopen=yes
16545else
16546 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016547sed 's/^/| /' conftest.$ac_ext >&5
16548
John Criswell47fdd832003-07-14 16:52:07 +000016549ac_cv_lib_dl_dlopen=no
16550fi
16551rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16552LIBS=$ac_check_lib_save_LIBS
16553fi
16554echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16555echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16556if test $ac_cv_lib_dl_dlopen = yes; then
16557 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16558else
16559
16560 lt_cv_dlopen="dyld"
16561 lt_cv_dlopen_libs=
16562 lt_cv_dlopen_self=yes
16563
16564fi
16565
16566 ;;
16567
16568 *)
16569 echo "$as_me:$LINENO: checking for shl_load" >&5
16570echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
16571if test "${ac_cv_func_shl_load+set}" = set; then
16572 echo $ECHO_N "(cached) $ECHO_C" >&6
16573else
16574 cat >conftest.$ac_ext <<_ACEOF
16575#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000016576/* confdefs.h. */
16577_ACEOF
16578cat confdefs.h >>conftest.$ac_ext
16579cat >>conftest.$ac_ext <<_ACEOF
16580/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016581/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000016582 which can conflict with char shl_load (); below.
16583 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16584 <limits.h> exists even on freestanding compilers. */
16585#ifdef __STDC__
16586# include <limits.h>
16587#else
16588# include <assert.h>
16589#endif
John Criswell47fdd832003-07-14 16:52:07 +000016590/* Override any gcc2 internal prototype to avoid an error. */
16591#ifdef __cplusplus
16592extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000016593{
John Criswell47fdd832003-07-14 16:52:07 +000016594#endif
16595/* We use char because int might match the return type of a gcc2
16596 builtin and then its argument prototype would still apply. */
16597char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000016598/* The GNU C library defines this for functions which it implements
16599 to always fail with ENOSYS. Some functions are actually named
16600 something starting with __ and the normal name is an alias. */
16601#if defined (__stub_shl_load) || defined (__stub___shl_load)
16602choke me
16603#else
John Criswell0c38eaf2003-09-10 15:17:25 +000016604char (*f) () = shl_load;
16605#endif
16606#ifdef __cplusplus
16607}
John Criswell47fdd832003-07-14 16:52:07 +000016608#endif
16609
John Criswell0c38eaf2003-09-10 15:17:25 +000016610int
16611main ()
16612{
16613return f != shl_load;
John Criswell47fdd832003-07-14 16:52:07 +000016614 ;
16615 return 0;
16616}
16617_ACEOF
16618rm -f conftest.$ac_objext conftest$ac_exeext
16619if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16620 (eval $ac_link) 2>&5
16621 ac_status=$?
16622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16623 (exit $ac_status); } &&
16624 { ac_try='test -s conftest$ac_exeext'
16625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16626 (eval $ac_try) 2>&5
16627 ac_status=$?
16628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16629 (exit $ac_status); }; }; then
16630 ac_cv_func_shl_load=yes
16631else
16632 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016633sed 's/^/| /' conftest.$ac_ext >&5
16634
John Criswell47fdd832003-07-14 16:52:07 +000016635ac_cv_func_shl_load=no
16636fi
16637rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16638fi
16639echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16640echo "${ECHO_T}$ac_cv_func_shl_load" >&6
16641if test $ac_cv_func_shl_load = yes; then
16642 lt_cv_dlopen="shl_load"
16643else
16644 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16645echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
16646if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16647 echo $ECHO_N "(cached) $ECHO_C" >&6
16648else
16649 ac_check_lib_save_LIBS=$LIBS
16650LIBS="-ldld $LIBS"
16651cat >conftest.$ac_ext <<_ACEOF
16652#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000016653/* confdefs.h. */
16654_ACEOF
16655cat confdefs.h >>conftest.$ac_ext
16656cat >>conftest.$ac_ext <<_ACEOF
16657/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016658
16659/* Override any gcc2 internal prototype to avoid an error. */
16660#ifdef __cplusplus
16661extern "C"
16662#endif
16663/* We use char because int might match the return type of a gcc2
16664 builtin and then its argument prototype would still apply. */
16665char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000016666int
16667main ()
16668{
16669shl_load ();
16670 ;
16671 return 0;
16672}
16673_ACEOF
16674rm -f conftest.$ac_objext conftest$ac_exeext
16675if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16676 (eval $ac_link) 2>&5
16677 ac_status=$?
16678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16679 (exit $ac_status); } &&
16680 { ac_try='test -s conftest$ac_exeext'
16681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16682 (eval $ac_try) 2>&5
16683 ac_status=$?
16684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16685 (exit $ac_status); }; }; then
16686 ac_cv_lib_dld_shl_load=yes
16687else
16688 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016689sed 's/^/| /' conftest.$ac_ext >&5
16690
John Criswell47fdd832003-07-14 16:52:07 +000016691ac_cv_lib_dld_shl_load=no
16692fi
16693rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16694LIBS=$ac_check_lib_save_LIBS
16695fi
16696echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16697echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
16698if test $ac_cv_lib_dld_shl_load = yes; then
16699 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16700else
16701 echo "$as_me:$LINENO: checking for dlopen" >&5
16702echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
16703if test "${ac_cv_func_dlopen+set}" = set; then
16704 echo $ECHO_N "(cached) $ECHO_C" >&6
16705else
16706 cat >conftest.$ac_ext <<_ACEOF
16707#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000016708/* confdefs.h. */
16709_ACEOF
16710cat confdefs.h >>conftest.$ac_ext
16711cat >>conftest.$ac_ext <<_ACEOF
16712/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016713/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000016714 which can conflict with char dlopen (); below.
16715 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16716 <limits.h> exists even on freestanding compilers. */
16717#ifdef __STDC__
16718# include <limits.h>
16719#else
16720# include <assert.h>
16721#endif
John Criswell47fdd832003-07-14 16:52:07 +000016722/* Override any gcc2 internal prototype to avoid an error. */
16723#ifdef __cplusplus
16724extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000016725{
John Criswell47fdd832003-07-14 16:52:07 +000016726#endif
16727/* We use char because int might match the return type of a gcc2
16728 builtin and then its argument prototype would still apply. */
16729char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000016730/* The GNU C library defines this for functions which it implements
16731 to always fail with ENOSYS. Some functions are actually named
16732 something starting with __ and the normal name is an alias. */
16733#if defined (__stub_dlopen) || defined (__stub___dlopen)
16734choke me
16735#else
John Criswell0c38eaf2003-09-10 15:17:25 +000016736char (*f) () = dlopen;
16737#endif
16738#ifdef __cplusplus
16739}
John Criswell47fdd832003-07-14 16:52:07 +000016740#endif
16741
John Criswell0c38eaf2003-09-10 15:17:25 +000016742int
16743main ()
16744{
16745return f != dlopen;
John Criswell47fdd832003-07-14 16:52:07 +000016746 ;
16747 return 0;
16748}
16749_ACEOF
16750rm -f conftest.$ac_objext conftest$ac_exeext
16751if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16752 (eval $ac_link) 2>&5
16753 ac_status=$?
16754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16755 (exit $ac_status); } &&
16756 { ac_try='test -s conftest$ac_exeext'
16757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16758 (eval $ac_try) 2>&5
16759 ac_status=$?
16760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16761 (exit $ac_status); }; }; then
16762 ac_cv_func_dlopen=yes
16763else
16764 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016765sed 's/^/| /' conftest.$ac_ext >&5
16766
John Criswell47fdd832003-07-14 16:52:07 +000016767ac_cv_func_dlopen=no
16768fi
16769rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16770fi
16771echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16772echo "${ECHO_T}$ac_cv_func_dlopen" >&6
16773if test $ac_cv_func_dlopen = yes; then
16774 lt_cv_dlopen="dlopen"
16775else
16776 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16777echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16778if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16779 echo $ECHO_N "(cached) $ECHO_C" >&6
16780else
16781 ac_check_lib_save_LIBS=$LIBS
16782LIBS="-ldl $LIBS"
16783cat >conftest.$ac_ext <<_ACEOF
16784#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000016785/* confdefs.h. */
16786_ACEOF
16787cat confdefs.h >>conftest.$ac_ext
16788cat >>conftest.$ac_ext <<_ACEOF
16789/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016790
16791/* Override any gcc2 internal prototype to avoid an error. */
16792#ifdef __cplusplus
16793extern "C"
16794#endif
16795/* We use char because int might match the return type of a gcc2
16796 builtin and then its argument prototype would still apply. */
16797char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000016798int
16799main ()
16800{
16801dlopen ();
16802 ;
16803 return 0;
16804}
16805_ACEOF
16806rm -f conftest.$ac_objext conftest$ac_exeext
16807if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16808 (eval $ac_link) 2>&5
16809 ac_status=$?
16810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16811 (exit $ac_status); } &&
16812 { ac_try='test -s conftest$ac_exeext'
16813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16814 (eval $ac_try) 2>&5
16815 ac_status=$?
16816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16817 (exit $ac_status); }; }; then
16818 ac_cv_lib_dl_dlopen=yes
16819else
16820 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016821sed 's/^/| /' conftest.$ac_ext >&5
16822
John Criswell47fdd832003-07-14 16:52:07 +000016823ac_cv_lib_dl_dlopen=no
16824fi
16825rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16826LIBS=$ac_check_lib_save_LIBS
16827fi
16828echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16829echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16830if test $ac_cv_lib_dl_dlopen = yes; then
16831 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16832else
16833 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
16834echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
16835if test "${ac_cv_lib_svld_dlopen+set}" = set; then
16836 echo $ECHO_N "(cached) $ECHO_C" >&6
16837else
16838 ac_check_lib_save_LIBS=$LIBS
16839LIBS="-lsvld $LIBS"
16840cat >conftest.$ac_ext <<_ACEOF
16841#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000016842/* confdefs.h. */
16843_ACEOF
16844cat confdefs.h >>conftest.$ac_ext
16845cat >>conftest.$ac_ext <<_ACEOF
16846/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016847
16848/* Override any gcc2 internal prototype to avoid an error. */
16849#ifdef __cplusplus
16850extern "C"
16851#endif
16852/* We use char because int might match the return type of a gcc2
16853 builtin and then its argument prototype would still apply. */
16854char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000016855int
16856main ()
16857{
16858dlopen ();
16859 ;
16860 return 0;
16861}
16862_ACEOF
16863rm -f conftest.$ac_objext conftest$ac_exeext
16864if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16865 (eval $ac_link) 2>&5
16866 ac_status=$?
16867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16868 (exit $ac_status); } &&
16869 { ac_try='test -s conftest$ac_exeext'
16870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16871 (eval $ac_try) 2>&5
16872 ac_status=$?
16873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16874 (exit $ac_status); }; }; then
16875 ac_cv_lib_svld_dlopen=yes
16876else
16877 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016878sed 's/^/| /' conftest.$ac_ext >&5
16879
John Criswell47fdd832003-07-14 16:52:07 +000016880ac_cv_lib_svld_dlopen=no
16881fi
16882rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16883LIBS=$ac_check_lib_save_LIBS
16884fi
16885echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
16886echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
16887if test $ac_cv_lib_svld_dlopen = yes; then
16888 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16889else
16890 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
16891echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
16892if test "${ac_cv_lib_dld_dld_link+set}" = set; then
16893 echo $ECHO_N "(cached) $ECHO_C" >&6
16894else
16895 ac_check_lib_save_LIBS=$LIBS
16896LIBS="-ldld $LIBS"
16897cat >conftest.$ac_ext <<_ACEOF
16898#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000016899/* confdefs.h. */
16900_ACEOF
16901cat confdefs.h >>conftest.$ac_ext
16902cat >>conftest.$ac_ext <<_ACEOF
16903/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016904
16905/* Override any gcc2 internal prototype to avoid an error. */
16906#ifdef __cplusplus
16907extern "C"
16908#endif
16909/* We use char because int might match the return type of a gcc2
16910 builtin and then its argument prototype would still apply. */
16911char dld_link ();
John Criswell47fdd832003-07-14 16:52:07 +000016912int
16913main ()
16914{
16915dld_link ();
16916 ;
16917 return 0;
16918}
16919_ACEOF
16920rm -f conftest.$ac_objext conftest$ac_exeext
16921if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16922 (eval $ac_link) 2>&5
16923 ac_status=$?
16924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16925 (exit $ac_status); } &&
16926 { ac_try='test -s conftest$ac_exeext'
16927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16928 (eval $ac_try) 2>&5
16929 ac_status=$?
16930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16931 (exit $ac_status); }; }; then
16932 ac_cv_lib_dld_dld_link=yes
16933else
16934 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016935sed 's/^/| /' conftest.$ac_ext >&5
16936
John Criswell47fdd832003-07-14 16:52:07 +000016937ac_cv_lib_dld_dld_link=no
16938fi
16939rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16940LIBS=$ac_check_lib_save_LIBS
16941fi
16942echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
16943echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
16944if test $ac_cv_lib_dld_dld_link = yes; then
16945 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
16946fi
16947
16948
16949fi
16950
16951
16952fi
16953
16954
16955fi
16956
16957
16958fi
16959
16960
16961fi
16962
16963 ;;
16964 esac
16965
16966 if test "x$lt_cv_dlopen" != xno; then
16967 enable_dlopen=yes
16968 else
16969 enable_dlopen=no
16970 fi
16971
16972 case $lt_cv_dlopen in
16973 dlopen)
16974 save_CPPFLAGS="$CPPFLAGS"
16975 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16976
16977 save_LDFLAGS="$LDFLAGS"
16978 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
16979
16980 save_LIBS="$LIBS"
16981 LIBS="$lt_cv_dlopen_libs $LIBS"
16982
16983 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
16984echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
16985if test "${lt_cv_dlopen_self+set}" = set; then
16986 echo $ECHO_N "(cached) $ECHO_C" >&6
16987else
16988 if test "$cross_compiling" = yes; then :
16989 lt_cv_dlopen_self=cross
16990else
16991 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16992 lt_status=$lt_dlunknown
16993 cat > conftest.$ac_ext <<EOF
John Criswelldc76e322004-07-23 15:40:57 +000016994#line 16994 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000016995#include "confdefs.h"
16996
16997#if HAVE_DLFCN_H
16998#include <dlfcn.h>
16999#endif
17000
17001#include <stdio.h>
17002
17003#ifdef RTLD_GLOBAL
17004# define LT_DLGLOBAL RTLD_GLOBAL
17005#else
17006# ifdef DL_GLOBAL
17007# define LT_DLGLOBAL DL_GLOBAL
17008# else
17009# define LT_DLGLOBAL 0
17010# endif
17011#endif
17012
17013/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17014 find out it does not work in some platform. */
17015#ifndef LT_DLLAZY_OR_NOW
17016# ifdef RTLD_LAZY
17017# define LT_DLLAZY_OR_NOW RTLD_LAZY
17018# else
17019# ifdef DL_LAZY
17020# define LT_DLLAZY_OR_NOW DL_LAZY
17021# else
17022# ifdef RTLD_NOW
17023# define LT_DLLAZY_OR_NOW RTLD_NOW
17024# else
17025# ifdef DL_NOW
17026# define LT_DLLAZY_OR_NOW DL_NOW
17027# else
17028# define LT_DLLAZY_OR_NOW 0
17029# endif
17030# endif
17031# endif
17032# endif
17033#endif
17034
17035#ifdef __cplusplus
17036extern "C" void exit (int);
17037#endif
17038
17039void fnord() { int i=42;}
17040int main ()
17041{
17042 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17043 int status = $lt_dlunknown;
17044
17045 if (self)
17046 {
17047 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17048 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17049 /* dlclose (self); */
17050 }
17051
17052 exit (status);
17053}
17054EOF
17055 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17056 (eval $ac_link) 2>&5
17057 ac_status=$?
17058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17059 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17060 (./conftest; exit; ) 2>/dev/null
17061 lt_status=$?
17062 case x$lt_status in
17063 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17064 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17065 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17066 esac
17067 else :
17068 # compilation failed
17069 lt_cv_dlopen_self=no
17070 fi
17071fi
17072rm -fr conftest*
17073
17074
17075fi
17076echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17077echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17078
17079 if test "x$lt_cv_dlopen_self" = xyes; then
17080 LDFLAGS="$LDFLAGS $link_static_flag"
17081 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17082echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17083if test "${lt_cv_dlopen_self_static+set}" = set; then
17084 echo $ECHO_N "(cached) $ECHO_C" >&6
17085else
17086 if test "$cross_compiling" = yes; then :
17087 lt_cv_dlopen_self_static=cross
17088else
17089 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17090 lt_status=$lt_dlunknown
17091 cat > conftest.$ac_ext <<EOF
John Criswelldc76e322004-07-23 15:40:57 +000017092#line 17092 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000017093#include "confdefs.h"
17094
17095#if HAVE_DLFCN_H
17096#include <dlfcn.h>
17097#endif
17098
17099#include <stdio.h>
17100
17101#ifdef RTLD_GLOBAL
17102# define LT_DLGLOBAL RTLD_GLOBAL
17103#else
17104# ifdef DL_GLOBAL
17105# define LT_DLGLOBAL DL_GLOBAL
17106# else
17107# define LT_DLGLOBAL 0
17108# endif
17109#endif
17110
17111/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17112 find out it does not work in some platform. */
17113#ifndef LT_DLLAZY_OR_NOW
17114# ifdef RTLD_LAZY
17115# define LT_DLLAZY_OR_NOW RTLD_LAZY
17116# else
17117# ifdef DL_LAZY
17118# define LT_DLLAZY_OR_NOW DL_LAZY
17119# else
17120# ifdef RTLD_NOW
17121# define LT_DLLAZY_OR_NOW RTLD_NOW
17122# else
17123# ifdef DL_NOW
17124# define LT_DLLAZY_OR_NOW DL_NOW
17125# else
17126# define LT_DLLAZY_OR_NOW 0
17127# endif
17128# endif
17129# endif
17130# endif
17131#endif
17132
17133#ifdef __cplusplus
17134extern "C" void exit (int);
17135#endif
17136
17137void fnord() { int i=42;}
17138int main ()
17139{
17140 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17141 int status = $lt_dlunknown;
17142
17143 if (self)
17144 {
17145 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17146 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17147 /* dlclose (self); */
17148 }
17149
17150 exit (status);
17151}
17152EOF
17153 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17154 (eval $ac_link) 2>&5
17155 ac_status=$?
17156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17157 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17158 (./conftest; exit; ) 2>/dev/null
17159 lt_status=$?
17160 case x$lt_status in
17161 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17162 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17163 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17164 esac
17165 else :
17166 # compilation failed
17167 lt_cv_dlopen_self_static=no
17168 fi
17169fi
17170rm -fr conftest*
17171
17172
17173fi
17174echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17175echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17176 fi
17177
17178 CPPFLAGS="$save_CPPFLAGS"
17179 LDFLAGS="$save_LDFLAGS"
17180 LIBS="$save_LIBS"
17181 ;;
17182 esac
17183
17184 case $lt_cv_dlopen_self in
17185 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17186 *) enable_dlopen_self=unknown ;;
17187 esac
17188
17189 case $lt_cv_dlopen_self_static in
17190 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17191 *) enable_dlopen_self_static=unknown ;;
17192 esac
17193fi
17194
17195
17196# The else clause should only fire when bootstrapping the
17197# libtool distribution, otherwise you forgot to ship ltmain.sh
17198# with your package, and you will get complaints that there are
17199# no rules to generate ltmain.sh.
17200if test -f "$ltmain"; then
17201 # See if we are running on zsh, and set the options which allow our commands through
17202 # without removal of \ escapes.
17203 if test -n "${ZSH_VERSION+set}" ; then
17204 setopt NO_GLOB_SUBST
17205 fi
17206 # Now quote all the things that may contain metacharacters while being
17207 # careful not to overquote the AC_SUBSTed values. We take copies of the
17208 # variables and quote the copies for generation of the libtool script.
17209 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17210 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17211 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17212 deplibs_check_method reload_flag reload_cmds need_locks \
17213 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17214 lt_cv_sys_global_symbol_to_c_name_address \
17215 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17216 old_postinstall_cmds old_postuninstall_cmds \
17217 compiler_GCJ \
17218 CC_GCJ \
17219 LD_GCJ \
17220 lt_prog_compiler_wl_GCJ \
17221 lt_prog_compiler_pic_GCJ \
17222 lt_prog_compiler_static_GCJ \
17223 lt_prog_compiler_no_builtin_flag_GCJ \
17224 export_dynamic_flag_spec_GCJ \
17225 thread_safe_flag_spec_GCJ \
17226 whole_archive_flag_spec_GCJ \
17227 enable_shared_with_static_runtimes_GCJ \
17228 old_archive_cmds_GCJ \
17229 old_archive_from_new_cmds_GCJ \
17230 predep_objects_GCJ \
17231 postdep_objects_GCJ \
17232 predeps_GCJ \
17233 postdeps_GCJ \
17234 compiler_lib_search_path_GCJ \
17235 archive_cmds_GCJ \
17236 archive_expsym_cmds_GCJ \
17237 postinstall_cmds_GCJ \
17238 postuninstall_cmds_GCJ \
17239 old_archive_from_expsyms_cmds_GCJ \
17240 allow_undefined_flag_GCJ \
17241 no_undefined_flag_GCJ \
17242 export_symbols_cmds_GCJ \
17243 hardcode_libdir_flag_spec_GCJ \
17244 hardcode_libdir_flag_spec_ld_GCJ \
17245 hardcode_libdir_separator_GCJ \
17246 hardcode_automatic_GCJ \
17247 module_cmds_GCJ \
17248 module_expsym_cmds_GCJ \
17249 lt_cv_prog_compiler_c_o_GCJ \
17250 exclude_expsyms_GCJ \
17251 include_expsyms_GCJ; do
17252
17253 case $var in
17254 old_archive_cmds_GCJ | \
17255 old_archive_from_new_cmds_GCJ | \
17256 archive_cmds_GCJ | \
17257 archive_expsym_cmds_GCJ | \
17258 module_cmds_GCJ | \
17259 module_expsym_cmds_GCJ | \
17260 old_archive_from_expsyms_cmds_GCJ | \
17261 export_symbols_cmds_GCJ | \
17262 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17263 postinstall_cmds | postuninstall_cmds | \
17264 old_postinstall_cmds | old_postuninstall_cmds | \
17265 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17266 # Double-quote double-evaled strings.
17267 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17268 ;;
17269 *)
17270 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17271 ;;
17272 esac
17273 done
17274
17275 case $lt_echo in
17276 *'\$0 --fallback-echo"')
17277 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17278 ;;
17279 esac
17280
17281cfgfile="$ofile"
17282
17283 cat <<__EOF__ >> "$cfgfile"
17284# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17285
17286# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17287
17288# Shell to use when invoking shell scripts.
17289SHELL=$lt_SHELL
17290
17291# Whether or not to build shared libraries.
17292build_libtool_libs=$enable_shared
17293
17294# Whether or not to build static libraries.
17295build_old_libs=$enable_static
17296
17297# Whether or not to add -lc for building shared libraries.
17298build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17299
17300# Whether or not to disallow shared libs when runtime libs are static
17301allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17302
17303# Whether or not to optimize for fast installation.
17304fast_install=$enable_fast_install
17305
17306# The host system.
17307host_alias=$host_alias
17308host=$host
17309
17310# An echo program that does not interpret backslashes.
17311echo=$lt_echo
17312
17313# The archiver.
17314AR=$lt_AR
17315AR_FLAGS=$lt_AR_FLAGS
17316
17317# A C compiler.
17318LTCC=$lt_LTCC
17319
17320# A language-specific compiler.
17321CC=$lt_compiler_GCJ
17322
17323# Is the compiler the GNU C compiler?
17324with_gcc=$GCC_GCJ
17325
17326# An ERE matcher.
17327EGREP=$lt_EGREP
17328
17329# The linker used to build libraries.
17330LD=$lt_LD_GCJ
17331
17332# Whether we need hard or soft links.
17333LN_S=$lt_LN_S
17334
17335# A BSD-compatible nm program.
17336NM=$lt_NM
17337
17338# A symbol stripping program
17339STRIP=$STRIP
17340
17341# Used to examine libraries when file_magic_cmd begins "file"
17342MAGIC_CMD=$MAGIC_CMD
17343
17344# Used on cygwin: DLL creation program.
17345DLLTOOL="$DLLTOOL"
17346
17347# Used on cygwin: object dumper.
17348OBJDUMP="$OBJDUMP"
17349
17350# Used on cygwin: assembler.
17351AS="$AS"
17352
17353# The name of the directory that contains temporary libtool files.
17354objdir=$objdir
17355
17356# How to create reloadable object files.
17357reload_flag=$lt_reload_flag
17358reload_cmds=$lt_reload_cmds
17359
17360# How to pass a linker flag through the compiler.
17361wl=$lt_lt_prog_compiler_wl_GCJ
17362
17363# Object file suffix (normally "o").
17364objext="$ac_objext"
17365
17366# Old archive suffix (normally "a").
17367libext="$libext"
17368
17369# Shared library suffix (normally ".so").
17370shrext='$shrext'
17371
17372# Executable file suffix (normally "").
17373exeext="$exeext"
17374
17375# Additional compiler flags for building library objects.
17376pic_flag=$lt_lt_prog_compiler_pic_GCJ
17377pic_mode=$pic_mode
17378
17379# What is the maximum length of a command?
17380max_cmd_len=$lt_cv_sys_max_cmd_len
17381
17382# Does compiler simultaneously support -c and -o options?
17383compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17384
17385# Must we lock files when doing compilation ?
17386need_locks=$lt_need_locks
17387
17388# Do we need the lib prefix for modules?
17389need_lib_prefix=$need_lib_prefix
17390
17391# Do we need a version for libraries?
17392need_version=$need_version
17393
17394# Whether dlopen is supported.
17395dlopen_support=$enable_dlopen
17396
17397# Whether dlopen of programs is supported.
17398dlopen_self=$enable_dlopen_self
17399
17400# Whether dlopen of statically linked programs is supported.
17401dlopen_self_static=$enable_dlopen_self_static
17402
17403# Compiler flag to prevent dynamic linking.
17404link_static_flag=$lt_lt_prog_compiler_static_GCJ
17405
17406# Compiler flag to turn off builtin functions.
17407no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17408
17409# Compiler flag to allow reflexive dlopens.
17410export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17411
17412# Compiler flag to generate shared objects directly from archives.
17413whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17414
17415# Compiler flag to generate thread-safe objects.
17416thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17417
17418# Library versioning type.
17419version_type=$version_type
17420
17421# Format of library name prefix.
17422libname_spec=$lt_libname_spec
17423
17424# List of archive names. First name is the real one, the rest are links.
17425# The last name is the one that the linker finds with -lNAME.
17426library_names_spec=$lt_library_names_spec
17427
17428# The coded name of the library, if different from the real name.
17429soname_spec=$lt_soname_spec
17430
17431# Commands used to build and install an old-style archive.
17432RANLIB=$lt_RANLIB
17433old_archive_cmds=$lt_old_archive_cmds_GCJ
17434old_postinstall_cmds=$lt_old_postinstall_cmds
17435old_postuninstall_cmds=$lt_old_postuninstall_cmds
17436
17437# Create an old-style archive from a shared archive.
17438old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17439
17440# Create a temporary old-style archive to link instead of a shared archive.
17441old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17442
17443# Commands used to build and install a shared archive.
17444archive_cmds=$lt_archive_cmds_GCJ
17445archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17446postinstall_cmds=$lt_postinstall_cmds
17447postuninstall_cmds=$lt_postuninstall_cmds
17448
17449# Commands used to build a loadable module (assumed same as above if empty)
17450module_cmds=$lt_module_cmds_GCJ
17451module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17452
17453# Commands to strip libraries.
17454old_striplib=$lt_old_striplib
17455striplib=$lt_striplib
17456
17457# Dependencies to place before the objects being linked to create a
17458# shared library.
17459predep_objects=$lt_predep_objects_GCJ
17460
17461# Dependencies to place after the objects being linked to create a
17462# shared library.
17463postdep_objects=$lt_postdep_objects_GCJ
17464
17465# Dependencies to place before the objects being linked to create a
17466# shared library.
17467predeps=$lt_predeps_GCJ
17468
17469# Dependencies to place after the objects being linked to create a
17470# shared library.
17471postdeps=$lt_postdeps_GCJ
17472
17473# The library search path used internally by the compiler when linking
17474# a shared library.
17475compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17476
17477# Method to check whether dependent libraries are shared objects.
17478deplibs_check_method=$lt_deplibs_check_method
17479
17480# Command to use when deplibs_check_method == file_magic.
17481file_magic_cmd=$lt_file_magic_cmd
17482
17483# Flag that allows shared libraries with undefined symbols to be built.
17484allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17485
17486# Flag that forces no undefined symbols.
17487no_undefined_flag=$lt_no_undefined_flag_GCJ
17488
17489# Commands used to finish a libtool library installation in a directory.
17490finish_cmds=$lt_finish_cmds
17491
17492# Same as above, but a single script fragment to be evaled but not shown.
17493finish_eval=$lt_finish_eval
17494
17495# Take the output of nm and produce a listing of raw symbols and C names.
17496global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17497
17498# Transform the output of nm in a proper C declaration
17499global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17500
17501# Transform the output of nm in a C name address pair
17502global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17503
17504# This is the shared library runtime path variable.
17505runpath_var=$runpath_var
17506
17507# This is the shared library path variable.
17508shlibpath_var=$shlibpath_var
17509
17510# Is shlibpath searched before the hard-coded library search path?
17511shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17512
17513# How to hardcode a shared library path into an executable.
17514hardcode_action=$hardcode_action_GCJ
17515
17516# Whether we should hardcode library paths into libraries.
17517hardcode_into_libs=$hardcode_into_libs
17518
17519# Flag to hardcode \$libdir into a binary during linking.
17520# This must work even if \$libdir does not exist.
17521hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
17522
17523# If ld is used when linking, flag to hardcode \$libdir into
17524# a binary during linking. This must work even if \$libdir does
17525# not exist.
17526hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17527
17528# Whether we need a single -rpath flag with a separated argument.
17529hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17530
17531# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17532# resulting binary.
17533hardcode_direct=$hardcode_direct_GCJ
17534
17535# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17536# resulting binary.
17537hardcode_minus_L=$hardcode_minus_L_GCJ
17538
17539# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17540# the resulting binary.
17541hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
17542
17543# Set to yes if building a shared library automatically hardcodes DIR into the library
17544# and all subsequent libraries and executables linked against it.
17545hardcode_automatic=$hardcode_automatic_GCJ
17546
17547# Variables whose values should be saved in libtool wrapper scripts and
17548# restored at relink time.
17549variables_saved_for_relink="$variables_saved_for_relink"
17550
17551# Whether libtool must link a program against all its dependency libraries.
17552link_all_deplibs=$link_all_deplibs_GCJ
17553
17554# Compile-time system search path for libraries
17555sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17556
17557# Run-time system search path for libraries
17558sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17559
17560# Fix the shell variable \$srcfile for the compiler.
17561fix_srcfile_path="$fix_srcfile_path_GCJ"
17562
17563# Set to yes if exported symbols are required.
17564always_export_symbols=$always_export_symbols_GCJ
17565
17566# The commands to list exported symbols.
17567export_symbols_cmds=$lt_export_symbols_cmds_GCJ
17568
17569# The commands to extract the exported symbol list from a shared archive.
17570extract_expsyms_cmds=$lt_extract_expsyms_cmds
17571
17572# Symbols that should not be listed in the preloaded symbols.
17573exclude_expsyms=$lt_exclude_expsyms_GCJ
17574
17575# Symbols that must always be exported.
17576include_expsyms=$lt_include_expsyms_GCJ
17577
17578# ### END LIBTOOL TAG CONFIG: $tagname
17579
17580__EOF__
17581
17582
17583else
17584 # If there is no Makefile yet, we rely on a make rule to execute
17585 # `config.status --recheck' to rerun these tests and create the
17586 # libtool script then.
17587 test -f Makefile && make "$ltmain"
17588fi
17589
17590
17591ac_ext=c
17592ac_cpp='$CPP $CPPFLAGS'
17593ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17594ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17595ac_compiler_gnu=$ac_cv_c_compiler_gnu
17596
17597CC="$lt_save_CC"
17598
17599 else
17600 tagname=""
17601 fi
17602 ;;
17603
17604 RC)
17605
17606
17607
17608# Source file extension for RC test sources.
17609ac_ext=rc
17610
17611# Object file extension for compiled RC test sources.
17612objext=o
17613objext_RC=$objext
17614
17615# Code to be used in simple compile tests
17616lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
17617
17618# Code to be used in simple link tests
17619lt_simple_link_test_code="$lt_simple_compile_test_code"
17620
17621# ltmain only uses $CC for tagged configurations so make sure $CC is set.
17622
17623# If no C compiler was specified, use CC.
17624LTCC=${LTCC-"$CC"}
17625
17626# Allow CC to be a program name with arguments.
17627compiler=$CC
17628
17629
17630# Allow CC to be a program name with arguments.
17631lt_save_CC="$CC"
17632CC=${RC-"windres"}
17633compiler=$CC
17634compiler_RC=$CC
17635lt_cv_prog_compiler_c_o_RC=yes
17636
17637# The else clause should only fire when bootstrapping the
17638# libtool distribution, otherwise you forgot to ship ltmain.sh
17639# with your package, and you will get complaints that there are
17640# no rules to generate ltmain.sh.
17641if test -f "$ltmain"; then
17642 # See if we are running on zsh, and set the options which allow our commands through
17643 # without removal of \ escapes.
17644 if test -n "${ZSH_VERSION+set}" ; then
17645 setopt NO_GLOB_SUBST
17646 fi
17647 # Now quote all the things that may contain metacharacters while being
17648 # careful not to overquote the AC_SUBSTed values. We take copies of the
17649 # variables and quote the copies for generation of the libtool script.
17650 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17651 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17652 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17653 deplibs_check_method reload_flag reload_cmds need_locks \
17654 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17655 lt_cv_sys_global_symbol_to_c_name_address \
17656 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17657 old_postinstall_cmds old_postuninstall_cmds \
17658 compiler_RC \
17659 CC_RC \
17660 LD_RC \
17661 lt_prog_compiler_wl_RC \
17662 lt_prog_compiler_pic_RC \
17663 lt_prog_compiler_static_RC \
17664 lt_prog_compiler_no_builtin_flag_RC \
17665 export_dynamic_flag_spec_RC \
17666 thread_safe_flag_spec_RC \
17667 whole_archive_flag_spec_RC \
17668 enable_shared_with_static_runtimes_RC \
17669 old_archive_cmds_RC \
17670 old_archive_from_new_cmds_RC \
17671 predep_objects_RC \
17672 postdep_objects_RC \
17673 predeps_RC \
17674 postdeps_RC \
17675 compiler_lib_search_path_RC \
17676 archive_cmds_RC \
17677 archive_expsym_cmds_RC \
17678 postinstall_cmds_RC \
17679 postuninstall_cmds_RC \
17680 old_archive_from_expsyms_cmds_RC \
17681 allow_undefined_flag_RC \
17682 no_undefined_flag_RC \
17683 export_symbols_cmds_RC \
17684 hardcode_libdir_flag_spec_RC \
17685 hardcode_libdir_flag_spec_ld_RC \
17686 hardcode_libdir_separator_RC \
17687 hardcode_automatic_RC \
17688 module_cmds_RC \
17689 module_expsym_cmds_RC \
17690 lt_cv_prog_compiler_c_o_RC \
17691 exclude_expsyms_RC \
17692 include_expsyms_RC; do
17693
17694 case $var in
17695 old_archive_cmds_RC | \
17696 old_archive_from_new_cmds_RC | \
17697 archive_cmds_RC | \
17698 archive_expsym_cmds_RC | \
17699 module_cmds_RC | \
17700 module_expsym_cmds_RC | \
17701 old_archive_from_expsyms_cmds_RC | \
17702 export_symbols_cmds_RC | \
17703 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17704 postinstall_cmds | postuninstall_cmds | \
17705 old_postinstall_cmds | old_postuninstall_cmds | \
17706 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17707 # Double-quote double-evaled strings.
17708 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17709 ;;
17710 *)
17711 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17712 ;;
17713 esac
17714 done
17715
17716 case $lt_echo in
17717 *'\$0 --fallback-echo"')
17718 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17719 ;;
17720 esac
17721
17722cfgfile="$ofile"
17723
17724 cat <<__EOF__ >> "$cfgfile"
17725# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17726
17727# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17728
17729# Shell to use when invoking shell scripts.
17730SHELL=$lt_SHELL
17731
17732# Whether or not to build shared libraries.
17733build_libtool_libs=$enable_shared
17734
17735# Whether or not to build static libraries.
17736build_old_libs=$enable_static
17737
17738# Whether or not to add -lc for building shared libraries.
17739build_libtool_need_lc=$archive_cmds_need_lc_RC
17740
17741# Whether or not to disallow shared libs when runtime libs are static
17742allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
17743
17744# Whether or not to optimize for fast installation.
17745fast_install=$enable_fast_install
17746
17747# The host system.
17748host_alias=$host_alias
17749host=$host
17750
17751# An echo program that does not interpret backslashes.
17752echo=$lt_echo
17753
17754# The archiver.
17755AR=$lt_AR
17756AR_FLAGS=$lt_AR_FLAGS
17757
17758# A C compiler.
17759LTCC=$lt_LTCC
17760
17761# A language-specific compiler.
17762CC=$lt_compiler_RC
17763
17764# Is the compiler the GNU C compiler?
17765with_gcc=$GCC_RC
17766
17767# An ERE matcher.
17768EGREP=$lt_EGREP
17769
17770# The linker used to build libraries.
17771LD=$lt_LD_RC
17772
17773# Whether we need hard or soft links.
17774LN_S=$lt_LN_S
17775
17776# A BSD-compatible nm program.
17777NM=$lt_NM
17778
17779# A symbol stripping program
17780STRIP=$STRIP
17781
17782# Used to examine libraries when file_magic_cmd begins "file"
17783MAGIC_CMD=$MAGIC_CMD
17784
17785# Used on cygwin: DLL creation program.
17786DLLTOOL="$DLLTOOL"
17787
17788# Used on cygwin: object dumper.
17789OBJDUMP="$OBJDUMP"
17790
17791# Used on cygwin: assembler.
17792AS="$AS"
17793
17794# The name of the directory that contains temporary libtool files.
17795objdir=$objdir
17796
17797# How to create reloadable object files.
17798reload_flag=$lt_reload_flag
17799reload_cmds=$lt_reload_cmds
17800
17801# How to pass a linker flag through the compiler.
17802wl=$lt_lt_prog_compiler_wl_RC
17803
17804# Object file suffix (normally "o").
17805objext="$ac_objext"
17806
17807# Old archive suffix (normally "a").
17808libext="$libext"
17809
17810# Shared library suffix (normally ".so").
17811shrext='$shrext'
17812
17813# Executable file suffix (normally "").
17814exeext="$exeext"
17815
17816# Additional compiler flags for building library objects.
17817pic_flag=$lt_lt_prog_compiler_pic_RC
17818pic_mode=$pic_mode
17819
17820# What is the maximum length of a command?
17821max_cmd_len=$lt_cv_sys_max_cmd_len
17822
17823# Does compiler simultaneously support -c and -o options?
17824compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
17825
17826# Must we lock files when doing compilation ?
17827need_locks=$lt_need_locks
17828
17829# Do we need the lib prefix for modules?
17830need_lib_prefix=$need_lib_prefix
17831
17832# Do we need a version for libraries?
17833need_version=$need_version
17834
17835# Whether dlopen is supported.
17836dlopen_support=$enable_dlopen
17837
17838# Whether dlopen of programs is supported.
17839dlopen_self=$enable_dlopen_self
17840
17841# Whether dlopen of statically linked programs is supported.
17842dlopen_self_static=$enable_dlopen_self_static
17843
17844# Compiler flag to prevent dynamic linking.
17845link_static_flag=$lt_lt_prog_compiler_static_RC
17846
17847# Compiler flag to turn off builtin functions.
17848no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
17849
17850# Compiler flag to allow reflexive dlopens.
17851export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
17852
17853# Compiler flag to generate shared objects directly from archives.
17854whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
17855
17856# Compiler flag to generate thread-safe objects.
17857thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
17858
17859# Library versioning type.
17860version_type=$version_type
17861
17862# Format of library name prefix.
17863libname_spec=$lt_libname_spec
17864
17865# List of archive names. First name is the real one, the rest are links.
17866# The last name is the one that the linker finds with -lNAME.
17867library_names_spec=$lt_library_names_spec
17868
17869# The coded name of the library, if different from the real name.
17870soname_spec=$lt_soname_spec
17871
17872# Commands used to build and install an old-style archive.
17873RANLIB=$lt_RANLIB
17874old_archive_cmds=$lt_old_archive_cmds_RC
17875old_postinstall_cmds=$lt_old_postinstall_cmds
17876old_postuninstall_cmds=$lt_old_postuninstall_cmds
17877
17878# Create an old-style archive from a shared archive.
17879old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
17880
17881# Create a temporary old-style archive to link instead of a shared archive.
17882old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
17883
17884# Commands used to build and install a shared archive.
17885archive_cmds=$lt_archive_cmds_RC
17886archive_expsym_cmds=$lt_archive_expsym_cmds_RC
17887postinstall_cmds=$lt_postinstall_cmds
17888postuninstall_cmds=$lt_postuninstall_cmds
17889
17890# Commands used to build a loadable module (assumed same as above if empty)
17891module_cmds=$lt_module_cmds_RC
17892module_expsym_cmds=$lt_module_expsym_cmds_RC
17893
17894# Commands to strip libraries.
17895old_striplib=$lt_old_striplib
17896striplib=$lt_striplib
17897
17898# Dependencies to place before the objects being linked to create a
17899# shared library.
17900predep_objects=$lt_predep_objects_RC
17901
17902# Dependencies to place after the objects being linked to create a
17903# shared library.
17904postdep_objects=$lt_postdep_objects_RC
17905
17906# Dependencies to place before the objects being linked to create a
17907# shared library.
17908predeps=$lt_predeps_RC
17909
17910# Dependencies to place after the objects being linked to create a
17911# shared library.
17912postdeps=$lt_postdeps_RC
17913
17914# The library search path used internally by the compiler when linking
17915# a shared library.
17916compiler_lib_search_path=$lt_compiler_lib_search_path_RC
17917
17918# Method to check whether dependent libraries are shared objects.
17919deplibs_check_method=$lt_deplibs_check_method
17920
17921# Command to use when deplibs_check_method == file_magic.
17922file_magic_cmd=$lt_file_magic_cmd
17923
17924# Flag that allows shared libraries with undefined symbols to be built.
17925allow_undefined_flag=$lt_allow_undefined_flag_RC
17926
17927# Flag that forces no undefined symbols.
17928no_undefined_flag=$lt_no_undefined_flag_RC
17929
17930# Commands used to finish a libtool library installation in a directory.
17931finish_cmds=$lt_finish_cmds
17932
17933# Same as above, but a single script fragment to be evaled but not shown.
17934finish_eval=$lt_finish_eval
17935
17936# Take the output of nm and produce a listing of raw symbols and C names.
17937global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17938
17939# Transform the output of nm in a proper C declaration
17940global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17941
17942# Transform the output of nm in a C name address pair
17943global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17944
17945# This is the shared library runtime path variable.
17946runpath_var=$runpath_var
17947
17948# This is the shared library path variable.
17949shlibpath_var=$shlibpath_var
17950
17951# Is shlibpath searched before the hard-coded library search path?
17952shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17953
17954# How to hardcode a shared library path into an executable.
17955hardcode_action=$hardcode_action_RC
17956
17957# Whether we should hardcode library paths into libraries.
17958hardcode_into_libs=$hardcode_into_libs
17959
17960# Flag to hardcode \$libdir into a binary during linking.
17961# This must work even if \$libdir does not exist.
17962hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
17963
17964# If ld is used when linking, flag to hardcode \$libdir into
17965# a binary during linking. This must work even if \$libdir does
17966# not exist.
17967hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
17968
17969# Whether we need a single -rpath flag with a separated argument.
17970hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
17971
17972# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17973# resulting binary.
17974hardcode_direct=$hardcode_direct_RC
17975
17976# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17977# resulting binary.
17978hardcode_minus_L=$hardcode_minus_L_RC
17979
17980# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17981# the resulting binary.
17982hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
17983
17984# Set to yes if building a shared library automatically hardcodes DIR into the library
17985# and all subsequent libraries and executables linked against it.
17986hardcode_automatic=$hardcode_automatic_RC
17987
17988# Variables whose values should be saved in libtool wrapper scripts and
17989# restored at relink time.
17990variables_saved_for_relink="$variables_saved_for_relink"
17991
17992# Whether libtool must link a program against all its dependency libraries.
17993link_all_deplibs=$link_all_deplibs_RC
17994
17995# Compile-time system search path for libraries
17996sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17997
17998# Run-time system search path for libraries
17999sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18000
18001# Fix the shell variable \$srcfile for the compiler.
18002fix_srcfile_path="$fix_srcfile_path_RC"
18003
18004# Set to yes if exported symbols are required.
18005always_export_symbols=$always_export_symbols_RC
18006
18007# The commands to list exported symbols.
18008export_symbols_cmds=$lt_export_symbols_cmds_RC
18009
18010# The commands to extract the exported symbol list from a shared archive.
18011extract_expsyms_cmds=$lt_extract_expsyms_cmds
18012
18013# Symbols that should not be listed in the preloaded symbols.
18014exclude_expsyms=$lt_exclude_expsyms_RC
18015
18016# Symbols that must always be exported.
18017include_expsyms=$lt_include_expsyms_RC
18018
18019# ### END LIBTOOL TAG CONFIG: $tagname
18020
18021__EOF__
18022
18023
18024else
18025 # If there is no Makefile yet, we rely on a make rule to execute
18026 # `config.status --recheck' to rerun these tests and create the
18027 # libtool script then.
18028 test -f Makefile && make "$ltmain"
18029fi
18030
18031
18032ac_ext=c
18033ac_cpp='$CPP $CPPFLAGS'
18034ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18035ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18036ac_compiler_gnu=$ac_cv_c_compiler_gnu
18037
18038CC="$lt_save_CC"
18039
18040 ;;
18041
18042 *)
18043 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18044echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18045 { (exit 1); exit 1; }; }
18046 ;;
18047 esac
18048
18049 # Append the new tag name to the list of available tags.
18050 if test -n "$tagname" ; then
18051 available_tags="$available_tags $tagname"
18052 fi
18053 fi
18054 done
18055 IFS="$lt_save_ifs"
18056
18057 # Now substitute the updated list of available tags.
18058 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18059 mv "${ofile}T" "$ofile"
18060 chmod +x "$ofile"
18061 else
18062 rm -f "${ofile}T"
18063 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18064echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18065 { (exit 1); exit 1; }; }
18066 fi
18067fi
John Criswell7a73b802003-06-30 21:59:07 +000018068
18069
18070
18071# This can be used to rebuild libtool when needed
18072LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18073
18074# Always use our own libtool.
John Criswell8d4221e2003-07-23 16:52:50 +000018075LIBTOOL='$(SHELL) $(top_builddir)/mklib'
John Criswell7a73b802003-06-30 21:59:07 +000018076
18077# Prevent multiple expansion
18078
18079
18080
John Criswell47fdd832003-07-14 16:52:07 +000018081
18082
18083
18084
18085
18086
18087
18088
18089
18090
18091
18092
18093
18094
18095
18096
18097
18098
John Criswell7a73b802003-06-30 21:59:07 +000018099# Extract the first word of "dot", so it can be a program name with args.
18100set dummy dot; ac_word=$2
18101echo "$as_me:$LINENO: checking for $ac_word" >&5
18102echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18103if test "${ac_cv_path_DOT+set}" = set; then
18104 echo $ECHO_N "(cached) $ECHO_C" >&6
18105else
18106 case $DOT in
18107 [\\/]* | ?:[\\/]*)
18108 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
18109 ;;
18110 *)
18111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18112for as_dir in $PATH
18113do
18114 IFS=$as_save_IFS
18115 test -z "$as_dir" && as_dir=.
18116 for ac_exec_ext in '' $ac_executable_extensions; do
18117 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18118 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
18119 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18120 break 2
18121 fi
18122done
18123done
18124
Brian Gaeke26be9c52004-01-13 06:43:16 +000018125 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="true dot"
John Criswell7a73b802003-06-30 21:59:07 +000018126 ;;
18127esac
18128fi
18129DOT=$ac_cv_path_DOT
18130
18131if test -n "$DOT"; then
18132 echo "$as_me:$LINENO: result: $DOT" >&5
18133echo "${ECHO_T}$DOT" >&6
18134else
18135 echo "$as_me:$LINENO: result: no" >&5
18136echo "${ECHO_T}no" >&6
18137fi
18138
18139# Extract the first word of "etags", so it can be a program name with args.
18140set dummy etags; ac_word=$2
18141echo "$as_me:$LINENO: checking for $ac_word" >&5
18142echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18143if test "${ac_cv_path_ETAGS+set}" = set; then
18144 echo $ECHO_N "(cached) $ECHO_C" >&6
18145else
18146 case $ETAGS in
18147 [\\/]* | ?:[\\/]*)
18148 ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
18149 ;;
18150 *)
18151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18152for as_dir in $PATH
18153do
18154 IFS=$as_save_IFS
18155 test -z "$as_dir" && as_dir=.
18156 for ac_exec_ext in '' $ac_executable_extensions; do
18157 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18158 ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
18159 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18160 break 2
18161 fi
18162done
18163done
18164
Brian Gaeke26be9c52004-01-13 06:43:16 +000018165 test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="true etags"
John Criswell7a73b802003-06-30 21:59:07 +000018166 ;;
18167esac
18168fi
18169ETAGS=$ac_cv_path_ETAGS
18170
18171if test -n "$ETAGS"; then
18172 echo "$as_me:$LINENO: result: $ETAGS" >&5
18173echo "${ECHO_T}$ETAGS" >&6
18174else
18175 echo "$as_me:$LINENO: result: no" >&5
18176echo "${ECHO_T}no" >&6
18177fi
18178
Brian Gaekeafa3fbf2004-01-22 21:55:02 +000018179etags_version=`$ETAGS --version 2>&1`
18180case "$etags_version" in
18181 *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
18182 *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
18183 *) ETAGSFLAGS="" ;;
18184esac
18185ETAGSFLAGS=$ETAGSFLAGS
18186
John Criswellde00db22003-08-25 16:49:54 +000018187# Extract the first word of "python", so it can be a program name with args.
18188set dummy python; ac_word=$2
18189echo "$as_me:$LINENO: checking for $ac_word" >&5
18190echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18191if test "${ac_cv_path_PYTHON+set}" = set; then
18192 echo $ECHO_N "(cached) $ECHO_C" >&6
18193else
18194 case $PYTHON in
18195 [\\/]* | ?:[\\/]*)
18196 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
18197 ;;
18198 *)
18199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18200for as_dir in $PATH
18201do
18202 IFS=$as_save_IFS
18203 test -z "$as_dir" && as_dir=.
18204 for ac_exec_ext in '' $ac_executable_extensions; do
18205 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18206 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
18207 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18208 break 2
18209 fi
18210done
18211done
18212
Brian Gaeke26be9c52004-01-13 06:43:16 +000018213 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="true python"
John Criswellde00db22003-08-25 16:49:54 +000018214 ;;
18215esac
18216fi
18217PYTHON=$ac_cv_path_PYTHON
18218
18219if test -n "$PYTHON"; then
18220 echo "$as_me:$LINENO: result: $PYTHON" >&5
18221echo "${ECHO_T}$PYTHON" >&6
18222else
18223 echo "$as_me:$LINENO: result: no" >&5
18224echo "${ECHO_T}no" >&6
18225fi
18226
Brian Gaeke26be9c52004-01-13 06:43:16 +000018227if test "$PYTHON" = "false"
John Criswell39827c82003-09-23 15:28:52 +000018228then
Brian Gaeke26be9c52004-01-13 06:43:16 +000018229 { echo "$as_me:$LINENO: WARNING: Python is required for the test suite, but it was not found" >&5
18230echo "$as_me: WARNING: Python is required for the test suite, but it was not found" >&2;}
John Criswell39827c82003-09-23 15:28:52 +000018231fi
John Criswellde00db22003-08-25 16:49:54 +000018232# Extract the first word of "qmtest", so it can be a program name with args.
18233set dummy qmtest; ac_word=$2
18234echo "$as_me:$LINENO: checking for $ac_word" >&5
18235echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18236if test "${ac_cv_path_QMTEST+set}" = set; then
18237 echo $ECHO_N "(cached) $ECHO_C" >&6
18238else
18239 case $QMTEST in
18240 [\\/]* | ?:[\\/]*)
18241 ac_cv_path_QMTEST="$QMTEST" # Let the user override the test with a path.
18242 ;;
18243 *)
18244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18245for as_dir in $PATH
18246do
18247 IFS=$as_save_IFS
18248 test -z "$as_dir" && as_dir=.
18249 for ac_exec_ext in '' $ac_executable_extensions; do
18250 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18251 ac_cv_path_QMTEST="$as_dir/$ac_word$ac_exec_ext"
18252 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18253 break 2
18254 fi
18255done
18256done
18257
Brian Gaeke26be9c52004-01-13 06:43:16 +000018258 test -z "$ac_cv_path_QMTEST" && ac_cv_path_QMTEST="true qmtest"
John Criswellde00db22003-08-25 16:49:54 +000018259 ;;
18260esac
18261fi
18262QMTEST=$ac_cv_path_QMTEST
18263
18264if test -n "$QMTEST"; then
18265 echo "$as_me:$LINENO: result: $QMTEST" >&5
18266echo "${ECHO_T}$QMTEST" >&6
18267else
18268 echo "$as_me:$LINENO: result: no" >&5
18269echo "${ECHO_T}no" >&6
18270fi
18271
Brian Gaeke26be9c52004-01-13 06:43:16 +000018272if test "$QMTEST" = "false"
John Criswell39827c82003-09-23 15:28:52 +000018273then
Brian Gaeke26be9c52004-01-13 06:43:16 +000018274 { echo "$as_me:$LINENO: WARNING: QMTest is required for the test suite, but it was not found" >&5
18275echo "$as_me: WARNING: QMTest is required for the test suite, but it was not found" >&2;}
John Criswell39827c82003-09-23 15:28:52 +000018276fi
John Criswellde00db22003-08-25 16:49:54 +000018277
18278pyversion=`$PYTHON -V 2>&1 | cut -d\ -f2`
18279pymajor=`echo $pyversion | cut -d. -f1`
18280pyminor=`echo $pyversion | cut -d. -f2`
18281
18282if test "$pymajor" -ge "2"
18283then
18284 if test "$pymajor" -eq "2"
18285 then
18286 if test "$pyminor" -lt "2"
18287 then
Brian Gaeke26be9c52004-01-13 06:43:16 +000018288 { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5
18289echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;}
John Criswellde00db22003-08-25 16:49:54 +000018290 fi
18291 fi
18292else
Brian Gaeke26be9c52004-01-13 06:43:16 +000018293 { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5
18294echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;}
John Criswellde00db22003-08-25 16:49:54 +000018295fi
John Criswell7a73b802003-06-30 21:59:07 +000018296
18297
18298
18299
John Criswell7a73b802003-06-30 21:59:07 +000018300echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
18301echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
18302if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
18303 echo $ECHO_N "(cached) $ECHO_C" >&6
18304else
18305 ac_check_lib_save_LIBS=$LIBS
18306LIBS="-lelf $LIBS"
18307cat >conftest.$ac_ext <<_ACEOF
18308#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000018309/* confdefs.h. */
18310_ACEOF
18311cat confdefs.h >>conftest.$ac_ext
18312cat >>conftest.$ac_ext <<_ACEOF
18313/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000018314
18315/* Override any gcc2 internal prototype to avoid an error. */
18316#ifdef __cplusplus
18317extern "C"
18318#endif
18319/* We use char because int might match the return type of a gcc2
18320 builtin and then its argument prototype would still apply. */
18321char elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000018322int
18323main ()
18324{
18325elf_begin ();
18326 ;
18327 return 0;
18328}
18329_ACEOF
18330rm -f conftest.$ac_objext conftest$ac_exeext
18331if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18332 (eval $ac_link) 2>&5
18333 ac_status=$?
18334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18335 (exit $ac_status); } &&
18336 { ac_try='test -s conftest$ac_exeext'
18337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18338 (eval $ac_try) 2>&5
18339 ac_status=$?
18340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18341 (exit $ac_status); }; }; then
18342 ac_cv_lib_elf_elf_begin=yes
18343else
18344 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018345sed 's/^/| /' conftest.$ac_ext >&5
18346
John Criswell7a73b802003-06-30 21:59:07 +000018347ac_cv_lib_elf_elf_begin=no
18348fi
18349rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18350LIBS=$ac_check_lib_save_LIBS
18351fi
18352echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
18353echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
18354if test $ac_cv_lib_elf_elf_begin = yes; then
18355 cat >>confdefs.h <<_ACEOF
18356#define HAVE_LIBELF 1
18357_ACEOF
18358
18359 LIBS="-lelf $LIBS"
18360
18361fi
18362
18363
18364echo "$as_me:$LINENO: checking for library containing dlopen" >&5
18365echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
18366if test "${ac_cv_search_dlopen+set}" = set; then
18367 echo $ECHO_N "(cached) $ECHO_C" >&6
18368else
18369 ac_func_search_save_LIBS=$LIBS
18370ac_cv_search_dlopen=no
18371cat >conftest.$ac_ext <<_ACEOF
18372#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000018373/* confdefs.h. */
18374_ACEOF
18375cat confdefs.h >>conftest.$ac_ext
18376cat >>conftest.$ac_ext <<_ACEOF
18377/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000018378
18379/* Override any gcc2 internal prototype to avoid an error. */
18380#ifdef __cplusplus
18381extern "C"
18382#endif
18383/* We use char because int might match the return type of a gcc2
18384 builtin and then its argument prototype would still apply. */
18385char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000018386int
18387main ()
18388{
18389dlopen ();
18390 ;
18391 return 0;
18392}
18393_ACEOF
18394rm -f conftest.$ac_objext conftest$ac_exeext
18395if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18396 (eval $ac_link) 2>&5
18397 ac_status=$?
18398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18399 (exit $ac_status); } &&
18400 { ac_try='test -s conftest$ac_exeext'
18401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18402 (eval $ac_try) 2>&5
18403 ac_status=$?
18404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18405 (exit $ac_status); }; }; then
18406 ac_cv_search_dlopen="none required"
18407else
18408 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018409sed 's/^/| /' conftest.$ac_ext >&5
18410
John Criswell7a73b802003-06-30 21:59:07 +000018411fi
18412rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18413if test "$ac_cv_search_dlopen" = no; then
18414 for ac_lib in dl; do
18415 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18416 cat >conftest.$ac_ext <<_ACEOF
18417#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000018418/* confdefs.h. */
18419_ACEOF
18420cat confdefs.h >>conftest.$ac_ext
18421cat >>conftest.$ac_ext <<_ACEOF
18422/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000018423
18424/* Override any gcc2 internal prototype to avoid an error. */
18425#ifdef __cplusplus
18426extern "C"
18427#endif
18428/* We use char because int might match the return type of a gcc2
18429 builtin and then its argument prototype would still apply. */
18430char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000018431int
18432main ()
18433{
18434dlopen ();
18435 ;
18436 return 0;
18437}
18438_ACEOF
18439rm -f conftest.$ac_objext conftest$ac_exeext
18440if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18441 (eval $ac_link) 2>&5
18442 ac_status=$?
18443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18444 (exit $ac_status); } &&
18445 { ac_try='test -s conftest$ac_exeext'
18446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18447 (eval $ac_try) 2>&5
18448 ac_status=$?
18449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18450 (exit $ac_status); }; }; then
18451 ac_cv_search_dlopen="-l$ac_lib"
18452break
18453else
18454 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018455sed 's/^/| /' conftest.$ac_ext >&5
18456
John Criswell7a73b802003-06-30 21:59:07 +000018457fi
18458rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18459 done
18460fi
18461LIBS=$ac_func_search_save_LIBS
18462fi
18463echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
18464echo "${ECHO_T}$ac_cv_search_dlopen" >&6
18465if test "$ac_cv_search_dlopen" != no; then
18466 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000018467
18468cat >>confdefs.h <<\_ACEOF
Brian Gaekec45be042003-10-07 06:01:34 +000018469#define HAVE_DLOPEN 1
18470_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000018471
18472else
Brian Gaekec45be042003-10-07 06:01:34 +000018473 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
18474echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000018475fi
18476
18477
18478echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
18479echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
18480if test "${ac_cv_search_mallinfo+set}" = set; then
18481 echo $ECHO_N "(cached) $ECHO_C" >&6
18482else
18483 ac_func_search_save_LIBS=$LIBS
18484ac_cv_search_mallinfo=no
18485cat >conftest.$ac_ext <<_ACEOF
18486#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000018487/* confdefs.h. */
18488_ACEOF
18489cat confdefs.h >>conftest.$ac_ext
18490cat >>conftest.$ac_ext <<_ACEOF
18491/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000018492
18493/* Override any gcc2 internal prototype to avoid an error. */
18494#ifdef __cplusplus
18495extern "C"
18496#endif
18497/* We use char because int might match the return type of a gcc2
18498 builtin and then its argument prototype would still apply. */
18499char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000018500int
18501main ()
18502{
18503mallinfo ();
18504 ;
18505 return 0;
18506}
18507_ACEOF
18508rm -f conftest.$ac_objext conftest$ac_exeext
18509if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18510 (eval $ac_link) 2>&5
18511 ac_status=$?
18512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18513 (exit $ac_status); } &&
18514 { ac_try='test -s conftest$ac_exeext'
18515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18516 (eval $ac_try) 2>&5
18517 ac_status=$?
18518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18519 (exit $ac_status); }; }; then
18520 ac_cv_search_mallinfo="none required"
18521else
18522 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018523sed 's/^/| /' conftest.$ac_ext >&5
18524
John Criswell7a73b802003-06-30 21:59:07 +000018525fi
18526rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18527if test "$ac_cv_search_mallinfo" = no; then
18528 for ac_lib in malloc; do
18529 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18530 cat >conftest.$ac_ext <<_ACEOF
18531#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000018532/* confdefs.h. */
18533_ACEOF
18534cat confdefs.h >>conftest.$ac_ext
18535cat >>conftest.$ac_ext <<_ACEOF
18536/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000018537
18538/* Override any gcc2 internal prototype to avoid an error. */
18539#ifdef __cplusplus
18540extern "C"
18541#endif
18542/* We use char because int might match the return type of a gcc2
18543 builtin and then its argument prototype would still apply. */
18544char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000018545int
18546main ()
18547{
18548mallinfo ();
18549 ;
18550 return 0;
18551}
18552_ACEOF
18553rm -f conftest.$ac_objext conftest$ac_exeext
18554if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18555 (eval $ac_link) 2>&5
18556 ac_status=$?
18557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18558 (exit $ac_status); } &&
18559 { ac_try='test -s conftest$ac_exeext'
18560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18561 (eval $ac_try) 2>&5
18562 ac_status=$?
18563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18564 (exit $ac_status); }; }; then
18565 ac_cv_search_mallinfo="-l$ac_lib"
18566break
18567else
18568 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018569sed 's/^/| /' conftest.$ac_ext >&5
18570
John Criswell7a73b802003-06-30 21:59:07 +000018571fi
18572rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18573 done
18574fi
18575LIBS=$ac_func_search_save_LIBS
18576fi
18577echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
18578echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
18579if test "$ac_cv_search_mallinfo" != no; then
18580 test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000018581
18582cat >>confdefs.h <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000018583#define HAVE_MALLINFO 1
18584_ACEOF
18585
18586fi
18587
18588
Brian Gaeke5f268f72003-12-05 19:29:01 +000018589echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
18590echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
18591if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
18592 echo $ECHO_N "(cached) $ECHO_C" >&6
18593else
18594 ac_func_search_save_LIBS=$LIBS
18595ac_cv_search_pthread_mutex_lock=no
18596cat >conftest.$ac_ext <<_ACEOF
18597#line $LINENO "configure"
18598/* confdefs.h. */
18599_ACEOF
18600cat confdefs.h >>conftest.$ac_ext
18601cat >>conftest.$ac_ext <<_ACEOF
18602/* end confdefs.h. */
18603
18604/* Override any gcc2 internal prototype to avoid an error. */
18605#ifdef __cplusplus
18606extern "C"
18607#endif
18608/* We use char because int might match the return type of a gcc2
18609 builtin and then its argument prototype would still apply. */
18610char pthread_mutex_lock ();
18611int
18612main ()
18613{
18614pthread_mutex_lock ();
18615 ;
18616 return 0;
18617}
18618_ACEOF
18619rm -f conftest.$ac_objext conftest$ac_exeext
18620if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18621 (eval $ac_link) 2>&5
18622 ac_status=$?
18623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18624 (exit $ac_status); } &&
18625 { ac_try='test -s conftest$ac_exeext'
18626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18627 (eval $ac_try) 2>&5
18628 ac_status=$?
18629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18630 (exit $ac_status); }; }; then
18631 ac_cv_search_pthread_mutex_lock="none required"
18632else
18633 echo "$as_me: failed program was:" >&5
18634sed 's/^/| /' conftest.$ac_ext >&5
18635
18636fi
18637rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18638if test "$ac_cv_search_pthread_mutex_lock" = no; then
18639 for ac_lib in pthread; do
18640 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18641 cat >conftest.$ac_ext <<_ACEOF
18642#line $LINENO "configure"
18643/* confdefs.h. */
18644_ACEOF
18645cat confdefs.h >>conftest.$ac_ext
18646cat >>conftest.$ac_ext <<_ACEOF
18647/* end confdefs.h. */
18648
18649/* Override any gcc2 internal prototype to avoid an error. */
18650#ifdef __cplusplus
18651extern "C"
18652#endif
18653/* We use char because int might match the return type of a gcc2
18654 builtin and then its argument prototype would still apply. */
18655char pthread_mutex_lock ();
18656int
18657main ()
18658{
18659pthread_mutex_lock ();
18660 ;
18661 return 0;
18662}
18663_ACEOF
18664rm -f conftest.$ac_objext conftest$ac_exeext
18665if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18666 (eval $ac_link) 2>&5
18667 ac_status=$?
18668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18669 (exit $ac_status); } &&
18670 { ac_try='test -s conftest$ac_exeext'
18671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18672 (eval $ac_try) 2>&5
18673 ac_status=$?
18674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18675 (exit $ac_status); }; }; then
18676 ac_cv_search_pthread_mutex_lock="-l$ac_lib"
18677break
18678else
18679 echo "$as_me: failed program was:" >&5
18680sed 's/^/| /' conftest.$ac_ext >&5
18681
18682fi
18683rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18684 done
18685fi
18686LIBS=$ac_func_search_save_LIBS
18687fi
18688echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
18689echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
18690if test "$ac_cv_search_pthread_mutex_lock" != no; then
18691 test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
Brian Gaekec9a410c2004-02-23 21:30:37 +000018692 HAVE_PTHREAD_MUTEX_LOCK=1
18693else
18694 HAVE_PTHREAD_MUTEX_LOCK=0
Brian Gaeke5f268f72003-12-05 19:29:01 +000018695fi
18696
18697
Brian Gaekec9a410c2004-02-23 21:30:37 +000018698
John Criswell7a73b802003-06-30 21:59:07 +000018699echo "$as_me:$LINENO: checking for ANSI C header files" >&5
18700echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
18701if test "${ac_cv_header_stdc+set}" = set; then
18702 echo $ECHO_N "(cached) $ECHO_C" >&6
18703else
18704 cat >conftest.$ac_ext <<_ACEOF
18705#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000018706/* confdefs.h. */
18707_ACEOF
18708cat confdefs.h >>conftest.$ac_ext
18709cat >>conftest.$ac_ext <<_ACEOF
18710/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000018711#include <stdlib.h>
18712#include <stdarg.h>
18713#include <string.h>
18714#include <float.h>
18715
John Criswell0c38eaf2003-09-10 15:17:25 +000018716int
18717main ()
18718{
18719
18720 ;
18721 return 0;
18722}
John Criswell7a73b802003-06-30 21:59:07 +000018723_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018724rm -f conftest.$ac_objext
18725if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18726 (eval $ac_compile) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000018727 ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +000018728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018729 (exit $ac_status); } &&
18730 { ac_try='test -s conftest.$ac_objext'
18731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18732 (eval $ac_try) 2>&5
18733 ac_status=$?
18734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18735 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000018736 ac_cv_header_stdc=yes
18737else
18738 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018739sed 's/^/| /' conftest.$ac_ext >&5
18740
18741ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000018742fi
John Criswell0c38eaf2003-09-10 15:17:25 +000018743rm -f conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000018744
18745if test $ac_cv_header_stdc = yes; then
18746 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
18747 cat >conftest.$ac_ext <<_ACEOF
18748#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000018749/* confdefs.h. */
18750_ACEOF
18751cat confdefs.h >>conftest.$ac_ext
18752cat >>conftest.$ac_ext <<_ACEOF
18753/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000018754#include <string.h>
18755
18756_ACEOF
18757if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000018758 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000018759 :
18760else
18761 ac_cv_header_stdc=no
18762fi
18763rm -f conftest*
18764
18765fi
18766
18767if test $ac_cv_header_stdc = yes; then
18768 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
18769 cat >conftest.$ac_ext <<_ACEOF
18770#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000018771/* confdefs.h. */
18772_ACEOF
18773cat confdefs.h >>conftest.$ac_ext
18774cat >>conftest.$ac_ext <<_ACEOF
18775/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000018776#include <stdlib.h>
18777
18778_ACEOF
18779if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000018780 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000018781 :
18782else
18783 ac_cv_header_stdc=no
18784fi
18785rm -f conftest*
18786
18787fi
18788
18789if test $ac_cv_header_stdc = yes; then
18790 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
18791 if test "$cross_compiling" = yes; then
18792 :
18793else
18794 cat >conftest.$ac_ext <<_ACEOF
18795#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000018796/* confdefs.h. */
18797_ACEOF
18798cat confdefs.h >>conftest.$ac_ext
18799cat >>conftest.$ac_ext <<_ACEOF
18800/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000018801#include <ctype.h>
18802#if ((' ' & 0x0FF) == 0x020)
18803# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
18804# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
18805#else
John Criswell0c38eaf2003-09-10 15:17:25 +000018806# define ISLOWER(c) \
18807 (('a' <= (c) && (c) <= 'i') \
John Criswell7a73b802003-06-30 21:59:07 +000018808 || ('j' <= (c) && (c) <= 'r') \
18809 || ('s' <= (c) && (c) <= 'z'))
18810# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
18811#endif
18812
18813#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
18814int
18815main ()
18816{
18817 int i;
18818 for (i = 0; i < 256; i++)
18819 if (XOR (islower (i), ISLOWER (i))
18820 || toupper (i) != TOUPPER (i))
18821 exit(2);
18822 exit (0);
18823}
18824_ACEOF
18825rm -f conftest$ac_exeext
18826if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18827 (eval $ac_link) 2>&5
18828 ac_status=$?
18829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18830 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18832 (eval $ac_try) 2>&5
18833 ac_status=$?
18834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18835 (exit $ac_status); }; }; then
18836 :
18837else
18838 echo "$as_me: program exited with status $ac_status" >&5
18839echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018840sed 's/^/| /' conftest.$ac_ext >&5
18841
John Criswell7a73b802003-06-30 21:59:07 +000018842( exit $ac_status )
18843ac_cv_header_stdc=no
18844fi
John Criswell0c38eaf2003-09-10 15:17:25 +000018845rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000018846fi
18847fi
18848fi
18849echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
18850echo "${ECHO_T}$ac_cv_header_stdc" >&6
18851if test $ac_cv_header_stdc = yes; then
18852
18853cat >>confdefs.h <<\_ACEOF
18854#define STDC_HEADERS 1
18855_ACEOF
18856
18857fi
18858
18859echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
18860echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
18861if test "${ac_cv_header_sys_wait_h+set}" = set; then
18862 echo $ECHO_N "(cached) $ECHO_C" >&6
18863else
18864 cat >conftest.$ac_ext <<_ACEOF
18865#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000018866/* confdefs.h. */
18867_ACEOF
18868cat confdefs.h >>conftest.$ac_ext
18869cat >>conftest.$ac_ext <<_ACEOF
18870/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000018871#include <sys/types.h>
18872#include <sys/wait.h>
18873#ifndef WEXITSTATUS
18874# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
18875#endif
18876#ifndef WIFEXITED
18877# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
18878#endif
18879
John Criswell7a73b802003-06-30 21:59:07 +000018880int
18881main ()
18882{
18883 int s;
18884 wait (&s);
18885 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
18886 ;
18887 return 0;
18888}
18889_ACEOF
18890rm -f conftest.$ac_objext
18891if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18892 (eval $ac_compile) 2>&5
18893 ac_status=$?
18894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18895 (exit $ac_status); } &&
18896 { ac_try='test -s conftest.$ac_objext'
18897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18898 (eval $ac_try) 2>&5
18899 ac_status=$?
18900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18901 (exit $ac_status); }; }; then
18902 ac_cv_header_sys_wait_h=yes
18903else
18904 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018905sed 's/^/| /' conftest.$ac_ext >&5
18906
John Criswell7a73b802003-06-30 21:59:07 +000018907ac_cv_header_sys_wait_h=no
18908fi
18909rm -f conftest.$ac_objext conftest.$ac_ext
18910fi
18911echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
18912echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
18913if test $ac_cv_header_sys_wait_h = yes; then
18914
18915cat >>confdefs.h <<\_ACEOF
18916#define HAVE_SYS_WAIT_H 1
18917_ACEOF
18918
18919fi
18920
18921
18922
18923
18924
18925
18926
18927
18928
18929
Brian Gaeke26be9c52004-01-13 06:43:16 +000018930
Brian Gaekef5261472004-02-20 06:40:57 +000018931
John Criswellb2815e02004-05-27 20:40:39 +000018932
18933for 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 +000018934do
18935as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18936if eval "test \"\${$as_ac_Header+set}\" = set"; then
18937 echo "$as_me:$LINENO: checking for $ac_header" >&5
18938echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18939if eval "test \"\${$as_ac_Header+set}\" = set"; then
18940 echo $ECHO_N "(cached) $ECHO_C" >&6
18941fi
18942echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18943echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18944else
18945 # Is the header compilable?
18946echo "$as_me:$LINENO: checking $ac_header usability" >&5
18947echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18948cat >conftest.$ac_ext <<_ACEOF
18949#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000018950/* confdefs.h. */
18951_ACEOF
18952cat confdefs.h >>conftest.$ac_ext
18953cat >>conftest.$ac_ext <<_ACEOF
18954/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000018955$ac_includes_default
18956#include <$ac_header>
18957_ACEOF
18958rm -f conftest.$ac_objext
18959if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18960 (eval $ac_compile) 2>&5
18961 ac_status=$?
18962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18963 (exit $ac_status); } &&
18964 { ac_try='test -s conftest.$ac_objext'
18965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18966 (eval $ac_try) 2>&5
18967 ac_status=$?
18968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18969 (exit $ac_status); }; }; then
18970 ac_header_compiler=yes
18971else
18972 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018973sed 's/^/| /' conftest.$ac_ext >&5
18974
John Criswell7a73b802003-06-30 21:59:07 +000018975ac_header_compiler=no
18976fi
18977rm -f conftest.$ac_objext conftest.$ac_ext
18978echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18979echo "${ECHO_T}$ac_header_compiler" >&6
18980
18981# Is the header present?
18982echo "$as_me:$LINENO: checking $ac_header presence" >&5
18983echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18984cat >conftest.$ac_ext <<_ACEOF
18985#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000018986/* confdefs.h. */
18987_ACEOF
18988cat confdefs.h >>conftest.$ac_ext
18989cat >>conftest.$ac_ext <<_ACEOF
18990/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000018991#include <$ac_header>
18992_ACEOF
18993if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18994 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18995 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000018996 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000018997 rm -f conftest.er1
18998 cat conftest.err >&5
18999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19000 (exit $ac_status); } >/dev/null; then
19001 if test -s conftest.err; then
19002 ac_cpp_err=$ac_c_preproc_warn_flag
19003 else
19004 ac_cpp_err=
19005 fi
19006else
19007 ac_cpp_err=yes
19008fi
19009if test -z "$ac_cpp_err"; then
19010 ac_header_preproc=yes
19011else
19012 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019013sed 's/^/| /' conftest.$ac_ext >&5
19014
John Criswell7a73b802003-06-30 21:59:07 +000019015 ac_header_preproc=no
19016fi
19017rm -f conftest.err conftest.$ac_ext
19018echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19019echo "${ECHO_T}$ac_header_preproc" >&6
19020
19021# So? What about this header?
19022case $ac_header_compiler:$ac_header_preproc in
19023 yes:no )
19024 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19025echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19026 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019027echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19028 (
19029 cat <<\_ASBOX
19030## ------------------------------------ ##
19031## Report this to bug-autoconf@gnu.org. ##
19032## ------------------------------------ ##
19033_ASBOX
19034 ) |
19035 sed "s/^/$as_me: WARNING: /" >&2
19036 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019037 no:yes )
19038 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19039echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19040 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19041echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19042 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019043echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19044 (
19045 cat <<\_ASBOX
19046## ------------------------------------ ##
19047## Report this to bug-autoconf@gnu.org. ##
19048## ------------------------------------ ##
19049_ASBOX
19050 ) |
19051 sed "s/^/$as_me: WARNING: /" >&2
19052 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019053esac
19054echo "$as_me:$LINENO: checking for $ac_header" >&5
19055echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19056if eval "test \"\${$as_ac_Header+set}\" = set"; then
19057 echo $ECHO_N "(cached) $ECHO_C" >&6
19058else
19059 eval "$as_ac_Header=$ac_header_preproc"
19060fi
19061echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19062echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19063
19064fi
19065if test `eval echo '${'$as_ac_Header'}'` = yes; then
19066 cat >>confdefs.h <<_ACEOF
19067#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19068_ACEOF
19069
19070fi
19071
19072done
19073
19074
Brian Gaeke6c3fd812004-02-23 22:07:00 +000019075if test "${ac_cv_header_sys_types_h+set}" = set; then
19076 echo "$as_me:$LINENO: checking for sys/types.h" >&5
19077echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
19078if test "${ac_cv_header_sys_types_h+set}" = set; then
19079 echo $ECHO_N "(cached) $ECHO_C" >&6
19080fi
19081echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
19082echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
19083else
19084 # Is the header compilable?
19085echo "$as_me:$LINENO: checking sys/types.h usability" >&5
19086echo $ECHO_N "checking sys/types.h usability... $ECHO_C" >&6
19087cat >conftest.$ac_ext <<_ACEOF
19088#line $LINENO "configure"
19089/* confdefs.h. */
19090_ACEOF
19091cat confdefs.h >>conftest.$ac_ext
19092cat >>conftest.$ac_ext <<_ACEOF
19093/* end confdefs.h. */
19094$ac_includes_default
19095#include <sys/types.h>
19096_ACEOF
19097rm -f conftest.$ac_objext
19098if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19099 (eval $ac_compile) 2>&5
19100 ac_status=$?
19101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19102 (exit $ac_status); } &&
19103 { ac_try='test -s conftest.$ac_objext'
19104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19105 (eval $ac_try) 2>&5
19106 ac_status=$?
19107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19108 (exit $ac_status); }; }; then
19109 ac_header_compiler=yes
19110else
19111 echo "$as_me: failed program was:" >&5
19112sed 's/^/| /' conftest.$ac_ext >&5
19113
19114ac_header_compiler=no
19115fi
19116rm -f conftest.$ac_objext conftest.$ac_ext
19117echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19118echo "${ECHO_T}$ac_header_compiler" >&6
19119
19120# Is the header present?
19121echo "$as_me:$LINENO: checking sys/types.h presence" >&5
19122echo $ECHO_N "checking sys/types.h presence... $ECHO_C" >&6
19123cat >conftest.$ac_ext <<_ACEOF
19124#line $LINENO "configure"
19125/* confdefs.h. */
19126_ACEOF
19127cat confdefs.h >>conftest.$ac_ext
19128cat >>conftest.$ac_ext <<_ACEOF
19129/* end confdefs.h. */
19130#include <sys/types.h>
19131_ACEOF
19132if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19133 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19134 ac_status=$?
19135 grep -v '^ *+' conftest.er1 >conftest.err
19136 rm -f conftest.er1
19137 cat conftest.err >&5
19138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19139 (exit $ac_status); } >/dev/null; then
19140 if test -s conftest.err; then
19141 ac_cpp_err=$ac_c_preproc_warn_flag
19142 else
19143 ac_cpp_err=
19144 fi
19145else
19146 ac_cpp_err=yes
19147fi
19148if test -z "$ac_cpp_err"; then
19149 ac_header_preproc=yes
19150else
19151 echo "$as_me: failed program was:" >&5
19152sed 's/^/| /' conftest.$ac_ext >&5
19153
19154 ac_header_preproc=no
19155fi
19156rm -f conftest.err conftest.$ac_ext
19157echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19158echo "${ECHO_T}$ac_header_preproc" >&6
19159
19160# So? What about this header?
19161case $ac_header_compiler:$ac_header_preproc in
19162 yes:no )
19163 { echo "$as_me:$LINENO: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&5
19164echo "$as_me: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19165 { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the preprocessor's result" >&5
19166echo "$as_me: WARNING: sys/types.h: proceeding with the preprocessor's result" >&2;}
19167 (
19168 cat <<\_ASBOX
19169## ------------------------------------ ##
19170## Report this to bug-autoconf@gnu.org. ##
19171## ------------------------------------ ##
19172_ASBOX
19173 ) |
19174 sed "s/^/$as_me: WARNING: /" >&2
19175 ;;
19176 no:yes )
19177 { echo "$as_me:$LINENO: WARNING: sys/types.h: present but cannot be compiled" >&5
19178echo "$as_me: WARNING: sys/types.h: present but cannot be compiled" >&2;}
19179 { echo "$as_me:$LINENO: WARNING: sys/types.h: check for missing prerequisite headers?" >&5
19180echo "$as_me: WARNING: sys/types.h: check for missing prerequisite headers?" >&2;}
19181 { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the preprocessor's result" >&5
19182echo "$as_me: WARNING: sys/types.h: proceeding with the preprocessor's result" >&2;}
19183 (
19184 cat <<\_ASBOX
19185## ------------------------------------ ##
19186## Report this to bug-autoconf@gnu.org. ##
19187## ------------------------------------ ##
19188_ASBOX
19189 ) |
19190 sed "s/^/$as_me: WARNING: /" >&2
19191 ;;
19192esac
19193echo "$as_me:$LINENO: checking for sys/types.h" >&5
19194echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
19195if test "${ac_cv_header_sys_types_h+set}" = set; then
19196 echo $ECHO_N "(cached) $ECHO_C" >&6
19197else
19198 ac_cv_header_sys_types_h=$ac_header_preproc
19199fi
19200echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
19201echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
19202
19203fi
19204if test $ac_cv_header_sys_types_h = yes; then
19205 INCLUDE_SYS_TYPES_H='#include <sys/types.h>'
19206else
19207 INCLUDE_SYS_TYPES_H=''
19208fi
19209
19210
19211
19212if test "${ac_cv_header_inttypes_h+set}" = set; then
19213 echo "$as_me:$LINENO: checking for inttypes.h" >&5
19214echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
19215if test "${ac_cv_header_inttypes_h+set}" = set; then
19216 echo $ECHO_N "(cached) $ECHO_C" >&6
19217fi
19218echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
19219echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6
19220else
19221 # Is the header compilable?
19222echo "$as_me:$LINENO: checking inttypes.h usability" >&5
19223echo $ECHO_N "checking inttypes.h usability... $ECHO_C" >&6
19224cat >conftest.$ac_ext <<_ACEOF
19225#line $LINENO "configure"
19226/* confdefs.h. */
19227_ACEOF
19228cat confdefs.h >>conftest.$ac_ext
19229cat >>conftest.$ac_ext <<_ACEOF
19230/* end confdefs.h. */
19231$ac_includes_default
19232#include <inttypes.h>
19233_ACEOF
19234rm -f conftest.$ac_objext
19235if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19236 (eval $ac_compile) 2>&5
19237 ac_status=$?
19238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19239 (exit $ac_status); } &&
19240 { ac_try='test -s conftest.$ac_objext'
19241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19242 (eval $ac_try) 2>&5
19243 ac_status=$?
19244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19245 (exit $ac_status); }; }; then
19246 ac_header_compiler=yes
19247else
19248 echo "$as_me: failed program was:" >&5
19249sed 's/^/| /' conftest.$ac_ext >&5
19250
19251ac_header_compiler=no
19252fi
19253rm -f conftest.$ac_objext conftest.$ac_ext
19254echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19255echo "${ECHO_T}$ac_header_compiler" >&6
19256
19257# Is the header present?
19258echo "$as_me:$LINENO: checking inttypes.h presence" >&5
19259echo $ECHO_N "checking inttypes.h presence... $ECHO_C" >&6
19260cat >conftest.$ac_ext <<_ACEOF
19261#line $LINENO "configure"
19262/* confdefs.h. */
19263_ACEOF
19264cat confdefs.h >>conftest.$ac_ext
19265cat >>conftest.$ac_ext <<_ACEOF
19266/* end confdefs.h. */
19267#include <inttypes.h>
19268_ACEOF
19269if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19270 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19271 ac_status=$?
19272 grep -v '^ *+' conftest.er1 >conftest.err
19273 rm -f conftest.er1
19274 cat conftest.err >&5
19275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19276 (exit $ac_status); } >/dev/null; then
19277 if test -s conftest.err; then
19278 ac_cpp_err=$ac_c_preproc_warn_flag
19279 else
19280 ac_cpp_err=
19281 fi
19282else
19283 ac_cpp_err=yes
19284fi
19285if test -z "$ac_cpp_err"; then
19286 ac_header_preproc=yes
19287else
19288 echo "$as_me: failed program was:" >&5
19289sed 's/^/| /' conftest.$ac_ext >&5
19290
19291 ac_header_preproc=no
19292fi
19293rm -f conftest.err conftest.$ac_ext
19294echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19295echo "${ECHO_T}$ac_header_preproc" >&6
19296
19297# So? What about this header?
19298case $ac_header_compiler:$ac_header_preproc in
19299 yes:no )
19300 { echo "$as_me:$LINENO: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&5
19301echo "$as_me: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19302 { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the preprocessor's result" >&5
19303echo "$as_me: WARNING: inttypes.h: proceeding with the preprocessor's result" >&2;}
19304 (
19305 cat <<\_ASBOX
19306## ------------------------------------ ##
19307## Report this to bug-autoconf@gnu.org. ##
19308## ------------------------------------ ##
19309_ASBOX
19310 ) |
19311 sed "s/^/$as_me: WARNING: /" >&2
19312 ;;
19313 no:yes )
19314 { echo "$as_me:$LINENO: WARNING: inttypes.h: present but cannot be compiled" >&5
19315echo "$as_me: WARNING: inttypes.h: present but cannot be compiled" >&2;}
19316 { echo "$as_me:$LINENO: WARNING: inttypes.h: check for missing prerequisite headers?" >&5
19317echo "$as_me: WARNING: inttypes.h: check for missing prerequisite headers?" >&2;}
19318 { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the preprocessor's result" >&5
19319echo "$as_me: WARNING: inttypes.h: proceeding with the preprocessor's result" >&2;}
19320 (
19321 cat <<\_ASBOX
19322## ------------------------------------ ##
19323## Report this to bug-autoconf@gnu.org. ##
19324## ------------------------------------ ##
19325_ASBOX
19326 ) |
19327 sed "s/^/$as_me: WARNING: /" >&2
19328 ;;
19329esac
19330echo "$as_me:$LINENO: checking for inttypes.h" >&5
19331echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
19332if test "${ac_cv_header_inttypes_h+set}" = set; then
19333 echo $ECHO_N "(cached) $ECHO_C" >&6
19334else
19335 ac_cv_header_inttypes_h=$ac_header_preproc
19336fi
19337echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
19338echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6
19339
19340fi
19341if test $ac_cv_header_inttypes_h = yes; then
19342 INCLUDE_INTTYPES_H='#include <inttypes.h>'
19343else
19344 INCLUDE_INTTYPES_H=''
19345fi
19346
19347
19348
John Criswell7ed43ad2004-07-19 16:12:29 +000019349if test "${ac_cv_header_stdint_h+set}" = set; then
19350 echo "$as_me:$LINENO: checking for stdint.h" >&5
19351echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
19352if test "${ac_cv_header_stdint_h+set}" = set; then
19353 echo $ECHO_N "(cached) $ECHO_C" >&6
19354fi
19355echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
19356echo "${ECHO_T}$ac_cv_header_stdint_h" >&6
19357else
19358 # Is the header compilable?
19359echo "$as_me:$LINENO: checking stdint.h usability" >&5
19360echo $ECHO_N "checking stdint.h usability... $ECHO_C" >&6
19361cat >conftest.$ac_ext <<_ACEOF
19362#line $LINENO "configure"
19363/* confdefs.h. */
19364_ACEOF
19365cat confdefs.h >>conftest.$ac_ext
19366cat >>conftest.$ac_ext <<_ACEOF
19367/* end confdefs.h. */
19368$ac_includes_default
19369#include <stdint.h>
19370_ACEOF
19371rm -f conftest.$ac_objext
19372if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19373 (eval $ac_compile) 2>&5
19374 ac_status=$?
19375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19376 (exit $ac_status); } &&
19377 { ac_try='test -s conftest.$ac_objext'
19378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19379 (eval $ac_try) 2>&5
19380 ac_status=$?
19381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19382 (exit $ac_status); }; }; then
19383 ac_header_compiler=yes
19384else
19385 echo "$as_me: failed program was:" >&5
19386sed 's/^/| /' conftest.$ac_ext >&5
19387
19388ac_header_compiler=no
19389fi
19390rm -f conftest.$ac_objext conftest.$ac_ext
19391echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19392echo "${ECHO_T}$ac_header_compiler" >&6
19393
19394# Is the header present?
19395echo "$as_me:$LINENO: checking stdint.h presence" >&5
19396echo $ECHO_N "checking stdint.h presence... $ECHO_C" >&6
19397cat >conftest.$ac_ext <<_ACEOF
19398#line $LINENO "configure"
19399/* confdefs.h. */
19400_ACEOF
19401cat confdefs.h >>conftest.$ac_ext
19402cat >>conftest.$ac_ext <<_ACEOF
19403/* end confdefs.h. */
19404#include <stdint.h>
19405_ACEOF
19406if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19407 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19408 ac_status=$?
19409 grep -v '^ *+' conftest.er1 >conftest.err
19410 rm -f conftest.er1
19411 cat conftest.err >&5
19412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19413 (exit $ac_status); } >/dev/null; then
19414 if test -s conftest.err; then
19415 ac_cpp_err=$ac_c_preproc_warn_flag
19416 else
19417 ac_cpp_err=
19418 fi
19419else
19420 ac_cpp_err=yes
19421fi
19422if test -z "$ac_cpp_err"; then
19423 ac_header_preproc=yes
19424else
19425 echo "$as_me: failed program was:" >&5
19426sed 's/^/| /' conftest.$ac_ext >&5
19427
19428 ac_header_preproc=no
19429fi
19430rm -f conftest.err conftest.$ac_ext
19431echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19432echo "${ECHO_T}$ac_header_preproc" >&6
19433
19434# So? What about this header?
19435case $ac_header_compiler:$ac_header_preproc in
19436 yes:no )
19437 { echo "$as_me:$LINENO: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&5
19438echo "$as_me: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19439 { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the preprocessor's result" >&5
19440echo "$as_me: WARNING: stdint.h: proceeding with the preprocessor's result" >&2;}
19441 (
19442 cat <<\_ASBOX
19443## ------------------------------------ ##
19444## Report this to bug-autoconf@gnu.org. ##
19445## ------------------------------------ ##
19446_ASBOX
19447 ) |
19448 sed "s/^/$as_me: WARNING: /" >&2
19449 ;;
19450 no:yes )
19451 { echo "$as_me:$LINENO: WARNING: stdint.h: present but cannot be compiled" >&5
19452echo "$as_me: WARNING: stdint.h: present but cannot be compiled" >&2;}
19453 { echo "$as_me:$LINENO: WARNING: stdint.h: check for missing prerequisite headers?" >&5
19454echo "$as_me: WARNING: stdint.h: check for missing prerequisite headers?" >&2;}
19455 { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the preprocessor's result" >&5
19456echo "$as_me: WARNING: stdint.h: proceeding with the preprocessor's result" >&2;}
19457 (
19458 cat <<\_ASBOX
19459## ------------------------------------ ##
19460## Report this to bug-autoconf@gnu.org. ##
19461## ------------------------------------ ##
19462_ASBOX
19463 ) |
19464 sed "s/^/$as_me: WARNING: /" >&2
19465 ;;
19466esac
19467echo "$as_me:$LINENO: checking for stdint.h" >&5
19468echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
19469if test "${ac_cv_header_stdint_h+set}" = set; then
19470 echo $ECHO_N "(cached) $ECHO_C" >&6
19471else
19472 ac_cv_header_stdint_h=$ac_header_preproc
19473fi
19474echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
19475echo "${ECHO_T}$ac_cv_header_stdint_h" >&6
19476
19477fi
19478if test $ac_cv_header_stdint_h = yes; then
19479 INCLUDE_STDINT_H='#include <stdint.h>'
19480else
19481 INCLUDE_STDINT_H=''
19482fi
19483
19484
19485
19486
Brian Gaeke6c3fd812004-02-23 22:07:00 +000019487
John Criswell7a73b802003-06-30 21:59:07 +000019488echo "$as_me:$LINENO: checking for pid_t" >&5
19489echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
19490if test "${ac_cv_type_pid_t+set}" = set; then
19491 echo $ECHO_N "(cached) $ECHO_C" >&6
19492else
19493 cat >conftest.$ac_ext <<_ACEOF
19494#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019495/* confdefs.h. */
19496_ACEOF
19497cat confdefs.h >>conftest.$ac_ext
19498cat >>conftest.$ac_ext <<_ACEOF
19499/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019500$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000019501int
19502main ()
19503{
19504if ((pid_t *) 0)
19505 return 0;
19506if (sizeof (pid_t))
19507 return 0;
19508 ;
19509 return 0;
19510}
19511_ACEOF
19512rm -f conftest.$ac_objext
19513if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19514 (eval $ac_compile) 2>&5
19515 ac_status=$?
19516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19517 (exit $ac_status); } &&
19518 { ac_try='test -s conftest.$ac_objext'
19519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19520 (eval $ac_try) 2>&5
19521 ac_status=$?
19522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19523 (exit $ac_status); }; }; then
19524 ac_cv_type_pid_t=yes
19525else
19526 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019527sed 's/^/| /' conftest.$ac_ext >&5
19528
John Criswell7a73b802003-06-30 21:59:07 +000019529ac_cv_type_pid_t=no
19530fi
19531rm -f conftest.$ac_objext conftest.$ac_ext
19532fi
19533echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
19534echo "${ECHO_T}$ac_cv_type_pid_t" >&6
19535if test $ac_cv_type_pid_t = yes; then
19536 :
19537else
19538
19539cat >>confdefs.h <<_ACEOF
19540#define pid_t int
19541_ACEOF
19542
19543fi
19544
19545echo "$as_me:$LINENO: checking for size_t" >&5
19546echo $ECHO_N "checking for size_t... $ECHO_C" >&6
19547if test "${ac_cv_type_size_t+set}" = set; then
19548 echo $ECHO_N "(cached) $ECHO_C" >&6
19549else
19550 cat >conftest.$ac_ext <<_ACEOF
19551#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019552/* confdefs.h. */
19553_ACEOF
19554cat confdefs.h >>conftest.$ac_ext
19555cat >>conftest.$ac_ext <<_ACEOF
19556/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019557$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000019558int
19559main ()
19560{
19561if ((size_t *) 0)
19562 return 0;
19563if (sizeof (size_t))
19564 return 0;
19565 ;
19566 return 0;
19567}
19568_ACEOF
19569rm -f conftest.$ac_objext
19570if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19571 (eval $ac_compile) 2>&5
19572 ac_status=$?
19573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19574 (exit $ac_status); } &&
19575 { ac_try='test -s conftest.$ac_objext'
19576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19577 (eval $ac_try) 2>&5
19578 ac_status=$?
19579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19580 (exit $ac_status); }; }; then
19581 ac_cv_type_size_t=yes
19582else
19583 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019584sed 's/^/| /' conftest.$ac_ext >&5
19585
John Criswell7a73b802003-06-30 21:59:07 +000019586ac_cv_type_size_t=no
19587fi
19588rm -f conftest.$ac_objext conftest.$ac_ext
19589fi
19590echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
19591echo "${ECHO_T}$ac_cv_type_size_t" >&6
19592if test $ac_cv_type_size_t = yes; then
19593 :
19594else
19595
19596cat >>confdefs.h <<_ACEOF
19597#define size_t unsigned
19598_ACEOF
19599
19600fi
19601
19602echo "$as_me:$LINENO: checking for int64_t" >&5
19603echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
19604if test "${ac_cv_type_int64_t+set}" = set; then
19605 echo $ECHO_N "(cached) $ECHO_C" >&6
19606else
19607 cat >conftest.$ac_ext <<_ACEOF
19608#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019609/* confdefs.h. */
19610_ACEOF
19611cat confdefs.h >>conftest.$ac_ext
19612cat >>conftest.$ac_ext <<_ACEOF
19613/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019614$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000019615int
19616main ()
19617{
19618if ((int64_t *) 0)
19619 return 0;
19620if (sizeof (int64_t))
19621 return 0;
19622 ;
19623 return 0;
19624}
19625_ACEOF
19626rm -f conftest.$ac_objext
19627if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19628 (eval $ac_compile) 2>&5
19629 ac_status=$?
19630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19631 (exit $ac_status); } &&
19632 { ac_try='test -s conftest.$ac_objext'
19633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19634 (eval $ac_try) 2>&5
19635 ac_status=$?
19636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19637 (exit $ac_status); }; }; then
19638 ac_cv_type_int64_t=yes
19639else
19640 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019641sed 's/^/| /' conftest.$ac_ext >&5
19642
John Criswell7a73b802003-06-30 21:59:07 +000019643ac_cv_type_int64_t=no
19644fi
19645rm -f conftest.$ac_objext conftest.$ac_ext
19646fi
19647echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
19648echo "${ECHO_T}$ac_cv_type_int64_t" >&6
19649if test $ac_cv_type_int64_t = yes; then
19650
19651cat >>confdefs.h <<_ACEOF
19652#define HAVE_INT64_T 1
19653_ACEOF
19654
19655
19656else
19657 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
19658echo "$as_me: error: Type int64_t required but not found" >&2;}
19659 { (exit 1); exit 1; }; }
19660fi
19661
19662echo "$as_me:$LINENO: checking for uint64_t" >&5
19663echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
19664if test "${ac_cv_type_uint64_t+set}" = set; then
19665 echo $ECHO_N "(cached) $ECHO_C" >&6
19666else
19667 cat >conftest.$ac_ext <<_ACEOF
19668#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019669/* confdefs.h. */
19670_ACEOF
19671cat confdefs.h >>conftest.$ac_ext
19672cat >>conftest.$ac_ext <<_ACEOF
19673/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019674$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000019675int
19676main ()
19677{
19678if ((uint64_t *) 0)
19679 return 0;
19680if (sizeof (uint64_t))
19681 return 0;
19682 ;
19683 return 0;
19684}
19685_ACEOF
19686rm -f conftest.$ac_objext
19687if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19688 (eval $ac_compile) 2>&5
19689 ac_status=$?
19690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19691 (exit $ac_status); } &&
19692 { ac_try='test -s conftest.$ac_objext'
19693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19694 (eval $ac_try) 2>&5
19695 ac_status=$?
19696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19697 (exit $ac_status); }; }; then
19698 ac_cv_type_uint64_t=yes
19699else
19700 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019701sed 's/^/| /' conftest.$ac_ext >&5
19702
John Criswell7a73b802003-06-30 21:59:07 +000019703ac_cv_type_uint64_t=no
19704fi
19705rm -f conftest.$ac_objext conftest.$ac_ext
19706fi
19707echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
19708echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
19709if test $ac_cv_type_uint64_t = yes; then
19710
19711cat >>confdefs.h <<_ACEOF
19712#define HAVE_UINT64_T 1
19713_ACEOF
19714
19715
19716else
19717 { { echo "$as_me:$LINENO: error: Type uint64_t required but not found" >&5
19718echo "$as_me: error: Type uint64_t required but not found" >&2;}
19719 { (exit 1); exit 1; }; }
19720fi
19721
19722echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
19723echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
19724if test "${ac_cv_header_time+set}" = set; then
19725 echo $ECHO_N "(cached) $ECHO_C" >&6
19726else
19727 cat >conftest.$ac_ext <<_ACEOF
19728#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019729/* confdefs.h. */
19730_ACEOF
19731cat confdefs.h >>conftest.$ac_ext
19732cat >>conftest.$ac_ext <<_ACEOF
19733/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019734#include <sys/types.h>
19735#include <sys/time.h>
19736#include <time.h>
19737
John Criswell7a73b802003-06-30 21:59:07 +000019738int
19739main ()
19740{
19741if ((struct tm *) 0)
19742return 0;
19743 ;
19744 return 0;
19745}
19746_ACEOF
19747rm -f conftest.$ac_objext
19748if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19749 (eval $ac_compile) 2>&5
19750 ac_status=$?
19751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19752 (exit $ac_status); } &&
19753 { ac_try='test -s conftest.$ac_objext'
19754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19755 (eval $ac_try) 2>&5
19756 ac_status=$?
19757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19758 (exit $ac_status); }; }; then
19759 ac_cv_header_time=yes
19760else
19761 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019762sed 's/^/| /' conftest.$ac_ext >&5
19763
John Criswell7a73b802003-06-30 21:59:07 +000019764ac_cv_header_time=no
19765fi
19766rm -f conftest.$ac_objext conftest.$ac_ext
19767fi
19768echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
19769echo "${ECHO_T}$ac_cv_header_time" >&6
19770if test $ac_cv_header_time = yes; then
19771
19772cat >>confdefs.h <<\_ACEOF
19773#define TIME_WITH_SYS_TIME 1
19774_ACEOF
19775
19776fi
19777
19778echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
19779echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
19780if test "${ac_cv_struct_tm+set}" = set; then
19781 echo $ECHO_N "(cached) $ECHO_C" >&6
19782else
19783 cat >conftest.$ac_ext <<_ACEOF
19784#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019785/* confdefs.h. */
19786_ACEOF
19787cat confdefs.h >>conftest.$ac_ext
19788cat >>conftest.$ac_ext <<_ACEOF
19789/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019790#include <sys/types.h>
19791#include <time.h>
19792
John Criswell7a73b802003-06-30 21:59:07 +000019793int
19794main ()
19795{
19796struct tm *tp; tp->tm_sec;
19797 ;
19798 return 0;
19799}
19800_ACEOF
19801rm -f conftest.$ac_objext
19802if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19803 (eval $ac_compile) 2>&5
19804 ac_status=$?
19805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19806 (exit $ac_status); } &&
19807 { ac_try='test -s conftest.$ac_objext'
19808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19809 (eval $ac_try) 2>&5
19810 ac_status=$?
19811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19812 (exit $ac_status); }; }; then
19813 ac_cv_struct_tm=time.h
19814else
19815 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019816sed 's/^/| /' conftest.$ac_ext >&5
19817
John Criswell7a73b802003-06-30 21:59:07 +000019818ac_cv_struct_tm=sys/time.h
19819fi
19820rm -f conftest.$ac_objext conftest.$ac_ext
19821fi
19822echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
19823echo "${ECHO_T}$ac_cv_struct_tm" >&6
19824if test $ac_cv_struct_tm = sys/time.h; then
19825
19826cat >>confdefs.h <<\_ACEOF
19827#define TM_IN_SYS_TIME 1
19828_ACEOF
19829
19830fi
19831
19832
John Criswella0137d32003-10-13 16:22:01 +000019833
Brian Gaekeadfe28d2004-07-21 03:50:25 +000019834 echo "$as_me:$LINENO: checking for printf %a format specifier" >&5
19835echo $ECHO_N "checking for printf %a format specifier... $ECHO_C" >&6
John Criswella0137d32003-10-13 16:22:01 +000019836
19837
19838 ac_ext=c
19839ac_cpp='$CPP $CPPFLAGS'
19840ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19841ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19842ac_compiler_gnu=$ac_cv_c_compiler_gnu
19843
19844 if test "$cross_compiling" = yes; then
19845 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19846See \`config.log' for more details." >&5
19847echo "$as_me: error: cannot run test program while cross compiling
19848See \`config.log' for more details." >&2;}
19849 { (exit 1); exit 1; }; }
19850else
19851 cat >conftest.$ac_ext <<_ACEOF
19852#line $LINENO "configure"
19853/* confdefs.h. */
19854_ACEOF
19855cat confdefs.h >>conftest.$ac_ext
19856cat >>conftest.$ac_ext <<_ACEOF
19857/* end confdefs.h. */
19858#include <stdio.h>
19859 #include <stdlib.h>
19860int
19861main ()
19862{
19863
19864 volatile double A, B;
19865 char Buffer[100];
19866 A = 1;
19867 A /= 10.0;
19868 sprintf(Buffer, "%a", A);
19869 B = atof(Buffer);
19870 if (A != B)
19871 return (1);
19872 if (A != 0x1.999999999999ap-4)
19873 return (1);
19874 return (0);
19875 ;
19876 return 0;
19877}
19878_ACEOF
19879rm -f conftest$ac_exeext
19880if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19881 (eval $ac_link) 2>&5
19882 ac_status=$?
19883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19884 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19886 (eval $ac_try) 2>&5
19887 ac_status=$?
19888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19889 (exit $ac_status); }; }; then
19890 ac_c_printf_a=yes
19891else
19892 echo "$as_me: program exited with status $ac_status" >&5
19893echo "$as_me: failed program was:" >&5
19894sed 's/^/| /' conftest.$ac_ext >&5
19895
19896( exit $ac_status )
19897ac_c_printf_a=no
19898fi
19899rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19900fi
19901 ac_ext=c
19902ac_cpp='$CPP $CPPFLAGS'
19903ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19904ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19905ac_compiler_gnu=$ac_cv_c_compiler_gnu
19906
Brian Gaekeadfe28d2004-07-21 03:50:25 +000019907 echo "$as_me:$LINENO: result: $ac_c_printf_a" >&5
19908echo "${ECHO_T}$ac_c_printf_a" >&6
John Criswella0137d32003-10-13 16:22:01 +000019909 if test "$ac_c_printf_a" = "yes"; then
19910
19911cat >>confdefs.h <<\_ACEOF
19912#define HAVE_PRINTF_A 1
19913_ACEOF
19914
19915 fi
19916
19917
John Criswell0021c312004-02-13 21:57:29 +000019918echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
19919echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
19920if test "${ac_cv_c_bigendian+set}" = set; then
19921 echo $ECHO_N "(cached) $ECHO_C" >&6
19922else
19923 # See if sys/param.h defines the BYTE_ORDER macro.
19924cat >conftest.$ac_ext <<_ACEOF
19925#line $LINENO "configure"
19926/* confdefs.h. */
19927_ACEOF
19928cat confdefs.h >>conftest.$ac_ext
19929cat >>conftest.$ac_ext <<_ACEOF
19930/* end confdefs.h. */
19931#include <sys/types.h>
19932#include <sys/param.h>
19933
19934int
19935main ()
19936{
19937#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
19938 bogus endian macros
19939#endif
19940
19941 ;
19942 return 0;
19943}
19944_ACEOF
19945rm -f conftest.$ac_objext
19946if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19947 (eval $ac_compile) 2>&5
19948 ac_status=$?
19949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19950 (exit $ac_status); } &&
19951 { ac_try='test -s conftest.$ac_objext'
19952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19953 (eval $ac_try) 2>&5
19954 ac_status=$?
19955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19956 (exit $ac_status); }; }; then
19957 # It does; now see whether it defined to BIG_ENDIAN or not.
19958cat >conftest.$ac_ext <<_ACEOF
19959#line $LINENO "configure"
19960/* confdefs.h. */
19961_ACEOF
19962cat confdefs.h >>conftest.$ac_ext
19963cat >>conftest.$ac_ext <<_ACEOF
19964/* end confdefs.h. */
19965#include <sys/types.h>
19966#include <sys/param.h>
19967
19968int
19969main ()
19970{
19971#if BYTE_ORDER != BIG_ENDIAN
19972 not big endian
19973#endif
19974
19975 ;
19976 return 0;
19977}
19978_ACEOF
19979rm -f conftest.$ac_objext
19980if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19981 (eval $ac_compile) 2>&5
19982 ac_status=$?
19983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19984 (exit $ac_status); } &&
19985 { ac_try='test -s conftest.$ac_objext'
19986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19987 (eval $ac_try) 2>&5
19988 ac_status=$?
19989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19990 (exit $ac_status); }; }; then
19991 ac_cv_c_bigendian=yes
19992else
19993 echo "$as_me: failed program was:" >&5
19994sed 's/^/| /' conftest.$ac_ext >&5
19995
19996ac_cv_c_bigendian=no
19997fi
19998rm -f conftest.$ac_objext conftest.$ac_ext
19999else
20000 echo "$as_me: failed program was:" >&5
20001sed 's/^/| /' conftest.$ac_ext >&5
20002
20003# It does not; compile a test program.
20004if test "$cross_compiling" = yes; then
20005 # try to guess the endianness by grepping values into an object file
20006 ac_cv_c_bigendian=unknown
20007 cat >conftest.$ac_ext <<_ACEOF
20008#line $LINENO "configure"
20009/* confdefs.h. */
20010_ACEOF
20011cat confdefs.h >>conftest.$ac_ext
20012cat >>conftest.$ac_ext <<_ACEOF
20013/* end confdefs.h. */
20014short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20015short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20016void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
20017short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20018short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20019void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
20020int
20021main ()
20022{
20023 _ascii (); _ebcdic ();
20024 ;
20025 return 0;
20026}
20027_ACEOF
20028rm -f conftest.$ac_objext
20029if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20030 (eval $ac_compile) 2>&5
20031 ac_status=$?
20032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20033 (exit $ac_status); } &&
20034 { ac_try='test -s conftest.$ac_objext'
20035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20036 (eval $ac_try) 2>&5
20037 ac_status=$?
20038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20039 (exit $ac_status); }; }; then
20040 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
20041 ac_cv_c_bigendian=yes
20042fi
20043if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
20044 if test "$ac_cv_c_bigendian" = unknown; then
20045 ac_cv_c_bigendian=no
20046 else
20047 # finding both strings is unlikely to happen, but who knows?
20048 ac_cv_c_bigendian=unknown
20049 fi
20050fi
20051else
20052 echo "$as_me: failed program was:" >&5
20053sed 's/^/| /' conftest.$ac_ext >&5
20054
20055fi
20056rm -f conftest.$ac_objext conftest.$ac_ext
20057else
20058 cat >conftest.$ac_ext <<_ACEOF
20059#line $LINENO "configure"
20060/* confdefs.h. */
20061_ACEOF
20062cat confdefs.h >>conftest.$ac_ext
20063cat >>conftest.$ac_ext <<_ACEOF
20064/* end confdefs.h. */
20065int
20066main ()
20067{
20068 /* Are we little or big endian? From Harbison&Steele. */
20069 union
20070 {
20071 long l;
20072 char c[sizeof (long)];
20073 } u;
20074 u.l = 1;
20075 exit (u.c[sizeof (long) - 1] == 1);
20076}
20077_ACEOF
20078rm -f conftest$ac_exeext
20079if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20080 (eval $ac_link) 2>&5
20081 ac_status=$?
20082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20083 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20085 (eval $ac_try) 2>&5
20086 ac_status=$?
20087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20088 (exit $ac_status); }; }; then
20089 ac_cv_c_bigendian=no
20090else
20091 echo "$as_me: program exited with status $ac_status" >&5
20092echo "$as_me: failed program was:" >&5
20093sed 's/^/| /' conftest.$ac_ext >&5
20094
20095( exit $ac_status )
20096ac_cv_c_bigendian=yes
20097fi
20098rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20099fi
20100fi
20101rm -f conftest.$ac_objext conftest.$ac_ext
20102fi
20103echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20104echo "${ECHO_T}$ac_cv_c_bigendian" >&6
20105case $ac_cv_c_bigendian in
20106 yes)
20107 ENDIAN=big
20108 ;;
20109 no)
20110 ENDIAN=little
20111 ;;
20112 *)
20113 { { echo "$as_me:$LINENO: error: unknown endianness
20114presetting ac_cv_c_bigendian=no (or yes) will help" >&5
20115echo "$as_me: error: unknown endianness
20116presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
20117 { (exit 1); exit 1; }; } ;;
20118esac
20119
20120
John Criswell7a73b802003-06-30 21:59:07 +000020121echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
20122echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
20123if test "${ac_cv_cxx_namespaces+set}" = set; then
20124 echo $ECHO_N "(cached) $ECHO_C" >&6
20125else
20126
20127
20128 ac_ext=cc
20129ac_cpp='$CXXCPP $CPPFLAGS'
20130ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20131ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20132ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20133
20134 cat >conftest.$ac_ext <<_ACEOF
20135#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020136/* confdefs.h. */
20137_ACEOF
20138cat confdefs.h >>conftest.$ac_ext
20139cat >>conftest.$ac_ext <<_ACEOF
20140/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020141namespace Outer { namespace Inner { int i = 0; }}
John Criswell7a73b802003-06-30 21:59:07 +000020142int
20143main ()
20144{
20145using namespace Outer::Inner; return i;
20146 ;
20147 return 0;
20148}
20149_ACEOF
20150rm -f conftest.$ac_objext
20151if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20152 (eval $ac_compile) 2>&5
20153 ac_status=$?
20154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20155 (exit $ac_status); } &&
20156 { ac_try='test -s conftest.$ac_objext'
20157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20158 (eval $ac_try) 2>&5
20159 ac_status=$?
20160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20161 (exit $ac_status); }; }; then
20162 ac_cv_cxx_namespaces=yes
20163else
20164 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020165sed 's/^/| /' conftest.$ac_ext >&5
20166
John Criswell7a73b802003-06-30 21:59:07 +000020167ac_cv_cxx_namespaces=no
20168fi
20169rm -f conftest.$ac_objext conftest.$ac_ext
20170 ac_ext=c
20171ac_cpp='$CPP $CPPFLAGS'
20172ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20173ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20174ac_compiler_gnu=$ac_cv_c_compiler_gnu
20175
20176
20177fi
20178echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
20179echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
20180if test "$ac_cv_cxx_namespaces" = yes; then
20181
20182cat >>confdefs.h <<\_ACEOF
20183#define HAVE_NAMESPACES
20184_ACEOF
20185
20186fi
20187
Brian Gaeke90583492003-11-10 03:06:28 +000020188echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
20189echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
20190if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000020191 echo $ECHO_N "(cached) $ECHO_C" >&6
20192else
20193
20194
20195
20196 ac_ext=cc
20197ac_cpp='$CXXCPP $CPPFLAGS'
20198ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20199ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20200ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20201
20202 cat >conftest.$ac_ext <<_ACEOF
20203#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020204/* confdefs.h. */
20205_ACEOF
20206cat confdefs.h >>conftest.$ac_ext
20207cat >>conftest.$ac_ext <<_ACEOF
20208/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020209#include <ext/hash_map>
20210#ifdef HAVE_NAMESPACES
20211using namespace std;
20212#endif
John Criswell7a73b802003-06-30 21:59:07 +000020213int
20214main ()
20215{
Brian Gaeke90583492003-11-10 03:06:28 +000020216hash_map<int, int> t;
John Criswell7a73b802003-06-30 21:59:07 +000020217 ;
20218 return 0;
20219}
20220_ACEOF
20221rm -f conftest.$ac_objext
20222if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20223 (eval $ac_compile) 2>&5
20224 ac_status=$?
20225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20226 (exit $ac_status); } &&
20227 { ac_try='test -s conftest.$ac_objext'
20228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20229 (eval $ac_try) 2>&5
20230 ac_status=$?
20231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20232 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000020233 ac_cv_cxx_have_std_ext_hash_map=yes
John Criswell7a73b802003-06-30 21:59:07 +000020234else
20235 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020236sed 's/^/| /' conftest.$ac_ext >&5
20237
Brian Gaeke90583492003-11-10 03:06:28 +000020238ac_cv_cxx_have_std_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000020239fi
20240rm -f conftest.$ac_objext conftest.$ac_ext
20241 ac_ext=c
20242ac_cpp='$CPP $CPPFLAGS'
20243ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20244ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20245ac_compiler_gnu=$ac_cv_c_compiler_gnu
20246
John Criswell7a73b802003-06-30 21:59:07 +000020247fi
Brian Gaeke90583492003-11-10 03:06:28 +000020248echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
20249echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000020250 HAVE_STD_EXT_HASH_MAP=0
20251 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
20252 then
20253 HAVE_STD_EXT_HASH_MAP=1
Brian Gaeke90583492003-11-10 03:06:28 +000020254 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000020255
Brian Gaeke90583492003-11-10 03:06:28 +000020256 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
20257echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
20258if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
20259 echo $ECHO_N "(cached) $ECHO_C" >&6
20260else
20261
20262
20263
20264 ac_ext=cc
20265ac_cpp='$CXXCPP $CPPFLAGS'
20266ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20267ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20268ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20269
20270 cat >conftest.$ac_ext <<_ACEOF
20271#line $LINENO "configure"
20272/* confdefs.h. */
20273_ACEOF
20274cat confdefs.h >>conftest.$ac_ext
20275cat >>conftest.$ac_ext <<_ACEOF
20276/* end confdefs.h. */
20277#include <ext/hash_map>
20278#ifdef HAVE_NAMESPACES
20279using namespace __gnu_cxx;
20280#endif
20281int
20282main ()
20283{
20284hash_map<int,int> t;
20285 ;
20286 return 0;
20287}
20288_ACEOF
20289rm -f conftest.$ac_objext
20290if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20291 (eval $ac_compile) 2>&5
20292 ac_status=$?
20293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20294 (exit $ac_status); } &&
20295 { ac_try='test -s conftest.$ac_objext'
20296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20297 (eval $ac_try) 2>&5
20298 ac_status=$?
20299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20300 (exit $ac_status); }; }; then
20301 ac_cv_cxx_have_gnu_ext_hash_map=yes
20302else
20303 echo "$as_me: failed program was:" >&5
20304sed 's/^/| /' conftest.$ac_ext >&5
20305
20306ac_cv_cxx_have_gnu_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000020307fi
Brian Gaeke90583492003-11-10 03:06:28 +000020308rm -f conftest.$ac_objext conftest.$ac_ext
20309 ac_ext=c
20310ac_cpp='$CPP $CPPFLAGS'
20311ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20312ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20313ac_compiler_gnu=$ac_cv_c_compiler_gnu
20314
20315fi
20316echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
20317echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000020318 HAVE_GNU_EXT_HASH_MAP=0
20319 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
20320 then
20321 HAVE_GNU_EXT_HASH_MAP=1
Brian Gaeke90583492003-11-10 03:06:28 +000020322 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000020323
Brian Gaeke90583492003-11-10 03:06:28 +000020324 echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
20325echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
20326if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
20327 echo $ECHO_N "(cached) $ECHO_C" >&6
20328else
John Criswell7a73b802003-06-30 21:59:07 +000020329
Brian Gaeke90583492003-11-10 03:06:28 +000020330
20331
20332 ac_ext=cc
20333ac_cpp='$CXXCPP $CPPFLAGS'
20334ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20335ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20336ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20337
20338 cat >conftest.$ac_ext <<_ACEOF
20339#line $LINENO "configure"
20340/* confdefs.h. */
20341_ACEOF
20342cat confdefs.h >>conftest.$ac_ext
20343cat >>conftest.$ac_ext <<_ACEOF
20344/* end confdefs.h. */
20345#include <hash_map>
20346int
20347main ()
20348{
20349hash_map<int,int> t;
20350 ;
20351 return 0;
20352}
20353_ACEOF
20354rm -f conftest.$ac_objext
20355if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20356 (eval $ac_compile) 2>&5
20357 ac_status=$?
20358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20359 (exit $ac_status); } &&
20360 { ac_try='test -s conftest.$ac_objext'
20361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20362 (eval $ac_try) 2>&5
20363 ac_status=$?
20364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20365 (exit $ac_status); }; }; then
20366 ac_cv_cxx_have_global_hash_map=yes
20367else
20368 echo "$as_me: failed program was:" >&5
20369sed 's/^/| /' conftest.$ac_ext >&5
20370
20371ac_cv_cxx_have_global_hash_map=no
20372fi
20373rm -f conftest.$ac_objext conftest.$ac_ext
20374 ac_ext=c
20375ac_cpp='$CPP $CPPFLAGS'
20376ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20377ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20378ac_compiler_gnu=$ac_cv_c_compiler_gnu
20379
20380fi
20381echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
20382echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000020383 HAVE_GLOBAL_HASH_MAP=0
20384 if test "$ac_cv_cxx_have_global_hash_map" = yes
20385 then
20386 HAVE_GLOBAL_HASH_MAP=1
Brian Gaeke90583492003-11-10 03:06:28 +000020387 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000020388
Brian Gaeke90583492003-11-10 03:06:28 +000020389echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
20390echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
20391if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000020392 echo $ECHO_N "(cached) $ECHO_C" >&6
20393else
20394
20395
20396
20397 ac_ext=cc
20398ac_cpp='$CXXCPP $CPPFLAGS'
20399ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20400ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20401ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20402
20403 cat >conftest.$ac_ext <<_ACEOF
20404#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020405/* confdefs.h. */
20406_ACEOF
20407cat confdefs.h >>conftest.$ac_ext
20408cat >>conftest.$ac_ext <<_ACEOF
20409/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020410#include <ext/hash_set>
20411#ifdef HAVE_NAMESPACES
20412using namespace std;
20413#endif
John Criswell7a73b802003-06-30 21:59:07 +000020414int
20415main ()
20416{
Brian Gaeke90583492003-11-10 03:06:28 +000020417hash_set<int> t;
John Criswell7a73b802003-06-30 21:59:07 +000020418 ;
20419 return 0;
20420}
20421_ACEOF
20422rm -f conftest.$ac_objext
20423if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20424 (eval $ac_compile) 2>&5
20425 ac_status=$?
20426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20427 (exit $ac_status); } &&
20428 { ac_try='test -s conftest.$ac_objext'
20429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20430 (eval $ac_try) 2>&5
20431 ac_status=$?
20432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20433 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000020434 ac_cv_cxx_have_std_ext_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000020435else
20436 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020437sed 's/^/| /' conftest.$ac_ext >&5
20438
Brian Gaeke90583492003-11-10 03:06:28 +000020439ac_cv_cxx_have_std_ext_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000020440fi
20441rm -f conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000020442 ac_ext=c
20443ac_cpp='$CPP $CPPFLAGS'
20444ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20445ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20446ac_compiler_gnu=$ac_cv_c_compiler_gnu
20447
20448fi
20449echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
20450echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000020451 HAVE_STD_EXT_HASH_SET=0
20452 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
20453 then
20454 HAVE_STD_EXT_HASH_SET=1
Brian Gaeke90583492003-11-10 03:06:28 +000020455 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000020456
Brian Gaeke90583492003-11-10 03:06:28 +000020457 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
20458echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
20459if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
20460 echo $ECHO_N "(cached) $ECHO_C" >&6
20461else
20462
20463
20464
20465 ac_ext=cc
20466ac_cpp='$CXXCPP $CPPFLAGS'
20467ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20468ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20469ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20470
John Criswell7a73b802003-06-30 21:59:07 +000020471 cat >conftest.$ac_ext <<_ACEOF
20472#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020473/* confdefs.h. */
20474_ACEOF
20475cat confdefs.h >>conftest.$ac_ext
20476cat >>conftest.$ac_ext <<_ACEOF
20477/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020478#include <ext/hash_set>
20479#ifdef HAVE_NAMESPACES
20480using namespace __gnu_cxx;
20481#endif
John Criswell7a73b802003-06-30 21:59:07 +000020482int
20483main ()
20484{
Brian Gaeke90583492003-11-10 03:06:28 +000020485hash_set<int> t;
20486 ;
20487 return 0;
20488}
20489_ACEOF
20490rm -f conftest.$ac_objext
20491if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20492 (eval $ac_compile) 2>&5
20493 ac_status=$?
20494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20495 (exit $ac_status); } &&
20496 { ac_try='test -s conftest.$ac_objext'
20497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20498 (eval $ac_try) 2>&5
20499 ac_status=$?
20500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20501 (exit $ac_status); }; }; then
20502 ac_cv_cxx_have_gnu_ext_hash_set=yes
20503else
20504 echo "$as_me: failed program was:" >&5
20505sed 's/^/| /' conftest.$ac_ext >&5
20506
20507ac_cv_cxx_have_gnu_ext_hash_set=no
20508fi
20509rm -f conftest.$ac_objext conftest.$ac_ext
20510 ac_ext=c
20511ac_cpp='$CPP $CPPFLAGS'
20512ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20513ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20514ac_compiler_gnu=$ac_cv_c_compiler_gnu
20515
20516fi
20517echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
20518echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000020519 HAVE_GNU_EXT_HASH_SET=0
20520 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
20521 then
20522 HAVE_GNU_EXT_HASH_SET=1
Brian Gaeke90583492003-11-10 03:06:28 +000020523 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000020524
Brian Gaeke90583492003-11-10 03:06:28 +000020525 echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
20526echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
20527if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
20528 echo $ECHO_N "(cached) $ECHO_C" >&6
20529else
20530
20531
20532
20533 ac_ext=cc
20534ac_cpp='$CXXCPP $CPPFLAGS'
20535ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20536ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20537ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20538
20539 cat >conftest.$ac_ext <<_ACEOF
20540#line $LINENO "configure"
20541/* confdefs.h. */
20542_ACEOF
20543cat confdefs.h >>conftest.$ac_ext
20544cat >>conftest.$ac_ext <<_ACEOF
20545/* end confdefs.h. */
20546#include <hash_set>
20547int
20548main ()
20549{
John Criswell7a73b802003-06-30 21:59:07 +000020550hash_set<int> t; return 0;
20551 ;
20552 return 0;
20553}
20554_ACEOF
20555rm -f conftest.$ac_objext
20556if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20557 (eval $ac_compile) 2>&5
20558 ac_status=$?
20559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20560 (exit $ac_status); } &&
20561 { ac_try='test -s conftest.$ac_objext'
20562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20563 (eval $ac_try) 2>&5
20564 ac_status=$?
20565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20566 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000020567 ac_cv_cxx_have_global_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000020568else
20569 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020570sed 's/^/| /' conftest.$ac_ext >&5
20571
Brian Gaeke90583492003-11-10 03:06:28 +000020572ac_cv_cxx_have_global_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000020573fi
20574rm -f conftest.$ac_objext conftest.$ac_ext
20575 ac_ext=c
20576ac_cpp='$CPP $CPPFLAGS'
20577ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20578ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20579ac_compiler_gnu=$ac_cv_c_compiler_gnu
20580
John Criswell7a73b802003-06-30 21:59:07 +000020581fi
Brian Gaeke90583492003-11-10 03:06:28 +000020582echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
20583echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000020584 HAVE_GLOBAL_HASH_SET=0
20585 if test "$ac_cv_cxx_have_global_hash_set" = yes
20586 then
20587 HAVE_GLOBAL_HASH_SET=1
Brian Gaeke90583492003-11-10 03:06:28 +000020588 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000020589
John Criswell7a73b802003-06-30 21:59:07 +000020590echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
20591echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
20592if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
20593 echo $ECHO_N "(cached) $ECHO_C" >&6
20594else
20595
20596
20597
20598 ac_ext=cc
20599ac_cpp='$CXXCPP $CPPFLAGS'
20600ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20601ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20602ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20603
20604 cat >conftest.$ac_ext <<_ACEOF
20605#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020606/* confdefs.h. */
20607_ACEOF
20608cat confdefs.h >>conftest.$ac_ext
20609cat >>conftest.$ac_ext <<_ACEOF
20610/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020611#include <iterator>
20612#ifdef HAVE_NAMESPACES
20613using namespace std;
20614#endif
John Criswell7a73b802003-06-30 21:59:07 +000020615int
20616main ()
20617{
20618iterator<int,int,int> t; return 0;
20619 ;
20620 return 0;
20621}
20622_ACEOF
20623rm -f conftest.$ac_objext
20624if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20625 (eval $ac_compile) 2>&5
20626 ac_status=$?
20627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20628 (exit $ac_status); } &&
20629 { ac_try='test -s conftest.$ac_objext'
20630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20631 (eval $ac_try) 2>&5
20632 ac_status=$?
20633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20634 (exit $ac_status); }; }; then
20635 ac_cv_cxx_have_std_iterator=yes
20636else
20637 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020638sed 's/^/| /' conftest.$ac_ext >&5
20639
John Criswell7a73b802003-06-30 21:59:07 +000020640ac_cv_cxx_have_std_iterator=no
20641fi
20642rm -f conftest.$ac_objext conftest.$ac_ext
20643 ac_ext=c
20644ac_cpp='$CPP $CPPFLAGS'
20645ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20646ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20647ac_compiler_gnu=$ac_cv_c_compiler_gnu
20648
20649
20650fi
20651echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
20652echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
Brian Gaeke295d4b82004-02-23 18:16:06 +000020653HAVE_STD_ITERATOR=0
20654if test "$ac_cv_cxx_have_std_iterator" = yes
20655then
20656 HAVE_STD_ITERATOR=1
John Criswell7a73b802003-06-30 21:59:07 +000020657fi
20658
20659echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
20660echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
20661if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
20662 echo $ECHO_N "(cached) $ECHO_C" >&6
20663else
20664
20665
20666
20667 ac_ext=cc
20668ac_cpp='$CXXCPP $CPPFLAGS'
20669ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20670ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20671ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20672
20673 cat >conftest.$ac_ext <<_ACEOF
20674#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020675/* confdefs.h. */
20676_ACEOF
20677cat confdefs.h >>conftest.$ac_ext
20678cat >>conftest.$ac_ext <<_ACEOF
20679/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020680#include <iterator>
20681#ifdef HAVE_NAMESPACES
20682using namespace std;
20683#endif
John Criswell7a73b802003-06-30 21:59:07 +000020684int
20685main ()
20686{
John Criswellc78022e2003-07-29 19:11:58 +000020687bidirectional_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000020688 ;
20689 return 0;
20690}
20691_ACEOF
20692rm -f conftest.$ac_objext
20693if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20694 (eval $ac_compile) 2>&5
20695 ac_status=$?
20696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20697 (exit $ac_status); } &&
20698 { ac_try='test -s conftest.$ac_objext'
20699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20700 (eval $ac_try) 2>&5
20701 ac_status=$?
20702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20703 (exit $ac_status); }; }; then
20704 ac_cv_cxx_have_bi_iterator=yes
20705else
20706 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020707sed 's/^/| /' conftest.$ac_ext >&5
20708
John Criswell7a73b802003-06-30 21:59:07 +000020709ac_cv_cxx_have_bi_iterator=no
20710fi
20711rm -f conftest.$ac_objext conftest.$ac_ext
20712 ac_ext=c
20713ac_cpp='$CPP $CPPFLAGS'
20714ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20715ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20716ac_compiler_gnu=$ac_cv_c_compiler_gnu
20717
20718
20719fi
20720echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
20721echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
Brian Gaeke295d4b82004-02-23 18:16:06 +000020722HAVE_BI_ITERATOR=0
20723if test "$ac_cv_cxx_have_bi_iterator" = yes
20724then
20725 HAVE_BI_ITERATOR=1
John Criswell7a73b802003-06-30 21:59:07 +000020726fi
20727
20728echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
20729echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
20730if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
20731 echo $ECHO_N "(cached) $ECHO_C" >&6
20732else
20733
20734
20735
20736 ac_ext=cc
20737ac_cpp='$CXXCPP $CPPFLAGS'
20738ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20739ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20740ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20741
20742 cat >conftest.$ac_ext <<_ACEOF
20743#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020744/* confdefs.h. */
20745_ACEOF
20746cat confdefs.h >>conftest.$ac_ext
20747cat >>conftest.$ac_ext <<_ACEOF
20748/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020749#include <iterator>
20750#ifdef HAVE_NAMESPACES
20751using namespace std;
20752#endif
John Criswell7a73b802003-06-30 21:59:07 +000020753int
20754main ()
20755{
John Criswellc78022e2003-07-29 19:11:58 +000020756forward_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000020757 ;
20758 return 0;
20759}
20760_ACEOF
20761rm -f conftest.$ac_objext
20762if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20763 (eval $ac_compile) 2>&5
20764 ac_status=$?
20765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20766 (exit $ac_status); } &&
20767 { ac_try='test -s conftest.$ac_objext'
20768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20769 (eval $ac_try) 2>&5
20770 ac_status=$?
20771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20772 (exit $ac_status); }; }; then
20773 ac_cv_cxx_have_fwd_iterator=yes
20774else
20775 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020776sed 's/^/| /' conftest.$ac_ext >&5
20777
John Criswell7a73b802003-06-30 21:59:07 +000020778ac_cv_cxx_have_fwd_iterator=no
20779fi
20780rm -f conftest.$ac_objext conftest.$ac_ext
20781 ac_ext=c
20782ac_cpp='$CPP $CPPFLAGS'
20783ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20784ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20785ac_compiler_gnu=$ac_cv_c_compiler_gnu
20786
20787
20788fi
20789echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
20790echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
Brian Gaeke295d4b82004-02-23 18:16:06 +000020791HAVE_FWD_ITERATOR=0
20792if test "$ac_cv_cxx_have_fwd_iterator" = yes
20793then
20794 HAVE_FWD_ITERATOR=1
John Criswell7a73b802003-06-30 21:59:07 +000020795fi
20796
20797
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020798
20799echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
20800echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6
20801if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
20802 echo $ECHO_N "(cached) $ECHO_C" >&6
20803else
20804 ac_ext=cc
20805ac_cpp='$CXXCPP $CPPFLAGS'
20806ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20807ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20808ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20809
20810 cat >conftest.$ac_ext <<_ACEOF
20811#line $LINENO "configure"
20812/* confdefs.h. */
20813_ACEOF
20814cat confdefs.h >>conftest.$ac_ext
20815cat >>conftest.$ac_ext <<_ACEOF
20816/* end confdefs.h. */
20817#include <math.h>
20818 int foo(float f) {return isnan(f);}
20819_ACEOF
20820rm -f conftest.$ac_objext
20821if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20822 (eval $ac_compile) 2>&5
20823 ac_status=$?
20824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20825 (exit $ac_status); } &&
20826 { ac_try='test -s conftest.$ac_objext'
20827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20828 (eval $ac_try) 2>&5
20829 ac_status=$?
20830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20831 (exit $ac_status); }; }; then
20832 ac_cv_func_isnan_in_math_h=yes
20833else
20834 echo "$as_me: failed program was:" >&5
20835sed 's/^/| /' conftest.$ac_ext >&5
20836
20837ac_cv_func_isnan_in_math_h=no
20838fi
20839rm -f conftest.$ac_objext conftest.$ac_ext
20840 ac_ext=c
20841ac_cpp='$CPP $CPPFLAGS'
20842ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20843ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20844ac_compiler_gnu=$ac_cv_c_compiler_gnu
20845
20846fi
20847echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
20848echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6
20849 if test "$ac_cv_func_isnan_in_math_h" = "yes"
20850 then
20851
20852cat >>confdefs.h <<\_ACEOF
20853#define HAVE_ISNAN_IN_MATH_H 1
20854_ACEOF
20855
20856 fi
20857echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
20858echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6
20859if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
20860 echo $ECHO_N "(cached) $ECHO_C" >&6
20861else
20862 ac_ext=cc
20863ac_cpp='$CXXCPP $CPPFLAGS'
20864ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20865ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20866ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20867
20868 cat >conftest.$ac_ext <<_ACEOF
20869#line $LINENO "configure"
20870/* confdefs.h. */
20871_ACEOF
20872cat confdefs.h >>conftest.$ac_ext
20873cat >>conftest.$ac_ext <<_ACEOF
20874/* end confdefs.h. */
20875#include <cmath>
20876 int foo(float f) {return isnan(f);}
20877_ACEOF
20878rm -f conftest.$ac_objext
20879if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20880 (eval $ac_compile) 2>&5
20881 ac_status=$?
20882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20883 (exit $ac_status); } &&
20884 { ac_try='test -s conftest.$ac_objext'
20885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20886 (eval $ac_try) 2>&5
20887 ac_status=$?
20888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20889 (exit $ac_status); }; }; then
20890 ac_cv_func_isnan_in_cmath=yes
20891else
20892 echo "$as_me: failed program was:" >&5
20893sed 's/^/| /' conftest.$ac_ext >&5
20894
20895ac_cv_func_isnan_in_cmath=no
20896fi
20897rm -f conftest.$ac_objext conftest.$ac_ext
20898 ac_ext=c
20899ac_cpp='$CPP $CPPFLAGS'
20900ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20901ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20902ac_compiler_gnu=$ac_cv_c_compiler_gnu
20903
20904fi
20905echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
20906echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6
20907 if test "$ac_cv_func_isnan_in_cmath" = "yes"
20908 then
20909
20910cat >>confdefs.h <<\_ACEOF
20911#define HAVE_ISNAN_IN_CMATH 1
20912_ACEOF
20913
20914 fi
20915echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
20916echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6
20917if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
20918 echo $ECHO_N "(cached) $ECHO_C" >&6
20919else
20920 ac_ext=cc
20921ac_cpp='$CXXCPP $CPPFLAGS'
20922ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20923ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20924ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20925
20926 cat >conftest.$ac_ext <<_ACEOF
20927#line $LINENO "configure"
20928/* confdefs.h. */
20929_ACEOF
20930cat confdefs.h >>conftest.$ac_ext
20931cat >>conftest.$ac_ext <<_ACEOF
20932/* end confdefs.h. */
20933#include <cmath>
20934 using std::isnan; int foo(float f) {return isnan(f);}
20935_ACEOF
20936rm -f conftest.$ac_objext
20937if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20938 (eval $ac_compile) 2>&5
20939 ac_status=$?
20940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20941 (exit $ac_status); } &&
20942 { ac_try='test -s conftest.$ac_objext'
20943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20944 (eval $ac_try) 2>&5
20945 ac_status=$?
20946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20947 (exit $ac_status); }; }; then
20948 ac_cv_func_std_isnan_in_cmath=yes
20949else
20950 echo "$as_me: failed program was:" >&5
20951sed 's/^/| /' conftest.$ac_ext >&5
20952
20953ac_cv_func_std_isnan_in_cmath=no
20954fi
20955rm -f conftest.$ac_objext conftest.$ac_ext
20956 ac_ext=c
20957ac_cpp='$CPP $CPPFLAGS'
20958ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20959ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20960ac_compiler_gnu=$ac_cv_c_compiler_gnu
20961
20962fi
20963echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
20964echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6
20965 if test "$ac_cv_func_std_isnan_in_cmath" = "yes"
20966 then
20967
20968cat >>confdefs.h <<\_ACEOF
20969#define HAVE_STD_ISNAN_IN_CMATH 1
20970_ACEOF
20971
20972 fi
20973
20974
Brian Gaeke52a551d2004-07-21 03:14:12 +000020975echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
20976echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6
20977if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
20978 echo $ECHO_N "(cached) $ECHO_C" >&6
20979else
20980 ac_ext=cc
20981ac_cpp='$CXXCPP $CPPFLAGS'
20982ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20983ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20984ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20985
20986 cat >conftest.$ac_ext <<_ACEOF
20987#line $LINENO "configure"
20988/* confdefs.h. */
20989_ACEOF
20990cat confdefs.h >>conftest.$ac_ext
20991cat >>conftest.$ac_ext <<_ACEOF
20992/* end confdefs.h. */
20993#include <math.h>
20994 int foo(float f) {return isinf(f);}
20995_ACEOF
20996rm -f conftest.$ac_objext
20997if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20998 (eval $ac_compile) 2>&5
20999 ac_status=$?
21000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21001 (exit $ac_status); } &&
21002 { ac_try='test -s conftest.$ac_objext'
21003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21004 (eval $ac_try) 2>&5
21005 ac_status=$?
21006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21007 (exit $ac_status); }; }; then
21008 ac_cv_func_isinf_in_math_h=yes
21009else
21010 echo "$as_me: failed program was:" >&5
21011sed 's/^/| /' conftest.$ac_ext >&5
21012
21013ac_cv_func_isinf_in_math_h=no
21014fi
21015rm -f conftest.$ac_objext conftest.$ac_ext
21016 ac_ext=c
21017ac_cpp='$CPP $CPPFLAGS'
21018ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21019ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21020ac_compiler_gnu=$ac_cv_c_compiler_gnu
21021
21022fi
21023echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
21024echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6
21025 if test "$ac_cv_func_isinf_in_math_h" = "yes"
21026 then
21027
21028cat >>confdefs.h <<\_ACEOF
21029#define HAVE_ISINF_IN_MATH_H 1
21030_ACEOF
21031
21032 fi
21033echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
21034echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6
21035if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
21036 echo $ECHO_N "(cached) $ECHO_C" >&6
21037else
21038 ac_ext=cc
21039ac_cpp='$CXXCPP $CPPFLAGS'
21040ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21041ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21042ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21043
21044 cat >conftest.$ac_ext <<_ACEOF
21045#line $LINENO "configure"
21046/* confdefs.h. */
21047_ACEOF
21048cat confdefs.h >>conftest.$ac_ext
21049cat >>conftest.$ac_ext <<_ACEOF
21050/* end confdefs.h. */
21051#include <cmath>
21052 int foo(float f) {return isinf(f);}
21053_ACEOF
21054rm -f conftest.$ac_objext
21055if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21056 (eval $ac_compile) 2>&5
21057 ac_status=$?
21058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21059 (exit $ac_status); } &&
21060 { ac_try='test -s conftest.$ac_objext'
21061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21062 (eval $ac_try) 2>&5
21063 ac_status=$?
21064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21065 (exit $ac_status); }; }; then
21066 ac_cv_func_isinf_in_cmath=yes
21067else
21068 echo "$as_me: failed program was:" >&5
21069sed 's/^/| /' conftest.$ac_ext >&5
21070
21071ac_cv_func_isinf_in_cmath=no
21072fi
21073rm -f conftest.$ac_objext conftest.$ac_ext
21074 ac_ext=c
21075ac_cpp='$CPP $CPPFLAGS'
21076ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21077ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21078ac_compiler_gnu=$ac_cv_c_compiler_gnu
21079
21080fi
21081echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
21082echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6
21083 if test "$ac_cv_func_isinf_in_cmath" = "yes"
21084 then
21085
21086cat >>confdefs.h <<\_ACEOF
21087#define HAVE_ISINF_IN_CMATH 1
21088_ACEOF
21089
21090 fi
21091echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
21092echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6
21093if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
21094 echo $ECHO_N "(cached) $ECHO_C" >&6
21095else
21096 ac_ext=cc
21097ac_cpp='$CXXCPP $CPPFLAGS'
21098ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21099ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21100ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21101
21102 cat >conftest.$ac_ext <<_ACEOF
21103#line $LINENO "configure"
21104/* confdefs.h. */
21105_ACEOF
21106cat confdefs.h >>conftest.$ac_ext
21107cat >>conftest.$ac_ext <<_ACEOF
21108/* end confdefs.h. */
21109#include <cmath>
21110 using std::isinf; int foo(float f) {return isinf(f);}
21111_ACEOF
21112rm -f conftest.$ac_objext
21113if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21114 (eval $ac_compile) 2>&5
21115 ac_status=$?
21116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21117 (exit $ac_status); } &&
21118 { ac_try='test -s conftest.$ac_objext'
21119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21120 (eval $ac_try) 2>&5
21121 ac_status=$?
21122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21123 (exit $ac_status); }; }; then
21124 ac_cv_func_std_isinf_in_cmath=yes
21125else
21126 echo "$as_me: failed program was:" >&5
21127sed 's/^/| /' conftest.$ac_ext >&5
21128
21129ac_cv_func_std_isinf_in_cmath=no
21130fi
21131rm -f conftest.$ac_objext conftest.$ac_ext
21132 ac_ext=c
21133ac_cpp='$CPP $CPPFLAGS'
21134ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21135ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21136ac_compiler_gnu=$ac_cv_c_compiler_gnu
21137
21138fi
21139echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
21140echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6
21141 if test "$ac_cv_func_std_isinf_in_cmath" = "yes"
21142 then
21143
21144cat >>confdefs.h <<\_ACEOF
21145#define HAVE_STD_ISINF_IN_CMATH 1
21146_ACEOF
21147
21148 fi
Brian Gaeked59a6472004-07-21 03:33:58 +000021149echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
21150echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6
21151if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
21152 echo $ECHO_N "(cached) $ECHO_C" >&6
21153else
21154 ac_ext=cc
21155ac_cpp='$CXXCPP $CPPFLAGS'
21156ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21157ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21158ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21159
21160 cat >conftest.$ac_ext <<_ACEOF
21161#line $LINENO "configure"
21162/* confdefs.h. */
21163_ACEOF
21164cat confdefs.h >>conftest.$ac_ext
21165cat >>conftest.$ac_ext <<_ACEOF
21166/* end confdefs.h. */
21167#include <ieeefp.h>
21168 int foo(float f) {return finite(f);}
21169_ACEOF
21170rm -f conftest.$ac_objext
21171if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21172 (eval $ac_compile) 2>&5
21173 ac_status=$?
21174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21175 (exit $ac_status); } &&
21176 { ac_try='test -s conftest.$ac_objext'
21177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21178 (eval $ac_try) 2>&5
21179 ac_status=$?
21180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21181 (exit $ac_status); }; }; then
21182 ac_cv_func_finite_in_ieeefp_h=yes
21183else
21184 echo "$as_me: failed program was:" >&5
21185sed 's/^/| /' conftest.$ac_ext >&5
21186
21187ac_cv_func_finite_in_ieeefp_h=no
21188fi
21189rm -f conftest.$ac_objext conftest.$ac_ext
21190 ac_ext=c
21191ac_cpp='$CPP $CPPFLAGS'
21192ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21193ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21194ac_compiler_gnu=$ac_cv_c_compiler_gnu
21195
21196fi
21197echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
21198echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6
21199 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes"
21200 then
21201
21202cat >>confdefs.h <<\_ACEOF
21203#define HAVE_FINITE_IN_IEEEFP_H 1
21204_ACEOF
21205
21206 fi
Brian Gaeke52a551d2004-07-21 03:14:12 +000021207
21208
John Criswell7a73b802003-06-30 21:59:07 +000021209# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
21210# for constant arguments. Useless!
21211echo "$as_me:$LINENO: checking for working alloca.h" >&5
21212echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
21213if test "${ac_cv_working_alloca_h+set}" = set; then
21214 echo $ECHO_N "(cached) $ECHO_C" >&6
21215else
21216 cat >conftest.$ac_ext <<_ACEOF
21217#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021218/* confdefs.h. */
21219_ACEOF
21220cat confdefs.h >>conftest.$ac_ext
21221cat >>conftest.$ac_ext <<_ACEOF
21222/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021223#include <alloca.h>
John Criswell7a73b802003-06-30 21:59:07 +000021224int
21225main ()
21226{
21227char *p = (char *) alloca (2 * sizeof (int));
21228 ;
21229 return 0;
21230}
21231_ACEOF
21232rm -f conftest.$ac_objext conftest$ac_exeext
21233if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21234 (eval $ac_link) 2>&5
21235 ac_status=$?
21236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21237 (exit $ac_status); } &&
21238 { ac_try='test -s conftest$ac_exeext'
21239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21240 (eval $ac_try) 2>&5
21241 ac_status=$?
21242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21243 (exit $ac_status); }; }; then
21244 ac_cv_working_alloca_h=yes
21245else
21246 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021247sed 's/^/| /' conftest.$ac_ext >&5
21248
John Criswell7a73b802003-06-30 21:59:07 +000021249ac_cv_working_alloca_h=no
21250fi
21251rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21252fi
21253echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
21254echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
21255if test $ac_cv_working_alloca_h = yes; then
21256
21257cat >>confdefs.h <<\_ACEOF
21258#define HAVE_ALLOCA_H 1
21259_ACEOF
21260
21261fi
21262
21263echo "$as_me:$LINENO: checking for alloca" >&5
21264echo $ECHO_N "checking for alloca... $ECHO_C" >&6
21265if test "${ac_cv_func_alloca_works+set}" = set; then
21266 echo $ECHO_N "(cached) $ECHO_C" >&6
21267else
21268 cat >conftest.$ac_ext <<_ACEOF
21269#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021270/* confdefs.h. */
21271_ACEOF
21272cat confdefs.h >>conftest.$ac_ext
21273cat >>conftest.$ac_ext <<_ACEOF
21274/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021275#ifdef __GNUC__
21276# define alloca __builtin_alloca
21277#else
21278# ifdef _MSC_VER
21279# include <malloc.h>
21280# define alloca _alloca
21281# else
21282# if HAVE_ALLOCA_H
21283# include <alloca.h>
21284# else
21285# ifdef _AIX
21286 #pragma alloca
21287# else
21288# ifndef alloca /* predefined by HP cc +Olibcalls */
21289char *alloca ();
21290# endif
21291# endif
21292# endif
21293# endif
21294#endif
21295
John Criswell7a73b802003-06-30 21:59:07 +000021296int
21297main ()
21298{
21299char *p = (char *) alloca (1);
21300 ;
21301 return 0;
21302}
21303_ACEOF
21304rm -f conftest.$ac_objext conftest$ac_exeext
21305if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21306 (eval $ac_link) 2>&5
21307 ac_status=$?
21308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21309 (exit $ac_status); } &&
21310 { ac_try='test -s conftest$ac_exeext'
21311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21312 (eval $ac_try) 2>&5
21313 ac_status=$?
21314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21315 (exit $ac_status); }; }; then
21316 ac_cv_func_alloca_works=yes
21317else
21318 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021319sed 's/^/| /' conftest.$ac_ext >&5
21320
John Criswell7a73b802003-06-30 21:59:07 +000021321ac_cv_func_alloca_works=no
21322fi
21323rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21324fi
21325echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
21326echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
21327
21328if test $ac_cv_func_alloca_works = yes; then
21329
21330cat >>confdefs.h <<\_ACEOF
21331#define HAVE_ALLOCA 1
21332_ACEOF
21333
21334else
21335 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
21336# that cause trouble. Some versions do not even contain alloca or
21337# contain a buggy version. If you still want to use their alloca,
21338# use ar to extract alloca.o from them instead of compiling alloca.c.
21339
21340ALLOCA=alloca.$ac_objext
21341
21342cat >>confdefs.h <<\_ACEOF
21343#define C_ALLOCA 1
21344_ACEOF
21345
21346
21347echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
21348echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
21349if test "${ac_cv_os_cray+set}" = set; then
21350 echo $ECHO_N "(cached) $ECHO_C" >&6
21351else
21352 cat >conftest.$ac_ext <<_ACEOF
21353#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021354/* confdefs.h. */
21355_ACEOF
21356cat confdefs.h >>conftest.$ac_ext
21357cat >>conftest.$ac_ext <<_ACEOF
21358/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021359#if defined(CRAY) && ! defined(CRAY2)
21360webecray
21361#else
21362wenotbecray
21363#endif
21364
21365_ACEOF
21366if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000021367 $EGREP "webecray" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000021368 ac_cv_os_cray=yes
21369else
21370 ac_cv_os_cray=no
21371fi
21372rm -f conftest*
21373
21374fi
21375echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
21376echo "${ECHO_T}$ac_cv_os_cray" >&6
21377if test $ac_cv_os_cray = yes; then
21378 for ac_func in _getb67 GETB67 getb67; do
21379 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21380echo "$as_me:$LINENO: checking for $ac_func" >&5
21381echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21382if eval "test \"\${$as_ac_var+set}\" = set"; then
21383 echo $ECHO_N "(cached) $ECHO_C" >&6
21384else
21385 cat >conftest.$ac_ext <<_ACEOF
21386#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021387/* confdefs.h. */
21388_ACEOF
21389cat confdefs.h >>conftest.$ac_ext
21390cat >>conftest.$ac_ext <<_ACEOF
21391/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021392/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000021393 which can conflict with char $ac_func (); below.
21394 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21395 <limits.h> exists even on freestanding compilers. */
21396#ifdef __STDC__
21397# include <limits.h>
21398#else
21399# include <assert.h>
21400#endif
John Criswell7a73b802003-06-30 21:59:07 +000021401/* Override any gcc2 internal prototype to avoid an error. */
21402#ifdef __cplusplus
21403extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000021404{
John Criswell7a73b802003-06-30 21:59:07 +000021405#endif
21406/* We use char because int might match the return type of a gcc2
21407 builtin and then its argument prototype would still apply. */
21408char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000021409/* The GNU C library defines this for functions which it implements
21410 to always fail with ENOSYS. Some functions are actually named
21411 something starting with __ and the normal name is an alias. */
21412#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21413choke me
21414#else
John Criswell0c38eaf2003-09-10 15:17:25 +000021415char (*f) () = $ac_func;
21416#endif
21417#ifdef __cplusplus
21418}
John Criswell7a73b802003-06-30 21:59:07 +000021419#endif
21420
John Criswell0c38eaf2003-09-10 15:17:25 +000021421int
21422main ()
21423{
21424return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000021425 ;
21426 return 0;
21427}
21428_ACEOF
21429rm -f conftest.$ac_objext conftest$ac_exeext
21430if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21431 (eval $ac_link) 2>&5
21432 ac_status=$?
21433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21434 (exit $ac_status); } &&
21435 { ac_try='test -s conftest$ac_exeext'
21436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21437 (eval $ac_try) 2>&5
21438 ac_status=$?
21439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21440 (exit $ac_status); }; }; then
21441 eval "$as_ac_var=yes"
21442else
21443 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021444sed 's/^/| /' conftest.$ac_ext >&5
21445
John Criswell7a73b802003-06-30 21:59:07 +000021446eval "$as_ac_var=no"
21447fi
21448rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21449fi
21450echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21451echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21452if test `eval echo '${'$as_ac_var'}'` = yes; then
21453
21454cat >>confdefs.h <<_ACEOF
21455#define CRAY_STACKSEG_END $ac_func
21456_ACEOF
21457
21458 break
21459fi
21460
21461 done
21462fi
21463
21464echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
21465echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
21466if test "${ac_cv_c_stack_direction+set}" = set; then
21467 echo $ECHO_N "(cached) $ECHO_C" >&6
21468else
21469 if test "$cross_compiling" = yes; then
21470 ac_cv_c_stack_direction=0
21471else
21472 cat >conftest.$ac_ext <<_ACEOF
21473#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021474/* confdefs.h. */
21475_ACEOF
21476cat confdefs.h >>conftest.$ac_ext
21477cat >>conftest.$ac_ext <<_ACEOF
21478/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021479int
21480find_stack_direction ()
21481{
21482 static char *addr = 0;
21483 auto char dummy;
21484 if (addr == 0)
21485 {
21486 addr = &dummy;
21487 return find_stack_direction ();
21488 }
21489 else
21490 return (&dummy > addr) ? 1 : -1;
21491}
21492
21493int
21494main ()
21495{
21496 exit (find_stack_direction () < 0);
21497}
21498_ACEOF
21499rm -f conftest$ac_exeext
21500if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21501 (eval $ac_link) 2>&5
21502 ac_status=$?
21503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21504 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21506 (eval $ac_try) 2>&5
21507 ac_status=$?
21508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21509 (exit $ac_status); }; }; then
21510 ac_cv_c_stack_direction=1
21511else
21512 echo "$as_me: program exited with status $ac_status" >&5
21513echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021514sed 's/^/| /' conftest.$ac_ext >&5
21515
John Criswell7a73b802003-06-30 21:59:07 +000021516( exit $ac_status )
21517ac_cv_c_stack_direction=-1
21518fi
John Criswell0c38eaf2003-09-10 15:17:25 +000021519rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021520fi
21521fi
21522echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
21523echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
21524
21525cat >>confdefs.h <<_ACEOF
21526#define STACK_DIRECTION $ac_cv_c_stack_direction
21527_ACEOF
21528
21529
21530fi
21531
John Criswell7a73b802003-06-30 21:59:07 +000021532
21533
21534for ac_header in stdlib.h unistd.h
21535do
21536as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21537if eval "test \"\${$as_ac_Header+set}\" = set"; then
21538 echo "$as_me:$LINENO: checking for $ac_header" >&5
21539echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21540if eval "test \"\${$as_ac_Header+set}\" = set"; then
21541 echo $ECHO_N "(cached) $ECHO_C" >&6
21542fi
21543echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21544echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21545else
21546 # Is the header compilable?
21547echo "$as_me:$LINENO: checking $ac_header usability" >&5
21548echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21549cat >conftest.$ac_ext <<_ACEOF
21550#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021551/* confdefs.h. */
21552_ACEOF
21553cat confdefs.h >>conftest.$ac_ext
21554cat >>conftest.$ac_ext <<_ACEOF
21555/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021556$ac_includes_default
21557#include <$ac_header>
21558_ACEOF
21559rm -f conftest.$ac_objext
21560if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21561 (eval $ac_compile) 2>&5
21562 ac_status=$?
21563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21564 (exit $ac_status); } &&
21565 { ac_try='test -s conftest.$ac_objext'
21566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21567 (eval $ac_try) 2>&5
21568 ac_status=$?
21569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21570 (exit $ac_status); }; }; then
21571 ac_header_compiler=yes
21572else
21573 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021574sed 's/^/| /' conftest.$ac_ext >&5
21575
John Criswell7a73b802003-06-30 21:59:07 +000021576ac_header_compiler=no
21577fi
21578rm -f conftest.$ac_objext conftest.$ac_ext
21579echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21580echo "${ECHO_T}$ac_header_compiler" >&6
21581
21582# Is the header present?
21583echo "$as_me:$LINENO: checking $ac_header presence" >&5
21584echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21585cat >conftest.$ac_ext <<_ACEOF
21586#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021587/* confdefs.h. */
21588_ACEOF
21589cat confdefs.h >>conftest.$ac_ext
21590cat >>conftest.$ac_ext <<_ACEOF
21591/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021592#include <$ac_header>
21593_ACEOF
21594if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21595 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21596 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000021597 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000021598 rm -f conftest.er1
21599 cat conftest.err >&5
21600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21601 (exit $ac_status); } >/dev/null; then
21602 if test -s conftest.err; then
21603 ac_cpp_err=$ac_c_preproc_warn_flag
21604 else
21605 ac_cpp_err=
21606 fi
21607else
21608 ac_cpp_err=yes
21609fi
21610if test -z "$ac_cpp_err"; then
21611 ac_header_preproc=yes
21612else
21613 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021614sed 's/^/| /' conftest.$ac_ext >&5
21615
John Criswell7a73b802003-06-30 21:59:07 +000021616 ac_header_preproc=no
21617fi
21618rm -f conftest.err conftest.$ac_ext
21619echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21620echo "${ECHO_T}$ac_header_preproc" >&6
21621
21622# So? What about this header?
21623case $ac_header_compiler:$ac_header_preproc in
21624 yes:no )
21625 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21626echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21627 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021628echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21629 (
21630 cat <<\_ASBOX
21631## ------------------------------------ ##
21632## Report this to bug-autoconf@gnu.org. ##
21633## ------------------------------------ ##
21634_ASBOX
21635 ) |
21636 sed "s/^/$as_me: WARNING: /" >&2
21637 ;;
John Criswell7a73b802003-06-30 21:59:07 +000021638 no:yes )
21639 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21640echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21641 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21642echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21643 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021644echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21645 (
21646 cat <<\_ASBOX
21647## ------------------------------------ ##
21648## Report this to bug-autoconf@gnu.org. ##
21649## ------------------------------------ ##
21650_ASBOX
21651 ) |
21652 sed "s/^/$as_me: WARNING: /" >&2
21653 ;;
John Criswell7a73b802003-06-30 21:59:07 +000021654esac
21655echo "$as_me:$LINENO: checking for $ac_header" >&5
21656echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21657if eval "test \"\${$as_ac_Header+set}\" = set"; then
21658 echo $ECHO_N "(cached) $ECHO_C" >&6
21659else
21660 eval "$as_ac_Header=$ac_header_preproc"
21661fi
21662echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21663echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21664
21665fi
21666if test `eval echo '${'$as_ac_Header'}'` = yes; then
21667 cat >>confdefs.h <<_ACEOF
21668#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21669_ACEOF
21670
21671fi
21672
21673done
21674
21675
21676for ac_func in getpagesize
21677do
21678as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21679echo "$as_me:$LINENO: checking for $ac_func" >&5
21680echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21681if eval "test \"\${$as_ac_var+set}\" = set"; then
21682 echo $ECHO_N "(cached) $ECHO_C" >&6
21683else
21684 cat >conftest.$ac_ext <<_ACEOF
21685#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021686/* confdefs.h. */
21687_ACEOF
21688cat confdefs.h >>conftest.$ac_ext
21689cat >>conftest.$ac_ext <<_ACEOF
21690/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021691/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000021692 which can conflict with char $ac_func (); below.
21693 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21694 <limits.h> exists even on freestanding compilers. */
21695#ifdef __STDC__
21696# include <limits.h>
21697#else
21698# include <assert.h>
21699#endif
John Criswell7a73b802003-06-30 21:59:07 +000021700/* Override any gcc2 internal prototype to avoid an error. */
21701#ifdef __cplusplus
21702extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000021703{
John Criswell7a73b802003-06-30 21:59:07 +000021704#endif
21705/* We use char because int might match the return type of a gcc2
21706 builtin and then its argument prototype would still apply. */
21707char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000021708/* The GNU C library defines this for functions which it implements
21709 to always fail with ENOSYS. Some functions are actually named
21710 something starting with __ and the normal name is an alias. */
21711#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21712choke me
21713#else
John Criswell0c38eaf2003-09-10 15:17:25 +000021714char (*f) () = $ac_func;
21715#endif
21716#ifdef __cplusplus
21717}
John Criswell7a73b802003-06-30 21:59:07 +000021718#endif
21719
John Criswell0c38eaf2003-09-10 15:17:25 +000021720int
21721main ()
21722{
21723return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000021724 ;
21725 return 0;
21726}
21727_ACEOF
21728rm -f conftest.$ac_objext conftest$ac_exeext
21729if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21730 (eval $ac_link) 2>&5
21731 ac_status=$?
21732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21733 (exit $ac_status); } &&
21734 { ac_try='test -s conftest$ac_exeext'
21735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21736 (eval $ac_try) 2>&5
21737 ac_status=$?
21738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21739 (exit $ac_status); }; }; then
21740 eval "$as_ac_var=yes"
21741else
21742 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021743sed 's/^/| /' conftest.$ac_ext >&5
21744
John Criswell7a73b802003-06-30 21:59:07 +000021745eval "$as_ac_var=no"
21746fi
21747rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21748fi
21749echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21750echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21751if test `eval echo '${'$as_ac_var'}'` = yes; then
21752 cat >>confdefs.h <<_ACEOF
21753#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21754_ACEOF
21755
21756fi
21757done
21758
21759echo "$as_me:$LINENO: checking for working mmap" >&5
21760echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
21761if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
21762 echo $ECHO_N "(cached) $ECHO_C" >&6
21763else
21764 if test "$cross_compiling" = yes; then
21765 ac_cv_func_mmap_fixed_mapped=no
21766else
21767 cat >conftest.$ac_ext <<_ACEOF
21768#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021769/* confdefs.h. */
21770_ACEOF
21771cat confdefs.h >>conftest.$ac_ext
21772cat >>conftest.$ac_ext <<_ACEOF
21773/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021774$ac_includes_default
21775/* malloc might have been renamed as rpl_malloc. */
21776#undef malloc
21777
21778/* Thanks to Mike Haertel and Jim Avera for this test.
21779 Here is a matrix of mmap possibilities:
21780 mmap private not fixed
21781 mmap private fixed at somewhere currently unmapped
21782 mmap private fixed at somewhere already mapped
21783 mmap shared not fixed
21784 mmap shared fixed at somewhere currently unmapped
21785 mmap shared fixed at somewhere already mapped
21786 For private mappings, we should verify that changes cannot be read()
21787 back from the file, nor mmap's back from the file at a different
21788 address. (There have been systems where private was not correctly
21789 implemented like the infamous i386 svr4.0, and systems where the
21790 VM page cache was not coherent with the file system buffer cache
21791 like early versions of FreeBSD and possibly contemporary NetBSD.)
21792 For shared mappings, we should conversely verify that changes get
21793 propagated back to all the places they're supposed to be.
21794
21795 Grep wants private fixed already mapped.
21796 The main things grep needs to know about mmap are:
21797 * does it exist and is it safe to write into the mmap'd area
21798 * how to use it (BSD variants) */
21799
21800#include <fcntl.h>
21801#include <sys/mman.h>
21802
21803#if !STDC_HEADERS && !HAVE_STDLIB_H
21804char *malloc ();
21805#endif
21806
21807/* This mess was copied from the GNU getpagesize.h. */
21808#if !HAVE_GETPAGESIZE
21809/* Assume that all systems that can run configure have sys/param.h. */
21810# if !HAVE_SYS_PARAM_H
21811# define HAVE_SYS_PARAM_H 1
21812# endif
21813
21814# ifdef _SC_PAGESIZE
21815# define getpagesize() sysconf(_SC_PAGESIZE)
21816# else /* no _SC_PAGESIZE */
21817# if HAVE_SYS_PARAM_H
21818# include <sys/param.h>
21819# ifdef EXEC_PAGESIZE
21820# define getpagesize() EXEC_PAGESIZE
21821# else /* no EXEC_PAGESIZE */
21822# ifdef NBPG
21823# define getpagesize() NBPG * CLSIZE
21824# ifndef CLSIZE
21825# define CLSIZE 1
21826# endif /* no CLSIZE */
21827# else /* no NBPG */
21828# ifdef NBPC
21829# define getpagesize() NBPC
21830# else /* no NBPC */
21831# ifdef PAGESIZE
21832# define getpagesize() PAGESIZE
21833# endif /* PAGESIZE */
21834# endif /* no NBPC */
21835# endif /* no NBPG */
21836# endif /* no EXEC_PAGESIZE */
21837# else /* no HAVE_SYS_PARAM_H */
21838# define getpagesize() 8192 /* punt totally */
21839# endif /* no HAVE_SYS_PARAM_H */
21840# endif /* no _SC_PAGESIZE */
21841
21842#endif /* no HAVE_GETPAGESIZE */
21843
21844int
21845main ()
21846{
21847 char *data, *data2, *data3;
21848 int i, pagesize;
21849 int fd;
21850
21851 pagesize = getpagesize ();
21852
21853 /* First, make a file with some known garbage in it. */
21854 data = (char *) malloc (pagesize);
21855 if (!data)
21856 exit (1);
21857 for (i = 0; i < pagesize; ++i)
21858 *(data + i) = rand ();
21859 umask (0);
21860 fd = creat ("conftest.mmap", 0600);
21861 if (fd < 0)
21862 exit (1);
21863 if (write (fd, data, pagesize) != pagesize)
21864 exit (1);
21865 close (fd);
21866
21867 /* Next, try to mmap the file at a fixed address which already has
21868 something else allocated at it. If we can, also make sure that
21869 we see the same garbage. */
21870 fd = open ("conftest.mmap", O_RDWR);
21871 if (fd < 0)
21872 exit (1);
21873 data2 = (char *) malloc (2 * pagesize);
21874 if (!data2)
21875 exit (1);
21876 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
21877 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
21878 MAP_PRIVATE | MAP_FIXED, fd, 0L))
21879 exit (1);
21880 for (i = 0; i < pagesize; ++i)
21881 if (*(data + i) != *(data2 + i))
21882 exit (1);
21883
21884 /* Finally, make sure that changes to the mapped area do not
21885 percolate back to the file as seen by read(). (This is a bug on
21886 some variants of i386 svr4.0.) */
21887 for (i = 0; i < pagesize; ++i)
21888 *(data2 + i) = *(data2 + i) + 1;
21889 data3 = (char *) malloc (pagesize);
21890 if (!data3)
21891 exit (1);
21892 if (read (fd, data3, pagesize) != pagesize)
21893 exit (1);
21894 for (i = 0; i < pagesize; ++i)
21895 if (*(data + i) != *(data3 + i))
21896 exit (1);
21897 close (fd);
21898 exit (0);
21899}
21900_ACEOF
21901rm -f conftest$ac_exeext
21902if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21903 (eval $ac_link) 2>&5
21904 ac_status=$?
21905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21906 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21908 (eval $ac_try) 2>&5
21909 ac_status=$?
21910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21911 (exit $ac_status); }; }; then
21912 ac_cv_func_mmap_fixed_mapped=yes
21913else
21914 echo "$as_me: program exited with status $ac_status" >&5
21915echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021916sed 's/^/| /' conftest.$ac_ext >&5
21917
John Criswell7a73b802003-06-30 21:59:07 +000021918( exit $ac_status )
21919ac_cv_func_mmap_fixed_mapped=no
21920fi
John Criswell0c38eaf2003-09-10 15:17:25 +000021921rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021922fi
21923fi
21924echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
21925echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
21926if test $ac_cv_func_mmap_fixed_mapped = yes; then
21927
21928cat >>confdefs.h <<\_ACEOF
21929#define HAVE_MMAP 1
21930_ACEOF
21931
21932fi
21933rm -f conftest.mmap
21934
Brian Gaeke26be9c52004-01-13 06:43:16 +000021935if test "$ac_cv_func_mmap_fixed_mapped" = "no"
21936then
John Criswellf3ecf3a2004-05-27 00:57:50 +000021937 { echo "$as_me:$LINENO: WARNING: mmap() required but not found" >&5
21938echo "$as_me: WARNING: mmap() required but not found" >&2;}
Brian Gaeke26be9c52004-01-13 06:43:16 +000021939fi
John Criswell7a73b802003-06-30 21:59:07 +000021940echo "$as_me:$LINENO: checking for mmap of files" >&5
21941echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
21942if test "${ac_cv_func_mmap_file+set}" = set; then
21943 echo $ECHO_N "(cached) $ECHO_C" >&6
21944else
21945
21946
21947 ac_ext=c
21948ac_cpp='$CPP $CPPFLAGS'
21949ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21950ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21951ac_compiler_gnu=$ac_cv_c_compiler_gnu
21952
21953 if test "$cross_compiling" = yes; then
John Criswell0c38eaf2003-09-10 15:17:25 +000021954 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
21955See \`config.log' for more details." >&5
21956echo "$as_me: error: cannot run test program while cross compiling
21957See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000021958 { (exit 1); exit 1; }; }
21959else
21960 cat >conftest.$ac_ext <<_ACEOF
21961#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021962/* confdefs.h. */
21963_ACEOF
21964cat confdefs.h >>conftest.$ac_ext
21965cat >>conftest.$ac_ext <<_ACEOF
21966/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021967
John Criswell7a73b802003-06-30 21:59:07 +000021968#ifdef HAVE_SYS_TYPES_H
21969#include <sys/types.h>
21970#endif
21971
John Criswell5ab73462003-10-09 15:44:28 +000021972#ifdef HAVE_SYS_MMAN_H
21973#include <sys/mman.h>
21974#endif
21975
John Criswell7a73b802003-06-30 21:59:07 +000021976#ifdef HAVE_FCNTL_H
21977#include <fcntl.h>
21978#endif
21979
21980 int fd;
21981 int main () {
John Criswell5ab73462003-10-09 15:44:28 +000021982 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 +000021983_ACEOF
21984rm -f conftest$ac_exeext
21985if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21986 (eval $ac_link) 2>&5
21987 ac_status=$?
21988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21989 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21991 (eval $ac_try) 2>&5
21992 ac_status=$?
21993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21994 (exit $ac_status); }; }; then
21995 ac_cv_func_mmap_file=yes
21996else
21997 echo "$as_me: program exited with status $ac_status" >&5
21998echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021999sed 's/^/| /' conftest.$ac_ext >&5
22000
John Criswell7a73b802003-06-30 21:59:07 +000022001( exit $ac_status )
22002ac_cv_func_mmap_file=no
22003fi
John Criswell0c38eaf2003-09-10 15:17:25 +000022004rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000022005fi
22006 ac_ext=c
22007ac_cpp='$CPP $CPPFLAGS'
22008ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22009ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22010ac_compiler_gnu=$ac_cv_c_compiler_gnu
22011
22012
22013fi
22014echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
22015echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
22016if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000022017
22018cat >>confdefs.h <<\_ACEOF
22019#define HAVE_MMAP_FILE
John Criswell7a73b802003-06-30 21:59:07 +000022020_ACEOF
22021
22022 MMAP_FILE=yes
22023
22024fi
22025
Brian Gaeke26be9c52004-01-13 06:43:16 +000022026if test "$ac_cv_func_mmap_file" = "no"
John Criswell7a73b802003-06-30 21:59:07 +000022027then
John Criswellf3ecf3a2004-05-27 00:57:50 +000022028 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
22029echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000022030fi
22031echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
22032echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
22033if test "${ac_cv_header_mmap_anon+set}" = set; then
22034 echo $ECHO_N "(cached) $ECHO_C" >&6
22035else
22036
22037
22038 ac_ext=c
22039ac_cpp='$CPP $CPPFLAGS'
22040ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22041ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22042ac_compiler_gnu=$ac_cv_c_compiler_gnu
22043
22044 cat >conftest.$ac_ext <<_ACEOF
22045#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022046/* confdefs.h. */
22047_ACEOF
22048cat confdefs.h >>conftest.$ac_ext
22049cat >>conftest.$ac_ext <<_ACEOF
22050/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022051#include <sys/mman.h>
22052 #include <unistd.h>
22053 #include <fcntl.h>
John Criswell7a73b802003-06-30 21:59:07 +000022054int
22055main ()
22056{
22057mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
22058 ;
22059 return 0;
22060}
22061_ACEOF
22062rm -f conftest.$ac_objext
22063if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22064 (eval $ac_compile) 2>&5
22065 ac_status=$?
22066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22067 (exit $ac_status); } &&
22068 { ac_try='test -s conftest.$ac_objext'
22069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22070 (eval $ac_try) 2>&5
22071 ac_status=$?
22072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22073 (exit $ac_status); }; }; then
22074 ac_cv_header_mmap_anon=yes
22075else
22076 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022077sed 's/^/| /' conftest.$ac_ext >&5
22078
John Criswell7a73b802003-06-30 21:59:07 +000022079ac_cv_header_mmap_anon=no
22080fi
22081rm -f conftest.$ac_objext conftest.$ac_ext
22082 ac_ext=c
22083ac_cpp='$CPP $CPPFLAGS'
22084ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22085ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22086ac_compiler_gnu=$ac_cv_c_compiler_gnu
22087
22088
22089fi
22090echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
22091echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
22092if test "$ac_cv_header_mmap_anon" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000022093
22094cat >>confdefs.h <<\_ACEOF
22095#define HAVE_MMAP_ANONYMOUS
John Criswell7a73b802003-06-30 21:59:07 +000022096_ACEOF
22097
22098fi
22099
22100echo "$as_me:$LINENO: checking return type of signal handlers" >&5
22101echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
22102if test "${ac_cv_type_signal+set}" = set; then
22103 echo $ECHO_N "(cached) $ECHO_C" >&6
22104else
22105 cat >conftest.$ac_ext <<_ACEOF
22106#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022107/* confdefs.h. */
22108_ACEOF
22109cat confdefs.h >>conftest.$ac_ext
22110cat >>conftest.$ac_ext <<_ACEOF
22111/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022112#include <sys/types.h>
22113#include <signal.h>
22114#ifdef signal
22115# undef signal
22116#endif
22117#ifdef __cplusplus
22118extern "C" void (*signal (int, void (*)(int)))(int);
22119#else
22120void (*signal ()) ();
22121#endif
22122
John Criswell7a73b802003-06-30 21:59:07 +000022123int
22124main ()
22125{
22126int i;
22127 ;
22128 return 0;
22129}
22130_ACEOF
22131rm -f conftest.$ac_objext
22132if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22133 (eval $ac_compile) 2>&5
22134 ac_status=$?
22135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22136 (exit $ac_status); } &&
22137 { ac_try='test -s conftest.$ac_objext'
22138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22139 (eval $ac_try) 2>&5
22140 ac_status=$?
22141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22142 (exit $ac_status); }; }; then
22143 ac_cv_type_signal=void
22144else
22145 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022146sed 's/^/| /' conftest.$ac_ext >&5
22147
John Criswell7a73b802003-06-30 21:59:07 +000022148ac_cv_type_signal=int
22149fi
22150rm -f conftest.$ac_objext conftest.$ac_ext
22151fi
22152echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
22153echo "${ECHO_T}$ac_cv_type_signal" >&6
22154
22155cat >>confdefs.h <<_ACEOF
22156#define RETSIGTYPE $ac_cv_type_signal
22157_ACEOF
22158
22159
22160
22161
22162
22163
22164
Brian Gaekef5261472004-02-20 06:40:57 +000022165
Brian Gaeke9a08b5e2004-04-02 21:26:02 +000022166
John Criswelld6621562004-06-07 14:26:24 +000022167
22168
John Criswell7ed43ad2004-07-19 16:12:29 +000022169for ac_func in getcwd gettimeofday strdup strtoq strtoll backtrace isatty mkstemp getrusage
John Criswell7a73b802003-06-30 21:59:07 +000022170do
22171as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22172echo "$as_me:$LINENO: checking for $ac_func" >&5
22173echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22174if eval "test \"\${$as_ac_var+set}\" = set"; then
22175 echo $ECHO_N "(cached) $ECHO_C" >&6
22176else
22177 cat >conftest.$ac_ext <<_ACEOF
22178#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022179/* confdefs.h. */
22180_ACEOF
22181cat confdefs.h >>conftest.$ac_ext
22182cat >>conftest.$ac_ext <<_ACEOF
22183/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022184/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000022185 which can conflict with char $ac_func (); below.
22186 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22187 <limits.h> exists even on freestanding compilers. */
22188#ifdef __STDC__
22189# include <limits.h>
22190#else
22191# include <assert.h>
22192#endif
John Criswell7a73b802003-06-30 21:59:07 +000022193/* Override any gcc2 internal prototype to avoid an error. */
22194#ifdef __cplusplus
22195extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000022196{
John Criswell7a73b802003-06-30 21:59:07 +000022197#endif
22198/* We use char because int might match the return type of a gcc2
22199 builtin and then its argument prototype would still apply. */
22200char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000022201/* The GNU C library defines this for functions which it implements
22202 to always fail with ENOSYS. Some functions are actually named
22203 something starting with __ and the normal name is an alias. */
22204#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22205choke me
22206#else
John Criswell0c38eaf2003-09-10 15:17:25 +000022207char (*f) () = $ac_func;
22208#endif
22209#ifdef __cplusplus
22210}
John Criswell7a73b802003-06-30 21:59:07 +000022211#endif
22212
John Criswell0c38eaf2003-09-10 15:17:25 +000022213int
22214main ()
22215{
22216return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000022217 ;
22218 return 0;
22219}
22220_ACEOF
22221rm -f conftest.$ac_objext conftest$ac_exeext
22222if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22223 (eval $ac_link) 2>&5
22224 ac_status=$?
22225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22226 (exit $ac_status); } &&
22227 { ac_try='test -s conftest$ac_exeext'
22228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22229 (eval $ac_try) 2>&5
22230 ac_status=$?
22231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22232 (exit $ac_status); }; }; then
22233 eval "$as_ac_var=yes"
22234else
22235 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022236sed 's/^/| /' conftest.$ac_ext >&5
22237
John Criswell7a73b802003-06-30 21:59:07 +000022238eval "$as_ac_var=no"
22239fi
22240rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22241fi
22242echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22243echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22244if test `eval echo '${'$as_ac_var'}'` = yes; then
22245 cat >>confdefs.h <<_ACEOF
22246#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22247_ACEOF
22248
22249fi
22250done
22251
John Criswell7a73b802003-06-30 21:59:07 +000022252echo "$as_me:$LINENO: checking for mprotect" >&5
22253echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
22254if test "${ac_cv_func_mprotect+set}" = set; then
22255 echo $ECHO_N "(cached) $ECHO_C" >&6
22256else
22257 cat >conftest.$ac_ext <<_ACEOF
22258#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022259/* confdefs.h. */
22260_ACEOF
22261cat confdefs.h >>conftest.$ac_ext
22262cat >>conftest.$ac_ext <<_ACEOF
22263/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022264/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000022265 which can conflict with char mprotect (); below.
22266 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22267 <limits.h> exists even on freestanding compilers. */
22268#ifdef __STDC__
22269# include <limits.h>
22270#else
22271# include <assert.h>
22272#endif
John Criswell7a73b802003-06-30 21:59:07 +000022273/* Override any gcc2 internal prototype to avoid an error. */
22274#ifdef __cplusplus
22275extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000022276{
John Criswell7a73b802003-06-30 21:59:07 +000022277#endif
22278/* We use char because int might match the return type of a gcc2
22279 builtin and then its argument prototype would still apply. */
22280char mprotect ();
John Criswell7a73b802003-06-30 21:59:07 +000022281/* The GNU C library defines this for functions which it implements
22282 to always fail with ENOSYS. Some functions are actually named
22283 something starting with __ and the normal name is an alias. */
22284#if defined (__stub_mprotect) || defined (__stub___mprotect)
22285choke me
22286#else
John Criswell0c38eaf2003-09-10 15:17:25 +000022287char (*f) () = mprotect;
22288#endif
22289#ifdef __cplusplus
22290}
John Criswell7a73b802003-06-30 21:59:07 +000022291#endif
22292
John Criswell0c38eaf2003-09-10 15:17:25 +000022293int
22294main ()
22295{
22296return f != mprotect;
John Criswell7a73b802003-06-30 21:59:07 +000022297 ;
22298 return 0;
22299}
22300_ACEOF
22301rm -f conftest.$ac_objext conftest$ac_exeext
22302if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22303 (eval $ac_link) 2>&5
22304 ac_status=$?
22305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22306 (exit $ac_status); } &&
22307 { ac_try='test -s conftest$ac_exeext'
22308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22309 (eval $ac_try) 2>&5
22310 ac_status=$?
22311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22312 (exit $ac_status); }; }; then
22313 ac_cv_func_mprotect=yes
22314else
22315 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022316sed 's/^/| /' conftest.$ac_ext >&5
22317
John Criswell7a73b802003-06-30 21:59:07 +000022318ac_cv_func_mprotect=no
22319fi
22320rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22321fi
22322echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
22323echo "${ECHO_T}$ac_cv_func_mprotect" >&6
22324if test $ac_cv_func_mprotect = yes; then
22325 :
22326else
22327 { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
22328echo "$as_me: error: Function mprotect() required but not found" >&2;}
22329 { (exit 1); exit 1; }; }
22330fi
22331
22332
John Criswellb13092b2003-07-22 21:00:24 +000022333
Brian Gaekeadfe28d2004-07-21 03:50:25 +000022334 echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
22335echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6
John Criswellcb7a1eb2003-11-17 19:46:02 +000022336
22337
22338 ac_ext=c
22339ac_cpp='$CPP $CPPFLAGS'
22340ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22341ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22342ac_compiler_gnu=$ac_cv_c_compiler_gnu
22343
Brian Gaekef91a15c2003-11-18 06:20:41 +000022344 oldcflags="$CFLAGS"
22345 CFLAGS="$CFLAGS -Wl,-R."
John Criswellcb7a1eb2003-11-17 19:46:02 +000022346 cat >conftest.$ac_ext <<_ACEOF
Brian Gaekef91a15c2003-11-18 06:20:41 +000022347int main() { return 0; }
John Criswellcb7a1eb2003-11-17 19:46:02 +000022348_ACEOF
22349rm -f conftest.$ac_objext conftest$ac_exeext
22350if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22351 (eval $ac_link) 2>&5
22352 ac_status=$?
22353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22354 (exit $ac_status); } &&
22355 { ac_try='test -s conftest$ac_exeext'
22356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22357 (eval $ac_try) 2>&5
22358 ac_status=$?
22359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22360 (exit $ac_status); }; }; then
22361 ac_cv_link_use_r=yes
22362else
22363 echo "$as_me: failed program was:" >&5
22364sed 's/^/| /' conftest.$ac_ext >&5
22365
Brian Gaekef91a15c2003-11-18 06:20:41 +000022366ac_cv_link_use_r=no
John Criswellcb7a1eb2003-11-17 19:46:02 +000022367fi
22368rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Brian Gaekef91a15c2003-11-18 06:20:41 +000022369 CFLAGS="$oldcflags"
John Criswellcb7a1eb2003-11-17 19:46:02 +000022370 ac_ext=c
22371ac_cpp='$CPP $CPPFLAGS'
22372ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22373ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22374ac_compiler_gnu=$ac_cv_c_compiler_gnu
22375
Brian Gaekeadfe28d2004-07-21 03:50:25 +000022376 echo "$as_me:$LINENO: result: $ac_cv_link_use_r" >&5
22377echo "${ECHO_T}$ac_cv_link_use_r" >&6
Brian Gaekef91a15c2003-11-18 06:20:41 +000022378 if test "$ac_cv_link_use_r" = yes
John Criswellcb7a1eb2003-11-17 19:46:02 +000022379 then
Brian Gaekef91a15c2003-11-18 06:20:41 +000022380
22381cat >>confdefs.h <<\_ACEOF
John Criswellcb7a1eb2003-11-17 19:46:02 +000022382#define HAVE_LINK_R 1
22383_ACEOF
22384
22385 fi
22386
22387
John Criswell7a73b802003-06-30 21:59:07 +000022388# Check whether --enable-optimized or --disable-optimized was given.
22389if test "${enable_optimized+set}" = set; then
22390 enableval="$enable_optimized"
John Criswell7a73b802003-06-30 21:59:07 +000022391
22392else
John Criswellb13092b2003-07-22 21:00:24 +000022393 enableval=no
John Criswell7a73b802003-06-30 21:59:07 +000022394fi;
John Criswellb13092b2003-07-22 21:00:24 +000022395if test ${enableval} = "no"
22396then
22397 ENABLE_OPTIMIZED=
22398
22399else
22400 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
22401
22402fi
22403
John Criswell55126592003-10-07 21:57:39 +000022404
22405
John Criswell55126592003-10-07 21:57:39 +000022406
Brian Gaekee773b862004-04-16 17:13:44 +000022407 # Check whether --enable-spec95 or --disable-spec95 was given.
John Criswellcf2e9f72004-02-10 22:36:35 +000022408if test "${enable_spec95+set}" = set; then
22409 enableval="$enable_spec95"
Brian Gaekee773b862004-04-16 17:13:44 +000022410 checkresult=$enableval
John Criswellcf2e9f72004-02-10 22:36:35 +000022411else
Brian Gaekee773b862004-04-16 17:13:44 +000022412 checkresult=auto
John Criswellcf2e9f72004-02-10 22:36:35 +000022413fi;
Brian Gaekee773b862004-04-16 17:13:44 +000022414echo "$as_me:$LINENO: checking for spec95 benchmark sources" >&5
22415echo $ECHO_N "checking for spec95 benchmark sources... $ECHO_C" >&6
22416case "$checkresult" in
22417auto|yes)
22418 defaultdir=/home/vadve/shared/benchmarks/spec95/benchspec
22419 if test -d "$defaultdir"
John Criswellcf2e9f72004-02-10 22:36:35 +000022420 then
Brian Gaekee773b862004-04-16 17:13:44 +000022421 SPEC95_ROOT=$defaultdir
John Criswellcf2e9f72004-02-10 22:36:35 +000022422
22423 USE_SPEC95=USE_SPEC95=1
22424
Brian Gaekee773b862004-04-16 17:13:44 +000022425 checkresult="yes, found in $defaultdir"
22426 else
22427 checkresult=no
22428 fi
22429 ;;
22430no)
John Criswellcf2e9f72004-02-10 22:36:35 +000022431
22432
Brian Gaekee773b862004-04-16 17:13:44 +000022433 checkresult=no
22434 ;;
22435*) if test -d "$checkresult"
22436 then
22437 SPEC95_ROOT="$checkresult"
22438
22439 USE_SPEC95=USE_SPEC95=1
22440
22441 checkresult="yes, in $checkresult"
22442 else
22443
22444
22445 checkresult="no, not found in $checkresult"
22446 fi
22447 ;;
22448esac
22449echo "$as_me:$LINENO: result: $checkresult" >&5
22450echo "${ECHO_T}$checkresult" >&6
22451
22452
22453
22454 # Check whether --enable-spec2000 or --disable-spec2000 was given.
22455if test "${enable_spec2000+set}" = set; then
22456 enableval="$enable_spec2000"
22457 checkresult=$enableval
John Criswellcf2e9f72004-02-10 22:36:35 +000022458else
Brian Gaekee773b862004-04-16 17:13:44 +000022459 checkresult=auto
22460fi;
22461echo "$as_me:$LINENO: checking for spec2000 benchmark sources" >&5
22462echo $ECHO_N "checking for spec2000 benchmark sources... $ECHO_C" >&6
22463case "$checkresult" in
22464auto|yes)
22465 defaultdir=/home/vadve/shared/benchmarks/speccpu2000/benchspec
22466 if test -d "$defaultdir"
John Criswellcf2e9f72004-02-10 22:36:35 +000022467 then
Brian Gaekee773b862004-04-16 17:13:44 +000022468 SPEC2000_ROOT=$defaultdir
John Criswellcf2e9f72004-02-10 22:36:35 +000022469
Brian Gaekee773b862004-04-16 17:13:44 +000022470 USE_SPEC2000=USE_SPEC2000=1
John Criswellcf2e9f72004-02-10 22:36:35 +000022471
Brian Gaekee773b862004-04-16 17:13:44 +000022472 checkresult="yes, found in $defaultdir"
22473 else
22474 checkresult=no
22475 fi
22476 ;;
22477no)
John Criswellcf2e9f72004-02-10 22:36:35 +000022478
John Criswellcf2e9f72004-02-10 22:36:35 +000022479
Brian Gaekee773b862004-04-16 17:13:44 +000022480 checkresult=no
22481 ;;
22482*) if test -d "$checkresult"
22483 then
22484 SPEC2000_ROOT="$checkresult"
22485
22486 USE_SPEC2000=USE_SPEC2000=1
22487
22488 checkresult="yes, in $checkresult"
22489 else
22490
22491
22492 checkresult="no, not found in $checkresult"
22493 fi
22494 ;;
22495esac
22496echo "$as_me:$LINENO: result: $checkresult" >&5
22497echo "${ECHO_T}$checkresult" >&6
22498
22499
22500
22501 # Check whether --enable-povray or --disable-povray was given.
John Criswell0538d422004-02-20 22:30:22 +000022502if test "${enable_povray+set}" = set; then
22503 enableval="$enable_povray"
Brian Gaekee773b862004-04-16 17:13:44 +000022504 checkresult=$enableval
John Criswell0538d422004-02-20 22:30:22 +000022505else
Brian Gaekee773b862004-04-16 17:13:44 +000022506 checkresult=auto
John Criswell0538d422004-02-20 22:30:22 +000022507fi;
Brian Gaekee773b862004-04-16 17:13:44 +000022508echo "$as_me:$LINENO: checking for povray benchmark sources" >&5
22509echo $ECHO_N "checking for povray benchmark sources... $ECHO_C" >&6
22510case "$checkresult" in
Chris Lattner95f45c52004-04-14 16:32:09 +000022511auto|yes)
Brian Gaekef66cdf82004-04-13 19:03:49 +000022512 defaultdir=/home/vadve/shared/benchmarks/povray31
Brian Gaekee773b862004-04-16 17:13:44 +000022513 if test -d "$defaultdir"
John Criswell0538d422004-02-20 22:30:22 +000022514 then
Brian Gaekef66cdf82004-04-13 19:03:49 +000022515 POVRAY_ROOT=$defaultdir
John Criswell0538d422004-02-20 22:30:22 +000022516
22517 USE_POVRAY=USE_POVRAY=1
22518
Brian Gaekee773b862004-04-16 17:13:44 +000022519 checkresult="yes, found in $defaultdir"
Brian Gaekef66cdf82004-04-13 19:03:49 +000022520 else
Brian Gaekee773b862004-04-16 17:13:44 +000022521 checkresult=no
Brian Gaekef66cdf82004-04-13 19:03:49 +000022522 fi
22523 ;;
Chris Lattner95f45c52004-04-14 16:32:09 +000022524no)
John Criswell0538d422004-02-20 22:30:22 +000022525
22526
Brian Gaekee773b862004-04-16 17:13:44 +000022527 checkresult=no
Brian Gaekef66cdf82004-04-13 19:03:49 +000022528 ;;
Brian Gaekee773b862004-04-16 17:13:44 +000022529*) if test -d "$checkresult"
Brian Gaekef66cdf82004-04-13 19:03:49 +000022530 then
Brian Gaekee773b862004-04-16 17:13:44 +000022531 POVRAY_ROOT="$checkresult"
John Criswell0538d422004-02-20 22:30:22 +000022532
Brian Gaekef66cdf82004-04-13 19:03:49 +000022533 USE_POVRAY=USE_POVRAY=1
John Criswell0538d422004-02-20 22:30:22 +000022534
Brian Gaekee773b862004-04-16 17:13:44 +000022535 checkresult="yes, in $checkresult"
Brian Gaekef66cdf82004-04-13 19:03:49 +000022536 else
John Criswell0538d422004-02-20 22:30:22 +000022537
John Criswell0538d422004-02-20 22:30:22 +000022538
Brian Gaekee773b862004-04-16 17:13:44 +000022539 checkresult="no, not found in $checkresult"
Brian Gaekef66cdf82004-04-13 19:03:49 +000022540 fi
22541 ;;
22542esac
Brian Gaekee773b862004-04-16 17:13:44 +000022543echo "$as_me:$LINENO: result: $checkresult" >&5
22544echo "${ECHO_T}$checkresult" >&6
22545
22546
John Criswell0538d422004-02-20 22:30:22 +000022547
John Criswell7a73b802003-06-30 21:59:07 +000022548# Check whether --enable-precompiled_bytecode or --disable-precompiled_bytecode was given.
22549if test "${enable_precompiled_bytecode+set}" = set; then
22550 enableval="$enable_precompiled_bytecode"
John Criswell7a73b802003-06-30 21:59:07 +000022551
22552else
John Criswellb13092b2003-07-22 21:00:24 +000022553 enableval=no
John Criswell7a73b802003-06-30 21:59:07 +000022554fi;
John Criswellb13092b2003-07-22 21:00:24 +000022555if test ${enableval} = "no"
22556then
22557 UPB=
John Criswellf02dbf02003-07-22 20:07:49 +000022558
John Criswellb13092b2003-07-22 21:00:24 +000022559else
22560 UPB=USE_PRECOMPILED_BYTECODE=1
22561
22562fi
John Criswellf02dbf02003-07-22 20:07:49 +000022563
John Criswellf02dbf02003-07-22 20:07:49 +000022564# Check whether --enable-llc_diffs or --disable-llc_diffs was given.
22565if test "${enable_llc_diffs+set}" = set; then
22566 enableval="$enable_llc_diffs"
John Criswellf02dbf02003-07-22 20:07:49 +000022567
22568else
John Criswellb13092b2003-07-22 21:00:24 +000022569 enableval=yes
John Criswellf02dbf02003-07-22 20:07:49 +000022570fi;
John Criswellb13092b2003-07-22 21:00:24 +000022571if test ${enableval} = "no"
22572then
22573 DISABLE_LLC_DIFFS=DISABLE_LLC_DIFFS:=1
John Criswellf02dbf02003-07-22 20:07:49 +000022574
John Criswellb13092b2003-07-22 21:00:24 +000022575else
22576 DISABLE_LLC_DIFFS=
22577
22578fi
22579
22580# Check whether --enable-jit or --disable-jit was given.
John Criswell7a73b802003-06-30 21:59:07 +000022581if test "${enable_jit+set}" = set; then
22582 enableval="$enable_jit"
John Criswell7a73b802003-06-30 21:59:07 +000022583
22584else
John Criswellc78022e2003-07-29 19:11:58 +000022585 enableval=default
John Criswell7a73b802003-06-30 21:59:07 +000022586fi;
John Criswellb13092b2003-07-22 21:00:24 +000022587if test ${enableval} = "no"
22588then
22589 JIT=
22590
22591else
John Criswellc78022e2003-07-29 19:11:58 +000022592 case $target in
22593 *i*86*)
22594 JIT=TARGET_HAS_JIT=1
John Criswellb13092b2003-07-22 21:00:24 +000022595
John Criswellc78022e2003-07-29 19:11:58 +000022596 ;;
22597 *sparc*)
22598 JIT=TARGET_HAS_JIT=1
22599
22600 ;;
22601 *)
22602 JIT=
22603
22604 ;;
22605 esac
John Criswellb13092b2003-07-22 21:00:24 +000022606fi
John Criswell7a73b802003-06-30 21:59:07 +000022607
22608
John Criswell7a73b802003-06-30 21:59:07 +000022609# Check whether --with-llvmgccdir or --without-llvmgccdir was given.
22610if test "${with_llvmgccdir+set}" = set; then
22611 withval="$with_llvmgccdir"
22612 LLVMGCCDIR=$withval
22613
22614fi;
Brian Gaekef3b24102003-11-16 18:38:14 +000022615echo "$as_me:$LINENO: checking for llvm-gcc" >&5
22616echo $ECHO_N "checking for llvm-gcc... $ECHO_C" >&6
22617LLVM_GCC_CHECK=no
22618if test -d "$LLVMGCCDIR"
22619then
22620 if test -x "$LLVMGCCDIR/bin/gcc"
22621 then
22622 LLVM_GCC_CHECK="$LLVMGCCDIR/bin/gcc"
22623 fi
22624fi
22625llvmgccwarn=no
22626echo "$as_me:$LINENO: result: $LLVM_GCC_CHECK" >&5
22627echo "${ECHO_T}$LLVM_GCC_CHECK" >&6
22628if test "$LLVM_GCC_CHECK" = "no"
22629then
22630 llvmgccwarn=yes
22631fi
Brian Gaekef3b24102003-11-16 18:38:14 +000022632echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
22633echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
22634LLVM_GCC_SANE=no
22635if test -x "$LLVM_GCC_CHECK"
22636then
22637 cp /dev/null conftest.c
22638 "$LLVM_GCC_CHECK" -S -o - conftest.c | grep implementation > /dev/null 2>&1
22639 if test $? -eq 0
22640 then
22641 LLVM_GCC_SANE=yes
22642 fi
22643 rm conftest.c
Brian Gaeke2f50a042004-01-16 21:31:21 +000022644 llvmcc1path=`"$LLVM_GCC_CHECK" --print-prog-name=cc1`
Brian Gaeke554831c2004-01-21 19:39:29 +000022645 LLVMCC1=$llvmcc1path
Brian Gaeke2f50a042004-01-16 21:31:21 +000022646
22647 llvmcc1pluspath=`"$LLVM_GCC_CHECK" --print-prog-name=cc1plus`
Brian Gaeke554831c2004-01-21 19:39:29 +000022648 LLVMCC1PLUS=$llvmcc1pluspath
Brian Gaeke2f50a042004-01-16 21:31:21 +000022649
Brian Gaekef3b24102003-11-16 18:38:14 +000022650fi
22651echo "$as_me:$LINENO: result: $LLVM_GCC_SANE" >&5
22652echo "${ECHO_T}$LLVM_GCC_SANE" >&6
22653if test "$LLVM_GCC_SANE" = "no"
22654then
22655 llvmgccwarn=yes
22656fi
22657
John Criswellc78022e2003-07-29 19:11:58 +000022658
John Criswell7a73b802003-06-30 21:59:07 +000022659# Check whether --with-bcrepos or --without-bcrepos was given.
22660if test "${with_bcrepos+set}" = set; then
22661 withval="$with_bcrepos"
22662 BCR=$withval
22663
22664else
22665 BCR=/home/vadve/lattner/LLVMPrograms
22666
22667fi;
22668
John Criswellc78022e2003-07-29 19:11:58 +000022669
John Criswell7a73b802003-06-30 21:59:07 +000022670# Check whether --with-papi or --without-papi was given.
22671if test "${with_papi+set}" = set; then
22672 withval="$with_papi"
22673 PAPIDIR=$withval
22674
22675else
John Criswellde00db22003-08-25 16:49:54 +000022676 PAPIDIR=/home/vadve/shared/Sparc/papi-2.3.4.1
John Criswell7a73b802003-06-30 21:59:07 +000022677
22678fi;
22679
Brian Gaeke554831c2004-01-21 19:39:29 +000022680echo "$as_me:$LINENO: checking for shared library suffix" >&5
22681echo $ECHO_N "checking for shared library suffix... $ECHO_C" >&6
22682eval "SHLIBEXT=$shrext"
22683echo "$as_me:$LINENO: result: $SHLIBEXT" >&5
22684echo "${ECHO_T}$SHLIBEXT" >&6
22685SHLIBEXT=$SHLIBEXT
22686
22687
22688cat >>confdefs.h <<_ACEOF
22689#define SHLIBEXT "$SHLIBEXT"
22690_ACEOF
22691
22692
John Criswell7a73b802003-06-30 21:59:07 +000022693cat >confcache <<\_ACEOF
22694# This file is a shell script that caches the results of configure
22695# tests run on this system so they can be shared between configure
22696# scripts and configure runs, see configure's option --config-cache.
22697# It is not useful on other systems. If it contains results you don't
22698# want to keep, you may remove or edit it.
22699#
22700# config.status only pays attention to the cache file if you give it
22701# the --recheck option to rerun configure.
22702#
John Criswell0c38eaf2003-09-10 15:17:25 +000022703# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000022704# loading this file, other *unset* `ac_cv_foo' will be assigned the
22705# following values.
22706
22707_ACEOF
22708
22709# The following way of writing the cache mishandles newlines in values,
22710# but we know of no workaround that is simple, portable, and efficient.
22711# So, don't put newlines in cache variables' values.
22712# Ultrix sh set writes to stderr and can't be redirected directly,
22713# and sets the high bit in the cache file unless we assign to the vars.
22714{
22715 (set) 2>&1 |
22716 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22717 *ac_space=\ *)
22718 # `set' does not quote correctly, so add quotes (double-quote
22719 # substitution turns \\\\ into \\, and sed turns \\ into \).
22720 sed -n \
22721 "s/'/'\\\\''/g;
22722 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22723 ;;
22724 *)
22725 # `set' quotes correctly as required by POSIX, so do not add quotes.
22726 sed -n \
22727 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22728 ;;
22729 esac;
22730} |
22731 sed '
22732 t clear
22733 : clear
22734 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22735 t end
22736 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22737 : end' >>confcache
John Criswell0c38eaf2003-09-10 15:17:25 +000022738if diff $cache_file confcache >/dev/null 2>&1; then :; else
John Criswell7a73b802003-06-30 21:59:07 +000022739 if test -w $cache_file; then
22740 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22741 cat confcache >$cache_file
22742 else
22743 echo "not updating unwritable cache $cache_file"
22744 fi
22745fi
22746rm -f confcache
22747
22748test "x$prefix" = xNONE && prefix=$ac_default_prefix
22749# Let make expand exec_prefix.
22750test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22751
22752# VPATH may cause trouble with some makes, so we remove $(srcdir),
22753# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22754# trailing colons and then remove the whole line if VPATH becomes empty
22755# (actually we leave an empty line to preserve line numbers).
22756if test "x$srcdir" = x.; then
22757 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22758s/:*\$(srcdir):*/:/;
22759s/:*\${srcdir}:*/:/;
22760s/:*@srcdir@:*/:/;
22761s/^\([^=]*=[ ]*\):*/\1/;
22762s/:*$//;
22763s/^[^=]*=[ ]*$//;
22764}'
22765fi
22766
22767DEFS=-DHAVE_CONFIG_H
22768
John Criswell0c38eaf2003-09-10 15:17:25 +000022769ac_libobjs=
22770ac_ltlibobjs=
22771for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22772 # 1. Remove the extension, and $U if already installed.
22773 ac_i=`echo "$ac_i" |
22774 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22775 # 2. Add them.
22776 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22777 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22778done
22779LIBOBJS=$ac_libobjs
22780
22781LTLIBOBJS=$ac_ltlibobjs
22782
22783
John Criswell7a73b802003-06-30 21:59:07 +000022784
22785: ${CONFIG_STATUS=./config.status}
22786ac_clean_files_save=$ac_clean_files
22787ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22788{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22789echo "$as_me: creating $CONFIG_STATUS" >&6;}
22790cat >$CONFIG_STATUS <<_ACEOF
22791#! $SHELL
22792# Generated by $as_me.
22793# Run this file to recreate the current configuration.
22794# Compiler output produced by configure, useful for debugging
22795# configure, is in config.log if it exists.
22796
22797debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000022798ac_cs_recheck=false
22799ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000022800SHELL=\${CONFIG_SHELL-$SHELL}
22801_ACEOF
22802
22803cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022804## --------------------- ##
22805## M4sh Initialization. ##
22806## --------------------- ##
22807
22808# Be Bourne compatible
22809if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22810 emulate sh
22811 NULLCMD=:
John Criswell0c38eaf2003-09-10 15:17:25 +000022812 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22813 # is contrary to our usage. Disable this feature.
22814 alias -g '${1+"$@"}'='"$@"'
John Criswell7a73b802003-06-30 21:59:07 +000022815elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22816 set -o posix
22817fi
22818
John Criswell7a73b802003-06-30 21:59:07 +000022819# Support unset when possible.
22820if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
22821 as_unset=unset
22822else
22823 as_unset=false
22824fi
22825
John Criswell0c38eaf2003-09-10 15:17:25 +000022826
22827# Work around bugs in pre-3.0 UWIN ksh.
22828$as_unset ENV MAIL MAILPATH
22829PS1='$ '
22830PS2='> '
22831PS4='+ '
22832
22833# NLS nuisances.
22834for as_var in \
22835 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22836 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22837 LC_TELEPHONE LC_TIME
22838do
22839 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
22840 eval $as_var=C; export $as_var
22841 else
22842 $as_unset $as_var
22843 fi
22844done
22845
22846# Required to use basename.
22847if expr a : '\(a\)' >/dev/null 2>&1; then
22848 as_expr=expr
22849else
22850 as_expr=false
22851fi
22852
22853if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
22854 as_basename=basename
22855else
22856 as_basename=false
22857fi
John Criswell7a73b802003-06-30 21:59:07 +000022858
22859
22860# Name of the executable.
John Criswell0c38eaf2003-09-10 15:17:25 +000022861as_me=`$as_basename "$0" ||
John Criswell7a73b802003-06-30 21:59:07 +000022862$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22863 X"$0" : 'X\(//\)$' \| \
22864 X"$0" : 'X\(/\)$' \| \
22865 . : '\(.\)' 2>/dev/null ||
22866echo X/"$0" |
22867 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22868 /^X\/\(\/\/\)$/{ s//\1/; q; }
22869 /^X\/\(\/\).*/{ s//\1/; q; }
22870 s/.*/./; q'`
22871
John Criswell0c38eaf2003-09-10 15:17:25 +000022872
John Criswell7a73b802003-06-30 21:59:07 +000022873# PATH needs CR, and LINENO needs CR and PATH.
22874# Avoid depending upon Character Ranges.
22875as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22876as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22877as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22878as_cr_digits='0123456789'
22879as_cr_alnum=$as_cr_Letters$as_cr_digits
22880
22881# The user is always right.
22882if test "${PATH_SEPARATOR+set}" != set; then
John Criswell0c38eaf2003-09-10 15:17:25 +000022883 echo "#! /bin/sh" >conf$$.sh
22884 echo "exit 0" >>conf$$.sh
22885 chmod +x conf$$.sh
22886 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000022887 PATH_SEPARATOR=';'
22888 else
22889 PATH_SEPARATOR=:
22890 fi
John Criswell0c38eaf2003-09-10 15:17:25 +000022891 rm -f conf$$.sh
John Criswell7a73b802003-06-30 21:59:07 +000022892fi
22893
22894
22895 as_lineno_1=$LINENO
22896 as_lineno_2=$LINENO
22897 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22898 test "x$as_lineno_1" != "x$as_lineno_2" &&
22899 test "x$as_lineno_3" = "x$as_lineno_2" || {
22900 # Find who we are. Look in the path if we contain no path at all
22901 # relative or not.
22902 case $0 in
22903 *[\\/]* ) as_myself=$0 ;;
22904 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22905for as_dir in $PATH
22906do
22907 IFS=$as_save_IFS
22908 test -z "$as_dir" && as_dir=.
22909 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22910done
22911
22912 ;;
22913 esac
22914 # We did not find ourselves, most probably we were run as `sh COMMAND'
22915 # in which case we are not to be found in the path.
22916 if test "x$as_myself" = x; then
22917 as_myself=$0
22918 fi
22919 if test ! -f "$as_myself"; then
22920 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22921echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22922 { (exit 1); exit 1; }; }
22923 fi
22924 case $CONFIG_SHELL in
22925 '')
22926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22927for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
22928do
22929 IFS=$as_save_IFS
22930 test -z "$as_dir" && as_dir=.
22931 for as_base in sh bash ksh sh5; do
22932 case $as_dir in
22933 /*)
22934 if ("$as_dir/$as_base" -c '
22935 as_lineno_1=$LINENO
22936 as_lineno_2=$LINENO
22937 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22938 test "x$as_lineno_1" != "x$as_lineno_2" &&
22939 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
John Criswell0c38eaf2003-09-10 15:17:25 +000022940 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
22941 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
John Criswell7a73b802003-06-30 21:59:07 +000022942 CONFIG_SHELL=$as_dir/$as_base
22943 export CONFIG_SHELL
22944 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22945 fi;;
22946 esac
22947 done
22948done
22949;;
22950 esac
22951
22952 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22953 # uniformly replaced by the line number. The first 'sed' inserts a
22954 # line-number line before each line; the second 'sed' does the real
22955 # work. The second script uses 'N' to pair each line-number line
22956 # with the numbered line, and appends trailing '-' during
22957 # substitution so that $LINENO is not a special case at line end.
22958 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22959 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
22960 sed '=' <$as_myself |
22961 sed '
22962 N
22963 s,$,-,
22964 : loop
22965 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22966 t loop
22967 s,-$,,
22968 s,^['$as_cr_digits']*\n,,
22969 ' >$as_me.lineno &&
22970 chmod +x $as_me.lineno ||
22971 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22972echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22973 { (exit 1); exit 1; }; }
22974
22975 # Don't try to exec as it changes $[0], causing all sort of problems
22976 # (the dirname of $[0] is not the place where we might find the
22977 # original and so on. Autoconf is especially sensible to this).
22978 . ./$as_me.lineno
22979 # Exit status is that of the last command.
22980 exit
22981}
22982
22983
22984case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22985 *c*,-n*) ECHO_N= ECHO_C='
22986' ECHO_T=' ' ;;
22987 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
22988 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
22989esac
22990
22991if expr a : '\(a\)' >/dev/null 2>&1; then
22992 as_expr=expr
22993else
22994 as_expr=false
22995fi
22996
22997rm -f conf$$ conf$$.exe conf$$.file
22998echo >conf$$.file
22999if ln -s conf$$.file conf$$ 2>/dev/null; then
23000 # We could just check for DJGPP; but this test a) works b) is more generic
23001 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23002 if test -f conf$$.exe; then
23003 # Don't use ln at all; we don't have any links
23004 as_ln_s='cp -p'
23005 else
23006 as_ln_s='ln -s'
23007 fi
23008elif ln conf$$.file conf$$ 2>/dev/null; then
23009 as_ln_s=ln
23010else
23011 as_ln_s='cp -p'
23012fi
23013rm -f conf$$ conf$$.exe conf$$.file
23014
John Criswell0c38eaf2003-09-10 15:17:25 +000023015if mkdir -p . 2>/dev/null; then
23016 as_mkdir_p=:
23017else
23018 as_mkdir_p=false
23019fi
23020
John Criswell7a73b802003-06-30 21:59:07 +000023021as_executable_p="test -f"
23022
23023# Sed expression to map a string onto a valid CPP name.
23024as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
23025
23026# Sed expression to map a string onto a valid variable name.
23027as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
23028
23029
23030# IFS
23031# We need space, tab and new line, in precisely that order.
23032as_nl='
23033'
23034IFS=" $as_nl"
23035
23036# CDPATH.
John Criswell0c38eaf2003-09-10 15:17:25 +000023037$as_unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000023038
23039exec 6>&1
23040
23041# Open the log real soon, to keep \$[0] and so on meaningful, and to
23042# report actual input values of CONFIG_FILES etc. instead of their
23043# values after options handling. Logging --version etc. is OK.
23044exec 5>>config.log
23045{
23046 echo
23047 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23048## Running $as_me. ##
23049_ASBOX
23050} >&5
23051cat >&5 <<_CSEOF
23052
Chris Lattner95f45c52004-04-14 16:32:09 +000023053This file was extended by [LLVM] $as_me [1.3], which was
John Criswell0c38eaf2003-09-10 15:17:25 +000023054generated by GNU Autoconf 2.57. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000023055
23056 CONFIG_FILES = $CONFIG_FILES
23057 CONFIG_HEADERS = $CONFIG_HEADERS
23058 CONFIG_LINKS = $CONFIG_LINKS
23059 CONFIG_COMMANDS = $CONFIG_COMMANDS
23060 $ $0 $@
23061
23062_CSEOF
23063echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23064echo >&5
23065_ACEOF
23066
23067# Files that config.status was made for.
23068if test -n "$ac_config_files"; then
23069 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23070fi
23071
23072if test -n "$ac_config_headers"; then
23073 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23074fi
23075
23076if test -n "$ac_config_links"; then
23077 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23078fi
23079
23080if test -n "$ac_config_commands"; then
23081 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23082fi
23083
23084cat >>$CONFIG_STATUS <<\_ACEOF
23085
23086ac_cs_usage="\
23087\`$as_me' instantiates files from templates according to the
23088current configuration.
23089
23090Usage: $0 [OPTIONS] [FILE]...
23091
23092 -h, --help print this help, then exit
23093 -V, --version print version number, then exit
John Criswell0c38eaf2003-09-10 15:17:25 +000023094 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000023095 -d, --debug don't remove temporary files
23096 --recheck update $as_me by reconfiguring in the same conditions
23097 --file=FILE[:TEMPLATE]
23098 instantiate the configuration file FILE
23099 --header=FILE[:TEMPLATE]
23100 instantiate the configuration header FILE
23101
23102Configuration files:
23103$config_files
23104
23105Configuration headers:
23106$config_headers
23107
John Criswellc764fbc2003-09-06 15:17:13 +000023108Configuration commands:
23109$config_commands
23110
John Criswell7a73b802003-06-30 21:59:07 +000023111Report bugs to <bug-autoconf@gnu.org>."
23112_ACEOF
23113
23114cat >>$CONFIG_STATUS <<_ACEOF
23115ac_cs_version="\\
Chris Lattner95f45c52004-04-14 16:32:09 +000023116[LLVM] config.status [1.3]
John Criswell0c38eaf2003-09-10 15:17:25 +000023117configured by $0, generated by GNU Autoconf 2.57,
John Criswell7a73b802003-06-30 21:59:07 +000023118 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23119
23120Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
23121Free Software Foundation, Inc.
23122This config.status script is free software; the Free Software Foundation
23123gives unlimited permission to copy, distribute and modify it."
23124srcdir=$srcdir
23125INSTALL="$INSTALL"
23126_ACEOF
23127
23128cat >>$CONFIG_STATUS <<\_ACEOF
23129# If no file are specified by the user, then we need to provide default
23130# value. By we need to know if files were specified by the user.
23131ac_need_defaults=:
23132while test $# != 0
23133do
23134 case $1 in
23135 --*=*)
23136 ac_option=`expr "x$1" : 'x\([^=]*\)='`
23137 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000023138 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000023139 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000023140 -*)
23141 ac_option=$1
23142 ac_optarg=$2
23143 ac_shift=shift
23144 ;;
John Criswell7a73b802003-06-30 21:59:07 +000023145 *) # This is not an option, so the user has probably given explicit
23146 # arguments.
John Criswell0c38eaf2003-09-10 15:17:25 +000023147 ac_option=$1
John Criswell7a73b802003-06-30 21:59:07 +000023148 ac_need_defaults=false;;
23149 esac
23150
John Criswell0c38eaf2003-09-10 15:17:25 +000023151 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000023152 # Handling of the options.
23153_ACEOF
John Criswelld9cd1442003-09-09 20:52:17 +000023154cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023155 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23156 ac_cs_recheck=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000023157 --version | --vers* | -V )
23158 echo "$ac_cs_version"; exit 0 ;;
23159 --he | --h)
23160 # Conflict between --help and --header
23161 { { echo "$as_me:$LINENO: error: ambiguous option: $1
23162Try \`$0 --help' for more information." >&5
23163echo "$as_me: error: ambiguous option: $1
23164Try \`$0 --help' for more information." >&2;}
23165 { (exit 1); exit 1; }; };;
23166 --help | --hel | -h )
23167 echo "$ac_cs_usage"; exit 0 ;;
23168 --debug | --d* | -d )
23169 debug=: ;;
23170 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000023171 $ac_shift
23172 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000023173 ac_need_defaults=false;;
23174 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000023175 $ac_shift
23176 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000023177 ac_need_defaults=false;;
John Criswell0c38eaf2003-09-10 15:17:25 +000023178 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23179 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23180 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000023181
23182 # This is an error.
23183 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23184Try \`$0 --help' for more information." >&5
23185echo "$as_me: error: unrecognized option: $1
23186Try \`$0 --help' for more information." >&2;}
23187 { (exit 1); exit 1; }; } ;;
23188
23189 *) ac_config_targets="$ac_config_targets $1" ;;
23190
23191 esac
23192 shift
23193done
23194
John Criswell0c38eaf2003-09-10 15:17:25 +000023195ac_configure_extra_args=
23196
23197if $ac_cs_silent; then
23198 exec 6>/dev/null
23199 ac_configure_extra_args="$ac_configure_extra_args --silent"
23200fi
23201
23202_ACEOF
23203cat >>$CONFIG_STATUS <<_ACEOF
23204if \$ac_cs_recheck; then
23205 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23206 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23207fi
23208
John Criswell7a73b802003-06-30 21:59:07 +000023209_ACEOF
23210
John Criswellc764fbc2003-09-06 15:17:13 +000023211cat >>$CONFIG_STATUS <<_ACEOF
23212#
23213# INIT-COMMANDS section.
23214#
John Criswell7a73b802003-06-30 21:59:07 +000023215
John Criswellc764fbc2003-09-06 15:17:13 +000023216${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
23217${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common`
John Criswellc764fbc2003-09-06 15:17:13 +000023218${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023219${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023220${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile`
23221${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
John Criswellf424d742003-10-07 21:13:47 +000023222${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvm.py`
23223${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvmdb.py`
John Criswellc764fbc2003-09-06 15:17:13 +000023224${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile`
23225${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile.programs`
John Criswell8a54a1e2004-06-22 21:35:10 +000023226${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile.tests`
John Criswellc764fbc2003-09-06 15:17:13 +000023227${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.Makefile`
23228${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.report`
John Criswellc764fbc2003-09-06 15:17:13 +000023229${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.report`
23230${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.example.Makefile`
23231${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.Makefile`
23232${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.buildrepo.Makefile`
23233${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.Makefile`
23234${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.report`
23235${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.Makefile`
23236${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.report`
23237${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.typesafe.Makefile`
23238${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.gnuplot`
John Criswell878be7d2004-02-24 21:43:38 +000023239${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.vtl.Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023240${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/Makefile`
23241${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile`
John Criswell613758d2003-09-11 18:03:50 +000023242${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile.spec`
Alkis Evlogimenos271143f2004-02-26 04:14:10 +000023243${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile.spec2000`
John Criswellcf2e9f72004-02-10 22:36:35 +000023244${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile.spec95`
John Criswellc764fbc2003-09-06 15:17:13 +000023245${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile`
23246${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile.multisrc`
Misha Brukman811ce9f2003-11-12 22:16:51 +000023247${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in`
23248${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile`
23249${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in`
23250${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile`
23251${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in`
23252${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile`
23253${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in`
23254${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile`
23255${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in`
23256${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile`
23257${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in`
23258${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile`
23259${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in`
John Criswellc764fbc2003-09-06 15:17:13 +000023260${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile`
23261${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile.singlesrc`
Alkis Evlogimenos271143f2004-02-26 04:14:10 +000023262${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023263${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
Brian Gaekec45be042003-10-07 06:01:34 +000023264${srcdir}/autoconf/mkinstalldirs `dirname utils/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023265${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023266
23267_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000023268
23269
23270
23271cat >>$CONFIG_STATUS <<\_ACEOF
23272for ac_config_target in $ac_config_targets
23273do
23274 case "$ac_config_target" in
23275 # Handling of arguments.
23276 "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Brian Gaeke6c3fd812004-02-23 22:07:00 +000023277 "include/Support/DataTypes.h" ) CONFIG_FILES="$CONFIG_FILES include/Support/DataTypes.h" ;;
23278 "include/Support/ThreadSupport.h" ) CONFIG_FILES="$CONFIG_FILES include/Support/ThreadSupport.h" ;;
Brian Gaeke793c5f22004-02-23 18:56:02 +000023279 "include/Support/hash_map" ) CONFIG_FILES="$CONFIG_FILES include/Support/hash_map" ;;
23280 "include/Support/hash_set" ) CONFIG_FILES="$CONFIG_FILES include/Support/hash_set" ;;
Brian Gaeke6c3fd812004-02-23 22:07:00 +000023281 "include/Support/iterator" ) CONFIG_FILES="$CONFIG_FILES include/Support/iterator" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023282 "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
23283 "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023284 "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023285 "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023286 "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
23287 "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
John Criswellf424d742003-10-07 21:13:47 +000023288 "test/QMTest/llvm.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvm.py" ;;
23289 "test/QMTest/llvmdb.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvmdb.py" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023290 "test/Programs/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile" ;;
23291 "test/Programs/Makefile.programs" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile.programs" ;;
John Criswell8a54a1e2004-06-22 21:35:10 +000023292 "test/Programs/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile.tests" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023293 "test/Programs/TEST.aa.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.Makefile" ;;
23294 "test/Programs/TEST.dsgraph.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.report" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023295 "test/Programs/TEST.aa.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.report" ;;
23296 "test/Programs/TEST.example.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.example.Makefile" ;;
23297 "test/Programs/TEST.nightly.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.Makefile" ;;
23298 "test/Programs/TEST.buildrepo.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.buildrepo.Makefile" ;;
23299 "test/Programs/TEST.jit.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.Makefile" ;;
23300 "test/Programs/TEST.nightly.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.report" ;;
23301 "test/Programs/TEST.dsgraph.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.Makefile" ;;
23302 "test/Programs/TEST.jit.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.report" ;;
23303 "test/Programs/TEST.typesafe.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.typesafe.Makefile" ;;
23304 "test/Programs/TEST.dsgraph.gnuplot" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.gnuplot" ;;
John Criswell878be7d2004-02-24 21:43:38 +000023305 "test/Programs/TEST.vtl.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.vtl.Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023306 "test/Programs/External/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/Makefile" ;;
23307 "test/Programs/External/SPEC/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile" ;;
John Criswell613758d2003-09-11 18:03:50 +000023308 "test/Programs/External/SPEC/Makefile.spec" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile.spec" ;;
Alkis Evlogimenos271143f2004-02-26 04:14:10 +000023309 "test/Programs/External/SPEC/Makefile.spec2000" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile.spec2000" ;;
John Criswellcf2e9f72004-02-10 22:36:35 +000023310 "test/Programs/External/SPEC/Makefile.spec95" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile.spec95" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023311 "test/Programs/MultiSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile" ;;
23312 "test/Programs/MultiSource/Makefile.multisrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile.multisrc" ;;
Misha Brukman811ce9f2003-11-12 22:16:51 +000023313 "test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in" ;;
23314 "test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile" ;;
23315 "test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in" ;;
23316 "test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile" ;;
23317 "test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in" ;;
23318 "test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile" ;;
23319 "test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in" ;;
23320 "test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile" ;;
23321 "test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in" ;;
23322 "test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile" ;;
23323 "test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in" ;;
23324 "test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile" ;;
23325 "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 +000023326 "test/Programs/SingleSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile" ;;
23327 "test/Programs/SingleSource/Makefile.singlesrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile.singlesrc" ;;
Alkis Evlogimenos271143f2004-02-26 04:14:10 +000023328 "test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023329 "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
Brian Gaekec45be042003-10-07 06:01:34 +000023330 "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023331 "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
John Criswell7a73b802003-06-30 21:59:07 +000023332 "include/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/Config/config.h" ;;
23333 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23334echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23335 { (exit 1); exit 1; }; };;
23336 esac
23337done
23338
23339# If the user did not use the arguments to specify the items to instantiate,
23340# then the envvar interface is used. Set only those that are not.
23341# We use the long form for the default assignment because of an extremely
23342# bizarre bug on SunOS 4.1.3.
23343if $ac_need_defaults; then
23344 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23345 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000023346 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000023347fi
23348
John Criswell0c38eaf2003-09-10 15:17:25 +000023349# Have a temporary directory for convenience. Make it in the build tree
23350# simply because there is no reason to put it here, and in addition,
23351# creating and moving files from /tmp can sometimes cause problems.
John Criswell7a73b802003-06-30 21:59:07 +000023352# Create a temporary directory, and hook for its removal unless debugging.
23353$debug ||
23354{
23355 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23356 trap '{ (exit 1); exit 1; }' 1 2 13 15
23357}
23358
23359# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000023360
John Criswell7a73b802003-06-30 21:59:07 +000023361{
John Criswell0c38eaf2003-09-10 15:17:25 +000023362 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000023363 test -n "$tmp" && test -d "$tmp"
23364} ||
23365{
John Criswell0c38eaf2003-09-10 15:17:25 +000023366 tmp=./confstat$$-$RANDOM
John Criswell7a73b802003-06-30 21:59:07 +000023367 (umask 077 && mkdir $tmp)
23368} ||
23369{
John Criswell0c38eaf2003-09-10 15:17:25 +000023370 echo "$me: cannot create a temporary directory in ." >&2
John Criswell7a73b802003-06-30 21:59:07 +000023371 { (exit 1); exit 1; }
23372}
23373
23374_ACEOF
23375
23376cat >>$CONFIG_STATUS <<_ACEOF
23377
23378#
23379# CONFIG_FILES section.
23380#
23381
23382# No need to generate the scripts if there are no CONFIG_FILES.
23383# This happens for instance when ./config.status config.h
23384if test -n "\$CONFIG_FILES"; then
23385 # Protect against being on the right side of a sed subst in config.status.
23386 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23387 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23388s,@SHELL@,$SHELL,;t t
23389s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23390s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23391s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23392s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23393s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23394s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23395s,@exec_prefix@,$exec_prefix,;t t
23396s,@prefix@,$prefix,;t t
23397s,@program_transform_name@,$program_transform_name,;t t
23398s,@bindir@,$bindir,;t t
23399s,@sbindir@,$sbindir,;t t
23400s,@libexecdir@,$libexecdir,;t t
23401s,@datadir@,$datadir,;t t
23402s,@sysconfdir@,$sysconfdir,;t t
23403s,@sharedstatedir@,$sharedstatedir,;t t
23404s,@localstatedir@,$localstatedir,;t t
23405s,@libdir@,$libdir,;t t
23406s,@includedir@,$includedir,;t t
23407s,@oldincludedir@,$oldincludedir,;t t
23408s,@infodir@,$infodir,;t t
23409s,@mandir@,$mandir,;t t
23410s,@build_alias@,$build_alias,;t t
23411s,@host_alias@,$host_alias,;t t
23412s,@target_alias@,$target_alias,;t t
23413s,@DEFS@,$DEFS,;t t
23414s,@ECHO_C@,$ECHO_C,;t t
23415s,@ECHO_N@,$ECHO_N,;t t
23416s,@ECHO_T@,$ECHO_T,;t t
23417s,@LIBS@,$LIBS,;t t
John Criswell12399a12003-09-30 15:55:44 +000023418s,@subdirs@,$subdirs,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023419s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23420s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23421s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23422s,@build@,$build,;t t
23423s,@build_cpu@,$build_cpu,;t t
23424s,@build_vendor@,$build_vendor,;t t
23425s,@build_os@,$build_os,;t t
23426s,@host@,$host,;t t
23427s,@host_cpu@,$host_cpu,;t t
23428s,@host_vendor@,$host_vendor,;t t
23429s,@host_os@,$host_os,;t t
23430s,@target@,$target,;t t
23431s,@target_cpu@,$target_cpu,;t t
23432s,@target_vendor@,$target_vendor,;t t
23433s,@target_os@,$target_os,;t t
23434s,@OS@,$OS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023435s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
John Criswell76595452003-07-01 22:07:39 +000023436s,@ARCH@,$ARCH,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023437s,@CXX@,$CXX,;t t
23438s,@CXXFLAGS@,$CXXFLAGS,;t t
23439s,@LDFLAGS@,$LDFLAGS,;t t
23440s,@CPPFLAGS@,$CPPFLAGS,;t t
23441s,@ac_ct_CXX@,$ac_ct_CXX,;t t
23442s,@EXEEXT@,$EXEEXT,;t t
23443s,@OBJEXT@,$OBJEXT,;t t
23444s,@CC@,$CC,;t t
23445s,@CFLAGS@,$CFLAGS,;t t
23446s,@ac_ct_CC@,$ac_ct_CC,;t t
23447s,@CPP@,$CPP,;t t
23448s,@ifGNUmake@,$ifGNUmake,;t t
23449s,@LEX@,$LEX,;t t
23450s,@LEXLIB@,$LEXLIB,;t t
23451s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
23452s,@YACC@,$YACC,;t t
Brian Gaeke12810632004-01-13 06:52:10 +000023453s,@BISON@,$BISON,;t t
John Criswell47fdd832003-07-14 16:52:07 +000023454s,@EGREP@,$EGREP,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023455s,@LN_S@,$LN_S,;t t
23456s,@ECHO@,$ECHO,;t t
John Criswell47fdd832003-07-14 16:52:07 +000023457s,@AR@,$AR,;t t
23458s,@ac_ct_AR@,$ac_ct_AR,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023459s,@RANLIB@,$RANLIB,;t t
23460s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23461s,@STRIP@,$STRIP,;t t
23462s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
John Criswell47fdd832003-07-14 16:52:07 +000023463s,@CXXCPP@,$CXXCPP,;t t
23464s,@F77@,$F77,;t t
23465s,@FFLAGS@,$FFLAGS,;t t
23466s,@ac_ct_F77@,$ac_ct_F77,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023467s,@LIBTOOL@,$LIBTOOL,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023468s,@DOT@,$DOT,;t t
23469s,@ETAGS@,$ETAGS,;t t
Brian Gaekeafa3fbf2004-01-22 21:55:02 +000023470s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
John Criswellde00db22003-08-25 16:49:54 +000023471s,@PYTHON@,$PYTHON,;t t
23472s,@QMTEST@,$QMTEST,;t t
Brian Gaekec9a410c2004-02-23 21:30:37 +000023473s,@HAVE_PTHREAD_MUTEX_LOCK@,$HAVE_PTHREAD_MUTEX_LOCK,;t t
Brian Gaeke6c3fd812004-02-23 22:07:00 +000023474s,@INCLUDE_SYS_TYPES_H@,$INCLUDE_SYS_TYPES_H,;t t
23475s,@INCLUDE_INTTYPES_H@,$INCLUDE_INTTYPES_H,;t t
John Criswell7ed43ad2004-07-19 16:12:29 +000023476s,@INCLUDE_STDINT_H@,$INCLUDE_STDINT_H,;t t
John Criswell0021c312004-02-13 21:57:29 +000023477s,@ENDIAN@,$ENDIAN,;t t
Brian Gaeke793c5f22004-02-23 18:56:02 +000023478s,@HAVE_STD_EXT_HASH_MAP@,$HAVE_STD_EXT_HASH_MAP,;t t
23479s,@HAVE_GNU_EXT_HASH_MAP@,$HAVE_GNU_EXT_HASH_MAP,;t t
23480s,@HAVE_GLOBAL_HASH_MAP@,$HAVE_GLOBAL_HASH_MAP,;t t
23481s,@HAVE_STD_EXT_HASH_SET@,$HAVE_STD_EXT_HASH_SET,;t t
23482s,@HAVE_GNU_EXT_HASH_SET@,$HAVE_GNU_EXT_HASH_SET,;t t
23483s,@HAVE_GLOBAL_HASH_SET@,$HAVE_GLOBAL_HASH_SET,;t t
Brian Gaeke295d4b82004-02-23 18:16:06 +000023484s,@HAVE_STD_ITERATOR@,$HAVE_STD_ITERATOR,;t t
23485s,@HAVE_BI_ITERATOR@,$HAVE_BI_ITERATOR,;t t
23486s,@HAVE_FWD_ITERATOR@,$HAVE_FWD_ITERATOR,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023487s,@ALLOCA@,$ALLOCA,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023488s,@MMAP_FILE@,$MMAP_FILE,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023489s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
John Criswellcf2e9f72004-02-10 22:36:35 +000023490s,@SPEC95_ROOT@,$SPEC95_ROOT,;t t
23491s,@USE_SPEC95@,$USE_SPEC95,;t t
Brian Gaekee773b862004-04-16 17:13:44 +000023492s,@SPEC2000_ROOT@,$SPEC2000_ROOT,;t t
23493s,@USE_SPEC2000@,$USE_SPEC2000,;t t
John Criswell0538d422004-02-20 22:30:22 +000023494s,@POVRAY_ROOT@,$POVRAY_ROOT,;t t
23495s,@USE_POVRAY@,$USE_POVRAY,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023496s,@UPB@,$UPB,;t t
John Criswellf02dbf02003-07-22 20:07:49 +000023497s,@DISABLE_LLC_DIFFS@,$DISABLE_LLC_DIFFS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023498s,@JIT@,$JIT,;t t
Brian Gaeke2f50a042004-01-16 21:31:21 +000023499s,@LLVMCC1@,$LLVMCC1,;t t
23500s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023501s,@BCR@,$BCR,;t t
23502s,@PAPIDIR@,$PAPIDIR,;t t
Brian Gaeke554831c2004-01-21 19:39:29 +000023503s,@SHLIBEXT@,$SHLIBEXT,;t t
Brian Gaeke26be9c52004-01-13 06:43:16 +000023504s,@LIBOBJS@,$LIBOBJS,;t t
John Criswell0c38eaf2003-09-10 15:17:25 +000023505s,@LTLIBOBJS@,$LTLIBOBJS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023506CEOF
23507
23508_ACEOF
23509
23510 cat >>$CONFIG_STATUS <<\_ACEOF
23511 # Split the substitutions into bite-sized pieces for seds with
23512 # small command number limits, like on Digital OSF/1 and HP-UX.
23513 ac_max_sed_lines=48
23514 ac_sed_frag=1 # Number of current file.
23515 ac_beg=1 # First line for current file.
23516 ac_end=$ac_max_sed_lines # Line after last line for current file.
23517 ac_more_lines=:
23518 ac_sed_cmds=
23519 while $ac_more_lines; do
23520 if test $ac_beg -gt 1; then
23521 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23522 else
23523 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23524 fi
23525 if test ! -s $tmp/subs.frag; then
23526 ac_more_lines=false
23527 else
23528 # The purpose of the label and of the branching condition is to
23529 # speed up the sed processing (if there are no `@' at all, there
23530 # is no need to browse any of the substitutions).
23531 # These are the two extra sed commands mentioned above.
23532 (echo ':t
23533 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
23534 if test -z "$ac_sed_cmds"; then
23535 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
23536 else
23537 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23538 fi
23539 ac_sed_frag=`expr $ac_sed_frag + 1`
23540 ac_beg=$ac_end
23541 ac_end=`expr $ac_end + $ac_max_sed_lines`
23542 fi
23543 done
23544 if test -z "$ac_sed_cmds"; then
23545 ac_sed_cmds=cat
23546 fi
23547fi # test -n "$CONFIG_FILES"
23548
23549_ACEOF
23550cat >>$CONFIG_STATUS <<\_ACEOF
23551for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
23552 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23553 case $ac_file in
23554 - | *:- | *:-:* ) # input from stdin
23555 cat >$tmp/stdin
23556 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23557 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23558 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23559 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23560 * ) ac_file_in=$ac_file.in ;;
23561 esac
23562
23563 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23564 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23565$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23566 X"$ac_file" : 'X\(//\)[^/]' \| \
23567 X"$ac_file" : 'X\(//\)$' \| \
23568 X"$ac_file" : 'X\(/\)' \| \
23569 . : '\(.\)' 2>/dev/null ||
23570echo X"$ac_file" |
23571 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23572 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23573 /^X\(\/\/\)$/{ s//\1/; q; }
23574 /^X\(\/\).*/{ s//\1/; q; }
23575 s/.*/./; q'`
John Criswell0c38eaf2003-09-10 15:17:25 +000023576 { if $as_mkdir_p; then
23577 mkdir -p "$ac_dir"
23578 else
23579 as_dir="$ac_dir"
23580 as_dirs=
23581 while test ! -d "$as_dir"; do
23582 as_dirs="$as_dir $as_dirs"
23583 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23584$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23585 X"$as_dir" : 'X\(//\)[^/]' \| \
23586 X"$as_dir" : 'X\(//\)$' \| \
23587 X"$as_dir" : 'X\(/\)' \| \
23588 . : '\(.\)' 2>/dev/null ||
23589echo X"$as_dir" |
23590 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23591 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23592 /^X\(\/\/\)$/{ s//\1/; q; }
23593 /^X\(\/\).*/{ s//\1/; q; }
23594 s/.*/./; q'`
23595 done
23596 test ! -n "$as_dirs" || mkdir $as_dirs
23597 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23598echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23599 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000023600
23601 ac_builddir=.
23602
23603if test "$ac_dir" != .; then
23604 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23605 # A "../" for each directory in $ac_dir_suffix.
23606 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23607else
23608 ac_dir_suffix= ac_top_builddir=
23609fi
23610
23611case $srcdir in
23612 .) # No --srcdir option. We are building in place.
23613 ac_srcdir=.
23614 if test -z "$ac_top_builddir"; then
23615 ac_top_srcdir=.
23616 else
23617 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23618 fi ;;
23619 [\\/]* | ?:[\\/]* ) # Absolute path.
23620 ac_srcdir=$srcdir$ac_dir_suffix;
23621 ac_top_srcdir=$srcdir ;;
23622 *) # Relative path.
23623 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23624 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23625esac
23626# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
23627# absolute.
23628ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
John Criswell0c38eaf2003-09-10 15:17:25 +000023629ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
John Criswell7a73b802003-06-30 21:59:07 +000023630ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
23631ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
23632
23633
23634 case $INSTALL in
23635 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23636 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
23637 esac
23638
23639 if test x"$ac_file" != x-; then
23640 { echo "$as_me:$LINENO: creating $ac_file" >&5
23641echo "$as_me: creating $ac_file" >&6;}
23642 rm -f "$ac_file"
23643 fi
23644 # Let's still pretend it is `configure' which instantiates (i.e., don't
23645 # use $as_me), people would be surprised to read:
23646 # /* config.h. Generated by config.status. */
23647 if test x"$ac_file" = x-; then
23648 configure_input=
23649 else
23650 configure_input="$ac_file. "
23651 fi
23652 configure_input=$configure_input"Generated from `echo $ac_file_in |
23653 sed 's,.*/,,'` by configure."
23654
23655 # First look for the input files in the build tree, otherwise in the
23656 # src tree.
23657 ac_file_inputs=`IFS=:
23658 for f in $ac_file_in; do
23659 case $f in
23660 -) echo $tmp/stdin ;;
23661 [\\/$]*)
23662 # Absolute (can't be DOS-style, as IFS=:)
23663 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23664echo "$as_me: error: cannot find input file: $f" >&2;}
23665 { (exit 1); exit 1; }; }
23666 echo $f;;
23667 *) # Relative
23668 if test -f "$f"; then
23669 # Build tree
23670 echo $f
23671 elif test -f "$srcdir/$f"; then
23672 # Source tree
23673 echo $srcdir/$f
23674 else
23675 # /dev/null tree
23676 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23677echo "$as_me: error: cannot find input file: $f" >&2;}
23678 { (exit 1); exit 1; }; }
23679 fi;;
23680 esac
23681 done` || { (exit 1); exit 1; }
23682_ACEOF
23683cat >>$CONFIG_STATUS <<_ACEOF
23684 sed "$ac_vpsub
23685$extrasub
23686_ACEOF
23687cat >>$CONFIG_STATUS <<\_ACEOF
23688:t
23689/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23690s,@configure_input@,$configure_input,;t t
23691s,@srcdir@,$ac_srcdir,;t t
23692s,@abs_srcdir@,$ac_abs_srcdir,;t t
23693s,@top_srcdir@,$ac_top_srcdir,;t t
23694s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
23695s,@builddir@,$ac_builddir,;t t
23696s,@abs_builddir@,$ac_abs_builddir,;t t
23697s,@top_builddir@,$ac_top_builddir,;t t
23698s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
23699s,@INSTALL@,$ac_INSTALL,;t t
23700" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23701 rm -f $tmp/stdin
23702 if test x"$ac_file" != x-; then
23703 mv $tmp/out $ac_file
23704 else
23705 cat $tmp/out
23706 rm -f $tmp/out
23707 fi
23708
23709done
23710_ACEOF
23711cat >>$CONFIG_STATUS <<\_ACEOF
23712
23713#
23714# CONFIG_HEADER section.
23715#
23716
23717# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
23718# NAME is the cpp macro being defined and VALUE is the value it is being given.
23719#
23720# ac_d sets the value in "#define NAME VALUE" lines.
23721ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
23722ac_dB='[ ].*$,\1#\2'
23723ac_dC=' '
23724ac_dD=',;t'
23725# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23726ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23727ac_uB='$,\1#\2define\3'
23728ac_uC=' '
23729ac_uD=',;t'
23730
23731for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
23732 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23733 case $ac_file in
23734 - | *:- | *:-:* ) # input from stdin
23735 cat >$tmp/stdin
23736 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23737 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23738 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23739 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23740 * ) ac_file_in=$ac_file.in ;;
23741 esac
23742
23743 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
23744echo "$as_me: creating $ac_file" >&6;}
23745
23746 # First look for the input files in the build tree, otherwise in the
23747 # src tree.
23748 ac_file_inputs=`IFS=:
23749 for f in $ac_file_in; do
23750 case $f in
23751 -) echo $tmp/stdin ;;
23752 [\\/$]*)
23753 # Absolute (can't be DOS-style, as IFS=:)
23754 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23755echo "$as_me: error: cannot find input file: $f" >&2;}
23756 { (exit 1); exit 1; }; }
23757 echo $f;;
23758 *) # Relative
23759 if test -f "$f"; then
23760 # Build tree
23761 echo $f
23762 elif test -f "$srcdir/$f"; then
23763 # Source tree
23764 echo $srcdir/$f
23765 else
23766 # /dev/null tree
23767 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23768echo "$as_me: error: cannot find input file: $f" >&2;}
23769 { (exit 1); exit 1; }; }
23770 fi;;
23771 esac
23772 done` || { (exit 1); exit 1; }
23773 # Remove the trailing spaces.
23774 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
23775
23776_ACEOF
23777
23778# Transform confdefs.h into two sed scripts, `conftest.defines' and
23779# `conftest.undefs', that substitutes the proper values into
23780# config.h.in to produce config.h. The first handles `#define'
23781# templates, and the second `#undef' templates.
23782# And first: Protect against being on the right side of a sed subst in
23783# config.status. Protect against being in an unquoted here document
23784# in config.status.
23785rm -f conftest.defines conftest.undefs
23786# Using a here document instead of a string reduces the quoting nightmare.
23787# Putting comments in sed scripts is not portable.
23788#
23789# `end' is used to avoid that the second main sed command (meant for
23790# 0-ary CPP macros) applies to n-ary macro definitions.
23791# See the Autoconf documentation for `clear'.
23792cat >confdef2sed.sed <<\_ACEOF
23793s/[\\&,]/\\&/g
23794s,[\\$`],\\&,g
23795t clear
23796: clear
23797s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
23798t end
23799s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
23800: end
23801_ACEOF
23802# If some macros were called several times there might be several times
23803# the same #defines, which is useless. Nevertheless, we may not want to
23804# sort them, since we want the *last* AC-DEFINE to be honored.
23805uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
23806sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
23807rm -f confdef2sed.sed
23808
23809# This sed command replaces #undef with comments. This is necessary, for
23810# example, in the case of _POSIX_SOURCE, which is predefined and required
23811# on some systems where configure will not decide to define it.
23812cat >>conftest.undefs <<\_ACEOF
23813s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
23814_ACEOF
23815
23816# Break up conftest.defines because some shells have a limit on the size
23817# of here documents, and old seds have small limits too (100 cmds).
23818echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
John Criswell0c38eaf2003-09-10 15:17:25 +000023819echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000023820echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
23821echo ' :' >>$CONFIG_STATUS
23822rm -f conftest.tail
23823while grep . conftest.defines >/dev/null
23824do
23825 # Write a limited-size here document to $tmp/defines.sed.
23826 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
23827 # Speed up: don't consider the non `#define' lines.
23828 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
23829 # Work around the forget-to-reset-the-flag bug.
23830 echo 't clr' >>$CONFIG_STATUS
23831 echo ': clr' >>$CONFIG_STATUS
23832 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
23833 echo 'CEOF
23834 sed -f $tmp/defines.sed $tmp/in >$tmp/out
23835 rm -f $tmp/in
23836 mv $tmp/out $tmp/in
23837' >>$CONFIG_STATUS
23838 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
23839 rm -f conftest.defines
23840 mv conftest.tail conftest.defines
23841done
23842rm -f conftest.defines
John Criswell0c38eaf2003-09-10 15:17:25 +000023843echo ' fi # grep' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000023844echo >>$CONFIG_STATUS
23845
23846# Break up conftest.undefs because some shells have a limit on the size
23847# of here documents, and old seds have small limits too (100 cmds).
23848echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
23849rm -f conftest.tail
23850while grep . conftest.undefs >/dev/null
23851do
23852 # Write a limited-size here document to $tmp/undefs.sed.
23853 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
23854 # Speed up: don't consider the non `#undef'
23855 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
23856 # Work around the forget-to-reset-the-flag bug.
23857 echo 't clr' >>$CONFIG_STATUS
23858 echo ': clr' >>$CONFIG_STATUS
23859 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
23860 echo 'CEOF
23861 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
23862 rm -f $tmp/in
23863 mv $tmp/out $tmp/in
23864' >>$CONFIG_STATUS
23865 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
23866 rm -f conftest.undefs
23867 mv conftest.tail conftest.undefs
23868done
23869rm -f conftest.undefs
23870
23871cat >>$CONFIG_STATUS <<\_ACEOF
23872 # Let's still pretend it is `configure' which instantiates (i.e., don't
23873 # use $as_me), people would be surprised to read:
23874 # /* config.h. Generated by config.status. */
23875 if test x"$ac_file" = x-; then
23876 echo "/* Generated by configure. */" >$tmp/config.h
23877 else
23878 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
23879 fi
23880 cat $tmp/in >>$tmp/config.h
23881 rm -f $tmp/in
23882 if test x"$ac_file" != x-; then
John Criswell0c38eaf2003-09-10 15:17:25 +000023883 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000023884 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23885echo "$as_me: $ac_file is unchanged" >&6;}
23886 else
23887 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23888$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23889 X"$ac_file" : 'X\(//\)[^/]' \| \
23890 X"$ac_file" : 'X\(//\)$' \| \
23891 X"$ac_file" : 'X\(/\)' \| \
23892 . : '\(.\)' 2>/dev/null ||
23893echo X"$ac_file" |
23894 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23895 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23896 /^X\(\/\/\)$/{ s//\1/; q; }
23897 /^X\(\/\).*/{ s//\1/; q; }
23898 s/.*/./; q'`
John Criswell0c38eaf2003-09-10 15:17:25 +000023899 { if $as_mkdir_p; then
23900 mkdir -p "$ac_dir"
23901 else
23902 as_dir="$ac_dir"
23903 as_dirs=
23904 while test ! -d "$as_dir"; do
23905 as_dirs="$as_dir $as_dirs"
23906 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23907$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23908 X"$as_dir" : 'X\(//\)[^/]' \| \
23909 X"$as_dir" : 'X\(//\)$' \| \
23910 X"$as_dir" : 'X\(/\)' \| \
23911 . : '\(.\)' 2>/dev/null ||
23912echo X"$as_dir" |
23913 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23914 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23915 /^X\(\/\/\)$/{ s//\1/; q; }
23916 /^X\(\/\).*/{ s//\1/; q; }
23917 s/.*/./; q'`
23918 done
23919 test ! -n "$as_dirs" || mkdir $as_dirs
23920 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23921echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23922 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000023923
23924 rm -f $ac_file
23925 mv $tmp/config.h $ac_file
23926 fi
23927 else
23928 cat $tmp/config.h
23929 rm -f $tmp/config.h
23930 fi
23931done
23932_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000023933cat >>$CONFIG_STATUS <<\_ACEOF
23934
23935#
23936# CONFIG_COMMANDS section.
23937#
23938for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
23939 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
23940 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
23941 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
23942$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23943 X"$ac_dest" : 'X\(//\)[^/]' \| \
23944 X"$ac_dest" : 'X\(//\)$' \| \
23945 X"$ac_dest" : 'X\(/\)' \| \
23946 . : '\(.\)' 2>/dev/null ||
23947echo X"$ac_dest" |
23948 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23949 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23950 /^X\(\/\/\)$/{ s//\1/; q; }
23951 /^X\(\/\).*/{ s//\1/; q; }
23952 s/.*/./; q'`
23953 ac_builddir=.
23954
23955if test "$ac_dir" != .; then
23956 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23957 # A "../" for each directory in $ac_dir_suffix.
23958 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23959else
23960 ac_dir_suffix= ac_top_builddir=
23961fi
23962
23963case $srcdir in
23964 .) # No --srcdir option. We are building in place.
23965 ac_srcdir=.
23966 if test -z "$ac_top_builddir"; then
23967 ac_top_srcdir=.
23968 else
23969 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23970 fi ;;
23971 [\\/]* | ?:[\\/]* ) # Absolute path.
23972 ac_srcdir=$srcdir$ac_dir_suffix;
23973 ac_top_srcdir=$srcdir ;;
23974 *) # Relative path.
23975 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23976 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23977esac
23978# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
23979# absolute.
23980ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
John Criswell0c38eaf2003-09-10 15:17:25 +000023981ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
John Criswellc764fbc2003-09-06 15:17:13 +000023982ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
23983ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
23984
23985
23986 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
23987echo "$as_me: executing $ac_dest commands" >&6;}
23988 case $ac_dest in
23989 Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
23990 Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023991 lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023992 runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023993 test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
23994 test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
John Criswellf424d742003-10-07 21:13:47 +000023995 test/QMTest/llvm.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvm.py test/QMTest/llvm.py ;;
23996 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 +000023997 test/Programs/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile test/Programs/Makefile ;;
23998 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 +000023999 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 +000024000 test/Programs/TEST.aa.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.Makefile test/Programs/TEST.aa.Makefile ;;
24001 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 +000024002 test/Programs/TEST.aa.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.report test/Programs/TEST.aa.report ;;
24003 test/Programs/TEST.example.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.example.Makefile test/Programs/TEST.example.Makefile ;;
24004 test/Programs/TEST.nightly.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.Makefile test/Programs/TEST.nightly.Makefile ;;
24005 test/Programs/TEST.buildrepo.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.buildrepo.Makefile test/Programs/TEST.buildrepo.Makefile ;;
24006 test/Programs/TEST.jit.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.Makefile test/Programs/TEST.jit.Makefile ;;
24007 test/Programs/TEST.nightly.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.report test/Programs/TEST.nightly.report ;;
24008 test/Programs/TEST.dsgraph.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.Makefile test/Programs/TEST.dsgraph.Makefile ;;
24009 test/Programs/TEST.jit.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.report test/Programs/TEST.jit.report ;;
24010 test/Programs/TEST.typesafe.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.typesafe.Makefile test/Programs/TEST.typesafe.Makefile ;;
24011 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 +000024012 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 +000024013 test/Programs/External/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/Makefile test/Programs/External/Makefile ;;
24014 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 +000024015 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 +000024016 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 +000024017 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 +000024018 test/Programs/MultiSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile test/Programs/MultiSource/Makefile ;;
24019 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 +000024020 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 ;;
24021 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 ;;
24022 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 ;;
24023 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 ;;
24024 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 ;;
24025 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 ;;
24026 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 ;;
24027 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 ;;
24028 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 ;;
24029 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 ;;
24030 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 ;;
24031 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 ;;
24032 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 +000024033 test/Programs/SingleSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile test/Programs/SingleSource/Makefile ;;
24034 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 +000024035 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 +000024036 tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
Brian Gaekec45be042003-10-07 06:01:34 +000024037 utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024038 projects/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024039 esac
24040done
24041_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000024042
24043cat >>$CONFIG_STATUS <<\_ACEOF
24044
24045{ (exit 0); exit 0; }
24046_ACEOF
24047chmod +x $CONFIG_STATUS
24048ac_clean_files=$ac_clean_files_save
24049
24050
24051# configure is writing to config.log, and then calls config.status.
24052# config.status does its own redirection, appending to config.log.
24053# Unfortunately, on DOS this fails, as config.log is still kept open
24054# by configure, so config.status won't be able to write to it; its
24055# output is simply discarded. So we exec the FD to /dev/null,
24056# effectively closing config.log, so it can be properly (re)opened and
24057# appended to by config.status. When coming back to configure, we
24058# need to make the FD available again.
24059if test "$no_create" != yes; then
24060 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000024061 ac_config_status_args=
24062 test "$silent" = yes &&
24063 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000024064 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000024065 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000024066 exec 5>>config.log
24067 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24068 # would make configure fail if this is the last instruction.
24069 $ac_cs_success || { (exit 1); exit 1; }
24070fi
24071
John Criswell12399a12003-09-30 15:55:44 +000024072#
24073# CONFIG_SUBDIRS section.
24074#
24075if test "$no_recursion" != yes; then
24076
24077 # Remove --cache-file and --srcdir arguments so they do not pile up.
24078 ac_sub_configure_args=
24079 ac_prev=
24080 for ac_arg in $ac_configure_args; do
24081 if test -n "$ac_prev"; then
24082 ac_prev=
24083 continue
24084 fi
24085 case $ac_arg in
24086 -cache-file | --cache-file | --cache-fil | --cache-fi \
24087 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
24088 ac_prev=cache_file ;;
24089 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
24090 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
24091 | --c=*)
24092 ;;
24093 --config-cache | -C)
24094 ;;
24095 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
24096 ac_prev=srcdir ;;
24097 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
24098 ;;
24099 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
24100 ac_prev=prefix ;;
24101 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
24102 ;;
24103 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
24104 esac
24105 done
24106
24107 # Always prepend --prefix to ensure using the same prefix
24108 # in subdir configurations.
24109 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
24110
24111 ac_popdir=`pwd`
24112 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
24113
24114 # Do not complain, so a configure script can configure whichever
24115 # parts of a large source tree are present.
24116 test -d $srcdir/$ac_dir || continue
24117
24118 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
24119echo "$as_me: configuring in $ac_dir" >&6;}
24120 { if $as_mkdir_p; then
24121 mkdir -p "$ac_dir"
24122 else
24123 as_dir="$ac_dir"
24124 as_dirs=
24125 while test ! -d "$as_dir"; do
24126 as_dirs="$as_dir $as_dirs"
24127 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24128$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24129 X"$as_dir" : 'X\(//\)[^/]' \| \
24130 X"$as_dir" : 'X\(//\)$' \| \
24131 X"$as_dir" : 'X\(/\)' \| \
24132 . : '\(.\)' 2>/dev/null ||
24133echo X"$as_dir" |
24134 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24135 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24136 /^X\(\/\/\)$/{ s//\1/; q; }
24137 /^X\(\/\).*/{ s//\1/; q; }
24138 s/.*/./; q'`
24139 done
24140 test ! -n "$as_dirs" || mkdir $as_dirs
24141 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24142echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24143 { (exit 1); exit 1; }; }; }
24144
24145 ac_builddir=.
24146
24147if test "$ac_dir" != .; then
24148 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24149 # A "../" for each directory in $ac_dir_suffix.
24150 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24151else
24152 ac_dir_suffix= ac_top_builddir=
24153fi
24154
24155case $srcdir in
24156 .) # No --srcdir option. We are building in place.
24157 ac_srcdir=.
24158 if test -z "$ac_top_builddir"; then
24159 ac_top_srcdir=.
24160 else
24161 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24162 fi ;;
24163 [\\/]* | ?:[\\/]* ) # Absolute path.
24164 ac_srcdir=$srcdir$ac_dir_suffix;
24165 ac_top_srcdir=$srcdir ;;
24166 *) # Relative path.
24167 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24168 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24169esac
24170# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
24171# absolute.
24172ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
24173ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
24174ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
24175ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
24176
24177
24178 cd $ac_dir
24179
24180 # Check for guested configure; otherwise get Cygnus style configure.
24181 if test -f $ac_srcdir/configure.gnu; then
24182 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
24183 elif test -f $ac_srcdir/configure; then
24184 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
24185 elif test -f $ac_srcdir/configure.in; then
24186 ac_sub_configure=$ac_configure
24187 else
24188 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
24189echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
24190 ac_sub_configure=
24191 fi
24192
24193 # The recursion is here.
24194 if test -n "$ac_sub_configure"; then
24195 # Make the cache file name correct relative to the subdirectory.
24196 case $cache_file in
24197 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
24198 *) # Relative path.
24199 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
24200 esac
24201
24202 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
24203echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
24204 # The eval makes quoting arguments work.
24205 eval $ac_sub_configure $ac_sub_configure_args \
24206 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
24207 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
24208echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
24209 { (exit 1); exit 1; }; }
24210 fi
24211
24212 cd $ac_popdir
24213 done
24214fi
24215
Brian Gaekef3b24102003-11-16 18:38:14 +000024216
24217if test $llvmgccwarn = yes
24218then
24219 { echo "$as_me:$LINENO: WARNING: ***** llvm C/C++ front end was not found, or does not" >&5
24220echo "$as_me: WARNING: ***** llvm C/C++ front end was not found, or does not" >&2;}
24221 { echo "$as_me:$LINENO: WARNING: ***** appear to be working." >&5
24222echo "$as_me: WARNING: ***** appear to be working." >&2;}
24223 { echo "$as_me:$LINENO: WARNING: ***** " >&5
24224echo "$as_me: WARNING: ***** " >&2;}
24225 { echo "$as_me:$LINENO: WARNING: ***** Please check configure's --with-llvmgccdir option." >&5
24226echo "$as_me: WARNING: ***** Please check configure's --with-llvmgccdir option." >&2;}
24227 { echo "$as_me:$LINENO: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&5
24228echo "$as_me: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&2;}
24229 { echo "$as_me:$LINENO: WARNING: ***** but you should be able to build the llvm tools." >&5
24230echo "$as_me: WARNING: ***** but you should be able to build the llvm tools." >&2;}
24231fi
Brian Gaeke554831c2004-01-21 19:39:29 +000024232