blob: 0642678fe39e10c3a44a14158cbf4d9f2e574469 [file] [log] [blame]
John Criswell7a73b802003-06-30 21:59:07 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
John Criswell0c38eaf2003-09-10 15:17:25 +00003# Generated by GNU Autoconf 2.57 for [LLVM] [1.0].
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--'
425PACKAGE_VERSION='[1.0]'
426PACKAGE_STRING='[LLVM] [1.0]'
427PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
428
John Criswell7ec78aa2003-10-16 01:49:00 +0000429ac_subdirs_all="$ac_subdirs_all projects/sample"
John Criswell12399a12003-09-30 15:55:44 +0000430ac_subdirs_all="$ac_subdirs_all projects/reopt"
John Criswell559a6c12003-09-30 16:31:48 +0000431ac_subdirs_all="$ac_subdirs_all projects/poolalloc"
John Criswell7a73b802003-06-30 21:59:07 +0000432# Factoring default headers for most tests.
433ac_includes_default="\
434#include <stdio.h>
435#if HAVE_SYS_TYPES_H
436# include <sys/types.h>
437#endif
438#if HAVE_SYS_STAT_H
439# include <sys/stat.h>
440#endif
441#if STDC_HEADERS
442# include <stdlib.h>
443# include <stddef.h>
444#else
445# if HAVE_STDLIB_H
446# include <stdlib.h>
447# endif
448#endif
449#if HAVE_STRING_H
450# if !STDC_HEADERS && HAVE_MEMORY_H
451# include <memory.h>
452# endif
453# include <string.h>
454#endif
455#if HAVE_STRINGS_H
456# include <strings.h>
457#endif
458#if HAVE_INTTYPES_H
459# include <inttypes.h>
460#else
461# if HAVE_STDINT_H
462# include <stdint.h>
463# endif
464#endif
465#if HAVE_UNISTD_H
466# include <unistd.h>
467#endif"
468
469ac_unique_file=""Makefile.config.in""
John Criswell55126592003-10-07 21:57:39 +0000470ac_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 EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL RPWD SED RM MKDIR DATE MV DOT ETAGS PYTHON QMTEST ALLOCA LIBOBJS MMAP_FILE ENABLE_PURIFY ENABLE_OPTIMIZED SPEC_ROOT USE_SPEC UPB DISABLE_LLC_DIFFS JIT BCR PAPIDIR PURIFY LTLIBOBJS'
John Criswell0c38eaf2003-09-10 15:17:25 +0000471ac_subst_files=''
John Criswell7a73b802003-06-30 21:59:07 +0000472
473# Initialize some variables set by options.
474ac_init_help=
475ac_init_version=false
476# The variables have the same names as the options, with
477# dashes changed to underlines.
478cache_file=/dev/null
479exec_prefix=NONE
480no_create=
481no_recursion=
482prefix=NONE
483program_prefix=NONE
484program_suffix=NONE
485program_transform_name=s,x,x,
486silent=
487site=
488srcdir=
489verbose=
490x_includes=NONE
491x_libraries=NONE
492
493# Installation directory options.
494# These are left unexpanded so users can "make install exec_prefix=/foo"
495# and all the variables that are supposed to be based on exec_prefix
496# by default will actually change.
497# Use braces instead of parens because sh, perl, etc. also accept them.
498bindir='${exec_prefix}/bin'
499sbindir='${exec_prefix}/sbin'
500libexecdir='${exec_prefix}/libexec'
501datadir='${prefix}/share'
502sysconfdir='${prefix}/etc'
503sharedstatedir='${prefix}/com'
504localstatedir='${prefix}/var'
505libdir='${exec_prefix}/lib'
506includedir='${prefix}/include'
507oldincludedir='/usr/include'
508infodir='${prefix}/info'
509mandir='${prefix}/man'
510
511ac_prev=
512for ac_option
513do
514 # If the previous option needs an argument, assign it.
515 if test -n "$ac_prev"; then
516 eval "$ac_prev=\$ac_option"
517 ac_prev=
518 continue
519 fi
520
521 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
522
523 # Accept the important Cygnus configure options, so we can diagnose typos.
524
525 case $ac_option in
526
527 -bindir | --bindir | --bindi | --bind | --bin | --bi)
528 ac_prev=bindir ;;
529 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
530 bindir=$ac_optarg ;;
531
532 -build | --build | --buil | --bui | --bu)
533 ac_prev=build_alias ;;
534 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
535 build_alias=$ac_optarg ;;
536
537 -cache-file | --cache-file | --cache-fil | --cache-fi \
538 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
539 ac_prev=cache_file ;;
540 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
541 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
542 cache_file=$ac_optarg ;;
543
544 --config-cache | -C)
545 cache_file=config.cache ;;
546
547 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
548 ac_prev=datadir ;;
549 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
550 | --da=*)
551 datadir=$ac_optarg ;;
552
553 -disable-* | --disable-*)
554 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
555 # Reject names that are not valid shell variable names.
556 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
557 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
558 { (exit 1); exit 1; }; }
559 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
560 eval "enable_$ac_feature=no" ;;
561
562 -enable-* | --enable-*)
563 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
564 # Reject names that are not valid shell variable names.
565 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
566 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
567 { (exit 1); exit 1; }; }
568 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
569 case $ac_option in
570 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
571 *) ac_optarg=yes ;;
572 esac
573 eval "enable_$ac_feature='$ac_optarg'" ;;
574
575 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
576 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
577 | --exec | --exe | --ex)
578 ac_prev=exec_prefix ;;
579 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
580 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
581 | --exec=* | --exe=* | --ex=*)
582 exec_prefix=$ac_optarg ;;
583
584 -gas | --gas | --ga | --g)
585 # Obsolete; use --with-gas.
586 with_gas=yes ;;
587
588 -help | --help | --hel | --he | -h)
589 ac_init_help=long ;;
590 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
591 ac_init_help=recursive ;;
592 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
593 ac_init_help=short ;;
594
595 -host | --host | --hos | --ho)
596 ac_prev=host_alias ;;
597 -host=* | --host=* | --hos=* | --ho=*)
598 host_alias=$ac_optarg ;;
599
600 -includedir | --includedir | --includedi | --included | --include \
601 | --includ | --inclu | --incl | --inc)
602 ac_prev=includedir ;;
603 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
604 | --includ=* | --inclu=* | --incl=* | --inc=*)
605 includedir=$ac_optarg ;;
606
607 -infodir | --infodir | --infodi | --infod | --info | --inf)
608 ac_prev=infodir ;;
609 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
610 infodir=$ac_optarg ;;
611
612 -libdir | --libdir | --libdi | --libd)
613 ac_prev=libdir ;;
614 -libdir=* | --libdir=* | --libdi=* | --libd=*)
615 libdir=$ac_optarg ;;
616
617 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
618 | --libexe | --libex | --libe)
619 ac_prev=libexecdir ;;
620 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
621 | --libexe=* | --libex=* | --libe=*)
622 libexecdir=$ac_optarg ;;
623
624 -localstatedir | --localstatedir | --localstatedi | --localstated \
625 | --localstate | --localstat | --localsta | --localst \
626 | --locals | --local | --loca | --loc | --lo)
627 ac_prev=localstatedir ;;
628 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
629 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
630 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
631 localstatedir=$ac_optarg ;;
632
633 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
634 ac_prev=mandir ;;
635 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
636 mandir=$ac_optarg ;;
637
638 -nfp | --nfp | --nf)
639 # Obsolete; use --without-fp.
640 with_fp=no ;;
641
642 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
643 | --no-cr | --no-c | -n)
644 no_create=yes ;;
645
646 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
647 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
648 no_recursion=yes ;;
649
650 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
651 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
652 | --oldin | --oldi | --old | --ol | --o)
653 ac_prev=oldincludedir ;;
654 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
655 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
656 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
657 oldincludedir=$ac_optarg ;;
658
659 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
660 ac_prev=prefix ;;
661 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
662 prefix=$ac_optarg ;;
663
664 -program-prefix | --program-prefix | --program-prefi | --program-pref \
665 | --program-pre | --program-pr | --program-p)
666 ac_prev=program_prefix ;;
667 -program-prefix=* | --program-prefix=* | --program-prefi=* \
668 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
669 program_prefix=$ac_optarg ;;
670
671 -program-suffix | --program-suffix | --program-suffi | --program-suff \
672 | --program-suf | --program-su | --program-s)
673 ac_prev=program_suffix ;;
674 -program-suffix=* | --program-suffix=* | --program-suffi=* \
675 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
676 program_suffix=$ac_optarg ;;
677
678 -program-transform-name | --program-transform-name \
679 | --program-transform-nam | --program-transform-na \
680 | --program-transform-n | --program-transform- \
681 | --program-transform | --program-transfor \
682 | --program-transfo | --program-transf \
683 | --program-trans | --program-tran \
684 | --progr-tra | --program-tr | --program-t)
685 ac_prev=program_transform_name ;;
686 -program-transform-name=* | --program-transform-name=* \
687 | --program-transform-nam=* | --program-transform-na=* \
688 | --program-transform-n=* | --program-transform-=* \
689 | --program-transform=* | --program-transfor=* \
690 | --program-transfo=* | --program-transf=* \
691 | --program-trans=* | --program-tran=* \
692 | --progr-tra=* | --program-tr=* | --program-t=*)
693 program_transform_name=$ac_optarg ;;
694
695 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
696 | -silent | --silent | --silen | --sile | --sil)
697 silent=yes ;;
698
699 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
700 ac_prev=sbindir ;;
701 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
702 | --sbi=* | --sb=*)
703 sbindir=$ac_optarg ;;
704
705 -sharedstatedir | --sharedstatedir | --sharedstatedi \
706 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
707 | --sharedst | --shareds | --shared | --share | --shar \
708 | --sha | --sh)
709 ac_prev=sharedstatedir ;;
710 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
711 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
712 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
713 | --sha=* | --sh=*)
714 sharedstatedir=$ac_optarg ;;
715
716 -site | --site | --sit)
717 ac_prev=site ;;
718 -site=* | --site=* | --sit=*)
719 site=$ac_optarg ;;
720
721 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
722 ac_prev=srcdir ;;
723 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
724 srcdir=$ac_optarg ;;
725
726 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
727 | --syscon | --sysco | --sysc | --sys | --sy)
728 ac_prev=sysconfdir ;;
729 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
730 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
731 sysconfdir=$ac_optarg ;;
732
733 -target | --target | --targe | --targ | --tar | --ta | --t)
734 ac_prev=target_alias ;;
735 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
736 target_alias=$ac_optarg ;;
737
738 -v | -verbose | --verbose | --verbos | --verbo | --verb)
739 verbose=yes ;;
740
741 -version | --version | --versio | --versi | --vers | -V)
742 ac_init_version=: ;;
743
744 -with-* | --with-*)
745 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
746 # Reject names that are not valid shell variable names.
747 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
748 { echo "$as_me: error: invalid package name: $ac_package" >&2
749 { (exit 1); exit 1; }; }
750 ac_package=`echo $ac_package| sed 's/-/_/g'`
751 case $ac_option in
752 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
753 *) ac_optarg=yes ;;
754 esac
755 eval "with_$ac_package='$ac_optarg'" ;;
756
757 -without-* | --without-*)
758 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
759 # Reject names that are not valid shell variable names.
760 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
761 { echo "$as_me: error: invalid package name: $ac_package" >&2
762 { (exit 1); exit 1; }; }
763 ac_package=`echo $ac_package | sed 's/-/_/g'`
764 eval "with_$ac_package=no" ;;
765
766 --x)
767 # Obsolete; use --with-x.
768 with_x=yes ;;
769
770 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
771 | --x-incl | --x-inc | --x-in | --x-i)
772 ac_prev=x_includes ;;
773 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
774 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
775 x_includes=$ac_optarg ;;
776
777 -x-libraries | --x-libraries | --x-librarie | --x-librari \
778 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
779 ac_prev=x_libraries ;;
780 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
781 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
782 x_libraries=$ac_optarg ;;
783
784 -*) { echo "$as_me: error: unrecognized option: $ac_option
785Try \`$0 --help' for more information." >&2
786 { (exit 1); exit 1; }; }
787 ;;
788
789 *=*)
790 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
791 # Reject names that are not valid shell variable names.
792 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
793 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
794 { (exit 1); exit 1; }; }
795 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
796 eval "$ac_envvar='$ac_optarg'"
797 export $ac_envvar ;;
798
799 *)
800 # FIXME: should be removed in autoconf 3.0.
801 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
802 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
803 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
804 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
805 ;;
806
807 esac
808done
809
810if test -n "$ac_prev"; then
811 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
812 { echo "$as_me: error: missing argument to $ac_option" >&2
813 { (exit 1); exit 1; }; }
814fi
815
816# Be sure to have absolute paths.
817for ac_var in exec_prefix prefix
818do
819 eval ac_val=$`echo $ac_var`
820 case $ac_val in
821 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
822 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
823 { (exit 1); exit 1; }; };;
824 esac
825done
826
827# Be sure to have absolute paths.
828for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
829 localstatedir libdir includedir oldincludedir infodir mandir
830do
831 eval ac_val=$`echo $ac_var`
832 case $ac_val in
833 [\\/$]* | ?:[\\/]* ) ;;
834 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
835 { (exit 1); exit 1; }; };;
836 esac
837done
838
839# There might be people who depend on the old broken behavior: `$host'
840# used to hold the argument of --host etc.
841# FIXME: To remove some day.
842build=$build_alias
843host=$host_alias
844target=$target_alias
845
846# FIXME: To remove some day.
847if test "x$host_alias" != x; then
848 if test "x$build_alias" = x; then
849 cross_compiling=maybe
850 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
851 If a cross compiler is detected then cross compile mode will be used." >&2
852 elif test "x$build_alias" != "x$host_alias"; then
853 cross_compiling=yes
854 fi
855fi
856
857ac_tool_prefix=
858test -n "$host_alias" && ac_tool_prefix=$host_alias-
859
860test "$silent" = yes && exec 6>/dev/null
861
862
863# Find the source files, if location was not specified.
864if test -z "$srcdir"; then
865 ac_srcdir_defaulted=yes
866 # Try the directory containing this script, then its parent.
867 ac_confdir=`(dirname "$0") 2>/dev/null ||
868$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
869 X"$0" : 'X\(//\)[^/]' \| \
870 X"$0" : 'X\(//\)$' \| \
871 X"$0" : 'X\(/\)' \| \
872 . : '\(.\)' 2>/dev/null ||
873echo X"$0" |
874 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
875 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
876 /^X\(\/\/\)$/{ s//\1/; q; }
877 /^X\(\/\).*/{ s//\1/; q; }
878 s/.*/./; q'`
879 srcdir=$ac_confdir
880 if test ! -r $srcdir/$ac_unique_file; then
881 srcdir=..
882 fi
883else
884 ac_srcdir_defaulted=no
885fi
886if test ! -r $srcdir/$ac_unique_file; then
887 if test "$ac_srcdir_defaulted" = yes; then
888 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
889 { (exit 1); exit 1; }; }
890 else
891 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
892 { (exit 1); exit 1; }; }
893 fi
894fi
John Criswell0c38eaf2003-09-10 15:17:25 +0000895(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
896 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
897 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +0000898srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
899ac_env_build_alias_set=${build_alias+set}
900ac_env_build_alias_value=$build_alias
901ac_cv_env_build_alias_set=${build_alias+set}
902ac_cv_env_build_alias_value=$build_alias
903ac_env_host_alias_set=${host_alias+set}
904ac_env_host_alias_value=$host_alias
905ac_cv_env_host_alias_set=${host_alias+set}
906ac_cv_env_host_alias_value=$host_alias
907ac_env_target_alias_set=${target_alias+set}
908ac_env_target_alias_value=$target_alias
909ac_cv_env_target_alias_set=${target_alias+set}
910ac_cv_env_target_alias_value=$target_alias
911ac_env_CXX_set=${CXX+set}
912ac_env_CXX_value=$CXX
913ac_cv_env_CXX_set=${CXX+set}
914ac_cv_env_CXX_value=$CXX
915ac_env_CXXFLAGS_set=${CXXFLAGS+set}
916ac_env_CXXFLAGS_value=$CXXFLAGS
917ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
918ac_cv_env_CXXFLAGS_value=$CXXFLAGS
919ac_env_LDFLAGS_set=${LDFLAGS+set}
920ac_env_LDFLAGS_value=$LDFLAGS
921ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
922ac_cv_env_LDFLAGS_value=$LDFLAGS
923ac_env_CPPFLAGS_set=${CPPFLAGS+set}
924ac_env_CPPFLAGS_value=$CPPFLAGS
925ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
926ac_cv_env_CPPFLAGS_value=$CPPFLAGS
927ac_env_CC_set=${CC+set}
928ac_env_CC_value=$CC
929ac_cv_env_CC_set=${CC+set}
930ac_cv_env_CC_value=$CC
931ac_env_CFLAGS_set=${CFLAGS+set}
932ac_env_CFLAGS_value=$CFLAGS
933ac_cv_env_CFLAGS_set=${CFLAGS+set}
934ac_cv_env_CFLAGS_value=$CFLAGS
935ac_env_CPP_set=${CPP+set}
936ac_env_CPP_value=$CPP
937ac_cv_env_CPP_set=${CPP+set}
938ac_cv_env_CPP_value=$CPP
John Criswell47fdd832003-07-14 16:52:07 +0000939ac_env_CXXCPP_set=${CXXCPP+set}
940ac_env_CXXCPP_value=$CXXCPP
941ac_cv_env_CXXCPP_set=${CXXCPP+set}
942ac_cv_env_CXXCPP_value=$CXXCPP
943ac_env_F77_set=${F77+set}
944ac_env_F77_value=$F77
945ac_cv_env_F77_set=${F77+set}
946ac_cv_env_F77_value=$F77
947ac_env_FFLAGS_set=${FFLAGS+set}
948ac_env_FFLAGS_value=$FFLAGS
949ac_cv_env_FFLAGS_set=${FFLAGS+set}
950ac_cv_env_FFLAGS_value=$FFLAGS
John Criswell7a73b802003-06-30 21:59:07 +0000951
952#
953# Report the --help message.
954#
955if test "$ac_init_help" = "long"; then
956 # Omit some internal or obsolete options to make the list less imposing.
957 # This message is too long to be a string in the A/UX 3.1 sh.
958 cat <<_ACEOF
959\`configure' configures [LLVM] [1.0] to adapt to many kinds of systems.
960
961Usage: $0 [OPTION]... [VAR=VALUE]...
962
963To assign environment variables (e.g., CC, CFLAGS...), specify them as
964VAR=VALUE. See below for descriptions of some of the useful variables.
965
966Defaults for the options are specified in brackets.
967
968Configuration:
969 -h, --help display this help and exit
970 --help=short display options specific to this package
971 --help=recursive display the short help of all the included packages
972 -V, --version display version information and exit
973 -q, --quiet, --silent do not print \`checking...' messages
974 --cache-file=FILE cache test results in FILE [disabled]
975 -C, --config-cache alias for \`--cache-file=config.cache'
976 -n, --no-create do not create output files
977 --srcdir=DIR find the sources in DIR [configure dir or \`..']
978
979_ACEOF
980
981 cat <<_ACEOF
982Installation directories:
983 --prefix=PREFIX install architecture-independent files in PREFIX
984 [$ac_default_prefix]
985 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
986 [PREFIX]
987
988By default, \`make install' will install all the files in
989\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
990an installation prefix other than \`$ac_default_prefix' using \`--prefix',
991for instance \`--prefix=\$HOME'.
992
993For better control, use the options below.
994
995Fine tuning of the installation directories:
996 --bindir=DIR user executables [EPREFIX/bin]
997 --sbindir=DIR system admin executables [EPREFIX/sbin]
998 --libexecdir=DIR program executables [EPREFIX/libexec]
999 --datadir=DIR read-only architecture-independent data [PREFIX/share]
1000 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1001 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1002 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1003 --libdir=DIR object code libraries [EPREFIX/lib]
1004 --includedir=DIR C header files [PREFIX/include]
1005 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1006 --infodir=DIR info documentation [PREFIX/info]
1007 --mandir=DIR man documentation [PREFIX/man]
1008_ACEOF
1009
1010 cat <<\_ACEOF
1011
1012System types:
1013 --build=BUILD configure for building on BUILD [guessed]
1014 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1015 --target=TARGET configure for building compilers for TARGET [HOST]
1016_ACEOF
1017fi
1018
1019if test -n "$ac_init_help"; then
1020 case $ac_init_help in
1021 short | recursive ) echo "Configuration of [LLVM] [1.0]:";;
1022 esac
1023 cat <<\_ACEOF
1024
1025Optional Features:
1026 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1027 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
John Criswell47fdd832003-07-14 16:52:07 +00001028 --enable-shared[=PKGS]
1029 build shared libraries [default=yes]
1030 --enable-static[=PKGS]
1031 build static libraries [default=yes]
1032 --enable-fast-install[=PKGS]
1033 optimize for fast installation [default=yes]
John Criswell7a73b802003-06-30 21:59:07 +00001034 --disable-libtool-lock avoid locking (might break parallel builds)
1035 --enable-purify Compile with purify (default is NO)
John Criswell7a73b802003-06-30 21:59:07 +00001036 --enable-optimized Compile with optimizations enabled (default is NO)
John Criswell55126592003-10-07 21:57:39 +00001037 --enable-spec Compile SPEC 2000 benchmarks (default is NO)
John Criswell7a73b802003-06-30 21:59:07 +00001038 --enable-precompiled_bytecode
1039 Use pre-compiled bytecode (default is NO)
John Criswellf02dbf02003-07-22 20:07:49 +00001040 --enable-llc_diffs Enable LLC Diffs when testing (default is YES)
John Criswellc78022e2003-07-29 19:11:58 +00001041 --enable-jit Enable Just In Time Compiling (default is YES)
John Criswell7a73b802003-06-30 21:59:07 +00001042
1043Optional Packages:
1044 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1045 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
John Criswell47fdd832003-07-14 16:52:07 +00001046 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1047 --with-pic try to use only PIC/non-PIC objects [default=use
1048 both]
1049 --with-tags[=TAGS]
1050 include additional configurations [automatic]
John Criswell7a73b802003-06-30 21:59:07 +00001051 --with-llvmgccdir Location of LLVM GCC front-end
1052 --with-bcrepos Location of Bytecode Repository
1053 --with-papi Location of PAPI
John Criswellc78022e2003-07-29 19:11:58 +00001054 --with-purify Location of purify program
John Criswell7a73b802003-06-30 21:59:07 +00001055
1056Some influential environment variables:
1057 CXX C++ compiler command
1058 CXXFLAGS C++ compiler flags
1059 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1060 nonstandard directory <lib dir>
1061 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1062 headers in a nonstandard directory <include dir>
1063 CC C compiler command
1064 CFLAGS C compiler flags
1065 CPP C preprocessor
John Criswell47fdd832003-07-14 16:52:07 +00001066 CXXCPP C++ preprocessor
1067 F77 Fortran 77 compiler command
1068 FFLAGS Fortran 77 compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001069
1070Use these variables to override the choices made by `configure' or to help
1071it to find libraries and programs with nonstandard names/locations.
1072
1073Report bugs to <llvmbugs@cs.uiuc.edu>.
1074_ACEOF
1075fi
1076
1077if test "$ac_init_help" = "recursive"; then
1078 # If there are subdirs, report their specific --help.
1079 ac_popdir=`pwd`
1080 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1081 test -d $ac_dir || continue
1082 ac_builddir=.
1083
1084if test "$ac_dir" != .; then
1085 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1086 # A "../" for each directory in $ac_dir_suffix.
1087 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1088else
1089 ac_dir_suffix= ac_top_builddir=
1090fi
1091
1092case $srcdir in
1093 .) # No --srcdir option. We are building in place.
1094 ac_srcdir=.
1095 if test -z "$ac_top_builddir"; then
1096 ac_top_srcdir=.
1097 else
1098 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1099 fi ;;
1100 [\\/]* | ?:[\\/]* ) # Absolute path.
1101 ac_srcdir=$srcdir$ac_dir_suffix;
1102 ac_top_srcdir=$srcdir ;;
1103 *) # Relative path.
1104 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1105 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1106esac
1107# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1108# absolute.
1109ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
John Criswell0c38eaf2003-09-10 15:17:25 +00001110ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
John Criswell7a73b802003-06-30 21:59:07 +00001111ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1112ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1113
1114 cd $ac_dir
1115 # Check for guested configure; otherwise get Cygnus style configure.
1116 if test -f $ac_srcdir/configure.gnu; then
1117 echo
1118 $SHELL $ac_srcdir/configure.gnu --help=recursive
1119 elif test -f $ac_srcdir/configure; then
1120 echo
1121 $SHELL $ac_srcdir/configure --help=recursive
1122 elif test -f $ac_srcdir/configure.ac ||
1123 test -f $ac_srcdir/configure.in; then
1124 echo
1125 $ac_configure --help
1126 else
1127 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1128 fi
1129 cd $ac_popdir
1130 done
1131fi
1132
1133test -n "$ac_init_help" && exit 0
1134if $ac_init_version; then
1135 cat <<\_ACEOF
1136[LLVM] configure [1.0]
John Criswell0c38eaf2003-09-10 15:17:25 +00001137generated by GNU Autoconf 2.57
John Criswell7a73b802003-06-30 21:59:07 +00001138
1139Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1140Free Software Foundation, Inc.
1141This configure script is free software; the Free Software Foundation
1142gives unlimited permission to copy, distribute and modify it.
1143_ACEOF
1144 exit 0
1145fi
1146exec 5>config.log
1147cat >&5 <<_ACEOF
1148This file contains any messages produced by compilers while
1149running configure, to aid debugging if configure makes a mistake.
1150
1151It was created by [LLVM] $as_me [1.0], which was
John Criswell0c38eaf2003-09-10 15:17:25 +00001152generated by GNU Autoconf 2.57. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001153
1154 $ $0 $@
1155
1156_ACEOF
1157{
1158cat <<_ASUNAME
1159## --------- ##
1160## Platform. ##
1161## --------- ##
1162
1163hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1164uname -m = `(uname -m) 2>/dev/null || echo unknown`
1165uname -r = `(uname -r) 2>/dev/null || echo unknown`
1166uname -s = `(uname -s) 2>/dev/null || echo unknown`
1167uname -v = `(uname -v) 2>/dev/null || echo unknown`
1168
1169/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1170/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1171
1172/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1173/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1174/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1175hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1176/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1177/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1178/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1179
1180_ASUNAME
1181
1182as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1183for as_dir in $PATH
1184do
1185 IFS=$as_save_IFS
1186 test -z "$as_dir" && as_dir=.
1187 echo "PATH: $as_dir"
1188done
1189
1190} >&5
1191
1192cat >&5 <<_ACEOF
1193
1194
1195## ----------- ##
1196## Core tests. ##
1197## ----------- ##
1198
1199_ACEOF
1200
1201
1202# Keep a trace of the command line.
1203# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001204# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001205# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001206# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001207ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001208ac_configure_args0=
1209ac_configure_args1=
John Criswell7a73b802003-06-30 21:59:07 +00001210ac_sep=
John Criswell0c38eaf2003-09-10 15:17:25 +00001211ac_must_keep_next=false
1212for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001213do
John Criswell0c38eaf2003-09-10 15:17:25 +00001214 for ac_arg
1215 do
1216 case $ac_arg in
1217 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1218 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1219 | -silent | --silent | --silen | --sile | --sil)
1220 continue ;;
1221 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1222 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1223 esac
1224 case $ac_pass in
1225 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1226 2)
1227 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1228 if test $ac_must_keep_next = true; then
1229 ac_must_keep_next=false # Got value, back to normal.
1230 else
1231 case $ac_arg in
1232 *=* | --config-cache | -C | -disable-* | --disable-* \
1233 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1234 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1235 | -with-* | --with-* | -without-* | --without-* | --x)
1236 case "$ac_configure_args0 " in
1237 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1238 esac
1239 ;;
1240 -* ) ac_must_keep_next=true ;;
1241 esac
1242 fi
1243 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1244 # Get rid of the leading space.
1245 ac_sep=" "
1246 ;;
1247 esac
1248 done
John Criswell7a73b802003-06-30 21:59:07 +00001249done
John Criswell0c38eaf2003-09-10 15:17:25 +00001250$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1251$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 +00001252
1253# When interrupted or exit'd, cleanup temporary files, and complete
1254# config.log. We remove comments because anyway the quotes in there
1255# would cause problems or look ugly.
1256# WARNING: Be sure not to use single quotes in there, as some shells,
1257# such as our DU 5.0 friend, will then `close' the trap.
1258trap 'exit_status=$?
1259 # Save into config.log some information that might help in debugging.
1260 {
1261 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001262
John Criswell7a73b802003-06-30 21:59:07 +00001263 cat <<\_ASBOX
1264## ---------------- ##
1265## Cache variables. ##
1266## ---------------- ##
1267_ASBOX
1268 echo
1269 # The following way of writing the cache mishandles newlines in values,
1270{
1271 (set) 2>&1 |
1272 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1273 *ac_space=\ *)
1274 sed -n \
1275 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1276 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1277 ;;
1278 *)
1279 sed -n \
1280 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1281 ;;
1282 esac;
1283}
1284 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001285
1286 cat <<\_ASBOX
1287## ----------------- ##
1288## Output variables. ##
1289## ----------------- ##
1290_ASBOX
1291 echo
1292 for ac_var in $ac_subst_vars
1293 do
1294 eval ac_val=$`echo $ac_var`
1295 echo "$ac_var='"'"'$ac_val'"'"'"
1296 done | sort
1297 echo
1298
1299 if test -n "$ac_subst_files"; then
1300 cat <<\_ASBOX
1301## ------------- ##
1302## Output files. ##
1303## ------------- ##
1304_ASBOX
1305 echo
1306 for ac_var in $ac_subst_files
1307 do
1308 eval ac_val=$`echo $ac_var`
1309 echo "$ac_var='"'"'$ac_val'"'"'"
1310 done | sort
1311 echo
1312 fi
1313
John Criswell7a73b802003-06-30 21:59:07 +00001314 if test -s confdefs.h; then
1315 cat <<\_ASBOX
1316## ----------- ##
1317## confdefs.h. ##
1318## ----------- ##
1319_ASBOX
1320 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001321 sed "/^$/d" confdefs.h | sort
John Criswell7a73b802003-06-30 21:59:07 +00001322 echo
1323 fi
1324 test "$ac_signal" != 0 &&
1325 echo "$as_me: caught signal $ac_signal"
1326 echo "$as_me: exit $exit_status"
1327 } >&5
1328 rm -f core core.* *.core &&
1329 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1330 exit $exit_status
1331 ' 0
1332for ac_signal in 1 2 13 15; do
1333 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1334done
1335ac_signal=0
1336
1337# confdefs.h avoids OS command line length limits that DEFS can exceed.
1338rm -rf conftest* confdefs.h
1339# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1340echo >confdefs.h
1341
1342# Predefined preprocessor variables.
1343
1344cat >>confdefs.h <<_ACEOF
1345#define PACKAGE_NAME "$PACKAGE_NAME"
1346_ACEOF
1347
1348
1349cat >>confdefs.h <<_ACEOF
1350#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1351_ACEOF
1352
1353
1354cat >>confdefs.h <<_ACEOF
1355#define PACKAGE_VERSION "$PACKAGE_VERSION"
1356_ACEOF
1357
1358
1359cat >>confdefs.h <<_ACEOF
1360#define PACKAGE_STRING "$PACKAGE_STRING"
1361_ACEOF
1362
1363
1364cat >>confdefs.h <<_ACEOF
1365#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1366_ACEOF
1367
1368
1369# Let the site file select an alternate cache file if it wants to.
1370# Prefer explicitly selected file to automatically selected ones.
1371if test -z "$CONFIG_SITE"; then
1372 if test "x$prefix" != xNONE; then
1373 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1374 else
1375 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1376 fi
1377fi
1378for ac_site_file in $CONFIG_SITE; do
1379 if test -r "$ac_site_file"; then
1380 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1381echo "$as_me: loading site script $ac_site_file" >&6;}
1382 sed 's/^/| /' "$ac_site_file" >&5
1383 . "$ac_site_file"
1384 fi
1385done
1386
1387if test -r "$cache_file"; then
1388 # Some versions of bash will fail to source /dev/null (special
1389 # files actually), so we avoid doing that.
1390 if test -f "$cache_file"; then
1391 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1392echo "$as_me: loading cache $cache_file" >&6;}
1393 case $cache_file in
1394 [\\/]* | ?:[\\/]* ) . $cache_file;;
1395 *) . ./$cache_file;;
1396 esac
1397 fi
1398else
1399 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1400echo "$as_me: creating cache $cache_file" >&6;}
1401 >$cache_file
1402fi
1403
1404# Check that the precious variables saved in the cache have kept the same
1405# value.
1406ac_cache_corrupted=false
1407for ac_var in `(set) 2>&1 |
1408 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1409 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1410 eval ac_new_set=\$ac_env_${ac_var}_set
1411 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1412 eval ac_new_val="\$ac_env_${ac_var}_value"
1413 case $ac_old_set,$ac_new_set in
1414 set,)
1415 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1416echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1417 ac_cache_corrupted=: ;;
1418 ,set)
1419 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1420echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1421 ac_cache_corrupted=: ;;
1422 ,);;
1423 *)
1424 if test "x$ac_old_val" != "x$ac_new_val"; then
1425 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1426echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1427 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1428echo "$as_me: former value: $ac_old_val" >&2;}
1429 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1430echo "$as_me: current value: $ac_new_val" >&2;}
1431 ac_cache_corrupted=:
1432 fi;;
1433 esac
1434 # Pass precious variables to config.status.
1435 if test "$ac_new_set" = set; then
1436 case $ac_new_val in
1437 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1438 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1439 *) ac_arg=$ac_var=$ac_new_val ;;
1440 esac
1441 case " $ac_configure_args " in
1442 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1443 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1444 esac
1445 fi
1446done
1447if $ac_cache_corrupted; then
1448 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1449echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1450 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1451echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1452 { (exit 1); exit 1; }; }
1453fi
1454
1455ac_ext=c
1456ac_cpp='$CPP $CPPFLAGS'
1457ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1458ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1459ac_compiler_gnu=$ac_cv_c_compiler_gnu
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
1485
1486
John Criswell0c38eaf2003-09-10 15:17:25 +00001487
John Criswell7a73b802003-06-30 21:59:07 +00001488ac_aux_dir=
John Criswell392aaa32003-07-22 19:18:09 +00001489for ac_dir in autoconf $srcdir/autoconf; do
John Criswell7a73b802003-06-30 21:59:07 +00001490 if test -f $ac_dir/install-sh; then
1491 ac_aux_dir=$ac_dir
1492 ac_install_sh="$ac_aux_dir/install-sh -c"
1493 break
1494 elif test -f $ac_dir/install.sh; then
1495 ac_aux_dir=$ac_dir
1496 ac_install_sh="$ac_aux_dir/install.sh -c"
1497 break
1498 elif test -f $ac_dir/shtool; then
1499 ac_aux_dir=$ac_dir
1500 ac_install_sh="$ac_aux_dir/shtool install -c"
1501 break
1502 fi
1503done
1504if test -z "$ac_aux_dir"; then
John Criswell392aaa32003-07-22 19:18:09 +00001505 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1506echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001507 { (exit 1); exit 1; }; }
1508fi
1509ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1510ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1511ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1512
John Criswell392aaa32003-07-22 19:18:09 +00001513
John Criswell1b824322003-09-15 17:19:42 +00001514if test ${srcdir} != "."
John Criswell93e1c722003-09-15 17:04:06 +00001515then
John Criswell1b824322003-09-15 17:19:42 +00001516 if test -f ${srcdir}/include/Config/config.h
1517 then
1518 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
John Criswell93e1c722003-09-15 17:04:06 +00001519echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1520 { (exit 1); exit 1; }; }
John Criswell1b824322003-09-15 17:19:42 +00001521 fi
John Criswell93e1c722003-09-15 17:04:06 +00001522fi
1523
John Criswell7ec78aa2003-10-16 01:49:00 +00001524if test -d ${srcdir}/projects/sample
1525then
1526
1527
1528subdirs="$subdirs projects/sample"
1529
1530fi
1531
John Criswell12399a12003-09-30 15:55:44 +00001532if test -d ${srcdir}/projects/reopt
1533then
1534
1535
1536subdirs="$subdirs projects/reopt"
1537
1538fi
1539
John Criswell559a6c12003-09-30 16:31:48 +00001540if test -d ${srcdir}/projects/poolalloc
1541then
1542
1543
1544subdirs="$subdirs projects/poolalloc"
1545
1546fi
1547
John Criswell0c38eaf2003-09-10 15:17:25 +00001548 ac_config_headers="$ac_config_headers include/Config/config.h"
John Criswell392aaa32003-07-22 19:18:09 +00001549
John Criswell0c38eaf2003-09-10 15:17:25 +00001550 ac_config_commands="$ac_config_commands Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001551
1552
John Criswell0c38eaf2003-09-10 15:17:25 +00001553 ac_config_commands="$ac_config_commands Makefile.common"
John Criswellc764fbc2003-09-06 15:17:13 +00001554
1555
John Criswell0c38eaf2003-09-10 15:17:25 +00001556 ac_config_commands="$ac_config_commands lib/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001557
1558
John Criswell0c38eaf2003-09-10 15:17:25 +00001559 ac_config_commands="$ac_config_commands runtime/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001560
1561
John Criswell0c38eaf2003-09-10 15:17:25 +00001562 ac_config_commands="$ac_config_commands test/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/Makefile.tests"
John Criswellc764fbc2003-09-06 15:17:13 +00001566
1567
John Criswellf424d742003-10-07 21:13:47 +00001568 ac_config_commands="$ac_config_commands test/QMTest/llvm.py"
1569
1570
1571 ac_config_commands="$ac_config_commands test/QMTest/llvmdb.py"
John Criswell08acb9b2003-09-16 02:12:45 +00001572
1573
John Criswell0c38eaf2003-09-10 15:17:25 +00001574 ac_config_commands="$ac_config_commands test/Programs/Makefile"
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/Makefile.programs"
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.aa.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.dsgraph.report"
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.micro.report"
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.aa.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.example.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.nightly.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001596
1597
John Criswell0c38eaf2003-09-10 15:17:25 +00001598 ac_config_commands="$ac_config_commands test/Programs/TEST.buildrepo.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.jit.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001602
1603
John Criswell0c38eaf2003-09-10 15:17:25 +00001604 ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.report"
John Criswellc764fbc2003-09-06 15:17:13 +00001605
1606
John Criswell0c38eaf2003-09-10 15:17:25 +00001607 ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.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/TEST.jit.report"
John Criswellc764fbc2003-09-06 15:17:13 +00001611
1612
John Criswell0c38eaf2003-09-10 15:17:25 +00001613 ac_config_commands="$ac_config_commands test/Programs/TEST.typesafe.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001614
1615
John Criswell0c38eaf2003-09-10 15:17:25 +00001616 ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.gnuplot"
John Criswellc764fbc2003-09-06 15:17:13 +00001617
1618
John Criswell0c38eaf2003-09-10 15:17:25 +00001619 ac_config_commands="$ac_config_commands test/Programs/TEST.micro.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001620
1621
John Criswell0c38eaf2003-09-10 15:17:25 +00001622 ac_config_commands="$ac_config_commands test/Programs/External/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/External/SPEC/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001626
1627
John Criswell613758d2003-09-11 18:03:50 +00001628 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile.spec"
1629
1630
John Criswell0c38eaf2003-09-10 15:17:25 +00001631 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001632
1633
John Criswell0c38eaf2003-09-10 15:17:25 +00001634 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile.multisrc"
John Criswellc764fbc2003-09-06 15:17:13 +00001635
1636
Misha Brukman811ce9f2003-11-12 22:16:51 +00001637 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in"
1638
1639
1640 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile"
1641
1642
1643 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in"
1644
1645
1646 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile"
1647
1648
1649 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in"
1650
1651
1652 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile"
1653
1654
1655 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in"
1656
1657
1658 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile"
1659
1660
1661 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in"
1662
1663
1664 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile"
1665
1666
1667 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in"
1668
1669
1670 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile"
1671
1672
1673 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in"
1674
1675
John Criswell0c38eaf2003-09-10 15:17:25 +00001676 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001677
1678
John Criswell0c38eaf2003-09-10 15:17:25 +00001679 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile.singlesrc"
John Criswellc764fbc2003-09-06 15:17:13 +00001680
1681
John Criswell0c38eaf2003-09-10 15:17:25 +00001682 ac_config_commands="$ac_config_commands tools/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001683
1684
Brian Gaekec45be042003-10-07 06:01:34 +00001685 ac_config_commands="$ac_config_commands utils/Makefile"
1686
1687
John Criswell0c38eaf2003-09-10 15:17:25 +00001688 ac_config_commands="$ac_config_commands projects/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001689
1690
John Criswell0c38eaf2003-09-10 15:17:25 +00001691 ac_config_commands="$ac_config_commands projects/ModuleMaker/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001692
1693
John Criswell0c38eaf2003-09-10 15:17:25 +00001694 ac_config_commands="$ac_config_commands projects/ModuleMaker/Makefile.common"
John Criswellc764fbc2003-09-06 15:17:13 +00001695
1696
John Criswell0c38eaf2003-09-10 15:17:25 +00001697 ac_config_commands="$ac_config_commands projects/ModuleMaker/tools/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001698
1699
John Criswell0c38eaf2003-09-10 15:17:25 +00001700 ac_config_commands="$ac_config_commands projects/ModuleMaker/tools/ModuleMaker/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001701
1702
Brian Gaeke866f10c2003-11-24 02:54:57 +00001703 ac_config_commands="$ac_config_commands projects/Stacker/Makefile"
1704
1705
1706 ac_config_commands="$ac_config_commands projects/Stacker/lib/Makefile"
1707
1708
1709 ac_config_commands="$ac_config_commands projects/Stacker/lib/compiler/Makefile"
1710
1711
1712 ac_config_commands="$ac_config_commands projects/Stacker/lib/runtime/Makefile"
1713
1714
1715 ac_config_commands="$ac_config_commands projects/Stacker/tools/Makefile"
1716
1717
1718 ac_config_commands="$ac_config_commands projects/Stacker/tools/stkrc/Makefile"
1719
1720
1721 ac_config_commands="$ac_config_commands projects/Stacker/test/Makefile"
1722
1723
1724 ac_config_commands="$ac_config_commands projects/Stacker/samples/Makefile"
1725
1726
John Criswell392aaa32003-07-22 19:18:09 +00001727
1728
John Criswell7a73b802003-06-30 21:59:07 +00001729# Find a good install program. We prefer a C program (faster),
1730# so one script is as good as another. But avoid the broken or
1731# incompatible versions:
1732# SysV /etc/install, /usr/sbin/install
1733# SunOS /usr/etc/install
1734# IRIX /sbin/install
1735# AIX /bin/install
1736# AmigaOS /C/install, which installs bootblocks on floppy discs
1737# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1738# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1739# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1740# ./install, which can be erroneously created by make from ./install.sh.
1741echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1742echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1743if test -z "$INSTALL"; then
1744if test "${ac_cv_path_install+set}" = set; then
1745 echo $ECHO_N "(cached) $ECHO_C" >&6
1746else
1747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1748for as_dir in $PATH
1749do
1750 IFS=$as_save_IFS
1751 test -z "$as_dir" && as_dir=.
1752 # Account for people who put trailing slashes in PATH elements.
1753case $as_dir/ in
1754 ./ | .// | /cC/* | \
1755 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1756 /usr/ucb/* ) ;;
1757 *)
1758 # OSF1 and SCO ODT 3.0 have their own names for install.
1759 # Don't use installbsd from OSF since it installs stuff as root
1760 # by default.
1761 for ac_prog in ginstall scoinst install; do
1762 for ac_exec_ext in '' $ac_executable_extensions; do
1763 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1764 if test $ac_prog = install &&
1765 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1766 # AIX install. It has an incompatible calling convention.
1767 :
1768 elif test $ac_prog = install &&
1769 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1770 # program-specific install script used by HP pwplus--don't use.
1771 :
1772 else
1773 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1774 break 3
1775 fi
1776 fi
1777 done
1778 done
1779 ;;
1780esac
1781done
1782
1783
1784fi
1785 if test "${ac_cv_path_install+set}" = set; then
1786 INSTALL=$ac_cv_path_install
1787 else
1788 # As a last resort, use the slow shell script. We don't cache a
1789 # path for INSTALL within a source directory, because that will
1790 # break other packages using the cache if that directory is
1791 # removed, or if the path is relative.
1792 INSTALL=$ac_install_sh
1793 fi
1794fi
1795echo "$as_me:$LINENO: result: $INSTALL" >&5
1796echo "${ECHO_T}$INSTALL" >&6
1797
1798# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1799# It thinks the first close brace ends the variable substitution.
1800test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1801
1802test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1803
1804test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1805
1806
1807# Make sure we can run config.sub.
1808$ac_config_sub sun4 >/dev/null 2>&1 ||
1809 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1810echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1811 { (exit 1); exit 1; }; }
1812
1813echo "$as_me:$LINENO: checking build system type" >&5
1814echo $ECHO_N "checking build system type... $ECHO_C" >&6
1815if test "${ac_cv_build+set}" = set; then
1816 echo $ECHO_N "(cached) $ECHO_C" >&6
1817else
1818 ac_cv_build_alias=$build_alias
1819test -z "$ac_cv_build_alias" &&
1820 ac_cv_build_alias=`$ac_config_guess`
1821test -z "$ac_cv_build_alias" &&
1822 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1823echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1824 { (exit 1); exit 1; }; }
1825ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1826 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1827echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1828 { (exit 1); exit 1; }; }
1829
1830fi
1831echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1832echo "${ECHO_T}$ac_cv_build" >&6
1833build=$ac_cv_build
1834build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1835build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1836build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1837
1838
1839echo "$as_me:$LINENO: checking host system type" >&5
1840echo $ECHO_N "checking host system type... $ECHO_C" >&6
1841if test "${ac_cv_host+set}" = set; then
1842 echo $ECHO_N "(cached) $ECHO_C" >&6
1843else
1844 ac_cv_host_alias=$host_alias
1845test -z "$ac_cv_host_alias" &&
1846 ac_cv_host_alias=$ac_cv_build_alias
1847ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1848 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1849echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1850 { (exit 1); exit 1; }; }
1851
1852fi
1853echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1854echo "${ECHO_T}$ac_cv_host" >&6
1855host=$ac_cv_host
1856host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1857host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1858host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1859
1860
1861echo "$as_me:$LINENO: checking target system type" >&5
1862echo $ECHO_N "checking target system type... $ECHO_C" >&6
1863if test "${ac_cv_target+set}" = set; then
1864 echo $ECHO_N "(cached) $ECHO_C" >&6
1865else
1866 ac_cv_target_alias=$target_alias
1867test "x$ac_cv_target_alias" = "x" &&
1868 ac_cv_target_alias=$ac_cv_host_alias
1869ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1870 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1871echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1872 { (exit 1); exit 1; }; }
1873
1874fi
1875echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1876echo "${ECHO_T}$ac_cv_target" >&6
1877target=$ac_cv_target
1878target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1879target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1880target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1881
1882
1883# The aliases save the names the user supplied, while $host etc.
1884# will get canonicalized.
1885test -n "$target_alias" &&
1886 test "$program_prefix$program_suffix$program_transform_name" = \
1887 NONENONEs,x,x, &&
1888 program_prefix=${target_alias}-
1889
1890case $build in
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001891 *-*-linux*)
1892 OS=Linux
John Criswell7a73b802003-06-30 21:59:07 +00001893
Brian Gaekef3b24102003-11-16 18:38:14 +00001894 if test -d /home/vadve/lattner/local/x86/llvm-gcc
1895 then
1896 LLVMGCCDIR=/home/vadve/lattner/local/x86/llvm-gcc/
John Criswell7a73b802003-06-30 21:59:07 +00001897
Brian Gaekef3b24102003-11-16 18:38:14 +00001898 fi
John Criswell7a73b802003-06-30 21:59:07 +00001899 ;;
1900
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001901 *-*-solaris*)
1902 OS=SunOS
John Criswell7a73b802003-06-30 21:59:07 +00001903
Brian Gaekef3b24102003-11-16 18:38:14 +00001904 if test -d /home/vadve/lattner/local/sparc/llvm-gcc
1905 then
1906 LLVMGCCDIR=/home/vadve/lattner/local/sparc/llvm-gcc/
John Criswell7a73b802003-06-30 21:59:07 +00001907
Brian Gaekef3b24102003-11-16 18:38:14 +00001908 fi
John Criswell7a73b802003-06-30 21:59:07 +00001909 ;;
1910
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001911 *-*-darwin*)
1912 OS=Darwin
1913
1914 ;;
1915
John Criswell7a73b802003-06-30 21:59:07 +00001916 *) OS=Unknown
1917
1918 ;;
1919esac
1920
1921case $target in
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001922 sparc*-*-solaris*) target=sparcv9-sun-solaris2.8
John Criswell7a73b802003-06-30 21:59:07 +00001923
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001924 ;;
John Criswell7a73b802003-06-30 21:59:07 +00001925esac
1926
John Criswell76595452003-07-01 22:07:39 +00001927case $target in
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001928 i*86-*) ARCH=x86
John Criswell76595452003-07-01 22:07:39 +00001929
1930 ;;
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001931 sparc*-*) ARCH=Sparc
1932
1933 ;;
1934 powerpc*-*) ARCH=PowerPC
1935
1936 ;;
1937 *) ARCH=Unknown
John Criswell76595452003-07-01 22:07:39 +00001938
1939 ;;
1940esac
1941
John Criswell7a73b802003-06-30 21:59:07 +00001942
1943ac_ext=cc
1944ac_cpp='$CXXCPP $CPPFLAGS'
1945ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1946ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1947ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1948if test -n "$ac_tool_prefix"; then
1949 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1950 do
1951 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1952set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1953echo "$as_me:$LINENO: checking for $ac_word" >&5
1954echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1955if test "${ac_cv_prog_CXX+set}" = set; then
1956 echo $ECHO_N "(cached) $ECHO_C" >&6
1957else
1958 if test -n "$CXX"; then
1959 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1960else
1961as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1962for as_dir in $PATH
1963do
1964 IFS=$as_save_IFS
1965 test -z "$as_dir" && as_dir=.
1966 for ac_exec_ext in '' $ac_executable_extensions; do
1967 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1968 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1969 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1970 break 2
1971 fi
1972done
1973done
1974
1975fi
1976fi
1977CXX=$ac_cv_prog_CXX
1978if test -n "$CXX"; then
1979 echo "$as_me:$LINENO: result: $CXX" >&5
1980echo "${ECHO_T}$CXX" >&6
1981else
1982 echo "$as_me:$LINENO: result: no" >&5
1983echo "${ECHO_T}no" >&6
1984fi
1985
1986 test -n "$CXX" && break
1987 done
1988fi
1989if test -z "$CXX"; then
1990 ac_ct_CXX=$CXX
1991 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1992do
1993 # Extract the first word of "$ac_prog", so it can be a program name with args.
1994set dummy $ac_prog; ac_word=$2
1995echo "$as_me:$LINENO: checking for $ac_word" >&5
1996echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1997if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1998 echo $ECHO_N "(cached) $ECHO_C" >&6
1999else
2000 if test -n "$ac_ct_CXX"; then
2001 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2002else
2003as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2004for as_dir in $PATH
2005do
2006 IFS=$as_save_IFS
2007 test -z "$as_dir" && as_dir=.
2008 for ac_exec_ext in '' $ac_executable_extensions; do
2009 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2010 ac_cv_prog_ac_ct_CXX="$ac_prog"
2011 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2012 break 2
2013 fi
2014done
2015done
2016
2017fi
2018fi
2019ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2020if test -n "$ac_ct_CXX"; then
2021 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2022echo "${ECHO_T}$ac_ct_CXX" >&6
2023else
2024 echo "$as_me:$LINENO: result: no" >&5
2025echo "${ECHO_T}no" >&6
2026fi
2027
2028 test -n "$ac_ct_CXX" && break
2029done
2030test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2031
2032 CXX=$ac_ct_CXX
2033fi
2034
2035
2036# Provide some information about the compiler.
2037echo "$as_me:$LINENO:" \
2038 "checking for C++ compiler version" >&5
2039ac_compiler=`set X $ac_compile; echo $2`
2040{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2041 (eval $ac_compiler --version </dev/null >&5) 2>&5
2042 ac_status=$?
2043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2044 (exit $ac_status); }
2045{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2046 (eval $ac_compiler -v </dev/null >&5) 2>&5
2047 ac_status=$?
2048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2049 (exit $ac_status); }
2050{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2051 (eval $ac_compiler -V </dev/null >&5) 2>&5
2052 ac_status=$?
2053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2054 (exit $ac_status); }
2055
2056cat >conftest.$ac_ext <<_ACEOF
2057#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002058/* confdefs.h. */
2059_ACEOF
2060cat confdefs.h >>conftest.$ac_ext
2061cat >>conftest.$ac_ext <<_ACEOF
2062/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002063
John Criswell7a73b802003-06-30 21:59:07 +00002064int
2065main ()
2066{
2067
2068 ;
2069 return 0;
2070}
2071_ACEOF
2072ac_clean_files_save=$ac_clean_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002073ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002074# Try to create an executable without -o first, disregard a.out.
2075# It will help us diagnose broken compilers, and finding out an intuition
2076# of exeext.
2077echo "$as_me:$LINENO: checking for C++ compiler default output" >&5
2078echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6
2079ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2080if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2081 (eval $ac_link_default) 2>&5
2082 ac_status=$?
2083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2084 (exit $ac_status); }; then
2085 # Find the output, starting from the most likely. This scheme is
2086# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2087# resort.
2088
2089# Be careful to initialize this variable, since it used to be cached.
2090# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2091ac_cv_exeext=
John Criswell0c38eaf2003-09-10 15:17:25 +00002092# b.out is created by i960 compilers.
2093for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2094do
2095 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002096 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002097 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2098 ;;
2099 conftest.$ac_ext )
2100 # This is the source file.
2101 ;;
2102 [ab].out )
2103 # We found the default executable, but exeext='' is most
2104 # certainly right.
2105 break;;
2106 *.* )
2107 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2108 # FIXME: I believe we export ac_cv_exeext for Libtool,
2109 # but it would be cool to find out if it's true. Does anybody
2110 # maintain Libtool? --akim.
2111 export ac_cv_exeext
2112 break;;
2113 * )
2114 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002115 esac
2116done
2117else
2118 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002119sed 's/^/| /' conftest.$ac_ext >&5
2120
2121{ { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2122See \`config.log' for more details." >&5
2123echo "$as_me: error: C++ compiler cannot create executables
2124See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002125 { (exit 77); exit 77; }; }
2126fi
2127
2128ac_exeext=$ac_cv_exeext
2129echo "$as_me:$LINENO: result: $ac_file" >&5
2130echo "${ECHO_T}$ac_file" >&6
2131
2132# Check the compiler produces executables we can run. If not, either
2133# the compiler is broken, or we cross compile.
2134echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2135echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2136# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2137# If not cross compiling, check that we can run a simple program.
2138if test "$cross_compiling" != yes; then
2139 if { ac_try='./$ac_file'
2140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2141 (eval $ac_try) 2>&5
2142 ac_status=$?
2143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2144 (exit $ac_status); }; }; then
2145 cross_compiling=no
2146 else
2147 if test "$cross_compiling" = maybe; then
2148 cross_compiling=yes
2149 else
2150 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002151If you meant to cross compile, use \`--host'.
2152See \`config.log' for more details." >&5
John Criswell7a73b802003-06-30 21:59:07 +00002153echo "$as_me: error: cannot run C++ compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002154If you meant to cross compile, use \`--host'.
2155See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002156 { (exit 1); exit 1; }; }
2157 fi
2158 fi
2159fi
2160echo "$as_me:$LINENO: result: yes" >&5
2161echo "${ECHO_T}yes" >&6
2162
John Criswell0c38eaf2003-09-10 15:17:25 +00002163rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002164ac_clean_files=$ac_clean_files_save
2165# Check the compiler produces executables we can run. If not, either
2166# the compiler is broken, or we cross compile.
2167echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2168echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2169echo "$as_me:$LINENO: result: $cross_compiling" >&5
2170echo "${ECHO_T}$cross_compiling" >&6
2171
2172echo "$as_me:$LINENO: checking for suffix of executables" >&5
2173echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2174if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2175 (eval $ac_link) 2>&5
2176 ac_status=$?
2177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2178 (exit $ac_status); }; then
2179 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2180# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2181# work properly (i.e., refer to `conftest.exe'), while it won't with
2182# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002183for ac_file in conftest.exe conftest conftest.*; do
2184 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002185 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002186 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002187 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2188 export ac_cv_exeext
2189 break;;
2190 * ) break;;
2191 esac
2192done
2193else
John Criswell0c38eaf2003-09-10 15:17:25 +00002194 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2195See \`config.log' for more details." >&5
2196echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2197See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002198 { (exit 1); exit 1; }; }
2199fi
2200
2201rm -f conftest$ac_cv_exeext
2202echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2203echo "${ECHO_T}$ac_cv_exeext" >&6
2204
2205rm -f conftest.$ac_ext
2206EXEEXT=$ac_cv_exeext
2207ac_exeext=$EXEEXT
2208echo "$as_me:$LINENO: checking for suffix of object files" >&5
2209echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2210if test "${ac_cv_objext+set}" = set; then
2211 echo $ECHO_N "(cached) $ECHO_C" >&6
2212else
2213 cat >conftest.$ac_ext <<_ACEOF
2214#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002215/* confdefs.h. */
2216_ACEOF
2217cat confdefs.h >>conftest.$ac_ext
2218cat >>conftest.$ac_ext <<_ACEOF
2219/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002220
John Criswell7a73b802003-06-30 21:59:07 +00002221int
2222main ()
2223{
2224
2225 ;
2226 return 0;
2227}
2228_ACEOF
2229rm -f conftest.o conftest.obj
2230if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2231 (eval $ac_compile) 2>&5
2232 ac_status=$?
2233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2234 (exit $ac_status); }; then
2235 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2236 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002237 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002238 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2239 break;;
2240 esac
2241done
2242else
2243 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002244sed 's/^/| /' conftest.$ac_ext >&5
2245
2246{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2247See \`config.log' for more details." >&5
2248echo "$as_me: error: cannot compute suffix of object files: cannot compile
2249See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002250 { (exit 1); exit 1; }; }
2251fi
2252
2253rm -f conftest.$ac_cv_objext conftest.$ac_ext
2254fi
2255echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2256echo "${ECHO_T}$ac_cv_objext" >&6
2257OBJEXT=$ac_cv_objext
2258ac_objext=$OBJEXT
2259echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2260echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2261if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2262 echo $ECHO_N "(cached) $ECHO_C" >&6
2263else
2264 cat >conftest.$ac_ext <<_ACEOF
2265#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002266/* confdefs.h. */
2267_ACEOF
2268cat confdefs.h >>conftest.$ac_ext
2269cat >>conftest.$ac_ext <<_ACEOF
2270/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002271
John Criswell7a73b802003-06-30 21:59:07 +00002272int
2273main ()
2274{
2275#ifndef __GNUC__
2276 choke me
2277#endif
2278
2279 ;
2280 return 0;
2281}
2282_ACEOF
2283rm -f conftest.$ac_objext
2284if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2285 (eval $ac_compile) 2>&5
2286 ac_status=$?
2287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2288 (exit $ac_status); } &&
2289 { ac_try='test -s conftest.$ac_objext'
2290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2291 (eval $ac_try) 2>&5
2292 ac_status=$?
2293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2294 (exit $ac_status); }; }; then
2295 ac_compiler_gnu=yes
2296else
2297 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002298sed 's/^/| /' conftest.$ac_ext >&5
2299
John Criswell7a73b802003-06-30 21:59:07 +00002300ac_compiler_gnu=no
2301fi
2302rm -f conftest.$ac_objext conftest.$ac_ext
2303ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2304
2305fi
2306echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2307echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2308GXX=`test $ac_compiler_gnu = yes && echo yes`
2309ac_test_CXXFLAGS=${CXXFLAGS+set}
2310ac_save_CXXFLAGS=$CXXFLAGS
2311CXXFLAGS="-g"
2312echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2313echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2314if test "${ac_cv_prog_cxx_g+set}" = set; then
2315 echo $ECHO_N "(cached) $ECHO_C" >&6
2316else
2317 cat >conftest.$ac_ext <<_ACEOF
2318#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002319/* confdefs.h. */
2320_ACEOF
2321cat confdefs.h >>conftest.$ac_ext
2322cat >>conftest.$ac_ext <<_ACEOF
2323/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002324
John Criswell7a73b802003-06-30 21:59:07 +00002325int
2326main ()
2327{
2328
2329 ;
2330 return 0;
2331}
2332_ACEOF
2333rm -f conftest.$ac_objext
2334if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2335 (eval $ac_compile) 2>&5
2336 ac_status=$?
2337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2338 (exit $ac_status); } &&
2339 { ac_try='test -s conftest.$ac_objext'
2340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2341 (eval $ac_try) 2>&5
2342 ac_status=$?
2343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2344 (exit $ac_status); }; }; then
2345 ac_cv_prog_cxx_g=yes
2346else
2347 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002348sed 's/^/| /' conftest.$ac_ext >&5
2349
John Criswell7a73b802003-06-30 21:59:07 +00002350ac_cv_prog_cxx_g=no
2351fi
2352rm -f conftest.$ac_objext conftest.$ac_ext
2353fi
2354echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2355echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2356if test "$ac_test_CXXFLAGS" = set; then
2357 CXXFLAGS=$ac_save_CXXFLAGS
2358elif test $ac_cv_prog_cxx_g = yes; then
2359 if test "$GXX" = yes; then
2360 CXXFLAGS="-g -O2"
2361 else
2362 CXXFLAGS="-g"
2363 fi
2364else
2365 if test "$GXX" = yes; then
2366 CXXFLAGS="-O2"
2367 else
2368 CXXFLAGS=
2369 fi
2370fi
2371for ac_declaration in \
2372 ''\
2373 '#include <stdlib.h>' \
2374 'extern "C" void std::exit (int) throw (); using std::exit;' \
2375 'extern "C" void std::exit (int); using std::exit;' \
2376 'extern "C" void exit (int) throw ();' \
2377 'extern "C" void exit (int);' \
2378 'void exit (int);'
2379do
2380 cat >conftest.$ac_ext <<_ACEOF
2381#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002382/* confdefs.h. */
2383_ACEOF
2384cat confdefs.h >>conftest.$ac_ext
2385cat >>conftest.$ac_ext <<_ACEOF
2386/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002387#include <stdlib.h>
2388$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00002389int
2390main ()
2391{
2392exit (42);
2393 ;
2394 return 0;
2395}
2396_ACEOF
2397rm -f conftest.$ac_objext
2398if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2399 (eval $ac_compile) 2>&5
2400 ac_status=$?
2401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2402 (exit $ac_status); } &&
2403 { ac_try='test -s conftest.$ac_objext'
2404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2405 (eval $ac_try) 2>&5
2406 ac_status=$?
2407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2408 (exit $ac_status); }; }; then
2409 :
2410else
2411 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002412sed 's/^/| /' conftest.$ac_ext >&5
2413
John Criswell7a73b802003-06-30 21:59:07 +00002414continue
2415fi
2416rm -f conftest.$ac_objext conftest.$ac_ext
2417 cat >conftest.$ac_ext <<_ACEOF
2418#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002419/* confdefs.h. */
2420_ACEOF
2421cat confdefs.h >>conftest.$ac_ext
2422cat >>conftest.$ac_ext <<_ACEOF
2423/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002424$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00002425int
2426main ()
2427{
2428exit (42);
2429 ;
2430 return 0;
2431}
2432_ACEOF
2433rm -f conftest.$ac_objext
2434if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2435 (eval $ac_compile) 2>&5
2436 ac_status=$?
2437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2438 (exit $ac_status); } &&
2439 { ac_try='test -s conftest.$ac_objext'
2440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2441 (eval $ac_try) 2>&5
2442 ac_status=$?
2443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2444 (exit $ac_status); }; }; then
2445 break
2446else
2447 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002448sed 's/^/| /' conftest.$ac_ext >&5
2449
John Criswell7a73b802003-06-30 21:59:07 +00002450fi
2451rm -f conftest.$ac_objext conftest.$ac_ext
2452done
2453rm -f conftest*
2454if test -n "$ac_declaration"; then
2455 echo '#ifdef __cplusplus' >>confdefs.h
2456 echo $ac_declaration >>confdefs.h
2457 echo '#endif' >>confdefs.h
2458fi
2459
2460ac_ext=c
2461ac_cpp='$CPP $CPPFLAGS'
2462ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2463ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2464ac_compiler_gnu=$ac_cv_c_compiler_gnu
2465
2466ac_ext=c
2467ac_cpp='$CPP $CPPFLAGS'
2468ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2469ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2470ac_compiler_gnu=$ac_cv_c_compiler_gnu
2471if test -n "$ac_tool_prefix"; then
2472 for ac_prog in gcc
2473 do
2474 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2475set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2476echo "$as_me:$LINENO: checking for $ac_word" >&5
2477echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2478if test "${ac_cv_prog_CC+set}" = set; then
2479 echo $ECHO_N "(cached) $ECHO_C" >&6
2480else
2481 if test -n "$CC"; then
2482 ac_cv_prog_CC="$CC" # Let the user override the test.
2483else
2484as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2485for as_dir in $PATH
2486do
2487 IFS=$as_save_IFS
2488 test -z "$as_dir" && as_dir=.
2489 for ac_exec_ext in '' $ac_executable_extensions; do
2490 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2491 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2492 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2493 break 2
2494 fi
2495done
2496done
2497
2498fi
2499fi
2500CC=$ac_cv_prog_CC
2501if test -n "$CC"; then
2502 echo "$as_me:$LINENO: result: $CC" >&5
2503echo "${ECHO_T}$CC" >&6
2504else
2505 echo "$as_me:$LINENO: result: no" >&5
2506echo "${ECHO_T}no" >&6
2507fi
2508
2509 test -n "$CC" && break
2510 done
2511fi
2512if test -z "$CC"; then
2513 ac_ct_CC=$CC
2514 for ac_prog in gcc
2515do
2516 # Extract the first word of "$ac_prog", so it can be a program name with args.
2517set dummy $ac_prog; ac_word=$2
2518echo "$as_me:$LINENO: checking for $ac_word" >&5
2519echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2520if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2521 echo $ECHO_N "(cached) $ECHO_C" >&6
2522else
2523 if test -n "$ac_ct_CC"; then
2524 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2525else
2526as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2527for as_dir in $PATH
2528do
2529 IFS=$as_save_IFS
2530 test -z "$as_dir" && as_dir=.
2531 for ac_exec_ext in '' $ac_executable_extensions; do
2532 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2533 ac_cv_prog_ac_ct_CC="$ac_prog"
2534 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2535 break 2
2536 fi
2537done
2538done
2539
2540fi
2541fi
2542ac_ct_CC=$ac_cv_prog_ac_ct_CC
2543if test -n "$ac_ct_CC"; then
2544 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2545echo "${ECHO_T}$ac_ct_CC" >&6
2546else
2547 echo "$as_me:$LINENO: result: no" >&5
2548echo "${ECHO_T}no" >&6
2549fi
2550
2551 test -n "$ac_ct_CC" && break
2552done
2553
2554 CC=$ac_ct_CC
2555fi
2556
2557
John Criswell0c38eaf2003-09-10 15:17:25 +00002558test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2559See \`config.log' for more details." >&5
2560echo "$as_me: error: no acceptable C compiler found in \$PATH
2561See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002562 { (exit 1); exit 1; }; }
2563
2564# Provide some information about the compiler.
2565echo "$as_me:$LINENO:" \
2566 "checking for C compiler version" >&5
2567ac_compiler=`set X $ac_compile; echo $2`
2568{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2569 (eval $ac_compiler --version </dev/null >&5) 2>&5
2570 ac_status=$?
2571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2572 (exit $ac_status); }
2573{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2574 (eval $ac_compiler -v </dev/null >&5) 2>&5
2575 ac_status=$?
2576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2577 (exit $ac_status); }
2578{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2579 (eval $ac_compiler -V </dev/null >&5) 2>&5
2580 ac_status=$?
2581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2582 (exit $ac_status); }
2583
2584echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2585echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2586if test "${ac_cv_c_compiler_gnu+set}" = set; then
2587 echo $ECHO_N "(cached) $ECHO_C" >&6
2588else
2589 cat >conftest.$ac_ext <<_ACEOF
2590#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002591/* confdefs.h. */
2592_ACEOF
2593cat confdefs.h >>conftest.$ac_ext
2594cat >>conftest.$ac_ext <<_ACEOF
2595/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002596
John Criswell7a73b802003-06-30 21:59:07 +00002597int
2598main ()
2599{
2600#ifndef __GNUC__
2601 choke me
2602#endif
2603
2604 ;
2605 return 0;
2606}
2607_ACEOF
2608rm -f conftest.$ac_objext
2609if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2610 (eval $ac_compile) 2>&5
2611 ac_status=$?
2612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2613 (exit $ac_status); } &&
2614 { ac_try='test -s conftest.$ac_objext'
2615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2616 (eval $ac_try) 2>&5
2617 ac_status=$?
2618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2619 (exit $ac_status); }; }; then
2620 ac_compiler_gnu=yes
2621else
2622 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002623sed 's/^/| /' conftest.$ac_ext >&5
2624
John Criswell7a73b802003-06-30 21:59:07 +00002625ac_compiler_gnu=no
2626fi
2627rm -f conftest.$ac_objext conftest.$ac_ext
2628ac_cv_c_compiler_gnu=$ac_compiler_gnu
2629
2630fi
2631echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2632echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2633GCC=`test $ac_compiler_gnu = yes && echo yes`
2634ac_test_CFLAGS=${CFLAGS+set}
2635ac_save_CFLAGS=$CFLAGS
2636CFLAGS="-g"
2637echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2638echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2639if test "${ac_cv_prog_cc_g+set}" = set; then
2640 echo $ECHO_N "(cached) $ECHO_C" >&6
2641else
2642 cat >conftest.$ac_ext <<_ACEOF
2643#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002644/* confdefs.h. */
2645_ACEOF
2646cat confdefs.h >>conftest.$ac_ext
2647cat >>conftest.$ac_ext <<_ACEOF
2648/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002649
John Criswell7a73b802003-06-30 21:59:07 +00002650int
2651main ()
2652{
2653
2654 ;
2655 return 0;
2656}
2657_ACEOF
2658rm -f conftest.$ac_objext
2659if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2660 (eval $ac_compile) 2>&5
2661 ac_status=$?
2662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2663 (exit $ac_status); } &&
2664 { ac_try='test -s conftest.$ac_objext'
2665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2666 (eval $ac_try) 2>&5
2667 ac_status=$?
2668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2669 (exit $ac_status); }; }; then
2670 ac_cv_prog_cc_g=yes
2671else
2672 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002673sed 's/^/| /' conftest.$ac_ext >&5
2674
John Criswell7a73b802003-06-30 21:59:07 +00002675ac_cv_prog_cc_g=no
2676fi
2677rm -f conftest.$ac_objext conftest.$ac_ext
2678fi
2679echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2680echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2681if test "$ac_test_CFLAGS" = set; then
2682 CFLAGS=$ac_save_CFLAGS
2683elif test $ac_cv_prog_cc_g = yes; then
2684 if test "$GCC" = yes; then
2685 CFLAGS="-g -O2"
2686 else
2687 CFLAGS="-g"
2688 fi
2689else
2690 if test "$GCC" = yes; then
2691 CFLAGS="-O2"
2692 else
2693 CFLAGS=
2694 fi
2695fi
John Criswell0c38eaf2003-09-10 15:17:25 +00002696echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2697echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2698if test "${ac_cv_prog_cc_stdc+set}" = set; then
2699 echo $ECHO_N "(cached) $ECHO_C" >&6
2700else
2701 ac_cv_prog_cc_stdc=no
2702ac_save_CC=$CC
2703cat >conftest.$ac_ext <<_ACEOF
2704#line $LINENO "configure"
2705/* confdefs.h. */
2706_ACEOF
2707cat confdefs.h >>conftest.$ac_ext
2708cat >>conftest.$ac_ext <<_ACEOF
2709/* end confdefs.h. */
2710#include <stdarg.h>
2711#include <stdio.h>
2712#include <sys/types.h>
2713#include <sys/stat.h>
2714/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2715struct buf { int x; };
2716FILE * (*rcsopen) (struct buf *, struct stat *, int);
2717static char *e (p, i)
2718 char **p;
2719 int i;
2720{
2721 return p[i];
2722}
2723static char *f (char * (*g) (char **, int), char **p, ...)
2724{
2725 char *s;
2726 va_list v;
2727 va_start (v,p);
2728 s = g (p, va_arg (v,int));
2729 va_end (v);
2730 return s;
2731}
2732int test (int i, double x);
2733struct s1 {int (*f) (int a);};
2734struct s2 {int (*f) (double a);};
2735int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2736int argc;
2737char **argv;
2738int
2739main ()
2740{
2741return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2742 ;
2743 return 0;
2744}
2745_ACEOF
2746# Don't try gcc -ansi; that turns off useful extensions and
2747# breaks some systems' header files.
2748# AIX -qlanglvl=ansi
2749# Ultrix and OSF/1 -std1
2750# HP-UX 10.20 and later -Ae
2751# HP-UX older versions -Aa -D_HPUX_SOURCE
2752# SVR4 -Xc -D__EXTENSIONS__
2753for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2754do
2755 CC="$ac_save_CC $ac_arg"
2756 rm -f conftest.$ac_objext
2757if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2758 (eval $ac_compile) 2>&5
2759 ac_status=$?
2760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2761 (exit $ac_status); } &&
2762 { ac_try='test -s conftest.$ac_objext'
2763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2764 (eval $ac_try) 2>&5
2765 ac_status=$?
2766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2767 (exit $ac_status); }; }; then
2768 ac_cv_prog_cc_stdc=$ac_arg
2769break
2770else
2771 echo "$as_me: failed program was:" >&5
2772sed 's/^/| /' conftest.$ac_ext >&5
2773
2774fi
2775rm -f conftest.$ac_objext
2776done
2777rm -f conftest.$ac_ext conftest.$ac_objext
2778CC=$ac_save_CC
2779
2780fi
2781
2782case "x$ac_cv_prog_cc_stdc" in
2783 x|xno)
2784 echo "$as_me:$LINENO: result: none needed" >&5
2785echo "${ECHO_T}none needed" >&6 ;;
2786 *)
2787 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2788echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2789 CC="$CC $ac_cv_prog_cc_stdc" ;;
2790esac
2791
John Criswell7a73b802003-06-30 21:59:07 +00002792# Some people use a C++ compiler to compile C. Since we use `exit',
2793# in C++ we need to declare it. In case someone uses the same compiler
2794# for both compiling C and C++ we need to have the C++ compiler decide
2795# the declaration of exit, since it's the most demanding environment.
2796cat >conftest.$ac_ext <<_ACEOF
2797#ifndef __cplusplus
2798 choke me
2799#endif
2800_ACEOF
2801rm -f conftest.$ac_objext
2802if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2803 (eval $ac_compile) 2>&5
2804 ac_status=$?
2805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2806 (exit $ac_status); } &&
2807 { ac_try='test -s conftest.$ac_objext'
2808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2809 (eval $ac_try) 2>&5
2810 ac_status=$?
2811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2812 (exit $ac_status); }; }; then
2813 for ac_declaration in \
2814 ''\
2815 '#include <stdlib.h>' \
2816 'extern "C" void std::exit (int) throw (); using std::exit;' \
2817 'extern "C" void std::exit (int); using std::exit;' \
2818 'extern "C" void exit (int) throw ();' \
2819 'extern "C" void exit (int);' \
2820 'void exit (int);'
2821do
2822 cat >conftest.$ac_ext <<_ACEOF
2823#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002824/* confdefs.h. */
2825_ACEOF
2826cat confdefs.h >>conftest.$ac_ext
2827cat >>conftest.$ac_ext <<_ACEOF
2828/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002829#include <stdlib.h>
2830$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00002831int
2832main ()
2833{
2834exit (42);
2835 ;
2836 return 0;
2837}
2838_ACEOF
2839rm -f conftest.$ac_objext
2840if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2841 (eval $ac_compile) 2>&5
2842 ac_status=$?
2843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2844 (exit $ac_status); } &&
2845 { ac_try='test -s conftest.$ac_objext'
2846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2847 (eval $ac_try) 2>&5
2848 ac_status=$?
2849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2850 (exit $ac_status); }; }; then
2851 :
2852else
2853 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002854sed 's/^/| /' conftest.$ac_ext >&5
2855
John Criswell7a73b802003-06-30 21:59:07 +00002856continue
2857fi
2858rm -f conftest.$ac_objext conftest.$ac_ext
2859 cat >conftest.$ac_ext <<_ACEOF
2860#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002861/* confdefs.h. */
2862_ACEOF
2863cat confdefs.h >>conftest.$ac_ext
2864cat >>conftest.$ac_ext <<_ACEOF
2865/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002866$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00002867int
2868main ()
2869{
2870exit (42);
2871 ;
2872 return 0;
2873}
2874_ACEOF
2875rm -f conftest.$ac_objext
2876if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2877 (eval $ac_compile) 2>&5
2878 ac_status=$?
2879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2880 (exit $ac_status); } &&
2881 { ac_try='test -s conftest.$ac_objext'
2882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2883 (eval $ac_try) 2>&5
2884 ac_status=$?
2885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2886 (exit $ac_status); }; }; then
2887 break
2888else
2889 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002890sed 's/^/| /' conftest.$ac_ext >&5
2891
John Criswell7a73b802003-06-30 21:59:07 +00002892fi
2893rm -f conftest.$ac_objext conftest.$ac_ext
2894done
2895rm -f conftest*
2896if test -n "$ac_declaration"; then
2897 echo '#ifdef __cplusplus' >>confdefs.h
2898 echo $ac_declaration >>confdefs.h
2899 echo '#endif' >>confdefs.h
2900fi
2901
2902else
2903 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002904sed 's/^/| /' conftest.$ac_ext >&5
2905
John Criswell7a73b802003-06-30 21:59:07 +00002906fi
2907rm -f conftest.$ac_objext conftest.$ac_ext
2908ac_ext=c
2909ac_cpp='$CPP $CPPFLAGS'
2910ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2911ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2912ac_compiler_gnu=$ac_cv_c_compiler_gnu
2913
2914ac_ext=c
2915ac_cpp='$CPP $CPPFLAGS'
2916ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2917ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2918ac_compiler_gnu=$ac_cv_c_compiler_gnu
2919echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2920echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2921# On Suns, sometimes $CPP names a directory.
2922if test -n "$CPP" && test -d "$CPP"; then
2923 CPP=
2924fi
2925if test -z "$CPP"; then
2926 if test "${ac_cv_prog_CPP+set}" = set; then
2927 echo $ECHO_N "(cached) $ECHO_C" >&6
2928else
2929 # Double quotes because CPP needs to be expanded
2930 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2931 do
2932 ac_preproc_ok=false
2933for ac_c_preproc_warn_flag in '' yes
2934do
2935 # Use a header file that comes with gcc, so configuring glibc
2936 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00002937 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2938 # <limits.h> exists even on freestanding compilers.
John Criswell7a73b802003-06-30 21:59:07 +00002939 # On the NeXT, cc -E runs the code through the compiler's parser,
2940 # not just through cpp. "Syntax error" is here to catch this case.
2941 cat >conftest.$ac_ext <<_ACEOF
2942#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002943/* confdefs.h. */
2944_ACEOF
2945cat confdefs.h >>conftest.$ac_ext
2946cat >>conftest.$ac_ext <<_ACEOF
2947/* end confdefs.h. */
2948#ifdef __STDC__
2949# include <limits.h>
2950#else
2951# include <assert.h>
2952#endif
John Criswell7a73b802003-06-30 21:59:07 +00002953 Syntax error
2954_ACEOF
2955if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2956 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2957 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00002958 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00002959 rm -f conftest.er1
2960 cat conftest.err >&5
2961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2962 (exit $ac_status); } >/dev/null; then
2963 if test -s conftest.err; then
2964 ac_cpp_err=$ac_c_preproc_warn_flag
2965 else
2966 ac_cpp_err=
2967 fi
2968else
2969 ac_cpp_err=yes
2970fi
2971if test -z "$ac_cpp_err"; then
2972 :
2973else
2974 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002975sed 's/^/| /' conftest.$ac_ext >&5
2976
John Criswell7a73b802003-06-30 21:59:07 +00002977 # Broken: fails on valid input.
2978continue
2979fi
2980rm -f conftest.err conftest.$ac_ext
2981
2982 # OK, works on sane cases. Now check whether non-existent headers
2983 # can be detected and how.
2984 cat >conftest.$ac_ext <<_ACEOF
2985#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002986/* confdefs.h. */
2987_ACEOF
2988cat confdefs.h >>conftest.$ac_ext
2989cat >>conftest.$ac_ext <<_ACEOF
2990/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002991#include <ac_nonexistent.h>
2992_ACEOF
2993if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2994 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2995 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00002996 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00002997 rm -f conftest.er1
2998 cat conftest.err >&5
2999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3000 (exit $ac_status); } >/dev/null; then
3001 if test -s conftest.err; then
3002 ac_cpp_err=$ac_c_preproc_warn_flag
3003 else
3004 ac_cpp_err=
3005 fi
3006else
3007 ac_cpp_err=yes
3008fi
3009if test -z "$ac_cpp_err"; then
3010 # Broken: success on invalid input.
3011continue
3012else
3013 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003014sed 's/^/| /' conftest.$ac_ext >&5
3015
John Criswell7a73b802003-06-30 21:59:07 +00003016 # Passes both tests.
3017ac_preproc_ok=:
3018break
3019fi
3020rm -f conftest.err conftest.$ac_ext
3021
3022done
3023# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3024rm -f conftest.err conftest.$ac_ext
3025if $ac_preproc_ok; then
3026 break
3027fi
3028
3029 done
3030 ac_cv_prog_CPP=$CPP
3031
3032fi
3033 CPP=$ac_cv_prog_CPP
3034else
3035 ac_cv_prog_CPP=$CPP
3036fi
3037echo "$as_me:$LINENO: result: $CPP" >&5
3038echo "${ECHO_T}$CPP" >&6
3039ac_preproc_ok=false
3040for ac_c_preproc_warn_flag in '' yes
3041do
3042 # Use a header file that comes with gcc, so configuring glibc
3043 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00003044 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3045 # <limits.h> exists even on freestanding compilers.
John Criswell7a73b802003-06-30 21:59:07 +00003046 # On the NeXT, cc -E runs the code through the compiler's parser,
3047 # not just through cpp. "Syntax error" is here to catch this case.
3048 cat >conftest.$ac_ext <<_ACEOF
3049#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003050/* confdefs.h. */
3051_ACEOF
3052cat confdefs.h >>conftest.$ac_ext
3053cat >>conftest.$ac_ext <<_ACEOF
3054/* end confdefs.h. */
3055#ifdef __STDC__
3056# include <limits.h>
3057#else
3058# include <assert.h>
3059#endif
John Criswell7a73b802003-06-30 21:59:07 +00003060 Syntax error
3061_ACEOF
3062if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3063 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3064 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003065 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003066 rm -f conftest.er1
3067 cat conftest.err >&5
3068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3069 (exit $ac_status); } >/dev/null; then
3070 if test -s conftest.err; then
3071 ac_cpp_err=$ac_c_preproc_warn_flag
3072 else
3073 ac_cpp_err=
3074 fi
3075else
3076 ac_cpp_err=yes
3077fi
3078if test -z "$ac_cpp_err"; then
3079 :
3080else
3081 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003082sed 's/^/| /' conftest.$ac_ext >&5
3083
John Criswell7a73b802003-06-30 21:59:07 +00003084 # Broken: fails on valid input.
3085continue
3086fi
3087rm -f conftest.err conftest.$ac_ext
3088
3089 # OK, works on sane cases. Now check whether non-existent headers
3090 # can be detected and how.
3091 cat >conftest.$ac_ext <<_ACEOF
3092#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003093/* confdefs.h. */
3094_ACEOF
3095cat confdefs.h >>conftest.$ac_ext
3096cat >>conftest.$ac_ext <<_ACEOF
3097/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003098#include <ac_nonexistent.h>
3099_ACEOF
3100if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3101 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3102 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003103 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003104 rm -f conftest.er1
3105 cat conftest.err >&5
3106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3107 (exit $ac_status); } >/dev/null; then
3108 if test -s conftest.err; then
3109 ac_cpp_err=$ac_c_preproc_warn_flag
3110 else
3111 ac_cpp_err=
3112 fi
3113else
3114 ac_cpp_err=yes
3115fi
3116if test -z "$ac_cpp_err"; then
3117 # Broken: success on invalid input.
3118continue
3119else
3120 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003121sed 's/^/| /' conftest.$ac_ext >&5
3122
John Criswell7a73b802003-06-30 21:59:07 +00003123 # Passes both tests.
3124ac_preproc_ok=:
3125break
3126fi
3127rm -f conftest.err conftest.$ac_ext
3128
3129done
3130# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3131rm -f conftest.err conftest.$ac_ext
3132if $ac_preproc_ok; then
3133 :
3134else
John Criswell0c38eaf2003-09-10 15:17:25 +00003135 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3136See \`config.log' for more details." >&5
3137echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3138See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00003139 { (exit 1); exit 1; }; }
3140fi
3141
3142ac_ext=c
3143ac_cpp='$CPP $CPPFLAGS'
3144ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3145ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3146ac_compiler_gnu=$ac_cv_c_compiler_gnu
3147
3148
3149if test "$GCC" != "yes"
3150then
3151 { { echo "$as_me:$LINENO: error: gcc required but not found" >&5
3152echo "$as_me: error: gcc required but not found" >&2;}
3153 { (exit 1); exit 1; }; }
3154fi
3155
3156if test "$GXX" != "yes"
3157then
3158 { { echo "$as_me:$LINENO: error: g++ required but not found" >&5
3159echo "$as_me: error: g++ required but not found" >&2;}
3160 { (exit 1); exit 1; }; }
3161fi
3162
John Criswellde00db22003-08-25 16:49:54 +00003163gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
3164if test "$gccmajor" -lt "3"
3165then
3166 { { echo "$as_me:$LINENO: error: gcc 3.x required" >&5
3167echo "$as_me: error: gcc 3.x required" >&2;}
3168 { (exit 1); exit 1; }; }
3169fi
3170
John Criswell7a73b802003-06-30 21:59:07 +00003171 echo "$as_me:$LINENO: checking for GNU make" >&5
3172echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
3173if test "${_cv_gnu_make_command+set}" = set; then
3174 echo $ECHO_N "(cached) $ECHO_C" >&6
3175else
3176 _cv_gnu_make_command='' ;
3177 for a in "$MAKE" make gmake gnumake ; do
3178 if test -z "$a" ; then continue ; fi ;
3179 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
3180 _cv_gnu_make_command=$a ;
3181 break;
3182 fi
3183 done ;
3184
3185fi
3186echo "$as_me:$LINENO: result: $_cv_gnu_make_command" >&5
3187echo "${ECHO_T}$_cv_gnu_make_command" >&6 ;
3188 if test "x$_cv_gnu_make_command" != "x" ; then
3189 ifGNUmake='' ;
3190 else
3191 ifGNUmake='#' ;
3192 echo "$as_me:$LINENO: result: \"Not found\"" >&5
3193echo "${ECHO_T}\"Not found\"" >&6;
3194 fi
3195
3196
3197if test -z "$_cv_gnu_make_command"
3198then
3199 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
3200echo "$as_me: error: GNU Make required but not found" >&2;}
3201 { (exit 1); exit 1; }; }
3202fi
3203
3204
3205echo "$as_me:$LINENO: checking " >&5
3206echo $ECHO_N "checking ... $ECHO_C" >&6
3207if test "${ac_cv_has_flex+set}" = set; then
3208 echo $ECHO_N "(cached) $ECHO_C" >&6
3209else
3210 for ac_prog in flex lex
3211do
3212 # Extract the first word of "$ac_prog", so it can be a program name with args.
3213set dummy $ac_prog; ac_word=$2
3214echo "$as_me:$LINENO: checking for $ac_word" >&5
3215echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3216if test "${ac_cv_prog_LEX+set}" = set; then
3217 echo $ECHO_N "(cached) $ECHO_C" >&6
3218else
3219 if test -n "$LEX"; then
3220 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3221else
3222as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3223for as_dir in $PATH
3224do
3225 IFS=$as_save_IFS
3226 test -z "$as_dir" && as_dir=.
3227 for ac_exec_ext in '' $ac_executable_extensions; do
3228 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3229 ac_cv_prog_LEX="$ac_prog"
3230 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3231 break 2
3232 fi
3233done
3234done
3235
3236fi
3237fi
3238LEX=$ac_cv_prog_LEX
3239if test -n "$LEX"; then
3240 echo "$as_me:$LINENO: result: $LEX" >&5
3241echo "${ECHO_T}$LEX" >&6
3242else
3243 echo "$as_me:$LINENO: result: no" >&5
3244echo "${ECHO_T}no" >&6
3245fi
3246
3247 test -n "$LEX" && break
3248done
3249test -n "$LEX" || LEX=":"
3250
3251if test -z "$LEXLIB"
3252then
3253 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3254echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3255if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3256 echo $ECHO_N "(cached) $ECHO_C" >&6
3257else
3258 ac_check_lib_save_LIBS=$LIBS
3259LIBS="-lfl $LIBS"
3260cat >conftest.$ac_ext <<_ACEOF
3261#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003262/* confdefs.h. */
3263_ACEOF
3264cat confdefs.h >>conftest.$ac_ext
3265cat >>conftest.$ac_ext <<_ACEOF
3266/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003267
3268/* Override any gcc2 internal prototype to avoid an error. */
3269#ifdef __cplusplus
3270extern "C"
3271#endif
3272/* We use char because int might match the return type of a gcc2
3273 builtin and then its argument prototype would still apply. */
3274char yywrap ();
John Criswell7a73b802003-06-30 21:59:07 +00003275int
3276main ()
3277{
3278yywrap ();
3279 ;
3280 return 0;
3281}
3282_ACEOF
3283rm -f conftest.$ac_objext conftest$ac_exeext
3284if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3285 (eval $ac_link) 2>&5
3286 ac_status=$?
3287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3288 (exit $ac_status); } &&
3289 { ac_try='test -s conftest$ac_exeext'
3290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3291 (eval $ac_try) 2>&5
3292 ac_status=$?
3293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3294 (exit $ac_status); }; }; then
3295 ac_cv_lib_fl_yywrap=yes
3296else
3297 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003298sed 's/^/| /' conftest.$ac_ext >&5
3299
John Criswell7a73b802003-06-30 21:59:07 +00003300ac_cv_lib_fl_yywrap=no
3301fi
3302rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3303LIBS=$ac_check_lib_save_LIBS
3304fi
3305echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3306echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3307if test $ac_cv_lib_fl_yywrap = yes; then
3308 LEXLIB="-lfl"
3309else
3310 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3311echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3312if test "${ac_cv_lib_l_yywrap+set}" = set; then
3313 echo $ECHO_N "(cached) $ECHO_C" >&6
3314else
3315 ac_check_lib_save_LIBS=$LIBS
3316LIBS="-ll $LIBS"
3317cat >conftest.$ac_ext <<_ACEOF
3318#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003319/* confdefs.h. */
3320_ACEOF
3321cat confdefs.h >>conftest.$ac_ext
3322cat >>conftest.$ac_ext <<_ACEOF
3323/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003324
3325/* Override any gcc2 internal prototype to avoid an error. */
3326#ifdef __cplusplus
3327extern "C"
3328#endif
3329/* We use char because int might match the return type of a gcc2
3330 builtin and then its argument prototype would still apply. */
3331char yywrap ();
John Criswell7a73b802003-06-30 21:59:07 +00003332int
3333main ()
3334{
3335yywrap ();
3336 ;
3337 return 0;
3338}
3339_ACEOF
3340rm -f conftest.$ac_objext conftest$ac_exeext
3341if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3342 (eval $ac_link) 2>&5
3343 ac_status=$?
3344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3345 (exit $ac_status); } &&
3346 { ac_try='test -s conftest$ac_exeext'
3347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3348 (eval $ac_try) 2>&5
3349 ac_status=$?
3350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3351 (exit $ac_status); }; }; then
3352 ac_cv_lib_l_yywrap=yes
3353else
3354 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003355sed 's/^/| /' conftest.$ac_ext >&5
3356
John Criswell7a73b802003-06-30 21:59:07 +00003357ac_cv_lib_l_yywrap=no
3358fi
3359rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3360LIBS=$ac_check_lib_save_LIBS
3361fi
3362echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3363echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3364if test $ac_cv_lib_l_yywrap = yes; then
3365 LEXLIB="-ll"
3366fi
3367
3368fi
3369
3370fi
3371
3372if test "x$LEX" != "x:"; then
3373 echo "$as_me:$LINENO: checking lex output file root" >&5
3374echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3375if test "${ac_cv_prog_lex_root+set}" = set; then
3376 echo $ECHO_N "(cached) $ECHO_C" >&6
3377else
3378 # The minimal lex program is just a single line: %%. But some broken lexes
3379# (Solaris, I think it was) want two %% lines, so accommodate them.
3380cat >conftest.l <<_ACEOF
3381%%
3382%%
3383_ACEOF
3384{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3385 (eval $LEX conftest.l) 2>&5
3386 ac_status=$?
3387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3388 (exit $ac_status); }
3389if test -f lex.yy.c; then
3390 ac_cv_prog_lex_root=lex.yy
3391elif test -f lexyy.c; then
3392 ac_cv_prog_lex_root=lexyy
3393else
3394 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3395echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3396 { (exit 1); exit 1; }; }
3397fi
3398fi
3399echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3400echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3401rm -f conftest.l
3402LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3403
3404echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3405echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3406if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3407 echo $ECHO_N "(cached) $ECHO_C" >&6
3408else
3409 # POSIX says lex can declare yytext either as a pointer or an array; the
3410# default is implementation-dependent. Figure out which it is, since
3411# not all implementations provide the %pointer and %array declarations.
3412ac_cv_prog_lex_yytext_pointer=no
3413echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3414ac_save_LIBS=$LIBS
3415LIBS="$LIBS $LEXLIB"
3416cat >conftest.$ac_ext <<_ACEOF
3417`cat $LEX_OUTPUT_ROOT.c`
3418_ACEOF
3419rm -f conftest.$ac_objext conftest$ac_exeext
3420if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3421 (eval $ac_link) 2>&5
3422 ac_status=$?
3423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3424 (exit $ac_status); } &&
3425 { ac_try='test -s conftest$ac_exeext'
3426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3427 (eval $ac_try) 2>&5
3428 ac_status=$?
3429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3430 (exit $ac_status); }; }; then
3431 ac_cv_prog_lex_yytext_pointer=yes
3432else
3433 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003434sed 's/^/| /' conftest.$ac_ext >&5
3435
John Criswell7a73b802003-06-30 21:59:07 +00003436fi
3437rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3438LIBS=$ac_save_LIBS
3439rm -f "${LEX_OUTPUT_ROOT}.c"
3440
3441fi
3442echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3443echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3444if test $ac_cv_prog_lex_yytext_pointer = yes; then
3445
3446cat >>confdefs.h <<\_ACEOF
3447#define YYTEXT_POINTER 1
3448_ACEOF
3449
3450fi
3451
3452fi
3453
3454fi
3455echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
3456echo "${ECHO_T}$ac_cv_has_flex" >&6
3457if test "$LEX" != "flex"; then
3458 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
3459echo "$as_me: error: flex not found but required" >&2;}
3460 { (exit 1); exit 1; }; }
3461fi
3462
3463echo "$as_me:$LINENO: checking " >&5
3464echo $ECHO_N "checking ... $ECHO_C" >&6
3465if test "${ac_cv_has_bison+set}" = set; then
3466 echo $ECHO_N "(cached) $ECHO_C" >&6
3467else
3468 for ac_prog in 'bison -y' byacc
3469do
3470 # Extract the first word of "$ac_prog", so it can be a program name with args.
3471set dummy $ac_prog; ac_word=$2
3472echo "$as_me:$LINENO: checking for $ac_word" >&5
3473echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3474if test "${ac_cv_prog_YACC+set}" = set; then
3475 echo $ECHO_N "(cached) $ECHO_C" >&6
3476else
3477 if test -n "$YACC"; then
3478 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3479else
3480as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3481for as_dir in $PATH
3482do
3483 IFS=$as_save_IFS
3484 test -z "$as_dir" && as_dir=.
3485 for ac_exec_ext in '' $ac_executable_extensions; do
3486 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3487 ac_cv_prog_YACC="$ac_prog"
3488 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3489 break 2
3490 fi
3491done
3492done
3493
3494fi
3495fi
3496YACC=$ac_cv_prog_YACC
3497if test -n "$YACC"; then
3498 echo "$as_me:$LINENO: result: $YACC" >&5
3499echo "${ECHO_T}$YACC" >&6
3500else
3501 echo "$as_me:$LINENO: result: no" >&5
3502echo "${ECHO_T}no" >&6
3503fi
3504
3505 test -n "$YACC" && break
3506done
3507test -n "$YACC" || YACC="yacc"
3508
3509
3510fi
3511echo "$as_me:$LINENO: result: $ac_cv_has_bison" >&5
3512echo "${ECHO_T}$ac_cv_has_bison" >&6
3513if test "$YACC" != "bison -y"; then
3514 { { echo "$as_me:$LINENO: error: bison not found but required" >&5
3515echo "$as_me: error: bison not found but required" >&2;}
3516 { (exit 1); exit 1; }; }
3517else
3518 YACC=bison
3519
3520fi
3521
3522
3523# Check whether --enable-shared or --disable-shared was given.
3524if test "${enable_shared+set}" = set; then
3525 enableval="$enable_shared"
3526 p=${PACKAGE-default}
John Criswell47fdd832003-07-14 16:52:07 +00003527 case $enableval in
3528 yes) enable_shared=yes ;;
3529 no) enable_shared=no ;;
3530 *)
3531 enable_shared=no
3532 # Look at the argument we got. We use all the common list separators.
3533 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3534 for pkg in $enableval; do
3535 IFS="$lt_save_ifs"
3536 if test "X$pkg" = "X$p"; then
3537 enable_shared=yes
3538 fi
3539 done
3540 IFS="$lt_save_ifs"
3541 ;;
3542 esac
John Criswell7a73b802003-06-30 21:59:07 +00003543else
3544 enable_shared=yes
3545fi;
John Criswell47fdd832003-07-14 16:52:07 +00003546
John Criswell7a73b802003-06-30 21:59:07 +00003547# Check whether --enable-static or --disable-static was given.
3548if test "${enable_static+set}" = set; then
3549 enableval="$enable_static"
3550 p=${PACKAGE-default}
John Criswell47fdd832003-07-14 16:52:07 +00003551 case $enableval in
3552 yes) enable_static=yes ;;
3553 no) enable_static=no ;;
3554 *)
3555 enable_static=no
3556 # Look at the argument we got. We use all the common list separators.
3557 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3558 for pkg in $enableval; do
3559 IFS="$lt_save_ifs"
3560 if test "X$pkg" = "X$p"; then
3561 enable_static=yes
3562 fi
3563 done
3564 IFS="$lt_save_ifs"
3565 ;;
3566 esac
John Criswell7a73b802003-06-30 21:59:07 +00003567else
3568 enable_static=yes
3569fi;
John Criswell47fdd832003-07-14 16:52:07 +00003570
John Criswell7a73b802003-06-30 21:59:07 +00003571# Check whether --enable-fast-install or --disable-fast-install was given.
3572if test "${enable_fast_install+set}" = set; then
3573 enableval="$enable_fast_install"
3574 p=${PACKAGE-default}
John Criswell47fdd832003-07-14 16:52:07 +00003575 case $enableval in
3576 yes) enable_fast_install=yes ;;
3577 no) enable_fast_install=no ;;
3578 *)
3579 enable_fast_install=no
3580 # Look at the argument we got. We use all the common list separators.
3581 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3582 for pkg in $enableval; do
3583 IFS="$lt_save_ifs"
3584 if test "X$pkg" = "X$p"; then
3585 enable_fast_install=yes
3586 fi
3587 done
3588 IFS="$lt_save_ifs"
3589 ;;
3590 esac
John Criswell7a73b802003-06-30 21:59:07 +00003591else
3592 enable_fast_install=yes
3593fi;
John Criswell47fdd832003-07-14 16:52:07 +00003594
3595echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3596echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3597if test "${lt_cv_path_SED+set}" = set; then
3598 echo $ECHO_N "(cached) $ECHO_C" >&6
3599else
3600 # Loop through the user's path and test for sed and gsed.
3601# Then use that list of sed's as ones to test for truncation.
3602as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3603for as_dir in $PATH
3604do
3605 IFS=$as_save_IFS
3606 test -z "$as_dir" && as_dir=.
3607 for lt_ac_prog in sed gsed; do
3608 for ac_exec_ext in '' $ac_executable_extensions; do
3609 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3610 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3611 fi
3612 done
3613 done
3614done
3615lt_ac_max=0
3616lt_ac_count=0
3617# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3618# along with /bin/sed that truncates output.
3619for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3620 test ! -f $lt_ac_sed && break
3621 cat /dev/null > conftest.in
3622 lt_ac_count=0
3623 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3624 # Check for GNU sed and select it if it is found.
3625 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3626 lt_cv_path_SED=$lt_ac_sed
3627 break
3628 fi
3629 while true; do
3630 cat conftest.in conftest.in >conftest.tmp
3631 mv conftest.tmp conftest.in
3632 cp conftest.in conftest.nl
3633 echo >>conftest.nl
3634 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3635 cmp -s conftest.out conftest.nl || break
3636 # 10000 chars as input seems more than enough
3637 test $lt_ac_count -gt 10 && break
3638 lt_ac_count=`expr $lt_ac_count + 1`
3639 if test $lt_ac_count -gt $lt_ac_max; then
3640 lt_ac_max=$lt_ac_count
3641 lt_cv_path_SED=$lt_ac_sed
3642 fi
3643 done
3644done
3645SED=$lt_cv_path_SED
3646
John Criswell7a73b802003-06-30 21:59:07 +00003647fi
3648
John Criswell47fdd832003-07-14 16:52:07 +00003649echo "$as_me:$LINENO: result: $SED" >&5
3650echo "${ECHO_T}$SED" >&6
3651
3652echo "$as_me:$LINENO: checking for egrep" >&5
3653echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3654if test "${ac_cv_prog_egrep+set}" = set; then
3655 echo $ECHO_N "(cached) $ECHO_C" >&6
3656else
3657 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3658 then ac_cv_prog_egrep='grep -E'
3659 else ac_cv_prog_egrep='egrep'
3660 fi
3661fi
3662echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3663echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3664 EGREP=$ac_cv_prog_egrep
3665
3666
John Criswell7a73b802003-06-30 21:59:07 +00003667
3668# Check whether --with-gnu-ld or --without-gnu-ld was given.
3669if test "${with_gnu_ld+set}" = set; then
3670 withval="$with_gnu_ld"
3671 test "$withval" = no || with_gnu_ld=yes
3672else
3673 with_gnu_ld=no
3674fi;
3675ac_prog=ld
3676if test "$GCC" = yes; then
3677 # Check if gcc -print-prog-name=ld gives a path.
John Criswell47fdd832003-07-14 16:52:07 +00003678 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3679echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00003680 case $host in
3681 *-*-mingw*)
3682 # gcc leaves a trailing carriage return which upsets mingw
3683 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3684 *)
3685 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3686 esac
3687 case $ac_prog in
3688 # Accept absolute paths.
John Criswell47fdd832003-07-14 16:52:07 +00003689 [\\/]* | ?:[\\/]*)
John Criswell7a73b802003-06-30 21:59:07 +00003690 re_direlt='/[^/][^/]*/\.\./'
3691 # Canonicalize the path of ld
John Criswell47fdd832003-07-14 16:52:07 +00003692 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
John Criswell7a73b802003-06-30 21:59:07 +00003693 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
John Criswell47fdd832003-07-14 16:52:07 +00003694 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
John Criswell7a73b802003-06-30 21:59:07 +00003695 done
3696 test -z "$LD" && LD="$ac_prog"
3697 ;;
3698 "")
3699 # If it fails, then pretend we aren't using GCC.
3700 ac_prog=ld
3701 ;;
3702 *)
3703 # If it is relative, then search for the first ld in PATH.
3704 with_gnu_ld=unknown
3705 ;;
3706 esac
3707elif test "$with_gnu_ld" = yes; then
3708 echo "$as_me:$LINENO: checking for GNU ld" >&5
3709echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3710else
3711 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3712echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3713fi
3714if test "${lt_cv_path_LD+set}" = set; then
3715 echo $ECHO_N "(cached) $ECHO_C" >&6
3716else
3717 if test -z "$LD"; then
John Criswell47fdd832003-07-14 16:52:07 +00003718 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +00003719 for ac_dir in $PATH; do
John Criswell47fdd832003-07-14 16:52:07 +00003720 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00003721 test -z "$ac_dir" && ac_dir=.
3722 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3723 lt_cv_path_LD="$ac_dir/$ac_prog"
3724 # Check to see if the program is GNU ld. I'd rather use --version,
3725 # but apparently some GNU ld's only accept -v.
3726 # Break only if it was the GNU/non-GNU ld that we prefer.
John Criswell47fdd832003-07-14 16:52:07 +00003727 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3728 *GNU* | *'with BFD'*)
John Criswell7a73b802003-06-30 21:59:07 +00003729 test "$with_gnu_ld" != no && break
John Criswell47fdd832003-07-14 16:52:07 +00003730 ;;
3731 *)
John Criswell7a73b802003-06-30 21:59:07 +00003732 test "$with_gnu_ld" != yes && break
John Criswell47fdd832003-07-14 16:52:07 +00003733 ;;
3734 esac
John Criswell7a73b802003-06-30 21:59:07 +00003735 fi
3736 done
John Criswell47fdd832003-07-14 16:52:07 +00003737 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00003738else
3739 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3740fi
3741fi
3742
3743LD="$lt_cv_path_LD"
3744if test -n "$LD"; then
3745 echo "$as_me:$LINENO: result: $LD" >&5
3746echo "${ECHO_T}$LD" >&6
3747else
3748 echo "$as_me:$LINENO: result: no" >&5
3749echo "${ECHO_T}no" >&6
3750fi
3751test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3752echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3753 { (exit 1); exit 1; }; }
3754echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3755echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3756if test "${lt_cv_prog_gnu_ld+set}" = set; then
3757 echo $ECHO_N "(cached) $ECHO_C" >&6
3758else
3759 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
John Criswell47fdd832003-07-14 16:52:07 +00003760case `"$LD" -v 2>&1 </dev/null` in
3761*GNU* | *'with BFD'*)
John Criswell7a73b802003-06-30 21:59:07 +00003762 lt_cv_prog_gnu_ld=yes
John Criswell47fdd832003-07-14 16:52:07 +00003763 ;;
3764*)
John Criswell7a73b802003-06-30 21:59:07 +00003765 lt_cv_prog_gnu_ld=no
John Criswell47fdd832003-07-14 16:52:07 +00003766 ;;
3767esac
John Criswell7a73b802003-06-30 21:59:07 +00003768fi
3769echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3770echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3771with_gnu_ld=$lt_cv_prog_gnu_ld
3772
3773
3774echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3775echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3776if test "${lt_cv_ld_reload_flag+set}" = set; then
3777 echo $ECHO_N "(cached) $ECHO_C" >&6
3778else
3779 lt_cv_ld_reload_flag='-r'
3780fi
3781echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3782echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3783reload_flag=$lt_cv_ld_reload_flag
John Criswell47fdd832003-07-14 16:52:07 +00003784case $reload_flag in
3785"" | " "*) ;;
3786*) reload_flag=" $reload_flag" ;;
3787esac
3788reload_cmds='$LD$reload_flag -o $output$reload_objs'
John Criswell7a73b802003-06-30 21:59:07 +00003789
3790echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3791echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3792if test "${lt_cv_path_NM+set}" = set; then
3793 echo $ECHO_N "(cached) $ECHO_C" >&6
3794else
3795 if test -n "$NM"; then
3796 # Let the user override the test.
3797 lt_cv_path_NM="$NM"
3798else
John Criswell47fdd832003-07-14 16:52:07 +00003799 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +00003800 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
John Criswell47fdd832003-07-14 16:52:07 +00003801 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00003802 test -z "$ac_dir" && ac_dir=.
John Criswell47fdd832003-07-14 16:52:07 +00003803 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3804 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
John Criswell7a73b802003-06-30 21:59:07 +00003805 # Check to see if the nm accepts a BSD-compat flag.
3806 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3807 # nm: unknown option "B" ignored
3808 # Tru64's nm complains that /dev/null is an invalid object file
John Criswell47fdd832003-07-14 16:52:07 +00003809 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3810 */dev/null* | *'Invalid file or object type'*)
John Criswell7a73b802003-06-30 21:59:07 +00003811 lt_cv_path_NM="$tmp_nm -B"
3812 break
John Criswell47fdd832003-07-14 16:52:07 +00003813 ;;
3814 *)
3815 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3816 */dev/null*)
3817 lt_cv_path_NM="$tmp_nm -p"
3818 break
3819 ;;
3820 *)
3821 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3822 continue # so that we can try to find one that supports BSD flags
3823 ;;
3824 esac
3825 esac
John Criswell7a73b802003-06-30 21:59:07 +00003826 fi
3827 done
John Criswell47fdd832003-07-14 16:52:07 +00003828 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00003829 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3830fi
3831fi
John Criswell47fdd832003-07-14 16:52:07 +00003832echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3833echo "${ECHO_T}$lt_cv_path_NM" >&6
John Criswell7a73b802003-06-30 21:59:07 +00003834NM="$lt_cv_path_NM"
John Criswell7a73b802003-06-30 21:59:07 +00003835
3836echo "$as_me:$LINENO: checking whether ln -s works" >&5
3837echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3838LN_S=$as_ln_s
3839if test "$LN_S" = "ln -s"; then
3840 echo "$as_me:$LINENO: result: yes" >&5
3841echo "${ECHO_T}yes" >&6
3842else
3843 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3844echo "${ECHO_T}no, using $LN_S" >&6
3845fi
3846
John Criswell47fdd832003-07-14 16:52:07 +00003847echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3848echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00003849if test "${lt_cv_deplibs_check_method+set}" = set; then
3850 echo $ECHO_N "(cached) $ECHO_C" >&6
3851else
3852 lt_cv_file_magic_cmd='$MAGIC_CMD'
3853lt_cv_file_magic_test_file=
3854lt_cv_deplibs_check_method='unknown'
3855# Need to set the preceding variable on all platforms that support
3856# interlibrary dependencies.
3857# 'none' -- dependencies not supported.
3858# `unknown' -- same as none, but documents that we really don't know.
3859# 'pass_all' -- all dependencies passed with no checks.
3860# 'test_compile' -- check by making test program.
3861# 'file_magic [[regex]]' -- check by looking for files in library path
John Criswell47fdd832003-07-14 16:52:07 +00003862# which responds to the $file_magic_cmd with a given extended regex.
John Criswell7a73b802003-06-30 21:59:07 +00003863# If you have `file' or equivalent on your system and you're not sure
3864# whether `pass_all' will *always* work, you probably want this one.
3865
3866case $host_os in
3867aix4* | aix5*)
3868 lt_cv_deplibs_check_method=pass_all
3869 ;;
3870
3871beos*)
3872 lt_cv_deplibs_check_method=pass_all
3873 ;;
3874
3875bsdi4*)
3876 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3877 lt_cv_file_magic_cmd='/usr/bin/file -L'
3878 lt_cv_file_magic_test_file=/shlib/libc.so
3879 ;;
3880
3881cygwin* | mingw* | pw32*)
John Criswell47fdd832003-07-14 16:52:07 +00003882 # win32_libid is a shell function defined in ltmain.sh
3883 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3884 lt_cv_file_magic_cmd='win32_libid'
John Criswell7a73b802003-06-30 21:59:07 +00003885 ;;
3886
3887darwin* | rhapsody*)
John Criswell47fdd832003-07-14 16:52:07 +00003888 # this will be overwritten by pass_all, but leave it in just in case
John Criswell7a73b802003-06-30 21:59:07 +00003889 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3890 lt_cv_file_magic_cmd='/usr/bin/file -L'
3891 case "$host_os" in
3892 rhapsody* | darwin1.[012])
John Criswell47fdd832003-07-14 16:52:07 +00003893 lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
John Criswell7a73b802003-06-30 21:59:07 +00003894 ;;
3895 *) # Darwin 1.3 on
3896 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3897 ;;
3898 esac
John Criswell47fdd832003-07-14 16:52:07 +00003899 lt_cv_deplibs_check_method=pass_all
John Criswell7a73b802003-06-30 21:59:07 +00003900 ;;
3901
3902freebsd*)
3903 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3904 case $host_cpu in
3905 i*86 )
3906 # Not sure whether the presence of OpenBSD here was a mistake.
3907 # Let's accept both of them until this is cleared up.
3908 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3909 lt_cv_file_magic_cmd=/usr/bin/file
3910 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3911 ;;
3912 esac
3913 else
3914 lt_cv_deplibs_check_method=pass_all
3915 fi
3916 ;;
3917
3918gnu*)
3919 lt_cv_deplibs_check_method=pass_all
3920 ;;
3921
John Criswell47fdd832003-07-14 16:52:07 +00003922hpux10.20* | hpux11*)
John Criswell7a73b802003-06-30 21:59:07 +00003923 lt_cv_file_magic_cmd=/usr/bin/file
John Criswell47fdd832003-07-14 16:52:07 +00003924 case "$host_cpu" in
3925 ia64*)
3926 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3927 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3928 ;;
3929 hppa*64*)
3930 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]'
3931 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3932 ;;
3933 *)
3934 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3935 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3936 ;;
3937 esac
John Criswell7a73b802003-06-30 21:59:07 +00003938 ;;
3939
John Criswell47fdd832003-07-14 16:52:07 +00003940irix5* | irix6* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +00003941 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00003942 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +00003943 # this will be overridden with pass_all, but let us keep it just in case
3944 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3945 ;;
3946 *)
3947 case $LD in
3948 *-32|*"-32 ") libmagic=32-bit;;
3949 *-n32|*"-n32 ") libmagic=N32;;
3950 *-64|*"-64 ") libmagic=64-bit;;
3951 *) libmagic=never-match;;
3952 esac
3953 # this will be overridden with pass_all, but let us keep it just in case
3954 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3955 ;;
3956 esac
3957 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3958 lt_cv_deplibs_check_method=pass_all
3959 ;;
3960
3961# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +00003962linux*)
John Criswell7a73b802003-06-30 21:59:07 +00003963 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +00003964 alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*)
John Criswell7a73b802003-06-30 21:59:07 +00003965 lt_cv_deplibs_check_method=pass_all ;;
3966 *)
3967 # glibc up to 2.1.1 does not perform some relocations on ARM
3968 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3969 esac
3970 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3971 ;;
3972
3973netbsd*)
3974 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +00003975 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
John Criswell7a73b802003-06-30 21:59:07 +00003976 else
John Criswell47fdd832003-07-14 16:52:07 +00003977 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
John Criswell7a73b802003-06-30 21:59:07 +00003978 fi
3979 ;;
3980
3981newos6*)
3982 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3983 lt_cv_file_magic_cmd=/usr/bin/file
3984 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3985 ;;
3986
John Criswell47fdd832003-07-14 16:52:07 +00003987nto-qnx)
3988 lt_cv_deplibs_check_method=unknown
3989 ;;
3990
John Criswell7a73b802003-06-30 21:59:07 +00003991openbsd*)
3992 lt_cv_file_magic_cmd=/usr/bin/file
3993 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3994 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3995 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3996 else
3997 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3998 fi
3999 ;;
4000
4001osf3* | osf4* | osf5*)
4002 # this will be overridden with pass_all, but let us keep it just in case
4003 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4004 lt_cv_file_magic_test_file=/shlib/libc.so
4005 lt_cv_deplibs_check_method=pass_all
4006 ;;
4007
4008sco3.2v5*)
4009 lt_cv_deplibs_check_method=pass_all
4010 ;;
4011
4012solaris*)
4013 lt_cv_deplibs_check_method=pass_all
4014 lt_cv_file_magic_test_file=/lib/libc.so
4015 ;;
4016
John Criswell7a73b802003-06-30 21:59:07 +00004017sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4018 case $host_vendor in
4019 motorola)
4020 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]'
4021 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4022 ;;
4023 ncr)
4024 lt_cv_deplibs_check_method=pass_all
4025 ;;
4026 sequent)
4027 lt_cv_file_magic_cmd='/bin/file'
4028 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4029 ;;
4030 sni)
4031 lt_cv_file_magic_cmd='/bin/file'
4032 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4033 lt_cv_file_magic_test_file=/lib/libc.so
4034 ;;
John Criswell47fdd832003-07-14 16:52:07 +00004035 siemens)
4036 lt_cv_deplibs_check_method=pass_all
4037 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004038 esac
4039 ;;
John Criswell47fdd832003-07-14 16:52:07 +00004040
4041sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4042 lt_cv_deplibs_check_method=pass_all
4043 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004044esac
4045
4046fi
4047echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4048echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4049file_magic_cmd=$lt_cv_file_magic_cmd
4050deplibs_check_method=$lt_cv_deplibs_check_method
John Criswell47fdd832003-07-14 16:52:07 +00004051test -z "$deplibs_check_method" && deplibs_check_method=unknown
John Criswell7a73b802003-06-30 21:59:07 +00004052
4053
4054
4055
John Criswell47fdd832003-07-14 16:52:07 +00004056# If no C compiler was specified, use CC.
4057LTCC=${LTCC-"$CC"}
John Criswell7a73b802003-06-30 21:59:07 +00004058
John Criswell47fdd832003-07-14 16:52:07 +00004059# Allow CC to be a program name with arguments.
4060compiler=$CC
John Criswell7a73b802003-06-30 21:59:07 +00004061
John Criswell47fdd832003-07-14 16:52:07 +00004062# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4063if test "${enable_libtool_lock+set}" = set; then
4064 enableval="$enable_libtool_lock"
John Criswell7a73b802003-06-30 21:59:07 +00004065
John Criswell47fdd832003-07-14 16:52:07 +00004066fi;
4067test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
John Criswell7a73b802003-06-30 21:59:07 +00004068
John Criswell47fdd832003-07-14 16:52:07 +00004069# Some flags need to be propagated to the compiler or linker for good
4070# libtool support.
4071case $host in
4072ia64-*-hpux*)
4073 # Find out which ABI we are using.
4074 echo 'int i;' > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4076 (eval $ac_compile) 2>&5
4077 ac_status=$?
4078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4079 (exit $ac_status); }; then
John Criswell47fdd832003-07-14 16:52:07 +00004080 case `/usr/bin/file conftest.$ac_objext` in
4081 *ELF-32*)
4082 HPUX_IA64_MODE="32"
4083 ;;
4084 *ELF-64*)
4085 HPUX_IA64_MODE="64"
4086 ;;
4087 esac
4088 fi
4089 rm -rf conftest*
4090 ;;
4091*-*-irix6*)
4092 # Find out which ABI we are using.
John Criswell60577602003-11-25 17:49:22 +00004093 echo '#line 4093 "configure"' > conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +00004094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4095 (eval $ac_compile) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00004096 ac_status=$?
4097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00004098 (exit $ac_status); }; then
4099 if test "$lt_cv_prog_gnu_ld" = yes; then
4100 case `/usr/bin/file conftest.$ac_objext` in
4101 *32-bit*)
4102 LD="${LD-ld} -melf32bsmip"
4103 ;;
4104 *N32*)
4105 LD="${LD-ld} -melf32bmipn32"
4106 ;;
4107 *64-bit*)
4108 LD="${LD-ld} -melf64bmip"
4109 ;;
4110 esac
4111 else
4112 case `/usr/bin/file conftest.$ac_objext` in
4113 *32-bit*)
4114 LD="${LD-ld} -32"
4115 ;;
4116 *N32*)
4117 LD="${LD-ld} -n32"
4118 ;;
4119 *64-bit*)
4120 LD="${LD-ld} -64"
4121 ;;
4122 esac
4123 fi
4124 fi
4125 rm -rf conftest*
4126 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004127
John Criswell47fdd832003-07-14 16:52:07 +00004128x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4129 # Find out which ABI we are using.
4130 echo 'int i;' > conftest.$ac_ext
4131 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4132 (eval $ac_compile) 2>&5
4133 ac_status=$?
4134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4135 (exit $ac_status); }; then
4136 case "`/usr/bin/file conftest.o`" in
4137 *32-bit*)
4138 case $host in
4139 x86_64-*linux*)
4140 LD="${LD-ld} -m elf_i386"
4141 ;;
4142 ppc64-*linux*)
4143 LD="${LD-ld} -m elf32ppclinux"
4144 ;;
4145 s390x-*linux*)
4146 LD="${LD-ld} -m elf_s390"
4147 ;;
4148 sparc64-*linux*)
4149 LD="${LD-ld} -m elf32_sparc"
4150 ;;
4151 esac
4152 ;;
4153 *64-bit*)
4154 case $host in
4155 x86_64-*linux*)
4156 LD="${LD-ld} -m elf_x86_64"
4157 ;;
4158 ppc*-*linux*|powerpc*-*linux*)
4159 LD="${LD-ld} -m elf64ppc"
4160 ;;
4161 s390*-*linux*)
4162 LD="${LD-ld} -m elf64_s390"
4163 ;;
4164 sparc*-*linux*)
4165 LD="${LD-ld} -m elf64_sparc"
4166 ;;
4167 esac
4168 ;;
4169 esac
4170 fi
4171 rm -rf conftest*
4172 ;;
4173
4174*-*-sco3.2v5*)
4175 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4176 SAVE_CFLAGS="$CFLAGS"
4177 CFLAGS="$CFLAGS -belf"
4178 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4179echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4180if test "${lt_cv_cc_needs_belf+set}" = set; then
4181 echo $ECHO_N "(cached) $ECHO_C" >&6
4182else
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
4189 cat >conftest.$ac_ext <<_ACEOF
4190#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004191/* confdefs.h. */
4192_ACEOF
4193cat confdefs.h >>conftest.$ac_ext
4194cat >>conftest.$ac_ext <<_ACEOF
4195/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00004196
John Criswell47fdd832003-07-14 16:52:07 +00004197int
4198main ()
John Criswell7a73b802003-06-30 21:59:07 +00004199{
John Criswell7a73b802003-06-30 21:59:07 +00004200
John Criswell47fdd832003-07-14 16:52:07 +00004201 ;
4202 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00004203}
John Criswell47fdd832003-07-14 16:52:07 +00004204_ACEOF
4205rm -f conftest.$ac_objext conftest$ac_exeext
4206if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
John Criswell7a73b802003-06-30 21:59:07 +00004207 (eval $ac_link) 2>&5
4208 ac_status=$?
4209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00004210 (exit $ac_status); } &&
4211 { ac_try='test -s conftest$ac_exeext'
4212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4213 (eval $ac_try) 2>&5
4214 ac_status=$?
4215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4216 (exit $ac_status); }; }; then
4217 lt_cv_cc_needs_belf=yes
John Criswell7a73b802003-06-30 21:59:07 +00004218else
John Criswell47fdd832003-07-14 16:52:07 +00004219 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004220sed 's/^/| /' conftest.$ac_ext >&5
4221
John Criswell47fdd832003-07-14 16:52:07 +00004222lt_cv_cc_needs_belf=no
John Criswell7a73b802003-06-30 21:59:07 +00004223fi
John Criswell47fdd832003-07-14 16:52:07 +00004224rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4225 ac_ext=c
4226ac_cpp='$CPP $CPPFLAGS'
4227ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4228ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4229ac_compiler_gnu=$ac_cv_c_compiler_gnu
4230
John Criswell7a73b802003-06-30 21:59:07 +00004231fi
John Criswell47fdd832003-07-14 16:52:07 +00004232echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4233echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4234 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4235 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4236 CFLAGS="$SAVE_CFLAGS"
4237 fi
4238 ;;
4239
4240esac
4241
4242need_locks="$enable_libtool_lock"
4243
John Criswell7a73b802003-06-30 21:59:07 +00004244
4245
4246echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4247echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4248if test "${ac_cv_header_stdc+set}" = set; then
4249 echo $ECHO_N "(cached) $ECHO_C" >&6
4250else
4251 cat >conftest.$ac_ext <<_ACEOF
4252#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004253/* confdefs.h. */
4254_ACEOF
4255cat confdefs.h >>conftest.$ac_ext
4256cat >>conftest.$ac_ext <<_ACEOF
4257/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004258#include <stdlib.h>
4259#include <stdarg.h>
4260#include <string.h>
4261#include <float.h>
4262
John Criswell0c38eaf2003-09-10 15:17:25 +00004263int
4264main ()
4265{
4266
4267 ;
4268 return 0;
4269}
John Criswell7a73b802003-06-30 21:59:07 +00004270_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004271rm -f conftest.$ac_objext
4272if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4273 (eval $ac_compile) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00004274 ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +00004275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004276 (exit $ac_status); } &&
4277 { ac_try='test -s conftest.$ac_objext'
4278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4279 (eval $ac_try) 2>&5
4280 ac_status=$?
4281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4282 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00004283 ac_cv_header_stdc=yes
4284else
4285 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004286sed 's/^/| /' conftest.$ac_ext >&5
4287
4288ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00004289fi
John Criswell0c38eaf2003-09-10 15:17:25 +00004290rm -f conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004291
4292if test $ac_cv_header_stdc = yes; then
4293 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4294 cat >conftest.$ac_ext <<_ACEOF
4295#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004296/* confdefs.h. */
4297_ACEOF
4298cat confdefs.h >>conftest.$ac_ext
4299cat >>conftest.$ac_ext <<_ACEOF
4300/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004301#include <string.h>
4302
4303_ACEOF
4304if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00004305 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00004306 :
4307else
4308 ac_cv_header_stdc=no
4309fi
4310rm -f conftest*
4311
4312fi
4313
4314if test $ac_cv_header_stdc = yes; then
4315 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4316 cat >conftest.$ac_ext <<_ACEOF
4317#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004318/* confdefs.h. */
4319_ACEOF
4320cat confdefs.h >>conftest.$ac_ext
4321cat >>conftest.$ac_ext <<_ACEOF
4322/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004323#include <stdlib.h>
4324
4325_ACEOF
4326if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00004327 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00004328 :
4329else
4330 ac_cv_header_stdc=no
4331fi
4332rm -f conftest*
4333
4334fi
4335
4336if test $ac_cv_header_stdc = yes; then
4337 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4338 if test "$cross_compiling" = yes; then
4339 :
4340else
4341 cat >conftest.$ac_ext <<_ACEOF
4342#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004343/* confdefs.h. */
4344_ACEOF
4345cat confdefs.h >>conftest.$ac_ext
4346cat >>conftest.$ac_ext <<_ACEOF
4347/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004348#include <ctype.h>
4349#if ((' ' & 0x0FF) == 0x020)
4350# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4351# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4352#else
John Criswell0c38eaf2003-09-10 15:17:25 +00004353# define ISLOWER(c) \
4354 (('a' <= (c) && (c) <= 'i') \
John Criswell7a73b802003-06-30 21:59:07 +00004355 || ('j' <= (c) && (c) <= 'r') \
4356 || ('s' <= (c) && (c) <= 'z'))
4357# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4358#endif
4359
4360#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4361int
4362main ()
4363{
4364 int i;
4365 for (i = 0; i < 256; i++)
4366 if (XOR (islower (i), ISLOWER (i))
4367 || toupper (i) != TOUPPER (i))
4368 exit(2);
4369 exit (0);
4370}
4371_ACEOF
4372rm -f conftest$ac_exeext
4373if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4374 (eval $ac_link) 2>&5
4375 ac_status=$?
4376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4377 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4379 (eval $ac_try) 2>&5
4380 ac_status=$?
4381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4382 (exit $ac_status); }; }; then
4383 :
4384else
4385 echo "$as_me: program exited with status $ac_status" >&5
4386echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004387sed 's/^/| /' conftest.$ac_ext >&5
4388
John Criswell7a73b802003-06-30 21:59:07 +00004389( exit $ac_status )
4390ac_cv_header_stdc=no
4391fi
John Criswell0c38eaf2003-09-10 15:17:25 +00004392rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004393fi
4394fi
4395fi
4396echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4397echo "${ECHO_T}$ac_cv_header_stdc" >&6
4398if test $ac_cv_header_stdc = yes; then
4399
4400cat >>confdefs.h <<\_ACEOF
4401#define STDC_HEADERS 1
4402_ACEOF
4403
4404fi
4405
4406# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4417 inttypes.h stdint.h unistd.h
4418do
4419as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4420echo "$as_me:$LINENO: checking for $ac_header" >&5
4421echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4422if eval "test \"\${$as_ac_Header+set}\" = set"; then
4423 echo $ECHO_N "(cached) $ECHO_C" >&6
4424else
4425 cat >conftest.$ac_ext <<_ACEOF
4426#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004427/* confdefs.h. */
4428_ACEOF
4429cat confdefs.h >>conftest.$ac_ext
4430cat >>conftest.$ac_ext <<_ACEOF
4431/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004432$ac_includes_default
4433
4434#include <$ac_header>
4435_ACEOF
4436rm -f conftest.$ac_objext
4437if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4438 (eval $ac_compile) 2>&5
4439 ac_status=$?
4440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4441 (exit $ac_status); } &&
4442 { ac_try='test -s conftest.$ac_objext'
4443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4444 (eval $ac_try) 2>&5
4445 ac_status=$?
4446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4447 (exit $ac_status); }; }; then
4448 eval "$as_ac_Header=yes"
4449else
4450 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004451sed 's/^/| /' conftest.$ac_ext >&5
4452
John Criswell7a73b802003-06-30 21:59:07 +00004453eval "$as_ac_Header=no"
4454fi
4455rm -f conftest.$ac_objext conftest.$ac_ext
4456fi
4457echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4458echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4459if test `eval echo '${'$as_ac_Header'}'` = yes; then
4460 cat >>confdefs.h <<_ACEOF
4461#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4462_ACEOF
4463
4464fi
4465
4466done
4467
4468
4469
4470for ac_header in dlfcn.h
4471do
4472as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4473if eval "test \"\${$as_ac_Header+set}\" = set"; then
4474 echo "$as_me:$LINENO: checking for $ac_header" >&5
4475echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4476if eval "test \"\${$as_ac_Header+set}\" = set"; then
4477 echo $ECHO_N "(cached) $ECHO_C" >&6
4478fi
4479echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4480echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4481else
4482 # Is the header compilable?
4483echo "$as_me:$LINENO: checking $ac_header usability" >&5
4484echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4485cat >conftest.$ac_ext <<_ACEOF
4486#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004487/* confdefs.h. */
4488_ACEOF
4489cat confdefs.h >>conftest.$ac_ext
4490cat >>conftest.$ac_ext <<_ACEOF
4491/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004492$ac_includes_default
4493#include <$ac_header>
4494_ACEOF
4495rm -f conftest.$ac_objext
4496if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4497 (eval $ac_compile) 2>&5
4498 ac_status=$?
4499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4500 (exit $ac_status); } &&
4501 { ac_try='test -s conftest.$ac_objext'
4502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4503 (eval $ac_try) 2>&5
4504 ac_status=$?
4505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4506 (exit $ac_status); }; }; then
4507 ac_header_compiler=yes
4508else
4509 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004510sed 's/^/| /' conftest.$ac_ext >&5
4511
John Criswell7a73b802003-06-30 21:59:07 +00004512ac_header_compiler=no
4513fi
4514rm -f conftest.$ac_objext conftest.$ac_ext
4515echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4516echo "${ECHO_T}$ac_header_compiler" >&6
4517
4518# Is the header present?
4519echo "$as_me:$LINENO: checking $ac_header presence" >&5
4520echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4521cat >conftest.$ac_ext <<_ACEOF
4522#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004523/* confdefs.h. */
4524_ACEOF
4525cat confdefs.h >>conftest.$ac_ext
4526cat >>conftest.$ac_ext <<_ACEOF
4527/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004528#include <$ac_header>
4529_ACEOF
4530if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4531 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4532 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004533 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00004534 rm -f conftest.er1
4535 cat conftest.err >&5
4536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4537 (exit $ac_status); } >/dev/null; then
4538 if test -s conftest.err; then
4539 ac_cpp_err=$ac_c_preproc_warn_flag
4540 else
4541 ac_cpp_err=
4542 fi
4543else
4544 ac_cpp_err=yes
4545fi
4546if test -z "$ac_cpp_err"; then
4547 ac_header_preproc=yes
4548else
4549 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004550sed 's/^/| /' conftest.$ac_ext >&5
4551
John Criswell7a73b802003-06-30 21:59:07 +00004552 ac_header_preproc=no
4553fi
4554rm -f conftest.err conftest.$ac_ext
4555echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4556echo "${ECHO_T}$ac_header_preproc" >&6
4557
4558# So? What about this header?
4559case $ac_header_compiler:$ac_header_preproc in
4560 yes:no )
4561 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4562echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4563 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004564echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4565 (
4566 cat <<\_ASBOX
4567## ------------------------------------ ##
4568## Report this to bug-autoconf@gnu.org. ##
4569## ------------------------------------ ##
4570_ASBOX
4571 ) |
4572 sed "s/^/$as_me: WARNING: /" >&2
4573 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004574 no:yes )
4575 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4576echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4577 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4578echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4579 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004580echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4581 (
4582 cat <<\_ASBOX
4583## ------------------------------------ ##
4584## Report this to bug-autoconf@gnu.org. ##
4585## ------------------------------------ ##
4586_ASBOX
4587 ) |
4588 sed "s/^/$as_me: WARNING: /" >&2
4589 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004590esac
4591echo "$as_me:$LINENO: checking for $ac_header" >&5
4592echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4593if eval "test \"\${$as_ac_Header+set}\" = set"; then
4594 echo $ECHO_N "(cached) $ECHO_C" >&6
4595else
4596 eval "$as_ac_Header=$ac_header_preproc"
4597fi
4598echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4599echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4600
4601fi
4602if test `eval echo '${'$as_ac_Header'}'` = yes; then
4603 cat >>confdefs.h <<_ACEOF
4604#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4605_ACEOF
4606
4607fi
4608
4609done
4610
John Criswell47fdd832003-07-14 16:52:07 +00004611ac_ext=cc
4612ac_cpp='$CXXCPP $CPPFLAGS'
4613ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4614ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4615ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4616echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4617echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4618if test -z "$CXXCPP"; then
4619 if test "${ac_cv_prog_CXXCPP+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00004620 echo $ECHO_N "(cached) $ECHO_C" >&6
4621else
John Criswell47fdd832003-07-14 16:52:07 +00004622 # Double quotes because CXXCPP needs to be expanded
4623 for CXXCPP in "$CXX -E" "/lib/cpp"
4624 do
4625 ac_preproc_ok=false
4626for ac_cxx_preproc_warn_flag in '' yes
4627do
4628 # Use a header file that comes with gcc, so configuring glibc
4629 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00004630 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4631 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +00004632 # On the NeXT, cc -E runs the code through the compiler's parser,
4633 # not just through cpp. "Syntax error" is here to catch this case.
4634 cat >conftest.$ac_ext <<_ACEOF
4635#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004636/* confdefs.h. */
4637_ACEOF
4638cat confdefs.h >>conftest.$ac_ext
4639cat >>conftest.$ac_ext <<_ACEOF
4640/* end confdefs.h. */
4641#ifdef __STDC__
4642# include <limits.h>
4643#else
4644# include <assert.h>
4645#endif
John Criswell47fdd832003-07-14 16:52:07 +00004646 Syntax error
4647_ACEOF
4648if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4649 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4650 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004651 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00004652 rm -f conftest.er1
4653 cat conftest.err >&5
4654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4655 (exit $ac_status); } >/dev/null; then
4656 if test -s conftest.err; then
4657 ac_cpp_err=$ac_cxx_preproc_warn_flag
John Criswell7a73b802003-06-30 21:59:07 +00004658 else
John Criswell47fdd832003-07-14 16:52:07 +00004659 ac_cpp_err=
John Criswell7a73b802003-06-30 21:59:07 +00004660 fi
John Criswell47fdd832003-07-14 16:52:07 +00004661else
4662 ac_cpp_err=yes
4663fi
4664if test -z "$ac_cpp_err"; then
4665 :
4666else
4667 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004668sed 's/^/| /' conftest.$ac_ext >&5
4669
John Criswell47fdd832003-07-14 16:52:07 +00004670 # Broken: fails on valid input.
4671continue
4672fi
4673rm -f conftest.err conftest.$ac_ext
4674
4675 # OK, works on sane cases. Now check whether non-existent headers
4676 # can be detected and how.
4677 cat >conftest.$ac_ext <<_ACEOF
4678#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004679/* confdefs.h. */
4680_ACEOF
4681cat confdefs.h >>conftest.$ac_ext
4682cat >>conftest.$ac_ext <<_ACEOF
4683/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00004684#include <ac_nonexistent.h>
4685_ACEOF
4686if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4687 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4688 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004689 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00004690 rm -f conftest.er1
4691 cat conftest.err >&5
4692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4693 (exit $ac_status); } >/dev/null; then
4694 if test -s conftest.err; then
4695 ac_cpp_err=$ac_cxx_preproc_warn_flag
4696 else
4697 ac_cpp_err=
4698 fi
4699else
4700 ac_cpp_err=yes
4701fi
4702if test -z "$ac_cpp_err"; then
4703 # Broken: success on invalid input.
4704continue
4705else
4706 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004707sed 's/^/| /' conftest.$ac_ext >&5
4708
John Criswell47fdd832003-07-14 16:52:07 +00004709 # Passes both tests.
4710ac_preproc_ok=:
4711break
4712fi
4713rm -f conftest.err conftest.$ac_ext
4714
4715done
4716# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4717rm -f conftest.err conftest.$ac_ext
4718if $ac_preproc_ok; then
4719 break
John Criswell7a73b802003-06-30 21:59:07 +00004720fi
4721
John Criswell47fdd832003-07-14 16:52:07 +00004722 done
4723 ac_cv_prog_CXXCPP=$CXXCPP
4724
4725fi
4726 CXXCPP=$ac_cv_prog_CXXCPP
4727else
4728 ac_cv_prog_CXXCPP=$CXXCPP
4729fi
4730echo "$as_me:$LINENO: result: $CXXCPP" >&5
4731echo "${ECHO_T}$CXXCPP" >&6
4732ac_preproc_ok=false
4733for ac_cxx_preproc_warn_flag in '' yes
4734do
4735 # Use a header file that comes with gcc, so configuring glibc
4736 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00004737 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4738 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +00004739 # On the NeXT, cc -E runs the code through the compiler's parser,
4740 # not just through cpp. "Syntax error" is here to catch this case.
4741 cat >conftest.$ac_ext <<_ACEOF
4742#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004743/* confdefs.h. */
4744_ACEOF
4745cat confdefs.h >>conftest.$ac_ext
4746cat >>conftest.$ac_ext <<_ACEOF
4747/* end confdefs.h. */
4748#ifdef __STDC__
4749# include <limits.h>
4750#else
4751# include <assert.h>
4752#endif
John Criswell47fdd832003-07-14 16:52:07 +00004753 Syntax error
4754_ACEOF
4755if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4756 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4757 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004758 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00004759 rm -f conftest.er1
4760 cat conftest.err >&5
4761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4762 (exit $ac_status); } >/dev/null; then
4763 if test -s conftest.err; then
4764 ac_cpp_err=$ac_cxx_preproc_warn_flag
4765 else
4766 ac_cpp_err=
4767 fi
4768else
4769 ac_cpp_err=yes
4770fi
4771if test -z "$ac_cpp_err"; then
4772 :
4773else
4774 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004775sed 's/^/| /' conftest.$ac_ext >&5
4776
John Criswell47fdd832003-07-14 16:52:07 +00004777 # Broken: fails on valid input.
4778continue
4779fi
4780rm -f conftest.err conftest.$ac_ext
4781
4782 # OK, works on sane cases. Now check whether non-existent headers
4783 # can be detected and how.
4784 cat >conftest.$ac_ext <<_ACEOF
4785#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004786/* confdefs.h. */
4787_ACEOF
4788cat confdefs.h >>conftest.$ac_ext
4789cat >>conftest.$ac_ext <<_ACEOF
4790/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00004791#include <ac_nonexistent.h>
4792_ACEOF
4793if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4794 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4795 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004796 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00004797 rm -f conftest.er1
4798 cat conftest.err >&5
4799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4800 (exit $ac_status); } >/dev/null; then
4801 if test -s conftest.err; then
4802 ac_cpp_err=$ac_cxx_preproc_warn_flag
4803 else
4804 ac_cpp_err=
4805 fi
4806else
4807 ac_cpp_err=yes
4808fi
4809if test -z "$ac_cpp_err"; then
4810 # Broken: success on invalid input.
4811continue
4812else
4813 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004814sed 's/^/| /' conftest.$ac_ext >&5
4815
John Criswell47fdd832003-07-14 16:52:07 +00004816 # Passes both tests.
4817ac_preproc_ok=:
4818break
4819fi
4820rm -f conftest.err conftest.$ac_ext
4821
4822done
4823# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4824rm -f conftest.err conftest.$ac_ext
4825if $ac_preproc_ok; then
4826 :
4827else
John Criswell0c38eaf2003-09-10 15:17:25 +00004828 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4829See \`config.log' for more details." >&5
4830echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4831See \`config.log' for more details." >&2;}
John Criswell47fdd832003-07-14 16:52:07 +00004832 { (exit 1); exit 1; }; }
4833fi
4834
4835ac_ext=cc
4836ac_cpp='$CXXCPP $CPPFLAGS'
4837ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4838ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4839ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4840
4841
4842ac_ext=f
4843ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4844ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4845ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4846if test -n "$ac_tool_prefix"; then
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 +00004848 do
4849 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4850set dummy $ac_tool_prefix$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_F77+set}" = set; then
4854 echo $ECHO_N "(cached) $ECHO_C" >&6
4855else
4856 if test -n "$F77"; then
4857 ac_cv_prog_F77="$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_F77="$ac_tool_prefix$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
4875F77=$ac_cv_prog_F77
4876if test -n "$F77"; then
4877 echo "$as_me:$LINENO: result: $F77" >&5
4878echo "${ECHO_T}$F77" >&6
4879else
4880 echo "$as_me:$LINENO: result: no" >&5
4881echo "${ECHO_T}no" >&6
4882fi
4883
4884 test -n "$F77" && break
4885 done
4886fi
4887if test -z "$F77"; then
4888 ac_ct_F77=$F77
John Criswell0c38eaf2003-09-10 15:17:25 +00004889 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 +00004890do
4891 # Extract the first word of "$ac_prog", so it can be a program name with args.
4892set dummy $ac_prog; ac_word=$2
4893echo "$as_me:$LINENO: checking for $ac_word" >&5
4894echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4895if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
4896 echo $ECHO_N "(cached) $ECHO_C" >&6
4897else
4898 if test -n "$ac_ct_F77"; then
4899 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4900else
4901as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4902for as_dir in $PATH
4903do
4904 IFS=$as_save_IFS
4905 test -z "$as_dir" && as_dir=.
4906 for ac_exec_ext in '' $ac_executable_extensions; do
4907 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4908 ac_cv_prog_ac_ct_F77="$ac_prog"
4909 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4910 break 2
4911 fi
4912done
4913done
4914
4915fi
4916fi
4917ac_ct_F77=$ac_cv_prog_ac_ct_F77
4918if test -n "$ac_ct_F77"; then
4919 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
4920echo "${ECHO_T}$ac_ct_F77" >&6
4921else
4922 echo "$as_me:$LINENO: result: no" >&5
4923echo "${ECHO_T}no" >&6
4924fi
4925
4926 test -n "$ac_ct_F77" && break
4927done
4928
4929 F77=$ac_ct_F77
4930fi
4931
4932
4933# Provide some information about the compiler.
John Criswell60577602003-11-25 17:49:22 +00004934echo "$as_me:4934:" \
John Criswell47fdd832003-07-14 16:52:07 +00004935 "checking for Fortran 77 compiler version" >&5
4936ac_compiler=`set X $ac_compile; echo $2`
4937{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4938 (eval $ac_compiler --version </dev/null >&5) 2>&5
4939 ac_status=$?
4940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4941 (exit $ac_status); }
4942{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4943 (eval $ac_compiler -v </dev/null >&5) 2>&5
4944 ac_status=$?
4945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4946 (exit $ac_status); }
4947{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4948 (eval $ac_compiler -V </dev/null >&5) 2>&5
4949 ac_status=$?
4950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4951 (exit $ac_status); }
4952
4953# If we don't use `.F' as extension, the preprocessor is not run on the
4954# input file.
4955ac_save_ext=$ac_ext
4956ac_ext=F
4957echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
4958echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
4959if test "${ac_cv_f77_compiler_gnu+set}" = set; then
4960 echo $ECHO_N "(cached) $ECHO_C" >&6
4961else
4962 cat >conftest.$ac_ext <<_ACEOF
4963 program main
4964#ifndef __GNUC__
4965 choke me
4966#endif
4967
4968 end
4969_ACEOF
4970rm -f conftest.$ac_objext
4971if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4972 (eval $ac_compile) 2>&5
4973 ac_status=$?
4974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4975 (exit $ac_status); } &&
4976 { ac_try='test -s conftest.$ac_objext'
4977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4978 (eval $ac_try) 2>&5
4979 ac_status=$?
4980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4981 (exit $ac_status); }; }; then
4982 ac_compiler_gnu=yes
4983else
4984 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004985sed 's/^/| /' conftest.$ac_ext >&5
4986
John Criswell47fdd832003-07-14 16:52:07 +00004987ac_compiler_gnu=no
4988fi
4989rm -f conftest.$ac_objext conftest.$ac_ext
4990ac_cv_f77_compiler_gnu=$ac_compiler_gnu
4991
4992fi
4993echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
4994echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
4995ac_ext=$ac_save_ext
4996G77=`test $ac_compiler_gnu = yes && echo yes`
4997ac_test_FFLAGS=${FFLAGS+set}
4998ac_save_FFLAGS=$FFLAGS
4999FFLAGS=
5000echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5001echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5002if test "${ac_cv_prog_f77_g+set}" = set; then
5003 echo $ECHO_N "(cached) $ECHO_C" >&6
5004else
5005 FFLAGS=-g
5006cat >conftest.$ac_ext <<_ACEOF
5007 program main
5008
5009 end
5010_ACEOF
5011rm -f conftest.$ac_objext
5012if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5013 (eval $ac_compile) 2>&5
5014 ac_status=$?
5015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5016 (exit $ac_status); } &&
5017 { ac_try='test -s conftest.$ac_objext'
5018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5019 (eval $ac_try) 2>&5
5020 ac_status=$?
5021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5022 (exit $ac_status); }; }; then
5023 ac_cv_prog_f77_g=yes
5024else
5025 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005026sed 's/^/| /' conftest.$ac_ext >&5
5027
John Criswell47fdd832003-07-14 16:52:07 +00005028ac_cv_prog_f77_g=no
5029fi
5030rm -f conftest.$ac_objext conftest.$ac_ext
5031
5032fi
5033echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5034echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5035if test "$ac_test_FFLAGS" = set; then
5036 FFLAGS=$ac_save_FFLAGS
5037elif test $ac_cv_prog_f77_g = yes; then
5038 if test "$G77" = yes; then
5039 FFLAGS="-g -O2"
5040 else
5041 FFLAGS="-g"
5042 fi
5043else
5044 if test "$G77" = yes; then
5045 FFLAGS="-O2"
5046 else
5047 FFLAGS=
5048 fi
5049fi
5050ac_ext=c
5051ac_cpp='$CPP $CPPFLAGS'
5052ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5053ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5054ac_compiler_gnu=$ac_cv_c_compiler_gnu
5055
5056
5057
5058# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5059
5060# find the maximum length of command line arguments
5061echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5062echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5063if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5064 echo $ECHO_N "(cached) $ECHO_C" >&6
5065else
5066 i=0
5067 testring="ABCD"
5068
5069 case $build_os in
5070 msdosdjgpp*)
5071 # On DJGPP, this test can blow up pretty badly due to problems in libc
5072 # (any single argument exceeding 2000 bytes causes a buffer overrun
5073 # during glob expansion). Even if it were fixed, the result of this
5074 # check would be larger than it should be.
5075 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5076 ;;
5077
5078 gnu*)
5079 # Under GNU Hurd, this test is not required because there is
5080 # no limit to the length of command line arguments.
5081 # Libtool will interpret -1 as no limit whatsoever
5082 lt_cv_sys_max_cmd_len=-1;
5083 ;;
5084
5085 cygwin* | mingw*)
5086 # On Win9x/ME, this test blows up -- it succeeds, but takes
5087 # about 5 minutes as the teststring grows exponentially.
5088 # Worse, since 9x/ME are not pre-emptively multitasking,
5089 # you end up with a "frozen" computer, even though with patience
5090 # the test eventually succeeds (with a max line length of 256k).
5091 # Instead, let's just punt: use the minimum linelength reported by
5092 # all of the supported platforms: 8192 (on NT/2K/XP).
5093 lt_cv_sys_max_cmd_len=8192;
5094 ;;
5095
5096 *)
5097 # If test is not a shell built-in, we'll probably end up computing a
5098 # maximum length that is only half of the actual maximum length, but
5099 # we can't tell.
5100 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5101 = "XX$testring") >/dev/null 2>&1 &&
5102 new_result=`expr "X$testring" : ".*" 2>&1` &&
5103 lt_cv_sys_max_cmd_len=$new_result &&
5104 test $i != 17 # 1/2 MB should be enough
5105 do
5106 i=`expr $i + 1`
5107 testring=$testring$testring
5108 done
5109 testring=
5110 # Add a significant safety factor because C++ compilers can tack on massive
5111 # amounts of additional arguments before passing them to the linker.
5112 # It appears as though 1/2 is a usable value.
5113 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5114 ;;
5115 esac
5116
5117fi
5118
5119if test -n $lt_cv_sys_max_cmd_len ; then
5120 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5121echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5122else
5123 echo "$as_me:$LINENO: result: none" >&5
5124echo "${ECHO_T}none" >&6
5125fi
5126
5127
5128
5129
5130# Check for command to grab the raw symbol name followed by C symbol from nm.
5131echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5132echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5133if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5134 echo $ECHO_N "(cached) $ECHO_C" >&6
5135else
5136
5137# These are sane defaults that work on at least a few old systems.
5138# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5139
5140# Character class describing NM global symbol codes.
5141symcode='[BCDEGRST]'
5142
5143# Regexp to match symbols that can be accessed directly from C.
5144sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5145
5146# Transform the above into a raw symbol and a C symbol.
5147symxfrm='\1 \2\3 \3'
5148
5149# Transform an extracted symbol line into a proper C declaration
5150lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5151
5152# Transform an extracted symbol line into symbol name and symbol address
5153lt_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'"
5154
5155# Define system-specific variables.
5156case $host_os in
5157aix*)
5158 symcode='[BCDT]'
5159 ;;
5160cygwin* | mingw* | pw32*)
5161 symcode='[ABCDGISTW]'
5162 ;;
5163hpux*) # Its linker distinguishes data from code symbols
5164 if test "$host_cpu" = ia64; then
5165 symcode='[ABCDEGRST]'
5166 fi
5167 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5168 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'"
5169 ;;
5170irix* | nonstopux*)
5171 symcode='[BCDEGRST]'
5172 ;;
5173osf*)
5174 symcode='[BCDEGQRST]'
5175 ;;
5176solaris* | sysv5*)
5177 symcode='[BDT]'
5178 ;;
5179sysv4)
5180 symcode='[DFNSTU]'
5181 ;;
5182esac
5183
5184# Handle CRLF in mingw tool chain
5185opt_cr=
5186case $build_os in
5187mingw*)
5188 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5189 ;;
5190esac
5191
5192# If we're using GNU nm, then use its standard symbol codes.
5193case `$NM -V 2>&1` in
5194*GNU* | *'with BFD'*)
5195 symcode='[ABCDGISTW]' ;;
5196esac
5197
5198# Try without a prefix undercore, then with it.
5199for ac_symprfx in "" "_"; do
5200
5201 # Write the raw and C identifiers.
5202 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5203
5204 # Check to see that the pipe works correctly.
5205 pipe_works=no
5206
5207 rm -f conftest*
5208 cat > conftest.$ac_ext <<EOF
5209#ifdef __cplusplus
5210extern "C" {
5211#endif
5212char nm_test_var;
5213void nm_test_func(){}
5214#ifdef __cplusplus
5215}
5216#endif
5217int main(){nm_test_var='a';nm_test_func();return(0);}
5218EOF
5219
5220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5221 (eval $ac_compile) 2>&5
5222 ac_status=$?
5223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5224 (exit $ac_status); }; then
5225 # Now try to grab the symbols.
5226 nlist=conftest.nm
5227 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5228 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5229 ac_status=$?
5230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5231 (exit $ac_status); } && test -s "$nlist"; then
5232 # Try sorting and uniquifying the output.
5233 if sort "$nlist" | uniq > "$nlist"T; then
5234 mv -f "$nlist"T "$nlist"
5235 else
5236 rm -f "$nlist"T
5237 fi
5238
5239 # Make sure that we snagged all the symbols we need.
5240 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5241 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5242 cat <<EOF > conftest.$ac_ext
5243#ifdef __cplusplus
5244extern "C" {
5245#endif
5246
5247EOF
5248 # Now generate the symbol file.
5249 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5250
5251 cat <<EOF >> conftest.$ac_ext
5252#if defined (__STDC__) && __STDC__
5253# define lt_ptr_t void *
5254#else
5255# define lt_ptr_t char *
5256# define const
5257#endif
5258
5259/* The mapping between symbol names and symbols. */
5260const struct {
5261 const char *name;
5262 lt_ptr_t address;
5263}
5264lt_preloaded_symbols[] =
5265{
5266EOF
5267 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5268 cat <<\EOF >> conftest.$ac_ext
5269 {0, (lt_ptr_t) 0}
5270};
5271
5272#ifdef __cplusplus
5273}
5274#endif
5275EOF
5276 # Now try linking the two files.
5277 mv conftest.$ac_objext conftstm.$ac_objext
5278 lt_save_LIBS="$LIBS"
5279 lt_save_CFLAGS="$CFLAGS"
5280 LIBS="conftstm.$ac_objext"
5281 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5282 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5283 (eval $ac_link) 2>&5
5284 ac_status=$?
5285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5286 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5287 pipe_works=yes
5288 fi
5289 LIBS="$lt_save_LIBS"
5290 CFLAGS="$lt_save_CFLAGS"
5291 else
5292 echo "cannot find nm_test_func in $nlist" >&5
5293 fi
5294 else
5295 echo "cannot find nm_test_var in $nlist" >&5
5296 fi
5297 else
5298 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5299 fi
5300 else
5301 echo "$progname: failed program was:" >&5
5302 cat conftest.$ac_ext >&5
5303 fi
5304 rm -f conftest* conftst*
5305
5306 # Do not use the global_symbol_pipe unless it works.
5307 if test "$pipe_works" = yes; then
5308 break
5309 else
5310 lt_cv_sys_global_symbol_pipe=
5311 fi
5312done
5313
5314fi
5315
5316if test -z "$lt_cv_sys_global_symbol_pipe"; then
5317 lt_cv_sys_global_symbol_to_cdecl=
5318fi
5319if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5320 echo "$as_me:$LINENO: result: failed" >&5
5321echo "${ECHO_T}failed" >&6
5322else
5323 echo "$as_me:$LINENO: result: ok" >&5
5324echo "${ECHO_T}ok" >&6
5325fi
5326
5327echo "$as_me:$LINENO: checking for objdir" >&5
5328echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5329if test "${lt_cv_objdir+set}" = set; then
5330 echo $ECHO_N "(cached) $ECHO_C" >&6
5331else
5332 rm -f .libs 2>/dev/null
5333mkdir .libs 2>/dev/null
5334if test -d .libs; then
5335 lt_cv_objdir=.libs
5336else
5337 # MS-DOS does not allow filenames that begin with a dot.
5338 lt_cv_objdir=_libs
5339fi
5340rmdir .libs 2>/dev/null
5341fi
5342echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5343echo "${ECHO_T}$lt_cv_objdir" >&6
5344objdir=$lt_cv_objdir
5345
5346
5347
5348
5349
5350case $host_os in
5351aix3*)
5352 # AIX sometimes has problems with the GCC collect2 program. For some
5353 # reason, if we set the COLLECT_NAMES environment variable, the problems
5354 # vanish in a puff of smoke.
5355 if test "X${COLLECT_NAMES+set}" != Xset; then
5356 COLLECT_NAMES=
5357 export COLLECT_NAMES
John Criswell7a73b802003-06-30 21:59:07 +00005358 fi
5359 ;;
5360esac
5361
John Criswell47fdd832003-07-14 16:52:07 +00005362# Sed substitution that helps us do robust quoting. It backslashifies
5363# metacharacters that are still active within double-quoted strings.
5364Xsed='sed -e s/^X//'
5365sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5366
5367# Same as above, but do not quote variable references.
5368double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5369
5370# Sed substitution to delay expansion of an escaped shell variable in a
5371# double_quote_subst'ed string.
5372delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5373
5374# Sed substitution to avoid accidental globbing in evaled expressions
5375no_glob_subst='s/\*/\\\*/g'
5376
5377# Constants:
5378rm="rm -f"
5379
5380# Global variables:
John Criswell8d4221e2003-07-23 16:52:50 +00005381default_ofile=mklib
John Criswell47fdd832003-07-14 16:52:07 +00005382can_build_shared=yes
5383
5384# All known linkers require a `.a' archive for static linking (except M$VC,
5385# which needs '.lib').
5386libext=a
5387ltmain="$ac_aux_dir/ltmain.sh"
5388ofile="$default_ofile"
5389with_gnu_ld="$lt_cv_prog_gnu_ld"
5390
5391if test -n "$ac_tool_prefix"; then
5392 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5393set dummy ${ac_tool_prefix}ar; ac_word=$2
5394echo "$as_me:$LINENO: checking for $ac_word" >&5
5395echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5396if test "${ac_cv_prog_AR+set}" = set; then
5397 echo $ECHO_N "(cached) $ECHO_C" >&6
5398else
5399 if test -n "$AR"; then
5400 ac_cv_prog_AR="$AR" # Let the user override the test.
5401else
5402as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5403for as_dir in $PATH
5404do
5405 IFS=$as_save_IFS
5406 test -z "$as_dir" && as_dir=.
5407 for ac_exec_ext in '' $ac_executable_extensions; do
5408 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5409 ac_cv_prog_AR="${ac_tool_prefix}ar"
5410 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5411 break 2
5412 fi
5413done
5414done
5415
5416fi
5417fi
5418AR=$ac_cv_prog_AR
5419if test -n "$AR"; then
5420 echo "$as_me:$LINENO: result: $AR" >&5
5421echo "${ECHO_T}$AR" >&6
5422else
5423 echo "$as_me:$LINENO: result: no" >&5
5424echo "${ECHO_T}no" >&6
5425fi
5426
5427fi
5428if test -z "$ac_cv_prog_AR"; then
5429 ac_ct_AR=$AR
5430 # Extract the first word of "ar", so it can be a program name with args.
5431set dummy ar; 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_ac_ct_AR+set}" = set; then
5435 echo $ECHO_N "(cached) $ECHO_C" >&6
5436else
5437 if test -n "$ac_ct_AR"; then
5438 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # 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_ac_ct_AR="ar"
5448 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5449 break 2
5450 fi
5451done
5452done
5453
5454 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5455fi
5456fi
5457ac_ct_AR=$ac_cv_prog_ac_ct_AR
5458if test -n "$ac_ct_AR"; then
5459 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5460echo "${ECHO_T}$ac_ct_AR" >&6
5461else
5462 echo "$as_me:$LINENO: result: no" >&5
5463echo "${ECHO_T}no" >&6
5464fi
5465
5466 AR=$ac_ct_AR
5467else
5468 AR="$ac_cv_prog_AR"
5469fi
5470
John Criswell7a73b802003-06-30 21:59:07 +00005471if test -n "$ac_tool_prefix"; then
5472 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5473set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5474echo "$as_me:$LINENO: checking for $ac_word" >&5
5475echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5476if test "${ac_cv_prog_RANLIB+set}" = set; then
5477 echo $ECHO_N "(cached) $ECHO_C" >&6
5478else
5479 if test -n "$RANLIB"; then
5480 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5481else
5482as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5483for as_dir in $PATH
5484do
5485 IFS=$as_save_IFS
5486 test -z "$as_dir" && as_dir=.
5487 for ac_exec_ext in '' $ac_executable_extensions; do
5488 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5489 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5490 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5491 break 2
5492 fi
5493done
5494done
5495
5496fi
5497fi
5498RANLIB=$ac_cv_prog_RANLIB
5499if test -n "$RANLIB"; then
5500 echo "$as_me:$LINENO: result: $RANLIB" >&5
5501echo "${ECHO_T}$RANLIB" >&6
5502else
5503 echo "$as_me:$LINENO: result: no" >&5
5504echo "${ECHO_T}no" >&6
5505fi
5506
5507fi
5508if test -z "$ac_cv_prog_RANLIB"; then
5509 ac_ct_RANLIB=$RANLIB
5510 # Extract the first word of "ranlib", so it can be a program name with args.
5511set dummy ranlib; 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_ac_ct_RANLIB+set}" = set; then
5515 echo $ECHO_N "(cached) $ECHO_C" >&6
5516else
5517 if test -n "$ac_ct_RANLIB"; then
5518 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # 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_ac_ct_RANLIB="ranlib"
5528 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5529 break 2
5530 fi
5531done
5532done
5533
5534 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5535fi
5536fi
5537ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5538if test -n "$ac_ct_RANLIB"; then
5539 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5540echo "${ECHO_T}$ac_ct_RANLIB" >&6
5541else
5542 echo "$as_me:$LINENO: result: no" >&5
5543echo "${ECHO_T}no" >&6
5544fi
5545
5546 RANLIB=$ac_ct_RANLIB
5547else
5548 RANLIB="$ac_cv_prog_RANLIB"
5549fi
5550
5551if test -n "$ac_tool_prefix"; then
5552 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5553set dummy ${ac_tool_prefix}strip; ac_word=$2
5554echo "$as_me:$LINENO: checking for $ac_word" >&5
5555echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5556if test "${ac_cv_prog_STRIP+set}" = set; then
5557 echo $ECHO_N "(cached) $ECHO_C" >&6
5558else
5559 if test -n "$STRIP"; then
5560 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5561else
5562as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5563for as_dir in $PATH
5564do
5565 IFS=$as_save_IFS
5566 test -z "$as_dir" && as_dir=.
5567 for ac_exec_ext in '' $ac_executable_extensions; do
5568 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5569 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5570 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5571 break 2
5572 fi
5573done
5574done
5575
5576fi
5577fi
5578STRIP=$ac_cv_prog_STRIP
5579if test -n "$STRIP"; then
5580 echo "$as_me:$LINENO: result: $STRIP" >&5
5581echo "${ECHO_T}$STRIP" >&6
5582else
5583 echo "$as_me:$LINENO: result: no" >&5
5584echo "${ECHO_T}no" >&6
5585fi
5586
5587fi
5588if test -z "$ac_cv_prog_STRIP"; then
5589 ac_ct_STRIP=$STRIP
5590 # Extract the first word of "strip", so it can be a program name with args.
5591set dummy strip; ac_word=$2
5592echo "$as_me:$LINENO: checking for $ac_word" >&5
5593echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5594if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5595 echo $ECHO_N "(cached) $ECHO_C" >&6
5596else
5597 if test -n "$ac_ct_STRIP"; then
5598 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5599else
5600as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5601for as_dir in $PATH
5602do
5603 IFS=$as_save_IFS
5604 test -z "$as_dir" && as_dir=.
5605 for ac_exec_ext in '' $ac_executable_extensions; do
5606 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5607 ac_cv_prog_ac_ct_STRIP="strip"
5608 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5609 break 2
5610 fi
5611done
5612done
5613
5614 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5615fi
5616fi
5617ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5618if test -n "$ac_ct_STRIP"; then
5619 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5620echo "${ECHO_T}$ac_ct_STRIP" >&6
5621else
5622 echo "$as_me:$LINENO: result: no" >&5
5623echo "${ECHO_T}no" >&6
5624fi
5625
5626 STRIP=$ac_ct_STRIP
5627else
5628 STRIP="$ac_cv_prog_STRIP"
5629fi
5630
5631
John Criswell7a73b802003-06-30 21:59:07 +00005632old_CC="$CC"
5633old_CFLAGS="$CFLAGS"
5634
5635# Set sane defaults for various variables
5636test -z "$AR" && AR=ar
5637test -z "$AR_FLAGS" && AR_FLAGS=cru
5638test -z "$AS" && AS=as
5639test -z "$CC" && CC=cc
John Criswell47fdd832003-07-14 16:52:07 +00005640test -z "$LTCC" && LTCC=$CC
John Criswell7a73b802003-06-30 21:59:07 +00005641test -z "$DLLTOOL" && DLLTOOL=dlltool
5642test -z "$LD" && LD=ld
5643test -z "$LN_S" && LN_S="ln -s"
5644test -z "$MAGIC_CMD" && MAGIC_CMD=file
5645test -z "$NM" && NM=nm
John Criswell47fdd832003-07-14 16:52:07 +00005646test -z "$SED" && SED=sed
John Criswell7a73b802003-06-30 21:59:07 +00005647test -z "$OBJDUMP" && OBJDUMP=objdump
5648test -z "$RANLIB" && RANLIB=:
5649test -z "$STRIP" && STRIP=:
5650test -z "$ac_objext" && ac_objext=o
5651
John Criswell7a73b802003-06-30 21:59:07 +00005652# Determine commands to create old-style static archives.
5653old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5654old_postinstall_cmds='chmod 644 $oldlib'
5655old_postuninstall_cmds=
5656
5657if test -n "$RANLIB"; then
5658 case $host_os in
5659 openbsd*)
5660 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5661 ;;
5662 *)
5663 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5664 ;;
5665 esac
5666 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5667fi
5668
John Criswell47fdd832003-07-14 16:52:07 +00005669# Only perform the check for file, if the check method requires it
5670case $deplibs_check_method in
5671file_magic*)
5672 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5673 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5674echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5675if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5676 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00005677else
John Criswell47fdd832003-07-14 16:52:07 +00005678 case $MAGIC_CMD in
5679[\\/*] | ?:[\\/]*)
5680 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5681 ;;
5682*)
5683 lt_save_MAGIC_CMD="$MAGIC_CMD"
5684 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5685 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5686 for ac_dir in $ac_dummy; do
5687 IFS="$lt_save_ifs"
5688 test -z "$ac_dir" && ac_dir=.
5689 if test -f $ac_dir/${ac_tool_prefix}file; then
5690 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5691 if test -n "$file_magic_test_file"; then
5692 case $deplibs_check_method in
5693 "file_magic "*)
5694 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5695 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5696 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5697 $EGREP "$file_magic_regex" > /dev/null; then
5698 :
5699 else
5700 cat <<EOF 1>&2
5701
5702*** Warning: the command libtool uses to detect shared libraries,
5703*** $file_magic_cmd, produces output that libtool cannot recognize.
5704*** The result is that libtool may fail to recognize shared libraries
5705*** as such. This will affect the creation of libtool libraries that
5706*** depend on shared libraries, but programs linked with such libtool
5707*** libraries will work regardless of this problem. Nevertheless, you
5708*** may want to report the problem to your system manager and/or to
5709*** bug-libtool@gnu.org
5710
5711EOF
5712 fi ;;
5713 esac
5714 fi
5715 break
5716 fi
5717 done
5718 IFS="$lt_save_ifs"
5719 MAGIC_CMD="$lt_save_MAGIC_CMD"
5720 ;;
5721esac
John Criswell7a73b802003-06-30 21:59:07 +00005722fi
John Criswell7a73b802003-06-30 21:59:07 +00005723
John Criswell47fdd832003-07-14 16:52:07 +00005724MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5725if test -n "$MAGIC_CMD"; then
5726 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5727echo "${ECHO_T}$MAGIC_CMD" >&6
5728else
5729 echo "$as_me:$LINENO: result: no" >&5
5730echo "${ECHO_T}no" >&6
5731fi
John Criswell7a73b802003-06-30 21:59:07 +00005732
John Criswell47fdd832003-07-14 16:52:07 +00005733if test -z "$lt_cv_path_MAGIC_CMD"; then
5734 if test -n "$ac_tool_prefix"; then
5735 echo "$as_me:$LINENO: checking for file" >&5
5736echo $ECHO_N "checking for file... $ECHO_C" >&6
5737if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5738 echo $ECHO_N "(cached) $ECHO_C" >&6
5739else
5740 case $MAGIC_CMD in
5741[\\/*] | ?:[\\/]*)
5742 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5743 ;;
5744*)
5745 lt_save_MAGIC_CMD="$MAGIC_CMD"
5746 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5747 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5748 for ac_dir in $ac_dummy; do
5749 IFS="$lt_save_ifs"
5750 test -z "$ac_dir" && ac_dir=.
5751 if test -f $ac_dir/file; then
5752 lt_cv_path_MAGIC_CMD="$ac_dir/file"
5753 if test -n "$file_magic_test_file"; then
5754 case $deplibs_check_method in
5755 "file_magic "*)
5756 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5757 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5758 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5759 $EGREP "$file_magic_regex" > /dev/null; then
5760 :
5761 else
5762 cat <<EOF 1>&2
5763
5764*** Warning: the command libtool uses to detect shared libraries,
5765*** $file_magic_cmd, produces output that libtool cannot recognize.
5766*** The result is that libtool may fail to recognize shared libraries
5767*** as such. This will affect the creation of libtool libraries that
5768*** depend on shared libraries, but programs linked with such libtool
5769*** libraries will work regardless of this problem. Nevertheless, you
5770*** may want to report the problem to your system manager and/or to
5771*** bug-libtool@gnu.org
5772
5773EOF
5774 fi ;;
5775 esac
5776 fi
5777 break
5778 fi
5779 done
5780 IFS="$lt_save_ifs"
5781 MAGIC_CMD="$lt_save_MAGIC_CMD"
5782 ;;
5783esac
5784fi
5785
5786MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5787if test -n "$MAGIC_CMD"; then
5788 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5789echo "${ECHO_T}$MAGIC_CMD" >&6
5790else
5791 echo "$as_me:$LINENO: result: no" >&5
5792echo "${ECHO_T}no" >&6
5793fi
5794
5795 else
5796 MAGIC_CMD=:
5797 fi
5798fi
5799
5800 fi
5801 ;;
5802esac
5803
5804enable_dlopen=no
5805enable_win32_dll=no
5806
5807# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5808if test "${enable_libtool_lock+set}" = set; then
5809 enableval="$enable_libtool_lock"
5810
5811fi;
5812test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5813
John Criswell7a73b802003-06-30 21:59:07 +00005814
5815# Check whether --with-pic or --without-pic was given.
5816if test "${with_pic+set}" = set; then
5817 withval="$with_pic"
5818 pic_mode="$withval"
5819else
5820 pic_mode=default
5821fi;
5822test -z "$pic_mode" && pic_mode=default
5823
John Criswell47fdd832003-07-14 16:52:07 +00005824# Use C for the default configuration in the libtool script
5825tagname=
5826lt_save_CC="$CC"
5827ac_ext=c
5828ac_cpp='$CPP $CPPFLAGS'
5829ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5830ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5831ac_compiler_gnu=$ac_cv_c_compiler_gnu
5832
5833
5834# Source file extension for C test sources.
5835ac_ext=c
5836
5837# Object file extension for compiled C test sources.
5838objext=o
5839objext=$objext
5840
5841# Code to be used in simple compile tests
5842lt_simple_compile_test_code="int some_variable = 0;\n"
5843
5844# Code to be used in simple link tests
5845lt_simple_link_test_code='int main(){return(0);}\n'
5846
5847
5848# If no C compiler was specified, use CC.
5849LTCC=${LTCC-"$CC"}
5850
5851# Allow CC to be a program name with arguments.
5852compiler=$CC
5853
5854
5855#
5856# Check for any special shared library compilation flags.
5857#
5858lt_prog_cc_shlib=
5859if test "$GCC" = no; then
5860 case $host_os in
5861 sco3.2v5*)
5862 lt_prog_cc_shlib='-belf'
5863 ;;
5864 esac
5865fi
5866if test -n "$lt_prog_cc_shlib"; then
5867 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
5868echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
5869 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
5870 else
5871 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5872echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5873 lt_cv_prog_cc_can_build_shared=no
5874 fi
5875fi
5876
5877
5878#
5879# Check to make sure the static flag actually works.
5880#
5881echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
5882echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
5883if test "${lt_prog_compiler_static_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00005884 echo $ECHO_N "(cached) $ECHO_C" >&6
5885else
John Criswell47fdd832003-07-14 16:52:07 +00005886 lt_prog_compiler_static_works=no
5887 save_LDFLAGS="$LDFLAGS"
5888 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
5889 printf "$lt_simple_link_test_code" > conftest.$ac_ext
5890 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
5891 # The compiler can only warn and ignore the option if not recognized
5892 # So say no if there are warnings
5893 if test -s conftest.err; then
5894 # Append any errors to the config.log.
5895 cat conftest.err 1>&5
5896 else
5897 lt_prog_compiler_static_works=yes
5898 fi
5899 fi
5900 $rm conftest*
5901 LDFLAGS="$save_LDFLAGS"
5902
5903fi
5904echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
5905echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
5906
5907if test x"$lt_prog_compiler_static_works" = xyes; then
5908 :
5909else
5910 lt_prog_compiler_static=
5911fi
5912
5913
5914
5915## CAVEAT EMPTOR:
5916## There is no encapsulation within the following macros, do not change
5917## the running order or otherwise move them around unless you know exactly
5918## what you are doing...
5919
5920lt_prog_compiler_no_builtin_flag=
5921
5922if test "$GCC" = yes; then
5923 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
5924
5925 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5926echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5927if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
5928 echo $ECHO_N "(cached) $ECHO_C" >&6
5929else
5930 lt_cv_prog_compiler_rtti_exceptions=no
5931 ac_outfile=conftest.$ac_objext
5932 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
5933 lt_compiler_flag="-fno-rtti -fno-exceptions"
5934 # Insert the option either (1) after the last *FLAGS variable, or
5935 # (2) before a word containing "conftest.", or (3) at the end.
5936 # Note that $ac_compile itself does not contain backslashes and begins
5937 # with a dollar sign (not a hyphen), so the echo should work correctly.
5938 # The option is referenced via a variable to avoid confusing sed.
5939 lt_compile=`echo "$ac_compile" | $SED \
5940 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
5941 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5942 -e 's:$: $lt_compiler_flag:'`
John Criswell60577602003-11-25 17:49:22 +00005943 (eval echo "\"\$as_me:5943: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +00005944 (eval "$lt_compile" 2>conftest.err)
5945 ac_status=$?
5946 cat conftest.err >&5
John Criswell60577602003-11-25 17:49:22 +00005947 echo "$as_me:5947: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00005948 if (exit $ac_status) && test -s "$ac_outfile"; then
5949 # The compiler can only warn and ignore the option if not recognized
5950 # So say no if there are warnings
5951 if test ! -s conftest.err; then
5952 lt_cv_prog_compiler_rtti_exceptions=yes
5953 fi
5954 fi
5955 $rm conftest*
5956
5957fi
5958echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
5959echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
5960
5961if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
5962 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
5963else
5964 :
5965fi
5966
5967fi
5968
5969lt_prog_compiler_wl=
5970lt_prog_compiler_pic=
5971lt_prog_compiler_static=
5972
5973echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5974echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00005975
5976 if test "$GCC" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +00005977 lt_prog_compiler_wl='-Wl,'
5978 lt_prog_compiler_static='-static'
John Criswell7a73b802003-06-30 21:59:07 +00005979
5980 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00005981 aix*)
5982 # All AIX code is PIC.
5983 if test "$host_cpu" = ia64; then
5984 # AIX 5 now supports IA64 processor
5985 lt_prog_compiler_static='-Bstatic'
5986 fi
John Criswell7a73b802003-06-30 21:59:07 +00005987 ;;
John Criswell47fdd832003-07-14 16:52:07 +00005988
John Criswell7a73b802003-06-30 21:59:07 +00005989 amigaos*)
5990 # FIXME: we need at least 68020 code to build shared libraries, but
5991 # adding the `-m68020' flag to GCC prevents building anything better,
5992 # like `-m68040'.
John Criswell47fdd832003-07-14 16:52:07 +00005993 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
John Criswell7a73b802003-06-30 21:59:07 +00005994 ;;
John Criswell47fdd832003-07-14 16:52:07 +00005995
5996 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
John Criswell7a73b802003-06-30 21:59:07 +00005997 # PIC is the default for these OSes.
5998 ;;
John Criswell47fdd832003-07-14 16:52:07 +00005999
6000 mingw* | pw32* | os2*)
6001 # This hack is so that the source file can tell whether it is being
6002 # built for inclusion in a dll (and should export symbols for example).
6003 lt_prog_compiler_pic='-DDLL_EXPORT'
6004 ;;
6005
John Criswell7a73b802003-06-30 21:59:07 +00006006 darwin* | rhapsody*)
6007 # PIC is the default on this platform
6008 # Common symbols not allowed in MH_DYLIB files
John Criswell47fdd832003-07-14 16:52:07 +00006009 lt_prog_compiler_pic='-fno-common'
John Criswell7a73b802003-06-30 21:59:07 +00006010 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006011
6012 msdosdjgpp*)
6013 # Just because we use GCC doesn't mean we suddenly get shared libraries
6014 # on systems that don't support them.
6015 lt_prog_compiler_can_build_shared=no
6016 enable_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00006017 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006018
John Criswell7a73b802003-06-30 21:59:07 +00006019 sysv4*MP*)
6020 if test -d /usr/nec; then
John Criswell47fdd832003-07-14 16:52:07 +00006021 lt_prog_compiler_pic=-Kconform_pic
John Criswell7a73b802003-06-30 21:59:07 +00006022 fi
6023 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006024
6025 hpux*)
6026 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6027 # not for PA HP-UX.
6028 case "$host_cpu" in
6029 hppa*64*|ia64*)
6030 # +Z the default
6031 ;;
6032 *)
6033 lt_prog_compiler_pic='-fPIC'
6034 ;;
6035 esac
6036 ;;
6037
John Criswell7a73b802003-06-30 21:59:07 +00006038 *)
John Criswell47fdd832003-07-14 16:52:07 +00006039 lt_prog_compiler_pic='-fPIC'
John Criswell7a73b802003-06-30 21:59:07 +00006040 ;;
6041 esac
6042 else
John Criswell47fdd832003-07-14 16:52:07 +00006043 # PORTME Check for flag to pass linker flags through the system compiler.
John Criswell7a73b802003-06-30 21:59:07 +00006044 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00006045 aix*)
6046 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +00006047 if test "$host_cpu" = ia64; then
6048 # AIX 5 now supports IA64 processor
John Criswell47fdd832003-07-14 16:52:07 +00006049 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006050 else
John Criswell47fdd832003-07-14 16:52:07 +00006051 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
John Criswell7a73b802003-06-30 21:59:07 +00006052 fi
6053 ;;
6054
John Criswell47fdd832003-07-14 16:52:07 +00006055 mingw* | pw32* | os2*)
6056 # This hack is so that the source file can tell whether it is being
6057 # built for inclusion in a dll (and should export symbols for example).
6058 lt_prog_compiler_pic='-DDLL_EXPORT'
6059 ;;
6060
John Criswell7a73b802003-06-30 21:59:07 +00006061 hpux9* | hpux10* | hpux11*)
John Criswell47fdd832003-07-14 16:52:07 +00006062 lt_prog_compiler_wl='-Wl,'
6063 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6064 # not for PA HP-UX.
6065 case "$host_cpu" in
6066 hppa*64*|ia64*)
6067 # +Z the default
6068 ;;
6069 *)
6070 lt_prog_compiler_pic='+Z'
6071 ;;
6072 esac
6073 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6074 lt_prog_compiler_static='${wl}-a ${wl}archive'
John Criswell7a73b802003-06-30 21:59:07 +00006075 ;;
6076
John Criswell47fdd832003-07-14 16:52:07 +00006077 irix5* | irix6* | nonstopux*)
6078 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +00006079 # PIC (with -KPIC) is the default.
John Criswell47fdd832003-07-14 16:52:07 +00006080 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +00006081 ;;
6082
6083 newsos6)
John Criswell47fdd832003-07-14 16:52:07 +00006084 lt_prog_compiler_pic='-KPIC'
6085 lt_prog_compiler_static='-Bstatic'
6086 ;;
6087
6088 linux*)
6089 case $CC in
6090 icc|ecc)
6091 lt_prog_compiler_wl='-Wl,'
6092 lt_prog_compiler_pic='-KPIC'
6093 lt_prog_compiler_static='-static'
6094 ;;
6095 ccc)
6096 lt_prog_compiler_wl='-Wl,'
6097 # All Alpha code is PIC.
6098 lt_prog_compiler_static='-non_shared'
6099 ;;
6100 esac
John Criswell7a73b802003-06-30 21:59:07 +00006101 ;;
6102
6103 osf3* | osf4* | osf5*)
John Criswell47fdd832003-07-14 16:52:07 +00006104 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +00006105 # All OSF/1 code is PIC.
John Criswell47fdd832003-07-14 16:52:07 +00006106 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +00006107 ;;
6108
6109 sco3.2v5*)
John Criswell47fdd832003-07-14 16:52:07 +00006110 lt_prog_compiler_pic='-Kpic'
6111 lt_prog_compiler_static='-dn'
John Criswell7a73b802003-06-30 21:59:07 +00006112 ;;
6113
6114 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +00006115 lt_prog_compiler_wl='-Wl,'
6116 lt_prog_compiler_pic='-KPIC'
6117 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006118 ;;
6119
6120 sunos4*)
John Criswell47fdd832003-07-14 16:52:07 +00006121 lt_prog_compiler_wl='-Qoption ld '
6122 lt_prog_compiler_pic='-PIC'
6123 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006124 ;;
6125
6126 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
John Criswell47fdd832003-07-14 16:52:07 +00006127 lt_prog_compiler_wl='-Wl,'
6128 lt_prog_compiler_pic='-KPIC'
6129 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006130 ;;
6131
6132 sysv4*MP*)
6133 if test -d /usr/nec ;then
John Criswell47fdd832003-07-14 16:52:07 +00006134 lt_prog_compiler_pic='-Kconform_pic'
6135 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006136 fi
6137 ;;
6138
John Criswell47fdd832003-07-14 16:52:07 +00006139 uts4*)
6140 lt_prog_compiler_pic='-pic'
6141 lt_prog_compiler_static='-Bstatic'
6142 ;;
6143
John Criswell7a73b802003-06-30 21:59:07 +00006144 *)
John Criswell47fdd832003-07-14 16:52:07 +00006145 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00006146 ;;
6147 esac
6148 fi
6149
John Criswell47fdd832003-07-14 16:52:07 +00006150echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6151echo "${ECHO_T}$lt_prog_compiler_pic" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006152
John Criswell47fdd832003-07-14 16:52:07 +00006153#
6154# Check to make sure the PIC flag actually works.
6155#
6156if test -n "$lt_prog_compiler_pic"; then
6157 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6158echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6159if test "${lt_prog_compiler_pic_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00006160 echo $ECHO_N "(cached) $ECHO_C" >&6
6161else
John Criswell47fdd832003-07-14 16:52:07 +00006162 lt_prog_compiler_pic_works=no
6163 ac_outfile=conftest.$ac_objext
6164 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6165 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6166 # Insert the option either (1) after the last *FLAGS variable, or
6167 # (2) before a word containing "conftest.", or (3) at the end.
6168 # Note that $ac_compile itself does not contain backslashes and begins
6169 # with a dollar sign (not a hyphen), so the echo should work correctly.
6170 # The option is referenced via a variable to avoid confusing sed.
6171 lt_compile=`echo "$ac_compile" | $SED \
6172 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6173 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6174 -e 's:$: $lt_compiler_flag:'`
John Criswell60577602003-11-25 17:49:22 +00006175 (eval echo "\"\$as_me:6175: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +00006176 (eval "$lt_compile" 2>conftest.err)
6177 ac_status=$?
6178 cat conftest.err >&5
John Criswell60577602003-11-25 17:49:22 +00006179 echo "$as_me:6179: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00006180 if (exit $ac_status) && test -s "$ac_outfile"; then
6181 # The compiler can only warn and ignore the option if not recognized
6182 # So say no if there are warnings
6183 if test ! -s conftest.err; then
6184 lt_prog_compiler_pic_works=yes
6185 fi
6186 fi
6187 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +00006188
John Criswell47fdd832003-07-14 16:52:07 +00006189fi
6190echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6191echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006192
John Criswell47fdd832003-07-14 16:52:07 +00006193if test x"$lt_prog_compiler_pic_works" = xyes; then
6194 case $lt_prog_compiler_pic in
6195 "" | " "*) ;;
6196 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6197 esac
John Criswell7a73b802003-06-30 21:59:07 +00006198else
John Criswell47fdd832003-07-14 16:52:07 +00006199 lt_prog_compiler_pic=
6200 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00006201fi
6202
John Criswell7a73b802003-06-30 21:59:07 +00006203fi
John Criswell47fdd832003-07-14 16:52:07 +00006204case "$host_os" in
6205 # For platforms which do not support PIC, -DPIC is meaningless:
6206 *djgpp*)
6207 lt_prog_compiler_pic=
6208 ;;
6209 *)
6210 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6211 ;;
6212esac
John Criswell7a73b802003-06-30 21:59:07 +00006213
John Criswell7a73b802003-06-30 21:59:07 +00006214echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6215echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
John Criswell47fdd832003-07-14 16:52:07 +00006216if test "${lt_cv_prog_compiler_c_o+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00006217 echo $ECHO_N "(cached) $ECHO_C" >&6
6218else
John Criswell47fdd832003-07-14 16:52:07 +00006219 lt_cv_prog_compiler_c_o=no
6220 $rm -r conftest 2>/dev/null
6221 mkdir conftest
6222 cd conftest
6223 mkdir out
6224 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00006225
John Criswell47fdd832003-07-14 16:52:07 +00006226 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
6227 # that will create temporary files in the current directory regardless of
6228 # the output directory. Thus, making CWD read-only will cause this test
6229 # to fail, enabling locking or at least warning the user not to do parallel
6230 # builds.
6231 chmod -w .
6232
6233 lt_compiler_flag="-o out/conftest2.$ac_objext"
6234 # Insert the option either (1) after the last *FLAGS variable, or
6235 # (2) before a word containing "conftest.", or (3) at the end.
6236 # Note that $ac_compile itself does not contain backslashes and begins
6237 # with a dollar sign (not a hyphen), so the echo should work correctly.
6238 lt_compile=`echo "$ac_compile" | $SED \
6239 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6240 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6241 -e 's:$: $lt_compiler_flag:'`
John Criswell60577602003-11-25 17:49:22 +00006242 (eval echo "\"\$as_me:6242: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +00006243 (eval "$lt_compile" 2>out/conftest.err)
6244 ac_status=$?
6245 cat out/conftest.err >&5
John Criswell60577602003-11-25 17:49:22 +00006246 echo "$as_me:6246: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00006247 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6248 then
6249 # The compiler can only warn and ignore the option if not recognized
6250 # So say no if there are warnings
6251 if test ! -s out/conftest.err; then
6252 lt_cv_prog_compiler_c_o=yes
6253 fi
6254 fi
6255 chmod u+w .
6256 $rm conftest* out/*
6257 rmdir out
6258 cd ..
6259 rmdir conftest
6260 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +00006261
6262fi
John Criswell47fdd832003-07-14 16:52:07 +00006263echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6264echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006265
John Criswell7a73b802003-06-30 21:59:07 +00006266
John Criswell7a73b802003-06-30 21:59:07 +00006267hard_links="nottested"
John Criswell47fdd832003-07-14 16:52:07 +00006268if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
John Criswell7a73b802003-06-30 21:59:07 +00006269 # do not overwrite the value of need_locks provided by the user
6270 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6271echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6272 hard_links=yes
6273 $rm conftest*
6274 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6275 touch conftest.a
6276 ln conftest.a conftest.b 2>&5 || hard_links=no
6277 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6278 echo "$as_me:$LINENO: result: $hard_links" >&5
6279echo "${ECHO_T}$hard_links" >&6
6280 if test "$hard_links" = no; then
6281 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6282echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6283 need_locks=warn
6284 fi
6285else
6286 need_locks=no
6287fi
John Criswell7a73b802003-06-30 21:59:07 +00006288
John Criswell47fdd832003-07-14 16:52:07 +00006289echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6290echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6291
6292 runpath_var=
6293 allow_undefined_flag=
6294 enable_shared_with_static_runtimes=no
6295 archive_cmds=
6296 archive_expsym_cmds=
6297 old_archive_From_new_cmds=
6298 old_archive_from_expsyms_cmds=
6299 export_dynamic_flag_spec=
6300 whole_archive_flag_spec=
6301 thread_safe_flag_spec=
6302 hardcode_libdir_flag_spec=
6303 hardcode_libdir_flag_spec_ld=
6304 hardcode_libdir_separator=
6305 hardcode_direct=no
6306 hardcode_minus_L=no
6307 hardcode_shlibpath_var=unsupported
6308 link_all_deplibs=unknown
6309 hardcode_automatic=no
6310 module_cmds=
6311 module_expsym_cmds=
6312 always_export_symbols=no
6313 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6314 # include_expsyms should be a list of space-separated symbols to be *always*
6315 # included in the symbol list
6316 include_expsyms=
6317 # exclude_expsyms can be an extended regexp of symbols to exclude
6318 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6319 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6320 # as well as any symbol that contains `d'.
6321 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6322 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6323 # platforms (ab)use it in PIC code, but their linkers get confused if
6324 # the symbol is explicitly referenced. Since portable code cannot
6325 # rely on this symbol name, it's probably fine to never include it in
6326 # preloaded symbol tables.
6327 extract_expsyms_cmds=
6328
6329 case $host_os in
6330 cygwin* | mingw* | pw32*)
6331 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6332 # When not using gcc, we currently assume that we are using
6333 # Microsoft Visual C++.
6334 if test "$GCC" != yes; then
6335 with_gnu_ld=no
6336 fi
6337 ;;
6338 openbsd*)
6339 with_gnu_ld=no
6340 ;;
6341 esac
6342
6343 ld_shlibs=yes
6344 if test "$with_gnu_ld" = yes; then
6345 # If archive_cmds runs LD, not CC, wlarc should be empty
6346 wlarc='${wl}'
6347
6348 # See if GNU ld supports shared libraries.
6349 case $host_os in
6350 aix3* | aix4* | aix5*)
6351 # On AIX/PPC, the GNU linker is very broken
6352 if test "$host_cpu" != ia64; then
6353 ld_shlibs=no
6354 cat <<EOF 1>&2
6355
6356*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6357*** to be unable to reliably create shared libraries on AIX.
6358*** Therefore, libtool is disabling shared libraries support. If you
6359*** really care for shared libraries, you may want to modify your PATH
6360*** so that a non-GNU linker is found, and then restart.
6361
6362EOF
6363 fi
6364 ;;
6365
6366 amigaos*)
6367 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)'
6368 hardcode_libdir_flag_spec='-L$libdir'
6369 hardcode_minus_L=yes
6370
6371 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6372 # that the semantics of dynamic libraries on AmigaOS, at least up
6373 # to version 4, is to share data among multiple programs linked
6374 # with the same dynamic library. Since this doesn't match the
6375 # behavior of shared libraries on other platforms, we can't use
6376 # them.
6377 ld_shlibs=no
6378 ;;
6379
6380 beos*)
6381 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6382 allow_undefined_flag=unsupported
6383 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6384 # support --undefined. This deserves some investigation. FIXME
6385 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6386 else
6387 ld_shlibs=no
6388 fi
6389 ;;
6390
6391 cygwin* | mingw* | pw32*)
6392 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6393 # as there is no search path for DLLs.
6394 hardcode_libdir_flag_spec='-L$libdir'
6395 allow_undefined_flag=unsupported
6396 always_export_symbols=no
6397 enable_shared_with_static_runtimes=yes
6398 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6399
6400 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6401 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6402 # If the export-symbols file already is a .def file (1st line
6403 # is EXPORTS), use it as is; otherwise, prepend...
6404 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6405 cp $export_symbols $output_objdir/$soname.def;
6406 else
6407 echo EXPORTS > $output_objdir/$soname.def;
6408 cat $export_symbols >> $output_objdir/$soname.def;
6409 fi~
6410 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6411 else
6412 ld_shlibs=no
6413 fi
6414 ;;
6415
6416 netbsd*)
6417 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6418 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6419 wlarc=
6420 else
6421 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6422 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6423 fi
6424 ;;
6425
6426 solaris* | sysv5*)
6427 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6428 ld_shlibs=no
6429 cat <<EOF 1>&2
6430
6431*** Warning: The releases 2.8.* of the GNU linker cannot reliably
6432*** create shared libraries on Solaris systems. Therefore, libtool
6433*** is disabling shared libraries support. We urge you to upgrade GNU
6434*** binutils to release 2.9.1 or newer. Another option is to modify
6435*** your PATH or compiler configuration so that the native linker is
6436*** used, and then restart.
6437
6438EOF
6439 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6440 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6441 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6442 else
6443 ld_shlibs=no
6444 fi
6445 ;;
6446
6447 sunos4*)
6448 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6449 wlarc=
6450 hardcode_direct=yes
6451 hardcode_shlibpath_var=no
6452 ;;
6453
6454 *)
6455 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6456 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6457 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6458 else
6459 ld_shlibs=no
6460 fi
6461 ;;
6462 esac
6463
6464 if test "$ld_shlibs" = yes; then
6465 runpath_var=LD_RUN_PATH
6466 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6467 export_dynamic_flag_spec='${wl}--export-dynamic'
6468 # ancient GNU ld didn't support --whole-archive et. al.
6469 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6470 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6471 else
6472 whole_archive_flag_spec=
6473 fi
6474 fi
6475 else
6476 # PORTME fill in a description of your system's linker (not GNU ld)
6477 case $host_os in
6478 aix3*)
6479 allow_undefined_flag=unsupported
6480 always_export_symbols=yes
6481 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'
6482 # Note: this linker hardcodes the directories in LIBPATH if there
6483 # are no directories specified by -L.
6484 hardcode_minus_L=yes
6485 if test "$GCC" = yes && test -z "$link_static_flag"; then
6486 # Neither direct hardcoding nor static linking is supported with a
6487 # broken collect2.
6488 hardcode_direct=unsupported
6489 fi
6490 ;;
6491
6492 aix4* | aix5*)
6493 if test "$host_cpu" = ia64; then
6494 # On IA64, the linker does run time linking by default, so we don't
6495 # have to do anything special.
6496 aix_use_runtimelinking=no
6497 exp_sym_flag='-Bexport'
6498 no_entry_flag=""
6499 else
6500 # If we're using GNU nm, then we don't want the "-C" option.
6501 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6502 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6503 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'
6504 else
6505 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'
6506 fi
6507 aix_use_runtimelinking=no
6508
6509 # Test if we are trying to use run time linking or normal
6510 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6511 # need to do runtime linking.
6512 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6513 for ld_flag in $LDFLAGS; do
6514 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6515 aix_use_runtimelinking=yes
6516 break
6517 fi
6518 done
6519 esac
6520
6521 exp_sym_flag='-bexport'
6522 no_entry_flag='-bnoentry'
6523 fi
6524
6525 # When large executables or shared objects are built, AIX ld can
6526 # have problems creating the table of contents. If linking a library
6527 # or program results in "error TOC overflow" add -mminimal-toc to
6528 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6529 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6530
6531 archive_cmds=''
6532 hardcode_direct=yes
6533 hardcode_libdir_separator=':'
6534 link_all_deplibs=yes
6535
6536 if test "$GCC" = yes; then
6537 case $host_os in aix4.012|aix4.012.*)
6538 # We only want to do this on AIX 4.2 and lower, the check
6539 # below for broken collect2 doesn't work under 4.3+
6540 collect2name=`${CC} -print-prog-name=collect2`
6541 if test -f "$collect2name" && \
6542 strings "$collect2name" | grep resolve_lib_name >/dev/null
6543 then
6544 # We have reworked collect2
6545 hardcode_direct=yes
6546 else
6547 # We have old collect2
6548 hardcode_direct=unsupported
6549 # It fails to find uninstalled libraries when the uninstalled
6550 # path is not listed in the libpath. Setting hardcode_minus_L
6551 # to unsupported forces relinking
6552 hardcode_minus_L=yes
6553 hardcode_libdir_flag_spec='-L$libdir'
6554 hardcode_libdir_separator=
6555 fi
6556 esac
6557 shared_flag='-shared'
6558 else
6559 # not using gcc
6560 if test "$host_cpu" = ia64; then
6561 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6562 # chokes on -Wl,-G. The following line is correct:
6563 shared_flag='-G'
6564 else
6565 if test "$aix_use_runtimelinking" = yes; then
6566 shared_flag='${wl}-G'
6567 else
6568 shared_flag='${wl}-bM:SRE'
6569 fi
6570 fi
6571 fi
6572
6573 # It seems that -bexpall does not export symbols beginning with
6574 # underscore (_), so it is better to generate a list of symbols to export.
6575 always_export_symbols=yes
6576 if test "$aix_use_runtimelinking" = yes; then
6577 # Warning - without using the other runtime loading flags (-brtl),
6578 # -berok will link without error, but may produce a broken library.
6579 allow_undefined_flag='-berok'
6580 # Determine the default libpath from the value encoded in an empty executable.
6581 cat >conftest.$ac_ext <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00006582#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00006583/* confdefs.h. */
6584_ACEOF
6585cat confdefs.h >>conftest.$ac_ext
6586cat >>conftest.$ac_ext <<_ACEOF
6587/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006588
John Criswell7a73b802003-06-30 21:59:07 +00006589int
6590main ()
6591{
John Criswell47fdd832003-07-14 16:52:07 +00006592
John Criswell7a73b802003-06-30 21:59:07 +00006593 ;
6594 return 0;
6595}
6596_ACEOF
John Criswell47fdd832003-07-14 16:52:07 +00006597rm -f conftest.$ac_objext conftest$ac_exeext
6598if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6599 (eval $ac_link) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00006600 ac_status=$?
6601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6602 (exit $ac_status); } &&
John Criswell47fdd832003-07-14 16:52:07 +00006603 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00006604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6605 (eval $ac_try) 2>&5
6606 ac_status=$?
6607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6608 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00006609
John Criswell47fdd832003-07-14 16:52:07 +00006610aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6611}'`
6612# Check for a 64-bit object if we didn't find anything.
6613if 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; }
6614}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +00006615else
6616 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006617sed 's/^/| /' conftest.$ac_ext >&5
6618
John Criswell7a73b802003-06-30 21:59:07 +00006619fi
John Criswell47fdd832003-07-14 16:52:07 +00006620rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6621if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +00006622
John Criswell47fdd832003-07-14 16:52:07 +00006623 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6624 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"
6625 else
6626 if test "$host_cpu" = ia64; then
6627 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6628 allow_undefined_flag="-z nodefs"
6629 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"
6630 else
6631 # Determine the default libpath from the value encoded in an empty executable.
6632 cat >conftest.$ac_ext <<_ACEOF
6633#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00006634/* confdefs.h. */
6635_ACEOF
6636cat confdefs.h >>conftest.$ac_ext
6637cat >>conftest.$ac_ext <<_ACEOF
6638/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006639
John Criswell47fdd832003-07-14 16:52:07 +00006640int
6641main ()
6642{
John Criswell7a73b802003-06-30 21:59:07 +00006643
John Criswell47fdd832003-07-14 16:52:07 +00006644 ;
6645 return 0;
6646}
6647_ACEOF
6648rm -f conftest.$ac_objext conftest$ac_exeext
6649if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6650 (eval $ac_link) 2>&5
6651 ac_status=$?
6652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6653 (exit $ac_status); } &&
6654 { ac_try='test -s conftest$ac_exeext'
6655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6656 (eval $ac_try) 2>&5
6657 ac_status=$?
6658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6659 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00006660
John Criswell47fdd832003-07-14 16:52:07 +00006661aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6662}'`
6663# Check for a 64-bit object if we didn't find anything.
6664if 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; }
6665}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +00006666else
John Criswell47fdd832003-07-14 16:52:07 +00006667 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006668sed 's/^/| /' conftest.$ac_ext >&5
6669
John Criswell47fdd832003-07-14 16:52:07 +00006670fi
6671rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6672if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +00006673
John Criswell47fdd832003-07-14 16:52:07 +00006674 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6675 # Warning - without using the other run time loading flags,
6676 # -berok will link without error, but may produce a broken library.
6677 no_undefined_flag=' ${wl}-bernotok'
6678 allow_undefined_flag=' ${wl}-berok'
6679 # -bexpall does not export symbols beginning with underscore (_)
6680 always_export_symbols=yes
6681 # Exported symbols can be pulled into shared objects from archives
6682 whole_archive_flag_spec=' '
6683 archive_cmds_need_lc=yes
6684 # This is similar to how AIX traditionally builds it's shared libraries.
6685 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 +00006686 fi
6687 fi
John Criswell7a73b802003-06-30 21:59:07 +00006688 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006689
6690 amigaos*)
6691 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)'
6692 hardcode_libdir_flag_spec='-L$libdir'
6693 hardcode_minus_L=yes
6694 # see comment about different semantics on the GNU ld section
6695 ld_shlibs=no
John Criswell7a73b802003-06-30 21:59:07 +00006696 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006697
John Criswell47fdd832003-07-14 16:52:07 +00006698 bsdi4*)
6699 export_dynamic_flag_spec=-rdynamic
6700 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006701
John Criswell47fdd832003-07-14 16:52:07 +00006702 cygwin* | mingw* | pw32*)
6703 # When not using gcc, we currently assume that we are using
6704 # Microsoft Visual C++.
6705 # hardcode_libdir_flag_spec is actually meaningless, as there is
6706 # no search path for DLLs.
6707 hardcode_libdir_flag_spec=' '
6708 allow_undefined_flag=unsupported
6709 # Tell ltmain to make .lib files, not .a files.
6710 libext=lib
6711 # Tell ltmain to make .dll files, not .so files.
6712 shrext=".dll"
6713 # FIXME: Setting linknames here is a bad hack.
6714 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
6715 # The linker will automatically build a .lib file if we build a DLL.
6716 old_archive_From_new_cmds='true'
6717 # FIXME: Should let the user specify the lib program.
6718 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6719 fix_srcfile_path='`cygpath -w "$srcfile"`'
6720 enable_shared_with_static_runtimes=yes
6721 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006722
John Criswell47fdd832003-07-14 16:52:07 +00006723 darwin* | rhapsody*)
6724 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
6725 archive_cmds_need_lc=no
John Criswell7a73b802003-06-30 21:59:07 +00006726 case "$host_os" in
John Criswell47fdd832003-07-14 16:52:07 +00006727 rhapsody* | darwin1.[012])
6728 allow_undefined_flag='-undefined suppress'
6729 ;;
6730 *) # Darwin 1.3 on
6731 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
John Criswell7a73b802003-06-30 21:59:07 +00006732 ;;
6733 esac
John Criswell47fdd832003-07-14 16:52:07 +00006734 # FIXME: Relying on posixy $() will cause problems for
6735 # cross-compilation, but unfortunately the echo tests do not
6736 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
6737 # `"' quotes if we put them in here... so don't!
6738 lt_int_apple_cc_single_mod=no
6739 output_verbose_link_cmd='echo'
6740 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
6741 lt_int_apple_cc_single_mod=yes
6742 fi
6743 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6744 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6745 else
6746 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'
6747 fi
6748 module_cmds='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
6749 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6750 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6751 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}'
6752 else
6753 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}'
6754 fi
6755 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}'
6756 hardcode_direct=no
6757 hardcode_automatic=yes
6758 hardcode_shlibpath_var=unsupported
6759 whole_archive_flag_spec='-all_load $convenience'
6760 link_all_deplibs=yes
John Criswell7a73b802003-06-30 21:59:07 +00006761 fi
John Criswell47fdd832003-07-14 16:52:07 +00006762 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006763
John Criswell47fdd832003-07-14 16:52:07 +00006764 dgux*)
John Criswell7a73b802003-06-30 21:59:07 +00006765 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
John Criswell47fdd832003-07-14 16:52:07 +00006766 hardcode_libdir_flag_spec='-L$libdir'
6767 hardcode_shlibpath_var=no
6768 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006769
John Criswell47fdd832003-07-14 16:52:07 +00006770 freebsd1*)
6771 ld_shlibs=no
6772 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006773
John Criswell47fdd832003-07-14 16:52:07 +00006774 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6775 # support. Future versions do this automatically, but an explicit c++rt0.o
6776 # does not break anything, and helps significantly (at the cost of a little
6777 # extra space).
6778 freebsd2.2*)
6779 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6780 hardcode_libdir_flag_spec='-R$libdir'
6781 hardcode_direct=yes
6782 hardcode_shlibpath_var=no
6783 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006784
John Criswell47fdd832003-07-14 16:52:07 +00006785 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6786 freebsd2*)
6787 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6788 hardcode_direct=yes
6789 hardcode_minus_L=yes
6790 hardcode_shlibpath_var=no
6791 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006792
John Criswell47fdd832003-07-14 16:52:07 +00006793 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6794 freebsd*)
6795 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6796 hardcode_libdir_flag_spec='-R$libdir'
6797 hardcode_direct=yes
6798 hardcode_shlibpath_var=no
6799 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006800
John Criswell47fdd832003-07-14 16:52:07 +00006801 hpux9*)
6802 if test "$GCC" = yes; then
6803 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'
6804 else
6805 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'
6806 fi
6807 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6808 hardcode_libdir_separator=:
6809 hardcode_direct=yes
6810
6811 # hardcode_minus_L: Not really in the search PATH,
6812 # but as the default location of the library.
6813 hardcode_minus_L=yes
6814 export_dynamic_flag_spec='${wl}-E'
6815 ;;
6816
6817 hpux10* | hpux11*)
6818 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6819 case "$host_cpu" in
6820 hppa*64*|ia64*)
6821 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6822 ;;
6823 *)
6824 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6825 ;;
6826 esac
6827 else
6828 case "$host_cpu" in
6829 hppa*64*|ia64*)
6830 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
6831 ;;
6832 *)
6833 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
6834 ;;
6835 esac
6836 fi
6837 if test "$with_gnu_ld" = no; then
6838 case "$host_cpu" in
6839 hppa*64*)
6840 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6841 hardcode_libdir_flag_spec_ld='+b $libdir'
6842 hardcode_libdir_separator=:
6843 hardcode_direct=no
6844 hardcode_shlibpath_var=no
6845 ;;
6846 ia64*)
6847 hardcode_libdir_flag_spec='-L$libdir'
6848 hardcode_direct=no
6849 hardcode_shlibpath_var=no
6850
6851 # hardcode_minus_L: Not really in the search PATH,
6852 # but as the default location of the library.
6853 hardcode_minus_L=yes
6854 ;;
6855 *)
6856 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6857 hardcode_libdir_separator=:
6858 hardcode_direct=yes
6859 export_dynamic_flag_spec='${wl}-E'
6860
6861 # hardcode_minus_L: Not really in the search PATH,
6862 # but as the default location of the library.
6863 hardcode_minus_L=yes
6864 ;;
6865 esac
6866 fi
6867 ;;
6868
6869 irix5* | irix6* | nonstopux*)
6870 if test "$GCC" = yes; then
6871 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'
6872 else
6873 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'
6874 hardcode_libdir_flag_spec_ld='-rpath $libdir'
6875 fi
6876 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6877 hardcode_libdir_separator=:
6878 link_all_deplibs=yes
6879 ;;
6880
6881 netbsd*)
6882 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6883 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
6884 else
6885 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
6886 fi
6887 hardcode_libdir_flag_spec='-R$libdir'
6888 hardcode_direct=yes
6889 hardcode_shlibpath_var=no
6890 ;;
6891
6892 newsos6)
6893 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6894 hardcode_direct=yes
6895 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6896 hardcode_libdir_separator=:
6897 hardcode_shlibpath_var=no
6898 ;;
6899
6900 openbsd*)
6901 hardcode_direct=yes
6902 hardcode_shlibpath_var=no
6903 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6904 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6905 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6906 export_dynamic_flag_spec='${wl}-E'
6907 else
6908 case $host_os in
6909 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
6910 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6911 hardcode_libdir_flag_spec='-R$libdir'
6912 ;;
6913 *)
6914 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6915 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6916 ;;
6917 esac
6918 fi
6919 ;;
6920
6921 os2*)
6922 hardcode_libdir_flag_spec='-L$libdir'
6923 hardcode_minus_L=yes
6924 allow_undefined_flag=unsupported
6925 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'
6926 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6927 ;;
6928
6929 osf3*)
6930 if test "$GCC" = yes; then
6931 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6932 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'
6933 else
6934 allow_undefined_flag=' -expect_unresolved \*'
6935 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'
6936 fi
6937 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6938 hardcode_libdir_separator=:
6939 ;;
6940
6941 osf4* | osf5*) # as osf3* with the addition of -msym flag
6942 if test "$GCC" = yes; then
6943 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6944 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'
6945 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6946 else
6947 allow_undefined_flag=' -expect_unresolved \*'
6948 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'
6949 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6950 $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'
6951
6952 # Both c and cxx compiler support -rpath directly
6953 hardcode_libdir_flag_spec='-rpath $libdir'
6954 fi
6955 hardcode_libdir_separator=:
6956 ;;
6957
6958 sco3.2v5*)
John Criswell7a73b802003-06-30 21:59:07 +00006959 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6960 hardcode_shlibpath_var=no
John Criswell47fdd832003-07-14 16:52:07 +00006961 export_dynamic_flag_spec='${wl}-Bexport'
John Criswell7a73b802003-06-30 21:59:07 +00006962 runpath_var=LD_RUN_PATH
6963 hardcode_runpath_var=yes
John Criswell47fdd832003-07-14 16:52:07 +00006964 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006965
John Criswell47fdd832003-07-14 16:52:07 +00006966 solaris*)
6967 no_undefined_flag=' -z text'
6968 if test "$GCC" = yes; then
6969 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6970 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6971 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
6972 else
6973 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6974 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6975 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6976 fi
6977 hardcode_libdir_flag_spec='-R$libdir'
6978 hardcode_shlibpath_var=no
6979 case $host_os in
6980 solaris2.[0-5] | solaris2.[0-5].*) ;;
6981 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6982 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6983 esac
6984 link_all_deplibs=yes
6985 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006986
John Criswell47fdd832003-07-14 16:52:07 +00006987 sunos4*)
6988 if test "x$host_vendor" = xsequent; then
6989 # Use $CC to link under sequent, because it throws in some extra .o
6990 # files that make .init and .fini sections work.
6991 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6992 else
6993 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6994 fi
6995 hardcode_libdir_flag_spec='-L$libdir'
6996 hardcode_direct=yes
6997 hardcode_minus_L=yes
6998 hardcode_shlibpath_var=no
6999 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007000
John Criswell47fdd832003-07-14 16:52:07 +00007001 sysv4)
7002 case $host_vendor in
7003 sni)
7004 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7005 hardcode_direct=yes # is this really true???
7006 ;;
7007 siemens)
7008 ## LD is ld it makes a PLAMLIB
7009 ## CC just makes a GrossModule.
7010 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7011 reload_cmds='$CC -r -o $output$reload_objs'
7012 hardcode_direct=no
7013 ;;
7014 motorola)
7015 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7016 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7017 ;;
7018 esac
7019 runpath_var='LD_RUN_PATH'
7020 hardcode_shlibpath_var=no
7021 ;;
7022
7023 sysv4.3*)
7024 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7025 hardcode_shlibpath_var=no
7026 export_dynamic_flag_spec='-Bexport'
7027 ;;
7028
7029 sysv4*MP*)
7030 if test -d /usr/nec; then
7031 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7032 hardcode_shlibpath_var=no
7033 runpath_var=LD_RUN_PATH
7034 hardcode_runpath_var=yes
7035 ld_shlibs=yes
7036 fi
7037 ;;
7038
7039 sysv4.2uw2*)
7040 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7041 hardcode_direct=yes
7042 hardcode_minus_L=no
7043 hardcode_shlibpath_var=no
7044 hardcode_runpath_var=yes
7045 runpath_var=LD_RUN_PATH
7046 ;;
7047
7048 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7049 no_undefined_flag='${wl}-z ${wl}text'
7050 if test "$GCC" = yes; then
7051 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7052 else
7053 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7054 fi
7055 runpath_var='LD_RUN_PATH'
7056 hardcode_shlibpath_var=no
7057 ;;
7058
7059 sysv5*)
7060 no_undefined_flag=' -z text'
7061 # $CC -shared without GNU ld will not create a library from C++
7062 # object files and a static libstdc++, better avoid it by now
7063 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7064 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7065 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7066 hardcode_libdir_flag_spec=
7067 hardcode_shlibpath_var=no
7068 runpath_var='LD_RUN_PATH'
7069 ;;
7070
7071 uts4*)
7072 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7073 hardcode_libdir_flag_spec='-L$libdir'
7074 hardcode_shlibpath_var=no
7075 ;;
7076
7077 *)
7078 ld_shlibs=no
7079 ;;
7080 esac
7081 fi
7082
John Criswell7a73b802003-06-30 21:59:07 +00007083echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7084echo "${ECHO_T}$ld_shlibs" >&6
7085test "$ld_shlibs" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00007086
John Criswell47fdd832003-07-14 16:52:07 +00007087variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7088if test "$GCC" = yes; then
7089 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7090fi
7091
7092#
7093# Do we need to explicitly link libc?
7094#
7095case "x$archive_cmds_need_lc" in
7096x|xyes)
7097 # Assume -lc should be added
7098 archive_cmds_need_lc=yes
7099
7100 if test "$enable_shared" = yes && test "$GCC" = yes; then
7101 case $archive_cmds in
7102 *'~'*)
7103 # FIXME: we may have to deal with multi-command sequences.
7104 ;;
7105 '$CC '*)
7106 # Test whether the compiler implicitly links with -lc since on some
7107 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7108 # to ld, don't add -lc before -lgcc.
7109 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7110echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7111 $rm conftest*
7112 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7113
7114 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7115 (eval $ac_compile) 2>&5
7116 ac_status=$?
7117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7118 (exit $ac_status); } 2>conftest.err; then
7119 soname=conftest
7120 lib=conftest
7121 libobjs=conftest.$ac_objext
7122 deplibs=
7123 wl=$lt_prog_compiler_wl
7124 compiler_flags=-v
7125 linker_flags=-v
7126 verstring=
7127 output_objdir=.
7128 libname=conftest
7129 lt_save_allow_undefined_flag=$allow_undefined_flag
7130 allow_undefined_flag=
7131 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7132 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7133 ac_status=$?
7134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7135 (exit $ac_status); }
7136 then
7137 archive_cmds_need_lc=no
7138 else
7139 archive_cmds_need_lc=yes
7140 fi
7141 allow_undefined_flag=$lt_save_allow_undefined_flag
7142 else
7143 cat conftest.err 1>&5
7144 fi
7145 $rm conftest*
7146 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7147echo "${ECHO_T}$archive_cmds_need_lc" >&6
7148 ;;
7149 esac
7150 fi
7151 ;;
7152esac
7153
John Criswell7a73b802003-06-30 21:59:07 +00007154echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7155echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7156hardcode_action=
7157if test -n "$hardcode_libdir_flag_spec" || \
John Criswell47fdd832003-07-14 16:52:07 +00007158 test -n "$runpath_var " || \
7159 test "X$hardcode_automatic"="Xyes" ; then
John Criswell7a73b802003-06-30 21:59:07 +00007160
7161 # We can hardcode non-existant directories.
7162 if test "$hardcode_direct" != no &&
7163 # If the only mechanism to avoid hardcoding is shlibpath_var, we
7164 # have to relink, otherwise we might link with an installed library
7165 # when we should be linking with a yet-to-be-installed one
John Criswell47fdd832003-07-14 16:52:07 +00007166 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
John Criswell7a73b802003-06-30 21:59:07 +00007167 test "$hardcode_minus_L" != no; then
7168 # Linking always hardcodes the temporary library directory.
7169 hardcode_action=relink
7170 else
7171 # We can link without hardcoding, and we can hardcode nonexisting dirs.
7172 hardcode_action=immediate
7173 fi
7174else
7175 # We cannot hardcode anything, or else we can only hardcode existing
7176 # directories.
7177 hardcode_action=unsupported
7178fi
7179echo "$as_me:$LINENO: result: $hardcode_action" >&5
7180echo "${ECHO_T}$hardcode_action" >&6
John Criswell7a73b802003-06-30 21:59:07 +00007181
John Criswell47fdd832003-07-14 16:52:07 +00007182if test "$hardcode_action" = relink; then
7183 # Fast installation is not supported
7184 enable_fast_install=no
7185elif test "$shlibpath_overrides_runpath" = yes ||
7186 test "$enable_shared" = no; then
7187 # Fast installation is not necessary
7188 enable_fast_install=needless
7189fi
7190
John Criswell7a73b802003-06-30 21:59:07 +00007191striplib=
7192old_striplib=
7193echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7194echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7195if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7196 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7197 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7198 echo "$as_me:$LINENO: result: yes" >&5
7199echo "${ECHO_T}yes" >&6
7200else
John Criswell47fdd832003-07-14 16:52:07 +00007201# FIXME - insert some real tests, host_os isn't really good enough
7202 case $host_os in
7203 darwin*)
7204 if test -n "$STRIP" ; then
7205 striplib="$STRIP -x"
7206 echo "$as_me:$LINENO: result: yes" >&5
7207echo "${ECHO_T}yes" >&6
7208 else
John Criswell7a73b802003-06-30 21:59:07 +00007209 echo "$as_me:$LINENO: result: no" >&5
7210echo "${ECHO_T}no" >&6
7211fi
John Criswell47fdd832003-07-14 16:52:07 +00007212 ;;
7213 *)
7214 echo "$as_me:$LINENO: result: no" >&5
7215echo "${ECHO_T}no" >&6
7216 ;;
7217 esac
7218fi
John Criswell7a73b802003-06-30 21:59:07 +00007219
John Criswell7a73b802003-06-30 21:59:07 +00007220echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7221echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7222library_names_spec=
7223libname_spec='lib$name'
7224soname_spec=
John Criswell47fdd832003-07-14 16:52:07 +00007225shrext=".so"
John Criswell7a73b802003-06-30 21:59:07 +00007226postinstall_cmds=
7227postuninstall_cmds=
7228finish_cmds=
7229finish_eval=
7230shlibpath_var=
7231shlibpath_overrides_runpath=unknown
7232version_type=none
7233dynamic_linker="$host_os ld.so"
7234sys_lib_dlsearch_path_spec="/lib /usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +00007235if test "$GCC" = yes; then
7236 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7237 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7238 # if the path contains ";" then we assume it to be the separator
7239 # otherwise default to the standard path separator (i.e. ":") - it is
7240 # assumed that no part of a normal pathname contains ";" but that should
7241 # okay in the real world where ";" in dirpaths is itself problematic.
7242 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7243 else
7244 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7245 fi
7246else
7247 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7248fi
7249need_lib_prefix=unknown
7250hardcode_into_libs=no
7251
7252# when you set need_version to no, make sure it does not cause -set_version
7253# flags to be left without arguments
7254need_version=unknown
John Criswell7a73b802003-06-30 21:59:07 +00007255
7256case $host_os in
7257aix3*)
7258 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007259 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +00007260 shlibpath_var=LIBPATH
7261
John Criswell47fdd832003-07-14 16:52:07 +00007262 # AIX 3 has no versioning support, so we append a major version to the name.
7263 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007264 ;;
7265
7266aix4* | aix5*)
7267 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007268 need_lib_prefix=no
7269 need_version=no
7270 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +00007271 if test "$host_cpu" = ia64; then
7272 # AIX 5 supports IA64
John Criswell47fdd832003-07-14 16:52:07 +00007273 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007274 shlibpath_var=LD_LIBRARY_PATH
7275 else
7276 # With GCC up to 2.95.x, collect2 would create an import file
7277 # for dependence libraries. The import file would start with
7278 # the line `#! .'. This would cause the generated library to
7279 # depend on `.', always an invalid library. This was fixed in
7280 # development snapshots of GCC prior to 3.0.
7281 case $host_os in
7282 aix4 | aix4.[01] | aix4.[01].*)
John Criswell47fdd832003-07-14 16:52:07 +00007283 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7284 echo ' yes '
7285 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7286 :
7287 else
7288 can_build_shared=no
7289 fi
7290 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007291 esac
John Criswell47fdd832003-07-14 16:52:07 +00007292 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7293 # soname into executable. Probably we can add versioning support to
7294 # collect2, so additional links can be useful in future.
John Criswell7a73b802003-06-30 21:59:07 +00007295 if test "$aix_use_runtimelinking" = yes; then
7296 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7297 # instead of lib<name>.a to let people know that these are not
7298 # typical AIX shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +00007299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007300 else
7301 # We preserve .a as extension for shared libraries through AIX4.2
7302 # and later when we are not doing run time linking.
7303 library_names_spec='${libname}${release}.a $libname.a'
John Criswell47fdd832003-07-14 16:52:07 +00007304 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007305 fi
7306 shlibpath_var=LIBPATH
7307 fi
7308 ;;
7309
7310amigaos*)
7311 library_names_spec='$libname.ixlibrary $libname.a'
7312 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7313 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'
7314 ;;
7315
7316beos*)
John Criswell47fdd832003-07-14 16:52:07 +00007317 library_names_spec='${libname}${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007318 dynamic_linker="$host_os ld.so"
7319 shlibpath_var=LIBRARY_PATH
7320 ;;
7321
7322bsdi4*)
7323 version_type=linux
7324 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7326 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007327 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7328 shlibpath_var=LD_LIBRARY_PATH
7329 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7330 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
John Criswell7a73b802003-06-30 21:59:07 +00007331 # the default ld.so.conf also contains /usr/contrib/lib and
7332 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7333 # libtool to hard-code these into programs
7334 ;;
7335
7336cygwin* | mingw* | pw32*)
7337 version_type=windows
John Criswell47fdd832003-07-14 16:52:07 +00007338 shrext=".dll"
John Criswell7a73b802003-06-30 21:59:07 +00007339 need_version=no
7340 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +00007341
John Criswell7a73b802003-06-30 21:59:07 +00007342 case $GCC,$host_os in
John Criswell47fdd832003-07-14 16:52:07 +00007343 yes,cygwin* | yes,mingw* | yes,pw32*)
John Criswell7a73b802003-06-30 21:59:07 +00007344 library_names_spec='$libname.dll.a'
John Criswell47fdd832003-07-14 16:52:07 +00007345 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7346 postinstall_cmds='base_file=`basename \${file}`~
7347 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
John Criswell7a73b802003-06-30 21:59:07 +00007348 dldir=$destdir/`dirname \$dlpath`~
7349 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +00007350 $install_prog $dir/$dlname \$dldir/$dlname'
7351 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
John Criswell7a73b802003-06-30 21:59:07 +00007352 dlpath=$dir/\$dldll~
7353 $rm \$dlpath'
John Criswell47fdd832003-07-14 16:52:07 +00007354 shlibpath_overrides_runpath=yes
7355
7356 case $host_os in
7357 cygwin*)
7358 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7359 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7360 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
7361 ;;
7362 mingw*)
7363 # MinGW DLLs use traditional 'lib' prefix
7364 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7365 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7366 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7367 # It is most probably a Windows format PATH printed by
7368 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7369 # path with ; separators, and with drive letters. We can handle the
7370 # drive letters (cygwin fileutils understands them), so leave them,
7371 # especially as we might pass files found there to a mingw objdump,
7372 # which wouldn't understand a cygwinified path. Ahh.
7373 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7374 else
7375 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7376 fi
7377 ;;
7378 pw32*)
7379 # pw32 DLLs use 'pw' prefix rather than 'lib'
7380 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7381 ;;
7382 esac
John Criswell7a73b802003-06-30 21:59:07 +00007383 ;;
John Criswell47fdd832003-07-14 16:52:07 +00007384
John Criswell7a73b802003-06-30 21:59:07 +00007385 *)
John Criswell47fdd832003-07-14 16:52:07 +00007386 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
John Criswell7a73b802003-06-30 21:59:07 +00007387 ;;
7388 esac
7389 dynamic_linker='Win32 ld.exe'
7390 # FIXME: first we should search . and the directory the executable is in
7391 shlibpath_var=PATH
7392 ;;
7393
7394darwin* | rhapsody*)
7395 dynamic_linker="$host_os dyld"
7396 version_type=darwin
7397 need_lib_prefix=no
7398 need_version=no
7399 # FIXME: Relying on posixy $() will cause problems for
7400 # cross-compilation, but unfortunately the echo tests do not
7401 # yet detect zsh echo's removal of \ escapes.
John Criswell47fdd832003-07-14 16:52:07 +00007402 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7403 soname_spec='${libname}${release}${major}$shared_ext'
John Criswell7a73b802003-06-30 21:59:07 +00007404 shlibpath_overrides_runpath=yes
7405 shlibpath_var=DYLD_LIBRARY_PATH
John Criswell47fdd832003-07-14 16:52:07 +00007406 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
7407 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7408 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7409 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"`
7410 fi
7411 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7412 ;;
7413
7414dgux*)
7415 version_type=linux
7416 need_lib_prefix=no
7417 need_version=no
7418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7419 soname_spec='${libname}${release}${shared_ext}$major'
7420 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +00007421 ;;
7422
7423freebsd1*)
7424 dynamic_linker=no
7425 ;;
7426
7427freebsd*)
7428 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7429 version_type=freebsd-$objformat
7430 case $version_type in
7431 freebsd-elf*)
John Criswell47fdd832003-07-14 16:52:07 +00007432 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007433 need_version=no
7434 need_lib_prefix=no
7435 ;;
7436 freebsd-*)
John Criswell47fdd832003-07-14 16:52:07 +00007437 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +00007438 need_version=yes
7439 ;;
7440 esac
7441 shlibpath_var=LD_LIBRARY_PATH
7442 case $host_os in
7443 freebsd2*)
7444 shlibpath_overrides_runpath=yes
7445 ;;
John Criswell47fdd832003-07-14 16:52:07 +00007446 freebsd3.01* | freebsdelf3.01*)
7447 shlibpath_overrides_runpath=yes
7448 hardcode_into_libs=yes
7449 ;;
7450 *) # from 3.2 on
John Criswell7a73b802003-06-30 21:59:07 +00007451 shlibpath_overrides_runpath=no
7452 hardcode_into_libs=yes
7453 ;;
7454 esac
7455 ;;
7456
7457gnu*)
7458 version_type=linux
7459 need_lib_prefix=no
7460 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7462 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007463 shlibpath_var=LD_LIBRARY_PATH
7464 hardcode_into_libs=yes
7465 ;;
7466
7467hpux9* | hpux10* | hpux11*)
7468 # Give a soname corresponding to the major version so that dld.sl refuses to
7469 # link against other versions.
John Criswell7a73b802003-06-30 21:59:07 +00007470 version_type=sunos
7471 need_lib_prefix=no
7472 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007473 case "$host_cpu" in
7474 ia64*)
7475 shrext='.so'
7476 hardcode_into_libs=yes
7477 dynamic_linker="$host_os dld.so"
7478 shlibpath_var=LD_LIBRARY_PATH
7479 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7481 soname_spec='${libname}${release}${shared_ext}$major'
7482 if test "X$HPUX_IA64_MODE" = X32; then
7483 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7484 else
7485 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7486 fi
7487 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7488 ;;
7489 hppa*64*)
7490 shrext='.sl'
7491 hardcode_into_libs=yes
7492 dynamic_linker="$host_os dld.sl"
7493 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7494 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7496 soname_spec='${libname}${release}${shared_ext}$major'
7497 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7498 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7499 ;;
7500 *)
7501 shrext='.sl'
7502 dynamic_linker="$host_os dld.sl"
7503 shlibpath_var=SHLIB_PATH
7504 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7505 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7506 soname_spec='${libname}${release}${shared_ext}$major'
7507 ;;
7508 esac
John Criswell7a73b802003-06-30 21:59:07 +00007509 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7510 postinstall_cmds='chmod 555 $lib'
7511 ;;
7512
John Criswell47fdd832003-07-14 16:52:07 +00007513irix5* | irix6* | nonstopux*)
7514 case $host_os in
7515 nonstopux*) version_type=nonstopux ;;
7516 *)
7517 if test "$lt_cv_prog_gnu_ld" = yes; then
7518 version_type=linux
7519 else
7520 version_type=irix
7521 fi ;;
7522 esac
John Criswell7a73b802003-06-30 21:59:07 +00007523 need_lib_prefix=no
7524 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007525 soname_spec='${libname}${release}${shared_ext}$major'
7526 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 +00007527 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00007528 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +00007529 libsuff= shlibsuff=
7530 ;;
7531 *)
7532 case $LD in # libtool.m4 will add one of these switches to LD
John Criswell47fdd832003-07-14 16:52:07 +00007533 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7534 libsuff= shlibsuff= libmagic=32-bit;;
7535 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7536 libsuff=32 shlibsuff=N32 libmagic=N32;;
7537 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7538 libsuff=64 shlibsuff=64 libmagic=64-bit;;
John Criswell7a73b802003-06-30 21:59:07 +00007539 *) libsuff= shlibsuff= libmagic=never-match;;
7540 esac
7541 ;;
7542 esac
7543 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7544 shlibpath_overrides_runpath=no
7545 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7546 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
John Criswell47fdd832003-07-14 16:52:07 +00007547 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +00007548 ;;
7549
7550# No shared lib support for Linux oldld, aout, or coff.
John Criswell47fdd832003-07-14 16:52:07 +00007551linux*oldld* | linux*aout* | linux*coff*)
John Criswell7a73b802003-06-30 21:59:07 +00007552 dynamic_linker=no
7553 ;;
7554
7555# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +00007556linux*)
John Criswell7a73b802003-06-30 21:59:07 +00007557 version_type=linux
7558 need_lib_prefix=no
7559 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7561 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007562 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7563 shlibpath_var=LD_LIBRARY_PATH
7564 shlibpath_overrides_runpath=no
7565 # This implies no fast_install, which is unacceptable.
7566 # Some rework will be needed to allow for fast_install
7567 # before this can be enabled.
7568 hardcode_into_libs=yes
7569
7570 # We used to test for /lib/ld.so.1 and disable shared libraries on
7571 # powerpc, because MkLinux only supported shared libraries with the
7572 # GNU dynamic linker. Since this was broken with cross compilers,
7573 # most powerpc-linux boxes support dynamic linking these days and
7574 # people can always --disable-shared, the test was removed, and we
7575 # assume the GNU/Linux dynamic linker is in use.
7576 dynamic_linker='GNU/Linux ld.so'
7577 ;;
7578
7579netbsd*)
7580 version_type=sunos
7581 need_lib_prefix=no
7582 need_version=no
7583 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +00007584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +00007585 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7586 dynamic_linker='NetBSD (a.out) ld.so'
7587 else
John Criswell47fdd832003-07-14 16:52:07 +00007588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
7589 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007590 dynamic_linker='NetBSD ld.elf_so'
7591 fi
7592 shlibpath_var=LD_LIBRARY_PATH
7593 shlibpath_overrides_runpath=yes
7594 hardcode_into_libs=yes
7595 ;;
7596
7597newsos6)
7598 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7600 shlibpath_var=LD_LIBRARY_PATH
7601 shlibpath_overrides_runpath=yes
7602 ;;
7603
7604nto-qnx)
7605 version_type=linux
7606 need_lib_prefix=no
7607 need_version=no
7608 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7609 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007610 shlibpath_var=LD_LIBRARY_PATH
7611 shlibpath_overrides_runpath=yes
7612 ;;
7613
7614openbsd*)
7615 version_type=sunos
7616 need_lib_prefix=no
7617 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7619 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7620 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +00007621 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 +00007622 case $host_os in
7623 openbsd2.[89] | openbsd2.[89].*)
7624 shlibpath_overrides_runpath=no
7625 ;;
7626 *)
7627 shlibpath_overrides_runpath=yes
7628 ;;
7629 esac
John Criswell7a73b802003-06-30 21:59:07 +00007630 else
7631 shlibpath_overrides_runpath=yes
7632 fi
John Criswell7a73b802003-06-30 21:59:07 +00007633 ;;
7634
7635os2*)
7636 libname_spec='$name'
John Criswell47fdd832003-07-14 16:52:07 +00007637 shrext=".dll"
John Criswell7a73b802003-06-30 21:59:07 +00007638 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +00007639 library_names_spec='$libname${shared_ext} $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +00007640 dynamic_linker='OS/2 ld.exe'
7641 shlibpath_var=LIBPATH
7642 ;;
7643
7644osf3* | osf4* | osf5*)
7645 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +00007646 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +00007647 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007648 soname_spec='${libname}${release}${shared_ext}$major'
7649 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007650 shlibpath_var=LD_LIBRARY_PATH
7651 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7652 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7653 ;;
7654
7655sco3.2v5*)
7656 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +00007657 soname_spec='${libname}${release}${shared_ext}$major'
7658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007659 shlibpath_var=LD_LIBRARY_PATH
7660 ;;
7661
7662solaris*)
7663 version_type=linux
7664 need_lib_prefix=no
7665 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007666 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7667 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007668 shlibpath_var=LD_LIBRARY_PATH
7669 shlibpath_overrides_runpath=yes
7670 hardcode_into_libs=yes
7671 # ldd complains unless libraries are executable
7672 postinstall_cmds='chmod +x $lib'
7673 ;;
7674
7675sunos4*)
7676 version_type=sunos
John Criswell47fdd832003-07-14 16:52:07 +00007677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +00007678 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7679 shlibpath_var=LD_LIBRARY_PATH
7680 shlibpath_overrides_runpath=yes
7681 if test "$with_gnu_ld" = yes; then
7682 need_lib_prefix=no
7683 fi
7684 need_version=yes
7685 ;;
7686
7687sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7688 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7690 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007691 shlibpath_var=LD_LIBRARY_PATH
7692 case $host_vendor in
7693 sni)
7694 shlibpath_overrides_runpath=no
John Criswell47fdd832003-07-14 16:52:07 +00007695 need_lib_prefix=no
7696 export_dynamic_flag_spec='${wl}-Blargedynsym'
7697 runpath_var=LD_RUN_PATH
7698 ;;
7699 siemens)
7700 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +00007701 ;;
7702 motorola)
7703 need_lib_prefix=no
7704 need_version=no
7705 shlibpath_overrides_runpath=no
7706 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7707 ;;
7708 esac
7709 ;;
7710
John Criswell7a73b802003-06-30 21:59:07 +00007711sysv4*MP*)
7712 if test -d /usr/nec ;then
7713 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007714 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7715 soname_spec='$libname${shared_ext}.$major'
John Criswell7a73b802003-06-30 21:59:07 +00007716 shlibpath_var=LD_LIBRARY_PATH
7717 fi
7718 ;;
7719
John Criswell47fdd832003-07-14 16:52:07 +00007720uts4*)
7721 version_type=linux
7722 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7723 soname_spec='${libname}${release}${shared_ext}$major'
7724 shlibpath_var=LD_LIBRARY_PATH
7725 ;;
7726
John Criswell7a73b802003-06-30 21:59:07 +00007727*)
7728 dynamic_linker=no
7729 ;;
7730esac
7731echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7732echo "${ECHO_T}$dynamic_linker" >&6
7733test "$dynamic_linker" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00007734
7735if test "x$enable_dlopen" != xyes; then
7736 enable_dlopen=unknown
7737 enable_dlopen_self=unknown
7738 enable_dlopen_self_static=unknown
7739else
7740 lt_cv_dlopen=no
7741 lt_cv_dlopen_libs=
7742
7743 case $host_os in
7744 beos*)
7745 lt_cv_dlopen="load_add_on"
7746 lt_cv_dlopen_libs=
7747 lt_cv_dlopen_self=yes
7748 ;;
7749
John Criswell47fdd832003-07-14 16:52:07 +00007750 mingw* | pw32*)
John Criswell7a73b802003-06-30 21:59:07 +00007751 lt_cv_dlopen="LoadLibrary"
7752 lt_cv_dlopen_libs=
7753 ;;
7754
John Criswell47fdd832003-07-14 16:52:07 +00007755 cygwin*)
7756 lt_cv_dlopen="dlopen"
7757 lt_cv_dlopen_libs=
7758 ;;
7759
7760 darwin*)
7761 # if libdl is installed we need to link against it
7762 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7763echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7764if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7765 echo $ECHO_N "(cached) $ECHO_C" >&6
7766else
7767 ac_check_lib_save_LIBS=$LIBS
7768LIBS="-ldl $LIBS"
7769cat >conftest.$ac_ext <<_ACEOF
7770#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00007771/* confdefs.h. */
7772_ACEOF
7773cat confdefs.h >>conftest.$ac_ext
7774cat >>conftest.$ac_ext <<_ACEOF
7775/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00007776
7777/* Override any gcc2 internal prototype to avoid an error. */
7778#ifdef __cplusplus
7779extern "C"
7780#endif
7781/* We use char because int might match the return type of a gcc2
7782 builtin and then its argument prototype would still apply. */
7783char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +00007784int
7785main ()
7786{
7787dlopen ();
7788 ;
7789 return 0;
7790}
7791_ACEOF
7792rm -f conftest.$ac_objext conftest$ac_exeext
7793if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7794 (eval $ac_link) 2>&5
7795 ac_status=$?
7796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7797 (exit $ac_status); } &&
7798 { ac_try='test -s conftest$ac_exeext'
7799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7800 (eval $ac_try) 2>&5
7801 ac_status=$?
7802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7803 (exit $ac_status); }; }; then
7804 ac_cv_lib_dl_dlopen=yes
7805else
7806 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00007807sed 's/^/| /' conftest.$ac_ext >&5
7808
John Criswell47fdd832003-07-14 16:52:07 +00007809ac_cv_lib_dl_dlopen=no
7810fi
7811rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7812LIBS=$ac_check_lib_save_LIBS
7813fi
7814echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7815echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7816if test $ac_cv_lib_dl_dlopen = yes; then
7817 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7818else
7819
7820 lt_cv_dlopen="dyld"
7821 lt_cv_dlopen_libs=
7822 lt_cv_dlopen_self=yes
7823
7824fi
7825
7826 ;;
7827
John Criswell7a73b802003-06-30 21:59:07 +00007828 *)
7829 echo "$as_me:$LINENO: checking for shl_load" >&5
7830echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7831if test "${ac_cv_func_shl_load+set}" = set; then
7832 echo $ECHO_N "(cached) $ECHO_C" >&6
7833else
7834 cat >conftest.$ac_ext <<_ACEOF
7835#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00007836/* confdefs.h. */
7837_ACEOF
7838cat confdefs.h >>conftest.$ac_ext
7839cat >>conftest.$ac_ext <<_ACEOF
7840/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00007841/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +00007842 which can conflict with char shl_load (); below.
7843 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7844 <limits.h> exists even on freestanding compilers. */
7845#ifdef __STDC__
7846# include <limits.h>
7847#else
7848# include <assert.h>
7849#endif
John Criswell7a73b802003-06-30 21:59:07 +00007850/* Override any gcc2 internal prototype to avoid an error. */
7851#ifdef __cplusplus
7852extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +00007853{
John Criswell7a73b802003-06-30 21:59:07 +00007854#endif
7855/* We use char because int might match the return type of a gcc2
7856 builtin and then its argument prototype would still apply. */
7857char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +00007858/* The GNU C library defines this for functions which it implements
7859 to always fail with ENOSYS. Some functions are actually named
7860 something starting with __ and the normal name is an alias. */
7861#if defined (__stub_shl_load) || defined (__stub___shl_load)
7862choke me
7863#else
John Criswell0c38eaf2003-09-10 15:17:25 +00007864char (*f) () = shl_load;
7865#endif
7866#ifdef __cplusplus
7867}
John Criswell7a73b802003-06-30 21:59:07 +00007868#endif
7869
John Criswell0c38eaf2003-09-10 15:17:25 +00007870int
7871main ()
7872{
7873return f != shl_load;
John Criswell7a73b802003-06-30 21:59:07 +00007874 ;
7875 return 0;
7876}
7877_ACEOF
7878rm -f conftest.$ac_objext conftest$ac_exeext
7879if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7880 (eval $ac_link) 2>&5
7881 ac_status=$?
7882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7883 (exit $ac_status); } &&
7884 { ac_try='test -s conftest$ac_exeext'
7885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7886 (eval $ac_try) 2>&5
7887 ac_status=$?
7888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7889 (exit $ac_status); }; }; then
7890 ac_cv_func_shl_load=yes
7891else
7892 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00007893sed 's/^/| /' conftest.$ac_ext >&5
7894
John Criswell7a73b802003-06-30 21:59:07 +00007895ac_cv_func_shl_load=no
7896fi
7897rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7898fi
7899echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7900echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7901if test $ac_cv_func_shl_load = yes; then
7902 lt_cv_dlopen="shl_load"
7903else
7904 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7905echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7906if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7907 echo $ECHO_N "(cached) $ECHO_C" >&6
7908else
7909 ac_check_lib_save_LIBS=$LIBS
7910LIBS="-ldld $LIBS"
7911cat >conftest.$ac_ext <<_ACEOF
7912#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00007913/* confdefs.h. */
7914_ACEOF
7915cat confdefs.h >>conftest.$ac_ext
7916cat >>conftest.$ac_ext <<_ACEOF
7917/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00007918
7919/* Override any gcc2 internal prototype to avoid an error. */
7920#ifdef __cplusplus
7921extern "C"
7922#endif
7923/* We use char because int might match the return type of a gcc2
7924 builtin and then its argument prototype would still apply. */
7925char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +00007926int
7927main ()
7928{
7929shl_load ();
7930 ;
7931 return 0;
7932}
7933_ACEOF
7934rm -f conftest.$ac_objext conftest$ac_exeext
7935if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7936 (eval $ac_link) 2>&5
7937 ac_status=$?
7938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7939 (exit $ac_status); } &&
7940 { ac_try='test -s conftest$ac_exeext'
7941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7942 (eval $ac_try) 2>&5
7943 ac_status=$?
7944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7945 (exit $ac_status); }; }; then
7946 ac_cv_lib_dld_shl_load=yes
7947else
7948 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00007949sed 's/^/| /' conftest.$ac_ext >&5
7950
John Criswell7a73b802003-06-30 21:59:07 +00007951ac_cv_lib_dld_shl_load=no
7952fi
7953rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7954LIBS=$ac_check_lib_save_LIBS
7955fi
7956echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7957echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7958if test $ac_cv_lib_dld_shl_load = yes; then
7959 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
7960else
7961 echo "$as_me:$LINENO: checking for dlopen" >&5
7962echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
7963if test "${ac_cv_func_dlopen+set}" = set; then
7964 echo $ECHO_N "(cached) $ECHO_C" >&6
7965else
7966 cat >conftest.$ac_ext <<_ACEOF
7967#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00007968/* confdefs.h. */
7969_ACEOF
7970cat confdefs.h >>conftest.$ac_ext
7971cat >>conftest.$ac_ext <<_ACEOF
7972/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00007973/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +00007974 which can conflict with char dlopen (); below.
7975 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7976 <limits.h> exists even on freestanding compilers. */
7977#ifdef __STDC__
7978# include <limits.h>
7979#else
7980# include <assert.h>
7981#endif
John Criswell7a73b802003-06-30 21:59:07 +00007982/* Override any gcc2 internal prototype to avoid an error. */
7983#ifdef __cplusplus
7984extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +00007985{
John Criswell7a73b802003-06-30 21:59:07 +00007986#endif
7987/* We use char because int might match the return type of a gcc2
7988 builtin and then its argument prototype would still apply. */
7989char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +00007990/* The GNU C library defines this for functions which it implements
7991 to always fail with ENOSYS. Some functions are actually named
7992 something starting with __ and the normal name is an alias. */
7993#if defined (__stub_dlopen) || defined (__stub___dlopen)
7994choke me
7995#else
John Criswell0c38eaf2003-09-10 15:17:25 +00007996char (*f) () = dlopen;
7997#endif
7998#ifdef __cplusplus
7999}
John Criswell7a73b802003-06-30 21:59:07 +00008000#endif
8001
John Criswell0c38eaf2003-09-10 15:17:25 +00008002int
8003main ()
8004{
8005return f != dlopen;
John Criswell7a73b802003-06-30 21:59:07 +00008006 ;
8007 return 0;
8008}
8009_ACEOF
8010rm -f conftest.$ac_objext conftest$ac_exeext
8011if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8012 (eval $ac_link) 2>&5
8013 ac_status=$?
8014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8015 (exit $ac_status); } &&
8016 { ac_try='test -s conftest$ac_exeext'
8017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8018 (eval $ac_try) 2>&5
8019 ac_status=$?
8020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8021 (exit $ac_status); }; }; then
8022 ac_cv_func_dlopen=yes
8023else
8024 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008025sed 's/^/| /' conftest.$ac_ext >&5
8026
John Criswell7a73b802003-06-30 21:59:07 +00008027ac_cv_func_dlopen=no
8028fi
8029rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8030fi
8031echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8032echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8033if test $ac_cv_func_dlopen = yes; then
8034 lt_cv_dlopen="dlopen"
8035else
8036 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8037echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8038if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8039 echo $ECHO_N "(cached) $ECHO_C" >&6
8040else
8041 ac_check_lib_save_LIBS=$LIBS
8042LIBS="-ldl $LIBS"
8043cat >conftest.$ac_ext <<_ACEOF
8044#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008045/* confdefs.h. */
8046_ACEOF
8047cat confdefs.h >>conftest.$ac_ext
8048cat >>conftest.$ac_ext <<_ACEOF
8049/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008050
8051/* Override any gcc2 internal prototype to avoid an error. */
8052#ifdef __cplusplus
8053extern "C"
8054#endif
8055/* We use char because int might match the return type of a gcc2
8056 builtin and then its argument prototype would still apply. */
8057char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +00008058int
8059main ()
8060{
8061dlopen ();
8062 ;
8063 return 0;
8064}
8065_ACEOF
8066rm -f conftest.$ac_objext conftest$ac_exeext
8067if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8068 (eval $ac_link) 2>&5
8069 ac_status=$?
8070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8071 (exit $ac_status); } &&
8072 { ac_try='test -s conftest$ac_exeext'
8073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8074 (eval $ac_try) 2>&5
8075 ac_status=$?
8076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8077 (exit $ac_status); }; }; then
8078 ac_cv_lib_dl_dlopen=yes
8079else
8080 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008081sed 's/^/| /' conftest.$ac_ext >&5
8082
John Criswell7a73b802003-06-30 21:59:07 +00008083ac_cv_lib_dl_dlopen=no
8084fi
8085rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8086LIBS=$ac_check_lib_save_LIBS
8087fi
8088echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8089echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8090if test $ac_cv_lib_dl_dlopen = yes; then
8091 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8092else
8093 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8094echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8095if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8096 echo $ECHO_N "(cached) $ECHO_C" >&6
8097else
8098 ac_check_lib_save_LIBS=$LIBS
8099LIBS="-lsvld $LIBS"
8100cat >conftest.$ac_ext <<_ACEOF
8101#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008102/* confdefs.h. */
8103_ACEOF
8104cat confdefs.h >>conftest.$ac_ext
8105cat >>conftest.$ac_ext <<_ACEOF
8106/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008107
8108/* Override any gcc2 internal prototype to avoid an error. */
8109#ifdef __cplusplus
8110extern "C"
8111#endif
8112/* We use char because int might match the return type of a gcc2
8113 builtin and then its argument prototype would still apply. */
8114char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +00008115int
8116main ()
8117{
8118dlopen ();
8119 ;
8120 return 0;
8121}
8122_ACEOF
8123rm -f conftest.$ac_objext conftest$ac_exeext
8124if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8125 (eval $ac_link) 2>&5
8126 ac_status=$?
8127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8128 (exit $ac_status); } &&
8129 { ac_try='test -s conftest$ac_exeext'
8130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8131 (eval $ac_try) 2>&5
8132 ac_status=$?
8133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8134 (exit $ac_status); }; }; then
8135 ac_cv_lib_svld_dlopen=yes
8136else
8137 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008138sed 's/^/| /' conftest.$ac_ext >&5
8139
John Criswell7a73b802003-06-30 21:59:07 +00008140ac_cv_lib_svld_dlopen=no
8141fi
8142rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8143LIBS=$ac_check_lib_save_LIBS
8144fi
8145echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8146echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8147if test $ac_cv_lib_svld_dlopen = yes; then
8148 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8149else
8150 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8151echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8152if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8153 echo $ECHO_N "(cached) $ECHO_C" >&6
8154else
8155 ac_check_lib_save_LIBS=$LIBS
8156LIBS="-ldld $LIBS"
8157cat >conftest.$ac_ext <<_ACEOF
8158#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008159/* confdefs.h. */
8160_ACEOF
8161cat confdefs.h >>conftest.$ac_ext
8162cat >>conftest.$ac_ext <<_ACEOF
8163/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008164
8165/* Override any gcc2 internal prototype to avoid an error. */
8166#ifdef __cplusplus
8167extern "C"
8168#endif
8169/* We use char because int might match the return type of a gcc2
8170 builtin and then its argument prototype would still apply. */
8171char dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +00008172int
8173main ()
8174{
8175dld_link ();
8176 ;
8177 return 0;
8178}
8179_ACEOF
8180rm -f conftest.$ac_objext conftest$ac_exeext
8181if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8182 (eval $ac_link) 2>&5
8183 ac_status=$?
8184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8185 (exit $ac_status); } &&
8186 { ac_try='test -s conftest$ac_exeext'
8187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8188 (eval $ac_try) 2>&5
8189 ac_status=$?
8190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8191 (exit $ac_status); }; }; then
8192 ac_cv_lib_dld_dld_link=yes
8193else
8194 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008195sed 's/^/| /' conftest.$ac_ext >&5
8196
John Criswell7a73b802003-06-30 21:59:07 +00008197ac_cv_lib_dld_dld_link=no
8198fi
8199rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8200LIBS=$ac_check_lib_save_LIBS
8201fi
8202echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8203echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8204if test $ac_cv_lib_dld_dld_link = yes; then
8205 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8206fi
8207
8208
8209fi
8210
8211
8212fi
8213
8214
8215fi
8216
8217
8218fi
8219
8220
8221fi
8222
8223 ;;
8224 esac
8225
8226 if test "x$lt_cv_dlopen" != xno; then
8227 enable_dlopen=yes
8228 else
8229 enable_dlopen=no
8230 fi
8231
8232 case $lt_cv_dlopen in
8233 dlopen)
8234 save_CPPFLAGS="$CPPFLAGS"
John Criswell47fdd832003-07-14 16:52:07 +00008235 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
John Criswell7a73b802003-06-30 21:59:07 +00008236
8237 save_LDFLAGS="$LDFLAGS"
8238 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8239
8240 save_LIBS="$LIBS"
8241 LIBS="$lt_cv_dlopen_libs $LIBS"
8242
8243 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8244echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8245if test "${lt_cv_dlopen_self+set}" = set; then
8246 echo $ECHO_N "(cached) $ECHO_C" >&6
8247else
8248 if test "$cross_compiling" = yes; then :
8249 lt_cv_dlopen_self=cross
8250else
John Criswell47fdd832003-07-14 16:52:07 +00008251 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +00008252 lt_status=$lt_dlunknown
8253 cat > conftest.$ac_ext <<EOF
John Criswell60577602003-11-25 17:49:22 +00008254#line 8254 "configure"
John Criswell7a73b802003-06-30 21:59:07 +00008255#include "confdefs.h"
8256
8257#if HAVE_DLFCN_H
8258#include <dlfcn.h>
8259#endif
8260
8261#include <stdio.h>
8262
8263#ifdef RTLD_GLOBAL
8264# define LT_DLGLOBAL RTLD_GLOBAL
8265#else
8266# ifdef DL_GLOBAL
8267# define LT_DLGLOBAL DL_GLOBAL
8268# else
8269# define LT_DLGLOBAL 0
8270# endif
8271#endif
8272
8273/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8274 find out it does not work in some platform. */
8275#ifndef LT_DLLAZY_OR_NOW
8276# ifdef RTLD_LAZY
8277# define LT_DLLAZY_OR_NOW RTLD_LAZY
8278# else
8279# ifdef DL_LAZY
8280# define LT_DLLAZY_OR_NOW DL_LAZY
8281# else
8282# ifdef RTLD_NOW
8283# define LT_DLLAZY_OR_NOW RTLD_NOW
8284# else
8285# ifdef DL_NOW
8286# define LT_DLLAZY_OR_NOW DL_NOW
8287# else
8288# define LT_DLLAZY_OR_NOW 0
8289# endif
8290# endif
8291# endif
8292# endif
8293#endif
8294
8295#ifdef __cplusplus
8296extern "C" void exit (int);
8297#endif
8298
8299void fnord() { int i=42;}
8300int main ()
8301{
8302 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8303 int status = $lt_dlunknown;
8304
8305 if (self)
8306 {
8307 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8308 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8309 /* dlclose (self); */
8310 }
8311
8312 exit (status);
8313}
8314EOF
8315 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8316 (eval $ac_link) 2>&5
8317 ac_status=$?
8318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8319 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8320 (./conftest; exit; ) 2>/dev/null
8321 lt_status=$?
8322 case x$lt_status in
8323 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8324 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8325 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8326 esac
8327 else :
8328 # compilation failed
8329 lt_cv_dlopen_self=no
8330 fi
8331fi
8332rm -fr conftest*
8333
8334
8335fi
8336echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8337echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8338
8339 if test "x$lt_cv_dlopen_self" = xyes; then
8340 LDFLAGS="$LDFLAGS $link_static_flag"
8341 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8342echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8343if test "${lt_cv_dlopen_self_static+set}" = set; then
8344 echo $ECHO_N "(cached) $ECHO_C" >&6
8345else
8346 if test "$cross_compiling" = yes; then :
8347 lt_cv_dlopen_self_static=cross
8348else
John Criswell47fdd832003-07-14 16:52:07 +00008349 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +00008350 lt_status=$lt_dlunknown
8351 cat > conftest.$ac_ext <<EOF
John Criswell60577602003-11-25 17:49:22 +00008352#line 8352 "configure"
John Criswell7a73b802003-06-30 21:59:07 +00008353#include "confdefs.h"
8354
8355#if HAVE_DLFCN_H
8356#include <dlfcn.h>
8357#endif
8358
8359#include <stdio.h>
8360
8361#ifdef RTLD_GLOBAL
8362# define LT_DLGLOBAL RTLD_GLOBAL
8363#else
8364# ifdef DL_GLOBAL
8365# define LT_DLGLOBAL DL_GLOBAL
8366# else
8367# define LT_DLGLOBAL 0
8368# endif
8369#endif
8370
8371/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8372 find out it does not work in some platform. */
8373#ifndef LT_DLLAZY_OR_NOW
8374# ifdef RTLD_LAZY
8375# define LT_DLLAZY_OR_NOW RTLD_LAZY
8376# else
8377# ifdef DL_LAZY
8378# define LT_DLLAZY_OR_NOW DL_LAZY
8379# else
8380# ifdef RTLD_NOW
8381# define LT_DLLAZY_OR_NOW RTLD_NOW
8382# else
8383# ifdef DL_NOW
8384# define LT_DLLAZY_OR_NOW DL_NOW
8385# else
8386# define LT_DLLAZY_OR_NOW 0
8387# endif
8388# endif
8389# endif
8390# endif
8391#endif
8392
8393#ifdef __cplusplus
8394extern "C" void exit (int);
8395#endif
8396
8397void fnord() { int i=42;}
8398int main ()
8399{
8400 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8401 int status = $lt_dlunknown;
8402
8403 if (self)
8404 {
8405 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8406 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8407 /* dlclose (self); */
8408 }
8409
8410 exit (status);
8411}
8412EOF
8413 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8414 (eval $ac_link) 2>&5
8415 ac_status=$?
8416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8417 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8418 (./conftest; exit; ) 2>/dev/null
8419 lt_status=$?
8420 case x$lt_status in
8421 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8422 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8423 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8424 esac
8425 else :
8426 # compilation failed
8427 lt_cv_dlopen_self_static=no
8428 fi
8429fi
8430rm -fr conftest*
8431
8432
8433fi
8434echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8435echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8436 fi
8437
8438 CPPFLAGS="$save_CPPFLAGS"
8439 LDFLAGS="$save_LDFLAGS"
8440 LIBS="$save_LIBS"
8441 ;;
8442 esac
8443
8444 case $lt_cv_dlopen_self in
8445 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8446 *) enable_dlopen_self=unknown ;;
8447 esac
8448
8449 case $lt_cv_dlopen_self_static in
8450 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8451 *) enable_dlopen_self_static=unknown ;;
8452 esac
8453fi
8454
8455
John Criswell47fdd832003-07-14 16:52:07 +00008456# Report which librarie types wil actually be built
8457echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8458echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8459echo "$as_me:$LINENO: result: $can_build_shared" >&5
8460echo "${ECHO_T}$can_build_shared" >&6
John Criswell7a73b802003-06-30 21:59:07 +00008461
John Criswell47fdd832003-07-14 16:52:07 +00008462echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8463echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8464test "$can_build_shared" = "no" && enable_shared=no
8465
8466# On AIX, shared libraries and static libraries use the same namespace, and
8467# are all built from PIC.
8468case "$host_os" in
8469aix3*)
8470 test "$enable_shared" = yes && enable_static=no
8471 if test -n "$RANLIB"; then
8472 archive_cmds="$archive_cmds~\$RANLIB \$lib"
8473 postinstall_cmds='$RANLIB $lib'
8474 fi
8475 ;;
8476
8477aix4*)
8478 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8479 test "$enable_shared" = yes && enable_static=no
8480 fi
8481 ;;
8482 darwin* | rhapsody*)
8483 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
8484 archive_cmds_need_lc=no
8485 case "$host_os" in
8486 rhapsody* | darwin1.[012])
8487 allow_undefined_flag='-undefined suppress'
8488 ;;
8489 *) # Darwin 1.3 on
8490 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
8491 ;;
8492 esac
8493 # FIXME: Relying on posixy $() will cause problems for
8494 # cross-compilation, but unfortunately the echo tests do not
8495 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
8496 # `"' quotes if we put them in here... so don't!
8497 output_verbose_link_cmd='echo'
8498 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8499 module_cmds='$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
8500 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8501 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}'
8502 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}'
8503 hardcode_direct=no
8504 hardcode_automatic=yes
8505 hardcode_shlibpath_var=unsupported
8506 whole_archive_flag_spec='-all_load $convenience'
8507 link_all_deplibs=yes
John Criswell7a73b802003-06-30 21:59:07 +00008508 fi
John Criswell7a73b802003-06-30 21:59:07 +00008509 ;;
John Criswell47fdd832003-07-14 16:52:07 +00008510esac
8511echo "$as_me:$LINENO: result: $enable_shared" >&5
8512echo "${ECHO_T}$enable_shared" >&6
John Criswell7a73b802003-06-30 21:59:07 +00008513
John Criswell47fdd832003-07-14 16:52:07 +00008514echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8515echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8516# Make sure either enable_shared or enable_static is yes.
8517test "$enable_shared" = yes || enable_static=yes
8518echo "$as_me:$LINENO: result: $enable_static" >&5
8519echo "${ECHO_T}$enable_static" >&6
8520
8521# The else clause should only fire when bootstrapping the
John Criswell7a73b802003-06-30 21:59:07 +00008522# libtool distribution, otherwise you forgot to ship ltmain.sh
8523# with your package, and you will get complaints that there are
8524# no rules to generate ltmain.sh.
8525if test -f "$ltmain"; then
John Criswell47fdd832003-07-14 16:52:07 +00008526 # See if we are running on zsh, and set the options which allow our commands through
8527 # without removal of \ escapes.
8528 if test -n "${ZSH_VERSION+set}" ; then
8529 setopt NO_GLOB_SUBST
8530 fi
John Criswell7a73b802003-06-30 21:59:07 +00008531 # Now quote all the things that may contain metacharacters while being
8532 # careful not to overquote the AC_SUBSTed values. We take copies of the
8533 # variables and quote the copies for generation of the libtool script.
John Criswell47fdd832003-07-14 16:52:07 +00008534 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
8535 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8536 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8537 deplibs_check_method reload_flag reload_cmds need_locks \
8538 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8539 lt_cv_sys_global_symbol_to_c_name_address \
John Criswell7a73b802003-06-30 21:59:07 +00008540 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
John Criswell47fdd832003-07-14 16:52:07 +00008541 old_postinstall_cmds old_postuninstall_cmds \
8542 compiler \
8543 CC \
8544 LD \
8545 lt_prog_compiler_wl \
8546 lt_prog_compiler_pic \
8547 lt_prog_compiler_static \
8548 lt_prog_compiler_no_builtin_flag \
8549 export_dynamic_flag_spec \
8550 thread_safe_flag_spec \
8551 whole_archive_flag_spec \
8552 enable_shared_with_static_runtimes \
8553 old_archive_cmds \
8554 old_archive_from_new_cmds \
8555 predep_objects \
8556 postdep_objects \
8557 predeps \
8558 postdeps \
8559 compiler_lib_search_path \
8560 archive_cmds \
8561 archive_expsym_cmds \
8562 postinstall_cmds \
8563 postuninstall_cmds \
8564 old_archive_from_expsyms_cmds \
8565 allow_undefined_flag \
8566 no_undefined_flag \
8567 export_symbols_cmds \
8568 hardcode_libdir_flag_spec \
8569 hardcode_libdir_flag_spec_ld \
8570 hardcode_libdir_separator \
8571 hardcode_automatic \
8572 module_cmds \
8573 module_expsym_cmds \
8574 lt_cv_prog_compiler_c_o \
8575 exclude_expsyms \
8576 include_expsyms; do
John Criswell7a73b802003-06-30 21:59:07 +00008577
8578 case $var in
John Criswell47fdd832003-07-14 16:52:07 +00008579 old_archive_cmds | \
8580 old_archive_from_new_cmds | \
8581 archive_cmds | \
8582 archive_expsym_cmds | \
8583 module_cmds | \
8584 module_expsym_cmds | \
8585 old_archive_from_expsyms_cmds | \
8586 export_symbols_cmds | \
8587 extract_expsyms_cmds | reload_cmds | finish_cmds | \
John Criswell7a73b802003-06-30 21:59:07 +00008588 postinstall_cmds | postuninstall_cmds | \
John Criswell47fdd832003-07-14 16:52:07 +00008589 old_postinstall_cmds | old_postuninstall_cmds | \
8590 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
John Criswell7a73b802003-06-30 21:59:07 +00008591 # Double-quote double-evaled strings.
8592 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8593 ;;
8594 *)
8595 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8596 ;;
8597 esac
8598 done
8599
John Criswell47fdd832003-07-14 16:52:07 +00008600 case $lt_echo in
8601 *'\$0 --fallback-echo"')
8602 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8603 ;;
8604 esac
8605
8606cfgfile="${ofile}T"
8607 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8608 $rm -f "$cfgfile"
8609 { echo "$as_me:$LINENO: creating $ofile" >&5
8610echo "$as_me: creating $ofile" >&6;}
8611
8612 cat <<__EOF__ >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +00008613#! $SHELL
8614
John Criswell47fdd832003-07-14 16:52:07 +00008615# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
John Criswell7a73b802003-06-30 21:59:07 +00008616# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8617# NOTE: Changes made to this file will be lost: look at ltmain.sh.
8618#
John Criswell47fdd832003-07-14 16:52:07 +00008619# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8620# Free Software Foundation, Inc.
8621#
8622# This file is part of GNU Libtool:
John Criswell7a73b802003-06-30 21:59:07 +00008623# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8624#
8625# This program is free software; you can redistribute it and/or modify
8626# it under the terms of the GNU General Public License as published by
8627# the Free Software Foundation; either version 2 of the License, or
8628# (at your option) any later version.
8629#
8630# This program is distributed in the hope that it will be useful, but
8631# WITHOUT ANY WARRANTY; without even the implied warranty of
8632# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
8633# General Public License for more details.
8634#
8635# You should have received a copy of the GNU General Public License
8636# along with this program; if not, write to the Free Software
8637# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8638#
8639# As a special exception to the GNU General Public License, if you
8640# distribute this file as part of a program that contains a
8641# configuration script generated by Autoconf, you may include it under
8642# the same distribution terms that you use for the rest of that program.
8643
John Criswell47fdd832003-07-14 16:52:07 +00008644# A sed program that does not truncate output.
8645SED=$lt_SED
8646
John Criswell7a73b802003-06-30 21:59:07 +00008647# Sed that helps us avoid accidentally triggering echo(1) options like -n.
John Criswell47fdd832003-07-14 16:52:07 +00008648Xsed="$SED -e s/^X//"
John Criswell7a73b802003-06-30 21:59:07 +00008649
8650# The HP-UX ksh and POSIX shell print the target directory to stdout
8651# if CDPATH is set.
8652if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8653
John Criswell47fdd832003-07-14 16:52:07 +00008654# The names of the tagged configurations supported by this script.
8655available_tags=
8656
John Criswell7a73b802003-06-30 21:59:07 +00008657# ### BEGIN LIBTOOL CONFIG
8658
8659# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8660
8661# Shell to use when invoking shell scripts.
8662SHELL=$lt_SHELL
8663
8664# Whether or not to build shared libraries.
8665build_libtool_libs=$enable_shared
8666
8667# Whether or not to build static libraries.
8668build_old_libs=$enable_static
8669
8670# Whether or not to add -lc for building shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +00008671build_libtool_need_lc=$archive_cmds_need_lc
8672
8673# Whether or not to disallow shared libs when runtime libs are static
8674allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
John Criswell7a73b802003-06-30 21:59:07 +00008675
8676# Whether or not to optimize for fast installation.
8677fast_install=$enable_fast_install
8678
8679# The host system.
8680host_alias=$host_alias
8681host=$host
8682
8683# An echo program that does not interpret backslashes.
8684echo=$lt_echo
8685
8686# The archiver.
8687AR=$lt_AR
8688AR_FLAGS=$lt_AR_FLAGS
8689
John Criswell47fdd832003-07-14 16:52:07 +00008690# A C compiler.
8691LTCC=$lt_LTCC
8692
8693# A language-specific compiler.
8694CC=$lt_compiler
John Criswell7a73b802003-06-30 21:59:07 +00008695
8696# Is the compiler the GNU C compiler?
8697with_gcc=$GCC
8698
John Criswell47fdd832003-07-14 16:52:07 +00008699# An ERE matcher.
8700EGREP=$lt_EGREP
8701
John Criswell7a73b802003-06-30 21:59:07 +00008702# The linker used to build libraries.
8703LD=$lt_LD
8704
8705# Whether we need hard or soft links.
8706LN_S=$lt_LN_S
8707
8708# A BSD-compatible nm program.
8709NM=$lt_NM
8710
8711# A symbol stripping program
8712STRIP=$STRIP
8713
8714# Used to examine libraries when file_magic_cmd begins "file"
8715MAGIC_CMD=$MAGIC_CMD
8716
8717# Used on cygwin: DLL creation program.
8718DLLTOOL="$DLLTOOL"
8719
8720# Used on cygwin: object dumper.
8721OBJDUMP="$OBJDUMP"
8722
8723# Used on cygwin: assembler.
8724AS="$AS"
8725
8726# The name of the directory that contains temporary libtool files.
8727objdir=$objdir
8728
8729# How to create reloadable object files.
8730reload_flag=$lt_reload_flag
8731reload_cmds=$lt_reload_cmds
8732
8733# How to pass a linker flag through the compiler.
John Criswell47fdd832003-07-14 16:52:07 +00008734wl=$lt_lt_prog_compiler_wl
John Criswell7a73b802003-06-30 21:59:07 +00008735
8736# Object file suffix (normally "o").
8737objext="$ac_objext"
8738
8739# Old archive suffix (normally "a").
8740libext="$libext"
8741
John Criswell47fdd832003-07-14 16:52:07 +00008742# Shared library suffix (normally ".so").
8743shrext='$shrext'
8744
John Criswell7a73b802003-06-30 21:59:07 +00008745# Executable file suffix (normally "").
8746exeext="$exeext"
8747
8748# Additional compiler flags for building library objects.
John Criswell47fdd832003-07-14 16:52:07 +00008749pic_flag=$lt_lt_prog_compiler_pic
John Criswell7a73b802003-06-30 21:59:07 +00008750pic_mode=$pic_mode
8751
John Criswell47fdd832003-07-14 16:52:07 +00008752# What is the maximum length of a command?
8753max_cmd_len=$lt_cv_sys_max_cmd_len
John Criswell7a73b802003-06-30 21:59:07 +00008754
John Criswell47fdd832003-07-14 16:52:07 +00008755# Does compiler simultaneously support -c and -o options?
8756compiler_c_o=$lt_lt_cv_prog_compiler_c_o
John Criswell7a73b802003-06-30 21:59:07 +00008757
8758# Must we lock files when doing compilation ?
8759need_locks=$lt_need_locks
8760
8761# Do we need the lib prefix for modules?
8762need_lib_prefix=$need_lib_prefix
8763
8764# Do we need a version for libraries?
8765need_version=$need_version
8766
8767# Whether dlopen is supported.
8768dlopen_support=$enable_dlopen
8769
8770# Whether dlopen of programs is supported.
8771dlopen_self=$enable_dlopen_self
8772
8773# Whether dlopen of statically linked programs is supported.
8774dlopen_self_static=$enable_dlopen_self_static
8775
8776# Compiler flag to prevent dynamic linking.
John Criswell47fdd832003-07-14 16:52:07 +00008777link_static_flag=$lt_lt_prog_compiler_static
John Criswell7a73b802003-06-30 21:59:07 +00008778
8779# Compiler flag to turn off builtin functions.
John Criswell47fdd832003-07-14 16:52:07 +00008780no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
John Criswell7a73b802003-06-30 21:59:07 +00008781
8782# Compiler flag to allow reflexive dlopens.
8783export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
8784
8785# Compiler flag to generate shared objects directly from archives.
8786whole_archive_flag_spec=$lt_whole_archive_flag_spec
8787
8788# Compiler flag to generate thread-safe objects.
8789thread_safe_flag_spec=$lt_thread_safe_flag_spec
8790
8791# Library versioning type.
8792version_type=$version_type
8793
8794# Format of library name prefix.
8795libname_spec=$lt_libname_spec
8796
8797# List of archive names. First name is the real one, the rest are links.
8798# The last name is the one that the linker finds with -lNAME.
8799library_names_spec=$lt_library_names_spec
8800
8801# The coded name of the library, if different from the real name.
8802soname_spec=$lt_soname_spec
8803
8804# Commands used to build and install an old-style archive.
8805RANLIB=$lt_RANLIB
8806old_archive_cmds=$lt_old_archive_cmds
8807old_postinstall_cmds=$lt_old_postinstall_cmds
8808old_postuninstall_cmds=$lt_old_postuninstall_cmds
8809
8810# Create an old-style archive from a shared archive.
8811old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
8812
8813# Create a temporary old-style archive to link instead of a shared archive.
8814old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
8815
8816# Commands used to build and install a shared archive.
8817archive_cmds=$lt_archive_cmds
8818archive_expsym_cmds=$lt_archive_expsym_cmds
8819postinstall_cmds=$lt_postinstall_cmds
8820postuninstall_cmds=$lt_postuninstall_cmds
8821
John Criswell47fdd832003-07-14 16:52:07 +00008822# Commands used to build a loadable module (assumed same as above if empty)
8823module_cmds=$lt_module_cmds
8824module_expsym_cmds=$lt_module_expsym_cmds
8825
John Criswell7a73b802003-06-30 21:59:07 +00008826# Commands to strip libraries.
8827old_striplib=$lt_old_striplib
8828striplib=$lt_striplib
8829
John Criswell47fdd832003-07-14 16:52:07 +00008830# Dependencies to place before the objects being linked to create a
8831# shared library.
8832predep_objects=$lt_predep_objects
8833
8834# Dependencies to place after the objects being linked to create a
8835# shared library.
8836postdep_objects=$lt_postdep_objects
8837
8838# Dependencies to place before the objects being linked to create a
8839# shared library.
8840predeps=$lt_predeps
8841
8842# Dependencies to place after the objects being linked to create a
8843# shared library.
8844postdeps=$lt_postdeps
8845
8846# The library search path used internally by the compiler when linking
8847# a shared library.
8848compiler_lib_search_path=$lt_compiler_lib_search_path
8849
John Criswell7a73b802003-06-30 21:59:07 +00008850# Method to check whether dependent libraries are shared objects.
8851deplibs_check_method=$lt_deplibs_check_method
8852
8853# Command to use when deplibs_check_method == file_magic.
8854file_magic_cmd=$lt_file_magic_cmd
8855
8856# Flag that allows shared libraries with undefined symbols to be built.
8857allow_undefined_flag=$lt_allow_undefined_flag
8858
8859# Flag that forces no undefined symbols.
8860no_undefined_flag=$lt_no_undefined_flag
8861
8862# Commands used to finish a libtool library installation in a directory.
8863finish_cmds=$lt_finish_cmds
8864
8865# Same as above, but a single script fragment to be evaled but not shown.
8866finish_eval=$lt_finish_eval
8867
8868# Take the output of nm and produce a listing of raw symbols and C names.
John Criswell47fdd832003-07-14 16:52:07 +00008869global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
John Criswell7a73b802003-06-30 21:59:07 +00008870
8871# Transform the output of nm in a proper C declaration
John Criswell47fdd832003-07-14 16:52:07 +00008872global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
John Criswell7a73b802003-06-30 21:59:07 +00008873
8874# Transform the output of nm in a C name address pair
John Criswell47fdd832003-07-14 16:52:07 +00008875global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
John Criswell7a73b802003-06-30 21:59:07 +00008876
8877# This is the shared library runtime path variable.
8878runpath_var=$runpath_var
8879
8880# This is the shared library path variable.
8881shlibpath_var=$shlibpath_var
8882
8883# Is shlibpath searched before the hard-coded library search path?
8884shlibpath_overrides_runpath=$shlibpath_overrides_runpath
8885
8886# How to hardcode a shared library path into an executable.
8887hardcode_action=$hardcode_action
8888
8889# Whether we should hardcode library paths into libraries.
8890hardcode_into_libs=$hardcode_into_libs
8891
8892# Flag to hardcode \$libdir into a binary during linking.
8893# This must work even if \$libdir does not exist.
8894hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
8895
John Criswell47fdd832003-07-14 16:52:07 +00008896# If ld is used when linking, flag to hardcode \$libdir into
8897# a binary during linking. This must work even if \$libdir does
8898# not exist.
8899hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
8900
John Criswell7a73b802003-06-30 21:59:07 +00008901# Whether we need a single -rpath flag with a separated argument.
8902hardcode_libdir_separator=$lt_hardcode_libdir_separator
8903
John Criswell47fdd832003-07-14 16:52:07 +00008904# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
John Criswell7a73b802003-06-30 21:59:07 +00008905# resulting binary.
8906hardcode_direct=$hardcode_direct
8907
8908# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
8909# resulting binary.
8910hardcode_minus_L=$hardcode_minus_L
8911
8912# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
8913# the resulting binary.
8914hardcode_shlibpath_var=$hardcode_shlibpath_var
8915
John Criswell47fdd832003-07-14 16:52:07 +00008916# Set to yes if building a shared library automatically hardcodes DIR into the library
8917# and all subsequent libraries and executables linked against it.
8918hardcode_automatic=$hardcode_automatic
8919
John Criswell7a73b802003-06-30 21:59:07 +00008920# Variables whose values should be saved in libtool wrapper scripts and
8921# restored at relink time.
8922variables_saved_for_relink="$variables_saved_for_relink"
8923
8924# Whether libtool must link a program against all its dependency libraries.
8925link_all_deplibs=$link_all_deplibs
8926
8927# Compile-time system search path for libraries
8928sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
8929
8930# Run-time system search path for libraries
8931sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
8932
8933# Fix the shell variable \$srcfile for the compiler.
8934fix_srcfile_path="$fix_srcfile_path"
8935
8936# Set to yes if exported symbols are required.
8937always_export_symbols=$always_export_symbols
8938
8939# The commands to list exported symbols.
8940export_symbols_cmds=$lt_export_symbols_cmds
8941
8942# The commands to extract the exported symbol list from a shared archive.
8943extract_expsyms_cmds=$lt_extract_expsyms_cmds
8944
8945# Symbols that should not be listed in the preloaded symbols.
8946exclude_expsyms=$lt_exclude_expsyms
8947
8948# Symbols that must always be exported.
8949include_expsyms=$lt_include_expsyms
8950
8951# ### END LIBTOOL CONFIG
8952
8953__EOF__
8954
John Criswell47fdd832003-07-14 16:52:07 +00008955
John Criswell7a73b802003-06-30 21:59:07 +00008956 case $host_os in
8957 aix3*)
John Criswell47fdd832003-07-14 16:52:07 +00008958 cat <<\EOF >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +00008959
8960# AIX sometimes has problems with the GCC collect2 program. For some
8961# reason, if we set the COLLECT_NAMES environment variable, the problems
8962# vanish in a puff of smoke.
8963if test "X${COLLECT_NAMES+set}" != Xset; then
8964 COLLECT_NAMES=
8965 export COLLECT_NAMES
8966fi
8967EOF
8968 ;;
8969 esac
8970
John Criswell7a73b802003-06-30 21:59:07 +00008971 # We use sed instead of cat because bash on DJGPP gets confused if
8972 # if finds mixed CR/LF and LF-only lines. Since sed operates in
8973 # text mode, it properly converts lines to CR/LF. This bash problem
8974 # is reportedly fixed, but why not run on old versions too?
John Criswell47fdd832003-07-14 16:52:07 +00008975 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
John Criswell7a73b802003-06-30 21:59:07 +00008976
John Criswell47fdd832003-07-14 16:52:07 +00008977 mv -f "$cfgfile" "$ofile" || \
8978 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
John Criswell7a73b802003-06-30 21:59:07 +00008979 chmod +x "$ofile"
John Criswell47fdd832003-07-14 16:52:07 +00008980
8981else
8982 # If there is no Makefile yet, we rely on a make rule to execute
8983 # `config.status --recheck' to rerun these tests and create the
8984 # libtool script then.
8985 test -f Makefile && make "$ltmain"
John Criswell7a73b802003-06-30 21:59:07 +00008986fi
John Criswell7a73b802003-06-30 21:59:07 +00008987
8988
John Criswell47fdd832003-07-14 16:52:07 +00008989ac_ext=c
8990ac_cpp='$CPP $CPPFLAGS'
8991ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8992ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8993ac_compiler_gnu=$ac_cv_c_compiler_gnu
8994
8995CC="$lt_save_CC"
8996
8997
8998# Check whether --with-tags or --without-tags was given.
8999if test "${with_tags+set}" = set; then
9000 withval="$with_tags"
9001 tagnames="$withval"
9002fi;
9003
9004if test -f "$ltmain" && test -n "$tagnames"; then
9005 if test ! -f "${ofile}"; then
9006 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9007echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9008 fi
9009
9010 if test -z "$LTCC"; then
9011 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9012 if test -z "$LTCC"; then
9013 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9014echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9015 else
9016 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9017echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9018 fi
9019 fi
9020
9021 # Extract list of available tagged configurations in $ofile.
9022 # Note that this assumes the entire list is on one line.
9023 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9024
9025 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9026 for tagname in $tagnames; do
9027 IFS="$lt_save_ifs"
9028 # Check whether tagname contains only valid characters
9029 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9030 "") ;;
9031 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9032echo "$as_me: error: invalid tag name: $tagname" >&2;}
9033 { (exit 1); exit 1; }; }
9034 ;;
9035 esac
9036
9037 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9038 then
9039 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9040echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9041 { (exit 1); exit 1; }; }
9042 fi
9043
9044 # Update the list of available tags.
9045 if test -n "$tagname"; then
9046 echo appending configuration tag \"$tagname\" to $ofile
9047
9048 case $tagname in
9049 CXX)
9050 if test -n "$CXX" && test "X$CXX" != "Xno"; then
9051 ac_ext=cc
9052ac_cpp='$CXXCPP $CPPFLAGS'
9053ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9054ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9055ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9056
9057
9058
9059
9060archive_cmds_need_lc_CXX=no
9061allow_undefined_flag_CXX=
9062always_export_symbols_CXX=no
9063archive_expsym_cmds_CXX=
9064export_dynamic_flag_spec_CXX=
9065hardcode_direct_CXX=no
9066hardcode_libdir_flag_spec_CXX=
9067hardcode_libdir_flag_spec_ld_CXX=
9068hardcode_libdir_separator_CXX=
9069hardcode_minus_L_CXX=no
9070hardcode_automatic_CXX=no
9071module_cmds_CXX=
9072module_expsym_cmds_CXX=
9073link_all_deplibs_CXX=unknown
9074old_archive_cmds_CXX=$old_archive_cmds
9075no_undefined_flag_CXX=
9076whole_archive_flag_spec_CXX=
9077enable_shared_with_static_runtimes_CXX=no
9078
9079# Dependencies to place before and after the object being linked:
9080predep_objects_CXX=
9081postdep_objects_CXX=
9082predeps_CXX=
9083postdeps_CXX=
9084compiler_lib_search_path_CXX=
9085
9086# Source file extension for C++ test sources.
9087ac_ext=cc
9088
9089# Object file extension for compiled C++ test sources.
9090objext=o
9091objext_CXX=$objext
9092
9093# Code to be used in simple compile tests
9094lt_simple_compile_test_code="int some_variable = 0;\n"
9095
9096# Code to be used in simple link tests
9097lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9098
9099# ltmain only uses $CC for tagged configurations so make sure $CC is set.
9100
9101# If no C compiler was specified, use CC.
9102LTCC=${LTCC-"$CC"}
9103
9104# Allow CC to be a program name with arguments.
9105compiler=$CC
9106
9107
9108# Allow CC to be a program name with arguments.
9109lt_save_CC=$CC
9110lt_save_LD=$LD
9111lt_save_GCC=$GCC
9112GCC=$GXX
9113lt_save_with_gnu_ld=$with_gnu_ld
9114lt_save_path_LD=$lt_cv_path_LD
9115if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9116 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9117else
9118 unset lt_cv_prog_gnu_ld
9119fi
9120if test -n "${lt_cv_path_LDCXX+set}"; then
9121 lt_cv_path_LD=$lt_cv_path_LDCXX
9122else
9123 unset lt_cv_path_LD
9124fi
9125test -z "${LDCXX+set}" || LD=$LDCXX
9126CC=${CXX-"c++"}
9127compiler=$CC
9128compiler_CXX=$CC
9129cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9130
9131# We don't want -fno-exception wen compiling C++ code, so set the
9132# no_builtin_flag separately
9133if test "$GXX" = yes; then
9134 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9135else
9136 lt_prog_compiler_no_builtin_flag_CXX=
9137fi
9138
9139if test "$GXX" = yes; then
9140 # Set up default GNU C++ configuration
9141
9142
9143# Check whether --with-gnu-ld or --without-gnu-ld was given.
9144if test "${with_gnu_ld+set}" = set; then
9145 withval="$with_gnu_ld"
9146 test "$withval" = no || with_gnu_ld=yes
9147else
9148 with_gnu_ld=no
9149fi;
9150ac_prog=ld
9151if test "$GCC" = yes; then
9152 # Check if gcc -print-prog-name=ld gives a path.
9153 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9154echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9155 case $host in
9156 *-*-mingw*)
9157 # gcc leaves a trailing carriage return which upsets mingw
9158 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9159 *)
9160 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9161 esac
9162 case $ac_prog in
9163 # Accept absolute paths.
9164 [\\/]* | ?:[\\/]*)
9165 re_direlt='/[^/][^/]*/\.\./'
9166 # Canonicalize the path of ld
9167 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9168 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9169 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9170 done
9171 test -z "$LD" && LD="$ac_prog"
9172 ;;
9173 "")
9174 # If it fails, then pretend we aren't using GCC.
9175 ac_prog=ld
9176 ;;
9177 *)
9178 # If it is relative, then search for the first ld in PATH.
9179 with_gnu_ld=unknown
9180 ;;
9181 esac
9182elif test "$with_gnu_ld" = yes; then
9183 echo "$as_me:$LINENO: checking for GNU ld" >&5
9184echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9185else
9186 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9187echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9188fi
9189if test "${lt_cv_path_LD+set}" = set; then
9190 echo $ECHO_N "(cached) $ECHO_C" >&6
9191else
9192 if test -z "$LD"; then
9193 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9194 for ac_dir in $PATH; do
9195 IFS="$lt_save_ifs"
9196 test -z "$ac_dir" && ac_dir=.
9197 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9198 lt_cv_path_LD="$ac_dir/$ac_prog"
9199 # Check to see if the program is GNU ld. I'd rather use --version,
9200 # but apparently some GNU ld's only accept -v.
9201 # Break only if it was the GNU/non-GNU ld that we prefer.
9202 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9203 *GNU* | *'with BFD'*)
9204 test "$with_gnu_ld" != no && break
9205 ;;
9206 *)
9207 test "$with_gnu_ld" != yes && break
9208 ;;
9209 esac
9210 fi
9211 done
9212 IFS="$lt_save_ifs"
9213else
9214 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9215fi
9216fi
9217
9218LD="$lt_cv_path_LD"
9219if test -n "$LD"; then
9220 echo "$as_me:$LINENO: result: $LD" >&5
9221echo "${ECHO_T}$LD" >&6
9222else
9223 echo "$as_me:$LINENO: result: no" >&5
9224echo "${ECHO_T}no" >&6
9225fi
9226test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9227echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9228 { (exit 1); exit 1; }; }
9229echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9230echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9231if test "${lt_cv_prog_gnu_ld+set}" = set; then
9232 echo $ECHO_N "(cached) $ECHO_C" >&6
9233else
9234 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9235case `"$LD" -v 2>&1 </dev/null` in
9236*GNU* | *'with BFD'*)
9237 lt_cv_prog_gnu_ld=yes
9238 ;;
9239*)
9240 lt_cv_prog_gnu_ld=no
9241 ;;
9242esac
9243fi
9244echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9245echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9246with_gnu_ld=$lt_cv_prog_gnu_ld
9247
9248
9249
9250 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9251 # archiving commands below assume that GNU ld is being used.
9252 if test "$with_gnu_ld" = yes; then
9253 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9254 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'
9255
9256 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9257 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9258
9259 # If archive_cmds runs LD, not CC, wlarc should be empty
9260 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9261 # investigate it a little bit more. (MM)
9262 wlarc='${wl}'
9263
9264 # ancient GNU ld didn't support --whole-archive et. al.
9265 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9266 grep 'no-whole-archive' > /dev/null; then
9267 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9268 else
9269 whole_archive_flag_spec_CXX=
9270 fi
9271 else
9272 with_gnu_ld=no
9273 wlarc=
9274
9275 # A generic and very simple default shared library creation
9276 # command for GNU C++ for the case where it uses the native
9277 # linker, instead of GNU ld. If possible, this setting should
9278 # overridden to take advantage of the native linker features on
9279 # the platform it is being used on.
9280 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9281 fi
9282
9283 # Commands to make compiler produce verbose output that lists
9284 # what "hidden" libraries, object files and flags are used when
9285 # linking a shared library.
9286 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9287
9288else
9289 GXX=no
9290 with_gnu_ld=no
9291 wlarc=
9292fi
9293
9294# PORTME: fill in a description of your system's C++ link characteristics
9295echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9296echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9297ld_shlibs_CXX=yes
9298case $host_os in
9299 aix3*)
9300 # FIXME: insert proper C++ library support
9301 ld_shlibs_CXX=no
9302 ;;
9303 aix4* | aix5*)
9304 if test "$host_cpu" = ia64; then
9305 # On IA64, the linker does run time linking by default, so we don't
9306 # have to do anything special.
9307 aix_use_runtimelinking=no
9308 exp_sym_flag='-Bexport'
9309 no_entry_flag=""
9310 else
9311 aix_use_runtimelinking=no
9312
9313 # Test if we are trying to use run time linking or normal
9314 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9315 # need to do runtime linking.
9316 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9317 for ld_flag in $LDFLAGS; do
9318 case $ld_flag in
9319 *-brtl*)
9320 aix_use_runtimelinking=yes
9321 break
9322 ;;
9323 esac
9324 done
9325 esac
9326
9327 exp_sym_flag='-bexport'
9328 no_entry_flag='-bnoentry'
9329 fi
9330
9331 # When large executables or shared objects are built, AIX ld can
9332 # have problems creating the table of contents. If linking a library
9333 # or program results in "error TOC overflow" add -mminimal-toc to
9334 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9335 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9336
9337 archive_cmds_CXX=''
9338 hardcode_direct_CXX=yes
9339 hardcode_libdir_separator_CXX=':'
9340 link_all_deplibs_CXX=yes
9341
9342 if test "$GXX" = yes; then
9343 case $host_os in aix4.012|aix4.012.*)
9344 # We only want to do this on AIX 4.2 and lower, the check
9345 # below for broken collect2 doesn't work under 4.3+
9346 collect2name=`${CC} -print-prog-name=collect2`
9347 if test -f "$collect2name" && \
9348 strings "$collect2name" | grep resolve_lib_name >/dev/null
9349 then
9350 # We have reworked collect2
9351 hardcode_direct_CXX=yes
9352 else
9353 # We have old collect2
9354 hardcode_direct_CXX=unsupported
9355 # It fails to find uninstalled libraries when the uninstalled
9356 # path is not listed in the libpath. Setting hardcode_minus_L
9357 # to unsupported forces relinking
9358 hardcode_minus_L_CXX=yes
9359 hardcode_libdir_flag_spec_CXX='-L$libdir'
9360 hardcode_libdir_separator_CXX=
9361 fi
9362 esac
9363 shared_flag='-shared'
9364 else
9365 # not using gcc
9366 if test "$host_cpu" = ia64; then
9367 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9368 # chokes on -Wl,-G. The following line is correct:
9369 shared_flag='-G'
9370 else
9371 if test "$aix_use_runtimelinking" = yes; then
9372 shared_flag='${wl}-G'
9373 else
9374 shared_flag='${wl}-bM:SRE'
9375 fi
9376 fi
9377 fi
9378
9379 # It seems that -bexpall does not export symbols beginning with
9380 # underscore (_), so it is better to generate a list of symbols to export.
9381 always_export_symbols_CXX=yes
9382 if test "$aix_use_runtimelinking" = yes; then
9383 # Warning - without using the other runtime loading flags (-brtl),
9384 # -berok will link without error, but may produce a broken library.
9385 allow_undefined_flag_CXX='-berok'
9386 # Determine the default libpath from the value encoded in an empty executable.
9387 cat >conftest.$ac_ext <<_ACEOF
9388#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00009389/* confdefs.h. */
9390_ACEOF
9391cat confdefs.h >>conftest.$ac_ext
9392cat >>conftest.$ac_ext <<_ACEOF
9393/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00009394
John Criswell47fdd832003-07-14 16:52:07 +00009395int
9396main ()
9397{
9398
9399 ;
9400 return 0;
9401}
9402_ACEOF
9403rm -f conftest.$ac_objext conftest$ac_exeext
9404if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9405 (eval $ac_link) 2>&5
9406 ac_status=$?
9407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9408 (exit $ac_status); } &&
9409 { ac_try='test -s conftest$ac_exeext'
9410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9411 (eval $ac_try) 2>&5
9412 ac_status=$?
9413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9414 (exit $ac_status); }; }; then
9415
9416aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9417}'`
9418# Check for a 64-bit object if we didn't find anything.
9419if 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; }
9420}'`; fi
9421else
9422 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00009423sed 's/^/| /' conftest.$ac_ext >&5
9424
John Criswell47fdd832003-07-14 16:52:07 +00009425fi
9426rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9427if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9428
9429 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9430
9431 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"
9432 else
9433 if test "$host_cpu" = ia64; then
9434 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9435 allow_undefined_flag_CXX="-z nodefs"
9436 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"
9437 else
9438 # Determine the default libpath from the value encoded in an empty executable.
9439 cat >conftest.$ac_ext <<_ACEOF
9440#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00009441/* confdefs.h. */
9442_ACEOF
9443cat confdefs.h >>conftest.$ac_ext
9444cat >>conftest.$ac_ext <<_ACEOF
9445/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00009446
John Criswell47fdd832003-07-14 16:52:07 +00009447int
9448main ()
9449{
9450
9451 ;
9452 return 0;
9453}
9454_ACEOF
9455rm -f conftest.$ac_objext conftest$ac_exeext
9456if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9457 (eval $ac_link) 2>&5
9458 ac_status=$?
9459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9460 (exit $ac_status); } &&
9461 { ac_try='test -s conftest$ac_exeext'
9462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9463 (eval $ac_try) 2>&5
9464 ac_status=$?
9465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9466 (exit $ac_status); }; }; then
9467
9468aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9469}'`
9470# Check for a 64-bit object if we didn't find anything.
9471if 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; }
9472}'`; fi
9473else
9474 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00009475sed 's/^/| /' conftest.$ac_ext >&5
9476
John Criswell47fdd832003-07-14 16:52:07 +00009477fi
9478rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9479if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9480
9481 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9482 # Warning - without using the other run time loading flags,
9483 # -berok will link without error, but may produce a broken library.
9484 no_undefined_flag_CXX=' ${wl}-bernotok'
9485 allow_undefined_flag_CXX=' ${wl}-berok'
9486 # -bexpall does not export symbols beginning with underscore (_)
9487 always_export_symbols_CXX=yes
9488 # Exported symbols can be pulled into shared objects from archives
9489 whole_archive_flag_spec_CXX=' '
9490 archive_cmds_need_lc_CXX=yes
9491 # This is similar to how AIX traditionally builds it's shared libraries.
9492 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'
9493 fi
9494 fi
9495 ;;
9496 chorus*)
9497 case $cc_basename in
9498 *)
9499 # FIXME: insert proper C++ library support
9500 ld_shlibs_CXX=no
9501 ;;
9502 esac
9503 ;;
9504
9505 cygwin* | mingw* | pw32*)
9506 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9507 # as there is no search path for DLLs.
9508 hardcode_libdir_flag_spec_CXX='-L$libdir'
9509 allow_undefined_flag_CXX=unsupported
9510 always_export_symbols_CXX=no
9511 enable_shared_with_static_runtimes_CXX=yes
9512
9513 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9514 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'
9515 # If the export-symbols file already is a .def file (1st line
9516 # is EXPORTS), use it as is; otherwise, prepend...
9517 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9518 cp $export_symbols $output_objdir/$soname.def;
9519 else
9520 echo EXPORTS > $output_objdir/$soname.def;
9521 cat $export_symbols >> $output_objdir/$soname.def;
9522 fi~
9523 $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'
9524 else
9525 ld_shlibs_CXX=no
9526 fi
9527 ;;
9528
9529 darwin* | rhapsody*)
9530 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
9531 archive_cmds_need_lc_CXX=no
9532 case "$host_os" in
9533 rhapsody* | darwin1.[012])
9534 allow_undefined_flag_CXX='-undefined suppress'
9535 ;;
9536 *) # Darwin 1.3 on
9537 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9538 ;;
9539 esac
9540 lt_int_apple_cc_single_mod=no
9541 output_verbose_link_cmd='echo'
9542 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9543 lt_int_apple_cc_single_mod=yes
9544 fi
9545 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9546 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9547 else
9548 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'
9549 fi
9550 module_cmds_CXX='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
9551
9552 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9553 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9554 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}'
9555 else
9556 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}'
9557 fi
9558 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}'
9559 hardcode_direct_CXX=no
9560 hardcode_automatic_CXX=yes
9561 hardcode_shlibpath_var_CXX=unsupported
9562 whole_archive_flag_spec_CXX='-all_load $convenience'
9563 link_all_deplibs_CXX=yes
9564 fi
9565 ;;
9566
9567 dgux*)
9568 case $cc_basename in
9569 ec++)
9570 # FIXME: insert proper C++ library support
9571 ld_shlibs_CXX=no
9572 ;;
9573 ghcx)
9574 # Green Hills C++ Compiler
9575 # FIXME: insert proper C++ library support
9576 ld_shlibs_CXX=no
9577 ;;
9578 *)
9579 # FIXME: insert proper C++ library support
9580 ld_shlibs_CXX=no
9581 ;;
9582 esac
9583 ;;
9584 freebsd12*)
9585 # C++ shared libraries reported to be fairly broken before switch to ELF
9586 ld_shlibs_CXX=no
9587 ;;
9588 freebsd-elf*)
9589 archive_cmds_need_lc_CXX=no
9590 ;;
9591 freebsd*)
9592 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9593 # conventions
9594 ld_shlibs_CXX=yes
9595 ;;
9596 gnu*)
9597 ;;
9598 hpux9*)
9599 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9600 hardcode_libdir_separator_CXX=:
9601 export_dynamic_flag_spec_CXX='${wl}-E'
9602 hardcode_direct_CXX=yes
9603 hardcode_minus_L_CXX=yes # Not in the search PATH,
9604 # but as the default
9605 # location of the library.
9606
9607 case $cc_basename in
9608 CC)
9609 # FIXME: insert proper C++ library support
9610 ld_shlibs_CXX=no
9611 ;;
9612 aCC)
9613 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'
9614 # Commands to make compiler produce verbose output that lists
9615 # what "hidden" libraries, object files and flags are used when
9616 # linking a shared library.
9617 #
9618 # There doesn't appear to be a way to prevent this compiler from
9619 # explicitly linking system object files so we need to strip them
9620 # from the output so that they don't get included in the library
9621 # dependencies.
9622 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'
9623 ;;
9624 *)
9625 if test "$GXX" = yes; then
9626 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'
9627 else
9628 # FIXME: insert proper C++ library support
9629 ld_shlibs_CXX=no
9630 fi
9631 ;;
9632 esac
9633 ;;
9634 hpux10*|hpux11*)
9635 if test $with_gnu_ld = no; then
9636 case "$host_cpu" in
9637 hppa*64*)
9638 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9639 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
9640 hardcode_libdir_separator_CXX=:
9641 ;;
9642 ia64*)
9643 hardcode_libdir_flag_spec_CXX='-L$libdir'
9644 ;;
9645 *)
9646 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9647 hardcode_libdir_separator_CXX=:
9648 export_dynamic_flag_spec_CXX='${wl}-E'
9649 ;;
9650 esac
9651 fi
9652 case "$host_cpu" in
9653 hppa*64*)
9654 hardcode_direct_CXX=no
9655 hardcode_shlibpath_var_CXX=no
9656 ;;
9657 ia64*)
9658 hardcode_direct_CXX=no
9659 hardcode_shlibpath_var_CXX=no
9660 hardcode_minus_L_CXX=yes # Not in the search PATH,
9661 # but as the default
9662 # location of the library.
9663 ;;
9664 *)
9665 hardcode_direct_CXX=yes
9666 hardcode_minus_L_CXX=yes # Not in the search PATH,
9667 # but as the default
9668 # location of the library.
9669 ;;
9670 esac
9671
9672 case $cc_basename in
9673 CC)
9674 # FIXME: insert proper C++ library support
9675 ld_shlibs_CXX=no
9676 ;;
9677 aCC)
9678 case "$host_cpu" in
9679 hppa*64*|ia64*)
9680 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9681 ;;
9682 *)
9683 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9684 ;;
9685 esac
9686 # Commands to make compiler produce verbose output that lists
9687 # what "hidden" libraries, object files and flags are used when
9688 # linking a shared library.
9689 #
9690 # There doesn't appear to be a way to prevent this compiler from
9691 # explicitly linking system object files so we need to strip them
9692 # from the output so that they don't get included in the library
9693 # dependencies.
9694 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'
9695 ;;
9696 *)
9697 if test "$GXX" = yes; then
9698 if test $with_gnu_ld = no; then
9699 case "$host_cpu" in
9700 ia64*|hppa*64*)
9701 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9702 ;;
9703 *)
9704 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'
9705 ;;
9706 esac
9707 fi
9708 else
9709 # FIXME: insert proper C++ library support
9710 ld_shlibs_CXX=no
9711 fi
9712 ;;
9713 esac
9714 ;;
9715 irix5* | irix6*)
9716 case $cc_basename in
9717 CC)
9718 # SGI C++
9719 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'
9720
9721 # Archives containing C++ object files must be created using
9722 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
9723 # necessary to make sure instantiated templates are included
9724 # in the archive.
9725 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
9726 ;;
9727 *)
9728 if test "$GXX" = yes; then
9729 if test "$with_gnu_ld" = no; then
9730 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'
9731 else
9732 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'
9733 fi
9734 fi
9735 link_all_deplibs_CXX=yes
9736 ;;
9737 esac
9738 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9739 hardcode_libdir_separator_CXX=:
9740 ;;
9741 linux*)
9742 case $cc_basename in
9743 KCC)
9744 # Kuck and Associates, Inc. (KAI) C++ Compiler
9745
9746 # KCC will only create a shared library if the output file
9747 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9748 # to its proper name (with version) after linking.
9749 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'
9750 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'
9751 # Commands to make compiler produce verbose output that lists
9752 # what "hidden" libraries, object files and flags are used when
9753 # linking a shared library.
9754 #
9755 # There doesn't appear to be a way to prevent this compiler from
9756 # explicitly linking system object files so we need to strip them
9757 # from the output so that they don't get included in the library
9758 # dependencies.
9759 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'
9760
9761 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
9762 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9763
9764 # Archives containing C++ object files must be created using
9765 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9766 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9767 ;;
9768 icpc)
9769 # Intel C++
9770 with_gnu_ld=yes
9771 archive_cmds_need_lc_CXX=no
9772 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9773 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'
9774 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9775 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9776 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9777 ;;
9778 cxx)
9779 # Compaq C++
9780 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9781 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'
9782
9783 runpath_var=LD_RUN_PATH
9784 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9785 hardcode_libdir_separator_CXX=:
9786
9787 # Commands to make compiler produce verbose output that lists
9788 # what "hidden" libraries, object files and flags are used when
9789 # linking a shared library.
9790 #
9791 # There doesn't appear to be a way to prevent this compiler from
9792 # explicitly linking system object files so we need to strip them
9793 # from the output so that they don't get included in the library
9794 # dependencies.
9795 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'
9796 ;;
9797 esac
9798 ;;
9799 lynxos*)
9800 # FIXME: insert proper C++ library support
9801 ld_shlibs_CXX=no
9802 ;;
9803 m88k*)
9804 # FIXME: insert proper C++ library support
9805 ld_shlibs_CXX=no
9806 ;;
9807 mvs*)
9808 case $cc_basename in
9809 cxx)
9810 # FIXME: insert proper C++ library support
9811 ld_shlibs_CXX=no
9812 ;;
9813 *)
9814 # FIXME: insert proper C++ library support
9815 ld_shlibs_CXX=no
9816 ;;
9817 esac
9818 ;;
9819 netbsd*)
9820 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9821 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
9822 wlarc=
9823 hardcode_libdir_flag_spec_CXX='-R$libdir'
9824 hardcode_direct_CXX=yes
9825 hardcode_shlibpath_var_CXX=no
9826 fi
9827 # Workaround some broken pre-1.5 toolchains
9828 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
9829 ;;
9830 osf3*)
9831 case $cc_basename in
9832 KCC)
9833 # Kuck and Associates, Inc. (KAI) C++ Compiler
9834
9835 # KCC will only create a shared library if the output file
9836 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9837 # to its proper name (with version) after linking.
9838 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'
9839
9840 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9841 hardcode_libdir_separator_CXX=:
9842
9843 # Archives containing C++ object files must be created using
9844 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9845 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9846
9847 ;;
9848 RCC)
9849 # Rational C++ 2.4.1
9850 # FIXME: insert proper C++ library support
9851 ld_shlibs_CXX=no
9852 ;;
9853 cxx)
9854 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9855 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'
9856
9857 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9858 hardcode_libdir_separator_CXX=:
9859
9860 # Commands to make compiler produce verbose output that lists
9861 # what "hidden" libraries, object files and flags are used when
9862 # linking a shared library.
9863 #
9864 # There doesn't appear to be a way to prevent this compiler from
9865 # explicitly linking system object files so we need to strip them
9866 # from the output so that they don't get included in the library
9867 # dependencies.
9868 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'
9869 ;;
9870 *)
9871 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9872 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9873 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'
9874
9875 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9876 hardcode_libdir_separator_CXX=:
9877
9878 # Commands to make compiler produce verbose output that lists
9879 # what "hidden" libraries, object files and flags are used when
9880 # linking a shared library.
9881 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9882
9883 else
9884 # FIXME: insert proper C++ library support
9885 ld_shlibs_CXX=no
9886 fi
9887 ;;
9888 esac
9889 ;;
9890 osf4* | osf5*)
9891 case $cc_basename in
9892 KCC)
9893 # Kuck and Associates, Inc. (KAI) C++ Compiler
9894
9895 # KCC will only create a shared library if the output file
9896 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9897 # to its proper name (with version) after linking.
9898 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'
9899
9900 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9901 hardcode_libdir_separator_CXX=:
9902
9903 # Archives containing C++ object files must be created using
9904 # the KAI C++ compiler.
9905 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
9906 ;;
9907 RCC)
9908 # Rational C++ 2.4.1
9909 # FIXME: insert proper C++ library support
9910 ld_shlibs_CXX=no
9911 ;;
9912 cxx)
9913 allow_undefined_flag_CXX=' -expect_unresolved \*'
9914 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'
9915 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
9916 echo "-hidden">> $lib.exp~
9917 $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~
9918 $rm $lib.exp'
9919
9920 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9921 hardcode_libdir_separator_CXX=:
9922
9923 # Commands to make compiler produce verbose output that lists
9924 # what "hidden" libraries, object files and flags are used when
9925 # linking a shared library.
9926 #
9927 # There doesn't appear to be a way to prevent this compiler from
9928 # explicitly linking system object files so we need to strip them
9929 # from the output so that they don't get included in the library
9930 # dependencies.
9931 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'
9932 ;;
9933 *)
9934 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9935 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9936 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'
9937
9938 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9939 hardcode_libdir_separator_CXX=:
9940
9941 # Commands to make compiler produce verbose output that lists
9942 # what "hidden" libraries, object files and flags are used when
9943 # linking a shared library.
9944 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9945
9946 else
9947 # FIXME: insert proper C++ library support
9948 ld_shlibs_CXX=no
9949 fi
9950 ;;
9951 esac
9952 ;;
9953 psos*)
9954 # FIXME: insert proper C++ library support
9955 ld_shlibs_CXX=no
9956 ;;
9957 sco*)
9958 archive_cmds_need_lc_CXX=no
9959 case $cc_basename in
9960 CC)
9961 # FIXME: insert proper C++ library support
9962 ld_shlibs_CXX=no
9963 ;;
9964 *)
9965 # FIXME: insert proper C++ library support
9966 ld_shlibs_CXX=no
9967 ;;
9968 esac
9969 ;;
9970 sunos4*)
9971 case $cc_basename in
9972 CC)
9973 # Sun C++ 4.x
9974 # FIXME: insert proper C++ library support
9975 ld_shlibs_CXX=no
9976 ;;
9977 lcc)
9978 # Lucid
9979 # FIXME: insert proper C++ library support
9980 ld_shlibs_CXX=no
9981 ;;
9982 *)
9983 # FIXME: insert proper C++ library support
9984 ld_shlibs_CXX=no
9985 ;;
9986 esac
9987 ;;
9988 solaris*)
9989 case $cc_basename in
9990 CC)
9991 # Sun C++ 4.2, 5.x and Centerline C++
9992 no_undefined_flag_CXX=' -zdefs'
9993 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
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${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
9996
9997 hardcode_libdir_flag_spec_CXX='-R$libdir'
9998 hardcode_shlibpath_var_CXX=no
9999 case $host_os in
10000 solaris2.0-5 | solaris2.0-5.*) ;;
10001 *)
10002 # The C++ compiler is used as linker so we must use $wl
10003 # flag to pass the commands to the underlying system
10004 # linker.
10005 # Supported since Solaris 2.6 (maybe 2.5.1?)
10006 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10007 ;;
10008 esac
10009 link_all_deplibs_CXX=yes
10010
10011 # Commands to make compiler produce verbose output that lists
10012 # what "hidden" libraries, object files and flags are used when
10013 # linking a shared library.
10014 #
10015 # There doesn't appear to be a way to prevent this compiler from
10016 # explicitly linking system object files so we need to strip them
10017 # from the output so that they don't get included in the library
10018 # dependencies.
10019 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'
10020
10021 # Archives containing C++ object files must be created using
10022 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10023 # necessary to make sure instantiated templates are included
10024 # in the archive.
10025 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10026 ;;
10027 gcx)
10028 # Green Hills C++ Compiler
10029 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10030
10031 # The C++ compiler must be used to create the archive.
10032 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10033 ;;
10034 *)
10035 # GNU C++ compiler with Solaris linker
10036 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10037 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10038 if $CC --version | grep -v '^2\.7' > /dev/null; then
10039 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10040 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10041 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10042
10043 # Commands to make compiler produce verbose output that lists
10044 # what "hidden" libraries, object files and flags are used when
10045 # linking a shared library.
10046 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10047 else
10048 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10049 # platform.
10050 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10051 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10052 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10053
10054 # Commands to make compiler produce verbose output that lists
10055 # what "hidden" libraries, object files and flags are used when
10056 # linking a shared library.
10057 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10058 fi
10059
10060 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10061 fi
10062 ;;
10063 esac
10064 ;;
10065 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10066 archive_cmds_need_lc_CXX=no
10067 ;;
10068 tandem*)
10069 case $cc_basename in
10070 NCC)
10071 # NonStop-UX NCC 3.20
10072 # FIXME: insert proper C++ library support
10073 ld_shlibs_CXX=no
10074 ;;
10075 *)
10076 # FIXME: insert proper C++ library support
10077 ld_shlibs_CXX=no
10078 ;;
10079 esac
10080 ;;
10081 vxworks*)
10082 # FIXME: insert proper C++ library support
10083 ld_shlibs_CXX=no
10084 ;;
10085 *)
10086 # FIXME: insert proper C++ library support
10087 ld_shlibs_CXX=no
10088 ;;
10089esac
10090echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10091echo "${ECHO_T}$ld_shlibs_CXX" >&6
10092test "$ld_shlibs_CXX" = no && can_build_shared=no
10093
10094GCC_CXX="$GXX"
10095LD_CXX="$LD"
10096
10097## CAVEAT EMPTOR:
10098## There is no encapsulation within the following macros, do not change
10099## the running order or otherwise move them around unless you know exactly
10100## what you are doing...
10101
10102cat > conftest.$ac_ext <<EOF
10103class Foo
10104{
10105public:
10106 Foo (void) { a = 0; }
10107private:
10108 int a;
10109};
10110EOF
10111
10112if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10113 (eval $ac_compile) 2>&5
10114 ac_status=$?
10115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10116 (exit $ac_status); }; then
10117 # Parse the compiler output and extract the necessary
10118 # objects, libraries and library flags.
10119
10120 # Sentinel used to keep track of whether or not we are before
10121 # the conftest object file.
10122 pre_test_object_deps_done=no
10123
10124 # The `*' in the case matches for architectures that use `case' in
10125 # $output_verbose_cmd can trigger glob expansion during the loop
10126 # eval without this substitution.
10127 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10128
10129 for p in `eval $output_verbose_link_cmd`; do
10130 case $p in
10131
10132 -L* | -R* | -l*)
10133 # Some compilers place space between "-{L,R}" and the path.
10134 # Remove the space.
10135 if test $p = "-L" \
10136 || test $p = "-R"; then
10137 prev=$p
10138 continue
10139 else
10140 prev=
10141 fi
10142
10143 if test "$pre_test_object_deps_done" = no; then
10144 case $p in
10145 -L* | -R*)
10146 # Internal compiler library paths should come after those
10147 # provided the user. The postdeps already come after the
10148 # user supplied libs so there is no need to process them.
10149 if test -z "$compiler_lib_search_path_CXX"; then
10150 compiler_lib_search_path_CXX="${prev}${p}"
10151 else
10152 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10153 fi
10154 ;;
10155 # The "-l" case would never come before the object being
10156 # linked, so don't bother handling this case.
10157 esac
10158 else
10159 if test -z "$postdeps_CXX"; then
10160 postdeps_CXX="${prev}${p}"
10161 else
10162 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10163 fi
10164 fi
10165 ;;
10166
10167 *.$objext)
10168 # This assumes that the test object file only shows up
10169 # once in the compiler output.
10170 if test "$p" = "conftest.$objext"; then
10171 pre_test_object_deps_done=yes
10172 continue
10173 fi
10174
10175 if test "$pre_test_object_deps_done" = no; then
10176 if test -z "$predep_objects_CXX"; then
10177 predep_objects_CXX="$p"
10178 else
10179 predep_objects_CXX="$predep_objects_CXX $p"
10180 fi
10181 else
10182 if test -z "$postdep_objects_CXX"; then
10183 postdep_objects_CXX="$p"
10184 else
10185 postdep_objects_CXX="$postdep_objects_CXX $p"
10186 fi
10187 fi
10188 ;;
10189
10190 *) ;; # Ignore the rest.
10191
10192 esac
10193 done
10194
10195 # Clean up.
10196 rm -f a.out a.exe
10197else
10198 echo "libtool.m4: error: problem compiling CXX test program"
10199fi
10200
10201$rm -f confest.$objext
10202
10203case " $postdeps_CXX " in
10204*" -lc "*) archive_cmds_need_lc_CXX=no ;;
10205esac
10206
10207lt_prog_compiler_wl_CXX=
10208lt_prog_compiler_pic_CXX=
10209lt_prog_compiler_static_CXX=
10210
10211echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10212echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10213
10214 # C++ specific cases for pic, static, wl, etc.
10215 if test "$GXX" = yes; then
10216 lt_prog_compiler_wl_CXX='-Wl,'
10217 lt_prog_compiler_static_CXX='-static'
10218
10219 case $host_os in
10220 aix*)
10221 # All AIX code is PIC.
10222 if test "$host_cpu" = ia64; then
10223 # AIX 5 now supports IA64 processor
10224 lt_prog_compiler_static_CXX='-Bstatic'
10225 fi
10226 ;;
10227 amigaos*)
10228 # FIXME: we need at least 68020 code to build shared libraries, but
10229 # adding the `-m68020' flag to GCC prevents building anything better,
10230 # like `-m68040'.
10231 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10232 ;;
10233 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10234 # PIC is the default for these OSes.
10235 ;;
10236 mingw* | os2* | pw32*)
10237 # This hack is so that the source file can tell whether it is being
10238 # built for inclusion in a dll (and should export symbols for example).
10239 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10240 ;;
10241 darwin* | rhapsody*)
10242 # PIC is the default on this platform
10243 # Common symbols not allowed in MH_DYLIB files
10244 lt_prog_compiler_pic_CXX='-fno-common'
10245 ;;
10246 *djgpp*)
10247 # DJGPP does not support shared libraries at all
10248 lt_prog_compiler_pic_CXX=
10249 ;;
10250 sysv4*MP*)
10251 if test -d /usr/nec; then
10252 lt_prog_compiler_pic_CXX=-Kconform_pic
10253 fi
10254 ;;
10255 hpux*)
10256 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10257 # not for PA HP-UX.
10258 case "$host_cpu" in
10259 hppa*64*|ia64*)
10260 ;;
10261 *)
10262 lt_prog_compiler_pic_CXX='-fPIC'
10263 ;;
10264 esac
10265 ;;
10266 *)
10267 lt_prog_compiler_pic_CXX='-fPIC'
10268 ;;
10269 esac
10270 else
10271 case $host_os in
10272 aix4* | aix5*)
10273 # All AIX code is PIC.
10274 if test "$host_cpu" = ia64; then
10275 # AIX 5 now supports IA64 processor
10276 lt_prog_compiler_static_CXX='-Bstatic'
10277 else
10278 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10279 fi
10280 ;;
10281 chorus*)
10282 case $cc_basename in
10283 cxch68)
10284 # Green Hills C++ Compiler
10285 # _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"
10286 ;;
10287 esac
10288 ;;
10289 dgux*)
10290 case $cc_basename in
10291 ec++)
10292 lt_prog_compiler_pic_CXX='-KPIC'
10293 ;;
10294 ghcx)
10295 # Green Hills C++ Compiler
10296 lt_prog_compiler_pic_CXX='-pic'
10297 ;;
10298 *)
10299 ;;
10300 esac
10301 ;;
10302 freebsd*)
10303 # FreeBSD uses GNU C++
10304 ;;
10305 hpux9* | hpux10* | hpux11*)
10306 case $cc_basename in
10307 CC)
10308 lt_prog_compiler_wl_CXX='-Wl,'
10309 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10310 if test "$host_cpu" != ia64; then
10311 lt_prog_compiler_pic_CXX='+Z'
10312 fi
10313 ;;
10314 aCC)
10315 lt_prog_compiler_wl_CXX='-Wl,'
10316 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10317 case "$host_cpu" in
10318 hppa*64*|ia64*)
10319 # +Z the default
10320 ;;
10321 *)
10322 lt_prog_compiler_pic_CXX='+Z'
10323 ;;
10324 esac
10325 ;;
10326 *)
10327 ;;
10328 esac
10329 ;;
10330 irix5* | irix6* | nonstopux*)
10331 case $cc_basename in
10332 CC)
10333 lt_prog_compiler_wl_CXX='-Wl,'
10334 lt_prog_compiler_static_CXX='-non_shared'
10335 # CC pic flag -KPIC is the default.
10336 ;;
10337 *)
10338 ;;
10339 esac
10340 ;;
10341 linux*)
10342 case $cc_basename in
10343 KCC)
10344 # KAI C++ Compiler
10345 lt_prog_compiler_wl_CXX='--backend -Wl,'
10346 lt_prog_compiler_pic_CXX='-fPIC'
10347 ;;
10348 icpc)
10349 # Intel C++
10350 lt_prog_compiler_wl_CXX='-Wl,'
10351 lt_prog_compiler_pic_CXX='-KPIC'
10352 lt_prog_compiler_static_CXX='-static'
10353 ;;
10354 cxx)
10355 # Compaq C++
10356 # Make sure the PIC flag is empty. It appears that all Alpha
10357 # Linux and Compaq Tru64 Unix objects are PIC.
10358 lt_prog_compiler_pic_CXX=
10359 lt_prog_compiler_static_CXX='-non_shared'
10360 ;;
10361 *)
10362 ;;
10363 esac
10364 ;;
10365 lynxos*)
10366 ;;
10367 m88k*)
10368 ;;
10369 mvs*)
10370 case $cc_basename in
10371 cxx)
10372 lt_prog_compiler_pic_CXX='-W c,exportall'
10373 ;;
10374 *)
10375 ;;
10376 esac
10377 ;;
10378 netbsd*)
10379 ;;
10380 osf3* | osf4* | osf5*)
10381 case $cc_basename in
10382 KCC)
10383 lt_prog_compiler_wl_CXX='--backend -Wl,'
10384 ;;
10385 RCC)
10386 # Rational C++ 2.4.1
10387 lt_prog_compiler_pic_CXX='-pic'
10388 ;;
10389 cxx)
10390 # Digital/Compaq C++
10391 lt_prog_compiler_wl_CXX='-Wl,'
10392 # Make sure the PIC flag is empty. It appears that all Alpha
10393 # Linux and Compaq Tru64 Unix objects are PIC.
10394 lt_prog_compiler_pic_CXX=
10395 lt_prog_compiler_static_CXX='-non_shared'
10396 ;;
10397 *)
10398 ;;
10399 esac
10400 ;;
10401 psos*)
10402 ;;
10403 sco*)
10404 case $cc_basename in
10405 CC)
10406 lt_prog_compiler_pic_CXX='-fPIC'
10407 ;;
10408 *)
10409 ;;
10410 esac
10411 ;;
10412 solaris*)
10413 case $cc_basename in
10414 CC)
10415 # Sun C++ 4.2, 5.x and Centerline C++
10416 lt_prog_compiler_pic_CXX='-KPIC'
10417 lt_prog_compiler_static_CXX='-Bstatic'
10418 lt_prog_compiler_wl_CXX='-Qoption ld '
10419 ;;
10420 gcx)
10421 # Green Hills C++ Compiler
10422 lt_prog_compiler_pic_CXX='-PIC'
10423 ;;
10424 *)
10425 ;;
10426 esac
10427 ;;
10428 sunos4*)
10429 case $cc_basename in
10430 CC)
10431 # Sun C++ 4.x
10432 lt_prog_compiler_pic_CXX='-pic'
10433 lt_prog_compiler_static_CXX='-Bstatic'
10434 ;;
10435 lcc)
10436 # Lucid
10437 lt_prog_compiler_pic_CXX='-pic'
10438 ;;
10439 *)
10440 ;;
10441 esac
10442 ;;
10443 tandem*)
10444 case $cc_basename in
10445 NCC)
10446 # NonStop-UX NCC 3.20
10447 lt_prog_compiler_pic_CXX='-KPIC'
10448 ;;
10449 *)
10450 ;;
10451 esac
10452 ;;
10453 unixware*)
10454 ;;
10455 vxworks*)
10456 ;;
10457 *)
10458 lt_prog_compiler_can_build_shared_CXX=no
10459 ;;
10460 esac
10461 fi
10462
10463echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10464echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10465
10466#
10467# Check to make sure the PIC flag actually works.
10468#
10469if test -n "$lt_prog_compiler_pic_CXX"; then
10470 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10471echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10472if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10473 echo $ECHO_N "(cached) $ECHO_C" >&6
10474else
10475 lt_prog_compiler_pic_works_CXX=no
10476 ac_outfile=conftest.$ac_objext
10477 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10478 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10479 # Insert the option either (1) after the last *FLAGS variable, or
10480 # (2) before a word containing "conftest.", or (3) at the end.
10481 # Note that $ac_compile itself does not contain backslashes and begins
10482 # with a dollar sign (not a hyphen), so the echo should work correctly.
10483 # The option is referenced via a variable to avoid confusing sed.
10484 lt_compile=`echo "$ac_compile" | $SED \
10485 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10486 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10487 -e 's:$: $lt_compiler_flag:'`
John Criswell60577602003-11-25 17:49:22 +000010488 (eval echo "\"\$as_me:10488: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000010489 (eval "$lt_compile" 2>conftest.err)
10490 ac_status=$?
10491 cat conftest.err >&5
John Criswell60577602003-11-25 17:49:22 +000010492 echo "$as_me:10492: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000010493 if (exit $ac_status) && test -s "$ac_outfile"; then
10494 # The compiler can only warn and ignore the option if not recognized
10495 # So say no if there are warnings
10496 if test ! -s conftest.err; then
10497 lt_prog_compiler_pic_works_CXX=yes
10498 fi
10499 fi
10500 $rm conftest*
10501
10502fi
10503echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10504echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10505
10506if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10507 case $lt_prog_compiler_pic_CXX in
10508 "" | " "*) ;;
10509 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10510 esac
10511else
10512 lt_prog_compiler_pic_CXX=
10513 lt_prog_compiler_can_build_shared_CXX=no
10514fi
10515
10516fi
10517case "$host_os" in
10518 # For platforms which do not support PIC, -DPIC is meaningless:
10519 *djgpp*)
10520 lt_prog_compiler_pic_CXX=
10521 ;;
10522 *)
10523 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10524 ;;
10525esac
10526
10527echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10528echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10529if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10530 echo $ECHO_N "(cached) $ECHO_C" >&6
10531else
10532 lt_cv_prog_compiler_c_o_CXX=no
10533 $rm -r conftest 2>/dev/null
10534 mkdir conftest
10535 cd conftest
10536 mkdir out
10537 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10538
10539 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
10540 # that will create temporary files in the current directory regardless of
10541 # the output directory. Thus, making CWD read-only will cause this test
10542 # to fail, enabling locking or at least warning the user not to do parallel
10543 # builds.
10544 chmod -w .
10545
10546 lt_compiler_flag="-o out/conftest2.$ac_objext"
10547 # Insert the option either (1) after the last *FLAGS variable, or
10548 # (2) before a word containing "conftest.", or (3) at the end.
10549 # Note that $ac_compile itself does not contain backslashes and begins
10550 # with a dollar sign (not a hyphen), so the echo should work correctly.
10551 lt_compile=`echo "$ac_compile" | $SED \
10552 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10553 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10554 -e 's:$: $lt_compiler_flag:'`
John Criswell60577602003-11-25 17:49:22 +000010555 (eval echo "\"\$as_me:10555: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000010556 (eval "$lt_compile" 2>out/conftest.err)
10557 ac_status=$?
10558 cat out/conftest.err >&5
John Criswell60577602003-11-25 17:49:22 +000010559 echo "$as_me:10559: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000010560 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10561 then
10562 # The compiler can only warn and ignore the option if not recognized
10563 # So say no if there are warnings
10564 if test ! -s out/conftest.err; then
10565 lt_cv_prog_compiler_c_o_CXX=yes
10566 fi
10567 fi
10568 chmod u+w .
10569 $rm conftest* out/*
10570 rmdir out
10571 cd ..
10572 rmdir conftest
10573 $rm conftest*
10574
10575fi
10576echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10577echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10578
10579
10580hard_links="nottested"
10581if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10582 # do not overwrite the value of need_locks provided by the user
10583 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10584echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10585 hard_links=yes
10586 $rm conftest*
10587 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10588 touch conftest.a
10589 ln conftest.a conftest.b 2>&5 || hard_links=no
10590 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10591 echo "$as_me:$LINENO: result: $hard_links" >&5
10592echo "${ECHO_T}$hard_links" >&6
10593 if test "$hard_links" = no; then
10594 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10595echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10596 need_locks=warn
10597 fi
10598else
10599 need_locks=no
10600fi
10601
10602echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10603echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10604
10605 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10606 case $host_os in
10607 aix4* | aix5*)
10608 # If we're using GNU nm, then we don't want the "-C" option.
10609 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10610 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10611 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'
10612 else
10613 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'
10614 fi
10615 ;;
10616 pw32*)
10617 export_symbols_cmds_CXX="$ltdll_cmds"
10618 ;;
10619 cygwin* | mingw*)
10620 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10621 ;;
10622 *)
10623 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10624 ;;
10625 esac
10626
10627echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10628echo "${ECHO_T}$ld_shlibs_CXX" >&6
10629test "$ld_shlibs_CXX" = no && can_build_shared=no
10630
10631variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10632if test "$GCC" = yes; then
10633 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10634fi
10635
10636#
10637# Do we need to explicitly link libc?
10638#
10639case "x$archive_cmds_need_lc_CXX" in
10640x|xyes)
10641 # Assume -lc should be added
10642 archive_cmds_need_lc_CXX=yes
10643
10644 if test "$enable_shared" = yes && test "$GCC" = yes; then
10645 case $archive_cmds_CXX in
10646 *'~'*)
10647 # FIXME: we may have to deal with multi-command sequences.
10648 ;;
10649 '$CC '*)
10650 # Test whether the compiler implicitly links with -lc since on some
10651 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10652 # to ld, don't add -lc before -lgcc.
10653 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10654echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10655 $rm conftest*
10656 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10657
10658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10659 (eval $ac_compile) 2>&5
10660 ac_status=$?
10661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10662 (exit $ac_status); } 2>conftest.err; then
10663 soname=conftest
10664 lib=conftest
10665 libobjs=conftest.$ac_objext
10666 deplibs=
10667 wl=$lt_prog_compiler_wl_CXX
10668 compiler_flags=-v
10669 linker_flags=-v
10670 verstring=
10671 output_objdir=.
10672 libname=conftest
10673 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
10674 allow_undefined_flag_CXX=
10675 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10676 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10677 ac_status=$?
10678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10679 (exit $ac_status); }
10680 then
10681 archive_cmds_need_lc_CXX=no
10682 else
10683 archive_cmds_need_lc_CXX=yes
10684 fi
10685 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
10686 else
10687 cat conftest.err 1>&5
10688 fi
10689 $rm conftest*
10690 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
10691echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
10692 ;;
10693 esac
10694 fi
10695 ;;
10696esac
10697
10698echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10699echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10700hardcode_action_CXX=
10701if test -n "$hardcode_libdir_flag_spec_CXX" || \
10702 test -n "$runpath_var CXX" || \
10703 test "X$hardcode_automatic_CXX"="Xyes" ; then
10704
10705 # We can hardcode non-existant directories.
10706 if test "$hardcode_direct_CXX" != no &&
10707 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10708 # have to relink, otherwise we might link with an installed library
10709 # when we should be linking with a yet-to-be-installed one
10710 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
10711 test "$hardcode_minus_L_CXX" != no; then
10712 # Linking always hardcodes the temporary library directory.
10713 hardcode_action_CXX=relink
10714 else
10715 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10716 hardcode_action_CXX=immediate
10717 fi
10718else
10719 # We cannot hardcode anything, or else we can only hardcode existing
10720 # directories.
10721 hardcode_action_CXX=unsupported
10722fi
10723echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
10724echo "${ECHO_T}$hardcode_action_CXX" >&6
10725
10726if test "$hardcode_action_CXX" = relink; then
10727 # Fast installation is not supported
10728 enable_fast_install=no
10729elif test "$shlibpath_overrides_runpath" = yes ||
10730 test "$enable_shared" = no; then
10731 # Fast installation is not necessary
10732 enable_fast_install=needless
10733fi
10734
10735striplib=
10736old_striplib=
10737echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10738echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10739if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10740 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10741 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10742 echo "$as_me:$LINENO: result: yes" >&5
10743echo "${ECHO_T}yes" >&6
10744else
10745# FIXME - insert some real tests, host_os isn't really good enough
10746 case $host_os in
10747 darwin*)
10748 if test -n "$STRIP" ; then
10749 striplib="$STRIP -x"
10750 echo "$as_me:$LINENO: result: yes" >&5
10751echo "${ECHO_T}yes" >&6
10752 else
10753 echo "$as_me:$LINENO: result: no" >&5
10754echo "${ECHO_T}no" >&6
10755fi
10756 ;;
10757 *)
10758 echo "$as_me:$LINENO: result: no" >&5
10759echo "${ECHO_T}no" >&6
10760 ;;
10761 esac
10762fi
10763
10764echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10765echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10766library_names_spec=
10767libname_spec='lib$name'
10768soname_spec=
10769shrext=".so"
10770postinstall_cmds=
10771postuninstall_cmds=
10772finish_cmds=
10773finish_eval=
10774shlibpath_var=
10775shlibpath_overrides_runpath=unknown
10776version_type=none
10777dynamic_linker="$host_os ld.so"
10778sys_lib_dlsearch_path_spec="/lib /usr/lib"
10779if test "$GCC" = yes; then
10780 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10781 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10782 # if the path contains ";" then we assume it to be the separator
10783 # otherwise default to the standard path separator (i.e. ":") - it is
10784 # assumed that no part of a normal pathname contains ";" but that should
10785 # okay in the real world where ";" in dirpaths is itself problematic.
10786 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10787 else
10788 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10789 fi
10790else
10791 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10792fi
10793need_lib_prefix=unknown
10794hardcode_into_libs=no
10795
10796# when you set need_version to no, make sure it does not cause -set_version
10797# flags to be left without arguments
10798need_version=unknown
10799
10800case $host_os in
10801aix3*)
10802 version_type=linux
10803 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10804 shlibpath_var=LIBPATH
10805
10806 # AIX 3 has no versioning support, so we append a major version to the name.
10807 soname_spec='${libname}${release}${shared_ext}$major'
10808 ;;
10809
10810aix4* | aix5*)
10811 version_type=linux
10812 need_lib_prefix=no
10813 need_version=no
10814 hardcode_into_libs=yes
10815 if test "$host_cpu" = ia64; then
10816 # AIX 5 supports IA64
10817 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10818 shlibpath_var=LD_LIBRARY_PATH
10819 else
10820 # With GCC up to 2.95.x, collect2 would create an import file
10821 # for dependence libraries. The import file would start with
10822 # the line `#! .'. This would cause the generated library to
10823 # depend on `.', always an invalid library. This was fixed in
10824 # development snapshots of GCC prior to 3.0.
10825 case $host_os in
10826 aix4 | aix4.[01] | aix4.[01].*)
10827 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10828 echo ' yes '
10829 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10830 :
10831 else
10832 can_build_shared=no
10833 fi
10834 ;;
10835 esac
10836 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10837 # soname into executable. Probably we can add versioning support to
10838 # collect2, so additional links can be useful in future.
10839 if test "$aix_use_runtimelinking" = yes; then
10840 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10841 # instead of lib<name>.a to let people know that these are not
10842 # typical AIX shared libraries.
10843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10844 else
10845 # We preserve .a as extension for shared libraries through AIX4.2
10846 # and later when we are not doing run time linking.
10847 library_names_spec='${libname}${release}.a $libname.a'
10848 soname_spec='${libname}${release}${shared_ext}$major'
10849 fi
10850 shlibpath_var=LIBPATH
10851 fi
10852 ;;
10853
10854amigaos*)
10855 library_names_spec='$libname.ixlibrary $libname.a'
10856 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10857 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'
10858 ;;
10859
10860beos*)
10861 library_names_spec='${libname}${shared_ext}'
10862 dynamic_linker="$host_os ld.so"
10863 shlibpath_var=LIBRARY_PATH
10864 ;;
10865
10866bsdi4*)
10867 version_type=linux
10868 need_version=no
10869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10870 soname_spec='${libname}${release}${shared_ext}$major'
10871 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10872 shlibpath_var=LD_LIBRARY_PATH
10873 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10874 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10875 # the default ld.so.conf also contains /usr/contrib/lib and
10876 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10877 # libtool to hard-code these into programs
10878 ;;
10879
10880cygwin* | mingw* | pw32*)
10881 version_type=windows
10882 shrext=".dll"
10883 need_version=no
10884 need_lib_prefix=no
10885
10886 case $GCC,$host_os in
10887 yes,cygwin* | yes,mingw* | yes,pw32*)
10888 library_names_spec='$libname.dll.a'
10889 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10890 postinstall_cmds='base_file=`basename \${file}`~
10891 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10892 dldir=$destdir/`dirname \$dlpath`~
10893 test -d \$dldir || mkdir -p \$dldir~
10894 $install_prog $dir/$dlname \$dldir/$dlname'
10895 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10896 dlpath=$dir/\$dldll~
10897 $rm \$dlpath'
10898 shlibpath_overrides_runpath=yes
10899
10900 case $host_os in
10901 cygwin*)
10902 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10903 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10904 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
10905 ;;
10906 mingw*)
10907 # MinGW DLLs use traditional 'lib' prefix
10908 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10909 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10910 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10911 # It is most probably a Windows format PATH printed by
10912 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10913 # path with ; separators, and with drive letters. We can handle the
10914 # drive letters (cygwin fileutils understands them), so leave them,
10915 # especially as we might pass files found there to a mingw objdump,
10916 # which wouldn't understand a cygwinified path. Ahh.
10917 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10918 else
10919 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10920 fi
10921 ;;
10922 pw32*)
10923 # pw32 DLLs use 'pw' prefix rather than 'lib'
10924 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
10925 ;;
10926 esac
10927 ;;
10928
10929 *)
10930 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10931 ;;
10932 esac
10933 dynamic_linker='Win32 ld.exe'
10934 # FIXME: first we should search . and the directory the executable is in
10935 shlibpath_var=PATH
10936 ;;
10937
10938darwin* | rhapsody*)
10939 dynamic_linker="$host_os dyld"
10940 version_type=darwin
10941 need_lib_prefix=no
10942 need_version=no
10943 # FIXME: Relying on posixy $() will cause problems for
10944 # cross-compilation, but unfortunately the echo tests do not
10945 # yet detect zsh echo's removal of \ escapes.
10946 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10947 soname_spec='${libname}${release}${major}$shared_ext'
10948 shlibpath_overrides_runpath=yes
10949 shlibpath_var=DYLD_LIBRARY_PATH
10950 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
10951 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10952 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
10953 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"`
10954 fi
10955 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10956 ;;
10957
10958dgux*)
10959 version_type=linux
10960 need_lib_prefix=no
10961 need_version=no
10962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10963 soname_spec='${libname}${release}${shared_ext}$major'
10964 shlibpath_var=LD_LIBRARY_PATH
10965 ;;
10966
10967freebsd1*)
10968 dynamic_linker=no
10969 ;;
10970
10971freebsd*)
10972 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
10973 version_type=freebsd-$objformat
10974 case $version_type in
10975 freebsd-elf*)
10976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10977 need_version=no
10978 need_lib_prefix=no
10979 ;;
10980 freebsd-*)
10981 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10982 need_version=yes
10983 ;;
10984 esac
10985 shlibpath_var=LD_LIBRARY_PATH
10986 case $host_os in
10987 freebsd2*)
10988 shlibpath_overrides_runpath=yes
10989 ;;
10990 freebsd3.01* | freebsdelf3.01*)
10991 shlibpath_overrides_runpath=yes
10992 hardcode_into_libs=yes
10993 ;;
10994 *) # from 3.2 on
10995 shlibpath_overrides_runpath=no
10996 hardcode_into_libs=yes
10997 ;;
10998 esac
10999 ;;
11000
11001gnu*)
11002 version_type=linux
11003 need_lib_prefix=no
11004 need_version=no
11005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11006 soname_spec='${libname}${release}${shared_ext}$major'
11007 shlibpath_var=LD_LIBRARY_PATH
11008 hardcode_into_libs=yes
11009 ;;
11010
11011hpux9* | hpux10* | hpux11*)
11012 # Give a soname corresponding to the major version so that dld.sl refuses to
11013 # link against other versions.
11014 version_type=sunos
11015 need_lib_prefix=no
11016 need_version=no
11017 case "$host_cpu" in
11018 ia64*)
11019 shrext='.so'
11020 hardcode_into_libs=yes
11021 dynamic_linker="$host_os dld.so"
11022 shlibpath_var=LD_LIBRARY_PATH
11023 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11025 soname_spec='${libname}${release}${shared_ext}$major'
11026 if test "X$HPUX_IA64_MODE" = X32; then
11027 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11028 else
11029 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11030 fi
11031 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11032 ;;
11033 hppa*64*)
11034 shrext='.sl'
11035 hardcode_into_libs=yes
11036 dynamic_linker="$host_os dld.sl"
11037 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11038 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11040 soname_spec='${libname}${release}${shared_ext}$major'
11041 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11042 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11043 ;;
11044 *)
11045 shrext='.sl'
11046 dynamic_linker="$host_os dld.sl"
11047 shlibpath_var=SHLIB_PATH
11048 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11050 soname_spec='${libname}${release}${shared_ext}$major'
11051 ;;
11052 esac
11053 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11054 postinstall_cmds='chmod 555 $lib'
11055 ;;
11056
11057irix5* | irix6* | nonstopux*)
11058 case $host_os in
11059 nonstopux*) version_type=nonstopux ;;
11060 *)
11061 if test "$lt_cv_prog_gnu_ld" = yes; then
11062 version_type=linux
11063 else
11064 version_type=irix
11065 fi ;;
11066 esac
11067 need_lib_prefix=no
11068 need_version=no
11069 soname_spec='${libname}${release}${shared_ext}$major'
11070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11071 case $host_os in
11072 irix5* | nonstopux*)
11073 libsuff= shlibsuff=
11074 ;;
11075 *)
11076 case $LD in # libtool.m4 will add one of these switches to LD
11077 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11078 libsuff= shlibsuff= libmagic=32-bit;;
11079 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11080 libsuff=32 shlibsuff=N32 libmagic=N32;;
11081 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11082 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11083 *) libsuff= shlibsuff= libmagic=never-match;;
11084 esac
11085 ;;
11086 esac
11087 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11088 shlibpath_overrides_runpath=no
11089 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11090 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11091 hardcode_into_libs=yes
11092 ;;
11093
11094# No shared lib support for Linux oldld, aout, or coff.
11095linux*oldld* | linux*aout* | linux*coff*)
11096 dynamic_linker=no
11097 ;;
11098
11099# This must be Linux ELF.
11100linux*)
11101 version_type=linux
11102 need_lib_prefix=no
11103 need_version=no
11104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11105 soname_spec='${libname}${release}${shared_ext}$major'
11106 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11107 shlibpath_var=LD_LIBRARY_PATH
11108 shlibpath_overrides_runpath=no
11109 # This implies no fast_install, which is unacceptable.
11110 # Some rework will be needed to allow for fast_install
11111 # before this can be enabled.
11112 hardcode_into_libs=yes
11113
11114 # We used to test for /lib/ld.so.1 and disable shared libraries on
11115 # powerpc, because MkLinux only supported shared libraries with the
11116 # GNU dynamic linker. Since this was broken with cross compilers,
11117 # most powerpc-linux boxes support dynamic linking these days and
11118 # people can always --disable-shared, the test was removed, and we
11119 # assume the GNU/Linux dynamic linker is in use.
11120 dynamic_linker='GNU/Linux ld.so'
11121 ;;
11122
11123netbsd*)
11124 version_type=sunos
11125 need_lib_prefix=no
11126 need_version=no
11127 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11129 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11130 dynamic_linker='NetBSD (a.out) ld.so'
11131 else
11132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
11133 soname_spec='${libname}${release}${shared_ext}$major'
11134 dynamic_linker='NetBSD ld.elf_so'
11135 fi
11136 shlibpath_var=LD_LIBRARY_PATH
11137 shlibpath_overrides_runpath=yes
11138 hardcode_into_libs=yes
11139 ;;
11140
11141newsos6)
11142 version_type=linux
11143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11144 shlibpath_var=LD_LIBRARY_PATH
11145 shlibpath_overrides_runpath=yes
11146 ;;
11147
11148nto-qnx)
11149 version_type=linux
11150 need_lib_prefix=no
11151 need_version=no
11152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11153 soname_spec='${libname}${release}${shared_ext}$major'
11154 shlibpath_var=LD_LIBRARY_PATH
11155 shlibpath_overrides_runpath=yes
11156 ;;
11157
11158openbsd*)
11159 version_type=sunos
11160 need_lib_prefix=no
11161 need_version=no
11162 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11163 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11164 shlibpath_var=LD_LIBRARY_PATH
11165 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11166 case $host_os in
11167 openbsd2.[89] | openbsd2.[89].*)
11168 shlibpath_overrides_runpath=no
11169 ;;
11170 *)
11171 shlibpath_overrides_runpath=yes
11172 ;;
11173 esac
11174 else
11175 shlibpath_overrides_runpath=yes
11176 fi
11177 ;;
11178
11179os2*)
11180 libname_spec='$name'
11181 shrext=".dll"
11182 need_lib_prefix=no
11183 library_names_spec='$libname${shared_ext} $libname.a'
11184 dynamic_linker='OS/2 ld.exe'
11185 shlibpath_var=LIBPATH
11186 ;;
11187
11188osf3* | osf4* | osf5*)
11189 version_type=osf
11190 need_lib_prefix=no
11191 need_version=no
11192 soname_spec='${libname}${release}${shared_ext}$major'
11193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11194 shlibpath_var=LD_LIBRARY_PATH
11195 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11196 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11197 ;;
11198
11199sco3.2v5*)
11200 version_type=osf
11201 soname_spec='${libname}${release}${shared_ext}$major'
11202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11203 shlibpath_var=LD_LIBRARY_PATH
11204 ;;
11205
11206solaris*)
11207 version_type=linux
11208 need_lib_prefix=no
11209 need_version=no
11210 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11211 soname_spec='${libname}${release}${shared_ext}$major'
11212 shlibpath_var=LD_LIBRARY_PATH
11213 shlibpath_overrides_runpath=yes
11214 hardcode_into_libs=yes
11215 # ldd complains unless libraries are executable
11216 postinstall_cmds='chmod +x $lib'
11217 ;;
11218
11219sunos4*)
11220 version_type=sunos
11221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11222 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11223 shlibpath_var=LD_LIBRARY_PATH
11224 shlibpath_overrides_runpath=yes
11225 if test "$with_gnu_ld" = yes; then
11226 need_lib_prefix=no
11227 fi
11228 need_version=yes
11229 ;;
11230
11231sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11232 version_type=linux
11233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11234 soname_spec='${libname}${release}${shared_ext}$major'
11235 shlibpath_var=LD_LIBRARY_PATH
11236 case $host_vendor in
11237 sni)
11238 shlibpath_overrides_runpath=no
11239 need_lib_prefix=no
11240 export_dynamic_flag_spec='${wl}-Blargedynsym'
11241 runpath_var=LD_RUN_PATH
11242 ;;
11243 siemens)
11244 need_lib_prefix=no
11245 ;;
11246 motorola)
11247 need_lib_prefix=no
11248 need_version=no
11249 shlibpath_overrides_runpath=no
11250 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11251 ;;
11252 esac
11253 ;;
11254
11255sysv4*MP*)
11256 if test -d /usr/nec ;then
11257 version_type=linux
11258 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11259 soname_spec='$libname${shared_ext}.$major'
11260 shlibpath_var=LD_LIBRARY_PATH
11261 fi
11262 ;;
11263
11264uts4*)
11265 version_type=linux
11266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11267 soname_spec='${libname}${release}${shared_ext}$major'
11268 shlibpath_var=LD_LIBRARY_PATH
11269 ;;
11270
11271*)
11272 dynamic_linker=no
11273 ;;
11274esac
11275echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11276echo "${ECHO_T}$dynamic_linker" >&6
11277test "$dynamic_linker" = no && can_build_shared=no
11278
11279if test "x$enable_dlopen" != xyes; then
11280 enable_dlopen=unknown
11281 enable_dlopen_self=unknown
11282 enable_dlopen_self_static=unknown
11283else
11284 lt_cv_dlopen=no
11285 lt_cv_dlopen_libs=
11286
11287 case $host_os in
11288 beos*)
11289 lt_cv_dlopen="load_add_on"
11290 lt_cv_dlopen_libs=
11291 lt_cv_dlopen_self=yes
11292 ;;
11293
11294 mingw* | pw32*)
11295 lt_cv_dlopen="LoadLibrary"
11296 lt_cv_dlopen_libs=
11297 ;;
11298
11299 cygwin*)
11300 lt_cv_dlopen="dlopen"
11301 lt_cv_dlopen_libs=
11302 ;;
11303
11304 darwin*)
11305 # if libdl is installed we need to link against it
11306 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11307echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11308if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11309 echo $ECHO_N "(cached) $ECHO_C" >&6
11310else
11311 ac_check_lib_save_LIBS=$LIBS
11312LIBS="-ldl $LIBS"
11313cat >conftest.$ac_ext <<_ACEOF
11314#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011315/* confdefs.h. */
11316_ACEOF
11317cat confdefs.h >>conftest.$ac_ext
11318cat >>conftest.$ac_ext <<_ACEOF
11319/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011320
11321/* Override any gcc2 internal prototype to avoid an error. */
11322#ifdef __cplusplus
11323extern "C"
11324#endif
11325/* We use char because int might match the return type of a gcc2
11326 builtin and then its argument prototype would still apply. */
11327char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011328int
11329main ()
11330{
11331dlopen ();
11332 ;
11333 return 0;
11334}
11335_ACEOF
11336rm -f conftest.$ac_objext conftest$ac_exeext
11337if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11338 (eval $ac_link) 2>&5
11339 ac_status=$?
11340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11341 (exit $ac_status); } &&
11342 { ac_try='test -s conftest$ac_exeext'
11343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11344 (eval $ac_try) 2>&5
11345 ac_status=$?
11346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11347 (exit $ac_status); }; }; then
11348 ac_cv_lib_dl_dlopen=yes
11349else
11350 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011351sed 's/^/| /' conftest.$ac_ext >&5
11352
John Criswell47fdd832003-07-14 16:52:07 +000011353ac_cv_lib_dl_dlopen=no
11354fi
11355rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11356LIBS=$ac_check_lib_save_LIBS
11357fi
11358echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11359echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11360if test $ac_cv_lib_dl_dlopen = yes; then
11361 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11362else
11363
11364 lt_cv_dlopen="dyld"
11365 lt_cv_dlopen_libs=
11366 lt_cv_dlopen_self=yes
11367
11368fi
11369
11370 ;;
11371
11372 *)
11373 echo "$as_me:$LINENO: checking for shl_load" >&5
11374echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11375if test "${ac_cv_func_shl_load+set}" = set; then
11376 echo $ECHO_N "(cached) $ECHO_C" >&6
11377else
11378 cat >conftest.$ac_ext <<_ACEOF
11379#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011380/* confdefs.h. */
11381_ACEOF
11382cat confdefs.h >>conftest.$ac_ext
11383cat >>conftest.$ac_ext <<_ACEOF
11384/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011385/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000011386 which can conflict with char shl_load (); below.
11387 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11388 <limits.h> exists even on freestanding compilers. */
11389#ifdef __STDC__
11390# include <limits.h>
11391#else
11392# include <assert.h>
11393#endif
John Criswell47fdd832003-07-14 16:52:07 +000011394/* Override any gcc2 internal prototype to avoid an error. */
11395#ifdef __cplusplus
11396extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000011397{
John Criswell47fdd832003-07-14 16:52:07 +000011398#endif
11399/* We use char because int might match the return type of a gcc2
11400 builtin and then its argument prototype would still apply. */
11401char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000011402/* The GNU C library defines this for functions which it implements
11403 to always fail with ENOSYS. Some functions are actually named
11404 something starting with __ and the normal name is an alias. */
11405#if defined (__stub_shl_load) || defined (__stub___shl_load)
11406choke me
11407#else
John Criswell0c38eaf2003-09-10 15:17:25 +000011408char (*f) () = shl_load;
11409#endif
11410#ifdef __cplusplus
11411}
John Criswell47fdd832003-07-14 16:52:07 +000011412#endif
11413
John Criswell0c38eaf2003-09-10 15:17:25 +000011414int
11415main ()
11416{
11417return f != shl_load;
John Criswell47fdd832003-07-14 16:52:07 +000011418 ;
11419 return 0;
11420}
11421_ACEOF
11422rm -f conftest.$ac_objext conftest$ac_exeext
11423if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11424 (eval $ac_link) 2>&5
11425 ac_status=$?
11426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11427 (exit $ac_status); } &&
11428 { ac_try='test -s conftest$ac_exeext'
11429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11430 (eval $ac_try) 2>&5
11431 ac_status=$?
11432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11433 (exit $ac_status); }; }; then
11434 ac_cv_func_shl_load=yes
11435else
11436 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011437sed 's/^/| /' conftest.$ac_ext >&5
11438
John Criswell47fdd832003-07-14 16:52:07 +000011439ac_cv_func_shl_load=no
11440fi
11441rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11442fi
11443echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11444echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11445if test $ac_cv_func_shl_load = yes; then
11446 lt_cv_dlopen="shl_load"
11447else
11448 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11449echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11450if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11451 echo $ECHO_N "(cached) $ECHO_C" >&6
11452else
11453 ac_check_lib_save_LIBS=$LIBS
11454LIBS="-ldld $LIBS"
11455cat >conftest.$ac_ext <<_ACEOF
11456#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011457/* confdefs.h. */
11458_ACEOF
11459cat confdefs.h >>conftest.$ac_ext
11460cat >>conftest.$ac_ext <<_ACEOF
11461/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011462
11463/* Override any gcc2 internal prototype to avoid an error. */
11464#ifdef __cplusplus
11465extern "C"
11466#endif
11467/* We use char because int might match the return type of a gcc2
11468 builtin and then its argument prototype would still apply. */
11469char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000011470int
11471main ()
11472{
11473shl_load ();
11474 ;
11475 return 0;
11476}
11477_ACEOF
11478rm -f conftest.$ac_objext conftest$ac_exeext
11479if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11480 (eval $ac_link) 2>&5
11481 ac_status=$?
11482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11483 (exit $ac_status); } &&
11484 { ac_try='test -s conftest$ac_exeext'
11485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11486 (eval $ac_try) 2>&5
11487 ac_status=$?
11488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11489 (exit $ac_status); }; }; then
11490 ac_cv_lib_dld_shl_load=yes
11491else
11492 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011493sed 's/^/| /' conftest.$ac_ext >&5
11494
John Criswell47fdd832003-07-14 16:52:07 +000011495ac_cv_lib_dld_shl_load=no
11496fi
11497rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11498LIBS=$ac_check_lib_save_LIBS
11499fi
11500echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11501echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11502if test $ac_cv_lib_dld_shl_load = yes; then
11503 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11504else
11505 echo "$as_me:$LINENO: checking for dlopen" >&5
11506echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11507if test "${ac_cv_func_dlopen+set}" = set; then
11508 echo $ECHO_N "(cached) $ECHO_C" >&6
11509else
11510 cat >conftest.$ac_ext <<_ACEOF
11511#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011512/* confdefs.h. */
11513_ACEOF
11514cat confdefs.h >>conftest.$ac_ext
11515cat >>conftest.$ac_ext <<_ACEOF
11516/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011517/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000011518 which can conflict with char dlopen (); below.
11519 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11520 <limits.h> exists even on freestanding compilers. */
11521#ifdef __STDC__
11522# include <limits.h>
11523#else
11524# include <assert.h>
11525#endif
John Criswell47fdd832003-07-14 16:52:07 +000011526/* Override any gcc2 internal prototype to avoid an error. */
11527#ifdef __cplusplus
11528extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000011529{
John Criswell47fdd832003-07-14 16:52:07 +000011530#endif
11531/* We use char because int might match the return type of a gcc2
11532 builtin and then its argument prototype would still apply. */
11533char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011534/* The GNU C library defines this for functions which it implements
11535 to always fail with ENOSYS. Some functions are actually named
11536 something starting with __ and the normal name is an alias. */
11537#if defined (__stub_dlopen) || defined (__stub___dlopen)
11538choke me
11539#else
John Criswell0c38eaf2003-09-10 15:17:25 +000011540char (*f) () = dlopen;
11541#endif
11542#ifdef __cplusplus
11543}
John Criswell47fdd832003-07-14 16:52:07 +000011544#endif
11545
John Criswell0c38eaf2003-09-10 15:17:25 +000011546int
11547main ()
11548{
11549return f != dlopen;
John Criswell47fdd832003-07-14 16:52:07 +000011550 ;
11551 return 0;
11552}
11553_ACEOF
11554rm -f conftest.$ac_objext conftest$ac_exeext
11555if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11556 (eval $ac_link) 2>&5
11557 ac_status=$?
11558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11559 (exit $ac_status); } &&
11560 { ac_try='test -s conftest$ac_exeext'
11561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11562 (eval $ac_try) 2>&5
11563 ac_status=$?
11564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11565 (exit $ac_status); }; }; then
11566 ac_cv_func_dlopen=yes
11567else
11568 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011569sed 's/^/| /' conftest.$ac_ext >&5
11570
John Criswell47fdd832003-07-14 16:52:07 +000011571ac_cv_func_dlopen=no
11572fi
11573rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11574fi
11575echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11576echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11577if test $ac_cv_func_dlopen = yes; then
11578 lt_cv_dlopen="dlopen"
11579else
11580 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11581echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11582if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11583 echo $ECHO_N "(cached) $ECHO_C" >&6
11584else
11585 ac_check_lib_save_LIBS=$LIBS
11586LIBS="-ldl $LIBS"
11587cat >conftest.$ac_ext <<_ACEOF
11588#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011589/* confdefs.h. */
11590_ACEOF
11591cat confdefs.h >>conftest.$ac_ext
11592cat >>conftest.$ac_ext <<_ACEOF
11593/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011594
11595/* Override any gcc2 internal prototype to avoid an error. */
11596#ifdef __cplusplus
11597extern "C"
11598#endif
11599/* We use char because int might match the return type of a gcc2
11600 builtin and then its argument prototype would still apply. */
11601char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011602int
11603main ()
11604{
11605dlopen ();
11606 ;
11607 return 0;
11608}
11609_ACEOF
11610rm -f conftest.$ac_objext conftest$ac_exeext
11611if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11612 (eval $ac_link) 2>&5
11613 ac_status=$?
11614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11615 (exit $ac_status); } &&
11616 { ac_try='test -s conftest$ac_exeext'
11617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11618 (eval $ac_try) 2>&5
11619 ac_status=$?
11620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11621 (exit $ac_status); }; }; then
11622 ac_cv_lib_dl_dlopen=yes
11623else
11624 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011625sed 's/^/| /' conftest.$ac_ext >&5
11626
John Criswell47fdd832003-07-14 16:52:07 +000011627ac_cv_lib_dl_dlopen=no
11628fi
11629rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11630LIBS=$ac_check_lib_save_LIBS
11631fi
11632echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11633echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11634if test $ac_cv_lib_dl_dlopen = yes; then
11635 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11636else
11637 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11638echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11639if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11640 echo $ECHO_N "(cached) $ECHO_C" >&6
11641else
11642 ac_check_lib_save_LIBS=$LIBS
11643LIBS="-lsvld $LIBS"
11644cat >conftest.$ac_ext <<_ACEOF
11645#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011646/* confdefs.h. */
11647_ACEOF
11648cat confdefs.h >>conftest.$ac_ext
11649cat >>conftest.$ac_ext <<_ACEOF
11650/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011651
11652/* Override any gcc2 internal prototype to avoid an error. */
11653#ifdef __cplusplus
11654extern "C"
11655#endif
11656/* We use char because int might match the return type of a gcc2
11657 builtin and then its argument prototype would still apply. */
11658char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011659int
11660main ()
11661{
11662dlopen ();
11663 ;
11664 return 0;
11665}
11666_ACEOF
11667rm -f conftest.$ac_objext conftest$ac_exeext
11668if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11669 (eval $ac_link) 2>&5
11670 ac_status=$?
11671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11672 (exit $ac_status); } &&
11673 { ac_try='test -s conftest$ac_exeext'
11674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11675 (eval $ac_try) 2>&5
11676 ac_status=$?
11677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11678 (exit $ac_status); }; }; then
11679 ac_cv_lib_svld_dlopen=yes
11680else
11681 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011682sed 's/^/| /' conftest.$ac_ext >&5
11683
John Criswell47fdd832003-07-14 16:52:07 +000011684ac_cv_lib_svld_dlopen=no
11685fi
11686rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11687LIBS=$ac_check_lib_save_LIBS
11688fi
11689echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11690echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11691if test $ac_cv_lib_svld_dlopen = yes; then
11692 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11693else
11694 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11695echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
11696if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11697 echo $ECHO_N "(cached) $ECHO_C" >&6
11698else
11699 ac_check_lib_save_LIBS=$LIBS
11700LIBS="-ldld $LIBS"
11701cat >conftest.$ac_ext <<_ACEOF
11702#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011703/* confdefs.h. */
11704_ACEOF
11705cat confdefs.h >>conftest.$ac_ext
11706cat >>conftest.$ac_ext <<_ACEOF
11707/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011708
11709/* Override any gcc2 internal prototype to avoid an error. */
11710#ifdef __cplusplus
11711extern "C"
11712#endif
11713/* We use char because int might match the return type of a gcc2
11714 builtin and then its argument prototype would still apply. */
11715char dld_link ();
John Criswell47fdd832003-07-14 16:52:07 +000011716int
11717main ()
11718{
11719dld_link ();
11720 ;
11721 return 0;
11722}
11723_ACEOF
11724rm -f conftest.$ac_objext conftest$ac_exeext
11725if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11726 (eval $ac_link) 2>&5
11727 ac_status=$?
11728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11729 (exit $ac_status); } &&
11730 { ac_try='test -s conftest$ac_exeext'
11731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11732 (eval $ac_try) 2>&5
11733 ac_status=$?
11734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11735 (exit $ac_status); }; }; then
11736 ac_cv_lib_dld_dld_link=yes
11737else
11738 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011739sed 's/^/| /' conftest.$ac_ext >&5
11740
John Criswell47fdd832003-07-14 16:52:07 +000011741ac_cv_lib_dld_dld_link=no
11742fi
11743rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11744LIBS=$ac_check_lib_save_LIBS
11745fi
11746echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11747echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
11748if test $ac_cv_lib_dld_dld_link = yes; then
11749 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11750fi
11751
11752
11753fi
11754
11755
11756fi
11757
11758
11759fi
11760
11761
11762fi
11763
11764
11765fi
11766
11767 ;;
11768 esac
11769
11770 if test "x$lt_cv_dlopen" != xno; then
11771 enable_dlopen=yes
11772 else
11773 enable_dlopen=no
11774 fi
11775
11776 case $lt_cv_dlopen in
11777 dlopen)
11778 save_CPPFLAGS="$CPPFLAGS"
11779 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11780
11781 save_LDFLAGS="$LDFLAGS"
11782 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11783
11784 save_LIBS="$LIBS"
11785 LIBS="$lt_cv_dlopen_libs $LIBS"
11786
11787 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11788echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11789if test "${lt_cv_dlopen_self+set}" = set; then
11790 echo $ECHO_N "(cached) $ECHO_C" >&6
11791else
11792 if test "$cross_compiling" = yes; then :
11793 lt_cv_dlopen_self=cross
11794else
11795 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11796 lt_status=$lt_dlunknown
11797 cat > conftest.$ac_ext <<EOF
John Criswell60577602003-11-25 17:49:22 +000011798#line 11798 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000011799#include "confdefs.h"
11800
11801#if HAVE_DLFCN_H
11802#include <dlfcn.h>
11803#endif
11804
11805#include <stdio.h>
11806
11807#ifdef RTLD_GLOBAL
11808# define LT_DLGLOBAL RTLD_GLOBAL
11809#else
11810# ifdef DL_GLOBAL
11811# define LT_DLGLOBAL DL_GLOBAL
11812# else
11813# define LT_DLGLOBAL 0
11814# endif
11815#endif
11816
11817/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11818 find out it does not work in some platform. */
11819#ifndef LT_DLLAZY_OR_NOW
11820# ifdef RTLD_LAZY
11821# define LT_DLLAZY_OR_NOW RTLD_LAZY
11822# else
11823# ifdef DL_LAZY
11824# define LT_DLLAZY_OR_NOW DL_LAZY
11825# else
11826# ifdef RTLD_NOW
11827# define LT_DLLAZY_OR_NOW RTLD_NOW
11828# else
11829# ifdef DL_NOW
11830# define LT_DLLAZY_OR_NOW DL_NOW
11831# else
11832# define LT_DLLAZY_OR_NOW 0
11833# endif
11834# endif
11835# endif
11836# endif
11837#endif
11838
11839#ifdef __cplusplus
11840extern "C" void exit (int);
11841#endif
11842
11843void fnord() { int i=42;}
11844int main ()
11845{
11846 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11847 int status = $lt_dlunknown;
11848
11849 if (self)
11850 {
11851 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11852 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11853 /* dlclose (self); */
11854 }
11855
11856 exit (status);
11857}
11858EOF
11859 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11860 (eval $ac_link) 2>&5
11861 ac_status=$?
11862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11863 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11864 (./conftest; exit; ) 2>/dev/null
11865 lt_status=$?
11866 case x$lt_status in
11867 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11868 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11869 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
11870 esac
11871 else :
11872 # compilation failed
11873 lt_cv_dlopen_self=no
11874 fi
11875fi
11876rm -fr conftest*
11877
11878
11879fi
11880echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11881echo "${ECHO_T}$lt_cv_dlopen_self" >&6
11882
11883 if test "x$lt_cv_dlopen_self" = xyes; then
11884 LDFLAGS="$LDFLAGS $link_static_flag"
11885 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11886echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
11887if test "${lt_cv_dlopen_self_static+set}" = set; then
11888 echo $ECHO_N "(cached) $ECHO_C" >&6
11889else
11890 if test "$cross_compiling" = yes; then :
11891 lt_cv_dlopen_self_static=cross
11892else
11893 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11894 lt_status=$lt_dlunknown
11895 cat > conftest.$ac_ext <<EOF
John Criswell60577602003-11-25 17:49:22 +000011896#line 11896 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000011897#include "confdefs.h"
11898
11899#if HAVE_DLFCN_H
11900#include <dlfcn.h>
11901#endif
11902
11903#include <stdio.h>
11904
11905#ifdef RTLD_GLOBAL
11906# define LT_DLGLOBAL RTLD_GLOBAL
11907#else
11908# ifdef DL_GLOBAL
11909# define LT_DLGLOBAL DL_GLOBAL
11910# else
11911# define LT_DLGLOBAL 0
11912# endif
11913#endif
11914
11915/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11916 find out it does not work in some platform. */
11917#ifndef LT_DLLAZY_OR_NOW
11918# ifdef RTLD_LAZY
11919# define LT_DLLAZY_OR_NOW RTLD_LAZY
11920# else
11921# ifdef DL_LAZY
11922# define LT_DLLAZY_OR_NOW DL_LAZY
11923# else
11924# ifdef RTLD_NOW
11925# define LT_DLLAZY_OR_NOW RTLD_NOW
11926# else
11927# ifdef DL_NOW
11928# define LT_DLLAZY_OR_NOW DL_NOW
11929# else
11930# define LT_DLLAZY_OR_NOW 0
11931# endif
11932# endif
11933# endif
11934# endif
11935#endif
11936
11937#ifdef __cplusplus
11938extern "C" void exit (int);
11939#endif
11940
11941void fnord() { int i=42;}
11942int main ()
11943{
11944 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11945 int status = $lt_dlunknown;
11946
11947 if (self)
11948 {
11949 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11950 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11951 /* dlclose (self); */
11952 }
11953
11954 exit (status);
11955}
11956EOF
11957 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11958 (eval $ac_link) 2>&5
11959 ac_status=$?
11960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11961 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11962 (./conftest; exit; ) 2>/dev/null
11963 lt_status=$?
11964 case x$lt_status in
11965 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11966 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11967 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
11968 esac
11969 else :
11970 # compilation failed
11971 lt_cv_dlopen_self_static=no
11972 fi
11973fi
11974rm -fr conftest*
11975
11976
11977fi
11978echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11979echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
11980 fi
11981
11982 CPPFLAGS="$save_CPPFLAGS"
11983 LDFLAGS="$save_LDFLAGS"
11984 LIBS="$save_LIBS"
11985 ;;
11986 esac
11987
11988 case $lt_cv_dlopen_self in
11989 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11990 *) enable_dlopen_self=unknown ;;
11991 esac
11992
11993 case $lt_cv_dlopen_self_static in
11994 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11995 *) enable_dlopen_self_static=unknown ;;
11996 esac
11997fi
11998
11999
12000# The else clause should only fire when bootstrapping the
12001# libtool distribution, otherwise you forgot to ship ltmain.sh
12002# with your package, and you will get complaints that there are
12003# no rules to generate ltmain.sh.
12004if test -f "$ltmain"; then
12005 # See if we are running on zsh, and set the options which allow our commands through
12006 # without removal of \ escapes.
12007 if test -n "${ZSH_VERSION+set}" ; then
12008 setopt NO_GLOB_SUBST
12009 fi
12010 # Now quote all the things that may contain metacharacters while being
12011 # careful not to overquote the AC_SUBSTed values. We take copies of the
12012 # variables and quote the copies for generation of the libtool script.
12013 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
12014 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12015 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12016 deplibs_check_method reload_flag reload_cmds need_locks \
12017 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12018 lt_cv_sys_global_symbol_to_c_name_address \
12019 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12020 old_postinstall_cmds old_postuninstall_cmds \
12021 compiler_CXX \
12022 CC_CXX \
12023 LD_CXX \
12024 lt_prog_compiler_wl_CXX \
12025 lt_prog_compiler_pic_CXX \
12026 lt_prog_compiler_static_CXX \
12027 lt_prog_compiler_no_builtin_flag_CXX \
12028 export_dynamic_flag_spec_CXX \
12029 thread_safe_flag_spec_CXX \
12030 whole_archive_flag_spec_CXX \
12031 enable_shared_with_static_runtimes_CXX \
12032 old_archive_cmds_CXX \
12033 old_archive_from_new_cmds_CXX \
12034 predep_objects_CXX \
12035 postdep_objects_CXX \
12036 predeps_CXX \
12037 postdeps_CXX \
12038 compiler_lib_search_path_CXX \
12039 archive_cmds_CXX \
12040 archive_expsym_cmds_CXX \
12041 postinstall_cmds_CXX \
12042 postuninstall_cmds_CXX \
12043 old_archive_from_expsyms_cmds_CXX \
12044 allow_undefined_flag_CXX \
12045 no_undefined_flag_CXX \
12046 export_symbols_cmds_CXX \
12047 hardcode_libdir_flag_spec_CXX \
12048 hardcode_libdir_flag_spec_ld_CXX \
12049 hardcode_libdir_separator_CXX \
12050 hardcode_automatic_CXX \
12051 module_cmds_CXX \
12052 module_expsym_cmds_CXX \
12053 lt_cv_prog_compiler_c_o_CXX \
12054 exclude_expsyms_CXX \
12055 include_expsyms_CXX; do
12056
12057 case $var in
12058 old_archive_cmds_CXX | \
12059 old_archive_from_new_cmds_CXX | \
12060 archive_cmds_CXX | \
12061 archive_expsym_cmds_CXX | \
12062 module_cmds_CXX | \
12063 module_expsym_cmds_CXX | \
12064 old_archive_from_expsyms_cmds_CXX | \
12065 export_symbols_cmds_CXX | \
12066 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12067 postinstall_cmds | postuninstall_cmds | \
12068 old_postinstall_cmds | old_postuninstall_cmds | \
12069 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12070 # Double-quote double-evaled strings.
12071 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12072 ;;
12073 *)
12074 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12075 ;;
12076 esac
12077 done
12078
12079 case $lt_echo in
12080 *'\$0 --fallback-echo"')
12081 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12082 ;;
12083 esac
12084
12085cfgfile="$ofile"
12086
12087 cat <<__EOF__ >> "$cfgfile"
12088# ### BEGIN LIBTOOL TAG CONFIG: $tagname
12089
12090# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12091
12092# Shell to use when invoking shell scripts.
12093SHELL=$lt_SHELL
12094
12095# Whether or not to build shared libraries.
12096build_libtool_libs=$enable_shared
12097
12098# Whether or not to build static libraries.
12099build_old_libs=$enable_static
12100
12101# Whether or not to add -lc for building shared libraries.
12102build_libtool_need_lc=$archive_cmds_need_lc_CXX
12103
12104# Whether or not to disallow shared libs when runtime libs are static
12105allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12106
12107# Whether or not to optimize for fast installation.
12108fast_install=$enable_fast_install
12109
12110# The host system.
12111host_alias=$host_alias
12112host=$host
12113
12114# An echo program that does not interpret backslashes.
12115echo=$lt_echo
12116
12117# The archiver.
12118AR=$lt_AR
12119AR_FLAGS=$lt_AR_FLAGS
12120
12121# A C compiler.
12122LTCC=$lt_LTCC
12123
12124# A language-specific compiler.
12125CC=$lt_compiler_CXX
12126
12127# Is the compiler the GNU C compiler?
12128with_gcc=$GCC_CXX
12129
12130# An ERE matcher.
12131EGREP=$lt_EGREP
12132
12133# The linker used to build libraries.
12134LD=$lt_LD_CXX
12135
12136# Whether we need hard or soft links.
12137LN_S=$lt_LN_S
12138
12139# A BSD-compatible nm program.
12140NM=$lt_NM
12141
12142# A symbol stripping program
12143STRIP=$STRIP
12144
12145# Used to examine libraries when file_magic_cmd begins "file"
12146MAGIC_CMD=$MAGIC_CMD
12147
12148# Used on cygwin: DLL creation program.
12149DLLTOOL="$DLLTOOL"
12150
12151# Used on cygwin: object dumper.
12152OBJDUMP="$OBJDUMP"
12153
12154# Used on cygwin: assembler.
12155AS="$AS"
12156
12157# The name of the directory that contains temporary libtool files.
12158objdir=$objdir
12159
12160# How to create reloadable object files.
12161reload_flag=$lt_reload_flag
12162reload_cmds=$lt_reload_cmds
12163
12164# How to pass a linker flag through the compiler.
12165wl=$lt_lt_prog_compiler_wl_CXX
12166
12167# Object file suffix (normally "o").
12168objext="$ac_objext"
12169
12170# Old archive suffix (normally "a").
12171libext="$libext"
12172
12173# Shared library suffix (normally ".so").
12174shrext='$shrext'
12175
12176# Executable file suffix (normally "").
12177exeext="$exeext"
12178
12179# Additional compiler flags for building library objects.
12180pic_flag=$lt_lt_prog_compiler_pic_CXX
12181pic_mode=$pic_mode
12182
12183# What is the maximum length of a command?
12184max_cmd_len=$lt_cv_sys_max_cmd_len
12185
12186# Does compiler simultaneously support -c and -o options?
12187compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12188
12189# Must we lock files when doing compilation ?
12190need_locks=$lt_need_locks
12191
12192# Do we need the lib prefix for modules?
12193need_lib_prefix=$need_lib_prefix
12194
12195# Do we need a version for libraries?
12196need_version=$need_version
12197
12198# Whether dlopen is supported.
12199dlopen_support=$enable_dlopen
12200
12201# Whether dlopen of programs is supported.
12202dlopen_self=$enable_dlopen_self
12203
12204# Whether dlopen of statically linked programs is supported.
12205dlopen_self_static=$enable_dlopen_self_static
12206
12207# Compiler flag to prevent dynamic linking.
12208link_static_flag=$lt_lt_prog_compiler_static_CXX
12209
12210# Compiler flag to turn off builtin functions.
12211no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12212
12213# Compiler flag to allow reflexive dlopens.
12214export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12215
12216# Compiler flag to generate shared objects directly from archives.
12217whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12218
12219# Compiler flag to generate thread-safe objects.
12220thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12221
12222# Library versioning type.
12223version_type=$version_type
12224
12225# Format of library name prefix.
12226libname_spec=$lt_libname_spec
12227
12228# List of archive names. First name is the real one, the rest are links.
12229# The last name is the one that the linker finds with -lNAME.
12230library_names_spec=$lt_library_names_spec
12231
12232# The coded name of the library, if different from the real name.
12233soname_spec=$lt_soname_spec
12234
12235# Commands used to build and install an old-style archive.
12236RANLIB=$lt_RANLIB
12237old_archive_cmds=$lt_old_archive_cmds_CXX
12238old_postinstall_cmds=$lt_old_postinstall_cmds
12239old_postuninstall_cmds=$lt_old_postuninstall_cmds
12240
12241# Create an old-style archive from a shared archive.
12242old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12243
12244# Create a temporary old-style archive to link instead of a shared archive.
12245old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12246
12247# Commands used to build and install a shared archive.
12248archive_cmds=$lt_archive_cmds_CXX
12249archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12250postinstall_cmds=$lt_postinstall_cmds
12251postuninstall_cmds=$lt_postuninstall_cmds
12252
12253# Commands used to build a loadable module (assumed same as above if empty)
12254module_cmds=$lt_module_cmds_CXX
12255module_expsym_cmds=$lt_module_expsym_cmds_CXX
12256
12257# Commands to strip libraries.
12258old_striplib=$lt_old_striplib
12259striplib=$lt_striplib
12260
12261# Dependencies to place before the objects being linked to create a
12262# shared library.
12263predep_objects=$lt_predep_objects_CXX
12264
12265# Dependencies to place after the objects being linked to create a
12266# shared library.
12267postdep_objects=$lt_postdep_objects_CXX
12268
12269# Dependencies to place before the objects being linked to create a
12270# shared library.
12271predeps=$lt_predeps_CXX
12272
12273# Dependencies to place after the objects being linked to create a
12274# shared library.
12275postdeps=$lt_postdeps_CXX
12276
12277# The library search path used internally by the compiler when linking
12278# a shared library.
12279compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12280
12281# Method to check whether dependent libraries are shared objects.
12282deplibs_check_method=$lt_deplibs_check_method
12283
12284# Command to use when deplibs_check_method == file_magic.
12285file_magic_cmd=$lt_file_magic_cmd
12286
12287# Flag that allows shared libraries with undefined symbols to be built.
12288allow_undefined_flag=$lt_allow_undefined_flag_CXX
12289
12290# Flag that forces no undefined symbols.
12291no_undefined_flag=$lt_no_undefined_flag_CXX
12292
12293# Commands used to finish a libtool library installation in a directory.
12294finish_cmds=$lt_finish_cmds
12295
12296# Same as above, but a single script fragment to be evaled but not shown.
12297finish_eval=$lt_finish_eval
12298
12299# Take the output of nm and produce a listing of raw symbols and C names.
12300global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12301
12302# Transform the output of nm in a proper C declaration
12303global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12304
12305# Transform the output of nm in a C name address pair
12306global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12307
12308# This is the shared library runtime path variable.
12309runpath_var=$runpath_var
12310
12311# This is the shared library path variable.
12312shlibpath_var=$shlibpath_var
12313
12314# Is shlibpath searched before the hard-coded library search path?
12315shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12316
12317# How to hardcode a shared library path into an executable.
12318hardcode_action=$hardcode_action_CXX
12319
12320# Whether we should hardcode library paths into libraries.
12321hardcode_into_libs=$hardcode_into_libs
12322
12323# Flag to hardcode \$libdir into a binary during linking.
12324# This must work even if \$libdir does not exist.
12325hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12326
12327# If ld is used when linking, flag to hardcode \$libdir into
12328# a binary during linking. This must work even if \$libdir does
12329# not exist.
12330hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12331
12332# Whether we need a single -rpath flag with a separated argument.
12333hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12334
12335# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12336# resulting binary.
12337hardcode_direct=$hardcode_direct_CXX
12338
12339# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12340# resulting binary.
12341hardcode_minus_L=$hardcode_minus_L_CXX
12342
12343# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12344# the resulting binary.
12345hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12346
12347# Set to yes if building a shared library automatically hardcodes DIR into the library
12348# and all subsequent libraries and executables linked against it.
12349hardcode_automatic=$hardcode_automatic_CXX
12350
12351# Variables whose values should be saved in libtool wrapper scripts and
12352# restored at relink time.
12353variables_saved_for_relink="$variables_saved_for_relink"
12354
12355# Whether libtool must link a program against all its dependency libraries.
12356link_all_deplibs=$link_all_deplibs_CXX
12357
12358# Compile-time system search path for libraries
12359sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12360
12361# Run-time system search path for libraries
12362sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12363
12364# Fix the shell variable \$srcfile for the compiler.
12365fix_srcfile_path="$fix_srcfile_path_CXX"
12366
12367# Set to yes if exported symbols are required.
12368always_export_symbols=$always_export_symbols_CXX
12369
12370# The commands to list exported symbols.
12371export_symbols_cmds=$lt_export_symbols_cmds_CXX
12372
12373# The commands to extract the exported symbol list from a shared archive.
12374extract_expsyms_cmds=$lt_extract_expsyms_cmds
12375
12376# Symbols that should not be listed in the preloaded symbols.
12377exclude_expsyms=$lt_exclude_expsyms_CXX
12378
12379# Symbols that must always be exported.
12380include_expsyms=$lt_include_expsyms_CXX
12381
12382# ### END LIBTOOL TAG CONFIG: $tagname
12383
12384__EOF__
12385
12386
12387else
12388 # If there is no Makefile yet, we rely on a make rule to execute
12389 # `config.status --recheck' to rerun these tests and create the
12390 # libtool script then.
12391 test -f Makefile && make "$ltmain"
12392fi
12393
12394
12395ac_ext=c
12396ac_cpp='$CPP $CPPFLAGS'
12397ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12398ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12399ac_compiler_gnu=$ac_cv_c_compiler_gnu
12400
12401CC=$lt_save_CC
12402LDCXX=$LD
12403LD=$lt_save_LD
12404GCC=$lt_save_GCC
12405with_gnu_ldcxx=$with_gnu_ld
12406with_gnu_ld=$lt_save_with_gnu_ld
12407lt_cv_path_LDCXX=$lt_cv_path_LD
12408lt_cv_path_LD=$lt_save_path_LD
12409lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12410lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12411
12412 else
12413 tagname=""
12414 fi
12415 ;;
12416
12417 F77)
12418 if test -n "$F77" && test "X$F77" != "Xno"; then
12419
12420ac_ext=f
12421ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12422ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12423ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12424
12425
12426archive_cmds_need_lc_F77=no
12427allow_undefined_flag_F77=
12428always_export_symbols_F77=no
12429archive_expsym_cmds_F77=
12430export_dynamic_flag_spec_F77=
12431hardcode_direct_F77=no
12432hardcode_libdir_flag_spec_F77=
12433hardcode_libdir_flag_spec_ld_F77=
12434hardcode_libdir_separator_F77=
12435hardcode_minus_L_F77=no
12436hardcode_automatic_F77=no
12437module_cmds_F77=
12438module_expsym_cmds_F77=
12439link_all_deplibs_F77=unknown
12440old_archive_cmds_F77=$old_archive_cmds
12441no_undefined_flag_F77=
12442whole_archive_flag_spec_F77=
12443enable_shared_with_static_runtimes_F77=no
12444
12445# Source file extension for f77 test sources.
12446ac_ext=f
12447
12448# Object file extension for compiled f77 test sources.
12449objext=o
12450objext_F77=$objext
12451
12452# Code to be used in simple compile tests
12453lt_simple_compile_test_code=" subroutine t\n return\n end\n"
12454
12455# Code to be used in simple link tests
12456lt_simple_link_test_code=" program t\n end\n"
12457
12458# ltmain only uses $CC for tagged configurations so make sure $CC is set.
12459
12460# If no C compiler was specified, use CC.
12461LTCC=${LTCC-"$CC"}
12462
12463# Allow CC to be a program name with arguments.
12464compiler=$CC
12465
12466
12467# Allow CC to be a program name with arguments.
12468lt_save_CC="$CC"
12469CC=${F77-"f77"}
12470compiler=$CC
12471compiler_F77=$CC
12472cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12473
12474echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12475echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12476echo "$as_me:$LINENO: result: $can_build_shared" >&5
12477echo "${ECHO_T}$can_build_shared" >&6
12478
12479echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12480echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12481test "$can_build_shared" = "no" && enable_shared=no
12482
12483# On AIX, shared libraries and static libraries use the same namespace, and
12484# are all built from PIC.
12485case "$host_os" in
12486aix3*)
12487 test "$enable_shared" = yes && enable_static=no
12488 if test -n "$RANLIB"; then
12489 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12490 postinstall_cmds='$RANLIB $lib'
12491 fi
12492 ;;
12493aix4*)
12494 test "$enable_shared" = yes && enable_static=no
12495 ;;
12496esac
12497echo "$as_me:$LINENO: result: $enable_shared" >&5
12498echo "${ECHO_T}$enable_shared" >&6
12499
12500echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12501echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12502# Make sure either enable_shared or enable_static is yes.
12503test "$enable_shared" = yes || enable_static=yes
12504echo "$as_me:$LINENO: result: $enable_static" >&5
12505echo "${ECHO_T}$enable_static" >&6
12506
12507test "$ld_shlibs_F77" = no && can_build_shared=no
12508
12509GCC_F77="$G77"
12510LD_F77="$LD"
12511
12512lt_prog_compiler_wl_F77=
12513lt_prog_compiler_pic_F77=
12514lt_prog_compiler_static_F77=
12515
12516echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12517echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12518
12519 if test "$GCC" = yes; then
12520 lt_prog_compiler_wl_F77='-Wl,'
12521 lt_prog_compiler_static_F77='-static'
12522
12523 case $host_os in
12524 aix*)
12525 # All AIX code is PIC.
12526 if test "$host_cpu" = ia64; then
12527 # AIX 5 now supports IA64 processor
12528 lt_prog_compiler_static_F77='-Bstatic'
12529 fi
12530 ;;
12531
12532 amigaos*)
12533 # FIXME: we need at least 68020 code to build shared libraries, but
12534 # adding the `-m68020' flag to GCC prevents building anything better,
12535 # like `-m68040'.
12536 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12537 ;;
12538
12539 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12540 # PIC is the default for these OSes.
12541 ;;
12542
12543 mingw* | pw32* | os2*)
12544 # This hack is so that the source file can tell whether it is being
12545 # built for inclusion in a dll (and should export symbols for example).
12546 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12547 ;;
12548
12549 darwin* | rhapsody*)
12550 # PIC is the default on this platform
12551 # Common symbols not allowed in MH_DYLIB files
12552 lt_prog_compiler_pic_F77='-fno-common'
12553 ;;
12554
12555 msdosdjgpp*)
12556 # Just because we use GCC doesn't mean we suddenly get shared libraries
12557 # on systems that don't support them.
12558 lt_prog_compiler_can_build_shared_F77=no
12559 enable_shared=no
12560 ;;
12561
12562 sysv4*MP*)
12563 if test -d /usr/nec; then
12564 lt_prog_compiler_pic_F77=-Kconform_pic
12565 fi
12566 ;;
12567
12568 hpux*)
12569 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12570 # not for PA HP-UX.
12571 case "$host_cpu" in
12572 hppa*64*|ia64*)
12573 # +Z the default
12574 ;;
12575 *)
12576 lt_prog_compiler_pic_F77='-fPIC'
12577 ;;
12578 esac
12579 ;;
12580
12581 *)
12582 lt_prog_compiler_pic_F77='-fPIC'
12583 ;;
12584 esac
12585 else
12586 # PORTME Check for flag to pass linker flags through the system compiler.
12587 case $host_os in
12588 aix*)
12589 lt_prog_compiler_wl_F77='-Wl,'
12590 if test "$host_cpu" = ia64; then
12591 # AIX 5 now supports IA64 processor
12592 lt_prog_compiler_static_F77='-Bstatic'
12593 else
12594 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12595 fi
12596 ;;
12597
12598 mingw* | pw32* | os2*)
12599 # This hack is so that the source file can tell whether it is being
12600 # built for inclusion in a dll (and should export symbols for example).
12601 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12602 ;;
12603
12604 hpux9* | hpux10* | hpux11*)
12605 lt_prog_compiler_wl_F77='-Wl,'
12606 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12607 # not for PA HP-UX.
12608 case "$host_cpu" in
12609 hppa*64*|ia64*)
12610 # +Z the default
12611 ;;
12612 *)
12613 lt_prog_compiler_pic_F77='+Z'
12614 ;;
12615 esac
12616 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12617 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
12618 ;;
12619
12620 irix5* | irix6* | nonstopux*)
12621 lt_prog_compiler_wl_F77='-Wl,'
12622 # PIC (with -KPIC) is the default.
12623 lt_prog_compiler_static_F77='-non_shared'
12624 ;;
12625
12626 newsos6)
12627 lt_prog_compiler_pic_F77='-KPIC'
12628 lt_prog_compiler_static_F77='-Bstatic'
12629 ;;
12630
12631 linux*)
12632 case $CC in
12633 icc|ecc)
12634 lt_prog_compiler_wl_F77='-Wl,'
12635 lt_prog_compiler_pic_F77='-KPIC'
12636 lt_prog_compiler_static_F77='-static'
12637 ;;
12638 ccc)
12639 lt_prog_compiler_wl_F77='-Wl,'
12640 # All Alpha code is PIC.
12641 lt_prog_compiler_static_F77='-non_shared'
12642 ;;
12643 esac
12644 ;;
12645
12646 osf3* | osf4* | osf5*)
12647 lt_prog_compiler_wl_F77='-Wl,'
12648 # All OSF/1 code is PIC.
12649 lt_prog_compiler_static_F77='-non_shared'
12650 ;;
12651
12652 sco3.2v5*)
12653 lt_prog_compiler_pic_F77='-Kpic'
12654 lt_prog_compiler_static_F77='-dn'
12655 ;;
12656
12657 solaris*)
12658 lt_prog_compiler_wl_F77='-Wl,'
12659 lt_prog_compiler_pic_F77='-KPIC'
12660 lt_prog_compiler_static_F77='-Bstatic'
12661 ;;
12662
12663 sunos4*)
12664 lt_prog_compiler_wl_F77='-Qoption ld '
12665 lt_prog_compiler_pic_F77='-PIC'
12666 lt_prog_compiler_static_F77='-Bstatic'
12667 ;;
12668
12669 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12670 lt_prog_compiler_wl_F77='-Wl,'
12671 lt_prog_compiler_pic_F77='-KPIC'
12672 lt_prog_compiler_static_F77='-Bstatic'
12673 ;;
12674
12675 sysv4*MP*)
12676 if test -d /usr/nec ;then
12677 lt_prog_compiler_pic_F77='-Kconform_pic'
12678 lt_prog_compiler_static_F77='-Bstatic'
12679 fi
12680 ;;
12681
12682 uts4*)
12683 lt_prog_compiler_pic_F77='-pic'
12684 lt_prog_compiler_static_F77='-Bstatic'
12685 ;;
12686
12687 *)
12688 lt_prog_compiler_can_build_shared_F77=no
12689 ;;
12690 esac
12691 fi
12692
12693echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
12694echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
12695
12696#
12697# Check to make sure the PIC flag actually works.
12698#
12699if test -n "$lt_prog_compiler_pic_F77"; then
12700 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
12701echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
12702if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
12703 echo $ECHO_N "(cached) $ECHO_C" >&6
12704else
12705 lt_prog_compiler_pic_works_F77=no
12706 ac_outfile=conftest.$ac_objext
12707 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12708 lt_compiler_flag="$lt_prog_compiler_pic_F77"
12709 # Insert the option either (1) after the last *FLAGS variable, or
12710 # (2) before a word containing "conftest.", or (3) at the end.
12711 # Note that $ac_compile itself does not contain backslashes and begins
12712 # with a dollar sign (not a hyphen), so the echo should work correctly.
12713 # The option is referenced via a variable to avoid confusing sed.
12714 lt_compile=`echo "$ac_compile" | $SED \
12715 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12716 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12717 -e 's:$: $lt_compiler_flag:'`
John Criswell60577602003-11-25 17:49:22 +000012718 (eval echo "\"\$as_me:12718: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000012719 (eval "$lt_compile" 2>conftest.err)
12720 ac_status=$?
12721 cat conftest.err >&5
John Criswell60577602003-11-25 17:49:22 +000012722 echo "$as_me:12722: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000012723 if (exit $ac_status) && test -s "$ac_outfile"; then
12724 # The compiler can only warn and ignore the option if not recognized
12725 # So say no if there are warnings
12726 if test ! -s conftest.err; then
12727 lt_prog_compiler_pic_works_F77=yes
12728 fi
12729 fi
12730 $rm conftest*
12731
12732fi
12733echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
12734echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
12735
12736if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
12737 case $lt_prog_compiler_pic_F77 in
12738 "" | " "*) ;;
12739 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
12740 esac
12741else
12742 lt_prog_compiler_pic_F77=
12743 lt_prog_compiler_can_build_shared_F77=no
12744fi
12745
12746fi
12747case "$host_os" in
12748 # For platforms which do not support PIC, -DPIC is meaningless:
12749 *djgpp*)
12750 lt_prog_compiler_pic_F77=
12751 ;;
12752 *)
12753 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
12754 ;;
12755esac
12756
12757echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12758echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12759if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
12760 echo $ECHO_N "(cached) $ECHO_C" >&6
12761else
12762 lt_cv_prog_compiler_c_o_F77=no
12763 $rm -r conftest 2>/dev/null
12764 mkdir conftest
12765 cd conftest
12766 mkdir out
12767 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12768
12769 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
12770 # that will create temporary files in the current directory regardless of
12771 # the output directory. Thus, making CWD read-only will cause this test
12772 # to fail, enabling locking or at least warning the user not to do parallel
12773 # builds.
12774 chmod -w .
12775
12776 lt_compiler_flag="-o out/conftest2.$ac_objext"
12777 # Insert the option either (1) after the last *FLAGS variable, or
12778 # (2) before a word containing "conftest.", or (3) at the end.
12779 # Note that $ac_compile itself does not contain backslashes and begins
12780 # with a dollar sign (not a hyphen), so the echo should work correctly.
12781 lt_compile=`echo "$ac_compile" | $SED \
12782 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12783 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12784 -e 's:$: $lt_compiler_flag:'`
John Criswell60577602003-11-25 17:49:22 +000012785 (eval echo "\"\$as_me:12785: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000012786 (eval "$lt_compile" 2>out/conftest.err)
12787 ac_status=$?
12788 cat out/conftest.err >&5
John Criswell60577602003-11-25 17:49:22 +000012789 echo "$as_me:12789: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000012790 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12791 then
12792 # The compiler can only warn and ignore the option if not recognized
12793 # So say no if there are warnings
12794 if test ! -s out/conftest.err; then
12795 lt_cv_prog_compiler_c_o_F77=yes
12796 fi
12797 fi
12798 chmod u+w .
12799 $rm conftest* out/*
12800 rmdir out
12801 cd ..
12802 rmdir conftest
12803 $rm conftest*
12804
12805fi
12806echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
12807echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
12808
12809
12810hard_links="nottested"
12811if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
12812 # do not overwrite the value of need_locks provided by the user
12813 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12814echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12815 hard_links=yes
12816 $rm conftest*
12817 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12818 touch conftest.a
12819 ln conftest.a conftest.b 2>&5 || hard_links=no
12820 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12821 echo "$as_me:$LINENO: result: $hard_links" >&5
12822echo "${ECHO_T}$hard_links" >&6
12823 if test "$hard_links" = no; then
12824 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12825echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12826 need_locks=warn
12827 fi
12828else
12829 need_locks=no
12830fi
12831
12832echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12833echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12834
12835 runpath_var=
12836 allow_undefined_flag_F77=
12837 enable_shared_with_static_runtimes_F77=no
12838 archive_cmds_F77=
12839 archive_expsym_cmds_F77=
12840 old_archive_From_new_cmds_F77=
12841 old_archive_from_expsyms_cmds_F77=
12842 export_dynamic_flag_spec_F77=
12843 whole_archive_flag_spec_F77=
12844 thread_safe_flag_spec_F77=
12845 hardcode_libdir_flag_spec_F77=
12846 hardcode_libdir_flag_spec_ld_F77=
12847 hardcode_libdir_separator_F77=
12848 hardcode_direct_F77=no
12849 hardcode_minus_L_F77=no
12850 hardcode_shlibpath_var_F77=unsupported
12851 link_all_deplibs_F77=unknown
12852 hardcode_automatic_F77=no
12853 module_cmds_F77=
12854 module_expsym_cmds_F77=
12855 always_export_symbols_F77=no
12856 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12857 # include_expsyms should be a list of space-separated symbols to be *always*
12858 # included in the symbol list
12859 include_expsyms_F77=
12860 # exclude_expsyms can be an extended regexp of symbols to exclude
12861 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12862 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12863 # as well as any symbol that contains `d'.
12864 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
12865 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12866 # platforms (ab)use it in PIC code, but their linkers get confused if
12867 # the symbol is explicitly referenced. Since portable code cannot
12868 # rely on this symbol name, it's probably fine to never include it in
12869 # preloaded symbol tables.
12870 extract_expsyms_cmds=
12871
12872 case $host_os in
12873 cygwin* | mingw* | pw32*)
12874 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12875 # When not using gcc, we currently assume that we are using
12876 # Microsoft Visual C++.
12877 if test "$GCC" != yes; then
12878 with_gnu_ld=no
12879 fi
12880 ;;
12881 openbsd*)
12882 with_gnu_ld=no
12883 ;;
12884 esac
12885
12886 ld_shlibs_F77=yes
12887 if test "$with_gnu_ld" = yes; then
12888 # If archive_cmds runs LD, not CC, wlarc should be empty
12889 wlarc='${wl}'
12890
12891 # See if GNU ld supports shared libraries.
12892 case $host_os in
12893 aix3* | aix4* | aix5*)
12894 # On AIX/PPC, the GNU linker is very broken
12895 if test "$host_cpu" != ia64; then
12896 ld_shlibs_F77=no
12897 cat <<EOF 1>&2
12898
12899*** Warning: the GNU linker, at least up to release 2.9.1, is reported
12900*** to be unable to reliably create shared libraries on AIX.
12901*** Therefore, libtool is disabling shared libraries support. If you
12902*** really care for shared libraries, you may want to modify your PATH
12903*** so that a non-GNU linker is found, and then restart.
12904
12905EOF
12906 fi
12907 ;;
12908
12909 amigaos*)
12910 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)'
12911 hardcode_libdir_flag_spec_F77='-L$libdir'
12912 hardcode_minus_L_F77=yes
12913
12914 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12915 # that the semantics of dynamic libraries on AmigaOS, at least up
12916 # to version 4, is to share data among multiple programs linked
12917 # with the same dynamic library. Since this doesn't match the
12918 # behavior of shared libraries on other platforms, we can't use
12919 # them.
12920 ld_shlibs_F77=no
12921 ;;
12922
12923 beos*)
12924 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12925 allow_undefined_flag_F77=unsupported
12926 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12927 # support --undefined. This deserves some investigation. FIXME
12928 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12929 else
12930 ld_shlibs_F77=no
12931 fi
12932 ;;
12933
12934 cygwin* | mingw* | pw32*)
12935 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
12936 # as there is no search path for DLLs.
12937 hardcode_libdir_flag_spec_F77='-L$libdir'
12938 allow_undefined_flag_F77=unsupported
12939 always_export_symbols_F77=no
12940 enable_shared_with_static_runtimes_F77=yes
12941 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12942
12943 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12944 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12945 # If the export-symbols file already is a .def file (1st line
12946 # is EXPORTS), use it as is; otherwise, prepend...
12947 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12948 cp $export_symbols $output_objdir/$soname.def;
12949 else
12950 echo EXPORTS > $output_objdir/$soname.def;
12951 cat $export_symbols >> $output_objdir/$soname.def;
12952 fi~
12953 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12954 else
12955 ld_shlibs=no
12956 fi
12957 ;;
12958
12959 netbsd*)
12960 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12961 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12962 wlarc=
12963 else
12964 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12965 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12966 fi
12967 ;;
12968
12969 solaris* | sysv5*)
12970 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12971 ld_shlibs_F77=no
12972 cat <<EOF 1>&2
12973
12974*** Warning: The releases 2.8.* of the GNU linker cannot reliably
12975*** create shared libraries on Solaris systems. Therefore, libtool
12976*** is disabling shared libraries support. We urge you to upgrade GNU
12977*** binutils to release 2.9.1 or newer. Another option is to modify
12978*** your PATH or compiler configuration so that the native linker is
12979*** used, and then restart.
12980
12981EOF
12982 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12983 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12984 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12985 else
12986 ld_shlibs_F77=no
12987 fi
12988 ;;
12989
12990 sunos4*)
12991 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12992 wlarc=
12993 hardcode_direct_F77=yes
12994 hardcode_shlibpath_var_F77=no
12995 ;;
12996
12997 *)
12998 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12999 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13000 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13001 else
13002 ld_shlibs_F77=no
13003 fi
13004 ;;
13005 esac
13006
13007 if test "$ld_shlibs_F77" = yes; then
13008 runpath_var=LD_RUN_PATH
13009 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13010 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13011 # ancient GNU ld didn't support --whole-archive et. al.
13012 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13013 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13014 else
13015 whole_archive_flag_spec_F77=
13016 fi
13017 fi
13018 else
13019 # PORTME fill in a description of your system's linker (not GNU ld)
13020 case $host_os in
13021 aix3*)
13022 allow_undefined_flag_F77=unsupported
13023 always_export_symbols_F77=yes
13024 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'
13025 # Note: this linker hardcodes the directories in LIBPATH if there
13026 # are no directories specified by -L.
13027 hardcode_minus_L_F77=yes
13028 if test "$GCC" = yes && test -z "$link_static_flag"; then
13029 # Neither direct hardcoding nor static linking is supported with a
13030 # broken collect2.
13031 hardcode_direct_F77=unsupported
13032 fi
13033 ;;
13034
13035 aix4* | aix5*)
13036 if test "$host_cpu" = ia64; then
13037 # On IA64, the linker does run time linking by default, so we don't
13038 # have to do anything special.
13039 aix_use_runtimelinking=no
13040 exp_sym_flag='-Bexport'
13041 no_entry_flag=""
13042 else
13043 # If we're using GNU nm, then we don't want the "-C" option.
13044 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13045 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13046 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'
13047 else
13048 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'
13049 fi
13050 aix_use_runtimelinking=no
13051
13052 # Test if we are trying to use run time linking or normal
13053 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13054 # need to do runtime linking.
13055 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13056 for ld_flag in $LDFLAGS; do
13057 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13058 aix_use_runtimelinking=yes
13059 break
13060 fi
13061 done
13062 esac
13063
13064 exp_sym_flag='-bexport'
13065 no_entry_flag='-bnoentry'
13066 fi
13067
13068 # When large executables or shared objects are built, AIX ld can
13069 # have problems creating the table of contents. If linking a library
13070 # or program results in "error TOC overflow" add -mminimal-toc to
13071 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13072 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13073
13074 archive_cmds_F77=''
13075 hardcode_direct_F77=yes
13076 hardcode_libdir_separator_F77=':'
13077 link_all_deplibs_F77=yes
13078
13079 if test "$GCC" = yes; then
13080 case $host_os in aix4.012|aix4.012.*)
13081 # We only want to do this on AIX 4.2 and lower, the check
13082 # below for broken collect2 doesn't work under 4.3+
13083 collect2name=`${CC} -print-prog-name=collect2`
13084 if test -f "$collect2name" && \
13085 strings "$collect2name" | grep resolve_lib_name >/dev/null
13086 then
13087 # We have reworked collect2
13088 hardcode_direct_F77=yes
13089 else
13090 # We have old collect2
13091 hardcode_direct_F77=unsupported
13092 # It fails to find uninstalled libraries when the uninstalled
13093 # path is not listed in the libpath. Setting hardcode_minus_L
13094 # to unsupported forces relinking
13095 hardcode_minus_L_F77=yes
13096 hardcode_libdir_flag_spec_F77='-L$libdir'
13097 hardcode_libdir_separator_F77=
13098 fi
13099 esac
13100 shared_flag='-shared'
13101 else
13102 # not using gcc
13103 if test "$host_cpu" = ia64; then
13104 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13105 # chokes on -Wl,-G. The following line is correct:
13106 shared_flag='-G'
13107 else
13108 if test "$aix_use_runtimelinking" = yes; then
13109 shared_flag='${wl}-G'
13110 else
13111 shared_flag='${wl}-bM:SRE'
13112 fi
13113 fi
13114 fi
13115
13116 # It seems that -bexpall does not export symbols beginning with
13117 # underscore (_), so it is better to generate a list of symbols to export.
13118 always_export_symbols_F77=yes
13119 if test "$aix_use_runtimelinking" = yes; then
13120 # Warning - without using the other runtime loading flags (-brtl),
13121 # -berok will link without error, but may produce a broken library.
13122 allow_undefined_flag_F77='-berok'
13123 # Determine the default libpath from the value encoded in an empty executable.
13124 cat >conftest.$ac_ext <<_ACEOF
13125 program main
13126
13127 end
13128_ACEOF
13129rm -f conftest.$ac_objext conftest$ac_exeext
13130if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13131 (eval $ac_link) 2>&5
13132 ac_status=$?
13133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13134 (exit $ac_status); } &&
13135 { ac_try='test -s conftest$ac_exeext'
13136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13137 (eval $ac_try) 2>&5
13138 ac_status=$?
13139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13140 (exit $ac_status); }; }; then
13141
13142aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13143}'`
13144# Check for a 64-bit object if we didn't find anything.
13145if 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; }
13146}'`; fi
13147else
13148 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013149sed 's/^/| /' conftest.$ac_ext >&5
13150
John Criswell47fdd832003-07-14 16:52:07 +000013151fi
13152rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13153if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13154
13155 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13156 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"
13157 else
13158 if test "$host_cpu" = ia64; then
13159 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13160 allow_undefined_flag_F77="-z nodefs"
13161 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"
13162 else
13163 # Determine the default libpath from the value encoded in an empty executable.
13164 cat >conftest.$ac_ext <<_ACEOF
13165 program main
13166
13167 end
13168_ACEOF
13169rm -f conftest.$ac_objext conftest$ac_exeext
13170if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13171 (eval $ac_link) 2>&5
13172 ac_status=$?
13173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13174 (exit $ac_status); } &&
13175 { ac_try='test -s conftest$ac_exeext'
13176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13177 (eval $ac_try) 2>&5
13178 ac_status=$?
13179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13180 (exit $ac_status); }; }; then
13181
13182aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13183}'`
13184# Check for a 64-bit object if we didn't find anything.
13185if 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; }
13186}'`; fi
13187else
13188 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013189sed 's/^/| /' conftest.$ac_ext >&5
13190
John Criswell47fdd832003-07-14 16:52:07 +000013191fi
13192rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13193if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13194
13195 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13196 # Warning - without using the other run time loading flags,
13197 # -berok will link without error, but may produce a broken library.
13198 no_undefined_flag_F77=' ${wl}-bernotok'
13199 allow_undefined_flag_F77=' ${wl}-berok'
13200 # -bexpall does not export symbols beginning with underscore (_)
13201 always_export_symbols_F77=yes
13202 # Exported symbols can be pulled into shared objects from archives
13203 whole_archive_flag_spec_F77=' '
13204 archive_cmds_need_lc_F77=yes
13205 # This is similar to how AIX traditionally builds it's shared libraries.
13206 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'
13207 fi
13208 fi
13209 ;;
13210
13211 amigaos*)
13212 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)'
13213 hardcode_libdir_flag_spec_F77='-L$libdir'
13214 hardcode_minus_L_F77=yes
13215 # see comment about different semantics on the GNU ld section
13216 ld_shlibs_F77=no
13217 ;;
13218
13219 bsdi4*)
13220 export_dynamic_flag_spec_F77=-rdynamic
13221 ;;
13222
13223 cygwin* | mingw* | pw32*)
13224 # When not using gcc, we currently assume that we are using
13225 # Microsoft Visual C++.
13226 # hardcode_libdir_flag_spec is actually meaningless, as there is
13227 # no search path for DLLs.
13228 hardcode_libdir_flag_spec_F77=' '
13229 allow_undefined_flag_F77=unsupported
13230 # Tell ltmain to make .lib files, not .a files.
13231 libext=lib
13232 # Tell ltmain to make .dll files, not .so files.
13233 shrext=".dll"
13234 # FIXME: Setting linknames here is a bad hack.
13235 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13236 # The linker will automatically build a .lib file if we build a DLL.
13237 old_archive_From_new_cmds_F77='true'
13238 # FIXME: Should let the user specify the lib program.
13239 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13240 fix_srcfile_path='`cygpath -w "$srcfile"`'
13241 enable_shared_with_static_runtimes_F77=yes
13242 ;;
13243
13244 darwin* | rhapsody*)
13245 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13246 archive_cmds_need_lc_F77=no
13247 case "$host_os" in
13248 rhapsody* | darwin1.[012])
13249 allow_undefined_flag_F77='-undefined suppress'
13250 ;;
13251 *) # Darwin 1.3 on
13252 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13253 ;;
13254 esac
13255 # FIXME: Relying on posixy $() will cause problems for
13256 # cross-compilation, but unfortunately the echo tests do not
13257 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
13258 # `"' quotes if we put them in here... so don't!
13259 lt_int_apple_cc_single_mod=no
13260 output_verbose_link_cmd='echo'
13261 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13262 lt_int_apple_cc_single_mod=yes
13263 fi
13264 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13265 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13266 else
13267 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'
13268 fi
13269 module_cmds_F77='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
13270 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13271 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13272 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}'
13273 else
13274 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}'
13275 fi
13276 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}'
13277 hardcode_direct_F77=no
13278 hardcode_automatic_F77=yes
13279 hardcode_shlibpath_var_F77=unsupported
13280 whole_archive_flag_spec_F77='-all_load $convenience'
13281 link_all_deplibs_F77=yes
13282 fi
13283 ;;
13284
13285 dgux*)
13286 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13287 hardcode_libdir_flag_spec_F77='-L$libdir'
13288 hardcode_shlibpath_var_F77=no
13289 ;;
13290
13291 freebsd1*)
13292 ld_shlibs_F77=no
13293 ;;
13294
13295 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13296 # support. Future versions do this automatically, but an explicit c++rt0.o
13297 # does not break anything, and helps significantly (at the cost of a little
13298 # extra space).
13299 freebsd2.2*)
13300 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13301 hardcode_libdir_flag_spec_F77='-R$libdir'
13302 hardcode_direct_F77=yes
13303 hardcode_shlibpath_var_F77=no
13304 ;;
13305
13306 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13307 freebsd2*)
13308 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13309 hardcode_direct_F77=yes
13310 hardcode_minus_L_F77=yes
13311 hardcode_shlibpath_var_F77=no
13312 ;;
13313
13314 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13315 freebsd*)
13316 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13317 hardcode_libdir_flag_spec_F77='-R$libdir'
13318 hardcode_direct_F77=yes
13319 hardcode_shlibpath_var_F77=no
13320 ;;
13321
13322 hpux9*)
13323 if test "$GCC" = yes; then
13324 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'
13325 else
13326 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'
13327 fi
13328 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13329 hardcode_libdir_separator_F77=:
13330 hardcode_direct_F77=yes
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 export_dynamic_flag_spec_F77='${wl}-E'
13336 ;;
13337
13338 hpux10* | hpux11*)
13339 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13340 case "$host_cpu" in
13341 hppa*64*|ia64*)
13342 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13343 ;;
13344 *)
13345 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13346 ;;
13347 esac
13348 else
13349 case "$host_cpu" in
13350 hppa*64*|ia64*)
13351 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13352 ;;
13353 *)
13354 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13355 ;;
13356 esac
13357 fi
13358 if test "$with_gnu_ld" = no; then
13359 case "$host_cpu" in
13360 hppa*64*)
13361 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13362 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13363 hardcode_libdir_separator_F77=:
13364 hardcode_direct_F77=no
13365 hardcode_shlibpath_var_F77=no
13366 ;;
13367 ia64*)
13368 hardcode_libdir_flag_spec_F77='-L$libdir'
13369 hardcode_direct_F77=no
13370 hardcode_shlibpath_var_F77=no
13371
13372 # hardcode_minus_L: Not really in the search PATH,
13373 # but as the default location of the library.
13374 hardcode_minus_L_F77=yes
13375 ;;
13376 *)
13377 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13378 hardcode_libdir_separator_F77=:
13379 hardcode_direct_F77=yes
13380 export_dynamic_flag_spec_F77='${wl}-E'
13381
13382 # hardcode_minus_L: Not really in the search PATH,
13383 # but as the default location of the library.
13384 hardcode_minus_L_F77=yes
13385 ;;
13386 esac
13387 fi
13388 ;;
13389
13390 irix5* | irix6* | nonstopux*)
13391 if test "$GCC" = yes; then
13392 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'
13393 else
13394 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'
13395 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13396 fi
13397 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13398 hardcode_libdir_separator_F77=:
13399 link_all_deplibs_F77=yes
13400 ;;
13401
13402 netbsd*)
13403 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13404 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13405 else
13406 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13407 fi
13408 hardcode_libdir_flag_spec_F77='-R$libdir'
13409 hardcode_direct_F77=yes
13410 hardcode_shlibpath_var_F77=no
13411 ;;
13412
13413 newsos6)
13414 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13415 hardcode_direct_F77=yes
13416 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13417 hardcode_libdir_separator_F77=:
13418 hardcode_shlibpath_var_F77=no
13419 ;;
13420
13421 openbsd*)
13422 hardcode_direct_F77=yes
13423 hardcode_shlibpath_var_F77=no
13424 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13425 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13426 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13427 export_dynamic_flag_spec_F77='${wl}-E'
13428 else
13429 case $host_os in
13430 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13431 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13432 hardcode_libdir_flag_spec_F77='-R$libdir'
13433 ;;
13434 *)
13435 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13436 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13437 ;;
13438 esac
13439 fi
13440 ;;
13441
13442 os2*)
13443 hardcode_libdir_flag_spec_F77='-L$libdir'
13444 hardcode_minus_L_F77=yes
13445 allow_undefined_flag_F77=unsupported
13446 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'
13447 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13448 ;;
13449
13450 osf3*)
13451 if test "$GCC" = yes; then
13452 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13453 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'
13454 else
13455 allow_undefined_flag_F77=' -expect_unresolved \*'
13456 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'
13457 fi
13458 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13459 hardcode_libdir_separator_F77=:
13460 ;;
13461
13462 osf4* | osf5*) # as osf3* with the addition of -msym flag
13463 if test "$GCC" = yes; then
13464 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13465 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'
13466 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13467 else
13468 allow_undefined_flag_F77=' -expect_unresolved \*'
13469 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'
13470 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~
13471 $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'
13472
13473 # Both c and cxx compiler support -rpath directly
13474 hardcode_libdir_flag_spec_F77='-rpath $libdir'
13475 fi
13476 hardcode_libdir_separator_F77=:
13477 ;;
13478
13479 sco3.2v5*)
13480 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13481 hardcode_shlibpath_var_F77=no
13482 export_dynamic_flag_spec_F77='${wl}-Bexport'
13483 runpath_var=LD_RUN_PATH
13484 hardcode_runpath_var=yes
13485 ;;
13486
13487 solaris*)
13488 no_undefined_flag_F77=' -z text'
13489 if test "$GCC" = yes; then
13490 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13491 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13492 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13493 else
13494 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13495 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13496 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13497 fi
13498 hardcode_libdir_flag_spec_F77='-R$libdir'
13499 hardcode_shlibpath_var_F77=no
13500 case $host_os in
13501 solaris2.[0-5] | solaris2.[0-5].*) ;;
13502 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13503 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13504 esac
13505 link_all_deplibs_F77=yes
13506 ;;
13507
13508 sunos4*)
13509 if test "x$host_vendor" = xsequent; then
13510 # Use $CC to link under sequent, because it throws in some extra .o
13511 # files that make .init and .fini sections work.
13512 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13513 else
13514 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13515 fi
13516 hardcode_libdir_flag_spec_F77='-L$libdir'
13517 hardcode_direct_F77=yes
13518 hardcode_minus_L_F77=yes
13519 hardcode_shlibpath_var_F77=no
13520 ;;
13521
13522 sysv4)
13523 case $host_vendor in
13524 sni)
13525 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13526 hardcode_direct_F77=yes # is this really true???
13527 ;;
13528 siemens)
13529 ## LD is ld it makes a PLAMLIB
13530 ## CC just makes a GrossModule.
13531 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13532 reload_cmds_F77='$CC -r -o $output$reload_objs'
13533 hardcode_direct_F77=no
13534 ;;
13535 motorola)
13536 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13537 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13538 ;;
13539 esac
13540 runpath_var='LD_RUN_PATH'
13541 hardcode_shlibpath_var_F77=no
13542 ;;
13543
13544 sysv4.3*)
13545 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13546 hardcode_shlibpath_var_F77=no
13547 export_dynamic_flag_spec_F77='-Bexport'
13548 ;;
13549
13550 sysv4*MP*)
13551 if test -d /usr/nec; then
13552 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13553 hardcode_shlibpath_var_F77=no
13554 runpath_var=LD_RUN_PATH
13555 hardcode_runpath_var=yes
13556 ld_shlibs_F77=yes
13557 fi
13558 ;;
13559
13560 sysv4.2uw2*)
13561 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13562 hardcode_direct_F77=yes
13563 hardcode_minus_L_F77=no
13564 hardcode_shlibpath_var_F77=no
13565 hardcode_runpath_var=yes
13566 runpath_var=LD_RUN_PATH
13567 ;;
13568
13569 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
13570 no_undefined_flag_F77='${wl}-z ${wl}text'
13571 if test "$GCC" = yes; then
13572 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13573 else
13574 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13575 fi
13576 runpath_var='LD_RUN_PATH'
13577 hardcode_shlibpath_var_F77=no
13578 ;;
13579
13580 sysv5*)
13581 no_undefined_flag_F77=' -z text'
13582 # $CC -shared without GNU ld will not create a library from C++
13583 # object files and a static libstdc++, better avoid it by now
13584 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13585 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13586 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13587 hardcode_libdir_flag_spec_F77=
13588 hardcode_shlibpath_var_F77=no
13589 runpath_var='LD_RUN_PATH'
13590 ;;
13591
13592 uts4*)
13593 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13594 hardcode_libdir_flag_spec_F77='-L$libdir'
13595 hardcode_shlibpath_var_F77=no
13596 ;;
13597
13598 *)
13599 ld_shlibs_F77=no
13600 ;;
13601 esac
13602 fi
13603
13604echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
13605echo "${ECHO_T}$ld_shlibs_F77" >&6
13606test "$ld_shlibs_F77" = no && can_build_shared=no
13607
13608variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13609if test "$GCC" = yes; then
13610 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13611fi
13612
13613#
13614# Do we need to explicitly link libc?
13615#
13616case "x$archive_cmds_need_lc_F77" in
13617x|xyes)
13618 # Assume -lc should be added
13619 archive_cmds_need_lc_F77=yes
13620
13621 if test "$enable_shared" = yes && test "$GCC" = yes; then
13622 case $archive_cmds_F77 in
13623 *'~'*)
13624 # FIXME: we may have to deal with multi-command sequences.
13625 ;;
13626 '$CC '*)
13627 # Test whether the compiler implicitly links with -lc since on some
13628 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13629 # to ld, don't add -lc before -lgcc.
13630 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13631echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13632 $rm conftest*
13633 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13634
13635 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13636 (eval $ac_compile) 2>&5
13637 ac_status=$?
13638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13639 (exit $ac_status); } 2>conftest.err; then
13640 soname=conftest
13641 lib=conftest
13642 libobjs=conftest.$ac_objext
13643 deplibs=
13644 wl=$lt_prog_compiler_wl_F77
13645 compiler_flags=-v
13646 linker_flags=-v
13647 verstring=
13648 output_objdir=.
13649 libname=conftest
13650 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
13651 allow_undefined_flag_F77=
13652 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13653 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13654 ac_status=$?
13655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13656 (exit $ac_status); }
13657 then
13658 archive_cmds_need_lc_F77=no
13659 else
13660 archive_cmds_need_lc_F77=yes
13661 fi
13662 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
13663 else
13664 cat conftest.err 1>&5
13665 fi
13666 $rm conftest*
13667 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
13668echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
13669 ;;
13670 esac
13671 fi
13672 ;;
13673esac
13674
13675echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13676echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13677hardcode_action_F77=
13678if test -n "$hardcode_libdir_flag_spec_F77" || \
13679 test -n "$runpath_var F77" || \
13680 test "X$hardcode_automatic_F77"="Xyes" ; then
13681
13682 # We can hardcode non-existant directories.
13683 if test "$hardcode_direct_F77" != no &&
13684 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13685 # have to relink, otherwise we might link with an installed library
13686 # when we should be linking with a yet-to-be-installed one
13687 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
13688 test "$hardcode_minus_L_F77" != no; then
13689 # Linking always hardcodes the temporary library directory.
13690 hardcode_action_F77=relink
13691 else
13692 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13693 hardcode_action_F77=immediate
13694 fi
13695else
13696 # We cannot hardcode anything, or else we can only hardcode existing
13697 # directories.
13698 hardcode_action_F77=unsupported
13699fi
13700echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
13701echo "${ECHO_T}$hardcode_action_F77" >&6
13702
13703if test "$hardcode_action_F77" = relink; then
13704 # Fast installation is not supported
13705 enable_fast_install=no
13706elif test "$shlibpath_overrides_runpath" = yes ||
13707 test "$enable_shared" = no; then
13708 # Fast installation is not necessary
13709 enable_fast_install=needless
13710fi
13711
13712striplib=
13713old_striplib=
13714echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13715echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13716if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13717 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13718 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13719 echo "$as_me:$LINENO: result: yes" >&5
13720echo "${ECHO_T}yes" >&6
13721else
13722# FIXME - insert some real tests, host_os isn't really good enough
13723 case $host_os in
13724 darwin*)
13725 if test -n "$STRIP" ; then
13726 striplib="$STRIP -x"
13727 echo "$as_me:$LINENO: result: yes" >&5
13728echo "${ECHO_T}yes" >&6
13729 else
13730 echo "$as_me:$LINENO: result: no" >&5
13731echo "${ECHO_T}no" >&6
13732fi
13733 ;;
13734 *)
13735 echo "$as_me:$LINENO: result: no" >&5
13736echo "${ECHO_T}no" >&6
13737 ;;
13738 esac
13739fi
13740
13741echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13742echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13743library_names_spec=
13744libname_spec='lib$name'
13745soname_spec=
13746shrext=".so"
13747postinstall_cmds=
13748postuninstall_cmds=
13749finish_cmds=
13750finish_eval=
13751shlibpath_var=
13752shlibpath_overrides_runpath=unknown
13753version_type=none
13754dynamic_linker="$host_os ld.so"
13755sys_lib_dlsearch_path_spec="/lib /usr/lib"
13756if test "$GCC" = yes; then
13757 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13758 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13759 # if the path contains ";" then we assume it to be the separator
13760 # otherwise default to the standard path separator (i.e. ":") - it is
13761 # assumed that no part of a normal pathname contains ";" but that should
13762 # okay in the real world where ";" in dirpaths is itself problematic.
13763 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13764 else
13765 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13766 fi
13767else
13768 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13769fi
13770need_lib_prefix=unknown
13771hardcode_into_libs=no
13772
13773# when you set need_version to no, make sure it does not cause -set_version
13774# flags to be left without arguments
13775need_version=unknown
13776
13777case $host_os in
13778aix3*)
13779 version_type=linux
13780 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13781 shlibpath_var=LIBPATH
13782
13783 # AIX 3 has no versioning support, so we append a major version to the name.
13784 soname_spec='${libname}${release}${shared_ext}$major'
13785 ;;
13786
13787aix4* | aix5*)
13788 version_type=linux
13789 need_lib_prefix=no
13790 need_version=no
13791 hardcode_into_libs=yes
13792 if test "$host_cpu" = ia64; then
13793 # AIX 5 supports IA64
13794 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13795 shlibpath_var=LD_LIBRARY_PATH
13796 else
13797 # With GCC up to 2.95.x, collect2 would create an import file
13798 # for dependence libraries. The import file would start with
13799 # the line `#! .'. This would cause the generated library to
13800 # depend on `.', always an invalid library. This was fixed in
13801 # development snapshots of GCC prior to 3.0.
13802 case $host_os in
13803 aix4 | aix4.[01] | aix4.[01].*)
13804 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13805 echo ' yes '
13806 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13807 :
13808 else
13809 can_build_shared=no
13810 fi
13811 ;;
13812 esac
13813 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13814 # soname into executable. Probably we can add versioning support to
13815 # collect2, so additional links can be useful in future.
13816 if test "$aix_use_runtimelinking" = yes; then
13817 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13818 # instead of lib<name>.a to let people know that these are not
13819 # typical AIX shared libraries.
13820 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13821 else
13822 # We preserve .a as extension for shared libraries through AIX4.2
13823 # and later when we are not doing run time linking.
13824 library_names_spec='${libname}${release}.a $libname.a'
13825 soname_spec='${libname}${release}${shared_ext}$major'
13826 fi
13827 shlibpath_var=LIBPATH
13828 fi
13829 ;;
13830
13831amigaos*)
13832 library_names_spec='$libname.ixlibrary $libname.a'
13833 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13834 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'
13835 ;;
13836
13837beos*)
13838 library_names_spec='${libname}${shared_ext}'
13839 dynamic_linker="$host_os ld.so"
13840 shlibpath_var=LIBRARY_PATH
13841 ;;
13842
13843bsdi4*)
13844 version_type=linux
13845 need_version=no
13846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13847 soname_spec='${libname}${release}${shared_ext}$major'
13848 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13849 shlibpath_var=LD_LIBRARY_PATH
13850 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13851 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13852 # the default ld.so.conf also contains /usr/contrib/lib and
13853 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13854 # libtool to hard-code these into programs
13855 ;;
13856
13857cygwin* | mingw* | pw32*)
13858 version_type=windows
13859 shrext=".dll"
13860 need_version=no
13861 need_lib_prefix=no
13862
13863 case $GCC,$host_os in
13864 yes,cygwin* | yes,mingw* | yes,pw32*)
13865 library_names_spec='$libname.dll.a'
13866 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13867 postinstall_cmds='base_file=`basename \${file}`~
13868 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13869 dldir=$destdir/`dirname \$dlpath`~
13870 test -d \$dldir || mkdir -p \$dldir~
13871 $install_prog $dir/$dlname \$dldir/$dlname'
13872 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13873 dlpath=$dir/\$dldll~
13874 $rm \$dlpath'
13875 shlibpath_overrides_runpath=yes
13876
13877 case $host_os in
13878 cygwin*)
13879 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13880 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13881 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
13882 ;;
13883 mingw*)
13884 # MinGW DLLs use traditional 'lib' prefix
13885 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13886 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13887 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13888 # It is most probably a Windows format PATH printed by
13889 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13890 # path with ; separators, and with drive letters. We can handle the
13891 # drive letters (cygwin fileutils understands them), so leave them,
13892 # especially as we might pass files found there to a mingw objdump,
13893 # which wouldn't understand a cygwinified path. Ahh.
13894 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13895 else
13896 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13897 fi
13898 ;;
13899 pw32*)
13900 # pw32 DLLs use 'pw' prefix rather than 'lib'
13901 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13902 ;;
13903 esac
13904 ;;
13905
13906 *)
13907 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13908 ;;
13909 esac
13910 dynamic_linker='Win32 ld.exe'
13911 # FIXME: first we should search . and the directory the executable is in
13912 shlibpath_var=PATH
13913 ;;
13914
13915darwin* | rhapsody*)
13916 dynamic_linker="$host_os dyld"
13917 version_type=darwin
13918 need_lib_prefix=no
13919 need_version=no
13920 # FIXME: Relying on posixy $() will cause problems for
13921 # cross-compilation, but unfortunately the echo tests do not
13922 # yet detect zsh echo's removal of \ escapes.
13923 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13924 soname_spec='${libname}${release}${major}$shared_ext'
13925 shlibpath_overrides_runpath=yes
13926 shlibpath_var=DYLD_LIBRARY_PATH
13927 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
13928 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13929 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13930 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"`
13931 fi
13932 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13933 ;;
13934
13935dgux*)
13936 version_type=linux
13937 need_lib_prefix=no
13938 need_version=no
13939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13940 soname_spec='${libname}${release}${shared_ext}$major'
13941 shlibpath_var=LD_LIBRARY_PATH
13942 ;;
13943
13944freebsd1*)
13945 dynamic_linker=no
13946 ;;
13947
13948freebsd*)
13949 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13950 version_type=freebsd-$objformat
13951 case $version_type in
13952 freebsd-elf*)
13953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13954 need_version=no
13955 need_lib_prefix=no
13956 ;;
13957 freebsd-*)
13958 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13959 need_version=yes
13960 ;;
13961 esac
13962 shlibpath_var=LD_LIBRARY_PATH
13963 case $host_os in
13964 freebsd2*)
13965 shlibpath_overrides_runpath=yes
13966 ;;
13967 freebsd3.01* | freebsdelf3.01*)
13968 shlibpath_overrides_runpath=yes
13969 hardcode_into_libs=yes
13970 ;;
13971 *) # from 3.2 on
13972 shlibpath_overrides_runpath=no
13973 hardcode_into_libs=yes
13974 ;;
13975 esac
13976 ;;
13977
13978gnu*)
13979 version_type=linux
13980 need_lib_prefix=no
13981 need_version=no
13982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13983 soname_spec='${libname}${release}${shared_ext}$major'
13984 shlibpath_var=LD_LIBRARY_PATH
13985 hardcode_into_libs=yes
13986 ;;
13987
13988hpux9* | hpux10* | hpux11*)
13989 # Give a soname corresponding to the major version so that dld.sl refuses to
13990 # link against other versions.
13991 version_type=sunos
13992 need_lib_prefix=no
13993 need_version=no
13994 case "$host_cpu" in
13995 ia64*)
13996 shrext='.so'
13997 hardcode_into_libs=yes
13998 dynamic_linker="$host_os dld.so"
13999 shlibpath_var=LD_LIBRARY_PATH
14000 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14002 soname_spec='${libname}${release}${shared_ext}$major'
14003 if test "X$HPUX_IA64_MODE" = X32; then
14004 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14005 else
14006 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14007 fi
14008 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14009 ;;
14010 hppa*64*)
14011 shrext='.sl'
14012 hardcode_into_libs=yes
14013 dynamic_linker="$host_os dld.sl"
14014 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14015 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14017 soname_spec='${libname}${release}${shared_ext}$major'
14018 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14019 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14020 ;;
14021 *)
14022 shrext='.sl'
14023 dynamic_linker="$host_os dld.sl"
14024 shlibpath_var=SHLIB_PATH
14025 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14027 soname_spec='${libname}${release}${shared_ext}$major'
14028 ;;
14029 esac
14030 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14031 postinstall_cmds='chmod 555 $lib'
14032 ;;
14033
14034irix5* | irix6* | nonstopux*)
14035 case $host_os in
14036 nonstopux*) version_type=nonstopux ;;
14037 *)
14038 if test "$lt_cv_prog_gnu_ld" = yes; then
14039 version_type=linux
14040 else
14041 version_type=irix
14042 fi ;;
14043 esac
14044 need_lib_prefix=no
14045 need_version=no
14046 soname_spec='${libname}${release}${shared_ext}$major'
14047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14048 case $host_os in
14049 irix5* | nonstopux*)
14050 libsuff= shlibsuff=
14051 ;;
14052 *)
14053 case $LD in # libtool.m4 will add one of these switches to LD
14054 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14055 libsuff= shlibsuff= libmagic=32-bit;;
14056 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14057 libsuff=32 shlibsuff=N32 libmagic=N32;;
14058 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14059 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14060 *) libsuff= shlibsuff= libmagic=never-match;;
14061 esac
14062 ;;
14063 esac
14064 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14065 shlibpath_overrides_runpath=no
14066 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14067 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14068 hardcode_into_libs=yes
14069 ;;
14070
14071# No shared lib support for Linux oldld, aout, or coff.
14072linux*oldld* | linux*aout* | linux*coff*)
14073 dynamic_linker=no
14074 ;;
14075
14076# This must be Linux ELF.
14077linux*)
14078 version_type=linux
14079 need_lib_prefix=no
14080 need_version=no
14081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14082 soname_spec='${libname}${release}${shared_ext}$major'
14083 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14084 shlibpath_var=LD_LIBRARY_PATH
14085 shlibpath_overrides_runpath=no
14086 # This implies no fast_install, which is unacceptable.
14087 # Some rework will be needed to allow for fast_install
14088 # before this can be enabled.
14089 hardcode_into_libs=yes
14090
14091 # We used to test for /lib/ld.so.1 and disable shared libraries on
14092 # powerpc, because MkLinux only supported shared libraries with the
14093 # GNU dynamic linker. Since this was broken with cross compilers,
14094 # most powerpc-linux boxes support dynamic linking these days and
14095 # people can always --disable-shared, the test was removed, and we
14096 # assume the GNU/Linux dynamic linker is in use.
14097 dynamic_linker='GNU/Linux ld.so'
14098 ;;
14099
14100netbsd*)
14101 version_type=sunos
14102 need_lib_prefix=no
14103 need_version=no
14104 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14106 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14107 dynamic_linker='NetBSD (a.out) ld.so'
14108 else
14109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
14110 soname_spec='${libname}${release}${shared_ext}$major'
14111 dynamic_linker='NetBSD ld.elf_so'
14112 fi
14113 shlibpath_var=LD_LIBRARY_PATH
14114 shlibpath_overrides_runpath=yes
14115 hardcode_into_libs=yes
14116 ;;
14117
14118newsos6)
14119 version_type=linux
14120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14121 shlibpath_var=LD_LIBRARY_PATH
14122 shlibpath_overrides_runpath=yes
14123 ;;
14124
14125nto-qnx)
14126 version_type=linux
14127 need_lib_prefix=no
14128 need_version=no
14129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14130 soname_spec='${libname}${release}${shared_ext}$major'
14131 shlibpath_var=LD_LIBRARY_PATH
14132 shlibpath_overrides_runpath=yes
14133 ;;
14134
14135openbsd*)
14136 version_type=sunos
14137 need_lib_prefix=no
14138 need_version=no
14139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14140 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14141 shlibpath_var=LD_LIBRARY_PATH
14142 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14143 case $host_os in
14144 openbsd2.[89] | openbsd2.[89].*)
14145 shlibpath_overrides_runpath=no
14146 ;;
14147 *)
14148 shlibpath_overrides_runpath=yes
14149 ;;
14150 esac
14151 else
14152 shlibpath_overrides_runpath=yes
14153 fi
14154 ;;
14155
14156os2*)
14157 libname_spec='$name'
14158 shrext=".dll"
14159 need_lib_prefix=no
14160 library_names_spec='$libname${shared_ext} $libname.a'
14161 dynamic_linker='OS/2 ld.exe'
14162 shlibpath_var=LIBPATH
14163 ;;
14164
14165osf3* | osf4* | osf5*)
14166 version_type=osf
14167 need_lib_prefix=no
14168 need_version=no
14169 soname_spec='${libname}${release}${shared_ext}$major'
14170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14171 shlibpath_var=LD_LIBRARY_PATH
14172 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14173 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14174 ;;
14175
14176sco3.2v5*)
14177 version_type=osf
14178 soname_spec='${libname}${release}${shared_ext}$major'
14179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14180 shlibpath_var=LD_LIBRARY_PATH
14181 ;;
14182
14183solaris*)
14184 version_type=linux
14185 need_lib_prefix=no
14186 need_version=no
14187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14188 soname_spec='${libname}${release}${shared_ext}$major'
14189 shlibpath_var=LD_LIBRARY_PATH
14190 shlibpath_overrides_runpath=yes
14191 hardcode_into_libs=yes
14192 # ldd complains unless libraries are executable
14193 postinstall_cmds='chmod +x $lib'
14194 ;;
14195
14196sunos4*)
14197 version_type=sunos
14198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14199 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14200 shlibpath_var=LD_LIBRARY_PATH
14201 shlibpath_overrides_runpath=yes
14202 if test "$with_gnu_ld" = yes; then
14203 need_lib_prefix=no
14204 fi
14205 need_version=yes
14206 ;;
14207
14208sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14209 version_type=linux
14210 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14211 soname_spec='${libname}${release}${shared_ext}$major'
14212 shlibpath_var=LD_LIBRARY_PATH
14213 case $host_vendor in
14214 sni)
14215 shlibpath_overrides_runpath=no
14216 need_lib_prefix=no
14217 export_dynamic_flag_spec='${wl}-Blargedynsym'
14218 runpath_var=LD_RUN_PATH
14219 ;;
14220 siemens)
14221 need_lib_prefix=no
14222 ;;
14223 motorola)
14224 need_lib_prefix=no
14225 need_version=no
14226 shlibpath_overrides_runpath=no
14227 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14228 ;;
14229 esac
14230 ;;
14231
14232sysv4*MP*)
14233 if test -d /usr/nec ;then
14234 version_type=linux
14235 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14236 soname_spec='$libname${shared_ext}.$major'
14237 shlibpath_var=LD_LIBRARY_PATH
14238 fi
14239 ;;
14240
14241uts4*)
14242 version_type=linux
14243 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14244 soname_spec='${libname}${release}${shared_ext}$major'
14245 shlibpath_var=LD_LIBRARY_PATH
14246 ;;
14247
14248*)
14249 dynamic_linker=no
14250 ;;
14251esac
14252echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14253echo "${ECHO_T}$dynamic_linker" >&6
14254test "$dynamic_linker" = no && can_build_shared=no
14255
14256
14257# The else clause should only fire when bootstrapping the
14258# libtool distribution, otherwise you forgot to ship ltmain.sh
14259# with your package, and you will get complaints that there are
14260# no rules to generate ltmain.sh.
14261if test -f "$ltmain"; then
14262 # See if we are running on zsh, and set the options which allow our commands through
14263 # without removal of \ escapes.
14264 if test -n "${ZSH_VERSION+set}" ; then
14265 setopt NO_GLOB_SUBST
14266 fi
14267 # Now quote all the things that may contain metacharacters while being
14268 # careful not to overquote the AC_SUBSTed values. We take copies of the
14269 # variables and quote the copies for generation of the libtool script.
14270 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
14271 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14272 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14273 deplibs_check_method reload_flag reload_cmds need_locks \
14274 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14275 lt_cv_sys_global_symbol_to_c_name_address \
14276 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14277 old_postinstall_cmds old_postuninstall_cmds \
14278 compiler_F77 \
14279 CC_F77 \
14280 LD_F77 \
14281 lt_prog_compiler_wl_F77 \
14282 lt_prog_compiler_pic_F77 \
14283 lt_prog_compiler_static_F77 \
14284 lt_prog_compiler_no_builtin_flag_F77 \
14285 export_dynamic_flag_spec_F77 \
14286 thread_safe_flag_spec_F77 \
14287 whole_archive_flag_spec_F77 \
14288 enable_shared_with_static_runtimes_F77 \
14289 old_archive_cmds_F77 \
14290 old_archive_from_new_cmds_F77 \
14291 predep_objects_F77 \
14292 postdep_objects_F77 \
14293 predeps_F77 \
14294 postdeps_F77 \
14295 compiler_lib_search_path_F77 \
14296 archive_cmds_F77 \
14297 archive_expsym_cmds_F77 \
14298 postinstall_cmds_F77 \
14299 postuninstall_cmds_F77 \
14300 old_archive_from_expsyms_cmds_F77 \
14301 allow_undefined_flag_F77 \
14302 no_undefined_flag_F77 \
14303 export_symbols_cmds_F77 \
14304 hardcode_libdir_flag_spec_F77 \
14305 hardcode_libdir_flag_spec_ld_F77 \
14306 hardcode_libdir_separator_F77 \
14307 hardcode_automatic_F77 \
14308 module_cmds_F77 \
14309 module_expsym_cmds_F77 \
14310 lt_cv_prog_compiler_c_o_F77 \
14311 exclude_expsyms_F77 \
14312 include_expsyms_F77; do
14313
14314 case $var in
14315 old_archive_cmds_F77 | \
14316 old_archive_from_new_cmds_F77 | \
14317 archive_cmds_F77 | \
14318 archive_expsym_cmds_F77 | \
14319 module_cmds_F77 | \
14320 module_expsym_cmds_F77 | \
14321 old_archive_from_expsyms_cmds_F77 | \
14322 export_symbols_cmds_F77 | \
14323 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14324 postinstall_cmds | postuninstall_cmds | \
14325 old_postinstall_cmds | old_postuninstall_cmds | \
14326 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14327 # Double-quote double-evaled strings.
14328 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14329 ;;
14330 *)
14331 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14332 ;;
14333 esac
14334 done
14335
14336 case $lt_echo in
14337 *'\$0 --fallback-echo"')
14338 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14339 ;;
14340 esac
14341
14342cfgfile="$ofile"
14343
14344 cat <<__EOF__ >> "$cfgfile"
14345# ### BEGIN LIBTOOL TAG CONFIG: $tagname
14346
14347# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14348
14349# Shell to use when invoking shell scripts.
14350SHELL=$lt_SHELL
14351
14352# Whether or not to build shared libraries.
14353build_libtool_libs=$enable_shared
14354
14355# Whether or not to build static libraries.
14356build_old_libs=$enable_static
14357
14358# Whether or not to add -lc for building shared libraries.
14359build_libtool_need_lc=$archive_cmds_need_lc_F77
14360
14361# Whether or not to disallow shared libs when runtime libs are static
14362allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14363
14364# Whether or not to optimize for fast installation.
14365fast_install=$enable_fast_install
14366
14367# The host system.
14368host_alias=$host_alias
14369host=$host
14370
14371# An echo program that does not interpret backslashes.
14372echo=$lt_echo
14373
14374# The archiver.
14375AR=$lt_AR
14376AR_FLAGS=$lt_AR_FLAGS
14377
14378# A C compiler.
14379LTCC=$lt_LTCC
14380
14381# A language-specific compiler.
14382CC=$lt_compiler_F77
14383
14384# Is the compiler the GNU C compiler?
14385with_gcc=$GCC_F77
14386
14387# An ERE matcher.
14388EGREP=$lt_EGREP
14389
14390# The linker used to build libraries.
14391LD=$lt_LD_F77
14392
14393# Whether we need hard or soft links.
14394LN_S=$lt_LN_S
14395
14396# A BSD-compatible nm program.
14397NM=$lt_NM
14398
14399# A symbol stripping program
14400STRIP=$STRIP
14401
14402# Used to examine libraries when file_magic_cmd begins "file"
14403MAGIC_CMD=$MAGIC_CMD
14404
14405# Used on cygwin: DLL creation program.
14406DLLTOOL="$DLLTOOL"
14407
14408# Used on cygwin: object dumper.
14409OBJDUMP="$OBJDUMP"
14410
14411# Used on cygwin: assembler.
14412AS="$AS"
14413
14414# The name of the directory that contains temporary libtool files.
14415objdir=$objdir
14416
14417# How to create reloadable object files.
14418reload_flag=$lt_reload_flag
14419reload_cmds=$lt_reload_cmds
14420
14421# How to pass a linker flag through the compiler.
14422wl=$lt_lt_prog_compiler_wl_F77
14423
14424# Object file suffix (normally "o").
14425objext="$ac_objext"
14426
14427# Old archive suffix (normally "a").
14428libext="$libext"
14429
14430# Shared library suffix (normally ".so").
14431shrext='$shrext'
14432
14433# Executable file suffix (normally "").
14434exeext="$exeext"
14435
14436# Additional compiler flags for building library objects.
14437pic_flag=$lt_lt_prog_compiler_pic_F77
14438pic_mode=$pic_mode
14439
14440# What is the maximum length of a command?
14441max_cmd_len=$lt_cv_sys_max_cmd_len
14442
14443# Does compiler simultaneously support -c and -o options?
14444compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14445
14446# Must we lock files when doing compilation ?
14447need_locks=$lt_need_locks
14448
14449# Do we need the lib prefix for modules?
14450need_lib_prefix=$need_lib_prefix
14451
14452# Do we need a version for libraries?
14453need_version=$need_version
14454
14455# Whether dlopen is supported.
14456dlopen_support=$enable_dlopen
14457
14458# Whether dlopen of programs is supported.
14459dlopen_self=$enable_dlopen_self
14460
14461# Whether dlopen of statically linked programs is supported.
14462dlopen_self_static=$enable_dlopen_self_static
14463
14464# Compiler flag to prevent dynamic linking.
14465link_static_flag=$lt_lt_prog_compiler_static_F77
14466
14467# Compiler flag to turn off builtin functions.
14468no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14469
14470# Compiler flag to allow reflexive dlopens.
14471export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14472
14473# Compiler flag to generate shared objects directly from archives.
14474whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14475
14476# Compiler flag to generate thread-safe objects.
14477thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14478
14479# Library versioning type.
14480version_type=$version_type
14481
14482# Format of library name prefix.
14483libname_spec=$lt_libname_spec
14484
14485# List of archive names. First name is the real one, the rest are links.
14486# The last name is the one that the linker finds with -lNAME.
14487library_names_spec=$lt_library_names_spec
14488
14489# The coded name of the library, if different from the real name.
14490soname_spec=$lt_soname_spec
14491
14492# Commands used to build and install an old-style archive.
14493RANLIB=$lt_RANLIB
14494old_archive_cmds=$lt_old_archive_cmds_F77
14495old_postinstall_cmds=$lt_old_postinstall_cmds
14496old_postuninstall_cmds=$lt_old_postuninstall_cmds
14497
14498# Create an old-style archive from a shared archive.
14499old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14500
14501# Create a temporary old-style archive to link instead of a shared archive.
14502old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14503
14504# Commands used to build and install a shared archive.
14505archive_cmds=$lt_archive_cmds_F77
14506archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14507postinstall_cmds=$lt_postinstall_cmds
14508postuninstall_cmds=$lt_postuninstall_cmds
14509
14510# Commands used to build a loadable module (assumed same as above if empty)
14511module_cmds=$lt_module_cmds_F77
14512module_expsym_cmds=$lt_module_expsym_cmds_F77
14513
14514# Commands to strip libraries.
14515old_striplib=$lt_old_striplib
14516striplib=$lt_striplib
14517
14518# Dependencies to place before the objects being linked to create a
14519# shared library.
14520predep_objects=$lt_predep_objects_F77
14521
14522# Dependencies to place after the objects being linked to create a
14523# shared library.
14524postdep_objects=$lt_postdep_objects_F77
14525
14526# Dependencies to place before the objects being linked to create a
14527# shared library.
14528predeps=$lt_predeps_F77
14529
14530# Dependencies to place after the objects being linked to create a
14531# shared library.
14532postdeps=$lt_postdeps_F77
14533
14534# The library search path used internally by the compiler when linking
14535# a shared library.
14536compiler_lib_search_path=$lt_compiler_lib_search_path_F77
14537
14538# Method to check whether dependent libraries are shared objects.
14539deplibs_check_method=$lt_deplibs_check_method
14540
14541# Command to use when deplibs_check_method == file_magic.
14542file_magic_cmd=$lt_file_magic_cmd
14543
14544# Flag that allows shared libraries with undefined symbols to be built.
14545allow_undefined_flag=$lt_allow_undefined_flag_F77
14546
14547# Flag that forces no undefined symbols.
14548no_undefined_flag=$lt_no_undefined_flag_F77
14549
14550# Commands used to finish a libtool library installation in a directory.
14551finish_cmds=$lt_finish_cmds
14552
14553# Same as above, but a single script fragment to be evaled but not shown.
14554finish_eval=$lt_finish_eval
14555
14556# Take the output of nm and produce a listing of raw symbols and C names.
14557global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14558
14559# Transform the output of nm in a proper C declaration
14560global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14561
14562# Transform the output of nm in a C name address pair
14563global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14564
14565# This is the shared library runtime path variable.
14566runpath_var=$runpath_var
14567
14568# This is the shared library path variable.
14569shlibpath_var=$shlibpath_var
14570
14571# Is shlibpath searched before the hard-coded library search path?
14572shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14573
14574# How to hardcode a shared library path into an executable.
14575hardcode_action=$hardcode_action_F77
14576
14577# Whether we should hardcode library paths into libraries.
14578hardcode_into_libs=$hardcode_into_libs
14579
14580# Flag to hardcode \$libdir into a binary during linking.
14581# This must work even if \$libdir does not exist.
14582hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
14583
14584# If ld is used when linking, flag to hardcode \$libdir into
14585# a binary during linking. This must work even if \$libdir does
14586# not exist.
14587hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
14588
14589# Whether we need a single -rpath flag with a separated argument.
14590hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
14591
14592# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14593# resulting binary.
14594hardcode_direct=$hardcode_direct_F77
14595
14596# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14597# resulting binary.
14598hardcode_minus_L=$hardcode_minus_L_F77
14599
14600# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14601# the resulting binary.
14602hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
14603
14604# Set to yes if building a shared library automatically hardcodes DIR into the library
14605# and all subsequent libraries and executables linked against it.
14606hardcode_automatic=$hardcode_automatic_F77
14607
14608# Variables whose values should be saved in libtool wrapper scripts and
14609# restored at relink time.
14610variables_saved_for_relink="$variables_saved_for_relink"
14611
14612# Whether libtool must link a program against all its dependency libraries.
14613link_all_deplibs=$link_all_deplibs_F77
14614
14615# Compile-time system search path for libraries
14616sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14617
14618# Run-time system search path for libraries
14619sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14620
14621# Fix the shell variable \$srcfile for the compiler.
14622fix_srcfile_path="$fix_srcfile_path_F77"
14623
14624# Set to yes if exported symbols are required.
14625always_export_symbols=$always_export_symbols_F77
14626
14627# The commands to list exported symbols.
14628export_symbols_cmds=$lt_export_symbols_cmds_F77
14629
14630# The commands to extract the exported symbol list from a shared archive.
14631extract_expsyms_cmds=$lt_extract_expsyms_cmds
14632
14633# Symbols that should not be listed in the preloaded symbols.
14634exclude_expsyms=$lt_exclude_expsyms_F77
14635
14636# Symbols that must always be exported.
14637include_expsyms=$lt_include_expsyms_F77
14638
14639# ### END LIBTOOL TAG CONFIG: $tagname
14640
14641__EOF__
14642
14643
14644else
14645 # If there is no Makefile yet, we rely on a make rule to execute
14646 # `config.status --recheck' to rerun these tests and create the
14647 # libtool script then.
14648 test -f Makefile && make "$ltmain"
14649fi
14650
14651
14652ac_ext=c
14653ac_cpp='$CPP $CPPFLAGS'
14654ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14655ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14656ac_compiler_gnu=$ac_cv_c_compiler_gnu
14657
14658CC="$lt_save_CC"
14659
14660 else
14661 tagname=""
14662 fi
14663 ;;
14664
14665 GCJ)
14666 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
14667
14668
14669
14670# Source file extension for Java test sources.
14671ac_ext=java
14672
14673# Object file extension for compiled Java test sources.
14674objext=o
14675objext_GCJ=$objext
14676
14677# Code to be used in simple compile tests
14678lt_simple_compile_test_code="class foo {}\n"
14679
14680# Code to be used in simple link tests
14681lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
14682
14683# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14684
14685# If no C compiler was specified, use CC.
14686LTCC=${LTCC-"$CC"}
14687
14688# Allow CC to be a program name with arguments.
14689compiler=$CC
14690
14691
14692# Allow CC to be a program name with arguments.
14693lt_save_CC="$CC"
14694CC=${GCJ-"gcj"}
14695compiler=$CC
14696compiler_GCJ=$CC
14697
14698# GCJ did not exist at the time GCC didn't implicitly link libc in.
14699archive_cmds_need_lc_GCJ=no
14700
14701## CAVEAT EMPTOR:
14702## There is no encapsulation within the following macros, do not change
14703## the running order or otherwise move them around unless you know exactly
14704## what you are doing...
14705
14706lt_prog_compiler_no_builtin_flag_GCJ=
14707
14708if test "$GCC" = yes; then
14709 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
14710
14711 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14712echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
14713if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14714 echo $ECHO_N "(cached) $ECHO_C" >&6
14715else
14716 lt_cv_prog_compiler_rtti_exceptions=no
14717 ac_outfile=conftest.$ac_objext
14718 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14719 lt_compiler_flag="-fno-rtti -fno-exceptions"
14720 # Insert the option either (1) after the last *FLAGS variable, or
14721 # (2) before a word containing "conftest.", or (3) at the end.
14722 # Note that $ac_compile itself does not contain backslashes and begins
14723 # with a dollar sign (not a hyphen), so the echo should work correctly.
14724 # The option is referenced via a variable to avoid confusing sed.
14725 lt_compile=`echo "$ac_compile" | $SED \
14726 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14727 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14728 -e 's:$: $lt_compiler_flag:'`
John Criswell60577602003-11-25 17:49:22 +000014729 (eval echo "\"\$as_me:14729: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014730 (eval "$lt_compile" 2>conftest.err)
14731 ac_status=$?
14732 cat conftest.err >&5
John Criswell60577602003-11-25 17:49:22 +000014733 echo "$as_me:14733: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014734 if (exit $ac_status) && test -s "$ac_outfile"; then
14735 # The compiler can only warn and ignore the option if not recognized
14736 # So say no if there are warnings
14737 if test ! -s conftest.err; then
14738 lt_cv_prog_compiler_rtti_exceptions=yes
14739 fi
14740 fi
14741 $rm conftest*
14742
14743fi
14744echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14745echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
14746
14747if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14748 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
14749else
14750 :
14751fi
14752
14753fi
14754
14755lt_prog_compiler_wl_GCJ=
14756lt_prog_compiler_pic_GCJ=
14757lt_prog_compiler_static_GCJ=
14758
14759echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14760echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
14761
14762 if test "$GCC" = yes; then
14763 lt_prog_compiler_wl_GCJ='-Wl,'
14764 lt_prog_compiler_static_GCJ='-static'
14765
14766 case $host_os in
14767 aix*)
14768 # All AIX code is PIC.
14769 if test "$host_cpu" = ia64; then
14770 # AIX 5 now supports IA64 processor
14771 lt_prog_compiler_static_GCJ='-Bstatic'
14772 fi
14773 ;;
14774
14775 amigaos*)
14776 # FIXME: we need at least 68020 code to build shared libraries, but
14777 # adding the `-m68020' flag to GCC prevents building anything better,
14778 # like `-m68040'.
14779 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
14780 ;;
14781
14782 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14783 # PIC is the default for these OSes.
14784 ;;
14785
14786 mingw* | pw32* | os2*)
14787 # This hack is so that the source file can tell whether it is being
14788 # built for inclusion in a dll (and should export symbols for example).
14789 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
14790 ;;
14791
14792 darwin* | rhapsody*)
14793 # PIC is the default on this platform
14794 # Common symbols not allowed in MH_DYLIB files
14795 lt_prog_compiler_pic_GCJ='-fno-common'
14796 ;;
14797
14798 msdosdjgpp*)
14799 # Just because we use GCC doesn't mean we suddenly get shared libraries
14800 # on systems that don't support them.
14801 lt_prog_compiler_can_build_shared_GCJ=no
14802 enable_shared=no
14803 ;;
14804
14805 sysv4*MP*)
14806 if test -d /usr/nec; then
14807 lt_prog_compiler_pic_GCJ=-Kconform_pic
14808 fi
14809 ;;
14810
14811 hpux*)
14812 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14813 # not for PA HP-UX.
14814 case "$host_cpu" in
14815 hppa*64*|ia64*)
14816 # +Z the default
14817 ;;
14818 *)
14819 lt_prog_compiler_pic_GCJ='-fPIC'
14820 ;;
14821 esac
14822 ;;
14823
14824 *)
14825 lt_prog_compiler_pic_GCJ='-fPIC'
14826 ;;
14827 esac
14828 else
14829 # PORTME Check for flag to pass linker flags through the system compiler.
14830 case $host_os in
14831 aix*)
14832 lt_prog_compiler_wl_GCJ='-Wl,'
14833 if test "$host_cpu" = ia64; then
14834 # AIX 5 now supports IA64 processor
14835 lt_prog_compiler_static_GCJ='-Bstatic'
14836 else
14837 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
14838 fi
14839 ;;
14840
14841 mingw* | pw32* | os2*)
14842 # This hack is so that the source file can tell whether it is being
14843 # built for inclusion in a dll (and should export symbols for example).
14844 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
14845 ;;
14846
14847 hpux9* | hpux10* | hpux11*)
14848 lt_prog_compiler_wl_GCJ='-Wl,'
14849 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14850 # not for PA HP-UX.
14851 case "$host_cpu" in
14852 hppa*64*|ia64*)
14853 # +Z the default
14854 ;;
14855 *)
14856 lt_prog_compiler_pic_GCJ='+Z'
14857 ;;
14858 esac
14859 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14860 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
14861 ;;
14862
14863 irix5* | irix6* | nonstopux*)
14864 lt_prog_compiler_wl_GCJ='-Wl,'
14865 # PIC (with -KPIC) is the default.
14866 lt_prog_compiler_static_GCJ='-non_shared'
14867 ;;
14868
14869 newsos6)
14870 lt_prog_compiler_pic_GCJ='-KPIC'
14871 lt_prog_compiler_static_GCJ='-Bstatic'
14872 ;;
14873
14874 linux*)
14875 case $CC in
14876 icc|ecc)
14877 lt_prog_compiler_wl_GCJ='-Wl,'
14878 lt_prog_compiler_pic_GCJ='-KPIC'
14879 lt_prog_compiler_static_GCJ='-static'
14880 ;;
14881 ccc)
14882 lt_prog_compiler_wl_GCJ='-Wl,'
14883 # All Alpha code is PIC.
14884 lt_prog_compiler_static_GCJ='-non_shared'
14885 ;;
14886 esac
14887 ;;
14888
14889 osf3* | osf4* | osf5*)
14890 lt_prog_compiler_wl_GCJ='-Wl,'
14891 # All OSF/1 code is PIC.
14892 lt_prog_compiler_static_GCJ='-non_shared'
14893 ;;
14894
14895 sco3.2v5*)
14896 lt_prog_compiler_pic_GCJ='-Kpic'
14897 lt_prog_compiler_static_GCJ='-dn'
14898 ;;
14899
14900 solaris*)
14901 lt_prog_compiler_wl_GCJ='-Wl,'
14902 lt_prog_compiler_pic_GCJ='-KPIC'
14903 lt_prog_compiler_static_GCJ='-Bstatic'
14904 ;;
14905
14906 sunos4*)
14907 lt_prog_compiler_wl_GCJ='-Qoption ld '
14908 lt_prog_compiler_pic_GCJ='-PIC'
14909 lt_prog_compiler_static_GCJ='-Bstatic'
14910 ;;
14911
14912 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14913 lt_prog_compiler_wl_GCJ='-Wl,'
14914 lt_prog_compiler_pic_GCJ='-KPIC'
14915 lt_prog_compiler_static_GCJ='-Bstatic'
14916 ;;
14917
14918 sysv4*MP*)
14919 if test -d /usr/nec ;then
14920 lt_prog_compiler_pic_GCJ='-Kconform_pic'
14921 lt_prog_compiler_static_GCJ='-Bstatic'
14922 fi
14923 ;;
14924
14925 uts4*)
14926 lt_prog_compiler_pic_GCJ='-pic'
14927 lt_prog_compiler_static_GCJ='-Bstatic'
14928 ;;
14929
14930 *)
14931 lt_prog_compiler_can_build_shared_GCJ=no
14932 ;;
14933 esac
14934 fi
14935
14936echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
14937echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
14938
14939#
14940# Check to make sure the PIC flag actually works.
14941#
14942if test -n "$lt_prog_compiler_pic_GCJ"; then
14943 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
14944echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
14945if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
14946 echo $ECHO_N "(cached) $ECHO_C" >&6
14947else
14948 lt_prog_compiler_pic_works_GCJ=no
14949 ac_outfile=conftest.$ac_objext
14950 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14951 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
14952 # Insert the option either (1) after the last *FLAGS variable, or
14953 # (2) before a word containing "conftest.", or (3) at the end.
14954 # Note that $ac_compile itself does not contain backslashes and begins
14955 # with a dollar sign (not a hyphen), so the echo should work correctly.
14956 # The option is referenced via a variable to avoid confusing sed.
14957 lt_compile=`echo "$ac_compile" | $SED \
14958 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14959 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14960 -e 's:$: $lt_compiler_flag:'`
John Criswell60577602003-11-25 17:49:22 +000014961 (eval echo "\"\$as_me:14961: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014962 (eval "$lt_compile" 2>conftest.err)
14963 ac_status=$?
14964 cat conftest.err >&5
John Criswell60577602003-11-25 17:49:22 +000014965 echo "$as_me:14965: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014966 if (exit $ac_status) && test -s "$ac_outfile"; then
14967 # The compiler can only warn and ignore the option if not recognized
14968 # So say no if there are warnings
14969 if test ! -s conftest.err; then
14970 lt_prog_compiler_pic_works_GCJ=yes
14971 fi
14972 fi
14973 $rm conftest*
14974
14975fi
14976echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
14977echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
14978
14979if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
14980 case $lt_prog_compiler_pic_GCJ in
14981 "" | " "*) ;;
14982 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
14983 esac
14984else
14985 lt_prog_compiler_pic_GCJ=
14986 lt_prog_compiler_can_build_shared_GCJ=no
14987fi
14988
14989fi
14990case "$host_os" in
14991 # For platforms which do not support PIC, -DPIC is meaningless:
14992 *djgpp*)
14993 lt_prog_compiler_pic_GCJ=
14994 ;;
14995 *)
14996 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
14997 ;;
14998esac
14999
15000echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15001echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15002if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15003 echo $ECHO_N "(cached) $ECHO_C" >&6
15004else
15005 lt_cv_prog_compiler_c_o_GCJ=no
15006 $rm -r conftest 2>/dev/null
15007 mkdir conftest
15008 cd conftest
15009 mkdir out
15010 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15011
15012 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
15013 # that will create temporary files in the current directory regardless of
15014 # the output directory. Thus, making CWD read-only will cause this test
15015 # to fail, enabling locking or at least warning the user not to do parallel
15016 # builds.
15017 chmod -w .
15018
15019 lt_compiler_flag="-o out/conftest2.$ac_objext"
15020 # Insert the option either (1) after the last *FLAGS variable, or
15021 # (2) before a word containing "conftest.", or (3) at the end.
15022 # Note that $ac_compile itself does not contain backslashes and begins
15023 # with a dollar sign (not a hyphen), so the echo should work correctly.
15024 lt_compile=`echo "$ac_compile" | $SED \
15025 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15026 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15027 -e 's:$: $lt_compiler_flag:'`
John Criswell60577602003-11-25 17:49:22 +000015028 (eval echo "\"\$as_me:15028: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000015029 (eval "$lt_compile" 2>out/conftest.err)
15030 ac_status=$?
15031 cat out/conftest.err >&5
John Criswell60577602003-11-25 17:49:22 +000015032 echo "$as_me:15032: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000015033 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15034 then
15035 # The compiler can only warn and ignore the option if not recognized
15036 # So say no if there are warnings
15037 if test ! -s out/conftest.err; then
15038 lt_cv_prog_compiler_c_o_GCJ=yes
15039 fi
15040 fi
15041 chmod u+w .
15042 $rm conftest* out/*
15043 rmdir out
15044 cd ..
15045 rmdir conftest
15046 $rm conftest*
15047
15048fi
15049echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15050echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15051
15052
15053hard_links="nottested"
15054if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15055 # do not overwrite the value of need_locks provided by the user
15056 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15057echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15058 hard_links=yes
15059 $rm conftest*
15060 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15061 touch conftest.a
15062 ln conftest.a conftest.b 2>&5 || hard_links=no
15063 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15064 echo "$as_me:$LINENO: result: $hard_links" >&5
15065echo "${ECHO_T}$hard_links" >&6
15066 if test "$hard_links" = no; then
15067 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15068echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15069 need_locks=warn
15070 fi
15071else
15072 need_locks=no
15073fi
15074
15075echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15076echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15077
15078 runpath_var=
15079 allow_undefined_flag_GCJ=
15080 enable_shared_with_static_runtimes_GCJ=no
15081 archive_cmds_GCJ=
15082 archive_expsym_cmds_GCJ=
15083 old_archive_From_new_cmds_GCJ=
15084 old_archive_from_expsyms_cmds_GCJ=
15085 export_dynamic_flag_spec_GCJ=
15086 whole_archive_flag_spec_GCJ=
15087 thread_safe_flag_spec_GCJ=
15088 hardcode_libdir_flag_spec_GCJ=
15089 hardcode_libdir_flag_spec_ld_GCJ=
15090 hardcode_libdir_separator_GCJ=
15091 hardcode_direct_GCJ=no
15092 hardcode_minus_L_GCJ=no
15093 hardcode_shlibpath_var_GCJ=unsupported
15094 link_all_deplibs_GCJ=unknown
15095 hardcode_automatic_GCJ=no
15096 module_cmds_GCJ=
15097 module_expsym_cmds_GCJ=
15098 always_export_symbols_GCJ=no
15099 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15100 # include_expsyms should be a list of space-separated symbols to be *always*
15101 # included in the symbol list
15102 include_expsyms_GCJ=
15103 # exclude_expsyms can be an extended regexp of symbols to exclude
15104 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15105 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15106 # as well as any symbol that contains `d'.
15107 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15108 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15109 # platforms (ab)use it in PIC code, but their linkers get confused if
15110 # the symbol is explicitly referenced. Since portable code cannot
15111 # rely on this symbol name, it's probably fine to never include it in
15112 # preloaded symbol tables.
15113 extract_expsyms_cmds=
15114
15115 case $host_os in
15116 cygwin* | mingw* | pw32*)
15117 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15118 # When not using gcc, we currently assume that we are using
15119 # Microsoft Visual C++.
15120 if test "$GCC" != yes; then
15121 with_gnu_ld=no
15122 fi
15123 ;;
15124 openbsd*)
15125 with_gnu_ld=no
15126 ;;
15127 esac
15128
15129 ld_shlibs_GCJ=yes
15130 if test "$with_gnu_ld" = yes; then
15131 # If archive_cmds runs LD, not CC, wlarc should be empty
15132 wlarc='${wl}'
15133
15134 # See if GNU ld supports shared libraries.
15135 case $host_os in
15136 aix3* | aix4* | aix5*)
15137 # On AIX/PPC, the GNU linker is very broken
15138 if test "$host_cpu" != ia64; then
15139 ld_shlibs_GCJ=no
15140 cat <<EOF 1>&2
15141
15142*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15143*** to be unable to reliably create shared libraries on AIX.
15144*** Therefore, libtool is disabling shared libraries support. If you
15145*** really care for shared libraries, you may want to modify your PATH
15146*** so that a non-GNU linker is found, and then restart.
15147
15148EOF
15149 fi
15150 ;;
15151
15152 amigaos*)
15153 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)'
15154 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15155 hardcode_minus_L_GCJ=yes
15156
15157 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15158 # that the semantics of dynamic libraries on AmigaOS, at least up
15159 # to version 4, is to share data among multiple programs linked
15160 # with the same dynamic library. Since this doesn't match the
15161 # behavior of shared libraries on other platforms, we can't use
15162 # them.
15163 ld_shlibs_GCJ=no
15164 ;;
15165
15166 beos*)
15167 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15168 allow_undefined_flag_GCJ=unsupported
15169 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15170 # support --undefined. This deserves some investigation. FIXME
15171 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15172 else
15173 ld_shlibs_GCJ=no
15174 fi
15175 ;;
15176
15177 cygwin* | mingw* | pw32*)
15178 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15179 # as there is no search path for DLLs.
15180 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15181 allow_undefined_flag_GCJ=unsupported
15182 always_export_symbols_GCJ=no
15183 enable_shared_with_static_runtimes_GCJ=yes
15184 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15185
15186 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15187 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15188 # If the export-symbols file already is a .def file (1st line
15189 # is EXPORTS), use it as is; otherwise, prepend...
15190 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15191 cp $export_symbols $output_objdir/$soname.def;
15192 else
15193 echo EXPORTS > $output_objdir/$soname.def;
15194 cat $export_symbols >> $output_objdir/$soname.def;
15195 fi~
15196 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15197 else
15198 ld_shlibs=no
15199 fi
15200 ;;
15201
15202 netbsd*)
15203 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15204 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15205 wlarc=
15206 else
15207 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15208 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15209 fi
15210 ;;
15211
15212 solaris* | sysv5*)
15213 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15214 ld_shlibs_GCJ=no
15215 cat <<EOF 1>&2
15216
15217*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15218*** create shared libraries on Solaris systems. Therefore, libtool
15219*** is disabling shared libraries support. We urge you to upgrade GNU
15220*** binutils to release 2.9.1 or newer. Another option is to modify
15221*** your PATH or compiler configuration so that the native linker is
15222*** used, and then restart.
15223
15224EOF
15225 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15226 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15227 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15228 else
15229 ld_shlibs_GCJ=no
15230 fi
15231 ;;
15232
15233 sunos4*)
15234 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15235 wlarc=
15236 hardcode_direct_GCJ=yes
15237 hardcode_shlibpath_var_GCJ=no
15238 ;;
15239
15240 *)
15241 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15242 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15243 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15244 else
15245 ld_shlibs_GCJ=no
15246 fi
15247 ;;
15248 esac
15249
15250 if test "$ld_shlibs_GCJ" = yes; then
15251 runpath_var=LD_RUN_PATH
15252 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15253 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15254 # ancient GNU ld didn't support --whole-archive et. al.
15255 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15256 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15257 else
15258 whole_archive_flag_spec_GCJ=
15259 fi
15260 fi
15261 else
15262 # PORTME fill in a description of your system's linker (not GNU ld)
15263 case $host_os in
15264 aix3*)
15265 allow_undefined_flag_GCJ=unsupported
15266 always_export_symbols_GCJ=yes
15267 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'
15268 # Note: this linker hardcodes the directories in LIBPATH if there
15269 # are no directories specified by -L.
15270 hardcode_minus_L_GCJ=yes
15271 if test "$GCC" = yes && test -z "$link_static_flag"; then
15272 # Neither direct hardcoding nor static linking is supported with a
15273 # broken collect2.
15274 hardcode_direct_GCJ=unsupported
15275 fi
15276 ;;
15277
15278 aix4* | aix5*)
15279 if test "$host_cpu" = ia64; then
15280 # On IA64, the linker does run time linking by default, so we don't
15281 # have to do anything special.
15282 aix_use_runtimelinking=no
15283 exp_sym_flag='-Bexport'
15284 no_entry_flag=""
15285 else
15286 # If we're using GNU nm, then we don't want the "-C" option.
15287 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15288 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15289 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'
15290 else
15291 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'
15292 fi
15293 aix_use_runtimelinking=no
15294
15295 # Test if we are trying to use run time linking or normal
15296 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15297 # need to do runtime linking.
15298 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15299 for ld_flag in $LDFLAGS; do
15300 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15301 aix_use_runtimelinking=yes
15302 break
15303 fi
15304 done
15305 esac
15306
15307 exp_sym_flag='-bexport'
15308 no_entry_flag='-bnoentry'
15309 fi
15310
15311 # When large executables or shared objects are built, AIX ld can
15312 # have problems creating the table of contents. If linking a library
15313 # or program results in "error TOC overflow" add -mminimal-toc to
15314 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15315 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15316
15317 archive_cmds_GCJ=''
15318 hardcode_direct_GCJ=yes
15319 hardcode_libdir_separator_GCJ=':'
15320 link_all_deplibs_GCJ=yes
15321
15322 if test "$GCC" = yes; then
15323 case $host_os in aix4.012|aix4.012.*)
15324 # We only want to do this on AIX 4.2 and lower, the check
15325 # below for broken collect2 doesn't work under 4.3+
15326 collect2name=`${CC} -print-prog-name=collect2`
15327 if test -f "$collect2name" && \
15328 strings "$collect2name" | grep resolve_lib_name >/dev/null
15329 then
15330 # We have reworked collect2
15331 hardcode_direct_GCJ=yes
15332 else
15333 # We have old collect2
15334 hardcode_direct_GCJ=unsupported
15335 # It fails to find uninstalled libraries when the uninstalled
15336 # path is not listed in the libpath. Setting hardcode_minus_L
15337 # to unsupported forces relinking
15338 hardcode_minus_L_GCJ=yes
15339 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15340 hardcode_libdir_separator_GCJ=
15341 fi
15342 esac
15343 shared_flag='-shared'
15344 else
15345 # not using gcc
15346 if test "$host_cpu" = ia64; then
15347 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15348 # chokes on -Wl,-G. The following line is correct:
15349 shared_flag='-G'
15350 else
15351 if test "$aix_use_runtimelinking" = yes; then
15352 shared_flag='${wl}-G'
15353 else
15354 shared_flag='${wl}-bM:SRE'
15355 fi
15356 fi
15357 fi
15358
15359 # It seems that -bexpall does not export symbols beginning with
15360 # underscore (_), so it is better to generate a list of symbols to export.
15361 always_export_symbols_GCJ=yes
15362 if test "$aix_use_runtimelinking" = yes; then
15363 # Warning - without using the other runtime loading flags (-brtl),
15364 # -berok will link without error, but may produce a broken library.
15365 allow_undefined_flag_GCJ='-berok'
15366 # Determine the default libpath from the value encoded in an empty executable.
15367 cat >conftest.$ac_ext <<_ACEOF
15368#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000015369/* confdefs.h. */
15370_ACEOF
15371cat confdefs.h >>conftest.$ac_ext
15372cat >>conftest.$ac_ext <<_ACEOF
15373/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000015374
John Criswell47fdd832003-07-14 16:52:07 +000015375int
15376main ()
15377{
15378
15379 ;
15380 return 0;
15381}
15382_ACEOF
15383rm -f conftest.$ac_objext conftest$ac_exeext
15384if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15385 (eval $ac_link) 2>&5
15386 ac_status=$?
15387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15388 (exit $ac_status); } &&
15389 { ac_try='test -s conftest$ac_exeext'
15390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15391 (eval $ac_try) 2>&5
15392 ac_status=$?
15393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15394 (exit $ac_status); }; }; then
15395
15396aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15397}'`
15398# Check for a 64-bit object if we didn't find anything.
15399if 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; }
15400}'`; fi
15401else
15402 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015403sed 's/^/| /' conftest.$ac_ext >&5
15404
John Criswell47fdd832003-07-14 16:52:07 +000015405fi
15406rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15407if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15408
15409 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15410 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"
15411 else
15412 if test "$host_cpu" = ia64; then
15413 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
15414 allow_undefined_flag_GCJ="-z nodefs"
15415 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"
15416 else
15417 # Determine the default libpath from the value encoded in an empty executable.
15418 cat >conftest.$ac_ext <<_ACEOF
15419#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000015420/* confdefs.h. */
15421_ACEOF
15422cat confdefs.h >>conftest.$ac_ext
15423cat >>conftest.$ac_ext <<_ACEOF
15424/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000015425
John Criswell47fdd832003-07-14 16:52:07 +000015426int
15427main ()
15428{
15429
15430 ;
15431 return 0;
15432}
15433_ACEOF
15434rm -f conftest.$ac_objext conftest$ac_exeext
15435if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15436 (eval $ac_link) 2>&5
15437 ac_status=$?
15438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15439 (exit $ac_status); } &&
15440 { ac_try='test -s conftest$ac_exeext'
15441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15442 (eval $ac_try) 2>&5
15443 ac_status=$?
15444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15445 (exit $ac_status); }; }; then
15446
15447aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15448}'`
15449# Check for a 64-bit object if we didn't find anything.
15450if 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; }
15451}'`; fi
15452else
15453 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015454sed 's/^/| /' conftest.$ac_ext >&5
15455
John Criswell47fdd832003-07-14 16:52:07 +000015456fi
15457rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15458if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15459
15460 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15461 # Warning - without using the other run time loading flags,
15462 # -berok will link without error, but may produce a broken library.
15463 no_undefined_flag_GCJ=' ${wl}-bernotok'
15464 allow_undefined_flag_GCJ=' ${wl}-berok'
15465 # -bexpall does not export symbols beginning with underscore (_)
15466 always_export_symbols_GCJ=yes
15467 # Exported symbols can be pulled into shared objects from archives
15468 whole_archive_flag_spec_GCJ=' '
15469 archive_cmds_need_lc_GCJ=yes
15470 # This is similar to how AIX traditionally builds it's shared libraries.
15471 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'
15472 fi
15473 fi
15474 ;;
15475
15476 amigaos*)
15477 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)'
15478 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15479 hardcode_minus_L_GCJ=yes
15480 # see comment about different semantics on the GNU ld section
15481 ld_shlibs_GCJ=no
15482 ;;
15483
15484 bsdi4*)
15485 export_dynamic_flag_spec_GCJ=-rdynamic
15486 ;;
15487
15488 cygwin* | mingw* | pw32*)
15489 # When not using gcc, we currently assume that we are using
15490 # Microsoft Visual C++.
15491 # hardcode_libdir_flag_spec is actually meaningless, as there is
15492 # no search path for DLLs.
15493 hardcode_libdir_flag_spec_GCJ=' '
15494 allow_undefined_flag_GCJ=unsupported
15495 # Tell ltmain to make .lib files, not .a files.
15496 libext=lib
15497 # Tell ltmain to make .dll files, not .so files.
15498 shrext=".dll"
15499 # FIXME: Setting linknames here is a bad hack.
15500 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15501 # The linker will automatically build a .lib file if we build a DLL.
15502 old_archive_From_new_cmds_GCJ='true'
15503 # FIXME: Should let the user specify the lib program.
15504 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
15505 fix_srcfile_path='`cygpath -w "$srcfile"`'
15506 enable_shared_with_static_runtimes_GCJ=yes
15507 ;;
15508
15509 darwin* | rhapsody*)
15510 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
15511 archive_cmds_need_lc_GCJ=no
15512 case "$host_os" in
15513 rhapsody* | darwin1.[012])
15514 allow_undefined_flag_GCJ='-undefined suppress'
15515 ;;
15516 *) # Darwin 1.3 on
15517 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15518 ;;
15519 esac
15520 # FIXME: Relying on posixy $() will cause problems for
15521 # cross-compilation, but unfortunately the echo tests do not
15522 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
15523 # `"' quotes if we put them in here... so don't!
15524 lt_int_apple_cc_single_mod=no
15525 output_verbose_link_cmd='echo'
15526 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15527 lt_int_apple_cc_single_mod=yes
15528 fi
15529 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15530 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15531 else
15532 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'
15533 fi
15534 module_cmds_GCJ='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
15535 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15536 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15537 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}'
15538 else
15539 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}'
15540 fi
15541 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}'
15542 hardcode_direct_GCJ=no
15543 hardcode_automatic_GCJ=yes
15544 hardcode_shlibpath_var_GCJ=unsupported
15545 whole_archive_flag_spec_GCJ='-all_load $convenience'
15546 link_all_deplibs_GCJ=yes
15547 fi
15548 ;;
15549
15550 dgux*)
15551 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15552 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15553 hardcode_shlibpath_var_GCJ=no
15554 ;;
15555
15556 freebsd1*)
15557 ld_shlibs_GCJ=no
15558 ;;
15559
15560 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15561 # support. Future versions do this automatically, but an explicit c++rt0.o
15562 # does not break anything, and helps significantly (at the cost of a little
15563 # extra space).
15564 freebsd2.2*)
15565 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15566 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15567 hardcode_direct_GCJ=yes
15568 hardcode_shlibpath_var_GCJ=no
15569 ;;
15570
15571 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15572 freebsd2*)
15573 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15574 hardcode_direct_GCJ=yes
15575 hardcode_minus_L_GCJ=yes
15576 hardcode_shlibpath_var_GCJ=no
15577 ;;
15578
15579 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15580 freebsd*)
15581 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15582 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15583 hardcode_direct_GCJ=yes
15584 hardcode_shlibpath_var_GCJ=no
15585 ;;
15586
15587 hpux9*)
15588 if test "$GCC" = yes; then
15589 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'
15590 else
15591 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'
15592 fi
15593 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15594 hardcode_libdir_separator_GCJ=:
15595 hardcode_direct_GCJ=yes
15596
15597 # hardcode_minus_L: Not really in the search PATH,
15598 # but as the default location of the library.
15599 hardcode_minus_L_GCJ=yes
15600 export_dynamic_flag_spec_GCJ='${wl}-E'
15601 ;;
15602
15603 hpux10* | hpux11*)
15604 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15605 case "$host_cpu" in
15606 hppa*64*|ia64*)
15607 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15608 ;;
15609 *)
15610 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15611 ;;
15612 esac
15613 else
15614 case "$host_cpu" in
15615 hppa*64*|ia64*)
15616 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15617 ;;
15618 *)
15619 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15620 ;;
15621 esac
15622 fi
15623 if test "$with_gnu_ld" = no; then
15624 case "$host_cpu" in
15625 hppa*64*)
15626 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15627 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
15628 hardcode_libdir_separator_GCJ=:
15629 hardcode_direct_GCJ=no
15630 hardcode_shlibpath_var_GCJ=no
15631 ;;
15632 ia64*)
15633 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15634 hardcode_direct_GCJ=no
15635 hardcode_shlibpath_var_GCJ=no
15636
15637 # hardcode_minus_L: Not really in the search PATH,
15638 # but as the default location of the library.
15639 hardcode_minus_L_GCJ=yes
15640 ;;
15641 *)
15642 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15643 hardcode_libdir_separator_GCJ=:
15644 hardcode_direct_GCJ=yes
15645 export_dynamic_flag_spec_GCJ='${wl}-E'
15646
15647 # hardcode_minus_L: Not really in the search PATH,
15648 # but as the default location of the library.
15649 hardcode_minus_L_GCJ=yes
15650 ;;
15651 esac
15652 fi
15653 ;;
15654
15655 irix5* | irix6* | nonstopux*)
15656 if test "$GCC" = yes; then
15657 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'
15658 else
15659 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'
15660 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
15661 fi
15662 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15663 hardcode_libdir_separator_GCJ=:
15664 link_all_deplibs_GCJ=yes
15665 ;;
15666
15667 netbsd*)
15668 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15669 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15670 else
15671 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15672 fi
15673 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15674 hardcode_direct_GCJ=yes
15675 hardcode_shlibpath_var_GCJ=no
15676 ;;
15677
15678 newsos6)
15679 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15680 hardcode_direct_GCJ=yes
15681 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15682 hardcode_libdir_separator_GCJ=:
15683 hardcode_shlibpath_var_GCJ=no
15684 ;;
15685
15686 openbsd*)
15687 hardcode_direct_GCJ=yes
15688 hardcode_shlibpath_var_GCJ=no
15689 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15690 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15691 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15692 export_dynamic_flag_spec_GCJ='${wl}-E'
15693 else
15694 case $host_os in
15695 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15696 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15697 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15698 ;;
15699 *)
15700 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15701 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15702 ;;
15703 esac
15704 fi
15705 ;;
15706
15707 os2*)
15708 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15709 hardcode_minus_L_GCJ=yes
15710 allow_undefined_flag_GCJ=unsupported
15711 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'
15712 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15713 ;;
15714
15715 osf3*)
15716 if test "$GCC" = yes; then
15717 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
15718 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'
15719 else
15720 allow_undefined_flag_GCJ=' -expect_unresolved \*'
15721 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'
15722 fi
15723 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15724 hardcode_libdir_separator_GCJ=:
15725 ;;
15726
15727 osf4* | osf5*) # as osf3* with the addition of -msym flag
15728 if test "$GCC" = yes; then
15729 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
15730 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'
15731 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15732 else
15733 allow_undefined_flag_GCJ=' -expect_unresolved \*'
15734 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'
15735 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~
15736 $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'
15737
15738 # Both c and cxx compiler support -rpath directly
15739 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
15740 fi
15741 hardcode_libdir_separator_GCJ=:
15742 ;;
15743
15744 sco3.2v5*)
15745 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15746 hardcode_shlibpath_var_GCJ=no
15747 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
15748 runpath_var=LD_RUN_PATH
15749 hardcode_runpath_var=yes
15750 ;;
15751
15752 solaris*)
15753 no_undefined_flag_GCJ=' -z text'
15754 if test "$GCC" = yes; then
15755 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15756 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15757 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15758 else
15759 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15760 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15761 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15762 fi
15763 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15764 hardcode_shlibpath_var_GCJ=no
15765 case $host_os in
15766 solaris2.[0-5] | solaris2.[0-5].*) ;;
15767 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
15768 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
15769 esac
15770 link_all_deplibs_GCJ=yes
15771 ;;
15772
15773 sunos4*)
15774 if test "x$host_vendor" = xsequent; then
15775 # Use $CC to link under sequent, because it throws in some extra .o
15776 # files that make .init and .fini sections work.
15777 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15778 else
15779 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15780 fi
15781 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15782 hardcode_direct_GCJ=yes
15783 hardcode_minus_L_GCJ=yes
15784 hardcode_shlibpath_var_GCJ=no
15785 ;;
15786
15787 sysv4)
15788 case $host_vendor in
15789 sni)
15790 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15791 hardcode_direct_GCJ=yes # is this really true???
15792 ;;
15793 siemens)
15794 ## LD is ld it makes a PLAMLIB
15795 ## CC just makes a GrossModule.
15796 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15797 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
15798 hardcode_direct_GCJ=no
15799 ;;
15800 motorola)
15801 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15802 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
15803 ;;
15804 esac
15805 runpath_var='LD_RUN_PATH'
15806 hardcode_shlibpath_var_GCJ=no
15807 ;;
15808
15809 sysv4.3*)
15810 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15811 hardcode_shlibpath_var_GCJ=no
15812 export_dynamic_flag_spec_GCJ='-Bexport'
15813 ;;
15814
15815 sysv4*MP*)
15816 if test -d /usr/nec; then
15817 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15818 hardcode_shlibpath_var_GCJ=no
15819 runpath_var=LD_RUN_PATH
15820 hardcode_runpath_var=yes
15821 ld_shlibs_GCJ=yes
15822 fi
15823 ;;
15824
15825 sysv4.2uw2*)
15826 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15827 hardcode_direct_GCJ=yes
15828 hardcode_minus_L_GCJ=no
15829 hardcode_shlibpath_var_GCJ=no
15830 hardcode_runpath_var=yes
15831 runpath_var=LD_RUN_PATH
15832 ;;
15833
15834 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
15835 no_undefined_flag_GCJ='${wl}-z ${wl}text'
15836 if test "$GCC" = yes; then
15837 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15838 else
15839 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15840 fi
15841 runpath_var='LD_RUN_PATH'
15842 hardcode_shlibpath_var_GCJ=no
15843 ;;
15844
15845 sysv5*)
15846 no_undefined_flag_GCJ=' -z text'
15847 # $CC -shared without GNU ld will not create a library from C++
15848 # object files and a static libstdc++, better avoid it by now
15849 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15850 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15851 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15852 hardcode_libdir_flag_spec_GCJ=
15853 hardcode_shlibpath_var_GCJ=no
15854 runpath_var='LD_RUN_PATH'
15855 ;;
15856
15857 uts4*)
15858 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15859 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15860 hardcode_shlibpath_var_GCJ=no
15861 ;;
15862
15863 *)
15864 ld_shlibs_GCJ=no
15865 ;;
15866 esac
15867 fi
15868
15869echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
15870echo "${ECHO_T}$ld_shlibs_GCJ" >&6
15871test "$ld_shlibs_GCJ" = no && can_build_shared=no
15872
15873variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15874if test "$GCC" = yes; then
15875 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15876fi
15877
15878#
15879# Do we need to explicitly link libc?
15880#
15881case "x$archive_cmds_need_lc_GCJ" in
15882x|xyes)
15883 # Assume -lc should be added
15884 archive_cmds_need_lc_GCJ=yes
15885
15886 if test "$enable_shared" = yes && test "$GCC" = yes; then
15887 case $archive_cmds_GCJ in
15888 *'~'*)
15889 # FIXME: we may have to deal with multi-command sequences.
15890 ;;
15891 '$CC '*)
15892 # Test whether the compiler implicitly links with -lc since on some
15893 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15894 # to ld, don't add -lc before -lgcc.
15895 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15896echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
15897 $rm conftest*
15898 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15899
15900 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15901 (eval $ac_compile) 2>&5
15902 ac_status=$?
15903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15904 (exit $ac_status); } 2>conftest.err; then
15905 soname=conftest
15906 lib=conftest
15907 libobjs=conftest.$ac_objext
15908 deplibs=
15909 wl=$lt_prog_compiler_wl_GCJ
15910 compiler_flags=-v
15911 linker_flags=-v
15912 verstring=
15913 output_objdir=.
15914 libname=conftest
15915 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
15916 allow_undefined_flag_GCJ=
15917 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15918 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15919 ac_status=$?
15920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15921 (exit $ac_status); }
15922 then
15923 archive_cmds_need_lc_GCJ=no
15924 else
15925 archive_cmds_need_lc_GCJ=yes
15926 fi
15927 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
15928 else
15929 cat conftest.err 1>&5
15930 fi
15931 $rm conftest*
15932 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
15933echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
15934 ;;
15935 esac
15936 fi
15937 ;;
15938esac
15939
15940echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15941echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15942hardcode_action_GCJ=
15943if test -n "$hardcode_libdir_flag_spec_GCJ" || \
15944 test -n "$runpath_var GCJ" || \
15945 test "X$hardcode_automatic_GCJ"="Xyes" ; then
15946
15947 # We can hardcode non-existant directories.
15948 if test "$hardcode_direct_GCJ" != no &&
15949 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15950 # have to relink, otherwise we might link with an installed library
15951 # when we should be linking with a yet-to-be-installed one
15952 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
15953 test "$hardcode_minus_L_GCJ" != no; then
15954 # Linking always hardcodes the temporary library directory.
15955 hardcode_action_GCJ=relink
15956 else
15957 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15958 hardcode_action_GCJ=immediate
15959 fi
15960else
15961 # We cannot hardcode anything, or else we can only hardcode existing
15962 # directories.
15963 hardcode_action_GCJ=unsupported
15964fi
15965echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
15966echo "${ECHO_T}$hardcode_action_GCJ" >&6
15967
15968if test "$hardcode_action_GCJ" = relink; then
15969 # Fast installation is not supported
15970 enable_fast_install=no
15971elif test "$shlibpath_overrides_runpath" = yes ||
15972 test "$enable_shared" = no; then
15973 # Fast installation is not necessary
15974 enable_fast_install=needless
15975fi
15976
15977striplib=
15978old_striplib=
15979echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15980echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15981if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15982 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15983 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15984 echo "$as_me:$LINENO: result: yes" >&5
15985echo "${ECHO_T}yes" >&6
15986else
15987# FIXME - insert some real tests, host_os isn't really good enough
15988 case $host_os in
15989 darwin*)
15990 if test -n "$STRIP" ; then
15991 striplib="$STRIP -x"
15992 echo "$as_me:$LINENO: result: yes" >&5
15993echo "${ECHO_T}yes" >&6
15994 else
15995 echo "$as_me:$LINENO: result: no" >&5
15996echo "${ECHO_T}no" >&6
15997fi
15998 ;;
15999 *)
16000 echo "$as_me:$LINENO: result: no" >&5
16001echo "${ECHO_T}no" >&6
16002 ;;
16003 esac
16004fi
16005
16006echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16007echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16008library_names_spec=
16009libname_spec='lib$name'
16010soname_spec=
16011shrext=".so"
16012postinstall_cmds=
16013postuninstall_cmds=
16014finish_cmds=
16015finish_eval=
16016shlibpath_var=
16017shlibpath_overrides_runpath=unknown
16018version_type=none
16019dynamic_linker="$host_os ld.so"
16020sys_lib_dlsearch_path_spec="/lib /usr/lib"
16021if test "$GCC" = yes; then
16022 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16023 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16024 # if the path contains ";" then we assume it to be the separator
16025 # otherwise default to the standard path separator (i.e. ":") - it is
16026 # assumed that no part of a normal pathname contains ";" but that should
16027 # okay in the real world where ";" in dirpaths is itself problematic.
16028 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16029 else
16030 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16031 fi
16032else
16033 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16034fi
16035need_lib_prefix=unknown
16036hardcode_into_libs=no
16037
16038# when you set need_version to no, make sure it does not cause -set_version
16039# flags to be left without arguments
16040need_version=unknown
16041
16042case $host_os in
16043aix3*)
16044 version_type=linux
16045 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16046 shlibpath_var=LIBPATH
16047
16048 # AIX 3 has no versioning support, so we append a major version to the name.
16049 soname_spec='${libname}${release}${shared_ext}$major'
16050 ;;
16051
16052aix4* | aix5*)
16053 version_type=linux
16054 need_lib_prefix=no
16055 need_version=no
16056 hardcode_into_libs=yes
16057 if test "$host_cpu" = ia64; then
16058 # AIX 5 supports IA64
16059 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16060 shlibpath_var=LD_LIBRARY_PATH
16061 else
16062 # With GCC up to 2.95.x, collect2 would create an import file
16063 # for dependence libraries. The import file would start with
16064 # the line `#! .'. This would cause the generated library to
16065 # depend on `.', always an invalid library. This was fixed in
16066 # development snapshots of GCC prior to 3.0.
16067 case $host_os in
16068 aix4 | aix4.[01] | aix4.[01].*)
16069 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16070 echo ' yes '
16071 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16072 :
16073 else
16074 can_build_shared=no
16075 fi
16076 ;;
16077 esac
16078 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16079 # soname into executable. Probably we can add versioning support to
16080 # collect2, so additional links can be useful in future.
16081 if test "$aix_use_runtimelinking" = yes; then
16082 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16083 # instead of lib<name>.a to let people know that these are not
16084 # typical AIX shared libraries.
16085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16086 else
16087 # We preserve .a as extension for shared libraries through AIX4.2
16088 # and later when we are not doing run time linking.
16089 library_names_spec='${libname}${release}.a $libname.a'
16090 soname_spec='${libname}${release}${shared_ext}$major'
16091 fi
16092 shlibpath_var=LIBPATH
16093 fi
16094 ;;
16095
16096amigaos*)
16097 library_names_spec='$libname.ixlibrary $libname.a'
16098 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16099 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'
16100 ;;
16101
16102beos*)
16103 library_names_spec='${libname}${shared_ext}'
16104 dynamic_linker="$host_os ld.so"
16105 shlibpath_var=LIBRARY_PATH
16106 ;;
16107
16108bsdi4*)
16109 version_type=linux
16110 need_version=no
16111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16112 soname_spec='${libname}${release}${shared_ext}$major'
16113 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16114 shlibpath_var=LD_LIBRARY_PATH
16115 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16116 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16117 # the default ld.so.conf also contains /usr/contrib/lib and
16118 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16119 # libtool to hard-code these into programs
16120 ;;
16121
16122cygwin* | mingw* | pw32*)
16123 version_type=windows
16124 shrext=".dll"
16125 need_version=no
16126 need_lib_prefix=no
16127
16128 case $GCC,$host_os in
16129 yes,cygwin* | yes,mingw* | yes,pw32*)
16130 library_names_spec='$libname.dll.a'
16131 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16132 postinstall_cmds='base_file=`basename \${file}`~
16133 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16134 dldir=$destdir/`dirname \$dlpath`~
16135 test -d \$dldir || mkdir -p \$dldir~
16136 $install_prog $dir/$dlname \$dldir/$dlname'
16137 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16138 dlpath=$dir/\$dldll~
16139 $rm \$dlpath'
16140 shlibpath_overrides_runpath=yes
16141
16142 case $host_os in
16143 cygwin*)
16144 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16145 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16146 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
16147 ;;
16148 mingw*)
16149 # MinGW DLLs use traditional 'lib' prefix
16150 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16151 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16152 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16153 # It is most probably a Windows format PATH printed by
16154 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16155 # path with ; separators, and with drive letters. We can handle the
16156 # drive letters (cygwin fileutils understands them), so leave them,
16157 # especially as we might pass files found there to a mingw objdump,
16158 # which wouldn't understand a cygwinified path. Ahh.
16159 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16160 else
16161 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16162 fi
16163 ;;
16164 pw32*)
16165 # pw32 DLLs use 'pw' prefix rather than 'lib'
16166 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16167 ;;
16168 esac
16169 ;;
16170
16171 *)
16172 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16173 ;;
16174 esac
16175 dynamic_linker='Win32 ld.exe'
16176 # FIXME: first we should search . and the directory the executable is in
16177 shlibpath_var=PATH
16178 ;;
16179
16180darwin* | rhapsody*)
16181 dynamic_linker="$host_os dyld"
16182 version_type=darwin
16183 need_lib_prefix=no
16184 need_version=no
16185 # FIXME: Relying on posixy $() will cause problems for
16186 # cross-compilation, but unfortunately the echo tests do not
16187 # yet detect zsh echo's removal of \ escapes.
16188 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16189 soname_spec='${libname}${release}${major}$shared_ext'
16190 shlibpath_overrides_runpath=yes
16191 shlibpath_var=DYLD_LIBRARY_PATH
16192 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
16193 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16194 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
16195 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"`
16196 fi
16197 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16198 ;;
16199
16200dgux*)
16201 version_type=linux
16202 need_lib_prefix=no
16203 need_version=no
16204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16205 soname_spec='${libname}${release}${shared_ext}$major'
16206 shlibpath_var=LD_LIBRARY_PATH
16207 ;;
16208
16209freebsd1*)
16210 dynamic_linker=no
16211 ;;
16212
16213freebsd*)
16214 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16215 version_type=freebsd-$objformat
16216 case $version_type in
16217 freebsd-elf*)
16218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16219 need_version=no
16220 need_lib_prefix=no
16221 ;;
16222 freebsd-*)
16223 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16224 need_version=yes
16225 ;;
16226 esac
16227 shlibpath_var=LD_LIBRARY_PATH
16228 case $host_os in
16229 freebsd2*)
16230 shlibpath_overrides_runpath=yes
16231 ;;
16232 freebsd3.01* | freebsdelf3.01*)
16233 shlibpath_overrides_runpath=yes
16234 hardcode_into_libs=yes
16235 ;;
16236 *) # from 3.2 on
16237 shlibpath_overrides_runpath=no
16238 hardcode_into_libs=yes
16239 ;;
16240 esac
16241 ;;
16242
16243gnu*)
16244 version_type=linux
16245 need_lib_prefix=no
16246 need_version=no
16247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16248 soname_spec='${libname}${release}${shared_ext}$major'
16249 shlibpath_var=LD_LIBRARY_PATH
16250 hardcode_into_libs=yes
16251 ;;
16252
16253hpux9* | hpux10* | hpux11*)
16254 # Give a soname corresponding to the major version so that dld.sl refuses to
16255 # link against other versions.
16256 version_type=sunos
16257 need_lib_prefix=no
16258 need_version=no
16259 case "$host_cpu" in
16260 ia64*)
16261 shrext='.so'
16262 hardcode_into_libs=yes
16263 dynamic_linker="$host_os dld.so"
16264 shlibpath_var=LD_LIBRARY_PATH
16265 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16267 soname_spec='${libname}${release}${shared_ext}$major'
16268 if test "X$HPUX_IA64_MODE" = X32; then
16269 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16270 else
16271 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16272 fi
16273 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16274 ;;
16275 hppa*64*)
16276 shrext='.sl'
16277 hardcode_into_libs=yes
16278 dynamic_linker="$host_os dld.sl"
16279 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16280 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16282 soname_spec='${libname}${release}${shared_ext}$major'
16283 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16284 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16285 ;;
16286 *)
16287 shrext='.sl'
16288 dynamic_linker="$host_os dld.sl"
16289 shlibpath_var=SHLIB_PATH
16290 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16292 soname_spec='${libname}${release}${shared_ext}$major'
16293 ;;
16294 esac
16295 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16296 postinstall_cmds='chmod 555 $lib'
16297 ;;
16298
16299irix5* | irix6* | nonstopux*)
16300 case $host_os in
16301 nonstopux*) version_type=nonstopux ;;
16302 *)
16303 if test "$lt_cv_prog_gnu_ld" = yes; then
16304 version_type=linux
16305 else
16306 version_type=irix
16307 fi ;;
16308 esac
16309 need_lib_prefix=no
16310 need_version=no
16311 soname_spec='${libname}${release}${shared_ext}$major'
16312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16313 case $host_os in
16314 irix5* | nonstopux*)
16315 libsuff= shlibsuff=
16316 ;;
16317 *)
16318 case $LD in # libtool.m4 will add one of these switches to LD
16319 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16320 libsuff= shlibsuff= libmagic=32-bit;;
16321 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16322 libsuff=32 shlibsuff=N32 libmagic=N32;;
16323 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16324 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16325 *) libsuff= shlibsuff= libmagic=never-match;;
16326 esac
16327 ;;
16328 esac
16329 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16330 shlibpath_overrides_runpath=no
16331 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16332 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16333 hardcode_into_libs=yes
16334 ;;
16335
16336# No shared lib support for Linux oldld, aout, or coff.
16337linux*oldld* | linux*aout* | linux*coff*)
16338 dynamic_linker=no
16339 ;;
16340
16341# This must be Linux ELF.
16342linux*)
16343 version_type=linux
16344 need_lib_prefix=no
16345 need_version=no
16346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16347 soname_spec='${libname}${release}${shared_ext}$major'
16348 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16349 shlibpath_var=LD_LIBRARY_PATH
16350 shlibpath_overrides_runpath=no
16351 # This implies no fast_install, which is unacceptable.
16352 # Some rework will be needed to allow for fast_install
16353 # before this can be enabled.
16354 hardcode_into_libs=yes
16355
16356 # We used to test for /lib/ld.so.1 and disable shared libraries on
16357 # powerpc, because MkLinux only supported shared libraries with the
16358 # GNU dynamic linker. Since this was broken with cross compilers,
16359 # most powerpc-linux boxes support dynamic linking these days and
16360 # people can always --disable-shared, the test was removed, and we
16361 # assume the GNU/Linux dynamic linker is in use.
16362 dynamic_linker='GNU/Linux ld.so'
16363 ;;
16364
16365netbsd*)
16366 version_type=sunos
16367 need_lib_prefix=no
16368 need_version=no
16369 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16371 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16372 dynamic_linker='NetBSD (a.out) ld.so'
16373 else
16374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
16375 soname_spec='${libname}${release}${shared_ext}$major'
16376 dynamic_linker='NetBSD ld.elf_so'
16377 fi
16378 shlibpath_var=LD_LIBRARY_PATH
16379 shlibpath_overrides_runpath=yes
16380 hardcode_into_libs=yes
16381 ;;
16382
16383newsos6)
16384 version_type=linux
16385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16386 shlibpath_var=LD_LIBRARY_PATH
16387 shlibpath_overrides_runpath=yes
16388 ;;
16389
16390nto-qnx)
16391 version_type=linux
16392 need_lib_prefix=no
16393 need_version=no
16394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16395 soname_spec='${libname}${release}${shared_ext}$major'
16396 shlibpath_var=LD_LIBRARY_PATH
16397 shlibpath_overrides_runpath=yes
16398 ;;
16399
16400openbsd*)
16401 version_type=sunos
16402 need_lib_prefix=no
16403 need_version=no
16404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16405 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16406 shlibpath_var=LD_LIBRARY_PATH
16407 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16408 case $host_os in
16409 openbsd2.[89] | openbsd2.[89].*)
16410 shlibpath_overrides_runpath=no
16411 ;;
16412 *)
16413 shlibpath_overrides_runpath=yes
16414 ;;
16415 esac
16416 else
16417 shlibpath_overrides_runpath=yes
16418 fi
16419 ;;
16420
16421os2*)
16422 libname_spec='$name'
16423 shrext=".dll"
16424 need_lib_prefix=no
16425 library_names_spec='$libname${shared_ext} $libname.a'
16426 dynamic_linker='OS/2 ld.exe'
16427 shlibpath_var=LIBPATH
16428 ;;
16429
16430osf3* | osf4* | osf5*)
16431 version_type=osf
16432 need_lib_prefix=no
16433 need_version=no
16434 soname_spec='${libname}${release}${shared_ext}$major'
16435 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16436 shlibpath_var=LD_LIBRARY_PATH
16437 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16438 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16439 ;;
16440
16441sco3.2v5*)
16442 version_type=osf
16443 soname_spec='${libname}${release}${shared_ext}$major'
16444 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16445 shlibpath_var=LD_LIBRARY_PATH
16446 ;;
16447
16448solaris*)
16449 version_type=linux
16450 need_lib_prefix=no
16451 need_version=no
16452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16453 soname_spec='${libname}${release}${shared_ext}$major'
16454 shlibpath_var=LD_LIBRARY_PATH
16455 shlibpath_overrides_runpath=yes
16456 hardcode_into_libs=yes
16457 # ldd complains unless libraries are executable
16458 postinstall_cmds='chmod +x $lib'
16459 ;;
16460
16461sunos4*)
16462 version_type=sunos
16463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16464 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16465 shlibpath_var=LD_LIBRARY_PATH
16466 shlibpath_overrides_runpath=yes
16467 if test "$with_gnu_ld" = yes; then
16468 need_lib_prefix=no
16469 fi
16470 need_version=yes
16471 ;;
16472
16473sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16474 version_type=linux
16475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16476 soname_spec='${libname}${release}${shared_ext}$major'
16477 shlibpath_var=LD_LIBRARY_PATH
16478 case $host_vendor in
16479 sni)
16480 shlibpath_overrides_runpath=no
16481 need_lib_prefix=no
16482 export_dynamic_flag_spec='${wl}-Blargedynsym'
16483 runpath_var=LD_RUN_PATH
16484 ;;
16485 siemens)
16486 need_lib_prefix=no
16487 ;;
16488 motorola)
16489 need_lib_prefix=no
16490 need_version=no
16491 shlibpath_overrides_runpath=no
16492 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16493 ;;
16494 esac
16495 ;;
16496
16497sysv4*MP*)
16498 if test -d /usr/nec ;then
16499 version_type=linux
16500 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16501 soname_spec='$libname${shared_ext}.$major'
16502 shlibpath_var=LD_LIBRARY_PATH
16503 fi
16504 ;;
16505
16506uts4*)
16507 version_type=linux
16508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16509 soname_spec='${libname}${release}${shared_ext}$major'
16510 shlibpath_var=LD_LIBRARY_PATH
16511 ;;
16512
16513*)
16514 dynamic_linker=no
16515 ;;
16516esac
16517echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16518echo "${ECHO_T}$dynamic_linker" >&6
16519test "$dynamic_linker" = no && can_build_shared=no
16520
16521if test "x$enable_dlopen" != xyes; then
16522 enable_dlopen=unknown
16523 enable_dlopen_self=unknown
16524 enable_dlopen_self_static=unknown
16525else
16526 lt_cv_dlopen=no
16527 lt_cv_dlopen_libs=
16528
16529 case $host_os in
16530 beos*)
16531 lt_cv_dlopen="load_add_on"
16532 lt_cv_dlopen_libs=
16533 lt_cv_dlopen_self=yes
16534 ;;
16535
16536 mingw* | pw32*)
16537 lt_cv_dlopen="LoadLibrary"
16538 lt_cv_dlopen_libs=
16539 ;;
16540
16541 cygwin*)
16542 lt_cv_dlopen="dlopen"
16543 lt_cv_dlopen_libs=
16544 ;;
16545
16546 darwin*)
16547 # if libdl is installed we need to link against it
16548 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16549echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16550if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16551 echo $ECHO_N "(cached) $ECHO_C" >&6
16552else
16553 ac_check_lib_save_LIBS=$LIBS
16554LIBS="-ldl $LIBS"
16555cat >conftest.$ac_ext <<_ACEOF
16556#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000016557/* confdefs.h. */
16558_ACEOF
16559cat confdefs.h >>conftest.$ac_ext
16560cat >>conftest.$ac_ext <<_ACEOF
16561/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016562
16563/* Override any gcc2 internal prototype to avoid an error. */
16564#ifdef __cplusplus
16565extern "C"
16566#endif
16567/* We use char because int might match the return type of a gcc2
16568 builtin and then its argument prototype would still apply. */
16569char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000016570int
16571main ()
16572{
16573dlopen ();
16574 ;
16575 return 0;
16576}
16577_ACEOF
16578rm -f conftest.$ac_objext conftest$ac_exeext
16579if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16580 (eval $ac_link) 2>&5
16581 ac_status=$?
16582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16583 (exit $ac_status); } &&
16584 { ac_try='test -s conftest$ac_exeext'
16585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16586 (eval $ac_try) 2>&5
16587 ac_status=$?
16588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16589 (exit $ac_status); }; }; then
16590 ac_cv_lib_dl_dlopen=yes
16591else
16592 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016593sed 's/^/| /' conftest.$ac_ext >&5
16594
John Criswell47fdd832003-07-14 16:52:07 +000016595ac_cv_lib_dl_dlopen=no
16596fi
16597rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16598LIBS=$ac_check_lib_save_LIBS
16599fi
16600echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16601echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16602if test $ac_cv_lib_dl_dlopen = yes; then
16603 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16604else
16605
16606 lt_cv_dlopen="dyld"
16607 lt_cv_dlopen_libs=
16608 lt_cv_dlopen_self=yes
16609
16610fi
16611
16612 ;;
16613
16614 *)
16615 echo "$as_me:$LINENO: checking for shl_load" >&5
16616echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
16617if test "${ac_cv_func_shl_load+set}" = set; then
16618 echo $ECHO_N "(cached) $ECHO_C" >&6
16619else
16620 cat >conftest.$ac_ext <<_ACEOF
16621#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000016622/* confdefs.h. */
16623_ACEOF
16624cat confdefs.h >>conftest.$ac_ext
16625cat >>conftest.$ac_ext <<_ACEOF
16626/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016627/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000016628 which can conflict with char shl_load (); below.
16629 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16630 <limits.h> exists even on freestanding compilers. */
16631#ifdef __STDC__
16632# include <limits.h>
16633#else
16634# include <assert.h>
16635#endif
John Criswell47fdd832003-07-14 16:52:07 +000016636/* Override any gcc2 internal prototype to avoid an error. */
16637#ifdef __cplusplus
16638extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000016639{
John Criswell47fdd832003-07-14 16:52:07 +000016640#endif
16641/* We use char because int might match the return type of a gcc2
16642 builtin and then its argument prototype would still apply. */
16643char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000016644/* The GNU C library defines this for functions which it implements
16645 to always fail with ENOSYS. Some functions are actually named
16646 something starting with __ and the normal name is an alias. */
16647#if defined (__stub_shl_load) || defined (__stub___shl_load)
16648choke me
16649#else
John Criswell0c38eaf2003-09-10 15:17:25 +000016650char (*f) () = shl_load;
16651#endif
16652#ifdef __cplusplus
16653}
John Criswell47fdd832003-07-14 16:52:07 +000016654#endif
16655
John Criswell0c38eaf2003-09-10 15:17:25 +000016656int
16657main ()
16658{
16659return f != shl_load;
John Criswell47fdd832003-07-14 16:52:07 +000016660 ;
16661 return 0;
16662}
16663_ACEOF
16664rm -f conftest.$ac_objext conftest$ac_exeext
16665if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16666 (eval $ac_link) 2>&5
16667 ac_status=$?
16668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16669 (exit $ac_status); } &&
16670 { ac_try='test -s conftest$ac_exeext'
16671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16672 (eval $ac_try) 2>&5
16673 ac_status=$?
16674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16675 (exit $ac_status); }; }; then
16676 ac_cv_func_shl_load=yes
16677else
16678 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016679sed 's/^/| /' conftest.$ac_ext >&5
16680
John Criswell47fdd832003-07-14 16:52:07 +000016681ac_cv_func_shl_load=no
16682fi
16683rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16684fi
16685echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16686echo "${ECHO_T}$ac_cv_func_shl_load" >&6
16687if test $ac_cv_func_shl_load = yes; then
16688 lt_cv_dlopen="shl_load"
16689else
16690 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16691echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
16692if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16693 echo $ECHO_N "(cached) $ECHO_C" >&6
16694else
16695 ac_check_lib_save_LIBS=$LIBS
16696LIBS="-ldld $LIBS"
16697cat >conftest.$ac_ext <<_ACEOF
16698#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000016699/* confdefs.h. */
16700_ACEOF
16701cat confdefs.h >>conftest.$ac_ext
16702cat >>conftest.$ac_ext <<_ACEOF
16703/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016704
16705/* Override any gcc2 internal prototype to avoid an error. */
16706#ifdef __cplusplus
16707extern "C"
16708#endif
16709/* We use char because int might match the return type of a gcc2
16710 builtin and then its argument prototype would still apply. */
16711char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000016712int
16713main ()
16714{
16715shl_load ();
16716 ;
16717 return 0;
16718}
16719_ACEOF
16720rm -f conftest.$ac_objext conftest$ac_exeext
16721if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16722 (eval $ac_link) 2>&5
16723 ac_status=$?
16724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16725 (exit $ac_status); } &&
16726 { ac_try='test -s conftest$ac_exeext'
16727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16728 (eval $ac_try) 2>&5
16729 ac_status=$?
16730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16731 (exit $ac_status); }; }; then
16732 ac_cv_lib_dld_shl_load=yes
16733else
16734 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016735sed 's/^/| /' conftest.$ac_ext >&5
16736
John Criswell47fdd832003-07-14 16:52:07 +000016737ac_cv_lib_dld_shl_load=no
16738fi
16739rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16740LIBS=$ac_check_lib_save_LIBS
16741fi
16742echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16743echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
16744if test $ac_cv_lib_dld_shl_load = yes; then
16745 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16746else
16747 echo "$as_me:$LINENO: checking for dlopen" >&5
16748echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
16749if test "${ac_cv_func_dlopen+set}" = set; then
16750 echo $ECHO_N "(cached) $ECHO_C" >&6
16751else
16752 cat >conftest.$ac_ext <<_ACEOF
16753#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000016754/* confdefs.h. */
16755_ACEOF
16756cat confdefs.h >>conftest.$ac_ext
16757cat >>conftest.$ac_ext <<_ACEOF
16758/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016759/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000016760 which can conflict with char dlopen (); below.
16761 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16762 <limits.h> exists even on freestanding compilers. */
16763#ifdef __STDC__
16764# include <limits.h>
16765#else
16766# include <assert.h>
16767#endif
John Criswell47fdd832003-07-14 16:52:07 +000016768/* Override any gcc2 internal prototype to avoid an error. */
16769#ifdef __cplusplus
16770extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000016771{
John Criswell47fdd832003-07-14 16:52:07 +000016772#endif
16773/* We use char because int might match the return type of a gcc2
16774 builtin and then its argument prototype would still apply. */
16775char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000016776/* The GNU C library defines this for functions which it implements
16777 to always fail with ENOSYS. Some functions are actually named
16778 something starting with __ and the normal name is an alias. */
16779#if defined (__stub_dlopen) || defined (__stub___dlopen)
16780choke me
16781#else
John Criswell0c38eaf2003-09-10 15:17:25 +000016782char (*f) () = dlopen;
16783#endif
16784#ifdef __cplusplus
16785}
John Criswell47fdd832003-07-14 16:52:07 +000016786#endif
16787
John Criswell0c38eaf2003-09-10 15:17:25 +000016788int
16789main ()
16790{
16791return f != dlopen;
John Criswell47fdd832003-07-14 16:52:07 +000016792 ;
16793 return 0;
16794}
16795_ACEOF
16796rm -f conftest.$ac_objext conftest$ac_exeext
16797if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16798 (eval $ac_link) 2>&5
16799 ac_status=$?
16800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16801 (exit $ac_status); } &&
16802 { ac_try='test -s conftest$ac_exeext'
16803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16804 (eval $ac_try) 2>&5
16805 ac_status=$?
16806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16807 (exit $ac_status); }; }; then
16808 ac_cv_func_dlopen=yes
16809else
16810 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016811sed 's/^/| /' conftest.$ac_ext >&5
16812
John Criswell47fdd832003-07-14 16:52:07 +000016813ac_cv_func_dlopen=no
16814fi
16815rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16816fi
16817echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16818echo "${ECHO_T}$ac_cv_func_dlopen" >&6
16819if test $ac_cv_func_dlopen = yes; then
16820 lt_cv_dlopen="dlopen"
16821else
16822 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16823echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16824if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16825 echo $ECHO_N "(cached) $ECHO_C" >&6
16826else
16827 ac_check_lib_save_LIBS=$LIBS
16828LIBS="-ldl $LIBS"
16829cat >conftest.$ac_ext <<_ACEOF
16830#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000016831/* confdefs.h. */
16832_ACEOF
16833cat confdefs.h >>conftest.$ac_ext
16834cat >>conftest.$ac_ext <<_ACEOF
16835/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016836
16837/* Override any gcc2 internal prototype to avoid an error. */
16838#ifdef __cplusplus
16839extern "C"
16840#endif
16841/* We use char because int might match the return type of a gcc2
16842 builtin and then its argument prototype would still apply. */
16843char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000016844int
16845main ()
16846{
16847dlopen ();
16848 ;
16849 return 0;
16850}
16851_ACEOF
16852rm -f conftest.$ac_objext conftest$ac_exeext
16853if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16854 (eval $ac_link) 2>&5
16855 ac_status=$?
16856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16857 (exit $ac_status); } &&
16858 { ac_try='test -s conftest$ac_exeext'
16859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16860 (eval $ac_try) 2>&5
16861 ac_status=$?
16862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16863 (exit $ac_status); }; }; then
16864 ac_cv_lib_dl_dlopen=yes
16865else
16866 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016867sed 's/^/| /' conftest.$ac_ext >&5
16868
John Criswell47fdd832003-07-14 16:52:07 +000016869ac_cv_lib_dl_dlopen=no
16870fi
16871rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16872LIBS=$ac_check_lib_save_LIBS
16873fi
16874echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16875echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16876if test $ac_cv_lib_dl_dlopen = yes; then
16877 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16878else
16879 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
16880echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
16881if test "${ac_cv_lib_svld_dlopen+set}" = set; then
16882 echo $ECHO_N "(cached) $ECHO_C" >&6
16883else
16884 ac_check_lib_save_LIBS=$LIBS
16885LIBS="-lsvld $LIBS"
16886cat >conftest.$ac_ext <<_ACEOF
16887#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000016888/* confdefs.h. */
16889_ACEOF
16890cat confdefs.h >>conftest.$ac_ext
16891cat >>conftest.$ac_ext <<_ACEOF
16892/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016893
16894/* Override any gcc2 internal prototype to avoid an error. */
16895#ifdef __cplusplus
16896extern "C"
16897#endif
16898/* We use char because int might match the return type of a gcc2
16899 builtin and then its argument prototype would still apply. */
16900char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000016901int
16902main ()
16903{
16904dlopen ();
16905 ;
16906 return 0;
16907}
16908_ACEOF
16909rm -f conftest.$ac_objext conftest$ac_exeext
16910if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16911 (eval $ac_link) 2>&5
16912 ac_status=$?
16913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16914 (exit $ac_status); } &&
16915 { ac_try='test -s conftest$ac_exeext'
16916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16917 (eval $ac_try) 2>&5
16918 ac_status=$?
16919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16920 (exit $ac_status); }; }; then
16921 ac_cv_lib_svld_dlopen=yes
16922else
16923 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016924sed 's/^/| /' conftest.$ac_ext >&5
16925
John Criswell47fdd832003-07-14 16:52:07 +000016926ac_cv_lib_svld_dlopen=no
16927fi
16928rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16929LIBS=$ac_check_lib_save_LIBS
16930fi
16931echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
16932echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
16933if test $ac_cv_lib_svld_dlopen = yes; then
16934 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16935else
16936 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
16937echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
16938if test "${ac_cv_lib_dld_dld_link+set}" = set; then
16939 echo $ECHO_N "(cached) $ECHO_C" >&6
16940else
16941 ac_check_lib_save_LIBS=$LIBS
16942LIBS="-ldld $LIBS"
16943cat >conftest.$ac_ext <<_ACEOF
16944#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000016945/* confdefs.h. */
16946_ACEOF
16947cat confdefs.h >>conftest.$ac_ext
16948cat >>conftest.$ac_ext <<_ACEOF
16949/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016950
16951/* Override any gcc2 internal prototype to avoid an error. */
16952#ifdef __cplusplus
16953extern "C"
16954#endif
16955/* We use char because int might match the return type of a gcc2
16956 builtin and then its argument prototype would still apply. */
16957char dld_link ();
John Criswell47fdd832003-07-14 16:52:07 +000016958int
16959main ()
16960{
16961dld_link ();
16962 ;
16963 return 0;
16964}
16965_ACEOF
16966rm -f conftest.$ac_objext conftest$ac_exeext
16967if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16968 (eval $ac_link) 2>&5
16969 ac_status=$?
16970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16971 (exit $ac_status); } &&
16972 { ac_try='test -s conftest$ac_exeext'
16973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16974 (eval $ac_try) 2>&5
16975 ac_status=$?
16976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16977 (exit $ac_status); }; }; then
16978 ac_cv_lib_dld_dld_link=yes
16979else
16980 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016981sed 's/^/| /' conftest.$ac_ext >&5
16982
John Criswell47fdd832003-07-14 16:52:07 +000016983ac_cv_lib_dld_dld_link=no
16984fi
16985rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16986LIBS=$ac_check_lib_save_LIBS
16987fi
16988echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
16989echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
16990if test $ac_cv_lib_dld_dld_link = yes; then
16991 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
16992fi
16993
16994
16995fi
16996
16997
16998fi
16999
17000
17001fi
17002
17003
17004fi
17005
17006
17007fi
17008
17009 ;;
17010 esac
17011
17012 if test "x$lt_cv_dlopen" != xno; then
17013 enable_dlopen=yes
17014 else
17015 enable_dlopen=no
17016 fi
17017
17018 case $lt_cv_dlopen in
17019 dlopen)
17020 save_CPPFLAGS="$CPPFLAGS"
17021 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17022
17023 save_LDFLAGS="$LDFLAGS"
17024 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17025
17026 save_LIBS="$LIBS"
17027 LIBS="$lt_cv_dlopen_libs $LIBS"
17028
17029 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17030echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17031if test "${lt_cv_dlopen_self+set}" = set; then
17032 echo $ECHO_N "(cached) $ECHO_C" >&6
17033else
17034 if test "$cross_compiling" = yes; then :
17035 lt_cv_dlopen_self=cross
17036else
17037 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17038 lt_status=$lt_dlunknown
17039 cat > conftest.$ac_ext <<EOF
John Criswell60577602003-11-25 17:49:22 +000017040#line 17040 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000017041#include "confdefs.h"
17042
17043#if HAVE_DLFCN_H
17044#include <dlfcn.h>
17045#endif
17046
17047#include <stdio.h>
17048
17049#ifdef RTLD_GLOBAL
17050# define LT_DLGLOBAL RTLD_GLOBAL
17051#else
17052# ifdef DL_GLOBAL
17053# define LT_DLGLOBAL DL_GLOBAL
17054# else
17055# define LT_DLGLOBAL 0
17056# endif
17057#endif
17058
17059/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17060 find out it does not work in some platform. */
17061#ifndef LT_DLLAZY_OR_NOW
17062# ifdef RTLD_LAZY
17063# define LT_DLLAZY_OR_NOW RTLD_LAZY
17064# else
17065# ifdef DL_LAZY
17066# define LT_DLLAZY_OR_NOW DL_LAZY
17067# else
17068# ifdef RTLD_NOW
17069# define LT_DLLAZY_OR_NOW RTLD_NOW
17070# else
17071# ifdef DL_NOW
17072# define LT_DLLAZY_OR_NOW DL_NOW
17073# else
17074# define LT_DLLAZY_OR_NOW 0
17075# endif
17076# endif
17077# endif
17078# endif
17079#endif
17080
17081#ifdef __cplusplus
17082extern "C" void exit (int);
17083#endif
17084
17085void fnord() { int i=42;}
17086int main ()
17087{
17088 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17089 int status = $lt_dlunknown;
17090
17091 if (self)
17092 {
17093 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17094 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17095 /* dlclose (self); */
17096 }
17097
17098 exit (status);
17099}
17100EOF
17101 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17102 (eval $ac_link) 2>&5
17103 ac_status=$?
17104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17105 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17106 (./conftest; exit; ) 2>/dev/null
17107 lt_status=$?
17108 case x$lt_status in
17109 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17110 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17111 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17112 esac
17113 else :
17114 # compilation failed
17115 lt_cv_dlopen_self=no
17116 fi
17117fi
17118rm -fr conftest*
17119
17120
17121fi
17122echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17123echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17124
17125 if test "x$lt_cv_dlopen_self" = xyes; then
17126 LDFLAGS="$LDFLAGS $link_static_flag"
17127 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17128echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17129if test "${lt_cv_dlopen_self_static+set}" = set; then
17130 echo $ECHO_N "(cached) $ECHO_C" >&6
17131else
17132 if test "$cross_compiling" = yes; then :
17133 lt_cv_dlopen_self_static=cross
17134else
17135 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17136 lt_status=$lt_dlunknown
17137 cat > conftest.$ac_ext <<EOF
John Criswell60577602003-11-25 17:49:22 +000017138#line 17138 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000017139#include "confdefs.h"
17140
17141#if HAVE_DLFCN_H
17142#include <dlfcn.h>
17143#endif
17144
17145#include <stdio.h>
17146
17147#ifdef RTLD_GLOBAL
17148# define LT_DLGLOBAL RTLD_GLOBAL
17149#else
17150# ifdef DL_GLOBAL
17151# define LT_DLGLOBAL DL_GLOBAL
17152# else
17153# define LT_DLGLOBAL 0
17154# endif
17155#endif
17156
17157/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17158 find out it does not work in some platform. */
17159#ifndef LT_DLLAZY_OR_NOW
17160# ifdef RTLD_LAZY
17161# define LT_DLLAZY_OR_NOW RTLD_LAZY
17162# else
17163# ifdef DL_LAZY
17164# define LT_DLLAZY_OR_NOW DL_LAZY
17165# else
17166# ifdef RTLD_NOW
17167# define LT_DLLAZY_OR_NOW RTLD_NOW
17168# else
17169# ifdef DL_NOW
17170# define LT_DLLAZY_OR_NOW DL_NOW
17171# else
17172# define LT_DLLAZY_OR_NOW 0
17173# endif
17174# endif
17175# endif
17176# endif
17177#endif
17178
17179#ifdef __cplusplus
17180extern "C" void exit (int);
17181#endif
17182
17183void fnord() { int i=42;}
17184int main ()
17185{
17186 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17187 int status = $lt_dlunknown;
17188
17189 if (self)
17190 {
17191 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17192 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17193 /* dlclose (self); */
17194 }
17195
17196 exit (status);
17197}
17198EOF
17199 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17200 (eval $ac_link) 2>&5
17201 ac_status=$?
17202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17203 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17204 (./conftest; exit; ) 2>/dev/null
17205 lt_status=$?
17206 case x$lt_status in
17207 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17208 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17209 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17210 esac
17211 else :
17212 # compilation failed
17213 lt_cv_dlopen_self_static=no
17214 fi
17215fi
17216rm -fr conftest*
17217
17218
17219fi
17220echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17221echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17222 fi
17223
17224 CPPFLAGS="$save_CPPFLAGS"
17225 LDFLAGS="$save_LDFLAGS"
17226 LIBS="$save_LIBS"
17227 ;;
17228 esac
17229
17230 case $lt_cv_dlopen_self in
17231 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17232 *) enable_dlopen_self=unknown ;;
17233 esac
17234
17235 case $lt_cv_dlopen_self_static in
17236 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17237 *) enable_dlopen_self_static=unknown ;;
17238 esac
17239fi
17240
17241
17242# The else clause should only fire when bootstrapping the
17243# libtool distribution, otherwise you forgot to ship ltmain.sh
17244# with your package, and you will get complaints that there are
17245# no rules to generate ltmain.sh.
17246if test -f "$ltmain"; then
17247 # See if we are running on zsh, and set the options which allow our commands through
17248 # without removal of \ escapes.
17249 if test -n "${ZSH_VERSION+set}" ; then
17250 setopt NO_GLOB_SUBST
17251 fi
17252 # Now quote all the things that may contain metacharacters while being
17253 # careful not to overquote the AC_SUBSTed values. We take copies of the
17254 # variables and quote the copies for generation of the libtool script.
17255 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17256 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17257 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17258 deplibs_check_method reload_flag reload_cmds need_locks \
17259 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17260 lt_cv_sys_global_symbol_to_c_name_address \
17261 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17262 old_postinstall_cmds old_postuninstall_cmds \
17263 compiler_GCJ \
17264 CC_GCJ \
17265 LD_GCJ \
17266 lt_prog_compiler_wl_GCJ \
17267 lt_prog_compiler_pic_GCJ \
17268 lt_prog_compiler_static_GCJ \
17269 lt_prog_compiler_no_builtin_flag_GCJ \
17270 export_dynamic_flag_spec_GCJ \
17271 thread_safe_flag_spec_GCJ \
17272 whole_archive_flag_spec_GCJ \
17273 enable_shared_with_static_runtimes_GCJ \
17274 old_archive_cmds_GCJ \
17275 old_archive_from_new_cmds_GCJ \
17276 predep_objects_GCJ \
17277 postdep_objects_GCJ \
17278 predeps_GCJ \
17279 postdeps_GCJ \
17280 compiler_lib_search_path_GCJ \
17281 archive_cmds_GCJ \
17282 archive_expsym_cmds_GCJ \
17283 postinstall_cmds_GCJ \
17284 postuninstall_cmds_GCJ \
17285 old_archive_from_expsyms_cmds_GCJ \
17286 allow_undefined_flag_GCJ \
17287 no_undefined_flag_GCJ \
17288 export_symbols_cmds_GCJ \
17289 hardcode_libdir_flag_spec_GCJ \
17290 hardcode_libdir_flag_spec_ld_GCJ \
17291 hardcode_libdir_separator_GCJ \
17292 hardcode_automatic_GCJ \
17293 module_cmds_GCJ \
17294 module_expsym_cmds_GCJ \
17295 lt_cv_prog_compiler_c_o_GCJ \
17296 exclude_expsyms_GCJ \
17297 include_expsyms_GCJ; do
17298
17299 case $var in
17300 old_archive_cmds_GCJ | \
17301 old_archive_from_new_cmds_GCJ | \
17302 archive_cmds_GCJ | \
17303 archive_expsym_cmds_GCJ | \
17304 module_cmds_GCJ | \
17305 module_expsym_cmds_GCJ | \
17306 old_archive_from_expsyms_cmds_GCJ | \
17307 export_symbols_cmds_GCJ | \
17308 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17309 postinstall_cmds | postuninstall_cmds | \
17310 old_postinstall_cmds | old_postuninstall_cmds | \
17311 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17312 # Double-quote double-evaled strings.
17313 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17314 ;;
17315 *)
17316 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17317 ;;
17318 esac
17319 done
17320
17321 case $lt_echo in
17322 *'\$0 --fallback-echo"')
17323 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17324 ;;
17325 esac
17326
17327cfgfile="$ofile"
17328
17329 cat <<__EOF__ >> "$cfgfile"
17330# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17331
17332# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17333
17334# Shell to use when invoking shell scripts.
17335SHELL=$lt_SHELL
17336
17337# Whether or not to build shared libraries.
17338build_libtool_libs=$enable_shared
17339
17340# Whether or not to build static libraries.
17341build_old_libs=$enable_static
17342
17343# Whether or not to add -lc for building shared libraries.
17344build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17345
17346# Whether or not to disallow shared libs when runtime libs are static
17347allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17348
17349# Whether or not to optimize for fast installation.
17350fast_install=$enable_fast_install
17351
17352# The host system.
17353host_alias=$host_alias
17354host=$host
17355
17356# An echo program that does not interpret backslashes.
17357echo=$lt_echo
17358
17359# The archiver.
17360AR=$lt_AR
17361AR_FLAGS=$lt_AR_FLAGS
17362
17363# A C compiler.
17364LTCC=$lt_LTCC
17365
17366# A language-specific compiler.
17367CC=$lt_compiler_GCJ
17368
17369# Is the compiler the GNU C compiler?
17370with_gcc=$GCC_GCJ
17371
17372# An ERE matcher.
17373EGREP=$lt_EGREP
17374
17375# The linker used to build libraries.
17376LD=$lt_LD_GCJ
17377
17378# Whether we need hard or soft links.
17379LN_S=$lt_LN_S
17380
17381# A BSD-compatible nm program.
17382NM=$lt_NM
17383
17384# A symbol stripping program
17385STRIP=$STRIP
17386
17387# Used to examine libraries when file_magic_cmd begins "file"
17388MAGIC_CMD=$MAGIC_CMD
17389
17390# Used on cygwin: DLL creation program.
17391DLLTOOL="$DLLTOOL"
17392
17393# Used on cygwin: object dumper.
17394OBJDUMP="$OBJDUMP"
17395
17396# Used on cygwin: assembler.
17397AS="$AS"
17398
17399# The name of the directory that contains temporary libtool files.
17400objdir=$objdir
17401
17402# How to create reloadable object files.
17403reload_flag=$lt_reload_flag
17404reload_cmds=$lt_reload_cmds
17405
17406# How to pass a linker flag through the compiler.
17407wl=$lt_lt_prog_compiler_wl_GCJ
17408
17409# Object file suffix (normally "o").
17410objext="$ac_objext"
17411
17412# Old archive suffix (normally "a").
17413libext="$libext"
17414
17415# Shared library suffix (normally ".so").
17416shrext='$shrext'
17417
17418# Executable file suffix (normally "").
17419exeext="$exeext"
17420
17421# Additional compiler flags for building library objects.
17422pic_flag=$lt_lt_prog_compiler_pic_GCJ
17423pic_mode=$pic_mode
17424
17425# What is the maximum length of a command?
17426max_cmd_len=$lt_cv_sys_max_cmd_len
17427
17428# Does compiler simultaneously support -c and -o options?
17429compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17430
17431# Must we lock files when doing compilation ?
17432need_locks=$lt_need_locks
17433
17434# Do we need the lib prefix for modules?
17435need_lib_prefix=$need_lib_prefix
17436
17437# Do we need a version for libraries?
17438need_version=$need_version
17439
17440# Whether dlopen is supported.
17441dlopen_support=$enable_dlopen
17442
17443# Whether dlopen of programs is supported.
17444dlopen_self=$enable_dlopen_self
17445
17446# Whether dlopen of statically linked programs is supported.
17447dlopen_self_static=$enable_dlopen_self_static
17448
17449# Compiler flag to prevent dynamic linking.
17450link_static_flag=$lt_lt_prog_compiler_static_GCJ
17451
17452# Compiler flag to turn off builtin functions.
17453no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17454
17455# Compiler flag to allow reflexive dlopens.
17456export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17457
17458# Compiler flag to generate shared objects directly from archives.
17459whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17460
17461# Compiler flag to generate thread-safe objects.
17462thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17463
17464# Library versioning type.
17465version_type=$version_type
17466
17467# Format of library name prefix.
17468libname_spec=$lt_libname_spec
17469
17470# List of archive names. First name is the real one, the rest are links.
17471# The last name is the one that the linker finds with -lNAME.
17472library_names_spec=$lt_library_names_spec
17473
17474# The coded name of the library, if different from the real name.
17475soname_spec=$lt_soname_spec
17476
17477# Commands used to build and install an old-style archive.
17478RANLIB=$lt_RANLIB
17479old_archive_cmds=$lt_old_archive_cmds_GCJ
17480old_postinstall_cmds=$lt_old_postinstall_cmds
17481old_postuninstall_cmds=$lt_old_postuninstall_cmds
17482
17483# Create an old-style archive from a shared archive.
17484old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17485
17486# Create a temporary old-style archive to link instead of a shared archive.
17487old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17488
17489# Commands used to build and install a shared archive.
17490archive_cmds=$lt_archive_cmds_GCJ
17491archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17492postinstall_cmds=$lt_postinstall_cmds
17493postuninstall_cmds=$lt_postuninstall_cmds
17494
17495# Commands used to build a loadable module (assumed same as above if empty)
17496module_cmds=$lt_module_cmds_GCJ
17497module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17498
17499# Commands to strip libraries.
17500old_striplib=$lt_old_striplib
17501striplib=$lt_striplib
17502
17503# Dependencies to place before the objects being linked to create a
17504# shared library.
17505predep_objects=$lt_predep_objects_GCJ
17506
17507# Dependencies to place after the objects being linked to create a
17508# shared library.
17509postdep_objects=$lt_postdep_objects_GCJ
17510
17511# Dependencies to place before the objects being linked to create a
17512# shared library.
17513predeps=$lt_predeps_GCJ
17514
17515# Dependencies to place after the objects being linked to create a
17516# shared library.
17517postdeps=$lt_postdeps_GCJ
17518
17519# The library search path used internally by the compiler when linking
17520# a shared library.
17521compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17522
17523# Method to check whether dependent libraries are shared objects.
17524deplibs_check_method=$lt_deplibs_check_method
17525
17526# Command to use when deplibs_check_method == file_magic.
17527file_magic_cmd=$lt_file_magic_cmd
17528
17529# Flag that allows shared libraries with undefined symbols to be built.
17530allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17531
17532# Flag that forces no undefined symbols.
17533no_undefined_flag=$lt_no_undefined_flag_GCJ
17534
17535# Commands used to finish a libtool library installation in a directory.
17536finish_cmds=$lt_finish_cmds
17537
17538# Same as above, but a single script fragment to be evaled but not shown.
17539finish_eval=$lt_finish_eval
17540
17541# Take the output of nm and produce a listing of raw symbols and C names.
17542global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17543
17544# Transform the output of nm in a proper C declaration
17545global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17546
17547# Transform the output of nm in a C name address pair
17548global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17549
17550# This is the shared library runtime path variable.
17551runpath_var=$runpath_var
17552
17553# This is the shared library path variable.
17554shlibpath_var=$shlibpath_var
17555
17556# Is shlibpath searched before the hard-coded library search path?
17557shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17558
17559# How to hardcode a shared library path into an executable.
17560hardcode_action=$hardcode_action_GCJ
17561
17562# Whether we should hardcode library paths into libraries.
17563hardcode_into_libs=$hardcode_into_libs
17564
17565# Flag to hardcode \$libdir into a binary during linking.
17566# This must work even if \$libdir does not exist.
17567hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
17568
17569# If ld is used when linking, flag to hardcode \$libdir into
17570# a binary during linking. This must work even if \$libdir does
17571# not exist.
17572hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17573
17574# Whether we need a single -rpath flag with a separated argument.
17575hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17576
17577# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17578# resulting binary.
17579hardcode_direct=$hardcode_direct_GCJ
17580
17581# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17582# resulting binary.
17583hardcode_minus_L=$hardcode_minus_L_GCJ
17584
17585# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17586# the resulting binary.
17587hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
17588
17589# Set to yes if building a shared library automatically hardcodes DIR into the library
17590# and all subsequent libraries and executables linked against it.
17591hardcode_automatic=$hardcode_automatic_GCJ
17592
17593# Variables whose values should be saved in libtool wrapper scripts and
17594# restored at relink time.
17595variables_saved_for_relink="$variables_saved_for_relink"
17596
17597# Whether libtool must link a program against all its dependency libraries.
17598link_all_deplibs=$link_all_deplibs_GCJ
17599
17600# Compile-time system search path for libraries
17601sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17602
17603# Run-time system search path for libraries
17604sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17605
17606# Fix the shell variable \$srcfile for the compiler.
17607fix_srcfile_path="$fix_srcfile_path_GCJ"
17608
17609# Set to yes if exported symbols are required.
17610always_export_symbols=$always_export_symbols_GCJ
17611
17612# The commands to list exported symbols.
17613export_symbols_cmds=$lt_export_symbols_cmds_GCJ
17614
17615# The commands to extract the exported symbol list from a shared archive.
17616extract_expsyms_cmds=$lt_extract_expsyms_cmds
17617
17618# Symbols that should not be listed in the preloaded symbols.
17619exclude_expsyms=$lt_exclude_expsyms_GCJ
17620
17621# Symbols that must always be exported.
17622include_expsyms=$lt_include_expsyms_GCJ
17623
17624# ### END LIBTOOL TAG CONFIG: $tagname
17625
17626__EOF__
17627
17628
17629else
17630 # If there is no Makefile yet, we rely on a make rule to execute
17631 # `config.status --recheck' to rerun these tests and create the
17632 # libtool script then.
17633 test -f Makefile && make "$ltmain"
17634fi
17635
17636
17637ac_ext=c
17638ac_cpp='$CPP $CPPFLAGS'
17639ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17640ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17641ac_compiler_gnu=$ac_cv_c_compiler_gnu
17642
17643CC="$lt_save_CC"
17644
17645 else
17646 tagname=""
17647 fi
17648 ;;
17649
17650 RC)
17651
17652
17653
17654# Source file extension for RC test sources.
17655ac_ext=rc
17656
17657# Object file extension for compiled RC test sources.
17658objext=o
17659objext_RC=$objext
17660
17661# Code to be used in simple compile tests
17662lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
17663
17664# Code to be used in simple link tests
17665lt_simple_link_test_code="$lt_simple_compile_test_code"
17666
17667# ltmain only uses $CC for tagged configurations so make sure $CC is set.
17668
17669# If no C compiler was specified, use CC.
17670LTCC=${LTCC-"$CC"}
17671
17672# Allow CC to be a program name with arguments.
17673compiler=$CC
17674
17675
17676# Allow CC to be a program name with arguments.
17677lt_save_CC="$CC"
17678CC=${RC-"windres"}
17679compiler=$CC
17680compiler_RC=$CC
17681lt_cv_prog_compiler_c_o_RC=yes
17682
17683# The else clause should only fire when bootstrapping the
17684# libtool distribution, otherwise you forgot to ship ltmain.sh
17685# with your package, and you will get complaints that there are
17686# no rules to generate ltmain.sh.
17687if test -f "$ltmain"; then
17688 # See if we are running on zsh, and set the options which allow our commands through
17689 # without removal of \ escapes.
17690 if test -n "${ZSH_VERSION+set}" ; then
17691 setopt NO_GLOB_SUBST
17692 fi
17693 # Now quote all the things that may contain metacharacters while being
17694 # careful not to overquote the AC_SUBSTed values. We take copies of the
17695 # variables and quote the copies for generation of the libtool script.
17696 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17697 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17698 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17699 deplibs_check_method reload_flag reload_cmds need_locks \
17700 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17701 lt_cv_sys_global_symbol_to_c_name_address \
17702 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17703 old_postinstall_cmds old_postuninstall_cmds \
17704 compiler_RC \
17705 CC_RC \
17706 LD_RC \
17707 lt_prog_compiler_wl_RC \
17708 lt_prog_compiler_pic_RC \
17709 lt_prog_compiler_static_RC \
17710 lt_prog_compiler_no_builtin_flag_RC \
17711 export_dynamic_flag_spec_RC \
17712 thread_safe_flag_spec_RC \
17713 whole_archive_flag_spec_RC \
17714 enable_shared_with_static_runtimes_RC \
17715 old_archive_cmds_RC \
17716 old_archive_from_new_cmds_RC \
17717 predep_objects_RC \
17718 postdep_objects_RC \
17719 predeps_RC \
17720 postdeps_RC \
17721 compiler_lib_search_path_RC \
17722 archive_cmds_RC \
17723 archive_expsym_cmds_RC \
17724 postinstall_cmds_RC \
17725 postuninstall_cmds_RC \
17726 old_archive_from_expsyms_cmds_RC \
17727 allow_undefined_flag_RC \
17728 no_undefined_flag_RC \
17729 export_symbols_cmds_RC \
17730 hardcode_libdir_flag_spec_RC \
17731 hardcode_libdir_flag_spec_ld_RC \
17732 hardcode_libdir_separator_RC \
17733 hardcode_automatic_RC \
17734 module_cmds_RC \
17735 module_expsym_cmds_RC \
17736 lt_cv_prog_compiler_c_o_RC \
17737 exclude_expsyms_RC \
17738 include_expsyms_RC; do
17739
17740 case $var in
17741 old_archive_cmds_RC | \
17742 old_archive_from_new_cmds_RC | \
17743 archive_cmds_RC | \
17744 archive_expsym_cmds_RC | \
17745 module_cmds_RC | \
17746 module_expsym_cmds_RC | \
17747 old_archive_from_expsyms_cmds_RC | \
17748 export_symbols_cmds_RC | \
17749 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17750 postinstall_cmds | postuninstall_cmds | \
17751 old_postinstall_cmds | old_postuninstall_cmds | \
17752 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17753 # Double-quote double-evaled strings.
17754 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17755 ;;
17756 *)
17757 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17758 ;;
17759 esac
17760 done
17761
17762 case $lt_echo in
17763 *'\$0 --fallback-echo"')
17764 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17765 ;;
17766 esac
17767
17768cfgfile="$ofile"
17769
17770 cat <<__EOF__ >> "$cfgfile"
17771# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17772
17773# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17774
17775# Shell to use when invoking shell scripts.
17776SHELL=$lt_SHELL
17777
17778# Whether or not to build shared libraries.
17779build_libtool_libs=$enable_shared
17780
17781# Whether or not to build static libraries.
17782build_old_libs=$enable_static
17783
17784# Whether or not to add -lc for building shared libraries.
17785build_libtool_need_lc=$archive_cmds_need_lc_RC
17786
17787# Whether or not to disallow shared libs when runtime libs are static
17788allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
17789
17790# Whether or not to optimize for fast installation.
17791fast_install=$enable_fast_install
17792
17793# The host system.
17794host_alias=$host_alias
17795host=$host
17796
17797# An echo program that does not interpret backslashes.
17798echo=$lt_echo
17799
17800# The archiver.
17801AR=$lt_AR
17802AR_FLAGS=$lt_AR_FLAGS
17803
17804# A C compiler.
17805LTCC=$lt_LTCC
17806
17807# A language-specific compiler.
17808CC=$lt_compiler_RC
17809
17810# Is the compiler the GNU C compiler?
17811with_gcc=$GCC_RC
17812
17813# An ERE matcher.
17814EGREP=$lt_EGREP
17815
17816# The linker used to build libraries.
17817LD=$lt_LD_RC
17818
17819# Whether we need hard or soft links.
17820LN_S=$lt_LN_S
17821
17822# A BSD-compatible nm program.
17823NM=$lt_NM
17824
17825# A symbol stripping program
17826STRIP=$STRIP
17827
17828# Used to examine libraries when file_magic_cmd begins "file"
17829MAGIC_CMD=$MAGIC_CMD
17830
17831# Used on cygwin: DLL creation program.
17832DLLTOOL="$DLLTOOL"
17833
17834# Used on cygwin: object dumper.
17835OBJDUMP="$OBJDUMP"
17836
17837# Used on cygwin: assembler.
17838AS="$AS"
17839
17840# The name of the directory that contains temporary libtool files.
17841objdir=$objdir
17842
17843# How to create reloadable object files.
17844reload_flag=$lt_reload_flag
17845reload_cmds=$lt_reload_cmds
17846
17847# How to pass a linker flag through the compiler.
17848wl=$lt_lt_prog_compiler_wl_RC
17849
17850# Object file suffix (normally "o").
17851objext="$ac_objext"
17852
17853# Old archive suffix (normally "a").
17854libext="$libext"
17855
17856# Shared library suffix (normally ".so").
17857shrext='$shrext'
17858
17859# Executable file suffix (normally "").
17860exeext="$exeext"
17861
17862# Additional compiler flags for building library objects.
17863pic_flag=$lt_lt_prog_compiler_pic_RC
17864pic_mode=$pic_mode
17865
17866# What is the maximum length of a command?
17867max_cmd_len=$lt_cv_sys_max_cmd_len
17868
17869# Does compiler simultaneously support -c and -o options?
17870compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
17871
17872# Must we lock files when doing compilation ?
17873need_locks=$lt_need_locks
17874
17875# Do we need the lib prefix for modules?
17876need_lib_prefix=$need_lib_prefix
17877
17878# Do we need a version for libraries?
17879need_version=$need_version
17880
17881# Whether dlopen is supported.
17882dlopen_support=$enable_dlopen
17883
17884# Whether dlopen of programs is supported.
17885dlopen_self=$enable_dlopen_self
17886
17887# Whether dlopen of statically linked programs is supported.
17888dlopen_self_static=$enable_dlopen_self_static
17889
17890# Compiler flag to prevent dynamic linking.
17891link_static_flag=$lt_lt_prog_compiler_static_RC
17892
17893# Compiler flag to turn off builtin functions.
17894no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
17895
17896# Compiler flag to allow reflexive dlopens.
17897export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
17898
17899# Compiler flag to generate shared objects directly from archives.
17900whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
17901
17902# Compiler flag to generate thread-safe objects.
17903thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
17904
17905# Library versioning type.
17906version_type=$version_type
17907
17908# Format of library name prefix.
17909libname_spec=$lt_libname_spec
17910
17911# List of archive names. First name is the real one, the rest are links.
17912# The last name is the one that the linker finds with -lNAME.
17913library_names_spec=$lt_library_names_spec
17914
17915# The coded name of the library, if different from the real name.
17916soname_spec=$lt_soname_spec
17917
17918# Commands used to build and install an old-style archive.
17919RANLIB=$lt_RANLIB
17920old_archive_cmds=$lt_old_archive_cmds_RC
17921old_postinstall_cmds=$lt_old_postinstall_cmds
17922old_postuninstall_cmds=$lt_old_postuninstall_cmds
17923
17924# Create an old-style archive from a shared archive.
17925old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
17926
17927# Create a temporary old-style archive to link instead of a shared archive.
17928old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
17929
17930# Commands used to build and install a shared archive.
17931archive_cmds=$lt_archive_cmds_RC
17932archive_expsym_cmds=$lt_archive_expsym_cmds_RC
17933postinstall_cmds=$lt_postinstall_cmds
17934postuninstall_cmds=$lt_postuninstall_cmds
17935
17936# Commands used to build a loadable module (assumed same as above if empty)
17937module_cmds=$lt_module_cmds_RC
17938module_expsym_cmds=$lt_module_expsym_cmds_RC
17939
17940# Commands to strip libraries.
17941old_striplib=$lt_old_striplib
17942striplib=$lt_striplib
17943
17944# Dependencies to place before the objects being linked to create a
17945# shared library.
17946predep_objects=$lt_predep_objects_RC
17947
17948# Dependencies to place after the objects being linked to create a
17949# shared library.
17950postdep_objects=$lt_postdep_objects_RC
17951
17952# Dependencies to place before the objects being linked to create a
17953# shared library.
17954predeps=$lt_predeps_RC
17955
17956# Dependencies to place after the objects being linked to create a
17957# shared library.
17958postdeps=$lt_postdeps_RC
17959
17960# The library search path used internally by the compiler when linking
17961# a shared library.
17962compiler_lib_search_path=$lt_compiler_lib_search_path_RC
17963
17964# Method to check whether dependent libraries are shared objects.
17965deplibs_check_method=$lt_deplibs_check_method
17966
17967# Command to use when deplibs_check_method == file_magic.
17968file_magic_cmd=$lt_file_magic_cmd
17969
17970# Flag that allows shared libraries with undefined symbols to be built.
17971allow_undefined_flag=$lt_allow_undefined_flag_RC
17972
17973# Flag that forces no undefined symbols.
17974no_undefined_flag=$lt_no_undefined_flag_RC
17975
17976# Commands used to finish a libtool library installation in a directory.
17977finish_cmds=$lt_finish_cmds
17978
17979# Same as above, but a single script fragment to be evaled but not shown.
17980finish_eval=$lt_finish_eval
17981
17982# Take the output of nm and produce a listing of raw symbols and C names.
17983global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17984
17985# Transform the output of nm in a proper C declaration
17986global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17987
17988# Transform the output of nm in a C name address pair
17989global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17990
17991# This is the shared library runtime path variable.
17992runpath_var=$runpath_var
17993
17994# This is the shared library path variable.
17995shlibpath_var=$shlibpath_var
17996
17997# Is shlibpath searched before the hard-coded library search path?
17998shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17999
18000# How to hardcode a shared library path into an executable.
18001hardcode_action=$hardcode_action_RC
18002
18003# Whether we should hardcode library paths into libraries.
18004hardcode_into_libs=$hardcode_into_libs
18005
18006# Flag to hardcode \$libdir into a binary during linking.
18007# This must work even if \$libdir does not exist.
18008hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18009
18010# If ld is used when linking, flag to hardcode \$libdir into
18011# a binary during linking. This must work even if \$libdir does
18012# not exist.
18013hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18014
18015# Whether we need a single -rpath flag with a separated argument.
18016hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18017
18018# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18019# resulting binary.
18020hardcode_direct=$hardcode_direct_RC
18021
18022# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18023# resulting binary.
18024hardcode_minus_L=$hardcode_minus_L_RC
18025
18026# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18027# the resulting binary.
18028hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18029
18030# Set to yes if building a shared library automatically hardcodes DIR into the library
18031# and all subsequent libraries and executables linked against it.
18032hardcode_automatic=$hardcode_automatic_RC
18033
18034# Variables whose values should be saved in libtool wrapper scripts and
18035# restored at relink time.
18036variables_saved_for_relink="$variables_saved_for_relink"
18037
18038# Whether libtool must link a program against all its dependency libraries.
18039link_all_deplibs=$link_all_deplibs_RC
18040
18041# Compile-time system search path for libraries
18042sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18043
18044# Run-time system search path for libraries
18045sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18046
18047# Fix the shell variable \$srcfile for the compiler.
18048fix_srcfile_path="$fix_srcfile_path_RC"
18049
18050# Set to yes if exported symbols are required.
18051always_export_symbols=$always_export_symbols_RC
18052
18053# The commands to list exported symbols.
18054export_symbols_cmds=$lt_export_symbols_cmds_RC
18055
18056# The commands to extract the exported symbol list from a shared archive.
18057extract_expsyms_cmds=$lt_extract_expsyms_cmds
18058
18059# Symbols that should not be listed in the preloaded symbols.
18060exclude_expsyms=$lt_exclude_expsyms_RC
18061
18062# Symbols that must always be exported.
18063include_expsyms=$lt_include_expsyms_RC
18064
18065# ### END LIBTOOL TAG CONFIG: $tagname
18066
18067__EOF__
18068
18069
18070else
18071 # If there is no Makefile yet, we rely on a make rule to execute
18072 # `config.status --recheck' to rerun these tests and create the
18073 # libtool script then.
18074 test -f Makefile && make "$ltmain"
18075fi
18076
18077
18078ac_ext=c
18079ac_cpp='$CPP $CPPFLAGS'
18080ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18081ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18082ac_compiler_gnu=$ac_cv_c_compiler_gnu
18083
18084CC="$lt_save_CC"
18085
18086 ;;
18087
18088 *)
18089 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18090echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18091 { (exit 1); exit 1; }; }
18092 ;;
18093 esac
18094
18095 # Append the new tag name to the list of available tags.
18096 if test -n "$tagname" ; then
18097 available_tags="$available_tags $tagname"
18098 fi
18099 fi
18100 done
18101 IFS="$lt_save_ifs"
18102
18103 # Now substitute the updated list of available tags.
18104 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18105 mv "${ofile}T" "$ofile"
18106 chmod +x "$ofile"
18107 else
18108 rm -f "${ofile}T"
18109 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18110echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18111 { (exit 1); exit 1; }; }
18112 fi
18113fi
John Criswell7a73b802003-06-30 21:59:07 +000018114
18115
18116
18117# This can be used to rebuild libtool when needed
18118LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18119
18120# Always use our own libtool.
John Criswell8d4221e2003-07-23 16:52:50 +000018121LIBTOOL='$(SHELL) $(top_builddir)/mklib'
John Criswell7a73b802003-06-30 21:59:07 +000018122
18123# Prevent multiple expansion
18124
18125
18126
John Criswell47fdd832003-07-14 16:52:07 +000018127
18128
18129
18130
18131
18132
18133
18134
18135
18136
18137
18138
18139
18140
18141
18142
18143
18144
John Criswellde00db22003-08-25 16:49:54 +000018145# Extract the first word of "pwd", so it can be a program name with args.
18146set dummy pwd; ac_word=$2
18147echo "$as_me:$LINENO: checking for $ac_word" >&5
18148echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18149if test "${ac_cv_path_RPWD+set}" = set; then
18150 echo $ECHO_N "(cached) $ECHO_C" >&6
18151else
18152 case $RPWD in
18153 [\\/]* | ?:[\\/]*)
18154 ac_cv_path_RPWD="$RPWD" # Let the user override the test with a path.
18155 ;;
18156 *)
18157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18158for as_dir in $PATH
18159do
18160 IFS=$as_save_IFS
18161 test -z "$as_dir" && as_dir=.
18162 for ac_exec_ext in '' $ac_executable_extensions; do
18163 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18164 ac_cv_path_RPWD="$as_dir/$ac_word$ac_exec_ext"
18165 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18166 break 2
18167 fi
18168done
18169done
18170
John Criswell39827c82003-09-23 15:28:52 +000018171 test -z "$ac_cv_path_RPWD" && ac_cv_path_RPWD="false"
John Criswellde00db22003-08-25 16:49:54 +000018172 ;;
18173esac
18174fi
18175RPWD=$ac_cv_path_RPWD
18176
18177if test -n "$RPWD"; then
18178 echo "$as_me:$LINENO: result: $RPWD" >&5
18179echo "${ECHO_T}$RPWD" >&6
18180else
18181 echo "$as_me:$LINENO: result: no" >&5
18182echo "${ECHO_T}no" >&6
18183fi
18184
John Criswell39827c82003-09-23 15:28:52 +000018185if test ${RPWD} = "false"
18186then
18187 { { echo "$as_me:$LINENO: error: pwd required but not found" >&5
18188echo "$as_me: error: pwd required but not found" >&2;}
18189 { (exit 1); exit 1; }; }
18190fi
18191
John Criswell7a73b802003-06-30 21:59:07 +000018192# Extract the first word of "ar", so it can be a program name with args.
18193set dummy ar; ac_word=$2
18194echo "$as_me:$LINENO: checking for $ac_word" >&5
18195echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18196if test "${ac_cv_path_AR+set}" = set; then
18197 echo $ECHO_N "(cached) $ECHO_C" >&6
18198else
18199 case $AR in
18200 [\\/]* | ?:[\\/]*)
18201 ac_cv_path_AR="$AR" # Let the user override the test with a path.
18202 ;;
18203 *)
18204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18205for as_dir in $PATH
18206do
18207 IFS=$as_save_IFS
18208 test -z "$as_dir" && as_dir=.
18209 for ac_exec_ext in '' $ac_executable_extensions; do
18210 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18211 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
18212 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18213 break 2
18214 fi
18215done
18216done
18217
John Criswell39827c82003-09-23 15:28:52 +000018218 test -z "$ac_cv_path_AR" && ac_cv_path_AR="false"
John Criswell7a73b802003-06-30 21:59:07 +000018219 ;;
18220esac
18221fi
18222AR=$ac_cv_path_AR
18223
18224if test -n "$AR"; then
18225 echo "$as_me:$LINENO: result: $AR" >&5
18226echo "${ECHO_T}$AR" >&6
18227else
18228 echo "$as_me:$LINENO: result: no" >&5
18229echo "${ECHO_T}no" >&6
18230fi
18231
John Criswell39827c82003-09-23 15:28:52 +000018232if test ${AR} = "false"
18233then
18234 { { echo "$as_me:$LINENO: error: ar required but not found" >&5
18235echo "$as_me: error: ar required but not found" >&2;}
18236 { (exit 1); exit 1; }; }
18237fi
18238
John Criswell7a73b802003-06-30 21:59:07 +000018239# Extract the first word of "sed", so it can be a program name with args.
18240set dummy sed; ac_word=$2
18241echo "$as_me:$LINENO: checking for $ac_word" >&5
18242echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18243if test "${ac_cv_path_SED+set}" = set; then
18244 echo $ECHO_N "(cached) $ECHO_C" >&6
18245else
18246 case $SED in
18247 [\\/]* | ?:[\\/]*)
18248 ac_cv_path_SED="$SED" # Let the user override the test with a path.
18249 ;;
18250 *)
18251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18252for as_dir in $PATH
18253do
18254 IFS=$as_save_IFS
18255 test -z "$as_dir" && as_dir=.
18256 for ac_exec_ext in '' $ac_executable_extensions; do
18257 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18258 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
18259 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18260 break 2
18261 fi
18262done
18263done
18264
John Criswell39827c82003-09-23 15:28:52 +000018265 test -z "$ac_cv_path_SED" && ac_cv_path_SED="false"
John Criswell7a73b802003-06-30 21:59:07 +000018266 ;;
18267esac
18268fi
18269SED=$ac_cv_path_SED
18270
18271if test -n "$SED"; then
18272 echo "$as_me:$LINENO: result: $SED" >&5
18273echo "${ECHO_T}$SED" >&6
18274else
18275 echo "$as_me:$LINENO: result: no" >&5
18276echo "${ECHO_T}no" >&6
18277fi
18278
John Criswell39827c82003-09-23 15:28:52 +000018279if test ${SED} = "false"
18280then
18281 { { echo "$as_me:$LINENO: error: sed required but not found" >&5
18282echo "$as_me: error: sed required but not found" >&2;}
18283 { (exit 1); exit 1; }; }
18284fi
18285
John Criswell7a73b802003-06-30 21:59:07 +000018286# Extract the first word of "rm", so it can be a program name with args.
18287set dummy rm; ac_word=$2
18288echo "$as_me:$LINENO: checking for $ac_word" >&5
18289echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18290if test "${ac_cv_path_RM+set}" = set; then
18291 echo $ECHO_N "(cached) $ECHO_C" >&6
18292else
18293 case $RM in
18294 [\\/]* | ?:[\\/]*)
18295 ac_cv_path_RM="$RM" # Let the user override the test with a path.
18296 ;;
18297 *)
18298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18299for as_dir in $PATH
18300do
18301 IFS=$as_save_IFS
18302 test -z "$as_dir" && as_dir=.
18303 for ac_exec_ext in '' $ac_executable_extensions; do
18304 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18305 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
18306 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18307 break 2
18308 fi
18309done
18310done
18311
John Criswell39827c82003-09-23 15:28:52 +000018312 test -z "$ac_cv_path_RM" && ac_cv_path_RM="false"
John Criswell7a73b802003-06-30 21:59:07 +000018313 ;;
18314esac
18315fi
18316RM=$ac_cv_path_RM
18317
18318if test -n "$RM"; then
18319 echo "$as_me:$LINENO: result: $RM" >&5
18320echo "${ECHO_T}$RM" >&6
18321else
18322 echo "$as_me:$LINENO: result: no" >&5
18323echo "${ECHO_T}no" >&6
18324fi
18325
John Criswell39827c82003-09-23 15:28:52 +000018326if test ${RM} = "false"
18327then
18328 { { echo "$as_me:$LINENO: error: rm required but not found" >&5
18329echo "$as_me: error: rm required but not found" >&2;}
18330 { (exit 1); exit 1; }; }
18331fi
18332
John Criswell7a73b802003-06-30 21:59:07 +000018333# Extract the first word of "echo", so it can be a program name with args.
18334set dummy echo; ac_word=$2
18335echo "$as_me:$LINENO: checking for $ac_word" >&5
18336echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18337if test "${ac_cv_path_ECHO+set}" = set; then
18338 echo $ECHO_N "(cached) $ECHO_C" >&6
18339else
18340 case $ECHO in
18341 [\\/]* | ?:[\\/]*)
18342 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
18343 ;;
18344 *)
18345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18346for as_dir in $PATH
18347do
18348 IFS=$as_save_IFS
18349 test -z "$as_dir" && as_dir=.
18350 for ac_exec_ext in '' $ac_executable_extensions; do
18351 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18352 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
18353 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18354 break 2
18355 fi
18356done
18357done
18358
John Criswell39827c82003-09-23 15:28:52 +000018359 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="false"
John Criswell7a73b802003-06-30 21:59:07 +000018360 ;;
18361esac
18362fi
18363ECHO=$ac_cv_path_ECHO
18364
18365if test -n "$ECHO"; then
18366 echo "$as_me:$LINENO: result: $ECHO" >&5
18367echo "${ECHO_T}$ECHO" >&6
18368else
18369 echo "$as_me:$LINENO: result: no" >&5
18370echo "${ECHO_T}no" >&6
18371fi
18372
John Criswell39827c82003-09-23 15:28:52 +000018373if test ${ECHO} = "false"
18374then
18375 { { echo "$as_me:$LINENO: error: echo required but not found" >&5
18376echo "$as_me: error: echo required but not found" >&2;}
18377 { (exit 1); exit 1; }; }
18378fi
18379
John Criswell7a73b802003-06-30 21:59:07 +000018380# Extract the first word of "mkdir", so it can be a program name with args.
18381set dummy mkdir; ac_word=$2
18382echo "$as_me:$LINENO: checking for $ac_word" >&5
18383echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18384if test "${ac_cv_path_MKDIR+set}" = set; then
18385 echo $ECHO_N "(cached) $ECHO_C" >&6
18386else
18387 case $MKDIR in
18388 [\\/]* | ?:[\\/]*)
18389 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
18390 ;;
18391 *)
18392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18393for as_dir in $PATH
18394do
18395 IFS=$as_save_IFS
18396 test -z "$as_dir" && as_dir=.
18397 for ac_exec_ext in '' $ac_executable_extensions; do
18398 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18399 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
18400 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18401 break 2
18402 fi
18403done
18404done
18405
John Criswell39827c82003-09-23 15:28:52 +000018406 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="false"
John Criswell7a73b802003-06-30 21:59:07 +000018407 ;;
18408esac
18409fi
18410MKDIR=$ac_cv_path_MKDIR
18411
18412if test -n "$MKDIR"; then
18413 echo "$as_me:$LINENO: result: $MKDIR" >&5
18414echo "${ECHO_T}$MKDIR" >&6
18415else
18416 echo "$as_me:$LINENO: result: no" >&5
18417echo "${ECHO_T}no" >&6
18418fi
18419
John Criswell39827c82003-09-23 15:28:52 +000018420if test ${MKDIR} = "false"
18421then
18422 { { echo "$as_me:$LINENO: error: mkdir required but not found" >&5
18423echo "$as_me: error: mkdir required but not found" >&2;}
18424 { (exit 1); exit 1; }; }
18425fi
18426
John Criswell7a73b802003-06-30 21:59:07 +000018427# Extract the first word of "date", so it can be a program name with args.
18428set dummy date; ac_word=$2
18429echo "$as_me:$LINENO: checking for $ac_word" >&5
18430echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18431if test "${ac_cv_path_DATE+set}" = set; then
18432 echo $ECHO_N "(cached) $ECHO_C" >&6
18433else
18434 case $DATE in
18435 [\\/]* | ?:[\\/]*)
18436 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
18437 ;;
18438 *)
18439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18440for as_dir in $PATH
18441do
18442 IFS=$as_save_IFS
18443 test -z "$as_dir" && as_dir=.
18444 for ac_exec_ext in '' $ac_executable_extensions; do
18445 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18446 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
18447 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18448 break 2
18449 fi
18450done
18451done
18452
John Criswell39827c82003-09-23 15:28:52 +000018453 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="false"
John Criswell7a73b802003-06-30 21:59:07 +000018454 ;;
18455esac
18456fi
18457DATE=$ac_cv_path_DATE
18458
18459if test -n "$DATE"; then
18460 echo "$as_me:$LINENO: result: $DATE" >&5
18461echo "${ECHO_T}$DATE" >&6
18462else
18463 echo "$as_me:$LINENO: result: no" >&5
18464echo "${ECHO_T}no" >&6
18465fi
18466
John Criswell39827c82003-09-23 15:28:52 +000018467if test ${DATE} = "false"
18468then
18469 { { echo "$as_me:$LINENO: error: date required but not found" >&5
18470echo "$as_me: error: date required but not found" >&2;}
18471 { (exit 1); exit 1; }; }
18472fi
18473
John Criswell7a73b802003-06-30 21:59:07 +000018474# Extract the first word of "mv", so it can be a program name with args.
18475set dummy mv; ac_word=$2
18476echo "$as_me:$LINENO: checking for $ac_word" >&5
18477echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18478if test "${ac_cv_path_MV+set}" = set; then
18479 echo $ECHO_N "(cached) $ECHO_C" >&6
18480else
18481 case $MV in
18482 [\\/]* | ?:[\\/]*)
18483 ac_cv_path_MV="$MV" # Let the user override the test with a path.
18484 ;;
18485 *)
18486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18487for as_dir in $PATH
18488do
18489 IFS=$as_save_IFS
18490 test -z "$as_dir" && as_dir=.
18491 for ac_exec_ext in '' $ac_executable_extensions; do
18492 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18493 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
18494 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18495 break 2
18496 fi
18497done
18498done
18499
John Criswell39827c82003-09-23 15:28:52 +000018500 test -z "$ac_cv_path_MV" && ac_cv_path_MV="false"
John Criswell7a73b802003-06-30 21:59:07 +000018501 ;;
18502esac
18503fi
18504MV=$ac_cv_path_MV
18505
18506if test -n "$MV"; then
18507 echo "$as_me:$LINENO: result: $MV" >&5
18508echo "${ECHO_T}$MV" >&6
18509else
18510 echo "$as_me:$LINENO: result: no" >&5
18511echo "${ECHO_T}no" >&6
18512fi
18513
John Criswell39827c82003-09-23 15:28:52 +000018514if test ${MV} = "false"
18515then
18516 { { echo "$as_me:$LINENO: error: mv required but not found" >&5
18517echo "$as_me: error: mv required but not found" >&2;}
18518 { (exit 1); exit 1; }; }
18519fi
18520
John Criswell7a73b802003-06-30 21:59:07 +000018521# Extract the first word of "dot", so it can be a program name with args.
18522set dummy dot; ac_word=$2
18523echo "$as_me:$LINENO: checking for $ac_word" >&5
18524echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18525if test "${ac_cv_path_DOT+set}" = set; then
18526 echo $ECHO_N "(cached) $ECHO_C" >&6
18527else
18528 case $DOT in
18529 [\\/]* | ?:[\\/]*)
18530 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
18531 ;;
18532 *)
18533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18534for as_dir in $PATH
18535do
18536 IFS=$as_save_IFS
18537 test -z "$as_dir" && as_dir=.
18538 for ac_exec_ext in '' $ac_executable_extensions; do
18539 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18540 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
18541 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18542 break 2
18543 fi
18544done
18545done
18546
John Criswell39827c82003-09-23 15:28:52 +000018547 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="false"
John Criswell7a73b802003-06-30 21:59:07 +000018548 ;;
18549esac
18550fi
18551DOT=$ac_cv_path_DOT
18552
18553if test -n "$DOT"; then
18554 echo "$as_me:$LINENO: result: $DOT" >&5
18555echo "${ECHO_T}$DOT" >&6
18556else
18557 echo "$as_me:$LINENO: result: no" >&5
18558echo "${ECHO_T}no" >&6
18559fi
18560
John Criswell39827c82003-09-23 15:28:52 +000018561
John Criswell7a73b802003-06-30 21:59:07 +000018562# Extract the first word of "etags", so it can be a program name with args.
18563set dummy etags; ac_word=$2
18564echo "$as_me:$LINENO: checking for $ac_word" >&5
18565echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18566if test "${ac_cv_path_ETAGS+set}" = set; then
18567 echo $ECHO_N "(cached) $ECHO_C" >&6
18568else
18569 case $ETAGS in
18570 [\\/]* | ?:[\\/]*)
18571 ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
18572 ;;
18573 *)
18574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18575for as_dir in $PATH
18576do
18577 IFS=$as_save_IFS
18578 test -z "$as_dir" && as_dir=.
18579 for ac_exec_ext in '' $ac_executable_extensions; do
18580 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18581 ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
18582 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18583 break 2
18584 fi
18585done
18586done
18587
John Criswell39827c82003-09-23 15:28:52 +000018588 test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="false"
John Criswell7a73b802003-06-30 21:59:07 +000018589 ;;
18590esac
18591fi
18592ETAGS=$ac_cv_path_ETAGS
18593
18594if test -n "$ETAGS"; then
18595 echo "$as_me:$LINENO: result: $ETAGS" >&5
18596echo "${ECHO_T}$ETAGS" >&6
18597else
18598 echo "$as_me:$LINENO: result: no" >&5
18599echo "${ECHO_T}no" >&6
18600fi
18601
John Criswell39827c82003-09-23 15:28:52 +000018602
John Criswellde00db22003-08-25 16:49:54 +000018603# Extract the first word of "python", so it can be a program name with args.
18604set dummy python; ac_word=$2
18605echo "$as_me:$LINENO: checking for $ac_word" >&5
18606echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18607if test "${ac_cv_path_PYTHON+set}" = set; then
18608 echo $ECHO_N "(cached) $ECHO_C" >&6
18609else
18610 case $PYTHON in
18611 [\\/]* | ?:[\\/]*)
18612 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
18613 ;;
18614 *)
18615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18616for as_dir in $PATH
18617do
18618 IFS=$as_save_IFS
18619 test -z "$as_dir" && as_dir=.
18620 for ac_exec_ext in '' $ac_executable_extensions; do
18621 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18622 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
18623 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18624 break 2
18625 fi
18626done
18627done
18628
John Criswell39827c82003-09-23 15:28:52 +000018629 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="false"
John Criswellde00db22003-08-25 16:49:54 +000018630 ;;
18631esac
18632fi
18633PYTHON=$ac_cv_path_PYTHON
18634
18635if test -n "$PYTHON"; then
18636 echo "$as_me:$LINENO: result: $PYTHON" >&5
18637echo "${ECHO_T}$PYTHON" >&6
18638else
18639 echo "$as_me:$LINENO: result: no" >&5
18640echo "${ECHO_T}no" >&6
18641fi
18642
John Criswell39827c82003-09-23 15:28:52 +000018643if test ${PYTHON} = "false"
18644then
John Criswell61095982003-09-23 20:46:32 +000018645 { echo "$as_me:$LINENO: WARNING: python required but not found" >&5
18646echo "$as_me: WARNING: python required but not found" >&2;}
John Criswell39827c82003-09-23 15:28:52 +000018647fi
18648
John Criswellde00db22003-08-25 16:49:54 +000018649# Extract the first word of "qmtest", so it can be a program name with args.
18650set dummy qmtest; ac_word=$2
18651echo "$as_me:$LINENO: checking for $ac_word" >&5
18652echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18653if test "${ac_cv_path_QMTEST+set}" = set; then
18654 echo $ECHO_N "(cached) $ECHO_C" >&6
18655else
18656 case $QMTEST in
18657 [\\/]* | ?:[\\/]*)
18658 ac_cv_path_QMTEST="$QMTEST" # Let the user override the test with a path.
18659 ;;
18660 *)
18661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18662for as_dir in $PATH
18663do
18664 IFS=$as_save_IFS
18665 test -z "$as_dir" && as_dir=.
18666 for ac_exec_ext in '' $ac_executable_extensions; do
18667 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18668 ac_cv_path_QMTEST="$as_dir/$ac_word$ac_exec_ext"
18669 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18670 break 2
18671 fi
18672done
18673done
18674
John Criswell39827c82003-09-23 15:28:52 +000018675 test -z "$ac_cv_path_QMTEST" && ac_cv_path_QMTEST="false"
John Criswellde00db22003-08-25 16:49:54 +000018676 ;;
18677esac
18678fi
18679QMTEST=$ac_cv_path_QMTEST
18680
18681if test -n "$QMTEST"; then
18682 echo "$as_me:$LINENO: result: $QMTEST" >&5
18683echo "${ECHO_T}$QMTEST" >&6
18684else
18685 echo "$as_me:$LINENO: result: no" >&5
18686echo "${ECHO_T}no" >&6
18687fi
18688
John Criswell39827c82003-09-23 15:28:52 +000018689if test ${QMTEST} = "false"
18690then
John Criswell61095982003-09-23 20:46:32 +000018691 { echo "$as_me:$LINENO: WARNING: qmtest required but not found" >&5
18692echo "$as_me: WARNING: qmtest required but not found" >&2;}
John Criswell39827c82003-09-23 15:28:52 +000018693fi
John Criswellde00db22003-08-25 16:49:54 +000018694
18695pyversion=`$PYTHON -V 2>&1 | cut -d\ -f2`
18696pymajor=`echo $pyversion | cut -d. -f1`
18697pyminor=`echo $pyversion | cut -d. -f2`
18698
18699if test "$pymajor" -ge "2"
18700then
18701 if test "$pymajor" -eq "2"
18702 then
18703 if test "$pyminor" -lt "2"
18704 then
Brian Gaekef3b24102003-11-16 18:38:14 +000018705 { echo "$as_me:$LINENO: WARNING: Python 2.2 or greater required for qmtest" >&5
18706echo "$as_me: WARNING: Python 2.2 or greater required for qmtest" >&2;}
John Criswellde00db22003-08-25 16:49:54 +000018707 fi
18708 fi
18709else
Brian Gaekef3b24102003-11-16 18:38:14 +000018710 { echo "$as_me:$LINENO: WARNING: Python 2.2 or greater required for qmtest" >&5
18711echo "$as_me: WARNING: Python 2.2 or greater required for qmtest" >&2;}
John Criswellde00db22003-08-25 16:49:54 +000018712fi
John Criswell7a73b802003-06-30 21:59:07 +000018713
18714
18715
18716
18717
18718echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
18719echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
18720if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
18721 echo $ECHO_N "(cached) $ECHO_C" >&6
18722else
18723 ac_check_lib_save_LIBS=$LIBS
18724LIBS="-lelf $LIBS"
18725cat >conftest.$ac_ext <<_ACEOF
18726#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000018727/* confdefs.h. */
18728_ACEOF
18729cat confdefs.h >>conftest.$ac_ext
18730cat >>conftest.$ac_ext <<_ACEOF
18731/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000018732
18733/* Override any gcc2 internal prototype to avoid an error. */
18734#ifdef __cplusplus
18735extern "C"
18736#endif
18737/* We use char because int might match the return type of a gcc2
18738 builtin and then its argument prototype would still apply. */
18739char elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000018740int
18741main ()
18742{
18743elf_begin ();
18744 ;
18745 return 0;
18746}
18747_ACEOF
18748rm -f conftest.$ac_objext conftest$ac_exeext
18749if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18750 (eval $ac_link) 2>&5
18751 ac_status=$?
18752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18753 (exit $ac_status); } &&
18754 { ac_try='test -s conftest$ac_exeext'
18755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18756 (eval $ac_try) 2>&5
18757 ac_status=$?
18758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18759 (exit $ac_status); }; }; then
18760 ac_cv_lib_elf_elf_begin=yes
18761else
18762 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018763sed 's/^/| /' conftest.$ac_ext >&5
18764
John Criswell7a73b802003-06-30 21:59:07 +000018765ac_cv_lib_elf_elf_begin=no
18766fi
18767rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18768LIBS=$ac_check_lib_save_LIBS
18769fi
18770echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
18771echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
18772if test $ac_cv_lib_elf_elf_begin = yes; then
18773 cat >>confdefs.h <<_ACEOF
18774#define HAVE_LIBELF 1
18775_ACEOF
18776
18777 LIBS="-lelf $LIBS"
18778
18779fi
18780
18781
18782echo "$as_me:$LINENO: checking for library containing dlopen" >&5
18783echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
18784if test "${ac_cv_search_dlopen+set}" = set; then
18785 echo $ECHO_N "(cached) $ECHO_C" >&6
18786else
18787 ac_func_search_save_LIBS=$LIBS
18788ac_cv_search_dlopen=no
18789cat >conftest.$ac_ext <<_ACEOF
18790#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000018791/* confdefs.h. */
18792_ACEOF
18793cat confdefs.h >>conftest.$ac_ext
18794cat >>conftest.$ac_ext <<_ACEOF
18795/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000018796
18797/* Override any gcc2 internal prototype to avoid an error. */
18798#ifdef __cplusplus
18799extern "C"
18800#endif
18801/* We use char because int might match the return type of a gcc2
18802 builtin and then its argument prototype would still apply. */
18803char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000018804int
18805main ()
18806{
18807dlopen ();
18808 ;
18809 return 0;
18810}
18811_ACEOF
18812rm -f conftest.$ac_objext conftest$ac_exeext
18813if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18814 (eval $ac_link) 2>&5
18815 ac_status=$?
18816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18817 (exit $ac_status); } &&
18818 { ac_try='test -s conftest$ac_exeext'
18819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18820 (eval $ac_try) 2>&5
18821 ac_status=$?
18822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18823 (exit $ac_status); }; }; then
18824 ac_cv_search_dlopen="none required"
18825else
18826 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018827sed 's/^/| /' conftest.$ac_ext >&5
18828
John Criswell7a73b802003-06-30 21:59:07 +000018829fi
18830rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18831if test "$ac_cv_search_dlopen" = no; then
18832 for ac_lib in dl; do
18833 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18834 cat >conftest.$ac_ext <<_ACEOF
18835#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000018836/* confdefs.h. */
18837_ACEOF
18838cat confdefs.h >>conftest.$ac_ext
18839cat >>conftest.$ac_ext <<_ACEOF
18840/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000018841
18842/* Override any gcc2 internal prototype to avoid an error. */
18843#ifdef __cplusplus
18844extern "C"
18845#endif
18846/* We use char because int might match the return type of a gcc2
18847 builtin and then its argument prototype would still apply. */
18848char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000018849int
18850main ()
18851{
18852dlopen ();
18853 ;
18854 return 0;
18855}
18856_ACEOF
18857rm -f conftest.$ac_objext conftest$ac_exeext
18858if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18859 (eval $ac_link) 2>&5
18860 ac_status=$?
18861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18862 (exit $ac_status); } &&
18863 { ac_try='test -s conftest$ac_exeext'
18864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18865 (eval $ac_try) 2>&5
18866 ac_status=$?
18867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18868 (exit $ac_status); }; }; then
18869 ac_cv_search_dlopen="-l$ac_lib"
18870break
18871else
18872 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018873sed 's/^/| /' conftest.$ac_ext >&5
18874
John Criswell7a73b802003-06-30 21:59:07 +000018875fi
18876rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18877 done
18878fi
18879LIBS=$ac_func_search_save_LIBS
18880fi
18881echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
18882echo "${ECHO_T}$ac_cv_search_dlopen" >&6
18883if test "$ac_cv_search_dlopen" != no; then
18884 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000018885
18886cat >>confdefs.h <<\_ACEOF
Brian Gaekec45be042003-10-07 06:01:34 +000018887#define HAVE_DLOPEN 1
18888_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000018889
18890else
Brian Gaekec45be042003-10-07 06:01:34 +000018891 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
18892echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000018893fi
18894
18895
18896echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
18897echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
18898if test "${ac_cv_search_mallinfo+set}" = set; then
18899 echo $ECHO_N "(cached) $ECHO_C" >&6
18900else
18901 ac_func_search_save_LIBS=$LIBS
18902ac_cv_search_mallinfo=no
18903cat >conftest.$ac_ext <<_ACEOF
18904#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000018905/* confdefs.h. */
18906_ACEOF
18907cat confdefs.h >>conftest.$ac_ext
18908cat >>conftest.$ac_ext <<_ACEOF
18909/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000018910
18911/* Override any gcc2 internal prototype to avoid an error. */
18912#ifdef __cplusplus
18913extern "C"
18914#endif
18915/* We use char because int might match the return type of a gcc2
18916 builtin and then its argument prototype would still apply. */
18917char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000018918int
18919main ()
18920{
18921mallinfo ();
18922 ;
18923 return 0;
18924}
18925_ACEOF
18926rm -f conftest.$ac_objext conftest$ac_exeext
18927if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18928 (eval $ac_link) 2>&5
18929 ac_status=$?
18930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18931 (exit $ac_status); } &&
18932 { ac_try='test -s conftest$ac_exeext'
18933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18934 (eval $ac_try) 2>&5
18935 ac_status=$?
18936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18937 (exit $ac_status); }; }; then
18938 ac_cv_search_mallinfo="none required"
18939else
18940 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018941sed 's/^/| /' conftest.$ac_ext >&5
18942
John Criswell7a73b802003-06-30 21:59:07 +000018943fi
18944rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18945if test "$ac_cv_search_mallinfo" = no; then
18946 for ac_lib in malloc; do
18947 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18948 cat >conftest.$ac_ext <<_ACEOF
18949#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000018950/* confdefs.h. */
18951_ACEOF
18952cat confdefs.h >>conftest.$ac_ext
18953cat >>conftest.$ac_ext <<_ACEOF
18954/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000018955
18956/* Override any gcc2 internal prototype to avoid an error. */
18957#ifdef __cplusplus
18958extern "C"
18959#endif
18960/* We use char because int might match the return type of a gcc2
18961 builtin and then its argument prototype would still apply. */
18962char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000018963int
18964main ()
18965{
18966mallinfo ();
18967 ;
18968 return 0;
18969}
18970_ACEOF
18971rm -f conftest.$ac_objext conftest$ac_exeext
18972if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18973 (eval $ac_link) 2>&5
18974 ac_status=$?
18975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18976 (exit $ac_status); } &&
18977 { ac_try='test -s conftest$ac_exeext'
18978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18979 (eval $ac_try) 2>&5
18980 ac_status=$?
18981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18982 (exit $ac_status); }; }; then
18983 ac_cv_search_mallinfo="-l$ac_lib"
18984break
18985else
18986 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018987sed 's/^/| /' conftest.$ac_ext >&5
18988
John Criswell7a73b802003-06-30 21:59:07 +000018989fi
18990rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18991 done
18992fi
18993LIBS=$ac_func_search_save_LIBS
18994fi
18995echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
18996echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
18997if test "$ac_cv_search_mallinfo" != no; then
18998 test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000018999
19000cat >>confdefs.h <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000019001#define HAVE_MALLINFO 1
19002_ACEOF
19003
19004fi
19005
19006
19007
19008echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19009echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19010if test "${ac_cv_header_stdc+set}" = set; then
19011 echo $ECHO_N "(cached) $ECHO_C" >&6
19012else
19013 cat >conftest.$ac_ext <<_ACEOF
19014#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019015/* confdefs.h. */
19016_ACEOF
19017cat confdefs.h >>conftest.$ac_ext
19018cat >>conftest.$ac_ext <<_ACEOF
19019/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019020#include <stdlib.h>
19021#include <stdarg.h>
19022#include <string.h>
19023#include <float.h>
19024
John Criswell0c38eaf2003-09-10 15:17:25 +000019025int
19026main ()
19027{
19028
19029 ;
19030 return 0;
19031}
John Criswell7a73b802003-06-30 21:59:07 +000019032_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000019033rm -f conftest.$ac_objext
19034if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19035 (eval $ac_compile) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000019036 ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +000019037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019038 (exit $ac_status); } &&
19039 { ac_try='test -s conftest.$ac_objext'
19040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19041 (eval $ac_try) 2>&5
19042 ac_status=$?
19043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19044 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000019045 ac_cv_header_stdc=yes
19046else
19047 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019048sed 's/^/| /' conftest.$ac_ext >&5
19049
19050ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000019051fi
John Criswell0c38eaf2003-09-10 15:17:25 +000019052rm -f conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000019053
19054if test $ac_cv_header_stdc = yes; then
19055 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19056 cat >conftest.$ac_ext <<_ACEOF
19057#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019058/* confdefs.h. */
19059_ACEOF
19060cat confdefs.h >>conftest.$ac_ext
19061cat >>conftest.$ac_ext <<_ACEOF
19062/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019063#include <string.h>
19064
19065_ACEOF
19066if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000019067 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000019068 :
19069else
19070 ac_cv_header_stdc=no
19071fi
19072rm -f conftest*
19073
19074fi
19075
19076if test $ac_cv_header_stdc = yes; then
19077 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19078 cat >conftest.$ac_ext <<_ACEOF
19079#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019080/* confdefs.h. */
19081_ACEOF
19082cat confdefs.h >>conftest.$ac_ext
19083cat >>conftest.$ac_ext <<_ACEOF
19084/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019085#include <stdlib.h>
19086
19087_ACEOF
19088if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000019089 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000019090 :
19091else
19092 ac_cv_header_stdc=no
19093fi
19094rm -f conftest*
19095
19096fi
19097
19098if test $ac_cv_header_stdc = yes; then
19099 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19100 if test "$cross_compiling" = yes; then
19101 :
19102else
19103 cat >conftest.$ac_ext <<_ACEOF
19104#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019105/* confdefs.h. */
19106_ACEOF
19107cat confdefs.h >>conftest.$ac_ext
19108cat >>conftest.$ac_ext <<_ACEOF
19109/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019110#include <ctype.h>
19111#if ((' ' & 0x0FF) == 0x020)
19112# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19113# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19114#else
John Criswell0c38eaf2003-09-10 15:17:25 +000019115# define ISLOWER(c) \
19116 (('a' <= (c) && (c) <= 'i') \
John Criswell7a73b802003-06-30 21:59:07 +000019117 || ('j' <= (c) && (c) <= 'r') \
19118 || ('s' <= (c) && (c) <= 'z'))
19119# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19120#endif
19121
19122#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19123int
19124main ()
19125{
19126 int i;
19127 for (i = 0; i < 256; i++)
19128 if (XOR (islower (i), ISLOWER (i))
19129 || toupper (i) != TOUPPER (i))
19130 exit(2);
19131 exit (0);
19132}
19133_ACEOF
19134rm -f conftest$ac_exeext
19135if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19136 (eval $ac_link) 2>&5
19137 ac_status=$?
19138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19139 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19141 (eval $ac_try) 2>&5
19142 ac_status=$?
19143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19144 (exit $ac_status); }; }; then
19145 :
19146else
19147 echo "$as_me: program exited with status $ac_status" >&5
19148echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019149sed 's/^/| /' conftest.$ac_ext >&5
19150
John Criswell7a73b802003-06-30 21:59:07 +000019151( exit $ac_status )
19152ac_cv_header_stdc=no
19153fi
John Criswell0c38eaf2003-09-10 15:17:25 +000019154rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000019155fi
19156fi
19157fi
19158echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19159echo "${ECHO_T}$ac_cv_header_stdc" >&6
19160if test $ac_cv_header_stdc = yes; then
19161
19162cat >>confdefs.h <<\_ACEOF
19163#define STDC_HEADERS 1
19164_ACEOF
19165
19166fi
19167
19168echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
19169echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
19170if test "${ac_cv_header_sys_wait_h+set}" = set; then
19171 echo $ECHO_N "(cached) $ECHO_C" >&6
19172else
19173 cat >conftest.$ac_ext <<_ACEOF
19174#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019175/* confdefs.h. */
19176_ACEOF
19177cat confdefs.h >>conftest.$ac_ext
19178cat >>conftest.$ac_ext <<_ACEOF
19179/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019180#include <sys/types.h>
19181#include <sys/wait.h>
19182#ifndef WEXITSTATUS
19183# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
19184#endif
19185#ifndef WIFEXITED
19186# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
19187#endif
19188
John Criswell7a73b802003-06-30 21:59:07 +000019189int
19190main ()
19191{
19192 int s;
19193 wait (&s);
19194 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
19195 ;
19196 return 0;
19197}
19198_ACEOF
19199rm -f conftest.$ac_objext
19200if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19201 (eval $ac_compile) 2>&5
19202 ac_status=$?
19203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19204 (exit $ac_status); } &&
19205 { ac_try='test -s conftest.$ac_objext'
19206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19207 (eval $ac_try) 2>&5
19208 ac_status=$?
19209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19210 (exit $ac_status); }; }; then
19211 ac_cv_header_sys_wait_h=yes
19212else
19213 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019214sed 's/^/| /' conftest.$ac_ext >&5
19215
John Criswell7a73b802003-06-30 21:59:07 +000019216ac_cv_header_sys_wait_h=no
19217fi
19218rm -f conftest.$ac_objext conftest.$ac_ext
19219fi
19220echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
19221echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
19222if test $ac_cv_header_sys_wait_h = yes; then
19223
19224cat >>confdefs.h <<\_ACEOF
19225#define HAVE_SYS_WAIT_H 1
19226_ACEOF
19227
19228fi
19229
19230
19231
19232
19233
19234
19235
19236
19237
19238
19239for ac_header in assert.h fcntl.h limits.h sys/time.h unistd.h errno.h signal.h math.h
19240do
19241as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19242if eval "test \"\${$as_ac_Header+set}\" = set"; then
19243 echo "$as_me:$LINENO: checking for $ac_header" >&5
19244echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19245if eval "test \"\${$as_ac_Header+set}\" = set"; then
19246 echo $ECHO_N "(cached) $ECHO_C" >&6
19247fi
19248echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19249echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19250else
19251 # Is the header compilable?
19252echo "$as_me:$LINENO: checking $ac_header usability" >&5
19253echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19254cat >conftest.$ac_ext <<_ACEOF
19255#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019256/* confdefs.h. */
19257_ACEOF
19258cat confdefs.h >>conftest.$ac_ext
19259cat >>conftest.$ac_ext <<_ACEOF
19260/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019261$ac_includes_default
19262#include <$ac_header>
19263_ACEOF
19264rm -f conftest.$ac_objext
19265if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19266 (eval $ac_compile) 2>&5
19267 ac_status=$?
19268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19269 (exit $ac_status); } &&
19270 { ac_try='test -s conftest.$ac_objext'
19271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19272 (eval $ac_try) 2>&5
19273 ac_status=$?
19274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19275 (exit $ac_status); }; }; then
19276 ac_header_compiler=yes
19277else
19278 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019279sed 's/^/| /' conftest.$ac_ext >&5
19280
John Criswell7a73b802003-06-30 21:59:07 +000019281ac_header_compiler=no
19282fi
19283rm -f conftest.$ac_objext conftest.$ac_ext
19284echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19285echo "${ECHO_T}$ac_header_compiler" >&6
19286
19287# Is the header present?
19288echo "$as_me:$LINENO: checking $ac_header presence" >&5
19289echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19290cat >conftest.$ac_ext <<_ACEOF
19291#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019292/* confdefs.h. */
19293_ACEOF
19294cat confdefs.h >>conftest.$ac_ext
19295cat >>conftest.$ac_ext <<_ACEOF
19296/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019297#include <$ac_header>
19298_ACEOF
19299if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19300 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19301 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000019302 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000019303 rm -f conftest.er1
19304 cat conftest.err >&5
19305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19306 (exit $ac_status); } >/dev/null; then
19307 if test -s conftest.err; then
19308 ac_cpp_err=$ac_c_preproc_warn_flag
19309 else
19310 ac_cpp_err=
19311 fi
19312else
19313 ac_cpp_err=yes
19314fi
19315if test -z "$ac_cpp_err"; then
19316 ac_header_preproc=yes
19317else
19318 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019319sed 's/^/| /' conftest.$ac_ext >&5
19320
John Criswell7a73b802003-06-30 21:59:07 +000019321 ac_header_preproc=no
19322fi
19323rm -f conftest.err conftest.$ac_ext
19324echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19325echo "${ECHO_T}$ac_header_preproc" >&6
19326
19327# So? What about this header?
19328case $ac_header_compiler:$ac_header_preproc in
19329 yes:no )
19330 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19331echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19332 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019333echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19334 (
19335 cat <<\_ASBOX
19336## ------------------------------------ ##
19337## Report this to bug-autoconf@gnu.org. ##
19338## ------------------------------------ ##
19339_ASBOX
19340 ) |
19341 sed "s/^/$as_me: WARNING: /" >&2
19342 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019343 no:yes )
19344 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19345echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19346 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19347echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19348 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019349echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19350 (
19351 cat <<\_ASBOX
19352## ------------------------------------ ##
19353## Report this to bug-autoconf@gnu.org. ##
19354## ------------------------------------ ##
19355_ASBOX
19356 ) |
19357 sed "s/^/$as_me: WARNING: /" >&2
19358 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019359esac
19360echo "$as_me:$LINENO: checking for $ac_header" >&5
19361echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19362if eval "test \"\${$as_ac_Header+set}\" = set"; then
19363 echo $ECHO_N "(cached) $ECHO_C" >&6
19364else
19365 eval "$as_ac_Header=$ac_header_preproc"
19366fi
19367echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19368echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19369
19370fi
19371if test `eval echo '${'$as_ac_Header'}'` = yes; then
19372 cat >>confdefs.h <<_ACEOF
19373#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19374_ACEOF
19375
19376fi
19377
19378done
19379
19380
19381
19382
19383
John Criswelle8a63eb2003-10-23 19:16:12 +000019384for ac_header in malloc.h sys/mman.h sys/resource.h
John Criswell7a73b802003-06-30 21:59:07 +000019385do
19386as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19387if eval "test \"\${$as_ac_Header+set}\" = set"; then
19388 echo "$as_me:$LINENO: checking for $ac_header" >&5
19389echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19390if eval "test \"\${$as_ac_Header+set}\" = set"; then
19391 echo $ECHO_N "(cached) $ECHO_C" >&6
19392fi
19393echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19394echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19395else
19396 # Is the header compilable?
19397echo "$as_me:$LINENO: checking $ac_header usability" >&5
19398echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19399cat >conftest.$ac_ext <<_ACEOF
19400#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019401/* confdefs.h. */
19402_ACEOF
19403cat confdefs.h >>conftest.$ac_ext
19404cat >>conftest.$ac_ext <<_ACEOF
19405/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019406$ac_includes_default
19407#include <$ac_header>
19408_ACEOF
19409rm -f conftest.$ac_objext
19410if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19411 (eval $ac_compile) 2>&5
19412 ac_status=$?
19413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19414 (exit $ac_status); } &&
19415 { ac_try='test -s conftest.$ac_objext'
19416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19417 (eval $ac_try) 2>&5
19418 ac_status=$?
19419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19420 (exit $ac_status); }; }; then
19421 ac_header_compiler=yes
19422else
19423 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019424sed 's/^/| /' conftest.$ac_ext >&5
19425
John Criswell7a73b802003-06-30 21:59:07 +000019426ac_header_compiler=no
19427fi
19428rm -f conftest.$ac_objext conftest.$ac_ext
19429echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19430echo "${ECHO_T}$ac_header_compiler" >&6
19431
19432# Is the header present?
19433echo "$as_me:$LINENO: checking $ac_header presence" >&5
19434echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19435cat >conftest.$ac_ext <<_ACEOF
19436#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019437/* confdefs.h. */
19438_ACEOF
19439cat confdefs.h >>conftest.$ac_ext
19440cat >>conftest.$ac_ext <<_ACEOF
19441/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019442#include <$ac_header>
19443_ACEOF
19444if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19445 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19446 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000019447 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000019448 rm -f conftest.er1
19449 cat conftest.err >&5
19450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19451 (exit $ac_status); } >/dev/null; then
19452 if test -s conftest.err; then
19453 ac_cpp_err=$ac_c_preproc_warn_flag
19454 else
19455 ac_cpp_err=
19456 fi
19457else
19458 ac_cpp_err=yes
19459fi
19460if test -z "$ac_cpp_err"; then
19461 ac_header_preproc=yes
19462else
19463 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019464sed 's/^/| /' conftest.$ac_ext >&5
19465
John Criswell7a73b802003-06-30 21:59:07 +000019466 ac_header_preproc=no
19467fi
19468rm -f conftest.err conftest.$ac_ext
19469echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19470echo "${ECHO_T}$ac_header_preproc" >&6
19471
19472# So? What about this header?
19473case $ac_header_compiler:$ac_header_preproc in
19474 yes:no )
19475 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19476echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19477 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019478echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19479 (
19480 cat <<\_ASBOX
19481## ------------------------------------ ##
19482## Report this to bug-autoconf@gnu.org. ##
19483## ------------------------------------ ##
19484_ASBOX
19485 ) |
19486 sed "s/^/$as_me: WARNING: /" >&2
19487 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019488 no:yes )
19489 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19490echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19491 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19492echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19493 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019494echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19495 (
19496 cat <<\_ASBOX
19497## ------------------------------------ ##
19498## Report this to bug-autoconf@gnu.org. ##
19499## ------------------------------------ ##
19500_ASBOX
19501 ) |
19502 sed "s/^/$as_me: WARNING: /" >&2
19503 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019504esac
19505echo "$as_me:$LINENO: checking for $ac_header" >&5
19506echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19507if eval "test \"\${$as_ac_Header+set}\" = set"; then
19508 echo $ECHO_N "(cached) $ECHO_C" >&6
19509else
19510 eval "$as_ac_Header=$ac_header_preproc"
19511fi
19512echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19513echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19514
19515fi
19516if test `eval echo '${'$as_ac_Header'}'` = yes; then
19517 cat >>confdefs.h <<_ACEOF
19518#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19519_ACEOF
19520
19521fi
19522
19523done
19524
19525
19526
19527
19528for ac_header in dlfcn.h link.h
19529do
19530as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19531if eval "test \"\${$as_ac_Header+set}\" = set"; then
19532 echo "$as_me:$LINENO: checking for $ac_header" >&5
19533echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19534if eval "test \"\${$as_ac_Header+set}\" = set"; then
19535 echo $ECHO_N "(cached) $ECHO_C" >&6
19536fi
19537echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19538echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19539else
19540 # Is the header compilable?
19541echo "$as_me:$LINENO: checking $ac_header usability" >&5
19542echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19543cat >conftest.$ac_ext <<_ACEOF
19544#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019545/* confdefs.h. */
19546_ACEOF
19547cat confdefs.h >>conftest.$ac_ext
19548cat >>conftest.$ac_ext <<_ACEOF
19549/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019550$ac_includes_default
19551#include <$ac_header>
19552_ACEOF
19553rm -f conftest.$ac_objext
19554if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19555 (eval $ac_compile) 2>&5
19556 ac_status=$?
19557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19558 (exit $ac_status); } &&
19559 { ac_try='test -s conftest.$ac_objext'
19560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19561 (eval $ac_try) 2>&5
19562 ac_status=$?
19563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19564 (exit $ac_status); }; }; then
19565 ac_header_compiler=yes
19566else
19567 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019568sed 's/^/| /' conftest.$ac_ext >&5
19569
John Criswell7a73b802003-06-30 21:59:07 +000019570ac_header_compiler=no
19571fi
19572rm -f conftest.$ac_objext conftest.$ac_ext
19573echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19574echo "${ECHO_T}$ac_header_compiler" >&6
19575
19576# Is the header present?
19577echo "$as_me:$LINENO: checking $ac_header presence" >&5
19578echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19579cat >conftest.$ac_ext <<_ACEOF
19580#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019581/* confdefs.h. */
19582_ACEOF
19583cat confdefs.h >>conftest.$ac_ext
19584cat >>conftest.$ac_ext <<_ACEOF
19585/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019586#include <$ac_header>
19587_ACEOF
19588if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19589 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19590 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000019591 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000019592 rm -f conftest.er1
19593 cat conftest.err >&5
19594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19595 (exit $ac_status); } >/dev/null; then
19596 if test -s conftest.err; then
19597 ac_cpp_err=$ac_c_preproc_warn_flag
19598 else
19599 ac_cpp_err=
19600 fi
19601else
19602 ac_cpp_err=yes
19603fi
19604if test -z "$ac_cpp_err"; then
19605 ac_header_preproc=yes
19606else
19607 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019608sed 's/^/| /' conftest.$ac_ext >&5
19609
John Criswell7a73b802003-06-30 21:59:07 +000019610 ac_header_preproc=no
19611fi
19612rm -f conftest.err conftest.$ac_ext
19613echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19614echo "${ECHO_T}$ac_header_preproc" >&6
19615
19616# So? What about this header?
19617case $ac_header_compiler:$ac_header_preproc in
19618 yes:no )
19619 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19620echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19621 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019622echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19623 (
19624 cat <<\_ASBOX
19625## ------------------------------------ ##
19626## Report this to bug-autoconf@gnu.org. ##
19627## ------------------------------------ ##
19628_ASBOX
19629 ) |
19630 sed "s/^/$as_me: WARNING: /" >&2
19631 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019632 no:yes )
19633 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19634echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19635 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19636echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19637 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019638echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19639 (
19640 cat <<\_ASBOX
19641## ------------------------------------ ##
19642## Report this to bug-autoconf@gnu.org. ##
19643## ------------------------------------ ##
19644_ASBOX
19645 ) |
19646 sed "s/^/$as_me: WARNING: /" >&2
19647 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019648esac
19649echo "$as_me:$LINENO: checking for $ac_header" >&5
19650echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19651if eval "test \"\${$as_ac_Header+set}\" = set"; then
19652 echo $ECHO_N "(cached) $ECHO_C" >&6
19653else
19654 eval "$as_ac_Header=$ac_header_preproc"
19655fi
19656echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19657echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19658
19659fi
19660if test `eval echo '${'$as_ac_Header'}'` = yes; then
19661 cat >>confdefs.h <<_ACEOF
19662#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19663_ACEOF
19664
19665fi
19666
19667done
19668
19669
19670
John Criswell7a73b802003-06-30 21:59:07 +000019671echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
19672echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
19673if test "${ac_cv_c_const+set}" = set; then
19674 echo $ECHO_N "(cached) $ECHO_C" >&6
19675else
19676 cat >conftest.$ac_ext <<_ACEOF
19677#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019678/* confdefs.h. */
19679_ACEOF
19680cat confdefs.h >>conftest.$ac_ext
19681cat >>conftest.$ac_ext <<_ACEOF
19682/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019683
John Criswell7a73b802003-06-30 21:59:07 +000019684int
19685main ()
19686{
19687/* FIXME: Include the comments suggested by Paul. */
19688#ifndef __cplusplus
19689 /* Ultrix mips cc rejects this. */
19690 typedef int charset[2];
19691 const charset x;
19692 /* SunOS 4.1.1 cc rejects this. */
19693 char const *const *ccp;
19694 char **p;
19695 /* NEC SVR4.0.2 mips cc rejects this. */
19696 struct point {int x, y;};
19697 static struct point const zero = {0,0};
19698 /* AIX XL C 1.02.0.0 rejects this.
19699 It does not let you subtract one const X* pointer from another in
19700 an arm of an if-expression whose if-part is not a constant
19701 expression */
19702 const char *g = "string";
19703 ccp = &g + (g ? g-g : 0);
19704 /* HPUX 7.0 cc rejects these. */
19705 ++ccp;
19706 p = (char**) ccp;
19707 ccp = (char const *const *) p;
19708 { /* SCO 3.2v4 cc rejects this. */
19709 char *t;
19710 char const *s = 0 ? (char *) 0 : (char const *) 0;
19711
19712 *t++ = 0;
19713 }
19714 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
19715 int x[] = {25, 17};
19716 const int *foo = &x[0];
19717 ++foo;
19718 }
19719 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19720 typedef const int *iptr;
19721 iptr p = 0;
19722 ++p;
19723 }
19724 { /* AIX XL C 1.02.0.0 rejects this saying
19725 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19726 struct s { int j; const int *ap[3]; };
19727 struct s *b; b->j = 5;
19728 }
19729 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19730 const int foo = 10;
19731 }
19732#endif
19733
19734 ;
19735 return 0;
19736}
19737_ACEOF
19738rm -f conftest.$ac_objext
19739if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19740 (eval $ac_compile) 2>&5
19741 ac_status=$?
19742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19743 (exit $ac_status); } &&
19744 { ac_try='test -s conftest.$ac_objext'
19745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19746 (eval $ac_try) 2>&5
19747 ac_status=$?
19748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19749 (exit $ac_status); }; }; then
19750 ac_cv_c_const=yes
19751else
19752 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019753sed 's/^/| /' conftest.$ac_ext >&5
19754
John Criswell7a73b802003-06-30 21:59:07 +000019755ac_cv_c_const=no
19756fi
19757rm -f conftest.$ac_objext conftest.$ac_ext
19758fi
19759echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
19760echo "${ECHO_T}$ac_cv_c_const" >&6
19761if test $ac_cv_c_const = no; then
19762
19763cat >>confdefs.h <<\_ACEOF
19764#define const
19765_ACEOF
19766
19767fi
19768
19769echo "$as_me:$LINENO: checking for inline" >&5
19770echo $ECHO_N "checking for inline... $ECHO_C" >&6
19771if test "${ac_cv_c_inline+set}" = set; then
19772 echo $ECHO_N "(cached) $ECHO_C" >&6
19773else
19774 ac_cv_c_inline=no
19775for ac_kw in inline __inline__ __inline; do
19776 cat >conftest.$ac_ext <<_ACEOF
19777#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019778/* confdefs.h. */
19779_ACEOF
19780cat confdefs.h >>conftest.$ac_ext
19781cat >>conftest.$ac_ext <<_ACEOF
19782/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019783#ifndef __cplusplus
John Criswell0c38eaf2003-09-10 15:17:25 +000019784typedef int foo_t;
19785static $ac_kw foo_t static_foo () {return 0; }
19786$ac_kw foo_t foo () {return 0; }
John Criswell7a73b802003-06-30 21:59:07 +000019787#endif
19788
19789_ACEOF
19790rm -f conftest.$ac_objext
19791if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19792 (eval $ac_compile) 2>&5
19793 ac_status=$?
19794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19795 (exit $ac_status); } &&
19796 { ac_try='test -s conftest.$ac_objext'
19797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19798 (eval $ac_try) 2>&5
19799 ac_status=$?
19800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19801 (exit $ac_status); }; }; then
19802 ac_cv_c_inline=$ac_kw; break
19803else
19804 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019805sed 's/^/| /' conftest.$ac_ext >&5
19806
John Criswell7a73b802003-06-30 21:59:07 +000019807fi
19808rm -f conftest.$ac_objext conftest.$ac_ext
19809done
19810
19811fi
19812echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
19813echo "${ECHO_T}$ac_cv_c_inline" >&6
19814case $ac_cv_c_inline in
19815 inline | yes) ;;
19816 no)
19817cat >>confdefs.h <<\_ACEOF
19818#define inline
19819_ACEOF
19820 ;;
19821 *) cat >>confdefs.h <<_ACEOF
19822#define inline $ac_cv_c_inline
19823_ACEOF
19824 ;;
19825esac
19826
19827
19828echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
19829echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
19830if test "${ac_cv_c_bigendian+set}" = set; then
19831 echo $ECHO_N "(cached) $ECHO_C" >&6
19832else
19833 # See if sys/param.h defines the BYTE_ORDER macro.
19834cat >conftest.$ac_ext <<_ACEOF
19835#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019836/* confdefs.h. */
19837_ACEOF
19838cat confdefs.h >>conftest.$ac_ext
19839cat >>conftest.$ac_ext <<_ACEOF
19840/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019841#include <sys/types.h>
19842#include <sys/param.h>
19843
John Criswell7a73b802003-06-30 21:59:07 +000019844int
19845main ()
19846{
19847#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
19848 bogus endian macros
19849#endif
19850
19851 ;
19852 return 0;
19853}
19854_ACEOF
19855rm -f conftest.$ac_objext
19856if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19857 (eval $ac_compile) 2>&5
19858 ac_status=$?
19859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19860 (exit $ac_status); } &&
19861 { ac_try='test -s conftest.$ac_objext'
19862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19863 (eval $ac_try) 2>&5
19864 ac_status=$?
19865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19866 (exit $ac_status); }; }; then
19867 # It does; now see whether it defined to BIG_ENDIAN or not.
19868cat >conftest.$ac_ext <<_ACEOF
19869#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019870/* confdefs.h. */
19871_ACEOF
19872cat confdefs.h >>conftest.$ac_ext
19873cat >>conftest.$ac_ext <<_ACEOF
19874/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019875#include <sys/types.h>
19876#include <sys/param.h>
19877
John Criswell7a73b802003-06-30 21:59:07 +000019878int
19879main ()
19880{
19881#if BYTE_ORDER != BIG_ENDIAN
19882 not big endian
19883#endif
19884
19885 ;
19886 return 0;
19887}
19888_ACEOF
19889rm -f conftest.$ac_objext
19890if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19891 (eval $ac_compile) 2>&5
19892 ac_status=$?
19893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19894 (exit $ac_status); } &&
19895 { ac_try='test -s conftest.$ac_objext'
19896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19897 (eval $ac_try) 2>&5
19898 ac_status=$?
19899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19900 (exit $ac_status); }; }; then
19901 ac_cv_c_bigendian=yes
19902else
19903 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019904sed 's/^/| /' conftest.$ac_ext >&5
19905
John Criswell7a73b802003-06-30 21:59:07 +000019906ac_cv_c_bigendian=no
19907fi
19908rm -f conftest.$ac_objext conftest.$ac_ext
19909else
19910 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019911sed 's/^/| /' conftest.$ac_ext >&5
19912
John Criswell7a73b802003-06-30 21:59:07 +000019913# It does not; compile a test program.
19914if test "$cross_compiling" = yes; then
John Criswell0c38eaf2003-09-10 15:17:25 +000019915 # try to guess the endianness by grepping values into an object file
John Criswell7a73b802003-06-30 21:59:07 +000019916 ac_cv_c_bigendian=unknown
19917 cat >conftest.$ac_ext <<_ACEOF
19918#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019919/* confdefs.h. */
19920_ACEOF
19921cat confdefs.h >>conftest.$ac_ext
19922cat >>conftest.$ac_ext <<_ACEOF
19923/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019924short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
19925short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
19926void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
19927short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
19928short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
19929void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
John Criswell7a73b802003-06-30 21:59:07 +000019930int
19931main ()
19932{
19933 _ascii (); _ebcdic ();
19934 ;
19935 return 0;
19936}
19937_ACEOF
19938rm -f conftest.$ac_objext
19939if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19940 (eval $ac_compile) 2>&5
19941 ac_status=$?
19942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19943 (exit $ac_status); } &&
19944 { ac_try='test -s conftest.$ac_objext'
19945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19946 (eval $ac_try) 2>&5
19947 ac_status=$?
19948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19949 (exit $ac_status); }; }; then
John Criswell0c38eaf2003-09-10 15:17:25 +000019950 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
John Criswell7a73b802003-06-30 21:59:07 +000019951 ac_cv_c_bigendian=yes
19952fi
John Criswell0c38eaf2003-09-10 15:17:25 +000019953if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
John Criswell7a73b802003-06-30 21:59:07 +000019954 if test "$ac_cv_c_bigendian" = unknown; then
19955 ac_cv_c_bigendian=no
19956 else
19957 # finding both strings is unlikely to happen, but who knows?
19958 ac_cv_c_bigendian=unknown
19959 fi
19960fi
19961else
19962 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019963sed 's/^/| /' conftest.$ac_ext >&5
19964
John Criswell7a73b802003-06-30 21:59:07 +000019965fi
19966rm -f conftest.$ac_objext conftest.$ac_ext
19967else
19968 cat >conftest.$ac_ext <<_ACEOF
19969#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019970/* confdefs.h. */
19971_ACEOF
19972cat confdefs.h >>conftest.$ac_ext
19973cat >>conftest.$ac_ext <<_ACEOF
19974/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019975int
19976main ()
19977{
19978 /* Are we little or big endian? From Harbison&Steele. */
19979 union
19980 {
19981 long l;
19982 char c[sizeof (long)];
19983 } u;
19984 u.l = 1;
19985 exit (u.c[sizeof (long) - 1] == 1);
19986}
19987_ACEOF
19988rm -f conftest$ac_exeext
19989if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19990 (eval $ac_link) 2>&5
19991 ac_status=$?
19992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19993 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19995 (eval $ac_try) 2>&5
19996 ac_status=$?
19997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19998 (exit $ac_status); }; }; then
19999 ac_cv_c_bigendian=no
20000else
20001 echo "$as_me: program exited with status $ac_status" >&5
20002echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020003sed 's/^/| /' conftest.$ac_ext >&5
20004
John Criswell7a73b802003-06-30 21:59:07 +000020005( exit $ac_status )
20006ac_cv_c_bigendian=yes
20007fi
John Criswell0c38eaf2003-09-10 15:17:25 +000020008rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000020009fi
20010fi
20011rm -f conftest.$ac_objext conftest.$ac_ext
20012fi
20013echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20014echo "${ECHO_T}$ac_cv_c_bigendian" >&6
20015case $ac_cv_c_bigendian in
20016 yes)
John Criswell5ab73462003-10-09 15:44:28 +000020017
20018cat >>confdefs.h <<\_ACEOF
20019#define ENDIAN_BIG
John Criswell7a73b802003-06-30 21:59:07 +000020020_ACEOF
20021 ;;
20022 no)
John Criswell5ab73462003-10-09 15:44:28 +000020023
20024cat >>confdefs.h <<\_ACEOF
20025#define ENDIAN_LITTLE
John Criswell7a73b802003-06-30 21:59:07 +000020026_ACEOF
20027 ;;
20028 *)
John Criswell0c38eaf2003-09-10 15:17:25 +000020029 { { echo "$as_me:$LINENO: error: unknown endianness
John Criswell7a73b802003-06-30 21:59:07 +000020030presetting ac_cv_c_bigendian=no (or yes) will help" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020031echo "$as_me: error: unknown endianness
John Criswell7a73b802003-06-30 21:59:07 +000020032presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
20033 { (exit 1); exit 1; }; } ;;
20034esac
20035
20036
20037echo "$as_me:$LINENO: checking for pid_t" >&5
20038echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
20039if test "${ac_cv_type_pid_t+set}" = set; then
20040 echo $ECHO_N "(cached) $ECHO_C" >&6
20041else
20042 cat >conftest.$ac_ext <<_ACEOF
20043#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020044/* confdefs.h. */
20045_ACEOF
20046cat confdefs.h >>conftest.$ac_ext
20047cat >>conftest.$ac_ext <<_ACEOF
20048/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020049$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000020050int
20051main ()
20052{
20053if ((pid_t *) 0)
20054 return 0;
20055if (sizeof (pid_t))
20056 return 0;
20057 ;
20058 return 0;
20059}
20060_ACEOF
20061rm -f conftest.$ac_objext
20062if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20063 (eval $ac_compile) 2>&5
20064 ac_status=$?
20065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20066 (exit $ac_status); } &&
20067 { ac_try='test -s conftest.$ac_objext'
20068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20069 (eval $ac_try) 2>&5
20070 ac_status=$?
20071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20072 (exit $ac_status); }; }; then
20073 ac_cv_type_pid_t=yes
20074else
20075 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020076sed 's/^/| /' conftest.$ac_ext >&5
20077
John Criswell7a73b802003-06-30 21:59:07 +000020078ac_cv_type_pid_t=no
20079fi
20080rm -f conftest.$ac_objext conftest.$ac_ext
20081fi
20082echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
20083echo "${ECHO_T}$ac_cv_type_pid_t" >&6
20084if test $ac_cv_type_pid_t = yes; then
20085 :
20086else
20087
20088cat >>confdefs.h <<_ACEOF
20089#define pid_t int
20090_ACEOF
20091
20092fi
20093
20094echo "$as_me:$LINENO: checking for size_t" >&5
20095echo $ECHO_N "checking for size_t... $ECHO_C" >&6
20096if test "${ac_cv_type_size_t+set}" = set; then
20097 echo $ECHO_N "(cached) $ECHO_C" >&6
20098else
20099 cat >conftest.$ac_ext <<_ACEOF
20100#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020101/* confdefs.h. */
20102_ACEOF
20103cat confdefs.h >>conftest.$ac_ext
20104cat >>conftest.$ac_ext <<_ACEOF
20105/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020106$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000020107int
20108main ()
20109{
20110if ((size_t *) 0)
20111 return 0;
20112if (sizeof (size_t))
20113 return 0;
20114 ;
20115 return 0;
20116}
20117_ACEOF
20118rm -f conftest.$ac_objext
20119if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20120 (eval $ac_compile) 2>&5
20121 ac_status=$?
20122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20123 (exit $ac_status); } &&
20124 { ac_try='test -s conftest.$ac_objext'
20125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20126 (eval $ac_try) 2>&5
20127 ac_status=$?
20128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20129 (exit $ac_status); }; }; then
20130 ac_cv_type_size_t=yes
20131else
20132 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020133sed 's/^/| /' conftest.$ac_ext >&5
20134
John Criswell7a73b802003-06-30 21:59:07 +000020135ac_cv_type_size_t=no
20136fi
20137rm -f conftest.$ac_objext conftest.$ac_ext
20138fi
20139echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20140echo "${ECHO_T}$ac_cv_type_size_t" >&6
20141if test $ac_cv_type_size_t = yes; then
20142 :
20143else
20144
20145cat >>confdefs.h <<_ACEOF
20146#define size_t unsigned
20147_ACEOF
20148
20149fi
20150
20151echo "$as_me:$LINENO: checking for int64_t" >&5
20152echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
20153if test "${ac_cv_type_int64_t+set}" = set; then
20154 echo $ECHO_N "(cached) $ECHO_C" >&6
20155else
20156 cat >conftest.$ac_ext <<_ACEOF
20157#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020158/* confdefs.h. */
20159_ACEOF
20160cat confdefs.h >>conftest.$ac_ext
20161cat >>conftest.$ac_ext <<_ACEOF
20162/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020163$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000020164int
20165main ()
20166{
20167if ((int64_t *) 0)
20168 return 0;
20169if (sizeof (int64_t))
20170 return 0;
20171 ;
20172 return 0;
20173}
20174_ACEOF
20175rm -f conftest.$ac_objext
20176if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20177 (eval $ac_compile) 2>&5
20178 ac_status=$?
20179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20180 (exit $ac_status); } &&
20181 { ac_try='test -s conftest.$ac_objext'
20182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20183 (eval $ac_try) 2>&5
20184 ac_status=$?
20185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20186 (exit $ac_status); }; }; then
20187 ac_cv_type_int64_t=yes
20188else
20189 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020190sed 's/^/| /' conftest.$ac_ext >&5
20191
John Criswell7a73b802003-06-30 21:59:07 +000020192ac_cv_type_int64_t=no
20193fi
20194rm -f conftest.$ac_objext conftest.$ac_ext
20195fi
20196echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
20197echo "${ECHO_T}$ac_cv_type_int64_t" >&6
20198if test $ac_cv_type_int64_t = yes; then
20199
20200cat >>confdefs.h <<_ACEOF
20201#define HAVE_INT64_T 1
20202_ACEOF
20203
20204
20205else
20206 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
20207echo "$as_me: error: Type int64_t required but not found" >&2;}
20208 { (exit 1); exit 1; }; }
20209fi
20210
20211echo "$as_me:$LINENO: checking for uint64_t" >&5
20212echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
20213if test "${ac_cv_type_uint64_t+set}" = set; then
20214 echo $ECHO_N "(cached) $ECHO_C" >&6
20215else
20216 cat >conftest.$ac_ext <<_ACEOF
20217#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020218/* confdefs.h. */
20219_ACEOF
20220cat confdefs.h >>conftest.$ac_ext
20221cat >>conftest.$ac_ext <<_ACEOF
20222/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020223$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000020224int
20225main ()
20226{
20227if ((uint64_t *) 0)
20228 return 0;
20229if (sizeof (uint64_t))
20230 return 0;
20231 ;
20232 return 0;
20233}
20234_ACEOF
20235rm -f conftest.$ac_objext
20236if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20237 (eval $ac_compile) 2>&5
20238 ac_status=$?
20239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20240 (exit $ac_status); } &&
20241 { ac_try='test -s conftest.$ac_objext'
20242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20243 (eval $ac_try) 2>&5
20244 ac_status=$?
20245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20246 (exit $ac_status); }; }; then
20247 ac_cv_type_uint64_t=yes
20248else
20249 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020250sed 's/^/| /' conftest.$ac_ext >&5
20251
John Criswell7a73b802003-06-30 21:59:07 +000020252ac_cv_type_uint64_t=no
20253fi
20254rm -f conftest.$ac_objext conftest.$ac_ext
20255fi
20256echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
20257echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
20258if test $ac_cv_type_uint64_t = yes; then
20259
20260cat >>confdefs.h <<_ACEOF
20261#define HAVE_UINT64_T 1
20262_ACEOF
20263
20264
20265else
20266 { { echo "$as_me:$LINENO: error: Type uint64_t required but not found" >&5
20267echo "$as_me: error: Type uint64_t required but not found" >&2;}
20268 { (exit 1); exit 1; }; }
20269fi
20270
20271echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20272echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
20273if test "${ac_cv_header_time+set}" = set; then
20274 echo $ECHO_N "(cached) $ECHO_C" >&6
20275else
20276 cat >conftest.$ac_ext <<_ACEOF
20277#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020278/* confdefs.h. */
20279_ACEOF
20280cat confdefs.h >>conftest.$ac_ext
20281cat >>conftest.$ac_ext <<_ACEOF
20282/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020283#include <sys/types.h>
20284#include <sys/time.h>
20285#include <time.h>
20286
John Criswell7a73b802003-06-30 21:59:07 +000020287int
20288main ()
20289{
20290if ((struct tm *) 0)
20291return 0;
20292 ;
20293 return 0;
20294}
20295_ACEOF
20296rm -f conftest.$ac_objext
20297if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20298 (eval $ac_compile) 2>&5
20299 ac_status=$?
20300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20301 (exit $ac_status); } &&
20302 { ac_try='test -s conftest.$ac_objext'
20303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20304 (eval $ac_try) 2>&5
20305 ac_status=$?
20306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20307 (exit $ac_status); }; }; then
20308 ac_cv_header_time=yes
20309else
20310 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020311sed 's/^/| /' conftest.$ac_ext >&5
20312
John Criswell7a73b802003-06-30 21:59:07 +000020313ac_cv_header_time=no
20314fi
20315rm -f conftest.$ac_objext conftest.$ac_ext
20316fi
20317echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20318echo "${ECHO_T}$ac_cv_header_time" >&6
20319if test $ac_cv_header_time = yes; then
20320
20321cat >>confdefs.h <<\_ACEOF
20322#define TIME_WITH_SYS_TIME 1
20323_ACEOF
20324
20325fi
20326
20327echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20328echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
20329if test "${ac_cv_struct_tm+set}" = set; then
20330 echo $ECHO_N "(cached) $ECHO_C" >&6
20331else
20332 cat >conftest.$ac_ext <<_ACEOF
20333#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020334/* confdefs.h. */
20335_ACEOF
20336cat confdefs.h >>conftest.$ac_ext
20337cat >>conftest.$ac_ext <<_ACEOF
20338/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020339#include <sys/types.h>
20340#include <time.h>
20341
John Criswell7a73b802003-06-30 21:59:07 +000020342int
20343main ()
20344{
20345struct tm *tp; tp->tm_sec;
20346 ;
20347 return 0;
20348}
20349_ACEOF
20350rm -f conftest.$ac_objext
20351if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20352 (eval $ac_compile) 2>&5
20353 ac_status=$?
20354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20355 (exit $ac_status); } &&
20356 { ac_try='test -s conftest.$ac_objext'
20357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20358 (eval $ac_try) 2>&5
20359 ac_status=$?
20360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20361 (exit $ac_status); }; }; then
20362 ac_cv_struct_tm=time.h
20363else
20364 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020365sed 's/^/| /' conftest.$ac_ext >&5
20366
John Criswell7a73b802003-06-30 21:59:07 +000020367ac_cv_struct_tm=sys/time.h
20368fi
20369rm -f conftest.$ac_objext conftest.$ac_ext
20370fi
20371echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
20372echo "${ECHO_T}$ac_cv_struct_tm" >&6
20373if test $ac_cv_struct_tm = sys/time.h; then
20374
20375cat >>confdefs.h <<\_ACEOF
20376#define TM_IN_SYS_TIME 1
20377_ACEOF
20378
20379fi
20380
20381
John Criswella0137d32003-10-13 16:22:01 +000020382
20383
20384
20385 ac_ext=c
20386ac_cpp='$CPP $CPPFLAGS'
20387ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20388ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20389ac_compiler_gnu=$ac_cv_c_compiler_gnu
20390
20391 if test "$cross_compiling" = yes; then
20392 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20393See \`config.log' for more details." >&5
20394echo "$as_me: error: cannot run test program while cross compiling
20395See \`config.log' for more details." >&2;}
20396 { (exit 1); exit 1; }; }
20397else
20398 cat >conftest.$ac_ext <<_ACEOF
20399#line $LINENO "configure"
20400/* confdefs.h. */
20401_ACEOF
20402cat confdefs.h >>conftest.$ac_ext
20403cat >>conftest.$ac_ext <<_ACEOF
20404/* end confdefs.h. */
20405#include <stdio.h>
20406 #include <stdlib.h>
20407int
20408main ()
20409{
20410
20411 volatile double A, B;
20412 char Buffer[100];
20413 A = 1;
20414 A /= 10.0;
20415 sprintf(Buffer, "%a", A);
20416 B = atof(Buffer);
20417 if (A != B)
20418 return (1);
20419 if (A != 0x1.999999999999ap-4)
20420 return (1);
20421 return (0);
20422 ;
20423 return 0;
20424}
20425_ACEOF
20426rm -f conftest$ac_exeext
20427if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20428 (eval $ac_link) 2>&5
20429 ac_status=$?
20430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20431 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20433 (eval $ac_try) 2>&5
20434 ac_status=$?
20435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20436 (exit $ac_status); }; }; then
20437 ac_c_printf_a=yes
20438else
20439 echo "$as_me: program exited with status $ac_status" >&5
20440echo "$as_me: failed program was:" >&5
20441sed 's/^/| /' conftest.$ac_ext >&5
20442
20443( exit $ac_status )
20444ac_c_printf_a=no
20445fi
20446rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20447fi
20448 ac_ext=c
20449ac_cpp='$CPP $CPPFLAGS'
20450ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20451ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20452ac_compiler_gnu=$ac_cv_c_compiler_gnu
20453
20454 if test "$ac_c_printf_a" = "yes"; then
20455
20456cat >>confdefs.h <<\_ACEOF
20457#define HAVE_PRINTF_A 1
20458_ACEOF
20459
20460 fi
20461
20462
John Criswell7a73b802003-06-30 21:59:07 +000020463echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
20464echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
20465if test "${ac_cv_cxx_namespaces+set}" = set; then
20466 echo $ECHO_N "(cached) $ECHO_C" >&6
20467else
20468
20469
20470 ac_ext=cc
20471ac_cpp='$CXXCPP $CPPFLAGS'
20472ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20473ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20474ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20475
20476 cat >conftest.$ac_ext <<_ACEOF
20477#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020478/* confdefs.h. */
20479_ACEOF
20480cat confdefs.h >>conftest.$ac_ext
20481cat >>conftest.$ac_ext <<_ACEOF
20482/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020483namespace Outer { namespace Inner { int i = 0; }}
John Criswell7a73b802003-06-30 21:59:07 +000020484int
20485main ()
20486{
20487using namespace Outer::Inner; return i;
20488 ;
20489 return 0;
20490}
20491_ACEOF
20492rm -f conftest.$ac_objext
20493if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20494 (eval $ac_compile) 2>&5
20495 ac_status=$?
20496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20497 (exit $ac_status); } &&
20498 { ac_try='test -s conftest.$ac_objext'
20499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20500 (eval $ac_try) 2>&5
20501 ac_status=$?
20502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20503 (exit $ac_status); }; }; then
20504 ac_cv_cxx_namespaces=yes
20505else
20506 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020507sed 's/^/| /' conftest.$ac_ext >&5
20508
John Criswell7a73b802003-06-30 21:59:07 +000020509ac_cv_cxx_namespaces=no
20510fi
20511rm -f conftest.$ac_objext conftest.$ac_ext
20512 ac_ext=c
20513ac_cpp='$CPP $CPPFLAGS'
20514ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20515ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20516ac_compiler_gnu=$ac_cv_c_compiler_gnu
20517
20518
20519fi
20520echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
20521echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
20522if test "$ac_cv_cxx_namespaces" = yes; then
20523
20524cat >>confdefs.h <<\_ACEOF
20525#define HAVE_NAMESPACES
20526_ACEOF
20527
20528fi
20529
Brian Gaeke90583492003-11-10 03:06:28 +000020530echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
20531echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
20532if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000020533 echo $ECHO_N "(cached) $ECHO_C" >&6
20534else
20535
20536
20537
20538 ac_ext=cc
20539ac_cpp='$CXXCPP $CPPFLAGS'
20540ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20541ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20542ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20543
20544 cat >conftest.$ac_ext <<_ACEOF
20545#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020546/* confdefs.h. */
20547_ACEOF
20548cat confdefs.h >>conftest.$ac_ext
20549cat >>conftest.$ac_ext <<_ACEOF
20550/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020551#include <ext/hash_map>
20552#ifdef HAVE_NAMESPACES
20553using namespace std;
20554#endif
John Criswell7a73b802003-06-30 21:59:07 +000020555int
20556main ()
20557{
Brian Gaeke90583492003-11-10 03:06:28 +000020558hash_map<int, int> t;
John Criswell7a73b802003-06-30 21:59:07 +000020559 ;
20560 return 0;
20561}
20562_ACEOF
20563rm -f conftest.$ac_objext
20564if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20565 (eval $ac_compile) 2>&5
20566 ac_status=$?
20567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20568 (exit $ac_status); } &&
20569 { ac_try='test -s conftest.$ac_objext'
20570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20571 (eval $ac_try) 2>&5
20572 ac_status=$?
20573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20574 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000020575 ac_cv_cxx_have_std_ext_hash_map=yes
John Criswell7a73b802003-06-30 21:59:07 +000020576else
20577 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020578sed 's/^/| /' conftest.$ac_ext >&5
20579
Brian Gaeke90583492003-11-10 03:06:28 +000020580ac_cv_cxx_have_std_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000020581fi
20582rm -f conftest.$ac_objext conftest.$ac_ext
20583 ac_ext=c
20584ac_cpp='$CPP $CPPFLAGS'
20585ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20586ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20587ac_compiler_gnu=$ac_cv_c_compiler_gnu
20588
John Criswell7a73b802003-06-30 21:59:07 +000020589fi
Brian Gaeke90583492003-11-10 03:06:28 +000020590echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
20591echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
20592 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000020593
20594cat >>confdefs.h <<\_ACEOF
20595#define HAVE_STD_EXT_HASH_MAP
20596_ACEOF
20597
Brian Gaeke90583492003-11-10 03:06:28 +000020598 fi
20599 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
20600echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
20601if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
20602 echo $ECHO_N "(cached) $ECHO_C" >&6
20603else
20604
20605
20606
20607 ac_ext=cc
20608ac_cpp='$CXXCPP $CPPFLAGS'
20609ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20610ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20611ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20612
20613 cat >conftest.$ac_ext <<_ACEOF
20614#line $LINENO "configure"
20615/* confdefs.h. */
20616_ACEOF
20617cat confdefs.h >>conftest.$ac_ext
20618cat >>conftest.$ac_ext <<_ACEOF
20619/* end confdefs.h. */
20620#include <ext/hash_map>
20621#ifdef HAVE_NAMESPACES
20622using namespace __gnu_cxx;
20623#endif
20624int
20625main ()
20626{
20627hash_map<int,int> t;
20628 ;
20629 return 0;
20630}
20631_ACEOF
20632rm -f conftest.$ac_objext
20633if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20634 (eval $ac_compile) 2>&5
20635 ac_status=$?
20636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20637 (exit $ac_status); } &&
20638 { ac_try='test -s conftest.$ac_objext'
20639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20640 (eval $ac_try) 2>&5
20641 ac_status=$?
20642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20643 (exit $ac_status); }; }; then
20644 ac_cv_cxx_have_gnu_ext_hash_map=yes
20645else
20646 echo "$as_me: failed program was:" >&5
20647sed 's/^/| /' conftest.$ac_ext >&5
20648
20649ac_cv_cxx_have_gnu_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000020650fi
Brian Gaeke90583492003-11-10 03:06:28 +000020651rm -f conftest.$ac_objext conftest.$ac_ext
20652 ac_ext=c
20653ac_cpp='$CPP $CPPFLAGS'
20654ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20655ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20656ac_compiler_gnu=$ac_cv_c_compiler_gnu
20657
20658fi
20659echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
20660echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
20661 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000020662
20663cat >>confdefs.h <<\_ACEOF
20664#define HAVE_GNU_EXT_HASH_MAP
20665_ACEOF
20666
Brian Gaeke90583492003-11-10 03:06:28 +000020667 fi
20668 echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
20669echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
20670if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
20671 echo $ECHO_N "(cached) $ECHO_C" >&6
20672else
John Criswell7a73b802003-06-30 21:59:07 +000020673
Brian Gaeke90583492003-11-10 03:06:28 +000020674
20675
20676 ac_ext=cc
20677ac_cpp='$CXXCPP $CPPFLAGS'
20678ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20679ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20680ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20681
20682 cat >conftest.$ac_ext <<_ACEOF
20683#line $LINENO "configure"
20684/* confdefs.h. */
20685_ACEOF
20686cat confdefs.h >>conftest.$ac_ext
20687cat >>conftest.$ac_ext <<_ACEOF
20688/* end confdefs.h. */
20689#include <hash_map>
20690int
20691main ()
20692{
20693hash_map<int,int> t;
20694 ;
20695 return 0;
20696}
20697_ACEOF
20698rm -f conftest.$ac_objext
20699if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20700 (eval $ac_compile) 2>&5
20701 ac_status=$?
20702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20703 (exit $ac_status); } &&
20704 { ac_try='test -s conftest.$ac_objext'
20705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20706 (eval $ac_try) 2>&5
20707 ac_status=$?
20708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20709 (exit $ac_status); }; }; then
20710 ac_cv_cxx_have_global_hash_map=yes
20711else
20712 echo "$as_me: failed program was:" >&5
20713sed 's/^/| /' conftest.$ac_ext >&5
20714
20715ac_cv_cxx_have_global_hash_map=no
20716fi
20717rm -f conftest.$ac_objext conftest.$ac_ext
20718 ac_ext=c
20719ac_cpp='$CPP $CPPFLAGS'
20720ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20721ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20722ac_compiler_gnu=$ac_cv_c_compiler_gnu
20723
20724fi
20725echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
20726echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
20727 if test "$ac_cv_cxx_have_global_hash_map" = yes; then
20728
20729cat >>confdefs.h <<\_ACEOF
20730#define HAVE_GLOBAL_HASH_MAP
20731_ACEOF
20732
20733 fi
20734echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
20735echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
20736if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000020737 echo $ECHO_N "(cached) $ECHO_C" >&6
20738else
20739
20740
20741
20742 ac_ext=cc
20743ac_cpp='$CXXCPP $CPPFLAGS'
20744ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20745ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20746ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20747
20748 cat >conftest.$ac_ext <<_ACEOF
20749#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020750/* confdefs.h. */
20751_ACEOF
20752cat confdefs.h >>conftest.$ac_ext
20753cat >>conftest.$ac_ext <<_ACEOF
20754/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020755#include <ext/hash_set>
20756#ifdef HAVE_NAMESPACES
20757using namespace std;
20758#endif
John Criswell7a73b802003-06-30 21:59:07 +000020759int
20760main ()
20761{
Brian Gaeke90583492003-11-10 03:06:28 +000020762hash_set<int> t;
John Criswell7a73b802003-06-30 21:59:07 +000020763 ;
20764 return 0;
20765}
20766_ACEOF
20767rm -f conftest.$ac_objext
20768if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20769 (eval $ac_compile) 2>&5
20770 ac_status=$?
20771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20772 (exit $ac_status); } &&
20773 { ac_try='test -s conftest.$ac_objext'
20774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20775 (eval $ac_try) 2>&5
20776 ac_status=$?
20777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20778 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000020779 ac_cv_cxx_have_std_ext_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000020780else
20781 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020782sed 's/^/| /' conftest.$ac_ext >&5
20783
Brian Gaeke90583492003-11-10 03:06:28 +000020784ac_cv_cxx_have_std_ext_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000020785fi
20786rm -f conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000020787 ac_ext=c
20788ac_cpp='$CPP $CPPFLAGS'
20789ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20790ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20791ac_compiler_gnu=$ac_cv_c_compiler_gnu
20792
20793fi
20794echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
20795echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
20796 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes; then
20797
20798cat >>confdefs.h <<\_ACEOF
20799#define HAVE_STD_EXT_HASH_SET
20800_ACEOF
20801
20802 fi
20803 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
20804echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
20805if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
20806 echo $ECHO_N "(cached) $ECHO_C" >&6
20807else
20808
20809
20810
20811 ac_ext=cc
20812ac_cpp='$CXXCPP $CPPFLAGS'
20813ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20814ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20815ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20816
John Criswell7a73b802003-06-30 21:59:07 +000020817 cat >conftest.$ac_ext <<_ACEOF
20818#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020819/* confdefs.h. */
20820_ACEOF
20821cat confdefs.h >>conftest.$ac_ext
20822cat >>conftest.$ac_ext <<_ACEOF
20823/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020824#include <ext/hash_set>
20825#ifdef HAVE_NAMESPACES
20826using namespace __gnu_cxx;
20827#endif
John Criswell7a73b802003-06-30 21:59:07 +000020828int
20829main ()
20830{
Brian Gaeke90583492003-11-10 03:06:28 +000020831hash_set<int> t;
20832 ;
20833 return 0;
20834}
20835_ACEOF
20836rm -f conftest.$ac_objext
20837if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20838 (eval $ac_compile) 2>&5
20839 ac_status=$?
20840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20841 (exit $ac_status); } &&
20842 { ac_try='test -s conftest.$ac_objext'
20843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20844 (eval $ac_try) 2>&5
20845 ac_status=$?
20846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20847 (exit $ac_status); }; }; then
20848 ac_cv_cxx_have_gnu_ext_hash_set=yes
20849else
20850 echo "$as_me: failed program was:" >&5
20851sed 's/^/| /' conftest.$ac_ext >&5
20852
20853ac_cv_cxx_have_gnu_ext_hash_set=no
20854fi
20855rm -f conftest.$ac_objext conftest.$ac_ext
20856 ac_ext=c
20857ac_cpp='$CPP $CPPFLAGS'
20858ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20859ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20860ac_compiler_gnu=$ac_cv_c_compiler_gnu
20861
20862fi
20863echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
20864echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
20865 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes; then
20866
20867cat >>confdefs.h <<\_ACEOF
20868#define HAVE_GNU_EXT_HASH_SET
20869_ACEOF
20870
20871 fi
20872 echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
20873echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
20874if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
20875 echo $ECHO_N "(cached) $ECHO_C" >&6
20876else
20877
20878
20879
20880 ac_ext=cc
20881ac_cpp='$CXXCPP $CPPFLAGS'
20882ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20883ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20884ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20885
20886 cat >conftest.$ac_ext <<_ACEOF
20887#line $LINENO "configure"
20888/* confdefs.h. */
20889_ACEOF
20890cat confdefs.h >>conftest.$ac_ext
20891cat >>conftest.$ac_ext <<_ACEOF
20892/* end confdefs.h. */
20893#include <hash_set>
20894int
20895main ()
20896{
John Criswell7a73b802003-06-30 21:59:07 +000020897hash_set<int> t; return 0;
20898 ;
20899 return 0;
20900}
20901_ACEOF
20902rm -f conftest.$ac_objext
20903if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20904 (eval $ac_compile) 2>&5
20905 ac_status=$?
20906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20907 (exit $ac_status); } &&
20908 { ac_try='test -s conftest.$ac_objext'
20909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20910 (eval $ac_try) 2>&5
20911 ac_status=$?
20912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20913 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000020914 ac_cv_cxx_have_global_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000020915else
20916 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020917sed 's/^/| /' conftest.$ac_ext >&5
20918
Brian Gaeke90583492003-11-10 03:06:28 +000020919ac_cv_cxx_have_global_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000020920fi
20921rm -f conftest.$ac_objext conftest.$ac_ext
20922 ac_ext=c
20923ac_cpp='$CPP $CPPFLAGS'
20924ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20925ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20926ac_compiler_gnu=$ac_cv_c_compiler_gnu
20927
John Criswell7a73b802003-06-30 21:59:07 +000020928fi
Brian Gaeke90583492003-11-10 03:06:28 +000020929echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
20930echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
20931 if test "$ac_cv_cxx_have_global_hash_set" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000020932
20933cat >>confdefs.h <<\_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000020934#define HAVE_GLOBAL_HASH_SET
John Criswell7a73b802003-06-30 21:59:07 +000020935_ACEOF
20936
Brian Gaeke90583492003-11-10 03:06:28 +000020937 fi
John Criswell7a73b802003-06-30 21:59:07 +000020938echo "$as_me:$LINENO: checking whether the compiler has ext/slist" >&5
20939echo $ECHO_N "checking whether the compiler has ext/slist... $ECHO_C" >&6
20940if test "${ac_cv_cxx_have_ext_slist+set}" = set; then
20941 echo $ECHO_N "(cached) $ECHO_C" >&6
20942else
20943
20944
20945
20946 ac_ext=cc
20947ac_cpp='$CXXCPP $CPPFLAGS'
20948ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20949ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20950ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20951
20952 cat >conftest.$ac_ext <<_ACEOF
20953#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020954/* confdefs.h. */
20955_ACEOF
20956cat confdefs.h >>conftest.$ac_ext
20957cat >>conftest.$ac_ext <<_ACEOF
20958/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020959#include <ext/slist>
20960#ifdef HAVE_NAMESPACES
20961using namespace std;
20962#endif
John Criswell7a73b802003-06-30 21:59:07 +000020963int
20964main ()
20965{
20966slist<int> s; return 0;
20967 ;
20968 return 0;
20969}
20970_ACEOF
20971rm -f conftest.$ac_objext
20972if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20973 (eval $ac_compile) 2>&5
20974 ac_status=$?
20975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20976 (exit $ac_status); } &&
20977 { ac_try='test -s conftest.$ac_objext'
20978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20979 (eval $ac_try) 2>&5
20980 ac_status=$?
20981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20982 (exit $ac_status); }; }; then
20983 ac_cv_cxx_have_ext_slist=std
20984else
20985 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020986sed 's/^/| /' conftest.$ac_ext >&5
20987
John Criswell7a73b802003-06-30 21:59:07 +000020988ac_cv_cxx_have_ext_slist=no
20989fi
20990rm -f conftest.$ac_objext conftest.$ac_ext
20991 cat >conftest.$ac_ext <<_ACEOF
20992#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020993/* confdefs.h. */
20994_ACEOF
20995cat confdefs.h >>conftest.$ac_ext
20996cat >>conftest.$ac_ext <<_ACEOF
20997/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020998#include <ext/slist>
20999#ifdef HAVE_NAMESPACES
21000using namespace __gnu_cxx;
21001#endif
John Criswell7a73b802003-06-30 21:59:07 +000021002int
21003main ()
21004{
21005slist<int> s; return 0;
21006 ;
21007 return 0;
21008}
21009_ACEOF
21010rm -f conftest.$ac_objext
21011if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21012 (eval $ac_compile) 2>&5
21013 ac_status=$?
21014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21015 (exit $ac_status); } &&
21016 { ac_try='test -s conftest.$ac_objext'
21017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21018 (eval $ac_try) 2>&5
21019 ac_status=$?
21020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21021 (exit $ac_status); }; }; then
21022 ac_cv_cxx_have_ext_slist=gnu
21023else
21024 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021025sed 's/^/| /' conftest.$ac_ext >&5
21026
John Criswell7a73b802003-06-30 21:59:07 +000021027ac_cv_cxx_have_ext_slist=no
21028fi
21029rm -f conftest.$ac_objext conftest.$ac_ext
21030
21031 ac_ext=c
21032ac_cpp='$CPP $CPPFLAGS'
21033ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21034ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21035ac_compiler_gnu=$ac_cv_c_compiler_gnu
21036
21037
21038fi
21039echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_slist" >&5
21040echo "${ECHO_T}$ac_cv_cxx_have_ext_slist" >&6
21041if test "$ac_cv_cxx_have_ext_slist" = std; then
21042
21043cat >>confdefs.h <<\_ACEOF
21044#define HAVE_EXT_SLIST std
21045_ACEOF
21046
21047fi
21048if test "$ac_cv_cxx_have_ext_slist" = gnu; then
21049
21050cat >>confdefs.h <<\_ACEOF
21051#define HAVE_EXT_SLIST gnu
21052_ACEOF
21053
21054fi
21055
21056echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
21057echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
21058if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
21059 echo $ECHO_N "(cached) $ECHO_C" >&6
21060else
21061
21062
21063
21064 ac_ext=cc
21065ac_cpp='$CXXCPP $CPPFLAGS'
21066ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21067ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21068ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21069
21070 cat >conftest.$ac_ext <<_ACEOF
21071#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021072/* confdefs.h. */
21073_ACEOF
21074cat confdefs.h >>conftest.$ac_ext
21075cat >>conftest.$ac_ext <<_ACEOF
21076/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021077#include <iterator>
21078#ifdef HAVE_NAMESPACES
21079using namespace std;
21080#endif
John Criswell7a73b802003-06-30 21:59:07 +000021081int
21082main ()
21083{
21084iterator<int,int,int> t; return 0;
21085 ;
21086 return 0;
21087}
21088_ACEOF
21089rm -f conftest.$ac_objext
21090if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21091 (eval $ac_compile) 2>&5
21092 ac_status=$?
21093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21094 (exit $ac_status); } &&
21095 { ac_try='test -s conftest.$ac_objext'
21096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21097 (eval $ac_try) 2>&5
21098 ac_status=$?
21099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21100 (exit $ac_status); }; }; then
21101 ac_cv_cxx_have_std_iterator=yes
21102else
21103 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021104sed 's/^/| /' conftest.$ac_ext >&5
21105
John Criswell7a73b802003-06-30 21:59:07 +000021106ac_cv_cxx_have_std_iterator=no
21107fi
21108rm -f conftest.$ac_objext conftest.$ac_ext
21109 ac_ext=c
21110ac_cpp='$CPP $CPPFLAGS'
21111ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21112ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21113ac_compiler_gnu=$ac_cv_c_compiler_gnu
21114
21115
21116fi
21117echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
21118echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
21119if test "$ac_cv_cxx_have_std_iterator" = yes; then
21120
21121cat >>confdefs.h <<\_ACEOF
21122#define HAVE_STD_ITERATOR
21123_ACEOF
21124
21125fi
21126
21127echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
21128echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
21129if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
21130 echo $ECHO_N "(cached) $ECHO_C" >&6
21131else
21132
21133
21134
21135 ac_ext=cc
21136ac_cpp='$CXXCPP $CPPFLAGS'
21137ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21138ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21139ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21140
21141 cat >conftest.$ac_ext <<_ACEOF
21142#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021143/* confdefs.h. */
21144_ACEOF
21145cat confdefs.h >>conftest.$ac_ext
21146cat >>conftest.$ac_ext <<_ACEOF
21147/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021148#include <iterator>
21149#ifdef HAVE_NAMESPACES
21150using namespace std;
21151#endif
John Criswell7a73b802003-06-30 21:59:07 +000021152int
21153main ()
21154{
John Criswellc78022e2003-07-29 19:11:58 +000021155bidirectional_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000021156 ;
21157 return 0;
21158}
21159_ACEOF
21160rm -f conftest.$ac_objext
21161if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21162 (eval $ac_compile) 2>&5
21163 ac_status=$?
21164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21165 (exit $ac_status); } &&
21166 { ac_try='test -s conftest.$ac_objext'
21167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21168 (eval $ac_try) 2>&5
21169 ac_status=$?
21170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21171 (exit $ac_status); }; }; then
21172 ac_cv_cxx_have_bi_iterator=yes
21173else
21174 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021175sed 's/^/| /' conftest.$ac_ext >&5
21176
John Criswell7a73b802003-06-30 21:59:07 +000021177ac_cv_cxx_have_bi_iterator=no
21178fi
21179rm -f conftest.$ac_objext conftest.$ac_ext
21180 ac_ext=c
21181ac_cpp='$CPP $CPPFLAGS'
21182ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21183ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21184ac_compiler_gnu=$ac_cv_c_compiler_gnu
21185
21186
21187fi
21188echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
21189echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
21190if test "$ac_cv_cxx_have_bi_iterator" = yes; then
21191
21192cat >>confdefs.h <<\_ACEOF
21193#define HAVE_BI_ITERATOR
21194_ACEOF
21195
21196fi
21197
21198echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
21199echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
21200if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
21201 echo $ECHO_N "(cached) $ECHO_C" >&6
21202else
21203
21204
21205
21206 ac_ext=cc
21207ac_cpp='$CXXCPP $CPPFLAGS'
21208ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21209ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21210ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21211
21212 cat >conftest.$ac_ext <<_ACEOF
21213#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021214/* confdefs.h. */
21215_ACEOF
21216cat confdefs.h >>conftest.$ac_ext
21217cat >>conftest.$ac_ext <<_ACEOF
21218/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021219#include <iterator>
21220#ifdef HAVE_NAMESPACES
21221using namespace std;
21222#endif
John Criswell7a73b802003-06-30 21:59:07 +000021223int
21224main ()
21225{
John Criswellc78022e2003-07-29 19:11:58 +000021226forward_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000021227 ;
21228 return 0;
21229}
21230_ACEOF
21231rm -f conftest.$ac_objext
21232if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21233 (eval $ac_compile) 2>&5
21234 ac_status=$?
21235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21236 (exit $ac_status); } &&
21237 { ac_try='test -s conftest.$ac_objext'
21238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21239 (eval $ac_try) 2>&5
21240 ac_status=$?
21241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21242 (exit $ac_status); }; }; then
21243 ac_cv_cxx_have_fwd_iterator=yes
21244else
21245 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021246sed 's/^/| /' conftest.$ac_ext >&5
21247
John Criswell7a73b802003-06-30 21:59:07 +000021248ac_cv_cxx_have_fwd_iterator=no
21249fi
21250rm -f conftest.$ac_objext conftest.$ac_ext
21251 ac_ext=c
21252ac_cpp='$CPP $CPPFLAGS'
21253ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21254ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21255ac_compiler_gnu=$ac_cv_c_compiler_gnu
21256
21257
21258fi
21259echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
21260echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
21261if test "$ac_cv_cxx_have_fwd_iterator" = yes; then
21262
21263cat >>confdefs.h <<\_ACEOF
21264#define HAVE_FWD_ITERATOR
21265_ACEOF
21266
21267fi
21268
21269
21270# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
21271# for constant arguments. Useless!
21272echo "$as_me:$LINENO: checking for working alloca.h" >&5
21273echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
21274if test "${ac_cv_working_alloca_h+set}" = set; then
21275 echo $ECHO_N "(cached) $ECHO_C" >&6
21276else
21277 cat >conftest.$ac_ext <<_ACEOF
21278#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021279/* confdefs.h. */
21280_ACEOF
21281cat confdefs.h >>conftest.$ac_ext
21282cat >>conftest.$ac_ext <<_ACEOF
21283/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021284#include <alloca.h>
John Criswell7a73b802003-06-30 21:59:07 +000021285int
21286main ()
21287{
21288char *p = (char *) alloca (2 * sizeof (int));
21289 ;
21290 return 0;
21291}
21292_ACEOF
21293rm -f conftest.$ac_objext conftest$ac_exeext
21294if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21295 (eval $ac_link) 2>&5
21296 ac_status=$?
21297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21298 (exit $ac_status); } &&
21299 { ac_try='test -s conftest$ac_exeext'
21300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21301 (eval $ac_try) 2>&5
21302 ac_status=$?
21303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21304 (exit $ac_status); }; }; then
21305 ac_cv_working_alloca_h=yes
21306else
21307 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021308sed 's/^/| /' conftest.$ac_ext >&5
21309
John Criswell7a73b802003-06-30 21:59:07 +000021310ac_cv_working_alloca_h=no
21311fi
21312rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21313fi
21314echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
21315echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
21316if test $ac_cv_working_alloca_h = yes; then
21317
21318cat >>confdefs.h <<\_ACEOF
21319#define HAVE_ALLOCA_H 1
21320_ACEOF
21321
21322fi
21323
21324echo "$as_me:$LINENO: checking for alloca" >&5
21325echo $ECHO_N "checking for alloca... $ECHO_C" >&6
21326if test "${ac_cv_func_alloca_works+set}" = set; then
21327 echo $ECHO_N "(cached) $ECHO_C" >&6
21328else
21329 cat >conftest.$ac_ext <<_ACEOF
21330#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021331/* confdefs.h. */
21332_ACEOF
21333cat confdefs.h >>conftest.$ac_ext
21334cat >>conftest.$ac_ext <<_ACEOF
21335/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021336#ifdef __GNUC__
21337# define alloca __builtin_alloca
21338#else
21339# ifdef _MSC_VER
21340# include <malloc.h>
21341# define alloca _alloca
21342# else
21343# if HAVE_ALLOCA_H
21344# include <alloca.h>
21345# else
21346# ifdef _AIX
21347 #pragma alloca
21348# else
21349# ifndef alloca /* predefined by HP cc +Olibcalls */
21350char *alloca ();
21351# endif
21352# endif
21353# endif
21354# endif
21355#endif
21356
John Criswell7a73b802003-06-30 21:59:07 +000021357int
21358main ()
21359{
21360char *p = (char *) alloca (1);
21361 ;
21362 return 0;
21363}
21364_ACEOF
21365rm -f conftest.$ac_objext conftest$ac_exeext
21366if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21367 (eval $ac_link) 2>&5
21368 ac_status=$?
21369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21370 (exit $ac_status); } &&
21371 { ac_try='test -s conftest$ac_exeext'
21372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21373 (eval $ac_try) 2>&5
21374 ac_status=$?
21375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21376 (exit $ac_status); }; }; then
21377 ac_cv_func_alloca_works=yes
21378else
21379 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021380sed 's/^/| /' conftest.$ac_ext >&5
21381
John Criswell7a73b802003-06-30 21:59:07 +000021382ac_cv_func_alloca_works=no
21383fi
21384rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21385fi
21386echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
21387echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
21388
21389if test $ac_cv_func_alloca_works = yes; then
21390
21391cat >>confdefs.h <<\_ACEOF
21392#define HAVE_ALLOCA 1
21393_ACEOF
21394
21395else
21396 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
21397# that cause trouble. Some versions do not even contain alloca or
21398# contain a buggy version. If you still want to use their alloca,
21399# use ar to extract alloca.o from them instead of compiling alloca.c.
21400
21401ALLOCA=alloca.$ac_objext
21402
21403cat >>confdefs.h <<\_ACEOF
21404#define C_ALLOCA 1
21405_ACEOF
21406
21407
21408echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
21409echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
21410if test "${ac_cv_os_cray+set}" = set; then
21411 echo $ECHO_N "(cached) $ECHO_C" >&6
21412else
21413 cat >conftest.$ac_ext <<_ACEOF
21414#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021415/* confdefs.h. */
21416_ACEOF
21417cat confdefs.h >>conftest.$ac_ext
21418cat >>conftest.$ac_ext <<_ACEOF
21419/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021420#if defined(CRAY) && ! defined(CRAY2)
21421webecray
21422#else
21423wenotbecray
21424#endif
21425
21426_ACEOF
21427if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000021428 $EGREP "webecray" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000021429 ac_cv_os_cray=yes
21430else
21431 ac_cv_os_cray=no
21432fi
21433rm -f conftest*
21434
21435fi
21436echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
21437echo "${ECHO_T}$ac_cv_os_cray" >&6
21438if test $ac_cv_os_cray = yes; then
21439 for ac_func in _getb67 GETB67 getb67; do
21440 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21441echo "$as_me:$LINENO: checking for $ac_func" >&5
21442echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21443if eval "test \"\${$as_ac_var+set}\" = set"; then
21444 echo $ECHO_N "(cached) $ECHO_C" >&6
21445else
21446 cat >conftest.$ac_ext <<_ACEOF
21447#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021448/* confdefs.h. */
21449_ACEOF
21450cat confdefs.h >>conftest.$ac_ext
21451cat >>conftest.$ac_ext <<_ACEOF
21452/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021453/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000021454 which can conflict with char $ac_func (); below.
21455 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21456 <limits.h> exists even on freestanding compilers. */
21457#ifdef __STDC__
21458# include <limits.h>
21459#else
21460# include <assert.h>
21461#endif
John Criswell7a73b802003-06-30 21:59:07 +000021462/* Override any gcc2 internal prototype to avoid an error. */
21463#ifdef __cplusplus
21464extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000021465{
John Criswell7a73b802003-06-30 21:59:07 +000021466#endif
21467/* We use char because int might match the return type of a gcc2
21468 builtin and then its argument prototype would still apply. */
21469char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000021470/* The GNU C library defines this for functions which it implements
21471 to always fail with ENOSYS. Some functions are actually named
21472 something starting with __ and the normal name is an alias. */
21473#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21474choke me
21475#else
John Criswell0c38eaf2003-09-10 15:17:25 +000021476char (*f) () = $ac_func;
21477#endif
21478#ifdef __cplusplus
21479}
John Criswell7a73b802003-06-30 21:59:07 +000021480#endif
21481
John Criswell0c38eaf2003-09-10 15:17:25 +000021482int
21483main ()
21484{
21485return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000021486 ;
21487 return 0;
21488}
21489_ACEOF
21490rm -f conftest.$ac_objext conftest$ac_exeext
21491if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21492 (eval $ac_link) 2>&5
21493 ac_status=$?
21494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21495 (exit $ac_status); } &&
21496 { ac_try='test -s conftest$ac_exeext'
21497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21498 (eval $ac_try) 2>&5
21499 ac_status=$?
21500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21501 (exit $ac_status); }; }; then
21502 eval "$as_ac_var=yes"
21503else
21504 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021505sed 's/^/| /' conftest.$ac_ext >&5
21506
John Criswell7a73b802003-06-30 21:59:07 +000021507eval "$as_ac_var=no"
21508fi
21509rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21510fi
21511echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21512echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21513if test `eval echo '${'$as_ac_var'}'` = yes; then
21514
21515cat >>confdefs.h <<_ACEOF
21516#define CRAY_STACKSEG_END $ac_func
21517_ACEOF
21518
21519 break
21520fi
21521
21522 done
21523fi
21524
21525echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
21526echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
21527if test "${ac_cv_c_stack_direction+set}" = set; then
21528 echo $ECHO_N "(cached) $ECHO_C" >&6
21529else
21530 if test "$cross_compiling" = yes; then
21531 ac_cv_c_stack_direction=0
21532else
21533 cat >conftest.$ac_ext <<_ACEOF
21534#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021535/* confdefs.h. */
21536_ACEOF
21537cat confdefs.h >>conftest.$ac_ext
21538cat >>conftest.$ac_ext <<_ACEOF
21539/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021540int
21541find_stack_direction ()
21542{
21543 static char *addr = 0;
21544 auto char dummy;
21545 if (addr == 0)
21546 {
21547 addr = &dummy;
21548 return find_stack_direction ();
21549 }
21550 else
21551 return (&dummy > addr) ? 1 : -1;
21552}
21553
21554int
21555main ()
21556{
21557 exit (find_stack_direction () < 0);
21558}
21559_ACEOF
21560rm -f conftest$ac_exeext
21561if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21562 (eval $ac_link) 2>&5
21563 ac_status=$?
21564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21565 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21567 (eval $ac_try) 2>&5
21568 ac_status=$?
21569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21570 (exit $ac_status); }; }; then
21571 ac_cv_c_stack_direction=1
21572else
21573 echo "$as_me: program exited with status $ac_status" >&5
21574echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021575sed 's/^/| /' conftest.$ac_ext >&5
21576
John Criswell7a73b802003-06-30 21:59:07 +000021577( exit $ac_status )
21578ac_cv_c_stack_direction=-1
21579fi
John Criswell0c38eaf2003-09-10 15:17:25 +000021580rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021581fi
21582fi
21583echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
21584echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
21585
21586cat >>confdefs.h <<_ACEOF
21587#define STACK_DIRECTION $ac_cv_c_stack_direction
21588_ACEOF
21589
21590
21591fi
21592
21593if test $ac_cv_c_compiler_gnu = yes; then
21594 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
21595echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
21596if test "${ac_cv_prog_gcc_traditional+set}" = set; then
21597 echo $ECHO_N "(cached) $ECHO_C" >&6
21598else
21599 ac_pattern="Autoconf.*'x'"
21600 cat >conftest.$ac_ext <<_ACEOF
21601#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021602/* confdefs.h. */
21603_ACEOF
21604cat confdefs.h >>conftest.$ac_ext
21605cat >>conftest.$ac_ext <<_ACEOF
21606/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021607#include <sgtty.h>
21608Autoconf TIOCGETP
21609_ACEOF
21610if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000021611 $EGREP "$ac_pattern" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000021612 ac_cv_prog_gcc_traditional=yes
21613else
21614 ac_cv_prog_gcc_traditional=no
21615fi
21616rm -f conftest*
21617
21618
21619 if test $ac_cv_prog_gcc_traditional = no; then
21620 cat >conftest.$ac_ext <<_ACEOF
21621#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021622/* confdefs.h. */
21623_ACEOF
21624cat confdefs.h >>conftest.$ac_ext
21625cat >>conftest.$ac_ext <<_ACEOF
21626/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021627#include <termio.h>
21628Autoconf TCGETA
21629_ACEOF
21630if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000021631 $EGREP "$ac_pattern" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000021632 ac_cv_prog_gcc_traditional=yes
21633fi
21634rm -f conftest*
21635
21636 fi
21637fi
21638echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
21639echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
21640 if test $ac_cv_prog_gcc_traditional = yes; then
21641 CC="$CC -traditional"
21642 fi
21643fi
21644
21645echo "$as_me:$LINENO: checking for working memcmp" >&5
21646echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
21647if test "${ac_cv_func_memcmp_working+set}" = set; then
21648 echo $ECHO_N "(cached) $ECHO_C" >&6
21649else
21650 if test "$cross_compiling" = yes; then
21651 ac_cv_func_memcmp_working=no
21652else
21653 cat >conftest.$ac_ext <<_ACEOF
21654#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021655/* confdefs.h. */
21656_ACEOF
21657cat confdefs.h >>conftest.$ac_ext
21658cat >>conftest.$ac_ext <<_ACEOF
21659/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021660
John Criswell7a73b802003-06-30 21:59:07 +000021661int
21662main ()
21663{
21664
21665 /* Some versions of memcmp are not 8-bit clean. */
21666 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
21667 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
21668 exit (1);
21669
21670 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
21671 or more and with at least one buffer not starting on a 4-byte boundary.
21672 William Lewis provided this test program. */
21673 {
21674 char foo[21];
21675 char bar[21];
21676 int i;
21677 for (i = 0; i < 4; i++)
21678 {
21679 char *a = foo + i;
21680 char *b = bar + i;
21681 strcpy (a, "--------01111111");
21682 strcpy (b, "--------10000000");
21683 if (memcmp (a, b, 16) >= 0)
21684 exit (1);
21685 }
21686 exit (0);
21687 }
21688
21689 ;
21690 return 0;
21691}
21692_ACEOF
21693rm -f conftest$ac_exeext
21694if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21695 (eval $ac_link) 2>&5
21696 ac_status=$?
21697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21698 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21700 (eval $ac_try) 2>&5
21701 ac_status=$?
21702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21703 (exit $ac_status); }; }; then
21704 ac_cv_func_memcmp_working=yes
21705else
21706 echo "$as_me: program exited with status $ac_status" >&5
21707echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021708sed 's/^/| /' conftest.$ac_ext >&5
21709
John Criswell7a73b802003-06-30 21:59:07 +000021710( exit $ac_status )
21711ac_cv_func_memcmp_working=no
21712fi
John Criswell0c38eaf2003-09-10 15:17:25 +000021713rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021714fi
21715fi
21716echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
21717echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
21718test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
21719
21720
21721
21722for ac_header in stdlib.h unistd.h
21723do
21724as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21725if eval "test \"\${$as_ac_Header+set}\" = set"; then
21726 echo "$as_me:$LINENO: checking for $ac_header" >&5
21727echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21728if eval "test \"\${$as_ac_Header+set}\" = set"; then
21729 echo $ECHO_N "(cached) $ECHO_C" >&6
21730fi
21731echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21732echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21733else
21734 # Is the header compilable?
21735echo "$as_me:$LINENO: checking $ac_header usability" >&5
21736echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21737cat >conftest.$ac_ext <<_ACEOF
21738#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021739/* confdefs.h. */
21740_ACEOF
21741cat confdefs.h >>conftest.$ac_ext
21742cat >>conftest.$ac_ext <<_ACEOF
21743/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021744$ac_includes_default
21745#include <$ac_header>
21746_ACEOF
21747rm -f conftest.$ac_objext
21748if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21749 (eval $ac_compile) 2>&5
21750 ac_status=$?
21751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21752 (exit $ac_status); } &&
21753 { ac_try='test -s conftest.$ac_objext'
21754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21755 (eval $ac_try) 2>&5
21756 ac_status=$?
21757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21758 (exit $ac_status); }; }; then
21759 ac_header_compiler=yes
21760else
21761 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021762sed 's/^/| /' conftest.$ac_ext >&5
21763
John Criswell7a73b802003-06-30 21:59:07 +000021764ac_header_compiler=no
21765fi
21766rm -f conftest.$ac_objext conftest.$ac_ext
21767echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21768echo "${ECHO_T}$ac_header_compiler" >&6
21769
21770# Is the header present?
21771echo "$as_me:$LINENO: checking $ac_header presence" >&5
21772echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21773cat >conftest.$ac_ext <<_ACEOF
21774#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021775/* confdefs.h. */
21776_ACEOF
21777cat confdefs.h >>conftest.$ac_ext
21778cat >>conftest.$ac_ext <<_ACEOF
21779/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021780#include <$ac_header>
21781_ACEOF
21782if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21783 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21784 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000021785 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000021786 rm -f conftest.er1
21787 cat conftest.err >&5
21788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21789 (exit $ac_status); } >/dev/null; then
21790 if test -s conftest.err; then
21791 ac_cpp_err=$ac_c_preproc_warn_flag
21792 else
21793 ac_cpp_err=
21794 fi
21795else
21796 ac_cpp_err=yes
21797fi
21798if test -z "$ac_cpp_err"; then
21799 ac_header_preproc=yes
21800else
21801 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021802sed 's/^/| /' conftest.$ac_ext >&5
21803
John Criswell7a73b802003-06-30 21:59:07 +000021804 ac_header_preproc=no
21805fi
21806rm -f conftest.err conftest.$ac_ext
21807echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21808echo "${ECHO_T}$ac_header_preproc" >&6
21809
21810# So? What about this header?
21811case $ac_header_compiler:$ac_header_preproc in
21812 yes:no )
21813 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21814echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21815 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021816echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21817 (
21818 cat <<\_ASBOX
21819## ------------------------------------ ##
21820## Report this to bug-autoconf@gnu.org. ##
21821## ------------------------------------ ##
21822_ASBOX
21823 ) |
21824 sed "s/^/$as_me: WARNING: /" >&2
21825 ;;
John Criswell7a73b802003-06-30 21:59:07 +000021826 no:yes )
21827 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21828echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21829 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21830echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21831 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021832echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21833 (
21834 cat <<\_ASBOX
21835## ------------------------------------ ##
21836## Report this to bug-autoconf@gnu.org. ##
21837## ------------------------------------ ##
21838_ASBOX
21839 ) |
21840 sed "s/^/$as_me: WARNING: /" >&2
21841 ;;
John Criswell7a73b802003-06-30 21:59:07 +000021842esac
21843echo "$as_me:$LINENO: checking for $ac_header" >&5
21844echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21845if eval "test \"\${$as_ac_Header+set}\" = set"; then
21846 echo $ECHO_N "(cached) $ECHO_C" >&6
21847else
21848 eval "$as_ac_Header=$ac_header_preproc"
21849fi
21850echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21851echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21852
21853fi
21854if test `eval echo '${'$as_ac_Header'}'` = yes; then
21855 cat >>confdefs.h <<_ACEOF
21856#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21857_ACEOF
21858
21859fi
21860
21861done
21862
21863
21864for ac_func in getpagesize
21865do
21866as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21867echo "$as_me:$LINENO: checking for $ac_func" >&5
21868echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21869if eval "test \"\${$as_ac_var+set}\" = set"; then
21870 echo $ECHO_N "(cached) $ECHO_C" >&6
21871else
21872 cat >conftest.$ac_ext <<_ACEOF
21873#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021874/* confdefs.h. */
21875_ACEOF
21876cat confdefs.h >>conftest.$ac_ext
21877cat >>conftest.$ac_ext <<_ACEOF
21878/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021879/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000021880 which can conflict with char $ac_func (); below.
21881 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21882 <limits.h> exists even on freestanding compilers. */
21883#ifdef __STDC__
21884# include <limits.h>
21885#else
21886# include <assert.h>
21887#endif
John Criswell7a73b802003-06-30 21:59:07 +000021888/* Override any gcc2 internal prototype to avoid an error. */
21889#ifdef __cplusplus
21890extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000021891{
John Criswell7a73b802003-06-30 21:59:07 +000021892#endif
21893/* We use char because int might match the return type of a gcc2
21894 builtin and then its argument prototype would still apply. */
21895char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000021896/* The GNU C library defines this for functions which it implements
21897 to always fail with ENOSYS. Some functions are actually named
21898 something starting with __ and the normal name is an alias. */
21899#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21900choke me
21901#else
John Criswell0c38eaf2003-09-10 15:17:25 +000021902char (*f) () = $ac_func;
21903#endif
21904#ifdef __cplusplus
21905}
John Criswell7a73b802003-06-30 21:59:07 +000021906#endif
21907
John Criswell0c38eaf2003-09-10 15:17:25 +000021908int
21909main ()
21910{
21911return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000021912 ;
21913 return 0;
21914}
21915_ACEOF
21916rm -f conftest.$ac_objext conftest$ac_exeext
21917if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21918 (eval $ac_link) 2>&5
21919 ac_status=$?
21920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21921 (exit $ac_status); } &&
21922 { ac_try='test -s conftest$ac_exeext'
21923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21924 (eval $ac_try) 2>&5
21925 ac_status=$?
21926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21927 (exit $ac_status); }; }; then
21928 eval "$as_ac_var=yes"
21929else
21930 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021931sed 's/^/| /' conftest.$ac_ext >&5
21932
John Criswell7a73b802003-06-30 21:59:07 +000021933eval "$as_ac_var=no"
21934fi
21935rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21936fi
21937echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21938echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21939if test `eval echo '${'$as_ac_var'}'` = yes; then
21940 cat >>confdefs.h <<_ACEOF
21941#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21942_ACEOF
21943
21944fi
21945done
21946
21947echo "$as_me:$LINENO: checking for working mmap" >&5
21948echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
21949if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
21950 echo $ECHO_N "(cached) $ECHO_C" >&6
21951else
21952 if test "$cross_compiling" = yes; then
21953 ac_cv_func_mmap_fixed_mapped=no
21954else
21955 cat >conftest.$ac_ext <<_ACEOF
21956#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021957/* confdefs.h. */
21958_ACEOF
21959cat confdefs.h >>conftest.$ac_ext
21960cat >>conftest.$ac_ext <<_ACEOF
21961/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021962$ac_includes_default
21963/* malloc might have been renamed as rpl_malloc. */
21964#undef malloc
21965
21966/* Thanks to Mike Haertel and Jim Avera for this test.
21967 Here is a matrix of mmap possibilities:
21968 mmap private not fixed
21969 mmap private fixed at somewhere currently unmapped
21970 mmap private fixed at somewhere already mapped
21971 mmap shared not fixed
21972 mmap shared fixed at somewhere currently unmapped
21973 mmap shared fixed at somewhere already mapped
21974 For private mappings, we should verify that changes cannot be read()
21975 back from the file, nor mmap's back from the file at a different
21976 address. (There have been systems where private was not correctly
21977 implemented like the infamous i386 svr4.0, and systems where the
21978 VM page cache was not coherent with the file system buffer cache
21979 like early versions of FreeBSD and possibly contemporary NetBSD.)
21980 For shared mappings, we should conversely verify that changes get
21981 propagated back to all the places they're supposed to be.
21982
21983 Grep wants private fixed already mapped.
21984 The main things grep needs to know about mmap are:
21985 * does it exist and is it safe to write into the mmap'd area
21986 * how to use it (BSD variants) */
21987
21988#include <fcntl.h>
21989#include <sys/mman.h>
21990
21991#if !STDC_HEADERS && !HAVE_STDLIB_H
21992char *malloc ();
21993#endif
21994
21995/* This mess was copied from the GNU getpagesize.h. */
21996#if !HAVE_GETPAGESIZE
21997/* Assume that all systems that can run configure have sys/param.h. */
21998# if !HAVE_SYS_PARAM_H
21999# define HAVE_SYS_PARAM_H 1
22000# endif
22001
22002# ifdef _SC_PAGESIZE
22003# define getpagesize() sysconf(_SC_PAGESIZE)
22004# else /* no _SC_PAGESIZE */
22005# if HAVE_SYS_PARAM_H
22006# include <sys/param.h>
22007# ifdef EXEC_PAGESIZE
22008# define getpagesize() EXEC_PAGESIZE
22009# else /* no EXEC_PAGESIZE */
22010# ifdef NBPG
22011# define getpagesize() NBPG * CLSIZE
22012# ifndef CLSIZE
22013# define CLSIZE 1
22014# endif /* no CLSIZE */
22015# else /* no NBPG */
22016# ifdef NBPC
22017# define getpagesize() NBPC
22018# else /* no NBPC */
22019# ifdef PAGESIZE
22020# define getpagesize() PAGESIZE
22021# endif /* PAGESIZE */
22022# endif /* no NBPC */
22023# endif /* no NBPG */
22024# endif /* no EXEC_PAGESIZE */
22025# else /* no HAVE_SYS_PARAM_H */
22026# define getpagesize() 8192 /* punt totally */
22027# endif /* no HAVE_SYS_PARAM_H */
22028# endif /* no _SC_PAGESIZE */
22029
22030#endif /* no HAVE_GETPAGESIZE */
22031
22032int
22033main ()
22034{
22035 char *data, *data2, *data3;
22036 int i, pagesize;
22037 int fd;
22038
22039 pagesize = getpagesize ();
22040
22041 /* First, make a file with some known garbage in it. */
22042 data = (char *) malloc (pagesize);
22043 if (!data)
22044 exit (1);
22045 for (i = 0; i < pagesize; ++i)
22046 *(data + i) = rand ();
22047 umask (0);
22048 fd = creat ("conftest.mmap", 0600);
22049 if (fd < 0)
22050 exit (1);
22051 if (write (fd, data, pagesize) != pagesize)
22052 exit (1);
22053 close (fd);
22054
22055 /* Next, try to mmap the file at a fixed address which already has
22056 something else allocated at it. If we can, also make sure that
22057 we see the same garbage. */
22058 fd = open ("conftest.mmap", O_RDWR);
22059 if (fd < 0)
22060 exit (1);
22061 data2 = (char *) malloc (2 * pagesize);
22062 if (!data2)
22063 exit (1);
22064 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
22065 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
22066 MAP_PRIVATE | MAP_FIXED, fd, 0L))
22067 exit (1);
22068 for (i = 0; i < pagesize; ++i)
22069 if (*(data + i) != *(data2 + i))
22070 exit (1);
22071
22072 /* Finally, make sure that changes to the mapped area do not
22073 percolate back to the file as seen by read(). (This is a bug on
22074 some variants of i386 svr4.0.) */
22075 for (i = 0; i < pagesize; ++i)
22076 *(data2 + i) = *(data2 + i) + 1;
22077 data3 = (char *) malloc (pagesize);
22078 if (!data3)
22079 exit (1);
22080 if (read (fd, data3, pagesize) != pagesize)
22081 exit (1);
22082 for (i = 0; i < pagesize; ++i)
22083 if (*(data + i) != *(data3 + i))
22084 exit (1);
22085 close (fd);
22086 exit (0);
22087}
22088_ACEOF
22089rm -f conftest$ac_exeext
22090if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22091 (eval $ac_link) 2>&5
22092 ac_status=$?
22093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22094 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22096 (eval $ac_try) 2>&5
22097 ac_status=$?
22098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22099 (exit $ac_status); }; }; then
22100 ac_cv_func_mmap_fixed_mapped=yes
22101else
22102 echo "$as_me: program exited with status $ac_status" >&5
22103echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022104sed 's/^/| /' conftest.$ac_ext >&5
22105
John Criswell7a73b802003-06-30 21:59:07 +000022106( exit $ac_status )
22107ac_cv_func_mmap_fixed_mapped=no
22108fi
John Criswell0c38eaf2003-09-10 15:17:25 +000022109rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000022110fi
22111fi
22112echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
22113echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
22114if test $ac_cv_func_mmap_fixed_mapped = yes; then
22115
22116cat >>confdefs.h <<\_ACEOF
22117#define HAVE_MMAP 1
22118_ACEOF
22119
22120fi
22121rm -f conftest.mmap
22122
22123echo "$as_me:$LINENO: checking for mmap of files" >&5
22124echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
22125if test "${ac_cv_func_mmap_file+set}" = set; then
22126 echo $ECHO_N "(cached) $ECHO_C" >&6
22127else
22128
22129
22130 ac_ext=c
22131ac_cpp='$CPP $CPPFLAGS'
22132ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22133ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22134ac_compiler_gnu=$ac_cv_c_compiler_gnu
22135
22136 if test "$cross_compiling" = yes; then
John Criswell0c38eaf2003-09-10 15:17:25 +000022137 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22138See \`config.log' for more details." >&5
22139echo "$as_me: error: cannot run test program while cross compiling
22140See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000022141 { (exit 1); exit 1; }; }
22142else
22143 cat >conftest.$ac_ext <<_ACEOF
22144#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022145/* confdefs.h. */
22146_ACEOF
22147cat confdefs.h >>conftest.$ac_ext
22148cat >>conftest.$ac_ext <<_ACEOF
22149/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022150
John Criswell7a73b802003-06-30 21:59:07 +000022151#ifdef HAVE_SYS_TYPES_H
22152#include <sys/types.h>
22153#endif
22154
John Criswell5ab73462003-10-09 15:44:28 +000022155#ifdef HAVE_SYS_MMAN_H
22156#include <sys/mman.h>
22157#endif
22158
John Criswell7a73b802003-06-30 21:59:07 +000022159#ifdef HAVE_FCNTL_H
22160#include <fcntl.h>
22161#endif
22162
22163 int fd;
22164 int main () {
John Criswell5ab73462003-10-09 15:44:28 +000022165 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 +000022166_ACEOF
22167rm -f conftest$ac_exeext
22168if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22169 (eval $ac_link) 2>&5
22170 ac_status=$?
22171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22172 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22174 (eval $ac_try) 2>&5
22175 ac_status=$?
22176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22177 (exit $ac_status); }; }; then
22178 ac_cv_func_mmap_file=yes
22179else
22180 echo "$as_me: program exited with status $ac_status" >&5
22181echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022182sed 's/^/| /' conftest.$ac_ext >&5
22183
John Criswell7a73b802003-06-30 21:59:07 +000022184( exit $ac_status )
22185ac_cv_func_mmap_file=no
22186fi
John Criswell0c38eaf2003-09-10 15:17:25 +000022187rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000022188fi
22189 ac_ext=c
22190ac_cpp='$CPP $CPPFLAGS'
22191ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22192ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22193ac_compiler_gnu=$ac_cv_c_compiler_gnu
22194
22195
22196fi
22197echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
22198echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
22199if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000022200
22201cat >>confdefs.h <<\_ACEOF
22202#define HAVE_MMAP_FILE
John Criswell7a73b802003-06-30 21:59:07 +000022203_ACEOF
22204
22205 MMAP_FILE=yes
22206
22207fi
22208
22209if test ${ac_cv_func_mmap_file} = "no"
22210then
22211 { { echo "$as_me:$LINENO: error: mmap() of files required but not found" >&5
22212echo "$as_me: error: mmap() of files required but not found" >&2;}
22213 { (exit 1); exit 1; }; }
22214fi
22215echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
22216echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
22217if test "${ac_cv_header_mmap_anon+set}" = set; then
22218 echo $ECHO_N "(cached) $ECHO_C" >&6
22219else
22220
22221
22222 ac_ext=c
22223ac_cpp='$CPP $CPPFLAGS'
22224ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22225ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22226ac_compiler_gnu=$ac_cv_c_compiler_gnu
22227
22228 cat >conftest.$ac_ext <<_ACEOF
22229#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022230/* confdefs.h. */
22231_ACEOF
22232cat confdefs.h >>conftest.$ac_ext
22233cat >>conftest.$ac_ext <<_ACEOF
22234/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022235#include <sys/mman.h>
22236 #include <unistd.h>
22237 #include <fcntl.h>
John Criswell7a73b802003-06-30 21:59:07 +000022238int
22239main ()
22240{
22241mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
22242 ;
22243 return 0;
22244}
22245_ACEOF
22246rm -f conftest.$ac_objext
22247if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22248 (eval $ac_compile) 2>&5
22249 ac_status=$?
22250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22251 (exit $ac_status); } &&
22252 { ac_try='test -s conftest.$ac_objext'
22253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22254 (eval $ac_try) 2>&5
22255 ac_status=$?
22256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22257 (exit $ac_status); }; }; then
22258 ac_cv_header_mmap_anon=yes
22259else
22260 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022261sed 's/^/| /' conftest.$ac_ext >&5
22262
John Criswell7a73b802003-06-30 21:59:07 +000022263ac_cv_header_mmap_anon=no
22264fi
22265rm -f conftest.$ac_objext conftest.$ac_ext
22266 ac_ext=c
22267ac_cpp='$CPP $CPPFLAGS'
22268ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22269ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22270ac_compiler_gnu=$ac_cv_c_compiler_gnu
22271
22272
22273fi
22274echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
22275echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
22276if test "$ac_cv_header_mmap_anon" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000022277
22278cat >>confdefs.h <<\_ACEOF
22279#define HAVE_MMAP_ANONYMOUS
John Criswell7a73b802003-06-30 21:59:07 +000022280_ACEOF
22281
22282fi
22283
22284echo "$as_me:$LINENO: checking return type of signal handlers" >&5
22285echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
22286if test "${ac_cv_type_signal+set}" = set; then
22287 echo $ECHO_N "(cached) $ECHO_C" >&6
22288else
22289 cat >conftest.$ac_ext <<_ACEOF
22290#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022291/* confdefs.h. */
22292_ACEOF
22293cat confdefs.h >>conftest.$ac_ext
22294cat >>conftest.$ac_ext <<_ACEOF
22295/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022296#include <sys/types.h>
22297#include <signal.h>
22298#ifdef signal
22299# undef signal
22300#endif
22301#ifdef __cplusplus
22302extern "C" void (*signal (int, void (*)(int)))(int);
22303#else
22304void (*signal ()) ();
22305#endif
22306
John Criswell7a73b802003-06-30 21:59:07 +000022307int
22308main ()
22309{
22310int i;
22311 ;
22312 return 0;
22313}
22314_ACEOF
22315rm -f conftest.$ac_objext
22316if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22317 (eval $ac_compile) 2>&5
22318 ac_status=$?
22319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22320 (exit $ac_status); } &&
22321 { ac_try='test -s conftest.$ac_objext'
22322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22323 (eval $ac_try) 2>&5
22324 ac_status=$?
22325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22326 (exit $ac_status); }; }; then
22327 ac_cv_type_signal=void
22328else
22329 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022330sed 's/^/| /' conftest.$ac_ext >&5
22331
John Criswell7a73b802003-06-30 21:59:07 +000022332ac_cv_type_signal=int
22333fi
22334rm -f conftest.$ac_objext conftest.$ac_ext
22335fi
22336echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
22337echo "${ECHO_T}$ac_cv_type_signal" >&6
22338
22339cat >>confdefs.h <<_ACEOF
22340#define RETSIGTYPE $ac_cv_type_signal
22341_ACEOF
22342
22343
22344
22345
22346
22347
22348
22349
22350
22351
22352
Brian Gaekec45be042003-10-07 06:01:34 +000022353
22354
John Criswella0137d32003-10-13 16:22:01 +000022355for ac_func in getcwd gettimeofday strcspn strdup strerror strspn strstr strtod strtol strtoq strtoll
John Criswell7a73b802003-06-30 21:59:07 +000022356do
22357as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22358echo "$as_me:$LINENO: checking for $ac_func" >&5
22359echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22360if eval "test \"\${$as_ac_var+set}\" = set"; then
22361 echo $ECHO_N "(cached) $ECHO_C" >&6
22362else
22363 cat >conftest.$ac_ext <<_ACEOF
22364#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022365/* confdefs.h. */
22366_ACEOF
22367cat confdefs.h >>conftest.$ac_ext
22368cat >>conftest.$ac_ext <<_ACEOF
22369/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022370/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000022371 which can conflict with char $ac_func (); below.
22372 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22373 <limits.h> exists even on freestanding compilers. */
22374#ifdef __STDC__
22375# include <limits.h>
22376#else
22377# include <assert.h>
22378#endif
John Criswell7a73b802003-06-30 21:59:07 +000022379/* Override any gcc2 internal prototype to avoid an error. */
22380#ifdef __cplusplus
22381extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000022382{
John Criswell7a73b802003-06-30 21:59:07 +000022383#endif
22384/* We use char because int might match the return type of a gcc2
22385 builtin and then its argument prototype would still apply. */
22386char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000022387/* The GNU C library defines this for functions which it implements
22388 to always fail with ENOSYS. Some functions are actually named
22389 something starting with __ and the normal name is an alias. */
22390#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22391choke me
22392#else
John Criswell0c38eaf2003-09-10 15:17:25 +000022393char (*f) () = $ac_func;
22394#endif
22395#ifdef __cplusplus
22396}
John Criswell7a73b802003-06-30 21:59:07 +000022397#endif
22398
John Criswell0c38eaf2003-09-10 15:17:25 +000022399int
22400main ()
22401{
22402return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000022403 ;
22404 return 0;
22405}
22406_ACEOF
22407rm -f conftest.$ac_objext conftest$ac_exeext
22408if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22409 (eval $ac_link) 2>&5
22410 ac_status=$?
22411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22412 (exit $ac_status); } &&
22413 { ac_try='test -s conftest$ac_exeext'
22414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22415 (eval $ac_try) 2>&5
22416 ac_status=$?
22417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22418 (exit $ac_status); }; }; then
22419 eval "$as_ac_var=yes"
22420else
22421 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022422sed 's/^/| /' conftest.$ac_ext >&5
22423
John Criswell7a73b802003-06-30 21:59:07 +000022424eval "$as_ac_var=no"
22425fi
22426rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22427fi
22428echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22429echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22430if test `eval echo '${'$as_ac_var'}'` = yes; then
22431 cat >>confdefs.h <<_ACEOF
22432#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22433_ACEOF
22434
22435fi
22436done
22437
22438
22439
22440echo "$as_me:$LINENO: checking for mmap" >&5
22441echo $ECHO_N "checking for mmap... $ECHO_C" >&6
22442if test "${ac_cv_func_mmap+set}" = set; then
22443 echo $ECHO_N "(cached) $ECHO_C" >&6
22444else
22445 cat >conftest.$ac_ext <<_ACEOF
22446#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022447/* confdefs.h. */
22448_ACEOF
22449cat confdefs.h >>conftest.$ac_ext
22450cat >>conftest.$ac_ext <<_ACEOF
22451/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022452/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000022453 which can conflict with char mmap (); below.
22454 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22455 <limits.h> exists even on freestanding compilers. */
22456#ifdef __STDC__
22457# include <limits.h>
22458#else
22459# include <assert.h>
22460#endif
John Criswell7a73b802003-06-30 21:59:07 +000022461/* Override any gcc2 internal prototype to avoid an error. */
22462#ifdef __cplusplus
22463extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000022464{
John Criswell7a73b802003-06-30 21:59:07 +000022465#endif
22466/* We use char because int might match the return type of a gcc2
22467 builtin and then its argument prototype would still apply. */
22468char mmap ();
John Criswell7a73b802003-06-30 21:59:07 +000022469/* The GNU C library defines this for functions which it implements
22470 to always fail with ENOSYS. Some functions are actually named
22471 something starting with __ and the normal name is an alias. */
22472#if defined (__stub_mmap) || defined (__stub___mmap)
22473choke me
22474#else
John Criswell0c38eaf2003-09-10 15:17:25 +000022475char (*f) () = mmap;
22476#endif
22477#ifdef __cplusplus
22478}
John Criswell7a73b802003-06-30 21:59:07 +000022479#endif
22480
John Criswell0c38eaf2003-09-10 15:17:25 +000022481int
22482main ()
22483{
22484return f != mmap;
John Criswell7a73b802003-06-30 21:59:07 +000022485 ;
22486 return 0;
22487}
22488_ACEOF
22489rm -f conftest.$ac_objext conftest$ac_exeext
22490if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22491 (eval $ac_link) 2>&5
22492 ac_status=$?
22493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22494 (exit $ac_status); } &&
22495 { ac_try='test -s conftest$ac_exeext'
22496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22497 (eval $ac_try) 2>&5
22498 ac_status=$?
22499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22500 (exit $ac_status); }; }; then
22501 ac_cv_func_mmap=yes
22502else
22503 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022504sed 's/^/| /' conftest.$ac_ext >&5
22505
John Criswell7a73b802003-06-30 21:59:07 +000022506ac_cv_func_mmap=no
22507fi
22508rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22509fi
22510echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
22511echo "${ECHO_T}$ac_cv_func_mmap" >&6
22512if test $ac_cv_func_mmap = yes; then
22513 :
22514else
22515 { { echo "$as_me:$LINENO: error: Function mmap() required but not found" >&5
22516echo "$as_me: error: Function mmap() required but not found" >&2;}
22517 { (exit 1); exit 1; }; }
22518fi
22519
22520echo "$as_me:$LINENO: checking for mprotect" >&5
22521echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
22522if test "${ac_cv_func_mprotect+set}" = set; then
22523 echo $ECHO_N "(cached) $ECHO_C" >&6
22524else
22525 cat >conftest.$ac_ext <<_ACEOF
22526#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022527/* confdefs.h. */
22528_ACEOF
22529cat confdefs.h >>conftest.$ac_ext
22530cat >>conftest.$ac_ext <<_ACEOF
22531/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022532/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000022533 which can conflict with char mprotect (); below.
22534 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22535 <limits.h> exists even on freestanding compilers. */
22536#ifdef __STDC__
22537# include <limits.h>
22538#else
22539# include <assert.h>
22540#endif
John Criswell7a73b802003-06-30 21:59:07 +000022541/* Override any gcc2 internal prototype to avoid an error. */
22542#ifdef __cplusplus
22543extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000022544{
John Criswell7a73b802003-06-30 21:59:07 +000022545#endif
22546/* We use char because int might match the return type of a gcc2
22547 builtin and then its argument prototype would still apply. */
22548char mprotect ();
John Criswell7a73b802003-06-30 21:59:07 +000022549/* The GNU C library defines this for functions which it implements
22550 to always fail with ENOSYS. Some functions are actually named
22551 something starting with __ and the normal name is an alias. */
22552#if defined (__stub_mprotect) || defined (__stub___mprotect)
22553choke me
22554#else
John Criswell0c38eaf2003-09-10 15:17:25 +000022555char (*f) () = mprotect;
22556#endif
22557#ifdef __cplusplus
22558}
John Criswell7a73b802003-06-30 21:59:07 +000022559#endif
22560
John Criswell0c38eaf2003-09-10 15:17:25 +000022561int
22562main ()
22563{
22564return f != mprotect;
John Criswell7a73b802003-06-30 21:59:07 +000022565 ;
22566 return 0;
22567}
22568_ACEOF
22569rm -f conftest.$ac_objext conftest$ac_exeext
22570if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22571 (eval $ac_link) 2>&5
22572 ac_status=$?
22573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22574 (exit $ac_status); } &&
22575 { ac_try='test -s conftest$ac_exeext'
22576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22577 (eval $ac_try) 2>&5
22578 ac_status=$?
22579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22580 (exit $ac_status); }; }; then
22581 ac_cv_func_mprotect=yes
22582else
22583 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022584sed 's/^/| /' conftest.$ac_ext >&5
22585
John Criswell7a73b802003-06-30 21:59:07 +000022586ac_cv_func_mprotect=no
22587fi
22588rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22589fi
22590echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
22591echo "${ECHO_T}$ac_cv_func_mprotect" >&6
22592if test $ac_cv_func_mprotect = yes; then
22593 :
22594else
22595 { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
22596echo "$as_me: error: Function mprotect() required but not found" >&2;}
22597 { (exit 1); exit 1; }; }
22598fi
22599
22600
John Criswellb13092b2003-07-22 21:00:24 +000022601
John Criswellcb7a1eb2003-11-17 19:46:02 +000022602
22603
22604 ac_ext=c
22605ac_cpp='$CPP $CPPFLAGS'
22606ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22607ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22608ac_compiler_gnu=$ac_cv_c_compiler_gnu
22609
Brian Gaekef91a15c2003-11-18 06:20:41 +000022610 oldcflags="$CFLAGS"
22611 CFLAGS="$CFLAGS -Wl,-R."
John Criswellcb7a1eb2003-11-17 19:46:02 +000022612 cat >conftest.$ac_ext <<_ACEOF
Brian Gaekef91a15c2003-11-18 06:20:41 +000022613int main() { return 0; }
John Criswellcb7a1eb2003-11-17 19:46:02 +000022614_ACEOF
22615rm -f conftest.$ac_objext conftest$ac_exeext
22616if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22617 (eval $ac_link) 2>&5
22618 ac_status=$?
22619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22620 (exit $ac_status); } &&
22621 { ac_try='test -s conftest$ac_exeext'
22622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22623 (eval $ac_try) 2>&5
22624 ac_status=$?
22625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22626 (exit $ac_status); }; }; then
22627 ac_cv_link_use_r=yes
22628else
22629 echo "$as_me: failed program was:" >&5
22630sed 's/^/| /' conftest.$ac_ext >&5
22631
Brian Gaekef91a15c2003-11-18 06:20:41 +000022632ac_cv_link_use_r=no
John Criswellcb7a1eb2003-11-17 19:46:02 +000022633fi
22634rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Brian Gaekef91a15c2003-11-18 06:20:41 +000022635 CFLAGS="$oldcflags"
John Criswellcb7a1eb2003-11-17 19:46:02 +000022636 ac_ext=c
22637ac_cpp='$CPP $CPPFLAGS'
22638ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22639ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22640ac_compiler_gnu=$ac_cv_c_compiler_gnu
22641
Brian Gaekef91a15c2003-11-18 06:20:41 +000022642 if test "$ac_cv_link_use_r" = yes
John Criswellcb7a1eb2003-11-17 19:46:02 +000022643 then
Brian Gaekef91a15c2003-11-18 06:20:41 +000022644
22645cat >>confdefs.h <<\_ACEOF
John Criswellcb7a1eb2003-11-17 19:46:02 +000022646#define HAVE_LINK_R 1
22647_ACEOF
22648
22649 fi
22650
22651
22652
John Criswell7a73b802003-06-30 21:59:07 +000022653# Check whether --enable-purify or --disable-purify was given.
22654if test "${enable_purify+set}" = set; then
22655 enableval="$enable_purify"
John Criswell7a73b802003-06-30 21:59:07 +000022656
22657else
John Criswellb13092b2003-07-22 21:00:24 +000022658 enableval="no"
John Criswell7a73b802003-06-30 21:59:07 +000022659fi;
John Criswellb13092b2003-07-22 21:00:24 +000022660if test ${enableval} = "no"
22661then
22662 ENABLE_PURIFY=
22663
22664else
22665 ENABLE_PURIFY=ENABLE_PURIFY=1
22666
22667fi
22668
John Criswell7a73b802003-06-30 21:59:07 +000022669# Check whether --enable-optimized or --disable-optimized was given.
22670if test "${enable_optimized+set}" = set; then
22671 enableval="$enable_optimized"
John Criswell7a73b802003-06-30 21:59:07 +000022672
22673else
John Criswellb13092b2003-07-22 21:00:24 +000022674 enableval=no
John Criswell7a73b802003-06-30 21:59:07 +000022675fi;
John Criswellb13092b2003-07-22 21:00:24 +000022676if test ${enableval} = "no"
22677then
22678 ENABLE_OPTIMIZED=
22679
22680else
22681 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
22682
22683fi
22684
John Criswell55126592003-10-07 21:57:39 +000022685# Check whether --enable-spec2000 or --disable-spec2000 was given.
22686if test "${enable_spec2000+set}" = set; then
22687 enableval="$enable_spec2000"
John Criswell7a73b802003-06-30 21:59:07 +000022688
22689else
John Criswellb13092b2003-07-22 21:00:24 +000022690 enableval=no
John Criswell7a73b802003-06-30 21:59:07 +000022691fi;
John Criswellb13092b2003-07-22 21:00:24 +000022692if test ${enableval} = "no"
22693then
John Criswell55126592003-10-07 21:57:39 +000022694 if test -d /home/vadve/shared/benchmarks/speccpu2000/benchspec
22695 then
22696 SPEC_ROOT=/home/vadve/shared/benchmarks/speccpu2000/benchspec
John Criswellb13092b2003-07-22 21:00:24 +000022697
John Criswell55126592003-10-07 21:57:39 +000022698 USE_SPEC=USE_SPEC=1
22699
22700 else
22701 USE_SPEC=
22702
22703
22704 fi
John Criswellb13092b2003-07-22 21:00:24 +000022705else
John Criswell55126592003-10-07 21:57:39 +000022706 if test ${enableval} = ""
22707 then
22708 SPEC_ROOT=/home/vadve/shared/benchmarks/speccpu2000/benchspec
22709
22710 else
22711 SPEC_ROOT=${enableval}
22712
22713 fi
John Criswellb13092b2003-07-22 21:00:24 +000022714 USE_SPEC=USE_SPEC=1
22715
22716fi
22717
John Criswell7a73b802003-06-30 21:59:07 +000022718# Check whether --enable-precompiled_bytecode or --disable-precompiled_bytecode was given.
22719if test "${enable_precompiled_bytecode+set}" = set; then
22720 enableval="$enable_precompiled_bytecode"
John Criswell7a73b802003-06-30 21:59:07 +000022721
22722else
John Criswellb13092b2003-07-22 21:00:24 +000022723 enableval=no
John Criswell7a73b802003-06-30 21:59:07 +000022724fi;
John Criswellb13092b2003-07-22 21:00:24 +000022725if test ${enableval} = "no"
22726then
22727 UPB=
John Criswellf02dbf02003-07-22 20:07:49 +000022728
John Criswellb13092b2003-07-22 21:00:24 +000022729else
22730 UPB=USE_PRECOMPILED_BYTECODE=1
22731
22732fi
John Criswellf02dbf02003-07-22 20:07:49 +000022733
22734
22735# Check whether --enable-llc_diffs or --disable-llc_diffs was given.
22736if test "${enable_llc_diffs+set}" = set; then
22737 enableval="$enable_llc_diffs"
John Criswellf02dbf02003-07-22 20:07:49 +000022738
22739else
John Criswellb13092b2003-07-22 21:00:24 +000022740 enableval=yes
John Criswellf02dbf02003-07-22 20:07:49 +000022741fi;
John Criswellb13092b2003-07-22 21:00:24 +000022742if test ${enableval} = "no"
22743then
22744 DISABLE_LLC_DIFFS=DISABLE_LLC_DIFFS:=1
John Criswellf02dbf02003-07-22 20:07:49 +000022745
John Criswellb13092b2003-07-22 21:00:24 +000022746else
22747 DISABLE_LLC_DIFFS=
22748
22749fi
22750
22751# Check whether --enable-jit or --disable-jit was given.
John Criswell7a73b802003-06-30 21:59:07 +000022752if test "${enable_jit+set}" = set; then
22753 enableval="$enable_jit"
John Criswell7a73b802003-06-30 21:59:07 +000022754
22755else
John Criswellc78022e2003-07-29 19:11:58 +000022756 enableval=default
John Criswell7a73b802003-06-30 21:59:07 +000022757fi;
John Criswellb13092b2003-07-22 21:00:24 +000022758
22759if test ${enableval} = "no"
22760then
22761 JIT=
22762
22763else
John Criswellc78022e2003-07-29 19:11:58 +000022764 case $target in
22765 *i*86*)
22766 JIT=TARGET_HAS_JIT=1
John Criswellb13092b2003-07-22 21:00:24 +000022767
John Criswellc78022e2003-07-29 19:11:58 +000022768 ;;
22769 *sparc*)
22770 JIT=TARGET_HAS_JIT=1
22771
22772 ;;
22773 *)
22774 JIT=
22775
22776 ;;
22777 esac
John Criswellb13092b2003-07-22 21:00:24 +000022778fi
John Criswell7a73b802003-06-30 21:59:07 +000022779
22780
John Criswellc78022e2003-07-29 19:11:58 +000022781
John Criswell7a73b802003-06-30 21:59:07 +000022782# Check whether --with-llvmgccdir or --without-llvmgccdir was given.
22783if test "${with_llvmgccdir+set}" = set; then
22784 withval="$with_llvmgccdir"
22785 LLVMGCCDIR=$withval
22786
22787fi;
22788
Brian Gaekef3b24102003-11-16 18:38:14 +000022789echo "$as_me:$LINENO: checking for llvm-gcc" >&5
22790echo $ECHO_N "checking for llvm-gcc... $ECHO_C" >&6
22791LLVM_GCC_CHECK=no
22792if test -d "$LLVMGCCDIR"
22793then
22794 if test -x "$LLVMGCCDIR/bin/gcc"
22795 then
22796 LLVM_GCC_CHECK="$LLVMGCCDIR/bin/gcc"
22797 fi
22798fi
22799llvmgccwarn=no
22800echo "$as_me:$LINENO: result: $LLVM_GCC_CHECK" >&5
22801echo "${ECHO_T}$LLVM_GCC_CHECK" >&6
22802if test "$LLVM_GCC_CHECK" = "no"
22803then
22804 llvmgccwarn=yes
22805fi
22806
22807echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
22808echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
22809LLVM_GCC_SANE=no
22810if test -x "$LLVM_GCC_CHECK"
22811then
22812 cp /dev/null conftest.c
22813 "$LLVM_GCC_CHECK" -S -o - conftest.c | grep implementation > /dev/null 2>&1
22814 if test $? -eq 0
22815 then
22816 LLVM_GCC_SANE=yes
22817 fi
22818 rm conftest.c
22819fi
22820echo "$as_me:$LINENO: result: $LLVM_GCC_SANE" >&5
22821echo "${ECHO_T}$LLVM_GCC_SANE" >&6
22822if test "$LLVM_GCC_SANE" = "no"
22823then
22824 llvmgccwarn=yes
22825fi
22826
John Criswellc78022e2003-07-29 19:11:58 +000022827
John Criswell7a73b802003-06-30 21:59:07 +000022828# Check whether --with-bcrepos or --without-bcrepos was given.
22829if test "${with_bcrepos+set}" = set; then
22830 withval="$with_bcrepos"
22831 BCR=$withval
22832
22833else
22834 BCR=/home/vadve/lattner/LLVMPrograms
22835
22836fi;
22837
John Criswellc78022e2003-07-29 19:11:58 +000022838
John Criswell7a73b802003-06-30 21:59:07 +000022839# Check whether --with-papi or --without-papi was given.
22840if test "${with_papi+set}" = set; then
22841 withval="$with_papi"
22842 PAPIDIR=$withval
22843
22844else
John Criswellde00db22003-08-25 16:49:54 +000022845 PAPIDIR=/home/vadve/shared/Sparc/papi-2.3.4.1
John Criswell7a73b802003-06-30 21:59:07 +000022846
22847fi;
22848
John Criswell7a73b802003-06-30 21:59:07 +000022849
22850# Check whether --with-purify or --without-purify was given.
22851if test "${with_purify+set}" = set; then
22852 withval="$with_purify"
22853 PURIFY=$withval
22854
22855fi;
22856
John Criswellde00db22003-08-25 16:49:54 +000022857
John Criswell0c38eaf2003-09-10 15:17:25 +000022858 ac_config_files="$ac_config_files Makefile.config"
John Criswell7a73b802003-06-30 21:59:07 +000022859cat >confcache <<\_ACEOF
22860# This file is a shell script that caches the results of configure
22861# tests run on this system so they can be shared between configure
22862# scripts and configure runs, see configure's option --config-cache.
22863# It is not useful on other systems. If it contains results you don't
22864# want to keep, you may remove or edit it.
22865#
22866# config.status only pays attention to the cache file if you give it
22867# the --recheck option to rerun configure.
22868#
John Criswell0c38eaf2003-09-10 15:17:25 +000022869# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000022870# loading this file, other *unset* `ac_cv_foo' will be assigned the
22871# following values.
22872
22873_ACEOF
22874
22875# The following way of writing the cache mishandles newlines in values,
22876# but we know of no workaround that is simple, portable, and efficient.
22877# So, don't put newlines in cache variables' values.
22878# Ultrix sh set writes to stderr and can't be redirected directly,
22879# and sets the high bit in the cache file unless we assign to the vars.
22880{
22881 (set) 2>&1 |
22882 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22883 *ac_space=\ *)
22884 # `set' does not quote correctly, so add quotes (double-quote
22885 # substitution turns \\\\ into \\, and sed turns \\ into \).
22886 sed -n \
22887 "s/'/'\\\\''/g;
22888 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22889 ;;
22890 *)
22891 # `set' quotes correctly as required by POSIX, so do not add quotes.
22892 sed -n \
22893 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22894 ;;
22895 esac;
22896} |
22897 sed '
22898 t clear
22899 : clear
22900 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22901 t end
22902 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22903 : end' >>confcache
John Criswell0c38eaf2003-09-10 15:17:25 +000022904if diff $cache_file confcache >/dev/null 2>&1; then :; else
John Criswell7a73b802003-06-30 21:59:07 +000022905 if test -w $cache_file; then
22906 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22907 cat confcache >$cache_file
22908 else
22909 echo "not updating unwritable cache $cache_file"
22910 fi
22911fi
22912rm -f confcache
22913
22914test "x$prefix" = xNONE && prefix=$ac_default_prefix
22915# Let make expand exec_prefix.
22916test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22917
22918# VPATH may cause trouble with some makes, so we remove $(srcdir),
22919# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22920# trailing colons and then remove the whole line if VPATH becomes empty
22921# (actually we leave an empty line to preserve line numbers).
22922if test "x$srcdir" = x.; then
22923 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22924s/:*\$(srcdir):*/:/;
22925s/:*\${srcdir}:*/:/;
22926s/:*@srcdir@:*/:/;
22927s/^\([^=]*=[ ]*\):*/\1/;
22928s/:*$//;
22929s/^[^=]*=[ ]*$//;
22930}'
22931fi
22932
22933DEFS=-DHAVE_CONFIG_H
22934
John Criswell0c38eaf2003-09-10 15:17:25 +000022935ac_libobjs=
22936ac_ltlibobjs=
22937for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22938 # 1. Remove the extension, and $U if already installed.
22939 ac_i=`echo "$ac_i" |
22940 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22941 # 2. Add them.
22942 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22943 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22944done
22945LIBOBJS=$ac_libobjs
22946
22947LTLIBOBJS=$ac_ltlibobjs
22948
22949
John Criswell7a73b802003-06-30 21:59:07 +000022950
22951: ${CONFIG_STATUS=./config.status}
22952ac_clean_files_save=$ac_clean_files
22953ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22954{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22955echo "$as_me: creating $CONFIG_STATUS" >&6;}
22956cat >$CONFIG_STATUS <<_ACEOF
22957#! $SHELL
22958# Generated by $as_me.
22959# Run this file to recreate the current configuration.
22960# Compiler output produced by configure, useful for debugging
22961# configure, is in config.log if it exists.
22962
22963debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000022964ac_cs_recheck=false
22965ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000022966SHELL=\${CONFIG_SHELL-$SHELL}
22967_ACEOF
22968
22969cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022970## --------------------- ##
22971## M4sh Initialization. ##
22972## --------------------- ##
22973
22974# Be Bourne compatible
22975if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22976 emulate sh
22977 NULLCMD=:
John Criswell0c38eaf2003-09-10 15:17:25 +000022978 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22979 # is contrary to our usage. Disable this feature.
22980 alias -g '${1+"$@"}'='"$@"'
John Criswell7a73b802003-06-30 21:59:07 +000022981elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22982 set -o posix
22983fi
22984
John Criswell7a73b802003-06-30 21:59:07 +000022985# Support unset when possible.
22986if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
22987 as_unset=unset
22988else
22989 as_unset=false
22990fi
22991
John Criswell0c38eaf2003-09-10 15:17:25 +000022992
22993# Work around bugs in pre-3.0 UWIN ksh.
22994$as_unset ENV MAIL MAILPATH
22995PS1='$ '
22996PS2='> '
22997PS4='+ '
22998
22999# NLS nuisances.
23000for as_var in \
23001 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23002 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23003 LC_TELEPHONE LC_TIME
23004do
23005 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
23006 eval $as_var=C; export $as_var
23007 else
23008 $as_unset $as_var
23009 fi
23010done
23011
23012# Required to use basename.
23013if expr a : '\(a\)' >/dev/null 2>&1; then
23014 as_expr=expr
23015else
23016 as_expr=false
23017fi
23018
23019if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
23020 as_basename=basename
23021else
23022 as_basename=false
23023fi
John Criswell7a73b802003-06-30 21:59:07 +000023024
23025
23026# Name of the executable.
John Criswell0c38eaf2003-09-10 15:17:25 +000023027as_me=`$as_basename "$0" ||
John Criswell7a73b802003-06-30 21:59:07 +000023028$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23029 X"$0" : 'X\(//\)$' \| \
23030 X"$0" : 'X\(/\)$' \| \
23031 . : '\(.\)' 2>/dev/null ||
23032echo X/"$0" |
23033 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
23034 /^X\/\(\/\/\)$/{ s//\1/; q; }
23035 /^X\/\(\/\).*/{ s//\1/; q; }
23036 s/.*/./; q'`
23037
John Criswell0c38eaf2003-09-10 15:17:25 +000023038
John Criswell7a73b802003-06-30 21:59:07 +000023039# PATH needs CR, and LINENO needs CR and PATH.
23040# Avoid depending upon Character Ranges.
23041as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23042as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23043as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23044as_cr_digits='0123456789'
23045as_cr_alnum=$as_cr_Letters$as_cr_digits
23046
23047# The user is always right.
23048if test "${PATH_SEPARATOR+set}" != set; then
John Criswell0c38eaf2003-09-10 15:17:25 +000023049 echo "#! /bin/sh" >conf$$.sh
23050 echo "exit 0" >>conf$$.sh
23051 chmod +x conf$$.sh
23052 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000023053 PATH_SEPARATOR=';'
23054 else
23055 PATH_SEPARATOR=:
23056 fi
John Criswell0c38eaf2003-09-10 15:17:25 +000023057 rm -f conf$$.sh
John Criswell7a73b802003-06-30 21:59:07 +000023058fi
23059
23060
23061 as_lineno_1=$LINENO
23062 as_lineno_2=$LINENO
23063 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23064 test "x$as_lineno_1" != "x$as_lineno_2" &&
23065 test "x$as_lineno_3" = "x$as_lineno_2" || {
23066 # Find who we are. Look in the path if we contain no path at all
23067 # relative or not.
23068 case $0 in
23069 *[\\/]* ) as_myself=$0 ;;
23070 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23071for as_dir in $PATH
23072do
23073 IFS=$as_save_IFS
23074 test -z "$as_dir" && as_dir=.
23075 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23076done
23077
23078 ;;
23079 esac
23080 # We did not find ourselves, most probably we were run as `sh COMMAND'
23081 # in which case we are not to be found in the path.
23082 if test "x$as_myself" = x; then
23083 as_myself=$0
23084 fi
23085 if test ! -f "$as_myself"; then
23086 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
23087echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
23088 { (exit 1); exit 1; }; }
23089 fi
23090 case $CONFIG_SHELL in
23091 '')
23092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23093for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
23094do
23095 IFS=$as_save_IFS
23096 test -z "$as_dir" && as_dir=.
23097 for as_base in sh bash ksh sh5; do
23098 case $as_dir in
23099 /*)
23100 if ("$as_dir/$as_base" -c '
23101 as_lineno_1=$LINENO
23102 as_lineno_2=$LINENO
23103 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23104 test "x$as_lineno_1" != "x$as_lineno_2" &&
23105 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
John Criswell0c38eaf2003-09-10 15:17:25 +000023106 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
23107 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
John Criswell7a73b802003-06-30 21:59:07 +000023108 CONFIG_SHELL=$as_dir/$as_base
23109 export CONFIG_SHELL
23110 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
23111 fi;;
23112 esac
23113 done
23114done
23115;;
23116 esac
23117
23118 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23119 # uniformly replaced by the line number. The first 'sed' inserts a
23120 # line-number line before each line; the second 'sed' does the real
23121 # work. The second script uses 'N' to pair each line-number line
23122 # with the numbered line, and appends trailing '-' during
23123 # substitution so that $LINENO is not a special case at line end.
23124 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23125 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
23126 sed '=' <$as_myself |
23127 sed '
23128 N
23129 s,$,-,
23130 : loop
23131 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
23132 t loop
23133 s,-$,,
23134 s,^['$as_cr_digits']*\n,,
23135 ' >$as_me.lineno &&
23136 chmod +x $as_me.lineno ||
23137 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
23138echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
23139 { (exit 1); exit 1; }; }
23140
23141 # Don't try to exec as it changes $[0], causing all sort of problems
23142 # (the dirname of $[0] is not the place where we might find the
23143 # original and so on. Autoconf is especially sensible to this).
23144 . ./$as_me.lineno
23145 # Exit status is that of the last command.
23146 exit
23147}
23148
23149
23150case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
23151 *c*,-n*) ECHO_N= ECHO_C='
23152' ECHO_T=' ' ;;
23153 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
23154 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
23155esac
23156
23157if expr a : '\(a\)' >/dev/null 2>&1; then
23158 as_expr=expr
23159else
23160 as_expr=false
23161fi
23162
23163rm -f conf$$ conf$$.exe conf$$.file
23164echo >conf$$.file
23165if ln -s conf$$.file conf$$ 2>/dev/null; then
23166 # We could just check for DJGPP; but this test a) works b) is more generic
23167 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23168 if test -f conf$$.exe; then
23169 # Don't use ln at all; we don't have any links
23170 as_ln_s='cp -p'
23171 else
23172 as_ln_s='ln -s'
23173 fi
23174elif ln conf$$.file conf$$ 2>/dev/null; then
23175 as_ln_s=ln
23176else
23177 as_ln_s='cp -p'
23178fi
23179rm -f conf$$ conf$$.exe conf$$.file
23180
John Criswell0c38eaf2003-09-10 15:17:25 +000023181if mkdir -p . 2>/dev/null; then
23182 as_mkdir_p=:
23183else
23184 as_mkdir_p=false
23185fi
23186
John Criswell7a73b802003-06-30 21:59:07 +000023187as_executable_p="test -f"
23188
23189# Sed expression to map a string onto a valid CPP name.
23190as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
23191
23192# Sed expression to map a string onto a valid variable name.
23193as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
23194
23195
23196# IFS
23197# We need space, tab and new line, in precisely that order.
23198as_nl='
23199'
23200IFS=" $as_nl"
23201
23202# CDPATH.
John Criswell0c38eaf2003-09-10 15:17:25 +000023203$as_unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000023204
23205exec 6>&1
23206
23207# Open the log real soon, to keep \$[0] and so on meaningful, and to
23208# report actual input values of CONFIG_FILES etc. instead of their
23209# values after options handling. Logging --version etc. is OK.
23210exec 5>>config.log
23211{
23212 echo
23213 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23214## Running $as_me. ##
23215_ASBOX
23216} >&5
23217cat >&5 <<_CSEOF
23218
23219This file was extended by [LLVM] $as_me [1.0], which was
John Criswell0c38eaf2003-09-10 15:17:25 +000023220generated by GNU Autoconf 2.57. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000023221
23222 CONFIG_FILES = $CONFIG_FILES
23223 CONFIG_HEADERS = $CONFIG_HEADERS
23224 CONFIG_LINKS = $CONFIG_LINKS
23225 CONFIG_COMMANDS = $CONFIG_COMMANDS
23226 $ $0 $@
23227
23228_CSEOF
23229echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23230echo >&5
23231_ACEOF
23232
23233# Files that config.status was made for.
23234if test -n "$ac_config_files"; then
23235 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23236fi
23237
23238if test -n "$ac_config_headers"; then
23239 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23240fi
23241
23242if test -n "$ac_config_links"; then
23243 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23244fi
23245
23246if test -n "$ac_config_commands"; then
23247 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23248fi
23249
23250cat >>$CONFIG_STATUS <<\_ACEOF
23251
23252ac_cs_usage="\
23253\`$as_me' instantiates files from templates according to the
23254current configuration.
23255
23256Usage: $0 [OPTIONS] [FILE]...
23257
23258 -h, --help print this help, then exit
23259 -V, --version print version number, then exit
John Criswell0c38eaf2003-09-10 15:17:25 +000023260 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000023261 -d, --debug don't remove temporary files
23262 --recheck update $as_me by reconfiguring in the same conditions
23263 --file=FILE[:TEMPLATE]
23264 instantiate the configuration file FILE
23265 --header=FILE[:TEMPLATE]
23266 instantiate the configuration header FILE
23267
23268Configuration files:
23269$config_files
23270
23271Configuration headers:
23272$config_headers
23273
John Criswellc764fbc2003-09-06 15:17:13 +000023274Configuration commands:
23275$config_commands
23276
John Criswell7a73b802003-06-30 21:59:07 +000023277Report bugs to <bug-autoconf@gnu.org>."
23278_ACEOF
23279
23280cat >>$CONFIG_STATUS <<_ACEOF
23281ac_cs_version="\\
23282[LLVM] config.status [1.0]
John Criswell0c38eaf2003-09-10 15:17:25 +000023283configured by $0, generated by GNU Autoconf 2.57,
John Criswell7a73b802003-06-30 21:59:07 +000023284 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23285
23286Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
23287Free Software Foundation, Inc.
23288This config.status script is free software; the Free Software Foundation
23289gives unlimited permission to copy, distribute and modify it."
23290srcdir=$srcdir
23291INSTALL="$INSTALL"
23292_ACEOF
23293
23294cat >>$CONFIG_STATUS <<\_ACEOF
23295# If no file are specified by the user, then we need to provide default
23296# value. By we need to know if files were specified by the user.
23297ac_need_defaults=:
23298while test $# != 0
23299do
23300 case $1 in
23301 --*=*)
23302 ac_option=`expr "x$1" : 'x\([^=]*\)='`
23303 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000023304 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000023305 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000023306 -*)
23307 ac_option=$1
23308 ac_optarg=$2
23309 ac_shift=shift
23310 ;;
John Criswell7a73b802003-06-30 21:59:07 +000023311 *) # This is not an option, so the user has probably given explicit
23312 # arguments.
John Criswell0c38eaf2003-09-10 15:17:25 +000023313 ac_option=$1
John Criswell7a73b802003-06-30 21:59:07 +000023314 ac_need_defaults=false;;
23315 esac
23316
John Criswell0c38eaf2003-09-10 15:17:25 +000023317 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000023318 # Handling of the options.
23319_ACEOF
John Criswelld9cd1442003-09-09 20:52:17 +000023320cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023321 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23322 ac_cs_recheck=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000023323 --version | --vers* | -V )
23324 echo "$ac_cs_version"; exit 0 ;;
23325 --he | --h)
23326 # Conflict between --help and --header
23327 { { echo "$as_me:$LINENO: error: ambiguous option: $1
23328Try \`$0 --help' for more information." >&5
23329echo "$as_me: error: ambiguous option: $1
23330Try \`$0 --help' for more information." >&2;}
23331 { (exit 1); exit 1; }; };;
23332 --help | --hel | -h )
23333 echo "$ac_cs_usage"; exit 0 ;;
23334 --debug | --d* | -d )
23335 debug=: ;;
23336 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000023337 $ac_shift
23338 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000023339 ac_need_defaults=false;;
23340 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000023341 $ac_shift
23342 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000023343 ac_need_defaults=false;;
John Criswell0c38eaf2003-09-10 15:17:25 +000023344 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23345 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23346 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000023347
23348 # This is an error.
23349 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23350Try \`$0 --help' for more information." >&5
23351echo "$as_me: error: unrecognized option: $1
23352Try \`$0 --help' for more information." >&2;}
23353 { (exit 1); exit 1; }; } ;;
23354
23355 *) ac_config_targets="$ac_config_targets $1" ;;
23356
23357 esac
23358 shift
23359done
23360
John Criswell0c38eaf2003-09-10 15:17:25 +000023361ac_configure_extra_args=
23362
23363if $ac_cs_silent; then
23364 exec 6>/dev/null
23365 ac_configure_extra_args="$ac_configure_extra_args --silent"
23366fi
23367
23368_ACEOF
23369cat >>$CONFIG_STATUS <<_ACEOF
23370if \$ac_cs_recheck; then
23371 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23372 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23373fi
23374
John Criswell7a73b802003-06-30 21:59:07 +000023375_ACEOF
23376
John Criswellc764fbc2003-09-06 15:17:13 +000023377cat >>$CONFIG_STATUS <<_ACEOF
23378#
23379# INIT-COMMANDS section.
23380#
John Criswell7a73b802003-06-30 21:59:07 +000023381
John Criswellc764fbc2003-09-06 15:17:13 +000023382${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
23383${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common`
John Criswellc764fbc2003-09-06 15:17:13 +000023384${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023385${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023386${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile`
23387${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
John Criswellf424d742003-10-07 21:13:47 +000023388${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvm.py`
23389${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvmdb.py`
John Criswellc764fbc2003-09-06 15:17:13 +000023390${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile`
23391${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile.programs`
23392${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.Makefile`
23393${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.report`
23394${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.micro.report`
23395${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.report`
23396${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.example.Makefile`
23397${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.Makefile`
23398${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.buildrepo.Makefile`
23399${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.Makefile`
23400${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.report`
23401${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.Makefile`
23402${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.report`
23403${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.typesafe.Makefile`
23404${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.gnuplot`
23405${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.micro.Makefile`
23406${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/Makefile`
23407${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile`
John Criswell613758d2003-09-11 18:03:50 +000023408${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile.spec`
John Criswellc764fbc2003-09-06 15:17:13 +000023409${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile`
23410${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile.multisrc`
Misha Brukman811ce9f2003-11-12 22:16:51 +000023411${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in`
23412${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile`
23413${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in`
23414${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile`
23415${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in`
23416${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile`
23417${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in`
23418${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile`
23419${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in`
23420${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile`
23421${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in`
23422${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile`
23423${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in`
John Criswellc764fbc2003-09-06 15:17:13 +000023424${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile`
23425${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile.singlesrc`
John Criswellc764fbc2003-09-06 15:17:13 +000023426${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
Brian Gaekec45be042003-10-07 06:01:34 +000023427${srcdir}/autoconf/mkinstalldirs `dirname utils/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023428${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023429${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/Makefile`
23430${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/Makefile.common`
23431${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/tools/Makefile`
23432${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/tools/ModuleMaker/Makefile`
Brian Gaeke866f10c2003-11-24 02:54:57 +000023433${srcdir}/autoconf/mkinstalldirs `dirname projects/Stacker/Makefile`
23434${srcdir}/autoconf/mkinstalldirs `dirname projects/Stacker/lib/Makefile`
23435${srcdir}/autoconf/mkinstalldirs `dirname projects/Stacker/lib/compiler/Makefile`
23436${srcdir}/autoconf/mkinstalldirs `dirname projects/Stacker/lib/runtime/Makefile`
23437${srcdir}/autoconf/mkinstalldirs `dirname projects/Stacker/tools/Makefile`
23438${srcdir}/autoconf/mkinstalldirs `dirname projects/Stacker/tools/stkrc/Makefile`
23439${srcdir}/autoconf/mkinstalldirs `dirname projects/Stacker/test/Makefile`
23440${srcdir}/autoconf/mkinstalldirs `dirname projects/Stacker/samples/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023441
23442_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000023443
23444
23445
23446cat >>$CONFIG_STATUS <<\_ACEOF
23447for ac_config_target in $ac_config_targets
23448do
23449 case "$ac_config_target" in
23450 # Handling of arguments.
23451 "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023452 "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
23453 "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023454 "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023455 "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023456 "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
23457 "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
John Criswellf424d742003-10-07 21:13:47 +000023458 "test/QMTest/llvm.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvm.py" ;;
23459 "test/QMTest/llvmdb.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvmdb.py" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023460 "test/Programs/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile" ;;
23461 "test/Programs/Makefile.programs" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile.programs" ;;
23462 "test/Programs/TEST.aa.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.Makefile" ;;
23463 "test/Programs/TEST.dsgraph.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.report" ;;
23464 "test/Programs/TEST.micro.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.micro.report" ;;
23465 "test/Programs/TEST.aa.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.report" ;;
23466 "test/Programs/TEST.example.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.example.Makefile" ;;
23467 "test/Programs/TEST.nightly.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.Makefile" ;;
23468 "test/Programs/TEST.buildrepo.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.buildrepo.Makefile" ;;
23469 "test/Programs/TEST.jit.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.Makefile" ;;
23470 "test/Programs/TEST.nightly.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.report" ;;
23471 "test/Programs/TEST.dsgraph.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.Makefile" ;;
23472 "test/Programs/TEST.jit.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.report" ;;
23473 "test/Programs/TEST.typesafe.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.typesafe.Makefile" ;;
23474 "test/Programs/TEST.dsgraph.gnuplot" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.gnuplot" ;;
23475 "test/Programs/TEST.micro.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.micro.Makefile" ;;
23476 "test/Programs/External/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/Makefile" ;;
23477 "test/Programs/External/SPEC/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile" ;;
John Criswell613758d2003-09-11 18:03:50 +000023478 "test/Programs/External/SPEC/Makefile.spec" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile.spec" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023479 "test/Programs/MultiSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile" ;;
23480 "test/Programs/MultiSource/Makefile.multisrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile.multisrc" ;;
Misha Brukman811ce9f2003-11-12 22:16:51 +000023481 "test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in" ;;
23482 "test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile" ;;
23483 "test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in" ;;
23484 "test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile" ;;
23485 "test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in" ;;
23486 "test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile" ;;
23487 "test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in" ;;
23488 "test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile" ;;
23489 "test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in" ;;
23490 "test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile" ;;
23491 "test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in" ;;
23492 "test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile" ;;
23493 "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 +000023494 "test/Programs/SingleSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile" ;;
23495 "test/Programs/SingleSource/Makefile.singlesrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile.singlesrc" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023496 "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
Brian Gaekec45be042003-10-07 06:01:34 +000023497 "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023498 "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023499 "projects/ModuleMaker/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/Makefile" ;;
23500 "projects/ModuleMaker/Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/Makefile.common" ;;
23501 "projects/ModuleMaker/tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/tools/Makefile" ;;
23502 "projects/ModuleMaker/tools/ModuleMaker/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/tools/ModuleMaker/Makefile" ;;
Brian Gaeke866f10c2003-11-24 02:54:57 +000023503 "projects/Stacker/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Stacker/Makefile" ;;
23504 "projects/Stacker/lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Stacker/lib/Makefile" ;;
23505 "projects/Stacker/lib/compiler/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Stacker/lib/compiler/Makefile" ;;
23506 "projects/Stacker/lib/runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Stacker/lib/runtime/Makefile" ;;
23507 "projects/Stacker/tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Stacker/tools/Makefile" ;;
23508 "projects/Stacker/tools/stkrc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Stacker/tools/stkrc/Makefile" ;;
23509 "projects/Stacker/test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Stacker/test/Makefile" ;;
23510 "projects/Stacker/samples/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Stacker/samples/Makefile" ;;
John Criswell7a73b802003-06-30 21:59:07 +000023511 "include/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/Config/config.h" ;;
23512 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23513echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23514 { (exit 1); exit 1; }; };;
23515 esac
23516done
23517
23518# If the user did not use the arguments to specify the items to instantiate,
23519# then the envvar interface is used. Set only those that are not.
23520# We use the long form for the default assignment because of an extremely
23521# bizarre bug on SunOS 4.1.3.
23522if $ac_need_defaults; then
23523 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23524 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000023525 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000023526fi
23527
John Criswell0c38eaf2003-09-10 15:17:25 +000023528# Have a temporary directory for convenience. Make it in the build tree
23529# simply because there is no reason to put it here, and in addition,
23530# creating and moving files from /tmp can sometimes cause problems.
John Criswell7a73b802003-06-30 21:59:07 +000023531# Create a temporary directory, and hook for its removal unless debugging.
23532$debug ||
23533{
23534 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23535 trap '{ (exit 1); exit 1; }' 1 2 13 15
23536}
23537
23538# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000023539
John Criswell7a73b802003-06-30 21:59:07 +000023540{
John Criswell0c38eaf2003-09-10 15:17:25 +000023541 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000023542 test -n "$tmp" && test -d "$tmp"
23543} ||
23544{
John Criswell0c38eaf2003-09-10 15:17:25 +000023545 tmp=./confstat$$-$RANDOM
John Criswell7a73b802003-06-30 21:59:07 +000023546 (umask 077 && mkdir $tmp)
23547} ||
23548{
John Criswell0c38eaf2003-09-10 15:17:25 +000023549 echo "$me: cannot create a temporary directory in ." >&2
John Criswell7a73b802003-06-30 21:59:07 +000023550 { (exit 1); exit 1; }
23551}
23552
23553_ACEOF
23554
23555cat >>$CONFIG_STATUS <<_ACEOF
23556
23557#
23558# CONFIG_FILES section.
23559#
23560
23561# No need to generate the scripts if there are no CONFIG_FILES.
23562# This happens for instance when ./config.status config.h
23563if test -n "\$CONFIG_FILES"; then
23564 # Protect against being on the right side of a sed subst in config.status.
23565 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23566 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23567s,@SHELL@,$SHELL,;t t
23568s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23569s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23570s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23571s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23572s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23573s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23574s,@exec_prefix@,$exec_prefix,;t t
23575s,@prefix@,$prefix,;t t
23576s,@program_transform_name@,$program_transform_name,;t t
23577s,@bindir@,$bindir,;t t
23578s,@sbindir@,$sbindir,;t t
23579s,@libexecdir@,$libexecdir,;t t
23580s,@datadir@,$datadir,;t t
23581s,@sysconfdir@,$sysconfdir,;t t
23582s,@sharedstatedir@,$sharedstatedir,;t t
23583s,@localstatedir@,$localstatedir,;t t
23584s,@libdir@,$libdir,;t t
23585s,@includedir@,$includedir,;t t
23586s,@oldincludedir@,$oldincludedir,;t t
23587s,@infodir@,$infodir,;t t
23588s,@mandir@,$mandir,;t t
23589s,@build_alias@,$build_alias,;t t
23590s,@host_alias@,$host_alias,;t t
23591s,@target_alias@,$target_alias,;t t
23592s,@DEFS@,$DEFS,;t t
23593s,@ECHO_C@,$ECHO_C,;t t
23594s,@ECHO_N@,$ECHO_N,;t t
23595s,@ECHO_T@,$ECHO_T,;t t
23596s,@LIBS@,$LIBS,;t t
John Criswell12399a12003-09-30 15:55:44 +000023597s,@subdirs@,$subdirs,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023598s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23599s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23600s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23601s,@build@,$build,;t t
23602s,@build_cpu@,$build_cpu,;t t
23603s,@build_vendor@,$build_vendor,;t t
23604s,@build_os@,$build_os,;t t
23605s,@host@,$host,;t t
23606s,@host_cpu@,$host_cpu,;t t
23607s,@host_vendor@,$host_vendor,;t t
23608s,@host_os@,$host_os,;t t
23609s,@target@,$target,;t t
23610s,@target_cpu@,$target_cpu,;t t
23611s,@target_vendor@,$target_vendor,;t t
23612s,@target_os@,$target_os,;t t
23613s,@OS@,$OS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023614s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
John Criswell76595452003-07-01 22:07:39 +000023615s,@ARCH@,$ARCH,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023616s,@CXX@,$CXX,;t t
23617s,@CXXFLAGS@,$CXXFLAGS,;t t
23618s,@LDFLAGS@,$LDFLAGS,;t t
23619s,@CPPFLAGS@,$CPPFLAGS,;t t
23620s,@ac_ct_CXX@,$ac_ct_CXX,;t t
23621s,@EXEEXT@,$EXEEXT,;t t
23622s,@OBJEXT@,$OBJEXT,;t t
23623s,@CC@,$CC,;t t
23624s,@CFLAGS@,$CFLAGS,;t t
23625s,@ac_ct_CC@,$ac_ct_CC,;t t
23626s,@CPP@,$CPP,;t t
23627s,@ifGNUmake@,$ifGNUmake,;t t
23628s,@LEX@,$LEX,;t t
23629s,@LEXLIB@,$LEXLIB,;t t
23630s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
23631s,@YACC@,$YACC,;t t
John Criswell47fdd832003-07-14 16:52:07 +000023632s,@EGREP@,$EGREP,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023633s,@LN_S@,$LN_S,;t t
23634s,@ECHO@,$ECHO,;t t
John Criswell47fdd832003-07-14 16:52:07 +000023635s,@AR@,$AR,;t t
23636s,@ac_ct_AR@,$ac_ct_AR,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023637s,@RANLIB@,$RANLIB,;t t
23638s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23639s,@STRIP@,$STRIP,;t t
23640s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
John Criswell47fdd832003-07-14 16:52:07 +000023641s,@CXXCPP@,$CXXCPP,;t t
23642s,@F77@,$F77,;t t
23643s,@FFLAGS@,$FFLAGS,;t t
23644s,@ac_ct_F77@,$ac_ct_F77,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023645s,@LIBTOOL@,$LIBTOOL,;t t
John Criswellde00db22003-08-25 16:49:54 +000023646s,@RPWD@,$RPWD,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023647s,@SED@,$SED,;t t
23648s,@RM@,$RM,;t t
23649s,@MKDIR@,$MKDIR,;t t
23650s,@DATE@,$DATE,;t t
23651s,@MV@,$MV,;t t
23652s,@DOT@,$DOT,;t t
23653s,@ETAGS@,$ETAGS,;t t
John Criswellde00db22003-08-25 16:49:54 +000023654s,@PYTHON@,$PYTHON,;t t
23655s,@QMTEST@,$QMTEST,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023656s,@ALLOCA@,$ALLOCA,;t t
23657s,@LIBOBJS@,$LIBOBJS,;t t
23658s,@MMAP_FILE@,$MMAP_FILE,;t t
23659s,@ENABLE_PURIFY@,$ENABLE_PURIFY,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023660s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
John Criswell55126592003-10-07 21:57:39 +000023661s,@SPEC_ROOT@,$SPEC_ROOT,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023662s,@USE_SPEC@,$USE_SPEC,;t t
23663s,@UPB@,$UPB,;t t
John Criswellf02dbf02003-07-22 20:07:49 +000023664s,@DISABLE_LLC_DIFFS@,$DISABLE_LLC_DIFFS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023665s,@JIT@,$JIT,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023666s,@BCR@,$BCR,;t t
23667s,@PAPIDIR@,$PAPIDIR,;t t
John Criswellce2141f2003-10-02 19:02:30 +000023668s,@PURIFY@,$PURIFY,;t t
John Criswell0c38eaf2003-09-10 15:17:25 +000023669s,@LTLIBOBJS@,$LTLIBOBJS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023670CEOF
23671
23672_ACEOF
23673
23674 cat >>$CONFIG_STATUS <<\_ACEOF
23675 # Split the substitutions into bite-sized pieces for seds with
23676 # small command number limits, like on Digital OSF/1 and HP-UX.
23677 ac_max_sed_lines=48
23678 ac_sed_frag=1 # Number of current file.
23679 ac_beg=1 # First line for current file.
23680 ac_end=$ac_max_sed_lines # Line after last line for current file.
23681 ac_more_lines=:
23682 ac_sed_cmds=
23683 while $ac_more_lines; do
23684 if test $ac_beg -gt 1; then
23685 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23686 else
23687 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23688 fi
23689 if test ! -s $tmp/subs.frag; then
23690 ac_more_lines=false
23691 else
23692 # The purpose of the label and of the branching condition is to
23693 # speed up the sed processing (if there are no `@' at all, there
23694 # is no need to browse any of the substitutions).
23695 # These are the two extra sed commands mentioned above.
23696 (echo ':t
23697 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
23698 if test -z "$ac_sed_cmds"; then
23699 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
23700 else
23701 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23702 fi
23703 ac_sed_frag=`expr $ac_sed_frag + 1`
23704 ac_beg=$ac_end
23705 ac_end=`expr $ac_end + $ac_max_sed_lines`
23706 fi
23707 done
23708 if test -z "$ac_sed_cmds"; then
23709 ac_sed_cmds=cat
23710 fi
23711fi # test -n "$CONFIG_FILES"
23712
23713_ACEOF
23714cat >>$CONFIG_STATUS <<\_ACEOF
23715for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
23716 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23717 case $ac_file in
23718 - | *:- | *:-:* ) # input from stdin
23719 cat >$tmp/stdin
23720 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23721 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23722 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23723 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23724 * ) ac_file_in=$ac_file.in ;;
23725 esac
23726
23727 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23728 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23729$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23730 X"$ac_file" : 'X\(//\)[^/]' \| \
23731 X"$ac_file" : 'X\(//\)$' \| \
23732 X"$ac_file" : 'X\(/\)' \| \
23733 . : '\(.\)' 2>/dev/null ||
23734echo X"$ac_file" |
23735 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23736 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23737 /^X\(\/\/\)$/{ s//\1/; q; }
23738 /^X\(\/\).*/{ s//\1/; q; }
23739 s/.*/./; q'`
John Criswell0c38eaf2003-09-10 15:17:25 +000023740 { if $as_mkdir_p; then
23741 mkdir -p "$ac_dir"
23742 else
23743 as_dir="$ac_dir"
23744 as_dirs=
23745 while test ! -d "$as_dir"; do
23746 as_dirs="$as_dir $as_dirs"
23747 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23748$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23749 X"$as_dir" : 'X\(//\)[^/]' \| \
23750 X"$as_dir" : 'X\(//\)$' \| \
23751 X"$as_dir" : 'X\(/\)' \| \
23752 . : '\(.\)' 2>/dev/null ||
23753echo X"$as_dir" |
23754 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23755 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23756 /^X\(\/\/\)$/{ s//\1/; q; }
23757 /^X\(\/\).*/{ s//\1/; q; }
23758 s/.*/./; q'`
23759 done
23760 test ! -n "$as_dirs" || mkdir $as_dirs
23761 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23762echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23763 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000023764
23765 ac_builddir=.
23766
23767if test "$ac_dir" != .; then
23768 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23769 # A "../" for each directory in $ac_dir_suffix.
23770 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23771else
23772 ac_dir_suffix= ac_top_builddir=
23773fi
23774
23775case $srcdir in
23776 .) # No --srcdir option. We are building in place.
23777 ac_srcdir=.
23778 if test -z "$ac_top_builddir"; then
23779 ac_top_srcdir=.
23780 else
23781 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23782 fi ;;
23783 [\\/]* | ?:[\\/]* ) # Absolute path.
23784 ac_srcdir=$srcdir$ac_dir_suffix;
23785 ac_top_srcdir=$srcdir ;;
23786 *) # Relative path.
23787 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23788 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23789esac
23790# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
23791# absolute.
23792ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
John Criswell0c38eaf2003-09-10 15:17:25 +000023793ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
John Criswell7a73b802003-06-30 21:59:07 +000023794ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
23795ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
23796
23797
23798 case $INSTALL in
23799 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23800 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
23801 esac
23802
23803 if test x"$ac_file" != x-; then
23804 { echo "$as_me:$LINENO: creating $ac_file" >&5
23805echo "$as_me: creating $ac_file" >&6;}
23806 rm -f "$ac_file"
23807 fi
23808 # Let's still pretend it is `configure' which instantiates (i.e., don't
23809 # use $as_me), people would be surprised to read:
23810 # /* config.h. Generated by config.status. */
23811 if test x"$ac_file" = x-; then
23812 configure_input=
23813 else
23814 configure_input="$ac_file. "
23815 fi
23816 configure_input=$configure_input"Generated from `echo $ac_file_in |
23817 sed 's,.*/,,'` by configure."
23818
23819 # First look for the input files in the build tree, otherwise in the
23820 # src tree.
23821 ac_file_inputs=`IFS=:
23822 for f in $ac_file_in; do
23823 case $f in
23824 -) echo $tmp/stdin ;;
23825 [\\/$]*)
23826 # Absolute (can't be DOS-style, as IFS=:)
23827 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23828echo "$as_me: error: cannot find input file: $f" >&2;}
23829 { (exit 1); exit 1; }; }
23830 echo $f;;
23831 *) # Relative
23832 if test -f "$f"; then
23833 # Build tree
23834 echo $f
23835 elif test -f "$srcdir/$f"; then
23836 # Source tree
23837 echo $srcdir/$f
23838 else
23839 # /dev/null tree
23840 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23841echo "$as_me: error: cannot find input file: $f" >&2;}
23842 { (exit 1); exit 1; }; }
23843 fi;;
23844 esac
23845 done` || { (exit 1); exit 1; }
23846_ACEOF
23847cat >>$CONFIG_STATUS <<_ACEOF
23848 sed "$ac_vpsub
23849$extrasub
23850_ACEOF
23851cat >>$CONFIG_STATUS <<\_ACEOF
23852:t
23853/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23854s,@configure_input@,$configure_input,;t t
23855s,@srcdir@,$ac_srcdir,;t t
23856s,@abs_srcdir@,$ac_abs_srcdir,;t t
23857s,@top_srcdir@,$ac_top_srcdir,;t t
23858s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
23859s,@builddir@,$ac_builddir,;t t
23860s,@abs_builddir@,$ac_abs_builddir,;t t
23861s,@top_builddir@,$ac_top_builddir,;t t
23862s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
23863s,@INSTALL@,$ac_INSTALL,;t t
23864" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23865 rm -f $tmp/stdin
23866 if test x"$ac_file" != x-; then
23867 mv $tmp/out $ac_file
23868 else
23869 cat $tmp/out
23870 rm -f $tmp/out
23871 fi
23872
23873done
23874_ACEOF
23875cat >>$CONFIG_STATUS <<\_ACEOF
23876
23877#
23878# CONFIG_HEADER section.
23879#
23880
23881# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
23882# NAME is the cpp macro being defined and VALUE is the value it is being given.
23883#
23884# ac_d sets the value in "#define NAME VALUE" lines.
23885ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
23886ac_dB='[ ].*$,\1#\2'
23887ac_dC=' '
23888ac_dD=',;t'
23889# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23890ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23891ac_uB='$,\1#\2define\3'
23892ac_uC=' '
23893ac_uD=',;t'
23894
23895for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
23896 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23897 case $ac_file in
23898 - | *:- | *:-:* ) # input from stdin
23899 cat >$tmp/stdin
23900 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23901 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23902 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23903 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23904 * ) ac_file_in=$ac_file.in ;;
23905 esac
23906
23907 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
23908echo "$as_me: creating $ac_file" >&6;}
23909
23910 # First look for the input files in the build tree, otherwise in the
23911 # src tree.
23912 ac_file_inputs=`IFS=:
23913 for f in $ac_file_in; do
23914 case $f in
23915 -) echo $tmp/stdin ;;
23916 [\\/$]*)
23917 # Absolute (can't be DOS-style, as IFS=:)
23918 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23919echo "$as_me: error: cannot find input file: $f" >&2;}
23920 { (exit 1); exit 1; }; }
23921 echo $f;;
23922 *) # Relative
23923 if test -f "$f"; then
23924 # Build tree
23925 echo $f
23926 elif test -f "$srcdir/$f"; then
23927 # Source tree
23928 echo $srcdir/$f
23929 else
23930 # /dev/null tree
23931 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23932echo "$as_me: error: cannot find input file: $f" >&2;}
23933 { (exit 1); exit 1; }; }
23934 fi;;
23935 esac
23936 done` || { (exit 1); exit 1; }
23937 # Remove the trailing spaces.
23938 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
23939
23940_ACEOF
23941
23942# Transform confdefs.h into two sed scripts, `conftest.defines' and
23943# `conftest.undefs', that substitutes the proper values into
23944# config.h.in to produce config.h. The first handles `#define'
23945# templates, and the second `#undef' templates.
23946# And first: Protect against being on the right side of a sed subst in
23947# config.status. Protect against being in an unquoted here document
23948# in config.status.
23949rm -f conftest.defines conftest.undefs
23950# Using a here document instead of a string reduces the quoting nightmare.
23951# Putting comments in sed scripts is not portable.
23952#
23953# `end' is used to avoid that the second main sed command (meant for
23954# 0-ary CPP macros) applies to n-ary macro definitions.
23955# See the Autoconf documentation for `clear'.
23956cat >confdef2sed.sed <<\_ACEOF
23957s/[\\&,]/\\&/g
23958s,[\\$`],\\&,g
23959t clear
23960: clear
23961s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
23962t end
23963s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
23964: end
23965_ACEOF
23966# If some macros were called several times there might be several times
23967# the same #defines, which is useless. Nevertheless, we may not want to
23968# sort them, since we want the *last* AC-DEFINE to be honored.
23969uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
23970sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
23971rm -f confdef2sed.sed
23972
23973# This sed command replaces #undef with comments. This is necessary, for
23974# example, in the case of _POSIX_SOURCE, which is predefined and required
23975# on some systems where configure will not decide to define it.
23976cat >>conftest.undefs <<\_ACEOF
23977s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
23978_ACEOF
23979
23980# Break up conftest.defines because some shells have a limit on the size
23981# of here documents, and old seds have small limits too (100 cmds).
23982echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
John Criswell0c38eaf2003-09-10 15:17:25 +000023983echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000023984echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
23985echo ' :' >>$CONFIG_STATUS
23986rm -f conftest.tail
23987while grep . conftest.defines >/dev/null
23988do
23989 # Write a limited-size here document to $tmp/defines.sed.
23990 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
23991 # Speed up: don't consider the non `#define' lines.
23992 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
23993 # Work around the forget-to-reset-the-flag bug.
23994 echo 't clr' >>$CONFIG_STATUS
23995 echo ': clr' >>$CONFIG_STATUS
23996 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
23997 echo 'CEOF
23998 sed -f $tmp/defines.sed $tmp/in >$tmp/out
23999 rm -f $tmp/in
24000 mv $tmp/out $tmp/in
24001' >>$CONFIG_STATUS
24002 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
24003 rm -f conftest.defines
24004 mv conftest.tail conftest.defines
24005done
24006rm -f conftest.defines
John Criswell0c38eaf2003-09-10 15:17:25 +000024007echo ' fi # grep' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000024008echo >>$CONFIG_STATUS
24009
24010# Break up conftest.undefs because some shells have a limit on the size
24011# of here documents, and old seds have small limits too (100 cmds).
24012echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
24013rm -f conftest.tail
24014while grep . conftest.undefs >/dev/null
24015do
24016 # Write a limited-size here document to $tmp/undefs.sed.
24017 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24018 # Speed up: don't consider the non `#undef'
24019 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
24020 # Work around the forget-to-reset-the-flag bug.
24021 echo 't clr' >>$CONFIG_STATUS
24022 echo ': clr' >>$CONFIG_STATUS
24023 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
24024 echo 'CEOF
24025 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24026 rm -f $tmp/in
24027 mv $tmp/out $tmp/in
24028' >>$CONFIG_STATUS
24029 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24030 rm -f conftest.undefs
24031 mv conftest.tail conftest.undefs
24032done
24033rm -f conftest.undefs
24034
24035cat >>$CONFIG_STATUS <<\_ACEOF
24036 # Let's still pretend it is `configure' which instantiates (i.e., don't
24037 # use $as_me), people would be surprised to read:
24038 # /* config.h. Generated by config.status. */
24039 if test x"$ac_file" = x-; then
24040 echo "/* Generated by configure. */" >$tmp/config.h
24041 else
24042 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
24043 fi
24044 cat $tmp/in >>$tmp/config.h
24045 rm -f $tmp/in
24046 if test x"$ac_file" != x-; then
John Criswell0c38eaf2003-09-10 15:17:25 +000024047 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000024048 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24049echo "$as_me: $ac_file is unchanged" >&6;}
24050 else
24051 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24052$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24053 X"$ac_file" : 'X\(//\)[^/]' \| \
24054 X"$ac_file" : 'X\(//\)$' \| \
24055 X"$ac_file" : 'X\(/\)' \| \
24056 . : '\(.\)' 2>/dev/null ||
24057echo X"$ac_file" |
24058 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24059 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24060 /^X\(\/\/\)$/{ s//\1/; q; }
24061 /^X\(\/\).*/{ s//\1/; q; }
24062 s/.*/./; q'`
John Criswell0c38eaf2003-09-10 15:17:25 +000024063 { if $as_mkdir_p; then
24064 mkdir -p "$ac_dir"
24065 else
24066 as_dir="$ac_dir"
24067 as_dirs=
24068 while test ! -d "$as_dir"; do
24069 as_dirs="$as_dir $as_dirs"
24070 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24071$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24072 X"$as_dir" : 'X\(//\)[^/]' \| \
24073 X"$as_dir" : 'X\(//\)$' \| \
24074 X"$as_dir" : 'X\(/\)' \| \
24075 . : '\(.\)' 2>/dev/null ||
24076echo X"$as_dir" |
24077 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24078 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24079 /^X\(\/\/\)$/{ s//\1/; q; }
24080 /^X\(\/\).*/{ s//\1/; q; }
24081 s/.*/./; q'`
24082 done
24083 test ! -n "$as_dirs" || mkdir $as_dirs
24084 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24085echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24086 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000024087
24088 rm -f $ac_file
24089 mv $tmp/config.h $ac_file
24090 fi
24091 else
24092 cat $tmp/config.h
24093 rm -f $tmp/config.h
24094 fi
24095done
24096_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000024097cat >>$CONFIG_STATUS <<\_ACEOF
24098
24099#
24100# CONFIG_COMMANDS section.
24101#
24102for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
24103 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
24104 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
24105 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
24106$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24107 X"$ac_dest" : 'X\(//\)[^/]' \| \
24108 X"$ac_dest" : 'X\(//\)$' \| \
24109 X"$ac_dest" : 'X\(/\)' \| \
24110 . : '\(.\)' 2>/dev/null ||
24111echo X"$ac_dest" |
24112 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24113 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24114 /^X\(\/\/\)$/{ s//\1/; q; }
24115 /^X\(\/\).*/{ s//\1/; q; }
24116 s/.*/./; q'`
24117 ac_builddir=.
24118
24119if test "$ac_dir" != .; then
24120 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24121 # A "../" for each directory in $ac_dir_suffix.
24122 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24123else
24124 ac_dir_suffix= ac_top_builddir=
24125fi
24126
24127case $srcdir in
24128 .) # No --srcdir option. We are building in place.
24129 ac_srcdir=.
24130 if test -z "$ac_top_builddir"; then
24131 ac_top_srcdir=.
24132 else
24133 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24134 fi ;;
24135 [\\/]* | ?:[\\/]* ) # Absolute path.
24136 ac_srcdir=$srcdir$ac_dir_suffix;
24137 ac_top_srcdir=$srcdir ;;
24138 *) # Relative path.
24139 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24140 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24141esac
24142# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
24143# absolute.
24144ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
John Criswell0c38eaf2003-09-10 15:17:25 +000024145ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
John Criswellc764fbc2003-09-06 15:17:13 +000024146ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
24147ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
24148
24149
24150 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
24151echo "$as_me: executing $ac_dest commands" >&6;}
24152 case $ac_dest in
24153 Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
24154 Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024155 lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024156 runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024157 test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
24158 test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
John Criswellf424d742003-10-07 21:13:47 +000024159 test/QMTest/llvm.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvm.py test/QMTest/llvm.py ;;
24160 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 +000024161 test/Programs/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile test/Programs/Makefile ;;
24162 test/Programs/Makefile.programs ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile.programs test/Programs/Makefile.programs ;;
24163 test/Programs/TEST.aa.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.Makefile test/Programs/TEST.aa.Makefile ;;
24164 test/Programs/TEST.dsgraph.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.report test/Programs/TEST.dsgraph.report ;;
24165 test/Programs/TEST.micro.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.micro.report test/Programs/TEST.micro.report ;;
24166 test/Programs/TEST.aa.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.report test/Programs/TEST.aa.report ;;
24167 test/Programs/TEST.example.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.example.Makefile test/Programs/TEST.example.Makefile ;;
24168 test/Programs/TEST.nightly.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.Makefile test/Programs/TEST.nightly.Makefile ;;
24169 test/Programs/TEST.buildrepo.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.buildrepo.Makefile test/Programs/TEST.buildrepo.Makefile ;;
24170 test/Programs/TEST.jit.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.Makefile test/Programs/TEST.jit.Makefile ;;
24171 test/Programs/TEST.nightly.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.report test/Programs/TEST.nightly.report ;;
24172 test/Programs/TEST.dsgraph.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.Makefile test/Programs/TEST.dsgraph.Makefile ;;
24173 test/Programs/TEST.jit.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.report test/Programs/TEST.jit.report ;;
24174 test/Programs/TEST.typesafe.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.typesafe.Makefile test/Programs/TEST.typesafe.Makefile ;;
24175 test/Programs/TEST.dsgraph.gnuplot ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.gnuplot test/Programs/TEST.dsgraph.gnuplot ;;
24176 test/Programs/TEST.micro.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.micro.Makefile test/Programs/TEST.micro.Makefile ;;
24177 test/Programs/External/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/Makefile test/Programs/External/Makefile ;;
24178 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 +000024179 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 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024180 test/Programs/MultiSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile test/Programs/MultiSource/Makefile ;;
24181 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 +000024182 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 ;;
24183 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 ;;
24184 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 ;;
24185 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 ;;
24186 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 ;;
24187 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 ;;
24188 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 ;;
24189 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 ;;
24190 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 ;;
24191 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 ;;
24192 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 ;;
24193 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 ;;
24194 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 +000024195 test/Programs/SingleSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile test/Programs/SingleSource/Makefile ;;
24196 test/Programs/SingleSource/Makefile.singlesrc ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile.singlesrc test/Programs/SingleSource/Makefile.singlesrc ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024197 tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
Brian Gaekec45be042003-10-07 06:01:34 +000024198 utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024199 projects/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024200 projects/ModuleMaker/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/Makefile projects/ModuleMaker/Makefile ;;
24201 projects/ModuleMaker/Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/Makefile.common projects/ModuleMaker/Makefile.common ;;
24202 projects/ModuleMaker/tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/tools/Makefile projects/ModuleMaker/tools/Makefile ;;
24203 projects/ModuleMaker/tools/ModuleMaker/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/tools/ModuleMaker/Makefile projects/ModuleMaker/tools/ModuleMaker/Makefile ;;
Brian Gaeke866f10c2003-11-24 02:54:57 +000024204 projects/Stacker/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Stacker/Makefile projects/Stacker/Makefile ;;
24205 projects/Stacker/lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Stacker/lib/Makefile projects/Stacker/lib/Makefile ;;
24206 projects/Stacker/lib/compiler/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Stacker/lib/compiler/Makefile projects/Stacker/lib/compiler/Makefile ;;
24207 projects/Stacker/lib/runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Stacker/lib/runtime/Makefile projects/Stacker/lib/runtime/Makefile ;;
24208 projects/Stacker/tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Stacker/tools/Makefile projects/Stacker/tools/Makefile ;;
24209 projects/Stacker/tools/stkrc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Stacker/tools/stkrc/Makefile projects/Stacker/tools/stkrc/Makefile ;;
24210 projects/Stacker/test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Stacker/test/Makefile projects/Stacker/test/Makefile ;;
24211 projects/Stacker/samples/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Stacker/samples/Makefile projects/Stacker/samples/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024212 esac
24213done
24214_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000024215
24216cat >>$CONFIG_STATUS <<\_ACEOF
24217
24218{ (exit 0); exit 0; }
24219_ACEOF
24220chmod +x $CONFIG_STATUS
24221ac_clean_files=$ac_clean_files_save
24222
24223
24224# configure is writing to config.log, and then calls config.status.
24225# config.status does its own redirection, appending to config.log.
24226# Unfortunately, on DOS this fails, as config.log is still kept open
24227# by configure, so config.status won't be able to write to it; its
24228# output is simply discarded. So we exec the FD to /dev/null,
24229# effectively closing config.log, so it can be properly (re)opened and
24230# appended to by config.status. When coming back to configure, we
24231# need to make the FD available again.
24232if test "$no_create" != yes; then
24233 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000024234 ac_config_status_args=
24235 test "$silent" = yes &&
24236 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000024237 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000024238 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000024239 exec 5>>config.log
24240 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24241 # would make configure fail if this is the last instruction.
24242 $ac_cs_success || { (exit 1); exit 1; }
24243fi
24244
John Criswell12399a12003-09-30 15:55:44 +000024245#
24246# CONFIG_SUBDIRS section.
24247#
24248if test "$no_recursion" != yes; then
24249
24250 # Remove --cache-file and --srcdir arguments so they do not pile up.
24251 ac_sub_configure_args=
24252 ac_prev=
24253 for ac_arg in $ac_configure_args; do
24254 if test -n "$ac_prev"; then
24255 ac_prev=
24256 continue
24257 fi
24258 case $ac_arg in
24259 -cache-file | --cache-file | --cache-fil | --cache-fi \
24260 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
24261 ac_prev=cache_file ;;
24262 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
24263 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
24264 | --c=*)
24265 ;;
24266 --config-cache | -C)
24267 ;;
24268 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
24269 ac_prev=srcdir ;;
24270 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
24271 ;;
24272 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
24273 ac_prev=prefix ;;
24274 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
24275 ;;
24276 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
24277 esac
24278 done
24279
24280 # Always prepend --prefix to ensure using the same prefix
24281 # in subdir configurations.
24282 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
24283
24284 ac_popdir=`pwd`
24285 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
24286
24287 # Do not complain, so a configure script can configure whichever
24288 # parts of a large source tree are present.
24289 test -d $srcdir/$ac_dir || continue
24290
24291 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
24292echo "$as_me: configuring in $ac_dir" >&6;}
24293 { if $as_mkdir_p; then
24294 mkdir -p "$ac_dir"
24295 else
24296 as_dir="$ac_dir"
24297 as_dirs=
24298 while test ! -d "$as_dir"; do
24299 as_dirs="$as_dir $as_dirs"
24300 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24301$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24302 X"$as_dir" : 'X\(//\)[^/]' \| \
24303 X"$as_dir" : 'X\(//\)$' \| \
24304 X"$as_dir" : 'X\(/\)' \| \
24305 . : '\(.\)' 2>/dev/null ||
24306echo X"$as_dir" |
24307 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24308 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24309 /^X\(\/\/\)$/{ s//\1/; q; }
24310 /^X\(\/\).*/{ s//\1/; q; }
24311 s/.*/./; q'`
24312 done
24313 test ! -n "$as_dirs" || mkdir $as_dirs
24314 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24315echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24316 { (exit 1); exit 1; }; }; }
24317
24318 ac_builddir=.
24319
24320if test "$ac_dir" != .; then
24321 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24322 # A "../" for each directory in $ac_dir_suffix.
24323 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24324else
24325 ac_dir_suffix= ac_top_builddir=
24326fi
24327
24328case $srcdir in
24329 .) # No --srcdir option. We are building in place.
24330 ac_srcdir=.
24331 if test -z "$ac_top_builddir"; then
24332 ac_top_srcdir=.
24333 else
24334 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24335 fi ;;
24336 [\\/]* | ?:[\\/]* ) # Absolute path.
24337 ac_srcdir=$srcdir$ac_dir_suffix;
24338 ac_top_srcdir=$srcdir ;;
24339 *) # Relative path.
24340 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24341 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24342esac
24343# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
24344# absolute.
24345ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
24346ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
24347ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
24348ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
24349
24350
24351 cd $ac_dir
24352
24353 # Check for guested configure; otherwise get Cygnus style configure.
24354 if test -f $ac_srcdir/configure.gnu; then
24355 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
24356 elif test -f $ac_srcdir/configure; then
24357 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
24358 elif test -f $ac_srcdir/configure.in; then
24359 ac_sub_configure=$ac_configure
24360 else
24361 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
24362echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
24363 ac_sub_configure=
24364 fi
24365
24366 # The recursion is here.
24367 if test -n "$ac_sub_configure"; then
24368 # Make the cache file name correct relative to the subdirectory.
24369 case $cache_file in
24370 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
24371 *) # Relative path.
24372 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
24373 esac
24374
24375 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
24376echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
24377 # The eval makes quoting arguments work.
24378 eval $ac_sub_configure $ac_sub_configure_args \
24379 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
24380 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
24381echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
24382 { (exit 1); exit 1; }; }
24383 fi
24384
24385 cd $ac_popdir
24386 done
24387fi
24388
Brian Gaekef3b24102003-11-16 18:38:14 +000024389
24390if test $llvmgccwarn = yes
24391then
24392 { echo "$as_me:$LINENO: WARNING: ***** llvm C/C++ front end was not found, or does not" >&5
24393echo "$as_me: WARNING: ***** llvm C/C++ front end was not found, or does not" >&2;}
24394 { echo "$as_me:$LINENO: WARNING: ***** appear to be working." >&5
24395echo "$as_me: WARNING: ***** appear to be working." >&2;}
24396 { echo "$as_me:$LINENO: WARNING: ***** " >&5
24397echo "$as_me: WARNING: ***** " >&2;}
24398 { echo "$as_me:$LINENO: WARNING: ***** Please check configure's --with-llvmgccdir option." >&5
24399echo "$as_me: WARNING: ***** Please check configure's --with-llvmgccdir option." >&2;}
24400 { echo "$as_me:$LINENO: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&5
24401echo "$as_me: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&2;}
24402 { echo "$as_me:$LINENO: WARNING: ***** but you should be able to build the llvm tools." >&5
24403echo "$as_me: WARNING: ***** but you should be able to build the llvm tools." >&2;}
24404fi