blob: 139648d530d1e0718ef4f7de7fb2dfa44507b18f [file] [log] [blame]
John Criswell7a73b802003-06-30 21:59:07 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Chris Lattner95f45c52004-04-14 16:32:09 +00003# Generated by GNU Autoconf 2.57 for [LLVM] [1.3].
John Criswell7a73b802003-06-30 21:59:07 +00004#
5# Report bugs to <llvmbugs@cs.uiuc.edu>.
6#
7# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
8# Free Software Foundation, Inc.
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
John Criswell0c38eaf2003-09-10 15:17:25 +000011## --------------------- ##
12## M4sh Initialization. ##
13## --------------------- ##
14
15# Be Bourne compatible
16if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 emulate sh
18 NULLCMD=:
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
22elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23 set -o posix
24fi
25
26# Support unset when possible.
27if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
28 as_unset=unset
29else
30 as_unset=false
31fi
32
33
34# Work around bugs in pre-3.0 UWIN ksh.
35$as_unset ENV MAIL MAILPATH
36PS1='$ '
37PS2='> '
38PS4='+ '
39
40# NLS nuisances.
41for as_var in \
42 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 LC_TELEPHONE LC_TIME
45do
46 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
47 eval $as_var=C; export $as_var
48 else
49 $as_unset $as_var
50 fi
51done
52
53# Required to use basename.
54if expr a : '\(a\)' >/dev/null 2>&1; then
55 as_expr=expr
56else
57 as_expr=false
58fi
59
60if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61 as_basename=basename
62else
63 as_basename=false
64fi
65
66
67# Name of the executable.
68as_me=`$as_basename "$0" ||
69$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
73echo X/"$0" |
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
77 s/.*/./; q'`
78
79
80# PATH needs CR, and LINENO needs CR and PATH.
81# Avoid depending upon Character Ranges.
82as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85as_cr_digits='0123456789'
86as_cr_alnum=$as_cr_Letters$as_cr_digits
87
88# The user is always right.
89if test "${PATH_SEPARATOR+set}" != set; then
90 echo "#! /bin/sh" >conf$$.sh
91 echo "exit 0" >>conf$$.sh
92 chmod +x conf$$.sh
93 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94 PATH_SEPARATOR=';'
95 else
96 PATH_SEPARATOR=:
97 fi
98 rm -f conf$$.sh
99fi
100
101
102 as_lineno_1=$LINENO
103 as_lineno_2=$LINENO
104 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105 test "x$as_lineno_1" != "x$as_lineno_2" &&
106 test "x$as_lineno_3" = "x$as_lineno_2" || {
107 # Find who we are. Look in the path if we contain no path at all
108 # relative or not.
109 case $0 in
110 *[\\/]* ) as_myself=$0 ;;
111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112for as_dir in $PATH
113do
114 IFS=$as_save_IFS
115 test -z "$as_dir" && as_dir=.
116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117done
118
119 ;;
120 esac
121 # We did not find ourselves, most probably we were run as `sh COMMAND'
122 # in which case we are not to be found in the path.
123 if test "x$as_myself" = x; then
124 as_myself=$0
125 fi
126 if test ! -f "$as_myself"; then
127 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128 { (exit 1); exit 1; }; }
129 fi
130 case $CONFIG_SHELL in
131 '')
132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134do
135 IFS=$as_save_IFS
136 test -z "$as_dir" && as_dir=.
137 for as_base in sh bash ksh sh5; do
138 case $as_dir in
139 /*)
140 if ("$as_dir/$as_base" -c '
141 as_lineno_1=$LINENO
142 as_lineno_2=$LINENO
143 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144 test "x$as_lineno_1" != "x$as_lineno_2" &&
145 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
146 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148 CONFIG_SHELL=$as_dir/$as_base
149 export CONFIG_SHELL
150 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151 fi;;
152 esac
153 done
154done
155;;
156 esac
157
158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159 # uniformly replaced by the line number. The first 'sed' inserts a
160 # line-number line before each line; the second 'sed' does the real
161 # work. The second script uses 'N' to pair each line-number line
162 # with the numbered line, and appends trailing '-' during
163 # substitution so that $LINENO is not a special case at line end.
164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
166 sed '=' <$as_myself |
167 sed '
168 N
169 s,$,-,
170 : loop
171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 t loop
173 s,-$,,
174 s,^['$as_cr_digits']*\n,,
175 ' >$as_me.lineno &&
176 chmod +x $as_me.lineno ||
177 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178 { (exit 1); exit 1; }; }
179
180 # Don't try to exec as it changes $[0], causing all sort of problems
181 # (the dirname of $[0] is not the place where we might find the
182 # original and so on. Autoconf is especially sensible to this).
183 . ./$as_me.lineno
184 # Exit status is that of the last command.
185 exit
186}
187
188
189case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190 *c*,-n*) ECHO_N= ECHO_C='
191' ECHO_T=' ' ;;
192 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194esac
195
196if expr a : '\(a\)' >/dev/null 2>&1; then
197 as_expr=expr
198else
199 as_expr=false
200fi
201
202rm -f conf$$ conf$$.exe conf$$.file
203echo >conf$$.file
204if ln -s conf$$.file conf$$ 2>/dev/null; then
205 # We could just check for DJGPP; but this test a) works b) is more generic
206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207 if test -f conf$$.exe; then
208 # Don't use ln at all; we don't have any links
209 as_ln_s='cp -p'
210 else
211 as_ln_s='ln -s'
212 fi
213elif ln conf$$.file conf$$ 2>/dev/null; then
214 as_ln_s=ln
215else
216 as_ln_s='cp -p'
217fi
218rm -f conf$$ conf$$.exe conf$$.file
219
220if mkdir -p . 2>/dev/null; then
221 as_mkdir_p=:
222else
223 as_mkdir_p=false
224fi
225
226as_executable_p="test -f"
227
228# Sed expression to map a string onto a valid CPP name.
229as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
230
231# Sed expression to map a string onto a valid variable name.
232as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
233
234
235# IFS
236# We need space, tab and new line, in precisely that order.
237as_nl='
238'
239IFS=" $as_nl"
240
241# CDPATH.
242$as_unset CDPATH
243
John Criswell7a73b802003-06-30 21:59:07 +0000244
John Criswell7a73b802003-06-30 21:59:07 +0000245
246# Check that we are running under the correct shell.
247SHELL=${CONFIG_SHELL-/bin/sh}
248
249case X$ECHO in
250X*--fallback-echo)
251 # Remove one level of quotation (which was required for Make).
252 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
253 ;;
254esac
255
256echo=${ECHO-echo}
257if test "X$1" = X--no-reexec; then
258 # Discard the --no-reexec flag, and continue.
259 shift
260elif test "X$1" = X--fallback-echo; then
261 # Avoid inline document here, it may be left over
262 :
John Criswell47fdd832003-07-14 16:52:07 +0000263elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
John Criswell7a73b802003-06-30 21:59:07 +0000264 # Yippee, $echo works!
265 :
266else
267 # Restart under the correct shell.
268 exec $SHELL "$0" --no-reexec ${1+"$@"}
269fi
270
271if test "X$1" = X--fallback-echo; then
272 # used as fallback echo
273 shift
274 cat <<EOF
John Criswell47fdd832003-07-14 16:52:07 +0000275$*
John Criswell7a73b802003-06-30 21:59:07 +0000276EOF
277 exit 0
278fi
279
280# The HP-UX ksh and POSIX shell print the target directory to stdout
281# if CDPATH is set.
282if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
283
284if test -z "$ECHO"; then
285if test "X${echo_test_string+set}" != Xset; then
286# find a string as large as possible, as long as the shell can cope with it
287 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
288 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
289 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
290 echo_test_string="`eval $cmd`" &&
291 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
292 then
293 break
294 fi
295 done
296fi
297
298if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
299 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
300 test "X$echo_testing_string" = "X$echo_test_string"; then
301 :
302else
303 # The Solaris, AIX, and Digital Unix default echo programs unquote
304 # backslashes. This makes it impossible to quote backslashes using
305 # echo "$something" | sed 's/\\/\\\\/g'
306 #
307 # So, first we look for a working echo in the user's PATH.
308
John Criswell47fdd832003-07-14 16:52:07 +0000309 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +0000310 for dir in $PATH /usr/ucb; do
John Criswell47fdd832003-07-14 16:52:07 +0000311 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +0000312 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
313 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
314 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
315 test "X$echo_testing_string" = "X$echo_test_string"; then
316 echo="$dir/echo"
317 break
318 fi
319 done
John Criswell47fdd832003-07-14 16:52:07 +0000320 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +0000321
322 if test "X$echo" = Xecho; then
323 # We didn't find a better echo, so look for alternatives.
324 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
325 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
326 test "X$echo_testing_string" = "X$echo_test_string"; then
327 # This shell has a builtin print -r that does the trick.
328 echo='print -r'
329 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
330 test "X$CONFIG_SHELL" != X/bin/ksh; then
331 # If we have ksh, try running configure again with it.
332 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
333 export ORIGINAL_CONFIG_SHELL
334 CONFIG_SHELL=/bin/ksh
335 export CONFIG_SHELL
336 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
337 else
338 # Try using printf.
339 echo='printf %s\n'
340 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
341 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
342 test "X$echo_testing_string" = "X$echo_test_string"; then
343 # Cool, printf works
344 :
345 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
346 test "X$echo_testing_string" = 'X\t' &&
347 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
348 test "X$echo_testing_string" = "X$echo_test_string"; then
349 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
350 export CONFIG_SHELL
351 SHELL="$CONFIG_SHELL"
352 export SHELL
353 echo="$CONFIG_SHELL $0 --fallback-echo"
354 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
355 test "X$echo_testing_string" = 'X\t' &&
356 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
357 test "X$echo_testing_string" = "X$echo_test_string"; then
358 echo="$CONFIG_SHELL $0 --fallback-echo"
359 else
360 # maybe with a smaller string...
361 prev=:
362
363 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
364 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
365 then
366 break
367 fi
368 prev="$cmd"
369 done
370
371 if test "$prev" != 'sed 50q "$0"'; then
372 echo_test_string=`eval $prev`
373 export echo_test_string
374 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
375 else
376 # Oops. We lost completely, so just stick with echo.
377 echo=echo
378 fi
379 fi
380 fi
381 fi
382fi
383fi
384
385# Copy echo and quote the copy suitably for passing to libtool from
386# the Makefile, instead of quoting the original, which is used later.
387ECHO=$echo
388if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
389 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
390fi
391
392
393
John Criswell47fdd832003-07-14 16:52:07 +0000394
395tagnames=`echo "$tagnames,CXX" | sed 's/^,//'`
396
397tagnames=`echo "$tagnames,F77" | sed 's/^,//'`
398
John Criswell7a73b802003-06-30 21:59:07 +0000399# Name of the host.
400# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
401# so uname gets run too.
402ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
403
404exec 6>&1
405
406#
407# Initializations.
408#
409ac_default_prefix=/usr/local
John Criswell0c38eaf2003-09-10 15:17:25 +0000410ac_config_libobj_dir=.
John Criswell7a73b802003-06-30 21:59:07 +0000411cross_compiling=no
412subdirs=
413MFLAGS=
414MAKEFLAGS=
415SHELL=${CONFIG_SHELL-/bin/sh}
416
417# Maximum number of lines to put in a shell here document.
418# This variable seems obsolete. It should probably be removed, and
419# only ac_max_sed_lines should be used.
420: ${ac_max_here_lines=38}
421
422# Identity of this package.
423PACKAGE_NAME='[LLVM]'
424PACKAGE_TARNAME='--llvm--'
Chris Lattner95f45c52004-04-14 16:32:09 +0000425PACKAGE_VERSION='[1.3]'
426PACKAGE_STRING='[LLVM] [1.3]'
John Criswell7a73b802003-06-30 21:59:07 +0000427PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
428
John Criswell33a911a2003-11-25 20:36:46 +0000429ac_subdirs_all="$ac_subdirs_all projects/${i}"
John Criswell7a73b802003-06-30 21:59:07 +0000430# Factoring default headers for most tests.
431ac_includes_default="\
432#include <stdio.h>
433#if HAVE_SYS_TYPES_H
434# include <sys/types.h>
435#endif
436#if HAVE_SYS_STAT_H
437# include <sys/stat.h>
438#endif
439#if STDC_HEADERS
440# include <stdlib.h>
441# include <stddef.h>
442#else
443# if HAVE_STDLIB_H
444# include <stdlib.h>
445# endif
446#endif
447#if HAVE_STRING_H
448# if !STDC_HEADERS && HAVE_MEMORY_H
449# include <memory.h>
450# endif
451# include <string.h>
452#endif
453#if HAVE_STRINGS_H
454# include <strings.h>
455#endif
456#if HAVE_INTTYPES_H
457# include <inttypes.h>
458#else
459# if HAVE_STDINT_H
460# include <stdint.h>
461# endif
462#endif
463#if HAVE_UNISTD_H
464# include <unistd.h>
465#endif"
466
467ac_unique_file=""Makefile.config.in""
Brian Gaekee773b862004-04-16 17:13:44 +0000468ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS subdirs INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os OS LLVMGCCDIR ARCH CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT CC CFLAGS ac_ct_CC CPP ifGNUmake LEX LEXLIB LEX_OUTPUT_ROOT YACC BISON EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL DOT ETAGS ETAGSFLAGS PYTHON QMTEST HAVE_PTHREAD_MUTEX_LOCK INCLUDE_SYS_TYPES_H INCLUDE_INTTYPES_H ENDIAN HAVE_STD_EXT_HASH_MAP HAVE_GNU_EXT_HASH_MAP HAVE_GLOBAL_HASH_MAP HAVE_STD_EXT_HASH_SET HAVE_GNU_EXT_HASH_SET HAVE_GLOBAL_HASH_SET HAVE_STD_ITERATOR HAVE_BI_ITERATOR HAVE_FWD_ITERATOR ALLOCA MMAP_FILE ENABLE_OPTIMIZED SPEC95_ROOT USE_SPEC95 SPEC2000_ROOT USE_SPEC2000 POVRAY_ROOT USE_POVRAY UPB DISABLE_LLC_DIFFS JIT LLVMCC1 LLVMCC1PLUS BCR PAPIDIR SHLIBEXT LIBOBJS LTLIBOBJS'
John Criswell0c38eaf2003-09-10 15:17:25 +0000469ac_subst_files=''
John Criswell7a73b802003-06-30 21:59:07 +0000470
471# Initialize some variables set by options.
472ac_init_help=
473ac_init_version=false
474# The variables have the same names as the options, with
475# dashes changed to underlines.
476cache_file=/dev/null
477exec_prefix=NONE
478no_create=
479no_recursion=
480prefix=NONE
481program_prefix=NONE
482program_suffix=NONE
483program_transform_name=s,x,x,
484silent=
485site=
486srcdir=
487verbose=
488x_includes=NONE
489x_libraries=NONE
490
491# Installation directory options.
492# These are left unexpanded so users can "make install exec_prefix=/foo"
493# and all the variables that are supposed to be based on exec_prefix
494# by default will actually change.
495# Use braces instead of parens because sh, perl, etc. also accept them.
496bindir='${exec_prefix}/bin'
497sbindir='${exec_prefix}/sbin'
498libexecdir='${exec_prefix}/libexec'
499datadir='${prefix}/share'
500sysconfdir='${prefix}/etc'
501sharedstatedir='${prefix}/com'
502localstatedir='${prefix}/var'
503libdir='${exec_prefix}/lib'
504includedir='${prefix}/include'
505oldincludedir='/usr/include'
506infodir='${prefix}/info'
507mandir='${prefix}/man'
508
509ac_prev=
510for ac_option
511do
512 # If the previous option needs an argument, assign it.
513 if test -n "$ac_prev"; then
514 eval "$ac_prev=\$ac_option"
515 ac_prev=
516 continue
517 fi
518
519 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
520
521 # Accept the important Cygnus configure options, so we can diagnose typos.
522
523 case $ac_option in
524
525 -bindir | --bindir | --bindi | --bind | --bin | --bi)
526 ac_prev=bindir ;;
527 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
528 bindir=$ac_optarg ;;
529
530 -build | --build | --buil | --bui | --bu)
531 ac_prev=build_alias ;;
532 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
533 build_alias=$ac_optarg ;;
534
535 -cache-file | --cache-file | --cache-fil | --cache-fi \
536 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
537 ac_prev=cache_file ;;
538 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
539 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
540 cache_file=$ac_optarg ;;
541
542 --config-cache | -C)
543 cache_file=config.cache ;;
544
545 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
546 ac_prev=datadir ;;
547 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
548 | --da=*)
549 datadir=$ac_optarg ;;
550
551 -disable-* | --disable-*)
552 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
553 # Reject names that are not valid shell variable names.
554 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
555 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
556 { (exit 1); exit 1; }; }
557 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
558 eval "enable_$ac_feature=no" ;;
559
560 -enable-* | --enable-*)
561 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
562 # Reject names that are not valid shell variable names.
563 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
564 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
565 { (exit 1); exit 1; }; }
566 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
567 case $ac_option in
568 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
569 *) ac_optarg=yes ;;
570 esac
571 eval "enable_$ac_feature='$ac_optarg'" ;;
572
573 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
574 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
575 | --exec | --exe | --ex)
576 ac_prev=exec_prefix ;;
577 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
578 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
579 | --exec=* | --exe=* | --ex=*)
580 exec_prefix=$ac_optarg ;;
581
582 -gas | --gas | --ga | --g)
583 # Obsolete; use --with-gas.
584 with_gas=yes ;;
585
586 -help | --help | --hel | --he | -h)
587 ac_init_help=long ;;
588 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
589 ac_init_help=recursive ;;
590 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
591 ac_init_help=short ;;
592
593 -host | --host | --hos | --ho)
594 ac_prev=host_alias ;;
595 -host=* | --host=* | --hos=* | --ho=*)
596 host_alias=$ac_optarg ;;
597
598 -includedir | --includedir | --includedi | --included | --include \
599 | --includ | --inclu | --incl | --inc)
600 ac_prev=includedir ;;
601 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
602 | --includ=* | --inclu=* | --incl=* | --inc=*)
603 includedir=$ac_optarg ;;
604
605 -infodir | --infodir | --infodi | --infod | --info | --inf)
606 ac_prev=infodir ;;
607 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
608 infodir=$ac_optarg ;;
609
610 -libdir | --libdir | --libdi | --libd)
611 ac_prev=libdir ;;
612 -libdir=* | --libdir=* | --libdi=* | --libd=*)
613 libdir=$ac_optarg ;;
614
615 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
616 | --libexe | --libex | --libe)
617 ac_prev=libexecdir ;;
618 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
619 | --libexe=* | --libex=* | --libe=*)
620 libexecdir=$ac_optarg ;;
621
622 -localstatedir | --localstatedir | --localstatedi | --localstated \
623 | --localstate | --localstat | --localsta | --localst \
624 | --locals | --local | --loca | --loc | --lo)
625 ac_prev=localstatedir ;;
626 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
627 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
628 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
629 localstatedir=$ac_optarg ;;
630
631 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
632 ac_prev=mandir ;;
633 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
634 mandir=$ac_optarg ;;
635
636 -nfp | --nfp | --nf)
637 # Obsolete; use --without-fp.
638 with_fp=no ;;
639
640 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
641 | --no-cr | --no-c | -n)
642 no_create=yes ;;
643
644 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
645 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
646 no_recursion=yes ;;
647
648 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
649 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
650 | --oldin | --oldi | --old | --ol | --o)
651 ac_prev=oldincludedir ;;
652 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
653 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
654 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
655 oldincludedir=$ac_optarg ;;
656
657 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
658 ac_prev=prefix ;;
659 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
660 prefix=$ac_optarg ;;
661
662 -program-prefix | --program-prefix | --program-prefi | --program-pref \
663 | --program-pre | --program-pr | --program-p)
664 ac_prev=program_prefix ;;
665 -program-prefix=* | --program-prefix=* | --program-prefi=* \
666 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
667 program_prefix=$ac_optarg ;;
668
669 -program-suffix | --program-suffix | --program-suffi | --program-suff \
670 | --program-suf | --program-su | --program-s)
671 ac_prev=program_suffix ;;
672 -program-suffix=* | --program-suffix=* | --program-suffi=* \
673 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
674 program_suffix=$ac_optarg ;;
675
676 -program-transform-name | --program-transform-name \
677 | --program-transform-nam | --program-transform-na \
678 | --program-transform-n | --program-transform- \
679 | --program-transform | --program-transfor \
680 | --program-transfo | --program-transf \
681 | --program-trans | --program-tran \
682 | --progr-tra | --program-tr | --program-t)
683 ac_prev=program_transform_name ;;
684 -program-transform-name=* | --program-transform-name=* \
685 | --program-transform-nam=* | --program-transform-na=* \
686 | --program-transform-n=* | --program-transform-=* \
687 | --program-transform=* | --program-transfor=* \
688 | --program-transfo=* | --program-transf=* \
689 | --program-trans=* | --program-tran=* \
690 | --progr-tra=* | --program-tr=* | --program-t=*)
691 program_transform_name=$ac_optarg ;;
692
693 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
694 | -silent | --silent | --silen | --sile | --sil)
695 silent=yes ;;
696
697 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
698 ac_prev=sbindir ;;
699 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
700 | --sbi=* | --sb=*)
701 sbindir=$ac_optarg ;;
702
703 -sharedstatedir | --sharedstatedir | --sharedstatedi \
704 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
705 | --sharedst | --shareds | --shared | --share | --shar \
706 | --sha | --sh)
707 ac_prev=sharedstatedir ;;
708 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
709 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
710 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
711 | --sha=* | --sh=*)
712 sharedstatedir=$ac_optarg ;;
713
714 -site | --site | --sit)
715 ac_prev=site ;;
716 -site=* | --site=* | --sit=*)
717 site=$ac_optarg ;;
718
719 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
720 ac_prev=srcdir ;;
721 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
722 srcdir=$ac_optarg ;;
723
724 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
725 | --syscon | --sysco | --sysc | --sys | --sy)
726 ac_prev=sysconfdir ;;
727 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
728 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
729 sysconfdir=$ac_optarg ;;
730
731 -target | --target | --targe | --targ | --tar | --ta | --t)
732 ac_prev=target_alias ;;
733 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
734 target_alias=$ac_optarg ;;
735
736 -v | -verbose | --verbose | --verbos | --verbo | --verb)
737 verbose=yes ;;
738
739 -version | --version | --versio | --versi | --vers | -V)
740 ac_init_version=: ;;
741
742 -with-* | --with-*)
743 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
744 # Reject names that are not valid shell variable names.
745 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
746 { echo "$as_me: error: invalid package name: $ac_package" >&2
747 { (exit 1); exit 1; }; }
748 ac_package=`echo $ac_package| sed 's/-/_/g'`
749 case $ac_option in
750 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
751 *) ac_optarg=yes ;;
752 esac
753 eval "with_$ac_package='$ac_optarg'" ;;
754
755 -without-* | --without-*)
756 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
757 # Reject names that are not valid shell variable names.
758 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
759 { echo "$as_me: error: invalid package name: $ac_package" >&2
760 { (exit 1); exit 1; }; }
761 ac_package=`echo $ac_package | sed 's/-/_/g'`
762 eval "with_$ac_package=no" ;;
763
764 --x)
765 # Obsolete; use --with-x.
766 with_x=yes ;;
767
768 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
769 | --x-incl | --x-inc | --x-in | --x-i)
770 ac_prev=x_includes ;;
771 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
772 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
773 x_includes=$ac_optarg ;;
774
775 -x-libraries | --x-libraries | --x-librarie | --x-librari \
776 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
777 ac_prev=x_libraries ;;
778 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
779 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
780 x_libraries=$ac_optarg ;;
781
782 -*) { echo "$as_me: error: unrecognized option: $ac_option
783Try \`$0 --help' for more information." >&2
784 { (exit 1); exit 1; }; }
785 ;;
786
787 *=*)
788 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
789 # Reject names that are not valid shell variable names.
790 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
791 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
792 { (exit 1); exit 1; }; }
793 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
794 eval "$ac_envvar='$ac_optarg'"
795 export $ac_envvar ;;
796
797 *)
798 # FIXME: should be removed in autoconf 3.0.
799 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
800 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
801 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
802 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
803 ;;
804
805 esac
806done
807
808if test -n "$ac_prev"; then
809 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
810 { echo "$as_me: error: missing argument to $ac_option" >&2
811 { (exit 1); exit 1; }; }
812fi
813
814# Be sure to have absolute paths.
815for ac_var in exec_prefix prefix
816do
817 eval ac_val=$`echo $ac_var`
818 case $ac_val in
819 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
820 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
821 { (exit 1); exit 1; }; };;
822 esac
823done
824
825# Be sure to have absolute paths.
826for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
827 localstatedir libdir includedir oldincludedir infodir mandir
828do
829 eval ac_val=$`echo $ac_var`
830 case $ac_val in
831 [\\/$]* | ?:[\\/]* ) ;;
832 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
833 { (exit 1); exit 1; }; };;
834 esac
835done
836
837# There might be people who depend on the old broken behavior: `$host'
838# used to hold the argument of --host etc.
839# FIXME: To remove some day.
840build=$build_alias
841host=$host_alias
842target=$target_alias
843
844# FIXME: To remove some day.
845if test "x$host_alias" != x; then
846 if test "x$build_alias" = x; then
847 cross_compiling=maybe
848 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
849 If a cross compiler is detected then cross compile mode will be used." >&2
850 elif test "x$build_alias" != "x$host_alias"; then
851 cross_compiling=yes
852 fi
853fi
854
855ac_tool_prefix=
856test -n "$host_alias" && ac_tool_prefix=$host_alias-
857
858test "$silent" = yes && exec 6>/dev/null
859
860
861# Find the source files, if location was not specified.
862if test -z "$srcdir"; then
863 ac_srcdir_defaulted=yes
864 # Try the directory containing this script, then its parent.
865 ac_confdir=`(dirname "$0") 2>/dev/null ||
866$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
867 X"$0" : 'X\(//\)[^/]' \| \
868 X"$0" : 'X\(//\)$' \| \
869 X"$0" : 'X\(/\)' \| \
870 . : '\(.\)' 2>/dev/null ||
871echo X"$0" |
872 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
873 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
874 /^X\(\/\/\)$/{ s//\1/; q; }
875 /^X\(\/\).*/{ s//\1/; q; }
876 s/.*/./; q'`
877 srcdir=$ac_confdir
878 if test ! -r $srcdir/$ac_unique_file; then
879 srcdir=..
880 fi
881else
882 ac_srcdir_defaulted=no
883fi
884if test ! -r $srcdir/$ac_unique_file; then
885 if test "$ac_srcdir_defaulted" = yes; then
886 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
887 { (exit 1); exit 1; }; }
888 else
889 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
890 { (exit 1); exit 1; }; }
891 fi
892fi
John Criswell0c38eaf2003-09-10 15:17:25 +0000893(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
894 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
895 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +0000896srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
897ac_env_build_alias_set=${build_alias+set}
898ac_env_build_alias_value=$build_alias
899ac_cv_env_build_alias_set=${build_alias+set}
900ac_cv_env_build_alias_value=$build_alias
901ac_env_host_alias_set=${host_alias+set}
902ac_env_host_alias_value=$host_alias
903ac_cv_env_host_alias_set=${host_alias+set}
904ac_cv_env_host_alias_value=$host_alias
905ac_env_target_alias_set=${target_alias+set}
906ac_env_target_alias_value=$target_alias
907ac_cv_env_target_alias_set=${target_alias+set}
908ac_cv_env_target_alias_value=$target_alias
909ac_env_CXX_set=${CXX+set}
910ac_env_CXX_value=$CXX
911ac_cv_env_CXX_set=${CXX+set}
912ac_cv_env_CXX_value=$CXX
913ac_env_CXXFLAGS_set=${CXXFLAGS+set}
914ac_env_CXXFLAGS_value=$CXXFLAGS
915ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
916ac_cv_env_CXXFLAGS_value=$CXXFLAGS
917ac_env_LDFLAGS_set=${LDFLAGS+set}
918ac_env_LDFLAGS_value=$LDFLAGS
919ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
920ac_cv_env_LDFLAGS_value=$LDFLAGS
921ac_env_CPPFLAGS_set=${CPPFLAGS+set}
922ac_env_CPPFLAGS_value=$CPPFLAGS
923ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
924ac_cv_env_CPPFLAGS_value=$CPPFLAGS
925ac_env_CC_set=${CC+set}
926ac_env_CC_value=$CC
927ac_cv_env_CC_set=${CC+set}
928ac_cv_env_CC_value=$CC
929ac_env_CFLAGS_set=${CFLAGS+set}
930ac_env_CFLAGS_value=$CFLAGS
931ac_cv_env_CFLAGS_set=${CFLAGS+set}
932ac_cv_env_CFLAGS_value=$CFLAGS
933ac_env_CPP_set=${CPP+set}
934ac_env_CPP_value=$CPP
935ac_cv_env_CPP_set=${CPP+set}
936ac_cv_env_CPP_value=$CPP
John Criswell47fdd832003-07-14 16:52:07 +0000937ac_env_CXXCPP_set=${CXXCPP+set}
938ac_env_CXXCPP_value=$CXXCPP
939ac_cv_env_CXXCPP_set=${CXXCPP+set}
940ac_cv_env_CXXCPP_value=$CXXCPP
941ac_env_F77_set=${F77+set}
942ac_env_F77_value=$F77
943ac_cv_env_F77_set=${F77+set}
944ac_cv_env_F77_value=$F77
945ac_env_FFLAGS_set=${FFLAGS+set}
946ac_env_FFLAGS_value=$FFLAGS
947ac_cv_env_FFLAGS_set=${FFLAGS+set}
948ac_cv_env_FFLAGS_value=$FFLAGS
John Criswell7a73b802003-06-30 21:59:07 +0000949
950#
951# Report the --help message.
952#
953if test "$ac_init_help" = "long"; then
954 # Omit some internal or obsolete options to make the list less imposing.
955 # This message is too long to be a string in the A/UX 3.1 sh.
956 cat <<_ACEOF
Chris Lattner95f45c52004-04-14 16:32:09 +0000957\`configure' configures [LLVM] [1.3] to adapt to many kinds of systems.
John Criswell7a73b802003-06-30 21:59:07 +0000958
959Usage: $0 [OPTION]... [VAR=VALUE]...
960
961To assign environment variables (e.g., CC, CFLAGS...), specify them as
962VAR=VALUE. See below for descriptions of some of the useful variables.
963
964Defaults for the options are specified in brackets.
965
966Configuration:
967 -h, --help display this help and exit
968 --help=short display options specific to this package
969 --help=recursive display the short help of all the included packages
970 -V, --version display version information and exit
971 -q, --quiet, --silent do not print \`checking...' messages
972 --cache-file=FILE cache test results in FILE [disabled]
973 -C, --config-cache alias for \`--cache-file=config.cache'
974 -n, --no-create do not create output files
975 --srcdir=DIR find the sources in DIR [configure dir or \`..']
976
977_ACEOF
978
979 cat <<_ACEOF
980Installation directories:
981 --prefix=PREFIX install architecture-independent files in PREFIX
982 [$ac_default_prefix]
983 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
984 [PREFIX]
985
986By default, \`make install' will install all the files in
987\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
988an installation prefix other than \`$ac_default_prefix' using \`--prefix',
989for instance \`--prefix=\$HOME'.
990
991For better control, use the options below.
992
993Fine tuning of the installation directories:
994 --bindir=DIR user executables [EPREFIX/bin]
995 --sbindir=DIR system admin executables [EPREFIX/sbin]
996 --libexecdir=DIR program executables [EPREFIX/libexec]
997 --datadir=DIR read-only architecture-independent data [PREFIX/share]
998 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
999 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1000 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1001 --libdir=DIR object code libraries [EPREFIX/lib]
1002 --includedir=DIR C header files [PREFIX/include]
1003 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1004 --infodir=DIR info documentation [PREFIX/info]
1005 --mandir=DIR man documentation [PREFIX/man]
1006_ACEOF
1007
1008 cat <<\_ACEOF
1009
1010System types:
1011 --build=BUILD configure for building on BUILD [guessed]
1012 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1013 --target=TARGET configure for building compilers for TARGET [HOST]
1014_ACEOF
1015fi
1016
1017if test -n "$ac_init_help"; then
1018 case $ac_init_help in
Chris Lattner95f45c52004-04-14 16:32:09 +00001019 short | recursive ) echo "Configuration of [LLVM] [1.3]:";;
John Criswell7a73b802003-06-30 21:59:07 +00001020 esac
1021 cat <<\_ACEOF
1022
1023Optional Features:
1024 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1025 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
John Criswell47fdd832003-07-14 16:52:07 +00001026 --enable-shared[=PKGS]
1027 build shared libraries [default=yes]
1028 --enable-static[=PKGS]
1029 build static libraries [default=yes]
1030 --enable-fast-install[=PKGS]
1031 optimize for fast installation [default=yes]
John Criswell7a73b802003-06-30 21:59:07 +00001032 --disable-libtool-lock avoid locking (might break parallel builds)
John Criswell7a73b802003-06-30 21:59:07 +00001033 --enable-optimized Compile with optimizations enabled (default is NO)
Brian Gaekee773b862004-04-16 17:13:44 +00001034 --enable-spec95=ARG Use spec95 as a benchmark (srcs in DIR)
1035 --enable-spec2000=ARG Use spec2000 as a benchmark (srcs in DIR)
1036 --enable-povray=ARG Use povray as a benchmark (srcs in DIR)
John Criswell7a73b802003-06-30 21:59:07 +00001037 --enable-precompiled_bytecode
1038 Use pre-compiled bytecode (default is NO)
John Criswellf02dbf02003-07-22 20:07:49 +00001039 --enable-llc_diffs Enable LLC Diffs when testing (default is YES)
John Criswellc78022e2003-07-29 19:11:58 +00001040 --enable-jit Enable Just In Time Compiling (default is YES)
John Criswell7a73b802003-06-30 21:59:07 +00001041
1042Optional Packages:
1043 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1044 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
John Criswell47fdd832003-07-14 16:52:07 +00001045 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1046 --with-pic try to use only PIC/non-PIC objects [default=use
1047 both]
1048 --with-tags[=TAGS]
1049 include additional configurations [automatic]
John Criswell7a73b802003-06-30 21:59:07 +00001050 --with-llvmgccdir Location of LLVM GCC front-end
1051 --with-bcrepos Location of Bytecode Repository
1052 --with-papi Location of PAPI
John Criswell7a73b802003-06-30 21:59:07 +00001053
1054Some influential environment variables:
1055 CXX C++ compiler command
1056 CXXFLAGS C++ compiler flags
1057 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1058 nonstandard directory <lib dir>
1059 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1060 headers in a nonstandard directory <include dir>
1061 CC C compiler command
1062 CFLAGS C compiler flags
1063 CPP C preprocessor
John Criswell47fdd832003-07-14 16:52:07 +00001064 CXXCPP C++ preprocessor
1065 F77 Fortran 77 compiler command
1066 FFLAGS Fortran 77 compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001067
1068Use these variables to override the choices made by `configure' or to help
1069it to find libraries and programs with nonstandard names/locations.
1070
1071Report bugs to <llvmbugs@cs.uiuc.edu>.
1072_ACEOF
1073fi
1074
1075if test "$ac_init_help" = "recursive"; then
1076 # If there are subdirs, report their specific --help.
1077 ac_popdir=`pwd`
1078 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1079 test -d $ac_dir || continue
1080 ac_builddir=.
1081
1082if test "$ac_dir" != .; then
1083 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1084 # A "../" for each directory in $ac_dir_suffix.
1085 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1086else
1087 ac_dir_suffix= ac_top_builddir=
1088fi
1089
1090case $srcdir in
1091 .) # No --srcdir option. We are building in place.
1092 ac_srcdir=.
1093 if test -z "$ac_top_builddir"; then
1094 ac_top_srcdir=.
1095 else
1096 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1097 fi ;;
1098 [\\/]* | ?:[\\/]* ) # Absolute path.
1099 ac_srcdir=$srcdir$ac_dir_suffix;
1100 ac_top_srcdir=$srcdir ;;
1101 *) # Relative path.
1102 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1103 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1104esac
1105# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1106# absolute.
1107ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
John Criswell0c38eaf2003-09-10 15:17:25 +00001108ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
John Criswell7a73b802003-06-30 21:59:07 +00001109ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1110ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1111
1112 cd $ac_dir
1113 # Check for guested configure; otherwise get Cygnus style configure.
1114 if test -f $ac_srcdir/configure.gnu; then
1115 echo
1116 $SHELL $ac_srcdir/configure.gnu --help=recursive
1117 elif test -f $ac_srcdir/configure; then
1118 echo
1119 $SHELL $ac_srcdir/configure --help=recursive
1120 elif test -f $ac_srcdir/configure.ac ||
1121 test -f $ac_srcdir/configure.in; then
1122 echo
1123 $ac_configure --help
1124 else
1125 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1126 fi
1127 cd $ac_popdir
1128 done
1129fi
1130
1131test -n "$ac_init_help" && exit 0
1132if $ac_init_version; then
1133 cat <<\_ACEOF
Chris Lattner95f45c52004-04-14 16:32:09 +00001134[LLVM] configure [1.3]
John Criswell0c38eaf2003-09-10 15:17:25 +00001135generated by GNU Autoconf 2.57
John Criswell7a73b802003-06-30 21:59:07 +00001136
1137Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1138Free Software Foundation, Inc.
1139This configure script is free software; the Free Software Foundation
1140gives unlimited permission to copy, distribute and modify it.
1141_ACEOF
1142 exit 0
1143fi
1144exec 5>config.log
1145cat >&5 <<_ACEOF
1146This file contains any messages produced by compilers while
1147running configure, to aid debugging if configure makes a mistake.
1148
Chris Lattner95f45c52004-04-14 16:32:09 +00001149It was created by [LLVM] $as_me [1.3], which was
John Criswell0c38eaf2003-09-10 15:17:25 +00001150generated by GNU Autoconf 2.57. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001151
1152 $ $0 $@
1153
1154_ACEOF
1155{
1156cat <<_ASUNAME
1157## --------- ##
1158## Platform. ##
1159## --------- ##
1160
1161hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1162uname -m = `(uname -m) 2>/dev/null || echo unknown`
1163uname -r = `(uname -r) 2>/dev/null || echo unknown`
1164uname -s = `(uname -s) 2>/dev/null || echo unknown`
1165uname -v = `(uname -v) 2>/dev/null || echo unknown`
1166
1167/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1168/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1169
1170/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1171/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1172/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1173hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1174/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1175/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1176/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1177
1178_ASUNAME
1179
1180as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1181for as_dir in $PATH
1182do
1183 IFS=$as_save_IFS
1184 test -z "$as_dir" && as_dir=.
1185 echo "PATH: $as_dir"
1186done
1187
1188} >&5
1189
1190cat >&5 <<_ACEOF
1191
1192
1193## ----------- ##
1194## Core tests. ##
1195## ----------- ##
1196
1197_ACEOF
1198
1199
1200# Keep a trace of the command line.
1201# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001202# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001203# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001204# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001205ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001206ac_configure_args0=
1207ac_configure_args1=
John Criswell7a73b802003-06-30 21:59:07 +00001208ac_sep=
John Criswell0c38eaf2003-09-10 15:17:25 +00001209ac_must_keep_next=false
1210for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001211do
John Criswell0c38eaf2003-09-10 15:17:25 +00001212 for ac_arg
1213 do
1214 case $ac_arg in
1215 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1216 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1217 | -silent | --silent | --silen | --sile | --sil)
1218 continue ;;
1219 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1220 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1221 esac
1222 case $ac_pass in
1223 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1224 2)
1225 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1226 if test $ac_must_keep_next = true; then
1227 ac_must_keep_next=false # Got value, back to normal.
1228 else
1229 case $ac_arg in
1230 *=* | --config-cache | -C | -disable-* | --disable-* \
1231 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1232 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1233 | -with-* | --with-* | -without-* | --without-* | --x)
1234 case "$ac_configure_args0 " in
1235 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1236 esac
1237 ;;
1238 -* ) ac_must_keep_next=true ;;
1239 esac
1240 fi
1241 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1242 # Get rid of the leading space.
1243 ac_sep=" "
1244 ;;
1245 esac
1246 done
John Criswell7a73b802003-06-30 21:59:07 +00001247done
John Criswell0c38eaf2003-09-10 15:17:25 +00001248$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1249$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
John Criswell7a73b802003-06-30 21:59:07 +00001250
1251# When interrupted or exit'd, cleanup temporary files, and complete
1252# config.log. We remove comments because anyway the quotes in there
1253# would cause problems or look ugly.
1254# WARNING: Be sure not to use single quotes in there, as some shells,
1255# such as our DU 5.0 friend, will then `close' the trap.
1256trap 'exit_status=$?
1257 # Save into config.log some information that might help in debugging.
1258 {
1259 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001260
John Criswell7a73b802003-06-30 21:59:07 +00001261 cat <<\_ASBOX
1262## ---------------- ##
1263## Cache variables. ##
1264## ---------------- ##
1265_ASBOX
1266 echo
1267 # The following way of writing the cache mishandles newlines in values,
1268{
1269 (set) 2>&1 |
1270 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1271 *ac_space=\ *)
1272 sed -n \
1273 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1274 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1275 ;;
1276 *)
1277 sed -n \
1278 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1279 ;;
1280 esac;
1281}
1282 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001283
1284 cat <<\_ASBOX
1285## ----------------- ##
1286## Output variables. ##
1287## ----------------- ##
1288_ASBOX
1289 echo
1290 for ac_var in $ac_subst_vars
1291 do
1292 eval ac_val=$`echo $ac_var`
1293 echo "$ac_var='"'"'$ac_val'"'"'"
1294 done | sort
1295 echo
1296
1297 if test -n "$ac_subst_files"; then
1298 cat <<\_ASBOX
1299## ------------- ##
1300## Output files. ##
1301## ------------- ##
1302_ASBOX
1303 echo
1304 for ac_var in $ac_subst_files
1305 do
1306 eval ac_val=$`echo $ac_var`
1307 echo "$ac_var='"'"'$ac_val'"'"'"
1308 done | sort
1309 echo
1310 fi
1311
John Criswell7a73b802003-06-30 21:59:07 +00001312 if test -s confdefs.h; then
1313 cat <<\_ASBOX
1314## ----------- ##
1315## confdefs.h. ##
1316## ----------- ##
1317_ASBOX
1318 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001319 sed "/^$/d" confdefs.h | sort
John Criswell7a73b802003-06-30 21:59:07 +00001320 echo
1321 fi
1322 test "$ac_signal" != 0 &&
1323 echo "$as_me: caught signal $ac_signal"
1324 echo "$as_me: exit $exit_status"
1325 } >&5
1326 rm -f core core.* *.core &&
1327 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1328 exit $exit_status
1329 ' 0
1330for ac_signal in 1 2 13 15; do
1331 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1332done
1333ac_signal=0
1334
1335# confdefs.h avoids OS command line length limits that DEFS can exceed.
1336rm -rf conftest* confdefs.h
1337# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1338echo >confdefs.h
1339
1340# Predefined preprocessor variables.
1341
1342cat >>confdefs.h <<_ACEOF
1343#define PACKAGE_NAME "$PACKAGE_NAME"
1344_ACEOF
1345
1346
1347cat >>confdefs.h <<_ACEOF
1348#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1349_ACEOF
1350
1351
1352cat >>confdefs.h <<_ACEOF
1353#define PACKAGE_VERSION "$PACKAGE_VERSION"
1354_ACEOF
1355
1356
1357cat >>confdefs.h <<_ACEOF
1358#define PACKAGE_STRING "$PACKAGE_STRING"
1359_ACEOF
1360
1361
1362cat >>confdefs.h <<_ACEOF
1363#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1364_ACEOF
1365
1366
1367# Let the site file select an alternate cache file if it wants to.
1368# Prefer explicitly selected file to automatically selected ones.
1369if test -z "$CONFIG_SITE"; then
1370 if test "x$prefix" != xNONE; then
1371 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1372 else
1373 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1374 fi
1375fi
1376for ac_site_file in $CONFIG_SITE; do
1377 if test -r "$ac_site_file"; then
1378 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1379echo "$as_me: loading site script $ac_site_file" >&6;}
1380 sed 's/^/| /' "$ac_site_file" >&5
1381 . "$ac_site_file"
1382 fi
1383done
1384
1385if test -r "$cache_file"; then
1386 # Some versions of bash will fail to source /dev/null (special
1387 # files actually), so we avoid doing that.
1388 if test -f "$cache_file"; then
1389 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1390echo "$as_me: loading cache $cache_file" >&6;}
1391 case $cache_file in
1392 [\\/]* | ?:[\\/]* ) . $cache_file;;
1393 *) . ./$cache_file;;
1394 esac
1395 fi
1396else
1397 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1398echo "$as_me: creating cache $cache_file" >&6;}
1399 >$cache_file
1400fi
1401
1402# Check that the precious variables saved in the cache have kept the same
1403# value.
1404ac_cache_corrupted=false
1405for ac_var in `(set) 2>&1 |
1406 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1407 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1408 eval ac_new_set=\$ac_env_${ac_var}_set
1409 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1410 eval ac_new_val="\$ac_env_${ac_var}_value"
1411 case $ac_old_set,$ac_new_set in
1412 set,)
1413 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1414echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1415 ac_cache_corrupted=: ;;
1416 ,set)
1417 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1418echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1419 ac_cache_corrupted=: ;;
1420 ,);;
1421 *)
1422 if test "x$ac_old_val" != "x$ac_new_val"; then
1423 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1424echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1425 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1426echo "$as_me: former value: $ac_old_val" >&2;}
1427 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1428echo "$as_me: current value: $ac_new_val" >&2;}
1429 ac_cache_corrupted=:
1430 fi;;
1431 esac
1432 # Pass precious variables to config.status.
1433 if test "$ac_new_set" = set; then
1434 case $ac_new_val in
1435 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1436 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1437 *) ac_arg=$ac_var=$ac_new_val ;;
1438 esac
1439 case " $ac_configure_args " in
1440 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1441 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1442 esac
1443 fi
1444done
1445if $ac_cache_corrupted; then
1446 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1447echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1448 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1449echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1450 { (exit 1); exit 1; }; }
1451fi
1452
1453ac_ext=c
1454ac_cpp='$CPP $CPPFLAGS'
1455ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1456ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1457ac_compiler_gnu=$ac_cv_c_compiler_gnu
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
John Criswell0c38eaf2003-09-10 15:17:25 +00001485
John Criswell7a73b802003-06-30 21:59:07 +00001486ac_aux_dir=
John Criswell392aaa32003-07-22 19:18:09 +00001487for ac_dir in autoconf $srcdir/autoconf; do
John Criswell7a73b802003-06-30 21:59:07 +00001488 if test -f $ac_dir/install-sh; then
1489 ac_aux_dir=$ac_dir
1490 ac_install_sh="$ac_aux_dir/install-sh -c"
1491 break
1492 elif test -f $ac_dir/install.sh; then
1493 ac_aux_dir=$ac_dir
1494 ac_install_sh="$ac_aux_dir/install.sh -c"
1495 break
1496 elif test -f $ac_dir/shtool; then
1497 ac_aux_dir=$ac_dir
1498 ac_install_sh="$ac_aux_dir/shtool install -c"
1499 break
1500 fi
1501done
1502if test -z "$ac_aux_dir"; then
John Criswell392aaa32003-07-22 19:18:09 +00001503 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1504echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001505 { (exit 1); exit 1; }; }
1506fi
1507ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1508ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1509ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1510
John Criswell392aaa32003-07-22 19:18:09 +00001511
John Criswell1b824322003-09-15 17:19:42 +00001512if test ${srcdir} != "."
John Criswell93e1c722003-09-15 17:04:06 +00001513then
John Criswell1b824322003-09-15 17:19:42 +00001514 if test -f ${srcdir}/include/Config/config.h
1515 then
1516 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
John Criswell93e1c722003-09-15 17:04:06 +00001517echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1518 { (exit 1); exit 1; }; }
John Criswell1b824322003-09-15 17:19:42 +00001519 fi
John Criswell93e1c722003-09-15 17:04:06 +00001520fi
1521
John Criswell33a911a2003-11-25 20:36:46 +00001522for i in `ls ${srcdir}/projects`
1523do
1524 if test ${i} != "CVS"
1525 then
John Criswell2f2741b2003-12-12 20:15:23 +00001526 if test -f ${srcdir}/projects/${i}/configure
John Criswell33a911a2003-11-25 20:36:46 +00001527 then
John Criswell7ec78aa2003-10-16 01:49:00 +00001528
1529
John Criswell33a911a2003-11-25 20:36:46 +00001530subdirs="$subdirs projects/${i}"
John Criswell7ec78aa2003-10-16 01:49:00 +00001531
John Criswell33a911a2003-11-25 20:36:46 +00001532 fi
1533 fi
1534done
John Criswell559a6c12003-09-30 16:31:48 +00001535
John Criswell0c38eaf2003-09-10 15:17:25 +00001536 ac_config_headers="$ac_config_headers include/Config/config.h"
John Criswell392aaa32003-07-22 19:18:09 +00001537
John Criswell0c38eaf2003-09-10 15:17:25 +00001538 ac_config_commands="$ac_config_commands Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001539
1540
John Criswell0c38eaf2003-09-10 15:17:25 +00001541 ac_config_commands="$ac_config_commands Makefile.common"
John Criswellc764fbc2003-09-06 15:17:13 +00001542
1543
John Criswell0c38eaf2003-09-10 15:17:25 +00001544 ac_config_commands="$ac_config_commands lib/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001545
1546
John Criswell0c38eaf2003-09-10 15:17:25 +00001547 ac_config_commands="$ac_config_commands runtime/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001548
1549
John Criswell0c38eaf2003-09-10 15:17:25 +00001550 ac_config_commands="$ac_config_commands test/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001551
1552
John Criswell0c38eaf2003-09-10 15:17:25 +00001553 ac_config_commands="$ac_config_commands test/Makefile.tests"
John Criswellc764fbc2003-09-06 15:17:13 +00001554
1555
John Criswellf424d742003-10-07 21:13:47 +00001556 ac_config_commands="$ac_config_commands test/QMTest/llvm.py"
1557
1558
1559 ac_config_commands="$ac_config_commands test/QMTest/llvmdb.py"
John Criswell08acb9b2003-09-16 02:12:45 +00001560
1561
John Criswell0c38eaf2003-09-10 15:17:25 +00001562 ac_config_commands="$ac_config_commands test/Programs/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001563
1564
John Criswell0c38eaf2003-09-10 15:17:25 +00001565 ac_config_commands="$ac_config_commands test/Programs/Makefile.programs"
John Criswellc764fbc2003-09-06 15:17:13 +00001566
1567
John Criswell0c38eaf2003-09-10 15:17:25 +00001568 ac_config_commands="$ac_config_commands test/Programs/TEST.aa.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001569
1570
John Criswell0c38eaf2003-09-10 15:17:25 +00001571 ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.report"
John Criswellc764fbc2003-09-06 15:17:13 +00001572
1573
John Criswell0c38eaf2003-09-10 15:17:25 +00001574 ac_config_commands="$ac_config_commands test/Programs/TEST.aa.report"
John Criswellc764fbc2003-09-06 15:17:13 +00001575
1576
John Criswell0c38eaf2003-09-10 15:17:25 +00001577 ac_config_commands="$ac_config_commands test/Programs/TEST.example.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001578
1579
John Criswell0c38eaf2003-09-10 15:17:25 +00001580 ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001581
1582
John Criswell0c38eaf2003-09-10 15:17:25 +00001583 ac_config_commands="$ac_config_commands test/Programs/TEST.buildrepo.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001584
1585
John Criswell0c38eaf2003-09-10 15:17:25 +00001586 ac_config_commands="$ac_config_commands test/Programs/TEST.jit.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001587
1588
John Criswell0c38eaf2003-09-10 15:17:25 +00001589 ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.report"
John Criswellc764fbc2003-09-06 15:17:13 +00001590
1591
John Criswell0c38eaf2003-09-10 15:17:25 +00001592 ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001593
1594
John Criswell0c38eaf2003-09-10 15:17:25 +00001595 ac_config_commands="$ac_config_commands test/Programs/TEST.jit.report"
John Criswellc764fbc2003-09-06 15:17:13 +00001596
1597
John Criswell0c38eaf2003-09-10 15:17:25 +00001598 ac_config_commands="$ac_config_commands test/Programs/TEST.typesafe.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001599
1600
John Criswell0c38eaf2003-09-10 15:17:25 +00001601 ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.gnuplot"
John Criswellc764fbc2003-09-06 15:17:13 +00001602
1603
John Criswell878be7d2004-02-24 21:43:38 +00001604 ac_config_commands="$ac_config_commands test/Programs/TEST.vtl.Makefile"
1605
1606
John Criswell0c38eaf2003-09-10 15:17:25 +00001607 ac_config_commands="$ac_config_commands test/Programs/External/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001608
1609
John Criswell0c38eaf2003-09-10 15:17:25 +00001610 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001611
1612
John Criswell613758d2003-09-11 18:03:50 +00001613 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile.spec"
1614
1615
Alkis Evlogimenos271143f2004-02-26 04:14:10 +00001616 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile.spec2000"
1617
1618
John Criswellcf2e9f72004-02-10 22:36:35 +00001619 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile.spec95"
1620
1621
John Criswell0c38eaf2003-09-10 15:17:25 +00001622 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001623
1624
John Criswell0c38eaf2003-09-10 15:17:25 +00001625 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile.multisrc"
John Criswellc764fbc2003-09-06 15:17:13 +00001626
1627
Misha Brukman811ce9f2003-11-12 22:16:51 +00001628 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in"
1629
1630
1631 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile"
1632
1633
1634 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in"
1635
1636
1637 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile"
1638
1639
1640 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in"
1641
1642
1643 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile"
1644
1645
1646 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in"
1647
1648
1649 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile"
1650
1651
1652 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in"
1653
1654
1655 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile"
1656
1657
1658 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in"
1659
1660
1661 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile"
1662
1663
1664 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in"
1665
1666
John Criswell0c38eaf2003-09-10 15:17:25 +00001667 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001668
1669
John Criswell0c38eaf2003-09-10 15:17:25 +00001670 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile.singlesrc"
John Criswellc764fbc2003-09-06 15:17:13 +00001671
1672
Alkis Evlogimenos271143f2004-02-26 04:14:10 +00001673 ac_config_commands="$ac_config_commands test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile"
1674
1675
John Criswell0c38eaf2003-09-10 15:17:25 +00001676 ac_config_commands="$ac_config_commands tools/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001677
1678
Brian Gaekec45be042003-10-07 06:01:34 +00001679 ac_config_commands="$ac_config_commands utils/Makefile"
1680
1681
John Criswell0c38eaf2003-09-10 15:17:25 +00001682 ac_config_commands="$ac_config_commands projects/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001683
1684
John Criswell392aaa32003-07-22 19:18:09 +00001685
John Criswell7a73b802003-06-30 21:59:07 +00001686# Find a good install program. We prefer a C program (faster),
1687# so one script is as good as another. But avoid the broken or
1688# incompatible versions:
1689# SysV /etc/install, /usr/sbin/install
1690# SunOS /usr/etc/install
1691# IRIX /sbin/install
1692# AIX /bin/install
1693# AmigaOS /C/install, which installs bootblocks on floppy discs
1694# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1695# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1696# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1697# ./install, which can be erroneously created by make from ./install.sh.
1698echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1699echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1700if test -z "$INSTALL"; then
1701if test "${ac_cv_path_install+set}" = set; then
1702 echo $ECHO_N "(cached) $ECHO_C" >&6
1703else
1704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1705for as_dir in $PATH
1706do
1707 IFS=$as_save_IFS
1708 test -z "$as_dir" && as_dir=.
1709 # Account for people who put trailing slashes in PATH elements.
1710case $as_dir/ in
1711 ./ | .// | /cC/* | \
1712 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1713 /usr/ucb/* ) ;;
1714 *)
1715 # OSF1 and SCO ODT 3.0 have their own names for install.
1716 # Don't use installbsd from OSF since it installs stuff as root
1717 # by default.
1718 for ac_prog in ginstall scoinst install; do
1719 for ac_exec_ext in '' $ac_executable_extensions; do
1720 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1721 if test $ac_prog = install &&
1722 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1723 # AIX install. It has an incompatible calling convention.
1724 :
1725 elif test $ac_prog = install &&
1726 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1727 # program-specific install script used by HP pwplus--don't use.
1728 :
1729 else
1730 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1731 break 3
1732 fi
1733 fi
1734 done
1735 done
1736 ;;
1737esac
1738done
1739
1740
1741fi
1742 if test "${ac_cv_path_install+set}" = set; then
1743 INSTALL=$ac_cv_path_install
1744 else
1745 # As a last resort, use the slow shell script. We don't cache a
1746 # path for INSTALL within a source directory, because that will
1747 # break other packages using the cache if that directory is
1748 # removed, or if the path is relative.
1749 INSTALL=$ac_install_sh
1750 fi
1751fi
1752echo "$as_me:$LINENO: result: $INSTALL" >&5
1753echo "${ECHO_T}$INSTALL" >&6
1754
1755# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1756# It thinks the first close brace ends the variable substitution.
1757test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1758
1759test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1760
1761test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1762
1763
1764# Make sure we can run config.sub.
1765$ac_config_sub sun4 >/dev/null 2>&1 ||
1766 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1767echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1768 { (exit 1); exit 1; }; }
1769
1770echo "$as_me:$LINENO: checking build system type" >&5
1771echo $ECHO_N "checking build system type... $ECHO_C" >&6
1772if test "${ac_cv_build+set}" = set; then
1773 echo $ECHO_N "(cached) $ECHO_C" >&6
1774else
1775 ac_cv_build_alias=$build_alias
1776test -z "$ac_cv_build_alias" &&
1777 ac_cv_build_alias=`$ac_config_guess`
1778test -z "$ac_cv_build_alias" &&
1779 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1780echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1781 { (exit 1); exit 1; }; }
1782ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1783 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1784echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1785 { (exit 1); exit 1; }; }
1786
1787fi
1788echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1789echo "${ECHO_T}$ac_cv_build" >&6
1790build=$ac_cv_build
1791build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1792build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1793build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1794
1795
1796echo "$as_me:$LINENO: checking host system type" >&5
1797echo $ECHO_N "checking host system type... $ECHO_C" >&6
1798if test "${ac_cv_host+set}" = set; then
1799 echo $ECHO_N "(cached) $ECHO_C" >&6
1800else
1801 ac_cv_host_alias=$host_alias
1802test -z "$ac_cv_host_alias" &&
1803 ac_cv_host_alias=$ac_cv_build_alias
1804ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1805 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1806echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1807 { (exit 1); exit 1; }; }
1808
1809fi
1810echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1811echo "${ECHO_T}$ac_cv_host" >&6
1812host=$ac_cv_host
1813host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1814host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1815host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1816
1817
1818echo "$as_me:$LINENO: checking target system type" >&5
1819echo $ECHO_N "checking target system type... $ECHO_C" >&6
1820if test "${ac_cv_target+set}" = set; then
1821 echo $ECHO_N "(cached) $ECHO_C" >&6
1822else
1823 ac_cv_target_alias=$target_alias
1824test "x$ac_cv_target_alias" = "x" &&
1825 ac_cv_target_alias=$ac_cv_host_alias
1826ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1827 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1828echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1829 { (exit 1); exit 1; }; }
1830
1831fi
1832echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1833echo "${ECHO_T}$ac_cv_target" >&6
1834target=$ac_cv_target
1835target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1836target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1837target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1838
1839
1840# The aliases save the names the user supplied, while $host etc.
1841# will get canonicalized.
1842test -n "$target_alias" &&
1843 test "$program_prefix$program_suffix$program_transform_name" = \
1844 NONENONEs,x,x, &&
1845 program_prefix=${target_alias}-
1846
1847case $build in
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001848 *-*-linux*)
1849 OS=Linux
John Criswell7a73b802003-06-30 21:59:07 +00001850
Brian Gaekef3b24102003-11-16 18:38:14 +00001851 if test -d /home/vadve/lattner/local/x86/llvm-gcc
1852 then
1853 LLVMGCCDIR=/home/vadve/lattner/local/x86/llvm-gcc/
John Criswell7a73b802003-06-30 21:59:07 +00001854
Brian Gaekef3b24102003-11-16 18:38:14 +00001855 fi
John Criswell7a73b802003-06-30 21:59:07 +00001856 ;;
1857
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001858 *-*-solaris*)
1859 OS=SunOS
John Criswell7a73b802003-06-30 21:59:07 +00001860
Brian Gaekef3b24102003-11-16 18:38:14 +00001861 if test -d /home/vadve/lattner/local/sparc/llvm-gcc
1862 then
1863 LLVMGCCDIR=/home/vadve/lattner/local/sparc/llvm-gcc/
John Criswell7a73b802003-06-30 21:59:07 +00001864
Brian Gaekef3b24102003-11-16 18:38:14 +00001865 fi
John Criswell7a73b802003-06-30 21:59:07 +00001866 ;;
1867
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001868 *-*-darwin*)
1869 OS=Darwin
1870
1871 ;;
Chris Lattner44afcb72004-06-02 23:32:17 +00001872 *-*-cygwin*)
1873 OS=Cygwin
1874
1875 ;;
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001876
John Criswell7a73b802003-06-30 21:59:07 +00001877 *) OS=Unknown
1878
1879 ;;
1880esac
1881
1882case $target in
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001883 sparc*-*-solaris*) target=sparcv9-sun-solaris2.8
John Criswell7a73b802003-06-30 21:59:07 +00001884
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001885 ;;
John Criswell7a73b802003-06-30 21:59:07 +00001886esac
1887
John Criswell76595452003-07-01 22:07:39 +00001888case $target in
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001889 i*86-*) ARCH=x86
John Criswell76595452003-07-01 22:07:39 +00001890
1891 ;;
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001892 sparc*-*) ARCH=Sparc
1893
1894 ;;
1895 powerpc*-*) ARCH=PowerPC
1896
1897 ;;
1898 *) ARCH=Unknown
John Criswell76595452003-07-01 22:07:39 +00001899
1900 ;;
1901esac
1902
John Criswell7a73b802003-06-30 21:59:07 +00001903ac_ext=cc
1904ac_cpp='$CXXCPP $CPPFLAGS'
1905ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1906ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1907ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1908if test -n "$ac_tool_prefix"; then
1909 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1910 do
1911 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1912set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1913echo "$as_me:$LINENO: checking for $ac_word" >&5
1914echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1915if test "${ac_cv_prog_CXX+set}" = set; then
1916 echo $ECHO_N "(cached) $ECHO_C" >&6
1917else
1918 if test -n "$CXX"; then
1919 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1920else
1921as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1922for as_dir in $PATH
1923do
1924 IFS=$as_save_IFS
1925 test -z "$as_dir" && as_dir=.
1926 for ac_exec_ext in '' $ac_executable_extensions; do
1927 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1928 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1929 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1930 break 2
1931 fi
1932done
1933done
1934
1935fi
1936fi
1937CXX=$ac_cv_prog_CXX
1938if test -n "$CXX"; then
1939 echo "$as_me:$LINENO: result: $CXX" >&5
1940echo "${ECHO_T}$CXX" >&6
1941else
1942 echo "$as_me:$LINENO: result: no" >&5
1943echo "${ECHO_T}no" >&6
1944fi
1945
1946 test -n "$CXX" && break
1947 done
1948fi
1949if test -z "$CXX"; then
1950 ac_ct_CXX=$CXX
1951 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1952do
1953 # Extract the first word of "$ac_prog", so it can be a program name with args.
1954set dummy $ac_prog; ac_word=$2
1955echo "$as_me:$LINENO: checking for $ac_word" >&5
1956echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1957if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1958 echo $ECHO_N "(cached) $ECHO_C" >&6
1959else
1960 if test -n "$ac_ct_CXX"; then
1961 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1962else
1963as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1964for as_dir in $PATH
1965do
1966 IFS=$as_save_IFS
1967 test -z "$as_dir" && as_dir=.
1968 for ac_exec_ext in '' $ac_executable_extensions; do
1969 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1970 ac_cv_prog_ac_ct_CXX="$ac_prog"
1971 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1972 break 2
1973 fi
1974done
1975done
1976
1977fi
1978fi
1979ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
1980if test -n "$ac_ct_CXX"; then
1981 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
1982echo "${ECHO_T}$ac_ct_CXX" >&6
1983else
1984 echo "$as_me:$LINENO: result: no" >&5
1985echo "${ECHO_T}no" >&6
1986fi
1987
1988 test -n "$ac_ct_CXX" && break
1989done
1990test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
1991
1992 CXX=$ac_ct_CXX
1993fi
1994
1995
1996# Provide some information about the compiler.
1997echo "$as_me:$LINENO:" \
1998 "checking for C++ compiler version" >&5
1999ac_compiler=`set X $ac_compile; echo $2`
2000{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2001 (eval $ac_compiler --version </dev/null >&5) 2>&5
2002 ac_status=$?
2003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2004 (exit $ac_status); }
2005{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2006 (eval $ac_compiler -v </dev/null >&5) 2>&5
2007 ac_status=$?
2008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2009 (exit $ac_status); }
2010{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2011 (eval $ac_compiler -V </dev/null >&5) 2>&5
2012 ac_status=$?
2013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2014 (exit $ac_status); }
2015
2016cat >conftest.$ac_ext <<_ACEOF
2017#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002018/* confdefs.h. */
2019_ACEOF
2020cat confdefs.h >>conftest.$ac_ext
2021cat >>conftest.$ac_ext <<_ACEOF
2022/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002023
John Criswell7a73b802003-06-30 21:59:07 +00002024int
2025main ()
2026{
2027
2028 ;
2029 return 0;
2030}
2031_ACEOF
2032ac_clean_files_save=$ac_clean_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002033ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002034# Try to create an executable without -o first, disregard a.out.
2035# It will help us diagnose broken compilers, and finding out an intuition
2036# of exeext.
2037echo "$as_me:$LINENO: checking for C++ compiler default output" >&5
2038echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6
2039ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2040if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2041 (eval $ac_link_default) 2>&5
2042 ac_status=$?
2043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2044 (exit $ac_status); }; then
2045 # Find the output, starting from the most likely. This scheme is
2046# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2047# resort.
2048
2049# Be careful to initialize this variable, since it used to be cached.
2050# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2051ac_cv_exeext=
John Criswell0c38eaf2003-09-10 15:17:25 +00002052# b.out is created by i960 compilers.
2053for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2054do
2055 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002056 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002057 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2058 ;;
2059 conftest.$ac_ext )
2060 # This is the source file.
2061 ;;
2062 [ab].out )
2063 # We found the default executable, but exeext='' is most
2064 # certainly right.
2065 break;;
2066 *.* )
2067 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2068 # FIXME: I believe we export ac_cv_exeext for Libtool,
2069 # but it would be cool to find out if it's true. Does anybody
2070 # maintain Libtool? --akim.
2071 export ac_cv_exeext
2072 break;;
2073 * )
2074 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002075 esac
2076done
2077else
2078 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002079sed 's/^/| /' conftest.$ac_ext >&5
2080
2081{ { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2082See \`config.log' for more details." >&5
2083echo "$as_me: error: C++ compiler cannot create executables
2084See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002085 { (exit 77); exit 77; }; }
2086fi
2087
2088ac_exeext=$ac_cv_exeext
2089echo "$as_me:$LINENO: result: $ac_file" >&5
2090echo "${ECHO_T}$ac_file" >&6
2091
2092# Check the compiler produces executables we can run. If not, either
2093# the compiler is broken, or we cross compile.
2094echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2095echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2096# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2097# If not cross compiling, check that we can run a simple program.
2098if test "$cross_compiling" != yes; then
2099 if { ac_try='./$ac_file'
2100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2101 (eval $ac_try) 2>&5
2102 ac_status=$?
2103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2104 (exit $ac_status); }; }; then
2105 cross_compiling=no
2106 else
2107 if test "$cross_compiling" = maybe; then
2108 cross_compiling=yes
2109 else
2110 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002111If you meant to cross compile, use \`--host'.
2112See \`config.log' for more details." >&5
John Criswell7a73b802003-06-30 21:59:07 +00002113echo "$as_me: error: cannot run C++ compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002114If you meant to cross compile, use \`--host'.
2115See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002116 { (exit 1); exit 1; }; }
2117 fi
2118 fi
2119fi
2120echo "$as_me:$LINENO: result: yes" >&5
2121echo "${ECHO_T}yes" >&6
2122
John Criswell0c38eaf2003-09-10 15:17:25 +00002123rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002124ac_clean_files=$ac_clean_files_save
2125# Check the compiler produces executables we can run. If not, either
2126# the compiler is broken, or we cross compile.
2127echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2128echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2129echo "$as_me:$LINENO: result: $cross_compiling" >&5
2130echo "${ECHO_T}$cross_compiling" >&6
2131
2132echo "$as_me:$LINENO: checking for suffix of executables" >&5
2133echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2134if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2135 (eval $ac_link) 2>&5
2136 ac_status=$?
2137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2138 (exit $ac_status); }; then
2139 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2140# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2141# work properly (i.e., refer to `conftest.exe'), while it won't with
2142# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002143for ac_file in conftest.exe conftest conftest.*; do
2144 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002145 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002146 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002147 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2148 export ac_cv_exeext
2149 break;;
2150 * ) break;;
2151 esac
2152done
2153else
John Criswell0c38eaf2003-09-10 15:17:25 +00002154 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2155See \`config.log' for more details." >&5
2156echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2157See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002158 { (exit 1); exit 1; }; }
2159fi
2160
2161rm -f conftest$ac_cv_exeext
2162echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2163echo "${ECHO_T}$ac_cv_exeext" >&6
2164
2165rm -f conftest.$ac_ext
2166EXEEXT=$ac_cv_exeext
2167ac_exeext=$EXEEXT
2168echo "$as_me:$LINENO: checking for suffix of object files" >&5
2169echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2170if test "${ac_cv_objext+set}" = set; then
2171 echo $ECHO_N "(cached) $ECHO_C" >&6
2172else
2173 cat >conftest.$ac_ext <<_ACEOF
2174#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002175/* confdefs.h. */
2176_ACEOF
2177cat confdefs.h >>conftest.$ac_ext
2178cat >>conftest.$ac_ext <<_ACEOF
2179/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002180
John Criswell7a73b802003-06-30 21:59:07 +00002181int
2182main ()
2183{
2184
2185 ;
2186 return 0;
2187}
2188_ACEOF
2189rm -f conftest.o conftest.obj
2190if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2191 (eval $ac_compile) 2>&5
2192 ac_status=$?
2193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2194 (exit $ac_status); }; then
2195 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2196 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002197 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002198 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2199 break;;
2200 esac
2201done
2202else
2203 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002204sed 's/^/| /' conftest.$ac_ext >&5
2205
2206{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2207See \`config.log' for more details." >&5
2208echo "$as_me: error: cannot compute suffix of object files: cannot compile
2209See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002210 { (exit 1); exit 1; }; }
2211fi
2212
2213rm -f conftest.$ac_cv_objext conftest.$ac_ext
2214fi
2215echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2216echo "${ECHO_T}$ac_cv_objext" >&6
2217OBJEXT=$ac_cv_objext
2218ac_objext=$OBJEXT
2219echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2220echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2221if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2222 echo $ECHO_N "(cached) $ECHO_C" >&6
2223else
2224 cat >conftest.$ac_ext <<_ACEOF
2225#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002226/* confdefs.h. */
2227_ACEOF
2228cat confdefs.h >>conftest.$ac_ext
2229cat >>conftest.$ac_ext <<_ACEOF
2230/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002231
John Criswell7a73b802003-06-30 21:59:07 +00002232int
2233main ()
2234{
2235#ifndef __GNUC__
2236 choke me
2237#endif
2238
2239 ;
2240 return 0;
2241}
2242_ACEOF
2243rm -f conftest.$ac_objext
2244if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2245 (eval $ac_compile) 2>&5
2246 ac_status=$?
2247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2248 (exit $ac_status); } &&
2249 { ac_try='test -s conftest.$ac_objext'
2250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2251 (eval $ac_try) 2>&5
2252 ac_status=$?
2253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2254 (exit $ac_status); }; }; then
2255 ac_compiler_gnu=yes
2256else
2257 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002258sed 's/^/| /' conftest.$ac_ext >&5
2259
John Criswell7a73b802003-06-30 21:59:07 +00002260ac_compiler_gnu=no
2261fi
2262rm -f conftest.$ac_objext conftest.$ac_ext
2263ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2264
2265fi
2266echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2267echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2268GXX=`test $ac_compiler_gnu = yes && echo yes`
2269ac_test_CXXFLAGS=${CXXFLAGS+set}
2270ac_save_CXXFLAGS=$CXXFLAGS
2271CXXFLAGS="-g"
2272echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2273echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2274if test "${ac_cv_prog_cxx_g+set}" = set; then
2275 echo $ECHO_N "(cached) $ECHO_C" >&6
2276else
2277 cat >conftest.$ac_ext <<_ACEOF
2278#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002279/* confdefs.h. */
2280_ACEOF
2281cat confdefs.h >>conftest.$ac_ext
2282cat >>conftest.$ac_ext <<_ACEOF
2283/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002284
John Criswell7a73b802003-06-30 21:59:07 +00002285int
2286main ()
2287{
2288
2289 ;
2290 return 0;
2291}
2292_ACEOF
2293rm -f conftest.$ac_objext
2294if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2295 (eval $ac_compile) 2>&5
2296 ac_status=$?
2297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2298 (exit $ac_status); } &&
2299 { ac_try='test -s conftest.$ac_objext'
2300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2301 (eval $ac_try) 2>&5
2302 ac_status=$?
2303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2304 (exit $ac_status); }; }; then
2305 ac_cv_prog_cxx_g=yes
2306else
2307 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002308sed 's/^/| /' conftest.$ac_ext >&5
2309
John Criswell7a73b802003-06-30 21:59:07 +00002310ac_cv_prog_cxx_g=no
2311fi
2312rm -f conftest.$ac_objext conftest.$ac_ext
2313fi
2314echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2315echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2316if test "$ac_test_CXXFLAGS" = set; then
2317 CXXFLAGS=$ac_save_CXXFLAGS
2318elif test $ac_cv_prog_cxx_g = yes; then
2319 if test "$GXX" = yes; then
2320 CXXFLAGS="-g -O2"
2321 else
2322 CXXFLAGS="-g"
2323 fi
2324else
2325 if test "$GXX" = yes; then
2326 CXXFLAGS="-O2"
2327 else
2328 CXXFLAGS=
2329 fi
2330fi
2331for ac_declaration in \
2332 ''\
2333 '#include <stdlib.h>' \
2334 'extern "C" void std::exit (int) throw (); using std::exit;' \
2335 'extern "C" void std::exit (int); using std::exit;' \
2336 'extern "C" void exit (int) throw ();' \
2337 'extern "C" void exit (int);' \
2338 'void exit (int);'
2339do
2340 cat >conftest.$ac_ext <<_ACEOF
2341#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002342/* confdefs.h. */
2343_ACEOF
2344cat confdefs.h >>conftest.$ac_ext
2345cat >>conftest.$ac_ext <<_ACEOF
2346/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002347#include <stdlib.h>
2348$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00002349int
2350main ()
2351{
2352exit (42);
2353 ;
2354 return 0;
2355}
2356_ACEOF
2357rm -f conftest.$ac_objext
2358if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2359 (eval $ac_compile) 2>&5
2360 ac_status=$?
2361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2362 (exit $ac_status); } &&
2363 { ac_try='test -s conftest.$ac_objext'
2364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2365 (eval $ac_try) 2>&5
2366 ac_status=$?
2367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2368 (exit $ac_status); }; }; then
2369 :
2370else
2371 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002372sed 's/^/| /' conftest.$ac_ext >&5
2373
John Criswell7a73b802003-06-30 21:59:07 +00002374continue
2375fi
2376rm -f conftest.$ac_objext conftest.$ac_ext
2377 cat >conftest.$ac_ext <<_ACEOF
2378#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002379/* confdefs.h. */
2380_ACEOF
2381cat confdefs.h >>conftest.$ac_ext
2382cat >>conftest.$ac_ext <<_ACEOF
2383/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002384$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00002385int
2386main ()
2387{
2388exit (42);
2389 ;
2390 return 0;
2391}
2392_ACEOF
2393rm -f conftest.$ac_objext
2394if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2395 (eval $ac_compile) 2>&5
2396 ac_status=$?
2397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2398 (exit $ac_status); } &&
2399 { ac_try='test -s conftest.$ac_objext'
2400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2401 (eval $ac_try) 2>&5
2402 ac_status=$?
2403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2404 (exit $ac_status); }; }; then
2405 break
2406else
2407 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002408sed 's/^/| /' conftest.$ac_ext >&5
2409
John Criswell7a73b802003-06-30 21:59:07 +00002410fi
2411rm -f conftest.$ac_objext conftest.$ac_ext
2412done
2413rm -f conftest*
2414if test -n "$ac_declaration"; then
2415 echo '#ifdef __cplusplus' >>confdefs.h
2416 echo $ac_declaration >>confdefs.h
2417 echo '#endif' >>confdefs.h
2418fi
2419
2420ac_ext=c
2421ac_cpp='$CPP $CPPFLAGS'
2422ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2423ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2424ac_compiler_gnu=$ac_cv_c_compiler_gnu
2425
2426ac_ext=c
2427ac_cpp='$CPP $CPPFLAGS'
2428ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2429ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2430ac_compiler_gnu=$ac_cv_c_compiler_gnu
2431if test -n "$ac_tool_prefix"; then
2432 for ac_prog in gcc
2433 do
2434 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2435set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2436echo "$as_me:$LINENO: checking for $ac_word" >&5
2437echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2438if test "${ac_cv_prog_CC+set}" = set; then
2439 echo $ECHO_N "(cached) $ECHO_C" >&6
2440else
2441 if test -n "$CC"; then
2442 ac_cv_prog_CC="$CC" # Let the user override the test.
2443else
2444as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2445for as_dir in $PATH
2446do
2447 IFS=$as_save_IFS
2448 test -z "$as_dir" && as_dir=.
2449 for ac_exec_ext in '' $ac_executable_extensions; do
2450 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2451 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2452 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2453 break 2
2454 fi
2455done
2456done
2457
2458fi
2459fi
2460CC=$ac_cv_prog_CC
2461if test -n "$CC"; then
2462 echo "$as_me:$LINENO: result: $CC" >&5
2463echo "${ECHO_T}$CC" >&6
2464else
2465 echo "$as_me:$LINENO: result: no" >&5
2466echo "${ECHO_T}no" >&6
2467fi
2468
2469 test -n "$CC" && break
2470 done
2471fi
2472if test -z "$CC"; then
2473 ac_ct_CC=$CC
2474 for ac_prog in gcc
2475do
2476 # Extract the first word of "$ac_prog", so it can be a program name with args.
2477set dummy $ac_prog; ac_word=$2
2478echo "$as_me:$LINENO: checking for $ac_word" >&5
2479echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2480if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2481 echo $ECHO_N "(cached) $ECHO_C" >&6
2482else
2483 if test -n "$ac_ct_CC"; then
2484 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2485else
2486as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2487for as_dir in $PATH
2488do
2489 IFS=$as_save_IFS
2490 test -z "$as_dir" && as_dir=.
2491 for ac_exec_ext in '' $ac_executable_extensions; do
2492 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2493 ac_cv_prog_ac_ct_CC="$ac_prog"
2494 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2495 break 2
2496 fi
2497done
2498done
2499
2500fi
2501fi
2502ac_ct_CC=$ac_cv_prog_ac_ct_CC
2503if test -n "$ac_ct_CC"; then
2504 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2505echo "${ECHO_T}$ac_ct_CC" >&6
2506else
2507 echo "$as_me:$LINENO: result: no" >&5
2508echo "${ECHO_T}no" >&6
2509fi
2510
2511 test -n "$ac_ct_CC" && break
2512done
2513
2514 CC=$ac_ct_CC
2515fi
2516
2517
John Criswell0c38eaf2003-09-10 15:17:25 +00002518test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2519See \`config.log' for more details." >&5
2520echo "$as_me: error: no acceptable C compiler found in \$PATH
2521See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002522 { (exit 1); exit 1; }; }
2523
2524# Provide some information about the compiler.
2525echo "$as_me:$LINENO:" \
2526 "checking for C compiler version" >&5
2527ac_compiler=`set X $ac_compile; echo $2`
2528{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2529 (eval $ac_compiler --version </dev/null >&5) 2>&5
2530 ac_status=$?
2531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2532 (exit $ac_status); }
2533{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2534 (eval $ac_compiler -v </dev/null >&5) 2>&5
2535 ac_status=$?
2536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2537 (exit $ac_status); }
2538{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2539 (eval $ac_compiler -V </dev/null >&5) 2>&5
2540 ac_status=$?
2541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2542 (exit $ac_status); }
2543
2544echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2545echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2546if test "${ac_cv_c_compiler_gnu+set}" = set; then
2547 echo $ECHO_N "(cached) $ECHO_C" >&6
2548else
2549 cat >conftest.$ac_ext <<_ACEOF
2550#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002551/* confdefs.h. */
2552_ACEOF
2553cat confdefs.h >>conftest.$ac_ext
2554cat >>conftest.$ac_ext <<_ACEOF
2555/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002556
John Criswell7a73b802003-06-30 21:59:07 +00002557int
2558main ()
2559{
2560#ifndef __GNUC__
2561 choke me
2562#endif
2563
2564 ;
2565 return 0;
2566}
2567_ACEOF
2568rm -f conftest.$ac_objext
2569if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2570 (eval $ac_compile) 2>&5
2571 ac_status=$?
2572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2573 (exit $ac_status); } &&
2574 { ac_try='test -s conftest.$ac_objext'
2575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2576 (eval $ac_try) 2>&5
2577 ac_status=$?
2578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2579 (exit $ac_status); }; }; then
2580 ac_compiler_gnu=yes
2581else
2582 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002583sed 's/^/| /' conftest.$ac_ext >&5
2584
John Criswell7a73b802003-06-30 21:59:07 +00002585ac_compiler_gnu=no
2586fi
2587rm -f conftest.$ac_objext conftest.$ac_ext
2588ac_cv_c_compiler_gnu=$ac_compiler_gnu
2589
2590fi
2591echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2592echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2593GCC=`test $ac_compiler_gnu = yes && echo yes`
2594ac_test_CFLAGS=${CFLAGS+set}
2595ac_save_CFLAGS=$CFLAGS
2596CFLAGS="-g"
2597echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2598echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2599if test "${ac_cv_prog_cc_g+set}" = set; then
2600 echo $ECHO_N "(cached) $ECHO_C" >&6
2601else
2602 cat >conftest.$ac_ext <<_ACEOF
2603#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002604/* confdefs.h. */
2605_ACEOF
2606cat confdefs.h >>conftest.$ac_ext
2607cat >>conftest.$ac_ext <<_ACEOF
2608/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002609
John Criswell7a73b802003-06-30 21:59:07 +00002610int
2611main ()
2612{
2613
2614 ;
2615 return 0;
2616}
2617_ACEOF
2618rm -f conftest.$ac_objext
2619if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2620 (eval $ac_compile) 2>&5
2621 ac_status=$?
2622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2623 (exit $ac_status); } &&
2624 { ac_try='test -s conftest.$ac_objext'
2625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2626 (eval $ac_try) 2>&5
2627 ac_status=$?
2628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2629 (exit $ac_status); }; }; then
2630 ac_cv_prog_cc_g=yes
2631else
2632 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002633sed 's/^/| /' conftest.$ac_ext >&5
2634
John Criswell7a73b802003-06-30 21:59:07 +00002635ac_cv_prog_cc_g=no
2636fi
2637rm -f conftest.$ac_objext conftest.$ac_ext
2638fi
2639echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2640echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2641if test "$ac_test_CFLAGS" = set; then
2642 CFLAGS=$ac_save_CFLAGS
2643elif test $ac_cv_prog_cc_g = yes; then
2644 if test "$GCC" = yes; then
2645 CFLAGS="-g -O2"
2646 else
2647 CFLAGS="-g"
2648 fi
2649else
2650 if test "$GCC" = yes; then
2651 CFLAGS="-O2"
2652 else
2653 CFLAGS=
2654 fi
2655fi
John Criswell0c38eaf2003-09-10 15:17:25 +00002656echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2657echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2658if test "${ac_cv_prog_cc_stdc+set}" = set; then
2659 echo $ECHO_N "(cached) $ECHO_C" >&6
2660else
2661 ac_cv_prog_cc_stdc=no
2662ac_save_CC=$CC
2663cat >conftest.$ac_ext <<_ACEOF
2664#line $LINENO "configure"
2665/* confdefs.h. */
2666_ACEOF
2667cat confdefs.h >>conftest.$ac_ext
2668cat >>conftest.$ac_ext <<_ACEOF
2669/* end confdefs.h. */
2670#include <stdarg.h>
2671#include <stdio.h>
2672#include <sys/types.h>
2673#include <sys/stat.h>
2674/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2675struct buf { int x; };
2676FILE * (*rcsopen) (struct buf *, struct stat *, int);
2677static char *e (p, i)
2678 char **p;
2679 int i;
2680{
2681 return p[i];
2682}
2683static char *f (char * (*g) (char **, int), char **p, ...)
2684{
2685 char *s;
2686 va_list v;
2687 va_start (v,p);
2688 s = g (p, va_arg (v,int));
2689 va_end (v);
2690 return s;
2691}
2692int test (int i, double x);
2693struct s1 {int (*f) (int a);};
2694struct s2 {int (*f) (double a);};
2695int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2696int argc;
2697char **argv;
2698int
2699main ()
2700{
2701return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2702 ;
2703 return 0;
2704}
2705_ACEOF
2706# Don't try gcc -ansi; that turns off useful extensions and
2707# breaks some systems' header files.
2708# AIX -qlanglvl=ansi
2709# Ultrix and OSF/1 -std1
2710# HP-UX 10.20 and later -Ae
2711# HP-UX older versions -Aa -D_HPUX_SOURCE
2712# SVR4 -Xc -D__EXTENSIONS__
2713for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2714do
2715 CC="$ac_save_CC $ac_arg"
2716 rm -f conftest.$ac_objext
2717if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2718 (eval $ac_compile) 2>&5
2719 ac_status=$?
2720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2721 (exit $ac_status); } &&
2722 { ac_try='test -s conftest.$ac_objext'
2723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2724 (eval $ac_try) 2>&5
2725 ac_status=$?
2726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2727 (exit $ac_status); }; }; then
2728 ac_cv_prog_cc_stdc=$ac_arg
2729break
2730else
2731 echo "$as_me: failed program was:" >&5
2732sed 's/^/| /' conftest.$ac_ext >&5
2733
2734fi
2735rm -f conftest.$ac_objext
2736done
2737rm -f conftest.$ac_ext conftest.$ac_objext
2738CC=$ac_save_CC
2739
2740fi
2741
2742case "x$ac_cv_prog_cc_stdc" in
2743 x|xno)
2744 echo "$as_me:$LINENO: result: none needed" >&5
2745echo "${ECHO_T}none needed" >&6 ;;
2746 *)
2747 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2748echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2749 CC="$CC $ac_cv_prog_cc_stdc" ;;
2750esac
2751
John Criswell7a73b802003-06-30 21:59:07 +00002752# Some people use a C++ compiler to compile C. Since we use `exit',
2753# in C++ we need to declare it. In case someone uses the same compiler
2754# for both compiling C and C++ we need to have the C++ compiler decide
2755# the declaration of exit, since it's the most demanding environment.
2756cat >conftest.$ac_ext <<_ACEOF
2757#ifndef __cplusplus
2758 choke me
2759#endif
2760_ACEOF
2761rm -f conftest.$ac_objext
2762if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2763 (eval $ac_compile) 2>&5
2764 ac_status=$?
2765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2766 (exit $ac_status); } &&
2767 { ac_try='test -s conftest.$ac_objext'
2768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2769 (eval $ac_try) 2>&5
2770 ac_status=$?
2771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2772 (exit $ac_status); }; }; then
2773 for ac_declaration in \
2774 ''\
2775 '#include <stdlib.h>' \
2776 'extern "C" void std::exit (int) throw (); using std::exit;' \
2777 'extern "C" void std::exit (int); using std::exit;' \
2778 'extern "C" void exit (int) throw ();' \
2779 'extern "C" void exit (int);' \
2780 'void exit (int);'
2781do
2782 cat >conftest.$ac_ext <<_ACEOF
2783#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002784/* confdefs.h. */
2785_ACEOF
2786cat confdefs.h >>conftest.$ac_ext
2787cat >>conftest.$ac_ext <<_ACEOF
2788/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002789#include <stdlib.h>
2790$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00002791int
2792main ()
2793{
2794exit (42);
2795 ;
2796 return 0;
2797}
2798_ACEOF
2799rm -f conftest.$ac_objext
2800if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2801 (eval $ac_compile) 2>&5
2802 ac_status=$?
2803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2804 (exit $ac_status); } &&
2805 { ac_try='test -s conftest.$ac_objext'
2806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2807 (eval $ac_try) 2>&5
2808 ac_status=$?
2809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2810 (exit $ac_status); }; }; then
2811 :
2812else
2813 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002814sed 's/^/| /' conftest.$ac_ext >&5
2815
John Criswell7a73b802003-06-30 21:59:07 +00002816continue
2817fi
2818rm -f conftest.$ac_objext conftest.$ac_ext
2819 cat >conftest.$ac_ext <<_ACEOF
2820#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002821/* confdefs.h. */
2822_ACEOF
2823cat confdefs.h >>conftest.$ac_ext
2824cat >>conftest.$ac_ext <<_ACEOF
2825/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002826$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00002827int
2828main ()
2829{
2830exit (42);
2831 ;
2832 return 0;
2833}
2834_ACEOF
2835rm -f conftest.$ac_objext
2836if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2837 (eval $ac_compile) 2>&5
2838 ac_status=$?
2839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2840 (exit $ac_status); } &&
2841 { ac_try='test -s conftest.$ac_objext'
2842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2843 (eval $ac_try) 2>&5
2844 ac_status=$?
2845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2846 (exit $ac_status); }; }; then
2847 break
2848else
2849 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002850sed 's/^/| /' conftest.$ac_ext >&5
2851
John Criswell7a73b802003-06-30 21:59:07 +00002852fi
2853rm -f conftest.$ac_objext conftest.$ac_ext
2854done
2855rm -f conftest*
2856if test -n "$ac_declaration"; then
2857 echo '#ifdef __cplusplus' >>confdefs.h
2858 echo $ac_declaration >>confdefs.h
2859 echo '#endif' >>confdefs.h
2860fi
2861
2862else
2863 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002864sed 's/^/| /' conftest.$ac_ext >&5
2865
John Criswell7a73b802003-06-30 21:59:07 +00002866fi
2867rm -f conftest.$ac_objext conftest.$ac_ext
2868ac_ext=c
2869ac_cpp='$CPP $CPPFLAGS'
2870ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2871ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2872ac_compiler_gnu=$ac_cv_c_compiler_gnu
2873
2874ac_ext=c
2875ac_cpp='$CPP $CPPFLAGS'
2876ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2877ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2878ac_compiler_gnu=$ac_cv_c_compiler_gnu
2879echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2880echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2881# On Suns, sometimes $CPP names a directory.
2882if test -n "$CPP" && test -d "$CPP"; then
2883 CPP=
2884fi
2885if test -z "$CPP"; then
2886 if test "${ac_cv_prog_CPP+set}" = set; then
2887 echo $ECHO_N "(cached) $ECHO_C" >&6
2888else
2889 # Double quotes because CPP needs to be expanded
2890 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2891 do
2892 ac_preproc_ok=false
2893for ac_c_preproc_warn_flag in '' yes
2894do
2895 # Use a header file that comes with gcc, so configuring glibc
2896 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00002897 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2898 # <limits.h> exists even on freestanding compilers.
John Criswell7a73b802003-06-30 21:59:07 +00002899 # On the NeXT, cc -E runs the code through the compiler's parser,
2900 # not just through cpp. "Syntax error" is here to catch this case.
2901 cat >conftest.$ac_ext <<_ACEOF
2902#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002903/* confdefs.h. */
2904_ACEOF
2905cat confdefs.h >>conftest.$ac_ext
2906cat >>conftest.$ac_ext <<_ACEOF
2907/* end confdefs.h. */
2908#ifdef __STDC__
2909# include <limits.h>
2910#else
2911# include <assert.h>
2912#endif
John Criswell7a73b802003-06-30 21:59:07 +00002913 Syntax error
2914_ACEOF
2915if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2916 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2917 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00002918 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00002919 rm -f conftest.er1
2920 cat conftest.err >&5
2921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2922 (exit $ac_status); } >/dev/null; then
2923 if test -s conftest.err; then
2924 ac_cpp_err=$ac_c_preproc_warn_flag
2925 else
2926 ac_cpp_err=
2927 fi
2928else
2929 ac_cpp_err=yes
2930fi
2931if test -z "$ac_cpp_err"; then
2932 :
2933else
2934 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002935sed 's/^/| /' conftest.$ac_ext >&5
2936
John Criswell7a73b802003-06-30 21:59:07 +00002937 # Broken: fails on valid input.
2938continue
2939fi
2940rm -f conftest.err conftest.$ac_ext
2941
2942 # OK, works on sane cases. Now check whether non-existent headers
2943 # can be detected and how.
2944 cat >conftest.$ac_ext <<_ACEOF
2945#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002946/* confdefs.h. */
2947_ACEOF
2948cat confdefs.h >>conftest.$ac_ext
2949cat >>conftest.$ac_ext <<_ACEOF
2950/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002951#include <ac_nonexistent.h>
2952_ACEOF
2953if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2954 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2955 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00002956 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00002957 rm -f conftest.er1
2958 cat conftest.err >&5
2959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2960 (exit $ac_status); } >/dev/null; then
2961 if test -s conftest.err; then
2962 ac_cpp_err=$ac_c_preproc_warn_flag
2963 else
2964 ac_cpp_err=
2965 fi
2966else
2967 ac_cpp_err=yes
2968fi
2969if test -z "$ac_cpp_err"; then
2970 # Broken: success on invalid input.
2971continue
2972else
2973 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002974sed 's/^/| /' conftest.$ac_ext >&5
2975
John Criswell7a73b802003-06-30 21:59:07 +00002976 # Passes both tests.
2977ac_preproc_ok=:
2978break
2979fi
2980rm -f conftest.err conftest.$ac_ext
2981
2982done
2983# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2984rm -f conftest.err conftest.$ac_ext
2985if $ac_preproc_ok; then
2986 break
2987fi
2988
2989 done
2990 ac_cv_prog_CPP=$CPP
2991
2992fi
2993 CPP=$ac_cv_prog_CPP
2994else
2995 ac_cv_prog_CPP=$CPP
2996fi
2997echo "$as_me:$LINENO: result: $CPP" >&5
2998echo "${ECHO_T}$CPP" >&6
2999ac_preproc_ok=false
3000for ac_c_preproc_warn_flag in '' yes
3001do
3002 # Use a header file that comes with gcc, so configuring glibc
3003 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00003004 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3005 # <limits.h> exists even on freestanding compilers.
John Criswell7a73b802003-06-30 21:59:07 +00003006 # On the NeXT, cc -E runs the code through the compiler's parser,
3007 # not just through cpp. "Syntax error" is here to catch this case.
3008 cat >conftest.$ac_ext <<_ACEOF
3009#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003010/* confdefs.h. */
3011_ACEOF
3012cat confdefs.h >>conftest.$ac_ext
3013cat >>conftest.$ac_ext <<_ACEOF
3014/* end confdefs.h. */
3015#ifdef __STDC__
3016# include <limits.h>
3017#else
3018# include <assert.h>
3019#endif
John Criswell7a73b802003-06-30 21:59:07 +00003020 Syntax error
3021_ACEOF
3022if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3023 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3024 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003025 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003026 rm -f conftest.er1
3027 cat conftest.err >&5
3028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3029 (exit $ac_status); } >/dev/null; then
3030 if test -s conftest.err; then
3031 ac_cpp_err=$ac_c_preproc_warn_flag
3032 else
3033 ac_cpp_err=
3034 fi
3035else
3036 ac_cpp_err=yes
3037fi
3038if test -z "$ac_cpp_err"; then
3039 :
3040else
3041 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003042sed 's/^/| /' conftest.$ac_ext >&5
3043
John Criswell7a73b802003-06-30 21:59:07 +00003044 # Broken: fails on valid input.
3045continue
3046fi
3047rm -f conftest.err conftest.$ac_ext
3048
3049 # OK, works on sane cases. Now check whether non-existent headers
3050 # can be detected and how.
3051 cat >conftest.$ac_ext <<_ACEOF
3052#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003053/* confdefs.h. */
3054_ACEOF
3055cat confdefs.h >>conftest.$ac_ext
3056cat >>conftest.$ac_ext <<_ACEOF
3057/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003058#include <ac_nonexistent.h>
3059_ACEOF
3060if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3061 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3062 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003063 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003064 rm -f conftest.er1
3065 cat conftest.err >&5
3066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3067 (exit $ac_status); } >/dev/null; then
3068 if test -s conftest.err; then
3069 ac_cpp_err=$ac_c_preproc_warn_flag
3070 else
3071 ac_cpp_err=
3072 fi
3073else
3074 ac_cpp_err=yes
3075fi
3076if test -z "$ac_cpp_err"; then
3077 # Broken: success on invalid input.
3078continue
3079else
3080 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003081sed 's/^/| /' conftest.$ac_ext >&5
3082
John Criswell7a73b802003-06-30 21:59:07 +00003083 # Passes both tests.
3084ac_preproc_ok=:
3085break
3086fi
3087rm -f conftest.err conftest.$ac_ext
3088
3089done
3090# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3091rm -f conftest.err conftest.$ac_ext
3092if $ac_preproc_ok; then
3093 :
3094else
John Criswell0c38eaf2003-09-10 15:17:25 +00003095 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3096See \`config.log' for more details." >&5
3097echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3098See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00003099 { (exit 1); exit 1; }; }
3100fi
3101
3102ac_ext=c
3103ac_cpp='$CPP $CPPFLAGS'
3104ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3105ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3106ac_compiler_gnu=$ac_cv_c_compiler_gnu
3107
3108
3109if test "$GCC" != "yes"
3110then
3111 { { echo "$as_me:$LINENO: error: gcc required but not found" >&5
3112echo "$as_me: error: gcc required but not found" >&2;}
3113 { (exit 1); exit 1; }; }
3114fi
John Criswell7a73b802003-06-30 21:59:07 +00003115if test "$GXX" != "yes"
3116then
3117 { { echo "$as_me:$LINENO: error: g++ required but not found" >&5
3118echo "$as_me: error: g++ required but not found" >&2;}
3119 { (exit 1); exit 1; }; }
3120fi
3121
John Criswellde00db22003-08-25 16:49:54 +00003122gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
3123if test "$gccmajor" -lt "3"
3124then
Brian Gaeke26be9c52004-01-13 06:43:16 +00003125 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
3126echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
John Criswellde00db22003-08-25 16:49:54 +00003127 { (exit 1); exit 1; }; }
3128fi
3129
John Criswell7a73b802003-06-30 21:59:07 +00003130 echo "$as_me:$LINENO: checking for GNU make" >&5
3131echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
3132if test "${_cv_gnu_make_command+set}" = set; then
3133 echo $ECHO_N "(cached) $ECHO_C" >&6
3134else
3135 _cv_gnu_make_command='' ;
3136 for a in "$MAKE" make gmake gnumake ; do
3137 if test -z "$a" ; then continue ; fi ;
3138 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
3139 _cv_gnu_make_command=$a ;
3140 break;
3141 fi
3142 done ;
3143
3144fi
3145echo "$as_me:$LINENO: result: $_cv_gnu_make_command" >&5
3146echo "${ECHO_T}$_cv_gnu_make_command" >&6 ;
3147 if test "x$_cv_gnu_make_command" != "x" ; then
3148 ifGNUmake='' ;
3149 else
3150 ifGNUmake='#' ;
3151 echo "$as_me:$LINENO: result: \"Not found\"" >&5
3152echo "${ECHO_T}\"Not found\"" >&6;
3153 fi
3154
3155
3156if test -z "$_cv_gnu_make_command"
3157then
3158 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
3159echo "$as_me: error: GNU Make required but not found" >&2;}
3160 { (exit 1); exit 1; }; }
3161fi
3162
3163
3164echo "$as_me:$LINENO: checking " >&5
3165echo $ECHO_N "checking ... $ECHO_C" >&6
3166if test "${ac_cv_has_flex+set}" = set; then
3167 echo $ECHO_N "(cached) $ECHO_C" >&6
3168else
3169 for ac_prog in flex lex
3170do
3171 # Extract the first word of "$ac_prog", so it can be a program name with args.
3172set dummy $ac_prog; ac_word=$2
3173echo "$as_me:$LINENO: checking for $ac_word" >&5
3174echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3175if test "${ac_cv_prog_LEX+set}" = set; then
3176 echo $ECHO_N "(cached) $ECHO_C" >&6
3177else
3178 if test -n "$LEX"; then
3179 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3180else
3181as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3182for as_dir in $PATH
3183do
3184 IFS=$as_save_IFS
3185 test -z "$as_dir" && as_dir=.
3186 for ac_exec_ext in '' $ac_executable_extensions; do
3187 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3188 ac_cv_prog_LEX="$ac_prog"
3189 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3190 break 2
3191 fi
3192done
3193done
3194
3195fi
3196fi
3197LEX=$ac_cv_prog_LEX
3198if test -n "$LEX"; then
3199 echo "$as_me:$LINENO: result: $LEX" >&5
3200echo "${ECHO_T}$LEX" >&6
3201else
3202 echo "$as_me:$LINENO: result: no" >&5
3203echo "${ECHO_T}no" >&6
3204fi
3205
3206 test -n "$LEX" && break
3207done
3208test -n "$LEX" || LEX=":"
3209
3210if test -z "$LEXLIB"
3211then
3212 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3213echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3214if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3215 echo $ECHO_N "(cached) $ECHO_C" >&6
3216else
3217 ac_check_lib_save_LIBS=$LIBS
3218LIBS="-lfl $LIBS"
3219cat >conftest.$ac_ext <<_ACEOF
3220#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003221/* confdefs.h. */
3222_ACEOF
3223cat confdefs.h >>conftest.$ac_ext
3224cat >>conftest.$ac_ext <<_ACEOF
3225/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003226
3227/* Override any gcc2 internal prototype to avoid an error. */
3228#ifdef __cplusplus
3229extern "C"
3230#endif
3231/* We use char because int might match the return type of a gcc2
3232 builtin and then its argument prototype would still apply. */
3233char yywrap ();
John Criswell7a73b802003-06-30 21:59:07 +00003234int
3235main ()
3236{
3237yywrap ();
3238 ;
3239 return 0;
3240}
3241_ACEOF
3242rm -f conftest.$ac_objext conftest$ac_exeext
3243if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3244 (eval $ac_link) 2>&5
3245 ac_status=$?
3246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3247 (exit $ac_status); } &&
3248 { ac_try='test -s conftest$ac_exeext'
3249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3250 (eval $ac_try) 2>&5
3251 ac_status=$?
3252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3253 (exit $ac_status); }; }; then
3254 ac_cv_lib_fl_yywrap=yes
3255else
3256 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003257sed 's/^/| /' conftest.$ac_ext >&5
3258
John Criswell7a73b802003-06-30 21:59:07 +00003259ac_cv_lib_fl_yywrap=no
3260fi
3261rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3262LIBS=$ac_check_lib_save_LIBS
3263fi
3264echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3265echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3266if test $ac_cv_lib_fl_yywrap = yes; then
3267 LEXLIB="-lfl"
3268else
3269 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3270echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3271if test "${ac_cv_lib_l_yywrap+set}" = set; then
3272 echo $ECHO_N "(cached) $ECHO_C" >&6
3273else
3274 ac_check_lib_save_LIBS=$LIBS
3275LIBS="-ll $LIBS"
3276cat >conftest.$ac_ext <<_ACEOF
3277#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003278/* confdefs.h. */
3279_ACEOF
3280cat confdefs.h >>conftest.$ac_ext
3281cat >>conftest.$ac_ext <<_ACEOF
3282/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003283
3284/* Override any gcc2 internal prototype to avoid an error. */
3285#ifdef __cplusplus
3286extern "C"
3287#endif
3288/* We use char because int might match the return type of a gcc2
3289 builtin and then its argument prototype would still apply. */
3290char yywrap ();
John Criswell7a73b802003-06-30 21:59:07 +00003291int
3292main ()
3293{
3294yywrap ();
3295 ;
3296 return 0;
3297}
3298_ACEOF
3299rm -f conftest.$ac_objext conftest$ac_exeext
3300if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3301 (eval $ac_link) 2>&5
3302 ac_status=$?
3303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3304 (exit $ac_status); } &&
3305 { ac_try='test -s conftest$ac_exeext'
3306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3307 (eval $ac_try) 2>&5
3308 ac_status=$?
3309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3310 (exit $ac_status); }; }; then
3311 ac_cv_lib_l_yywrap=yes
3312else
3313 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003314sed 's/^/| /' conftest.$ac_ext >&5
3315
John Criswell7a73b802003-06-30 21:59:07 +00003316ac_cv_lib_l_yywrap=no
3317fi
3318rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3319LIBS=$ac_check_lib_save_LIBS
3320fi
3321echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3322echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3323if test $ac_cv_lib_l_yywrap = yes; then
3324 LEXLIB="-ll"
3325fi
3326
3327fi
3328
3329fi
3330
3331if test "x$LEX" != "x:"; then
3332 echo "$as_me:$LINENO: checking lex output file root" >&5
3333echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3334if test "${ac_cv_prog_lex_root+set}" = set; then
3335 echo $ECHO_N "(cached) $ECHO_C" >&6
3336else
3337 # The minimal lex program is just a single line: %%. But some broken lexes
3338# (Solaris, I think it was) want two %% lines, so accommodate them.
3339cat >conftest.l <<_ACEOF
3340%%
3341%%
3342_ACEOF
3343{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3344 (eval $LEX conftest.l) 2>&5
3345 ac_status=$?
3346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3347 (exit $ac_status); }
3348if test -f lex.yy.c; then
3349 ac_cv_prog_lex_root=lex.yy
3350elif test -f lexyy.c; then
3351 ac_cv_prog_lex_root=lexyy
3352else
3353 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3354echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3355 { (exit 1); exit 1; }; }
3356fi
3357fi
3358echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3359echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3360rm -f conftest.l
3361LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3362
3363echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3364echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3365if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3366 echo $ECHO_N "(cached) $ECHO_C" >&6
3367else
3368 # POSIX says lex can declare yytext either as a pointer or an array; the
3369# default is implementation-dependent. Figure out which it is, since
3370# not all implementations provide the %pointer and %array declarations.
3371ac_cv_prog_lex_yytext_pointer=no
3372echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3373ac_save_LIBS=$LIBS
3374LIBS="$LIBS $LEXLIB"
3375cat >conftest.$ac_ext <<_ACEOF
3376`cat $LEX_OUTPUT_ROOT.c`
3377_ACEOF
3378rm -f conftest.$ac_objext conftest$ac_exeext
3379if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3380 (eval $ac_link) 2>&5
3381 ac_status=$?
3382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3383 (exit $ac_status); } &&
3384 { ac_try='test -s conftest$ac_exeext'
3385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3386 (eval $ac_try) 2>&5
3387 ac_status=$?
3388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3389 (exit $ac_status); }; }; then
3390 ac_cv_prog_lex_yytext_pointer=yes
3391else
3392 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003393sed 's/^/| /' conftest.$ac_ext >&5
3394
John Criswell7a73b802003-06-30 21:59:07 +00003395fi
3396rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3397LIBS=$ac_save_LIBS
3398rm -f "${LEX_OUTPUT_ROOT}.c"
3399
3400fi
3401echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3402echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3403if test $ac_cv_prog_lex_yytext_pointer = yes; then
3404
3405cat >>confdefs.h <<\_ACEOF
3406#define YYTEXT_POINTER 1
3407_ACEOF
3408
3409fi
3410
3411fi
3412
3413fi
3414echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
3415echo "${ECHO_T}$ac_cv_has_flex" >&6
3416if test "$LEX" != "flex"; then
3417 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
3418echo "$as_me: error: flex not found but required" >&2;}
3419 { (exit 1); exit 1; }; }
3420fi
3421
3422echo "$as_me:$LINENO: checking " >&5
3423echo $ECHO_N "checking ... $ECHO_C" >&6
3424if test "${ac_cv_has_bison+set}" = set; then
3425 echo $ECHO_N "(cached) $ECHO_C" >&6
3426else
3427 for ac_prog in 'bison -y' byacc
3428do
3429 # Extract the first word of "$ac_prog", so it can be a program name with args.
3430set dummy $ac_prog; ac_word=$2
3431echo "$as_me:$LINENO: checking for $ac_word" >&5
3432echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3433if test "${ac_cv_prog_YACC+set}" = set; then
3434 echo $ECHO_N "(cached) $ECHO_C" >&6
3435else
3436 if test -n "$YACC"; then
3437 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3438else
3439as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3440for as_dir in $PATH
3441do
3442 IFS=$as_save_IFS
3443 test -z "$as_dir" && as_dir=.
3444 for ac_exec_ext in '' $ac_executable_extensions; do
3445 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3446 ac_cv_prog_YACC="$ac_prog"
3447 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3448 break 2
3449 fi
3450done
3451done
3452
3453fi
3454fi
3455YACC=$ac_cv_prog_YACC
3456if test -n "$YACC"; then
3457 echo "$as_me:$LINENO: result: $YACC" >&5
3458echo "${ECHO_T}$YACC" >&6
3459else
3460 echo "$as_me:$LINENO: result: no" >&5
3461echo "${ECHO_T}no" >&6
3462fi
3463
3464 test -n "$YACC" && break
3465done
3466test -n "$YACC" || YACC="yacc"
3467
3468
3469fi
3470echo "$as_me:$LINENO: result: $ac_cv_has_bison" >&5
3471echo "${ECHO_T}$ac_cv_has_bison" >&6
3472if test "$YACC" != "bison -y"; then
3473 { { echo "$as_me:$LINENO: error: bison not found but required" >&5
3474echo "$as_me: error: bison not found but required" >&2;}
3475 { (exit 1); exit 1; }; }
3476else
Brian Gaeke12810632004-01-13 06:52:10 +00003477 BISON=bison
John Criswell7a73b802003-06-30 21:59:07 +00003478
3479fi
3480
John Criswell7a73b802003-06-30 21:59:07 +00003481# Check whether --enable-shared or --disable-shared was given.
3482if test "${enable_shared+set}" = set; then
3483 enableval="$enable_shared"
3484 p=${PACKAGE-default}
John Criswell47fdd832003-07-14 16:52:07 +00003485 case $enableval in
3486 yes) enable_shared=yes ;;
3487 no) enable_shared=no ;;
3488 *)
3489 enable_shared=no
3490 # Look at the argument we got. We use all the common list separators.
3491 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3492 for pkg in $enableval; do
3493 IFS="$lt_save_ifs"
3494 if test "X$pkg" = "X$p"; then
3495 enable_shared=yes
3496 fi
3497 done
3498 IFS="$lt_save_ifs"
3499 ;;
3500 esac
John Criswell7a73b802003-06-30 21:59:07 +00003501else
3502 enable_shared=yes
3503fi;
John Criswell47fdd832003-07-14 16:52:07 +00003504
John Criswell7a73b802003-06-30 21:59:07 +00003505# Check whether --enable-static or --disable-static was given.
3506if test "${enable_static+set}" = set; then
3507 enableval="$enable_static"
3508 p=${PACKAGE-default}
John Criswell47fdd832003-07-14 16:52:07 +00003509 case $enableval in
3510 yes) enable_static=yes ;;
3511 no) enable_static=no ;;
3512 *)
3513 enable_static=no
3514 # Look at the argument we got. We use all the common list separators.
3515 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3516 for pkg in $enableval; do
3517 IFS="$lt_save_ifs"
3518 if test "X$pkg" = "X$p"; then
3519 enable_static=yes
3520 fi
3521 done
3522 IFS="$lt_save_ifs"
3523 ;;
3524 esac
John Criswell7a73b802003-06-30 21:59:07 +00003525else
3526 enable_static=yes
3527fi;
John Criswell47fdd832003-07-14 16:52:07 +00003528
John Criswell7a73b802003-06-30 21:59:07 +00003529# Check whether --enable-fast-install or --disable-fast-install was given.
3530if test "${enable_fast_install+set}" = set; then
3531 enableval="$enable_fast_install"
3532 p=${PACKAGE-default}
John Criswell47fdd832003-07-14 16:52:07 +00003533 case $enableval in
3534 yes) enable_fast_install=yes ;;
3535 no) enable_fast_install=no ;;
3536 *)
3537 enable_fast_install=no
3538 # Look at the argument we got. We use all the common list separators.
3539 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3540 for pkg in $enableval; do
3541 IFS="$lt_save_ifs"
3542 if test "X$pkg" = "X$p"; then
3543 enable_fast_install=yes
3544 fi
3545 done
3546 IFS="$lt_save_ifs"
3547 ;;
3548 esac
John Criswell7a73b802003-06-30 21:59:07 +00003549else
3550 enable_fast_install=yes
3551fi;
John Criswell47fdd832003-07-14 16:52:07 +00003552
3553echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3554echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3555if test "${lt_cv_path_SED+set}" = set; then
3556 echo $ECHO_N "(cached) $ECHO_C" >&6
3557else
3558 # Loop through the user's path and test for sed and gsed.
3559# Then use that list of sed's as ones to test for truncation.
3560as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3561for as_dir in $PATH
3562do
3563 IFS=$as_save_IFS
3564 test -z "$as_dir" && as_dir=.
3565 for lt_ac_prog in sed gsed; do
3566 for ac_exec_ext in '' $ac_executable_extensions; do
3567 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3568 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3569 fi
3570 done
3571 done
3572done
3573lt_ac_max=0
3574lt_ac_count=0
3575# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3576# along with /bin/sed that truncates output.
3577for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3578 test ! -f $lt_ac_sed && break
3579 cat /dev/null > conftest.in
3580 lt_ac_count=0
3581 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3582 # Check for GNU sed and select it if it is found.
3583 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3584 lt_cv_path_SED=$lt_ac_sed
3585 break
3586 fi
3587 while true; do
3588 cat conftest.in conftest.in >conftest.tmp
3589 mv conftest.tmp conftest.in
3590 cp conftest.in conftest.nl
3591 echo >>conftest.nl
3592 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3593 cmp -s conftest.out conftest.nl || break
3594 # 10000 chars as input seems more than enough
3595 test $lt_ac_count -gt 10 && break
3596 lt_ac_count=`expr $lt_ac_count + 1`
3597 if test $lt_ac_count -gt $lt_ac_max; then
3598 lt_ac_max=$lt_ac_count
3599 lt_cv_path_SED=$lt_ac_sed
3600 fi
3601 done
3602done
3603SED=$lt_cv_path_SED
3604
John Criswell7a73b802003-06-30 21:59:07 +00003605fi
3606
John Criswell47fdd832003-07-14 16:52:07 +00003607echo "$as_me:$LINENO: result: $SED" >&5
3608echo "${ECHO_T}$SED" >&6
3609
3610echo "$as_me:$LINENO: checking for egrep" >&5
3611echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3612if test "${ac_cv_prog_egrep+set}" = set; then
3613 echo $ECHO_N "(cached) $ECHO_C" >&6
3614else
3615 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3616 then ac_cv_prog_egrep='grep -E'
3617 else ac_cv_prog_egrep='egrep'
3618 fi
3619fi
3620echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3621echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3622 EGREP=$ac_cv_prog_egrep
3623
3624
John Criswell7a73b802003-06-30 21:59:07 +00003625
3626# Check whether --with-gnu-ld or --without-gnu-ld was given.
3627if test "${with_gnu_ld+set}" = set; then
3628 withval="$with_gnu_ld"
3629 test "$withval" = no || with_gnu_ld=yes
3630else
3631 with_gnu_ld=no
3632fi;
3633ac_prog=ld
3634if test "$GCC" = yes; then
3635 # Check if gcc -print-prog-name=ld gives a path.
John Criswell47fdd832003-07-14 16:52:07 +00003636 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3637echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00003638 case $host in
3639 *-*-mingw*)
3640 # gcc leaves a trailing carriage return which upsets mingw
3641 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3642 *)
3643 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3644 esac
3645 case $ac_prog in
3646 # Accept absolute paths.
John Criswell47fdd832003-07-14 16:52:07 +00003647 [\\/]* | ?:[\\/]*)
John Criswell7a73b802003-06-30 21:59:07 +00003648 re_direlt='/[^/][^/]*/\.\./'
3649 # Canonicalize the path of ld
John Criswell47fdd832003-07-14 16:52:07 +00003650 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
John Criswell7a73b802003-06-30 21:59:07 +00003651 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
John Criswell47fdd832003-07-14 16:52:07 +00003652 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
John Criswell7a73b802003-06-30 21:59:07 +00003653 done
3654 test -z "$LD" && LD="$ac_prog"
3655 ;;
3656 "")
3657 # If it fails, then pretend we aren't using GCC.
3658 ac_prog=ld
3659 ;;
3660 *)
3661 # If it is relative, then search for the first ld in PATH.
3662 with_gnu_ld=unknown
3663 ;;
3664 esac
3665elif test "$with_gnu_ld" = yes; then
3666 echo "$as_me:$LINENO: checking for GNU ld" >&5
3667echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3668else
3669 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3670echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3671fi
3672if test "${lt_cv_path_LD+set}" = set; then
3673 echo $ECHO_N "(cached) $ECHO_C" >&6
3674else
3675 if test -z "$LD"; then
John Criswell47fdd832003-07-14 16:52:07 +00003676 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +00003677 for ac_dir in $PATH; do
John Criswell47fdd832003-07-14 16:52:07 +00003678 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00003679 test -z "$ac_dir" && ac_dir=.
3680 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3681 lt_cv_path_LD="$ac_dir/$ac_prog"
3682 # Check to see if the program is GNU ld. I'd rather use --version,
3683 # but apparently some GNU ld's only accept -v.
3684 # Break only if it was the GNU/non-GNU ld that we prefer.
John Criswell47fdd832003-07-14 16:52:07 +00003685 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3686 *GNU* | *'with BFD'*)
John Criswell7a73b802003-06-30 21:59:07 +00003687 test "$with_gnu_ld" != no && break
John Criswell47fdd832003-07-14 16:52:07 +00003688 ;;
3689 *)
John Criswell7a73b802003-06-30 21:59:07 +00003690 test "$with_gnu_ld" != yes && break
John Criswell47fdd832003-07-14 16:52:07 +00003691 ;;
3692 esac
John Criswell7a73b802003-06-30 21:59:07 +00003693 fi
3694 done
John Criswell47fdd832003-07-14 16:52:07 +00003695 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00003696else
3697 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3698fi
3699fi
3700
3701LD="$lt_cv_path_LD"
3702if test -n "$LD"; then
3703 echo "$as_me:$LINENO: result: $LD" >&5
3704echo "${ECHO_T}$LD" >&6
3705else
3706 echo "$as_me:$LINENO: result: no" >&5
3707echo "${ECHO_T}no" >&6
3708fi
3709test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3710echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3711 { (exit 1); exit 1; }; }
3712echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3713echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3714if test "${lt_cv_prog_gnu_ld+set}" = set; then
3715 echo $ECHO_N "(cached) $ECHO_C" >&6
3716else
3717 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
John Criswell47fdd832003-07-14 16:52:07 +00003718case `"$LD" -v 2>&1 </dev/null` in
3719*GNU* | *'with BFD'*)
John Criswell7a73b802003-06-30 21:59:07 +00003720 lt_cv_prog_gnu_ld=yes
John Criswell47fdd832003-07-14 16:52:07 +00003721 ;;
3722*)
John Criswell7a73b802003-06-30 21:59:07 +00003723 lt_cv_prog_gnu_ld=no
John Criswell47fdd832003-07-14 16:52:07 +00003724 ;;
3725esac
John Criswell7a73b802003-06-30 21:59:07 +00003726fi
3727echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3728echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3729with_gnu_ld=$lt_cv_prog_gnu_ld
3730
3731
3732echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3733echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3734if test "${lt_cv_ld_reload_flag+set}" = set; then
3735 echo $ECHO_N "(cached) $ECHO_C" >&6
3736else
3737 lt_cv_ld_reload_flag='-r'
3738fi
3739echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3740echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3741reload_flag=$lt_cv_ld_reload_flag
John Criswell47fdd832003-07-14 16:52:07 +00003742case $reload_flag in
3743"" | " "*) ;;
3744*) reload_flag=" $reload_flag" ;;
3745esac
3746reload_cmds='$LD$reload_flag -o $output$reload_objs'
John Criswell7a73b802003-06-30 21:59:07 +00003747
3748echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3749echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3750if test "${lt_cv_path_NM+set}" = set; then
3751 echo $ECHO_N "(cached) $ECHO_C" >&6
3752else
3753 if test -n "$NM"; then
3754 # Let the user override the test.
3755 lt_cv_path_NM="$NM"
3756else
John Criswell47fdd832003-07-14 16:52:07 +00003757 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +00003758 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
John Criswell47fdd832003-07-14 16:52:07 +00003759 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00003760 test -z "$ac_dir" && ac_dir=.
John Criswell47fdd832003-07-14 16:52:07 +00003761 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3762 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
John Criswell7a73b802003-06-30 21:59:07 +00003763 # Check to see if the nm accepts a BSD-compat flag.
3764 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3765 # nm: unknown option "B" ignored
3766 # Tru64's nm complains that /dev/null is an invalid object file
John Criswell47fdd832003-07-14 16:52:07 +00003767 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3768 */dev/null* | *'Invalid file or object type'*)
John Criswell7a73b802003-06-30 21:59:07 +00003769 lt_cv_path_NM="$tmp_nm -B"
3770 break
John Criswell47fdd832003-07-14 16:52:07 +00003771 ;;
3772 *)
3773 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3774 */dev/null*)
3775 lt_cv_path_NM="$tmp_nm -p"
3776 break
3777 ;;
3778 *)
3779 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3780 continue # so that we can try to find one that supports BSD flags
3781 ;;
3782 esac
3783 esac
John Criswell7a73b802003-06-30 21:59:07 +00003784 fi
3785 done
John Criswell47fdd832003-07-14 16:52:07 +00003786 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00003787 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3788fi
3789fi
John Criswell47fdd832003-07-14 16:52:07 +00003790echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3791echo "${ECHO_T}$lt_cv_path_NM" >&6
John Criswell7a73b802003-06-30 21:59:07 +00003792NM="$lt_cv_path_NM"
John Criswell7a73b802003-06-30 21:59:07 +00003793
3794echo "$as_me:$LINENO: checking whether ln -s works" >&5
3795echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3796LN_S=$as_ln_s
3797if test "$LN_S" = "ln -s"; then
3798 echo "$as_me:$LINENO: result: yes" >&5
3799echo "${ECHO_T}yes" >&6
3800else
3801 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3802echo "${ECHO_T}no, using $LN_S" >&6
3803fi
3804
John Criswell47fdd832003-07-14 16:52:07 +00003805echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3806echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00003807if test "${lt_cv_deplibs_check_method+set}" = set; then
3808 echo $ECHO_N "(cached) $ECHO_C" >&6
3809else
3810 lt_cv_file_magic_cmd='$MAGIC_CMD'
3811lt_cv_file_magic_test_file=
3812lt_cv_deplibs_check_method='unknown'
3813# Need to set the preceding variable on all platforms that support
3814# interlibrary dependencies.
3815# 'none' -- dependencies not supported.
3816# `unknown' -- same as none, but documents that we really don't know.
3817# 'pass_all' -- all dependencies passed with no checks.
3818# 'test_compile' -- check by making test program.
3819# 'file_magic [[regex]]' -- check by looking for files in library path
John Criswell47fdd832003-07-14 16:52:07 +00003820# which responds to the $file_magic_cmd with a given extended regex.
John Criswell7a73b802003-06-30 21:59:07 +00003821# If you have `file' or equivalent on your system and you're not sure
3822# whether `pass_all' will *always* work, you probably want this one.
3823
3824case $host_os in
3825aix4* | aix5*)
3826 lt_cv_deplibs_check_method=pass_all
3827 ;;
3828
3829beos*)
3830 lt_cv_deplibs_check_method=pass_all
3831 ;;
3832
3833bsdi4*)
3834 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3835 lt_cv_file_magic_cmd='/usr/bin/file -L'
3836 lt_cv_file_magic_test_file=/shlib/libc.so
3837 ;;
3838
3839cygwin* | mingw* | pw32*)
John Criswell47fdd832003-07-14 16:52:07 +00003840 # win32_libid is a shell function defined in ltmain.sh
3841 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3842 lt_cv_file_magic_cmd='win32_libid'
John Criswell7a73b802003-06-30 21:59:07 +00003843 ;;
3844
3845darwin* | rhapsody*)
John Criswell47fdd832003-07-14 16:52:07 +00003846 # this will be overwritten by pass_all, but leave it in just in case
John Criswell7a73b802003-06-30 21:59:07 +00003847 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3848 lt_cv_file_magic_cmd='/usr/bin/file -L'
3849 case "$host_os" in
3850 rhapsody* | darwin1.[012])
John Criswell47fdd832003-07-14 16:52:07 +00003851 lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
John Criswell7a73b802003-06-30 21:59:07 +00003852 ;;
3853 *) # Darwin 1.3 on
3854 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3855 ;;
3856 esac
John Criswell47fdd832003-07-14 16:52:07 +00003857 lt_cv_deplibs_check_method=pass_all
John Criswell7a73b802003-06-30 21:59:07 +00003858 ;;
3859
3860freebsd*)
3861 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3862 case $host_cpu in
3863 i*86 )
3864 # Not sure whether the presence of OpenBSD here was a mistake.
3865 # Let's accept both of them until this is cleared up.
3866 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3867 lt_cv_file_magic_cmd=/usr/bin/file
3868 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3869 ;;
3870 esac
3871 else
3872 lt_cv_deplibs_check_method=pass_all
3873 fi
3874 ;;
3875
3876gnu*)
3877 lt_cv_deplibs_check_method=pass_all
3878 ;;
3879
John Criswell47fdd832003-07-14 16:52:07 +00003880hpux10.20* | hpux11*)
John Criswell7a73b802003-06-30 21:59:07 +00003881 lt_cv_file_magic_cmd=/usr/bin/file
John Criswell47fdd832003-07-14 16:52:07 +00003882 case "$host_cpu" in
3883 ia64*)
3884 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3885 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3886 ;;
3887 hppa*64*)
3888 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]'
3889 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3890 ;;
3891 *)
3892 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3893 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3894 ;;
3895 esac
John Criswell7a73b802003-06-30 21:59:07 +00003896 ;;
3897
John Criswell47fdd832003-07-14 16:52:07 +00003898irix5* | irix6* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +00003899 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00003900 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +00003901 # this will be overridden with pass_all, but let us keep it just in case
3902 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3903 ;;
3904 *)
3905 case $LD in
3906 *-32|*"-32 ") libmagic=32-bit;;
3907 *-n32|*"-n32 ") libmagic=N32;;
3908 *-64|*"-64 ") libmagic=64-bit;;
3909 *) libmagic=never-match;;
3910 esac
3911 # this will be overridden with pass_all, but let us keep it just in case
3912 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3913 ;;
3914 esac
3915 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3916 lt_cv_deplibs_check_method=pass_all
3917 ;;
3918
3919# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +00003920linux*)
John Criswell7a73b802003-06-30 21:59:07 +00003921 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +00003922 alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*)
John Criswell7a73b802003-06-30 21:59:07 +00003923 lt_cv_deplibs_check_method=pass_all ;;
3924 *)
3925 # glibc up to 2.1.1 does not perform some relocations on ARM
3926 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3927 esac
3928 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3929 ;;
3930
3931netbsd*)
3932 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +00003933 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
John Criswell7a73b802003-06-30 21:59:07 +00003934 else
John Criswell47fdd832003-07-14 16:52:07 +00003935 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
John Criswell7a73b802003-06-30 21:59:07 +00003936 fi
3937 ;;
3938
3939newos6*)
3940 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3941 lt_cv_file_magic_cmd=/usr/bin/file
3942 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3943 ;;
3944
John Criswell47fdd832003-07-14 16:52:07 +00003945nto-qnx)
3946 lt_cv_deplibs_check_method=unknown
3947 ;;
3948
John Criswell7a73b802003-06-30 21:59:07 +00003949openbsd*)
3950 lt_cv_file_magic_cmd=/usr/bin/file
3951 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3952 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3953 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3954 else
3955 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3956 fi
3957 ;;
3958
3959osf3* | osf4* | osf5*)
3960 # this will be overridden with pass_all, but let us keep it just in case
3961 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3962 lt_cv_file_magic_test_file=/shlib/libc.so
3963 lt_cv_deplibs_check_method=pass_all
3964 ;;
3965
3966sco3.2v5*)
3967 lt_cv_deplibs_check_method=pass_all
3968 ;;
3969
3970solaris*)
3971 lt_cv_deplibs_check_method=pass_all
3972 lt_cv_file_magic_test_file=/lib/libc.so
3973 ;;
3974
John Criswell7a73b802003-06-30 21:59:07 +00003975sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3976 case $host_vendor in
3977 motorola)
3978 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]'
3979 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3980 ;;
3981 ncr)
3982 lt_cv_deplibs_check_method=pass_all
3983 ;;
3984 sequent)
3985 lt_cv_file_magic_cmd='/bin/file'
3986 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3987 ;;
3988 sni)
3989 lt_cv_file_magic_cmd='/bin/file'
3990 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3991 lt_cv_file_magic_test_file=/lib/libc.so
3992 ;;
John Criswell47fdd832003-07-14 16:52:07 +00003993 siemens)
3994 lt_cv_deplibs_check_method=pass_all
3995 ;;
John Criswell7a73b802003-06-30 21:59:07 +00003996 esac
3997 ;;
John Criswell47fdd832003-07-14 16:52:07 +00003998
3999sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4000 lt_cv_deplibs_check_method=pass_all
4001 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004002esac
4003
4004fi
4005echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4006echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4007file_magic_cmd=$lt_cv_file_magic_cmd
4008deplibs_check_method=$lt_cv_deplibs_check_method
John Criswell47fdd832003-07-14 16:52:07 +00004009test -z "$deplibs_check_method" && deplibs_check_method=unknown
John Criswell7a73b802003-06-30 21:59:07 +00004010
4011
4012
4013
John Criswell47fdd832003-07-14 16:52:07 +00004014# If no C compiler was specified, use CC.
4015LTCC=${LTCC-"$CC"}
John Criswell7a73b802003-06-30 21:59:07 +00004016
John Criswell47fdd832003-07-14 16:52:07 +00004017# Allow CC to be a program name with arguments.
4018compiler=$CC
John Criswell7a73b802003-06-30 21:59:07 +00004019
John Criswell47fdd832003-07-14 16:52:07 +00004020# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4021if test "${enable_libtool_lock+set}" = set; then
4022 enableval="$enable_libtool_lock"
John Criswell7a73b802003-06-30 21:59:07 +00004023
John Criswell47fdd832003-07-14 16:52:07 +00004024fi;
4025test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
John Criswell7a73b802003-06-30 21:59:07 +00004026
John Criswell47fdd832003-07-14 16:52:07 +00004027# Some flags need to be propagated to the compiler or linker for good
4028# libtool support.
4029case $host in
4030ia64-*-hpux*)
4031 # Find out which ABI we are using.
4032 echo 'int i;' > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004033 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4034 (eval $ac_compile) 2>&5
4035 ac_status=$?
4036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4037 (exit $ac_status); }; then
John Criswell47fdd832003-07-14 16:52:07 +00004038 case `/usr/bin/file conftest.$ac_objext` in
4039 *ELF-32*)
4040 HPUX_IA64_MODE="32"
4041 ;;
4042 *ELF-64*)
4043 HPUX_IA64_MODE="64"
4044 ;;
4045 esac
4046 fi
4047 rm -rf conftest*
4048 ;;
4049*-*-irix6*)
4050 # Find out which ABI we are using.
John Criswell878be7d2004-02-24 21:43:38 +00004051 echo '#line 4047 "configure"' > conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +00004052 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4053 (eval $ac_compile) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00004054 ac_status=$?
4055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00004056 (exit $ac_status); }; then
4057 if test "$lt_cv_prog_gnu_ld" = yes; then
4058 case `/usr/bin/file conftest.$ac_objext` in
4059 *32-bit*)
4060 LD="${LD-ld} -melf32bsmip"
4061 ;;
4062 *N32*)
4063 LD="${LD-ld} -melf32bmipn32"
4064 ;;
4065 *64-bit*)
4066 LD="${LD-ld} -melf64bmip"
4067 ;;
4068 esac
4069 else
4070 case `/usr/bin/file conftest.$ac_objext` in
4071 *32-bit*)
4072 LD="${LD-ld} -32"
4073 ;;
4074 *N32*)
4075 LD="${LD-ld} -n32"
4076 ;;
4077 *64-bit*)
4078 LD="${LD-ld} -64"
4079 ;;
4080 esac
4081 fi
4082 fi
4083 rm -rf conftest*
4084 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004085
John Criswell47fdd832003-07-14 16:52:07 +00004086x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4087 # Find out which ABI we are using.
4088 echo 'int i;' > conftest.$ac_ext
4089 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4090 (eval $ac_compile) 2>&5
4091 ac_status=$?
4092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4093 (exit $ac_status); }; then
4094 case "`/usr/bin/file conftest.o`" in
4095 *32-bit*)
4096 case $host in
4097 x86_64-*linux*)
4098 LD="${LD-ld} -m elf_i386"
4099 ;;
4100 ppc64-*linux*)
4101 LD="${LD-ld} -m elf32ppclinux"
4102 ;;
4103 s390x-*linux*)
4104 LD="${LD-ld} -m elf_s390"
4105 ;;
4106 sparc64-*linux*)
4107 LD="${LD-ld} -m elf32_sparc"
4108 ;;
4109 esac
4110 ;;
4111 *64-bit*)
4112 case $host in
4113 x86_64-*linux*)
4114 LD="${LD-ld} -m elf_x86_64"
4115 ;;
4116 ppc*-*linux*|powerpc*-*linux*)
4117 LD="${LD-ld} -m elf64ppc"
4118 ;;
4119 s390*-*linux*)
4120 LD="${LD-ld} -m elf64_s390"
4121 ;;
4122 sparc*-*linux*)
4123 LD="${LD-ld} -m elf64_sparc"
4124 ;;
4125 esac
4126 ;;
4127 esac
4128 fi
4129 rm -rf conftest*
4130 ;;
4131
4132*-*-sco3.2v5*)
4133 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4134 SAVE_CFLAGS="$CFLAGS"
4135 CFLAGS="$CFLAGS -belf"
4136 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4137echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4138if test "${lt_cv_cc_needs_belf+set}" = set; then
4139 echo $ECHO_N "(cached) $ECHO_C" >&6
4140else
4141 ac_ext=c
4142ac_cpp='$CPP $CPPFLAGS'
4143ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4144ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4145ac_compiler_gnu=$ac_cv_c_compiler_gnu
4146
4147 cat >conftest.$ac_ext <<_ACEOF
4148#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004149/* confdefs.h. */
4150_ACEOF
4151cat confdefs.h >>conftest.$ac_ext
4152cat >>conftest.$ac_ext <<_ACEOF
4153/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00004154
John Criswell47fdd832003-07-14 16:52:07 +00004155int
4156main ()
John Criswell7a73b802003-06-30 21:59:07 +00004157{
John Criswell7a73b802003-06-30 21:59:07 +00004158
John Criswell47fdd832003-07-14 16:52:07 +00004159 ;
4160 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00004161}
John Criswell47fdd832003-07-14 16:52:07 +00004162_ACEOF
4163rm -f conftest.$ac_objext conftest$ac_exeext
4164if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
John Criswell7a73b802003-06-30 21:59:07 +00004165 (eval $ac_link) 2>&5
4166 ac_status=$?
4167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00004168 (exit $ac_status); } &&
4169 { ac_try='test -s conftest$ac_exeext'
4170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4171 (eval $ac_try) 2>&5
4172 ac_status=$?
4173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4174 (exit $ac_status); }; }; then
4175 lt_cv_cc_needs_belf=yes
John Criswell7a73b802003-06-30 21:59:07 +00004176else
John Criswell47fdd832003-07-14 16:52:07 +00004177 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004178sed 's/^/| /' conftest.$ac_ext >&5
4179
John Criswell47fdd832003-07-14 16:52:07 +00004180lt_cv_cc_needs_belf=no
John Criswell7a73b802003-06-30 21:59:07 +00004181fi
John Criswell47fdd832003-07-14 16:52:07 +00004182rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4183 ac_ext=c
4184ac_cpp='$CPP $CPPFLAGS'
4185ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4186ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4187ac_compiler_gnu=$ac_cv_c_compiler_gnu
4188
John Criswell7a73b802003-06-30 21:59:07 +00004189fi
John Criswell47fdd832003-07-14 16:52:07 +00004190echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4191echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4192 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4193 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4194 CFLAGS="$SAVE_CFLAGS"
4195 fi
4196 ;;
4197
4198esac
4199
4200need_locks="$enable_libtool_lock"
4201
John Criswell7a73b802003-06-30 21:59:07 +00004202
4203
4204echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4205echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4206if test "${ac_cv_header_stdc+set}" = set; then
4207 echo $ECHO_N "(cached) $ECHO_C" >&6
4208else
4209 cat >conftest.$ac_ext <<_ACEOF
4210#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004211/* confdefs.h. */
4212_ACEOF
4213cat confdefs.h >>conftest.$ac_ext
4214cat >>conftest.$ac_ext <<_ACEOF
4215/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004216#include <stdlib.h>
4217#include <stdarg.h>
4218#include <string.h>
4219#include <float.h>
4220
John Criswell0c38eaf2003-09-10 15:17:25 +00004221int
4222main ()
4223{
4224
4225 ;
4226 return 0;
4227}
John Criswell7a73b802003-06-30 21:59:07 +00004228_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004229rm -f conftest.$ac_objext
4230if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4231 (eval $ac_compile) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00004232 ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +00004233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004234 (exit $ac_status); } &&
4235 { ac_try='test -s conftest.$ac_objext'
4236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4237 (eval $ac_try) 2>&5
4238 ac_status=$?
4239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4240 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00004241 ac_cv_header_stdc=yes
4242else
4243 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004244sed 's/^/| /' conftest.$ac_ext >&5
4245
4246ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00004247fi
John Criswell0c38eaf2003-09-10 15:17:25 +00004248rm -f conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004249
4250if test $ac_cv_header_stdc = yes; then
4251 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4252 cat >conftest.$ac_ext <<_ACEOF
4253#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004254/* confdefs.h. */
4255_ACEOF
4256cat confdefs.h >>conftest.$ac_ext
4257cat >>conftest.$ac_ext <<_ACEOF
4258/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004259#include <string.h>
4260
4261_ACEOF
4262if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00004263 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00004264 :
4265else
4266 ac_cv_header_stdc=no
4267fi
4268rm -f conftest*
4269
4270fi
4271
4272if test $ac_cv_header_stdc = yes; then
4273 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4274 cat >conftest.$ac_ext <<_ACEOF
4275#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004276/* confdefs.h. */
4277_ACEOF
4278cat confdefs.h >>conftest.$ac_ext
4279cat >>conftest.$ac_ext <<_ACEOF
4280/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004281#include <stdlib.h>
4282
4283_ACEOF
4284if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00004285 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00004286 :
4287else
4288 ac_cv_header_stdc=no
4289fi
4290rm -f conftest*
4291
4292fi
4293
4294if test $ac_cv_header_stdc = yes; then
4295 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4296 if test "$cross_compiling" = yes; then
4297 :
4298else
4299 cat >conftest.$ac_ext <<_ACEOF
4300#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004301/* confdefs.h. */
4302_ACEOF
4303cat confdefs.h >>conftest.$ac_ext
4304cat >>conftest.$ac_ext <<_ACEOF
4305/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004306#include <ctype.h>
4307#if ((' ' & 0x0FF) == 0x020)
4308# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4309# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4310#else
John Criswell0c38eaf2003-09-10 15:17:25 +00004311# define ISLOWER(c) \
4312 (('a' <= (c) && (c) <= 'i') \
John Criswell7a73b802003-06-30 21:59:07 +00004313 || ('j' <= (c) && (c) <= 'r') \
4314 || ('s' <= (c) && (c) <= 'z'))
4315# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4316#endif
4317
4318#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4319int
4320main ()
4321{
4322 int i;
4323 for (i = 0; i < 256; i++)
4324 if (XOR (islower (i), ISLOWER (i))
4325 || toupper (i) != TOUPPER (i))
4326 exit(2);
4327 exit (0);
4328}
4329_ACEOF
4330rm -f conftest$ac_exeext
4331if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4332 (eval $ac_link) 2>&5
4333 ac_status=$?
4334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4335 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4337 (eval $ac_try) 2>&5
4338 ac_status=$?
4339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4340 (exit $ac_status); }; }; then
4341 :
4342else
4343 echo "$as_me: program exited with status $ac_status" >&5
4344echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004345sed 's/^/| /' conftest.$ac_ext >&5
4346
John Criswell7a73b802003-06-30 21:59:07 +00004347( exit $ac_status )
4348ac_cv_header_stdc=no
4349fi
John Criswell0c38eaf2003-09-10 15:17:25 +00004350rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004351fi
4352fi
4353fi
4354echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4355echo "${ECHO_T}$ac_cv_header_stdc" >&6
4356if test $ac_cv_header_stdc = yes; then
4357
4358cat >>confdefs.h <<\_ACEOF
4359#define STDC_HEADERS 1
4360_ACEOF
4361
4362fi
4363
4364# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4375 inttypes.h stdint.h unistd.h
4376do
4377as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4378echo "$as_me:$LINENO: checking for $ac_header" >&5
4379echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4380if eval "test \"\${$as_ac_Header+set}\" = set"; then
4381 echo $ECHO_N "(cached) $ECHO_C" >&6
4382else
4383 cat >conftest.$ac_ext <<_ACEOF
4384#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004385/* confdefs.h. */
4386_ACEOF
4387cat confdefs.h >>conftest.$ac_ext
4388cat >>conftest.$ac_ext <<_ACEOF
4389/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004390$ac_includes_default
4391
4392#include <$ac_header>
4393_ACEOF
4394rm -f conftest.$ac_objext
4395if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4396 (eval $ac_compile) 2>&5
4397 ac_status=$?
4398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4399 (exit $ac_status); } &&
4400 { ac_try='test -s conftest.$ac_objext'
4401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4402 (eval $ac_try) 2>&5
4403 ac_status=$?
4404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4405 (exit $ac_status); }; }; then
4406 eval "$as_ac_Header=yes"
4407else
4408 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004409sed 's/^/| /' conftest.$ac_ext >&5
4410
John Criswell7a73b802003-06-30 21:59:07 +00004411eval "$as_ac_Header=no"
4412fi
4413rm -f conftest.$ac_objext conftest.$ac_ext
4414fi
4415echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4416echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4417if test `eval echo '${'$as_ac_Header'}'` = yes; then
4418 cat >>confdefs.h <<_ACEOF
4419#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4420_ACEOF
4421
4422fi
4423
4424done
4425
4426
4427
4428for ac_header in dlfcn.h
4429do
4430as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4431if eval "test \"\${$as_ac_Header+set}\" = set"; then
4432 echo "$as_me:$LINENO: checking for $ac_header" >&5
4433echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4434if eval "test \"\${$as_ac_Header+set}\" = set"; then
4435 echo $ECHO_N "(cached) $ECHO_C" >&6
4436fi
4437echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4438echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4439else
4440 # Is the header compilable?
4441echo "$as_me:$LINENO: checking $ac_header usability" >&5
4442echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4443cat >conftest.$ac_ext <<_ACEOF
4444#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004445/* confdefs.h. */
4446_ACEOF
4447cat confdefs.h >>conftest.$ac_ext
4448cat >>conftest.$ac_ext <<_ACEOF
4449/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004450$ac_includes_default
4451#include <$ac_header>
4452_ACEOF
4453rm -f conftest.$ac_objext
4454if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4455 (eval $ac_compile) 2>&5
4456 ac_status=$?
4457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4458 (exit $ac_status); } &&
4459 { ac_try='test -s conftest.$ac_objext'
4460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4461 (eval $ac_try) 2>&5
4462 ac_status=$?
4463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4464 (exit $ac_status); }; }; then
4465 ac_header_compiler=yes
4466else
4467 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004468sed 's/^/| /' conftest.$ac_ext >&5
4469
John Criswell7a73b802003-06-30 21:59:07 +00004470ac_header_compiler=no
4471fi
4472rm -f conftest.$ac_objext conftest.$ac_ext
4473echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4474echo "${ECHO_T}$ac_header_compiler" >&6
4475
4476# Is the header present?
4477echo "$as_me:$LINENO: checking $ac_header presence" >&5
4478echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4479cat >conftest.$ac_ext <<_ACEOF
4480#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004481/* confdefs.h. */
4482_ACEOF
4483cat confdefs.h >>conftest.$ac_ext
4484cat >>conftest.$ac_ext <<_ACEOF
4485/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004486#include <$ac_header>
4487_ACEOF
4488if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4489 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4490 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004491 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00004492 rm -f conftest.er1
4493 cat conftest.err >&5
4494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4495 (exit $ac_status); } >/dev/null; then
4496 if test -s conftest.err; then
4497 ac_cpp_err=$ac_c_preproc_warn_flag
4498 else
4499 ac_cpp_err=
4500 fi
4501else
4502 ac_cpp_err=yes
4503fi
4504if test -z "$ac_cpp_err"; then
4505 ac_header_preproc=yes
4506else
4507 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004508sed 's/^/| /' conftest.$ac_ext >&5
4509
John Criswell7a73b802003-06-30 21:59:07 +00004510 ac_header_preproc=no
4511fi
4512rm -f conftest.err conftest.$ac_ext
4513echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4514echo "${ECHO_T}$ac_header_preproc" >&6
4515
4516# So? What about this header?
4517case $ac_header_compiler:$ac_header_preproc in
4518 yes:no )
4519 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4520echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4521 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004522echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4523 (
4524 cat <<\_ASBOX
4525## ------------------------------------ ##
4526## Report this to bug-autoconf@gnu.org. ##
4527## ------------------------------------ ##
4528_ASBOX
4529 ) |
4530 sed "s/^/$as_me: WARNING: /" >&2
4531 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004532 no:yes )
4533 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4534echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4535 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4536echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4537 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004538echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4539 (
4540 cat <<\_ASBOX
4541## ------------------------------------ ##
4542## Report this to bug-autoconf@gnu.org. ##
4543## ------------------------------------ ##
4544_ASBOX
4545 ) |
4546 sed "s/^/$as_me: WARNING: /" >&2
4547 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004548esac
4549echo "$as_me:$LINENO: checking for $ac_header" >&5
4550echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4551if eval "test \"\${$as_ac_Header+set}\" = set"; then
4552 echo $ECHO_N "(cached) $ECHO_C" >&6
4553else
4554 eval "$as_ac_Header=$ac_header_preproc"
4555fi
4556echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4557echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4558
4559fi
4560if test `eval echo '${'$as_ac_Header'}'` = yes; then
4561 cat >>confdefs.h <<_ACEOF
4562#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4563_ACEOF
4564
4565fi
4566
4567done
4568
John Criswell47fdd832003-07-14 16:52:07 +00004569ac_ext=cc
4570ac_cpp='$CXXCPP $CPPFLAGS'
4571ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4572ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4573ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4574echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4575echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4576if test -z "$CXXCPP"; then
4577 if test "${ac_cv_prog_CXXCPP+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00004578 echo $ECHO_N "(cached) $ECHO_C" >&6
4579else
John Criswell47fdd832003-07-14 16:52:07 +00004580 # Double quotes because CXXCPP needs to be expanded
4581 for CXXCPP in "$CXX -E" "/lib/cpp"
4582 do
4583 ac_preproc_ok=false
4584for ac_cxx_preproc_warn_flag in '' yes
4585do
4586 # Use a header file that comes with gcc, so configuring glibc
4587 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00004588 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4589 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +00004590 # On the NeXT, cc -E runs the code through the compiler's parser,
4591 # not just through cpp. "Syntax error" is here to catch this case.
4592 cat >conftest.$ac_ext <<_ACEOF
4593#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004594/* confdefs.h. */
4595_ACEOF
4596cat confdefs.h >>conftest.$ac_ext
4597cat >>conftest.$ac_ext <<_ACEOF
4598/* end confdefs.h. */
4599#ifdef __STDC__
4600# include <limits.h>
4601#else
4602# include <assert.h>
4603#endif
John Criswell47fdd832003-07-14 16:52:07 +00004604 Syntax error
4605_ACEOF
4606if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4607 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4608 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004609 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00004610 rm -f conftest.er1
4611 cat conftest.err >&5
4612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4613 (exit $ac_status); } >/dev/null; then
4614 if test -s conftest.err; then
4615 ac_cpp_err=$ac_cxx_preproc_warn_flag
John Criswell7a73b802003-06-30 21:59:07 +00004616 else
John Criswell47fdd832003-07-14 16:52:07 +00004617 ac_cpp_err=
John Criswell7a73b802003-06-30 21:59:07 +00004618 fi
John Criswell47fdd832003-07-14 16:52:07 +00004619else
4620 ac_cpp_err=yes
4621fi
4622if test -z "$ac_cpp_err"; then
4623 :
4624else
4625 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004626sed 's/^/| /' conftest.$ac_ext >&5
4627
John Criswell47fdd832003-07-14 16:52:07 +00004628 # Broken: fails on valid input.
4629continue
4630fi
4631rm -f conftest.err conftest.$ac_ext
4632
4633 # OK, works on sane cases. Now check whether non-existent headers
4634 # can be detected and how.
4635 cat >conftest.$ac_ext <<_ACEOF
4636#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004637/* confdefs.h. */
4638_ACEOF
4639cat confdefs.h >>conftest.$ac_ext
4640cat >>conftest.$ac_ext <<_ACEOF
4641/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00004642#include <ac_nonexistent.h>
4643_ACEOF
4644if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4645 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4646 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004647 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00004648 rm -f conftest.er1
4649 cat conftest.err >&5
4650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4651 (exit $ac_status); } >/dev/null; then
4652 if test -s conftest.err; then
4653 ac_cpp_err=$ac_cxx_preproc_warn_flag
4654 else
4655 ac_cpp_err=
4656 fi
4657else
4658 ac_cpp_err=yes
4659fi
4660if test -z "$ac_cpp_err"; then
4661 # Broken: success on invalid input.
4662continue
4663else
4664 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004665sed 's/^/| /' conftest.$ac_ext >&5
4666
John Criswell47fdd832003-07-14 16:52:07 +00004667 # Passes both tests.
4668ac_preproc_ok=:
4669break
4670fi
4671rm -f conftest.err conftest.$ac_ext
4672
4673done
4674# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4675rm -f conftest.err conftest.$ac_ext
4676if $ac_preproc_ok; then
4677 break
John Criswell7a73b802003-06-30 21:59:07 +00004678fi
4679
John Criswell47fdd832003-07-14 16:52:07 +00004680 done
4681 ac_cv_prog_CXXCPP=$CXXCPP
4682
4683fi
4684 CXXCPP=$ac_cv_prog_CXXCPP
4685else
4686 ac_cv_prog_CXXCPP=$CXXCPP
4687fi
4688echo "$as_me:$LINENO: result: $CXXCPP" >&5
4689echo "${ECHO_T}$CXXCPP" >&6
4690ac_preproc_ok=false
4691for ac_cxx_preproc_warn_flag in '' yes
4692do
4693 # Use a header file that comes with gcc, so configuring glibc
4694 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00004695 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4696 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +00004697 # On the NeXT, cc -E runs the code through the compiler's parser,
4698 # not just through cpp. "Syntax error" is here to catch this case.
4699 cat >conftest.$ac_ext <<_ACEOF
4700#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004701/* confdefs.h. */
4702_ACEOF
4703cat confdefs.h >>conftest.$ac_ext
4704cat >>conftest.$ac_ext <<_ACEOF
4705/* end confdefs.h. */
4706#ifdef __STDC__
4707# include <limits.h>
4708#else
4709# include <assert.h>
4710#endif
John Criswell47fdd832003-07-14 16:52:07 +00004711 Syntax error
4712_ACEOF
4713if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4714 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4715 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004716 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00004717 rm -f conftest.er1
4718 cat conftest.err >&5
4719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4720 (exit $ac_status); } >/dev/null; then
4721 if test -s conftest.err; then
4722 ac_cpp_err=$ac_cxx_preproc_warn_flag
4723 else
4724 ac_cpp_err=
4725 fi
4726else
4727 ac_cpp_err=yes
4728fi
4729if test -z "$ac_cpp_err"; then
4730 :
4731else
4732 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004733sed 's/^/| /' conftest.$ac_ext >&5
4734
John Criswell47fdd832003-07-14 16:52:07 +00004735 # Broken: fails on valid input.
4736continue
4737fi
4738rm -f conftest.err conftest.$ac_ext
4739
4740 # OK, works on sane cases. Now check whether non-existent headers
4741 # can be detected and how.
4742 cat >conftest.$ac_ext <<_ACEOF
4743#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004744/* confdefs.h. */
4745_ACEOF
4746cat confdefs.h >>conftest.$ac_ext
4747cat >>conftest.$ac_ext <<_ACEOF
4748/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00004749#include <ac_nonexistent.h>
4750_ACEOF
4751if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4752 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4753 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004754 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00004755 rm -f conftest.er1
4756 cat conftest.err >&5
4757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4758 (exit $ac_status); } >/dev/null; then
4759 if test -s conftest.err; then
4760 ac_cpp_err=$ac_cxx_preproc_warn_flag
4761 else
4762 ac_cpp_err=
4763 fi
4764else
4765 ac_cpp_err=yes
4766fi
4767if test -z "$ac_cpp_err"; then
4768 # Broken: success on invalid input.
4769continue
4770else
4771 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004772sed 's/^/| /' conftest.$ac_ext >&5
4773
John Criswell47fdd832003-07-14 16:52:07 +00004774 # Passes both tests.
4775ac_preproc_ok=:
4776break
4777fi
4778rm -f conftest.err conftest.$ac_ext
4779
4780done
4781# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4782rm -f conftest.err conftest.$ac_ext
4783if $ac_preproc_ok; then
4784 :
4785else
John Criswell0c38eaf2003-09-10 15:17:25 +00004786 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4787See \`config.log' for more details." >&5
4788echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4789See \`config.log' for more details." >&2;}
John Criswell47fdd832003-07-14 16:52:07 +00004790 { (exit 1); exit 1; }; }
4791fi
4792
4793ac_ext=cc
4794ac_cpp='$CXXCPP $CPPFLAGS'
4795ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4796ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4797ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4798
4799
4800ac_ext=f
4801ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4802ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4803ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4804if test -n "$ac_tool_prefix"; then
John Criswell0c38eaf2003-09-10 15:17:25 +00004805 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 +00004806 do
4807 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4808set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4809echo "$as_me:$LINENO: checking for $ac_word" >&5
4810echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4811if test "${ac_cv_prog_F77+set}" = set; then
4812 echo $ECHO_N "(cached) $ECHO_C" >&6
4813else
4814 if test -n "$F77"; then
4815 ac_cv_prog_F77="$F77" # Let the user override the test.
4816else
4817as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4818for as_dir in $PATH
4819do
4820 IFS=$as_save_IFS
4821 test -z "$as_dir" && as_dir=.
4822 for ac_exec_ext in '' $ac_executable_extensions; do
4823 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4824 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4825 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4826 break 2
4827 fi
4828done
4829done
4830
4831fi
4832fi
4833F77=$ac_cv_prog_F77
4834if test -n "$F77"; then
4835 echo "$as_me:$LINENO: result: $F77" >&5
4836echo "${ECHO_T}$F77" >&6
4837else
4838 echo "$as_me:$LINENO: result: no" >&5
4839echo "${ECHO_T}no" >&6
4840fi
4841
4842 test -n "$F77" && break
4843 done
4844fi
4845if test -z "$F77"; then
4846 ac_ct_F77=$F77
John Criswell0c38eaf2003-09-10 15:17:25 +00004847 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 +00004848do
4849 # Extract the first word of "$ac_prog", so it can be a program name with args.
4850set dummy $ac_prog; ac_word=$2
4851echo "$as_me:$LINENO: checking for $ac_word" >&5
4852echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4853if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
4854 echo $ECHO_N "(cached) $ECHO_C" >&6
4855else
4856 if test -n "$ac_ct_F77"; then
4857 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4858else
4859as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4860for as_dir in $PATH
4861do
4862 IFS=$as_save_IFS
4863 test -z "$as_dir" && as_dir=.
4864 for ac_exec_ext in '' $ac_executable_extensions; do
4865 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4866 ac_cv_prog_ac_ct_F77="$ac_prog"
4867 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4868 break 2
4869 fi
4870done
4871done
4872
4873fi
4874fi
4875ac_ct_F77=$ac_cv_prog_ac_ct_F77
4876if test -n "$ac_ct_F77"; then
4877 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
4878echo "${ECHO_T}$ac_ct_F77" >&6
4879else
4880 echo "$as_me:$LINENO: result: no" >&5
4881echo "${ECHO_T}no" >&6
4882fi
4883
4884 test -n "$ac_ct_F77" && break
4885done
4886
4887 F77=$ac_ct_F77
4888fi
4889
4890
4891# Provide some information about the compiler.
John Criswell878be7d2004-02-24 21:43:38 +00004892echo "$as_me:4888:" \
John Criswell47fdd832003-07-14 16:52:07 +00004893 "checking for Fortran 77 compiler version" >&5
4894ac_compiler=`set X $ac_compile; echo $2`
4895{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4896 (eval $ac_compiler --version </dev/null >&5) 2>&5
4897 ac_status=$?
4898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4899 (exit $ac_status); }
4900{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4901 (eval $ac_compiler -v </dev/null >&5) 2>&5
4902 ac_status=$?
4903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4904 (exit $ac_status); }
4905{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4906 (eval $ac_compiler -V </dev/null >&5) 2>&5
4907 ac_status=$?
4908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4909 (exit $ac_status); }
4910
4911# If we don't use `.F' as extension, the preprocessor is not run on the
4912# input file.
4913ac_save_ext=$ac_ext
4914ac_ext=F
4915echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
4916echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
4917if test "${ac_cv_f77_compiler_gnu+set}" = set; then
4918 echo $ECHO_N "(cached) $ECHO_C" >&6
4919else
4920 cat >conftest.$ac_ext <<_ACEOF
4921 program main
4922#ifndef __GNUC__
4923 choke me
4924#endif
4925
4926 end
4927_ACEOF
4928rm -f conftest.$ac_objext
4929if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4930 (eval $ac_compile) 2>&5
4931 ac_status=$?
4932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4933 (exit $ac_status); } &&
4934 { ac_try='test -s conftest.$ac_objext'
4935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4936 (eval $ac_try) 2>&5
4937 ac_status=$?
4938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4939 (exit $ac_status); }; }; then
4940 ac_compiler_gnu=yes
4941else
4942 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004943sed 's/^/| /' conftest.$ac_ext >&5
4944
John Criswell47fdd832003-07-14 16:52:07 +00004945ac_compiler_gnu=no
4946fi
4947rm -f conftest.$ac_objext conftest.$ac_ext
4948ac_cv_f77_compiler_gnu=$ac_compiler_gnu
4949
4950fi
4951echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
4952echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
4953ac_ext=$ac_save_ext
4954G77=`test $ac_compiler_gnu = yes && echo yes`
4955ac_test_FFLAGS=${FFLAGS+set}
4956ac_save_FFLAGS=$FFLAGS
4957FFLAGS=
4958echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
4959echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
4960if test "${ac_cv_prog_f77_g+set}" = set; then
4961 echo $ECHO_N "(cached) $ECHO_C" >&6
4962else
4963 FFLAGS=-g
4964cat >conftest.$ac_ext <<_ACEOF
4965 program main
4966
4967 end
4968_ACEOF
4969rm -f conftest.$ac_objext
4970if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4971 (eval $ac_compile) 2>&5
4972 ac_status=$?
4973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4974 (exit $ac_status); } &&
4975 { ac_try='test -s conftest.$ac_objext'
4976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4977 (eval $ac_try) 2>&5
4978 ac_status=$?
4979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4980 (exit $ac_status); }; }; then
4981 ac_cv_prog_f77_g=yes
4982else
4983 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004984sed 's/^/| /' conftest.$ac_ext >&5
4985
John Criswell47fdd832003-07-14 16:52:07 +00004986ac_cv_prog_f77_g=no
4987fi
4988rm -f conftest.$ac_objext conftest.$ac_ext
4989
4990fi
4991echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
4992echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
4993if test "$ac_test_FFLAGS" = set; then
4994 FFLAGS=$ac_save_FFLAGS
4995elif test $ac_cv_prog_f77_g = yes; then
4996 if test "$G77" = yes; then
4997 FFLAGS="-g -O2"
4998 else
4999 FFLAGS="-g"
5000 fi
5001else
5002 if test "$G77" = yes; then
5003 FFLAGS="-O2"
5004 else
5005 FFLAGS=
5006 fi
5007fi
5008ac_ext=c
5009ac_cpp='$CPP $CPPFLAGS'
5010ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5011ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5012ac_compiler_gnu=$ac_cv_c_compiler_gnu
5013
5014
5015
5016# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5017
5018# find the maximum length of command line arguments
5019echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5020echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5021if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5022 echo $ECHO_N "(cached) $ECHO_C" >&6
5023else
5024 i=0
5025 testring="ABCD"
5026
5027 case $build_os in
5028 msdosdjgpp*)
5029 # On DJGPP, this test can blow up pretty badly due to problems in libc
5030 # (any single argument exceeding 2000 bytes causes a buffer overrun
5031 # during glob expansion). Even if it were fixed, the result of this
5032 # check would be larger than it should be.
5033 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5034 ;;
5035
5036 gnu*)
5037 # Under GNU Hurd, this test is not required because there is
5038 # no limit to the length of command line arguments.
5039 # Libtool will interpret -1 as no limit whatsoever
5040 lt_cv_sys_max_cmd_len=-1;
5041 ;;
5042
5043 cygwin* | mingw*)
5044 # On Win9x/ME, this test blows up -- it succeeds, but takes
5045 # about 5 minutes as the teststring grows exponentially.
5046 # Worse, since 9x/ME are not pre-emptively multitasking,
5047 # you end up with a "frozen" computer, even though with patience
5048 # the test eventually succeeds (with a max line length of 256k).
5049 # Instead, let's just punt: use the minimum linelength reported by
5050 # all of the supported platforms: 8192 (on NT/2K/XP).
5051 lt_cv_sys_max_cmd_len=8192;
5052 ;;
5053
5054 *)
5055 # If test is not a shell built-in, we'll probably end up computing a
5056 # maximum length that is only half of the actual maximum length, but
5057 # we can't tell.
5058 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5059 = "XX$testring") >/dev/null 2>&1 &&
5060 new_result=`expr "X$testring" : ".*" 2>&1` &&
5061 lt_cv_sys_max_cmd_len=$new_result &&
5062 test $i != 17 # 1/2 MB should be enough
5063 do
5064 i=`expr $i + 1`
5065 testring=$testring$testring
5066 done
5067 testring=
5068 # Add a significant safety factor because C++ compilers can tack on massive
5069 # amounts of additional arguments before passing them to the linker.
5070 # It appears as though 1/2 is a usable value.
5071 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5072 ;;
5073 esac
5074
5075fi
5076
5077if test -n $lt_cv_sys_max_cmd_len ; then
5078 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5079echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5080else
5081 echo "$as_me:$LINENO: result: none" >&5
5082echo "${ECHO_T}none" >&6
5083fi
5084
5085
5086
5087
5088# Check for command to grab the raw symbol name followed by C symbol from nm.
5089echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5090echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5091if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5092 echo $ECHO_N "(cached) $ECHO_C" >&6
5093else
5094
5095# These are sane defaults that work on at least a few old systems.
5096# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5097
5098# Character class describing NM global symbol codes.
5099symcode='[BCDEGRST]'
5100
5101# Regexp to match symbols that can be accessed directly from C.
5102sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5103
5104# Transform the above into a raw symbol and a C symbol.
5105symxfrm='\1 \2\3 \3'
5106
5107# Transform an extracted symbol line into a proper C declaration
5108lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5109
5110# Transform an extracted symbol line into symbol name and symbol address
5111lt_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'"
5112
5113# Define system-specific variables.
5114case $host_os in
5115aix*)
5116 symcode='[BCDT]'
5117 ;;
5118cygwin* | mingw* | pw32*)
5119 symcode='[ABCDGISTW]'
5120 ;;
5121hpux*) # Its linker distinguishes data from code symbols
5122 if test "$host_cpu" = ia64; then
5123 symcode='[ABCDEGRST]'
5124 fi
5125 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5126 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'"
5127 ;;
5128irix* | nonstopux*)
5129 symcode='[BCDEGRST]'
5130 ;;
5131osf*)
5132 symcode='[BCDEGQRST]'
5133 ;;
5134solaris* | sysv5*)
5135 symcode='[BDT]'
5136 ;;
5137sysv4)
5138 symcode='[DFNSTU]'
5139 ;;
5140esac
5141
5142# Handle CRLF in mingw tool chain
5143opt_cr=
5144case $build_os in
5145mingw*)
5146 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5147 ;;
5148esac
5149
5150# If we're using GNU nm, then use its standard symbol codes.
5151case `$NM -V 2>&1` in
5152*GNU* | *'with BFD'*)
5153 symcode='[ABCDGISTW]' ;;
5154esac
5155
5156# Try without a prefix undercore, then with it.
5157for ac_symprfx in "" "_"; do
5158
5159 # Write the raw and C identifiers.
5160 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5161
5162 # Check to see that the pipe works correctly.
5163 pipe_works=no
5164
5165 rm -f conftest*
5166 cat > conftest.$ac_ext <<EOF
5167#ifdef __cplusplus
5168extern "C" {
5169#endif
5170char nm_test_var;
5171void nm_test_func(){}
5172#ifdef __cplusplus
5173}
5174#endif
5175int main(){nm_test_var='a';nm_test_func();return(0);}
5176EOF
5177
5178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5179 (eval $ac_compile) 2>&5
5180 ac_status=$?
5181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5182 (exit $ac_status); }; then
5183 # Now try to grab the symbols.
5184 nlist=conftest.nm
5185 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5186 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5187 ac_status=$?
5188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5189 (exit $ac_status); } && test -s "$nlist"; then
5190 # Try sorting and uniquifying the output.
5191 if sort "$nlist" | uniq > "$nlist"T; then
5192 mv -f "$nlist"T "$nlist"
5193 else
5194 rm -f "$nlist"T
5195 fi
5196
5197 # Make sure that we snagged all the symbols we need.
5198 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5199 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5200 cat <<EOF > conftest.$ac_ext
5201#ifdef __cplusplus
5202extern "C" {
5203#endif
5204
5205EOF
5206 # Now generate the symbol file.
5207 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5208
5209 cat <<EOF >> conftest.$ac_ext
5210#if defined (__STDC__) && __STDC__
5211# define lt_ptr_t void *
5212#else
5213# define lt_ptr_t char *
5214# define const
5215#endif
5216
5217/* The mapping between symbol names and symbols. */
5218const struct {
5219 const char *name;
5220 lt_ptr_t address;
5221}
5222lt_preloaded_symbols[] =
5223{
5224EOF
5225 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5226 cat <<\EOF >> conftest.$ac_ext
5227 {0, (lt_ptr_t) 0}
5228};
5229
5230#ifdef __cplusplus
5231}
5232#endif
5233EOF
5234 # Now try linking the two files.
5235 mv conftest.$ac_objext conftstm.$ac_objext
5236 lt_save_LIBS="$LIBS"
5237 lt_save_CFLAGS="$CFLAGS"
5238 LIBS="conftstm.$ac_objext"
5239 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5240 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5241 (eval $ac_link) 2>&5
5242 ac_status=$?
5243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5244 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5245 pipe_works=yes
5246 fi
5247 LIBS="$lt_save_LIBS"
5248 CFLAGS="$lt_save_CFLAGS"
5249 else
5250 echo "cannot find nm_test_func in $nlist" >&5
5251 fi
5252 else
5253 echo "cannot find nm_test_var in $nlist" >&5
5254 fi
5255 else
5256 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5257 fi
5258 else
5259 echo "$progname: failed program was:" >&5
5260 cat conftest.$ac_ext >&5
5261 fi
5262 rm -f conftest* conftst*
5263
5264 # Do not use the global_symbol_pipe unless it works.
5265 if test "$pipe_works" = yes; then
5266 break
5267 else
5268 lt_cv_sys_global_symbol_pipe=
5269 fi
5270done
5271
5272fi
5273
5274if test -z "$lt_cv_sys_global_symbol_pipe"; then
5275 lt_cv_sys_global_symbol_to_cdecl=
5276fi
5277if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5278 echo "$as_me:$LINENO: result: failed" >&5
5279echo "${ECHO_T}failed" >&6
5280else
5281 echo "$as_me:$LINENO: result: ok" >&5
5282echo "${ECHO_T}ok" >&6
5283fi
5284
5285echo "$as_me:$LINENO: checking for objdir" >&5
5286echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5287if test "${lt_cv_objdir+set}" = set; then
5288 echo $ECHO_N "(cached) $ECHO_C" >&6
5289else
5290 rm -f .libs 2>/dev/null
5291mkdir .libs 2>/dev/null
5292if test -d .libs; then
5293 lt_cv_objdir=.libs
5294else
5295 # MS-DOS does not allow filenames that begin with a dot.
5296 lt_cv_objdir=_libs
5297fi
5298rmdir .libs 2>/dev/null
5299fi
5300echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5301echo "${ECHO_T}$lt_cv_objdir" >&6
5302objdir=$lt_cv_objdir
5303
5304
5305
5306
5307
5308case $host_os in
5309aix3*)
5310 # AIX sometimes has problems with the GCC collect2 program. For some
5311 # reason, if we set the COLLECT_NAMES environment variable, the problems
5312 # vanish in a puff of smoke.
5313 if test "X${COLLECT_NAMES+set}" != Xset; then
5314 COLLECT_NAMES=
5315 export COLLECT_NAMES
John Criswell7a73b802003-06-30 21:59:07 +00005316 fi
5317 ;;
5318esac
5319
John Criswell47fdd832003-07-14 16:52:07 +00005320# Sed substitution that helps us do robust quoting. It backslashifies
5321# metacharacters that are still active within double-quoted strings.
5322Xsed='sed -e s/^X//'
5323sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5324
5325# Same as above, but do not quote variable references.
5326double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5327
5328# Sed substitution to delay expansion of an escaped shell variable in a
5329# double_quote_subst'ed string.
5330delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5331
5332# Sed substitution to avoid accidental globbing in evaled expressions
5333no_glob_subst='s/\*/\\\*/g'
5334
5335# Constants:
5336rm="rm -f"
5337
5338# Global variables:
John Criswell8d4221e2003-07-23 16:52:50 +00005339default_ofile=mklib
John Criswell47fdd832003-07-14 16:52:07 +00005340can_build_shared=yes
5341
5342# All known linkers require a `.a' archive for static linking (except M$VC,
5343# which needs '.lib').
5344libext=a
5345ltmain="$ac_aux_dir/ltmain.sh"
5346ofile="$default_ofile"
5347with_gnu_ld="$lt_cv_prog_gnu_ld"
5348
5349if test -n "$ac_tool_prefix"; then
5350 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5351set dummy ${ac_tool_prefix}ar; ac_word=$2
5352echo "$as_me:$LINENO: checking for $ac_word" >&5
5353echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5354if test "${ac_cv_prog_AR+set}" = set; then
5355 echo $ECHO_N "(cached) $ECHO_C" >&6
5356else
5357 if test -n "$AR"; then
5358 ac_cv_prog_AR="$AR" # Let the user override the test.
5359else
5360as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5361for as_dir in $PATH
5362do
5363 IFS=$as_save_IFS
5364 test -z "$as_dir" && as_dir=.
5365 for ac_exec_ext in '' $ac_executable_extensions; do
5366 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5367 ac_cv_prog_AR="${ac_tool_prefix}ar"
5368 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5369 break 2
5370 fi
5371done
5372done
5373
5374fi
5375fi
5376AR=$ac_cv_prog_AR
5377if test -n "$AR"; then
5378 echo "$as_me:$LINENO: result: $AR" >&5
5379echo "${ECHO_T}$AR" >&6
5380else
5381 echo "$as_me:$LINENO: result: no" >&5
5382echo "${ECHO_T}no" >&6
5383fi
5384
5385fi
5386if test -z "$ac_cv_prog_AR"; then
5387 ac_ct_AR=$AR
5388 # Extract the first word of "ar", so it can be a program name with args.
5389set dummy ar; ac_word=$2
5390echo "$as_me:$LINENO: checking for $ac_word" >&5
5391echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5392if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5393 echo $ECHO_N "(cached) $ECHO_C" >&6
5394else
5395 if test -n "$ac_ct_AR"; then
5396 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5397else
5398as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5399for as_dir in $PATH
5400do
5401 IFS=$as_save_IFS
5402 test -z "$as_dir" && as_dir=.
5403 for ac_exec_ext in '' $ac_executable_extensions; do
5404 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5405 ac_cv_prog_ac_ct_AR="ar"
5406 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5407 break 2
5408 fi
5409done
5410done
5411
5412 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5413fi
5414fi
5415ac_ct_AR=$ac_cv_prog_ac_ct_AR
5416if test -n "$ac_ct_AR"; then
5417 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5418echo "${ECHO_T}$ac_ct_AR" >&6
5419else
5420 echo "$as_me:$LINENO: result: no" >&5
5421echo "${ECHO_T}no" >&6
5422fi
5423
5424 AR=$ac_ct_AR
5425else
5426 AR="$ac_cv_prog_AR"
5427fi
5428
John Criswell7a73b802003-06-30 21:59:07 +00005429if test -n "$ac_tool_prefix"; then
5430 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5431set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5432echo "$as_me:$LINENO: checking for $ac_word" >&5
5433echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5434if test "${ac_cv_prog_RANLIB+set}" = set; then
5435 echo $ECHO_N "(cached) $ECHO_C" >&6
5436else
5437 if test -n "$RANLIB"; then
5438 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5439else
5440as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5441for as_dir in $PATH
5442do
5443 IFS=$as_save_IFS
5444 test -z "$as_dir" && as_dir=.
5445 for ac_exec_ext in '' $ac_executable_extensions; do
5446 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5447 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5448 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5449 break 2
5450 fi
5451done
5452done
5453
5454fi
5455fi
5456RANLIB=$ac_cv_prog_RANLIB
5457if test -n "$RANLIB"; then
5458 echo "$as_me:$LINENO: result: $RANLIB" >&5
5459echo "${ECHO_T}$RANLIB" >&6
5460else
5461 echo "$as_me:$LINENO: result: no" >&5
5462echo "${ECHO_T}no" >&6
5463fi
5464
5465fi
5466if test -z "$ac_cv_prog_RANLIB"; then
5467 ac_ct_RANLIB=$RANLIB
5468 # Extract the first word of "ranlib", so it can be a program name with args.
5469set dummy ranlib; ac_word=$2
5470echo "$as_me:$LINENO: checking for $ac_word" >&5
5471echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5472if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5473 echo $ECHO_N "(cached) $ECHO_C" >&6
5474else
5475 if test -n "$ac_ct_RANLIB"; then
5476 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5477else
5478as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5479for as_dir in $PATH
5480do
5481 IFS=$as_save_IFS
5482 test -z "$as_dir" && as_dir=.
5483 for ac_exec_ext in '' $ac_executable_extensions; do
5484 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5485 ac_cv_prog_ac_ct_RANLIB="ranlib"
5486 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5487 break 2
5488 fi
5489done
5490done
5491
5492 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5493fi
5494fi
5495ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5496if test -n "$ac_ct_RANLIB"; then
5497 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5498echo "${ECHO_T}$ac_ct_RANLIB" >&6
5499else
5500 echo "$as_me:$LINENO: result: no" >&5
5501echo "${ECHO_T}no" >&6
5502fi
5503
5504 RANLIB=$ac_ct_RANLIB
5505else
5506 RANLIB="$ac_cv_prog_RANLIB"
5507fi
5508
5509if test -n "$ac_tool_prefix"; then
5510 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5511set dummy ${ac_tool_prefix}strip; ac_word=$2
5512echo "$as_me:$LINENO: checking for $ac_word" >&5
5513echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5514if test "${ac_cv_prog_STRIP+set}" = set; then
5515 echo $ECHO_N "(cached) $ECHO_C" >&6
5516else
5517 if test -n "$STRIP"; then
5518 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5519else
5520as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5521for as_dir in $PATH
5522do
5523 IFS=$as_save_IFS
5524 test -z "$as_dir" && as_dir=.
5525 for ac_exec_ext in '' $ac_executable_extensions; do
5526 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5527 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5528 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5529 break 2
5530 fi
5531done
5532done
5533
5534fi
5535fi
5536STRIP=$ac_cv_prog_STRIP
5537if test -n "$STRIP"; then
5538 echo "$as_me:$LINENO: result: $STRIP" >&5
5539echo "${ECHO_T}$STRIP" >&6
5540else
5541 echo "$as_me:$LINENO: result: no" >&5
5542echo "${ECHO_T}no" >&6
5543fi
5544
5545fi
5546if test -z "$ac_cv_prog_STRIP"; then
5547 ac_ct_STRIP=$STRIP
5548 # Extract the first word of "strip", so it can be a program name with args.
5549set dummy strip; ac_word=$2
5550echo "$as_me:$LINENO: checking for $ac_word" >&5
5551echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5552if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5553 echo $ECHO_N "(cached) $ECHO_C" >&6
5554else
5555 if test -n "$ac_ct_STRIP"; then
5556 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5557else
5558as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5559for as_dir in $PATH
5560do
5561 IFS=$as_save_IFS
5562 test -z "$as_dir" && as_dir=.
5563 for ac_exec_ext in '' $ac_executable_extensions; do
5564 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5565 ac_cv_prog_ac_ct_STRIP="strip"
5566 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5567 break 2
5568 fi
5569done
5570done
5571
5572 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5573fi
5574fi
5575ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5576if test -n "$ac_ct_STRIP"; then
5577 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5578echo "${ECHO_T}$ac_ct_STRIP" >&6
5579else
5580 echo "$as_me:$LINENO: result: no" >&5
5581echo "${ECHO_T}no" >&6
5582fi
5583
5584 STRIP=$ac_ct_STRIP
5585else
5586 STRIP="$ac_cv_prog_STRIP"
5587fi
5588
5589
John Criswell7a73b802003-06-30 21:59:07 +00005590old_CC="$CC"
5591old_CFLAGS="$CFLAGS"
5592
5593# Set sane defaults for various variables
5594test -z "$AR" && AR=ar
5595test -z "$AR_FLAGS" && AR_FLAGS=cru
5596test -z "$AS" && AS=as
5597test -z "$CC" && CC=cc
John Criswell47fdd832003-07-14 16:52:07 +00005598test -z "$LTCC" && LTCC=$CC
John Criswell7a73b802003-06-30 21:59:07 +00005599test -z "$DLLTOOL" && DLLTOOL=dlltool
5600test -z "$LD" && LD=ld
5601test -z "$LN_S" && LN_S="ln -s"
5602test -z "$MAGIC_CMD" && MAGIC_CMD=file
5603test -z "$NM" && NM=nm
John Criswell47fdd832003-07-14 16:52:07 +00005604test -z "$SED" && SED=sed
John Criswell7a73b802003-06-30 21:59:07 +00005605test -z "$OBJDUMP" && OBJDUMP=objdump
5606test -z "$RANLIB" && RANLIB=:
5607test -z "$STRIP" && STRIP=:
5608test -z "$ac_objext" && ac_objext=o
5609
John Criswell7a73b802003-06-30 21:59:07 +00005610# Determine commands to create old-style static archives.
5611old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5612old_postinstall_cmds='chmod 644 $oldlib'
5613old_postuninstall_cmds=
5614
5615if test -n "$RANLIB"; then
5616 case $host_os in
5617 openbsd*)
5618 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5619 ;;
5620 *)
5621 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5622 ;;
5623 esac
5624 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5625fi
5626
John Criswell47fdd832003-07-14 16:52:07 +00005627# Only perform the check for file, if the check method requires it
5628case $deplibs_check_method in
5629file_magic*)
5630 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5631 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5632echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5633if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5634 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00005635else
John Criswell47fdd832003-07-14 16:52:07 +00005636 case $MAGIC_CMD in
5637[\\/*] | ?:[\\/]*)
5638 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5639 ;;
5640*)
5641 lt_save_MAGIC_CMD="$MAGIC_CMD"
5642 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5643 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5644 for ac_dir in $ac_dummy; do
5645 IFS="$lt_save_ifs"
5646 test -z "$ac_dir" && ac_dir=.
5647 if test -f $ac_dir/${ac_tool_prefix}file; then
5648 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5649 if test -n "$file_magic_test_file"; then
5650 case $deplibs_check_method in
5651 "file_magic "*)
5652 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5653 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5654 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5655 $EGREP "$file_magic_regex" > /dev/null; then
5656 :
5657 else
5658 cat <<EOF 1>&2
5659
5660*** Warning: the command libtool uses to detect shared libraries,
5661*** $file_magic_cmd, produces output that libtool cannot recognize.
5662*** The result is that libtool may fail to recognize shared libraries
5663*** as such. This will affect the creation of libtool libraries that
5664*** depend on shared libraries, but programs linked with such libtool
5665*** libraries will work regardless of this problem. Nevertheless, you
5666*** may want to report the problem to your system manager and/or to
5667*** bug-libtool@gnu.org
5668
5669EOF
5670 fi ;;
5671 esac
5672 fi
5673 break
5674 fi
5675 done
5676 IFS="$lt_save_ifs"
5677 MAGIC_CMD="$lt_save_MAGIC_CMD"
5678 ;;
5679esac
John Criswell7a73b802003-06-30 21:59:07 +00005680fi
John Criswell7a73b802003-06-30 21:59:07 +00005681
John Criswell47fdd832003-07-14 16:52:07 +00005682MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5683if test -n "$MAGIC_CMD"; then
5684 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5685echo "${ECHO_T}$MAGIC_CMD" >&6
5686else
5687 echo "$as_me:$LINENO: result: no" >&5
5688echo "${ECHO_T}no" >&6
5689fi
John Criswell7a73b802003-06-30 21:59:07 +00005690
John Criswell47fdd832003-07-14 16:52:07 +00005691if test -z "$lt_cv_path_MAGIC_CMD"; then
5692 if test -n "$ac_tool_prefix"; then
5693 echo "$as_me:$LINENO: checking for file" >&5
5694echo $ECHO_N "checking for file... $ECHO_C" >&6
5695if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5696 echo $ECHO_N "(cached) $ECHO_C" >&6
5697else
5698 case $MAGIC_CMD in
5699[\\/*] | ?:[\\/]*)
5700 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5701 ;;
5702*)
5703 lt_save_MAGIC_CMD="$MAGIC_CMD"
5704 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5705 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5706 for ac_dir in $ac_dummy; do
5707 IFS="$lt_save_ifs"
5708 test -z "$ac_dir" && ac_dir=.
5709 if test -f $ac_dir/file; then
5710 lt_cv_path_MAGIC_CMD="$ac_dir/file"
5711 if test -n "$file_magic_test_file"; then
5712 case $deplibs_check_method in
5713 "file_magic "*)
5714 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5715 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5716 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5717 $EGREP "$file_magic_regex" > /dev/null; then
5718 :
5719 else
5720 cat <<EOF 1>&2
5721
5722*** Warning: the command libtool uses to detect shared libraries,
5723*** $file_magic_cmd, produces output that libtool cannot recognize.
5724*** The result is that libtool may fail to recognize shared libraries
5725*** as such. This will affect the creation of libtool libraries that
5726*** depend on shared libraries, but programs linked with such libtool
5727*** libraries will work regardless of this problem. Nevertheless, you
5728*** may want to report the problem to your system manager and/or to
5729*** bug-libtool@gnu.org
5730
5731EOF
5732 fi ;;
5733 esac
5734 fi
5735 break
5736 fi
5737 done
5738 IFS="$lt_save_ifs"
5739 MAGIC_CMD="$lt_save_MAGIC_CMD"
5740 ;;
5741esac
5742fi
5743
5744MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5745if test -n "$MAGIC_CMD"; then
5746 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5747echo "${ECHO_T}$MAGIC_CMD" >&6
5748else
5749 echo "$as_me:$LINENO: result: no" >&5
5750echo "${ECHO_T}no" >&6
5751fi
5752
5753 else
5754 MAGIC_CMD=:
5755 fi
5756fi
5757
5758 fi
5759 ;;
5760esac
5761
5762enable_dlopen=no
5763enable_win32_dll=no
5764
5765# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5766if test "${enable_libtool_lock+set}" = set; then
5767 enableval="$enable_libtool_lock"
5768
5769fi;
5770test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5771
John Criswell7a73b802003-06-30 21:59:07 +00005772
5773# Check whether --with-pic or --without-pic was given.
5774if test "${with_pic+set}" = set; then
5775 withval="$with_pic"
5776 pic_mode="$withval"
5777else
5778 pic_mode=default
5779fi;
5780test -z "$pic_mode" && pic_mode=default
5781
John Criswell47fdd832003-07-14 16:52:07 +00005782# Use C for the default configuration in the libtool script
5783tagname=
5784lt_save_CC="$CC"
5785ac_ext=c
5786ac_cpp='$CPP $CPPFLAGS'
5787ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5788ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5789ac_compiler_gnu=$ac_cv_c_compiler_gnu
5790
5791
5792# Source file extension for C test sources.
5793ac_ext=c
5794
5795# Object file extension for compiled C test sources.
5796objext=o
5797objext=$objext
5798
5799# Code to be used in simple compile tests
5800lt_simple_compile_test_code="int some_variable = 0;\n"
5801
5802# Code to be used in simple link tests
5803lt_simple_link_test_code='int main(){return(0);}\n'
5804
5805
5806# If no C compiler was specified, use CC.
5807LTCC=${LTCC-"$CC"}
5808
5809# Allow CC to be a program name with arguments.
5810compiler=$CC
5811
5812
5813#
5814# Check for any special shared library compilation flags.
5815#
5816lt_prog_cc_shlib=
5817if test "$GCC" = no; then
5818 case $host_os in
5819 sco3.2v5*)
5820 lt_prog_cc_shlib='-belf'
5821 ;;
5822 esac
5823fi
5824if test -n "$lt_prog_cc_shlib"; then
5825 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
5826echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
5827 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
5828 else
5829 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5830echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5831 lt_cv_prog_cc_can_build_shared=no
5832 fi
5833fi
5834
5835
5836#
5837# Check to make sure the static flag actually works.
5838#
5839echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
5840echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
5841if test "${lt_prog_compiler_static_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00005842 echo $ECHO_N "(cached) $ECHO_C" >&6
5843else
John Criswell47fdd832003-07-14 16:52:07 +00005844 lt_prog_compiler_static_works=no
5845 save_LDFLAGS="$LDFLAGS"
5846 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
5847 printf "$lt_simple_link_test_code" > conftest.$ac_ext
5848 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
5849 # The compiler can only warn and ignore the option if not recognized
5850 # So say no if there are warnings
5851 if test -s conftest.err; then
5852 # Append any errors to the config.log.
5853 cat conftest.err 1>&5
5854 else
5855 lt_prog_compiler_static_works=yes
5856 fi
5857 fi
5858 $rm conftest*
5859 LDFLAGS="$save_LDFLAGS"
5860
5861fi
5862echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
5863echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
5864
5865if test x"$lt_prog_compiler_static_works" = xyes; then
5866 :
5867else
5868 lt_prog_compiler_static=
5869fi
5870
5871
5872
John Criswell47fdd832003-07-14 16:52:07 +00005873
5874lt_prog_compiler_no_builtin_flag=
5875
5876if test "$GCC" = yes; then
5877 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
5878
5879 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5880echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5881if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
5882 echo $ECHO_N "(cached) $ECHO_C" >&6
5883else
5884 lt_cv_prog_compiler_rtti_exceptions=no
5885 ac_outfile=conftest.$ac_objext
5886 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
5887 lt_compiler_flag="-fno-rtti -fno-exceptions"
5888 # Insert the option either (1) after the last *FLAGS variable, or
5889 # (2) before a word containing "conftest.", or (3) at the end.
5890 # Note that $ac_compile itself does not contain backslashes and begins
5891 # with a dollar sign (not a hyphen), so the echo should work correctly.
5892 # The option is referenced via a variable to avoid confusing sed.
5893 lt_compile=`echo "$ac_compile" | $SED \
5894 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
5895 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5896 -e 's:$: $lt_compiler_flag:'`
John Criswell878be7d2004-02-24 21:43:38 +00005897 (eval echo "\"\$as_me:5893: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +00005898 (eval "$lt_compile" 2>conftest.err)
5899 ac_status=$?
5900 cat conftest.err >&5
John Criswell878be7d2004-02-24 21:43:38 +00005901 echo "$as_me:5897: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00005902 if (exit $ac_status) && test -s "$ac_outfile"; then
5903 # The compiler can only warn and ignore the option if not recognized
5904 # So say no if there are warnings
5905 if test ! -s conftest.err; then
5906 lt_cv_prog_compiler_rtti_exceptions=yes
5907 fi
5908 fi
5909 $rm conftest*
5910
5911fi
5912echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
5913echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
5914
5915if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
5916 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
5917else
5918 :
5919fi
5920
5921fi
5922
5923lt_prog_compiler_wl=
5924lt_prog_compiler_pic=
5925lt_prog_compiler_static=
5926
5927echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5928echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00005929
5930 if test "$GCC" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +00005931 lt_prog_compiler_wl='-Wl,'
5932 lt_prog_compiler_static='-static'
John Criswell7a73b802003-06-30 21:59:07 +00005933
5934 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00005935 aix*)
5936 # All AIX code is PIC.
5937 if test "$host_cpu" = ia64; then
5938 # AIX 5 now supports IA64 processor
5939 lt_prog_compiler_static='-Bstatic'
5940 fi
John Criswell7a73b802003-06-30 21:59:07 +00005941 ;;
John Criswell47fdd832003-07-14 16:52:07 +00005942
John Criswell7a73b802003-06-30 21:59:07 +00005943 amigaos*)
5944 # FIXME: we need at least 68020 code to build shared libraries, but
5945 # adding the `-m68020' flag to GCC prevents building anything better,
5946 # like `-m68040'.
John Criswell47fdd832003-07-14 16:52:07 +00005947 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
John Criswell7a73b802003-06-30 21:59:07 +00005948 ;;
John Criswell47fdd832003-07-14 16:52:07 +00005949
5950 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
John Criswell7a73b802003-06-30 21:59:07 +00005951 # PIC is the default for these OSes.
5952 ;;
John Criswell47fdd832003-07-14 16:52:07 +00005953
5954 mingw* | pw32* | os2*)
5955 # This hack is so that the source file can tell whether it is being
5956 # built for inclusion in a dll (and should export symbols for example).
5957 lt_prog_compiler_pic='-DDLL_EXPORT'
5958 ;;
5959
John Criswell7a73b802003-06-30 21:59:07 +00005960 darwin* | rhapsody*)
5961 # PIC is the default on this platform
5962 # Common symbols not allowed in MH_DYLIB files
John Criswell47fdd832003-07-14 16:52:07 +00005963 lt_prog_compiler_pic='-fno-common'
John Criswell7a73b802003-06-30 21:59:07 +00005964 ;;
John Criswell47fdd832003-07-14 16:52:07 +00005965
5966 msdosdjgpp*)
5967 # Just because we use GCC doesn't mean we suddenly get shared libraries
5968 # on systems that don't support them.
5969 lt_prog_compiler_can_build_shared=no
5970 enable_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00005971 ;;
John Criswell47fdd832003-07-14 16:52:07 +00005972
John Criswell7a73b802003-06-30 21:59:07 +00005973 sysv4*MP*)
5974 if test -d /usr/nec; then
John Criswell47fdd832003-07-14 16:52:07 +00005975 lt_prog_compiler_pic=-Kconform_pic
John Criswell7a73b802003-06-30 21:59:07 +00005976 fi
5977 ;;
John Criswell47fdd832003-07-14 16:52:07 +00005978
5979 hpux*)
5980 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5981 # not for PA HP-UX.
5982 case "$host_cpu" in
5983 hppa*64*|ia64*)
5984 # +Z the default
5985 ;;
5986 *)
5987 lt_prog_compiler_pic='-fPIC'
5988 ;;
5989 esac
5990 ;;
5991
John Criswell7a73b802003-06-30 21:59:07 +00005992 *)
John Criswell47fdd832003-07-14 16:52:07 +00005993 lt_prog_compiler_pic='-fPIC'
John Criswell7a73b802003-06-30 21:59:07 +00005994 ;;
5995 esac
5996 else
John Criswell47fdd832003-07-14 16:52:07 +00005997 # PORTME Check for flag to pass linker flags through the system compiler.
John Criswell7a73b802003-06-30 21:59:07 +00005998 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00005999 aix*)
6000 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +00006001 if test "$host_cpu" = ia64; then
6002 # AIX 5 now supports IA64 processor
John Criswell47fdd832003-07-14 16:52:07 +00006003 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006004 else
John Criswell47fdd832003-07-14 16:52:07 +00006005 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
John Criswell7a73b802003-06-30 21:59:07 +00006006 fi
6007 ;;
6008
John Criswell47fdd832003-07-14 16:52:07 +00006009 mingw* | pw32* | os2*)
6010 # This hack is so that the source file can tell whether it is being
6011 # built for inclusion in a dll (and should export symbols for example).
6012 lt_prog_compiler_pic='-DDLL_EXPORT'
6013 ;;
6014
John Criswell7a73b802003-06-30 21:59:07 +00006015 hpux9* | hpux10* | hpux11*)
John Criswell47fdd832003-07-14 16:52:07 +00006016 lt_prog_compiler_wl='-Wl,'
6017 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6018 # not for PA HP-UX.
6019 case "$host_cpu" in
6020 hppa*64*|ia64*)
6021 # +Z the default
6022 ;;
6023 *)
6024 lt_prog_compiler_pic='+Z'
6025 ;;
6026 esac
6027 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6028 lt_prog_compiler_static='${wl}-a ${wl}archive'
John Criswell7a73b802003-06-30 21:59:07 +00006029 ;;
6030
John Criswell47fdd832003-07-14 16:52:07 +00006031 irix5* | irix6* | nonstopux*)
6032 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +00006033 # PIC (with -KPIC) is the default.
John Criswell47fdd832003-07-14 16:52:07 +00006034 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +00006035 ;;
6036
6037 newsos6)
John Criswell47fdd832003-07-14 16:52:07 +00006038 lt_prog_compiler_pic='-KPIC'
6039 lt_prog_compiler_static='-Bstatic'
6040 ;;
6041
6042 linux*)
6043 case $CC in
6044 icc|ecc)
6045 lt_prog_compiler_wl='-Wl,'
6046 lt_prog_compiler_pic='-KPIC'
6047 lt_prog_compiler_static='-static'
6048 ;;
6049 ccc)
6050 lt_prog_compiler_wl='-Wl,'
6051 # All Alpha code is PIC.
6052 lt_prog_compiler_static='-non_shared'
6053 ;;
6054 esac
John Criswell7a73b802003-06-30 21:59:07 +00006055 ;;
6056
6057 osf3* | osf4* | osf5*)
John Criswell47fdd832003-07-14 16:52:07 +00006058 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +00006059 # All OSF/1 code is PIC.
John Criswell47fdd832003-07-14 16:52:07 +00006060 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +00006061 ;;
6062
6063 sco3.2v5*)
John Criswell47fdd832003-07-14 16:52:07 +00006064 lt_prog_compiler_pic='-Kpic'
6065 lt_prog_compiler_static='-dn'
John Criswell7a73b802003-06-30 21:59:07 +00006066 ;;
6067
6068 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +00006069 lt_prog_compiler_wl='-Wl,'
6070 lt_prog_compiler_pic='-KPIC'
6071 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006072 ;;
6073
6074 sunos4*)
John Criswell47fdd832003-07-14 16:52:07 +00006075 lt_prog_compiler_wl='-Qoption ld '
6076 lt_prog_compiler_pic='-PIC'
6077 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006078 ;;
6079
6080 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
John Criswell47fdd832003-07-14 16:52:07 +00006081 lt_prog_compiler_wl='-Wl,'
6082 lt_prog_compiler_pic='-KPIC'
6083 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006084 ;;
6085
6086 sysv4*MP*)
6087 if test -d /usr/nec ;then
John Criswell47fdd832003-07-14 16:52:07 +00006088 lt_prog_compiler_pic='-Kconform_pic'
6089 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006090 fi
6091 ;;
6092
John Criswell47fdd832003-07-14 16:52:07 +00006093 uts4*)
6094 lt_prog_compiler_pic='-pic'
6095 lt_prog_compiler_static='-Bstatic'
6096 ;;
6097
John Criswell7a73b802003-06-30 21:59:07 +00006098 *)
John Criswell47fdd832003-07-14 16:52:07 +00006099 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00006100 ;;
6101 esac
6102 fi
6103
John Criswell47fdd832003-07-14 16:52:07 +00006104echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6105echo "${ECHO_T}$lt_prog_compiler_pic" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006106
John Criswell47fdd832003-07-14 16:52:07 +00006107#
6108# Check to make sure the PIC flag actually works.
6109#
6110if test -n "$lt_prog_compiler_pic"; then
6111 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6112echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6113if test "${lt_prog_compiler_pic_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00006114 echo $ECHO_N "(cached) $ECHO_C" >&6
6115else
John Criswell47fdd832003-07-14 16:52:07 +00006116 lt_prog_compiler_pic_works=no
6117 ac_outfile=conftest.$ac_objext
6118 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6119 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6120 # Insert the option either (1) after the last *FLAGS variable, or
6121 # (2) before a word containing "conftest.", or (3) at the end.
6122 # Note that $ac_compile itself does not contain backslashes and begins
6123 # with a dollar sign (not a hyphen), so the echo should work correctly.
6124 # The option is referenced via a variable to avoid confusing sed.
6125 lt_compile=`echo "$ac_compile" | $SED \
6126 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6127 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6128 -e 's:$: $lt_compiler_flag:'`
John Criswell878be7d2004-02-24 21:43:38 +00006129 (eval echo "\"\$as_me:6125: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +00006130 (eval "$lt_compile" 2>conftest.err)
6131 ac_status=$?
6132 cat conftest.err >&5
John Criswell878be7d2004-02-24 21:43:38 +00006133 echo "$as_me:6129: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00006134 if (exit $ac_status) && test -s "$ac_outfile"; then
6135 # The compiler can only warn and ignore the option if not recognized
6136 # So say no if there are warnings
6137 if test ! -s conftest.err; then
6138 lt_prog_compiler_pic_works=yes
6139 fi
6140 fi
6141 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +00006142
John Criswell47fdd832003-07-14 16:52:07 +00006143fi
6144echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6145echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006146
John Criswell47fdd832003-07-14 16:52:07 +00006147if test x"$lt_prog_compiler_pic_works" = xyes; then
6148 case $lt_prog_compiler_pic in
6149 "" | " "*) ;;
6150 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6151 esac
John Criswell7a73b802003-06-30 21:59:07 +00006152else
John Criswell47fdd832003-07-14 16:52:07 +00006153 lt_prog_compiler_pic=
6154 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00006155fi
6156
John Criswell7a73b802003-06-30 21:59:07 +00006157fi
John Criswell47fdd832003-07-14 16:52:07 +00006158case "$host_os" in
6159 # For platforms which do not support PIC, -DPIC is meaningless:
6160 *djgpp*)
6161 lt_prog_compiler_pic=
6162 ;;
6163 *)
6164 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6165 ;;
6166esac
John Criswell7a73b802003-06-30 21:59:07 +00006167
John Criswell7a73b802003-06-30 21:59:07 +00006168echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6169echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
John Criswell47fdd832003-07-14 16:52:07 +00006170if test "${lt_cv_prog_compiler_c_o+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00006171 echo $ECHO_N "(cached) $ECHO_C" >&6
6172else
John Criswell47fdd832003-07-14 16:52:07 +00006173 lt_cv_prog_compiler_c_o=no
6174 $rm -r conftest 2>/dev/null
6175 mkdir conftest
6176 cd conftest
6177 mkdir out
6178 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00006179
John Criswell47fdd832003-07-14 16:52:07 +00006180 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
6181 # that will create temporary files in the current directory regardless of
6182 # the output directory. Thus, making CWD read-only will cause this test
6183 # to fail, enabling locking or at least warning the user not to do parallel
6184 # builds.
6185 chmod -w .
6186
6187 lt_compiler_flag="-o out/conftest2.$ac_objext"
6188 # Insert the option either (1) after the last *FLAGS variable, or
6189 # (2) before a word containing "conftest.", or (3) at the end.
6190 # Note that $ac_compile itself does not contain backslashes and begins
6191 # with a dollar sign (not a hyphen), so the echo should work correctly.
6192 lt_compile=`echo "$ac_compile" | $SED \
6193 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6194 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6195 -e 's:$: $lt_compiler_flag:'`
John Criswell878be7d2004-02-24 21:43:38 +00006196 (eval echo "\"\$as_me:6192: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +00006197 (eval "$lt_compile" 2>out/conftest.err)
6198 ac_status=$?
6199 cat out/conftest.err >&5
John Criswell878be7d2004-02-24 21:43:38 +00006200 echo "$as_me:6196: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00006201 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6202 then
6203 # The compiler can only warn and ignore the option if not recognized
6204 # So say no if there are warnings
6205 if test ! -s out/conftest.err; then
6206 lt_cv_prog_compiler_c_o=yes
6207 fi
6208 fi
6209 chmod u+w .
6210 $rm conftest* out/*
6211 rmdir out
6212 cd ..
6213 rmdir conftest
6214 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +00006215
6216fi
John Criswell47fdd832003-07-14 16:52:07 +00006217echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6218echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006219
John Criswell7a73b802003-06-30 21:59:07 +00006220
John Criswell7a73b802003-06-30 21:59:07 +00006221hard_links="nottested"
John Criswell47fdd832003-07-14 16:52:07 +00006222if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
John Criswell7a73b802003-06-30 21:59:07 +00006223 # do not overwrite the value of need_locks provided by the user
6224 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6225echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6226 hard_links=yes
6227 $rm conftest*
6228 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6229 touch conftest.a
6230 ln conftest.a conftest.b 2>&5 || hard_links=no
6231 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6232 echo "$as_me:$LINENO: result: $hard_links" >&5
6233echo "${ECHO_T}$hard_links" >&6
6234 if test "$hard_links" = no; then
6235 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6236echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6237 need_locks=warn
6238 fi
6239else
6240 need_locks=no
6241fi
John Criswell7a73b802003-06-30 21:59:07 +00006242
John Criswell47fdd832003-07-14 16:52:07 +00006243echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6244echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6245
6246 runpath_var=
6247 allow_undefined_flag=
6248 enable_shared_with_static_runtimes=no
6249 archive_cmds=
6250 archive_expsym_cmds=
6251 old_archive_From_new_cmds=
6252 old_archive_from_expsyms_cmds=
6253 export_dynamic_flag_spec=
6254 whole_archive_flag_spec=
6255 thread_safe_flag_spec=
6256 hardcode_libdir_flag_spec=
6257 hardcode_libdir_flag_spec_ld=
6258 hardcode_libdir_separator=
6259 hardcode_direct=no
6260 hardcode_minus_L=no
6261 hardcode_shlibpath_var=unsupported
6262 link_all_deplibs=unknown
6263 hardcode_automatic=no
6264 module_cmds=
6265 module_expsym_cmds=
6266 always_export_symbols=no
6267 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6268 # include_expsyms should be a list of space-separated symbols to be *always*
6269 # included in the symbol list
6270 include_expsyms=
6271 # exclude_expsyms can be an extended regexp of symbols to exclude
6272 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6273 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6274 # as well as any symbol that contains `d'.
6275 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6276 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6277 # platforms (ab)use it in PIC code, but their linkers get confused if
6278 # the symbol is explicitly referenced. Since portable code cannot
6279 # rely on this symbol name, it's probably fine to never include it in
6280 # preloaded symbol tables.
6281 extract_expsyms_cmds=
6282
6283 case $host_os in
6284 cygwin* | mingw* | pw32*)
6285 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6286 # When not using gcc, we currently assume that we are using
6287 # Microsoft Visual C++.
6288 if test "$GCC" != yes; then
6289 with_gnu_ld=no
6290 fi
6291 ;;
6292 openbsd*)
6293 with_gnu_ld=no
6294 ;;
6295 esac
6296
6297 ld_shlibs=yes
6298 if test "$with_gnu_ld" = yes; then
6299 # If archive_cmds runs LD, not CC, wlarc should be empty
6300 wlarc='${wl}'
6301
6302 # See if GNU ld supports shared libraries.
6303 case $host_os in
6304 aix3* | aix4* | aix5*)
6305 # On AIX/PPC, the GNU linker is very broken
6306 if test "$host_cpu" != ia64; then
6307 ld_shlibs=no
6308 cat <<EOF 1>&2
6309
6310*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6311*** to be unable to reliably create shared libraries on AIX.
6312*** Therefore, libtool is disabling shared libraries support. If you
6313*** really care for shared libraries, you may want to modify your PATH
6314*** so that a non-GNU linker is found, and then restart.
6315
6316EOF
6317 fi
6318 ;;
6319
6320 amigaos*)
6321 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)'
6322 hardcode_libdir_flag_spec='-L$libdir'
6323 hardcode_minus_L=yes
6324
6325 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6326 # that the semantics of dynamic libraries on AmigaOS, at least up
6327 # to version 4, is to share data among multiple programs linked
6328 # with the same dynamic library. Since this doesn't match the
6329 # behavior of shared libraries on other platforms, we can't use
6330 # them.
6331 ld_shlibs=no
6332 ;;
6333
6334 beos*)
6335 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6336 allow_undefined_flag=unsupported
6337 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6338 # support --undefined. This deserves some investigation. FIXME
6339 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6340 else
6341 ld_shlibs=no
6342 fi
6343 ;;
6344
6345 cygwin* | mingw* | pw32*)
6346 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6347 # as there is no search path for DLLs.
6348 hardcode_libdir_flag_spec='-L$libdir'
6349 allow_undefined_flag=unsupported
6350 always_export_symbols=no
6351 enable_shared_with_static_runtimes=yes
6352 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6353
6354 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6355 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6356 # If the export-symbols file already is a .def file (1st line
6357 # is EXPORTS), use it as is; otherwise, prepend...
6358 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6359 cp $export_symbols $output_objdir/$soname.def;
6360 else
6361 echo EXPORTS > $output_objdir/$soname.def;
6362 cat $export_symbols >> $output_objdir/$soname.def;
6363 fi~
6364 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6365 else
6366 ld_shlibs=no
6367 fi
6368 ;;
6369
6370 netbsd*)
6371 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6372 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6373 wlarc=
6374 else
6375 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6376 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6377 fi
6378 ;;
6379
6380 solaris* | sysv5*)
6381 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6382 ld_shlibs=no
6383 cat <<EOF 1>&2
6384
6385*** Warning: The releases 2.8.* of the GNU linker cannot reliably
6386*** create shared libraries on Solaris systems. Therefore, libtool
6387*** is disabling shared libraries support. We urge you to upgrade GNU
6388*** binutils to release 2.9.1 or newer. Another option is to modify
6389*** your PATH or compiler configuration so that the native linker is
6390*** used, and then restart.
6391
6392EOF
6393 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6394 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6395 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6396 else
6397 ld_shlibs=no
6398 fi
6399 ;;
6400
6401 sunos4*)
6402 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6403 wlarc=
6404 hardcode_direct=yes
6405 hardcode_shlibpath_var=no
6406 ;;
6407
6408 *)
6409 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6410 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6411 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6412 else
6413 ld_shlibs=no
6414 fi
6415 ;;
6416 esac
6417
6418 if test "$ld_shlibs" = yes; then
6419 runpath_var=LD_RUN_PATH
6420 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6421 export_dynamic_flag_spec='${wl}--export-dynamic'
6422 # ancient GNU ld didn't support --whole-archive et. al.
6423 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6424 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6425 else
6426 whole_archive_flag_spec=
6427 fi
6428 fi
6429 else
6430 # PORTME fill in a description of your system's linker (not GNU ld)
6431 case $host_os in
6432 aix3*)
6433 allow_undefined_flag=unsupported
6434 always_export_symbols=yes
6435 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'
6436 # Note: this linker hardcodes the directories in LIBPATH if there
6437 # are no directories specified by -L.
6438 hardcode_minus_L=yes
6439 if test "$GCC" = yes && test -z "$link_static_flag"; then
6440 # Neither direct hardcoding nor static linking is supported with a
6441 # broken collect2.
6442 hardcode_direct=unsupported
6443 fi
6444 ;;
6445
6446 aix4* | aix5*)
6447 if test "$host_cpu" = ia64; then
6448 # On IA64, the linker does run time linking by default, so we don't
6449 # have to do anything special.
6450 aix_use_runtimelinking=no
6451 exp_sym_flag='-Bexport'
6452 no_entry_flag=""
6453 else
6454 # If we're using GNU nm, then we don't want the "-C" option.
6455 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6456 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6457 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'
6458 else
6459 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'
6460 fi
6461 aix_use_runtimelinking=no
6462
6463 # Test if we are trying to use run time linking or normal
6464 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6465 # need to do runtime linking.
6466 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6467 for ld_flag in $LDFLAGS; do
6468 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6469 aix_use_runtimelinking=yes
6470 break
6471 fi
6472 done
6473 esac
6474
6475 exp_sym_flag='-bexport'
6476 no_entry_flag='-bnoentry'
6477 fi
6478
6479 # When large executables or shared objects are built, AIX ld can
6480 # have problems creating the table of contents. If linking a library
6481 # or program results in "error TOC overflow" add -mminimal-toc to
6482 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6483 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6484
6485 archive_cmds=''
6486 hardcode_direct=yes
6487 hardcode_libdir_separator=':'
6488 link_all_deplibs=yes
6489
6490 if test "$GCC" = yes; then
6491 case $host_os in aix4.012|aix4.012.*)
6492 # We only want to do this on AIX 4.2 and lower, the check
6493 # below for broken collect2 doesn't work under 4.3+
6494 collect2name=`${CC} -print-prog-name=collect2`
6495 if test -f "$collect2name" && \
6496 strings "$collect2name" | grep resolve_lib_name >/dev/null
6497 then
6498 # We have reworked collect2
6499 hardcode_direct=yes
6500 else
6501 # We have old collect2
6502 hardcode_direct=unsupported
6503 # It fails to find uninstalled libraries when the uninstalled
6504 # path is not listed in the libpath. Setting hardcode_minus_L
6505 # to unsupported forces relinking
6506 hardcode_minus_L=yes
6507 hardcode_libdir_flag_spec='-L$libdir'
6508 hardcode_libdir_separator=
6509 fi
6510 esac
6511 shared_flag='-shared'
6512 else
6513 # not using gcc
6514 if test "$host_cpu" = ia64; then
6515 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6516 # chokes on -Wl,-G. The following line is correct:
6517 shared_flag='-G'
6518 else
6519 if test "$aix_use_runtimelinking" = yes; then
6520 shared_flag='${wl}-G'
6521 else
6522 shared_flag='${wl}-bM:SRE'
6523 fi
6524 fi
6525 fi
6526
6527 # It seems that -bexpall does not export symbols beginning with
6528 # underscore (_), so it is better to generate a list of symbols to export.
6529 always_export_symbols=yes
6530 if test "$aix_use_runtimelinking" = yes; then
6531 # Warning - without using the other runtime loading flags (-brtl),
6532 # -berok will link without error, but may produce a broken library.
6533 allow_undefined_flag='-berok'
6534 # Determine the default libpath from the value encoded in an empty executable.
6535 cat >conftest.$ac_ext <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00006536#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00006537/* confdefs.h. */
6538_ACEOF
6539cat confdefs.h >>conftest.$ac_ext
6540cat >>conftest.$ac_ext <<_ACEOF
6541/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006542
John Criswell7a73b802003-06-30 21:59:07 +00006543int
6544main ()
6545{
John Criswell47fdd832003-07-14 16:52:07 +00006546
John Criswell7a73b802003-06-30 21:59:07 +00006547 ;
6548 return 0;
6549}
6550_ACEOF
John Criswell47fdd832003-07-14 16:52:07 +00006551rm -f conftest.$ac_objext conftest$ac_exeext
6552if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6553 (eval $ac_link) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00006554 ac_status=$?
6555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6556 (exit $ac_status); } &&
John Criswell47fdd832003-07-14 16:52:07 +00006557 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00006558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6559 (eval $ac_try) 2>&5
6560 ac_status=$?
6561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6562 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00006563
John Criswell47fdd832003-07-14 16:52:07 +00006564aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6565}'`
6566# Check for a 64-bit object if we didn't find anything.
6567if 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; }
6568}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +00006569else
6570 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006571sed 's/^/| /' conftest.$ac_ext >&5
6572
John Criswell7a73b802003-06-30 21:59:07 +00006573fi
John Criswell47fdd832003-07-14 16:52:07 +00006574rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6575if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +00006576
John Criswell47fdd832003-07-14 16:52:07 +00006577 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6578 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"
6579 else
6580 if test "$host_cpu" = ia64; then
6581 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6582 allow_undefined_flag="-z nodefs"
6583 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"
6584 else
6585 # Determine the default libpath from the value encoded in an empty executable.
6586 cat >conftest.$ac_ext <<_ACEOF
6587#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00006588/* confdefs.h. */
6589_ACEOF
6590cat confdefs.h >>conftest.$ac_ext
6591cat >>conftest.$ac_ext <<_ACEOF
6592/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006593
John Criswell47fdd832003-07-14 16:52:07 +00006594int
6595main ()
6596{
John Criswell7a73b802003-06-30 21:59:07 +00006597
John Criswell47fdd832003-07-14 16:52:07 +00006598 ;
6599 return 0;
6600}
6601_ACEOF
6602rm -f conftest.$ac_objext conftest$ac_exeext
6603if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6604 (eval $ac_link) 2>&5
6605 ac_status=$?
6606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6607 (exit $ac_status); } &&
6608 { ac_try='test -s conftest$ac_exeext'
6609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6610 (eval $ac_try) 2>&5
6611 ac_status=$?
6612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6613 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00006614
John Criswell47fdd832003-07-14 16:52:07 +00006615aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6616}'`
6617# Check for a 64-bit object if we didn't find anything.
6618if 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; }
6619}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +00006620else
John Criswell47fdd832003-07-14 16:52:07 +00006621 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006622sed 's/^/| /' conftest.$ac_ext >&5
6623
John Criswell47fdd832003-07-14 16:52:07 +00006624fi
6625rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6626if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +00006627
John Criswell47fdd832003-07-14 16:52:07 +00006628 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6629 # Warning - without using the other run time loading flags,
6630 # -berok will link without error, but may produce a broken library.
6631 no_undefined_flag=' ${wl}-bernotok'
6632 allow_undefined_flag=' ${wl}-berok'
6633 # -bexpall does not export symbols beginning with underscore (_)
6634 always_export_symbols=yes
6635 # Exported symbols can be pulled into shared objects from archives
6636 whole_archive_flag_spec=' '
6637 archive_cmds_need_lc=yes
6638 # This is similar to how AIX traditionally builds it's shared libraries.
6639 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 +00006640 fi
6641 fi
John Criswell7a73b802003-06-30 21:59:07 +00006642 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006643
6644 amigaos*)
6645 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)'
6646 hardcode_libdir_flag_spec='-L$libdir'
6647 hardcode_minus_L=yes
6648 # see comment about different semantics on the GNU ld section
6649 ld_shlibs=no
John Criswell7a73b802003-06-30 21:59:07 +00006650 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006651
John Criswell47fdd832003-07-14 16:52:07 +00006652 bsdi4*)
6653 export_dynamic_flag_spec=-rdynamic
6654 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006655
John Criswell47fdd832003-07-14 16:52:07 +00006656 cygwin* | mingw* | pw32*)
6657 # When not using gcc, we currently assume that we are using
6658 # Microsoft Visual C++.
6659 # hardcode_libdir_flag_spec is actually meaningless, as there is
6660 # no search path for DLLs.
6661 hardcode_libdir_flag_spec=' '
6662 allow_undefined_flag=unsupported
6663 # Tell ltmain to make .lib files, not .a files.
6664 libext=lib
6665 # Tell ltmain to make .dll files, not .so files.
6666 shrext=".dll"
6667 # FIXME: Setting linknames here is a bad hack.
6668 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
6669 # The linker will automatically build a .lib file if we build a DLL.
6670 old_archive_From_new_cmds='true'
6671 # FIXME: Should let the user specify the lib program.
6672 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6673 fix_srcfile_path='`cygpath -w "$srcfile"`'
6674 enable_shared_with_static_runtimes=yes
6675 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006676
John Criswell47fdd832003-07-14 16:52:07 +00006677 darwin* | rhapsody*)
6678 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
6679 archive_cmds_need_lc=no
John Criswell7a73b802003-06-30 21:59:07 +00006680 case "$host_os" in
John Criswell47fdd832003-07-14 16:52:07 +00006681 rhapsody* | darwin1.[012])
6682 allow_undefined_flag='-undefined suppress'
6683 ;;
6684 *) # Darwin 1.3 on
6685 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
John Criswell7a73b802003-06-30 21:59:07 +00006686 ;;
6687 esac
John Criswell47fdd832003-07-14 16:52:07 +00006688 # FIXME: Relying on posixy $() will cause problems for
6689 # cross-compilation, but unfortunately the echo tests do not
6690 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
6691 # `"' quotes if we put them in here... so don't!
6692 lt_int_apple_cc_single_mod=no
6693 output_verbose_link_cmd='echo'
6694 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
6695 lt_int_apple_cc_single_mod=yes
6696 fi
6697 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6698 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6699 else
6700 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'
6701 fi
6702 module_cmds='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
6703 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6704 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6705 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}'
6706 else
6707 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}'
6708 fi
6709 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}'
6710 hardcode_direct=no
6711 hardcode_automatic=yes
6712 hardcode_shlibpath_var=unsupported
6713 whole_archive_flag_spec='-all_load $convenience'
6714 link_all_deplibs=yes
John Criswell7a73b802003-06-30 21:59:07 +00006715 fi
John Criswell47fdd832003-07-14 16:52:07 +00006716 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006717
John Criswell47fdd832003-07-14 16:52:07 +00006718 dgux*)
John Criswell7a73b802003-06-30 21:59:07 +00006719 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
John Criswell47fdd832003-07-14 16:52:07 +00006720 hardcode_libdir_flag_spec='-L$libdir'
6721 hardcode_shlibpath_var=no
6722 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006723
John Criswell47fdd832003-07-14 16:52:07 +00006724 freebsd1*)
6725 ld_shlibs=no
6726 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006727
John Criswell47fdd832003-07-14 16:52:07 +00006728 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6729 # support. Future versions do this automatically, but an explicit c++rt0.o
6730 # does not break anything, and helps significantly (at the cost of a little
6731 # extra space).
6732 freebsd2.2*)
6733 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6734 hardcode_libdir_flag_spec='-R$libdir'
6735 hardcode_direct=yes
6736 hardcode_shlibpath_var=no
6737 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006738
John Criswell47fdd832003-07-14 16:52:07 +00006739 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6740 freebsd2*)
6741 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6742 hardcode_direct=yes
6743 hardcode_minus_L=yes
6744 hardcode_shlibpath_var=no
6745 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006746
John Criswell47fdd832003-07-14 16:52:07 +00006747 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6748 freebsd*)
6749 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6750 hardcode_libdir_flag_spec='-R$libdir'
6751 hardcode_direct=yes
6752 hardcode_shlibpath_var=no
6753 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006754
John Criswell47fdd832003-07-14 16:52:07 +00006755 hpux9*)
6756 if test "$GCC" = yes; then
6757 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'
6758 else
6759 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'
6760 fi
6761 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6762 hardcode_libdir_separator=:
6763 hardcode_direct=yes
6764
6765 # hardcode_minus_L: Not really in the search PATH,
6766 # but as the default location of the library.
6767 hardcode_minus_L=yes
6768 export_dynamic_flag_spec='${wl}-E'
6769 ;;
6770
6771 hpux10* | hpux11*)
6772 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6773 case "$host_cpu" in
6774 hppa*64*|ia64*)
6775 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6776 ;;
6777 *)
6778 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6779 ;;
6780 esac
6781 else
6782 case "$host_cpu" in
6783 hppa*64*|ia64*)
6784 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
6785 ;;
6786 *)
6787 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
6788 ;;
6789 esac
6790 fi
6791 if test "$with_gnu_ld" = no; then
6792 case "$host_cpu" in
6793 hppa*64*)
6794 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6795 hardcode_libdir_flag_spec_ld='+b $libdir'
6796 hardcode_libdir_separator=:
6797 hardcode_direct=no
6798 hardcode_shlibpath_var=no
6799 ;;
6800 ia64*)
6801 hardcode_libdir_flag_spec='-L$libdir'
6802 hardcode_direct=no
6803 hardcode_shlibpath_var=no
6804
6805 # hardcode_minus_L: Not really in the search PATH,
6806 # but as the default location of the library.
6807 hardcode_minus_L=yes
6808 ;;
6809 *)
6810 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6811 hardcode_libdir_separator=:
6812 hardcode_direct=yes
6813 export_dynamic_flag_spec='${wl}-E'
6814
6815 # hardcode_minus_L: Not really in the search PATH,
6816 # but as the default location of the library.
6817 hardcode_minus_L=yes
6818 ;;
6819 esac
6820 fi
6821 ;;
6822
6823 irix5* | irix6* | nonstopux*)
6824 if test "$GCC" = yes; then
6825 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'
6826 else
6827 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'
6828 hardcode_libdir_flag_spec_ld='-rpath $libdir'
6829 fi
6830 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6831 hardcode_libdir_separator=:
6832 link_all_deplibs=yes
6833 ;;
6834
6835 netbsd*)
6836 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6837 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
6838 else
6839 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
6840 fi
6841 hardcode_libdir_flag_spec='-R$libdir'
6842 hardcode_direct=yes
6843 hardcode_shlibpath_var=no
6844 ;;
6845
6846 newsos6)
6847 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6848 hardcode_direct=yes
6849 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6850 hardcode_libdir_separator=:
6851 hardcode_shlibpath_var=no
6852 ;;
6853
6854 openbsd*)
6855 hardcode_direct=yes
6856 hardcode_shlibpath_var=no
6857 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6858 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6859 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6860 export_dynamic_flag_spec='${wl}-E'
6861 else
6862 case $host_os in
6863 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
6864 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6865 hardcode_libdir_flag_spec='-R$libdir'
6866 ;;
6867 *)
6868 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6869 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6870 ;;
6871 esac
6872 fi
6873 ;;
6874
6875 os2*)
6876 hardcode_libdir_flag_spec='-L$libdir'
6877 hardcode_minus_L=yes
6878 allow_undefined_flag=unsupported
6879 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'
6880 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6881 ;;
6882
6883 osf3*)
6884 if test "$GCC" = yes; then
6885 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6886 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'
6887 else
6888 allow_undefined_flag=' -expect_unresolved \*'
6889 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'
6890 fi
6891 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6892 hardcode_libdir_separator=:
6893 ;;
6894
6895 osf4* | osf5*) # as osf3* with the addition of -msym flag
6896 if test "$GCC" = yes; then
6897 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6898 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'
6899 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6900 else
6901 allow_undefined_flag=' -expect_unresolved \*'
6902 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'
6903 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6904 $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'
6905
6906 # Both c and cxx compiler support -rpath directly
6907 hardcode_libdir_flag_spec='-rpath $libdir'
6908 fi
6909 hardcode_libdir_separator=:
6910 ;;
6911
6912 sco3.2v5*)
John Criswell7a73b802003-06-30 21:59:07 +00006913 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6914 hardcode_shlibpath_var=no
John Criswell47fdd832003-07-14 16:52:07 +00006915 export_dynamic_flag_spec='${wl}-Bexport'
John Criswell7a73b802003-06-30 21:59:07 +00006916 runpath_var=LD_RUN_PATH
6917 hardcode_runpath_var=yes
John Criswell47fdd832003-07-14 16:52:07 +00006918 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006919
John Criswell47fdd832003-07-14 16:52:07 +00006920 solaris*)
6921 no_undefined_flag=' -z text'
6922 if test "$GCC" = yes; then
6923 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6924 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6925 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
6926 else
6927 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6928 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6929 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6930 fi
6931 hardcode_libdir_flag_spec='-R$libdir'
6932 hardcode_shlibpath_var=no
6933 case $host_os in
6934 solaris2.[0-5] | solaris2.[0-5].*) ;;
6935 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6936 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6937 esac
6938 link_all_deplibs=yes
6939 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006940
John Criswell47fdd832003-07-14 16:52:07 +00006941 sunos4*)
6942 if test "x$host_vendor" = xsequent; then
6943 # Use $CC to link under sequent, because it throws in some extra .o
6944 # files that make .init and .fini sections work.
6945 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6946 else
6947 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6948 fi
6949 hardcode_libdir_flag_spec='-L$libdir'
6950 hardcode_direct=yes
6951 hardcode_minus_L=yes
6952 hardcode_shlibpath_var=no
6953 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006954
John Criswell47fdd832003-07-14 16:52:07 +00006955 sysv4)
6956 case $host_vendor in
6957 sni)
6958 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6959 hardcode_direct=yes # is this really true???
6960 ;;
6961 siemens)
6962 ## LD is ld it makes a PLAMLIB
6963 ## CC just makes a GrossModule.
6964 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6965 reload_cmds='$CC -r -o $output$reload_objs'
6966 hardcode_direct=no
6967 ;;
6968 motorola)
6969 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6970 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6971 ;;
6972 esac
6973 runpath_var='LD_RUN_PATH'
6974 hardcode_shlibpath_var=no
6975 ;;
6976
6977 sysv4.3*)
6978 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6979 hardcode_shlibpath_var=no
6980 export_dynamic_flag_spec='-Bexport'
6981 ;;
6982
6983 sysv4*MP*)
6984 if test -d /usr/nec; then
6985 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6986 hardcode_shlibpath_var=no
6987 runpath_var=LD_RUN_PATH
6988 hardcode_runpath_var=yes
6989 ld_shlibs=yes
6990 fi
6991 ;;
6992
6993 sysv4.2uw2*)
6994 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6995 hardcode_direct=yes
6996 hardcode_minus_L=no
6997 hardcode_shlibpath_var=no
6998 hardcode_runpath_var=yes
6999 runpath_var=LD_RUN_PATH
7000 ;;
7001
7002 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7003 no_undefined_flag='${wl}-z ${wl}text'
7004 if test "$GCC" = yes; then
7005 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7006 else
7007 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7008 fi
7009 runpath_var='LD_RUN_PATH'
7010 hardcode_shlibpath_var=no
7011 ;;
7012
7013 sysv5*)
7014 no_undefined_flag=' -z text'
7015 # $CC -shared without GNU ld will not create a library from C++
7016 # object files and a static libstdc++, better avoid it by now
7017 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7018 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7019 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7020 hardcode_libdir_flag_spec=
7021 hardcode_shlibpath_var=no
7022 runpath_var='LD_RUN_PATH'
7023 ;;
7024
7025 uts4*)
7026 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7027 hardcode_libdir_flag_spec='-L$libdir'
7028 hardcode_shlibpath_var=no
7029 ;;
7030
7031 *)
7032 ld_shlibs=no
7033 ;;
7034 esac
7035 fi
7036
John Criswell7a73b802003-06-30 21:59:07 +00007037echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7038echo "${ECHO_T}$ld_shlibs" >&6
7039test "$ld_shlibs" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00007040
John Criswell47fdd832003-07-14 16:52:07 +00007041variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7042if test "$GCC" = yes; then
7043 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7044fi
7045
7046#
7047# Do we need to explicitly link libc?
7048#
7049case "x$archive_cmds_need_lc" in
7050x|xyes)
7051 # Assume -lc should be added
7052 archive_cmds_need_lc=yes
7053
7054 if test "$enable_shared" = yes && test "$GCC" = yes; then
7055 case $archive_cmds in
7056 *'~'*)
7057 # FIXME: we may have to deal with multi-command sequences.
7058 ;;
7059 '$CC '*)
7060 # Test whether the compiler implicitly links with -lc since on some
7061 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7062 # to ld, don't add -lc before -lgcc.
7063 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7064echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7065 $rm conftest*
7066 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7067
7068 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7069 (eval $ac_compile) 2>&5
7070 ac_status=$?
7071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7072 (exit $ac_status); } 2>conftest.err; then
7073 soname=conftest
7074 lib=conftest
7075 libobjs=conftest.$ac_objext
7076 deplibs=
7077 wl=$lt_prog_compiler_wl
7078 compiler_flags=-v
7079 linker_flags=-v
7080 verstring=
7081 output_objdir=.
7082 libname=conftest
7083 lt_save_allow_undefined_flag=$allow_undefined_flag
7084 allow_undefined_flag=
7085 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7086 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7087 ac_status=$?
7088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7089 (exit $ac_status); }
7090 then
7091 archive_cmds_need_lc=no
7092 else
7093 archive_cmds_need_lc=yes
7094 fi
7095 allow_undefined_flag=$lt_save_allow_undefined_flag
7096 else
7097 cat conftest.err 1>&5
7098 fi
7099 $rm conftest*
7100 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7101echo "${ECHO_T}$archive_cmds_need_lc" >&6
7102 ;;
7103 esac
7104 fi
7105 ;;
7106esac
7107
John Criswell7a73b802003-06-30 21:59:07 +00007108echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7109echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7110hardcode_action=
7111if test -n "$hardcode_libdir_flag_spec" || \
John Criswell47fdd832003-07-14 16:52:07 +00007112 test -n "$runpath_var " || \
7113 test "X$hardcode_automatic"="Xyes" ; then
John Criswell7a73b802003-06-30 21:59:07 +00007114
7115 # We can hardcode non-existant directories.
7116 if test "$hardcode_direct" != no &&
7117 # If the only mechanism to avoid hardcoding is shlibpath_var, we
7118 # have to relink, otherwise we might link with an installed library
7119 # when we should be linking with a yet-to-be-installed one
John Criswell47fdd832003-07-14 16:52:07 +00007120 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
John Criswell7a73b802003-06-30 21:59:07 +00007121 test "$hardcode_minus_L" != no; then
7122 # Linking always hardcodes the temporary library directory.
7123 hardcode_action=relink
7124 else
7125 # We can link without hardcoding, and we can hardcode nonexisting dirs.
7126 hardcode_action=immediate
7127 fi
7128else
7129 # We cannot hardcode anything, or else we can only hardcode existing
7130 # directories.
7131 hardcode_action=unsupported
7132fi
7133echo "$as_me:$LINENO: result: $hardcode_action" >&5
7134echo "${ECHO_T}$hardcode_action" >&6
John Criswell7a73b802003-06-30 21:59:07 +00007135
John Criswell47fdd832003-07-14 16:52:07 +00007136if test "$hardcode_action" = relink; then
7137 # Fast installation is not supported
7138 enable_fast_install=no
7139elif test "$shlibpath_overrides_runpath" = yes ||
7140 test "$enable_shared" = no; then
7141 # Fast installation is not necessary
7142 enable_fast_install=needless
7143fi
7144
John Criswell7a73b802003-06-30 21:59:07 +00007145striplib=
7146old_striplib=
7147echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7148echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7149if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7150 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7151 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7152 echo "$as_me:$LINENO: result: yes" >&5
7153echo "${ECHO_T}yes" >&6
7154else
John Criswell47fdd832003-07-14 16:52:07 +00007155# FIXME - insert some real tests, host_os isn't really good enough
7156 case $host_os in
7157 darwin*)
7158 if test -n "$STRIP" ; then
7159 striplib="$STRIP -x"
7160 echo "$as_me:$LINENO: result: yes" >&5
7161echo "${ECHO_T}yes" >&6
7162 else
John Criswell7a73b802003-06-30 21:59:07 +00007163 echo "$as_me:$LINENO: result: no" >&5
7164echo "${ECHO_T}no" >&6
7165fi
John Criswell47fdd832003-07-14 16:52:07 +00007166 ;;
7167 *)
7168 echo "$as_me:$LINENO: result: no" >&5
7169echo "${ECHO_T}no" >&6
7170 ;;
7171 esac
7172fi
John Criswell7a73b802003-06-30 21:59:07 +00007173
John Criswell7a73b802003-06-30 21:59:07 +00007174echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7175echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7176library_names_spec=
7177libname_spec='lib$name'
7178soname_spec=
John Criswell47fdd832003-07-14 16:52:07 +00007179shrext=".so"
John Criswell7a73b802003-06-30 21:59:07 +00007180postinstall_cmds=
7181postuninstall_cmds=
7182finish_cmds=
7183finish_eval=
7184shlibpath_var=
7185shlibpath_overrides_runpath=unknown
7186version_type=none
7187dynamic_linker="$host_os ld.so"
7188sys_lib_dlsearch_path_spec="/lib /usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +00007189if test "$GCC" = yes; then
7190 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7191 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7192 # if the path contains ";" then we assume it to be the separator
7193 # otherwise default to the standard path separator (i.e. ":") - it is
7194 # assumed that no part of a normal pathname contains ";" but that should
7195 # okay in the real world where ";" in dirpaths is itself problematic.
7196 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7197 else
7198 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7199 fi
7200else
7201 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7202fi
7203need_lib_prefix=unknown
7204hardcode_into_libs=no
7205
7206# when you set need_version to no, make sure it does not cause -set_version
7207# flags to be left without arguments
7208need_version=unknown
John Criswell7a73b802003-06-30 21:59:07 +00007209
7210case $host_os in
7211aix3*)
7212 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007213 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +00007214 shlibpath_var=LIBPATH
7215
John Criswell47fdd832003-07-14 16:52:07 +00007216 # AIX 3 has no versioning support, so we append a major version to the name.
7217 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007218 ;;
7219
7220aix4* | aix5*)
7221 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007222 need_lib_prefix=no
7223 need_version=no
7224 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +00007225 if test "$host_cpu" = ia64; then
7226 # AIX 5 supports IA64
John Criswell47fdd832003-07-14 16:52:07 +00007227 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007228 shlibpath_var=LD_LIBRARY_PATH
7229 else
7230 # With GCC up to 2.95.x, collect2 would create an import file
7231 # for dependence libraries. The import file would start with
7232 # the line `#! .'. This would cause the generated library to
7233 # depend on `.', always an invalid library. This was fixed in
7234 # development snapshots of GCC prior to 3.0.
7235 case $host_os in
7236 aix4 | aix4.[01] | aix4.[01].*)
John Criswell47fdd832003-07-14 16:52:07 +00007237 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7238 echo ' yes '
7239 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7240 :
7241 else
7242 can_build_shared=no
7243 fi
7244 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007245 esac
John Criswell47fdd832003-07-14 16:52:07 +00007246 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7247 # soname into executable. Probably we can add versioning support to
7248 # collect2, so additional links can be useful in future.
John Criswell7a73b802003-06-30 21:59:07 +00007249 if test "$aix_use_runtimelinking" = yes; then
7250 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7251 # instead of lib<name>.a to let people know that these are not
7252 # typical AIX shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +00007253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007254 else
7255 # We preserve .a as extension for shared libraries through AIX4.2
7256 # and later when we are not doing run time linking.
7257 library_names_spec='${libname}${release}.a $libname.a'
John Criswell47fdd832003-07-14 16:52:07 +00007258 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007259 fi
7260 shlibpath_var=LIBPATH
7261 fi
7262 ;;
7263
7264amigaos*)
7265 library_names_spec='$libname.ixlibrary $libname.a'
7266 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7267 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'
7268 ;;
7269
7270beos*)
John Criswell47fdd832003-07-14 16:52:07 +00007271 library_names_spec='${libname}${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007272 dynamic_linker="$host_os ld.so"
7273 shlibpath_var=LIBRARY_PATH
7274 ;;
7275
7276bsdi4*)
7277 version_type=linux
7278 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7280 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007281 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7282 shlibpath_var=LD_LIBRARY_PATH
7283 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7284 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
John Criswell7a73b802003-06-30 21:59:07 +00007285 # the default ld.so.conf also contains /usr/contrib/lib and
7286 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7287 # libtool to hard-code these into programs
7288 ;;
7289
7290cygwin* | mingw* | pw32*)
7291 version_type=windows
John Criswell47fdd832003-07-14 16:52:07 +00007292 shrext=".dll"
John Criswell7a73b802003-06-30 21:59:07 +00007293 need_version=no
7294 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +00007295
John Criswell7a73b802003-06-30 21:59:07 +00007296 case $GCC,$host_os in
John Criswell47fdd832003-07-14 16:52:07 +00007297 yes,cygwin* | yes,mingw* | yes,pw32*)
John Criswell7a73b802003-06-30 21:59:07 +00007298 library_names_spec='$libname.dll.a'
John Criswell47fdd832003-07-14 16:52:07 +00007299 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7300 postinstall_cmds='base_file=`basename \${file}`~
7301 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
John Criswell7a73b802003-06-30 21:59:07 +00007302 dldir=$destdir/`dirname \$dlpath`~
7303 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +00007304 $install_prog $dir/$dlname \$dldir/$dlname'
7305 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
John Criswell7a73b802003-06-30 21:59:07 +00007306 dlpath=$dir/\$dldll~
7307 $rm \$dlpath'
John Criswell47fdd832003-07-14 16:52:07 +00007308 shlibpath_overrides_runpath=yes
7309
7310 case $host_os in
7311 cygwin*)
7312 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7313 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7314 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
7315 ;;
7316 mingw*)
7317 # MinGW DLLs use traditional 'lib' prefix
7318 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7319 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7320 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7321 # It is most probably a Windows format PATH printed by
7322 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7323 # path with ; separators, and with drive letters. We can handle the
7324 # drive letters (cygwin fileutils understands them), so leave them,
7325 # especially as we might pass files found there to a mingw objdump,
7326 # which wouldn't understand a cygwinified path. Ahh.
7327 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7328 else
7329 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7330 fi
7331 ;;
7332 pw32*)
7333 # pw32 DLLs use 'pw' prefix rather than 'lib'
7334 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7335 ;;
7336 esac
John Criswell7a73b802003-06-30 21:59:07 +00007337 ;;
John Criswell47fdd832003-07-14 16:52:07 +00007338
John Criswell7a73b802003-06-30 21:59:07 +00007339 *)
John Criswell47fdd832003-07-14 16:52:07 +00007340 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
John Criswell7a73b802003-06-30 21:59:07 +00007341 ;;
7342 esac
7343 dynamic_linker='Win32 ld.exe'
7344 # FIXME: first we should search . and the directory the executable is in
7345 shlibpath_var=PATH
7346 ;;
7347
7348darwin* | rhapsody*)
7349 dynamic_linker="$host_os dyld"
7350 version_type=darwin
7351 need_lib_prefix=no
7352 need_version=no
7353 # FIXME: Relying on posixy $() will cause problems for
7354 # cross-compilation, but unfortunately the echo tests do not
7355 # yet detect zsh echo's removal of \ escapes.
John Criswell47fdd832003-07-14 16:52:07 +00007356 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7357 soname_spec='${libname}${release}${major}$shared_ext'
John Criswell7a73b802003-06-30 21:59:07 +00007358 shlibpath_overrides_runpath=yes
7359 shlibpath_var=DYLD_LIBRARY_PATH
John Criswell47fdd832003-07-14 16:52:07 +00007360 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
7361 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7362 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7363 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"`
7364 fi
7365 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7366 ;;
7367
7368dgux*)
7369 version_type=linux
7370 need_lib_prefix=no
7371 need_version=no
7372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7373 soname_spec='${libname}${release}${shared_ext}$major'
7374 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +00007375 ;;
7376
7377freebsd1*)
7378 dynamic_linker=no
7379 ;;
7380
7381freebsd*)
7382 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7383 version_type=freebsd-$objformat
7384 case $version_type in
7385 freebsd-elf*)
John Criswell47fdd832003-07-14 16:52:07 +00007386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007387 need_version=no
7388 need_lib_prefix=no
7389 ;;
7390 freebsd-*)
John Criswell47fdd832003-07-14 16:52:07 +00007391 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +00007392 need_version=yes
7393 ;;
7394 esac
7395 shlibpath_var=LD_LIBRARY_PATH
7396 case $host_os in
7397 freebsd2*)
7398 shlibpath_overrides_runpath=yes
7399 ;;
John Criswell47fdd832003-07-14 16:52:07 +00007400 freebsd3.01* | freebsdelf3.01*)
7401 shlibpath_overrides_runpath=yes
7402 hardcode_into_libs=yes
7403 ;;
7404 *) # from 3.2 on
John Criswell7a73b802003-06-30 21:59:07 +00007405 shlibpath_overrides_runpath=no
7406 hardcode_into_libs=yes
7407 ;;
7408 esac
7409 ;;
7410
7411gnu*)
7412 version_type=linux
7413 need_lib_prefix=no
7414 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7416 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007417 shlibpath_var=LD_LIBRARY_PATH
7418 hardcode_into_libs=yes
7419 ;;
7420
7421hpux9* | hpux10* | hpux11*)
7422 # Give a soname corresponding to the major version so that dld.sl refuses to
7423 # link against other versions.
John Criswell7a73b802003-06-30 21:59:07 +00007424 version_type=sunos
7425 need_lib_prefix=no
7426 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007427 case "$host_cpu" in
7428 ia64*)
7429 shrext='.so'
7430 hardcode_into_libs=yes
7431 dynamic_linker="$host_os dld.so"
7432 shlibpath_var=LD_LIBRARY_PATH
7433 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7434 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7435 soname_spec='${libname}${release}${shared_ext}$major'
7436 if test "X$HPUX_IA64_MODE" = X32; then
7437 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7438 else
7439 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7440 fi
7441 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7442 ;;
7443 hppa*64*)
7444 shrext='.sl'
7445 hardcode_into_libs=yes
7446 dynamic_linker="$host_os dld.sl"
7447 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7448 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7450 soname_spec='${libname}${release}${shared_ext}$major'
7451 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7452 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7453 ;;
7454 *)
7455 shrext='.sl'
7456 dynamic_linker="$host_os dld.sl"
7457 shlibpath_var=SHLIB_PATH
7458 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7459 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7460 soname_spec='${libname}${release}${shared_ext}$major'
7461 ;;
7462 esac
John Criswell7a73b802003-06-30 21:59:07 +00007463 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7464 postinstall_cmds='chmod 555 $lib'
7465 ;;
7466
John Criswell47fdd832003-07-14 16:52:07 +00007467irix5* | irix6* | nonstopux*)
7468 case $host_os in
7469 nonstopux*) version_type=nonstopux ;;
7470 *)
7471 if test "$lt_cv_prog_gnu_ld" = yes; then
7472 version_type=linux
7473 else
7474 version_type=irix
7475 fi ;;
7476 esac
John Criswell7a73b802003-06-30 21:59:07 +00007477 need_lib_prefix=no
7478 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007479 soname_spec='${libname}${release}${shared_ext}$major'
7480 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 +00007481 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00007482 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +00007483 libsuff= shlibsuff=
7484 ;;
7485 *)
7486 case $LD in # libtool.m4 will add one of these switches to LD
John Criswell47fdd832003-07-14 16:52:07 +00007487 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7488 libsuff= shlibsuff= libmagic=32-bit;;
7489 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7490 libsuff=32 shlibsuff=N32 libmagic=N32;;
7491 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7492 libsuff=64 shlibsuff=64 libmagic=64-bit;;
John Criswell7a73b802003-06-30 21:59:07 +00007493 *) libsuff= shlibsuff= libmagic=never-match;;
7494 esac
7495 ;;
7496 esac
7497 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7498 shlibpath_overrides_runpath=no
7499 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7500 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
John Criswell47fdd832003-07-14 16:52:07 +00007501 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +00007502 ;;
7503
7504# No shared lib support for Linux oldld, aout, or coff.
John Criswell47fdd832003-07-14 16:52:07 +00007505linux*oldld* | linux*aout* | linux*coff*)
John Criswell7a73b802003-06-30 21:59:07 +00007506 dynamic_linker=no
7507 ;;
7508
7509# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +00007510linux*)
John Criswell7a73b802003-06-30 21:59:07 +00007511 version_type=linux
7512 need_lib_prefix=no
7513 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7515 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007516 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7517 shlibpath_var=LD_LIBRARY_PATH
7518 shlibpath_overrides_runpath=no
7519 # This implies no fast_install, which is unacceptable.
7520 # Some rework will be needed to allow for fast_install
7521 # before this can be enabled.
7522 hardcode_into_libs=yes
7523
7524 # We used to test for /lib/ld.so.1 and disable shared libraries on
7525 # powerpc, because MkLinux only supported shared libraries with the
7526 # GNU dynamic linker. Since this was broken with cross compilers,
7527 # most powerpc-linux boxes support dynamic linking these days and
7528 # people can always --disable-shared, the test was removed, and we
7529 # assume the GNU/Linux dynamic linker is in use.
7530 dynamic_linker='GNU/Linux ld.so'
7531 ;;
7532
7533netbsd*)
7534 version_type=sunos
7535 need_lib_prefix=no
7536 need_version=no
7537 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +00007538 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +00007539 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7540 dynamic_linker='NetBSD (a.out) ld.so'
7541 else
John Criswell47fdd832003-07-14 16:52:07 +00007542 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
7543 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007544 dynamic_linker='NetBSD ld.elf_so'
7545 fi
7546 shlibpath_var=LD_LIBRARY_PATH
7547 shlibpath_overrides_runpath=yes
7548 hardcode_into_libs=yes
7549 ;;
7550
7551newsos6)
7552 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7554 shlibpath_var=LD_LIBRARY_PATH
7555 shlibpath_overrides_runpath=yes
7556 ;;
7557
7558nto-qnx)
7559 version_type=linux
7560 need_lib_prefix=no
7561 need_version=no
7562 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7563 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007564 shlibpath_var=LD_LIBRARY_PATH
7565 shlibpath_overrides_runpath=yes
7566 ;;
7567
7568openbsd*)
7569 version_type=sunos
7570 need_lib_prefix=no
7571 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7573 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7574 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +00007575 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 +00007576 case $host_os in
7577 openbsd2.[89] | openbsd2.[89].*)
7578 shlibpath_overrides_runpath=no
7579 ;;
7580 *)
7581 shlibpath_overrides_runpath=yes
7582 ;;
7583 esac
John Criswell7a73b802003-06-30 21:59:07 +00007584 else
7585 shlibpath_overrides_runpath=yes
7586 fi
John Criswell7a73b802003-06-30 21:59:07 +00007587 ;;
7588
7589os2*)
7590 libname_spec='$name'
John Criswell47fdd832003-07-14 16:52:07 +00007591 shrext=".dll"
John Criswell7a73b802003-06-30 21:59:07 +00007592 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +00007593 library_names_spec='$libname${shared_ext} $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +00007594 dynamic_linker='OS/2 ld.exe'
7595 shlibpath_var=LIBPATH
7596 ;;
7597
7598osf3* | osf4* | osf5*)
7599 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +00007600 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +00007601 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007602 soname_spec='${libname}${release}${shared_ext}$major'
7603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007604 shlibpath_var=LD_LIBRARY_PATH
7605 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7606 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7607 ;;
7608
7609sco3.2v5*)
7610 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +00007611 soname_spec='${libname}${release}${shared_ext}$major'
7612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007613 shlibpath_var=LD_LIBRARY_PATH
7614 ;;
7615
7616solaris*)
7617 version_type=linux
7618 need_lib_prefix=no
7619 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007620 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7621 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007622 shlibpath_var=LD_LIBRARY_PATH
7623 shlibpath_overrides_runpath=yes
7624 hardcode_into_libs=yes
7625 # ldd complains unless libraries are executable
7626 postinstall_cmds='chmod +x $lib'
7627 ;;
7628
7629sunos4*)
7630 version_type=sunos
John Criswell47fdd832003-07-14 16:52:07 +00007631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +00007632 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7633 shlibpath_var=LD_LIBRARY_PATH
7634 shlibpath_overrides_runpath=yes
7635 if test "$with_gnu_ld" = yes; then
7636 need_lib_prefix=no
7637 fi
7638 need_version=yes
7639 ;;
7640
7641sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7642 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007643 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7644 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007645 shlibpath_var=LD_LIBRARY_PATH
7646 case $host_vendor in
7647 sni)
7648 shlibpath_overrides_runpath=no
John Criswell47fdd832003-07-14 16:52:07 +00007649 need_lib_prefix=no
7650 export_dynamic_flag_spec='${wl}-Blargedynsym'
7651 runpath_var=LD_RUN_PATH
7652 ;;
7653 siemens)
7654 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +00007655 ;;
7656 motorola)
7657 need_lib_prefix=no
7658 need_version=no
7659 shlibpath_overrides_runpath=no
7660 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7661 ;;
7662 esac
7663 ;;
7664
John Criswell7a73b802003-06-30 21:59:07 +00007665sysv4*MP*)
7666 if test -d /usr/nec ;then
7667 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007668 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7669 soname_spec='$libname${shared_ext}.$major'
John Criswell7a73b802003-06-30 21:59:07 +00007670 shlibpath_var=LD_LIBRARY_PATH
7671 fi
7672 ;;
7673
John Criswell47fdd832003-07-14 16:52:07 +00007674uts4*)
7675 version_type=linux
7676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7677 soname_spec='${libname}${release}${shared_ext}$major'
7678 shlibpath_var=LD_LIBRARY_PATH
7679 ;;
7680
John Criswell7a73b802003-06-30 21:59:07 +00007681*)
7682 dynamic_linker=no
7683 ;;
7684esac
7685echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7686echo "${ECHO_T}$dynamic_linker" >&6
7687test "$dynamic_linker" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00007688
7689if test "x$enable_dlopen" != xyes; then
7690 enable_dlopen=unknown
7691 enable_dlopen_self=unknown
7692 enable_dlopen_self_static=unknown
7693else
7694 lt_cv_dlopen=no
7695 lt_cv_dlopen_libs=
7696
7697 case $host_os in
7698 beos*)
7699 lt_cv_dlopen="load_add_on"
7700 lt_cv_dlopen_libs=
7701 lt_cv_dlopen_self=yes
7702 ;;
7703
John Criswell47fdd832003-07-14 16:52:07 +00007704 mingw* | pw32*)
John Criswell7a73b802003-06-30 21:59:07 +00007705 lt_cv_dlopen="LoadLibrary"
7706 lt_cv_dlopen_libs=
7707 ;;
7708
John Criswell47fdd832003-07-14 16:52:07 +00007709 cygwin*)
7710 lt_cv_dlopen="dlopen"
7711 lt_cv_dlopen_libs=
7712 ;;
7713
7714 darwin*)
7715 # if libdl is installed we need to link against it
7716 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7717echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7718if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7719 echo $ECHO_N "(cached) $ECHO_C" >&6
7720else
7721 ac_check_lib_save_LIBS=$LIBS
7722LIBS="-ldl $LIBS"
7723cat >conftest.$ac_ext <<_ACEOF
7724#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00007725/* confdefs.h. */
7726_ACEOF
7727cat confdefs.h >>conftest.$ac_ext
7728cat >>conftest.$ac_ext <<_ACEOF
7729/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00007730
7731/* Override any gcc2 internal prototype to avoid an error. */
7732#ifdef __cplusplus
7733extern "C"
7734#endif
7735/* We use char because int might match the return type of a gcc2
7736 builtin and then its argument prototype would still apply. */
7737char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +00007738int
7739main ()
7740{
7741dlopen ();
7742 ;
7743 return 0;
7744}
7745_ACEOF
7746rm -f conftest.$ac_objext conftest$ac_exeext
7747if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7748 (eval $ac_link) 2>&5
7749 ac_status=$?
7750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7751 (exit $ac_status); } &&
7752 { ac_try='test -s conftest$ac_exeext'
7753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7754 (eval $ac_try) 2>&5
7755 ac_status=$?
7756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7757 (exit $ac_status); }; }; then
7758 ac_cv_lib_dl_dlopen=yes
7759else
7760 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00007761sed 's/^/| /' conftest.$ac_ext >&5
7762
John Criswell47fdd832003-07-14 16:52:07 +00007763ac_cv_lib_dl_dlopen=no
7764fi
7765rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7766LIBS=$ac_check_lib_save_LIBS
7767fi
7768echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7769echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7770if test $ac_cv_lib_dl_dlopen = yes; then
7771 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7772else
7773
7774 lt_cv_dlopen="dyld"
7775 lt_cv_dlopen_libs=
7776 lt_cv_dlopen_self=yes
7777
7778fi
7779
7780 ;;
7781
John Criswell7a73b802003-06-30 21:59:07 +00007782 *)
7783 echo "$as_me:$LINENO: checking for shl_load" >&5
7784echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7785if test "${ac_cv_func_shl_load+set}" = set; then
7786 echo $ECHO_N "(cached) $ECHO_C" >&6
7787else
7788 cat >conftest.$ac_ext <<_ACEOF
7789#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00007790/* confdefs.h. */
7791_ACEOF
7792cat confdefs.h >>conftest.$ac_ext
7793cat >>conftest.$ac_ext <<_ACEOF
7794/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00007795/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +00007796 which can conflict with char shl_load (); below.
7797 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7798 <limits.h> exists even on freestanding compilers. */
7799#ifdef __STDC__
7800# include <limits.h>
7801#else
7802# include <assert.h>
7803#endif
John Criswell7a73b802003-06-30 21:59:07 +00007804/* Override any gcc2 internal prototype to avoid an error. */
7805#ifdef __cplusplus
7806extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +00007807{
John Criswell7a73b802003-06-30 21:59:07 +00007808#endif
7809/* We use char because int might match the return type of a gcc2
7810 builtin and then its argument prototype would still apply. */
7811char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +00007812/* The GNU C library defines this for functions which it implements
7813 to always fail with ENOSYS. Some functions are actually named
7814 something starting with __ and the normal name is an alias. */
7815#if defined (__stub_shl_load) || defined (__stub___shl_load)
7816choke me
7817#else
John Criswell0c38eaf2003-09-10 15:17:25 +00007818char (*f) () = shl_load;
7819#endif
7820#ifdef __cplusplus
7821}
John Criswell7a73b802003-06-30 21:59:07 +00007822#endif
7823
John Criswell0c38eaf2003-09-10 15:17:25 +00007824int
7825main ()
7826{
7827return f != shl_load;
John Criswell7a73b802003-06-30 21:59:07 +00007828 ;
7829 return 0;
7830}
7831_ACEOF
7832rm -f conftest.$ac_objext conftest$ac_exeext
7833if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7834 (eval $ac_link) 2>&5
7835 ac_status=$?
7836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7837 (exit $ac_status); } &&
7838 { ac_try='test -s conftest$ac_exeext'
7839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7840 (eval $ac_try) 2>&5
7841 ac_status=$?
7842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7843 (exit $ac_status); }; }; then
7844 ac_cv_func_shl_load=yes
7845else
7846 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00007847sed 's/^/| /' conftest.$ac_ext >&5
7848
John Criswell7a73b802003-06-30 21:59:07 +00007849ac_cv_func_shl_load=no
7850fi
7851rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7852fi
7853echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7854echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7855if test $ac_cv_func_shl_load = yes; then
7856 lt_cv_dlopen="shl_load"
7857else
7858 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7859echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7860if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7861 echo $ECHO_N "(cached) $ECHO_C" >&6
7862else
7863 ac_check_lib_save_LIBS=$LIBS
7864LIBS="-ldld $LIBS"
7865cat >conftest.$ac_ext <<_ACEOF
7866#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00007867/* confdefs.h. */
7868_ACEOF
7869cat confdefs.h >>conftest.$ac_ext
7870cat >>conftest.$ac_ext <<_ACEOF
7871/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00007872
7873/* Override any gcc2 internal prototype to avoid an error. */
7874#ifdef __cplusplus
7875extern "C"
7876#endif
7877/* We use char because int might match the return type of a gcc2
7878 builtin and then its argument prototype would still apply. */
7879char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +00007880int
7881main ()
7882{
7883shl_load ();
7884 ;
7885 return 0;
7886}
7887_ACEOF
7888rm -f conftest.$ac_objext conftest$ac_exeext
7889if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7890 (eval $ac_link) 2>&5
7891 ac_status=$?
7892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7893 (exit $ac_status); } &&
7894 { ac_try='test -s conftest$ac_exeext'
7895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7896 (eval $ac_try) 2>&5
7897 ac_status=$?
7898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7899 (exit $ac_status); }; }; then
7900 ac_cv_lib_dld_shl_load=yes
7901else
7902 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00007903sed 's/^/| /' conftest.$ac_ext >&5
7904
John Criswell7a73b802003-06-30 21:59:07 +00007905ac_cv_lib_dld_shl_load=no
7906fi
7907rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7908LIBS=$ac_check_lib_save_LIBS
7909fi
7910echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7911echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7912if test $ac_cv_lib_dld_shl_load = yes; then
7913 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
7914else
7915 echo "$as_me:$LINENO: checking for dlopen" >&5
7916echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
7917if test "${ac_cv_func_dlopen+set}" = set; then
7918 echo $ECHO_N "(cached) $ECHO_C" >&6
7919else
7920 cat >conftest.$ac_ext <<_ACEOF
7921#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00007922/* confdefs.h. */
7923_ACEOF
7924cat confdefs.h >>conftest.$ac_ext
7925cat >>conftest.$ac_ext <<_ACEOF
7926/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00007927/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +00007928 which can conflict with char dlopen (); below.
7929 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7930 <limits.h> exists even on freestanding compilers. */
7931#ifdef __STDC__
7932# include <limits.h>
7933#else
7934# include <assert.h>
7935#endif
John Criswell7a73b802003-06-30 21:59:07 +00007936/* Override any gcc2 internal prototype to avoid an error. */
7937#ifdef __cplusplus
7938extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +00007939{
John Criswell7a73b802003-06-30 21:59:07 +00007940#endif
7941/* We use char because int might match the return type of a gcc2
7942 builtin and then its argument prototype would still apply. */
7943char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +00007944/* The GNU C library defines this for functions which it implements
7945 to always fail with ENOSYS. Some functions are actually named
7946 something starting with __ and the normal name is an alias. */
7947#if defined (__stub_dlopen) || defined (__stub___dlopen)
7948choke me
7949#else
John Criswell0c38eaf2003-09-10 15:17:25 +00007950char (*f) () = dlopen;
7951#endif
7952#ifdef __cplusplus
7953}
John Criswell7a73b802003-06-30 21:59:07 +00007954#endif
7955
John Criswell0c38eaf2003-09-10 15:17:25 +00007956int
7957main ()
7958{
7959return f != dlopen;
John Criswell7a73b802003-06-30 21:59:07 +00007960 ;
7961 return 0;
7962}
7963_ACEOF
7964rm -f conftest.$ac_objext conftest$ac_exeext
7965if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7966 (eval $ac_link) 2>&5
7967 ac_status=$?
7968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7969 (exit $ac_status); } &&
7970 { ac_try='test -s conftest$ac_exeext'
7971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7972 (eval $ac_try) 2>&5
7973 ac_status=$?
7974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7975 (exit $ac_status); }; }; then
7976 ac_cv_func_dlopen=yes
7977else
7978 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00007979sed 's/^/| /' conftest.$ac_ext >&5
7980
John Criswell7a73b802003-06-30 21:59:07 +00007981ac_cv_func_dlopen=no
7982fi
7983rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7984fi
7985echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
7986echo "${ECHO_T}$ac_cv_func_dlopen" >&6
7987if test $ac_cv_func_dlopen = yes; then
7988 lt_cv_dlopen="dlopen"
7989else
7990 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7991echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7992if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7993 echo $ECHO_N "(cached) $ECHO_C" >&6
7994else
7995 ac_check_lib_save_LIBS=$LIBS
7996LIBS="-ldl $LIBS"
7997cat >conftest.$ac_ext <<_ACEOF
7998#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00007999/* confdefs.h. */
8000_ACEOF
8001cat confdefs.h >>conftest.$ac_ext
8002cat >>conftest.$ac_ext <<_ACEOF
8003/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008004
8005/* Override any gcc2 internal prototype to avoid an error. */
8006#ifdef __cplusplus
8007extern "C"
8008#endif
8009/* We use char because int might match the return type of a gcc2
8010 builtin and then its argument prototype would still apply. */
8011char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +00008012int
8013main ()
8014{
8015dlopen ();
8016 ;
8017 return 0;
8018}
8019_ACEOF
8020rm -f conftest.$ac_objext conftest$ac_exeext
8021if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8022 (eval $ac_link) 2>&5
8023 ac_status=$?
8024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8025 (exit $ac_status); } &&
8026 { ac_try='test -s conftest$ac_exeext'
8027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8028 (eval $ac_try) 2>&5
8029 ac_status=$?
8030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8031 (exit $ac_status); }; }; then
8032 ac_cv_lib_dl_dlopen=yes
8033else
8034 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008035sed 's/^/| /' conftest.$ac_ext >&5
8036
John Criswell7a73b802003-06-30 21:59:07 +00008037ac_cv_lib_dl_dlopen=no
8038fi
8039rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8040LIBS=$ac_check_lib_save_LIBS
8041fi
8042echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8043echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8044if test $ac_cv_lib_dl_dlopen = yes; then
8045 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8046else
8047 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8048echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8049if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8050 echo $ECHO_N "(cached) $ECHO_C" >&6
8051else
8052 ac_check_lib_save_LIBS=$LIBS
8053LIBS="-lsvld $LIBS"
8054cat >conftest.$ac_ext <<_ACEOF
8055#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008056/* confdefs.h. */
8057_ACEOF
8058cat confdefs.h >>conftest.$ac_ext
8059cat >>conftest.$ac_ext <<_ACEOF
8060/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008061
8062/* Override any gcc2 internal prototype to avoid an error. */
8063#ifdef __cplusplus
8064extern "C"
8065#endif
8066/* We use char because int might match the return type of a gcc2
8067 builtin and then its argument prototype would still apply. */
8068char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +00008069int
8070main ()
8071{
8072dlopen ();
8073 ;
8074 return 0;
8075}
8076_ACEOF
8077rm -f conftest.$ac_objext conftest$ac_exeext
8078if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8079 (eval $ac_link) 2>&5
8080 ac_status=$?
8081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8082 (exit $ac_status); } &&
8083 { ac_try='test -s conftest$ac_exeext'
8084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8085 (eval $ac_try) 2>&5
8086 ac_status=$?
8087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8088 (exit $ac_status); }; }; then
8089 ac_cv_lib_svld_dlopen=yes
8090else
8091 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008092sed 's/^/| /' conftest.$ac_ext >&5
8093
John Criswell7a73b802003-06-30 21:59:07 +00008094ac_cv_lib_svld_dlopen=no
8095fi
8096rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8097LIBS=$ac_check_lib_save_LIBS
8098fi
8099echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8100echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8101if test $ac_cv_lib_svld_dlopen = yes; then
8102 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8103else
8104 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8105echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8106if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8107 echo $ECHO_N "(cached) $ECHO_C" >&6
8108else
8109 ac_check_lib_save_LIBS=$LIBS
8110LIBS="-ldld $LIBS"
8111cat >conftest.$ac_ext <<_ACEOF
8112#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008113/* confdefs.h. */
8114_ACEOF
8115cat confdefs.h >>conftest.$ac_ext
8116cat >>conftest.$ac_ext <<_ACEOF
8117/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008118
8119/* Override any gcc2 internal prototype to avoid an error. */
8120#ifdef __cplusplus
8121extern "C"
8122#endif
8123/* We use char because int might match the return type of a gcc2
8124 builtin and then its argument prototype would still apply. */
8125char dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +00008126int
8127main ()
8128{
8129dld_link ();
8130 ;
8131 return 0;
8132}
8133_ACEOF
8134rm -f conftest.$ac_objext conftest$ac_exeext
8135if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8136 (eval $ac_link) 2>&5
8137 ac_status=$?
8138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8139 (exit $ac_status); } &&
8140 { ac_try='test -s conftest$ac_exeext'
8141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8142 (eval $ac_try) 2>&5
8143 ac_status=$?
8144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8145 (exit $ac_status); }; }; then
8146 ac_cv_lib_dld_dld_link=yes
8147else
8148 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008149sed 's/^/| /' conftest.$ac_ext >&5
8150
John Criswell7a73b802003-06-30 21:59:07 +00008151ac_cv_lib_dld_dld_link=no
8152fi
8153rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8154LIBS=$ac_check_lib_save_LIBS
8155fi
8156echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8157echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8158if test $ac_cv_lib_dld_dld_link = yes; then
8159 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8160fi
8161
8162
8163fi
8164
8165
8166fi
8167
8168
8169fi
8170
8171
8172fi
8173
8174
8175fi
8176
8177 ;;
8178 esac
8179
8180 if test "x$lt_cv_dlopen" != xno; then
8181 enable_dlopen=yes
8182 else
8183 enable_dlopen=no
8184 fi
8185
8186 case $lt_cv_dlopen in
8187 dlopen)
8188 save_CPPFLAGS="$CPPFLAGS"
John Criswell47fdd832003-07-14 16:52:07 +00008189 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
John Criswell7a73b802003-06-30 21:59:07 +00008190
8191 save_LDFLAGS="$LDFLAGS"
8192 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8193
8194 save_LIBS="$LIBS"
8195 LIBS="$lt_cv_dlopen_libs $LIBS"
8196
8197 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8198echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8199if test "${lt_cv_dlopen_self+set}" = set; then
8200 echo $ECHO_N "(cached) $ECHO_C" >&6
8201else
8202 if test "$cross_compiling" = yes; then :
8203 lt_cv_dlopen_self=cross
8204else
John Criswell47fdd832003-07-14 16:52:07 +00008205 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +00008206 lt_status=$lt_dlunknown
8207 cat > conftest.$ac_ext <<EOF
John Criswell878be7d2004-02-24 21:43:38 +00008208#line 8204 "configure"
John Criswell7a73b802003-06-30 21:59:07 +00008209#include "confdefs.h"
8210
8211#if HAVE_DLFCN_H
8212#include <dlfcn.h>
8213#endif
8214
8215#include <stdio.h>
8216
8217#ifdef RTLD_GLOBAL
8218# define LT_DLGLOBAL RTLD_GLOBAL
8219#else
8220# ifdef DL_GLOBAL
8221# define LT_DLGLOBAL DL_GLOBAL
8222# else
8223# define LT_DLGLOBAL 0
8224# endif
8225#endif
8226
8227/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8228 find out it does not work in some platform. */
8229#ifndef LT_DLLAZY_OR_NOW
8230# ifdef RTLD_LAZY
8231# define LT_DLLAZY_OR_NOW RTLD_LAZY
8232# else
8233# ifdef DL_LAZY
8234# define LT_DLLAZY_OR_NOW DL_LAZY
8235# else
8236# ifdef RTLD_NOW
8237# define LT_DLLAZY_OR_NOW RTLD_NOW
8238# else
8239# ifdef DL_NOW
8240# define LT_DLLAZY_OR_NOW DL_NOW
8241# else
8242# define LT_DLLAZY_OR_NOW 0
8243# endif
8244# endif
8245# endif
8246# endif
8247#endif
8248
8249#ifdef __cplusplus
8250extern "C" void exit (int);
8251#endif
8252
8253void fnord() { int i=42;}
8254int main ()
8255{
8256 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8257 int status = $lt_dlunknown;
8258
8259 if (self)
8260 {
8261 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8262 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8263 /* dlclose (self); */
8264 }
8265
8266 exit (status);
8267}
8268EOF
8269 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8270 (eval $ac_link) 2>&5
8271 ac_status=$?
8272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8273 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8274 (./conftest; exit; ) 2>/dev/null
8275 lt_status=$?
8276 case x$lt_status in
8277 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8278 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8279 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8280 esac
8281 else :
8282 # compilation failed
8283 lt_cv_dlopen_self=no
8284 fi
8285fi
8286rm -fr conftest*
8287
8288
8289fi
8290echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8291echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8292
8293 if test "x$lt_cv_dlopen_self" = xyes; then
8294 LDFLAGS="$LDFLAGS $link_static_flag"
8295 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8296echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8297if test "${lt_cv_dlopen_self_static+set}" = set; then
8298 echo $ECHO_N "(cached) $ECHO_C" >&6
8299else
8300 if test "$cross_compiling" = yes; then :
8301 lt_cv_dlopen_self_static=cross
8302else
John Criswell47fdd832003-07-14 16:52:07 +00008303 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +00008304 lt_status=$lt_dlunknown
8305 cat > conftest.$ac_ext <<EOF
John Criswell878be7d2004-02-24 21:43:38 +00008306#line 8302 "configure"
John Criswell7a73b802003-06-30 21:59:07 +00008307#include "confdefs.h"
8308
8309#if HAVE_DLFCN_H
8310#include <dlfcn.h>
8311#endif
8312
8313#include <stdio.h>
8314
8315#ifdef RTLD_GLOBAL
8316# define LT_DLGLOBAL RTLD_GLOBAL
8317#else
8318# ifdef DL_GLOBAL
8319# define LT_DLGLOBAL DL_GLOBAL
8320# else
8321# define LT_DLGLOBAL 0
8322# endif
8323#endif
8324
8325/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8326 find out it does not work in some platform. */
8327#ifndef LT_DLLAZY_OR_NOW
8328# ifdef RTLD_LAZY
8329# define LT_DLLAZY_OR_NOW RTLD_LAZY
8330# else
8331# ifdef DL_LAZY
8332# define LT_DLLAZY_OR_NOW DL_LAZY
8333# else
8334# ifdef RTLD_NOW
8335# define LT_DLLAZY_OR_NOW RTLD_NOW
8336# else
8337# ifdef DL_NOW
8338# define LT_DLLAZY_OR_NOW DL_NOW
8339# else
8340# define LT_DLLAZY_OR_NOW 0
8341# endif
8342# endif
8343# endif
8344# endif
8345#endif
8346
8347#ifdef __cplusplus
8348extern "C" void exit (int);
8349#endif
8350
8351void fnord() { int i=42;}
8352int main ()
8353{
8354 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8355 int status = $lt_dlunknown;
8356
8357 if (self)
8358 {
8359 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8360 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8361 /* dlclose (self); */
8362 }
8363
8364 exit (status);
8365}
8366EOF
8367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8368 (eval $ac_link) 2>&5
8369 ac_status=$?
8370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8371 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8372 (./conftest; exit; ) 2>/dev/null
8373 lt_status=$?
8374 case x$lt_status in
8375 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8376 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8377 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8378 esac
8379 else :
8380 # compilation failed
8381 lt_cv_dlopen_self_static=no
8382 fi
8383fi
8384rm -fr conftest*
8385
8386
8387fi
8388echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8389echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8390 fi
8391
8392 CPPFLAGS="$save_CPPFLAGS"
8393 LDFLAGS="$save_LDFLAGS"
8394 LIBS="$save_LIBS"
8395 ;;
8396 esac
8397
8398 case $lt_cv_dlopen_self in
8399 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8400 *) enable_dlopen_self=unknown ;;
8401 esac
8402
8403 case $lt_cv_dlopen_self_static in
8404 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8405 *) enable_dlopen_self_static=unknown ;;
8406 esac
8407fi
8408
8409
John Criswell47fdd832003-07-14 16:52:07 +00008410# Report which librarie types wil actually be built
8411echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8412echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8413echo "$as_me:$LINENO: result: $can_build_shared" >&5
8414echo "${ECHO_T}$can_build_shared" >&6
John Criswell7a73b802003-06-30 21:59:07 +00008415
John Criswell47fdd832003-07-14 16:52:07 +00008416echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8417echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8418test "$can_build_shared" = "no" && enable_shared=no
8419
8420# On AIX, shared libraries and static libraries use the same namespace, and
8421# are all built from PIC.
8422case "$host_os" in
8423aix3*)
8424 test "$enable_shared" = yes && enable_static=no
8425 if test -n "$RANLIB"; then
8426 archive_cmds="$archive_cmds~\$RANLIB \$lib"
8427 postinstall_cmds='$RANLIB $lib'
8428 fi
8429 ;;
8430
8431aix4*)
8432 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8433 test "$enable_shared" = yes && enable_static=no
8434 fi
8435 ;;
8436 darwin* | rhapsody*)
8437 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
8438 archive_cmds_need_lc=no
8439 case "$host_os" in
8440 rhapsody* | darwin1.[012])
8441 allow_undefined_flag='-undefined suppress'
8442 ;;
8443 *) # Darwin 1.3 on
8444 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
8445 ;;
8446 esac
8447 # FIXME: Relying on posixy $() will cause problems for
8448 # cross-compilation, but unfortunately the echo tests do not
8449 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
8450 # `"' quotes if we put them in here... so don't!
8451 output_verbose_link_cmd='echo'
8452 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8453 module_cmds='$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
8454 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8455 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}'
8456 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}'
8457 hardcode_direct=no
8458 hardcode_automatic=yes
8459 hardcode_shlibpath_var=unsupported
8460 whole_archive_flag_spec='-all_load $convenience'
8461 link_all_deplibs=yes
John Criswell7a73b802003-06-30 21:59:07 +00008462 fi
John Criswell7a73b802003-06-30 21:59:07 +00008463 ;;
John Criswell47fdd832003-07-14 16:52:07 +00008464esac
8465echo "$as_me:$LINENO: result: $enable_shared" >&5
8466echo "${ECHO_T}$enable_shared" >&6
John Criswell7a73b802003-06-30 21:59:07 +00008467
John Criswell47fdd832003-07-14 16:52:07 +00008468echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8469echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8470# Make sure either enable_shared or enable_static is yes.
8471test "$enable_shared" = yes || enable_static=yes
8472echo "$as_me:$LINENO: result: $enable_static" >&5
8473echo "${ECHO_T}$enable_static" >&6
8474
8475# The else clause should only fire when bootstrapping the
John Criswell7a73b802003-06-30 21:59:07 +00008476# libtool distribution, otherwise you forgot to ship ltmain.sh
8477# with your package, and you will get complaints that there are
8478# no rules to generate ltmain.sh.
8479if test -f "$ltmain"; then
John Criswell47fdd832003-07-14 16:52:07 +00008480 # See if we are running on zsh, and set the options which allow our commands through
8481 # without removal of \ escapes.
8482 if test -n "${ZSH_VERSION+set}" ; then
8483 setopt NO_GLOB_SUBST
8484 fi
John Criswell7a73b802003-06-30 21:59:07 +00008485 # Now quote all the things that may contain metacharacters while being
8486 # careful not to overquote the AC_SUBSTed values. We take copies of the
8487 # variables and quote the copies for generation of the libtool script.
John Criswell47fdd832003-07-14 16:52:07 +00008488 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
8489 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8490 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8491 deplibs_check_method reload_flag reload_cmds need_locks \
8492 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8493 lt_cv_sys_global_symbol_to_c_name_address \
John Criswell7a73b802003-06-30 21:59:07 +00008494 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
John Criswell47fdd832003-07-14 16:52:07 +00008495 old_postinstall_cmds old_postuninstall_cmds \
8496 compiler \
8497 CC \
8498 LD \
8499 lt_prog_compiler_wl \
8500 lt_prog_compiler_pic \
8501 lt_prog_compiler_static \
8502 lt_prog_compiler_no_builtin_flag \
8503 export_dynamic_flag_spec \
8504 thread_safe_flag_spec \
8505 whole_archive_flag_spec \
8506 enable_shared_with_static_runtimes \
8507 old_archive_cmds \
8508 old_archive_from_new_cmds \
8509 predep_objects \
8510 postdep_objects \
8511 predeps \
8512 postdeps \
8513 compiler_lib_search_path \
8514 archive_cmds \
8515 archive_expsym_cmds \
8516 postinstall_cmds \
8517 postuninstall_cmds \
8518 old_archive_from_expsyms_cmds \
8519 allow_undefined_flag \
8520 no_undefined_flag \
8521 export_symbols_cmds \
8522 hardcode_libdir_flag_spec \
8523 hardcode_libdir_flag_spec_ld \
8524 hardcode_libdir_separator \
8525 hardcode_automatic \
8526 module_cmds \
8527 module_expsym_cmds \
8528 lt_cv_prog_compiler_c_o \
8529 exclude_expsyms \
8530 include_expsyms; do
John Criswell7a73b802003-06-30 21:59:07 +00008531
8532 case $var in
John Criswell47fdd832003-07-14 16:52:07 +00008533 old_archive_cmds | \
8534 old_archive_from_new_cmds | \
8535 archive_cmds | \
8536 archive_expsym_cmds | \
8537 module_cmds | \
8538 module_expsym_cmds | \
8539 old_archive_from_expsyms_cmds | \
8540 export_symbols_cmds | \
8541 extract_expsyms_cmds | reload_cmds | finish_cmds | \
John Criswell7a73b802003-06-30 21:59:07 +00008542 postinstall_cmds | postuninstall_cmds | \
John Criswell47fdd832003-07-14 16:52:07 +00008543 old_postinstall_cmds | old_postuninstall_cmds | \
8544 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
John Criswell7a73b802003-06-30 21:59:07 +00008545 # Double-quote double-evaled strings.
8546 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8547 ;;
8548 *)
8549 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8550 ;;
8551 esac
8552 done
8553
John Criswell47fdd832003-07-14 16:52:07 +00008554 case $lt_echo in
8555 *'\$0 --fallback-echo"')
8556 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8557 ;;
8558 esac
8559
8560cfgfile="${ofile}T"
8561 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8562 $rm -f "$cfgfile"
8563 { echo "$as_me:$LINENO: creating $ofile" >&5
8564echo "$as_me: creating $ofile" >&6;}
8565
8566 cat <<__EOF__ >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +00008567#! $SHELL
8568
John Criswell47fdd832003-07-14 16:52:07 +00008569# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
John Criswell7a73b802003-06-30 21:59:07 +00008570# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8571# NOTE: Changes made to this file will be lost: look at ltmain.sh.
8572#
John Criswell47fdd832003-07-14 16:52:07 +00008573# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8574# Free Software Foundation, Inc.
8575#
8576# This file is part of GNU Libtool:
John Criswell7a73b802003-06-30 21:59:07 +00008577# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8578#
8579# This program is free software; you can redistribute it and/or modify
8580# it under the terms of the GNU General Public License as published by
8581# the Free Software Foundation; either version 2 of the License, or
8582# (at your option) any later version.
8583#
8584# This program is distributed in the hope that it will be useful, but
8585# WITHOUT ANY WARRANTY; without even the implied warranty of
8586# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
8587# General Public License for more details.
8588#
8589# You should have received a copy of the GNU General Public License
8590# along with this program; if not, write to the Free Software
8591# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8592#
8593# As a special exception to the GNU General Public License, if you
8594# distribute this file as part of a program that contains a
8595# configuration script generated by Autoconf, you may include it under
8596# the same distribution terms that you use for the rest of that program.
8597
John Criswell47fdd832003-07-14 16:52:07 +00008598# A sed program that does not truncate output.
8599SED=$lt_SED
8600
John Criswell7a73b802003-06-30 21:59:07 +00008601# Sed that helps us avoid accidentally triggering echo(1) options like -n.
John Criswell47fdd832003-07-14 16:52:07 +00008602Xsed="$SED -e s/^X//"
John Criswell7a73b802003-06-30 21:59:07 +00008603
8604# The HP-UX ksh and POSIX shell print the target directory to stdout
8605# if CDPATH is set.
8606if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8607
John Criswell47fdd832003-07-14 16:52:07 +00008608# The names of the tagged configurations supported by this script.
8609available_tags=
8610
John Criswell7a73b802003-06-30 21:59:07 +00008611# ### BEGIN LIBTOOL CONFIG
8612
8613# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8614
8615# Shell to use when invoking shell scripts.
8616SHELL=$lt_SHELL
8617
8618# Whether or not to build shared libraries.
8619build_libtool_libs=$enable_shared
8620
8621# Whether or not to build static libraries.
8622build_old_libs=$enable_static
8623
8624# Whether or not to add -lc for building shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +00008625build_libtool_need_lc=$archive_cmds_need_lc
8626
8627# Whether or not to disallow shared libs when runtime libs are static
8628allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
John Criswell7a73b802003-06-30 21:59:07 +00008629
8630# Whether or not to optimize for fast installation.
8631fast_install=$enable_fast_install
8632
8633# The host system.
8634host_alias=$host_alias
8635host=$host
8636
8637# An echo program that does not interpret backslashes.
8638echo=$lt_echo
8639
8640# The archiver.
8641AR=$lt_AR
8642AR_FLAGS=$lt_AR_FLAGS
8643
John Criswell47fdd832003-07-14 16:52:07 +00008644# A C compiler.
8645LTCC=$lt_LTCC
8646
8647# A language-specific compiler.
8648CC=$lt_compiler
John Criswell7a73b802003-06-30 21:59:07 +00008649
8650# Is the compiler the GNU C compiler?
8651with_gcc=$GCC
8652
John Criswell47fdd832003-07-14 16:52:07 +00008653# An ERE matcher.
8654EGREP=$lt_EGREP
8655
John Criswell7a73b802003-06-30 21:59:07 +00008656# The linker used to build libraries.
8657LD=$lt_LD
8658
8659# Whether we need hard or soft links.
8660LN_S=$lt_LN_S
8661
8662# A BSD-compatible nm program.
8663NM=$lt_NM
8664
8665# A symbol stripping program
8666STRIP=$STRIP
8667
8668# Used to examine libraries when file_magic_cmd begins "file"
8669MAGIC_CMD=$MAGIC_CMD
8670
8671# Used on cygwin: DLL creation program.
8672DLLTOOL="$DLLTOOL"
8673
8674# Used on cygwin: object dumper.
8675OBJDUMP="$OBJDUMP"
8676
8677# Used on cygwin: assembler.
8678AS="$AS"
8679
8680# The name of the directory that contains temporary libtool files.
8681objdir=$objdir
8682
8683# How to create reloadable object files.
8684reload_flag=$lt_reload_flag
8685reload_cmds=$lt_reload_cmds
8686
8687# How to pass a linker flag through the compiler.
John Criswell47fdd832003-07-14 16:52:07 +00008688wl=$lt_lt_prog_compiler_wl
John Criswell7a73b802003-06-30 21:59:07 +00008689
8690# Object file suffix (normally "o").
8691objext="$ac_objext"
8692
8693# Old archive suffix (normally "a").
8694libext="$libext"
8695
John Criswell47fdd832003-07-14 16:52:07 +00008696# Shared library suffix (normally ".so").
8697shrext='$shrext'
8698
John Criswell7a73b802003-06-30 21:59:07 +00008699# Executable file suffix (normally "").
8700exeext="$exeext"
8701
8702# Additional compiler flags for building library objects.
John Criswell47fdd832003-07-14 16:52:07 +00008703pic_flag=$lt_lt_prog_compiler_pic
John Criswell7a73b802003-06-30 21:59:07 +00008704pic_mode=$pic_mode
8705
John Criswell47fdd832003-07-14 16:52:07 +00008706# What is the maximum length of a command?
8707max_cmd_len=$lt_cv_sys_max_cmd_len
John Criswell7a73b802003-06-30 21:59:07 +00008708
John Criswell47fdd832003-07-14 16:52:07 +00008709# Does compiler simultaneously support -c and -o options?
8710compiler_c_o=$lt_lt_cv_prog_compiler_c_o
John Criswell7a73b802003-06-30 21:59:07 +00008711
8712# Must we lock files when doing compilation ?
8713need_locks=$lt_need_locks
8714
8715# Do we need the lib prefix for modules?
8716need_lib_prefix=$need_lib_prefix
8717
8718# Do we need a version for libraries?
8719need_version=$need_version
8720
8721# Whether dlopen is supported.
8722dlopen_support=$enable_dlopen
8723
8724# Whether dlopen of programs is supported.
8725dlopen_self=$enable_dlopen_self
8726
8727# Whether dlopen of statically linked programs is supported.
8728dlopen_self_static=$enable_dlopen_self_static
8729
8730# Compiler flag to prevent dynamic linking.
John Criswell47fdd832003-07-14 16:52:07 +00008731link_static_flag=$lt_lt_prog_compiler_static
John Criswell7a73b802003-06-30 21:59:07 +00008732
8733# Compiler flag to turn off builtin functions.
John Criswell47fdd832003-07-14 16:52:07 +00008734no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
John Criswell7a73b802003-06-30 21:59:07 +00008735
8736# Compiler flag to allow reflexive dlopens.
8737export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
8738
8739# Compiler flag to generate shared objects directly from archives.
8740whole_archive_flag_spec=$lt_whole_archive_flag_spec
8741
8742# Compiler flag to generate thread-safe objects.
8743thread_safe_flag_spec=$lt_thread_safe_flag_spec
8744
8745# Library versioning type.
8746version_type=$version_type
8747
8748# Format of library name prefix.
8749libname_spec=$lt_libname_spec
8750
8751# List of archive names. First name is the real one, the rest are links.
8752# The last name is the one that the linker finds with -lNAME.
8753library_names_spec=$lt_library_names_spec
8754
8755# The coded name of the library, if different from the real name.
8756soname_spec=$lt_soname_spec
8757
8758# Commands used to build and install an old-style archive.
8759RANLIB=$lt_RANLIB
8760old_archive_cmds=$lt_old_archive_cmds
8761old_postinstall_cmds=$lt_old_postinstall_cmds
8762old_postuninstall_cmds=$lt_old_postuninstall_cmds
8763
8764# Create an old-style archive from a shared archive.
8765old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
8766
8767# Create a temporary old-style archive to link instead of a shared archive.
8768old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
8769
8770# Commands used to build and install a shared archive.
8771archive_cmds=$lt_archive_cmds
8772archive_expsym_cmds=$lt_archive_expsym_cmds
8773postinstall_cmds=$lt_postinstall_cmds
8774postuninstall_cmds=$lt_postuninstall_cmds
8775
John Criswell47fdd832003-07-14 16:52:07 +00008776# Commands used to build a loadable module (assumed same as above if empty)
8777module_cmds=$lt_module_cmds
8778module_expsym_cmds=$lt_module_expsym_cmds
8779
John Criswell7a73b802003-06-30 21:59:07 +00008780# Commands to strip libraries.
8781old_striplib=$lt_old_striplib
8782striplib=$lt_striplib
8783
John Criswell47fdd832003-07-14 16:52:07 +00008784# Dependencies to place before the objects being linked to create a
8785# shared library.
8786predep_objects=$lt_predep_objects
8787
8788# Dependencies to place after the objects being linked to create a
8789# shared library.
8790postdep_objects=$lt_postdep_objects
8791
8792# Dependencies to place before the objects being linked to create a
8793# shared library.
8794predeps=$lt_predeps
8795
8796# Dependencies to place after the objects being linked to create a
8797# shared library.
8798postdeps=$lt_postdeps
8799
8800# The library search path used internally by the compiler when linking
8801# a shared library.
8802compiler_lib_search_path=$lt_compiler_lib_search_path
8803
John Criswell7a73b802003-06-30 21:59:07 +00008804# Method to check whether dependent libraries are shared objects.
8805deplibs_check_method=$lt_deplibs_check_method
8806
8807# Command to use when deplibs_check_method == file_magic.
8808file_magic_cmd=$lt_file_magic_cmd
8809
8810# Flag that allows shared libraries with undefined symbols to be built.
8811allow_undefined_flag=$lt_allow_undefined_flag
8812
8813# Flag that forces no undefined symbols.
8814no_undefined_flag=$lt_no_undefined_flag
8815
8816# Commands used to finish a libtool library installation in a directory.
8817finish_cmds=$lt_finish_cmds
8818
8819# Same as above, but a single script fragment to be evaled but not shown.
8820finish_eval=$lt_finish_eval
8821
8822# Take the output of nm and produce a listing of raw symbols and C names.
John Criswell47fdd832003-07-14 16:52:07 +00008823global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
John Criswell7a73b802003-06-30 21:59:07 +00008824
8825# Transform the output of nm in a proper C declaration
John Criswell47fdd832003-07-14 16:52:07 +00008826global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
John Criswell7a73b802003-06-30 21:59:07 +00008827
8828# Transform the output of nm in a C name address pair
John Criswell47fdd832003-07-14 16:52:07 +00008829global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
John Criswell7a73b802003-06-30 21:59:07 +00008830
8831# This is the shared library runtime path variable.
8832runpath_var=$runpath_var
8833
8834# This is the shared library path variable.
8835shlibpath_var=$shlibpath_var
8836
8837# Is shlibpath searched before the hard-coded library search path?
8838shlibpath_overrides_runpath=$shlibpath_overrides_runpath
8839
8840# How to hardcode a shared library path into an executable.
8841hardcode_action=$hardcode_action
8842
8843# Whether we should hardcode library paths into libraries.
8844hardcode_into_libs=$hardcode_into_libs
8845
8846# Flag to hardcode \$libdir into a binary during linking.
8847# This must work even if \$libdir does not exist.
8848hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
8849
John Criswell47fdd832003-07-14 16:52:07 +00008850# If ld is used when linking, flag to hardcode \$libdir into
8851# a binary during linking. This must work even if \$libdir does
8852# not exist.
8853hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
8854
John Criswell7a73b802003-06-30 21:59:07 +00008855# Whether we need a single -rpath flag with a separated argument.
8856hardcode_libdir_separator=$lt_hardcode_libdir_separator
8857
John Criswell47fdd832003-07-14 16:52:07 +00008858# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
John Criswell7a73b802003-06-30 21:59:07 +00008859# resulting binary.
8860hardcode_direct=$hardcode_direct
8861
8862# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
8863# resulting binary.
8864hardcode_minus_L=$hardcode_minus_L
8865
8866# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
8867# the resulting binary.
8868hardcode_shlibpath_var=$hardcode_shlibpath_var
8869
John Criswell47fdd832003-07-14 16:52:07 +00008870# Set to yes if building a shared library automatically hardcodes DIR into the library
8871# and all subsequent libraries and executables linked against it.
8872hardcode_automatic=$hardcode_automatic
8873
John Criswell7a73b802003-06-30 21:59:07 +00008874# Variables whose values should be saved in libtool wrapper scripts and
8875# restored at relink time.
8876variables_saved_for_relink="$variables_saved_for_relink"
8877
8878# Whether libtool must link a program against all its dependency libraries.
8879link_all_deplibs=$link_all_deplibs
8880
8881# Compile-time system search path for libraries
8882sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
8883
8884# Run-time system search path for libraries
8885sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
8886
8887# Fix the shell variable \$srcfile for the compiler.
8888fix_srcfile_path="$fix_srcfile_path"
8889
8890# Set to yes if exported symbols are required.
8891always_export_symbols=$always_export_symbols
8892
8893# The commands to list exported symbols.
8894export_symbols_cmds=$lt_export_symbols_cmds
8895
8896# The commands to extract the exported symbol list from a shared archive.
8897extract_expsyms_cmds=$lt_extract_expsyms_cmds
8898
8899# Symbols that should not be listed in the preloaded symbols.
8900exclude_expsyms=$lt_exclude_expsyms
8901
8902# Symbols that must always be exported.
8903include_expsyms=$lt_include_expsyms
8904
8905# ### END LIBTOOL CONFIG
8906
8907__EOF__
8908
John Criswell47fdd832003-07-14 16:52:07 +00008909
John Criswell7a73b802003-06-30 21:59:07 +00008910 case $host_os in
8911 aix3*)
John Criswell47fdd832003-07-14 16:52:07 +00008912 cat <<\EOF >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +00008913
8914# AIX sometimes has problems with the GCC collect2 program. For some
8915# reason, if we set the COLLECT_NAMES environment variable, the problems
8916# vanish in a puff of smoke.
8917if test "X${COLLECT_NAMES+set}" != Xset; then
8918 COLLECT_NAMES=
8919 export COLLECT_NAMES
8920fi
8921EOF
8922 ;;
8923 esac
8924
John Criswell7a73b802003-06-30 21:59:07 +00008925 # We use sed instead of cat because bash on DJGPP gets confused if
8926 # if finds mixed CR/LF and LF-only lines. Since sed operates in
8927 # text mode, it properly converts lines to CR/LF. This bash problem
8928 # is reportedly fixed, but why not run on old versions too?
John Criswell47fdd832003-07-14 16:52:07 +00008929 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
John Criswell7a73b802003-06-30 21:59:07 +00008930
John Criswell47fdd832003-07-14 16:52:07 +00008931 mv -f "$cfgfile" "$ofile" || \
8932 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
John Criswell7a73b802003-06-30 21:59:07 +00008933 chmod +x "$ofile"
John Criswell47fdd832003-07-14 16:52:07 +00008934
8935else
8936 # If there is no Makefile yet, we rely on a make rule to execute
8937 # `config.status --recheck' to rerun these tests and create the
8938 # libtool script then.
8939 test -f Makefile && make "$ltmain"
John Criswell7a73b802003-06-30 21:59:07 +00008940fi
John Criswell7a73b802003-06-30 21:59:07 +00008941
8942
John Criswell47fdd832003-07-14 16:52:07 +00008943ac_ext=c
8944ac_cpp='$CPP $CPPFLAGS'
8945ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8946ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8947ac_compiler_gnu=$ac_cv_c_compiler_gnu
8948
8949CC="$lt_save_CC"
8950
8951
8952# Check whether --with-tags or --without-tags was given.
8953if test "${with_tags+set}" = set; then
8954 withval="$with_tags"
8955 tagnames="$withval"
8956fi;
8957
8958if test -f "$ltmain" && test -n "$tagnames"; then
8959 if test ! -f "${ofile}"; then
8960 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
8961echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
8962 fi
8963
8964 if test -z "$LTCC"; then
8965 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
8966 if test -z "$LTCC"; then
8967 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
8968echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
8969 else
8970 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
8971echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
8972 fi
8973 fi
8974
8975 # Extract list of available tagged configurations in $ofile.
8976 # Note that this assumes the entire list is on one line.
8977 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
8978
8979 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8980 for tagname in $tagnames; do
8981 IFS="$lt_save_ifs"
8982 # Check whether tagname contains only valid characters
8983 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
8984 "") ;;
8985 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
8986echo "$as_me: error: invalid tag name: $tagname" >&2;}
8987 { (exit 1); exit 1; }; }
8988 ;;
8989 esac
8990
8991 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
8992 then
8993 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
8994echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
8995 { (exit 1); exit 1; }; }
8996 fi
8997
8998 # Update the list of available tags.
8999 if test -n "$tagname"; then
9000 echo appending configuration tag \"$tagname\" to $ofile
9001
9002 case $tagname in
9003 CXX)
9004 if test -n "$CXX" && test "X$CXX" != "Xno"; then
9005 ac_ext=cc
9006ac_cpp='$CXXCPP $CPPFLAGS'
9007ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9008ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9009ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9010
9011
9012
9013
9014archive_cmds_need_lc_CXX=no
9015allow_undefined_flag_CXX=
9016always_export_symbols_CXX=no
9017archive_expsym_cmds_CXX=
9018export_dynamic_flag_spec_CXX=
9019hardcode_direct_CXX=no
9020hardcode_libdir_flag_spec_CXX=
9021hardcode_libdir_flag_spec_ld_CXX=
9022hardcode_libdir_separator_CXX=
9023hardcode_minus_L_CXX=no
9024hardcode_automatic_CXX=no
9025module_cmds_CXX=
9026module_expsym_cmds_CXX=
9027link_all_deplibs_CXX=unknown
9028old_archive_cmds_CXX=$old_archive_cmds
9029no_undefined_flag_CXX=
9030whole_archive_flag_spec_CXX=
9031enable_shared_with_static_runtimes_CXX=no
9032
9033# Dependencies to place before and after the object being linked:
9034predep_objects_CXX=
9035postdep_objects_CXX=
9036predeps_CXX=
9037postdeps_CXX=
9038compiler_lib_search_path_CXX=
9039
9040# Source file extension for C++ test sources.
9041ac_ext=cc
9042
9043# Object file extension for compiled C++ test sources.
9044objext=o
9045objext_CXX=$objext
9046
9047# Code to be used in simple compile tests
9048lt_simple_compile_test_code="int some_variable = 0;\n"
9049
9050# Code to be used in simple link tests
9051lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9052
9053# ltmain only uses $CC for tagged configurations so make sure $CC is set.
9054
9055# If no C compiler was specified, use CC.
9056LTCC=${LTCC-"$CC"}
9057
9058# Allow CC to be a program name with arguments.
9059compiler=$CC
9060
9061
9062# Allow CC to be a program name with arguments.
9063lt_save_CC=$CC
9064lt_save_LD=$LD
9065lt_save_GCC=$GCC
9066GCC=$GXX
9067lt_save_with_gnu_ld=$with_gnu_ld
9068lt_save_path_LD=$lt_cv_path_LD
9069if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9070 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9071else
9072 unset lt_cv_prog_gnu_ld
9073fi
9074if test -n "${lt_cv_path_LDCXX+set}"; then
9075 lt_cv_path_LD=$lt_cv_path_LDCXX
9076else
9077 unset lt_cv_path_LD
9078fi
9079test -z "${LDCXX+set}" || LD=$LDCXX
9080CC=${CXX-"c++"}
9081compiler=$CC
9082compiler_CXX=$CC
9083cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9084
9085# We don't want -fno-exception wen compiling C++ code, so set the
9086# no_builtin_flag separately
9087if test "$GXX" = yes; then
9088 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9089else
9090 lt_prog_compiler_no_builtin_flag_CXX=
9091fi
9092
9093if test "$GXX" = yes; then
9094 # Set up default GNU C++ configuration
9095
9096
9097# Check whether --with-gnu-ld or --without-gnu-ld was given.
9098if test "${with_gnu_ld+set}" = set; then
9099 withval="$with_gnu_ld"
9100 test "$withval" = no || with_gnu_ld=yes
9101else
9102 with_gnu_ld=no
9103fi;
9104ac_prog=ld
9105if test "$GCC" = yes; then
9106 # Check if gcc -print-prog-name=ld gives a path.
9107 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9108echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9109 case $host in
9110 *-*-mingw*)
9111 # gcc leaves a trailing carriage return which upsets mingw
9112 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9113 *)
9114 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9115 esac
9116 case $ac_prog in
9117 # Accept absolute paths.
9118 [\\/]* | ?:[\\/]*)
9119 re_direlt='/[^/][^/]*/\.\./'
9120 # Canonicalize the path of ld
9121 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9122 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9123 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9124 done
9125 test -z "$LD" && LD="$ac_prog"
9126 ;;
9127 "")
9128 # If it fails, then pretend we aren't using GCC.
9129 ac_prog=ld
9130 ;;
9131 *)
9132 # If it is relative, then search for the first ld in PATH.
9133 with_gnu_ld=unknown
9134 ;;
9135 esac
9136elif test "$with_gnu_ld" = yes; then
9137 echo "$as_me:$LINENO: checking for GNU ld" >&5
9138echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9139else
9140 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9141echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9142fi
9143if test "${lt_cv_path_LD+set}" = set; then
9144 echo $ECHO_N "(cached) $ECHO_C" >&6
9145else
9146 if test -z "$LD"; then
9147 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9148 for ac_dir in $PATH; do
9149 IFS="$lt_save_ifs"
9150 test -z "$ac_dir" && ac_dir=.
9151 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9152 lt_cv_path_LD="$ac_dir/$ac_prog"
9153 # Check to see if the program is GNU ld. I'd rather use --version,
9154 # but apparently some GNU ld's only accept -v.
9155 # Break only if it was the GNU/non-GNU ld that we prefer.
9156 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9157 *GNU* | *'with BFD'*)
9158 test "$with_gnu_ld" != no && break
9159 ;;
9160 *)
9161 test "$with_gnu_ld" != yes && break
9162 ;;
9163 esac
9164 fi
9165 done
9166 IFS="$lt_save_ifs"
9167else
9168 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9169fi
9170fi
9171
9172LD="$lt_cv_path_LD"
9173if test -n "$LD"; then
9174 echo "$as_me:$LINENO: result: $LD" >&5
9175echo "${ECHO_T}$LD" >&6
9176else
9177 echo "$as_me:$LINENO: result: no" >&5
9178echo "${ECHO_T}no" >&6
9179fi
9180test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9181echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9182 { (exit 1); exit 1; }; }
9183echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9184echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9185if test "${lt_cv_prog_gnu_ld+set}" = set; then
9186 echo $ECHO_N "(cached) $ECHO_C" >&6
9187else
9188 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9189case `"$LD" -v 2>&1 </dev/null` in
9190*GNU* | *'with BFD'*)
9191 lt_cv_prog_gnu_ld=yes
9192 ;;
9193*)
9194 lt_cv_prog_gnu_ld=no
9195 ;;
9196esac
9197fi
9198echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9199echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9200with_gnu_ld=$lt_cv_prog_gnu_ld
9201
9202
9203
9204 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9205 # archiving commands below assume that GNU ld is being used.
9206 if test "$with_gnu_ld" = yes; then
9207 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9208 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'
9209
9210 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9211 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9212
9213 # If archive_cmds runs LD, not CC, wlarc should be empty
9214 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9215 # investigate it a little bit more. (MM)
9216 wlarc='${wl}'
9217
9218 # ancient GNU ld didn't support --whole-archive et. al.
9219 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9220 grep 'no-whole-archive' > /dev/null; then
9221 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9222 else
9223 whole_archive_flag_spec_CXX=
9224 fi
9225 else
9226 with_gnu_ld=no
9227 wlarc=
9228
9229 # A generic and very simple default shared library creation
9230 # command for GNU C++ for the case where it uses the native
9231 # linker, instead of GNU ld. If possible, this setting should
9232 # overridden to take advantage of the native linker features on
9233 # the platform it is being used on.
9234 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9235 fi
9236
9237 # Commands to make compiler produce verbose output that lists
9238 # what "hidden" libraries, object files and flags are used when
9239 # linking a shared library.
9240 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9241
9242else
9243 GXX=no
9244 with_gnu_ld=no
9245 wlarc=
9246fi
9247
9248# PORTME: fill in a description of your system's C++ link characteristics
9249echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9250echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9251ld_shlibs_CXX=yes
9252case $host_os in
9253 aix3*)
9254 # FIXME: insert proper C++ library support
9255 ld_shlibs_CXX=no
9256 ;;
9257 aix4* | aix5*)
9258 if test "$host_cpu" = ia64; then
9259 # On IA64, the linker does run time linking by default, so we don't
9260 # have to do anything special.
9261 aix_use_runtimelinking=no
9262 exp_sym_flag='-Bexport'
9263 no_entry_flag=""
9264 else
9265 aix_use_runtimelinking=no
9266
9267 # Test if we are trying to use run time linking or normal
9268 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9269 # need to do runtime linking.
9270 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9271 for ld_flag in $LDFLAGS; do
9272 case $ld_flag in
9273 *-brtl*)
9274 aix_use_runtimelinking=yes
9275 break
9276 ;;
9277 esac
9278 done
9279 esac
9280
9281 exp_sym_flag='-bexport'
9282 no_entry_flag='-bnoentry'
9283 fi
9284
9285 # When large executables or shared objects are built, AIX ld can
9286 # have problems creating the table of contents. If linking a library
9287 # or program results in "error TOC overflow" add -mminimal-toc to
9288 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9289 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9290
9291 archive_cmds_CXX=''
9292 hardcode_direct_CXX=yes
9293 hardcode_libdir_separator_CXX=':'
9294 link_all_deplibs_CXX=yes
9295
9296 if test "$GXX" = yes; then
9297 case $host_os in aix4.012|aix4.012.*)
9298 # We only want to do this on AIX 4.2 and lower, the check
9299 # below for broken collect2 doesn't work under 4.3+
9300 collect2name=`${CC} -print-prog-name=collect2`
9301 if test -f "$collect2name" && \
9302 strings "$collect2name" | grep resolve_lib_name >/dev/null
9303 then
9304 # We have reworked collect2
9305 hardcode_direct_CXX=yes
9306 else
9307 # We have old collect2
9308 hardcode_direct_CXX=unsupported
9309 # It fails to find uninstalled libraries when the uninstalled
9310 # path is not listed in the libpath. Setting hardcode_minus_L
9311 # to unsupported forces relinking
9312 hardcode_minus_L_CXX=yes
9313 hardcode_libdir_flag_spec_CXX='-L$libdir'
9314 hardcode_libdir_separator_CXX=
9315 fi
9316 esac
9317 shared_flag='-shared'
9318 else
9319 # not using gcc
9320 if test "$host_cpu" = ia64; then
9321 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9322 # chokes on -Wl,-G. The following line is correct:
9323 shared_flag='-G'
9324 else
9325 if test "$aix_use_runtimelinking" = yes; then
9326 shared_flag='${wl}-G'
9327 else
9328 shared_flag='${wl}-bM:SRE'
9329 fi
9330 fi
9331 fi
9332
9333 # It seems that -bexpall does not export symbols beginning with
9334 # underscore (_), so it is better to generate a list of symbols to export.
9335 always_export_symbols_CXX=yes
9336 if test "$aix_use_runtimelinking" = yes; then
9337 # Warning - without using the other runtime loading flags (-brtl),
9338 # -berok will link without error, but may produce a broken library.
9339 allow_undefined_flag_CXX='-berok'
9340 # Determine the default libpath from the value encoded in an empty executable.
9341 cat >conftest.$ac_ext <<_ACEOF
9342#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00009343/* confdefs.h. */
9344_ACEOF
9345cat confdefs.h >>conftest.$ac_ext
9346cat >>conftest.$ac_ext <<_ACEOF
9347/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00009348
John Criswell47fdd832003-07-14 16:52:07 +00009349int
9350main ()
9351{
9352
9353 ;
9354 return 0;
9355}
9356_ACEOF
9357rm -f conftest.$ac_objext conftest$ac_exeext
9358if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9359 (eval $ac_link) 2>&5
9360 ac_status=$?
9361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9362 (exit $ac_status); } &&
9363 { ac_try='test -s conftest$ac_exeext'
9364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9365 (eval $ac_try) 2>&5
9366 ac_status=$?
9367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9368 (exit $ac_status); }; }; then
9369
9370aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9371}'`
9372# Check for a 64-bit object if we didn't find anything.
9373if 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; }
9374}'`; fi
9375else
9376 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00009377sed 's/^/| /' conftest.$ac_ext >&5
9378
John Criswell47fdd832003-07-14 16:52:07 +00009379fi
9380rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9381if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9382
9383 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9384
9385 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"
9386 else
9387 if test "$host_cpu" = ia64; then
9388 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9389 allow_undefined_flag_CXX="-z nodefs"
9390 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"
9391 else
9392 # Determine the default libpath from the value encoded in an empty executable.
9393 cat >conftest.$ac_ext <<_ACEOF
9394#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00009395/* confdefs.h. */
9396_ACEOF
9397cat confdefs.h >>conftest.$ac_ext
9398cat >>conftest.$ac_ext <<_ACEOF
9399/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00009400
John Criswell47fdd832003-07-14 16:52:07 +00009401int
9402main ()
9403{
9404
9405 ;
9406 return 0;
9407}
9408_ACEOF
9409rm -f conftest.$ac_objext conftest$ac_exeext
9410if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9411 (eval $ac_link) 2>&5
9412 ac_status=$?
9413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9414 (exit $ac_status); } &&
9415 { ac_try='test -s conftest$ac_exeext'
9416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9417 (eval $ac_try) 2>&5
9418 ac_status=$?
9419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9420 (exit $ac_status); }; }; then
9421
9422aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9423}'`
9424# Check for a 64-bit object if we didn't find anything.
9425if 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; }
9426}'`; fi
9427else
9428 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00009429sed 's/^/| /' conftest.$ac_ext >&5
9430
John Criswell47fdd832003-07-14 16:52:07 +00009431fi
9432rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9433if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9434
9435 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9436 # Warning - without using the other run time loading flags,
9437 # -berok will link without error, but may produce a broken library.
9438 no_undefined_flag_CXX=' ${wl}-bernotok'
9439 allow_undefined_flag_CXX=' ${wl}-berok'
9440 # -bexpall does not export symbols beginning with underscore (_)
9441 always_export_symbols_CXX=yes
9442 # Exported symbols can be pulled into shared objects from archives
9443 whole_archive_flag_spec_CXX=' '
9444 archive_cmds_need_lc_CXX=yes
9445 # This is similar to how AIX traditionally builds it's shared libraries.
9446 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'
9447 fi
9448 fi
9449 ;;
9450 chorus*)
9451 case $cc_basename in
9452 *)
9453 # FIXME: insert proper C++ library support
9454 ld_shlibs_CXX=no
9455 ;;
9456 esac
9457 ;;
9458
9459 cygwin* | mingw* | pw32*)
9460 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9461 # as there is no search path for DLLs.
9462 hardcode_libdir_flag_spec_CXX='-L$libdir'
9463 allow_undefined_flag_CXX=unsupported
9464 always_export_symbols_CXX=no
9465 enable_shared_with_static_runtimes_CXX=yes
9466
9467 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9468 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'
9469 # If the export-symbols file already is a .def file (1st line
9470 # is EXPORTS), use it as is; otherwise, prepend...
9471 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9472 cp $export_symbols $output_objdir/$soname.def;
9473 else
9474 echo EXPORTS > $output_objdir/$soname.def;
9475 cat $export_symbols >> $output_objdir/$soname.def;
9476 fi~
9477 $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'
9478 else
9479 ld_shlibs_CXX=no
9480 fi
9481 ;;
9482
9483 darwin* | rhapsody*)
9484 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
9485 archive_cmds_need_lc_CXX=no
9486 case "$host_os" in
9487 rhapsody* | darwin1.[012])
9488 allow_undefined_flag_CXX='-undefined suppress'
9489 ;;
9490 *) # Darwin 1.3 on
9491 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9492 ;;
9493 esac
9494 lt_int_apple_cc_single_mod=no
9495 output_verbose_link_cmd='echo'
9496 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9497 lt_int_apple_cc_single_mod=yes
9498 fi
9499 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9500 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9501 else
9502 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'
9503 fi
9504 module_cmds_CXX='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
9505
9506 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9507 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9508 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}'
9509 else
9510 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}'
9511 fi
9512 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}'
9513 hardcode_direct_CXX=no
9514 hardcode_automatic_CXX=yes
9515 hardcode_shlibpath_var_CXX=unsupported
9516 whole_archive_flag_spec_CXX='-all_load $convenience'
9517 link_all_deplibs_CXX=yes
9518 fi
9519 ;;
9520
9521 dgux*)
9522 case $cc_basename in
9523 ec++)
9524 # FIXME: insert proper C++ library support
9525 ld_shlibs_CXX=no
9526 ;;
9527 ghcx)
9528 # Green Hills C++ Compiler
9529 # FIXME: insert proper C++ library support
9530 ld_shlibs_CXX=no
9531 ;;
9532 *)
9533 # FIXME: insert proper C++ library support
9534 ld_shlibs_CXX=no
9535 ;;
9536 esac
9537 ;;
9538 freebsd12*)
9539 # C++ shared libraries reported to be fairly broken before switch to ELF
9540 ld_shlibs_CXX=no
9541 ;;
9542 freebsd-elf*)
9543 archive_cmds_need_lc_CXX=no
9544 ;;
9545 freebsd*)
9546 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9547 # conventions
9548 ld_shlibs_CXX=yes
9549 ;;
9550 gnu*)
9551 ;;
9552 hpux9*)
9553 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9554 hardcode_libdir_separator_CXX=:
9555 export_dynamic_flag_spec_CXX='${wl}-E'
9556 hardcode_direct_CXX=yes
9557 hardcode_minus_L_CXX=yes # Not in the search PATH,
9558 # but as the default
9559 # location of the library.
9560
9561 case $cc_basename in
9562 CC)
9563 # FIXME: insert proper C++ library support
9564 ld_shlibs_CXX=no
9565 ;;
9566 aCC)
9567 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'
9568 # Commands to make compiler produce verbose output that lists
9569 # what "hidden" libraries, object files and flags are used when
9570 # linking a shared library.
9571 #
9572 # There doesn't appear to be a way to prevent this compiler from
9573 # explicitly linking system object files so we need to strip them
9574 # from the output so that they don't get included in the library
9575 # dependencies.
9576 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'
9577 ;;
9578 *)
9579 if test "$GXX" = yes; then
9580 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'
9581 else
9582 # FIXME: insert proper C++ library support
9583 ld_shlibs_CXX=no
9584 fi
9585 ;;
9586 esac
9587 ;;
9588 hpux10*|hpux11*)
9589 if test $with_gnu_ld = no; then
9590 case "$host_cpu" in
9591 hppa*64*)
9592 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9593 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
9594 hardcode_libdir_separator_CXX=:
9595 ;;
9596 ia64*)
9597 hardcode_libdir_flag_spec_CXX='-L$libdir'
9598 ;;
9599 *)
9600 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9601 hardcode_libdir_separator_CXX=:
9602 export_dynamic_flag_spec_CXX='${wl}-E'
9603 ;;
9604 esac
9605 fi
9606 case "$host_cpu" in
9607 hppa*64*)
9608 hardcode_direct_CXX=no
9609 hardcode_shlibpath_var_CXX=no
9610 ;;
9611 ia64*)
9612 hardcode_direct_CXX=no
9613 hardcode_shlibpath_var_CXX=no
9614 hardcode_minus_L_CXX=yes # Not in the search PATH,
9615 # but as the default
9616 # location of the library.
9617 ;;
9618 *)
9619 hardcode_direct_CXX=yes
9620 hardcode_minus_L_CXX=yes # Not in the search PATH,
9621 # but as the default
9622 # location of the library.
9623 ;;
9624 esac
9625
9626 case $cc_basename in
9627 CC)
9628 # FIXME: insert proper C++ library support
9629 ld_shlibs_CXX=no
9630 ;;
9631 aCC)
9632 case "$host_cpu" in
9633 hppa*64*|ia64*)
9634 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9635 ;;
9636 *)
9637 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9638 ;;
9639 esac
9640 # Commands to make compiler produce verbose output that lists
9641 # what "hidden" libraries, object files and flags are used when
9642 # linking a shared library.
9643 #
9644 # There doesn't appear to be a way to prevent this compiler from
9645 # explicitly linking system object files so we need to strip them
9646 # from the output so that they don't get included in the library
9647 # dependencies.
9648 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'
9649 ;;
9650 *)
9651 if test "$GXX" = yes; then
9652 if test $with_gnu_ld = no; then
9653 case "$host_cpu" in
9654 ia64*|hppa*64*)
9655 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9656 ;;
9657 *)
9658 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'
9659 ;;
9660 esac
9661 fi
9662 else
9663 # FIXME: insert proper C++ library support
9664 ld_shlibs_CXX=no
9665 fi
9666 ;;
9667 esac
9668 ;;
9669 irix5* | irix6*)
9670 case $cc_basename in
9671 CC)
9672 # SGI C++
9673 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'
9674
9675 # Archives containing C++ object files must be created using
9676 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
9677 # necessary to make sure instantiated templates are included
9678 # in the archive.
9679 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
9680 ;;
9681 *)
9682 if test "$GXX" = yes; then
9683 if test "$with_gnu_ld" = no; then
9684 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'
9685 else
9686 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'
9687 fi
9688 fi
9689 link_all_deplibs_CXX=yes
9690 ;;
9691 esac
9692 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9693 hardcode_libdir_separator_CXX=:
9694 ;;
9695 linux*)
9696 case $cc_basename in
9697 KCC)
9698 # Kuck and Associates, Inc. (KAI) C++ Compiler
9699
9700 # KCC will only create a shared library if the output file
9701 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9702 # to its proper name (with version) after linking.
9703 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'
9704 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'
9705 # Commands to make compiler produce verbose output that lists
9706 # what "hidden" libraries, object files and flags are used when
9707 # linking a shared library.
9708 #
9709 # There doesn't appear to be a way to prevent this compiler from
9710 # explicitly linking system object files so we need to strip them
9711 # from the output so that they don't get included in the library
9712 # dependencies.
9713 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'
9714
9715 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
9716 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9717
9718 # Archives containing C++ object files must be created using
9719 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9720 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9721 ;;
9722 icpc)
9723 # Intel C++
9724 with_gnu_ld=yes
9725 archive_cmds_need_lc_CXX=no
9726 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9727 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'
9728 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9729 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9730 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9731 ;;
9732 cxx)
9733 # Compaq C++
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 -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
9736
9737 runpath_var=LD_RUN_PATH
9738 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9739 hardcode_libdir_separator_CXX=:
9740
9741 # Commands to make compiler produce verbose output that lists
9742 # what "hidden" libraries, object files and flags are used when
9743 # linking a shared library.
9744 #
9745 # There doesn't appear to be a way to prevent this compiler from
9746 # explicitly linking system object files so we need to strip them
9747 # from the output so that they don't get included in the library
9748 # dependencies.
9749 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'
9750 ;;
9751 esac
9752 ;;
9753 lynxos*)
9754 # FIXME: insert proper C++ library support
9755 ld_shlibs_CXX=no
9756 ;;
9757 m88k*)
9758 # FIXME: insert proper C++ library support
9759 ld_shlibs_CXX=no
9760 ;;
9761 mvs*)
9762 case $cc_basename in
9763 cxx)
9764 # FIXME: insert proper C++ library support
9765 ld_shlibs_CXX=no
9766 ;;
9767 *)
9768 # FIXME: insert proper C++ library support
9769 ld_shlibs_CXX=no
9770 ;;
9771 esac
9772 ;;
9773 netbsd*)
9774 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9775 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
9776 wlarc=
9777 hardcode_libdir_flag_spec_CXX='-R$libdir'
9778 hardcode_direct_CXX=yes
9779 hardcode_shlibpath_var_CXX=no
9780 fi
9781 # Workaround some broken pre-1.5 toolchains
9782 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
9783 ;;
9784 osf3*)
9785 case $cc_basename in
9786 KCC)
9787 # Kuck and Associates, Inc. (KAI) C++ Compiler
9788
9789 # KCC will only create a shared library if the output file
9790 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9791 # to its proper name (with version) after linking.
9792 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'
9793
9794 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9795 hardcode_libdir_separator_CXX=:
9796
9797 # Archives containing C++ object files must be created using
9798 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9799 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9800
9801 ;;
9802 RCC)
9803 # Rational C++ 2.4.1
9804 # FIXME: insert proper C++ library support
9805 ld_shlibs_CXX=no
9806 ;;
9807 cxx)
9808 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9809 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'
9810
9811 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9812 hardcode_libdir_separator_CXX=:
9813
9814 # Commands to make compiler produce verbose output that lists
9815 # what "hidden" libraries, object files and flags are used when
9816 # linking a shared library.
9817 #
9818 # There doesn't appear to be a way to prevent this compiler from
9819 # explicitly linking system object files so we need to strip them
9820 # from the output so that they don't get included in the library
9821 # dependencies.
9822 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'
9823 ;;
9824 *)
9825 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9826 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9827 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'
9828
9829 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9830 hardcode_libdir_separator_CXX=:
9831
9832 # Commands to make compiler produce verbose output that lists
9833 # what "hidden" libraries, object files and flags are used when
9834 # linking a shared library.
9835 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9836
9837 else
9838 # FIXME: insert proper C++ library support
9839 ld_shlibs_CXX=no
9840 fi
9841 ;;
9842 esac
9843 ;;
9844 osf4* | osf5*)
9845 case $cc_basename in
9846 KCC)
9847 # Kuck and Associates, Inc. (KAI) C++ Compiler
9848
9849 # KCC will only create a shared library if the output file
9850 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9851 # to its proper name (with version) after linking.
9852 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'
9853
9854 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9855 hardcode_libdir_separator_CXX=:
9856
9857 # Archives containing C++ object files must be created using
9858 # the KAI C++ compiler.
9859 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
9860 ;;
9861 RCC)
9862 # Rational C++ 2.4.1
9863 # FIXME: insert proper C++ library support
9864 ld_shlibs_CXX=no
9865 ;;
9866 cxx)
9867 allow_undefined_flag_CXX=' -expect_unresolved \*'
9868 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'
9869 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
9870 echo "-hidden">> $lib.exp~
9871 $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~
9872 $rm $lib.exp'
9873
9874 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9875 hardcode_libdir_separator_CXX=:
9876
9877 # Commands to make compiler produce verbose output that lists
9878 # what "hidden" libraries, object files and flags are used when
9879 # linking a shared library.
9880 #
9881 # There doesn't appear to be a way to prevent this compiler from
9882 # explicitly linking system object files so we need to strip them
9883 # from the output so that they don't get included in the library
9884 # dependencies.
9885 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'
9886 ;;
9887 *)
9888 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9889 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9890 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'
9891
9892 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9893 hardcode_libdir_separator_CXX=:
9894
9895 # Commands to make compiler produce verbose output that lists
9896 # what "hidden" libraries, object files and flags are used when
9897 # linking a shared library.
9898 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9899
9900 else
9901 # FIXME: insert proper C++ library support
9902 ld_shlibs_CXX=no
9903 fi
9904 ;;
9905 esac
9906 ;;
9907 psos*)
9908 # FIXME: insert proper C++ library support
9909 ld_shlibs_CXX=no
9910 ;;
9911 sco*)
9912 archive_cmds_need_lc_CXX=no
9913 case $cc_basename in
9914 CC)
9915 # FIXME: insert proper C++ library support
9916 ld_shlibs_CXX=no
9917 ;;
9918 *)
9919 # FIXME: insert proper C++ library support
9920 ld_shlibs_CXX=no
9921 ;;
9922 esac
9923 ;;
9924 sunos4*)
9925 case $cc_basename in
9926 CC)
9927 # Sun C++ 4.x
9928 # FIXME: insert proper C++ library support
9929 ld_shlibs_CXX=no
9930 ;;
9931 lcc)
9932 # Lucid
9933 # FIXME: insert proper C++ library support
9934 ld_shlibs_CXX=no
9935 ;;
9936 *)
9937 # FIXME: insert proper C++ library support
9938 ld_shlibs_CXX=no
9939 ;;
9940 esac
9941 ;;
9942 solaris*)
9943 case $cc_basename in
9944 CC)
9945 # Sun C++ 4.2, 5.x and Centerline C++
9946 no_undefined_flag_CXX=' -zdefs'
9947 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9948 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9949 $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'
9950
9951 hardcode_libdir_flag_spec_CXX='-R$libdir'
9952 hardcode_shlibpath_var_CXX=no
9953 case $host_os in
9954 solaris2.0-5 | solaris2.0-5.*) ;;
9955 *)
9956 # The C++ compiler is used as linker so we must use $wl
9957 # flag to pass the commands to the underlying system
9958 # linker.
9959 # Supported since Solaris 2.6 (maybe 2.5.1?)
9960 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9961 ;;
9962 esac
9963 link_all_deplibs_CXX=yes
9964
9965 # Commands to make compiler produce verbose output that lists
9966 # what "hidden" libraries, object files and flags are used when
9967 # linking a shared library.
9968 #
9969 # There doesn't appear to be a way to prevent this compiler from
9970 # explicitly linking system object files so we need to strip them
9971 # from the output so that they don't get included in the library
9972 # dependencies.
9973 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'
9974
9975 # Archives containing C++ object files must be created using
9976 # "CC -xar", where "CC" is the Sun C++ compiler. This is
9977 # necessary to make sure instantiated templates are included
9978 # in the archive.
9979 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
9980 ;;
9981 gcx)
9982 # Green Hills C++ Compiler
9983 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9984
9985 # The C++ compiler must be used to create the archive.
9986 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
9987 ;;
9988 *)
9989 # GNU C++ compiler with Solaris linker
9990 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9991 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
9992 if $CC --version | grep -v '^2\.7' > /dev/null; then
9993 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9994 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9995 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
9996
9997 # Commands to make compiler produce verbose output that lists
9998 # what "hidden" libraries, object files and flags are used when
9999 # linking a shared library.
10000 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10001 else
10002 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10003 # platform.
10004 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10005 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10006 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10007
10008 # Commands to make compiler produce verbose output that lists
10009 # what "hidden" libraries, object files and flags are used when
10010 # linking a shared library.
10011 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10012 fi
10013
10014 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10015 fi
10016 ;;
10017 esac
10018 ;;
10019 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10020 archive_cmds_need_lc_CXX=no
10021 ;;
10022 tandem*)
10023 case $cc_basename in
10024 NCC)
10025 # NonStop-UX NCC 3.20
10026 # FIXME: insert proper C++ library support
10027 ld_shlibs_CXX=no
10028 ;;
10029 *)
10030 # FIXME: insert proper C++ library support
10031 ld_shlibs_CXX=no
10032 ;;
10033 esac
10034 ;;
10035 vxworks*)
10036 # FIXME: insert proper C++ library support
10037 ld_shlibs_CXX=no
10038 ;;
10039 *)
10040 # FIXME: insert proper C++ library support
10041 ld_shlibs_CXX=no
10042 ;;
10043esac
10044echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10045echo "${ECHO_T}$ld_shlibs_CXX" >&6
10046test "$ld_shlibs_CXX" = no && can_build_shared=no
10047
10048GCC_CXX="$GXX"
10049LD_CXX="$LD"
10050
John Criswell47fdd832003-07-14 16:52:07 +000010051
10052cat > conftest.$ac_ext <<EOF
10053class Foo
10054{
10055public:
10056 Foo (void) { a = 0; }
10057private:
10058 int a;
10059};
10060EOF
10061
10062if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10063 (eval $ac_compile) 2>&5
10064 ac_status=$?
10065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10066 (exit $ac_status); }; then
10067 # Parse the compiler output and extract the necessary
10068 # objects, libraries and library flags.
10069
10070 # Sentinel used to keep track of whether or not we are before
10071 # the conftest object file.
10072 pre_test_object_deps_done=no
10073
10074 # The `*' in the case matches for architectures that use `case' in
10075 # $output_verbose_cmd can trigger glob expansion during the loop
10076 # eval without this substitution.
10077 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10078
10079 for p in `eval $output_verbose_link_cmd`; do
10080 case $p in
10081
10082 -L* | -R* | -l*)
10083 # Some compilers place space between "-{L,R}" and the path.
10084 # Remove the space.
10085 if test $p = "-L" \
10086 || test $p = "-R"; then
10087 prev=$p
10088 continue
10089 else
10090 prev=
10091 fi
10092
10093 if test "$pre_test_object_deps_done" = no; then
10094 case $p in
10095 -L* | -R*)
10096 # Internal compiler library paths should come after those
10097 # provided the user. The postdeps already come after the
10098 # user supplied libs so there is no need to process them.
10099 if test -z "$compiler_lib_search_path_CXX"; then
10100 compiler_lib_search_path_CXX="${prev}${p}"
10101 else
10102 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10103 fi
10104 ;;
10105 # The "-l" case would never come before the object being
10106 # linked, so don't bother handling this case.
10107 esac
10108 else
10109 if test -z "$postdeps_CXX"; then
10110 postdeps_CXX="${prev}${p}"
10111 else
10112 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10113 fi
10114 fi
10115 ;;
10116
10117 *.$objext)
10118 # This assumes that the test object file only shows up
10119 # once in the compiler output.
10120 if test "$p" = "conftest.$objext"; then
10121 pre_test_object_deps_done=yes
10122 continue
10123 fi
10124
10125 if test "$pre_test_object_deps_done" = no; then
10126 if test -z "$predep_objects_CXX"; then
10127 predep_objects_CXX="$p"
10128 else
10129 predep_objects_CXX="$predep_objects_CXX $p"
10130 fi
10131 else
10132 if test -z "$postdep_objects_CXX"; then
10133 postdep_objects_CXX="$p"
10134 else
10135 postdep_objects_CXX="$postdep_objects_CXX $p"
10136 fi
10137 fi
10138 ;;
10139
10140 *) ;; # Ignore the rest.
10141
10142 esac
10143 done
10144
10145 # Clean up.
10146 rm -f a.out a.exe
10147else
10148 echo "libtool.m4: error: problem compiling CXX test program"
10149fi
10150
10151$rm -f confest.$objext
10152
10153case " $postdeps_CXX " in
10154*" -lc "*) archive_cmds_need_lc_CXX=no ;;
10155esac
10156
10157lt_prog_compiler_wl_CXX=
10158lt_prog_compiler_pic_CXX=
10159lt_prog_compiler_static_CXX=
10160
10161echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10162echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10163
10164 # C++ specific cases for pic, static, wl, etc.
10165 if test "$GXX" = yes; then
10166 lt_prog_compiler_wl_CXX='-Wl,'
10167 lt_prog_compiler_static_CXX='-static'
10168
10169 case $host_os in
10170 aix*)
10171 # All AIX code is PIC.
10172 if test "$host_cpu" = ia64; then
10173 # AIX 5 now supports IA64 processor
10174 lt_prog_compiler_static_CXX='-Bstatic'
10175 fi
10176 ;;
10177 amigaos*)
10178 # FIXME: we need at least 68020 code to build shared libraries, but
10179 # adding the `-m68020' flag to GCC prevents building anything better,
10180 # like `-m68040'.
10181 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10182 ;;
10183 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10184 # PIC is the default for these OSes.
10185 ;;
10186 mingw* | os2* | pw32*)
10187 # This hack is so that the source file can tell whether it is being
10188 # built for inclusion in a dll (and should export symbols for example).
10189 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10190 ;;
10191 darwin* | rhapsody*)
10192 # PIC is the default on this platform
10193 # Common symbols not allowed in MH_DYLIB files
10194 lt_prog_compiler_pic_CXX='-fno-common'
10195 ;;
10196 *djgpp*)
10197 # DJGPP does not support shared libraries at all
10198 lt_prog_compiler_pic_CXX=
10199 ;;
10200 sysv4*MP*)
10201 if test -d /usr/nec; then
10202 lt_prog_compiler_pic_CXX=-Kconform_pic
10203 fi
10204 ;;
10205 hpux*)
10206 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10207 # not for PA HP-UX.
10208 case "$host_cpu" in
10209 hppa*64*|ia64*)
10210 ;;
10211 *)
10212 lt_prog_compiler_pic_CXX='-fPIC'
10213 ;;
10214 esac
10215 ;;
10216 *)
10217 lt_prog_compiler_pic_CXX='-fPIC'
10218 ;;
10219 esac
10220 else
10221 case $host_os in
10222 aix4* | aix5*)
10223 # All AIX code is PIC.
10224 if test "$host_cpu" = ia64; then
10225 # AIX 5 now supports IA64 processor
10226 lt_prog_compiler_static_CXX='-Bstatic'
10227 else
10228 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10229 fi
10230 ;;
10231 chorus*)
10232 case $cc_basename in
10233 cxch68)
10234 # Green Hills C++ Compiler
10235 # _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"
10236 ;;
10237 esac
10238 ;;
10239 dgux*)
10240 case $cc_basename in
10241 ec++)
10242 lt_prog_compiler_pic_CXX='-KPIC'
10243 ;;
10244 ghcx)
10245 # Green Hills C++ Compiler
10246 lt_prog_compiler_pic_CXX='-pic'
10247 ;;
10248 *)
10249 ;;
10250 esac
10251 ;;
10252 freebsd*)
10253 # FreeBSD uses GNU C++
10254 ;;
10255 hpux9* | hpux10* | hpux11*)
10256 case $cc_basename in
10257 CC)
10258 lt_prog_compiler_wl_CXX='-Wl,'
10259 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10260 if test "$host_cpu" != ia64; then
10261 lt_prog_compiler_pic_CXX='+Z'
10262 fi
10263 ;;
10264 aCC)
10265 lt_prog_compiler_wl_CXX='-Wl,'
10266 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10267 case "$host_cpu" in
10268 hppa*64*|ia64*)
10269 # +Z the default
10270 ;;
10271 *)
10272 lt_prog_compiler_pic_CXX='+Z'
10273 ;;
10274 esac
10275 ;;
10276 *)
10277 ;;
10278 esac
10279 ;;
10280 irix5* | irix6* | nonstopux*)
10281 case $cc_basename in
10282 CC)
10283 lt_prog_compiler_wl_CXX='-Wl,'
10284 lt_prog_compiler_static_CXX='-non_shared'
10285 # CC pic flag -KPIC is the default.
10286 ;;
10287 *)
10288 ;;
10289 esac
10290 ;;
10291 linux*)
10292 case $cc_basename in
10293 KCC)
10294 # KAI C++ Compiler
10295 lt_prog_compiler_wl_CXX='--backend -Wl,'
10296 lt_prog_compiler_pic_CXX='-fPIC'
10297 ;;
10298 icpc)
10299 # Intel C++
10300 lt_prog_compiler_wl_CXX='-Wl,'
10301 lt_prog_compiler_pic_CXX='-KPIC'
10302 lt_prog_compiler_static_CXX='-static'
10303 ;;
10304 cxx)
10305 # Compaq C++
10306 # Make sure the PIC flag is empty. It appears that all Alpha
10307 # Linux and Compaq Tru64 Unix objects are PIC.
10308 lt_prog_compiler_pic_CXX=
10309 lt_prog_compiler_static_CXX='-non_shared'
10310 ;;
10311 *)
10312 ;;
10313 esac
10314 ;;
10315 lynxos*)
10316 ;;
10317 m88k*)
10318 ;;
10319 mvs*)
10320 case $cc_basename in
10321 cxx)
10322 lt_prog_compiler_pic_CXX='-W c,exportall'
10323 ;;
10324 *)
10325 ;;
10326 esac
10327 ;;
10328 netbsd*)
10329 ;;
10330 osf3* | osf4* | osf5*)
10331 case $cc_basename in
10332 KCC)
10333 lt_prog_compiler_wl_CXX='--backend -Wl,'
10334 ;;
10335 RCC)
10336 # Rational C++ 2.4.1
10337 lt_prog_compiler_pic_CXX='-pic'
10338 ;;
10339 cxx)
10340 # Digital/Compaq C++
10341 lt_prog_compiler_wl_CXX='-Wl,'
10342 # Make sure the PIC flag is empty. It appears that all Alpha
10343 # Linux and Compaq Tru64 Unix objects are PIC.
10344 lt_prog_compiler_pic_CXX=
10345 lt_prog_compiler_static_CXX='-non_shared'
10346 ;;
10347 *)
10348 ;;
10349 esac
10350 ;;
10351 psos*)
10352 ;;
10353 sco*)
10354 case $cc_basename in
10355 CC)
10356 lt_prog_compiler_pic_CXX='-fPIC'
10357 ;;
10358 *)
10359 ;;
10360 esac
10361 ;;
10362 solaris*)
10363 case $cc_basename in
10364 CC)
10365 # Sun C++ 4.2, 5.x and Centerline C++
10366 lt_prog_compiler_pic_CXX='-KPIC'
10367 lt_prog_compiler_static_CXX='-Bstatic'
10368 lt_prog_compiler_wl_CXX='-Qoption ld '
10369 ;;
10370 gcx)
10371 # Green Hills C++ Compiler
10372 lt_prog_compiler_pic_CXX='-PIC'
10373 ;;
10374 *)
10375 ;;
10376 esac
10377 ;;
10378 sunos4*)
10379 case $cc_basename in
10380 CC)
10381 # Sun C++ 4.x
10382 lt_prog_compiler_pic_CXX='-pic'
10383 lt_prog_compiler_static_CXX='-Bstatic'
10384 ;;
10385 lcc)
10386 # Lucid
10387 lt_prog_compiler_pic_CXX='-pic'
10388 ;;
10389 *)
10390 ;;
10391 esac
10392 ;;
10393 tandem*)
10394 case $cc_basename in
10395 NCC)
10396 # NonStop-UX NCC 3.20
10397 lt_prog_compiler_pic_CXX='-KPIC'
10398 ;;
10399 *)
10400 ;;
10401 esac
10402 ;;
10403 unixware*)
10404 ;;
10405 vxworks*)
10406 ;;
10407 *)
10408 lt_prog_compiler_can_build_shared_CXX=no
10409 ;;
10410 esac
10411 fi
10412
10413echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10414echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10415
10416#
10417# Check to make sure the PIC flag actually works.
10418#
10419if test -n "$lt_prog_compiler_pic_CXX"; then
10420 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10421echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10422if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10423 echo $ECHO_N "(cached) $ECHO_C" >&6
10424else
10425 lt_prog_compiler_pic_works_CXX=no
10426 ac_outfile=conftest.$ac_objext
10427 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10428 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10429 # Insert the option either (1) after the last *FLAGS variable, or
10430 # (2) before a word containing "conftest.", or (3) at the end.
10431 # Note that $ac_compile itself does not contain backslashes and begins
10432 # with a dollar sign (not a hyphen), so the echo should work correctly.
10433 # The option is referenced via a variable to avoid confusing sed.
10434 lt_compile=`echo "$ac_compile" | $SED \
10435 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10436 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10437 -e 's:$: $lt_compiler_flag:'`
John Criswell878be7d2004-02-24 21:43:38 +000010438 (eval echo "\"\$as_me:10434: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000010439 (eval "$lt_compile" 2>conftest.err)
10440 ac_status=$?
10441 cat conftest.err >&5
John Criswell878be7d2004-02-24 21:43:38 +000010442 echo "$as_me:10438: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000010443 if (exit $ac_status) && test -s "$ac_outfile"; then
10444 # The compiler can only warn and ignore the option if not recognized
10445 # So say no if there are warnings
10446 if test ! -s conftest.err; then
10447 lt_prog_compiler_pic_works_CXX=yes
10448 fi
10449 fi
10450 $rm conftest*
10451
10452fi
10453echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10454echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10455
10456if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10457 case $lt_prog_compiler_pic_CXX in
10458 "" | " "*) ;;
10459 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10460 esac
10461else
10462 lt_prog_compiler_pic_CXX=
10463 lt_prog_compiler_can_build_shared_CXX=no
10464fi
10465
10466fi
10467case "$host_os" in
10468 # For platforms which do not support PIC, -DPIC is meaningless:
10469 *djgpp*)
10470 lt_prog_compiler_pic_CXX=
10471 ;;
10472 *)
10473 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10474 ;;
10475esac
10476
10477echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10478echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10479if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10480 echo $ECHO_N "(cached) $ECHO_C" >&6
10481else
10482 lt_cv_prog_compiler_c_o_CXX=no
10483 $rm -r conftest 2>/dev/null
10484 mkdir conftest
10485 cd conftest
10486 mkdir out
10487 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10488
10489 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
10490 # that will create temporary files in the current directory regardless of
10491 # the output directory. Thus, making CWD read-only will cause this test
10492 # to fail, enabling locking or at least warning the user not to do parallel
10493 # builds.
10494 chmod -w .
10495
10496 lt_compiler_flag="-o out/conftest2.$ac_objext"
10497 # Insert the option either (1) after the last *FLAGS variable, or
10498 # (2) before a word containing "conftest.", or (3) at the end.
10499 # Note that $ac_compile itself does not contain backslashes and begins
10500 # with a dollar sign (not a hyphen), so the echo should work correctly.
10501 lt_compile=`echo "$ac_compile" | $SED \
10502 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10503 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10504 -e 's:$: $lt_compiler_flag:'`
John Criswell878be7d2004-02-24 21:43:38 +000010505 (eval echo "\"\$as_me:10501: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000010506 (eval "$lt_compile" 2>out/conftest.err)
10507 ac_status=$?
10508 cat out/conftest.err >&5
John Criswell878be7d2004-02-24 21:43:38 +000010509 echo "$as_me:10505: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000010510 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10511 then
10512 # The compiler can only warn and ignore the option if not recognized
10513 # So say no if there are warnings
10514 if test ! -s out/conftest.err; then
10515 lt_cv_prog_compiler_c_o_CXX=yes
10516 fi
10517 fi
10518 chmod u+w .
10519 $rm conftest* out/*
10520 rmdir out
10521 cd ..
10522 rmdir conftest
10523 $rm conftest*
10524
10525fi
10526echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10527echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10528
10529
10530hard_links="nottested"
10531if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10532 # do not overwrite the value of need_locks provided by the user
10533 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10534echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10535 hard_links=yes
10536 $rm conftest*
10537 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10538 touch conftest.a
10539 ln conftest.a conftest.b 2>&5 || hard_links=no
10540 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10541 echo "$as_me:$LINENO: result: $hard_links" >&5
10542echo "${ECHO_T}$hard_links" >&6
10543 if test "$hard_links" = no; then
10544 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10545echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10546 need_locks=warn
10547 fi
10548else
10549 need_locks=no
10550fi
10551
10552echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10553echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10554
10555 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10556 case $host_os in
10557 aix4* | aix5*)
10558 # If we're using GNU nm, then we don't want the "-C" option.
10559 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10560 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10561 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'
10562 else
10563 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'
10564 fi
10565 ;;
10566 pw32*)
10567 export_symbols_cmds_CXX="$ltdll_cmds"
10568 ;;
10569 cygwin* | mingw*)
10570 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10571 ;;
10572 *)
10573 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10574 ;;
10575 esac
10576
10577echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10578echo "${ECHO_T}$ld_shlibs_CXX" >&6
10579test "$ld_shlibs_CXX" = no && can_build_shared=no
10580
10581variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10582if test "$GCC" = yes; then
10583 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10584fi
10585
10586#
10587# Do we need to explicitly link libc?
10588#
10589case "x$archive_cmds_need_lc_CXX" in
10590x|xyes)
10591 # Assume -lc should be added
10592 archive_cmds_need_lc_CXX=yes
10593
10594 if test "$enable_shared" = yes && test "$GCC" = yes; then
10595 case $archive_cmds_CXX in
10596 *'~'*)
10597 # FIXME: we may have to deal with multi-command sequences.
10598 ;;
10599 '$CC '*)
10600 # Test whether the compiler implicitly links with -lc since on some
10601 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10602 # to ld, don't add -lc before -lgcc.
10603 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10604echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10605 $rm conftest*
10606 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10607
10608 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10609 (eval $ac_compile) 2>&5
10610 ac_status=$?
10611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10612 (exit $ac_status); } 2>conftest.err; then
10613 soname=conftest
10614 lib=conftest
10615 libobjs=conftest.$ac_objext
10616 deplibs=
10617 wl=$lt_prog_compiler_wl_CXX
10618 compiler_flags=-v
10619 linker_flags=-v
10620 verstring=
10621 output_objdir=.
10622 libname=conftest
10623 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
10624 allow_undefined_flag_CXX=
10625 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10626 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10627 ac_status=$?
10628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10629 (exit $ac_status); }
10630 then
10631 archive_cmds_need_lc_CXX=no
10632 else
10633 archive_cmds_need_lc_CXX=yes
10634 fi
10635 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
10636 else
10637 cat conftest.err 1>&5
10638 fi
10639 $rm conftest*
10640 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
10641echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
10642 ;;
10643 esac
10644 fi
10645 ;;
10646esac
10647
10648echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10649echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10650hardcode_action_CXX=
10651if test -n "$hardcode_libdir_flag_spec_CXX" || \
10652 test -n "$runpath_var CXX" || \
10653 test "X$hardcode_automatic_CXX"="Xyes" ; then
10654
10655 # We can hardcode non-existant directories.
10656 if test "$hardcode_direct_CXX" != no &&
10657 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10658 # have to relink, otherwise we might link with an installed library
10659 # when we should be linking with a yet-to-be-installed one
10660 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
10661 test "$hardcode_minus_L_CXX" != no; then
10662 # Linking always hardcodes the temporary library directory.
10663 hardcode_action_CXX=relink
10664 else
10665 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10666 hardcode_action_CXX=immediate
10667 fi
10668else
10669 # We cannot hardcode anything, or else we can only hardcode existing
10670 # directories.
10671 hardcode_action_CXX=unsupported
10672fi
10673echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
10674echo "${ECHO_T}$hardcode_action_CXX" >&6
10675
10676if test "$hardcode_action_CXX" = relink; then
10677 # Fast installation is not supported
10678 enable_fast_install=no
10679elif test "$shlibpath_overrides_runpath" = yes ||
10680 test "$enable_shared" = no; then
10681 # Fast installation is not necessary
10682 enable_fast_install=needless
10683fi
10684
10685striplib=
10686old_striplib=
10687echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10688echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10689if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10690 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10691 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10692 echo "$as_me:$LINENO: result: yes" >&5
10693echo "${ECHO_T}yes" >&6
10694else
10695# FIXME - insert some real tests, host_os isn't really good enough
10696 case $host_os in
10697 darwin*)
10698 if test -n "$STRIP" ; then
10699 striplib="$STRIP -x"
10700 echo "$as_me:$LINENO: result: yes" >&5
10701echo "${ECHO_T}yes" >&6
10702 else
10703 echo "$as_me:$LINENO: result: no" >&5
10704echo "${ECHO_T}no" >&6
10705fi
10706 ;;
10707 *)
10708 echo "$as_me:$LINENO: result: no" >&5
10709echo "${ECHO_T}no" >&6
10710 ;;
10711 esac
10712fi
10713
10714echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10715echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10716library_names_spec=
10717libname_spec='lib$name'
10718soname_spec=
10719shrext=".so"
10720postinstall_cmds=
10721postuninstall_cmds=
10722finish_cmds=
10723finish_eval=
10724shlibpath_var=
10725shlibpath_overrides_runpath=unknown
10726version_type=none
10727dynamic_linker="$host_os ld.so"
10728sys_lib_dlsearch_path_spec="/lib /usr/lib"
10729if test "$GCC" = yes; then
10730 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10731 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10732 # if the path contains ";" then we assume it to be the separator
10733 # otherwise default to the standard path separator (i.e. ":") - it is
10734 # assumed that no part of a normal pathname contains ";" but that should
10735 # okay in the real world where ";" in dirpaths is itself problematic.
10736 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10737 else
10738 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10739 fi
10740else
10741 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10742fi
10743need_lib_prefix=unknown
10744hardcode_into_libs=no
10745
10746# when you set need_version to no, make sure it does not cause -set_version
10747# flags to be left without arguments
10748need_version=unknown
10749
10750case $host_os in
10751aix3*)
10752 version_type=linux
10753 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10754 shlibpath_var=LIBPATH
10755
10756 # AIX 3 has no versioning support, so we append a major version to the name.
10757 soname_spec='${libname}${release}${shared_ext}$major'
10758 ;;
10759
10760aix4* | aix5*)
10761 version_type=linux
10762 need_lib_prefix=no
10763 need_version=no
10764 hardcode_into_libs=yes
10765 if test "$host_cpu" = ia64; then
10766 # AIX 5 supports IA64
10767 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10768 shlibpath_var=LD_LIBRARY_PATH
10769 else
10770 # With GCC up to 2.95.x, collect2 would create an import file
10771 # for dependence libraries. The import file would start with
10772 # the line `#! .'. This would cause the generated library to
10773 # depend on `.', always an invalid library. This was fixed in
10774 # development snapshots of GCC prior to 3.0.
10775 case $host_os in
10776 aix4 | aix4.[01] | aix4.[01].*)
10777 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10778 echo ' yes '
10779 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10780 :
10781 else
10782 can_build_shared=no
10783 fi
10784 ;;
10785 esac
10786 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10787 # soname into executable. Probably we can add versioning support to
10788 # collect2, so additional links can be useful in future.
10789 if test "$aix_use_runtimelinking" = yes; then
10790 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10791 # instead of lib<name>.a to let people know that these are not
10792 # typical AIX shared libraries.
10793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10794 else
10795 # We preserve .a as extension for shared libraries through AIX4.2
10796 # and later when we are not doing run time linking.
10797 library_names_spec='${libname}${release}.a $libname.a'
10798 soname_spec='${libname}${release}${shared_ext}$major'
10799 fi
10800 shlibpath_var=LIBPATH
10801 fi
10802 ;;
10803
10804amigaos*)
10805 library_names_spec='$libname.ixlibrary $libname.a'
10806 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10807 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'
10808 ;;
10809
10810beos*)
10811 library_names_spec='${libname}${shared_ext}'
10812 dynamic_linker="$host_os ld.so"
10813 shlibpath_var=LIBRARY_PATH
10814 ;;
10815
10816bsdi4*)
10817 version_type=linux
10818 need_version=no
10819 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10820 soname_spec='${libname}${release}${shared_ext}$major'
10821 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10822 shlibpath_var=LD_LIBRARY_PATH
10823 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10824 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10825 # the default ld.so.conf also contains /usr/contrib/lib and
10826 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10827 # libtool to hard-code these into programs
10828 ;;
10829
10830cygwin* | mingw* | pw32*)
10831 version_type=windows
10832 shrext=".dll"
10833 need_version=no
10834 need_lib_prefix=no
10835
10836 case $GCC,$host_os in
10837 yes,cygwin* | yes,mingw* | yes,pw32*)
10838 library_names_spec='$libname.dll.a'
10839 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10840 postinstall_cmds='base_file=`basename \${file}`~
10841 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10842 dldir=$destdir/`dirname \$dlpath`~
10843 test -d \$dldir || mkdir -p \$dldir~
10844 $install_prog $dir/$dlname \$dldir/$dlname'
10845 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10846 dlpath=$dir/\$dldll~
10847 $rm \$dlpath'
10848 shlibpath_overrides_runpath=yes
10849
10850 case $host_os in
10851 cygwin*)
10852 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10853 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10854 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
10855 ;;
10856 mingw*)
10857 # MinGW DLLs use traditional 'lib' prefix
10858 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10859 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10860 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10861 # It is most probably a Windows format PATH printed by
10862 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10863 # path with ; separators, and with drive letters. We can handle the
10864 # drive letters (cygwin fileutils understands them), so leave them,
10865 # especially as we might pass files found there to a mingw objdump,
10866 # which wouldn't understand a cygwinified path. Ahh.
10867 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10868 else
10869 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10870 fi
10871 ;;
10872 pw32*)
10873 # pw32 DLLs use 'pw' prefix rather than 'lib'
10874 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
10875 ;;
10876 esac
10877 ;;
10878
10879 *)
10880 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10881 ;;
10882 esac
10883 dynamic_linker='Win32 ld.exe'
10884 # FIXME: first we should search . and the directory the executable is in
10885 shlibpath_var=PATH
10886 ;;
10887
10888darwin* | rhapsody*)
10889 dynamic_linker="$host_os dyld"
10890 version_type=darwin
10891 need_lib_prefix=no
10892 need_version=no
10893 # FIXME: Relying on posixy $() will cause problems for
10894 # cross-compilation, but unfortunately the echo tests do not
10895 # yet detect zsh echo's removal of \ escapes.
10896 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10897 soname_spec='${libname}${release}${major}$shared_ext'
10898 shlibpath_overrides_runpath=yes
10899 shlibpath_var=DYLD_LIBRARY_PATH
10900 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
10901 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10902 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
10903 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"`
10904 fi
10905 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10906 ;;
10907
10908dgux*)
10909 version_type=linux
10910 need_lib_prefix=no
10911 need_version=no
10912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10913 soname_spec='${libname}${release}${shared_ext}$major'
10914 shlibpath_var=LD_LIBRARY_PATH
10915 ;;
10916
10917freebsd1*)
10918 dynamic_linker=no
10919 ;;
10920
10921freebsd*)
10922 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
10923 version_type=freebsd-$objformat
10924 case $version_type in
10925 freebsd-elf*)
10926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10927 need_version=no
10928 need_lib_prefix=no
10929 ;;
10930 freebsd-*)
10931 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10932 need_version=yes
10933 ;;
10934 esac
10935 shlibpath_var=LD_LIBRARY_PATH
10936 case $host_os in
10937 freebsd2*)
10938 shlibpath_overrides_runpath=yes
10939 ;;
10940 freebsd3.01* | freebsdelf3.01*)
10941 shlibpath_overrides_runpath=yes
10942 hardcode_into_libs=yes
10943 ;;
10944 *) # from 3.2 on
10945 shlibpath_overrides_runpath=no
10946 hardcode_into_libs=yes
10947 ;;
10948 esac
10949 ;;
10950
10951gnu*)
10952 version_type=linux
10953 need_lib_prefix=no
10954 need_version=no
10955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10956 soname_spec='${libname}${release}${shared_ext}$major'
10957 shlibpath_var=LD_LIBRARY_PATH
10958 hardcode_into_libs=yes
10959 ;;
10960
10961hpux9* | hpux10* | hpux11*)
10962 # Give a soname corresponding to the major version so that dld.sl refuses to
10963 # link against other versions.
10964 version_type=sunos
10965 need_lib_prefix=no
10966 need_version=no
10967 case "$host_cpu" in
10968 ia64*)
10969 shrext='.so'
10970 hardcode_into_libs=yes
10971 dynamic_linker="$host_os dld.so"
10972 shlibpath_var=LD_LIBRARY_PATH
10973 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10975 soname_spec='${libname}${release}${shared_ext}$major'
10976 if test "X$HPUX_IA64_MODE" = X32; then
10977 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10978 else
10979 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10980 fi
10981 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10982 ;;
10983 hppa*64*)
10984 shrext='.sl'
10985 hardcode_into_libs=yes
10986 dynamic_linker="$host_os dld.sl"
10987 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10988 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10990 soname_spec='${libname}${release}${shared_ext}$major'
10991 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10992 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10993 ;;
10994 *)
10995 shrext='.sl'
10996 dynamic_linker="$host_os dld.sl"
10997 shlibpath_var=SHLIB_PATH
10998 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11000 soname_spec='${libname}${release}${shared_ext}$major'
11001 ;;
11002 esac
11003 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11004 postinstall_cmds='chmod 555 $lib'
11005 ;;
11006
11007irix5* | irix6* | nonstopux*)
11008 case $host_os in
11009 nonstopux*) version_type=nonstopux ;;
11010 *)
11011 if test "$lt_cv_prog_gnu_ld" = yes; then
11012 version_type=linux
11013 else
11014 version_type=irix
11015 fi ;;
11016 esac
11017 need_lib_prefix=no
11018 need_version=no
11019 soname_spec='${libname}${release}${shared_ext}$major'
11020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11021 case $host_os in
11022 irix5* | nonstopux*)
11023 libsuff= shlibsuff=
11024 ;;
11025 *)
11026 case $LD in # libtool.m4 will add one of these switches to LD
11027 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11028 libsuff= shlibsuff= libmagic=32-bit;;
11029 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11030 libsuff=32 shlibsuff=N32 libmagic=N32;;
11031 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11032 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11033 *) libsuff= shlibsuff= libmagic=never-match;;
11034 esac
11035 ;;
11036 esac
11037 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11038 shlibpath_overrides_runpath=no
11039 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11040 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11041 hardcode_into_libs=yes
11042 ;;
11043
11044# No shared lib support for Linux oldld, aout, or coff.
11045linux*oldld* | linux*aout* | linux*coff*)
11046 dynamic_linker=no
11047 ;;
11048
11049# This must be Linux ELF.
11050linux*)
11051 version_type=linux
11052 need_lib_prefix=no
11053 need_version=no
11054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11055 soname_spec='${libname}${release}${shared_ext}$major'
11056 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11057 shlibpath_var=LD_LIBRARY_PATH
11058 shlibpath_overrides_runpath=no
11059 # This implies no fast_install, which is unacceptable.
11060 # Some rework will be needed to allow for fast_install
11061 # before this can be enabled.
11062 hardcode_into_libs=yes
11063
11064 # We used to test for /lib/ld.so.1 and disable shared libraries on
11065 # powerpc, because MkLinux only supported shared libraries with the
11066 # GNU dynamic linker. Since this was broken with cross compilers,
11067 # most powerpc-linux boxes support dynamic linking these days and
11068 # people can always --disable-shared, the test was removed, and we
11069 # assume the GNU/Linux dynamic linker is in use.
11070 dynamic_linker='GNU/Linux ld.so'
11071 ;;
11072
11073netbsd*)
11074 version_type=sunos
11075 need_lib_prefix=no
11076 need_version=no
11077 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11079 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11080 dynamic_linker='NetBSD (a.out) ld.so'
11081 else
11082 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
11083 soname_spec='${libname}${release}${shared_ext}$major'
11084 dynamic_linker='NetBSD ld.elf_so'
11085 fi
11086 shlibpath_var=LD_LIBRARY_PATH
11087 shlibpath_overrides_runpath=yes
11088 hardcode_into_libs=yes
11089 ;;
11090
11091newsos6)
11092 version_type=linux
11093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11094 shlibpath_var=LD_LIBRARY_PATH
11095 shlibpath_overrides_runpath=yes
11096 ;;
11097
11098nto-qnx)
11099 version_type=linux
11100 need_lib_prefix=no
11101 need_version=no
11102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11103 soname_spec='${libname}${release}${shared_ext}$major'
11104 shlibpath_var=LD_LIBRARY_PATH
11105 shlibpath_overrides_runpath=yes
11106 ;;
11107
11108openbsd*)
11109 version_type=sunos
11110 need_lib_prefix=no
11111 need_version=no
11112 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11113 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11114 shlibpath_var=LD_LIBRARY_PATH
11115 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11116 case $host_os in
11117 openbsd2.[89] | openbsd2.[89].*)
11118 shlibpath_overrides_runpath=no
11119 ;;
11120 *)
11121 shlibpath_overrides_runpath=yes
11122 ;;
11123 esac
11124 else
11125 shlibpath_overrides_runpath=yes
11126 fi
11127 ;;
11128
11129os2*)
11130 libname_spec='$name'
11131 shrext=".dll"
11132 need_lib_prefix=no
11133 library_names_spec='$libname${shared_ext} $libname.a'
11134 dynamic_linker='OS/2 ld.exe'
11135 shlibpath_var=LIBPATH
11136 ;;
11137
11138osf3* | osf4* | osf5*)
11139 version_type=osf
11140 need_lib_prefix=no
11141 need_version=no
11142 soname_spec='${libname}${release}${shared_ext}$major'
11143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11144 shlibpath_var=LD_LIBRARY_PATH
11145 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11146 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11147 ;;
11148
11149sco3.2v5*)
11150 version_type=osf
11151 soname_spec='${libname}${release}${shared_ext}$major'
11152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11153 shlibpath_var=LD_LIBRARY_PATH
11154 ;;
11155
11156solaris*)
11157 version_type=linux
11158 need_lib_prefix=no
11159 need_version=no
11160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11161 soname_spec='${libname}${release}${shared_ext}$major'
11162 shlibpath_var=LD_LIBRARY_PATH
11163 shlibpath_overrides_runpath=yes
11164 hardcode_into_libs=yes
11165 # ldd complains unless libraries are executable
11166 postinstall_cmds='chmod +x $lib'
11167 ;;
11168
11169sunos4*)
11170 version_type=sunos
11171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11172 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11173 shlibpath_var=LD_LIBRARY_PATH
11174 shlibpath_overrides_runpath=yes
11175 if test "$with_gnu_ld" = yes; then
11176 need_lib_prefix=no
11177 fi
11178 need_version=yes
11179 ;;
11180
11181sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11182 version_type=linux
11183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11184 soname_spec='${libname}${release}${shared_ext}$major'
11185 shlibpath_var=LD_LIBRARY_PATH
11186 case $host_vendor in
11187 sni)
11188 shlibpath_overrides_runpath=no
11189 need_lib_prefix=no
11190 export_dynamic_flag_spec='${wl}-Blargedynsym'
11191 runpath_var=LD_RUN_PATH
11192 ;;
11193 siemens)
11194 need_lib_prefix=no
11195 ;;
11196 motorola)
11197 need_lib_prefix=no
11198 need_version=no
11199 shlibpath_overrides_runpath=no
11200 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11201 ;;
11202 esac
11203 ;;
11204
11205sysv4*MP*)
11206 if test -d /usr/nec ;then
11207 version_type=linux
11208 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11209 soname_spec='$libname${shared_ext}.$major'
11210 shlibpath_var=LD_LIBRARY_PATH
11211 fi
11212 ;;
11213
11214uts4*)
11215 version_type=linux
11216 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11217 soname_spec='${libname}${release}${shared_ext}$major'
11218 shlibpath_var=LD_LIBRARY_PATH
11219 ;;
11220
11221*)
11222 dynamic_linker=no
11223 ;;
11224esac
11225echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11226echo "${ECHO_T}$dynamic_linker" >&6
11227test "$dynamic_linker" = no && can_build_shared=no
11228
11229if test "x$enable_dlopen" != xyes; then
11230 enable_dlopen=unknown
11231 enable_dlopen_self=unknown
11232 enable_dlopen_self_static=unknown
11233else
11234 lt_cv_dlopen=no
11235 lt_cv_dlopen_libs=
11236
11237 case $host_os in
11238 beos*)
11239 lt_cv_dlopen="load_add_on"
11240 lt_cv_dlopen_libs=
11241 lt_cv_dlopen_self=yes
11242 ;;
11243
11244 mingw* | pw32*)
11245 lt_cv_dlopen="LoadLibrary"
11246 lt_cv_dlopen_libs=
11247 ;;
11248
11249 cygwin*)
11250 lt_cv_dlopen="dlopen"
11251 lt_cv_dlopen_libs=
11252 ;;
11253
11254 darwin*)
11255 # if libdl is installed we need to link against it
11256 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11257echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11258if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11259 echo $ECHO_N "(cached) $ECHO_C" >&6
11260else
11261 ac_check_lib_save_LIBS=$LIBS
11262LIBS="-ldl $LIBS"
11263cat >conftest.$ac_ext <<_ACEOF
11264#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011265/* confdefs.h. */
11266_ACEOF
11267cat confdefs.h >>conftest.$ac_ext
11268cat >>conftest.$ac_ext <<_ACEOF
11269/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011270
11271/* Override any gcc2 internal prototype to avoid an error. */
11272#ifdef __cplusplus
11273extern "C"
11274#endif
11275/* We use char because int might match the return type of a gcc2
11276 builtin and then its argument prototype would still apply. */
11277char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011278int
11279main ()
11280{
11281dlopen ();
11282 ;
11283 return 0;
11284}
11285_ACEOF
11286rm -f conftest.$ac_objext conftest$ac_exeext
11287if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11288 (eval $ac_link) 2>&5
11289 ac_status=$?
11290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11291 (exit $ac_status); } &&
11292 { ac_try='test -s conftest$ac_exeext'
11293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11294 (eval $ac_try) 2>&5
11295 ac_status=$?
11296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11297 (exit $ac_status); }; }; then
11298 ac_cv_lib_dl_dlopen=yes
11299else
11300 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011301sed 's/^/| /' conftest.$ac_ext >&5
11302
John Criswell47fdd832003-07-14 16:52:07 +000011303ac_cv_lib_dl_dlopen=no
11304fi
11305rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11306LIBS=$ac_check_lib_save_LIBS
11307fi
11308echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11309echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11310if test $ac_cv_lib_dl_dlopen = yes; then
11311 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11312else
11313
11314 lt_cv_dlopen="dyld"
11315 lt_cv_dlopen_libs=
11316 lt_cv_dlopen_self=yes
11317
11318fi
11319
11320 ;;
11321
11322 *)
11323 echo "$as_me:$LINENO: checking for shl_load" >&5
11324echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11325if test "${ac_cv_func_shl_load+set}" = set; then
11326 echo $ECHO_N "(cached) $ECHO_C" >&6
11327else
11328 cat >conftest.$ac_ext <<_ACEOF
11329#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011330/* confdefs.h. */
11331_ACEOF
11332cat confdefs.h >>conftest.$ac_ext
11333cat >>conftest.$ac_ext <<_ACEOF
11334/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011335/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000011336 which can conflict with char shl_load (); below.
11337 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11338 <limits.h> exists even on freestanding compilers. */
11339#ifdef __STDC__
11340# include <limits.h>
11341#else
11342# include <assert.h>
11343#endif
John Criswell47fdd832003-07-14 16:52:07 +000011344/* Override any gcc2 internal prototype to avoid an error. */
11345#ifdef __cplusplus
11346extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000011347{
John Criswell47fdd832003-07-14 16:52:07 +000011348#endif
11349/* We use char because int might match the return type of a gcc2
11350 builtin and then its argument prototype would still apply. */
11351char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000011352/* The GNU C library defines this for functions which it implements
11353 to always fail with ENOSYS. Some functions are actually named
11354 something starting with __ and the normal name is an alias. */
11355#if defined (__stub_shl_load) || defined (__stub___shl_load)
11356choke me
11357#else
John Criswell0c38eaf2003-09-10 15:17:25 +000011358char (*f) () = shl_load;
11359#endif
11360#ifdef __cplusplus
11361}
John Criswell47fdd832003-07-14 16:52:07 +000011362#endif
11363
John Criswell0c38eaf2003-09-10 15:17:25 +000011364int
11365main ()
11366{
11367return f != shl_load;
John Criswell47fdd832003-07-14 16:52:07 +000011368 ;
11369 return 0;
11370}
11371_ACEOF
11372rm -f conftest.$ac_objext conftest$ac_exeext
11373if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11374 (eval $ac_link) 2>&5
11375 ac_status=$?
11376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11377 (exit $ac_status); } &&
11378 { ac_try='test -s conftest$ac_exeext'
11379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11380 (eval $ac_try) 2>&5
11381 ac_status=$?
11382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11383 (exit $ac_status); }; }; then
11384 ac_cv_func_shl_load=yes
11385else
11386 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011387sed 's/^/| /' conftest.$ac_ext >&5
11388
John Criswell47fdd832003-07-14 16:52:07 +000011389ac_cv_func_shl_load=no
11390fi
11391rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11392fi
11393echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11394echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11395if test $ac_cv_func_shl_load = yes; then
11396 lt_cv_dlopen="shl_load"
11397else
11398 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11399echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11400if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11401 echo $ECHO_N "(cached) $ECHO_C" >&6
11402else
11403 ac_check_lib_save_LIBS=$LIBS
11404LIBS="-ldld $LIBS"
11405cat >conftest.$ac_ext <<_ACEOF
11406#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011407/* confdefs.h. */
11408_ACEOF
11409cat confdefs.h >>conftest.$ac_ext
11410cat >>conftest.$ac_ext <<_ACEOF
11411/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011412
11413/* Override any gcc2 internal prototype to avoid an error. */
11414#ifdef __cplusplus
11415extern "C"
11416#endif
11417/* We use char because int might match the return type of a gcc2
11418 builtin and then its argument prototype would still apply. */
11419char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000011420int
11421main ()
11422{
11423shl_load ();
11424 ;
11425 return 0;
11426}
11427_ACEOF
11428rm -f conftest.$ac_objext conftest$ac_exeext
11429if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11430 (eval $ac_link) 2>&5
11431 ac_status=$?
11432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11433 (exit $ac_status); } &&
11434 { ac_try='test -s conftest$ac_exeext'
11435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11436 (eval $ac_try) 2>&5
11437 ac_status=$?
11438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11439 (exit $ac_status); }; }; then
11440 ac_cv_lib_dld_shl_load=yes
11441else
11442 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011443sed 's/^/| /' conftest.$ac_ext >&5
11444
John Criswell47fdd832003-07-14 16:52:07 +000011445ac_cv_lib_dld_shl_load=no
11446fi
11447rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11448LIBS=$ac_check_lib_save_LIBS
11449fi
11450echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11451echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11452if test $ac_cv_lib_dld_shl_load = yes; then
11453 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11454else
11455 echo "$as_me:$LINENO: checking for dlopen" >&5
11456echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11457if test "${ac_cv_func_dlopen+set}" = set; then
11458 echo $ECHO_N "(cached) $ECHO_C" >&6
11459else
11460 cat >conftest.$ac_ext <<_ACEOF
11461#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011462/* confdefs.h. */
11463_ACEOF
11464cat confdefs.h >>conftest.$ac_ext
11465cat >>conftest.$ac_ext <<_ACEOF
11466/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011467/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000011468 which can conflict with char dlopen (); below.
11469 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11470 <limits.h> exists even on freestanding compilers. */
11471#ifdef __STDC__
11472# include <limits.h>
11473#else
11474# include <assert.h>
11475#endif
John Criswell47fdd832003-07-14 16:52:07 +000011476/* Override any gcc2 internal prototype to avoid an error. */
11477#ifdef __cplusplus
11478extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000011479{
John Criswell47fdd832003-07-14 16:52:07 +000011480#endif
11481/* We use char because int might match the return type of a gcc2
11482 builtin and then its argument prototype would still apply. */
11483char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011484/* The GNU C library defines this for functions which it implements
11485 to always fail with ENOSYS. Some functions are actually named
11486 something starting with __ and the normal name is an alias. */
11487#if defined (__stub_dlopen) || defined (__stub___dlopen)
11488choke me
11489#else
John Criswell0c38eaf2003-09-10 15:17:25 +000011490char (*f) () = dlopen;
11491#endif
11492#ifdef __cplusplus
11493}
John Criswell47fdd832003-07-14 16:52:07 +000011494#endif
11495
John Criswell0c38eaf2003-09-10 15:17:25 +000011496int
11497main ()
11498{
11499return f != dlopen;
John Criswell47fdd832003-07-14 16:52:07 +000011500 ;
11501 return 0;
11502}
11503_ACEOF
11504rm -f conftest.$ac_objext conftest$ac_exeext
11505if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11506 (eval $ac_link) 2>&5
11507 ac_status=$?
11508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11509 (exit $ac_status); } &&
11510 { ac_try='test -s conftest$ac_exeext'
11511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11512 (eval $ac_try) 2>&5
11513 ac_status=$?
11514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11515 (exit $ac_status); }; }; then
11516 ac_cv_func_dlopen=yes
11517else
11518 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011519sed 's/^/| /' conftest.$ac_ext >&5
11520
John Criswell47fdd832003-07-14 16:52:07 +000011521ac_cv_func_dlopen=no
11522fi
11523rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11524fi
11525echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11526echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11527if test $ac_cv_func_dlopen = yes; then
11528 lt_cv_dlopen="dlopen"
11529else
11530 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11531echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11532if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11533 echo $ECHO_N "(cached) $ECHO_C" >&6
11534else
11535 ac_check_lib_save_LIBS=$LIBS
11536LIBS="-ldl $LIBS"
11537cat >conftest.$ac_ext <<_ACEOF
11538#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011539/* confdefs.h. */
11540_ACEOF
11541cat confdefs.h >>conftest.$ac_ext
11542cat >>conftest.$ac_ext <<_ACEOF
11543/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011544
11545/* Override any gcc2 internal prototype to avoid an error. */
11546#ifdef __cplusplus
11547extern "C"
11548#endif
11549/* We use char because int might match the return type of a gcc2
11550 builtin and then its argument prototype would still apply. */
11551char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011552int
11553main ()
11554{
11555dlopen ();
11556 ;
11557 return 0;
11558}
11559_ACEOF
11560rm -f conftest.$ac_objext conftest$ac_exeext
11561if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11562 (eval $ac_link) 2>&5
11563 ac_status=$?
11564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11565 (exit $ac_status); } &&
11566 { ac_try='test -s conftest$ac_exeext'
11567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11568 (eval $ac_try) 2>&5
11569 ac_status=$?
11570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11571 (exit $ac_status); }; }; then
11572 ac_cv_lib_dl_dlopen=yes
11573else
11574 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011575sed 's/^/| /' conftest.$ac_ext >&5
11576
John Criswell47fdd832003-07-14 16:52:07 +000011577ac_cv_lib_dl_dlopen=no
11578fi
11579rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11580LIBS=$ac_check_lib_save_LIBS
11581fi
11582echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11583echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11584if test $ac_cv_lib_dl_dlopen = yes; then
11585 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11586else
11587 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11588echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11589if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11590 echo $ECHO_N "(cached) $ECHO_C" >&6
11591else
11592 ac_check_lib_save_LIBS=$LIBS
11593LIBS="-lsvld $LIBS"
11594cat >conftest.$ac_ext <<_ACEOF
11595#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011596/* confdefs.h. */
11597_ACEOF
11598cat confdefs.h >>conftest.$ac_ext
11599cat >>conftest.$ac_ext <<_ACEOF
11600/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011601
11602/* Override any gcc2 internal prototype to avoid an error. */
11603#ifdef __cplusplus
11604extern "C"
11605#endif
11606/* We use char because int might match the return type of a gcc2
11607 builtin and then its argument prototype would still apply. */
11608char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011609int
11610main ()
11611{
11612dlopen ();
11613 ;
11614 return 0;
11615}
11616_ACEOF
11617rm -f conftest.$ac_objext conftest$ac_exeext
11618if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11619 (eval $ac_link) 2>&5
11620 ac_status=$?
11621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11622 (exit $ac_status); } &&
11623 { ac_try='test -s conftest$ac_exeext'
11624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11625 (eval $ac_try) 2>&5
11626 ac_status=$?
11627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11628 (exit $ac_status); }; }; then
11629 ac_cv_lib_svld_dlopen=yes
11630else
11631 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011632sed 's/^/| /' conftest.$ac_ext >&5
11633
John Criswell47fdd832003-07-14 16:52:07 +000011634ac_cv_lib_svld_dlopen=no
11635fi
11636rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11637LIBS=$ac_check_lib_save_LIBS
11638fi
11639echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11640echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11641if test $ac_cv_lib_svld_dlopen = yes; then
11642 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11643else
11644 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11645echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
11646if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11647 echo $ECHO_N "(cached) $ECHO_C" >&6
11648else
11649 ac_check_lib_save_LIBS=$LIBS
11650LIBS="-ldld $LIBS"
11651cat >conftest.$ac_ext <<_ACEOF
11652#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011653/* confdefs.h. */
11654_ACEOF
11655cat confdefs.h >>conftest.$ac_ext
11656cat >>conftest.$ac_ext <<_ACEOF
11657/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011658
11659/* Override any gcc2 internal prototype to avoid an error. */
11660#ifdef __cplusplus
11661extern "C"
11662#endif
11663/* We use char because int might match the return type of a gcc2
11664 builtin and then its argument prototype would still apply. */
11665char dld_link ();
John Criswell47fdd832003-07-14 16:52:07 +000011666int
11667main ()
11668{
11669dld_link ();
11670 ;
11671 return 0;
11672}
11673_ACEOF
11674rm -f conftest.$ac_objext conftest$ac_exeext
11675if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11676 (eval $ac_link) 2>&5
11677 ac_status=$?
11678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11679 (exit $ac_status); } &&
11680 { ac_try='test -s conftest$ac_exeext'
11681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11682 (eval $ac_try) 2>&5
11683 ac_status=$?
11684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11685 (exit $ac_status); }; }; then
11686 ac_cv_lib_dld_dld_link=yes
11687else
11688 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011689sed 's/^/| /' conftest.$ac_ext >&5
11690
John Criswell47fdd832003-07-14 16:52:07 +000011691ac_cv_lib_dld_dld_link=no
11692fi
11693rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11694LIBS=$ac_check_lib_save_LIBS
11695fi
11696echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11697echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
11698if test $ac_cv_lib_dld_dld_link = yes; then
11699 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11700fi
11701
11702
11703fi
11704
11705
11706fi
11707
11708
11709fi
11710
11711
11712fi
11713
11714
11715fi
11716
11717 ;;
11718 esac
11719
11720 if test "x$lt_cv_dlopen" != xno; then
11721 enable_dlopen=yes
11722 else
11723 enable_dlopen=no
11724 fi
11725
11726 case $lt_cv_dlopen in
11727 dlopen)
11728 save_CPPFLAGS="$CPPFLAGS"
11729 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11730
11731 save_LDFLAGS="$LDFLAGS"
11732 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11733
11734 save_LIBS="$LIBS"
11735 LIBS="$lt_cv_dlopen_libs $LIBS"
11736
11737 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11738echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11739if test "${lt_cv_dlopen_self+set}" = set; then
11740 echo $ECHO_N "(cached) $ECHO_C" >&6
11741else
11742 if test "$cross_compiling" = yes; then :
11743 lt_cv_dlopen_self=cross
11744else
11745 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11746 lt_status=$lt_dlunknown
11747 cat > conftest.$ac_ext <<EOF
John Criswell878be7d2004-02-24 21:43:38 +000011748#line 11744 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000011749#include "confdefs.h"
11750
11751#if HAVE_DLFCN_H
11752#include <dlfcn.h>
11753#endif
11754
11755#include <stdio.h>
11756
11757#ifdef RTLD_GLOBAL
11758# define LT_DLGLOBAL RTLD_GLOBAL
11759#else
11760# ifdef DL_GLOBAL
11761# define LT_DLGLOBAL DL_GLOBAL
11762# else
11763# define LT_DLGLOBAL 0
11764# endif
11765#endif
11766
11767/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11768 find out it does not work in some platform. */
11769#ifndef LT_DLLAZY_OR_NOW
11770# ifdef RTLD_LAZY
11771# define LT_DLLAZY_OR_NOW RTLD_LAZY
11772# else
11773# ifdef DL_LAZY
11774# define LT_DLLAZY_OR_NOW DL_LAZY
11775# else
11776# ifdef RTLD_NOW
11777# define LT_DLLAZY_OR_NOW RTLD_NOW
11778# else
11779# ifdef DL_NOW
11780# define LT_DLLAZY_OR_NOW DL_NOW
11781# else
11782# define LT_DLLAZY_OR_NOW 0
11783# endif
11784# endif
11785# endif
11786# endif
11787#endif
11788
11789#ifdef __cplusplus
11790extern "C" void exit (int);
11791#endif
11792
11793void fnord() { int i=42;}
11794int main ()
11795{
11796 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11797 int status = $lt_dlunknown;
11798
11799 if (self)
11800 {
11801 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11802 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11803 /* dlclose (self); */
11804 }
11805
11806 exit (status);
11807}
11808EOF
11809 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11810 (eval $ac_link) 2>&5
11811 ac_status=$?
11812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11813 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11814 (./conftest; exit; ) 2>/dev/null
11815 lt_status=$?
11816 case x$lt_status in
11817 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11818 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11819 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
11820 esac
11821 else :
11822 # compilation failed
11823 lt_cv_dlopen_self=no
11824 fi
11825fi
11826rm -fr conftest*
11827
11828
11829fi
11830echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11831echo "${ECHO_T}$lt_cv_dlopen_self" >&6
11832
11833 if test "x$lt_cv_dlopen_self" = xyes; then
11834 LDFLAGS="$LDFLAGS $link_static_flag"
11835 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11836echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
11837if test "${lt_cv_dlopen_self_static+set}" = set; then
11838 echo $ECHO_N "(cached) $ECHO_C" >&6
11839else
11840 if test "$cross_compiling" = yes; then :
11841 lt_cv_dlopen_self_static=cross
11842else
11843 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11844 lt_status=$lt_dlunknown
11845 cat > conftest.$ac_ext <<EOF
John Criswell878be7d2004-02-24 21:43:38 +000011846#line 11842 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000011847#include "confdefs.h"
11848
11849#if HAVE_DLFCN_H
11850#include <dlfcn.h>
11851#endif
11852
11853#include <stdio.h>
11854
11855#ifdef RTLD_GLOBAL
11856# define LT_DLGLOBAL RTLD_GLOBAL
11857#else
11858# ifdef DL_GLOBAL
11859# define LT_DLGLOBAL DL_GLOBAL
11860# else
11861# define LT_DLGLOBAL 0
11862# endif
11863#endif
11864
11865/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11866 find out it does not work in some platform. */
11867#ifndef LT_DLLAZY_OR_NOW
11868# ifdef RTLD_LAZY
11869# define LT_DLLAZY_OR_NOW RTLD_LAZY
11870# else
11871# ifdef DL_LAZY
11872# define LT_DLLAZY_OR_NOW DL_LAZY
11873# else
11874# ifdef RTLD_NOW
11875# define LT_DLLAZY_OR_NOW RTLD_NOW
11876# else
11877# ifdef DL_NOW
11878# define LT_DLLAZY_OR_NOW DL_NOW
11879# else
11880# define LT_DLLAZY_OR_NOW 0
11881# endif
11882# endif
11883# endif
11884# endif
11885#endif
11886
11887#ifdef __cplusplus
11888extern "C" void exit (int);
11889#endif
11890
11891void fnord() { int i=42;}
11892int main ()
11893{
11894 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11895 int status = $lt_dlunknown;
11896
11897 if (self)
11898 {
11899 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11900 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11901 /* dlclose (self); */
11902 }
11903
11904 exit (status);
11905}
11906EOF
11907 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11908 (eval $ac_link) 2>&5
11909 ac_status=$?
11910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11911 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11912 (./conftest; exit; ) 2>/dev/null
11913 lt_status=$?
11914 case x$lt_status in
11915 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11916 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11917 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
11918 esac
11919 else :
11920 # compilation failed
11921 lt_cv_dlopen_self_static=no
11922 fi
11923fi
11924rm -fr conftest*
11925
11926
11927fi
11928echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11929echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
11930 fi
11931
11932 CPPFLAGS="$save_CPPFLAGS"
11933 LDFLAGS="$save_LDFLAGS"
11934 LIBS="$save_LIBS"
11935 ;;
11936 esac
11937
11938 case $lt_cv_dlopen_self in
11939 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11940 *) enable_dlopen_self=unknown ;;
11941 esac
11942
11943 case $lt_cv_dlopen_self_static in
11944 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11945 *) enable_dlopen_self_static=unknown ;;
11946 esac
11947fi
11948
11949
11950# The else clause should only fire when bootstrapping the
11951# libtool distribution, otherwise you forgot to ship ltmain.sh
11952# with your package, and you will get complaints that there are
11953# no rules to generate ltmain.sh.
11954if test -f "$ltmain"; then
11955 # See if we are running on zsh, and set the options which allow our commands through
11956 # without removal of \ escapes.
11957 if test -n "${ZSH_VERSION+set}" ; then
11958 setopt NO_GLOB_SUBST
11959 fi
11960 # Now quote all the things that may contain metacharacters while being
11961 # careful not to overquote the AC_SUBSTed values. We take copies of the
11962 # variables and quote the copies for generation of the libtool script.
11963 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
11964 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11965 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11966 deplibs_check_method reload_flag reload_cmds need_locks \
11967 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11968 lt_cv_sys_global_symbol_to_c_name_address \
11969 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11970 old_postinstall_cmds old_postuninstall_cmds \
11971 compiler_CXX \
11972 CC_CXX \
11973 LD_CXX \
11974 lt_prog_compiler_wl_CXX \
11975 lt_prog_compiler_pic_CXX \
11976 lt_prog_compiler_static_CXX \
11977 lt_prog_compiler_no_builtin_flag_CXX \
11978 export_dynamic_flag_spec_CXX \
11979 thread_safe_flag_spec_CXX \
11980 whole_archive_flag_spec_CXX \
11981 enable_shared_with_static_runtimes_CXX \
11982 old_archive_cmds_CXX \
11983 old_archive_from_new_cmds_CXX \
11984 predep_objects_CXX \
11985 postdep_objects_CXX \
11986 predeps_CXX \
11987 postdeps_CXX \
11988 compiler_lib_search_path_CXX \
11989 archive_cmds_CXX \
11990 archive_expsym_cmds_CXX \
11991 postinstall_cmds_CXX \
11992 postuninstall_cmds_CXX \
11993 old_archive_from_expsyms_cmds_CXX \
11994 allow_undefined_flag_CXX \
11995 no_undefined_flag_CXX \
11996 export_symbols_cmds_CXX \
11997 hardcode_libdir_flag_spec_CXX \
11998 hardcode_libdir_flag_spec_ld_CXX \
11999 hardcode_libdir_separator_CXX \
12000 hardcode_automatic_CXX \
12001 module_cmds_CXX \
12002 module_expsym_cmds_CXX \
12003 lt_cv_prog_compiler_c_o_CXX \
12004 exclude_expsyms_CXX \
12005 include_expsyms_CXX; do
12006
12007 case $var in
12008 old_archive_cmds_CXX | \
12009 old_archive_from_new_cmds_CXX | \
12010 archive_cmds_CXX | \
12011 archive_expsym_cmds_CXX | \
12012 module_cmds_CXX | \
12013 module_expsym_cmds_CXX | \
12014 old_archive_from_expsyms_cmds_CXX | \
12015 export_symbols_cmds_CXX | \
12016 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12017 postinstall_cmds | postuninstall_cmds | \
12018 old_postinstall_cmds | old_postuninstall_cmds | \
12019 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12020 # Double-quote double-evaled strings.
12021 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12022 ;;
12023 *)
12024 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12025 ;;
12026 esac
12027 done
12028
12029 case $lt_echo in
12030 *'\$0 --fallback-echo"')
12031 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12032 ;;
12033 esac
12034
12035cfgfile="$ofile"
12036
12037 cat <<__EOF__ >> "$cfgfile"
12038# ### BEGIN LIBTOOL TAG CONFIG: $tagname
12039
12040# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12041
12042# Shell to use when invoking shell scripts.
12043SHELL=$lt_SHELL
12044
12045# Whether or not to build shared libraries.
12046build_libtool_libs=$enable_shared
12047
12048# Whether or not to build static libraries.
12049build_old_libs=$enable_static
12050
12051# Whether or not to add -lc for building shared libraries.
12052build_libtool_need_lc=$archive_cmds_need_lc_CXX
12053
12054# Whether or not to disallow shared libs when runtime libs are static
12055allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12056
12057# Whether or not to optimize for fast installation.
12058fast_install=$enable_fast_install
12059
12060# The host system.
12061host_alias=$host_alias
12062host=$host
12063
12064# An echo program that does not interpret backslashes.
12065echo=$lt_echo
12066
12067# The archiver.
12068AR=$lt_AR
12069AR_FLAGS=$lt_AR_FLAGS
12070
12071# A C compiler.
12072LTCC=$lt_LTCC
12073
12074# A language-specific compiler.
12075CC=$lt_compiler_CXX
12076
12077# Is the compiler the GNU C compiler?
12078with_gcc=$GCC_CXX
12079
12080# An ERE matcher.
12081EGREP=$lt_EGREP
12082
12083# The linker used to build libraries.
12084LD=$lt_LD_CXX
12085
12086# Whether we need hard or soft links.
12087LN_S=$lt_LN_S
12088
12089# A BSD-compatible nm program.
12090NM=$lt_NM
12091
12092# A symbol stripping program
12093STRIP=$STRIP
12094
12095# Used to examine libraries when file_magic_cmd begins "file"
12096MAGIC_CMD=$MAGIC_CMD
12097
12098# Used on cygwin: DLL creation program.
12099DLLTOOL="$DLLTOOL"
12100
12101# Used on cygwin: object dumper.
12102OBJDUMP="$OBJDUMP"
12103
12104# Used on cygwin: assembler.
12105AS="$AS"
12106
12107# The name of the directory that contains temporary libtool files.
12108objdir=$objdir
12109
12110# How to create reloadable object files.
12111reload_flag=$lt_reload_flag
12112reload_cmds=$lt_reload_cmds
12113
12114# How to pass a linker flag through the compiler.
12115wl=$lt_lt_prog_compiler_wl_CXX
12116
12117# Object file suffix (normally "o").
12118objext="$ac_objext"
12119
12120# Old archive suffix (normally "a").
12121libext="$libext"
12122
12123# Shared library suffix (normally ".so").
12124shrext='$shrext'
12125
12126# Executable file suffix (normally "").
12127exeext="$exeext"
12128
12129# Additional compiler flags for building library objects.
12130pic_flag=$lt_lt_prog_compiler_pic_CXX
12131pic_mode=$pic_mode
12132
12133# What is the maximum length of a command?
12134max_cmd_len=$lt_cv_sys_max_cmd_len
12135
12136# Does compiler simultaneously support -c and -o options?
12137compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12138
12139# Must we lock files when doing compilation ?
12140need_locks=$lt_need_locks
12141
12142# Do we need the lib prefix for modules?
12143need_lib_prefix=$need_lib_prefix
12144
12145# Do we need a version for libraries?
12146need_version=$need_version
12147
12148# Whether dlopen is supported.
12149dlopen_support=$enable_dlopen
12150
12151# Whether dlopen of programs is supported.
12152dlopen_self=$enable_dlopen_self
12153
12154# Whether dlopen of statically linked programs is supported.
12155dlopen_self_static=$enable_dlopen_self_static
12156
12157# Compiler flag to prevent dynamic linking.
12158link_static_flag=$lt_lt_prog_compiler_static_CXX
12159
12160# Compiler flag to turn off builtin functions.
12161no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12162
12163# Compiler flag to allow reflexive dlopens.
12164export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12165
12166# Compiler flag to generate shared objects directly from archives.
12167whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12168
12169# Compiler flag to generate thread-safe objects.
12170thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12171
12172# Library versioning type.
12173version_type=$version_type
12174
12175# Format of library name prefix.
12176libname_spec=$lt_libname_spec
12177
12178# List of archive names. First name is the real one, the rest are links.
12179# The last name is the one that the linker finds with -lNAME.
12180library_names_spec=$lt_library_names_spec
12181
12182# The coded name of the library, if different from the real name.
12183soname_spec=$lt_soname_spec
12184
12185# Commands used to build and install an old-style archive.
12186RANLIB=$lt_RANLIB
12187old_archive_cmds=$lt_old_archive_cmds_CXX
12188old_postinstall_cmds=$lt_old_postinstall_cmds
12189old_postuninstall_cmds=$lt_old_postuninstall_cmds
12190
12191# Create an old-style archive from a shared archive.
12192old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12193
12194# Create a temporary old-style archive to link instead of a shared archive.
12195old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12196
12197# Commands used to build and install a shared archive.
12198archive_cmds=$lt_archive_cmds_CXX
12199archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12200postinstall_cmds=$lt_postinstall_cmds
12201postuninstall_cmds=$lt_postuninstall_cmds
12202
12203# Commands used to build a loadable module (assumed same as above if empty)
12204module_cmds=$lt_module_cmds_CXX
12205module_expsym_cmds=$lt_module_expsym_cmds_CXX
12206
12207# Commands to strip libraries.
12208old_striplib=$lt_old_striplib
12209striplib=$lt_striplib
12210
12211# Dependencies to place before the objects being linked to create a
12212# shared library.
12213predep_objects=$lt_predep_objects_CXX
12214
12215# Dependencies to place after the objects being linked to create a
12216# shared library.
12217postdep_objects=$lt_postdep_objects_CXX
12218
12219# Dependencies to place before the objects being linked to create a
12220# shared library.
12221predeps=$lt_predeps_CXX
12222
12223# Dependencies to place after the objects being linked to create a
12224# shared library.
12225postdeps=$lt_postdeps_CXX
12226
12227# The library search path used internally by the compiler when linking
12228# a shared library.
12229compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12230
12231# Method to check whether dependent libraries are shared objects.
12232deplibs_check_method=$lt_deplibs_check_method
12233
12234# Command to use when deplibs_check_method == file_magic.
12235file_magic_cmd=$lt_file_magic_cmd
12236
12237# Flag that allows shared libraries with undefined symbols to be built.
12238allow_undefined_flag=$lt_allow_undefined_flag_CXX
12239
12240# Flag that forces no undefined symbols.
12241no_undefined_flag=$lt_no_undefined_flag_CXX
12242
12243# Commands used to finish a libtool library installation in a directory.
12244finish_cmds=$lt_finish_cmds
12245
12246# Same as above, but a single script fragment to be evaled but not shown.
12247finish_eval=$lt_finish_eval
12248
12249# Take the output of nm and produce a listing of raw symbols and C names.
12250global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12251
12252# Transform the output of nm in a proper C declaration
12253global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12254
12255# Transform the output of nm in a C name address pair
12256global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12257
12258# This is the shared library runtime path variable.
12259runpath_var=$runpath_var
12260
12261# This is the shared library path variable.
12262shlibpath_var=$shlibpath_var
12263
12264# Is shlibpath searched before the hard-coded library search path?
12265shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12266
12267# How to hardcode a shared library path into an executable.
12268hardcode_action=$hardcode_action_CXX
12269
12270# Whether we should hardcode library paths into libraries.
12271hardcode_into_libs=$hardcode_into_libs
12272
12273# Flag to hardcode \$libdir into a binary during linking.
12274# This must work even if \$libdir does not exist.
12275hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12276
12277# If ld is used when linking, flag to hardcode \$libdir into
12278# a binary during linking. This must work even if \$libdir does
12279# not exist.
12280hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12281
12282# Whether we need a single -rpath flag with a separated argument.
12283hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12284
12285# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12286# resulting binary.
12287hardcode_direct=$hardcode_direct_CXX
12288
12289# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12290# resulting binary.
12291hardcode_minus_L=$hardcode_minus_L_CXX
12292
12293# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12294# the resulting binary.
12295hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12296
12297# Set to yes if building a shared library automatically hardcodes DIR into the library
12298# and all subsequent libraries and executables linked against it.
12299hardcode_automatic=$hardcode_automatic_CXX
12300
12301# Variables whose values should be saved in libtool wrapper scripts and
12302# restored at relink time.
12303variables_saved_for_relink="$variables_saved_for_relink"
12304
12305# Whether libtool must link a program against all its dependency libraries.
12306link_all_deplibs=$link_all_deplibs_CXX
12307
12308# Compile-time system search path for libraries
12309sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12310
12311# Run-time system search path for libraries
12312sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12313
12314# Fix the shell variable \$srcfile for the compiler.
12315fix_srcfile_path="$fix_srcfile_path_CXX"
12316
12317# Set to yes if exported symbols are required.
12318always_export_symbols=$always_export_symbols_CXX
12319
12320# The commands to list exported symbols.
12321export_symbols_cmds=$lt_export_symbols_cmds_CXX
12322
12323# The commands to extract the exported symbol list from a shared archive.
12324extract_expsyms_cmds=$lt_extract_expsyms_cmds
12325
12326# Symbols that should not be listed in the preloaded symbols.
12327exclude_expsyms=$lt_exclude_expsyms_CXX
12328
12329# Symbols that must always be exported.
12330include_expsyms=$lt_include_expsyms_CXX
12331
12332# ### END LIBTOOL TAG CONFIG: $tagname
12333
12334__EOF__
12335
12336
12337else
12338 # If there is no Makefile yet, we rely on a make rule to execute
12339 # `config.status --recheck' to rerun these tests and create the
12340 # libtool script then.
12341 test -f Makefile && make "$ltmain"
12342fi
12343
12344
12345ac_ext=c
12346ac_cpp='$CPP $CPPFLAGS'
12347ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12348ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12349ac_compiler_gnu=$ac_cv_c_compiler_gnu
12350
12351CC=$lt_save_CC
12352LDCXX=$LD
12353LD=$lt_save_LD
12354GCC=$lt_save_GCC
12355with_gnu_ldcxx=$with_gnu_ld
12356with_gnu_ld=$lt_save_with_gnu_ld
12357lt_cv_path_LDCXX=$lt_cv_path_LD
12358lt_cv_path_LD=$lt_save_path_LD
12359lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12360lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12361
12362 else
12363 tagname=""
12364 fi
12365 ;;
12366
12367 F77)
12368 if test -n "$F77" && test "X$F77" != "Xno"; then
12369
12370ac_ext=f
12371ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12372ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12373ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12374
12375
12376archive_cmds_need_lc_F77=no
12377allow_undefined_flag_F77=
12378always_export_symbols_F77=no
12379archive_expsym_cmds_F77=
12380export_dynamic_flag_spec_F77=
12381hardcode_direct_F77=no
12382hardcode_libdir_flag_spec_F77=
12383hardcode_libdir_flag_spec_ld_F77=
12384hardcode_libdir_separator_F77=
12385hardcode_minus_L_F77=no
12386hardcode_automatic_F77=no
12387module_cmds_F77=
12388module_expsym_cmds_F77=
12389link_all_deplibs_F77=unknown
12390old_archive_cmds_F77=$old_archive_cmds
12391no_undefined_flag_F77=
12392whole_archive_flag_spec_F77=
12393enable_shared_with_static_runtimes_F77=no
12394
12395# Source file extension for f77 test sources.
12396ac_ext=f
12397
12398# Object file extension for compiled f77 test sources.
12399objext=o
12400objext_F77=$objext
12401
12402# Code to be used in simple compile tests
12403lt_simple_compile_test_code=" subroutine t\n return\n end\n"
12404
12405# Code to be used in simple link tests
12406lt_simple_link_test_code=" program t\n end\n"
12407
12408# ltmain only uses $CC for tagged configurations so make sure $CC is set.
12409
12410# If no C compiler was specified, use CC.
12411LTCC=${LTCC-"$CC"}
12412
12413# Allow CC to be a program name with arguments.
12414compiler=$CC
12415
12416
12417# Allow CC to be a program name with arguments.
12418lt_save_CC="$CC"
12419CC=${F77-"f77"}
12420compiler=$CC
12421compiler_F77=$CC
12422cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12423
12424echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12425echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12426echo "$as_me:$LINENO: result: $can_build_shared" >&5
12427echo "${ECHO_T}$can_build_shared" >&6
12428
12429echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12430echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12431test "$can_build_shared" = "no" && enable_shared=no
12432
12433# On AIX, shared libraries and static libraries use the same namespace, and
12434# are all built from PIC.
12435case "$host_os" in
12436aix3*)
12437 test "$enable_shared" = yes && enable_static=no
12438 if test -n "$RANLIB"; then
12439 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12440 postinstall_cmds='$RANLIB $lib'
12441 fi
12442 ;;
12443aix4*)
12444 test "$enable_shared" = yes && enable_static=no
12445 ;;
12446esac
12447echo "$as_me:$LINENO: result: $enable_shared" >&5
12448echo "${ECHO_T}$enable_shared" >&6
12449
12450echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12451echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12452# Make sure either enable_shared or enable_static is yes.
12453test "$enable_shared" = yes || enable_static=yes
12454echo "$as_me:$LINENO: result: $enable_static" >&5
12455echo "${ECHO_T}$enable_static" >&6
12456
12457test "$ld_shlibs_F77" = no && can_build_shared=no
12458
12459GCC_F77="$G77"
12460LD_F77="$LD"
12461
12462lt_prog_compiler_wl_F77=
12463lt_prog_compiler_pic_F77=
12464lt_prog_compiler_static_F77=
12465
12466echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12467echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12468
12469 if test "$GCC" = yes; then
12470 lt_prog_compiler_wl_F77='-Wl,'
12471 lt_prog_compiler_static_F77='-static'
12472
12473 case $host_os in
12474 aix*)
12475 # All AIX code is PIC.
12476 if test "$host_cpu" = ia64; then
12477 # AIX 5 now supports IA64 processor
12478 lt_prog_compiler_static_F77='-Bstatic'
12479 fi
12480 ;;
12481
12482 amigaos*)
12483 # FIXME: we need at least 68020 code to build shared libraries, but
12484 # adding the `-m68020' flag to GCC prevents building anything better,
12485 # like `-m68040'.
12486 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12487 ;;
12488
12489 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12490 # PIC is the default for these OSes.
12491 ;;
12492
12493 mingw* | pw32* | os2*)
12494 # This hack is so that the source file can tell whether it is being
12495 # built for inclusion in a dll (and should export symbols for example).
12496 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12497 ;;
12498
12499 darwin* | rhapsody*)
12500 # PIC is the default on this platform
12501 # Common symbols not allowed in MH_DYLIB files
12502 lt_prog_compiler_pic_F77='-fno-common'
12503 ;;
12504
12505 msdosdjgpp*)
12506 # Just because we use GCC doesn't mean we suddenly get shared libraries
12507 # on systems that don't support them.
12508 lt_prog_compiler_can_build_shared_F77=no
12509 enable_shared=no
12510 ;;
12511
12512 sysv4*MP*)
12513 if test -d /usr/nec; then
12514 lt_prog_compiler_pic_F77=-Kconform_pic
12515 fi
12516 ;;
12517
12518 hpux*)
12519 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12520 # not for PA HP-UX.
12521 case "$host_cpu" in
12522 hppa*64*|ia64*)
12523 # +Z the default
12524 ;;
12525 *)
12526 lt_prog_compiler_pic_F77='-fPIC'
12527 ;;
12528 esac
12529 ;;
12530
12531 *)
12532 lt_prog_compiler_pic_F77='-fPIC'
12533 ;;
12534 esac
12535 else
12536 # PORTME Check for flag to pass linker flags through the system compiler.
12537 case $host_os in
12538 aix*)
12539 lt_prog_compiler_wl_F77='-Wl,'
12540 if test "$host_cpu" = ia64; then
12541 # AIX 5 now supports IA64 processor
12542 lt_prog_compiler_static_F77='-Bstatic'
12543 else
12544 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12545 fi
12546 ;;
12547
12548 mingw* | pw32* | os2*)
12549 # This hack is so that the source file can tell whether it is being
12550 # built for inclusion in a dll (and should export symbols for example).
12551 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12552 ;;
12553
12554 hpux9* | hpux10* | hpux11*)
12555 lt_prog_compiler_wl_F77='-Wl,'
12556 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12557 # not for PA HP-UX.
12558 case "$host_cpu" in
12559 hppa*64*|ia64*)
12560 # +Z the default
12561 ;;
12562 *)
12563 lt_prog_compiler_pic_F77='+Z'
12564 ;;
12565 esac
12566 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12567 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
12568 ;;
12569
12570 irix5* | irix6* | nonstopux*)
12571 lt_prog_compiler_wl_F77='-Wl,'
12572 # PIC (with -KPIC) is the default.
12573 lt_prog_compiler_static_F77='-non_shared'
12574 ;;
12575
12576 newsos6)
12577 lt_prog_compiler_pic_F77='-KPIC'
12578 lt_prog_compiler_static_F77='-Bstatic'
12579 ;;
12580
12581 linux*)
12582 case $CC in
12583 icc|ecc)
12584 lt_prog_compiler_wl_F77='-Wl,'
12585 lt_prog_compiler_pic_F77='-KPIC'
12586 lt_prog_compiler_static_F77='-static'
12587 ;;
12588 ccc)
12589 lt_prog_compiler_wl_F77='-Wl,'
12590 # All Alpha code is PIC.
12591 lt_prog_compiler_static_F77='-non_shared'
12592 ;;
12593 esac
12594 ;;
12595
12596 osf3* | osf4* | osf5*)
12597 lt_prog_compiler_wl_F77='-Wl,'
12598 # All OSF/1 code is PIC.
12599 lt_prog_compiler_static_F77='-non_shared'
12600 ;;
12601
12602 sco3.2v5*)
12603 lt_prog_compiler_pic_F77='-Kpic'
12604 lt_prog_compiler_static_F77='-dn'
12605 ;;
12606
12607 solaris*)
12608 lt_prog_compiler_wl_F77='-Wl,'
12609 lt_prog_compiler_pic_F77='-KPIC'
12610 lt_prog_compiler_static_F77='-Bstatic'
12611 ;;
12612
12613 sunos4*)
12614 lt_prog_compiler_wl_F77='-Qoption ld '
12615 lt_prog_compiler_pic_F77='-PIC'
12616 lt_prog_compiler_static_F77='-Bstatic'
12617 ;;
12618
12619 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12620 lt_prog_compiler_wl_F77='-Wl,'
12621 lt_prog_compiler_pic_F77='-KPIC'
12622 lt_prog_compiler_static_F77='-Bstatic'
12623 ;;
12624
12625 sysv4*MP*)
12626 if test -d /usr/nec ;then
12627 lt_prog_compiler_pic_F77='-Kconform_pic'
12628 lt_prog_compiler_static_F77='-Bstatic'
12629 fi
12630 ;;
12631
12632 uts4*)
12633 lt_prog_compiler_pic_F77='-pic'
12634 lt_prog_compiler_static_F77='-Bstatic'
12635 ;;
12636
12637 *)
12638 lt_prog_compiler_can_build_shared_F77=no
12639 ;;
12640 esac
12641 fi
12642
12643echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
12644echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
12645
12646#
12647# Check to make sure the PIC flag actually works.
12648#
12649if test -n "$lt_prog_compiler_pic_F77"; then
12650 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
12651echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
12652if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
12653 echo $ECHO_N "(cached) $ECHO_C" >&6
12654else
12655 lt_prog_compiler_pic_works_F77=no
12656 ac_outfile=conftest.$ac_objext
12657 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12658 lt_compiler_flag="$lt_prog_compiler_pic_F77"
12659 # Insert the option either (1) after the last *FLAGS variable, or
12660 # (2) before a word containing "conftest.", or (3) at the end.
12661 # Note that $ac_compile itself does not contain backslashes and begins
12662 # with a dollar sign (not a hyphen), so the echo should work correctly.
12663 # The option is referenced via a variable to avoid confusing sed.
12664 lt_compile=`echo "$ac_compile" | $SED \
12665 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12666 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12667 -e 's:$: $lt_compiler_flag:'`
John Criswell878be7d2004-02-24 21:43:38 +000012668 (eval echo "\"\$as_me:12664: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000012669 (eval "$lt_compile" 2>conftest.err)
12670 ac_status=$?
12671 cat conftest.err >&5
John Criswell878be7d2004-02-24 21:43:38 +000012672 echo "$as_me:12668: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000012673 if (exit $ac_status) && test -s "$ac_outfile"; then
12674 # The compiler can only warn and ignore the option if not recognized
12675 # So say no if there are warnings
12676 if test ! -s conftest.err; then
12677 lt_prog_compiler_pic_works_F77=yes
12678 fi
12679 fi
12680 $rm conftest*
12681
12682fi
12683echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
12684echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
12685
12686if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
12687 case $lt_prog_compiler_pic_F77 in
12688 "" | " "*) ;;
12689 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
12690 esac
12691else
12692 lt_prog_compiler_pic_F77=
12693 lt_prog_compiler_can_build_shared_F77=no
12694fi
12695
12696fi
12697case "$host_os" in
12698 # For platforms which do not support PIC, -DPIC is meaningless:
12699 *djgpp*)
12700 lt_prog_compiler_pic_F77=
12701 ;;
12702 *)
12703 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
12704 ;;
12705esac
12706
12707echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12708echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12709if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
12710 echo $ECHO_N "(cached) $ECHO_C" >&6
12711else
12712 lt_cv_prog_compiler_c_o_F77=no
12713 $rm -r conftest 2>/dev/null
12714 mkdir conftest
12715 cd conftest
12716 mkdir out
12717 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12718
12719 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
12720 # that will create temporary files in the current directory regardless of
12721 # the output directory. Thus, making CWD read-only will cause this test
12722 # to fail, enabling locking or at least warning the user not to do parallel
12723 # builds.
12724 chmod -w .
12725
12726 lt_compiler_flag="-o out/conftest2.$ac_objext"
12727 # Insert the option either (1) after the last *FLAGS variable, or
12728 # (2) before a word containing "conftest.", or (3) at the end.
12729 # Note that $ac_compile itself does not contain backslashes and begins
12730 # with a dollar sign (not a hyphen), so the echo should work correctly.
12731 lt_compile=`echo "$ac_compile" | $SED \
12732 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12733 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12734 -e 's:$: $lt_compiler_flag:'`
John Criswell878be7d2004-02-24 21:43:38 +000012735 (eval echo "\"\$as_me:12731: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000012736 (eval "$lt_compile" 2>out/conftest.err)
12737 ac_status=$?
12738 cat out/conftest.err >&5
John Criswell878be7d2004-02-24 21:43:38 +000012739 echo "$as_me:12735: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000012740 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12741 then
12742 # The compiler can only warn and ignore the option if not recognized
12743 # So say no if there are warnings
12744 if test ! -s out/conftest.err; then
12745 lt_cv_prog_compiler_c_o_F77=yes
12746 fi
12747 fi
12748 chmod u+w .
12749 $rm conftest* out/*
12750 rmdir out
12751 cd ..
12752 rmdir conftest
12753 $rm conftest*
12754
12755fi
12756echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
12757echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
12758
12759
12760hard_links="nottested"
12761if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
12762 # do not overwrite the value of need_locks provided by the user
12763 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12764echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12765 hard_links=yes
12766 $rm conftest*
12767 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12768 touch conftest.a
12769 ln conftest.a conftest.b 2>&5 || hard_links=no
12770 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12771 echo "$as_me:$LINENO: result: $hard_links" >&5
12772echo "${ECHO_T}$hard_links" >&6
12773 if test "$hard_links" = no; then
12774 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12775echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12776 need_locks=warn
12777 fi
12778else
12779 need_locks=no
12780fi
12781
12782echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12783echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12784
12785 runpath_var=
12786 allow_undefined_flag_F77=
12787 enable_shared_with_static_runtimes_F77=no
12788 archive_cmds_F77=
12789 archive_expsym_cmds_F77=
12790 old_archive_From_new_cmds_F77=
12791 old_archive_from_expsyms_cmds_F77=
12792 export_dynamic_flag_spec_F77=
12793 whole_archive_flag_spec_F77=
12794 thread_safe_flag_spec_F77=
12795 hardcode_libdir_flag_spec_F77=
12796 hardcode_libdir_flag_spec_ld_F77=
12797 hardcode_libdir_separator_F77=
12798 hardcode_direct_F77=no
12799 hardcode_minus_L_F77=no
12800 hardcode_shlibpath_var_F77=unsupported
12801 link_all_deplibs_F77=unknown
12802 hardcode_automatic_F77=no
12803 module_cmds_F77=
12804 module_expsym_cmds_F77=
12805 always_export_symbols_F77=no
12806 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12807 # include_expsyms should be a list of space-separated symbols to be *always*
12808 # included in the symbol list
12809 include_expsyms_F77=
12810 # exclude_expsyms can be an extended regexp of symbols to exclude
12811 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12812 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12813 # as well as any symbol that contains `d'.
12814 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
12815 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12816 # platforms (ab)use it in PIC code, but their linkers get confused if
12817 # the symbol is explicitly referenced. Since portable code cannot
12818 # rely on this symbol name, it's probably fine to never include it in
12819 # preloaded symbol tables.
12820 extract_expsyms_cmds=
12821
12822 case $host_os in
12823 cygwin* | mingw* | pw32*)
12824 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12825 # When not using gcc, we currently assume that we are using
12826 # Microsoft Visual C++.
12827 if test "$GCC" != yes; then
12828 with_gnu_ld=no
12829 fi
12830 ;;
12831 openbsd*)
12832 with_gnu_ld=no
12833 ;;
12834 esac
12835
12836 ld_shlibs_F77=yes
12837 if test "$with_gnu_ld" = yes; then
12838 # If archive_cmds runs LD, not CC, wlarc should be empty
12839 wlarc='${wl}'
12840
12841 # See if GNU ld supports shared libraries.
12842 case $host_os in
12843 aix3* | aix4* | aix5*)
12844 # On AIX/PPC, the GNU linker is very broken
12845 if test "$host_cpu" != ia64; then
12846 ld_shlibs_F77=no
12847 cat <<EOF 1>&2
12848
12849*** Warning: the GNU linker, at least up to release 2.9.1, is reported
12850*** to be unable to reliably create shared libraries on AIX.
12851*** Therefore, libtool is disabling shared libraries support. If you
12852*** really care for shared libraries, you may want to modify your PATH
12853*** so that a non-GNU linker is found, and then restart.
12854
12855EOF
12856 fi
12857 ;;
12858
12859 amigaos*)
12860 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)'
12861 hardcode_libdir_flag_spec_F77='-L$libdir'
12862 hardcode_minus_L_F77=yes
12863
12864 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12865 # that the semantics of dynamic libraries on AmigaOS, at least up
12866 # to version 4, is to share data among multiple programs linked
12867 # with the same dynamic library. Since this doesn't match the
12868 # behavior of shared libraries on other platforms, we can't use
12869 # them.
12870 ld_shlibs_F77=no
12871 ;;
12872
12873 beos*)
12874 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12875 allow_undefined_flag_F77=unsupported
12876 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12877 # support --undefined. This deserves some investigation. FIXME
12878 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12879 else
12880 ld_shlibs_F77=no
12881 fi
12882 ;;
12883
12884 cygwin* | mingw* | pw32*)
12885 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
12886 # as there is no search path for DLLs.
12887 hardcode_libdir_flag_spec_F77='-L$libdir'
12888 allow_undefined_flag_F77=unsupported
12889 always_export_symbols_F77=no
12890 enable_shared_with_static_runtimes_F77=yes
12891 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12892
12893 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12894 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12895 # If the export-symbols file already is a .def file (1st line
12896 # is EXPORTS), use it as is; otherwise, prepend...
12897 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12898 cp $export_symbols $output_objdir/$soname.def;
12899 else
12900 echo EXPORTS > $output_objdir/$soname.def;
12901 cat $export_symbols >> $output_objdir/$soname.def;
12902 fi~
12903 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12904 else
12905 ld_shlibs=no
12906 fi
12907 ;;
12908
12909 netbsd*)
12910 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12911 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12912 wlarc=
12913 else
12914 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12915 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12916 fi
12917 ;;
12918
12919 solaris* | sysv5*)
12920 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12921 ld_shlibs_F77=no
12922 cat <<EOF 1>&2
12923
12924*** Warning: The releases 2.8.* of the GNU linker cannot reliably
12925*** create shared libraries on Solaris systems. Therefore, libtool
12926*** is disabling shared libraries support. We urge you to upgrade GNU
12927*** binutils to release 2.9.1 or newer. Another option is to modify
12928*** your PATH or compiler configuration so that the native linker is
12929*** used, and then restart.
12930
12931EOF
12932 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12933 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12934 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12935 else
12936 ld_shlibs_F77=no
12937 fi
12938 ;;
12939
12940 sunos4*)
12941 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12942 wlarc=
12943 hardcode_direct_F77=yes
12944 hardcode_shlibpath_var_F77=no
12945 ;;
12946
12947 *)
12948 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12949 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12950 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12951 else
12952 ld_shlibs_F77=no
12953 fi
12954 ;;
12955 esac
12956
12957 if test "$ld_shlibs_F77" = yes; then
12958 runpath_var=LD_RUN_PATH
12959 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
12960 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
12961 # ancient GNU ld didn't support --whole-archive et. al.
12962 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
12963 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12964 else
12965 whole_archive_flag_spec_F77=
12966 fi
12967 fi
12968 else
12969 # PORTME fill in a description of your system's linker (not GNU ld)
12970 case $host_os in
12971 aix3*)
12972 allow_undefined_flag_F77=unsupported
12973 always_export_symbols_F77=yes
12974 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'
12975 # Note: this linker hardcodes the directories in LIBPATH if there
12976 # are no directories specified by -L.
12977 hardcode_minus_L_F77=yes
12978 if test "$GCC" = yes && test -z "$link_static_flag"; then
12979 # Neither direct hardcoding nor static linking is supported with a
12980 # broken collect2.
12981 hardcode_direct_F77=unsupported
12982 fi
12983 ;;
12984
12985 aix4* | aix5*)
12986 if test "$host_cpu" = ia64; then
12987 # On IA64, the linker does run time linking by default, so we don't
12988 # have to do anything special.
12989 aix_use_runtimelinking=no
12990 exp_sym_flag='-Bexport'
12991 no_entry_flag=""
12992 else
12993 # If we're using GNU nm, then we don't want the "-C" option.
12994 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12995 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12996 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'
12997 else
12998 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'
12999 fi
13000 aix_use_runtimelinking=no
13001
13002 # Test if we are trying to use run time linking or normal
13003 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13004 # need to do runtime linking.
13005 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13006 for ld_flag in $LDFLAGS; do
13007 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13008 aix_use_runtimelinking=yes
13009 break
13010 fi
13011 done
13012 esac
13013
13014 exp_sym_flag='-bexport'
13015 no_entry_flag='-bnoentry'
13016 fi
13017
13018 # When large executables or shared objects are built, AIX ld can
13019 # have problems creating the table of contents. If linking a library
13020 # or program results in "error TOC overflow" add -mminimal-toc to
13021 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13022 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13023
13024 archive_cmds_F77=''
13025 hardcode_direct_F77=yes
13026 hardcode_libdir_separator_F77=':'
13027 link_all_deplibs_F77=yes
13028
13029 if test "$GCC" = yes; then
13030 case $host_os in aix4.012|aix4.012.*)
13031 # We only want to do this on AIX 4.2 and lower, the check
13032 # below for broken collect2 doesn't work under 4.3+
13033 collect2name=`${CC} -print-prog-name=collect2`
13034 if test -f "$collect2name" && \
13035 strings "$collect2name" | grep resolve_lib_name >/dev/null
13036 then
13037 # We have reworked collect2
13038 hardcode_direct_F77=yes
13039 else
13040 # We have old collect2
13041 hardcode_direct_F77=unsupported
13042 # It fails to find uninstalled libraries when the uninstalled
13043 # path is not listed in the libpath. Setting hardcode_minus_L
13044 # to unsupported forces relinking
13045 hardcode_minus_L_F77=yes
13046 hardcode_libdir_flag_spec_F77='-L$libdir'
13047 hardcode_libdir_separator_F77=
13048 fi
13049 esac
13050 shared_flag='-shared'
13051 else
13052 # not using gcc
13053 if test "$host_cpu" = ia64; then
13054 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13055 # chokes on -Wl,-G. The following line is correct:
13056 shared_flag='-G'
13057 else
13058 if test "$aix_use_runtimelinking" = yes; then
13059 shared_flag='${wl}-G'
13060 else
13061 shared_flag='${wl}-bM:SRE'
13062 fi
13063 fi
13064 fi
13065
13066 # It seems that -bexpall does not export symbols beginning with
13067 # underscore (_), so it is better to generate a list of symbols to export.
13068 always_export_symbols_F77=yes
13069 if test "$aix_use_runtimelinking" = yes; then
13070 # Warning - without using the other runtime loading flags (-brtl),
13071 # -berok will link without error, but may produce a broken library.
13072 allow_undefined_flag_F77='-berok'
13073 # Determine the default libpath from the value encoded in an empty executable.
13074 cat >conftest.$ac_ext <<_ACEOF
13075 program main
13076
13077 end
13078_ACEOF
13079rm -f conftest.$ac_objext conftest$ac_exeext
13080if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13081 (eval $ac_link) 2>&5
13082 ac_status=$?
13083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13084 (exit $ac_status); } &&
13085 { ac_try='test -s conftest$ac_exeext'
13086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13087 (eval $ac_try) 2>&5
13088 ac_status=$?
13089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13090 (exit $ac_status); }; }; then
13091
13092aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13093}'`
13094# Check for a 64-bit object if we didn't find anything.
13095if 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; }
13096}'`; fi
13097else
13098 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013099sed 's/^/| /' conftest.$ac_ext >&5
13100
John Criswell47fdd832003-07-14 16:52:07 +000013101fi
13102rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13103if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13104
13105 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13106 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"
13107 else
13108 if test "$host_cpu" = ia64; then
13109 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13110 allow_undefined_flag_F77="-z nodefs"
13111 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"
13112 else
13113 # Determine the default libpath from the value encoded in an empty executable.
13114 cat >conftest.$ac_ext <<_ACEOF
13115 program main
13116
13117 end
13118_ACEOF
13119rm -f conftest.$ac_objext conftest$ac_exeext
13120if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13121 (eval $ac_link) 2>&5
13122 ac_status=$?
13123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13124 (exit $ac_status); } &&
13125 { ac_try='test -s conftest$ac_exeext'
13126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13127 (eval $ac_try) 2>&5
13128 ac_status=$?
13129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13130 (exit $ac_status); }; }; then
13131
13132aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13133}'`
13134# Check for a 64-bit object if we didn't find anything.
13135if 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; }
13136}'`; fi
13137else
13138 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013139sed 's/^/| /' conftest.$ac_ext >&5
13140
John Criswell47fdd832003-07-14 16:52:07 +000013141fi
13142rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13143if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13144
13145 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13146 # Warning - without using the other run time loading flags,
13147 # -berok will link without error, but may produce a broken library.
13148 no_undefined_flag_F77=' ${wl}-bernotok'
13149 allow_undefined_flag_F77=' ${wl}-berok'
13150 # -bexpall does not export symbols beginning with underscore (_)
13151 always_export_symbols_F77=yes
13152 # Exported symbols can be pulled into shared objects from archives
13153 whole_archive_flag_spec_F77=' '
13154 archive_cmds_need_lc_F77=yes
13155 # This is similar to how AIX traditionally builds it's shared libraries.
13156 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'
13157 fi
13158 fi
13159 ;;
13160
13161 amigaos*)
13162 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)'
13163 hardcode_libdir_flag_spec_F77='-L$libdir'
13164 hardcode_minus_L_F77=yes
13165 # see comment about different semantics on the GNU ld section
13166 ld_shlibs_F77=no
13167 ;;
13168
13169 bsdi4*)
13170 export_dynamic_flag_spec_F77=-rdynamic
13171 ;;
13172
13173 cygwin* | mingw* | pw32*)
13174 # When not using gcc, we currently assume that we are using
13175 # Microsoft Visual C++.
13176 # hardcode_libdir_flag_spec is actually meaningless, as there is
13177 # no search path for DLLs.
13178 hardcode_libdir_flag_spec_F77=' '
13179 allow_undefined_flag_F77=unsupported
13180 # Tell ltmain to make .lib files, not .a files.
13181 libext=lib
13182 # Tell ltmain to make .dll files, not .so files.
13183 shrext=".dll"
13184 # FIXME: Setting linknames here is a bad hack.
13185 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13186 # The linker will automatically build a .lib file if we build a DLL.
13187 old_archive_From_new_cmds_F77='true'
13188 # FIXME: Should let the user specify the lib program.
13189 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13190 fix_srcfile_path='`cygpath -w "$srcfile"`'
13191 enable_shared_with_static_runtimes_F77=yes
13192 ;;
13193
13194 darwin* | rhapsody*)
13195 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13196 archive_cmds_need_lc_F77=no
13197 case "$host_os" in
13198 rhapsody* | darwin1.[012])
13199 allow_undefined_flag_F77='-undefined suppress'
13200 ;;
13201 *) # Darwin 1.3 on
13202 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13203 ;;
13204 esac
13205 # FIXME: Relying on posixy $() will cause problems for
13206 # cross-compilation, but unfortunately the echo tests do not
13207 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
13208 # `"' quotes if we put them in here... so don't!
13209 lt_int_apple_cc_single_mod=no
13210 output_verbose_link_cmd='echo'
13211 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13212 lt_int_apple_cc_single_mod=yes
13213 fi
13214 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13215 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13216 else
13217 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'
13218 fi
13219 module_cmds_F77='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
13220 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13221 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13222 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}'
13223 else
13224 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}'
13225 fi
13226 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}'
13227 hardcode_direct_F77=no
13228 hardcode_automatic_F77=yes
13229 hardcode_shlibpath_var_F77=unsupported
13230 whole_archive_flag_spec_F77='-all_load $convenience'
13231 link_all_deplibs_F77=yes
13232 fi
13233 ;;
13234
13235 dgux*)
13236 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13237 hardcode_libdir_flag_spec_F77='-L$libdir'
13238 hardcode_shlibpath_var_F77=no
13239 ;;
13240
13241 freebsd1*)
13242 ld_shlibs_F77=no
13243 ;;
13244
13245 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13246 # support. Future versions do this automatically, but an explicit c++rt0.o
13247 # does not break anything, and helps significantly (at the cost of a little
13248 # extra space).
13249 freebsd2.2*)
13250 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13251 hardcode_libdir_flag_spec_F77='-R$libdir'
13252 hardcode_direct_F77=yes
13253 hardcode_shlibpath_var_F77=no
13254 ;;
13255
13256 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13257 freebsd2*)
13258 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13259 hardcode_direct_F77=yes
13260 hardcode_minus_L_F77=yes
13261 hardcode_shlibpath_var_F77=no
13262 ;;
13263
13264 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13265 freebsd*)
13266 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13267 hardcode_libdir_flag_spec_F77='-R$libdir'
13268 hardcode_direct_F77=yes
13269 hardcode_shlibpath_var_F77=no
13270 ;;
13271
13272 hpux9*)
13273 if test "$GCC" = yes; then
13274 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'
13275 else
13276 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'
13277 fi
13278 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13279 hardcode_libdir_separator_F77=:
13280 hardcode_direct_F77=yes
13281
13282 # hardcode_minus_L: Not really in the search PATH,
13283 # but as the default location of the library.
13284 hardcode_minus_L_F77=yes
13285 export_dynamic_flag_spec_F77='${wl}-E'
13286 ;;
13287
13288 hpux10* | hpux11*)
13289 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13290 case "$host_cpu" in
13291 hppa*64*|ia64*)
13292 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13293 ;;
13294 *)
13295 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13296 ;;
13297 esac
13298 else
13299 case "$host_cpu" in
13300 hppa*64*|ia64*)
13301 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13302 ;;
13303 *)
13304 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13305 ;;
13306 esac
13307 fi
13308 if test "$with_gnu_ld" = no; then
13309 case "$host_cpu" in
13310 hppa*64*)
13311 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13312 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13313 hardcode_libdir_separator_F77=:
13314 hardcode_direct_F77=no
13315 hardcode_shlibpath_var_F77=no
13316 ;;
13317 ia64*)
13318 hardcode_libdir_flag_spec_F77='-L$libdir'
13319 hardcode_direct_F77=no
13320 hardcode_shlibpath_var_F77=no
13321
13322 # hardcode_minus_L: Not really in the search PATH,
13323 # but as the default location of the library.
13324 hardcode_minus_L_F77=yes
13325 ;;
13326 *)
13327 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13328 hardcode_libdir_separator_F77=:
13329 hardcode_direct_F77=yes
13330 export_dynamic_flag_spec_F77='${wl}-E'
13331
13332 # hardcode_minus_L: Not really in the search PATH,
13333 # but as the default location of the library.
13334 hardcode_minus_L_F77=yes
13335 ;;
13336 esac
13337 fi
13338 ;;
13339
13340 irix5* | irix6* | nonstopux*)
13341 if test "$GCC" = yes; then
13342 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'
13343 else
13344 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'
13345 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13346 fi
13347 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13348 hardcode_libdir_separator_F77=:
13349 link_all_deplibs_F77=yes
13350 ;;
13351
13352 netbsd*)
13353 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13354 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13355 else
13356 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13357 fi
13358 hardcode_libdir_flag_spec_F77='-R$libdir'
13359 hardcode_direct_F77=yes
13360 hardcode_shlibpath_var_F77=no
13361 ;;
13362
13363 newsos6)
13364 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13365 hardcode_direct_F77=yes
13366 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13367 hardcode_libdir_separator_F77=:
13368 hardcode_shlibpath_var_F77=no
13369 ;;
13370
13371 openbsd*)
13372 hardcode_direct_F77=yes
13373 hardcode_shlibpath_var_F77=no
13374 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13375 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13376 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13377 export_dynamic_flag_spec_F77='${wl}-E'
13378 else
13379 case $host_os in
13380 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13381 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13382 hardcode_libdir_flag_spec_F77='-R$libdir'
13383 ;;
13384 *)
13385 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13386 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13387 ;;
13388 esac
13389 fi
13390 ;;
13391
13392 os2*)
13393 hardcode_libdir_flag_spec_F77='-L$libdir'
13394 hardcode_minus_L_F77=yes
13395 allow_undefined_flag_F77=unsupported
13396 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'
13397 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13398 ;;
13399
13400 osf3*)
13401 if test "$GCC" = yes; then
13402 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13403 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'
13404 else
13405 allow_undefined_flag_F77=' -expect_unresolved \*'
13406 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'
13407 fi
13408 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13409 hardcode_libdir_separator_F77=:
13410 ;;
13411
13412 osf4* | osf5*) # as osf3* with the addition of -msym flag
13413 if test "$GCC" = yes; then
13414 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13415 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'
13416 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13417 else
13418 allow_undefined_flag_F77=' -expect_unresolved \*'
13419 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'
13420 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~
13421 $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'
13422
13423 # Both c and cxx compiler support -rpath directly
13424 hardcode_libdir_flag_spec_F77='-rpath $libdir'
13425 fi
13426 hardcode_libdir_separator_F77=:
13427 ;;
13428
13429 sco3.2v5*)
13430 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13431 hardcode_shlibpath_var_F77=no
13432 export_dynamic_flag_spec_F77='${wl}-Bexport'
13433 runpath_var=LD_RUN_PATH
13434 hardcode_runpath_var=yes
13435 ;;
13436
13437 solaris*)
13438 no_undefined_flag_F77=' -z text'
13439 if test "$GCC" = yes; then
13440 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13441 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13442 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13443 else
13444 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13445 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13446 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13447 fi
13448 hardcode_libdir_flag_spec_F77='-R$libdir'
13449 hardcode_shlibpath_var_F77=no
13450 case $host_os in
13451 solaris2.[0-5] | solaris2.[0-5].*) ;;
13452 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13453 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13454 esac
13455 link_all_deplibs_F77=yes
13456 ;;
13457
13458 sunos4*)
13459 if test "x$host_vendor" = xsequent; then
13460 # Use $CC to link under sequent, because it throws in some extra .o
13461 # files that make .init and .fini sections work.
13462 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13463 else
13464 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13465 fi
13466 hardcode_libdir_flag_spec_F77='-L$libdir'
13467 hardcode_direct_F77=yes
13468 hardcode_minus_L_F77=yes
13469 hardcode_shlibpath_var_F77=no
13470 ;;
13471
13472 sysv4)
13473 case $host_vendor in
13474 sni)
13475 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13476 hardcode_direct_F77=yes # is this really true???
13477 ;;
13478 siemens)
13479 ## LD is ld it makes a PLAMLIB
13480 ## CC just makes a GrossModule.
13481 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13482 reload_cmds_F77='$CC -r -o $output$reload_objs'
13483 hardcode_direct_F77=no
13484 ;;
13485 motorola)
13486 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13487 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13488 ;;
13489 esac
13490 runpath_var='LD_RUN_PATH'
13491 hardcode_shlibpath_var_F77=no
13492 ;;
13493
13494 sysv4.3*)
13495 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13496 hardcode_shlibpath_var_F77=no
13497 export_dynamic_flag_spec_F77='-Bexport'
13498 ;;
13499
13500 sysv4*MP*)
13501 if test -d /usr/nec; then
13502 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13503 hardcode_shlibpath_var_F77=no
13504 runpath_var=LD_RUN_PATH
13505 hardcode_runpath_var=yes
13506 ld_shlibs_F77=yes
13507 fi
13508 ;;
13509
13510 sysv4.2uw2*)
13511 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13512 hardcode_direct_F77=yes
13513 hardcode_minus_L_F77=no
13514 hardcode_shlibpath_var_F77=no
13515 hardcode_runpath_var=yes
13516 runpath_var=LD_RUN_PATH
13517 ;;
13518
13519 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
13520 no_undefined_flag_F77='${wl}-z ${wl}text'
13521 if test "$GCC" = yes; then
13522 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13523 else
13524 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13525 fi
13526 runpath_var='LD_RUN_PATH'
13527 hardcode_shlibpath_var_F77=no
13528 ;;
13529
13530 sysv5*)
13531 no_undefined_flag_F77=' -z text'
13532 # $CC -shared without GNU ld will not create a library from C++
13533 # object files and a static libstdc++, better avoid it by now
13534 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13535 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13536 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13537 hardcode_libdir_flag_spec_F77=
13538 hardcode_shlibpath_var_F77=no
13539 runpath_var='LD_RUN_PATH'
13540 ;;
13541
13542 uts4*)
13543 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13544 hardcode_libdir_flag_spec_F77='-L$libdir'
13545 hardcode_shlibpath_var_F77=no
13546 ;;
13547
13548 *)
13549 ld_shlibs_F77=no
13550 ;;
13551 esac
13552 fi
13553
13554echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
13555echo "${ECHO_T}$ld_shlibs_F77" >&6
13556test "$ld_shlibs_F77" = no && can_build_shared=no
13557
13558variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13559if test "$GCC" = yes; then
13560 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13561fi
13562
13563#
13564# Do we need to explicitly link libc?
13565#
13566case "x$archive_cmds_need_lc_F77" in
13567x|xyes)
13568 # Assume -lc should be added
13569 archive_cmds_need_lc_F77=yes
13570
13571 if test "$enable_shared" = yes && test "$GCC" = yes; then
13572 case $archive_cmds_F77 in
13573 *'~'*)
13574 # FIXME: we may have to deal with multi-command sequences.
13575 ;;
13576 '$CC '*)
13577 # Test whether the compiler implicitly links with -lc since on some
13578 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13579 # to ld, don't add -lc before -lgcc.
13580 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13581echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13582 $rm conftest*
13583 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13584
13585 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13586 (eval $ac_compile) 2>&5
13587 ac_status=$?
13588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13589 (exit $ac_status); } 2>conftest.err; then
13590 soname=conftest
13591 lib=conftest
13592 libobjs=conftest.$ac_objext
13593 deplibs=
13594 wl=$lt_prog_compiler_wl_F77
13595 compiler_flags=-v
13596 linker_flags=-v
13597 verstring=
13598 output_objdir=.
13599 libname=conftest
13600 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
13601 allow_undefined_flag_F77=
13602 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13603 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13604 ac_status=$?
13605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13606 (exit $ac_status); }
13607 then
13608 archive_cmds_need_lc_F77=no
13609 else
13610 archive_cmds_need_lc_F77=yes
13611 fi
13612 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
13613 else
13614 cat conftest.err 1>&5
13615 fi
13616 $rm conftest*
13617 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
13618echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
13619 ;;
13620 esac
13621 fi
13622 ;;
13623esac
13624
13625echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13626echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13627hardcode_action_F77=
13628if test -n "$hardcode_libdir_flag_spec_F77" || \
13629 test -n "$runpath_var F77" || \
13630 test "X$hardcode_automatic_F77"="Xyes" ; then
13631
13632 # We can hardcode non-existant directories.
13633 if test "$hardcode_direct_F77" != no &&
13634 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13635 # have to relink, otherwise we might link with an installed library
13636 # when we should be linking with a yet-to-be-installed one
13637 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
13638 test "$hardcode_minus_L_F77" != no; then
13639 # Linking always hardcodes the temporary library directory.
13640 hardcode_action_F77=relink
13641 else
13642 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13643 hardcode_action_F77=immediate
13644 fi
13645else
13646 # We cannot hardcode anything, or else we can only hardcode existing
13647 # directories.
13648 hardcode_action_F77=unsupported
13649fi
13650echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
13651echo "${ECHO_T}$hardcode_action_F77" >&6
13652
13653if test "$hardcode_action_F77" = relink; then
13654 # Fast installation is not supported
13655 enable_fast_install=no
13656elif test "$shlibpath_overrides_runpath" = yes ||
13657 test "$enable_shared" = no; then
13658 # Fast installation is not necessary
13659 enable_fast_install=needless
13660fi
13661
13662striplib=
13663old_striplib=
13664echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13665echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13666if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13667 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13668 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13669 echo "$as_me:$LINENO: result: yes" >&5
13670echo "${ECHO_T}yes" >&6
13671else
13672# FIXME - insert some real tests, host_os isn't really good enough
13673 case $host_os in
13674 darwin*)
13675 if test -n "$STRIP" ; then
13676 striplib="$STRIP -x"
13677 echo "$as_me:$LINENO: result: yes" >&5
13678echo "${ECHO_T}yes" >&6
13679 else
13680 echo "$as_me:$LINENO: result: no" >&5
13681echo "${ECHO_T}no" >&6
13682fi
13683 ;;
13684 *)
13685 echo "$as_me:$LINENO: result: no" >&5
13686echo "${ECHO_T}no" >&6
13687 ;;
13688 esac
13689fi
13690
13691echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13692echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13693library_names_spec=
13694libname_spec='lib$name'
13695soname_spec=
13696shrext=".so"
13697postinstall_cmds=
13698postuninstall_cmds=
13699finish_cmds=
13700finish_eval=
13701shlibpath_var=
13702shlibpath_overrides_runpath=unknown
13703version_type=none
13704dynamic_linker="$host_os ld.so"
13705sys_lib_dlsearch_path_spec="/lib /usr/lib"
13706if test "$GCC" = yes; then
13707 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13708 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13709 # if the path contains ";" then we assume it to be the separator
13710 # otherwise default to the standard path separator (i.e. ":") - it is
13711 # assumed that no part of a normal pathname contains ";" but that should
13712 # okay in the real world where ";" in dirpaths is itself problematic.
13713 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13714 else
13715 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13716 fi
13717else
13718 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13719fi
13720need_lib_prefix=unknown
13721hardcode_into_libs=no
13722
13723# when you set need_version to no, make sure it does not cause -set_version
13724# flags to be left without arguments
13725need_version=unknown
13726
13727case $host_os in
13728aix3*)
13729 version_type=linux
13730 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13731 shlibpath_var=LIBPATH
13732
13733 # AIX 3 has no versioning support, so we append a major version to the name.
13734 soname_spec='${libname}${release}${shared_ext}$major'
13735 ;;
13736
13737aix4* | aix5*)
13738 version_type=linux
13739 need_lib_prefix=no
13740 need_version=no
13741 hardcode_into_libs=yes
13742 if test "$host_cpu" = ia64; then
13743 # AIX 5 supports IA64
13744 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13745 shlibpath_var=LD_LIBRARY_PATH
13746 else
13747 # With GCC up to 2.95.x, collect2 would create an import file
13748 # for dependence libraries. The import file would start with
13749 # the line `#! .'. This would cause the generated library to
13750 # depend on `.', always an invalid library. This was fixed in
13751 # development snapshots of GCC prior to 3.0.
13752 case $host_os in
13753 aix4 | aix4.[01] | aix4.[01].*)
13754 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13755 echo ' yes '
13756 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13757 :
13758 else
13759 can_build_shared=no
13760 fi
13761 ;;
13762 esac
13763 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13764 # soname into executable. Probably we can add versioning support to
13765 # collect2, so additional links can be useful in future.
13766 if test "$aix_use_runtimelinking" = yes; then
13767 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13768 # instead of lib<name>.a to let people know that these are not
13769 # typical AIX shared libraries.
13770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13771 else
13772 # We preserve .a as extension for shared libraries through AIX4.2
13773 # and later when we are not doing run time linking.
13774 library_names_spec='${libname}${release}.a $libname.a'
13775 soname_spec='${libname}${release}${shared_ext}$major'
13776 fi
13777 shlibpath_var=LIBPATH
13778 fi
13779 ;;
13780
13781amigaos*)
13782 library_names_spec='$libname.ixlibrary $libname.a'
13783 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13784 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'
13785 ;;
13786
13787beos*)
13788 library_names_spec='${libname}${shared_ext}'
13789 dynamic_linker="$host_os ld.so"
13790 shlibpath_var=LIBRARY_PATH
13791 ;;
13792
13793bsdi4*)
13794 version_type=linux
13795 need_version=no
13796 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13797 soname_spec='${libname}${release}${shared_ext}$major'
13798 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13799 shlibpath_var=LD_LIBRARY_PATH
13800 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13801 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13802 # the default ld.so.conf also contains /usr/contrib/lib and
13803 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13804 # libtool to hard-code these into programs
13805 ;;
13806
13807cygwin* | mingw* | pw32*)
13808 version_type=windows
13809 shrext=".dll"
13810 need_version=no
13811 need_lib_prefix=no
13812
13813 case $GCC,$host_os in
13814 yes,cygwin* | yes,mingw* | yes,pw32*)
13815 library_names_spec='$libname.dll.a'
13816 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13817 postinstall_cmds='base_file=`basename \${file}`~
13818 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13819 dldir=$destdir/`dirname \$dlpath`~
13820 test -d \$dldir || mkdir -p \$dldir~
13821 $install_prog $dir/$dlname \$dldir/$dlname'
13822 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13823 dlpath=$dir/\$dldll~
13824 $rm \$dlpath'
13825 shlibpath_overrides_runpath=yes
13826
13827 case $host_os in
13828 cygwin*)
13829 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13830 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13831 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
13832 ;;
13833 mingw*)
13834 # MinGW DLLs use traditional 'lib' prefix
13835 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13836 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13837 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13838 # It is most probably a Windows format PATH printed by
13839 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13840 # path with ; separators, and with drive letters. We can handle the
13841 # drive letters (cygwin fileutils understands them), so leave them,
13842 # especially as we might pass files found there to a mingw objdump,
13843 # which wouldn't understand a cygwinified path. Ahh.
13844 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13845 else
13846 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13847 fi
13848 ;;
13849 pw32*)
13850 # pw32 DLLs use 'pw' prefix rather than 'lib'
13851 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13852 ;;
13853 esac
13854 ;;
13855
13856 *)
13857 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13858 ;;
13859 esac
13860 dynamic_linker='Win32 ld.exe'
13861 # FIXME: first we should search . and the directory the executable is in
13862 shlibpath_var=PATH
13863 ;;
13864
13865darwin* | rhapsody*)
13866 dynamic_linker="$host_os dyld"
13867 version_type=darwin
13868 need_lib_prefix=no
13869 need_version=no
13870 # FIXME: Relying on posixy $() will cause problems for
13871 # cross-compilation, but unfortunately the echo tests do not
13872 # yet detect zsh echo's removal of \ escapes.
13873 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13874 soname_spec='${libname}${release}${major}$shared_ext'
13875 shlibpath_overrides_runpath=yes
13876 shlibpath_var=DYLD_LIBRARY_PATH
13877 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
13878 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13879 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13880 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"`
13881 fi
13882 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13883 ;;
13884
13885dgux*)
13886 version_type=linux
13887 need_lib_prefix=no
13888 need_version=no
13889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13890 soname_spec='${libname}${release}${shared_ext}$major'
13891 shlibpath_var=LD_LIBRARY_PATH
13892 ;;
13893
13894freebsd1*)
13895 dynamic_linker=no
13896 ;;
13897
13898freebsd*)
13899 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13900 version_type=freebsd-$objformat
13901 case $version_type in
13902 freebsd-elf*)
13903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13904 need_version=no
13905 need_lib_prefix=no
13906 ;;
13907 freebsd-*)
13908 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13909 need_version=yes
13910 ;;
13911 esac
13912 shlibpath_var=LD_LIBRARY_PATH
13913 case $host_os in
13914 freebsd2*)
13915 shlibpath_overrides_runpath=yes
13916 ;;
13917 freebsd3.01* | freebsdelf3.01*)
13918 shlibpath_overrides_runpath=yes
13919 hardcode_into_libs=yes
13920 ;;
13921 *) # from 3.2 on
13922 shlibpath_overrides_runpath=no
13923 hardcode_into_libs=yes
13924 ;;
13925 esac
13926 ;;
13927
13928gnu*)
13929 version_type=linux
13930 need_lib_prefix=no
13931 need_version=no
13932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13933 soname_spec='${libname}${release}${shared_ext}$major'
13934 shlibpath_var=LD_LIBRARY_PATH
13935 hardcode_into_libs=yes
13936 ;;
13937
13938hpux9* | hpux10* | hpux11*)
13939 # Give a soname corresponding to the major version so that dld.sl refuses to
13940 # link against other versions.
13941 version_type=sunos
13942 need_lib_prefix=no
13943 need_version=no
13944 case "$host_cpu" in
13945 ia64*)
13946 shrext='.so'
13947 hardcode_into_libs=yes
13948 dynamic_linker="$host_os dld.so"
13949 shlibpath_var=LD_LIBRARY_PATH
13950 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13952 soname_spec='${libname}${release}${shared_ext}$major'
13953 if test "X$HPUX_IA64_MODE" = X32; then
13954 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13955 else
13956 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13957 fi
13958 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13959 ;;
13960 hppa*64*)
13961 shrext='.sl'
13962 hardcode_into_libs=yes
13963 dynamic_linker="$host_os dld.sl"
13964 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13965 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13967 soname_spec='${libname}${release}${shared_ext}$major'
13968 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13969 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13970 ;;
13971 *)
13972 shrext='.sl'
13973 dynamic_linker="$host_os dld.sl"
13974 shlibpath_var=SHLIB_PATH
13975 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13977 soname_spec='${libname}${release}${shared_ext}$major'
13978 ;;
13979 esac
13980 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13981 postinstall_cmds='chmod 555 $lib'
13982 ;;
13983
13984irix5* | irix6* | nonstopux*)
13985 case $host_os in
13986 nonstopux*) version_type=nonstopux ;;
13987 *)
13988 if test "$lt_cv_prog_gnu_ld" = yes; then
13989 version_type=linux
13990 else
13991 version_type=irix
13992 fi ;;
13993 esac
13994 need_lib_prefix=no
13995 need_version=no
13996 soname_spec='${libname}${release}${shared_ext}$major'
13997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13998 case $host_os in
13999 irix5* | nonstopux*)
14000 libsuff= shlibsuff=
14001 ;;
14002 *)
14003 case $LD in # libtool.m4 will add one of these switches to LD
14004 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14005 libsuff= shlibsuff= libmagic=32-bit;;
14006 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14007 libsuff=32 shlibsuff=N32 libmagic=N32;;
14008 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14009 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14010 *) libsuff= shlibsuff= libmagic=never-match;;
14011 esac
14012 ;;
14013 esac
14014 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14015 shlibpath_overrides_runpath=no
14016 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14017 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14018 hardcode_into_libs=yes
14019 ;;
14020
14021# No shared lib support for Linux oldld, aout, or coff.
14022linux*oldld* | linux*aout* | linux*coff*)
14023 dynamic_linker=no
14024 ;;
14025
14026# This must be Linux ELF.
14027linux*)
14028 version_type=linux
14029 need_lib_prefix=no
14030 need_version=no
14031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14032 soname_spec='${libname}${release}${shared_ext}$major'
14033 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14034 shlibpath_var=LD_LIBRARY_PATH
14035 shlibpath_overrides_runpath=no
14036 # This implies no fast_install, which is unacceptable.
14037 # Some rework will be needed to allow for fast_install
14038 # before this can be enabled.
14039 hardcode_into_libs=yes
14040
14041 # We used to test for /lib/ld.so.1 and disable shared libraries on
14042 # powerpc, because MkLinux only supported shared libraries with the
14043 # GNU dynamic linker. Since this was broken with cross compilers,
14044 # most powerpc-linux boxes support dynamic linking these days and
14045 # people can always --disable-shared, the test was removed, and we
14046 # assume the GNU/Linux dynamic linker is in use.
14047 dynamic_linker='GNU/Linux ld.so'
14048 ;;
14049
14050netbsd*)
14051 version_type=sunos
14052 need_lib_prefix=no
14053 need_version=no
14054 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14056 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14057 dynamic_linker='NetBSD (a.out) ld.so'
14058 else
14059 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
14060 soname_spec='${libname}${release}${shared_ext}$major'
14061 dynamic_linker='NetBSD ld.elf_so'
14062 fi
14063 shlibpath_var=LD_LIBRARY_PATH
14064 shlibpath_overrides_runpath=yes
14065 hardcode_into_libs=yes
14066 ;;
14067
14068newsos6)
14069 version_type=linux
14070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14071 shlibpath_var=LD_LIBRARY_PATH
14072 shlibpath_overrides_runpath=yes
14073 ;;
14074
14075nto-qnx)
14076 version_type=linux
14077 need_lib_prefix=no
14078 need_version=no
14079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14080 soname_spec='${libname}${release}${shared_ext}$major'
14081 shlibpath_var=LD_LIBRARY_PATH
14082 shlibpath_overrides_runpath=yes
14083 ;;
14084
14085openbsd*)
14086 version_type=sunos
14087 need_lib_prefix=no
14088 need_version=no
14089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14090 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14091 shlibpath_var=LD_LIBRARY_PATH
14092 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14093 case $host_os in
14094 openbsd2.[89] | openbsd2.[89].*)
14095 shlibpath_overrides_runpath=no
14096 ;;
14097 *)
14098 shlibpath_overrides_runpath=yes
14099 ;;
14100 esac
14101 else
14102 shlibpath_overrides_runpath=yes
14103 fi
14104 ;;
14105
14106os2*)
14107 libname_spec='$name'
14108 shrext=".dll"
14109 need_lib_prefix=no
14110 library_names_spec='$libname${shared_ext} $libname.a'
14111 dynamic_linker='OS/2 ld.exe'
14112 shlibpath_var=LIBPATH
14113 ;;
14114
14115osf3* | osf4* | osf5*)
14116 version_type=osf
14117 need_lib_prefix=no
14118 need_version=no
14119 soname_spec='${libname}${release}${shared_ext}$major'
14120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14121 shlibpath_var=LD_LIBRARY_PATH
14122 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14123 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14124 ;;
14125
14126sco3.2v5*)
14127 version_type=osf
14128 soname_spec='${libname}${release}${shared_ext}$major'
14129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14130 shlibpath_var=LD_LIBRARY_PATH
14131 ;;
14132
14133solaris*)
14134 version_type=linux
14135 need_lib_prefix=no
14136 need_version=no
14137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14138 soname_spec='${libname}${release}${shared_ext}$major'
14139 shlibpath_var=LD_LIBRARY_PATH
14140 shlibpath_overrides_runpath=yes
14141 hardcode_into_libs=yes
14142 # ldd complains unless libraries are executable
14143 postinstall_cmds='chmod +x $lib'
14144 ;;
14145
14146sunos4*)
14147 version_type=sunos
14148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14149 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14150 shlibpath_var=LD_LIBRARY_PATH
14151 shlibpath_overrides_runpath=yes
14152 if test "$with_gnu_ld" = yes; then
14153 need_lib_prefix=no
14154 fi
14155 need_version=yes
14156 ;;
14157
14158sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14159 version_type=linux
14160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14161 soname_spec='${libname}${release}${shared_ext}$major'
14162 shlibpath_var=LD_LIBRARY_PATH
14163 case $host_vendor in
14164 sni)
14165 shlibpath_overrides_runpath=no
14166 need_lib_prefix=no
14167 export_dynamic_flag_spec='${wl}-Blargedynsym'
14168 runpath_var=LD_RUN_PATH
14169 ;;
14170 siemens)
14171 need_lib_prefix=no
14172 ;;
14173 motorola)
14174 need_lib_prefix=no
14175 need_version=no
14176 shlibpath_overrides_runpath=no
14177 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14178 ;;
14179 esac
14180 ;;
14181
14182sysv4*MP*)
14183 if test -d /usr/nec ;then
14184 version_type=linux
14185 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14186 soname_spec='$libname${shared_ext}.$major'
14187 shlibpath_var=LD_LIBRARY_PATH
14188 fi
14189 ;;
14190
14191uts4*)
14192 version_type=linux
14193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14194 soname_spec='${libname}${release}${shared_ext}$major'
14195 shlibpath_var=LD_LIBRARY_PATH
14196 ;;
14197
14198*)
14199 dynamic_linker=no
14200 ;;
14201esac
14202echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14203echo "${ECHO_T}$dynamic_linker" >&6
14204test "$dynamic_linker" = no && can_build_shared=no
14205
14206
14207# The else clause should only fire when bootstrapping the
14208# libtool distribution, otherwise you forgot to ship ltmain.sh
14209# with your package, and you will get complaints that there are
14210# no rules to generate ltmain.sh.
14211if test -f "$ltmain"; then
14212 # See if we are running on zsh, and set the options which allow our commands through
14213 # without removal of \ escapes.
14214 if test -n "${ZSH_VERSION+set}" ; then
14215 setopt NO_GLOB_SUBST
14216 fi
14217 # Now quote all the things that may contain metacharacters while being
14218 # careful not to overquote the AC_SUBSTed values. We take copies of the
14219 # variables and quote the copies for generation of the libtool script.
14220 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
14221 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14222 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14223 deplibs_check_method reload_flag reload_cmds need_locks \
14224 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14225 lt_cv_sys_global_symbol_to_c_name_address \
14226 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14227 old_postinstall_cmds old_postuninstall_cmds \
14228 compiler_F77 \
14229 CC_F77 \
14230 LD_F77 \
14231 lt_prog_compiler_wl_F77 \
14232 lt_prog_compiler_pic_F77 \
14233 lt_prog_compiler_static_F77 \
14234 lt_prog_compiler_no_builtin_flag_F77 \
14235 export_dynamic_flag_spec_F77 \
14236 thread_safe_flag_spec_F77 \
14237 whole_archive_flag_spec_F77 \
14238 enable_shared_with_static_runtimes_F77 \
14239 old_archive_cmds_F77 \
14240 old_archive_from_new_cmds_F77 \
14241 predep_objects_F77 \
14242 postdep_objects_F77 \
14243 predeps_F77 \
14244 postdeps_F77 \
14245 compiler_lib_search_path_F77 \
14246 archive_cmds_F77 \
14247 archive_expsym_cmds_F77 \
14248 postinstall_cmds_F77 \
14249 postuninstall_cmds_F77 \
14250 old_archive_from_expsyms_cmds_F77 \
14251 allow_undefined_flag_F77 \
14252 no_undefined_flag_F77 \
14253 export_symbols_cmds_F77 \
14254 hardcode_libdir_flag_spec_F77 \
14255 hardcode_libdir_flag_spec_ld_F77 \
14256 hardcode_libdir_separator_F77 \
14257 hardcode_automatic_F77 \
14258 module_cmds_F77 \
14259 module_expsym_cmds_F77 \
14260 lt_cv_prog_compiler_c_o_F77 \
14261 exclude_expsyms_F77 \
14262 include_expsyms_F77; do
14263
14264 case $var in
14265 old_archive_cmds_F77 | \
14266 old_archive_from_new_cmds_F77 | \
14267 archive_cmds_F77 | \
14268 archive_expsym_cmds_F77 | \
14269 module_cmds_F77 | \
14270 module_expsym_cmds_F77 | \
14271 old_archive_from_expsyms_cmds_F77 | \
14272 export_symbols_cmds_F77 | \
14273 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14274 postinstall_cmds | postuninstall_cmds | \
14275 old_postinstall_cmds | old_postuninstall_cmds | \
14276 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14277 # Double-quote double-evaled strings.
14278 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14279 ;;
14280 *)
14281 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14282 ;;
14283 esac
14284 done
14285
14286 case $lt_echo in
14287 *'\$0 --fallback-echo"')
14288 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14289 ;;
14290 esac
14291
14292cfgfile="$ofile"
14293
14294 cat <<__EOF__ >> "$cfgfile"
14295# ### BEGIN LIBTOOL TAG CONFIG: $tagname
14296
14297# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14298
14299# Shell to use when invoking shell scripts.
14300SHELL=$lt_SHELL
14301
14302# Whether or not to build shared libraries.
14303build_libtool_libs=$enable_shared
14304
14305# Whether or not to build static libraries.
14306build_old_libs=$enable_static
14307
14308# Whether or not to add -lc for building shared libraries.
14309build_libtool_need_lc=$archive_cmds_need_lc_F77
14310
14311# Whether or not to disallow shared libs when runtime libs are static
14312allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14313
14314# Whether or not to optimize for fast installation.
14315fast_install=$enable_fast_install
14316
14317# The host system.
14318host_alias=$host_alias
14319host=$host
14320
14321# An echo program that does not interpret backslashes.
14322echo=$lt_echo
14323
14324# The archiver.
14325AR=$lt_AR
14326AR_FLAGS=$lt_AR_FLAGS
14327
14328# A C compiler.
14329LTCC=$lt_LTCC
14330
14331# A language-specific compiler.
14332CC=$lt_compiler_F77
14333
14334# Is the compiler the GNU C compiler?
14335with_gcc=$GCC_F77
14336
14337# An ERE matcher.
14338EGREP=$lt_EGREP
14339
14340# The linker used to build libraries.
14341LD=$lt_LD_F77
14342
14343# Whether we need hard or soft links.
14344LN_S=$lt_LN_S
14345
14346# A BSD-compatible nm program.
14347NM=$lt_NM
14348
14349# A symbol stripping program
14350STRIP=$STRIP
14351
14352# Used to examine libraries when file_magic_cmd begins "file"
14353MAGIC_CMD=$MAGIC_CMD
14354
14355# Used on cygwin: DLL creation program.
14356DLLTOOL="$DLLTOOL"
14357
14358# Used on cygwin: object dumper.
14359OBJDUMP="$OBJDUMP"
14360
14361# Used on cygwin: assembler.
14362AS="$AS"
14363
14364# The name of the directory that contains temporary libtool files.
14365objdir=$objdir
14366
14367# How to create reloadable object files.
14368reload_flag=$lt_reload_flag
14369reload_cmds=$lt_reload_cmds
14370
14371# How to pass a linker flag through the compiler.
14372wl=$lt_lt_prog_compiler_wl_F77
14373
14374# Object file suffix (normally "o").
14375objext="$ac_objext"
14376
14377# Old archive suffix (normally "a").
14378libext="$libext"
14379
14380# Shared library suffix (normally ".so").
14381shrext='$shrext'
14382
14383# Executable file suffix (normally "").
14384exeext="$exeext"
14385
14386# Additional compiler flags for building library objects.
14387pic_flag=$lt_lt_prog_compiler_pic_F77
14388pic_mode=$pic_mode
14389
14390# What is the maximum length of a command?
14391max_cmd_len=$lt_cv_sys_max_cmd_len
14392
14393# Does compiler simultaneously support -c and -o options?
14394compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14395
14396# Must we lock files when doing compilation ?
14397need_locks=$lt_need_locks
14398
14399# Do we need the lib prefix for modules?
14400need_lib_prefix=$need_lib_prefix
14401
14402# Do we need a version for libraries?
14403need_version=$need_version
14404
14405# Whether dlopen is supported.
14406dlopen_support=$enable_dlopen
14407
14408# Whether dlopen of programs is supported.
14409dlopen_self=$enable_dlopen_self
14410
14411# Whether dlopen of statically linked programs is supported.
14412dlopen_self_static=$enable_dlopen_self_static
14413
14414# Compiler flag to prevent dynamic linking.
14415link_static_flag=$lt_lt_prog_compiler_static_F77
14416
14417# Compiler flag to turn off builtin functions.
14418no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14419
14420# Compiler flag to allow reflexive dlopens.
14421export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14422
14423# Compiler flag to generate shared objects directly from archives.
14424whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14425
14426# Compiler flag to generate thread-safe objects.
14427thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14428
14429# Library versioning type.
14430version_type=$version_type
14431
14432# Format of library name prefix.
14433libname_spec=$lt_libname_spec
14434
14435# List of archive names. First name is the real one, the rest are links.
14436# The last name is the one that the linker finds with -lNAME.
14437library_names_spec=$lt_library_names_spec
14438
14439# The coded name of the library, if different from the real name.
14440soname_spec=$lt_soname_spec
14441
14442# Commands used to build and install an old-style archive.
14443RANLIB=$lt_RANLIB
14444old_archive_cmds=$lt_old_archive_cmds_F77
14445old_postinstall_cmds=$lt_old_postinstall_cmds
14446old_postuninstall_cmds=$lt_old_postuninstall_cmds
14447
14448# Create an old-style archive from a shared archive.
14449old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14450
14451# Create a temporary old-style archive to link instead of a shared archive.
14452old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14453
14454# Commands used to build and install a shared archive.
14455archive_cmds=$lt_archive_cmds_F77
14456archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14457postinstall_cmds=$lt_postinstall_cmds
14458postuninstall_cmds=$lt_postuninstall_cmds
14459
14460# Commands used to build a loadable module (assumed same as above if empty)
14461module_cmds=$lt_module_cmds_F77
14462module_expsym_cmds=$lt_module_expsym_cmds_F77
14463
14464# Commands to strip libraries.
14465old_striplib=$lt_old_striplib
14466striplib=$lt_striplib
14467
14468# Dependencies to place before the objects being linked to create a
14469# shared library.
14470predep_objects=$lt_predep_objects_F77
14471
14472# Dependencies to place after the objects being linked to create a
14473# shared library.
14474postdep_objects=$lt_postdep_objects_F77
14475
14476# Dependencies to place before the objects being linked to create a
14477# shared library.
14478predeps=$lt_predeps_F77
14479
14480# Dependencies to place after the objects being linked to create a
14481# shared library.
14482postdeps=$lt_postdeps_F77
14483
14484# The library search path used internally by the compiler when linking
14485# a shared library.
14486compiler_lib_search_path=$lt_compiler_lib_search_path_F77
14487
14488# Method to check whether dependent libraries are shared objects.
14489deplibs_check_method=$lt_deplibs_check_method
14490
14491# Command to use when deplibs_check_method == file_magic.
14492file_magic_cmd=$lt_file_magic_cmd
14493
14494# Flag that allows shared libraries with undefined symbols to be built.
14495allow_undefined_flag=$lt_allow_undefined_flag_F77
14496
14497# Flag that forces no undefined symbols.
14498no_undefined_flag=$lt_no_undefined_flag_F77
14499
14500# Commands used to finish a libtool library installation in a directory.
14501finish_cmds=$lt_finish_cmds
14502
14503# Same as above, but a single script fragment to be evaled but not shown.
14504finish_eval=$lt_finish_eval
14505
14506# Take the output of nm and produce a listing of raw symbols and C names.
14507global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14508
14509# Transform the output of nm in a proper C declaration
14510global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14511
14512# Transform the output of nm in a C name address pair
14513global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14514
14515# This is the shared library runtime path variable.
14516runpath_var=$runpath_var
14517
14518# This is the shared library path variable.
14519shlibpath_var=$shlibpath_var
14520
14521# Is shlibpath searched before the hard-coded library search path?
14522shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14523
14524# How to hardcode a shared library path into an executable.
14525hardcode_action=$hardcode_action_F77
14526
14527# Whether we should hardcode library paths into libraries.
14528hardcode_into_libs=$hardcode_into_libs
14529
14530# Flag to hardcode \$libdir into a binary during linking.
14531# This must work even if \$libdir does not exist.
14532hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
14533
14534# If ld is used when linking, flag to hardcode \$libdir into
14535# a binary during linking. This must work even if \$libdir does
14536# not exist.
14537hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
14538
14539# Whether we need a single -rpath flag with a separated argument.
14540hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
14541
14542# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14543# resulting binary.
14544hardcode_direct=$hardcode_direct_F77
14545
14546# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14547# resulting binary.
14548hardcode_minus_L=$hardcode_minus_L_F77
14549
14550# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14551# the resulting binary.
14552hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
14553
14554# Set to yes if building a shared library automatically hardcodes DIR into the library
14555# and all subsequent libraries and executables linked against it.
14556hardcode_automatic=$hardcode_automatic_F77
14557
14558# Variables whose values should be saved in libtool wrapper scripts and
14559# restored at relink time.
14560variables_saved_for_relink="$variables_saved_for_relink"
14561
14562# Whether libtool must link a program against all its dependency libraries.
14563link_all_deplibs=$link_all_deplibs_F77
14564
14565# Compile-time system search path for libraries
14566sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14567
14568# Run-time system search path for libraries
14569sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14570
14571# Fix the shell variable \$srcfile for the compiler.
14572fix_srcfile_path="$fix_srcfile_path_F77"
14573
14574# Set to yes if exported symbols are required.
14575always_export_symbols=$always_export_symbols_F77
14576
14577# The commands to list exported symbols.
14578export_symbols_cmds=$lt_export_symbols_cmds_F77
14579
14580# The commands to extract the exported symbol list from a shared archive.
14581extract_expsyms_cmds=$lt_extract_expsyms_cmds
14582
14583# Symbols that should not be listed in the preloaded symbols.
14584exclude_expsyms=$lt_exclude_expsyms_F77
14585
14586# Symbols that must always be exported.
14587include_expsyms=$lt_include_expsyms_F77
14588
14589# ### END LIBTOOL TAG CONFIG: $tagname
14590
14591__EOF__
14592
14593
14594else
14595 # If there is no Makefile yet, we rely on a make rule to execute
14596 # `config.status --recheck' to rerun these tests and create the
14597 # libtool script then.
14598 test -f Makefile && make "$ltmain"
14599fi
14600
14601
14602ac_ext=c
14603ac_cpp='$CPP $CPPFLAGS'
14604ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14605ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14606ac_compiler_gnu=$ac_cv_c_compiler_gnu
14607
14608CC="$lt_save_CC"
14609
14610 else
14611 tagname=""
14612 fi
14613 ;;
14614
14615 GCJ)
14616 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
14617
14618
14619
14620# Source file extension for Java test sources.
14621ac_ext=java
14622
14623# Object file extension for compiled Java test sources.
14624objext=o
14625objext_GCJ=$objext
14626
14627# Code to be used in simple compile tests
14628lt_simple_compile_test_code="class foo {}\n"
14629
14630# Code to be used in simple link tests
14631lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
14632
14633# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14634
14635# If no C compiler was specified, use CC.
14636LTCC=${LTCC-"$CC"}
14637
14638# Allow CC to be a program name with arguments.
14639compiler=$CC
14640
14641
14642# Allow CC to be a program name with arguments.
14643lt_save_CC="$CC"
14644CC=${GCJ-"gcj"}
14645compiler=$CC
14646compiler_GCJ=$CC
14647
14648# GCJ did not exist at the time GCC didn't implicitly link libc in.
14649archive_cmds_need_lc_GCJ=no
14650
John Criswell47fdd832003-07-14 16:52:07 +000014651
14652lt_prog_compiler_no_builtin_flag_GCJ=
14653
14654if test "$GCC" = yes; then
14655 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
14656
14657 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14658echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
14659if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14660 echo $ECHO_N "(cached) $ECHO_C" >&6
14661else
14662 lt_cv_prog_compiler_rtti_exceptions=no
14663 ac_outfile=conftest.$ac_objext
14664 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14665 lt_compiler_flag="-fno-rtti -fno-exceptions"
14666 # Insert the option either (1) after the last *FLAGS variable, or
14667 # (2) before a word containing "conftest.", or (3) at the end.
14668 # Note that $ac_compile itself does not contain backslashes and begins
14669 # with a dollar sign (not a hyphen), so the echo should work correctly.
14670 # The option is referenced via a variable to avoid confusing sed.
14671 lt_compile=`echo "$ac_compile" | $SED \
14672 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14673 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14674 -e 's:$: $lt_compiler_flag:'`
John Criswell878be7d2004-02-24 21:43:38 +000014675 (eval echo "\"\$as_me:14671: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014676 (eval "$lt_compile" 2>conftest.err)
14677 ac_status=$?
14678 cat conftest.err >&5
John Criswell878be7d2004-02-24 21:43:38 +000014679 echo "$as_me:14675: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014680 if (exit $ac_status) && test -s "$ac_outfile"; then
14681 # The compiler can only warn and ignore the option if not recognized
14682 # So say no if there are warnings
14683 if test ! -s conftest.err; then
14684 lt_cv_prog_compiler_rtti_exceptions=yes
14685 fi
14686 fi
14687 $rm conftest*
14688
14689fi
14690echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14691echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
14692
14693if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14694 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
14695else
14696 :
14697fi
14698
14699fi
14700
14701lt_prog_compiler_wl_GCJ=
14702lt_prog_compiler_pic_GCJ=
14703lt_prog_compiler_static_GCJ=
14704
14705echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14706echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
14707
14708 if test "$GCC" = yes; then
14709 lt_prog_compiler_wl_GCJ='-Wl,'
14710 lt_prog_compiler_static_GCJ='-static'
14711
14712 case $host_os in
14713 aix*)
14714 # All AIX code is PIC.
14715 if test "$host_cpu" = ia64; then
14716 # AIX 5 now supports IA64 processor
14717 lt_prog_compiler_static_GCJ='-Bstatic'
14718 fi
14719 ;;
14720
14721 amigaos*)
14722 # FIXME: we need at least 68020 code to build shared libraries, but
14723 # adding the `-m68020' flag to GCC prevents building anything better,
14724 # like `-m68040'.
14725 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
14726 ;;
14727
14728 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14729 # PIC is the default for these OSes.
14730 ;;
14731
14732 mingw* | pw32* | os2*)
14733 # This hack is so that the source file can tell whether it is being
14734 # built for inclusion in a dll (and should export symbols for example).
14735 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
14736 ;;
14737
14738 darwin* | rhapsody*)
14739 # PIC is the default on this platform
14740 # Common symbols not allowed in MH_DYLIB files
14741 lt_prog_compiler_pic_GCJ='-fno-common'
14742 ;;
14743
14744 msdosdjgpp*)
14745 # Just because we use GCC doesn't mean we suddenly get shared libraries
14746 # on systems that don't support them.
14747 lt_prog_compiler_can_build_shared_GCJ=no
14748 enable_shared=no
14749 ;;
14750
14751 sysv4*MP*)
14752 if test -d /usr/nec; then
14753 lt_prog_compiler_pic_GCJ=-Kconform_pic
14754 fi
14755 ;;
14756
14757 hpux*)
14758 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14759 # not for PA HP-UX.
14760 case "$host_cpu" in
14761 hppa*64*|ia64*)
14762 # +Z the default
14763 ;;
14764 *)
14765 lt_prog_compiler_pic_GCJ='-fPIC'
14766 ;;
14767 esac
14768 ;;
14769
14770 *)
14771 lt_prog_compiler_pic_GCJ='-fPIC'
14772 ;;
14773 esac
14774 else
14775 # PORTME Check for flag to pass linker flags through the system compiler.
14776 case $host_os in
14777 aix*)
14778 lt_prog_compiler_wl_GCJ='-Wl,'
14779 if test "$host_cpu" = ia64; then
14780 # AIX 5 now supports IA64 processor
14781 lt_prog_compiler_static_GCJ='-Bstatic'
14782 else
14783 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
14784 fi
14785 ;;
14786
14787 mingw* | pw32* | os2*)
14788 # This hack is so that the source file can tell whether it is being
14789 # built for inclusion in a dll (and should export symbols for example).
14790 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
14791 ;;
14792
14793 hpux9* | hpux10* | hpux11*)
14794 lt_prog_compiler_wl_GCJ='-Wl,'
14795 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14796 # not for PA HP-UX.
14797 case "$host_cpu" in
14798 hppa*64*|ia64*)
14799 # +Z the default
14800 ;;
14801 *)
14802 lt_prog_compiler_pic_GCJ='+Z'
14803 ;;
14804 esac
14805 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14806 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
14807 ;;
14808
14809 irix5* | irix6* | nonstopux*)
14810 lt_prog_compiler_wl_GCJ='-Wl,'
14811 # PIC (with -KPIC) is the default.
14812 lt_prog_compiler_static_GCJ='-non_shared'
14813 ;;
14814
14815 newsos6)
14816 lt_prog_compiler_pic_GCJ='-KPIC'
14817 lt_prog_compiler_static_GCJ='-Bstatic'
14818 ;;
14819
14820 linux*)
14821 case $CC in
14822 icc|ecc)
14823 lt_prog_compiler_wl_GCJ='-Wl,'
14824 lt_prog_compiler_pic_GCJ='-KPIC'
14825 lt_prog_compiler_static_GCJ='-static'
14826 ;;
14827 ccc)
14828 lt_prog_compiler_wl_GCJ='-Wl,'
14829 # All Alpha code is PIC.
14830 lt_prog_compiler_static_GCJ='-non_shared'
14831 ;;
14832 esac
14833 ;;
14834
14835 osf3* | osf4* | osf5*)
14836 lt_prog_compiler_wl_GCJ='-Wl,'
14837 # All OSF/1 code is PIC.
14838 lt_prog_compiler_static_GCJ='-non_shared'
14839 ;;
14840
14841 sco3.2v5*)
14842 lt_prog_compiler_pic_GCJ='-Kpic'
14843 lt_prog_compiler_static_GCJ='-dn'
14844 ;;
14845
14846 solaris*)
14847 lt_prog_compiler_wl_GCJ='-Wl,'
14848 lt_prog_compiler_pic_GCJ='-KPIC'
14849 lt_prog_compiler_static_GCJ='-Bstatic'
14850 ;;
14851
14852 sunos4*)
14853 lt_prog_compiler_wl_GCJ='-Qoption ld '
14854 lt_prog_compiler_pic_GCJ='-PIC'
14855 lt_prog_compiler_static_GCJ='-Bstatic'
14856 ;;
14857
14858 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14859 lt_prog_compiler_wl_GCJ='-Wl,'
14860 lt_prog_compiler_pic_GCJ='-KPIC'
14861 lt_prog_compiler_static_GCJ='-Bstatic'
14862 ;;
14863
14864 sysv4*MP*)
14865 if test -d /usr/nec ;then
14866 lt_prog_compiler_pic_GCJ='-Kconform_pic'
14867 lt_prog_compiler_static_GCJ='-Bstatic'
14868 fi
14869 ;;
14870
14871 uts4*)
14872 lt_prog_compiler_pic_GCJ='-pic'
14873 lt_prog_compiler_static_GCJ='-Bstatic'
14874 ;;
14875
14876 *)
14877 lt_prog_compiler_can_build_shared_GCJ=no
14878 ;;
14879 esac
14880 fi
14881
14882echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
14883echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
14884
14885#
14886# Check to make sure the PIC flag actually works.
14887#
14888if test -n "$lt_prog_compiler_pic_GCJ"; then
14889 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
14890echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
14891if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
14892 echo $ECHO_N "(cached) $ECHO_C" >&6
14893else
14894 lt_prog_compiler_pic_works_GCJ=no
14895 ac_outfile=conftest.$ac_objext
14896 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14897 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
14898 # Insert the option either (1) after the last *FLAGS variable, or
14899 # (2) before a word containing "conftest.", or (3) at the end.
14900 # Note that $ac_compile itself does not contain backslashes and begins
14901 # with a dollar sign (not a hyphen), so the echo should work correctly.
14902 # The option is referenced via a variable to avoid confusing sed.
14903 lt_compile=`echo "$ac_compile" | $SED \
14904 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14905 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14906 -e 's:$: $lt_compiler_flag:'`
John Criswell878be7d2004-02-24 21:43:38 +000014907 (eval echo "\"\$as_me:14903: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014908 (eval "$lt_compile" 2>conftest.err)
14909 ac_status=$?
14910 cat conftest.err >&5
John Criswell878be7d2004-02-24 21:43:38 +000014911 echo "$as_me:14907: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014912 if (exit $ac_status) && test -s "$ac_outfile"; then
14913 # The compiler can only warn and ignore the option if not recognized
14914 # So say no if there are warnings
14915 if test ! -s conftest.err; then
14916 lt_prog_compiler_pic_works_GCJ=yes
14917 fi
14918 fi
14919 $rm conftest*
14920
14921fi
14922echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
14923echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
14924
14925if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
14926 case $lt_prog_compiler_pic_GCJ in
14927 "" | " "*) ;;
14928 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
14929 esac
14930else
14931 lt_prog_compiler_pic_GCJ=
14932 lt_prog_compiler_can_build_shared_GCJ=no
14933fi
14934
14935fi
14936case "$host_os" in
14937 # For platforms which do not support PIC, -DPIC is meaningless:
14938 *djgpp*)
14939 lt_prog_compiler_pic_GCJ=
14940 ;;
14941 *)
14942 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
14943 ;;
14944esac
14945
14946echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14947echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14948if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
14949 echo $ECHO_N "(cached) $ECHO_C" >&6
14950else
14951 lt_cv_prog_compiler_c_o_GCJ=no
14952 $rm -r conftest 2>/dev/null
14953 mkdir conftest
14954 cd conftest
14955 mkdir out
14956 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14957
14958 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
14959 # that will create temporary files in the current directory regardless of
14960 # the output directory. Thus, making CWD read-only will cause this test
14961 # to fail, enabling locking or at least warning the user not to do parallel
14962 # builds.
14963 chmod -w .
14964
14965 lt_compiler_flag="-o out/conftest2.$ac_objext"
14966 # Insert the option either (1) after the last *FLAGS variable, or
14967 # (2) before a word containing "conftest.", or (3) at the end.
14968 # Note that $ac_compile itself does not contain backslashes and begins
14969 # with a dollar sign (not a hyphen), so the echo should work correctly.
14970 lt_compile=`echo "$ac_compile" | $SED \
14971 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14972 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14973 -e 's:$: $lt_compiler_flag:'`
John Criswell878be7d2004-02-24 21:43:38 +000014974 (eval echo "\"\$as_me:14970: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014975 (eval "$lt_compile" 2>out/conftest.err)
14976 ac_status=$?
14977 cat out/conftest.err >&5
John Criswell878be7d2004-02-24 21:43:38 +000014978 echo "$as_me:14974: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014979 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14980 then
14981 # The compiler can only warn and ignore the option if not recognized
14982 # So say no if there are warnings
14983 if test ! -s out/conftest.err; then
14984 lt_cv_prog_compiler_c_o_GCJ=yes
14985 fi
14986 fi
14987 chmod u+w .
14988 $rm conftest* out/*
14989 rmdir out
14990 cd ..
14991 rmdir conftest
14992 $rm conftest*
14993
14994fi
14995echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
14996echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
14997
14998
14999hard_links="nottested"
15000if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15001 # do not overwrite the value of need_locks provided by the user
15002 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15003echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15004 hard_links=yes
15005 $rm conftest*
15006 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15007 touch conftest.a
15008 ln conftest.a conftest.b 2>&5 || hard_links=no
15009 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15010 echo "$as_me:$LINENO: result: $hard_links" >&5
15011echo "${ECHO_T}$hard_links" >&6
15012 if test "$hard_links" = no; then
15013 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15014echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15015 need_locks=warn
15016 fi
15017else
15018 need_locks=no
15019fi
15020
15021echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15022echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15023
15024 runpath_var=
15025 allow_undefined_flag_GCJ=
15026 enable_shared_with_static_runtimes_GCJ=no
15027 archive_cmds_GCJ=
15028 archive_expsym_cmds_GCJ=
15029 old_archive_From_new_cmds_GCJ=
15030 old_archive_from_expsyms_cmds_GCJ=
15031 export_dynamic_flag_spec_GCJ=
15032 whole_archive_flag_spec_GCJ=
15033 thread_safe_flag_spec_GCJ=
15034 hardcode_libdir_flag_spec_GCJ=
15035 hardcode_libdir_flag_spec_ld_GCJ=
15036 hardcode_libdir_separator_GCJ=
15037 hardcode_direct_GCJ=no
15038 hardcode_minus_L_GCJ=no
15039 hardcode_shlibpath_var_GCJ=unsupported
15040 link_all_deplibs_GCJ=unknown
15041 hardcode_automatic_GCJ=no
15042 module_cmds_GCJ=
15043 module_expsym_cmds_GCJ=
15044 always_export_symbols_GCJ=no
15045 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15046 # include_expsyms should be a list of space-separated symbols to be *always*
15047 # included in the symbol list
15048 include_expsyms_GCJ=
15049 # exclude_expsyms can be an extended regexp of symbols to exclude
15050 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15051 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15052 # as well as any symbol that contains `d'.
15053 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15054 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15055 # platforms (ab)use it in PIC code, but their linkers get confused if
15056 # the symbol is explicitly referenced. Since portable code cannot
15057 # rely on this symbol name, it's probably fine to never include it in
15058 # preloaded symbol tables.
15059 extract_expsyms_cmds=
15060
15061 case $host_os in
15062 cygwin* | mingw* | pw32*)
15063 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15064 # When not using gcc, we currently assume that we are using
15065 # Microsoft Visual C++.
15066 if test "$GCC" != yes; then
15067 with_gnu_ld=no
15068 fi
15069 ;;
15070 openbsd*)
15071 with_gnu_ld=no
15072 ;;
15073 esac
15074
15075 ld_shlibs_GCJ=yes
15076 if test "$with_gnu_ld" = yes; then
15077 # If archive_cmds runs LD, not CC, wlarc should be empty
15078 wlarc='${wl}'
15079
15080 # See if GNU ld supports shared libraries.
15081 case $host_os in
15082 aix3* | aix4* | aix5*)
15083 # On AIX/PPC, the GNU linker is very broken
15084 if test "$host_cpu" != ia64; then
15085 ld_shlibs_GCJ=no
15086 cat <<EOF 1>&2
15087
15088*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15089*** to be unable to reliably create shared libraries on AIX.
15090*** Therefore, libtool is disabling shared libraries support. If you
15091*** really care for shared libraries, you may want to modify your PATH
15092*** so that a non-GNU linker is found, and then restart.
15093
15094EOF
15095 fi
15096 ;;
15097
15098 amigaos*)
15099 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)'
15100 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15101 hardcode_minus_L_GCJ=yes
15102
15103 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15104 # that the semantics of dynamic libraries on AmigaOS, at least up
15105 # to version 4, is to share data among multiple programs linked
15106 # with the same dynamic library. Since this doesn't match the
15107 # behavior of shared libraries on other platforms, we can't use
15108 # them.
15109 ld_shlibs_GCJ=no
15110 ;;
15111
15112 beos*)
15113 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15114 allow_undefined_flag_GCJ=unsupported
15115 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15116 # support --undefined. This deserves some investigation. FIXME
15117 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15118 else
15119 ld_shlibs_GCJ=no
15120 fi
15121 ;;
15122
15123 cygwin* | mingw* | pw32*)
15124 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15125 # as there is no search path for DLLs.
15126 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15127 allow_undefined_flag_GCJ=unsupported
15128 always_export_symbols_GCJ=no
15129 enable_shared_with_static_runtimes_GCJ=yes
15130 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15131
15132 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15133 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15134 # If the export-symbols file already is a .def file (1st line
15135 # is EXPORTS), use it as is; otherwise, prepend...
15136 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15137 cp $export_symbols $output_objdir/$soname.def;
15138 else
15139 echo EXPORTS > $output_objdir/$soname.def;
15140 cat $export_symbols >> $output_objdir/$soname.def;
15141 fi~
15142 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15143 else
15144 ld_shlibs=no
15145 fi
15146 ;;
15147
15148 netbsd*)
15149 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15150 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15151 wlarc=
15152 else
15153 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15154 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15155 fi
15156 ;;
15157
15158 solaris* | sysv5*)
15159 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15160 ld_shlibs_GCJ=no
15161 cat <<EOF 1>&2
15162
15163*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15164*** create shared libraries on Solaris systems. Therefore, libtool
15165*** is disabling shared libraries support. We urge you to upgrade GNU
15166*** binutils to release 2.9.1 or newer. Another option is to modify
15167*** your PATH or compiler configuration so that the native linker is
15168*** used, and then restart.
15169
15170EOF
15171 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15172 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15173 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15174 else
15175 ld_shlibs_GCJ=no
15176 fi
15177 ;;
15178
15179 sunos4*)
15180 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15181 wlarc=
15182 hardcode_direct_GCJ=yes
15183 hardcode_shlibpath_var_GCJ=no
15184 ;;
15185
15186 *)
15187 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15188 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15189 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15190 else
15191 ld_shlibs_GCJ=no
15192 fi
15193 ;;
15194 esac
15195
15196 if test "$ld_shlibs_GCJ" = yes; then
15197 runpath_var=LD_RUN_PATH
15198 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15199 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15200 # ancient GNU ld didn't support --whole-archive et. al.
15201 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15202 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15203 else
15204 whole_archive_flag_spec_GCJ=
15205 fi
15206 fi
15207 else
15208 # PORTME fill in a description of your system's linker (not GNU ld)
15209 case $host_os in
15210 aix3*)
15211 allow_undefined_flag_GCJ=unsupported
15212 always_export_symbols_GCJ=yes
15213 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'
15214 # Note: this linker hardcodes the directories in LIBPATH if there
15215 # are no directories specified by -L.
15216 hardcode_minus_L_GCJ=yes
15217 if test "$GCC" = yes && test -z "$link_static_flag"; then
15218 # Neither direct hardcoding nor static linking is supported with a
15219 # broken collect2.
15220 hardcode_direct_GCJ=unsupported
15221 fi
15222 ;;
15223
15224 aix4* | aix5*)
15225 if test "$host_cpu" = ia64; then
15226 # On IA64, the linker does run time linking by default, so we don't
15227 # have to do anything special.
15228 aix_use_runtimelinking=no
15229 exp_sym_flag='-Bexport'
15230 no_entry_flag=""
15231 else
15232 # If we're using GNU nm, then we don't want the "-C" option.
15233 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15234 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15235 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'
15236 else
15237 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'
15238 fi
15239 aix_use_runtimelinking=no
15240
15241 # Test if we are trying to use run time linking or normal
15242 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15243 # need to do runtime linking.
15244 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15245 for ld_flag in $LDFLAGS; do
15246 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15247 aix_use_runtimelinking=yes
15248 break
15249 fi
15250 done
15251 esac
15252
15253 exp_sym_flag='-bexport'
15254 no_entry_flag='-bnoentry'
15255 fi
15256
15257 # When large executables or shared objects are built, AIX ld can
15258 # have problems creating the table of contents. If linking a library
15259 # or program results in "error TOC overflow" add -mminimal-toc to
15260 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15261 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15262
15263 archive_cmds_GCJ=''
15264 hardcode_direct_GCJ=yes
15265 hardcode_libdir_separator_GCJ=':'
15266 link_all_deplibs_GCJ=yes
15267
15268 if test "$GCC" = yes; then
15269 case $host_os in aix4.012|aix4.012.*)
15270 # We only want to do this on AIX 4.2 and lower, the check
15271 # below for broken collect2 doesn't work under 4.3+
15272 collect2name=`${CC} -print-prog-name=collect2`
15273 if test -f "$collect2name" && \
15274 strings "$collect2name" | grep resolve_lib_name >/dev/null
15275 then
15276 # We have reworked collect2
15277 hardcode_direct_GCJ=yes
15278 else
15279 # We have old collect2
15280 hardcode_direct_GCJ=unsupported
15281 # It fails to find uninstalled libraries when the uninstalled
15282 # path is not listed in the libpath. Setting hardcode_minus_L
15283 # to unsupported forces relinking
15284 hardcode_minus_L_GCJ=yes
15285 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15286 hardcode_libdir_separator_GCJ=
15287 fi
15288 esac
15289 shared_flag='-shared'
15290 else
15291 # not using gcc
15292 if test "$host_cpu" = ia64; then
15293 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15294 # chokes on -Wl,-G. The following line is correct:
15295 shared_flag='-G'
15296 else
15297 if test "$aix_use_runtimelinking" = yes; then
15298 shared_flag='${wl}-G'
15299 else
15300 shared_flag='${wl}-bM:SRE'
15301 fi
15302 fi
15303 fi
15304
15305 # It seems that -bexpall does not export symbols beginning with
15306 # underscore (_), so it is better to generate a list of symbols to export.
15307 always_export_symbols_GCJ=yes
15308 if test "$aix_use_runtimelinking" = yes; then
15309 # Warning - without using the other runtime loading flags (-brtl),
15310 # -berok will link without error, but may produce a broken library.
15311 allow_undefined_flag_GCJ='-berok'
15312 # Determine the default libpath from the value encoded in an empty executable.
15313 cat >conftest.$ac_ext <<_ACEOF
15314#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000015315/* confdefs.h. */
15316_ACEOF
15317cat confdefs.h >>conftest.$ac_ext
15318cat >>conftest.$ac_ext <<_ACEOF
15319/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000015320
John Criswell47fdd832003-07-14 16:52:07 +000015321int
15322main ()
15323{
15324
15325 ;
15326 return 0;
15327}
15328_ACEOF
15329rm -f conftest.$ac_objext conftest$ac_exeext
15330if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15331 (eval $ac_link) 2>&5
15332 ac_status=$?
15333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15334 (exit $ac_status); } &&
15335 { ac_try='test -s conftest$ac_exeext'
15336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15337 (eval $ac_try) 2>&5
15338 ac_status=$?
15339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15340 (exit $ac_status); }; }; then
15341
15342aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15343}'`
15344# Check for a 64-bit object if we didn't find anything.
15345if 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; }
15346}'`; fi
15347else
15348 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015349sed 's/^/| /' conftest.$ac_ext >&5
15350
John Criswell47fdd832003-07-14 16:52:07 +000015351fi
15352rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15353if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15354
15355 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15356 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"
15357 else
15358 if test "$host_cpu" = ia64; then
15359 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
15360 allow_undefined_flag_GCJ="-z nodefs"
15361 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"
15362 else
15363 # Determine the default libpath from the value encoded in an empty executable.
15364 cat >conftest.$ac_ext <<_ACEOF
15365#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000015366/* confdefs.h. */
15367_ACEOF
15368cat confdefs.h >>conftest.$ac_ext
15369cat >>conftest.$ac_ext <<_ACEOF
15370/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000015371
John Criswell47fdd832003-07-14 16:52:07 +000015372int
15373main ()
15374{
15375
15376 ;
15377 return 0;
15378}
15379_ACEOF
15380rm -f conftest.$ac_objext conftest$ac_exeext
15381if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15382 (eval $ac_link) 2>&5
15383 ac_status=$?
15384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15385 (exit $ac_status); } &&
15386 { ac_try='test -s conftest$ac_exeext'
15387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15388 (eval $ac_try) 2>&5
15389 ac_status=$?
15390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15391 (exit $ac_status); }; }; then
15392
15393aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15394}'`
15395# Check for a 64-bit object if we didn't find anything.
15396if 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; }
15397}'`; fi
15398else
15399 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015400sed 's/^/| /' conftest.$ac_ext >&5
15401
John Criswell47fdd832003-07-14 16:52:07 +000015402fi
15403rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15404if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15405
15406 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15407 # Warning - without using the other run time loading flags,
15408 # -berok will link without error, but may produce a broken library.
15409 no_undefined_flag_GCJ=' ${wl}-bernotok'
15410 allow_undefined_flag_GCJ=' ${wl}-berok'
15411 # -bexpall does not export symbols beginning with underscore (_)
15412 always_export_symbols_GCJ=yes
15413 # Exported symbols can be pulled into shared objects from archives
15414 whole_archive_flag_spec_GCJ=' '
15415 archive_cmds_need_lc_GCJ=yes
15416 # This is similar to how AIX traditionally builds it's shared libraries.
15417 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'
15418 fi
15419 fi
15420 ;;
15421
15422 amigaos*)
15423 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)'
15424 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15425 hardcode_minus_L_GCJ=yes
15426 # see comment about different semantics on the GNU ld section
15427 ld_shlibs_GCJ=no
15428 ;;
15429
15430 bsdi4*)
15431 export_dynamic_flag_spec_GCJ=-rdynamic
15432 ;;
15433
15434 cygwin* | mingw* | pw32*)
15435 # When not using gcc, we currently assume that we are using
15436 # Microsoft Visual C++.
15437 # hardcode_libdir_flag_spec is actually meaningless, as there is
15438 # no search path for DLLs.
15439 hardcode_libdir_flag_spec_GCJ=' '
15440 allow_undefined_flag_GCJ=unsupported
15441 # Tell ltmain to make .lib files, not .a files.
15442 libext=lib
15443 # Tell ltmain to make .dll files, not .so files.
15444 shrext=".dll"
15445 # FIXME: Setting linknames here is a bad hack.
15446 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15447 # The linker will automatically build a .lib file if we build a DLL.
15448 old_archive_From_new_cmds_GCJ='true'
15449 # FIXME: Should let the user specify the lib program.
15450 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
15451 fix_srcfile_path='`cygpath -w "$srcfile"`'
15452 enable_shared_with_static_runtimes_GCJ=yes
15453 ;;
15454
15455 darwin* | rhapsody*)
15456 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
15457 archive_cmds_need_lc_GCJ=no
15458 case "$host_os" in
15459 rhapsody* | darwin1.[012])
15460 allow_undefined_flag_GCJ='-undefined suppress'
15461 ;;
15462 *) # Darwin 1.3 on
15463 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15464 ;;
15465 esac
15466 # FIXME: Relying on posixy $() will cause problems for
15467 # cross-compilation, but unfortunately the echo tests do not
15468 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
15469 # `"' quotes if we put them in here... so don't!
15470 lt_int_apple_cc_single_mod=no
15471 output_verbose_link_cmd='echo'
15472 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15473 lt_int_apple_cc_single_mod=yes
15474 fi
15475 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15476 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15477 else
15478 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'
15479 fi
15480 module_cmds_GCJ='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
15481 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15482 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15483 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}'
15484 else
15485 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}'
15486 fi
15487 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}'
15488 hardcode_direct_GCJ=no
15489 hardcode_automatic_GCJ=yes
15490 hardcode_shlibpath_var_GCJ=unsupported
15491 whole_archive_flag_spec_GCJ='-all_load $convenience'
15492 link_all_deplibs_GCJ=yes
15493 fi
15494 ;;
15495
15496 dgux*)
15497 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15498 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15499 hardcode_shlibpath_var_GCJ=no
15500 ;;
15501
15502 freebsd1*)
15503 ld_shlibs_GCJ=no
15504 ;;
15505
15506 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15507 # support. Future versions do this automatically, but an explicit c++rt0.o
15508 # does not break anything, and helps significantly (at the cost of a little
15509 # extra space).
15510 freebsd2.2*)
15511 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15512 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15513 hardcode_direct_GCJ=yes
15514 hardcode_shlibpath_var_GCJ=no
15515 ;;
15516
15517 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15518 freebsd2*)
15519 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15520 hardcode_direct_GCJ=yes
15521 hardcode_minus_L_GCJ=yes
15522 hardcode_shlibpath_var_GCJ=no
15523 ;;
15524
15525 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15526 freebsd*)
15527 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15528 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15529 hardcode_direct_GCJ=yes
15530 hardcode_shlibpath_var_GCJ=no
15531 ;;
15532
15533 hpux9*)
15534 if test "$GCC" = yes; then
15535 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'
15536 else
15537 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'
15538 fi
15539 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15540 hardcode_libdir_separator_GCJ=:
15541 hardcode_direct_GCJ=yes
15542
15543 # hardcode_minus_L: Not really in the search PATH,
15544 # but as the default location of the library.
15545 hardcode_minus_L_GCJ=yes
15546 export_dynamic_flag_spec_GCJ='${wl}-E'
15547 ;;
15548
15549 hpux10* | hpux11*)
15550 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15551 case "$host_cpu" in
15552 hppa*64*|ia64*)
15553 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15554 ;;
15555 *)
15556 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15557 ;;
15558 esac
15559 else
15560 case "$host_cpu" in
15561 hppa*64*|ia64*)
15562 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15563 ;;
15564 *)
15565 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15566 ;;
15567 esac
15568 fi
15569 if test "$with_gnu_ld" = no; then
15570 case "$host_cpu" in
15571 hppa*64*)
15572 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15573 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
15574 hardcode_libdir_separator_GCJ=:
15575 hardcode_direct_GCJ=no
15576 hardcode_shlibpath_var_GCJ=no
15577 ;;
15578 ia64*)
15579 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15580 hardcode_direct_GCJ=no
15581 hardcode_shlibpath_var_GCJ=no
15582
15583 # hardcode_minus_L: Not really in the search PATH,
15584 # but as the default location of the library.
15585 hardcode_minus_L_GCJ=yes
15586 ;;
15587 *)
15588 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15589 hardcode_libdir_separator_GCJ=:
15590 hardcode_direct_GCJ=yes
15591 export_dynamic_flag_spec_GCJ='${wl}-E'
15592
15593 # hardcode_minus_L: Not really in the search PATH,
15594 # but as the default location of the library.
15595 hardcode_minus_L_GCJ=yes
15596 ;;
15597 esac
15598 fi
15599 ;;
15600
15601 irix5* | irix6* | nonstopux*)
15602 if test "$GCC" = yes; then
15603 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'
15604 else
15605 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'
15606 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
15607 fi
15608 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15609 hardcode_libdir_separator_GCJ=:
15610 link_all_deplibs_GCJ=yes
15611 ;;
15612
15613 netbsd*)
15614 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15615 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15616 else
15617 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15618 fi
15619 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15620 hardcode_direct_GCJ=yes
15621 hardcode_shlibpath_var_GCJ=no
15622 ;;
15623
15624 newsos6)
15625 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15626 hardcode_direct_GCJ=yes
15627 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15628 hardcode_libdir_separator_GCJ=:
15629 hardcode_shlibpath_var_GCJ=no
15630 ;;
15631
15632 openbsd*)
15633 hardcode_direct_GCJ=yes
15634 hardcode_shlibpath_var_GCJ=no
15635 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15636 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15637 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15638 export_dynamic_flag_spec_GCJ='${wl}-E'
15639 else
15640 case $host_os in
15641 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15642 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15643 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15644 ;;
15645 *)
15646 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15647 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15648 ;;
15649 esac
15650 fi
15651 ;;
15652
15653 os2*)
15654 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15655 hardcode_minus_L_GCJ=yes
15656 allow_undefined_flag_GCJ=unsupported
15657 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'
15658 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15659 ;;
15660
15661 osf3*)
15662 if test "$GCC" = yes; then
15663 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
15664 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'
15665 else
15666 allow_undefined_flag_GCJ=' -expect_unresolved \*'
15667 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'
15668 fi
15669 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15670 hardcode_libdir_separator_GCJ=:
15671 ;;
15672
15673 osf4* | osf5*) # as osf3* with the addition of -msym flag
15674 if test "$GCC" = yes; then
15675 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
15676 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'
15677 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15678 else
15679 allow_undefined_flag_GCJ=' -expect_unresolved \*'
15680 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'
15681 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~
15682 $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'
15683
15684 # Both c and cxx compiler support -rpath directly
15685 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
15686 fi
15687 hardcode_libdir_separator_GCJ=:
15688 ;;
15689
15690 sco3.2v5*)
15691 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15692 hardcode_shlibpath_var_GCJ=no
15693 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
15694 runpath_var=LD_RUN_PATH
15695 hardcode_runpath_var=yes
15696 ;;
15697
15698 solaris*)
15699 no_undefined_flag_GCJ=' -z text'
15700 if test "$GCC" = yes; then
15701 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15702 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15703 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15704 else
15705 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15706 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15707 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15708 fi
15709 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15710 hardcode_shlibpath_var_GCJ=no
15711 case $host_os in
15712 solaris2.[0-5] | solaris2.[0-5].*) ;;
15713 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
15714 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
15715 esac
15716 link_all_deplibs_GCJ=yes
15717 ;;
15718
15719 sunos4*)
15720 if test "x$host_vendor" = xsequent; then
15721 # Use $CC to link under sequent, because it throws in some extra .o
15722 # files that make .init and .fini sections work.
15723 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15724 else
15725 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15726 fi
15727 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15728 hardcode_direct_GCJ=yes
15729 hardcode_minus_L_GCJ=yes
15730 hardcode_shlibpath_var_GCJ=no
15731 ;;
15732
15733 sysv4)
15734 case $host_vendor in
15735 sni)
15736 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15737 hardcode_direct_GCJ=yes # is this really true???
15738 ;;
15739 siemens)
15740 ## LD is ld it makes a PLAMLIB
15741 ## CC just makes a GrossModule.
15742 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15743 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
15744 hardcode_direct_GCJ=no
15745 ;;
15746 motorola)
15747 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15748 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
15749 ;;
15750 esac
15751 runpath_var='LD_RUN_PATH'
15752 hardcode_shlibpath_var_GCJ=no
15753 ;;
15754
15755 sysv4.3*)
15756 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15757 hardcode_shlibpath_var_GCJ=no
15758 export_dynamic_flag_spec_GCJ='-Bexport'
15759 ;;
15760
15761 sysv4*MP*)
15762 if test -d /usr/nec; then
15763 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15764 hardcode_shlibpath_var_GCJ=no
15765 runpath_var=LD_RUN_PATH
15766 hardcode_runpath_var=yes
15767 ld_shlibs_GCJ=yes
15768 fi
15769 ;;
15770
15771 sysv4.2uw2*)
15772 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15773 hardcode_direct_GCJ=yes
15774 hardcode_minus_L_GCJ=no
15775 hardcode_shlibpath_var_GCJ=no
15776 hardcode_runpath_var=yes
15777 runpath_var=LD_RUN_PATH
15778 ;;
15779
15780 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
15781 no_undefined_flag_GCJ='${wl}-z ${wl}text'
15782 if test "$GCC" = yes; then
15783 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15784 else
15785 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15786 fi
15787 runpath_var='LD_RUN_PATH'
15788 hardcode_shlibpath_var_GCJ=no
15789 ;;
15790
15791 sysv5*)
15792 no_undefined_flag_GCJ=' -z text'
15793 # $CC -shared without GNU ld will not create a library from C++
15794 # object files and a static libstdc++, better avoid it by now
15795 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15796 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15797 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15798 hardcode_libdir_flag_spec_GCJ=
15799 hardcode_shlibpath_var_GCJ=no
15800 runpath_var='LD_RUN_PATH'
15801 ;;
15802
15803 uts4*)
15804 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15805 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15806 hardcode_shlibpath_var_GCJ=no
15807 ;;
15808
15809 *)
15810 ld_shlibs_GCJ=no
15811 ;;
15812 esac
15813 fi
15814
15815echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
15816echo "${ECHO_T}$ld_shlibs_GCJ" >&6
15817test "$ld_shlibs_GCJ" = no && can_build_shared=no
15818
15819variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15820if test "$GCC" = yes; then
15821 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15822fi
15823
15824#
15825# Do we need to explicitly link libc?
15826#
15827case "x$archive_cmds_need_lc_GCJ" in
15828x|xyes)
15829 # Assume -lc should be added
15830 archive_cmds_need_lc_GCJ=yes
15831
15832 if test "$enable_shared" = yes && test "$GCC" = yes; then
15833 case $archive_cmds_GCJ in
15834 *'~'*)
15835 # FIXME: we may have to deal with multi-command sequences.
15836 ;;
15837 '$CC '*)
15838 # Test whether the compiler implicitly links with -lc since on some
15839 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15840 # to ld, don't add -lc before -lgcc.
15841 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15842echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
15843 $rm conftest*
15844 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15845
15846 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15847 (eval $ac_compile) 2>&5
15848 ac_status=$?
15849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15850 (exit $ac_status); } 2>conftest.err; then
15851 soname=conftest
15852 lib=conftest
15853 libobjs=conftest.$ac_objext
15854 deplibs=
15855 wl=$lt_prog_compiler_wl_GCJ
15856 compiler_flags=-v
15857 linker_flags=-v
15858 verstring=
15859 output_objdir=.
15860 libname=conftest
15861 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
15862 allow_undefined_flag_GCJ=
15863 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15864 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15865 ac_status=$?
15866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15867 (exit $ac_status); }
15868 then
15869 archive_cmds_need_lc_GCJ=no
15870 else
15871 archive_cmds_need_lc_GCJ=yes
15872 fi
15873 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
15874 else
15875 cat conftest.err 1>&5
15876 fi
15877 $rm conftest*
15878 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
15879echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
15880 ;;
15881 esac
15882 fi
15883 ;;
15884esac
15885
15886echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15887echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15888hardcode_action_GCJ=
15889if test -n "$hardcode_libdir_flag_spec_GCJ" || \
15890 test -n "$runpath_var GCJ" || \
15891 test "X$hardcode_automatic_GCJ"="Xyes" ; then
15892
15893 # We can hardcode non-existant directories.
15894 if test "$hardcode_direct_GCJ" != no &&
15895 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15896 # have to relink, otherwise we might link with an installed library
15897 # when we should be linking with a yet-to-be-installed one
15898 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
15899 test "$hardcode_minus_L_GCJ" != no; then
15900 # Linking always hardcodes the temporary library directory.
15901 hardcode_action_GCJ=relink
15902 else
15903 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15904 hardcode_action_GCJ=immediate
15905 fi
15906else
15907 # We cannot hardcode anything, or else we can only hardcode existing
15908 # directories.
15909 hardcode_action_GCJ=unsupported
15910fi
15911echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
15912echo "${ECHO_T}$hardcode_action_GCJ" >&6
15913
15914if test "$hardcode_action_GCJ" = relink; then
15915 # Fast installation is not supported
15916 enable_fast_install=no
15917elif test "$shlibpath_overrides_runpath" = yes ||
15918 test "$enable_shared" = no; then
15919 # Fast installation is not necessary
15920 enable_fast_install=needless
15921fi
15922
15923striplib=
15924old_striplib=
15925echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15926echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15927if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15928 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15929 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15930 echo "$as_me:$LINENO: result: yes" >&5
15931echo "${ECHO_T}yes" >&6
15932else
15933# FIXME - insert some real tests, host_os isn't really good enough
15934 case $host_os in
15935 darwin*)
15936 if test -n "$STRIP" ; then
15937 striplib="$STRIP -x"
15938 echo "$as_me:$LINENO: result: yes" >&5
15939echo "${ECHO_T}yes" >&6
15940 else
15941 echo "$as_me:$LINENO: result: no" >&5
15942echo "${ECHO_T}no" >&6
15943fi
15944 ;;
15945 *)
15946 echo "$as_me:$LINENO: result: no" >&5
15947echo "${ECHO_T}no" >&6
15948 ;;
15949 esac
15950fi
15951
15952echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15953echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
15954library_names_spec=
15955libname_spec='lib$name'
15956soname_spec=
15957shrext=".so"
15958postinstall_cmds=
15959postuninstall_cmds=
15960finish_cmds=
15961finish_eval=
15962shlibpath_var=
15963shlibpath_overrides_runpath=unknown
15964version_type=none
15965dynamic_linker="$host_os ld.so"
15966sys_lib_dlsearch_path_spec="/lib /usr/lib"
15967if test "$GCC" = yes; then
15968 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15969 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15970 # if the path contains ";" then we assume it to be the separator
15971 # otherwise default to the standard path separator (i.e. ":") - it is
15972 # assumed that no part of a normal pathname contains ";" but that should
15973 # okay in the real world where ";" in dirpaths is itself problematic.
15974 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15975 else
15976 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15977 fi
15978else
15979 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15980fi
15981need_lib_prefix=unknown
15982hardcode_into_libs=no
15983
15984# when you set need_version to no, make sure it does not cause -set_version
15985# flags to be left without arguments
15986need_version=unknown
15987
15988case $host_os in
15989aix3*)
15990 version_type=linux
15991 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15992 shlibpath_var=LIBPATH
15993
15994 # AIX 3 has no versioning support, so we append a major version to the name.
15995 soname_spec='${libname}${release}${shared_ext}$major'
15996 ;;
15997
15998aix4* | aix5*)
15999 version_type=linux
16000 need_lib_prefix=no
16001 need_version=no
16002 hardcode_into_libs=yes
16003 if test "$host_cpu" = ia64; then
16004 # AIX 5 supports IA64
16005 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16006 shlibpath_var=LD_LIBRARY_PATH
16007 else
16008 # With GCC up to 2.95.x, collect2 would create an import file
16009 # for dependence libraries. The import file would start with
16010 # the line `#! .'. This would cause the generated library to
16011 # depend on `.', always an invalid library. This was fixed in
16012 # development snapshots of GCC prior to 3.0.
16013 case $host_os in
16014 aix4 | aix4.[01] | aix4.[01].*)
16015 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16016 echo ' yes '
16017 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16018 :
16019 else
16020 can_build_shared=no
16021 fi
16022 ;;
16023 esac
16024 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16025 # soname into executable. Probably we can add versioning support to
16026 # collect2, so additional links can be useful in future.
16027 if test "$aix_use_runtimelinking" = yes; then
16028 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16029 # instead of lib<name>.a to let people know that these are not
16030 # typical AIX shared libraries.
16031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16032 else
16033 # We preserve .a as extension for shared libraries through AIX4.2
16034 # and later when we are not doing run time linking.
16035 library_names_spec='${libname}${release}.a $libname.a'
16036 soname_spec='${libname}${release}${shared_ext}$major'
16037 fi
16038 shlibpath_var=LIBPATH
16039 fi
16040 ;;
16041
16042amigaos*)
16043 library_names_spec='$libname.ixlibrary $libname.a'
16044 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16045 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'
16046 ;;
16047
16048beos*)
16049 library_names_spec='${libname}${shared_ext}'
16050 dynamic_linker="$host_os ld.so"
16051 shlibpath_var=LIBRARY_PATH
16052 ;;
16053
16054bsdi4*)
16055 version_type=linux
16056 need_version=no
16057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16058 soname_spec='${libname}${release}${shared_ext}$major'
16059 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16060 shlibpath_var=LD_LIBRARY_PATH
16061 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16062 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16063 # the default ld.so.conf also contains /usr/contrib/lib and
16064 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16065 # libtool to hard-code these into programs
16066 ;;
16067
16068cygwin* | mingw* | pw32*)
16069 version_type=windows
16070 shrext=".dll"
16071 need_version=no
16072 need_lib_prefix=no
16073
16074 case $GCC,$host_os in
16075 yes,cygwin* | yes,mingw* | yes,pw32*)
16076 library_names_spec='$libname.dll.a'
16077 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16078 postinstall_cmds='base_file=`basename \${file}`~
16079 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16080 dldir=$destdir/`dirname \$dlpath`~
16081 test -d \$dldir || mkdir -p \$dldir~
16082 $install_prog $dir/$dlname \$dldir/$dlname'
16083 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16084 dlpath=$dir/\$dldll~
16085 $rm \$dlpath'
16086 shlibpath_overrides_runpath=yes
16087
16088 case $host_os in
16089 cygwin*)
16090 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16091 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16092 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
16093 ;;
16094 mingw*)
16095 # MinGW DLLs use traditional 'lib' prefix
16096 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16097 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16098 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16099 # It is most probably a Windows format PATH printed by
16100 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16101 # path with ; separators, and with drive letters. We can handle the
16102 # drive letters (cygwin fileutils understands them), so leave them,
16103 # especially as we might pass files found there to a mingw objdump,
16104 # which wouldn't understand a cygwinified path. Ahh.
16105 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16106 else
16107 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16108 fi
16109 ;;
16110 pw32*)
16111 # pw32 DLLs use 'pw' prefix rather than 'lib'
16112 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16113 ;;
16114 esac
16115 ;;
16116
16117 *)
16118 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16119 ;;
16120 esac
16121 dynamic_linker='Win32 ld.exe'
16122 # FIXME: first we should search . and the directory the executable is in
16123 shlibpath_var=PATH
16124 ;;
16125
16126darwin* | rhapsody*)
16127 dynamic_linker="$host_os dyld"
16128 version_type=darwin
16129 need_lib_prefix=no
16130 need_version=no
16131 # FIXME: Relying on posixy $() will cause problems for
16132 # cross-compilation, but unfortunately the echo tests do not
16133 # yet detect zsh echo's removal of \ escapes.
16134 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16135 soname_spec='${libname}${release}${major}$shared_ext'
16136 shlibpath_overrides_runpath=yes
16137 shlibpath_var=DYLD_LIBRARY_PATH
16138 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
16139 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16140 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
16141 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"`
16142 fi
16143 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16144 ;;
16145
16146dgux*)
16147 version_type=linux
16148 need_lib_prefix=no
16149 need_version=no
16150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16151 soname_spec='${libname}${release}${shared_ext}$major'
16152 shlibpath_var=LD_LIBRARY_PATH
16153 ;;
16154
16155freebsd1*)
16156 dynamic_linker=no
16157 ;;
16158
16159freebsd*)
16160 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16161 version_type=freebsd-$objformat
16162 case $version_type in
16163 freebsd-elf*)
16164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16165 need_version=no
16166 need_lib_prefix=no
16167 ;;
16168 freebsd-*)
16169 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16170 need_version=yes
16171 ;;
16172 esac
16173 shlibpath_var=LD_LIBRARY_PATH
16174 case $host_os in
16175 freebsd2*)
16176 shlibpath_overrides_runpath=yes
16177 ;;
16178 freebsd3.01* | freebsdelf3.01*)
16179 shlibpath_overrides_runpath=yes
16180 hardcode_into_libs=yes
16181 ;;
16182 *) # from 3.2 on
16183 shlibpath_overrides_runpath=no
16184 hardcode_into_libs=yes
16185 ;;
16186 esac
16187 ;;
16188
16189gnu*)
16190 version_type=linux
16191 need_lib_prefix=no
16192 need_version=no
16193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16194 soname_spec='${libname}${release}${shared_ext}$major'
16195 shlibpath_var=LD_LIBRARY_PATH
16196 hardcode_into_libs=yes
16197 ;;
16198
16199hpux9* | hpux10* | hpux11*)
16200 # Give a soname corresponding to the major version so that dld.sl refuses to
16201 # link against other versions.
16202 version_type=sunos
16203 need_lib_prefix=no
16204 need_version=no
16205 case "$host_cpu" in
16206 ia64*)
16207 shrext='.so'
16208 hardcode_into_libs=yes
16209 dynamic_linker="$host_os dld.so"
16210 shlibpath_var=LD_LIBRARY_PATH
16211 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16213 soname_spec='${libname}${release}${shared_ext}$major'
16214 if test "X$HPUX_IA64_MODE" = X32; then
16215 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16216 else
16217 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16218 fi
16219 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16220 ;;
16221 hppa*64*)
16222 shrext='.sl'
16223 hardcode_into_libs=yes
16224 dynamic_linker="$host_os dld.sl"
16225 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16226 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16228 soname_spec='${libname}${release}${shared_ext}$major'
16229 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16230 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16231 ;;
16232 *)
16233 shrext='.sl'
16234 dynamic_linker="$host_os dld.sl"
16235 shlibpath_var=SHLIB_PATH
16236 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16238 soname_spec='${libname}${release}${shared_ext}$major'
16239 ;;
16240 esac
16241 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16242 postinstall_cmds='chmod 555 $lib'
16243 ;;
16244
16245irix5* | irix6* | nonstopux*)
16246 case $host_os in
16247 nonstopux*) version_type=nonstopux ;;
16248 *)
16249 if test "$lt_cv_prog_gnu_ld" = yes; then
16250 version_type=linux
16251 else
16252 version_type=irix
16253 fi ;;
16254 esac
16255 need_lib_prefix=no
16256 need_version=no
16257 soname_spec='${libname}${release}${shared_ext}$major'
16258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16259 case $host_os in
16260 irix5* | nonstopux*)
16261 libsuff= shlibsuff=
16262 ;;
16263 *)
16264 case $LD in # libtool.m4 will add one of these switches to LD
16265 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16266 libsuff= shlibsuff= libmagic=32-bit;;
16267 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16268 libsuff=32 shlibsuff=N32 libmagic=N32;;
16269 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16270 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16271 *) libsuff= shlibsuff= libmagic=never-match;;
16272 esac
16273 ;;
16274 esac
16275 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16276 shlibpath_overrides_runpath=no
16277 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16278 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16279 hardcode_into_libs=yes
16280 ;;
16281
16282# No shared lib support for Linux oldld, aout, or coff.
16283linux*oldld* | linux*aout* | linux*coff*)
16284 dynamic_linker=no
16285 ;;
16286
16287# This must be Linux ELF.
16288linux*)
16289 version_type=linux
16290 need_lib_prefix=no
16291 need_version=no
16292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16293 soname_spec='${libname}${release}${shared_ext}$major'
16294 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16295 shlibpath_var=LD_LIBRARY_PATH
16296 shlibpath_overrides_runpath=no
16297 # This implies no fast_install, which is unacceptable.
16298 # Some rework will be needed to allow for fast_install
16299 # before this can be enabled.
16300 hardcode_into_libs=yes
16301
16302 # We used to test for /lib/ld.so.1 and disable shared libraries on
16303 # powerpc, because MkLinux only supported shared libraries with the
16304 # GNU dynamic linker. Since this was broken with cross compilers,
16305 # most powerpc-linux boxes support dynamic linking these days and
16306 # people can always --disable-shared, the test was removed, and we
16307 # assume the GNU/Linux dynamic linker is in use.
16308 dynamic_linker='GNU/Linux ld.so'
16309 ;;
16310
16311netbsd*)
16312 version_type=sunos
16313 need_lib_prefix=no
16314 need_version=no
16315 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16317 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16318 dynamic_linker='NetBSD (a.out) ld.so'
16319 else
16320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
16321 soname_spec='${libname}${release}${shared_ext}$major'
16322 dynamic_linker='NetBSD ld.elf_so'
16323 fi
16324 shlibpath_var=LD_LIBRARY_PATH
16325 shlibpath_overrides_runpath=yes
16326 hardcode_into_libs=yes
16327 ;;
16328
16329newsos6)
16330 version_type=linux
16331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16332 shlibpath_var=LD_LIBRARY_PATH
16333 shlibpath_overrides_runpath=yes
16334 ;;
16335
16336nto-qnx)
16337 version_type=linux
16338 need_lib_prefix=no
16339 need_version=no
16340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16341 soname_spec='${libname}${release}${shared_ext}$major'
16342 shlibpath_var=LD_LIBRARY_PATH
16343 shlibpath_overrides_runpath=yes
16344 ;;
16345
16346openbsd*)
16347 version_type=sunos
16348 need_lib_prefix=no
16349 need_version=no
16350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16351 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16352 shlibpath_var=LD_LIBRARY_PATH
16353 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16354 case $host_os in
16355 openbsd2.[89] | openbsd2.[89].*)
16356 shlibpath_overrides_runpath=no
16357 ;;
16358 *)
16359 shlibpath_overrides_runpath=yes
16360 ;;
16361 esac
16362 else
16363 shlibpath_overrides_runpath=yes
16364 fi
16365 ;;
16366
16367os2*)
16368 libname_spec='$name'
16369 shrext=".dll"
16370 need_lib_prefix=no
16371 library_names_spec='$libname${shared_ext} $libname.a'
16372 dynamic_linker='OS/2 ld.exe'
16373 shlibpath_var=LIBPATH
16374 ;;
16375
16376osf3* | osf4* | osf5*)
16377 version_type=osf
16378 need_lib_prefix=no
16379 need_version=no
16380 soname_spec='${libname}${release}${shared_ext}$major'
16381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16382 shlibpath_var=LD_LIBRARY_PATH
16383 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16384 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16385 ;;
16386
16387sco3.2v5*)
16388 version_type=osf
16389 soname_spec='${libname}${release}${shared_ext}$major'
16390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16391 shlibpath_var=LD_LIBRARY_PATH
16392 ;;
16393
16394solaris*)
16395 version_type=linux
16396 need_lib_prefix=no
16397 need_version=no
16398 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16399 soname_spec='${libname}${release}${shared_ext}$major'
16400 shlibpath_var=LD_LIBRARY_PATH
16401 shlibpath_overrides_runpath=yes
16402 hardcode_into_libs=yes
16403 # ldd complains unless libraries are executable
16404 postinstall_cmds='chmod +x $lib'
16405 ;;
16406
16407sunos4*)
16408 version_type=sunos
16409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16410 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16411 shlibpath_var=LD_LIBRARY_PATH
16412 shlibpath_overrides_runpath=yes
16413 if test "$with_gnu_ld" = yes; then
16414 need_lib_prefix=no
16415 fi
16416 need_version=yes
16417 ;;
16418
16419sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16420 version_type=linux
16421 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16422 soname_spec='${libname}${release}${shared_ext}$major'
16423 shlibpath_var=LD_LIBRARY_PATH
16424 case $host_vendor in
16425 sni)
16426 shlibpath_overrides_runpath=no
16427 need_lib_prefix=no
16428 export_dynamic_flag_spec='${wl}-Blargedynsym'
16429 runpath_var=LD_RUN_PATH
16430 ;;
16431 siemens)
16432 need_lib_prefix=no
16433 ;;
16434 motorola)
16435 need_lib_prefix=no
16436 need_version=no
16437 shlibpath_overrides_runpath=no
16438 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16439 ;;
16440 esac
16441 ;;
16442
16443sysv4*MP*)
16444 if test -d /usr/nec ;then
16445 version_type=linux
16446 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16447 soname_spec='$libname${shared_ext}.$major'
16448 shlibpath_var=LD_LIBRARY_PATH
16449 fi
16450 ;;
16451
16452uts4*)
16453 version_type=linux
16454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16455 soname_spec='${libname}${release}${shared_ext}$major'
16456 shlibpath_var=LD_LIBRARY_PATH
16457 ;;
16458
16459*)
16460 dynamic_linker=no
16461 ;;
16462esac
16463echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16464echo "${ECHO_T}$dynamic_linker" >&6
16465test "$dynamic_linker" = no && can_build_shared=no
16466
16467if test "x$enable_dlopen" != xyes; then
16468 enable_dlopen=unknown
16469 enable_dlopen_self=unknown
16470 enable_dlopen_self_static=unknown
16471else
16472 lt_cv_dlopen=no
16473 lt_cv_dlopen_libs=
16474
16475 case $host_os in
16476 beos*)
16477 lt_cv_dlopen="load_add_on"
16478 lt_cv_dlopen_libs=
16479 lt_cv_dlopen_self=yes
16480 ;;
16481
16482 mingw* | pw32*)
16483 lt_cv_dlopen="LoadLibrary"
16484 lt_cv_dlopen_libs=
16485 ;;
16486
16487 cygwin*)
16488 lt_cv_dlopen="dlopen"
16489 lt_cv_dlopen_libs=
16490 ;;
16491
16492 darwin*)
16493 # if libdl is installed we need to link against it
16494 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16495echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16496if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16497 echo $ECHO_N "(cached) $ECHO_C" >&6
16498else
16499 ac_check_lib_save_LIBS=$LIBS
16500LIBS="-ldl $LIBS"
16501cat >conftest.$ac_ext <<_ACEOF
16502#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000016503/* confdefs.h. */
16504_ACEOF
16505cat confdefs.h >>conftest.$ac_ext
16506cat >>conftest.$ac_ext <<_ACEOF
16507/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016508
16509/* Override any gcc2 internal prototype to avoid an error. */
16510#ifdef __cplusplus
16511extern "C"
16512#endif
16513/* We use char because int might match the return type of a gcc2
16514 builtin and then its argument prototype would still apply. */
16515char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000016516int
16517main ()
16518{
16519dlopen ();
16520 ;
16521 return 0;
16522}
16523_ACEOF
16524rm -f conftest.$ac_objext conftest$ac_exeext
16525if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16526 (eval $ac_link) 2>&5
16527 ac_status=$?
16528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16529 (exit $ac_status); } &&
16530 { ac_try='test -s conftest$ac_exeext'
16531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16532 (eval $ac_try) 2>&5
16533 ac_status=$?
16534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16535 (exit $ac_status); }; }; then
16536 ac_cv_lib_dl_dlopen=yes
16537else
16538 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016539sed 's/^/| /' conftest.$ac_ext >&5
16540
John Criswell47fdd832003-07-14 16:52:07 +000016541ac_cv_lib_dl_dlopen=no
16542fi
16543rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16544LIBS=$ac_check_lib_save_LIBS
16545fi
16546echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16547echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16548if test $ac_cv_lib_dl_dlopen = yes; then
16549 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16550else
16551
16552 lt_cv_dlopen="dyld"
16553 lt_cv_dlopen_libs=
16554 lt_cv_dlopen_self=yes
16555
16556fi
16557
16558 ;;
16559
16560 *)
16561 echo "$as_me:$LINENO: checking for shl_load" >&5
16562echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
16563if test "${ac_cv_func_shl_load+set}" = set; then
16564 echo $ECHO_N "(cached) $ECHO_C" >&6
16565else
16566 cat >conftest.$ac_ext <<_ACEOF
16567#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000016568/* confdefs.h. */
16569_ACEOF
16570cat confdefs.h >>conftest.$ac_ext
16571cat >>conftest.$ac_ext <<_ACEOF
16572/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016573/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000016574 which can conflict with char shl_load (); below.
16575 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16576 <limits.h> exists even on freestanding compilers. */
16577#ifdef __STDC__
16578# include <limits.h>
16579#else
16580# include <assert.h>
16581#endif
John Criswell47fdd832003-07-14 16:52:07 +000016582/* Override any gcc2 internal prototype to avoid an error. */
16583#ifdef __cplusplus
16584extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000016585{
John Criswell47fdd832003-07-14 16:52:07 +000016586#endif
16587/* We use char because int might match the return type of a gcc2
16588 builtin and then its argument prototype would still apply. */
16589char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000016590/* The GNU C library defines this for functions which it implements
16591 to always fail with ENOSYS. Some functions are actually named
16592 something starting with __ and the normal name is an alias. */
16593#if defined (__stub_shl_load) || defined (__stub___shl_load)
16594choke me
16595#else
John Criswell0c38eaf2003-09-10 15:17:25 +000016596char (*f) () = shl_load;
16597#endif
16598#ifdef __cplusplus
16599}
John Criswell47fdd832003-07-14 16:52:07 +000016600#endif
16601
John Criswell0c38eaf2003-09-10 15:17:25 +000016602int
16603main ()
16604{
16605return f != shl_load;
John Criswell47fdd832003-07-14 16:52:07 +000016606 ;
16607 return 0;
16608}
16609_ACEOF
16610rm -f conftest.$ac_objext conftest$ac_exeext
16611if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16612 (eval $ac_link) 2>&5
16613 ac_status=$?
16614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16615 (exit $ac_status); } &&
16616 { ac_try='test -s conftest$ac_exeext'
16617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16618 (eval $ac_try) 2>&5
16619 ac_status=$?
16620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16621 (exit $ac_status); }; }; then
16622 ac_cv_func_shl_load=yes
16623else
16624 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016625sed 's/^/| /' conftest.$ac_ext >&5
16626
John Criswell47fdd832003-07-14 16:52:07 +000016627ac_cv_func_shl_load=no
16628fi
16629rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16630fi
16631echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16632echo "${ECHO_T}$ac_cv_func_shl_load" >&6
16633if test $ac_cv_func_shl_load = yes; then
16634 lt_cv_dlopen="shl_load"
16635else
16636 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16637echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
16638if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16639 echo $ECHO_N "(cached) $ECHO_C" >&6
16640else
16641 ac_check_lib_save_LIBS=$LIBS
16642LIBS="-ldld $LIBS"
16643cat >conftest.$ac_ext <<_ACEOF
16644#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000016645/* confdefs.h. */
16646_ACEOF
16647cat confdefs.h >>conftest.$ac_ext
16648cat >>conftest.$ac_ext <<_ACEOF
16649/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016650
16651/* Override any gcc2 internal prototype to avoid an error. */
16652#ifdef __cplusplus
16653extern "C"
16654#endif
16655/* We use char because int might match the return type of a gcc2
16656 builtin and then its argument prototype would still apply. */
16657char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000016658int
16659main ()
16660{
16661shl_load ();
16662 ;
16663 return 0;
16664}
16665_ACEOF
16666rm -f conftest.$ac_objext conftest$ac_exeext
16667if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16668 (eval $ac_link) 2>&5
16669 ac_status=$?
16670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16671 (exit $ac_status); } &&
16672 { ac_try='test -s conftest$ac_exeext'
16673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16674 (eval $ac_try) 2>&5
16675 ac_status=$?
16676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16677 (exit $ac_status); }; }; then
16678 ac_cv_lib_dld_shl_load=yes
16679else
16680 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016681sed 's/^/| /' conftest.$ac_ext >&5
16682
John Criswell47fdd832003-07-14 16:52:07 +000016683ac_cv_lib_dld_shl_load=no
16684fi
16685rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16686LIBS=$ac_check_lib_save_LIBS
16687fi
16688echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16689echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
16690if test $ac_cv_lib_dld_shl_load = yes; then
16691 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16692else
16693 echo "$as_me:$LINENO: checking for dlopen" >&5
16694echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
16695if test "${ac_cv_func_dlopen+set}" = set; then
16696 echo $ECHO_N "(cached) $ECHO_C" >&6
16697else
16698 cat >conftest.$ac_ext <<_ACEOF
16699#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000016700/* confdefs.h. */
16701_ACEOF
16702cat confdefs.h >>conftest.$ac_ext
16703cat >>conftest.$ac_ext <<_ACEOF
16704/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016705/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000016706 which can conflict with char dlopen (); below.
16707 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16708 <limits.h> exists even on freestanding compilers. */
16709#ifdef __STDC__
16710# include <limits.h>
16711#else
16712# include <assert.h>
16713#endif
John Criswell47fdd832003-07-14 16:52:07 +000016714/* Override any gcc2 internal prototype to avoid an error. */
16715#ifdef __cplusplus
16716extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000016717{
John Criswell47fdd832003-07-14 16:52:07 +000016718#endif
16719/* We use char because int might match the return type of a gcc2
16720 builtin and then its argument prototype would still apply. */
16721char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000016722/* The GNU C library defines this for functions which it implements
16723 to always fail with ENOSYS. Some functions are actually named
16724 something starting with __ and the normal name is an alias. */
16725#if defined (__stub_dlopen) || defined (__stub___dlopen)
16726choke me
16727#else
John Criswell0c38eaf2003-09-10 15:17:25 +000016728char (*f) () = dlopen;
16729#endif
16730#ifdef __cplusplus
16731}
John Criswell47fdd832003-07-14 16:52:07 +000016732#endif
16733
John Criswell0c38eaf2003-09-10 15:17:25 +000016734int
16735main ()
16736{
16737return f != dlopen;
John Criswell47fdd832003-07-14 16:52:07 +000016738 ;
16739 return 0;
16740}
16741_ACEOF
16742rm -f conftest.$ac_objext conftest$ac_exeext
16743if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16744 (eval $ac_link) 2>&5
16745 ac_status=$?
16746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16747 (exit $ac_status); } &&
16748 { ac_try='test -s conftest$ac_exeext'
16749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16750 (eval $ac_try) 2>&5
16751 ac_status=$?
16752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16753 (exit $ac_status); }; }; then
16754 ac_cv_func_dlopen=yes
16755else
16756 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016757sed 's/^/| /' conftest.$ac_ext >&5
16758
John Criswell47fdd832003-07-14 16:52:07 +000016759ac_cv_func_dlopen=no
16760fi
16761rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16762fi
16763echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16764echo "${ECHO_T}$ac_cv_func_dlopen" >&6
16765if test $ac_cv_func_dlopen = yes; then
16766 lt_cv_dlopen="dlopen"
16767else
16768 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16769echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16770if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16771 echo $ECHO_N "(cached) $ECHO_C" >&6
16772else
16773 ac_check_lib_save_LIBS=$LIBS
16774LIBS="-ldl $LIBS"
16775cat >conftest.$ac_ext <<_ACEOF
16776#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000016777/* confdefs.h. */
16778_ACEOF
16779cat confdefs.h >>conftest.$ac_ext
16780cat >>conftest.$ac_ext <<_ACEOF
16781/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016782
16783/* Override any gcc2 internal prototype to avoid an error. */
16784#ifdef __cplusplus
16785extern "C"
16786#endif
16787/* We use char because int might match the return type of a gcc2
16788 builtin and then its argument prototype would still apply. */
16789char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000016790int
16791main ()
16792{
16793dlopen ();
16794 ;
16795 return 0;
16796}
16797_ACEOF
16798rm -f conftest.$ac_objext conftest$ac_exeext
16799if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16800 (eval $ac_link) 2>&5
16801 ac_status=$?
16802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16803 (exit $ac_status); } &&
16804 { ac_try='test -s conftest$ac_exeext'
16805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16806 (eval $ac_try) 2>&5
16807 ac_status=$?
16808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16809 (exit $ac_status); }; }; then
16810 ac_cv_lib_dl_dlopen=yes
16811else
16812 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016813sed 's/^/| /' conftest.$ac_ext >&5
16814
John Criswell47fdd832003-07-14 16:52:07 +000016815ac_cv_lib_dl_dlopen=no
16816fi
16817rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16818LIBS=$ac_check_lib_save_LIBS
16819fi
16820echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16821echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16822if test $ac_cv_lib_dl_dlopen = yes; then
16823 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16824else
16825 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
16826echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
16827if test "${ac_cv_lib_svld_dlopen+set}" = set; then
16828 echo $ECHO_N "(cached) $ECHO_C" >&6
16829else
16830 ac_check_lib_save_LIBS=$LIBS
16831LIBS="-lsvld $LIBS"
16832cat >conftest.$ac_ext <<_ACEOF
16833#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000016834/* confdefs.h. */
16835_ACEOF
16836cat confdefs.h >>conftest.$ac_ext
16837cat >>conftest.$ac_ext <<_ACEOF
16838/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016839
16840/* Override any gcc2 internal prototype to avoid an error. */
16841#ifdef __cplusplus
16842extern "C"
16843#endif
16844/* We use char because int might match the return type of a gcc2
16845 builtin and then its argument prototype would still apply. */
16846char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000016847int
16848main ()
16849{
16850dlopen ();
16851 ;
16852 return 0;
16853}
16854_ACEOF
16855rm -f conftest.$ac_objext conftest$ac_exeext
16856if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16857 (eval $ac_link) 2>&5
16858 ac_status=$?
16859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16860 (exit $ac_status); } &&
16861 { ac_try='test -s conftest$ac_exeext'
16862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16863 (eval $ac_try) 2>&5
16864 ac_status=$?
16865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16866 (exit $ac_status); }; }; then
16867 ac_cv_lib_svld_dlopen=yes
16868else
16869 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016870sed 's/^/| /' conftest.$ac_ext >&5
16871
John Criswell47fdd832003-07-14 16:52:07 +000016872ac_cv_lib_svld_dlopen=no
16873fi
16874rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16875LIBS=$ac_check_lib_save_LIBS
16876fi
16877echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
16878echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
16879if test $ac_cv_lib_svld_dlopen = yes; then
16880 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16881else
16882 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
16883echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
16884if test "${ac_cv_lib_dld_dld_link+set}" = set; then
16885 echo $ECHO_N "(cached) $ECHO_C" >&6
16886else
16887 ac_check_lib_save_LIBS=$LIBS
16888LIBS="-ldld $LIBS"
16889cat >conftest.$ac_ext <<_ACEOF
16890#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000016891/* confdefs.h. */
16892_ACEOF
16893cat confdefs.h >>conftest.$ac_ext
16894cat >>conftest.$ac_ext <<_ACEOF
16895/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016896
16897/* Override any gcc2 internal prototype to avoid an error. */
16898#ifdef __cplusplus
16899extern "C"
16900#endif
16901/* We use char because int might match the return type of a gcc2
16902 builtin and then its argument prototype would still apply. */
16903char dld_link ();
John Criswell47fdd832003-07-14 16:52:07 +000016904int
16905main ()
16906{
16907dld_link ();
16908 ;
16909 return 0;
16910}
16911_ACEOF
16912rm -f conftest.$ac_objext conftest$ac_exeext
16913if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16914 (eval $ac_link) 2>&5
16915 ac_status=$?
16916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16917 (exit $ac_status); } &&
16918 { ac_try='test -s conftest$ac_exeext'
16919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16920 (eval $ac_try) 2>&5
16921 ac_status=$?
16922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16923 (exit $ac_status); }; }; then
16924 ac_cv_lib_dld_dld_link=yes
16925else
16926 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016927sed 's/^/| /' conftest.$ac_ext >&5
16928
John Criswell47fdd832003-07-14 16:52:07 +000016929ac_cv_lib_dld_dld_link=no
16930fi
16931rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16932LIBS=$ac_check_lib_save_LIBS
16933fi
16934echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
16935echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
16936if test $ac_cv_lib_dld_dld_link = yes; then
16937 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
16938fi
16939
16940
16941fi
16942
16943
16944fi
16945
16946
16947fi
16948
16949
16950fi
16951
16952
16953fi
16954
16955 ;;
16956 esac
16957
16958 if test "x$lt_cv_dlopen" != xno; then
16959 enable_dlopen=yes
16960 else
16961 enable_dlopen=no
16962 fi
16963
16964 case $lt_cv_dlopen in
16965 dlopen)
16966 save_CPPFLAGS="$CPPFLAGS"
16967 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16968
16969 save_LDFLAGS="$LDFLAGS"
16970 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
16971
16972 save_LIBS="$LIBS"
16973 LIBS="$lt_cv_dlopen_libs $LIBS"
16974
16975 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
16976echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
16977if test "${lt_cv_dlopen_self+set}" = set; then
16978 echo $ECHO_N "(cached) $ECHO_C" >&6
16979else
16980 if test "$cross_compiling" = yes; then :
16981 lt_cv_dlopen_self=cross
16982else
16983 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16984 lt_status=$lt_dlunknown
16985 cat > conftest.$ac_ext <<EOF
John Criswell878be7d2004-02-24 21:43:38 +000016986#line 16982 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000016987#include "confdefs.h"
16988
16989#if HAVE_DLFCN_H
16990#include <dlfcn.h>
16991#endif
16992
16993#include <stdio.h>
16994
16995#ifdef RTLD_GLOBAL
16996# define LT_DLGLOBAL RTLD_GLOBAL
16997#else
16998# ifdef DL_GLOBAL
16999# define LT_DLGLOBAL DL_GLOBAL
17000# else
17001# define LT_DLGLOBAL 0
17002# endif
17003#endif
17004
17005/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17006 find out it does not work in some platform. */
17007#ifndef LT_DLLAZY_OR_NOW
17008# ifdef RTLD_LAZY
17009# define LT_DLLAZY_OR_NOW RTLD_LAZY
17010# else
17011# ifdef DL_LAZY
17012# define LT_DLLAZY_OR_NOW DL_LAZY
17013# else
17014# ifdef RTLD_NOW
17015# define LT_DLLAZY_OR_NOW RTLD_NOW
17016# else
17017# ifdef DL_NOW
17018# define LT_DLLAZY_OR_NOW DL_NOW
17019# else
17020# define LT_DLLAZY_OR_NOW 0
17021# endif
17022# endif
17023# endif
17024# endif
17025#endif
17026
17027#ifdef __cplusplus
17028extern "C" void exit (int);
17029#endif
17030
17031void fnord() { int i=42;}
17032int main ()
17033{
17034 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17035 int status = $lt_dlunknown;
17036
17037 if (self)
17038 {
17039 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17040 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17041 /* dlclose (self); */
17042 }
17043
17044 exit (status);
17045}
17046EOF
17047 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17048 (eval $ac_link) 2>&5
17049 ac_status=$?
17050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17051 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17052 (./conftest; exit; ) 2>/dev/null
17053 lt_status=$?
17054 case x$lt_status in
17055 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17056 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17057 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17058 esac
17059 else :
17060 # compilation failed
17061 lt_cv_dlopen_self=no
17062 fi
17063fi
17064rm -fr conftest*
17065
17066
17067fi
17068echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17069echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17070
17071 if test "x$lt_cv_dlopen_self" = xyes; then
17072 LDFLAGS="$LDFLAGS $link_static_flag"
17073 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17074echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17075if test "${lt_cv_dlopen_self_static+set}" = set; then
17076 echo $ECHO_N "(cached) $ECHO_C" >&6
17077else
17078 if test "$cross_compiling" = yes; then :
17079 lt_cv_dlopen_self_static=cross
17080else
17081 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17082 lt_status=$lt_dlunknown
17083 cat > conftest.$ac_ext <<EOF
John Criswell878be7d2004-02-24 21:43:38 +000017084#line 17080 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000017085#include "confdefs.h"
17086
17087#if HAVE_DLFCN_H
17088#include <dlfcn.h>
17089#endif
17090
17091#include <stdio.h>
17092
17093#ifdef RTLD_GLOBAL
17094# define LT_DLGLOBAL RTLD_GLOBAL
17095#else
17096# ifdef DL_GLOBAL
17097# define LT_DLGLOBAL DL_GLOBAL
17098# else
17099# define LT_DLGLOBAL 0
17100# endif
17101#endif
17102
17103/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17104 find out it does not work in some platform. */
17105#ifndef LT_DLLAZY_OR_NOW
17106# ifdef RTLD_LAZY
17107# define LT_DLLAZY_OR_NOW RTLD_LAZY
17108# else
17109# ifdef DL_LAZY
17110# define LT_DLLAZY_OR_NOW DL_LAZY
17111# else
17112# ifdef RTLD_NOW
17113# define LT_DLLAZY_OR_NOW RTLD_NOW
17114# else
17115# ifdef DL_NOW
17116# define LT_DLLAZY_OR_NOW DL_NOW
17117# else
17118# define LT_DLLAZY_OR_NOW 0
17119# endif
17120# endif
17121# endif
17122# endif
17123#endif
17124
17125#ifdef __cplusplus
17126extern "C" void exit (int);
17127#endif
17128
17129void fnord() { int i=42;}
17130int main ()
17131{
17132 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17133 int status = $lt_dlunknown;
17134
17135 if (self)
17136 {
17137 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17138 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17139 /* dlclose (self); */
17140 }
17141
17142 exit (status);
17143}
17144EOF
17145 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17146 (eval $ac_link) 2>&5
17147 ac_status=$?
17148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17149 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17150 (./conftest; exit; ) 2>/dev/null
17151 lt_status=$?
17152 case x$lt_status in
17153 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17154 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17155 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17156 esac
17157 else :
17158 # compilation failed
17159 lt_cv_dlopen_self_static=no
17160 fi
17161fi
17162rm -fr conftest*
17163
17164
17165fi
17166echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17167echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17168 fi
17169
17170 CPPFLAGS="$save_CPPFLAGS"
17171 LDFLAGS="$save_LDFLAGS"
17172 LIBS="$save_LIBS"
17173 ;;
17174 esac
17175
17176 case $lt_cv_dlopen_self in
17177 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17178 *) enable_dlopen_self=unknown ;;
17179 esac
17180
17181 case $lt_cv_dlopen_self_static in
17182 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17183 *) enable_dlopen_self_static=unknown ;;
17184 esac
17185fi
17186
17187
17188# The else clause should only fire when bootstrapping the
17189# libtool distribution, otherwise you forgot to ship ltmain.sh
17190# with your package, and you will get complaints that there are
17191# no rules to generate ltmain.sh.
17192if test -f "$ltmain"; then
17193 # See if we are running on zsh, and set the options which allow our commands through
17194 # without removal of \ escapes.
17195 if test -n "${ZSH_VERSION+set}" ; then
17196 setopt NO_GLOB_SUBST
17197 fi
17198 # Now quote all the things that may contain metacharacters while being
17199 # careful not to overquote the AC_SUBSTed values. We take copies of the
17200 # variables and quote the copies for generation of the libtool script.
17201 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17202 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17203 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17204 deplibs_check_method reload_flag reload_cmds need_locks \
17205 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17206 lt_cv_sys_global_symbol_to_c_name_address \
17207 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17208 old_postinstall_cmds old_postuninstall_cmds \
17209 compiler_GCJ \
17210 CC_GCJ \
17211 LD_GCJ \
17212 lt_prog_compiler_wl_GCJ \
17213 lt_prog_compiler_pic_GCJ \
17214 lt_prog_compiler_static_GCJ \
17215 lt_prog_compiler_no_builtin_flag_GCJ \
17216 export_dynamic_flag_spec_GCJ \
17217 thread_safe_flag_spec_GCJ \
17218 whole_archive_flag_spec_GCJ \
17219 enable_shared_with_static_runtimes_GCJ \
17220 old_archive_cmds_GCJ \
17221 old_archive_from_new_cmds_GCJ \
17222 predep_objects_GCJ \
17223 postdep_objects_GCJ \
17224 predeps_GCJ \
17225 postdeps_GCJ \
17226 compiler_lib_search_path_GCJ \
17227 archive_cmds_GCJ \
17228 archive_expsym_cmds_GCJ \
17229 postinstall_cmds_GCJ \
17230 postuninstall_cmds_GCJ \
17231 old_archive_from_expsyms_cmds_GCJ \
17232 allow_undefined_flag_GCJ \
17233 no_undefined_flag_GCJ \
17234 export_symbols_cmds_GCJ \
17235 hardcode_libdir_flag_spec_GCJ \
17236 hardcode_libdir_flag_spec_ld_GCJ \
17237 hardcode_libdir_separator_GCJ \
17238 hardcode_automatic_GCJ \
17239 module_cmds_GCJ \
17240 module_expsym_cmds_GCJ \
17241 lt_cv_prog_compiler_c_o_GCJ \
17242 exclude_expsyms_GCJ \
17243 include_expsyms_GCJ; do
17244
17245 case $var in
17246 old_archive_cmds_GCJ | \
17247 old_archive_from_new_cmds_GCJ | \
17248 archive_cmds_GCJ | \
17249 archive_expsym_cmds_GCJ | \
17250 module_cmds_GCJ | \
17251 module_expsym_cmds_GCJ | \
17252 old_archive_from_expsyms_cmds_GCJ | \
17253 export_symbols_cmds_GCJ | \
17254 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17255 postinstall_cmds | postuninstall_cmds | \
17256 old_postinstall_cmds | old_postuninstall_cmds | \
17257 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17258 # Double-quote double-evaled strings.
17259 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17260 ;;
17261 *)
17262 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17263 ;;
17264 esac
17265 done
17266
17267 case $lt_echo in
17268 *'\$0 --fallback-echo"')
17269 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17270 ;;
17271 esac
17272
17273cfgfile="$ofile"
17274
17275 cat <<__EOF__ >> "$cfgfile"
17276# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17277
17278# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17279
17280# Shell to use when invoking shell scripts.
17281SHELL=$lt_SHELL
17282
17283# Whether or not to build shared libraries.
17284build_libtool_libs=$enable_shared
17285
17286# Whether or not to build static libraries.
17287build_old_libs=$enable_static
17288
17289# Whether or not to add -lc for building shared libraries.
17290build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17291
17292# Whether or not to disallow shared libs when runtime libs are static
17293allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17294
17295# Whether or not to optimize for fast installation.
17296fast_install=$enable_fast_install
17297
17298# The host system.
17299host_alias=$host_alias
17300host=$host
17301
17302# An echo program that does not interpret backslashes.
17303echo=$lt_echo
17304
17305# The archiver.
17306AR=$lt_AR
17307AR_FLAGS=$lt_AR_FLAGS
17308
17309# A C compiler.
17310LTCC=$lt_LTCC
17311
17312# A language-specific compiler.
17313CC=$lt_compiler_GCJ
17314
17315# Is the compiler the GNU C compiler?
17316with_gcc=$GCC_GCJ
17317
17318# An ERE matcher.
17319EGREP=$lt_EGREP
17320
17321# The linker used to build libraries.
17322LD=$lt_LD_GCJ
17323
17324# Whether we need hard or soft links.
17325LN_S=$lt_LN_S
17326
17327# A BSD-compatible nm program.
17328NM=$lt_NM
17329
17330# A symbol stripping program
17331STRIP=$STRIP
17332
17333# Used to examine libraries when file_magic_cmd begins "file"
17334MAGIC_CMD=$MAGIC_CMD
17335
17336# Used on cygwin: DLL creation program.
17337DLLTOOL="$DLLTOOL"
17338
17339# Used on cygwin: object dumper.
17340OBJDUMP="$OBJDUMP"
17341
17342# Used on cygwin: assembler.
17343AS="$AS"
17344
17345# The name of the directory that contains temporary libtool files.
17346objdir=$objdir
17347
17348# How to create reloadable object files.
17349reload_flag=$lt_reload_flag
17350reload_cmds=$lt_reload_cmds
17351
17352# How to pass a linker flag through the compiler.
17353wl=$lt_lt_prog_compiler_wl_GCJ
17354
17355# Object file suffix (normally "o").
17356objext="$ac_objext"
17357
17358# Old archive suffix (normally "a").
17359libext="$libext"
17360
17361# Shared library suffix (normally ".so").
17362shrext='$shrext'
17363
17364# Executable file suffix (normally "").
17365exeext="$exeext"
17366
17367# Additional compiler flags for building library objects.
17368pic_flag=$lt_lt_prog_compiler_pic_GCJ
17369pic_mode=$pic_mode
17370
17371# What is the maximum length of a command?
17372max_cmd_len=$lt_cv_sys_max_cmd_len
17373
17374# Does compiler simultaneously support -c and -o options?
17375compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17376
17377# Must we lock files when doing compilation ?
17378need_locks=$lt_need_locks
17379
17380# Do we need the lib prefix for modules?
17381need_lib_prefix=$need_lib_prefix
17382
17383# Do we need a version for libraries?
17384need_version=$need_version
17385
17386# Whether dlopen is supported.
17387dlopen_support=$enable_dlopen
17388
17389# Whether dlopen of programs is supported.
17390dlopen_self=$enable_dlopen_self
17391
17392# Whether dlopen of statically linked programs is supported.
17393dlopen_self_static=$enable_dlopen_self_static
17394
17395# Compiler flag to prevent dynamic linking.
17396link_static_flag=$lt_lt_prog_compiler_static_GCJ
17397
17398# Compiler flag to turn off builtin functions.
17399no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17400
17401# Compiler flag to allow reflexive dlopens.
17402export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17403
17404# Compiler flag to generate shared objects directly from archives.
17405whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17406
17407# Compiler flag to generate thread-safe objects.
17408thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17409
17410# Library versioning type.
17411version_type=$version_type
17412
17413# Format of library name prefix.
17414libname_spec=$lt_libname_spec
17415
17416# List of archive names. First name is the real one, the rest are links.
17417# The last name is the one that the linker finds with -lNAME.
17418library_names_spec=$lt_library_names_spec
17419
17420# The coded name of the library, if different from the real name.
17421soname_spec=$lt_soname_spec
17422
17423# Commands used to build and install an old-style archive.
17424RANLIB=$lt_RANLIB
17425old_archive_cmds=$lt_old_archive_cmds_GCJ
17426old_postinstall_cmds=$lt_old_postinstall_cmds
17427old_postuninstall_cmds=$lt_old_postuninstall_cmds
17428
17429# Create an old-style archive from a shared archive.
17430old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17431
17432# Create a temporary old-style archive to link instead of a shared archive.
17433old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17434
17435# Commands used to build and install a shared archive.
17436archive_cmds=$lt_archive_cmds_GCJ
17437archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17438postinstall_cmds=$lt_postinstall_cmds
17439postuninstall_cmds=$lt_postuninstall_cmds
17440
17441# Commands used to build a loadable module (assumed same as above if empty)
17442module_cmds=$lt_module_cmds_GCJ
17443module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17444
17445# Commands to strip libraries.
17446old_striplib=$lt_old_striplib
17447striplib=$lt_striplib
17448
17449# Dependencies to place before the objects being linked to create a
17450# shared library.
17451predep_objects=$lt_predep_objects_GCJ
17452
17453# Dependencies to place after the objects being linked to create a
17454# shared library.
17455postdep_objects=$lt_postdep_objects_GCJ
17456
17457# Dependencies to place before the objects being linked to create a
17458# shared library.
17459predeps=$lt_predeps_GCJ
17460
17461# Dependencies to place after the objects being linked to create a
17462# shared library.
17463postdeps=$lt_postdeps_GCJ
17464
17465# The library search path used internally by the compiler when linking
17466# a shared library.
17467compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17468
17469# Method to check whether dependent libraries are shared objects.
17470deplibs_check_method=$lt_deplibs_check_method
17471
17472# Command to use when deplibs_check_method == file_magic.
17473file_magic_cmd=$lt_file_magic_cmd
17474
17475# Flag that allows shared libraries with undefined symbols to be built.
17476allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17477
17478# Flag that forces no undefined symbols.
17479no_undefined_flag=$lt_no_undefined_flag_GCJ
17480
17481# Commands used to finish a libtool library installation in a directory.
17482finish_cmds=$lt_finish_cmds
17483
17484# Same as above, but a single script fragment to be evaled but not shown.
17485finish_eval=$lt_finish_eval
17486
17487# Take the output of nm and produce a listing of raw symbols and C names.
17488global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17489
17490# Transform the output of nm in a proper C declaration
17491global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17492
17493# Transform the output of nm in a C name address pair
17494global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17495
17496# This is the shared library runtime path variable.
17497runpath_var=$runpath_var
17498
17499# This is the shared library path variable.
17500shlibpath_var=$shlibpath_var
17501
17502# Is shlibpath searched before the hard-coded library search path?
17503shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17504
17505# How to hardcode a shared library path into an executable.
17506hardcode_action=$hardcode_action_GCJ
17507
17508# Whether we should hardcode library paths into libraries.
17509hardcode_into_libs=$hardcode_into_libs
17510
17511# Flag to hardcode \$libdir into a binary during linking.
17512# This must work even if \$libdir does not exist.
17513hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
17514
17515# If ld is used when linking, flag to hardcode \$libdir into
17516# a binary during linking. This must work even if \$libdir does
17517# not exist.
17518hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17519
17520# Whether we need a single -rpath flag with a separated argument.
17521hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17522
17523# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17524# resulting binary.
17525hardcode_direct=$hardcode_direct_GCJ
17526
17527# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17528# resulting binary.
17529hardcode_minus_L=$hardcode_minus_L_GCJ
17530
17531# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17532# the resulting binary.
17533hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
17534
17535# Set to yes if building a shared library automatically hardcodes DIR into the library
17536# and all subsequent libraries and executables linked against it.
17537hardcode_automatic=$hardcode_automatic_GCJ
17538
17539# Variables whose values should be saved in libtool wrapper scripts and
17540# restored at relink time.
17541variables_saved_for_relink="$variables_saved_for_relink"
17542
17543# Whether libtool must link a program against all its dependency libraries.
17544link_all_deplibs=$link_all_deplibs_GCJ
17545
17546# Compile-time system search path for libraries
17547sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17548
17549# Run-time system search path for libraries
17550sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17551
17552# Fix the shell variable \$srcfile for the compiler.
17553fix_srcfile_path="$fix_srcfile_path_GCJ"
17554
17555# Set to yes if exported symbols are required.
17556always_export_symbols=$always_export_symbols_GCJ
17557
17558# The commands to list exported symbols.
17559export_symbols_cmds=$lt_export_symbols_cmds_GCJ
17560
17561# The commands to extract the exported symbol list from a shared archive.
17562extract_expsyms_cmds=$lt_extract_expsyms_cmds
17563
17564# Symbols that should not be listed in the preloaded symbols.
17565exclude_expsyms=$lt_exclude_expsyms_GCJ
17566
17567# Symbols that must always be exported.
17568include_expsyms=$lt_include_expsyms_GCJ
17569
17570# ### END LIBTOOL TAG CONFIG: $tagname
17571
17572__EOF__
17573
17574
17575else
17576 # If there is no Makefile yet, we rely on a make rule to execute
17577 # `config.status --recheck' to rerun these tests and create the
17578 # libtool script then.
17579 test -f Makefile && make "$ltmain"
17580fi
17581
17582
17583ac_ext=c
17584ac_cpp='$CPP $CPPFLAGS'
17585ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17586ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17587ac_compiler_gnu=$ac_cv_c_compiler_gnu
17588
17589CC="$lt_save_CC"
17590
17591 else
17592 tagname=""
17593 fi
17594 ;;
17595
17596 RC)
17597
17598
17599
17600# Source file extension for RC test sources.
17601ac_ext=rc
17602
17603# Object file extension for compiled RC test sources.
17604objext=o
17605objext_RC=$objext
17606
17607# Code to be used in simple compile tests
17608lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
17609
17610# Code to be used in simple link tests
17611lt_simple_link_test_code="$lt_simple_compile_test_code"
17612
17613# ltmain only uses $CC for tagged configurations so make sure $CC is set.
17614
17615# If no C compiler was specified, use CC.
17616LTCC=${LTCC-"$CC"}
17617
17618# Allow CC to be a program name with arguments.
17619compiler=$CC
17620
17621
17622# Allow CC to be a program name with arguments.
17623lt_save_CC="$CC"
17624CC=${RC-"windres"}
17625compiler=$CC
17626compiler_RC=$CC
17627lt_cv_prog_compiler_c_o_RC=yes
17628
17629# The else clause should only fire when bootstrapping the
17630# libtool distribution, otherwise you forgot to ship ltmain.sh
17631# with your package, and you will get complaints that there are
17632# no rules to generate ltmain.sh.
17633if test -f "$ltmain"; then
17634 # See if we are running on zsh, and set the options which allow our commands through
17635 # without removal of \ escapes.
17636 if test -n "${ZSH_VERSION+set}" ; then
17637 setopt NO_GLOB_SUBST
17638 fi
17639 # Now quote all the things that may contain metacharacters while being
17640 # careful not to overquote the AC_SUBSTed values. We take copies of the
17641 # variables and quote the copies for generation of the libtool script.
17642 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17643 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17644 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17645 deplibs_check_method reload_flag reload_cmds need_locks \
17646 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17647 lt_cv_sys_global_symbol_to_c_name_address \
17648 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17649 old_postinstall_cmds old_postuninstall_cmds \
17650 compiler_RC \
17651 CC_RC \
17652 LD_RC \
17653 lt_prog_compiler_wl_RC \
17654 lt_prog_compiler_pic_RC \
17655 lt_prog_compiler_static_RC \
17656 lt_prog_compiler_no_builtin_flag_RC \
17657 export_dynamic_flag_spec_RC \
17658 thread_safe_flag_spec_RC \
17659 whole_archive_flag_spec_RC \
17660 enable_shared_with_static_runtimes_RC \
17661 old_archive_cmds_RC \
17662 old_archive_from_new_cmds_RC \
17663 predep_objects_RC \
17664 postdep_objects_RC \
17665 predeps_RC \
17666 postdeps_RC \
17667 compiler_lib_search_path_RC \
17668 archive_cmds_RC \
17669 archive_expsym_cmds_RC \
17670 postinstall_cmds_RC \
17671 postuninstall_cmds_RC \
17672 old_archive_from_expsyms_cmds_RC \
17673 allow_undefined_flag_RC \
17674 no_undefined_flag_RC \
17675 export_symbols_cmds_RC \
17676 hardcode_libdir_flag_spec_RC \
17677 hardcode_libdir_flag_spec_ld_RC \
17678 hardcode_libdir_separator_RC \
17679 hardcode_automatic_RC \
17680 module_cmds_RC \
17681 module_expsym_cmds_RC \
17682 lt_cv_prog_compiler_c_o_RC \
17683 exclude_expsyms_RC \
17684 include_expsyms_RC; do
17685
17686 case $var in
17687 old_archive_cmds_RC | \
17688 old_archive_from_new_cmds_RC | \
17689 archive_cmds_RC | \
17690 archive_expsym_cmds_RC | \
17691 module_cmds_RC | \
17692 module_expsym_cmds_RC | \
17693 old_archive_from_expsyms_cmds_RC | \
17694 export_symbols_cmds_RC | \
17695 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17696 postinstall_cmds | postuninstall_cmds | \
17697 old_postinstall_cmds | old_postuninstall_cmds | \
17698 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17699 # Double-quote double-evaled strings.
17700 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17701 ;;
17702 *)
17703 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17704 ;;
17705 esac
17706 done
17707
17708 case $lt_echo in
17709 *'\$0 --fallback-echo"')
17710 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17711 ;;
17712 esac
17713
17714cfgfile="$ofile"
17715
17716 cat <<__EOF__ >> "$cfgfile"
17717# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17718
17719# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17720
17721# Shell to use when invoking shell scripts.
17722SHELL=$lt_SHELL
17723
17724# Whether or not to build shared libraries.
17725build_libtool_libs=$enable_shared
17726
17727# Whether or not to build static libraries.
17728build_old_libs=$enable_static
17729
17730# Whether or not to add -lc for building shared libraries.
17731build_libtool_need_lc=$archive_cmds_need_lc_RC
17732
17733# Whether or not to disallow shared libs when runtime libs are static
17734allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
17735
17736# Whether or not to optimize for fast installation.
17737fast_install=$enable_fast_install
17738
17739# The host system.
17740host_alias=$host_alias
17741host=$host
17742
17743# An echo program that does not interpret backslashes.
17744echo=$lt_echo
17745
17746# The archiver.
17747AR=$lt_AR
17748AR_FLAGS=$lt_AR_FLAGS
17749
17750# A C compiler.
17751LTCC=$lt_LTCC
17752
17753# A language-specific compiler.
17754CC=$lt_compiler_RC
17755
17756# Is the compiler the GNU C compiler?
17757with_gcc=$GCC_RC
17758
17759# An ERE matcher.
17760EGREP=$lt_EGREP
17761
17762# The linker used to build libraries.
17763LD=$lt_LD_RC
17764
17765# Whether we need hard or soft links.
17766LN_S=$lt_LN_S
17767
17768# A BSD-compatible nm program.
17769NM=$lt_NM
17770
17771# A symbol stripping program
17772STRIP=$STRIP
17773
17774# Used to examine libraries when file_magic_cmd begins "file"
17775MAGIC_CMD=$MAGIC_CMD
17776
17777# Used on cygwin: DLL creation program.
17778DLLTOOL="$DLLTOOL"
17779
17780# Used on cygwin: object dumper.
17781OBJDUMP="$OBJDUMP"
17782
17783# Used on cygwin: assembler.
17784AS="$AS"
17785
17786# The name of the directory that contains temporary libtool files.
17787objdir=$objdir
17788
17789# How to create reloadable object files.
17790reload_flag=$lt_reload_flag
17791reload_cmds=$lt_reload_cmds
17792
17793# How to pass a linker flag through the compiler.
17794wl=$lt_lt_prog_compiler_wl_RC
17795
17796# Object file suffix (normally "o").
17797objext="$ac_objext"
17798
17799# Old archive suffix (normally "a").
17800libext="$libext"
17801
17802# Shared library suffix (normally ".so").
17803shrext='$shrext'
17804
17805# Executable file suffix (normally "").
17806exeext="$exeext"
17807
17808# Additional compiler flags for building library objects.
17809pic_flag=$lt_lt_prog_compiler_pic_RC
17810pic_mode=$pic_mode
17811
17812# What is the maximum length of a command?
17813max_cmd_len=$lt_cv_sys_max_cmd_len
17814
17815# Does compiler simultaneously support -c and -o options?
17816compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
17817
17818# Must we lock files when doing compilation ?
17819need_locks=$lt_need_locks
17820
17821# Do we need the lib prefix for modules?
17822need_lib_prefix=$need_lib_prefix
17823
17824# Do we need a version for libraries?
17825need_version=$need_version
17826
17827# Whether dlopen is supported.
17828dlopen_support=$enable_dlopen
17829
17830# Whether dlopen of programs is supported.
17831dlopen_self=$enable_dlopen_self
17832
17833# Whether dlopen of statically linked programs is supported.
17834dlopen_self_static=$enable_dlopen_self_static
17835
17836# Compiler flag to prevent dynamic linking.
17837link_static_flag=$lt_lt_prog_compiler_static_RC
17838
17839# Compiler flag to turn off builtin functions.
17840no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
17841
17842# Compiler flag to allow reflexive dlopens.
17843export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
17844
17845# Compiler flag to generate shared objects directly from archives.
17846whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
17847
17848# Compiler flag to generate thread-safe objects.
17849thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
17850
17851# Library versioning type.
17852version_type=$version_type
17853
17854# Format of library name prefix.
17855libname_spec=$lt_libname_spec
17856
17857# List of archive names. First name is the real one, the rest are links.
17858# The last name is the one that the linker finds with -lNAME.
17859library_names_spec=$lt_library_names_spec
17860
17861# The coded name of the library, if different from the real name.
17862soname_spec=$lt_soname_spec
17863
17864# Commands used to build and install an old-style archive.
17865RANLIB=$lt_RANLIB
17866old_archive_cmds=$lt_old_archive_cmds_RC
17867old_postinstall_cmds=$lt_old_postinstall_cmds
17868old_postuninstall_cmds=$lt_old_postuninstall_cmds
17869
17870# Create an old-style archive from a shared archive.
17871old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
17872
17873# Create a temporary old-style archive to link instead of a shared archive.
17874old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
17875
17876# Commands used to build and install a shared archive.
17877archive_cmds=$lt_archive_cmds_RC
17878archive_expsym_cmds=$lt_archive_expsym_cmds_RC
17879postinstall_cmds=$lt_postinstall_cmds
17880postuninstall_cmds=$lt_postuninstall_cmds
17881
17882# Commands used to build a loadable module (assumed same as above if empty)
17883module_cmds=$lt_module_cmds_RC
17884module_expsym_cmds=$lt_module_expsym_cmds_RC
17885
17886# Commands to strip libraries.
17887old_striplib=$lt_old_striplib
17888striplib=$lt_striplib
17889
17890# Dependencies to place before the objects being linked to create a
17891# shared library.
17892predep_objects=$lt_predep_objects_RC
17893
17894# Dependencies to place after the objects being linked to create a
17895# shared library.
17896postdep_objects=$lt_postdep_objects_RC
17897
17898# Dependencies to place before the objects being linked to create a
17899# shared library.
17900predeps=$lt_predeps_RC
17901
17902# Dependencies to place after the objects being linked to create a
17903# shared library.
17904postdeps=$lt_postdeps_RC
17905
17906# The library search path used internally by the compiler when linking
17907# a shared library.
17908compiler_lib_search_path=$lt_compiler_lib_search_path_RC
17909
17910# Method to check whether dependent libraries are shared objects.
17911deplibs_check_method=$lt_deplibs_check_method
17912
17913# Command to use when deplibs_check_method == file_magic.
17914file_magic_cmd=$lt_file_magic_cmd
17915
17916# Flag that allows shared libraries with undefined symbols to be built.
17917allow_undefined_flag=$lt_allow_undefined_flag_RC
17918
17919# Flag that forces no undefined symbols.
17920no_undefined_flag=$lt_no_undefined_flag_RC
17921
17922# Commands used to finish a libtool library installation in a directory.
17923finish_cmds=$lt_finish_cmds
17924
17925# Same as above, but a single script fragment to be evaled but not shown.
17926finish_eval=$lt_finish_eval
17927
17928# Take the output of nm and produce a listing of raw symbols and C names.
17929global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17930
17931# Transform the output of nm in a proper C declaration
17932global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17933
17934# Transform the output of nm in a C name address pair
17935global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17936
17937# This is the shared library runtime path variable.
17938runpath_var=$runpath_var
17939
17940# This is the shared library path variable.
17941shlibpath_var=$shlibpath_var
17942
17943# Is shlibpath searched before the hard-coded library search path?
17944shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17945
17946# How to hardcode a shared library path into an executable.
17947hardcode_action=$hardcode_action_RC
17948
17949# Whether we should hardcode library paths into libraries.
17950hardcode_into_libs=$hardcode_into_libs
17951
17952# Flag to hardcode \$libdir into a binary during linking.
17953# This must work even if \$libdir does not exist.
17954hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
17955
17956# If ld is used when linking, flag to hardcode \$libdir into
17957# a binary during linking. This must work even if \$libdir does
17958# not exist.
17959hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
17960
17961# Whether we need a single -rpath flag with a separated argument.
17962hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
17963
17964# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17965# resulting binary.
17966hardcode_direct=$hardcode_direct_RC
17967
17968# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17969# resulting binary.
17970hardcode_minus_L=$hardcode_minus_L_RC
17971
17972# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17973# the resulting binary.
17974hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
17975
17976# Set to yes if building a shared library automatically hardcodes DIR into the library
17977# and all subsequent libraries and executables linked against it.
17978hardcode_automatic=$hardcode_automatic_RC
17979
17980# Variables whose values should be saved in libtool wrapper scripts and
17981# restored at relink time.
17982variables_saved_for_relink="$variables_saved_for_relink"
17983
17984# Whether libtool must link a program against all its dependency libraries.
17985link_all_deplibs=$link_all_deplibs_RC
17986
17987# Compile-time system search path for libraries
17988sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17989
17990# Run-time system search path for libraries
17991sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17992
17993# Fix the shell variable \$srcfile for the compiler.
17994fix_srcfile_path="$fix_srcfile_path_RC"
17995
17996# Set to yes if exported symbols are required.
17997always_export_symbols=$always_export_symbols_RC
17998
17999# The commands to list exported symbols.
18000export_symbols_cmds=$lt_export_symbols_cmds_RC
18001
18002# The commands to extract the exported symbol list from a shared archive.
18003extract_expsyms_cmds=$lt_extract_expsyms_cmds
18004
18005# Symbols that should not be listed in the preloaded symbols.
18006exclude_expsyms=$lt_exclude_expsyms_RC
18007
18008# Symbols that must always be exported.
18009include_expsyms=$lt_include_expsyms_RC
18010
18011# ### END LIBTOOL TAG CONFIG: $tagname
18012
18013__EOF__
18014
18015
18016else
18017 # If there is no Makefile yet, we rely on a make rule to execute
18018 # `config.status --recheck' to rerun these tests and create the
18019 # libtool script then.
18020 test -f Makefile && make "$ltmain"
18021fi
18022
18023
18024ac_ext=c
18025ac_cpp='$CPP $CPPFLAGS'
18026ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18027ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18028ac_compiler_gnu=$ac_cv_c_compiler_gnu
18029
18030CC="$lt_save_CC"
18031
18032 ;;
18033
18034 *)
18035 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18036echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18037 { (exit 1); exit 1; }; }
18038 ;;
18039 esac
18040
18041 # Append the new tag name to the list of available tags.
18042 if test -n "$tagname" ; then
18043 available_tags="$available_tags $tagname"
18044 fi
18045 fi
18046 done
18047 IFS="$lt_save_ifs"
18048
18049 # Now substitute the updated list of available tags.
18050 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18051 mv "${ofile}T" "$ofile"
18052 chmod +x "$ofile"
18053 else
18054 rm -f "${ofile}T"
18055 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18056echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18057 { (exit 1); exit 1; }; }
18058 fi
18059fi
John Criswell7a73b802003-06-30 21:59:07 +000018060
18061
18062
18063# This can be used to rebuild libtool when needed
18064LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18065
18066# Always use our own libtool.
John Criswell8d4221e2003-07-23 16:52:50 +000018067LIBTOOL='$(SHELL) $(top_builddir)/mklib'
John Criswell7a73b802003-06-30 21:59:07 +000018068
18069# Prevent multiple expansion
18070
18071
18072
John Criswell47fdd832003-07-14 16:52:07 +000018073
18074
18075
18076
18077
18078
18079
18080
18081
18082
18083
18084
18085
18086
18087
18088
18089
18090
John Criswell7a73b802003-06-30 21:59:07 +000018091# Extract the first word of "dot", so it can be a program name with args.
18092set dummy dot; ac_word=$2
18093echo "$as_me:$LINENO: checking for $ac_word" >&5
18094echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18095if test "${ac_cv_path_DOT+set}" = set; then
18096 echo $ECHO_N "(cached) $ECHO_C" >&6
18097else
18098 case $DOT in
18099 [\\/]* | ?:[\\/]*)
18100 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
18101 ;;
18102 *)
18103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18104for as_dir in $PATH
18105do
18106 IFS=$as_save_IFS
18107 test -z "$as_dir" && as_dir=.
18108 for ac_exec_ext in '' $ac_executable_extensions; do
18109 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18110 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
18111 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18112 break 2
18113 fi
18114done
18115done
18116
Brian Gaeke26be9c52004-01-13 06:43:16 +000018117 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="true dot"
John Criswell7a73b802003-06-30 21:59:07 +000018118 ;;
18119esac
18120fi
18121DOT=$ac_cv_path_DOT
18122
18123if test -n "$DOT"; then
18124 echo "$as_me:$LINENO: result: $DOT" >&5
18125echo "${ECHO_T}$DOT" >&6
18126else
18127 echo "$as_me:$LINENO: result: no" >&5
18128echo "${ECHO_T}no" >&6
18129fi
18130
18131# Extract the first word of "etags", so it can be a program name with args.
18132set dummy etags; ac_word=$2
18133echo "$as_me:$LINENO: checking for $ac_word" >&5
18134echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18135if test "${ac_cv_path_ETAGS+set}" = set; then
18136 echo $ECHO_N "(cached) $ECHO_C" >&6
18137else
18138 case $ETAGS in
18139 [\\/]* | ?:[\\/]*)
18140 ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
18141 ;;
18142 *)
18143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18144for as_dir in $PATH
18145do
18146 IFS=$as_save_IFS
18147 test -z "$as_dir" && as_dir=.
18148 for ac_exec_ext in '' $ac_executable_extensions; do
18149 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18150 ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
18151 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18152 break 2
18153 fi
18154done
18155done
18156
Brian Gaeke26be9c52004-01-13 06:43:16 +000018157 test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="true etags"
John Criswell7a73b802003-06-30 21:59:07 +000018158 ;;
18159esac
18160fi
18161ETAGS=$ac_cv_path_ETAGS
18162
18163if test -n "$ETAGS"; then
18164 echo "$as_me:$LINENO: result: $ETAGS" >&5
18165echo "${ECHO_T}$ETAGS" >&6
18166else
18167 echo "$as_me:$LINENO: result: no" >&5
18168echo "${ECHO_T}no" >&6
18169fi
18170
Brian Gaekeafa3fbf2004-01-22 21:55:02 +000018171etags_version=`$ETAGS --version 2>&1`
18172case "$etags_version" in
18173 *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
18174 *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
18175 *) ETAGSFLAGS="" ;;
18176esac
18177ETAGSFLAGS=$ETAGSFLAGS
18178
John Criswellde00db22003-08-25 16:49:54 +000018179# Extract the first word of "python", so it can be a program name with args.
18180set dummy python; ac_word=$2
18181echo "$as_me:$LINENO: checking for $ac_word" >&5
18182echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18183if test "${ac_cv_path_PYTHON+set}" = set; then
18184 echo $ECHO_N "(cached) $ECHO_C" >&6
18185else
18186 case $PYTHON in
18187 [\\/]* | ?:[\\/]*)
18188 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
18189 ;;
18190 *)
18191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18192for as_dir in $PATH
18193do
18194 IFS=$as_save_IFS
18195 test -z "$as_dir" && as_dir=.
18196 for ac_exec_ext in '' $ac_executable_extensions; do
18197 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18198 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
18199 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18200 break 2
18201 fi
18202done
18203done
18204
Brian Gaeke26be9c52004-01-13 06:43:16 +000018205 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="true python"
John Criswellde00db22003-08-25 16:49:54 +000018206 ;;
18207esac
18208fi
18209PYTHON=$ac_cv_path_PYTHON
18210
18211if test -n "$PYTHON"; then
18212 echo "$as_me:$LINENO: result: $PYTHON" >&5
18213echo "${ECHO_T}$PYTHON" >&6
18214else
18215 echo "$as_me:$LINENO: result: no" >&5
18216echo "${ECHO_T}no" >&6
18217fi
18218
Brian Gaeke26be9c52004-01-13 06:43:16 +000018219if test "$PYTHON" = "false"
John Criswell39827c82003-09-23 15:28:52 +000018220then
Brian Gaeke26be9c52004-01-13 06:43:16 +000018221 { echo "$as_me:$LINENO: WARNING: Python is required for the test suite, but it was not found" >&5
18222echo "$as_me: WARNING: Python is required for the test suite, but it was not found" >&2;}
John Criswell39827c82003-09-23 15:28:52 +000018223fi
John Criswellde00db22003-08-25 16:49:54 +000018224# Extract the first word of "qmtest", so it can be a program name with args.
18225set dummy qmtest; ac_word=$2
18226echo "$as_me:$LINENO: checking for $ac_word" >&5
18227echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18228if test "${ac_cv_path_QMTEST+set}" = set; then
18229 echo $ECHO_N "(cached) $ECHO_C" >&6
18230else
18231 case $QMTEST in
18232 [\\/]* | ?:[\\/]*)
18233 ac_cv_path_QMTEST="$QMTEST" # Let the user override the test with a path.
18234 ;;
18235 *)
18236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18237for as_dir in $PATH
18238do
18239 IFS=$as_save_IFS
18240 test -z "$as_dir" && as_dir=.
18241 for ac_exec_ext in '' $ac_executable_extensions; do
18242 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18243 ac_cv_path_QMTEST="$as_dir/$ac_word$ac_exec_ext"
18244 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18245 break 2
18246 fi
18247done
18248done
18249
Brian Gaeke26be9c52004-01-13 06:43:16 +000018250 test -z "$ac_cv_path_QMTEST" && ac_cv_path_QMTEST="true qmtest"
John Criswellde00db22003-08-25 16:49:54 +000018251 ;;
18252esac
18253fi
18254QMTEST=$ac_cv_path_QMTEST
18255
18256if test -n "$QMTEST"; then
18257 echo "$as_me:$LINENO: result: $QMTEST" >&5
18258echo "${ECHO_T}$QMTEST" >&6
18259else
18260 echo "$as_me:$LINENO: result: no" >&5
18261echo "${ECHO_T}no" >&6
18262fi
18263
Brian Gaeke26be9c52004-01-13 06:43:16 +000018264if test "$QMTEST" = "false"
John Criswell39827c82003-09-23 15:28:52 +000018265then
Brian Gaeke26be9c52004-01-13 06:43:16 +000018266 { echo "$as_me:$LINENO: WARNING: QMTest is required for the test suite, but it was not found" >&5
18267echo "$as_me: WARNING: QMTest is required for the test suite, but it was not found" >&2;}
John Criswell39827c82003-09-23 15:28:52 +000018268fi
John Criswellde00db22003-08-25 16:49:54 +000018269
18270pyversion=`$PYTHON -V 2>&1 | cut -d\ -f2`
18271pymajor=`echo $pyversion | cut -d. -f1`
18272pyminor=`echo $pyversion | cut -d. -f2`
18273
18274if test "$pymajor" -ge "2"
18275then
18276 if test "$pymajor" -eq "2"
18277 then
18278 if test "$pyminor" -lt "2"
18279 then
Brian Gaeke26be9c52004-01-13 06:43:16 +000018280 { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5
18281echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;}
John Criswellde00db22003-08-25 16:49:54 +000018282 fi
18283 fi
18284else
Brian Gaeke26be9c52004-01-13 06:43:16 +000018285 { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5
18286echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;}
John Criswellde00db22003-08-25 16:49:54 +000018287fi
John Criswell7a73b802003-06-30 21:59:07 +000018288
18289
18290
18291
John Criswell7a73b802003-06-30 21:59:07 +000018292echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
18293echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
18294if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
18295 echo $ECHO_N "(cached) $ECHO_C" >&6
18296else
18297 ac_check_lib_save_LIBS=$LIBS
18298LIBS="-lelf $LIBS"
18299cat >conftest.$ac_ext <<_ACEOF
18300#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000018301/* confdefs.h. */
18302_ACEOF
18303cat confdefs.h >>conftest.$ac_ext
18304cat >>conftest.$ac_ext <<_ACEOF
18305/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000018306
18307/* Override any gcc2 internal prototype to avoid an error. */
18308#ifdef __cplusplus
18309extern "C"
18310#endif
18311/* We use char because int might match the return type of a gcc2
18312 builtin and then its argument prototype would still apply. */
18313char elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000018314int
18315main ()
18316{
18317elf_begin ();
18318 ;
18319 return 0;
18320}
18321_ACEOF
18322rm -f conftest.$ac_objext conftest$ac_exeext
18323if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18324 (eval $ac_link) 2>&5
18325 ac_status=$?
18326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18327 (exit $ac_status); } &&
18328 { ac_try='test -s conftest$ac_exeext'
18329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18330 (eval $ac_try) 2>&5
18331 ac_status=$?
18332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18333 (exit $ac_status); }; }; then
18334 ac_cv_lib_elf_elf_begin=yes
18335else
18336 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018337sed 's/^/| /' conftest.$ac_ext >&5
18338
John Criswell7a73b802003-06-30 21:59:07 +000018339ac_cv_lib_elf_elf_begin=no
18340fi
18341rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18342LIBS=$ac_check_lib_save_LIBS
18343fi
18344echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
18345echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
18346if test $ac_cv_lib_elf_elf_begin = yes; then
18347 cat >>confdefs.h <<_ACEOF
18348#define HAVE_LIBELF 1
18349_ACEOF
18350
18351 LIBS="-lelf $LIBS"
18352
18353fi
18354
18355
18356echo "$as_me:$LINENO: checking for library containing dlopen" >&5
18357echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
18358if test "${ac_cv_search_dlopen+set}" = set; then
18359 echo $ECHO_N "(cached) $ECHO_C" >&6
18360else
18361 ac_func_search_save_LIBS=$LIBS
18362ac_cv_search_dlopen=no
18363cat >conftest.$ac_ext <<_ACEOF
18364#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000018365/* confdefs.h. */
18366_ACEOF
18367cat confdefs.h >>conftest.$ac_ext
18368cat >>conftest.$ac_ext <<_ACEOF
18369/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000018370
18371/* Override any gcc2 internal prototype to avoid an error. */
18372#ifdef __cplusplus
18373extern "C"
18374#endif
18375/* We use char because int might match the return type of a gcc2
18376 builtin and then its argument prototype would still apply. */
18377char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000018378int
18379main ()
18380{
18381dlopen ();
18382 ;
18383 return 0;
18384}
18385_ACEOF
18386rm -f conftest.$ac_objext conftest$ac_exeext
18387if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18388 (eval $ac_link) 2>&5
18389 ac_status=$?
18390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18391 (exit $ac_status); } &&
18392 { ac_try='test -s conftest$ac_exeext'
18393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18394 (eval $ac_try) 2>&5
18395 ac_status=$?
18396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18397 (exit $ac_status); }; }; then
18398 ac_cv_search_dlopen="none required"
18399else
18400 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018401sed 's/^/| /' conftest.$ac_ext >&5
18402
John Criswell7a73b802003-06-30 21:59:07 +000018403fi
18404rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18405if test "$ac_cv_search_dlopen" = no; then
18406 for ac_lib in dl; do
18407 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18408 cat >conftest.$ac_ext <<_ACEOF
18409#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000018410/* confdefs.h. */
18411_ACEOF
18412cat confdefs.h >>conftest.$ac_ext
18413cat >>conftest.$ac_ext <<_ACEOF
18414/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000018415
18416/* Override any gcc2 internal prototype to avoid an error. */
18417#ifdef __cplusplus
18418extern "C"
18419#endif
18420/* We use char because int might match the return type of a gcc2
18421 builtin and then its argument prototype would still apply. */
18422char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000018423int
18424main ()
18425{
18426dlopen ();
18427 ;
18428 return 0;
18429}
18430_ACEOF
18431rm -f conftest.$ac_objext conftest$ac_exeext
18432if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18433 (eval $ac_link) 2>&5
18434 ac_status=$?
18435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18436 (exit $ac_status); } &&
18437 { ac_try='test -s conftest$ac_exeext'
18438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18439 (eval $ac_try) 2>&5
18440 ac_status=$?
18441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18442 (exit $ac_status); }; }; then
18443 ac_cv_search_dlopen="-l$ac_lib"
18444break
18445else
18446 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018447sed 's/^/| /' conftest.$ac_ext >&5
18448
John Criswell7a73b802003-06-30 21:59:07 +000018449fi
18450rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18451 done
18452fi
18453LIBS=$ac_func_search_save_LIBS
18454fi
18455echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
18456echo "${ECHO_T}$ac_cv_search_dlopen" >&6
18457if test "$ac_cv_search_dlopen" != no; then
18458 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000018459
18460cat >>confdefs.h <<\_ACEOF
Brian Gaekec45be042003-10-07 06:01:34 +000018461#define HAVE_DLOPEN 1
18462_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000018463
18464else
Brian Gaekec45be042003-10-07 06:01:34 +000018465 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
18466echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000018467fi
18468
18469
18470echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
18471echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
18472if test "${ac_cv_search_mallinfo+set}" = set; then
18473 echo $ECHO_N "(cached) $ECHO_C" >&6
18474else
18475 ac_func_search_save_LIBS=$LIBS
18476ac_cv_search_mallinfo=no
18477cat >conftest.$ac_ext <<_ACEOF
18478#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000018479/* confdefs.h. */
18480_ACEOF
18481cat confdefs.h >>conftest.$ac_ext
18482cat >>conftest.$ac_ext <<_ACEOF
18483/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000018484
18485/* Override any gcc2 internal prototype to avoid an error. */
18486#ifdef __cplusplus
18487extern "C"
18488#endif
18489/* We use char because int might match the return type of a gcc2
18490 builtin and then its argument prototype would still apply. */
18491char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000018492int
18493main ()
18494{
18495mallinfo ();
18496 ;
18497 return 0;
18498}
18499_ACEOF
18500rm -f conftest.$ac_objext conftest$ac_exeext
18501if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18502 (eval $ac_link) 2>&5
18503 ac_status=$?
18504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18505 (exit $ac_status); } &&
18506 { ac_try='test -s conftest$ac_exeext'
18507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18508 (eval $ac_try) 2>&5
18509 ac_status=$?
18510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18511 (exit $ac_status); }; }; then
18512 ac_cv_search_mallinfo="none required"
18513else
18514 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018515sed 's/^/| /' conftest.$ac_ext >&5
18516
John Criswell7a73b802003-06-30 21:59:07 +000018517fi
18518rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18519if test "$ac_cv_search_mallinfo" = no; then
18520 for ac_lib in malloc; do
18521 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18522 cat >conftest.$ac_ext <<_ACEOF
18523#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000018524/* confdefs.h. */
18525_ACEOF
18526cat confdefs.h >>conftest.$ac_ext
18527cat >>conftest.$ac_ext <<_ACEOF
18528/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000018529
18530/* Override any gcc2 internal prototype to avoid an error. */
18531#ifdef __cplusplus
18532extern "C"
18533#endif
18534/* We use char because int might match the return type of a gcc2
18535 builtin and then its argument prototype would still apply. */
18536char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000018537int
18538main ()
18539{
18540mallinfo ();
18541 ;
18542 return 0;
18543}
18544_ACEOF
18545rm -f conftest.$ac_objext conftest$ac_exeext
18546if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18547 (eval $ac_link) 2>&5
18548 ac_status=$?
18549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18550 (exit $ac_status); } &&
18551 { ac_try='test -s conftest$ac_exeext'
18552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18553 (eval $ac_try) 2>&5
18554 ac_status=$?
18555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18556 (exit $ac_status); }; }; then
18557 ac_cv_search_mallinfo="-l$ac_lib"
18558break
18559else
18560 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018561sed 's/^/| /' conftest.$ac_ext >&5
18562
John Criswell7a73b802003-06-30 21:59:07 +000018563fi
18564rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18565 done
18566fi
18567LIBS=$ac_func_search_save_LIBS
18568fi
18569echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
18570echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
18571if test "$ac_cv_search_mallinfo" != no; then
18572 test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000018573
18574cat >>confdefs.h <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000018575#define HAVE_MALLINFO 1
18576_ACEOF
18577
18578fi
18579
18580
Brian Gaeke5f268f72003-12-05 19:29:01 +000018581echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
18582echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
18583if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
18584 echo $ECHO_N "(cached) $ECHO_C" >&6
18585else
18586 ac_func_search_save_LIBS=$LIBS
18587ac_cv_search_pthread_mutex_lock=no
18588cat >conftest.$ac_ext <<_ACEOF
18589#line $LINENO "configure"
18590/* confdefs.h. */
18591_ACEOF
18592cat confdefs.h >>conftest.$ac_ext
18593cat >>conftest.$ac_ext <<_ACEOF
18594/* end confdefs.h. */
18595
18596/* Override any gcc2 internal prototype to avoid an error. */
18597#ifdef __cplusplus
18598extern "C"
18599#endif
18600/* We use char because int might match the return type of a gcc2
18601 builtin and then its argument prototype would still apply. */
18602char pthread_mutex_lock ();
18603int
18604main ()
18605{
18606pthread_mutex_lock ();
18607 ;
18608 return 0;
18609}
18610_ACEOF
18611rm -f conftest.$ac_objext conftest$ac_exeext
18612if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18613 (eval $ac_link) 2>&5
18614 ac_status=$?
18615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18616 (exit $ac_status); } &&
18617 { ac_try='test -s conftest$ac_exeext'
18618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18619 (eval $ac_try) 2>&5
18620 ac_status=$?
18621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18622 (exit $ac_status); }; }; then
18623 ac_cv_search_pthread_mutex_lock="none required"
18624else
18625 echo "$as_me: failed program was:" >&5
18626sed 's/^/| /' conftest.$ac_ext >&5
18627
18628fi
18629rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18630if test "$ac_cv_search_pthread_mutex_lock" = no; then
18631 for ac_lib in pthread; do
18632 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18633 cat >conftest.$ac_ext <<_ACEOF
18634#line $LINENO "configure"
18635/* confdefs.h. */
18636_ACEOF
18637cat confdefs.h >>conftest.$ac_ext
18638cat >>conftest.$ac_ext <<_ACEOF
18639/* end confdefs.h. */
18640
18641/* Override any gcc2 internal prototype to avoid an error. */
18642#ifdef __cplusplus
18643extern "C"
18644#endif
18645/* We use char because int might match the return type of a gcc2
18646 builtin and then its argument prototype would still apply. */
18647char pthread_mutex_lock ();
18648int
18649main ()
18650{
18651pthread_mutex_lock ();
18652 ;
18653 return 0;
18654}
18655_ACEOF
18656rm -f conftest.$ac_objext conftest$ac_exeext
18657if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18658 (eval $ac_link) 2>&5
18659 ac_status=$?
18660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18661 (exit $ac_status); } &&
18662 { ac_try='test -s conftest$ac_exeext'
18663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18664 (eval $ac_try) 2>&5
18665 ac_status=$?
18666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18667 (exit $ac_status); }; }; then
18668 ac_cv_search_pthread_mutex_lock="-l$ac_lib"
18669break
18670else
18671 echo "$as_me: failed program was:" >&5
18672sed 's/^/| /' conftest.$ac_ext >&5
18673
18674fi
18675rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18676 done
18677fi
18678LIBS=$ac_func_search_save_LIBS
18679fi
18680echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
18681echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
18682if test "$ac_cv_search_pthread_mutex_lock" != no; then
18683 test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
Brian Gaekec9a410c2004-02-23 21:30:37 +000018684 HAVE_PTHREAD_MUTEX_LOCK=1
18685else
18686 HAVE_PTHREAD_MUTEX_LOCK=0
Brian Gaeke5f268f72003-12-05 19:29:01 +000018687fi
18688
18689
Brian Gaekec9a410c2004-02-23 21:30:37 +000018690
John Criswell7a73b802003-06-30 21:59:07 +000018691echo "$as_me:$LINENO: checking for ANSI C header files" >&5
18692echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
18693if test "${ac_cv_header_stdc+set}" = set; then
18694 echo $ECHO_N "(cached) $ECHO_C" >&6
18695else
18696 cat >conftest.$ac_ext <<_ACEOF
18697#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000018698/* confdefs.h. */
18699_ACEOF
18700cat confdefs.h >>conftest.$ac_ext
18701cat >>conftest.$ac_ext <<_ACEOF
18702/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000018703#include <stdlib.h>
18704#include <stdarg.h>
18705#include <string.h>
18706#include <float.h>
18707
John Criswell0c38eaf2003-09-10 15:17:25 +000018708int
18709main ()
18710{
18711
18712 ;
18713 return 0;
18714}
John Criswell7a73b802003-06-30 21:59:07 +000018715_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018716rm -f conftest.$ac_objext
18717if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18718 (eval $ac_compile) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000018719 ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +000018720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018721 (exit $ac_status); } &&
18722 { ac_try='test -s conftest.$ac_objext'
18723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18724 (eval $ac_try) 2>&5
18725 ac_status=$?
18726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18727 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000018728 ac_cv_header_stdc=yes
18729else
18730 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018731sed 's/^/| /' conftest.$ac_ext >&5
18732
18733ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000018734fi
John Criswell0c38eaf2003-09-10 15:17:25 +000018735rm -f conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000018736
18737if test $ac_cv_header_stdc = yes; then
18738 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
18739 cat >conftest.$ac_ext <<_ACEOF
18740#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000018741/* confdefs.h. */
18742_ACEOF
18743cat confdefs.h >>conftest.$ac_ext
18744cat >>conftest.$ac_ext <<_ACEOF
18745/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000018746#include <string.h>
18747
18748_ACEOF
18749if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000018750 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000018751 :
18752else
18753 ac_cv_header_stdc=no
18754fi
18755rm -f conftest*
18756
18757fi
18758
18759if test $ac_cv_header_stdc = yes; then
18760 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
18761 cat >conftest.$ac_ext <<_ACEOF
18762#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000018763/* confdefs.h. */
18764_ACEOF
18765cat confdefs.h >>conftest.$ac_ext
18766cat >>conftest.$ac_ext <<_ACEOF
18767/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000018768#include <stdlib.h>
18769
18770_ACEOF
18771if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000018772 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000018773 :
18774else
18775 ac_cv_header_stdc=no
18776fi
18777rm -f conftest*
18778
18779fi
18780
18781if test $ac_cv_header_stdc = yes; then
18782 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
18783 if test "$cross_compiling" = yes; then
18784 :
18785else
18786 cat >conftest.$ac_ext <<_ACEOF
18787#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000018788/* confdefs.h. */
18789_ACEOF
18790cat confdefs.h >>conftest.$ac_ext
18791cat >>conftest.$ac_ext <<_ACEOF
18792/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000018793#include <ctype.h>
18794#if ((' ' & 0x0FF) == 0x020)
18795# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
18796# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
18797#else
John Criswell0c38eaf2003-09-10 15:17:25 +000018798# define ISLOWER(c) \
18799 (('a' <= (c) && (c) <= 'i') \
John Criswell7a73b802003-06-30 21:59:07 +000018800 || ('j' <= (c) && (c) <= 'r') \
18801 || ('s' <= (c) && (c) <= 'z'))
18802# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
18803#endif
18804
18805#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
18806int
18807main ()
18808{
18809 int i;
18810 for (i = 0; i < 256; i++)
18811 if (XOR (islower (i), ISLOWER (i))
18812 || toupper (i) != TOUPPER (i))
18813 exit(2);
18814 exit (0);
18815}
18816_ACEOF
18817rm -f conftest$ac_exeext
18818if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18819 (eval $ac_link) 2>&5
18820 ac_status=$?
18821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18822 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18824 (eval $ac_try) 2>&5
18825 ac_status=$?
18826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18827 (exit $ac_status); }; }; then
18828 :
18829else
18830 echo "$as_me: program exited with status $ac_status" >&5
18831echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018832sed 's/^/| /' conftest.$ac_ext >&5
18833
John Criswell7a73b802003-06-30 21:59:07 +000018834( exit $ac_status )
18835ac_cv_header_stdc=no
18836fi
John Criswell0c38eaf2003-09-10 15:17:25 +000018837rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000018838fi
18839fi
18840fi
18841echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
18842echo "${ECHO_T}$ac_cv_header_stdc" >&6
18843if test $ac_cv_header_stdc = yes; then
18844
18845cat >>confdefs.h <<\_ACEOF
18846#define STDC_HEADERS 1
18847_ACEOF
18848
18849fi
18850
18851echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
18852echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
18853if test "${ac_cv_header_sys_wait_h+set}" = set; then
18854 echo $ECHO_N "(cached) $ECHO_C" >&6
18855else
18856 cat >conftest.$ac_ext <<_ACEOF
18857#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000018858/* confdefs.h. */
18859_ACEOF
18860cat confdefs.h >>conftest.$ac_ext
18861cat >>conftest.$ac_ext <<_ACEOF
18862/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000018863#include <sys/types.h>
18864#include <sys/wait.h>
18865#ifndef WEXITSTATUS
18866# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
18867#endif
18868#ifndef WIFEXITED
18869# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
18870#endif
18871
John Criswell7a73b802003-06-30 21:59:07 +000018872int
18873main ()
18874{
18875 int s;
18876 wait (&s);
18877 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
18878 ;
18879 return 0;
18880}
18881_ACEOF
18882rm -f conftest.$ac_objext
18883if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18884 (eval $ac_compile) 2>&5
18885 ac_status=$?
18886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18887 (exit $ac_status); } &&
18888 { ac_try='test -s conftest.$ac_objext'
18889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18890 (eval $ac_try) 2>&5
18891 ac_status=$?
18892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18893 (exit $ac_status); }; }; then
18894 ac_cv_header_sys_wait_h=yes
18895else
18896 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018897sed 's/^/| /' conftest.$ac_ext >&5
18898
John Criswell7a73b802003-06-30 21:59:07 +000018899ac_cv_header_sys_wait_h=no
18900fi
18901rm -f conftest.$ac_objext conftest.$ac_ext
18902fi
18903echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
18904echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
18905if test $ac_cv_header_sys_wait_h = yes; then
18906
18907cat >>confdefs.h <<\_ACEOF
18908#define HAVE_SYS_WAIT_H 1
18909_ACEOF
18910
18911fi
18912
18913
18914
18915
18916
18917
18918
18919
18920
18921
Brian Gaeke26be9c52004-01-13 06:43:16 +000018922
Brian Gaekef5261472004-02-20 06:40:57 +000018923
John Criswellb2815e02004-05-27 20:40:39 +000018924
18925for 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 +000018926do
18927as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18928if eval "test \"\${$as_ac_Header+set}\" = set"; then
18929 echo "$as_me:$LINENO: checking for $ac_header" >&5
18930echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18931if eval "test \"\${$as_ac_Header+set}\" = set"; then
18932 echo $ECHO_N "(cached) $ECHO_C" >&6
18933fi
18934echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18935echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18936else
18937 # Is the header compilable?
18938echo "$as_me:$LINENO: checking $ac_header usability" >&5
18939echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18940cat >conftest.$ac_ext <<_ACEOF
18941#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000018942/* confdefs.h. */
18943_ACEOF
18944cat confdefs.h >>conftest.$ac_ext
18945cat >>conftest.$ac_ext <<_ACEOF
18946/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000018947$ac_includes_default
18948#include <$ac_header>
18949_ACEOF
18950rm -f conftest.$ac_objext
18951if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18952 (eval $ac_compile) 2>&5
18953 ac_status=$?
18954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18955 (exit $ac_status); } &&
18956 { ac_try='test -s conftest.$ac_objext'
18957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18958 (eval $ac_try) 2>&5
18959 ac_status=$?
18960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18961 (exit $ac_status); }; }; then
18962 ac_header_compiler=yes
18963else
18964 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018965sed 's/^/| /' conftest.$ac_ext >&5
18966
John Criswell7a73b802003-06-30 21:59:07 +000018967ac_header_compiler=no
18968fi
18969rm -f conftest.$ac_objext conftest.$ac_ext
18970echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18971echo "${ECHO_T}$ac_header_compiler" >&6
18972
18973# Is the header present?
18974echo "$as_me:$LINENO: checking $ac_header presence" >&5
18975echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18976cat >conftest.$ac_ext <<_ACEOF
18977#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000018978/* confdefs.h. */
18979_ACEOF
18980cat confdefs.h >>conftest.$ac_ext
18981cat >>conftest.$ac_ext <<_ACEOF
18982/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000018983#include <$ac_header>
18984_ACEOF
18985if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18986 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18987 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000018988 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000018989 rm -f conftest.er1
18990 cat conftest.err >&5
18991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18992 (exit $ac_status); } >/dev/null; then
18993 if test -s conftest.err; then
18994 ac_cpp_err=$ac_c_preproc_warn_flag
18995 else
18996 ac_cpp_err=
18997 fi
18998else
18999 ac_cpp_err=yes
19000fi
19001if test -z "$ac_cpp_err"; then
19002 ac_header_preproc=yes
19003else
19004 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019005sed 's/^/| /' conftest.$ac_ext >&5
19006
John Criswell7a73b802003-06-30 21:59:07 +000019007 ac_header_preproc=no
19008fi
19009rm -f conftest.err conftest.$ac_ext
19010echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19011echo "${ECHO_T}$ac_header_preproc" >&6
19012
19013# So? What about this header?
19014case $ac_header_compiler:$ac_header_preproc in
19015 yes:no )
19016 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19017echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19018 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019019echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19020 (
19021 cat <<\_ASBOX
19022## ------------------------------------ ##
19023## Report this to bug-autoconf@gnu.org. ##
19024## ------------------------------------ ##
19025_ASBOX
19026 ) |
19027 sed "s/^/$as_me: WARNING: /" >&2
19028 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019029 no:yes )
19030 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19031echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19032 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19033echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19034 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019035echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19036 (
19037 cat <<\_ASBOX
19038## ------------------------------------ ##
19039## Report this to bug-autoconf@gnu.org. ##
19040## ------------------------------------ ##
19041_ASBOX
19042 ) |
19043 sed "s/^/$as_me: WARNING: /" >&2
19044 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019045esac
19046echo "$as_me:$LINENO: checking for $ac_header" >&5
19047echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19048if eval "test \"\${$as_ac_Header+set}\" = set"; then
19049 echo $ECHO_N "(cached) $ECHO_C" >&6
19050else
19051 eval "$as_ac_Header=$ac_header_preproc"
19052fi
19053echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19054echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19055
19056fi
19057if test `eval echo '${'$as_ac_Header'}'` = yes; then
19058 cat >>confdefs.h <<_ACEOF
19059#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19060_ACEOF
19061
19062fi
19063
19064done
19065
19066
Brian Gaeke6c3fd812004-02-23 22:07:00 +000019067if test "${ac_cv_header_sys_types_h+set}" = set; then
19068 echo "$as_me:$LINENO: checking for sys/types.h" >&5
19069echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
19070if test "${ac_cv_header_sys_types_h+set}" = set; then
19071 echo $ECHO_N "(cached) $ECHO_C" >&6
19072fi
19073echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
19074echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
19075else
19076 # Is the header compilable?
19077echo "$as_me:$LINENO: checking sys/types.h usability" >&5
19078echo $ECHO_N "checking sys/types.h usability... $ECHO_C" >&6
19079cat >conftest.$ac_ext <<_ACEOF
19080#line $LINENO "configure"
19081/* confdefs.h. */
19082_ACEOF
19083cat confdefs.h >>conftest.$ac_ext
19084cat >>conftest.$ac_ext <<_ACEOF
19085/* end confdefs.h. */
19086$ac_includes_default
19087#include <sys/types.h>
19088_ACEOF
19089rm -f conftest.$ac_objext
19090if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19091 (eval $ac_compile) 2>&5
19092 ac_status=$?
19093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19094 (exit $ac_status); } &&
19095 { ac_try='test -s conftest.$ac_objext'
19096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19097 (eval $ac_try) 2>&5
19098 ac_status=$?
19099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19100 (exit $ac_status); }; }; then
19101 ac_header_compiler=yes
19102else
19103 echo "$as_me: failed program was:" >&5
19104sed 's/^/| /' conftest.$ac_ext >&5
19105
19106ac_header_compiler=no
19107fi
19108rm -f conftest.$ac_objext conftest.$ac_ext
19109echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19110echo "${ECHO_T}$ac_header_compiler" >&6
19111
19112# Is the header present?
19113echo "$as_me:$LINENO: checking sys/types.h presence" >&5
19114echo $ECHO_N "checking sys/types.h presence... $ECHO_C" >&6
19115cat >conftest.$ac_ext <<_ACEOF
19116#line $LINENO "configure"
19117/* confdefs.h. */
19118_ACEOF
19119cat confdefs.h >>conftest.$ac_ext
19120cat >>conftest.$ac_ext <<_ACEOF
19121/* end confdefs.h. */
19122#include <sys/types.h>
19123_ACEOF
19124if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19125 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19126 ac_status=$?
19127 grep -v '^ *+' conftest.er1 >conftest.err
19128 rm -f conftest.er1
19129 cat conftest.err >&5
19130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19131 (exit $ac_status); } >/dev/null; then
19132 if test -s conftest.err; then
19133 ac_cpp_err=$ac_c_preproc_warn_flag
19134 else
19135 ac_cpp_err=
19136 fi
19137else
19138 ac_cpp_err=yes
19139fi
19140if test -z "$ac_cpp_err"; then
19141 ac_header_preproc=yes
19142else
19143 echo "$as_me: failed program was:" >&5
19144sed 's/^/| /' conftest.$ac_ext >&5
19145
19146 ac_header_preproc=no
19147fi
19148rm -f conftest.err conftest.$ac_ext
19149echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19150echo "${ECHO_T}$ac_header_preproc" >&6
19151
19152# So? What about this header?
19153case $ac_header_compiler:$ac_header_preproc in
19154 yes:no )
19155 { echo "$as_me:$LINENO: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&5
19156echo "$as_me: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19157 { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the preprocessor's result" >&5
19158echo "$as_me: WARNING: sys/types.h: proceeding with the preprocessor's result" >&2;}
19159 (
19160 cat <<\_ASBOX
19161## ------------------------------------ ##
19162## Report this to bug-autoconf@gnu.org. ##
19163## ------------------------------------ ##
19164_ASBOX
19165 ) |
19166 sed "s/^/$as_me: WARNING: /" >&2
19167 ;;
19168 no:yes )
19169 { echo "$as_me:$LINENO: WARNING: sys/types.h: present but cannot be compiled" >&5
19170echo "$as_me: WARNING: sys/types.h: present but cannot be compiled" >&2;}
19171 { echo "$as_me:$LINENO: WARNING: sys/types.h: check for missing prerequisite headers?" >&5
19172echo "$as_me: WARNING: sys/types.h: check for missing prerequisite headers?" >&2;}
19173 { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the preprocessor's result" >&5
19174echo "$as_me: WARNING: sys/types.h: proceeding with the preprocessor's result" >&2;}
19175 (
19176 cat <<\_ASBOX
19177## ------------------------------------ ##
19178## Report this to bug-autoconf@gnu.org. ##
19179## ------------------------------------ ##
19180_ASBOX
19181 ) |
19182 sed "s/^/$as_me: WARNING: /" >&2
19183 ;;
19184esac
19185echo "$as_me:$LINENO: checking for sys/types.h" >&5
19186echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
19187if test "${ac_cv_header_sys_types_h+set}" = set; then
19188 echo $ECHO_N "(cached) $ECHO_C" >&6
19189else
19190 ac_cv_header_sys_types_h=$ac_header_preproc
19191fi
19192echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
19193echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
19194
19195fi
19196if test $ac_cv_header_sys_types_h = yes; then
19197 INCLUDE_SYS_TYPES_H='#include <sys/types.h>'
19198else
19199 INCLUDE_SYS_TYPES_H=''
19200fi
19201
19202
19203
19204if test "${ac_cv_header_inttypes_h+set}" = set; then
19205 echo "$as_me:$LINENO: checking for inttypes.h" >&5
19206echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
19207if test "${ac_cv_header_inttypes_h+set}" = set; then
19208 echo $ECHO_N "(cached) $ECHO_C" >&6
19209fi
19210echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
19211echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6
19212else
19213 # Is the header compilable?
19214echo "$as_me:$LINENO: checking inttypes.h usability" >&5
19215echo $ECHO_N "checking inttypes.h usability... $ECHO_C" >&6
19216cat >conftest.$ac_ext <<_ACEOF
19217#line $LINENO "configure"
19218/* confdefs.h. */
19219_ACEOF
19220cat confdefs.h >>conftest.$ac_ext
19221cat >>conftest.$ac_ext <<_ACEOF
19222/* end confdefs.h. */
19223$ac_includes_default
19224#include <inttypes.h>
19225_ACEOF
19226rm -f conftest.$ac_objext
19227if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19228 (eval $ac_compile) 2>&5
19229 ac_status=$?
19230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19231 (exit $ac_status); } &&
19232 { ac_try='test -s conftest.$ac_objext'
19233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19234 (eval $ac_try) 2>&5
19235 ac_status=$?
19236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19237 (exit $ac_status); }; }; then
19238 ac_header_compiler=yes
19239else
19240 echo "$as_me: failed program was:" >&5
19241sed 's/^/| /' conftest.$ac_ext >&5
19242
19243ac_header_compiler=no
19244fi
19245rm -f conftest.$ac_objext conftest.$ac_ext
19246echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19247echo "${ECHO_T}$ac_header_compiler" >&6
19248
19249# Is the header present?
19250echo "$as_me:$LINENO: checking inttypes.h presence" >&5
19251echo $ECHO_N "checking inttypes.h presence... $ECHO_C" >&6
19252cat >conftest.$ac_ext <<_ACEOF
19253#line $LINENO "configure"
19254/* confdefs.h. */
19255_ACEOF
19256cat confdefs.h >>conftest.$ac_ext
19257cat >>conftest.$ac_ext <<_ACEOF
19258/* end confdefs.h. */
19259#include <inttypes.h>
19260_ACEOF
19261if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19262 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19263 ac_status=$?
19264 grep -v '^ *+' conftest.er1 >conftest.err
19265 rm -f conftest.er1
19266 cat conftest.err >&5
19267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19268 (exit $ac_status); } >/dev/null; then
19269 if test -s conftest.err; then
19270 ac_cpp_err=$ac_c_preproc_warn_flag
19271 else
19272 ac_cpp_err=
19273 fi
19274else
19275 ac_cpp_err=yes
19276fi
19277if test -z "$ac_cpp_err"; then
19278 ac_header_preproc=yes
19279else
19280 echo "$as_me: failed program was:" >&5
19281sed 's/^/| /' conftest.$ac_ext >&5
19282
19283 ac_header_preproc=no
19284fi
19285rm -f conftest.err conftest.$ac_ext
19286echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19287echo "${ECHO_T}$ac_header_preproc" >&6
19288
19289# So? What about this header?
19290case $ac_header_compiler:$ac_header_preproc in
19291 yes:no )
19292 { echo "$as_me:$LINENO: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&5
19293echo "$as_me: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19294 { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the preprocessor's result" >&5
19295echo "$as_me: WARNING: inttypes.h: proceeding with the preprocessor's result" >&2;}
19296 (
19297 cat <<\_ASBOX
19298## ------------------------------------ ##
19299## Report this to bug-autoconf@gnu.org. ##
19300## ------------------------------------ ##
19301_ASBOX
19302 ) |
19303 sed "s/^/$as_me: WARNING: /" >&2
19304 ;;
19305 no:yes )
19306 { echo "$as_me:$LINENO: WARNING: inttypes.h: present but cannot be compiled" >&5
19307echo "$as_me: WARNING: inttypes.h: present but cannot be compiled" >&2;}
19308 { echo "$as_me:$LINENO: WARNING: inttypes.h: check for missing prerequisite headers?" >&5
19309echo "$as_me: WARNING: inttypes.h: check for missing prerequisite headers?" >&2;}
19310 { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the preprocessor's result" >&5
19311echo "$as_me: WARNING: inttypes.h: proceeding with the preprocessor's result" >&2;}
19312 (
19313 cat <<\_ASBOX
19314## ------------------------------------ ##
19315## Report this to bug-autoconf@gnu.org. ##
19316## ------------------------------------ ##
19317_ASBOX
19318 ) |
19319 sed "s/^/$as_me: WARNING: /" >&2
19320 ;;
19321esac
19322echo "$as_me:$LINENO: checking for inttypes.h" >&5
19323echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
19324if test "${ac_cv_header_inttypes_h+set}" = set; then
19325 echo $ECHO_N "(cached) $ECHO_C" >&6
19326else
19327 ac_cv_header_inttypes_h=$ac_header_preproc
19328fi
19329echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
19330echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6
19331
19332fi
19333if test $ac_cv_header_inttypes_h = yes; then
19334 INCLUDE_INTTYPES_H='#include <inttypes.h>'
19335else
19336 INCLUDE_INTTYPES_H=''
19337fi
19338
19339
19340
19341
John Criswell7a73b802003-06-30 21:59:07 +000019342echo "$as_me:$LINENO: checking for pid_t" >&5
19343echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
19344if test "${ac_cv_type_pid_t+set}" = set; then
19345 echo $ECHO_N "(cached) $ECHO_C" >&6
19346else
19347 cat >conftest.$ac_ext <<_ACEOF
19348#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019349/* confdefs.h. */
19350_ACEOF
19351cat confdefs.h >>conftest.$ac_ext
19352cat >>conftest.$ac_ext <<_ACEOF
19353/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019354$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000019355int
19356main ()
19357{
19358if ((pid_t *) 0)
19359 return 0;
19360if (sizeof (pid_t))
19361 return 0;
19362 ;
19363 return 0;
19364}
19365_ACEOF
19366rm -f conftest.$ac_objext
19367if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19368 (eval $ac_compile) 2>&5
19369 ac_status=$?
19370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19371 (exit $ac_status); } &&
19372 { ac_try='test -s conftest.$ac_objext'
19373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19374 (eval $ac_try) 2>&5
19375 ac_status=$?
19376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19377 (exit $ac_status); }; }; then
19378 ac_cv_type_pid_t=yes
19379else
19380 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019381sed 's/^/| /' conftest.$ac_ext >&5
19382
John Criswell7a73b802003-06-30 21:59:07 +000019383ac_cv_type_pid_t=no
19384fi
19385rm -f conftest.$ac_objext conftest.$ac_ext
19386fi
19387echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
19388echo "${ECHO_T}$ac_cv_type_pid_t" >&6
19389if test $ac_cv_type_pid_t = yes; then
19390 :
19391else
19392
19393cat >>confdefs.h <<_ACEOF
19394#define pid_t int
19395_ACEOF
19396
19397fi
19398
19399echo "$as_me:$LINENO: checking for size_t" >&5
19400echo $ECHO_N "checking for size_t... $ECHO_C" >&6
19401if test "${ac_cv_type_size_t+set}" = set; then
19402 echo $ECHO_N "(cached) $ECHO_C" >&6
19403else
19404 cat >conftest.$ac_ext <<_ACEOF
19405#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019406/* confdefs.h. */
19407_ACEOF
19408cat confdefs.h >>conftest.$ac_ext
19409cat >>conftest.$ac_ext <<_ACEOF
19410/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019411$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000019412int
19413main ()
19414{
19415if ((size_t *) 0)
19416 return 0;
19417if (sizeof (size_t))
19418 return 0;
19419 ;
19420 return 0;
19421}
19422_ACEOF
19423rm -f conftest.$ac_objext
19424if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19425 (eval $ac_compile) 2>&5
19426 ac_status=$?
19427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19428 (exit $ac_status); } &&
19429 { ac_try='test -s conftest.$ac_objext'
19430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19431 (eval $ac_try) 2>&5
19432 ac_status=$?
19433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19434 (exit $ac_status); }; }; then
19435 ac_cv_type_size_t=yes
19436else
19437 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019438sed 's/^/| /' conftest.$ac_ext >&5
19439
John Criswell7a73b802003-06-30 21:59:07 +000019440ac_cv_type_size_t=no
19441fi
19442rm -f conftest.$ac_objext conftest.$ac_ext
19443fi
19444echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
19445echo "${ECHO_T}$ac_cv_type_size_t" >&6
19446if test $ac_cv_type_size_t = yes; then
19447 :
19448else
19449
19450cat >>confdefs.h <<_ACEOF
19451#define size_t unsigned
19452_ACEOF
19453
19454fi
19455
19456echo "$as_me:$LINENO: checking for int64_t" >&5
19457echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
19458if test "${ac_cv_type_int64_t+set}" = set; then
19459 echo $ECHO_N "(cached) $ECHO_C" >&6
19460else
19461 cat >conftest.$ac_ext <<_ACEOF
19462#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019463/* confdefs.h. */
19464_ACEOF
19465cat confdefs.h >>conftest.$ac_ext
19466cat >>conftest.$ac_ext <<_ACEOF
19467/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019468$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000019469int
19470main ()
19471{
19472if ((int64_t *) 0)
19473 return 0;
19474if (sizeof (int64_t))
19475 return 0;
19476 ;
19477 return 0;
19478}
19479_ACEOF
19480rm -f conftest.$ac_objext
19481if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19482 (eval $ac_compile) 2>&5
19483 ac_status=$?
19484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19485 (exit $ac_status); } &&
19486 { ac_try='test -s conftest.$ac_objext'
19487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19488 (eval $ac_try) 2>&5
19489 ac_status=$?
19490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19491 (exit $ac_status); }; }; then
19492 ac_cv_type_int64_t=yes
19493else
19494 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019495sed 's/^/| /' conftest.$ac_ext >&5
19496
John Criswell7a73b802003-06-30 21:59:07 +000019497ac_cv_type_int64_t=no
19498fi
19499rm -f conftest.$ac_objext conftest.$ac_ext
19500fi
19501echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
19502echo "${ECHO_T}$ac_cv_type_int64_t" >&6
19503if test $ac_cv_type_int64_t = yes; then
19504
19505cat >>confdefs.h <<_ACEOF
19506#define HAVE_INT64_T 1
19507_ACEOF
19508
19509
19510else
19511 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
19512echo "$as_me: error: Type int64_t required but not found" >&2;}
19513 { (exit 1); exit 1; }; }
19514fi
19515
19516echo "$as_me:$LINENO: checking for uint64_t" >&5
19517echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
19518if test "${ac_cv_type_uint64_t+set}" = set; then
19519 echo $ECHO_N "(cached) $ECHO_C" >&6
19520else
19521 cat >conftest.$ac_ext <<_ACEOF
19522#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019523/* confdefs.h. */
19524_ACEOF
19525cat confdefs.h >>conftest.$ac_ext
19526cat >>conftest.$ac_ext <<_ACEOF
19527/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019528$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000019529int
19530main ()
19531{
19532if ((uint64_t *) 0)
19533 return 0;
19534if (sizeof (uint64_t))
19535 return 0;
19536 ;
19537 return 0;
19538}
19539_ACEOF
19540rm -f conftest.$ac_objext
19541if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19542 (eval $ac_compile) 2>&5
19543 ac_status=$?
19544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19545 (exit $ac_status); } &&
19546 { ac_try='test -s conftest.$ac_objext'
19547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19548 (eval $ac_try) 2>&5
19549 ac_status=$?
19550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19551 (exit $ac_status); }; }; then
19552 ac_cv_type_uint64_t=yes
19553else
19554 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019555sed 's/^/| /' conftest.$ac_ext >&5
19556
John Criswell7a73b802003-06-30 21:59:07 +000019557ac_cv_type_uint64_t=no
19558fi
19559rm -f conftest.$ac_objext conftest.$ac_ext
19560fi
19561echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
19562echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
19563if test $ac_cv_type_uint64_t = yes; then
19564
19565cat >>confdefs.h <<_ACEOF
19566#define HAVE_UINT64_T 1
19567_ACEOF
19568
19569
19570else
19571 { { echo "$as_me:$LINENO: error: Type uint64_t required but not found" >&5
19572echo "$as_me: error: Type uint64_t required but not found" >&2;}
19573 { (exit 1); exit 1; }; }
19574fi
19575
19576echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
19577echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
19578if test "${ac_cv_header_time+set}" = set; then
19579 echo $ECHO_N "(cached) $ECHO_C" >&6
19580else
19581 cat >conftest.$ac_ext <<_ACEOF
19582#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019583/* confdefs.h. */
19584_ACEOF
19585cat confdefs.h >>conftest.$ac_ext
19586cat >>conftest.$ac_ext <<_ACEOF
19587/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019588#include <sys/types.h>
19589#include <sys/time.h>
19590#include <time.h>
19591
John Criswell7a73b802003-06-30 21:59:07 +000019592int
19593main ()
19594{
19595if ((struct tm *) 0)
19596return 0;
19597 ;
19598 return 0;
19599}
19600_ACEOF
19601rm -f conftest.$ac_objext
19602if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19603 (eval $ac_compile) 2>&5
19604 ac_status=$?
19605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19606 (exit $ac_status); } &&
19607 { ac_try='test -s conftest.$ac_objext'
19608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19609 (eval $ac_try) 2>&5
19610 ac_status=$?
19611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19612 (exit $ac_status); }; }; then
19613 ac_cv_header_time=yes
19614else
19615 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019616sed 's/^/| /' conftest.$ac_ext >&5
19617
John Criswell7a73b802003-06-30 21:59:07 +000019618ac_cv_header_time=no
19619fi
19620rm -f conftest.$ac_objext conftest.$ac_ext
19621fi
19622echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
19623echo "${ECHO_T}$ac_cv_header_time" >&6
19624if test $ac_cv_header_time = yes; then
19625
19626cat >>confdefs.h <<\_ACEOF
19627#define TIME_WITH_SYS_TIME 1
19628_ACEOF
19629
19630fi
19631
19632echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
19633echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
19634if test "${ac_cv_struct_tm+set}" = set; then
19635 echo $ECHO_N "(cached) $ECHO_C" >&6
19636else
19637 cat >conftest.$ac_ext <<_ACEOF
19638#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019639/* confdefs.h. */
19640_ACEOF
19641cat confdefs.h >>conftest.$ac_ext
19642cat >>conftest.$ac_ext <<_ACEOF
19643/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019644#include <sys/types.h>
19645#include <time.h>
19646
John Criswell7a73b802003-06-30 21:59:07 +000019647int
19648main ()
19649{
19650struct tm *tp; tp->tm_sec;
19651 ;
19652 return 0;
19653}
19654_ACEOF
19655rm -f conftest.$ac_objext
19656if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19657 (eval $ac_compile) 2>&5
19658 ac_status=$?
19659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19660 (exit $ac_status); } &&
19661 { ac_try='test -s conftest.$ac_objext'
19662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19663 (eval $ac_try) 2>&5
19664 ac_status=$?
19665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19666 (exit $ac_status); }; }; then
19667 ac_cv_struct_tm=time.h
19668else
19669 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019670sed 's/^/| /' conftest.$ac_ext >&5
19671
John Criswell7a73b802003-06-30 21:59:07 +000019672ac_cv_struct_tm=sys/time.h
19673fi
19674rm -f conftest.$ac_objext conftest.$ac_ext
19675fi
19676echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
19677echo "${ECHO_T}$ac_cv_struct_tm" >&6
19678if test $ac_cv_struct_tm = sys/time.h; then
19679
19680cat >>confdefs.h <<\_ACEOF
19681#define TM_IN_SYS_TIME 1
19682_ACEOF
19683
19684fi
19685
19686
John Criswella0137d32003-10-13 16:22:01 +000019687
19688
19689
19690 ac_ext=c
19691ac_cpp='$CPP $CPPFLAGS'
19692ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19693ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19694ac_compiler_gnu=$ac_cv_c_compiler_gnu
19695
19696 if test "$cross_compiling" = yes; then
19697 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19698See \`config.log' for more details." >&5
19699echo "$as_me: error: cannot run test program while cross compiling
19700See \`config.log' for more details." >&2;}
19701 { (exit 1); exit 1; }; }
19702else
19703 cat >conftest.$ac_ext <<_ACEOF
19704#line $LINENO "configure"
19705/* confdefs.h. */
19706_ACEOF
19707cat confdefs.h >>conftest.$ac_ext
19708cat >>conftest.$ac_ext <<_ACEOF
19709/* end confdefs.h. */
19710#include <stdio.h>
19711 #include <stdlib.h>
19712int
19713main ()
19714{
19715
19716 volatile double A, B;
19717 char Buffer[100];
19718 A = 1;
19719 A /= 10.0;
19720 sprintf(Buffer, "%a", A);
19721 B = atof(Buffer);
19722 if (A != B)
19723 return (1);
19724 if (A != 0x1.999999999999ap-4)
19725 return (1);
19726 return (0);
19727 ;
19728 return 0;
19729}
19730_ACEOF
19731rm -f conftest$ac_exeext
19732if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19733 (eval $ac_link) 2>&5
19734 ac_status=$?
19735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19736 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19738 (eval $ac_try) 2>&5
19739 ac_status=$?
19740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19741 (exit $ac_status); }; }; then
19742 ac_c_printf_a=yes
19743else
19744 echo "$as_me: program exited with status $ac_status" >&5
19745echo "$as_me: failed program was:" >&5
19746sed 's/^/| /' conftest.$ac_ext >&5
19747
19748( exit $ac_status )
19749ac_c_printf_a=no
19750fi
19751rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19752fi
19753 ac_ext=c
19754ac_cpp='$CPP $CPPFLAGS'
19755ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19756ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19757ac_compiler_gnu=$ac_cv_c_compiler_gnu
19758
19759 if test "$ac_c_printf_a" = "yes"; then
19760
19761cat >>confdefs.h <<\_ACEOF
19762#define HAVE_PRINTF_A 1
19763_ACEOF
19764
19765 fi
19766
19767
John Criswell0021c312004-02-13 21:57:29 +000019768echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
19769echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
19770if test "${ac_cv_c_bigendian+set}" = set; then
19771 echo $ECHO_N "(cached) $ECHO_C" >&6
19772else
19773 # See if sys/param.h defines the BYTE_ORDER macro.
19774cat >conftest.$ac_ext <<_ACEOF
19775#line $LINENO "configure"
19776/* confdefs.h. */
19777_ACEOF
19778cat confdefs.h >>conftest.$ac_ext
19779cat >>conftest.$ac_ext <<_ACEOF
19780/* end confdefs.h. */
19781#include <sys/types.h>
19782#include <sys/param.h>
19783
19784int
19785main ()
19786{
19787#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
19788 bogus endian macros
19789#endif
19790
19791 ;
19792 return 0;
19793}
19794_ACEOF
19795rm -f conftest.$ac_objext
19796if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19797 (eval $ac_compile) 2>&5
19798 ac_status=$?
19799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19800 (exit $ac_status); } &&
19801 { ac_try='test -s conftest.$ac_objext'
19802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19803 (eval $ac_try) 2>&5
19804 ac_status=$?
19805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19806 (exit $ac_status); }; }; then
19807 # It does; now see whether it defined to BIG_ENDIAN or not.
19808cat >conftest.$ac_ext <<_ACEOF
19809#line $LINENO "configure"
19810/* confdefs.h. */
19811_ACEOF
19812cat confdefs.h >>conftest.$ac_ext
19813cat >>conftest.$ac_ext <<_ACEOF
19814/* end confdefs.h. */
19815#include <sys/types.h>
19816#include <sys/param.h>
19817
19818int
19819main ()
19820{
19821#if BYTE_ORDER != BIG_ENDIAN
19822 not big endian
19823#endif
19824
19825 ;
19826 return 0;
19827}
19828_ACEOF
19829rm -f conftest.$ac_objext
19830if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19831 (eval $ac_compile) 2>&5
19832 ac_status=$?
19833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19834 (exit $ac_status); } &&
19835 { ac_try='test -s conftest.$ac_objext'
19836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19837 (eval $ac_try) 2>&5
19838 ac_status=$?
19839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19840 (exit $ac_status); }; }; then
19841 ac_cv_c_bigendian=yes
19842else
19843 echo "$as_me: failed program was:" >&5
19844sed 's/^/| /' conftest.$ac_ext >&5
19845
19846ac_cv_c_bigendian=no
19847fi
19848rm -f conftest.$ac_objext conftest.$ac_ext
19849else
19850 echo "$as_me: failed program was:" >&5
19851sed 's/^/| /' conftest.$ac_ext >&5
19852
19853# It does not; compile a test program.
19854if test "$cross_compiling" = yes; then
19855 # try to guess the endianness by grepping values into an object file
19856 ac_cv_c_bigendian=unknown
19857 cat >conftest.$ac_ext <<_ACEOF
19858#line $LINENO "configure"
19859/* confdefs.h. */
19860_ACEOF
19861cat confdefs.h >>conftest.$ac_ext
19862cat >>conftest.$ac_ext <<_ACEOF
19863/* end confdefs.h. */
19864short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
19865short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
19866void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
19867short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
19868short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
19869void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
19870int
19871main ()
19872{
19873 _ascii (); _ebcdic ();
19874 ;
19875 return 0;
19876}
19877_ACEOF
19878rm -f conftest.$ac_objext
19879if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19880 (eval $ac_compile) 2>&5
19881 ac_status=$?
19882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19883 (exit $ac_status); } &&
19884 { ac_try='test -s conftest.$ac_objext'
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 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
19891 ac_cv_c_bigendian=yes
19892fi
19893if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
19894 if test "$ac_cv_c_bigendian" = unknown; then
19895 ac_cv_c_bigendian=no
19896 else
19897 # finding both strings is unlikely to happen, but who knows?
19898 ac_cv_c_bigendian=unknown
19899 fi
19900fi
19901else
19902 echo "$as_me: failed program was:" >&5
19903sed 's/^/| /' conftest.$ac_ext >&5
19904
19905fi
19906rm -f conftest.$ac_objext conftest.$ac_ext
19907else
19908 cat >conftest.$ac_ext <<_ACEOF
19909#line $LINENO "configure"
19910/* confdefs.h. */
19911_ACEOF
19912cat confdefs.h >>conftest.$ac_ext
19913cat >>conftest.$ac_ext <<_ACEOF
19914/* end confdefs.h. */
19915int
19916main ()
19917{
19918 /* Are we little or big endian? From Harbison&Steele. */
19919 union
19920 {
19921 long l;
19922 char c[sizeof (long)];
19923 } u;
19924 u.l = 1;
19925 exit (u.c[sizeof (long) - 1] == 1);
19926}
19927_ACEOF
19928rm -f conftest$ac_exeext
19929if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19930 (eval $ac_link) 2>&5
19931 ac_status=$?
19932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19933 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19935 (eval $ac_try) 2>&5
19936 ac_status=$?
19937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19938 (exit $ac_status); }; }; then
19939 ac_cv_c_bigendian=no
19940else
19941 echo "$as_me: program exited with status $ac_status" >&5
19942echo "$as_me: failed program was:" >&5
19943sed 's/^/| /' conftest.$ac_ext >&5
19944
19945( exit $ac_status )
19946ac_cv_c_bigendian=yes
19947fi
19948rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19949fi
19950fi
19951rm -f conftest.$ac_objext conftest.$ac_ext
19952fi
19953echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
19954echo "${ECHO_T}$ac_cv_c_bigendian" >&6
19955case $ac_cv_c_bigendian in
19956 yes)
19957 ENDIAN=big
19958 ;;
19959 no)
19960 ENDIAN=little
19961 ;;
19962 *)
19963 { { echo "$as_me:$LINENO: error: unknown endianness
19964presetting ac_cv_c_bigendian=no (or yes) will help" >&5
19965echo "$as_me: error: unknown endianness
19966presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
19967 { (exit 1); exit 1; }; } ;;
19968esac
19969
19970
John Criswell7a73b802003-06-30 21:59:07 +000019971echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
19972echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
19973if test "${ac_cv_cxx_namespaces+set}" = set; then
19974 echo $ECHO_N "(cached) $ECHO_C" >&6
19975else
19976
19977
19978 ac_ext=cc
19979ac_cpp='$CXXCPP $CPPFLAGS'
19980ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19981ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19982ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19983
19984 cat >conftest.$ac_ext <<_ACEOF
19985#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019986/* confdefs.h. */
19987_ACEOF
19988cat confdefs.h >>conftest.$ac_ext
19989cat >>conftest.$ac_ext <<_ACEOF
19990/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019991namespace Outer { namespace Inner { int i = 0; }}
John Criswell7a73b802003-06-30 21:59:07 +000019992int
19993main ()
19994{
19995using namespace Outer::Inner; return i;
19996 ;
19997 return 0;
19998}
19999_ACEOF
20000rm -f conftest.$ac_objext
20001if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20002 (eval $ac_compile) 2>&5
20003 ac_status=$?
20004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20005 (exit $ac_status); } &&
20006 { ac_try='test -s conftest.$ac_objext'
20007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20008 (eval $ac_try) 2>&5
20009 ac_status=$?
20010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20011 (exit $ac_status); }; }; then
20012 ac_cv_cxx_namespaces=yes
20013else
20014 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020015sed 's/^/| /' conftest.$ac_ext >&5
20016
John Criswell7a73b802003-06-30 21:59:07 +000020017ac_cv_cxx_namespaces=no
20018fi
20019rm -f conftest.$ac_objext conftest.$ac_ext
20020 ac_ext=c
20021ac_cpp='$CPP $CPPFLAGS'
20022ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20023ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20024ac_compiler_gnu=$ac_cv_c_compiler_gnu
20025
20026
20027fi
20028echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
20029echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
20030if test "$ac_cv_cxx_namespaces" = yes; then
20031
20032cat >>confdefs.h <<\_ACEOF
20033#define HAVE_NAMESPACES
20034_ACEOF
20035
20036fi
20037
Brian Gaeke90583492003-11-10 03:06:28 +000020038echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
20039echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
20040if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000020041 echo $ECHO_N "(cached) $ECHO_C" >&6
20042else
20043
20044
20045
20046 ac_ext=cc
20047ac_cpp='$CXXCPP $CPPFLAGS'
20048ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20049ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20050ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20051
20052 cat >conftest.$ac_ext <<_ACEOF
20053#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020054/* confdefs.h. */
20055_ACEOF
20056cat confdefs.h >>conftest.$ac_ext
20057cat >>conftest.$ac_ext <<_ACEOF
20058/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020059#include <ext/hash_map>
20060#ifdef HAVE_NAMESPACES
20061using namespace std;
20062#endif
John Criswell7a73b802003-06-30 21:59:07 +000020063int
20064main ()
20065{
Brian Gaeke90583492003-11-10 03:06:28 +000020066hash_map<int, int> t;
John Criswell7a73b802003-06-30 21:59:07 +000020067 ;
20068 return 0;
20069}
20070_ACEOF
20071rm -f conftest.$ac_objext
20072if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20073 (eval $ac_compile) 2>&5
20074 ac_status=$?
20075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20076 (exit $ac_status); } &&
20077 { ac_try='test -s conftest.$ac_objext'
20078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20079 (eval $ac_try) 2>&5
20080 ac_status=$?
20081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20082 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000020083 ac_cv_cxx_have_std_ext_hash_map=yes
John Criswell7a73b802003-06-30 21:59:07 +000020084else
20085 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020086sed 's/^/| /' conftest.$ac_ext >&5
20087
Brian Gaeke90583492003-11-10 03:06:28 +000020088ac_cv_cxx_have_std_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000020089fi
20090rm -f conftest.$ac_objext conftest.$ac_ext
20091 ac_ext=c
20092ac_cpp='$CPP $CPPFLAGS'
20093ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20094ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20095ac_compiler_gnu=$ac_cv_c_compiler_gnu
20096
John Criswell7a73b802003-06-30 21:59:07 +000020097fi
Brian Gaeke90583492003-11-10 03:06:28 +000020098echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
20099echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000020100 HAVE_STD_EXT_HASH_MAP=0
20101 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
20102 then
20103 HAVE_STD_EXT_HASH_MAP=1
Brian Gaeke90583492003-11-10 03:06:28 +000020104 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000020105
Brian Gaeke90583492003-11-10 03:06:28 +000020106 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
20107echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
20108if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
20109 echo $ECHO_N "(cached) $ECHO_C" >&6
20110else
20111
20112
20113
20114 ac_ext=cc
20115ac_cpp='$CXXCPP $CPPFLAGS'
20116ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20117ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20118ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20119
20120 cat >conftest.$ac_ext <<_ACEOF
20121#line $LINENO "configure"
20122/* confdefs.h. */
20123_ACEOF
20124cat confdefs.h >>conftest.$ac_ext
20125cat >>conftest.$ac_ext <<_ACEOF
20126/* end confdefs.h. */
20127#include <ext/hash_map>
20128#ifdef HAVE_NAMESPACES
20129using namespace __gnu_cxx;
20130#endif
20131int
20132main ()
20133{
20134hash_map<int,int> t;
20135 ;
20136 return 0;
20137}
20138_ACEOF
20139rm -f conftest.$ac_objext
20140if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20141 (eval $ac_compile) 2>&5
20142 ac_status=$?
20143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20144 (exit $ac_status); } &&
20145 { ac_try='test -s conftest.$ac_objext'
20146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20147 (eval $ac_try) 2>&5
20148 ac_status=$?
20149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20150 (exit $ac_status); }; }; then
20151 ac_cv_cxx_have_gnu_ext_hash_map=yes
20152else
20153 echo "$as_me: failed program was:" >&5
20154sed 's/^/| /' conftest.$ac_ext >&5
20155
20156ac_cv_cxx_have_gnu_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000020157fi
Brian Gaeke90583492003-11-10 03:06:28 +000020158rm -f conftest.$ac_objext conftest.$ac_ext
20159 ac_ext=c
20160ac_cpp='$CPP $CPPFLAGS'
20161ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20162ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20163ac_compiler_gnu=$ac_cv_c_compiler_gnu
20164
20165fi
20166echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
20167echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000020168 HAVE_GNU_EXT_HASH_MAP=0
20169 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
20170 then
20171 HAVE_GNU_EXT_HASH_MAP=1
Brian Gaeke90583492003-11-10 03:06:28 +000020172 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000020173
Brian Gaeke90583492003-11-10 03:06:28 +000020174 echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
20175echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
20176if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
20177 echo $ECHO_N "(cached) $ECHO_C" >&6
20178else
John Criswell7a73b802003-06-30 21:59:07 +000020179
Brian Gaeke90583492003-11-10 03:06:28 +000020180
20181
20182 ac_ext=cc
20183ac_cpp='$CXXCPP $CPPFLAGS'
20184ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20185ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20186ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20187
20188 cat >conftest.$ac_ext <<_ACEOF
20189#line $LINENO "configure"
20190/* confdefs.h. */
20191_ACEOF
20192cat confdefs.h >>conftest.$ac_ext
20193cat >>conftest.$ac_ext <<_ACEOF
20194/* end confdefs.h. */
20195#include <hash_map>
20196int
20197main ()
20198{
20199hash_map<int,int> t;
20200 ;
20201 return 0;
20202}
20203_ACEOF
20204rm -f conftest.$ac_objext
20205if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20206 (eval $ac_compile) 2>&5
20207 ac_status=$?
20208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20209 (exit $ac_status); } &&
20210 { ac_try='test -s conftest.$ac_objext'
20211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20212 (eval $ac_try) 2>&5
20213 ac_status=$?
20214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20215 (exit $ac_status); }; }; then
20216 ac_cv_cxx_have_global_hash_map=yes
20217else
20218 echo "$as_me: failed program was:" >&5
20219sed 's/^/| /' conftest.$ac_ext >&5
20220
20221ac_cv_cxx_have_global_hash_map=no
20222fi
20223rm -f conftest.$ac_objext conftest.$ac_ext
20224 ac_ext=c
20225ac_cpp='$CPP $CPPFLAGS'
20226ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20227ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20228ac_compiler_gnu=$ac_cv_c_compiler_gnu
20229
20230fi
20231echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
20232echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000020233 HAVE_GLOBAL_HASH_MAP=0
20234 if test "$ac_cv_cxx_have_global_hash_map" = yes
20235 then
20236 HAVE_GLOBAL_HASH_MAP=1
Brian Gaeke90583492003-11-10 03:06:28 +000020237 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000020238
Brian Gaeke90583492003-11-10 03:06:28 +000020239echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
20240echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
20241if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000020242 echo $ECHO_N "(cached) $ECHO_C" >&6
20243else
20244
20245
20246
20247 ac_ext=cc
20248ac_cpp='$CXXCPP $CPPFLAGS'
20249ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20250ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20251ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20252
20253 cat >conftest.$ac_ext <<_ACEOF
20254#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020255/* confdefs.h. */
20256_ACEOF
20257cat confdefs.h >>conftest.$ac_ext
20258cat >>conftest.$ac_ext <<_ACEOF
20259/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020260#include <ext/hash_set>
20261#ifdef HAVE_NAMESPACES
20262using namespace std;
20263#endif
John Criswell7a73b802003-06-30 21:59:07 +000020264int
20265main ()
20266{
Brian Gaeke90583492003-11-10 03:06:28 +000020267hash_set<int> t;
John Criswell7a73b802003-06-30 21:59:07 +000020268 ;
20269 return 0;
20270}
20271_ACEOF
20272rm -f conftest.$ac_objext
20273if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20274 (eval $ac_compile) 2>&5
20275 ac_status=$?
20276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20277 (exit $ac_status); } &&
20278 { ac_try='test -s conftest.$ac_objext'
20279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20280 (eval $ac_try) 2>&5
20281 ac_status=$?
20282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20283 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000020284 ac_cv_cxx_have_std_ext_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000020285else
20286 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020287sed 's/^/| /' conftest.$ac_ext >&5
20288
Brian Gaeke90583492003-11-10 03:06:28 +000020289ac_cv_cxx_have_std_ext_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000020290fi
20291rm -f conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000020292 ac_ext=c
20293ac_cpp='$CPP $CPPFLAGS'
20294ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20295ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20296ac_compiler_gnu=$ac_cv_c_compiler_gnu
20297
20298fi
20299echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
20300echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000020301 HAVE_STD_EXT_HASH_SET=0
20302 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
20303 then
20304 HAVE_STD_EXT_HASH_SET=1
Brian Gaeke90583492003-11-10 03:06:28 +000020305 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000020306
Brian Gaeke90583492003-11-10 03:06:28 +000020307 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
20308echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
20309if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
20310 echo $ECHO_N "(cached) $ECHO_C" >&6
20311else
20312
20313
20314
20315 ac_ext=cc
20316ac_cpp='$CXXCPP $CPPFLAGS'
20317ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20318ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20319ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20320
John Criswell7a73b802003-06-30 21:59:07 +000020321 cat >conftest.$ac_ext <<_ACEOF
20322#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020323/* confdefs.h. */
20324_ACEOF
20325cat confdefs.h >>conftest.$ac_ext
20326cat >>conftest.$ac_ext <<_ACEOF
20327/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020328#include <ext/hash_set>
20329#ifdef HAVE_NAMESPACES
20330using namespace __gnu_cxx;
20331#endif
John Criswell7a73b802003-06-30 21:59:07 +000020332int
20333main ()
20334{
Brian Gaeke90583492003-11-10 03:06:28 +000020335hash_set<int> t;
20336 ;
20337 return 0;
20338}
20339_ACEOF
20340rm -f conftest.$ac_objext
20341if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20342 (eval $ac_compile) 2>&5
20343 ac_status=$?
20344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20345 (exit $ac_status); } &&
20346 { ac_try='test -s conftest.$ac_objext'
20347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20348 (eval $ac_try) 2>&5
20349 ac_status=$?
20350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20351 (exit $ac_status); }; }; then
20352 ac_cv_cxx_have_gnu_ext_hash_set=yes
20353else
20354 echo "$as_me: failed program was:" >&5
20355sed 's/^/| /' conftest.$ac_ext >&5
20356
20357ac_cv_cxx_have_gnu_ext_hash_set=no
20358fi
20359rm -f conftest.$ac_objext conftest.$ac_ext
20360 ac_ext=c
20361ac_cpp='$CPP $CPPFLAGS'
20362ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20363ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20364ac_compiler_gnu=$ac_cv_c_compiler_gnu
20365
20366fi
20367echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
20368echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000020369 HAVE_GNU_EXT_HASH_SET=0
20370 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
20371 then
20372 HAVE_GNU_EXT_HASH_SET=1
Brian Gaeke90583492003-11-10 03:06:28 +000020373 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000020374
Brian Gaeke90583492003-11-10 03:06:28 +000020375 echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
20376echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
20377if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
20378 echo $ECHO_N "(cached) $ECHO_C" >&6
20379else
20380
20381
20382
20383 ac_ext=cc
20384ac_cpp='$CXXCPP $CPPFLAGS'
20385ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20386ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20387ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20388
20389 cat >conftest.$ac_ext <<_ACEOF
20390#line $LINENO "configure"
20391/* confdefs.h. */
20392_ACEOF
20393cat confdefs.h >>conftest.$ac_ext
20394cat >>conftest.$ac_ext <<_ACEOF
20395/* end confdefs.h. */
20396#include <hash_set>
20397int
20398main ()
20399{
John Criswell7a73b802003-06-30 21:59:07 +000020400hash_set<int> t; return 0;
20401 ;
20402 return 0;
20403}
20404_ACEOF
20405rm -f conftest.$ac_objext
20406if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20407 (eval $ac_compile) 2>&5
20408 ac_status=$?
20409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20410 (exit $ac_status); } &&
20411 { ac_try='test -s conftest.$ac_objext'
20412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20413 (eval $ac_try) 2>&5
20414 ac_status=$?
20415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20416 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000020417 ac_cv_cxx_have_global_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000020418else
20419 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020420sed 's/^/| /' conftest.$ac_ext >&5
20421
Brian Gaeke90583492003-11-10 03:06:28 +000020422ac_cv_cxx_have_global_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000020423fi
20424rm -f conftest.$ac_objext conftest.$ac_ext
20425 ac_ext=c
20426ac_cpp='$CPP $CPPFLAGS'
20427ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20428ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20429ac_compiler_gnu=$ac_cv_c_compiler_gnu
20430
John Criswell7a73b802003-06-30 21:59:07 +000020431fi
Brian Gaeke90583492003-11-10 03:06:28 +000020432echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
20433echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000020434 HAVE_GLOBAL_HASH_SET=0
20435 if test "$ac_cv_cxx_have_global_hash_set" = yes
20436 then
20437 HAVE_GLOBAL_HASH_SET=1
Brian Gaeke90583492003-11-10 03:06:28 +000020438 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000020439
John Criswell7a73b802003-06-30 21:59:07 +000020440echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
20441echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
20442if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
20443 echo $ECHO_N "(cached) $ECHO_C" >&6
20444else
20445
20446
20447
20448 ac_ext=cc
20449ac_cpp='$CXXCPP $CPPFLAGS'
20450ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20451ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20452ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20453
20454 cat >conftest.$ac_ext <<_ACEOF
20455#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020456/* confdefs.h. */
20457_ACEOF
20458cat confdefs.h >>conftest.$ac_ext
20459cat >>conftest.$ac_ext <<_ACEOF
20460/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020461#include <iterator>
20462#ifdef HAVE_NAMESPACES
20463using namespace std;
20464#endif
John Criswell7a73b802003-06-30 21:59:07 +000020465int
20466main ()
20467{
20468iterator<int,int,int> t; return 0;
20469 ;
20470 return 0;
20471}
20472_ACEOF
20473rm -f conftest.$ac_objext
20474if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20475 (eval $ac_compile) 2>&5
20476 ac_status=$?
20477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20478 (exit $ac_status); } &&
20479 { ac_try='test -s conftest.$ac_objext'
20480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20481 (eval $ac_try) 2>&5
20482 ac_status=$?
20483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20484 (exit $ac_status); }; }; then
20485 ac_cv_cxx_have_std_iterator=yes
20486else
20487 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020488sed 's/^/| /' conftest.$ac_ext >&5
20489
John Criswell7a73b802003-06-30 21:59:07 +000020490ac_cv_cxx_have_std_iterator=no
20491fi
20492rm -f conftest.$ac_objext conftest.$ac_ext
20493 ac_ext=c
20494ac_cpp='$CPP $CPPFLAGS'
20495ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20496ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20497ac_compiler_gnu=$ac_cv_c_compiler_gnu
20498
20499
20500fi
20501echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
20502echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
Brian Gaeke295d4b82004-02-23 18:16:06 +000020503HAVE_STD_ITERATOR=0
20504if test "$ac_cv_cxx_have_std_iterator" = yes
20505then
20506 HAVE_STD_ITERATOR=1
John Criswell7a73b802003-06-30 21:59:07 +000020507fi
20508
20509echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
20510echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
20511if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
20512 echo $ECHO_N "(cached) $ECHO_C" >&6
20513else
20514
20515
20516
20517 ac_ext=cc
20518ac_cpp='$CXXCPP $CPPFLAGS'
20519ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20520ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20521ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20522
20523 cat >conftest.$ac_ext <<_ACEOF
20524#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020525/* confdefs.h. */
20526_ACEOF
20527cat confdefs.h >>conftest.$ac_ext
20528cat >>conftest.$ac_ext <<_ACEOF
20529/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020530#include <iterator>
20531#ifdef HAVE_NAMESPACES
20532using namespace std;
20533#endif
John Criswell7a73b802003-06-30 21:59:07 +000020534int
20535main ()
20536{
John Criswellc78022e2003-07-29 19:11:58 +000020537bidirectional_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000020538 ;
20539 return 0;
20540}
20541_ACEOF
20542rm -f conftest.$ac_objext
20543if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20544 (eval $ac_compile) 2>&5
20545 ac_status=$?
20546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20547 (exit $ac_status); } &&
20548 { ac_try='test -s conftest.$ac_objext'
20549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20550 (eval $ac_try) 2>&5
20551 ac_status=$?
20552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20553 (exit $ac_status); }; }; then
20554 ac_cv_cxx_have_bi_iterator=yes
20555else
20556 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020557sed 's/^/| /' conftest.$ac_ext >&5
20558
John Criswell7a73b802003-06-30 21:59:07 +000020559ac_cv_cxx_have_bi_iterator=no
20560fi
20561rm -f conftest.$ac_objext conftest.$ac_ext
20562 ac_ext=c
20563ac_cpp='$CPP $CPPFLAGS'
20564ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20565ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20566ac_compiler_gnu=$ac_cv_c_compiler_gnu
20567
20568
20569fi
20570echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
20571echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
Brian Gaeke295d4b82004-02-23 18:16:06 +000020572HAVE_BI_ITERATOR=0
20573if test "$ac_cv_cxx_have_bi_iterator" = yes
20574then
20575 HAVE_BI_ITERATOR=1
John Criswell7a73b802003-06-30 21:59:07 +000020576fi
20577
20578echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
20579echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
20580if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
20581 echo $ECHO_N "(cached) $ECHO_C" >&6
20582else
20583
20584
20585
20586 ac_ext=cc
20587ac_cpp='$CXXCPP $CPPFLAGS'
20588ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20589ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20590ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20591
20592 cat >conftest.$ac_ext <<_ACEOF
20593#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020594/* confdefs.h. */
20595_ACEOF
20596cat confdefs.h >>conftest.$ac_ext
20597cat >>conftest.$ac_ext <<_ACEOF
20598/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020599#include <iterator>
20600#ifdef HAVE_NAMESPACES
20601using namespace std;
20602#endif
John Criswell7a73b802003-06-30 21:59:07 +000020603int
20604main ()
20605{
John Criswellc78022e2003-07-29 19:11:58 +000020606forward_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000020607 ;
20608 return 0;
20609}
20610_ACEOF
20611rm -f conftest.$ac_objext
20612if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20613 (eval $ac_compile) 2>&5
20614 ac_status=$?
20615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20616 (exit $ac_status); } &&
20617 { ac_try='test -s conftest.$ac_objext'
20618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20619 (eval $ac_try) 2>&5
20620 ac_status=$?
20621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20622 (exit $ac_status); }; }; then
20623 ac_cv_cxx_have_fwd_iterator=yes
20624else
20625 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020626sed 's/^/| /' conftest.$ac_ext >&5
20627
John Criswell7a73b802003-06-30 21:59:07 +000020628ac_cv_cxx_have_fwd_iterator=no
20629fi
20630rm -f conftest.$ac_objext conftest.$ac_ext
20631 ac_ext=c
20632ac_cpp='$CPP $CPPFLAGS'
20633ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20634ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20635ac_compiler_gnu=$ac_cv_c_compiler_gnu
20636
20637
20638fi
20639echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
20640echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
Brian Gaeke295d4b82004-02-23 18:16:06 +000020641HAVE_FWD_ITERATOR=0
20642if test "$ac_cv_cxx_have_fwd_iterator" = yes
20643then
20644 HAVE_FWD_ITERATOR=1
John Criswell7a73b802003-06-30 21:59:07 +000020645fi
20646
20647
20648# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
20649# for constant arguments. Useless!
20650echo "$as_me:$LINENO: checking for working alloca.h" >&5
20651echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
20652if test "${ac_cv_working_alloca_h+set}" = set; then
20653 echo $ECHO_N "(cached) $ECHO_C" >&6
20654else
20655 cat >conftest.$ac_ext <<_ACEOF
20656#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020657/* confdefs.h. */
20658_ACEOF
20659cat confdefs.h >>conftest.$ac_ext
20660cat >>conftest.$ac_ext <<_ACEOF
20661/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020662#include <alloca.h>
John Criswell7a73b802003-06-30 21:59:07 +000020663int
20664main ()
20665{
20666char *p = (char *) alloca (2 * sizeof (int));
20667 ;
20668 return 0;
20669}
20670_ACEOF
20671rm -f conftest.$ac_objext conftest$ac_exeext
20672if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20673 (eval $ac_link) 2>&5
20674 ac_status=$?
20675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20676 (exit $ac_status); } &&
20677 { ac_try='test -s conftest$ac_exeext'
20678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20679 (eval $ac_try) 2>&5
20680 ac_status=$?
20681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20682 (exit $ac_status); }; }; then
20683 ac_cv_working_alloca_h=yes
20684else
20685 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020686sed 's/^/| /' conftest.$ac_ext >&5
20687
John Criswell7a73b802003-06-30 21:59:07 +000020688ac_cv_working_alloca_h=no
20689fi
20690rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20691fi
20692echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
20693echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
20694if test $ac_cv_working_alloca_h = yes; then
20695
20696cat >>confdefs.h <<\_ACEOF
20697#define HAVE_ALLOCA_H 1
20698_ACEOF
20699
20700fi
20701
20702echo "$as_me:$LINENO: checking for alloca" >&5
20703echo $ECHO_N "checking for alloca... $ECHO_C" >&6
20704if test "${ac_cv_func_alloca_works+set}" = set; then
20705 echo $ECHO_N "(cached) $ECHO_C" >&6
20706else
20707 cat >conftest.$ac_ext <<_ACEOF
20708#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020709/* confdefs.h. */
20710_ACEOF
20711cat confdefs.h >>conftest.$ac_ext
20712cat >>conftest.$ac_ext <<_ACEOF
20713/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020714#ifdef __GNUC__
20715# define alloca __builtin_alloca
20716#else
20717# ifdef _MSC_VER
20718# include <malloc.h>
20719# define alloca _alloca
20720# else
20721# if HAVE_ALLOCA_H
20722# include <alloca.h>
20723# else
20724# ifdef _AIX
20725 #pragma alloca
20726# else
20727# ifndef alloca /* predefined by HP cc +Olibcalls */
20728char *alloca ();
20729# endif
20730# endif
20731# endif
20732# endif
20733#endif
20734
John Criswell7a73b802003-06-30 21:59:07 +000020735int
20736main ()
20737{
20738char *p = (char *) alloca (1);
20739 ;
20740 return 0;
20741}
20742_ACEOF
20743rm -f conftest.$ac_objext conftest$ac_exeext
20744if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20745 (eval $ac_link) 2>&5
20746 ac_status=$?
20747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20748 (exit $ac_status); } &&
20749 { ac_try='test -s conftest$ac_exeext'
20750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20751 (eval $ac_try) 2>&5
20752 ac_status=$?
20753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20754 (exit $ac_status); }; }; then
20755 ac_cv_func_alloca_works=yes
20756else
20757 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020758sed 's/^/| /' conftest.$ac_ext >&5
20759
John Criswell7a73b802003-06-30 21:59:07 +000020760ac_cv_func_alloca_works=no
20761fi
20762rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20763fi
20764echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
20765echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
20766
20767if test $ac_cv_func_alloca_works = yes; then
20768
20769cat >>confdefs.h <<\_ACEOF
20770#define HAVE_ALLOCA 1
20771_ACEOF
20772
20773else
20774 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
20775# that cause trouble. Some versions do not even contain alloca or
20776# contain a buggy version. If you still want to use their alloca,
20777# use ar to extract alloca.o from them instead of compiling alloca.c.
20778
20779ALLOCA=alloca.$ac_objext
20780
20781cat >>confdefs.h <<\_ACEOF
20782#define C_ALLOCA 1
20783_ACEOF
20784
20785
20786echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
20787echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
20788if test "${ac_cv_os_cray+set}" = set; then
20789 echo $ECHO_N "(cached) $ECHO_C" >&6
20790else
20791 cat >conftest.$ac_ext <<_ACEOF
20792#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020793/* confdefs.h. */
20794_ACEOF
20795cat confdefs.h >>conftest.$ac_ext
20796cat >>conftest.$ac_ext <<_ACEOF
20797/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020798#if defined(CRAY) && ! defined(CRAY2)
20799webecray
20800#else
20801wenotbecray
20802#endif
20803
20804_ACEOF
20805if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000020806 $EGREP "webecray" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000020807 ac_cv_os_cray=yes
20808else
20809 ac_cv_os_cray=no
20810fi
20811rm -f conftest*
20812
20813fi
20814echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
20815echo "${ECHO_T}$ac_cv_os_cray" >&6
20816if test $ac_cv_os_cray = yes; then
20817 for ac_func in _getb67 GETB67 getb67; do
20818 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20819echo "$as_me:$LINENO: checking for $ac_func" >&5
20820echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20821if eval "test \"\${$as_ac_var+set}\" = set"; then
20822 echo $ECHO_N "(cached) $ECHO_C" >&6
20823else
20824 cat >conftest.$ac_ext <<_ACEOF
20825#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020826/* confdefs.h. */
20827_ACEOF
20828cat confdefs.h >>conftest.$ac_ext
20829cat >>conftest.$ac_ext <<_ACEOF
20830/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020831/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000020832 which can conflict with char $ac_func (); below.
20833 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20834 <limits.h> exists even on freestanding compilers. */
20835#ifdef __STDC__
20836# include <limits.h>
20837#else
20838# include <assert.h>
20839#endif
John Criswell7a73b802003-06-30 21:59:07 +000020840/* Override any gcc2 internal prototype to avoid an error. */
20841#ifdef __cplusplus
20842extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000020843{
John Criswell7a73b802003-06-30 21:59:07 +000020844#endif
20845/* We use char because int might match the return type of a gcc2
20846 builtin and then its argument prototype would still apply. */
20847char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000020848/* The GNU C library defines this for functions which it implements
20849 to always fail with ENOSYS. Some functions are actually named
20850 something starting with __ and the normal name is an alias. */
20851#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20852choke me
20853#else
John Criswell0c38eaf2003-09-10 15:17:25 +000020854char (*f) () = $ac_func;
20855#endif
20856#ifdef __cplusplus
20857}
John Criswell7a73b802003-06-30 21:59:07 +000020858#endif
20859
John Criswell0c38eaf2003-09-10 15:17:25 +000020860int
20861main ()
20862{
20863return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000020864 ;
20865 return 0;
20866}
20867_ACEOF
20868rm -f conftest.$ac_objext conftest$ac_exeext
20869if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20870 (eval $ac_link) 2>&5
20871 ac_status=$?
20872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20873 (exit $ac_status); } &&
20874 { ac_try='test -s conftest$ac_exeext'
20875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20876 (eval $ac_try) 2>&5
20877 ac_status=$?
20878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20879 (exit $ac_status); }; }; then
20880 eval "$as_ac_var=yes"
20881else
20882 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020883sed 's/^/| /' conftest.$ac_ext >&5
20884
John Criswell7a73b802003-06-30 21:59:07 +000020885eval "$as_ac_var=no"
20886fi
20887rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20888fi
20889echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20890echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20891if test `eval echo '${'$as_ac_var'}'` = yes; then
20892
20893cat >>confdefs.h <<_ACEOF
20894#define CRAY_STACKSEG_END $ac_func
20895_ACEOF
20896
20897 break
20898fi
20899
20900 done
20901fi
20902
20903echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
20904echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
20905if test "${ac_cv_c_stack_direction+set}" = set; then
20906 echo $ECHO_N "(cached) $ECHO_C" >&6
20907else
20908 if test "$cross_compiling" = yes; then
20909 ac_cv_c_stack_direction=0
20910else
20911 cat >conftest.$ac_ext <<_ACEOF
20912#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020913/* confdefs.h. */
20914_ACEOF
20915cat confdefs.h >>conftest.$ac_ext
20916cat >>conftest.$ac_ext <<_ACEOF
20917/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020918int
20919find_stack_direction ()
20920{
20921 static char *addr = 0;
20922 auto char dummy;
20923 if (addr == 0)
20924 {
20925 addr = &dummy;
20926 return find_stack_direction ();
20927 }
20928 else
20929 return (&dummy > addr) ? 1 : -1;
20930}
20931
20932int
20933main ()
20934{
20935 exit (find_stack_direction () < 0);
20936}
20937_ACEOF
20938rm -f conftest$ac_exeext
20939if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20940 (eval $ac_link) 2>&5
20941 ac_status=$?
20942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20943 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20945 (eval $ac_try) 2>&5
20946 ac_status=$?
20947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20948 (exit $ac_status); }; }; then
20949 ac_cv_c_stack_direction=1
20950else
20951 echo "$as_me: program exited with status $ac_status" >&5
20952echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020953sed 's/^/| /' conftest.$ac_ext >&5
20954
John Criswell7a73b802003-06-30 21:59:07 +000020955( exit $ac_status )
20956ac_cv_c_stack_direction=-1
20957fi
John Criswell0c38eaf2003-09-10 15:17:25 +000020958rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000020959fi
20960fi
20961echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
20962echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
20963
20964cat >>confdefs.h <<_ACEOF
20965#define STACK_DIRECTION $ac_cv_c_stack_direction
20966_ACEOF
20967
20968
20969fi
20970
John Criswell7a73b802003-06-30 21:59:07 +000020971
20972
20973for ac_header in stdlib.h unistd.h
20974do
20975as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20976if eval "test \"\${$as_ac_Header+set}\" = set"; then
20977 echo "$as_me:$LINENO: checking for $ac_header" >&5
20978echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20979if eval "test \"\${$as_ac_Header+set}\" = set"; then
20980 echo $ECHO_N "(cached) $ECHO_C" >&6
20981fi
20982echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20983echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20984else
20985 # Is the header compilable?
20986echo "$as_me:$LINENO: checking $ac_header usability" >&5
20987echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20988cat >conftest.$ac_ext <<_ACEOF
20989#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020990/* confdefs.h. */
20991_ACEOF
20992cat confdefs.h >>conftest.$ac_ext
20993cat >>conftest.$ac_ext <<_ACEOF
20994/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020995$ac_includes_default
20996#include <$ac_header>
20997_ACEOF
20998rm -f conftest.$ac_objext
20999if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21000 (eval $ac_compile) 2>&5
21001 ac_status=$?
21002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21003 (exit $ac_status); } &&
21004 { ac_try='test -s conftest.$ac_objext'
21005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21006 (eval $ac_try) 2>&5
21007 ac_status=$?
21008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21009 (exit $ac_status); }; }; then
21010 ac_header_compiler=yes
21011else
21012 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021013sed 's/^/| /' conftest.$ac_ext >&5
21014
John Criswell7a73b802003-06-30 21:59:07 +000021015ac_header_compiler=no
21016fi
21017rm -f conftest.$ac_objext conftest.$ac_ext
21018echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21019echo "${ECHO_T}$ac_header_compiler" >&6
21020
21021# Is the header present?
21022echo "$as_me:$LINENO: checking $ac_header presence" >&5
21023echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21024cat >conftest.$ac_ext <<_ACEOF
21025#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021026/* confdefs.h. */
21027_ACEOF
21028cat confdefs.h >>conftest.$ac_ext
21029cat >>conftest.$ac_ext <<_ACEOF
21030/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021031#include <$ac_header>
21032_ACEOF
21033if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21034 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21035 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000021036 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000021037 rm -f conftest.er1
21038 cat conftest.err >&5
21039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21040 (exit $ac_status); } >/dev/null; then
21041 if test -s conftest.err; then
21042 ac_cpp_err=$ac_c_preproc_warn_flag
21043 else
21044 ac_cpp_err=
21045 fi
21046else
21047 ac_cpp_err=yes
21048fi
21049if test -z "$ac_cpp_err"; then
21050 ac_header_preproc=yes
21051else
21052 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021053sed 's/^/| /' conftest.$ac_ext >&5
21054
John Criswell7a73b802003-06-30 21:59:07 +000021055 ac_header_preproc=no
21056fi
21057rm -f conftest.err conftest.$ac_ext
21058echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21059echo "${ECHO_T}$ac_header_preproc" >&6
21060
21061# So? What about this header?
21062case $ac_header_compiler:$ac_header_preproc in
21063 yes:no )
21064 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21065echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21066 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021067echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21068 (
21069 cat <<\_ASBOX
21070## ------------------------------------ ##
21071## Report this to bug-autoconf@gnu.org. ##
21072## ------------------------------------ ##
21073_ASBOX
21074 ) |
21075 sed "s/^/$as_me: WARNING: /" >&2
21076 ;;
John Criswell7a73b802003-06-30 21:59:07 +000021077 no:yes )
21078 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21079echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21080 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21081echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21082 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021083echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21084 (
21085 cat <<\_ASBOX
21086## ------------------------------------ ##
21087## Report this to bug-autoconf@gnu.org. ##
21088## ------------------------------------ ##
21089_ASBOX
21090 ) |
21091 sed "s/^/$as_me: WARNING: /" >&2
21092 ;;
John Criswell7a73b802003-06-30 21:59:07 +000021093esac
21094echo "$as_me:$LINENO: checking for $ac_header" >&5
21095echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21096if eval "test \"\${$as_ac_Header+set}\" = set"; then
21097 echo $ECHO_N "(cached) $ECHO_C" >&6
21098else
21099 eval "$as_ac_Header=$ac_header_preproc"
21100fi
21101echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21102echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21103
21104fi
21105if test `eval echo '${'$as_ac_Header'}'` = yes; then
21106 cat >>confdefs.h <<_ACEOF
21107#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21108_ACEOF
21109
21110fi
21111
21112done
21113
21114
21115for ac_func in getpagesize
21116do
21117as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21118echo "$as_me:$LINENO: checking for $ac_func" >&5
21119echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21120if eval "test \"\${$as_ac_var+set}\" = set"; then
21121 echo $ECHO_N "(cached) $ECHO_C" >&6
21122else
21123 cat >conftest.$ac_ext <<_ACEOF
21124#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021125/* confdefs.h. */
21126_ACEOF
21127cat confdefs.h >>conftest.$ac_ext
21128cat >>conftest.$ac_ext <<_ACEOF
21129/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021130/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000021131 which can conflict with char $ac_func (); below.
21132 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21133 <limits.h> exists even on freestanding compilers. */
21134#ifdef __STDC__
21135# include <limits.h>
21136#else
21137# include <assert.h>
21138#endif
John Criswell7a73b802003-06-30 21:59:07 +000021139/* Override any gcc2 internal prototype to avoid an error. */
21140#ifdef __cplusplus
21141extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000021142{
John Criswell7a73b802003-06-30 21:59:07 +000021143#endif
21144/* We use char because int might match the return type of a gcc2
21145 builtin and then its argument prototype would still apply. */
21146char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000021147/* The GNU C library defines this for functions which it implements
21148 to always fail with ENOSYS. Some functions are actually named
21149 something starting with __ and the normal name is an alias. */
21150#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21151choke me
21152#else
John Criswell0c38eaf2003-09-10 15:17:25 +000021153char (*f) () = $ac_func;
21154#endif
21155#ifdef __cplusplus
21156}
John Criswell7a73b802003-06-30 21:59:07 +000021157#endif
21158
John Criswell0c38eaf2003-09-10 15:17:25 +000021159int
21160main ()
21161{
21162return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000021163 ;
21164 return 0;
21165}
21166_ACEOF
21167rm -f conftest.$ac_objext conftest$ac_exeext
21168if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21169 (eval $ac_link) 2>&5
21170 ac_status=$?
21171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21172 (exit $ac_status); } &&
21173 { ac_try='test -s conftest$ac_exeext'
21174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21175 (eval $ac_try) 2>&5
21176 ac_status=$?
21177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21178 (exit $ac_status); }; }; then
21179 eval "$as_ac_var=yes"
21180else
21181 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021182sed 's/^/| /' conftest.$ac_ext >&5
21183
John Criswell7a73b802003-06-30 21:59:07 +000021184eval "$as_ac_var=no"
21185fi
21186rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21187fi
21188echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21189echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21190if test `eval echo '${'$as_ac_var'}'` = yes; then
21191 cat >>confdefs.h <<_ACEOF
21192#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21193_ACEOF
21194
21195fi
21196done
21197
21198echo "$as_me:$LINENO: checking for working mmap" >&5
21199echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
21200if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
21201 echo $ECHO_N "(cached) $ECHO_C" >&6
21202else
21203 if test "$cross_compiling" = yes; then
21204 ac_cv_func_mmap_fixed_mapped=no
21205else
21206 cat >conftest.$ac_ext <<_ACEOF
21207#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021208/* confdefs.h. */
21209_ACEOF
21210cat confdefs.h >>conftest.$ac_ext
21211cat >>conftest.$ac_ext <<_ACEOF
21212/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021213$ac_includes_default
21214/* malloc might have been renamed as rpl_malloc. */
21215#undef malloc
21216
21217/* Thanks to Mike Haertel and Jim Avera for this test.
21218 Here is a matrix of mmap possibilities:
21219 mmap private not fixed
21220 mmap private fixed at somewhere currently unmapped
21221 mmap private fixed at somewhere already mapped
21222 mmap shared not fixed
21223 mmap shared fixed at somewhere currently unmapped
21224 mmap shared fixed at somewhere already mapped
21225 For private mappings, we should verify that changes cannot be read()
21226 back from the file, nor mmap's back from the file at a different
21227 address. (There have been systems where private was not correctly
21228 implemented like the infamous i386 svr4.0, and systems where the
21229 VM page cache was not coherent with the file system buffer cache
21230 like early versions of FreeBSD and possibly contemporary NetBSD.)
21231 For shared mappings, we should conversely verify that changes get
21232 propagated back to all the places they're supposed to be.
21233
21234 Grep wants private fixed already mapped.
21235 The main things grep needs to know about mmap are:
21236 * does it exist and is it safe to write into the mmap'd area
21237 * how to use it (BSD variants) */
21238
21239#include <fcntl.h>
21240#include <sys/mman.h>
21241
21242#if !STDC_HEADERS && !HAVE_STDLIB_H
21243char *malloc ();
21244#endif
21245
21246/* This mess was copied from the GNU getpagesize.h. */
21247#if !HAVE_GETPAGESIZE
21248/* Assume that all systems that can run configure have sys/param.h. */
21249# if !HAVE_SYS_PARAM_H
21250# define HAVE_SYS_PARAM_H 1
21251# endif
21252
21253# ifdef _SC_PAGESIZE
21254# define getpagesize() sysconf(_SC_PAGESIZE)
21255# else /* no _SC_PAGESIZE */
21256# if HAVE_SYS_PARAM_H
21257# include <sys/param.h>
21258# ifdef EXEC_PAGESIZE
21259# define getpagesize() EXEC_PAGESIZE
21260# else /* no EXEC_PAGESIZE */
21261# ifdef NBPG
21262# define getpagesize() NBPG * CLSIZE
21263# ifndef CLSIZE
21264# define CLSIZE 1
21265# endif /* no CLSIZE */
21266# else /* no NBPG */
21267# ifdef NBPC
21268# define getpagesize() NBPC
21269# else /* no NBPC */
21270# ifdef PAGESIZE
21271# define getpagesize() PAGESIZE
21272# endif /* PAGESIZE */
21273# endif /* no NBPC */
21274# endif /* no NBPG */
21275# endif /* no EXEC_PAGESIZE */
21276# else /* no HAVE_SYS_PARAM_H */
21277# define getpagesize() 8192 /* punt totally */
21278# endif /* no HAVE_SYS_PARAM_H */
21279# endif /* no _SC_PAGESIZE */
21280
21281#endif /* no HAVE_GETPAGESIZE */
21282
21283int
21284main ()
21285{
21286 char *data, *data2, *data3;
21287 int i, pagesize;
21288 int fd;
21289
21290 pagesize = getpagesize ();
21291
21292 /* First, make a file with some known garbage in it. */
21293 data = (char *) malloc (pagesize);
21294 if (!data)
21295 exit (1);
21296 for (i = 0; i < pagesize; ++i)
21297 *(data + i) = rand ();
21298 umask (0);
21299 fd = creat ("conftest.mmap", 0600);
21300 if (fd < 0)
21301 exit (1);
21302 if (write (fd, data, pagesize) != pagesize)
21303 exit (1);
21304 close (fd);
21305
21306 /* Next, try to mmap the file at a fixed address which already has
21307 something else allocated at it. If we can, also make sure that
21308 we see the same garbage. */
21309 fd = open ("conftest.mmap", O_RDWR);
21310 if (fd < 0)
21311 exit (1);
21312 data2 = (char *) malloc (2 * pagesize);
21313 if (!data2)
21314 exit (1);
21315 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
21316 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
21317 MAP_PRIVATE | MAP_FIXED, fd, 0L))
21318 exit (1);
21319 for (i = 0; i < pagesize; ++i)
21320 if (*(data + i) != *(data2 + i))
21321 exit (1);
21322
21323 /* Finally, make sure that changes to the mapped area do not
21324 percolate back to the file as seen by read(). (This is a bug on
21325 some variants of i386 svr4.0.) */
21326 for (i = 0; i < pagesize; ++i)
21327 *(data2 + i) = *(data2 + i) + 1;
21328 data3 = (char *) malloc (pagesize);
21329 if (!data3)
21330 exit (1);
21331 if (read (fd, data3, pagesize) != pagesize)
21332 exit (1);
21333 for (i = 0; i < pagesize; ++i)
21334 if (*(data + i) != *(data3 + i))
21335 exit (1);
21336 close (fd);
21337 exit (0);
21338}
21339_ACEOF
21340rm -f conftest$ac_exeext
21341if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21342 (eval $ac_link) 2>&5
21343 ac_status=$?
21344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21345 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21347 (eval $ac_try) 2>&5
21348 ac_status=$?
21349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21350 (exit $ac_status); }; }; then
21351 ac_cv_func_mmap_fixed_mapped=yes
21352else
21353 echo "$as_me: program exited with status $ac_status" >&5
21354echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021355sed 's/^/| /' conftest.$ac_ext >&5
21356
John Criswell7a73b802003-06-30 21:59:07 +000021357( exit $ac_status )
21358ac_cv_func_mmap_fixed_mapped=no
21359fi
John Criswell0c38eaf2003-09-10 15:17:25 +000021360rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021361fi
21362fi
21363echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
21364echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
21365if test $ac_cv_func_mmap_fixed_mapped = yes; then
21366
21367cat >>confdefs.h <<\_ACEOF
21368#define HAVE_MMAP 1
21369_ACEOF
21370
21371fi
21372rm -f conftest.mmap
21373
Brian Gaeke26be9c52004-01-13 06:43:16 +000021374if test "$ac_cv_func_mmap_fixed_mapped" = "no"
21375then
John Criswellf3ecf3a2004-05-27 00:57:50 +000021376 { echo "$as_me:$LINENO: WARNING: mmap() required but not found" >&5
21377echo "$as_me: WARNING: mmap() required but not found" >&2;}
Brian Gaeke26be9c52004-01-13 06:43:16 +000021378fi
John Criswell7a73b802003-06-30 21:59:07 +000021379echo "$as_me:$LINENO: checking for mmap of files" >&5
21380echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
21381if test "${ac_cv_func_mmap_file+set}" = set; then
21382 echo $ECHO_N "(cached) $ECHO_C" >&6
21383else
21384
21385
21386 ac_ext=c
21387ac_cpp='$CPP $CPPFLAGS'
21388ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21389ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21390ac_compiler_gnu=$ac_cv_c_compiler_gnu
21391
21392 if test "$cross_compiling" = yes; then
John Criswell0c38eaf2003-09-10 15:17:25 +000021393 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
21394See \`config.log' for more details." >&5
21395echo "$as_me: error: cannot run test program while cross compiling
21396See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000021397 { (exit 1); exit 1; }; }
21398else
21399 cat >conftest.$ac_ext <<_ACEOF
21400#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021401/* confdefs.h. */
21402_ACEOF
21403cat confdefs.h >>conftest.$ac_ext
21404cat >>conftest.$ac_ext <<_ACEOF
21405/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021406
John Criswell7a73b802003-06-30 21:59:07 +000021407#ifdef HAVE_SYS_TYPES_H
21408#include <sys/types.h>
21409#endif
21410
John Criswell5ab73462003-10-09 15:44:28 +000021411#ifdef HAVE_SYS_MMAN_H
21412#include <sys/mman.h>
21413#endif
21414
John Criswell7a73b802003-06-30 21:59:07 +000021415#ifdef HAVE_FCNTL_H
21416#include <fcntl.h>
21417#endif
21418
21419 int fd;
21420 int main () {
John Criswell5ab73462003-10-09 15:44:28 +000021421 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 +000021422_ACEOF
21423rm -f conftest$ac_exeext
21424if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21425 (eval $ac_link) 2>&5
21426 ac_status=$?
21427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21428 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21430 (eval $ac_try) 2>&5
21431 ac_status=$?
21432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21433 (exit $ac_status); }; }; then
21434 ac_cv_func_mmap_file=yes
21435else
21436 echo "$as_me: program exited with status $ac_status" >&5
21437echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021438sed 's/^/| /' conftest.$ac_ext >&5
21439
John Criswell7a73b802003-06-30 21:59:07 +000021440( exit $ac_status )
21441ac_cv_func_mmap_file=no
21442fi
John Criswell0c38eaf2003-09-10 15:17:25 +000021443rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021444fi
21445 ac_ext=c
21446ac_cpp='$CPP $CPPFLAGS'
21447ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21448ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21449ac_compiler_gnu=$ac_cv_c_compiler_gnu
21450
21451
21452fi
21453echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
21454echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
21455if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000021456
21457cat >>confdefs.h <<\_ACEOF
21458#define HAVE_MMAP_FILE
John Criswell7a73b802003-06-30 21:59:07 +000021459_ACEOF
21460
21461 MMAP_FILE=yes
21462
21463fi
21464
Brian Gaeke26be9c52004-01-13 06:43:16 +000021465if test "$ac_cv_func_mmap_file" = "no"
John Criswell7a73b802003-06-30 21:59:07 +000021466then
John Criswellf3ecf3a2004-05-27 00:57:50 +000021467 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
21468echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000021469fi
21470echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
21471echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
21472if test "${ac_cv_header_mmap_anon+set}" = set; then
21473 echo $ECHO_N "(cached) $ECHO_C" >&6
21474else
21475
21476
21477 ac_ext=c
21478ac_cpp='$CPP $CPPFLAGS'
21479ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21480ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21481ac_compiler_gnu=$ac_cv_c_compiler_gnu
21482
21483 cat >conftest.$ac_ext <<_ACEOF
21484#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021485/* confdefs.h. */
21486_ACEOF
21487cat confdefs.h >>conftest.$ac_ext
21488cat >>conftest.$ac_ext <<_ACEOF
21489/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021490#include <sys/mman.h>
21491 #include <unistd.h>
21492 #include <fcntl.h>
John Criswell7a73b802003-06-30 21:59:07 +000021493int
21494main ()
21495{
21496mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
21497 ;
21498 return 0;
21499}
21500_ACEOF
21501rm -f conftest.$ac_objext
21502if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21503 (eval $ac_compile) 2>&5
21504 ac_status=$?
21505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21506 (exit $ac_status); } &&
21507 { ac_try='test -s conftest.$ac_objext'
21508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21509 (eval $ac_try) 2>&5
21510 ac_status=$?
21511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21512 (exit $ac_status); }; }; then
21513 ac_cv_header_mmap_anon=yes
21514else
21515 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021516sed 's/^/| /' conftest.$ac_ext >&5
21517
John Criswell7a73b802003-06-30 21:59:07 +000021518ac_cv_header_mmap_anon=no
21519fi
21520rm -f conftest.$ac_objext conftest.$ac_ext
21521 ac_ext=c
21522ac_cpp='$CPP $CPPFLAGS'
21523ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21524ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21525ac_compiler_gnu=$ac_cv_c_compiler_gnu
21526
21527
21528fi
21529echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
21530echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
21531if test "$ac_cv_header_mmap_anon" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000021532
21533cat >>confdefs.h <<\_ACEOF
21534#define HAVE_MMAP_ANONYMOUS
John Criswell7a73b802003-06-30 21:59:07 +000021535_ACEOF
21536
21537fi
21538
21539echo "$as_me:$LINENO: checking return type of signal handlers" >&5
21540echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
21541if test "${ac_cv_type_signal+set}" = set; then
21542 echo $ECHO_N "(cached) $ECHO_C" >&6
21543else
21544 cat >conftest.$ac_ext <<_ACEOF
21545#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021546/* confdefs.h. */
21547_ACEOF
21548cat confdefs.h >>conftest.$ac_ext
21549cat >>conftest.$ac_ext <<_ACEOF
21550/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021551#include <sys/types.h>
21552#include <signal.h>
21553#ifdef signal
21554# undef signal
21555#endif
21556#ifdef __cplusplus
21557extern "C" void (*signal (int, void (*)(int)))(int);
21558#else
21559void (*signal ()) ();
21560#endif
21561
John Criswell7a73b802003-06-30 21:59:07 +000021562int
21563main ()
21564{
21565int i;
21566 ;
21567 return 0;
21568}
21569_ACEOF
21570rm -f conftest.$ac_objext
21571if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21572 (eval $ac_compile) 2>&5
21573 ac_status=$?
21574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21575 (exit $ac_status); } &&
21576 { ac_try='test -s conftest.$ac_objext'
21577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21578 (eval $ac_try) 2>&5
21579 ac_status=$?
21580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21581 (exit $ac_status); }; }; then
21582 ac_cv_type_signal=void
21583else
21584 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021585sed 's/^/| /' conftest.$ac_ext >&5
21586
John Criswell7a73b802003-06-30 21:59:07 +000021587ac_cv_type_signal=int
21588fi
21589rm -f conftest.$ac_objext conftest.$ac_ext
21590fi
21591echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
21592echo "${ECHO_T}$ac_cv_type_signal" >&6
21593
21594cat >>confdefs.h <<_ACEOF
21595#define RETSIGTYPE $ac_cv_type_signal
21596_ACEOF
21597
21598
21599
21600
21601
21602
21603
Brian Gaekef5261472004-02-20 06:40:57 +000021604
Brian Gaeke9a08b5e2004-04-02 21:26:02 +000021605
21606for ac_func in getcwd gettimeofday strdup strtoq strtoll backtrace isatty
John Criswell7a73b802003-06-30 21:59:07 +000021607do
21608as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21609echo "$as_me:$LINENO: checking for $ac_func" >&5
21610echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21611if eval "test \"\${$as_ac_var+set}\" = set"; then
21612 echo $ECHO_N "(cached) $ECHO_C" >&6
21613else
21614 cat >conftest.$ac_ext <<_ACEOF
21615#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021616/* confdefs.h. */
21617_ACEOF
21618cat confdefs.h >>conftest.$ac_ext
21619cat >>conftest.$ac_ext <<_ACEOF
21620/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021621/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000021622 which can conflict with char $ac_func (); below.
21623 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21624 <limits.h> exists even on freestanding compilers. */
21625#ifdef __STDC__
21626# include <limits.h>
21627#else
21628# include <assert.h>
21629#endif
John Criswell7a73b802003-06-30 21:59:07 +000021630/* Override any gcc2 internal prototype to avoid an error. */
21631#ifdef __cplusplus
21632extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000021633{
John Criswell7a73b802003-06-30 21:59:07 +000021634#endif
21635/* We use char because int might match the return type of a gcc2
21636 builtin and then its argument prototype would still apply. */
21637char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000021638/* The GNU C library defines this for functions which it implements
21639 to always fail with ENOSYS. Some functions are actually named
21640 something starting with __ and the normal name is an alias. */
21641#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21642choke me
21643#else
John Criswell0c38eaf2003-09-10 15:17:25 +000021644char (*f) () = $ac_func;
21645#endif
21646#ifdef __cplusplus
21647}
John Criswell7a73b802003-06-30 21:59:07 +000021648#endif
21649
John Criswell0c38eaf2003-09-10 15:17:25 +000021650int
21651main ()
21652{
21653return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000021654 ;
21655 return 0;
21656}
21657_ACEOF
21658rm -f conftest.$ac_objext conftest$ac_exeext
21659if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21660 (eval $ac_link) 2>&5
21661 ac_status=$?
21662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21663 (exit $ac_status); } &&
21664 { ac_try='test -s conftest$ac_exeext'
21665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21666 (eval $ac_try) 2>&5
21667 ac_status=$?
21668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21669 (exit $ac_status); }; }; then
21670 eval "$as_ac_var=yes"
21671else
21672 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021673sed 's/^/| /' conftest.$ac_ext >&5
21674
John Criswell7a73b802003-06-30 21:59:07 +000021675eval "$as_ac_var=no"
21676fi
21677rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21678fi
21679echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21680echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21681if test `eval echo '${'$as_ac_var'}'` = yes; then
21682 cat >>confdefs.h <<_ACEOF
21683#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21684_ACEOF
21685
21686fi
21687done
21688
John Criswell7a73b802003-06-30 21:59:07 +000021689echo "$as_me:$LINENO: checking for mprotect" >&5
21690echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
21691if test "${ac_cv_func_mprotect+set}" = set; then
21692 echo $ECHO_N "(cached) $ECHO_C" >&6
21693else
21694 cat >conftest.$ac_ext <<_ACEOF
21695#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021696/* confdefs.h. */
21697_ACEOF
21698cat confdefs.h >>conftest.$ac_ext
21699cat >>conftest.$ac_ext <<_ACEOF
21700/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021701/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000021702 which can conflict with char mprotect (); below.
21703 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21704 <limits.h> exists even on freestanding compilers. */
21705#ifdef __STDC__
21706# include <limits.h>
21707#else
21708# include <assert.h>
21709#endif
John Criswell7a73b802003-06-30 21:59:07 +000021710/* Override any gcc2 internal prototype to avoid an error. */
21711#ifdef __cplusplus
21712extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000021713{
John Criswell7a73b802003-06-30 21:59:07 +000021714#endif
21715/* We use char because int might match the return type of a gcc2
21716 builtin and then its argument prototype would still apply. */
21717char mprotect ();
John Criswell7a73b802003-06-30 21:59:07 +000021718/* The GNU C library defines this for functions which it implements
21719 to always fail with ENOSYS. Some functions are actually named
21720 something starting with __ and the normal name is an alias. */
21721#if defined (__stub_mprotect) || defined (__stub___mprotect)
21722choke me
21723#else
John Criswell0c38eaf2003-09-10 15:17:25 +000021724char (*f) () = mprotect;
21725#endif
21726#ifdef __cplusplus
21727}
John Criswell7a73b802003-06-30 21:59:07 +000021728#endif
21729
John Criswell0c38eaf2003-09-10 15:17:25 +000021730int
21731main ()
21732{
21733return f != mprotect;
John Criswell7a73b802003-06-30 21:59:07 +000021734 ;
21735 return 0;
21736}
21737_ACEOF
21738rm -f conftest.$ac_objext conftest$ac_exeext
21739if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21740 (eval $ac_link) 2>&5
21741 ac_status=$?
21742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21743 (exit $ac_status); } &&
21744 { ac_try='test -s conftest$ac_exeext'
21745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21746 (eval $ac_try) 2>&5
21747 ac_status=$?
21748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21749 (exit $ac_status); }; }; then
21750 ac_cv_func_mprotect=yes
21751else
21752 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021753sed 's/^/| /' conftest.$ac_ext >&5
21754
John Criswell7a73b802003-06-30 21:59:07 +000021755ac_cv_func_mprotect=no
21756fi
21757rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21758fi
21759echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
21760echo "${ECHO_T}$ac_cv_func_mprotect" >&6
21761if test $ac_cv_func_mprotect = yes; then
21762 :
21763else
21764 { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
21765echo "$as_me: error: Function mprotect() required but not found" >&2;}
21766 { (exit 1); exit 1; }; }
21767fi
21768
21769
John Criswellb13092b2003-07-22 21:00:24 +000021770
John Criswellcb7a1eb2003-11-17 19:46:02 +000021771
21772
21773 ac_ext=c
21774ac_cpp='$CPP $CPPFLAGS'
21775ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21776ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21777ac_compiler_gnu=$ac_cv_c_compiler_gnu
21778
Brian Gaekef91a15c2003-11-18 06:20:41 +000021779 oldcflags="$CFLAGS"
21780 CFLAGS="$CFLAGS -Wl,-R."
John Criswellcb7a1eb2003-11-17 19:46:02 +000021781 cat >conftest.$ac_ext <<_ACEOF
Brian Gaekef91a15c2003-11-18 06:20:41 +000021782int main() { return 0; }
John Criswellcb7a1eb2003-11-17 19:46:02 +000021783_ACEOF
21784rm -f conftest.$ac_objext conftest$ac_exeext
21785if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21786 (eval $ac_link) 2>&5
21787 ac_status=$?
21788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21789 (exit $ac_status); } &&
21790 { ac_try='test -s conftest$ac_exeext'
21791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21792 (eval $ac_try) 2>&5
21793 ac_status=$?
21794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21795 (exit $ac_status); }; }; then
21796 ac_cv_link_use_r=yes
21797else
21798 echo "$as_me: failed program was:" >&5
21799sed 's/^/| /' conftest.$ac_ext >&5
21800
Brian Gaekef91a15c2003-11-18 06:20:41 +000021801ac_cv_link_use_r=no
John Criswellcb7a1eb2003-11-17 19:46:02 +000021802fi
21803rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Brian Gaekef91a15c2003-11-18 06:20:41 +000021804 CFLAGS="$oldcflags"
John Criswellcb7a1eb2003-11-17 19:46:02 +000021805 ac_ext=c
21806ac_cpp='$CPP $CPPFLAGS'
21807ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21808ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21809ac_compiler_gnu=$ac_cv_c_compiler_gnu
21810
Brian Gaekef91a15c2003-11-18 06:20:41 +000021811 if test "$ac_cv_link_use_r" = yes
John Criswellcb7a1eb2003-11-17 19:46:02 +000021812 then
Brian Gaekef91a15c2003-11-18 06:20:41 +000021813
21814cat >>confdefs.h <<\_ACEOF
John Criswellcb7a1eb2003-11-17 19:46:02 +000021815#define HAVE_LINK_R 1
21816_ACEOF
21817
21818 fi
21819
21820
John Criswell7a73b802003-06-30 21:59:07 +000021821# Check whether --enable-optimized or --disable-optimized was given.
21822if test "${enable_optimized+set}" = set; then
21823 enableval="$enable_optimized"
John Criswell7a73b802003-06-30 21:59:07 +000021824
21825else
John Criswellb13092b2003-07-22 21:00:24 +000021826 enableval=no
John Criswell7a73b802003-06-30 21:59:07 +000021827fi;
John Criswellb13092b2003-07-22 21:00:24 +000021828if test ${enableval} = "no"
21829then
21830 ENABLE_OPTIMIZED=
21831
21832else
21833 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
21834
21835fi
21836
John Criswell55126592003-10-07 21:57:39 +000021837
21838
John Criswell55126592003-10-07 21:57:39 +000021839
Brian Gaekee773b862004-04-16 17:13:44 +000021840 # Check whether --enable-spec95 or --disable-spec95 was given.
John Criswellcf2e9f72004-02-10 22:36:35 +000021841if test "${enable_spec95+set}" = set; then
21842 enableval="$enable_spec95"
Brian Gaekee773b862004-04-16 17:13:44 +000021843 checkresult=$enableval
John Criswellcf2e9f72004-02-10 22:36:35 +000021844else
Brian Gaekee773b862004-04-16 17:13:44 +000021845 checkresult=auto
John Criswellcf2e9f72004-02-10 22:36:35 +000021846fi;
Brian Gaekee773b862004-04-16 17:13:44 +000021847echo "$as_me:$LINENO: checking for spec95 benchmark sources" >&5
21848echo $ECHO_N "checking for spec95 benchmark sources... $ECHO_C" >&6
21849case "$checkresult" in
21850auto|yes)
21851 defaultdir=/home/vadve/shared/benchmarks/spec95/benchspec
21852 if test -d "$defaultdir"
John Criswellcf2e9f72004-02-10 22:36:35 +000021853 then
Brian Gaekee773b862004-04-16 17:13:44 +000021854 SPEC95_ROOT=$defaultdir
John Criswellcf2e9f72004-02-10 22:36:35 +000021855
21856 USE_SPEC95=USE_SPEC95=1
21857
Brian Gaekee773b862004-04-16 17:13:44 +000021858 checkresult="yes, found in $defaultdir"
21859 else
21860 checkresult=no
21861 fi
21862 ;;
21863no)
John Criswellcf2e9f72004-02-10 22:36:35 +000021864
21865
Brian Gaekee773b862004-04-16 17:13:44 +000021866 checkresult=no
21867 ;;
21868*) if test -d "$checkresult"
21869 then
21870 SPEC95_ROOT="$checkresult"
21871
21872 USE_SPEC95=USE_SPEC95=1
21873
21874 checkresult="yes, in $checkresult"
21875 else
21876
21877
21878 checkresult="no, not found in $checkresult"
21879 fi
21880 ;;
21881esac
21882echo "$as_me:$LINENO: result: $checkresult" >&5
21883echo "${ECHO_T}$checkresult" >&6
21884
21885
21886
21887 # Check whether --enable-spec2000 or --disable-spec2000 was given.
21888if test "${enable_spec2000+set}" = set; then
21889 enableval="$enable_spec2000"
21890 checkresult=$enableval
John Criswellcf2e9f72004-02-10 22:36:35 +000021891else
Brian Gaekee773b862004-04-16 17:13:44 +000021892 checkresult=auto
21893fi;
21894echo "$as_me:$LINENO: checking for spec2000 benchmark sources" >&5
21895echo $ECHO_N "checking for spec2000 benchmark sources... $ECHO_C" >&6
21896case "$checkresult" in
21897auto|yes)
21898 defaultdir=/home/vadve/shared/benchmarks/speccpu2000/benchspec
21899 if test -d "$defaultdir"
John Criswellcf2e9f72004-02-10 22:36:35 +000021900 then
Brian Gaekee773b862004-04-16 17:13:44 +000021901 SPEC2000_ROOT=$defaultdir
John Criswellcf2e9f72004-02-10 22:36:35 +000021902
Brian Gaekee773b862004-04-16 17:13:44 +000021903 USE_SPEC2000=USE_SPEC2000=1
John Criswellcf2e9f72004-02-10 22:36:35 +000021904
Brian Gaekee773b862004-04-16 17:13:44 +000021905 checkresult="yes, found in $defaultdir"
21906 else
21907 checkresult=no
21908 fi
21909 ;;
21910no)
John Criswellcf2e9f72004-02-10 22:36:35 +000021911
John Criswellcf2e9f72004-02-10 22:36:35 +000021912
Brian Gaekee773b862004-04-16 17:13:44 +000021913 checkresult=no
21914 ;;
21915*) if test -d "$checkresult"
21916 then
21917 SPEC2000_ROOT="$checkresult"
21918
21919 USE_SPEC2000=USE_SPEC2000=1
21920
21921 checkresult="yes, in $checkresult"
21922 else
21923
21924
21925 checkresult="no, not found in $checkresult"
21926 fi
21927 ;;
21928esac
21929echo "$as_me:$LINENO: result: $checkresult" >&5
21930echo "${ECHO_T}$checkresult" >&6
21931
21932
21933
21934 # Check whether --enable-povray or --disable-povray was given.
John Criswell0538d422004-02-20 22:30:22 +000021935if test "${enable_povray+set}" = set; then
21936 enableval="$enable_povray"
Brian Gaekee773b862004-04-16 17:13:44 +000021937 checkresult=$enableval
John Criswell0538d422004-02-20 22:30:22 +000021938else
Brian Gaekee773b862004-04-16 17:13:44 +000021939 checkresult=auto
John Criswell0538d422004-02-20 22:30:22 +000021940fi;
Brian Gaekee773b862004-04-16 17:13:44 +000021941echo "$as_me:$LINENO: checking for povray benchmark sources" >&5
21942echo $ECHO_N "checking for povray benchmark sources... $ECHO_C" >&6
21943case "$checkresult" in
Chris Lattner95f45c52004-04-14 16:32:09 +000021944auto|yes)
Brian Gaekef66cdf82004-04-13 19:03:49 +000021945 defaultdir=/home/vadve/shared/benchmarks/povray31
Brian Gaekee773b862004-04-16 17:13:44 +000021946 if test -d "$defaultdir"
John Criswell0538d422004-02-20 22:30:22 +000021947 then
Brian Gaekef66cdf82004-04-13 19:03:49 +000021948 POVRAY_ROOT=$defaultdir
John Criswell0538d422004-02-20 22:30:22 +000021949
21950 USE_POVRAY=USE_POVRAY=1
21951
Brian Gaekee773b862004-04-16 17:13:44 +000021952 checkresult="yes, found in $defaultdir"
Brian Gaekef66cdf82004-04-13 19:03:49 +000021953 else
Brian Gaekee773b862004-04-16 17:13:44 +000021954 checkresult=no
Brian Gaekef66cdf82004-04-13 19:03:49 +000021955 fi
21956 ;;
Chris Lattner95f45c52004-04-14 16:32:09 +000021957no)
John Criswell0538d422004-02-20 22:30:22 +000021958
21959
Brian Gaekee773b862004-04-16 17:13:44 +000021960 checkresult=no
Brian Gaekef66cdf82004-04-13 19:03:49 +000021961 ;;
Brian Gaekee773b862004-04-16 17:13:44 +000021962*) if test -d "$checkresult"
Brian Gaekef66cdf82004-04-13 19:03:49 +000021963 then
Brian Gaekee773b862004-04-16 17:13:44 +000021964 POVRAY_ROOT="$checkresult"
John Criswell0538d422004-02-20 22:30:22 +000021965
Brian Gaekef66cdf82004-04-13 19:03:49 +000021966 USE_POVRAY=USE_POVRAY=1
John Criswell0538d422004-02-20 22:30:22 +000021967
Brian Gaekee773b862004-04-16 17:13:44 +000021968 checkresult="yes, in $checkresult"
Brian Gaekef66cdf82004-04-13 19:03:49 +000021969 else
John Criswell0538d422004-02-20 22:30:22 +000021970
John Criswell0538d422004-02-20 22:30:22 +000021971
Brian Gaekee773b862004-04-16 17:13:44 +000021972 checkresult="no, not found in $checkresult"
Brian Gaekef66cdf82004-04-13 19:03:49 +000021973 fi
21974 ;;
21975esac
Brian Gaekee773b862004-04-16 17:13:44 +000021976echo "$as_me:$LINENO: result: $checkresult" >&5
21977echo "${ECHO_T}$checkresult" >&6
21978
21979
John Criswell0538d422004-02-20 22:30:22 +000021980
John Criswell7a73b802003-06-30 21:59:07 +000021981# Check whether --enable-precompiled_bytecode or --disable-precompiled_bytecode was given.
21982if test "${enable_precompiled_bytecode+set}" = set; then
21983 enableval="$enable_precompiled_bytecode"
John Criswell7a73b802003-06-30 21:59:07 +000021984
21985else
John Criswellb13092b2003-07-22 21:00:24 +000021986 enableval=no
John Criswell7a73b802003-06-30 21:59:07 +000021987fi;
John Criswellb13092b2003-07-22 21:00:24 +000021988if test ${enableval} = "no"
21989then
21990 UPB=
John Criswellf02dbf02003-07-22 20:07:49 +000021991
John Criswellb13092b2003-07-22 21:00:24 +000021992else
21993 UPB=USE_PRECOMPILED_BYTECODE=1
21994
21995fi
John Criswellf02dbf02003-07-22 20:07:49 +000021996
John Criswellf02dbf02003-07-22 20:07:49 +000021997# Check whether --enable-llc_diffs or --disable-llc_diffs was given.
21998if test "${enable_llc_diffs+set}" = set; then
21999 enableval="$enable_llc_diffs"
John Criswellf02dbf02003-07-22 20:07:49 +000022000
22001else
John Criswellb13092b2003-07-22 21:00:24 +000022002 enableval=yes
John Criswellf02dbf02003-07-22 20:07:49 +000022003fi;
John Criswellb13092b2003-07-22 21:00:24 +000022004if test ${enableval} = "no"
22005then
22006 DISABLE_LLC_DIFFS=DISABLE_LLC_DIFFS:=1
John Criswellf02dbf02003-07-22 20:07:49 +000022007
John Criswellb13092b2003-07-22 21:00:24 +000022008else
22009 DISABLE_LLC_DIFFS=
22010
22011fi
22012
22013# Check whether --enable-jit or --disable-jit was given.
John Criswell7a73b802003-06-30 21:59:07 +000022014if test "${enable_jit+set}" = set; then
22015 enableval="$enable_jit"
John Criswell7a73b802003-06-30 21:59:07 +000022016
22017else
John Criswellc78022e2003-07-29 19:11:58 +000022018 enableval=default
John Criswell7a73b802003-06-30 21:59:07 +000022019fi;
John Criswellb13092b2003-07-22 21:00:24 +000022020if test ${enableval} = "no"
22021then
22022 JIT=
22023
22024else
John Criswellc78022e2003-07-29 19:11:58 +000022025 case $target in
22026 *i*86*)
22027 JIT=TARGET_HAS_JIT=1
John Criswellb13092b2003-07-22 21:00:24 +000022028
John Criswellc78022e2003-07-29 19:11:58 +000022029 ;;
22030 *sparc*)
22031 JIT=TARGET_HAS_JIT=1
22032
22033 ;;
22034 *)
22035 JIT=
22036
22037 ;;
22038 esac
John Criswellb13092b2003-07-22 21:00:24 +000022039fi
John Criswell7a73b802003-06-30 21:59:07 +000022040
22041
John Criswell7a73b802003-06-30 21:59:07 +000022042# Check whether --with-llvmgccdir or --without-llvmgccdir was given.
22043if test "${with_llvmgccdir+set}" = set; then
22044 withval="$with_llvmgccdir"
22045 LLVMGCCDIR=$withval
22046
22047fi;
Brian Gaekef3b24102003-11-16 18:38:14 +000022048echo "$as_me:$LINENO: checking for llvm-gcc" >&5
22049echo $ECHO_N "checking for llvm-gcc... $ECHO_C" >&6
22050LLVM_GCC_CHECK=no
22051if test -d "$LLVMGCCDIR"
22052then
22053 if test -x "$LLVMGCCDIR/bin/gcc"
22054 then
22055 LLVM_GCC_CHECK="$LLVMGCCDIR/bin/gcc"
22056 fi
22057fi
22058llvmgccwarn=no
22059echo "$as_me:$LINENO: result: $LLVM_GCC_CHECK" >&5
22060echo "${ECHO_T}$LLVM_GCC_CHECK" >&6
22061if test "$LLVM_GCC_CHECK" = "no"
22062then
22063 llvmgccwarn=yes
22064fi
Brian Gaekef3b24102003-11-16 18:38:14 +000022065echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
22066echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
22067LLVM_GCC_SANE=no
22068if test -x "$LLVM_GCC_CHECK"
22069then
22070 cp /dev/null conftest.c
22071 "$LLVM_GCC_CHECK" -S -o - conftest.c | grep implementation > /dev/null 2>&1
22072 if test $? -eq 0
22073 then
22074 LLVM_GCC_SANE=yes
22075 fi
22076 rm conftest.c
Brian Gaeke2f50a042004-01-16 21:31:21 +000022077 llvmcc1path=`"$LLVM_GCC_CHECK" --print-prog-name=cc1`
Brian Gaeke554831c2004-01-21 19:39:29 +000022078 LLVMCC1=$llvmcc1path
Brian Gaeke2f50a042004-01-16 21:31:21 +000022079
22080 llvmcc1pluspath=`"$LLVM_GCC_CHECK" --print-prog-name=cc1plus`
Brian Gaeke554831c2004-01-21 19:39:29 +000022081 LLVMCC1PLUS=$llvmcc1pluspath
Brian Gaeke2f50a042004-01-16 21:31:21 +000022082
Brian Gaekef3b24102003-11-16 18:38:14 +000022083fi
22084echo "$as_me:$LINENO: result: $LLVM_GCC_SANE" >&5
22085echo "${ECHO_T}$LLVM_GCC_SANE" >&6
22086if test "$LLVM_GCC_SANE" = "no"
22087then
22088 llvmgccwarn=yes
22089fi
22090
John Criswellc78022e2003-07-29 19:11:58 +000022091
John Criswell7a73b802003-06-30 21:59:07 +000022092# Check whether --with-bcrepos or --without-bcrepos was given.
22093if test "${with_bcrepos+set}" = set; then
22094 withval="$with_bcrepos"
22095 BCR=$withval
22096
22097else
22098 BCR=/home/vadve/lattner/LLVMPrograms
22099
22100fi;
22101
John Criswellc78022e2003-07-29 19:11:58 +000022102
John Criswell7a73b802003-06-30 21:59:07 +000022103# Check whether --with-papi or --without-papi was given.
22104if test "${with_papi+set}" = set; then
22105 withval="$with_papi"
22106 PAPIDIR=$withval
22107
22108else
John Criswellde00db22003-08-25 16:49:54 +000022109 PAPIDIR=/home/vadve/shared/Sparc/papi-2.3.4.1
John Criswell7a73b802003-06-30 21:59:07 +000022110
22111fi;
22112
Brian Gaeke554831c2004-01-21 19:39:29 +000022113echo "$as_me:$LINENO: checking for shared library suffix" >&5
22114echo $ECHO_N "checking for shared library suffix... $ECHO_C" >&6
22115eval "SHLIBEXT=$shrext"
22116echo "$as_me:$LINENO: result: $SHLIBEXT" >&5
22117echo "${ECHO_T}$SHLIBEXT" >&6
22118SHLIBEXT=$SHLIBEXT
22119
22120
22121cat >>confdefs.h <<_ACEOF
22122#define SHLIBEXT "$SHLIBEXT"
22123_ACEOF
22124
22125
Brian Gaeke6c3fd812004-02-23 22:07:00 +000022126 ac_config_files="$ac_config_files Makefile.config include/Support/DataTypes.h include/Support/ThreadSupport.h include/Support/hash_map include/Support/hash_set include/Support/iterator"
John Criswell7a73b802003-06-30 21:59:07 +000022127cat >confcache <<\_ACEOF
22128# This file is a shell script that caches the results of configure
22129# tests run on this system so they can be shared between configure
22130# scripts and configure runs, see configure's option --config-cache.
22131# It is not useful on other systems. If it contains results you don't
22132# want to keep, you may remove or edit it.
22133#
22134# config.status only pays attention to the cache file if you give it
22135# the --recheck option to rerun configure.
22136#
John Criswell0c38eaf2003-09-10 15:17:25 +000022137# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000022138# loading this file, other *unset* `ac_cv_foo' will be assigned the
22139# following values.
22140
22141_ACEOF
22142
22143# The following way of writing the cache mishandles newlines in values,
22144# but we know of no workaround that is simple, portable, and efficient.
22145# So, don't put newlines in cache variables' values.
22146# Ultrix sh set writes to stderr and can't be redirected directly,
22147# and sets the high bit in the cache file unless we assign to the vars.
22148{
22149 (set) 2>&1 |
22150 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22151 *ac_space=\ *)
22152 # `set' does not quote correctly, so add quotes (double-quote
22153 # substitution turns \\\\ into \\, and sed turns \\ into \).
22154 sed -n \
22155 "s/'/'\\\\''/g;
22156 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22157 ;;
22158 *)
22159 # `set' quotes correctly as required by POSIX, so do not add quotes.
22160 sed -n \
22161 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22162 ;;
22163 esac;
22164} |
22165 sed '
22166 t clear
22167 : clear
22168 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22169 t end
22170 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22171 : end' >>confcache
John Criswell0c38eaf2003-09-10 15:17:25 +000022172if diff $cache_file confcache >/dev/null 2>&1; then :; else
John Criswell7a73b802003-06-30 21:59:07 +000022173 if test -w $cache_file; then
22174 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22175 cat confcache >$cache_file
22176 else
22177 echo "not updating unwritable cache $cache_file"
22178 fi
22179fi
22180rm -f confcache
22181
22182test "x$prefix" = xNONE && prefix=$ac_default_prefix
22183# Let make expand exec_prefix.
22184test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22185
22186# VPATH may cause trouble with some makes, so we remove $(srcdir),
22187# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22188# trailing colons and then remove the whole line if VPATH becomes empty
22189# (actually we leave an empty line to preserve line numbers).
22190if test "x$srcdir" = x.; then
22191 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22192s/:*\$(srcdir):*/:/;
22193s/:*\${srcdir}:*/:/;
22194s/:*@srcdir@:*/:/;
22195s/^\([^=]*=[ ]*\):*/\1/;
22196s/:*$//;
22197s/^[^=]*=[ ]*$//;
22198}'
22199fi
22200
22201DEFS=-DHAVE_CONFIG_H
22202
John Criswell0c38eaf2003-09-10 15:17:25 +000022203ac_libobjs=
22204ac_ltlibobjs=
22205for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22206 # 1. Remove the extension, and $U if already installed.
22207 ac_i=`echo "$ac_i" |
22208 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22209 # 2. Add them.
22210 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22211 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22212done
22213LIBOBJS=$ac_libobjs
22214
22215LTLIBOBJS=$ac_ltlibobjs
22216
22217
John Criswell7a73b802003-06-30 21:59:07 +000022218
22219: ${CONFIG_STATUS=./config.status}
22220ac_clean_files_save=$ac_clean_files
22221ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22222{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22223echo "$as_me: creating $CONFIG_STATUS" >&6;}
22224cat >$CONFIG_STATUS <<_ACEOF
22225#! $SHELL
22226# Generated by $as_me.
22227# Run this file to recreate the current configuration.
22228# Compiler output produced by configure, useful for debugging
22229# configure, is in config.log if it exists.
22230
22231debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000022232ac_cs_recheck=false
22233ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000022234SHELL=\${CONFIG_SHELL-$SHELL}
22235_ACEOF
22236
22237cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022238## --------------------- ##
22239## M4sh Initialization. ##
22240## --------------------- ##
22241
22242# Be Bourne compatible
22243if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22244 emulate sh
22245 NULLCMD=:
John Criswell0c38eaf2003-09-10 15:17:25 +000022246 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22247 # is contrary to our usage. Disable this feature.
22248 alias -g '${1+"$@"}'='"$@"'
John Criswell7a73b802003-06-30 21:59:07 +000022249elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22250 set -o posix
22251fi
22252
John Criswell7a73b802003-06-30 21:59:07 +000022253# Support unset when possible.
22254if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
22255 as_unset=unset
22256else
22257 as_unset=false
22258fi
22259
John Criswell0c38eaf2003-09-10 15:17:25 +000022260
22261# Work around bugs in pre-3.0 UWIN ksh.
22262$as_unset ENV MAIL MAILPATH
22263PS1='$ '
22264PS2='> '
22265PS4='+ '
22266
22267# NLS nuisances.
22268for as_var in \
22269 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22270 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22271 LC_TELEPHONE LC_TIME
22272do
22273 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
22274 eval $as_var=C; export $as_var
22275 else
22276 $as_unset $as_var
22277 fi
22278done
22279
22280# Required to use basename.
22281if expr a : '\(a\)' >/dev/null 2>&1; then
22282 as_expr=expr
22283else
22284 as_expr=false
22285fi
22286
22287if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
22288 as_basename=basename
22289else
22290 as_basename=false
22291fi
John Criswell7a73b802003-06-30 21:59:07 +000022292
22293
22294# Name of the executable.
John Criswell0c38eaf2003-09-10 15:17:25 +000022295as_me=`$as_basename "$0" ||
John Criswell7a73b802003-06-30 21:59:07 +000022296$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22297 X"$0" : 'X\(//\)$' \| \
22298 X"$0" : 'X\(/\)$' \| \
22299 . : '\(.\)' 2>/dev/null ||
22300echo X/"$0" |
22301 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22302 /^X\/\(\/\/\)$/{ s//\1/; q; }
22303 /^X\/\(\/\).*/{ s//\1/; q; }
22304 s/.*/./; q'`
22305
John Criswell0c38eaf2003-09-10 15:17:25 +000022306
John Criswell7a73b802003-06-30 21:59:07 +000022307# PATH needs CR, and LINENO needs CR and PATH.
22308# Avoid depending upon Character Ranges.
22309as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22310as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22311as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22312as_cr_digits='0123456789'
22313as_cr_alnum=$as_cr_Letters$as_cr_digits
22314
22315# The user is always right.
22316if test "${PATH_SEPARATOR+set}" != set; then
John Criswell0c38eaf2003-09-10 15:17:25 +000022317 echo "#! /bin/sh" >conf$$.sh
22318 echo "exit 0" >>conf$$.sh
22319 chmod +x conf$$.sh
22320 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000022321 PATH_SEPARATOR=';'
22322 else
22323 PATH_SEPARATOR=:
22324 fi
John Criswell0c38eaf2003-09-10 15:17:25 +000022325 rm -f conf$$.sh
John Criswell7a73b802003-06-30 21:59:07 +000022326fi
22327
22328
22329 as_lineno_1=$LINENO
22330 as_lineno_2=$LINENO
22331 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22332 test "x$as_lineno_1" != "x$as_lineno_2" &&
22333 test "x$as_lineno_3" = "x$as_lineno_2" || {
22334 # Find who we are. Look in the path if we contain no path at all
22335 # relative or not.
22336 case $0 in
22337 *[\\/]* ) as_myself=$0 ;;
22338 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22339for as_dir in $PATH
22340do
22341 IFS=$as_save_IFS
22342 test -z "$as_dir" && as_dir=.
22343 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22344done
22345
22346 ;;
22347 esac
22348 # We did not find ourselves, most probably we were run as `sh COMMAND'
22349 # in which case we are not to be found in the path.
22350 if test "x$as_myself" = x; then
22351 as_myself=$0
22352 fi
22353 if test ! -f "$as_myself"; then
22354 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22355echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22356 { (exit 1); exit 1; }; }
22357 fi
22358 case $CONFIG_SHELL in
22359 '')
22360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22361for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
22362do
22363 IFS=$as_save_IFS
22364 test -z "$as_dir" && as_dir=.
22365 for as_base in sh bash ksh sh5; do
22366 case $as_dir in
22367 /*)
22368 if ("$as_dir/$as_base" -c '
22369 as_lineno_1=$LINENO
22370 as_lineno_2=$LINENO
22371 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22372 test "x$as_lineno_1" != "x$as_lineno_2" &&
22373 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
John Criswell0c38eaf2003-09-10 15:17:25 +000022374 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
22375 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
John Criswell7a73b802003-06-30 21:59:07 +000022376 CONFIG_SHELL=$as_dir/$as_base
22377 export CONFIG_SHELL
22378 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22379 fi;;
22380 esac
22381 done
22382done
22383;;
22384 esac
22385
22386 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22387 # uniformly replaced by the line number. The first 'sed' inserts a
22388 # line-number line before each line; the second 'sed' does the real
22389 # work. The second script uses 'N' to pair each line-number line
22390 # with the numbered line, and appends trailing '-' during
22391 # substitution so that $LINENO is not a special case at line end.
22392 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22393 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
22394 sed '=' <$as_myself |
22395 sed '
22396 N
22397 s,$,-,
22398 : loop
22399 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22400 t loop
22401 s,-$,,
22402 s,^['$as_cr_digits']*\n,,
22403 ' >$as_me.lineno &&
22404 chmod +x $as_me.lineno ||
22405 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22406echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22407 { (exit 1); exit 1; }; }
22408
22409 # Don't try to exec as it changes $[0], causing all sort of problems
22410 # (the dirname of $[0] is not the place where we might find the
22411 # original and so on. Autoconf is especially sensible to this).
22412 . ./$as_me.lineno
22413 # Exit status is that of the last command.
22414 exit
22415}
22416
22417
22418case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22419 *c*,-n*) ECHO_N= ECHO_C='
22420' ECHO_T=' ' ;;
22421 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
22422 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
22423esac
22424
22425if expr a : '\(a\)' >/dev/null 2>&1; then
22426 as_expr=expr
22427else
22428 as_expr=false
22429fi
22430
22431rm -f conf$$ conf$$.exe conf$$.file
22432echo >conf$$.file
22433if ln -s conf$$.file conf$$ 2>/dev/null; then
22434 # We could just check for DJGPP; but this test a) works b) is more generic
22435 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22436 if test -f conf$$.exe; then
22437 # Don't use ln at all; we don't have any links
22438 as_ln_s='cp -p'
22439 else
22440 as_ln_s='ln -s'
22441 fi
22442elif ln conf$$.file conf$$ 2>/dev/null; then
22443 as_ln_s=ln
22444else
22445 as_ln_s='cp -p'
22446fi
22447rm -f conf$$ conf$$.exe conf$$.file
22448
John Criswell0c38eaf2003-09-10 15:17:25 +000022449if mkdir -p . 2>/dev/null; then
22450 as_mkdir_p=:
22451else
22452 as_mkdir_p=false
22453fi
22454
John Criswell7a73b802003-06-30 21:59:07 +000022455as_executable_p="test -f"
22456
22457# Sed expression to map a string onto a valid CPP name.
22458as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
22459
22460# Sed expression to map a string onto a valid variable name.
22461as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
22462
22463
22464# IFS
22465# We need space, tab and new line, in precisely that order.
22466as_nl='
22467'
22468IFS=" $as_nl"
22469
22470# CDPATH.
John Criswell0c38eaf2003-09-10 15:17:25 +000022471$as_unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000022472
22473exec 6>&1
22474
22475# Open the log real soon, to keep \$[0] and so on meaningful, and to
22476# report actual input values of CONFIG_FILES etc. instead of their
22477# values after options handling. Logging --version etc. is OK.
22478exec 5>>config.log
22479{
22480 echo
22481 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22482## Running $as_me. ##
22483_ASBOX
22484} >&5
22485cat >&5 <<_CSEOF
22486
Chris Lattner95f45c52004-04-14 16:32:09 +000022487This file was extended by [LLVM] $as_me [1.3], which was
John Criswell0c38eaf2003-09-10 15:17:25 +000022488generated by GNU Autoconf 2.57. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000022489
22490 CONFIG_FILES = $CONFIG_FILES
22491 CONFIG_HEADERS = $CONFIG_HEADERS
22492 CONFIG_LINKS = $CONFIG_LINKS
22493 CONFIG_COMMANDS = $CONFIG_COMMANDS
22494 $ $0 $@
22495
22496_CSEOF
22497echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22498echo >&5
22499_ACEOF
22500
22501# Files that config.status was made for.
22502if test -n "$ac_config_files"; then
22503 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22504fi
22505
22506if test -n "$ac_config_headers"; then
22507 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22508fi
22509
22510if test -n "$ac_config_links"; then
22511 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
22512fi
22513
22514if test -n "$ac_config_commands"; then
22515 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22516fi
22517
22518cat >>$CONFIG_STATUS <<\_ACEOF
22519
22520ac_cs_usage="\
22521\`$as_me' instantiates files from templates according to the
22522current configuration.
22523
22524Usage: $0 [OPTIONS] [FILE]...
22525
22526 -h, --help print this help, then exit
22527 -V, --version print version number, then exit
John Criswell0c38eaf2003-09-10 15:17:25 +000022528 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000022529 -d, --debug don't remove temporary files
22530 --recheck update $as_me by reconfiguring in the same conditions
22531 --file=FILE[:TEMPLATE]
22532 instantiate the configuration file FILE
22533 --header=FILE[:TEMPLATE]
22534 instantiate the configuration header FILE
22535
22536Configuration files:
22537$config_files
22538
22539Configuration headers:
22540$config_headers
22541
John Criswellc764fbc2003-09-06 15:17:13 +000022542Configuration commands:
22543$config_commands
22544
John Criswell7a73b802003-06-30 21:59:07 +000022545Report bugs to <bug-autoconf@gnu.org>."
22546_ACEOF
22547
22548cat >>$CONFIG_STATUS <<_ACEOF
22549ac_cs_version="\\
Chris Lattner95f45c52004-04-14 16:32:09 +000022550[LLVM] config.status [1.3]
John Criswell0c38eaf2003-09-10 15:17:25 +000022551configured by $0, generated by GNU Autoconf 2.57,
John Criswell7a73b802003-06-30 21:59:07 +000022552 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22553
22554Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
22555Free Software Foundation, Inc.
22556This config.status script is free software; the Free Software Foundation
22557gives unlimited permission to copy, distribute and modify it."
22558srcdir=$srcdir
22559INSTALL="$INSTALL"
22560_ACEOF
22561
22562cat >>$CONFIG_STATUS <<\_ACEOF
22563# If no file are specified by the user, then we need to provide default
22564# value. By we need to know if files were specified by the user.
22565ac_need_defaults=:
22566while test $# != 0
22567do
22568 case $1 in
22569 --*=*)
22570 ac_option=`expr "x$1" : 'x\([^=]*\)='`
22571 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000022572 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000022573 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000022574 -*)
22575 ac_option=$1
22576 ac_optarg=$2
22577 ac_shift=shift
22578 ;;
John Criswell7a73b802003-06-30 21:59:07 +000022579 *) # This is not an option, so the user has probably given explicit
22580 # arguments.
John Criswell0c38eaf2003-09-10 15:17:25 +000022581 ac_option=$1
John Criswell7a73b802003-06-30 21:59:07 +000022582 ac_need_defaults=false;;
22583 esac
22584
John Criswell0c38eaf2003-09-10 15:17:25 +000022585 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000022586 # Handling of the options.
22587_ACEOF
John Criswelld9cd1442003-09-09 20:52:17 +000022588cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000022589 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22590 ac_cs_recheck=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000022591 --version | --vers* | -V )
22592 echo "$ac_cs_version"; exit 0 ;;
22593 --he | --h)
22594 # Conflict between --help and --header
22595 { { echo "$as_me:$LINENO: error: ambiguous option: $1
22596Try \`$0 --help' for more information." >&5
22597echo "$as_me: error: ambiguous option: $1
22598Try \`$0 --help' for more information." >&2;}
22599 { (exit 1); exit 1; }; };;
22600 --help | --hel | -h )
22601 echo "$ac_cs_usage"; exit 0 ;;
22602 --debug | --d* | -d )
22603 debug=: ;;
22604 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000022605 $ac_shift
22606 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000022607 ac_need_defaults=false;;
22608 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000022609 $ac_shift
22610 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000022611 ac_need_defaults=false;;
John Criswell0c38eaf2003-09-10 15:17:25 +000022612 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22613 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22614 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000022615
22616 # This is an error.
22617 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22618Try \`$0 --help' for more information." >&5
22619echo "$as_me: error: unrecognized option: $1
22620Try \`$0 --help' for more information." >&2;}
22621 { (exit 1); exit 1; }; } ;;
22622
22623 *) ac_config_targets="$ac_config_targets $1" ;;
22624
22625 esac
22626 shift
22627done
22628
John Criswell0c38eaf2003-09-10 15:17:25 +000022629ac_configure_extra_args=
22630
22631if $ac_cs_silent; then
22632 exec 6>/dev/null
22633 ac_configure_extra_args="$ac_configure_extra_args --silent"
22634fi
22635
22636_ACEOF
22637cat >>$CONFIG_STATUS <<_ACEOF
22638if \$ac_cs_recheck; then
22639 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22640 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22641fi
22642
John Criswell7a73b802003-06-30 21:59:07 +000022643_ACEOF
22644
John Criswellc764fbc2003-09-06 15:17:13 +000022645cat >>$CONFIG_STATUS <<_ACEOF
22646#
22647# INIT-COMMANDS section.
22648#
John Criswell7a73b802003-06-30 21:59:07 +000022649
John Criswellc764fbc2003-09-06 15:17:13 +000022650${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
22651${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common`
John Criswellc764fbc2003-09-06 15:17:13 +000022652${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000022653${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000022654${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile`
22655${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
John Criswellf424d742003-10-07 21:13:47 +000022656${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvm.py`
22657${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvmdb.py`
John Criswellc764fbc2003-09-06 15:17:13 +000022658${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile`
22659${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile.programs`
22660${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.Makefile`
22661${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.report`
John Criswellc764fbc2003-09-06 15:17:13 +000022662${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.report`
22663${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.example.Makefile`
22664${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.Makefile`
22665${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.buildrepo.Makefile`
22666${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.Makefile`
22667${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.report`
22668${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.Makefile`
22669${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.report`
22670${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.typesafe.Makefile`
22671${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.gnuplot`
John Criswell878be7d2004-02-24 21:43:38 +000022672${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.vtl.Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000022673${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/Makefile`
22674${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile`
John Criswell613758d2003-09-11 18:03:50 +000022675${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile.spec`
Alkis Evlogimenos271143f2004-02-26 04:14:10 +000022676${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile.spec2000`
John Criswellcf2e9f72004-02-10 22:36:35 +000022677${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile.spec95`
John Criswellc764fbc2003-09-06 15:17:13 +000022678${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile`
22679${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile.multisrc`
Misha Brukman811ce9f2003-11-12 22:16:51 +000022680${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in`
22681${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile`
22682${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in`
22683${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile`
22684${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in`
22685${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile`
22686${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in`
22687${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile`
22688${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in`
22689${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile`
22690${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in`
22691${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile`
22692${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in`
John Criswellc764fbc2003-09-06 15:17:13 +000022693${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile`
22694${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile.singlesrc`
Alkis Evlogimenos271143f2004-02-26 04:14:10 +000022695${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000022696${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
Brian Gaekec45be042003-10-07 06:01:34 +000022697${srcdir}/autoconf/mkinstalldirs `dirname utils/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000022698${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000022699
22700_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022701
22702
22703
22704cat >>$CONFIG_STATUS <<\_ACEOF
22705for ac_config_target in $ac_config_targets
22706do
22707 case "$ac_config_target" in
22708 # Handling of arguments.
22709 "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Brian Gaeke6c3fd812004-02-23 22:07:00 +000022710 "include/Support/DataTypes.h" ) CONFIG_FILES="$CONFIG_FILES include/Support/DataTypes.h" ;;
22711 "include/Support/ThreadSupport.h" ) CONFIG_FILES="$CONFIG_FILES include/Support/ThreadSupport.h" ;;
Brian Gaeke793c5f22004-02-23 18:56:02 +000022712 "include/Support/hash_map" ) CONFIG_FILES="$CONFIG_FILES include/Support/hash_map" ;;
22713 "include/Support/hash_set" ) CONFIG_FILES="$CONFIG_FILES include/Support/hash_set" ;;
Brian Gaeke6c3fd812004-02-23 22:07:00 +000022714 "include/Support/iterator" ) CONFIG_FILES="$CONFIG_FILES include/Support/iterator" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000022715 "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
22716 "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000022717 "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000022718 "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000022719 "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
22720 "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
John Criswellf424d742003-10-07 21:13:47 +000022721 "test/QMTest/llvm.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvm.py" ;;
22722 "test/QMTest/llvmdb.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvmdb.py" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000022723 "test/Programs/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile" ;;
22724 "test/Programs/Makefile.programs" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile.programs" ;;
22725 "test/Programs/TEST.aa.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.Makefile" ;;
22726 "test/Programs/TEST.dsgraph.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.report" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000022727 "test/Programs/TEST.aa.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.report" ;;
22728 "test/Programs/TEST.example.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.example.Makefile" ;;
22729 "test/Programs/TEST.nightly.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.Makefile" ;;
22730 "test/Programs/TEST.buildrepo.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.buildrepo.Makefile" ;;
22731 "test/Programs/TEST.jit.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.Makefile" ;;
22732 "test/Programs/TEST.nightly.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.report" ;;
22733 "test/Programs/TEST.dsgraph.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.Makefile" ;;
22734 "test/Programs/TEST.jit.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.report" ;;
22735 "test/Programs/TEST.typesafe.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.typesafe.Makefile" ;;
22736 "test/Programs/TEST.dsgraph.gnuplot" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.gnuplot" ;;
John Criswell878be7d2004-02-24 21:43:38 +000022737 "test/Programs/TEST.vtl.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.vtl.Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000022738 "test/Programs/External/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/Makefile" ;;
22739 "test/Programs/External/SPEC/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile" ;;
John Criswell613758d2003-09-11 18:03:50 +000022740 "test/Programs/External/SPEC/Makefile.spec" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile.spec" ;;
Alkis Evlogimenos271143f2004-02-26 04:14:10 +000022741 "test/Programs/External/SPEC/Makefile.spec2000" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile.spec2000" ;;
John Criswellcf2e9f72004-02-10 22:36:35 +000022742 "test/Programs/External/SPEC/Makefile.spec95" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile.spec95" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000022743 "test/Programs/MultiSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile" ;;
22744 "test/Programs/MultiSource/Makefile.multisrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile.multisrc" ;;
Misha Brukman811ce9f2003-11-12 22:16:51 +000022745 "test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in" ;;
22746 "test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile" ;;
22747 "test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in" ;;
22748 "test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile" ;;
22749 "test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in" ;;
22750 "test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile" ;;
22751 "test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in" ;;
22752 "test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile" ;;
22753 "test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in" ;;
22754 "test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile" ;;
22755 "test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in" ;;
22756 "test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile" ;;
22757 "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 +000022758 "test/Programs/SingleSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile" ;;
22759 "test/Programs/SingleSource/Makefile.singlesrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile.singlesrc" ;;
Alkis Evlogimenos271143f2004-02-26 04:14:10 +000022760 "test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000022761 "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
Brian Gaekec45be042003-10-07 06:01:34 +000022762 "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000022763 "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
John Criswell7a73b802003-06-30 21:59:07 +000022764 "include/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/Config/config.h" ;;
22765 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22766echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22767 { (exit 1); exit 1; }; };;
22768 esac
22769done
22770
22771# If the user did not use the arguments to specify the items to instantiate,
22772# then the envvar interface is used. Set only those that are not.
22773# We use the long form for the default assignment because of an extremely
22774# bizarre bug on SunOS 4.1.3.
22775if $ac_need_defaults; then
22776 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22777 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000022778 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000022779fi
22780
John Criswell0c38eaf2003-09-10 15:17:25 +000022781# Have a temporary directory for convenience. Make it in the build tree
22782# simply because there is no reason to put it here, and in addition,
22783# creating and moving files from /tmp can sometimes cause problems.
John Criswell7a73b802003-06-30 21:59:07 +000022784# Create a temporary directory, and hook for its removal unless debugging.
22785$debug ||
22786{
22787 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22788 trap '{ (exit 1); exit 1; }' 1 2 13 15
22789}
22790
22791# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000022792
John Criswell7a73b802003-06-30 21:59:07 +000022793{
John Criswell0c38eaf2003-09-10 15:17:25 +000022794 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000022795 test -n "$tmp" && test -d "$tmp"
22796} ||
22797{
John Criswell0c38eaf2003-09-10 15:17:25 +000022798 tmp=./confstat$$-$RANDOM
John Criswell7a73b802003-06-30 21:59:07 +000022799 (umask 077 && mkdir $tmp)
22800} ||
22801{
John Criswell0c38eaf2003-09-10 15:17:25 +000022802 echo "$me: cannot create a temporary directory in ." >&2
John Criswell7a73b802003-06-30 21:59:07 +000022803 { (exit 1); exit 1; }
22804}
22805
22806_ACEOF
22807
22808cat >>$CONFIG_STATUS <<_ACEOF
22809
22810#
22811# CONFIG_FILES section.
22812#
22813
22814# No need to generate the scripts if there are no CONFIG_FILES.
22815# This happens for instance when ./config.status config.h
22816if test -n "\$CONFIG_FILES"; then
22817 # Protect against being on the right side of a sed subst in config.status.
22818 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22819 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22820s,@SHELL@,$SHELL,;t t
22821s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22822s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22823s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22824s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22825s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22826s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22827s,@exec_prefix@,$exec_prefix,;t t
22828s,@prefix@,$prefix,;t t
22829s,@program_transform_name@,$program_transform_name,;t t
22830s,@bindir@,$bindir,;t t
22831s,@sbindir@,$sbindir,;t t
22832s,@libexecdir@,$libexecdir,;t t
22833s,@datadir@,$datadir,;t t
22834s,@sysconfdir@,$sysconfdir,;t t
22835s,@sharedstatedir@,$sharedstatedir,;t t
22836s,@localstatedir@,$localstatedir,;t t
22837s,@libdir@,$libdir,;t t
22838s,@includedir@,$includedir,;t t
22839s,@oldincludedir@,$oldincludedir,;t t
22840s,@infodir@,$infodir,;t t
22841s,@mandir@,$mandir,;t t
22842s,@build_alias@,$build_alias,;t t
22843s,@host_alias@,$host_alias,;t t
22844s,@target_alias@,$target_alias,;t t
22845s,@DEFS@,$DEFS,;t t
22846s,@ECHO_C@,$ECHO_C,;t t
22847s,@ECHO_N@,$ECHO_N,;t t
22848s,@ECHO_T@,$ECHO_T,;t t
22849s,@LIBS@,$LIBS,;t t
John Criswell12399a12003-09-30 15:55:44 +000022850s,@subdirs@,$subdirs,;t t
John Criswell7a73b802003-06-30 21:59:07 +000022851s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22852s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22853s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22854s,@build@,$build,;t t
22855s,@build_cpu@,$build_cpu,;t t
22856s,@build_vendor@,$build_vendor,;t t
22857s,@build_os@,$build_os,;t t
22858s,@host@,$host,;t t
22859s,@host_cpu@,$host_cpu,;t t
22860s,@host_vendor@,$host_vendor,;t t
22861s,@host_os@,$host_os,;t t
22862s,@target@,$target,;t t
22863s,@target_cpu@,$target_cpu,;t t
22864s,@target_vendor@,$target_vendor,;t t
22865s,@target_os@,$target_os,;t t
22866s,@OS@,$OS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000022867s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
John Criswell76595452003-07-01 22:07:39 +000022868s,@ARCH@,$ARCH,;t t
John Criswell7a73b802003-06-30 21:59:07 +000022869s,@CXX@,$CXX,;t t
22870s,@CXXFLAGS@,$CXXFLAGS,;t t
22871s,@LDFLAGS@,$LDFLAGS,;t t
22872s,@CPPFLAGS@,$CPPFLAGS,;t t
22873s,@ac_ct_CXX@,$ac_ct_CXX,;t t
22874s,@EXEEXT@,$EXEEXT,;t t
22875s,@OBJEXT@,$OBJEXT,;t t
22876s,@CC@,$CC,;t t
22877s,@CFLAGS@,$CFLAGS,;t t
22878s,@ac_ct_CC@,$ac_ct_CC,;t t
22879s,@CPP@,$CPP,;t t
22880s,@ifGNUmake@,$ifGNUmake,;t t
22881s,@LEX@,$LEX,;t t
22882s,@LEXLIB@,$LEXLIB,;t t
22883s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
22884s,@YACC@,$YACC,;t t
Brian Gaeke12810632004-01-13 06:52:10 +000022885s,@BISON@,$BISON,;t t
John Criswell47fdd832003-07-14 16:52:07 +000022886s,@EGREP@,$EGREP,;t t
John Criswell7a73b802003-06-30 21:59:07 +000022887s,@LN_S@,$LN_S,;t t
22888s,@ECHO@,$ECHO,;t t
John Criswell47fdd832003-07-14 16:52:07 +000022889s,@AR@,$AR,;t t
22890s,@ac_ct_AR@,$ac_ct_AR,;t t
John Criswell7a73b802003-06-30 21:59:07 +000022891s,@RANLIB@,$RANLIB,;t t
22892s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22893s,@STRIP@,$STRIP,;t t
22894s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
John Criswell47fdd832003-07-14 16:52:07 +000022895s,@CXXCPP@,$CXXCPP,;t t
22896s,@F77@,$F77,;t t
22897s,@FFLAGS@,$FFLAGS,;t t
22898s,@ac_ct_F77@,$ac_ct_F77,;t t
John Criswell7a73b802003-06-30 21:59:07 +000022899s,@LIBTOOL@,$LIBTOOL,;t t
John Criswell7a73b802003-06-30 21:59:07 +000022900s,@DOT@,$DOT,;t t
22901s,@ETAGS@,$ETAGS,;t t
Brian Gaekeafa3fbf2004-01-22 21:55:02 +000022902s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
John Criswellde00db22003-08-25 16:49:54 +000022903s,@PYTHON@,$PYTHON,;t t
22904s,@QMTEST@,$QMTEST,;t t
Brian Gaekec9a410c2004-02-23 21:30:37 +000022905s,@HAVE_PTHREAD_MUTEX_LOCK@,$HAVE_PTHREAD_MUTEX_LOCK,;t t
Brian Gaeke6c3fd812004-02-23 22:07:00 +000022906s,@INCLUDE_SYS_TYPES_H@,$INCLUDE_SYS_TYPES_H,;t t
22907s,@INCLUDE_INTTYPES_H@,$INCLUDE_INTTYPES_H,;t t
John Criswell0021c312004-02-13 21:57:29 +000022908s,@ENDIAN@,$ENDIAN,;t t
Brian Gaeke793c5f22004-02-23 18:56:02 +000022909s,@HAVE_STD_EXT_HASH_MAP@,$HAVE_STD_EXT_HASH_MAP,;t t
22910s,@HAVE_GNU_EXT_HASH_MAP@,$HAVE_GNU_EXT_HASH_MAP,;t t
22911s,@HAVE_GLOBAL_HASH_MAP@,$HAVE_GLOBAL_HASH_MAP,;t t
22912s,@HAVE_STD_EXT_HASH_SET@,$HAVE_STD_EXT_HASH_SET,;t t
22913s,@HAVE_GNU_EXT_HASH_SET@,$HAVE_GNU_EXT_HASH_SET,;t t
22914s,@HAVE_GLOBAL_HASH_SET@,$HAVE_GLOBAL_HASH_SET,;t t
Brian Gaeke295d4b82004-02-23 18:16:06 +000022915s,@HAVE_STD_ITERATOR@,$HAVE_STD_ITERATOR,;t t
22916s,@HAVE_BI_ITERATOR@,$HAVE_BI_ITERATOR,;t t
22917s,@HAVE_FWD_ITERATOR@,$HAVE_FWD_ITERATOR,;t t
John Criswell7a73b802003-06-30 21:59:07 +000022918s,@ALLOCA@,$ALLOCA,;t t
John Criswell7a73b802003-06-30 21:59:07 +000022919s,@MMAP_FILE@,$MMAP_FILE,;t t
John Criswell7a73b802003-06-30 21:59:07 +000022920s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
John Criswellcf2e9f72004-02-10 22:36:35 +000022921s,@SPEC95_ROOT@,$SPEC95_ROOT,;t t
22922s,@USE_SPEC95@,$USE_SPEC95,;t t
Brian Gaekee773b862004-04-16 17:13:44 +000022923s,@SPEC2000_ROOT@,$SPEC2000_ROOT,;t t
22924s,@USE_SPEC2000@,$USE_SPEC2000,;t t
John Criswell0538d422004-02-20 22:30:22 +000022925s,@POVRAY_ROOT@,$POVRAY_ROOT,;t t
22926s,@USE_POVRAY@,$USE_POVRAY,;t t
John Criswell7a73b802003-06-30 21:59:07 +000022927s,@UPB@,$UPB,;t t
John Criswellf02dbf02003-07-22 20:07:49 +000022928s,@DISABLE_LLC_DIFFS@,$DISABLE_LLC_DIFFS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000022929s,@JIT@,$JIT,;t t
Brian Gaeke2f50a042004-01-16 21:31:21 +000022930s,@LLVMCC1@,$LLVMCC1,;t t
22931s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000022932s,@BCR@,$BCR,;t t
22933s,@PAPIDIR@,$PAPIDIR,;t t
Brian Gaeke554831c2004-01-21 19:39:29 +000022934s,@SHLIBEXT@,$SHLIBEXT,;t t
Brian Gaeke26be9c52004-01-13 06:43:16 +000022935s,@LIBOBJS@,$LIBOBJS,;t t
John Criswell0c38eaf2003-09-10 15:17:25 +000022936s,@LTLIBOBJS@,$LTLIBOBJS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000022937CEOF
22938
22939_ACEOF
22940
22941 cat >>$CONFIG_STATUS <<\_ACEOF
22942 # Split the substitutions into bite-sized pieces for seds with
22943 # small command number limits, like on Digital OSF/1 and HP-UX.
22944 ac_max_sed_lines=48
22945 ac_sed_frag=1 # Number of current file.
22946 ac_beg=1 # First line for current file.
22947 ac_end=$ac_max_sed_lines # Line after last line for current file.
22948 ac_more_lines=:
22949 ac_sed_cmds=
22950 while $ac_more_lines; do
22951 if test $ac_beg -gt 1; then
22952 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22953 else
22954 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22955 fi
22956 if test ! -s $tmp/subs.frag; then
22957 ac_more_lines=false
22958 else
22959 # The purpose of the label and of the branching condition is to
22960 # speed up the sed processing (if there are no `@' at all, there
22961 # is no need to browse any of the substitutions).
22962 # These are the two extra sed commands mentioned above.
22963 (echo ':t
22964 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22965 if test -z "$ac_sed_cmds"; then
22966 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22967 else
22968 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22969 fi
22970 ac_sed_frag=`expr $ac_sed_frag + 1`
22971 ac_beg=$ac_end
22972 ac_end=`expr $ac_end + $ac_max_sed_lines`
22973 fi
22974 done
22975 if test -z "$ac_sed_cmds"; then
22976 ac_sed_cmds=cat
22977 fi
22978fi # test -n "$CONFIG_FILES"
22979
22980_ACEOF
22981cat >>$CONFIG_STATUS <<\_ACEOF
22982for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22983 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22984 case $ac_file in
22985 - | *:- | *:-:* ) # input from stdin
22986 cat >$tmp/stdin
22987 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22988 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22989 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22990 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22991 * ) ac_file_in=$ac_file.in ;;
22992 esac
22993
22994 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22995 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22996$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22997 X"$ac_file" : 'X\(//\)[^/]' \| \
22998 X"$ac_file" : 'X\(//\)$' \| \
22999 X"$ac_file" : 'X\(/\)' \| \
23000 . : '\(.\)' 2>/dev/null ||
23001echo X"$ac_file" |
23002 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23003 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23004 /^X\(\/\/\)$/{ s//\1/; q; }
23005 /^X\(\/\).*/{ s//\1/; q; }
23006 s/.*/./; q'`
John Criswell0c38eaf2003-09-10 15:17:25 +000023007 { if $as_mkdir_p; then
23008 mkdir -p "$ac_dir"
23009 else
23010 as_dir="$ac_dir"
23011 as_dirs=
23012 while test ! -d "$as_dir"; do
23013 as_dirs="$as_dir $as_dirs"
23014 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23015$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23016 X"$as_dir" : 'X\(//\)[^/]' \| \
23017 X"$as_dir" : 'X\(//\)$' \| \
23018 X"$as_dir" : 'X\(/\)' \| \
23019 . : '\(.\)' 2>/dev/null ||
23020echo X"$as_dir" |
23021 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23022 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23023 /^X\(\/\/\)$/{ s//\1/; q; }
23024 /^X\(\/\).*/{ s//\1/; q; }
23025 s/.*/./; q'`
23026 done
23027 test ! -n "$as_dirs" || mkdir $as_dirs
23028 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23029echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23030 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000023031
23032 ac_builddir=.
23033
23034if test "$ac_dir" != .; then
23035 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23036 # A "../" for each directory in $ac_dir_suffix.
23037 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23038else
23039 ac_dir_suffix= ac_top_builddir=
23040fi
23041
23042case $srcdir in
23043 .) # No --srcdir option. We are building in place.
23044 ac_srcdir=.
23045 if test -z "$ac_top_builddir"; then
23046 ac_top_srcdir=.
23047 else
23048 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23049 fi ;;
23050 [\\/]* | ?:[\\/]* ) # Absolute path.
23051 ac_srcdir=$srcdir$ac_dir_suffix;
23052 ac_top_srcdir=$srcdir ;;
23053 *) # Relative path.
23054 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23055 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23056esac
23057# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
23058# absolute.
23059ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
John Criswell0c38eaf2003-09-10 15:17:25 +000023060ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
John Criswell7a73b802003-06-30 21:59:07 +000023061ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
23062ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
23063
23064
23065 case $INSTALL in
23066 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23067 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
23068 esac
23069
23070 if test x"$ac_file" != x-; then
23071 { echo "$as_me:$LINENO: creating $ac_file" >&5
23072echo "$as_me: creating $ac_file" >&6;}
23073 rm -f "$ac_file"
23074 fi
23075 # Let's still pretend it is `configure' which instantiates (i.e., don't
23076 # use $as_me), people would be surprised to read:
23077 # /* config.h. Generated by config.status. */
23078 if test x"$ac_file" = x-; then
23079 configure_input=
23080 else
23081 configure_input="$ac_file. "
23082 fi
23083 configure_input=$configure_input"Generated from `echo $ac_file_in |
23084 sed 's,.*/,,'` by configure."
23085
23086 # First look for the input files in the build tree, otherwise in the
23087 # src tree.
23088 ac_file_inputs=`IFS=:
23089 for f in $ac_file_in; do
23090 case $f in
23091 -) echo $tmp/stdin ;;
23092 [\\/$]*)
23093 # Absolute (can't be DOS-style, as IFS=:)
23094 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23095echo "$as_me: error: cannot find input file: $f" >&2;}
23096 { (exit 1); exit 1; }; }
23097 echo $f;;
23098 *) # Relative
23099 if test -f "$f"; then
23100 # Build tree
23101 echo $f
23102 elif test -f "$srcdir/$f"; then
23103 # Source tree
23104 echo $srcdir/$f
23105 else
23106 # /dev/null tree
23107 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23108echo "$as_me: error: cannot find input file: $f" >&2;}
23109 { (exit 1); exit 1; }; }
23110 fi;;
23111 esac
23112 done` || { (exit 1); exit 1; }
23113_ACEOF
23114cat >>$CONFIG_STATUS <<_ACEOF
23115 sed "$ac_vpsub
23116$extrasub
23117_ACEOF
23118cat >>$CONFIG_STATUS <<\_ACEOF
23119:t
23120/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23121s,@configure_input@,$configure_input,;t t
23122s,@srcdir@,$ac_srcdir,;t t
23123s,@abs_srcdir@,$ac_abs_srcdir,;t t
23124s,@top_srcdir@,$ac_top_srcdir,;t t
23125s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
23126s,@builddir@,$ac_builddir,;t t
23127s,@abs_builddir@,$ac_abs_builddir,;t t
23128s,@top_builddir@,$ac_top_builddir,;t t
23129s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
23130s,@INSTALL@,$ac_INSTALL,;t t
23131" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23132 rm -f $tmp/stdin
23133 if test x"$ac_file" != x-; then
23134 mv $tmp/out $ac_file
23135 else
23136 cat $tmp/out
23137 rm -f $tmp/out
23138 fi
23139
23140done
23141_ACEOF
23142cat >>$CONFIG_STATUS <<\_ACEOF
23143
23144#
23145# CONFIG_HEADER section.
23146#
23147
23148# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
23149# NAME is the cpp macro being defined and VALUE is the value it is being given.
23150#
23151# ac_d sets the value in "#define NAME VALUE" lines.
23152ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
23153ac_dB='[ ].*$,\1#\2'
23154ac_dC=' '
23155ac_dD=',;t'
23156# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23157ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23158ac_uB='$,\1#\2define\3'
23159ac_uC=' '
23160ac_uD=',;t'
23161
23162for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
23163 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23164 case $ac_file in
23165 - | *:- | *:-:* ) # input from stdin
23166 cat >$tmp/stdin
23167 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23168 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23169 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23170 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23171 * ) ac_file_in=$ac_file.in ;;
23172 esac
23173
23174 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
23175echo "$as_me: creating $ac_file" >&6;}
23176
23177 # First look for the input files in the build tree, otherwise in the
23178 # src tree.
23179 ac_file_inputs=`IFS=:
23180 for f in $ac_file_in; do
23181 case $f in
23182 -) echo $tmp/stdin ;;
23183 [\\/$]*)
23184 # Absolute (can't be DOS-style, as IFS=:)
23185 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23186echo "$as_me: error: cannot find input file: $f" >&2;}
23187 { (exit 1); exit 1; }; }
23188 echo $f;;
23189 *) # Relative
23190 if test -f "$f"; then
23191 # Build tree
23192 echo $f
23193 elif test -f "$srcdir/$f"; then
23194 # Source tree
23195 echo $srcdir/$f
23196 else
23197 # /dev/null tree
23198 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23199echo "$as_me: error: cannot find input file: $f" >&2;}
23200 { (exit 1); exit 1; }; }
23201 fi;;
23202 esac
23203 done` || { (exit 1); exit 1; }
23204 # Remove the trailing spaces.
23205 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
23206
23207_ACEOF
23208
23209# Transform confdefs.h into two sed scripts, `conftest.defines' and
23210# `conftest.undefs', that substitutes the proper values into
23211# config.h.in to produce config.h. The first handles `#define'
23212# templates, and the second `#undef' templates.
23213# And first: Protect against being on the right side of a sed subst in
23214# config.status. Protect against being in an unquoted here document
23215# in config.status.
23216rm -f conftest.defines conftest.undefs
23217# Using a here document instead of a string reduces the quoting nightmare.
23218# Putting comments in sed scripts is not portable.
23219#
23220# `end' is used to avoid that the second main sed command (meant for
23221# 0-ary CPP macros) applies to n-ary macro definitions.
23222# See the Autoconf documentation for `clear'.
23223cat >confdef2sed.sed <<\_ACEOF
23224s/[\\&,]/\\&/g
23225s,[\\$`],\\&,g
23226t clear
23227: clear
23228s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
23229t end
23230s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
23231: end
23232_ACEOF
23233# If some macros were called several times there might be several times
23234# the same #defines, which is useless. Nevertheless, we may not want to
23235# sort them, since we want the *last* AC-DEFINE to be honored.
23236uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
23237sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
23238rm -f confdef2sed.sed
23239
23240# This sed command replaces #undef with comments. This is necessary, for
23241# example, in the case of _POSIX_SOURCE, which is predefined and required
23242# on some systems where configure will not decide to define it.
23243cat >>conftest.undefs <<\_ACEOF
23244s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
23245_ACEOF
23246
23247# Break up conftest.defines because some shells have a limit on the size
23248# of here documents, and old seds have small limits too (100 cmds).
23249echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
John Criswell0c38eaf2003-09-10 15:17:25 +000023250echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000023251echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
23252echo ' :' >>$CONFIG_STATUS
23253rm -f conftest.tail
23254while grep . conftest.defines >/dev/null
23255do
23256 # Write a limited-size here document to $tmp/defines.sed.
23257 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
23258 # Speed up: don't consider the non `#define' lines.
23259 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
23260 # Work around the forget-to-reset-the-flag bug.
23261 echo 't clr' >>$CONFIG_STATUS
23262 echo ': clr' >>$CONFIG_STATUS
23263 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
23264 echo 'CEOF
23265 sed -f $tmp/defines.sed $tmp/in >$tmp/out
23266 rm -f $tmp/in
23267 mv $tmp/out $tmp/in
23268' >>$CONFIG_STATUS
23269 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
23270 rm -f conftest.defines
23271 mv conftest.tail conftest.defines
23272done
23273rm -f conftest.defines
John Criswell0c38eaf2003-09-10 15:17:25 +000023274echo ' fi # grep' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000023275echo >>$CONFIG_STATUS
23276
23277# Break up conftest.undefs because some shells have a limit on the size
23278# of here documents, and old seds have small limits too (100 cmds).
23279echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
23280rm -f conftest.tail
23281while grep . conftest.undefs >/dev/null
23282do
23283 # Write a limited-size here document to $tmp/undefs.sed.
23284 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
23285 # Speed up: don't consider the non `#undef'
23286 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
23287 # Work around the forget-to-reset-the-flag bug.
23288 echo 't clr' >>$CONFIG_STATUS
23289 echo ': clr' >>$CONFIG_STATUS
23290 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
23291 echo 'CEOF
23292 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
23293 rm -f $tmp/in
23294 mv $tmp/out $tmp/in
23295' >>$CONFIG_STATUS
23296 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
23297 rm -f conftest.undefs
23298 mv conftest.tail conftest.undefs
23299done
23300rm -f conftest.undefs
23301
23302cat >>$CONFIG_STATUS <<\_ACEOF
23303 # Let's still pretend it is `configure' which instantiates (i.e., don't
23304 # use $as_me), people would be surprised to read:
23305 # /* config.h. Generated by config.status. */
23306 if test x"$ac_file" = x-; then
23307 echo "/* Generated by configure. */" >$tmp/config.h
23308 else
23309 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
23310 fi
23311 cat $tmp/in >>$tmp/config.h
23312 rm -f $tmp/in
23313 if test x"$ac_file" != x-; then
John Criswell0c38eaf2003-09-10 15:17:25 +000023314 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000023315 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23316echo "$as_me: $ac_file is unchanged" >&6;}
23317 else
23318 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23319$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23320 X"$ac_file" : 'X\(//\)[^/]' \| \
23321 X"$ac_file" : 'X\(//\)$' \| \
23322 X"$ac_file" : 'X\(/\)' \| \
23323 . : '\(.\)' 2>/dev/null ||
23324echo X"$ac_file" |
23325 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23326 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23327 /^X\(\/\/\)$/{ s//\1/; q; }
23328 /^X\(\/\).*/{ s//\1/; q; }
23329 s/.*/./; q'`
John Criswell0c38eaf2003-09-10 15:17:25 +000023330 { if $as_mkdir_p; then
23331 mkdir -p "$ac_dir"
23332 else
23333 as_dir="$ac_dir"
23334 as_dirs=
23335 while test ! -d "$as_dir"; do
23336 as_dirs="$as_dir $as_dirs"
23337 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23338$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23339 X"$as_dir" : 'X\(//\)[^/]' \| \
23340 X"$as_dir" : 'X\(//\)$' \| \
23341 X"$as_dir" : 'X\(/\)' \| \
23342 . : '\(.\)' 2>/dev/null ||
23343echo X"$as_dir" |
23344 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23345 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23346 /^X\(\/\/\)$/{ s//\1/; q; }
23347 /^X\(\/\).*/{ s//\1/; q; }
23348 s/.*/./; q'`
23349 done
23350 test ! -n "$as_dirs" || mkdir $as_dirs
23351 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23352echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23353 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000023354
23355 rm -f $ac_file
23356 mv $tmp/config.h $ac_file
23357 fi
23358 else
23359 cat $tmp/config.h
23360 rm -f $tmp/config.h
23361 fi
23362done
23363_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000023364cat >>$CONFIG_STATUS <<\_ACEOF
23365
23366#
23367# CONFIG_COMMANDS section.
23368#
23369for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
23370 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
23371 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
23372 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
23373$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23374 X"$ac_dest" : 'X\(//\)[^/]' \| \
23375 X"$ac_dest" : 'X\(//\)$' \| \
23376 X"$ac_dest" : 'X\(/\)' \| \
23377 . : '\(.\)' 2>/dev/null ||
23378echo X"$ac_dest" |
23379 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23380 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23381 /^X\(\/\/\)$/{ s//\1/; q; }
23382 /^X\(\/\).*/{ s//\1/; q; }
23383 s/.*/./; q'`
23384 ac_builddir=.
23385
23386if test "$ac_dir" != .; then
23387 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23388 # A "../" for each directory in $ac_dir_suffix.
23389 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23390else
23391 ac_dir_suffix= ac_top_builddir=
23392fi
23393
23394case $srcdir in
23395 .) # No --srcdir option. We are building in place.
23396 ac_srcdir=.
23397 if test -z "$ac_top_builddir"; then
23398 ac_top_srcdir=.
23399 else
23400 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23401 fi ;;
23402 [\\/]* | ?:[\\/]* ) # Absolute path.
23403 ac_srcdir=$srcdir$ac_dir_suffix;
23404 ac_top_srcdir=$srcdir ;;
23405 *) # Relative path.
23406 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23407 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23408esac
23409# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
23410# absolute.
23411ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
John Criswell0c38eaf2003-09-10 15:17:25 +000023412ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
John Criswellc764fbc2003-09-06 15:17:13 +000023413ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
23414ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
23415
23416
23417 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
23418echo "$as_me: executing $ac_dest commands" >&6;}
23419 case $ac_dest in
23420 Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
23421 Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023422 lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023423 runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023424 test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
23425 test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
John Criswellf424d742003-10-07 21:13:47 +000023426 test/QMTest/llvm.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvm.py test/QMTest/llvm.py ;;
23427 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 +000023428 test/Programs/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile test/Programs/Makefile ;;
23429 test/Programs/Makefile.programs ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile.programs test/Programs/Makefile.programs ;;
23430 test/Programs/TEST.aa.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.Makefile test/Programs/TEST.aa.Makefile ;;
23431 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 +000023432 test/Programs/TEST.aa.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.report test/Programs/TEST.aa.report ;;
23433 test/Programs/TEST.example.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.example.Makefile test/Programs/TEST.example.Makefile ;;
23434 test/Programs/TEST.nightly.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.Makefile test/Programs/TEST.nightly.Makefile ;;
23435 test/Programs/TEST.buildrepo.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.buildrepo.Makefile test/Programs/TEST.buildrepo.Makefile ;;
23436 test/Programs/TEST.jit.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.Makefile test/Programs/TEST.jit.Makefile ;;
23437 test/Programs/TEST.nightly.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.report test/Programs/TEST.nightly.report ;;
23438 test/Programs/TEST.dsgraph.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.Makefile test/Programs/TEST.dsgraph.Makefile ;;
23439 test/Programs/TEST.jit.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.report test/Programs/TEST.jit.report ;;
23440 test/Programs/TEST.typesafe.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.typesafe.Makefile test/Programs/TEST.typesafe.Makefile ;;
23441 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 +000023442 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 +000023443 test/Programs/External/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/Makefile test/Programs/External/Makefile ;;
23444 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 +000023445 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 +000023446 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 +000023447 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 +000023448 test/Programs/MultiSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile test/Programs/MultiSource/Makefile ;;
23449 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 +000023450 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 ;;
23451 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 ;;
23452 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 ;;
23453 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 ;;
23454 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 ;;
23455 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 ;;
23456 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 ;;
23457 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 ;;
23458 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 ;;
23459 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 ;;
23460 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 ;;
23461 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 ;;
23462 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 +000023463 test/Programs/SingleSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile test/Programs/SingleSource/Makefile ;;
23464 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 +000023465 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 +000023466 tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
Brian Gaekec45be042003-10-07 06:01:34 +000023467 utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023468 projects/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023469 esac
23470done
23471_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000023472
23473cat >>$CONFIG_STATUS <<\_ACEOF
23474
23475{ (exit 0); exit 0; }
23476_ACEOF
23477chmod +x $CONFIG_STATUS
23478ac_clean_files=$ac_clean_files_save
23479
23480
23481# configure is writing to config.log, and then calls config.status.
23482# config.status does its own redirection, appending to config.log.
23483# Unfortunately, on DOS this fails, as config.log is still kept open
23484# by configure, so config.status won't be able to write to it; its
23485# output is simply discarded. So we exec the FD to /dev/null,
23486# effectively closing config.log, so it can be properly (re)opened and
23487# appended to by config.status. When coming back to configure, we
23488# need to make the FD available again.
23489if test "$no_create" != yes; then
23490 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000023491 ac_config_status_args=
23492 test "$silent" = yes &&
23493 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000023494 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000023495 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000023496 exec 5>>config.log
23497 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23498 # would make configure fail if this is the last instruction.
23499 $ac_cs_success || { (exit 1); exit 1; }
23500fi
23501
John Criswell12399a12003-09-30 15:55:44 +000023502#
23503# CONFIG_SUBDIRS section.
23504#
23505if test "$no_recursion" != yes; then
23506
23507 # Remove --cache-file and --srcdir arguments so they do not pile up.
23508 ac_sub_configure_args=
23509 ac_prev=
23510 for ac_arg in $ac_configure_args; do
23511 if test -n "$ac_prev"; then
23512 ac_prev=
23513 continue
23514 fi
23515 case $ac_arg in
23516 -cache-file | --cache-file | --cache-fil | --cache-fi \
23517 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
23518 ac_prev=cache_file ;;
23519 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
23520 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
23521 | --c=*)
23522 ;;
23523 --config-cache | -C)
23524 ;;
23525 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
23526 ac_prev=srcdir ;;
23527 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
23528 ;;
23529 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
23530 ac_prev=prefix ;;
23531 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
23532 ;;
23533 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
23534 esac
23535 done
23536
23537 # Always prepend --prefix to ensure using the same prefix
23538 # in subdir configurations.
23539 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
23540
23541 ac_popdir=`pwd`
23542 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
23543
23544 # Do not complain, so a configure script can configure whichever
23545 # parts of a large source tree are present.
23546 test -d $srcdir/$ac_dir || continue
23547
23548 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
23549echo "$as_me: configuring in $ac_dir" >&6;}
23550 { if $as_mkdir_p; then
23551 mkdir -p "$ac_dir"
23552 else
23553 as_dir="$ac_dir"
23554 as_dirs=
23555 while test ! -d "$as_dir"; do
23556 as_dirs="$as_dir $as_dirs"
23557 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23558$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23559 X"$as_dir" : 'X\(//\)[^/]' \| \
23560 X"$as_dir" : 'X\(//\)$' \| \
23561 X"$as_dir" : 'X\(/\)' \| \
23562 . : '\(.\)' 2>/dev/null ||
23563echo X"$as_dir" |
23564 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23565 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23566 /^X\(\/\/\)$/{ s//\1/; q; }
23567 /^X\(\/\).*/{ s//\1/; q; }
23568 s/.*/./; q'`
23569 done
23570 test ! -n "$as_dirs" || mkdir $as_dirs
23571 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23572echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23573 { (exit 1); exit 1; }; }; }
23574
23575 ac_builddir=.
23576
23577if test "$ac_dir" != .; then
23578 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23579 # A "../" for each directory in $ac_dir_suffix.
23580 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23581else
23582 ac_dir_suffix= ac_top_builddir=
23583fi
23584
23585case $srcdir in
23586 .) # No --srcdir option. We are building in place.
23587 ac_srcdir=.
23588 if test -z "$ac_top_builddir"; then
23589 ac_top_srcdir=.
23590 else
23591 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23592 fi ;;
23593 [\\/]* | ?:[\\/]* ) # Absolute path.
23594 ac_srcdir=$srcdir$ac_dir_suffix;
23595 ac_top_srcdir=$srcdir ;;
23596 *) # Relative path.
23597 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23598 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23599esac
23600# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
23601# absolute.
23602ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
23603ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
23604ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
23605ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
23606
23607
23608 cd $ac_dir
23609
23610 # Check for guested configure; otherwise get Cygnus style configure.
23611 if test -f $ac_srcdir/configure.gnu; then
23612 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
23613 elif test -f $ac_srcdir/configure; then
23614 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
23615 elif test -f $ac_srcdir/configure.in; then
23616 ac_sub_configure=$ac_configure
23617 else
23618 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
23619echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
23620 ac_sub_configure=
23621 fi
23622
23623 # The recursion is here.
23624 if test -n "$ac_sub_configure"; then
23625 # Make the cache file name correct relative to the subdirectory.
23626 case $cache_file in
23627 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
23628 *) # Relative path.
23629 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
23630 esac
23631
23632 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
23633echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
23634 # The eval makes quoting arguments work.
23635 eval $ac_sub_configure $ac_sub_configure_args \
23636 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
23637 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
23638echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
23639 { (exit 1); exit 1; }; }
23640 fi
23641
23642 cd $ac_popdir
23643 done
23644fi
23645
Brian Gaekef3b24102003-11-16 18:38:14 +000023646
23647if test $llvmgccwarn = yes
23648then
23649 { echo "$as_me:$LINENO: WARNING: ***** llvm C/C++ front end was not found, or does not" >&5
23650echo "$as_me: WARNING: ***** llvm C/C++ front end was not found, or does not" >&2;}
23651 { echo "$as_me:$LINENO: WARNING: ***** appear to be working." >&5
23652echo "$as_me: WARNING: ***** appear to be working." >&2;}
23653 { echo "$as_me:$LINENO: WARNING: ***** " >&5
23654echo "$as_me: WARNING: ***** " >&2;}
23655 { echo "$as_me:$LINENO: WARNING: ***** Please check configure's --with-llvmgccdir option." >&5
23656echo "$as_me: WARNING: ***** Please check configure's --with-llvmgccdir option." >&2;}
23657 { echo "$as_me:$LINENO: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&5
23658echo "$as_me: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&2;}
23659 { echo "$as_me:$LINENO: WARNING: ***** but you should be able to build the llvm tools." >&5
23660echo "$as_me: WARNING: ***** but you should be able to build the llvm tools." >&2;}
23661fi
Brian Gaeke554831c2004-01-21 19:39:29 +000023662