blob: 142178948b037d3fb251a13695f892043a001c6c [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 Criswell33a911a2003-11-25 20:36:46 +0000429ac_subdirs_all="$ac_subdirs_all projects/${i}"
John Criswell7a73b802003-06-30 21:59:07 +0000430# Factoring default headers for most tests.
431ac_includes_default="\
432#include <stdio.h>
433#if HAVE_SYS_TYPES_H
434# include <sys/types.h>
435#endif
436#if HAVE_SYS_STAT_H
437# include <sys/stat.h>
438#endif
439#if STDC_HEADERS
440# include <stdlib.h>
441# include <stddef.h>
442#else
443# if HAVE_STDLIB_H
444# include <stdlib.h>
445# endif
446#endif
447#if HAVE_STRING_H
448# if !STDC_HEADERS && HAVE_MEMORY_H
449# include <memory.h>
450# endif
451# include <string.h>
452#endif
453#if HAVE_STRINGS_H
454# include <strings.h>
455#endif
456#if HAVE_INTTYPES_H
457# include <inttypes.h>
458#else
459# if HAVE_STDINT_H
460# include <stdint.h>
461# endif
462#endif
463#if HAVE_UNISTD_H
464# include <unistd.h>
465#endif"
466
467ac_unique_file=""Makefile.config.in""
John Criswell55126592003-10-07 21:57:39 +0000468ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS subdirs INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os OS LLVMGCCDIR ARCH CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT CC CFLAGS ac_ct_CC CPP ifGNUmake LEX LEXLIB LEX_OUTPUT_ROOT YACC 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 +0000469ac_subst_files=''
John Criswell7a73b802003-06-30 21:59:07 +0000470
471# Initialize some variables set by options.
472ac_init_help=
473ac_init_version=false
474# The variables have the same names as the options, with
475# dashes changed to underlines.
476cache_file=/dev/null
477exec_prefix=NONE
478no_create=
479no_recursion=
480prefix=NONE
481program_prefix=NONE
482program_suffix=NONE
483program_transform_name=s,x,x,
484silent=
485site=
486srcdir=
487verbose=
488x_includes=NONE
489x_libraries=NONE
490
491# Installation directory options.
492# These are left unexpanded so users can "make install exec_prefix=/foo"
493# and all the variables that are supposed to be based on exec_prefix
494# by default will actually change.
495# Use braces instead of parens because sh, perl, etc. also accept them.
496bindir='${exec_prefix}/bin'
497sbindir='${exec_prefix}/sbin'
498libexecdir='${exec_prefix}/libexec'
499datadir='${prefix}/share'
500sysconfdir='${prefix}/etc'
501sharedstatedir='${prefix}/com'
502localstatedir='${prefix}/var'
503libdir='${exec_prefix}/lib'
504includedir='${prefix}/include'
505oldincludedir='/usr/include'
506infodir='${prefix}/info'
507mandir='${prefix}/man'
508
509ac_prev=
510for ac_option
511do
512 # If the previous option needs an argument, assign it.
513 if test -n "$ac_prev"; then
514 eval "$ac_prev=\$ac_option"
515 ac_prev=
516 continue
517 fi
518
519 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
520
521 # Accept the important Cygnus configure options, so we can diagnose typos.
522
523 case $ac_option in
524
525 -bindir | --bindir | --bindi | --bind | --bin | --bi)
526 ac_prev=bindir ;;
527 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
528 bindir=$ac_optarg ;;
529
530 -build | --build | --buil | --bui | --bu)
531 ac_prev=build_alias ;;
532 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
533 build_alias=$ac_optarg ;;
534
535 -cache-file | --cache-file | --cache-fil | --cache-fi \
536 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
537 ac_prev=cache_file ;;
538 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
539 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
540 cache_file=$ac_optarg ;;
541
542 --config-cache | -C)
543 cache_file=config.cache ;;
544
545 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
546 ac_prev=datadir ;;
547 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
548 | --da=*)
549 datadir=$ac_optarg ;;
550
551 -disable-* | --disable-*)
552 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
553 # Reject names that are not valid shell variable names.
554 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
555 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
556 { (exit 1); exit 1; }; }
557 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
558 eval "enable_$ac_feature=no" ;;
559
560 -enable-* | --enable-*)
561 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
562 # Reject names that are not valid shell variable names.
563 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
564 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
565 { (exit 1); exit 1; }; }
566 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
567 case $ac_option in
568 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
569 *) ac_optarg=yes ;;
570 esac
571 eval "enable_$ac_feature='$ac_optarg'" ;;
572
573 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
574 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
575 | --exec | --exe | --ex)
576 ac_prev=exec_prefix ;;
577 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
578 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
579 | --exec=* | --exe=* | --ex=*)
580 exec_prefix=$ac_optarg ;;
581
582 -gas | --gas | --ga | --g)
583 # Obsolete; use --with-gas.
584 with_gas=yes ;;
585
586 -help | --help | --hel | --he | -h)
587 ac_init_help=long ;;
588 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
589 ac_init_help=recursive ;;
590 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
591 ac_init_help=short ;;
592
593 -host | --host | --hos | --ho)
594 ac_prev=host_alias ;;
595 -host=* | --host=* | --hos=* | --ho=*)
596 host_alias=$ac_optarg ;;
597
598 -includedir | --includedir | --includedi | --included | --include \
599 | --includ | --inclu | --incl | --inc)
600 ac_prev=includedir ;;
601 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
602 | --includ=* | --inclu=* | --incl=* | --inc=*)
603 includedir=$ac_optarg ;;
604
605 -infodir | --infodir | --infodi | --infod | --info | --inf)
606 ac_prev=infodir ;;
607 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
608 infodir=$ac_optarg ;;
609
610 -libdir | --libdir | --libdi | --libd)
611 ac_prev=libdir ;;
612 -libdir=* | --libdir=* | --libdi=* | --libd=*)
613 libdir=$ac_optarg ;;
614
615 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
616 | --libexe | --libex | --libe)
617 ac_prev=libexecdir ;;
618 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
619 | --libexe=* | --libex=* | --libe=*)
620 libexecdir=$ac_optarg ;;
621
622 -localstatedir | --localstatedir | --localstatedi | --localstated \
623 | --localstate | --localstat | --localsta | --localst \
624 | --locals | --local | --loca | --loc | --lo)
625 ac_prev=localstatedir ;;
626 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
627 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
628 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
629 localstatedir=$ac_optarg ;;
630
631 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
632 ac_prev=mandir ;;
633 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
634 mandir=$ac_optarg ;;
635
636 -nfp | --nfp | --nf)
637 # Obsolete; use --without-fp.
638 with_fp=no ;;
639
640 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
641 | --no-cr | --no-c | -n)
642 no_create=yes ;;
643
644 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
645 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
646 no_recursion=yes ;;
647
648 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
649 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
650 | --oldin | --oldi | --old | --ol | --o)
651 ac_prev=oldincludedir ;;
652 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
653 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
654 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
655 oldincludedir=$ac_optarg ;;
656
657 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
658 ac_prev=prefix ;;
659 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
660 prefix=$ac_optarg ;;
661
662 -program-prefix | --program-prefix | --program-prefi | --program-pref \
663 | --program-pre | --program-pr | --program-p)
664 ac_prev=program_prefix ;;
665 -program-prefix=* | --program-prefix=* | --program-prefi=* \
666 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
667 program_prefix=$ac_optarg ;;
668
669 -program-suffix | --program-suffix | --program-suffi | --program-suff \
670 | --program-suf | --program-su | --program-s)
671 ac_prev=program_suffix ;;
672 -program-suffix=* | --program-suffix=* | --program-suffi=* \
673 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
674 program_suffix=$ac_optarg ;;
675
676 -program-transform-name | --program-transform-name \
677 | --program-transform-nam | --program-transform-na \
678 | --program-transform-n | --program-transform- \
679 | --program-transform | --program-transfor \
680 | --program-transfo | --program-transf \
681 | --program-trans | --program-tran \
682 | --progr-tra | --program-tr | --program-t)
683 ac_prev=program_transform_name ;;
684 -program-transform-name=* | --program-transform-name=* \
685 | --program-transform-nam=* | --program-transform-na=* \
686 | --program-transform-n=* | --program-transform-=* \
687 | --program-transform=* | --program-transfor=* \
688 | --program-transfo=* | --program-transf=* \
689 | --program-trans=* | --program-tran=* \
690 | --progr-tra=* | --program-tr=* | --program-t=*)
691 program_transform_name=$ac_optarg ;;
692
693 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
694 | -silent | --silent | --silen | --sile | --sil)
695 silent=yes ;;
696
697 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
698 ac_prev=sbindir ;;
699 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
700 | --sbi=* | --sb=*)
701 sbindir=$ac_optarg ;;
702
703 -sharedstatedir | --sharedstatedir | --sharedstatedi \
704 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
705 | --sharedst | --shareds | --shared | --share | --shar \
706 | --sha | --sh)
707 ac_prev=sharedstatedir ;;
708 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
709 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
710 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
711 | --sha=* | --sh=*)
712 sharedstatedir=$ac_optarg ;;
713
714 -site | --site | --sit)
715 ac_prev=site ;;
716 -site=* | --site=* | --sit=*)
717 site=$ac_optarg ;;
718
719 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
720 ac_prev=srcdir ;;
721 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
722 srcdir=$ac_optarg ;;
723
724 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
725 | --syscon | --sysco | --sysc | --sys | --sy)
726 ac_prev=sysconfdir ;;
727 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
728 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
729 sysconfdir=$ac_optarg ;;
730
731 -target | --target | --targe | --targ | --tar | --ta | --t)
732 ac_prev=target_alias ;;
733 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
734 target_alias=$ac_optarg ;;
735
736 -v | -verbose | --verbose | --verbos | --verbo | --verb)
737 verbose=yes ;;
738
739 -version | --version | --versio | --versi | --vers | -V)
740 ac_init_version=: ;;
741
742 -with-* | --with-*)
743 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
744 # Reject names that are not valid shell variable names.
745 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
746 { echo "$as_me: error: invalid package name: $ac_package" >&2
747 { (exit 1); exit 1; }; }
748 ac_package=`echo $ac_package| sed 's/-/_/g'`
749 case $ac_option in
750 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
751 *) ac_optarg=yes ;;
752 esac
753 eval "with_$ac_package='$ac_optarg'" ;;
754
755 -without-* | --without-*)
756 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
757 # Reject names that are not valid shell variable names.
758 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
759 { echo "$as_me: error: invalid package name: $ac_package" >&2
760 { (exit 1); exit 1; }; }
761 ac_package=`echo $ac_package | sed 's/-/_/g'`
762 eval "with_$ac_package=no" ;;
763
764 --x)
765 # Obsolete; use --with-x.
766 with_x=yes ;;
767
768 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
769 | --x-incl | --x-inc | --x-in | --x-i)
770 ac_prev=x_includes ;;
771 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
772 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
773 x_includes=$ac_optarg ;;
774
775 -x-libraries | --x-libraries | --x-librarie | --x-librari \
776 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
777 ac_prev=x_libraries ;;
778 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
779 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
780 x_libraries=$ac_optarg ;;
781
782 -*) { echo "$as_me: error: unrecognized option: $ac_option
783Try \`$0 --help' for more information." >&2
784 { (exit 1); exit 1; }; }
785 ;;
786
787 *=*)
788 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
789 # Reject names that are not valid shell variable names.
790 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
791 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
792 { (exit 1); exit 1; }; }
793 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
794 eval "$ac_envvar='$ac_optarg'"
795 export $ac_envvar ;;
796
797 *)
798 # FIXME: should be removed in autoconf 3.0.
799 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
800 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
801 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
802 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
803 ;;
804
805 esac
806done
807
808if test -n "$ac_prev"; then
809 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
810 { echo "$as_me: error: missing argument to $ac_option" >&2
811 { (exit 1); exit 1; }; }
812fi
813
814# Be sure to have absolute paths.
815for ac_var in exec_prefix prefix
816do
817 eval ac_val=$`echo $ac_var`
818 case $ac_val in
819 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
820 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
821 { (exit 1); exit 1; }; };;
822 esac
823done
824
825# Be sure to have absolute paths.
826for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
827 localstatedir libdir includedir oldincludedir infodir mandir
828do
829 eval ac_val=$`echo $ac_var`
830 case $ac_val in
831 [\\/$]* | ?:[\\/]* ) ;;
832 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
833 { (exit 1); exit 1; }; };;
834 esac
835done
836
837# There might be people who depend on the old broken behavior: `$host'
838# used to hold the argument of --host etc.
839# FIXME: To remove some day.
840build=$build_alias
841host=$host_alias
842target=$target_alias
843
844# FIXME: To remove some day.
845if test "x$host_alias" != x; then
846 if test "x$build_alias" = x; then
847 cross_compiling=maybe
848 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
849 If a cross compiler is detected then cross compile mode will be used." >&2
850 elif test "x$build_alias" != "x$host_alias"; then
851 cross_compiling=yes
852 fi
853fi
854
855ac_tool_prefix=
856test -n "$host_alias" && ac_tool_prefix=$host_alias-
857
858test "$silent" = yes && exec 6>/dev/null
859
860
861# Find the source files, if location was not specified.
862if test -z "$srcdir"; then
863 ac_srcdir_defaulted=yes
864 # Try the directory containing this script, then its parent.
865 ac_confdir=`(dirname "$0") 2>/dev/null ||
866$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
867 X"$0" : 'X\(//\)[^/]' \| \
868 X"$0" : 'X\(//\)$' \| \
869 X"$0" : 'X\(/\)' \| \
870 . : '\(.\)' 2>/dev/null ||
871echo X"$0" |
872 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
873 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
874 /^X\(\/\/\)$/{ s//\1/; q; }
875 /^X\(\/\).*/{ s//\1/; q; }
876 s/.*/./; q'`
877 srcdir=$ac_confdir
878 if test ! -r $srcdir/$ac_unique_file; then
879 srcdir=..
880 fi
881else
882 ac_srcdir_defaulted=no
883fi
884if test ! -r $srcdir/$ac_unique_file; then
885 if test "$ac_srcdir_defaulted" = yes; then
886 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
887 { (exit 1); exit 1; }; }
888 else
889 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
890 { (exit 1); exit 1; }; }
891 fi
892fi
John Criswell0c38eaf2003-09-10 15:17:25 +0000893(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
894 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
895 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +0000896srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
897ac_env_build_alias_set=${build_alias+set}
898ac_env_build_alias_value=$build_alias
899ac_cv_env_build_alias_set=${build_alias+set}
900ac_cv_env_build_alias_value=$build_alias
901ac_env_host_alias_set=${host_alias+set}
902ac_env_host_alias_value=$host_alias
903ac_cv_env_host_alias_set=${host_alias+set}
904ac_cv_env_host_alias_value=$host_alias
905ac_env_target_alias_set=${target_alias+set}
906ac_env_target_alias_value=$target_alias
907ac_cv_env_target_alias_set=${target_alias+set}
908ac_cv_env_target_alias_value=$target_alias
909ac_env_CXX_set=${CXX+set}
910ac_env_CXX_value=$CXX
911ac_cv_env_CXX_set=${CXX+set}
912ac_cv_env_CXX_value=$CXX
913ac_env_CXXFLAGS_set=${CXXFLAGS+set}
914ac_env_CXXFLAGS_value=$CXXFLAGS
915ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
916ac_cv_env_CXXFLAGS_value=$CXXFLAGS
917ac_env_LDFLAGS_set=${LDFLAGS+set}
918ac_env_LDFLAGS_value=$LDFLAGS
919ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
920ac_cv_env_LDFLAGS_value=$LDFLAGS
921ac_env_CPPFLAGS_set=${CPPFLAGS+set}
922ac_env_CPPFLAGS_value=$CPPFLAGS
923ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
924ac_cv_env_CPPFLAGS_value=$CPPFLAGS
925ac_env_CC_set=${CC+set}
926ac_env_CC_value=$CC
927ac_cv_env_CC_set=${CC+set}
928ac_cv_env_CC_value=$CC
929ac_env_CFLAGS_set=${CFLAGS+set}
930ac_env_CFLAGS_value=$CFLAGS
931ac_cv_env_CFLAGS_set=${CFLAGS+set}
932ac_cv_env_CFLAGS_value=$CFLAGS
933ac_env_CPP_set=${CPP+set}
934ac_env_CPP_value=$CPP
935ac_cv_env_CPP_set=${CPP+set}
936ac_cv_env_CPP_value=$CPP
John Criswell47fdd832003-07-14 16:52:07 +0000937ac_env_CXXCPP_set=${CXXCPP+set}
938ac_env_CXXCPP_value=$CXXCPP
939ac_cv_env_CXXCPP_set=${CXXCPP+set}
940ac_cv_env_CXXCPP_value=$CXXCPP
941ac_env_F77_set=${F77+set}
942ac_env_F77_value=$F77
943ac_cv_env_F77_set=${F77+set}
944ac_cv_env_F77_value=$F77
945ac_env_FFLAGS_set=${FFLAGS+set}
946ac_env_FFLAGS_value=$FFLAGS
947ac_cv_env_FFLAGS_set=${FFLAGS+set}
948ac_cv_env_FFLAGS_value=$FFLAGS
John Criswell7a73b802003-06-30 21:59:07 +0000949
950#
951# Report the --help message.
952#
953if test "$ac_init_help" = "long"; then
954 # Omit some internal or obsolete options to make the list less imposing.
955 # This message is too long to be a string in the A/UX 3.1 sh.
956 cat <<_ACEOF
957\`configure' configures [LLVM] [1.0] to adapt to many kinds of systems.
958
959Usage: $0 [OPTION]... [VAR=VALUE]...
960
961To assign environment variables (e.g., CC, CFLAGS...), specify them as
962VAR=VALUE. See below for descriptions of some of the useful variables.
963
964Defaults for the options are specified in brackets.
965
966Configuration:
967 -h, --help display this help and exit
968 --help=short display options specific to this package
969 --help=recursive display the short help of all the included packages
970 -V, --version display version information and exit
971 -q, --quiet, --silent do not print \`checking...' messages
972 --cache-file=FILE cache test results in FILE [disabled]
973 -C, --config-cache alias for \`--cache-file=config.cache'
974 -n, --no-create do not create output files
975 --srcdir=DIR find the sources in DIR [configure dir or \`..']
976
977_ACEOF
978
979 cat <<_ACEOF
980Installation directories:
981 --prefix=PREFIX install architecture-independent files in PREFIX
982 [$ac_default_prefix]
983 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
984 [PREFIX]
985
986By default, \`make install' will install all the files in
987\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
988an installation prefix other than \`$ac_default_prefix' using \`--prefix',
989for instance \`--prefix=\$HOME'.
990
991For better control, use the options below.
992
993Fine tuning of the installation directories:
994 --bindir=DIR user executables [EPREFIX/bin]
995 --sbindir=DIR system admin executables [EPREFIX/sbin]
996 --libexecdir=DIR program executables [EPREFIX/libexec]
997 --datadir=DIR read-only architecture-independent data [PREFIX/share]
998 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
999 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1000 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1001 --libdir=DIR object code libraries [EPREFIX/lib]
1002 --includedir=DIR C header files [PREFIX/include]
1003 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1004 --infodir=DIR info documentation [PREFIX/info]
1005 --mandir=DIR man documentation [PREFIX/man]
1006_ACEOF
1007
1008 cat <<\_ACEOF
1009
1010System types:
1011 --build=BUILD configure for building on BUILD [guessed]
1012 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1013 --target=TARGET configure for building compilers for TARGET [HOST]
1014_ACEOF
1015fi
1016
1017if test -n "$ac_init_help"; then
1018 case $ac_init_help in
1019 short | recursive ) echo "Configuration of [LLVM] [1.0]:";;
1020 esac
1021 cat <<\_ACEOF
1022
1023Optional Features:
1024 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1025 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
John Criswell47fdd832003-07-14 16:52:07 +00001026 --enable-shared[=PKGS]
1027 build shared libraries [default=yes]
1028 --enable-static[=PKGS]
1029 build static libraries [default=yes]
1030 --enable-fast-install[=PKGS]
1031 optimize for fast installation [default=yes]
John Criswell7a73b802003-06-30 21:59:07 +00001032 --disable-libtool-lock avoid locking (might break parallel builds)
1033 --enable-purify Compile with purify (default is NO)
John Criswell7a73b802003-06-30 21:59:07 +00001034 --enable-optimized Compile with optimizations enabled (default is NO)
John Criswell55126592003-10-07 21:57:39 +00001035 --enable-spec Compile SPEC 2000 benchmarks (default is NO)
John Criswell7a73b802003-06-30 21:59:07 +00001036 --enable-precompiled_bytecode
1037 Use pre-compiled bytecode (default is NO)
John Criswellf02dbf02003-07-22 20:07:49 +00001038 --enable-llc_diffs Enable LLC Diffs when testing (default is YES)
John Criswellc78022e2003-07-29 19:11:58 +00001039 --enable-jit Enable Just In Time Compiling (default is YES)
John Criswell7a73b802003-06-30 21:59:07 +00001040
1041Optional Packages:
1042 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1043 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
John Criswell47fdd832003-07-14 16:52:07 +00001044 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1045 --with-pic try to use only PIC/non-PIC objects [default=use
1046 both]
1047 --with-tags[=TAGS]
1048 include additional configurations [automatic]
John Criswell7a73b802003-06-30 21:59:07 +00001049 --with-llvmgccdir Location of LLVM GCC front-end
1050 --with-bcrepos Location of Bytecode Repository
1051 --with-papi Location of PAPI
John Criswellc78022e2003-07-29 19:11:58 +00001052 --with-purify Location of purify program
John Criswell7a73b802003-06-30 21:59:07 +00001053
1054Some influential environment variables:
1055 CXX C++ compiler command
1056 CXXFLAGS C++ compiler flags
1057 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1058 nonstandard directory <lib dir>
1059 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1060 headers in a nonstandard directory <include dir>
1061 CC C compiler command
1062 CFLAGS C compiler flags
1063 CPP C preprocessor
John Criswell47fdd832003-07-14 16:52:07 +00001064 CXXCPP C++ preprocessor
1065 F77 Fortran 77 compiler command
1066 FFLAGS Fortran 77 compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001067
1068Use these variables to override the choices made by `configure' or to help
1069it to find libraries and programs with nonstandard names/locations.
1070
1071Report bugs to <llvmbugs@cs.uiuc.edu>.
1072_ACEOF
1073fi
1074
1075if test "$ac_init_help" = "recursive"; then
1076 # If there are subdirs, report their specific --help.
1077 ac_popdir=`pwd`
1078 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1079 test -d $ac_dir || continue
1080 ac_builddir=.
1081
1082if test "$ac_dir" != .; then
1083 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1084 # A "../" for each directory in $ac_dir_suffix.
1085 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1086else
1087 ac_dir_suffix= ac_top_builddir=
1088fi
1089
1090case $srcdir in
1091 .) # No --srcdir option. We are building in place.
1092 ac_srcdir=.
1093 if test -z "$ac_top_builddir"; then
1094 ac_top_srcdir=.
1095 else
1096 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1097 fi ;;
1098 [\\/]* | ?:[\\/]* ) # Absolute path.
1099 ac_srcdir=$srcdir$ac_dir_suffix;
1100 ac_top_srcdir=$srcdir ;;
1101 *) # Relative path.
1102 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1103 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1104esac
1105# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1106# absolute.
1107ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
John Criswell0c38eaf2003-09-10 15:17:25 +00001108ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
John Criswell7a73b802003-06-30 21:59:07 +00001109ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1110ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1111
1112 cd $ac_dir
1113 # Check for guested configure; otherwise get Cygnus style configure.
1114 if test -f $ac_srcdir/configure.gnu; then
1115 echo
1116 $SHELL $ac_srcdir/configure.gnu --help=recursive
1117 elif test -f $ac_srcdir/configure; then
1118 echo
1119 $SHELL $ac_srcdir/configure --help=recursive
1120 elif test -f $ac_srcdir/configure.ac ||
1121 test -f $ac_srcdir/configure.in; then
1122 echo
1123 $ac_configure --help
1124 else
1125 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1126 fi
1127 cd $ac_popdir
1128 done
1129fi
1130
1131test -n "$ac_init_help" && exit 0
1132if $ac_init_version; then
1133 cat <<\_ACEOF
1134[LLVM] configure [1.0]
John Criswell0c38eaf2003-09-10 15:17:25 +00001135generated by GNU Autoconf 2.57
John Criswell7a73b802003-06-30 21:59:07 +00001136
1137Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1138Free Software Foundation, Inc.
1139This configure script is free software; the Free Software Foundation
1140gives unlimited permission to copy, distribute and modify it.
1141_ACEOF
1142 exit 0
1143fi
1144exec 5>config.log
1145cat >&5 <<_ACEOF
1146This file contains any messages produced by compilers while
1147running configure, to aid debugging if configure makes a mistake.
1148
1149It was created by [LLVM] $as_me [1.0], which was
John Criswell0c38eaf2003-09-10 15:17:25 +00001150generated by GNU Autoconf 2.57. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001151
1152 $ $0 $@
1153
1154_ACEOF
1155{
1156cat <<_ASUNAME
1157## --------- ##
1158## Platform. ##
1159## --------- ##
1160
1161hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1162uname -m = `(uname -m) 2>/dev/null || echo unknown`
1163uname -r = `(uname -r) 2>/dev/null || echo unknown`
1164uname -s = `(uname -s) 2>/dev/null || echo unknown`
1165uname -v = `(uname -v) 2>/dev/null || echo unknown`
1166
1167/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1168/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1169
1170/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1171/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1172/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1173hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1174/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1175/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1176/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1177
1178_ASUNAME
1179
1180as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1181for as_dir in $PATH
1182do
1183 IFS=$as_save_IFS
1184 test -z "$as_dir" && as_dir=.
1185 echo "PATH: $as_dir"
1186done
1187
1188} >&5
1189
1190cat >&5 <<_ACEOF
1191
1192
1193## ----------- ##
1194## Core tests. ##
1195## ----------- ##
1196
1197_ACEOF
1198
1199
1200# Keep a trace of the command line.
1201# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001202# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001203# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001204# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001205ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001206ac_configure_args0=
1207ac_configure_args1=
John Criswell7a73b802003-06-30 21:59:07 +00001208ac_sep=
John Criswell0c38eaf2003-09-10 15:17:25 +00001209ac_must_keep_next=false
1210for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001211do
John Criswell0c38eaf2003-09-10 15:17:25 +00001212 for ac_arg
1213 do
1214 case $ac_arg in
1215 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1216 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1217 | -silent | --silent | --silen | --sile | --sil)
1218 continue ;;
1219 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1220 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1221 esac
1222 case $ac_pass in
1223 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1224 2)
1225 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1226 if test $ac_must_keep_next = true; then
1227 ac_must_keep_next=false # Got value, back to normal.
1228 else
1229 case $ac_arg in
1230 *=* | --config-cache | -C | -disable-* | --disable-* \
1231 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1232 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1233 | -with-* | --with-* | -without-* | --without-* | --x)
1234 case "$ac_configure_args0 " in
1235 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1236 esac
1237 ;;
1238 -* ) ac_must_keep_next=true ;;
1239 esac
1240 fi
1241 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1242 # Get rid of the leading space.
1243 ac_sep=" "
1244 ;;
1245 esac
1246 done
John Criswell7a73b802003-06-30 21:59:07 +00001247done
John Criswell0c38eaf2003-09-10 15:17:25 +00001248$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1249$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
John Criswell7a73b802003-06-30 21:59:07 +00001250
1251# When interrupted or exit'd, cleanup temporary files, and complete
1252# config.log. We remove comments because anyway the quotes in there
1253# would cause problems or look ugly.
1254# WARNING: Be sure not to use single quotes in there, as some shells,
1255# such as our DU 5.0 friend, will then `close' the trap.
1256trap 'exit_status=$?
1257 # Save into config.log some information that might help in debugging.
1258 {
1259 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001260
John Criswell7a73b802003-06-30 21:59:07 +00001261 cat <<\_ASBOX
1262## ---------------- ##
1263## Cache variables. ##
1264## ---------------- ##
1265_ASBOX
1266 echo
1267 # The following way of writing the cache mishandles newlines in values,
1268{
1269 (set) 2>&1 |
1270 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1271 *ac_space=\ *)
1272 sed -n \
1273 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1274 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1275 ;;
1276 *)
1277 sed -n \
1278 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1279 ;;
1280 esac;
1281}
1282 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001283
1284 cat <<\_ASBOX
1285## ----------------- ##
1286## Output variables. ##
1287## ----------------- ##
1288_ASBOX
1289 echo
1290 for ac_var in $ac_subst_vars
1291 do
1292 eval ac_val=$`echo $ac_var`
1293 echo "$ac_var='"'"'$ac_val'"'"'"
1294 done | sort
1295 echo
1296
1297 if test -n "$ac_subst_files"; then
1298 cat <<\_ASBOX
1299## ------------- ##
1300## Output files. ##
1301## ------------- ##
1302_ASBOX
1303 echo
1304 for ac_var in $ac_subst_files
1305 do
1306 eval ac_val=$`echo $ac_var`
1307 echo "$ac_var='"'"'$ac_val'"'"'"
1308 done | sort
1309 echo
1310 fi
1311
John Criswell7a73b802003-06-30 21:59:07 +00001312 if test -s confdefs.h; then
1313 cat <<\_ASBOX
1314## ----------- ##
1315## confdefs.h. ##
1316## ----------- ##
1317_ASBOX
1318 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001319 sed "/^$/d" confdefs.h | sort
John Criswell7a73b802003-06-30 21:59:07 +00001320 echo
1321 fi
1322 test "$ac_signal" != 0 &&
1323 echo "$as_me: caught signal $ac_signal"
1324 echo "$as_me: exit $exit_status"
1325 } >&5
1326 rm -f core core.* *.core &&
1327 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1328 exit $exit_status
1329 ' 0
1330for ac_signal in 1 2 13 15; do
1331 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1332done
1333ac_signal=0
1334
1335# confdefs.h avoids OS command line length limits that DEFS can exceed.
1336rm -rf conftest* confdefs.h
1337# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1338echo >confdefs.h
1339
1340# Predefined preprocessor variables.
1341
1342cat >>confdefs.h <<_ACEOF
1343#define PACKAGE_NAME "$PACKAGE_NAME"
1344_ACEOF
1345
1346
1347cat >>confdefs.h <<_ACEOF
1348#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1349_ACEOF
1350
1351
1352cat >>confdefs.h <<_ACEOF
1353#define PACKAGE_VERSION "$PACKAGE_VERSION"
1354_ACEOF
1355
1356
1357cat >>confdefs.h <<_ACEOF
1358#define PACKAGE_STRING "$PACKAGE_STRING"
1359_ACEOF
1360
1361
1362cat >>confdefs.h <<_ACEOF
1363#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1364_ACEOF
1365
1366
1367# Let the site file select an alternate cache file if it wants to.
1368# Prefer explicitly selected file to automatically selected ones.
1369if test -z "$CONFIG_SITE"; then
1370 if test "x$prefix" != xNONE; then
1371 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1372 else
1373 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1374 fi
1375fi
1376for ac_site_file in $CONFIG_SITE; do
1377 if test -r "$ac_site_file"; then
1378 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1379echo "$as_me: loading site script $ac_site_file" >&6;}
1380 sed 's/^/| /' "$ac_site_file" >&5
1381 . "$ac_site_file"
1382 fi
1383done
1384
1385if test -r "$cache_file"; then
1386 # Some versions of bash will fail to source /dev/null (special
1387 # files actually), so we avoid doing that.
1388 if test -f "$cache_file"; then
1389 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1390echo "$as_me: loading cache $cache_file" >&6;}
1391 case $cache_file in
1392 [\\/]* | ?:[\\/]* ) . $cache_file;;
1393 *) . ./$cache_file;;
1394 esac
1395 fi
1396else
1397 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1398echo "$as_me: creating cache $cache_file" >&6;}
1399 >$cache_file
1400fi
1401
1402# Check that the precious variables saved in the cache have kept the same
1403# value.
1404ac_cache_corrupted=false
1405for ac_var in `(set) 2>&1 |
1406 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1407 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1408 eval ac_new_set=\$ac_env_${ac_var}_set
1409 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1410 eval ac_new_val="\$ac_env_${ac_var}_value"
1411 case $ac_old_set,$ac_new_set in
1412 set,)
1413 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1414echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1415 ac_cache_corrupted=: ;;
1416 ,set)
1417 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1418echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1419 ac_cache_corrupted=: ;;
1420 ,);;
1421 *)
1422 if test "x$ac_old_val" != "x$ac_new_val"; then
1423 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1424echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1425 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1426echo "$as_me: former value: $ac_old_val" >&2;}
1427 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1428echo "$as_me: current value: $ac_new_val" >&2;}
1429 ac_cache_corrupted=:
1430 fi;;
1431 esac
1432 # Pass precious variables to config.status.
1433 if test "$ac_new_set" = set; then
1434 case $ac_new_val in
1435 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1436 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1437 *) ac_arg=$ac_var=$ac_new_val ;;
1438 esac
1439 case " $ac_configure_args " in
1440 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1441 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1442 esac
1443 fi
1444done
1445if $ac_cache_corrupted; then
1446 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1447echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1448 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1449echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1450 { (exit 1); exit 1; }; }
1451fi
1452
1453ac_ext=c
1454ac_cpp='$CPP $CPPFLAGS'
1455ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1456ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1457ac_compiler_gnu=$ac_cv_c_compiler_gnu
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
John Criswell0c38eaf2003-09-10 15:17:25 +00001485
John Criswell7a73b802003-06-30 21:59:07 +00001486ac_aux_dir=
John Criswell392aaa32003-07-22 19:18:09 +00001487for ac_dir in autoconf $srcdir/autoconf; do
John Criswell7a73b802003-06-30 21:59:07 +00001488 if test -f $ac_dir/install-sh; then
1489 ac_aux_dir=$ac_dir
1490 ac_install_sh="$ac_aux_dir/install-sh -c"
1491 break
1492 elif test -f $ac_dir/install.sh; then
1493 ac_aux_dir=$ac_dir
1494 ac_install_sh="$ac_aux_dir/install.sh -c"
1495 break
1496 elif test -f $ac_dir/shtool; then
1497 ac_aux_dir=$ac_dir
1498 ac_install_sh="$ac_aux_dir/shtool install -c"
1499 break
1500 fi
1501done
1502if test -z "$ac_aux_dir"; then
John Criswell392aaa32003-07-22 19:18:09 +00001503 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1504echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001505 { (exit 1); exit 1; }; }
1506fi
1507ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1508ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1509ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1510
John Criswell392aaa32003-07-22 19:18:09 +00001511
John Criswell1b824322003-09-15 17:19:42 +00001512if test ${srcdir} != "."
John Criswell93e1c722003-09-15 17:04:06 +00001513then
John Criswell1b824322003-09-15 17:19:42 +00001514 if test -f ${srcdir}/include/Config/config.h
1515 then
1516 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
John Criswell93e1c722003-09-15 17:04:06 +00001517echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1518 { (exit 1); exit 1; }; }
John Criswell1b824322003-09-15 17:19:42 +00001519 fi
John Criswell93e1c722003-09-15 17:04:06 +00001520fi
1521
John Criswell33a911a2003-11-25 20:36:46 +00001522for i in `ls ${srcdir}/projects`
1523do
1524 if test ${i} != "CVS"
1525 then
1526 if test -d ${srcdir}/projects/${i}
1527 then
John Criswell7ec78aa2003-10-16 01:49:00 +00001528
1529
John Criswell33a911a2003-11-25 20:36:46 +00001530subdirs="$subdirs projects/${i}"
John Criswell7ec78aa2003-10-16 01:49:00 +00001531
John Criswell33a911a2003-11-25 20:36:46 +00001532 fi
1533 fi
1534done
John Criswell559a6c12003-09-30 16:31:48 +00001535
John Criswell0c38eaf2003-09-10 15:17:25 +00001536 ac_config_headers="$ac_config_headers include/Config/config.h"
John Criswell392aaa32003-07-22 19:18:09 +00001537
John Criswell0c38eaf2003-09-10 15:17:25 +00001538 ac_config_commands="$ac_config_commands Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001539
1540
John Criswell0c38eaf2003-09-10 15:17:25 +00001541 ac_config_commands="$ac_config_commands Makefile.common"
John Criswellc764fbc2003-09-06 15:17:13 +00001542
1543
John Criswell0c38eaf2003-09-10 15:17:25 +00001544 ac_config_commands="$ac_config_commands lib/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001545
1546
John Criswell0c38eaf2003-09-10 15:17:25 +00001547 ac_config_commands="$ac_config_commands runtime/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001548
1549
John Criswell0c38eaf2003-09-10 15:17:25 +00001550 ac_config_commands="$ac_config_commands test/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001551
1552
John Criswell0c38eaf2003-09-10 15:17:25 +00001553 ac_config_commands="$ac_config_commands test/Makefile.tests"
John Criswellc764fbc2003-09-06 15:17:13 +00001554
1555
John Criswellf424d742003-10-07 21:13:47 +00001556 ac_config_commands="$ac_config_commands test/QMTest/llvm.py"
1557
1558
1559 ac_config_commands="$ac_config_commands test/QMTest/llvmdb.py"
John Criswell08acb9b2003-09-16 02:12:45 +00001560
1561
John Criswell0c38eaf2003-09-10 15:17:25 +00001562 ac_config_commands="$ac_config_commands test/Programs/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001563
1564
John Criswell0c38eaf2003-09-10 15:17:25 +00001565 ac_config_commands="$ac_config_commands test/Programs/Makefile.programs"
John Criswellc764fbc2003-09-06 15:17:13 +00001566
1567
John Criswell0c38eaf2003-09-10 15:17:25 +00001568 ac_config_commands="$ac_config_commands test/Programs/TEST.aa.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001569
1570
John Criswell0c38eaf2003-09-10 15:17:25 +00001571 ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.report"
John Criswellc764fbc2003-09-06 15:17:13 +00001572
1573
John Criswell0c38eaf2003-09-10 15:17:25 +00001574 ac_config_commands="$ac_config_commands test/Programs/TEST.micro.report"
John Criswellc764fbc2003-09-06 15:17:13 +00001575
1576
John Criswell0c38eaf2003-09-10 15:17:25 +00001577 ac_config_commands="$ac_config_commands test/Programs/TEST.aa.report"
John Criswellc764fbc2003-09-06 15:17:13 +00001578
1579
John Criswell0c38eaf2003-09-10 15:17:25 +00001580 ac_config_commands="$ac_config_commands test/Programs/TEST.example.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001581
1582
John Criswell0c38eaf2003-09-10 15:17:25 +00001583 ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001584
1585
John Criswell0c38eaf2003-09-10 15:17:25 +00001586 ac_config_commands="$ac_config_commands test/Programs/TEST.buildrepo.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001587
1588
John Criswell0c38eaf2003-09-10 15:17:25 +00001589 ac_config_commands="$ac_config_commands test/Programs/TEST.jit.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001590
1591
John Criswell0c38eaf2003-09-10 15:17:25 +00001592 ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.report"
John Criswellc764fbc2003-09-06 15:17:13 +00001593
1594
John Criswell0c38eaf2003-09-10 15:17:25 +00001595 ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001596
1597
John Criswell0c38eaf2003-09-10 15:17:25 +00001598 ac_config_commands="$ac_config_commands test/Programs/TEST.jit.report"
John Criswellc764fbc2003-09-06 15:17:13 +00001599
1600
John Criswell0c38eaf2003-09-10 15:17:25 +00001601 ac_config_commands="$ac_config_commands test/Programs/TEST.typesafe.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001602
1603
John Criswell0c38eaf2003-09-10 15:17:25 +00001604 ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.gnuplot"
John Criswellc764fbc2003-09-06 15:17:13 +00001605
1606
John Criswell0c38eaf2003-09-10 15:17:25 +00001607 ac_config_commands="$ac_config_commands test/Programs/TEST.micro.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001608
1609
John Criswell0c38eaf2003-09-10 15:17:25 +00001610 ac_config_commands="$ac_config_commands test/Programs/External/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001611
1612
John Criswell0c38eaf2003-09-10 15:17:25 +00001613 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001614
1615
John Criswell613758d2003-09-11 18:03:50 +00001616 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile.spec"
1617
1618
John Criswell0c38eaf2003-09-10 15:17:25 +00001619 ac_config_commands="$ac_config_commands test/Programs/MultiSource/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/MultiSource/Makefile.multisrc"
John Criswellc764fbc2003-09-06 15:17:13 +00001623
1624
Misha Brukman811ce9f2003-11-12 22:16:51 +00001625 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in"
1626
1627
1628 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile"
1629
1630
1631 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in"
1632
1633
1634 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile"
1635
1636
1637 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in"
1638
1639
1640 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile"
1641
1642
1643 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in"
1644
1645
1646 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile"
1647
1648
1649 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in"
1650
1651
1652 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile"
1653
1654
1655 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in"
1656
1657
1658 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile"
1659
1660
1661 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in"
1662
1663
John Criswell0c38eaf2003-09-10 15:17:25 +00001664 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001665
1666
John Criswell0c38eaf2003-09-10 15:17:25 +00001667 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile.singlesrc"
John Criswellc764fbc2003-09-06 15:17:13 +00001668
1669
John Criswell0c38eaf2003-09-10 15:17:25 +00001670 ac_config_commands="$ac_config_commands tools/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001671
1672
Brian Gaekec45be042003-10-07 06:01:34 +00001673 ac_config_commands="$ac_config_commands utils/Makefile"
1674
1675
John Criswell0c38eaf2003-09-10 15:17:25 +00001676 ac_config_commands="$ac_config_commands projects/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001677
1678
John Criswell392aaa32003-07-22 19:18:09 +00001679
1680
John Criswell7a73b802003-06-30 21:59:07 +00001681# Find a good install program. We prefer a C program (faster),
1682# so one script is as good as another. But avoid the broken or
1683# incompatible versions:
1684# SysV /etc/install, /usr/sbin/install
1685# SunOS /usr/etc/install
1686# IRIX /sbin/install
1687# AIX /bin/install
1688# AmigaOS /C/install, which installs bootblocks on floppy discs
1689# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1690# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1691# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1692# ./install, which can be erroneously created by make from ./install.sh.
1693echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1694echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1695if test -z "$INSTALL"; then
1696if test "${ac_cv_path_install+set}" = set; then
1697 echo $ECHO_N "(cached) $ECHO_C" >&6
1698else
1699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1700for as_dir in $PATH
1701do
1702 IFS=$as_save_IFS
1703 test -z "$as_dir" && as_dir=.
1704 # Account for people who put trailing slashes in PATH elements.
1705case $as_dir/ in
1706 ./ | .// | /cC/* | \
1707 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1708 /usr/ucb/* ) ;;
1709 *)
1710 # OSF1 and SCO ODT 3.0 have their own names for install.
1711 # Don't use installbsd from OSF since it installs stuff as root
1712 # by default.
1713 for ac_prog in ginstall scoinst install; do
1714 for ac_exec_ext in '' $ac_executable_extensions; do
1715 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1716 if test $ac_prog = install &&
1717 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1718 # AIX install. It has an incompatible calling convention.
1719 :
1720 elif test $ac_prog = install &&
1721 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1722 # program-specific install script used by HP pwplus--don't use.
1723 :
1724 else
1725 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1726 break 3
1727 fi
1728 fi
1729 done
1730 done
1731 ;;
1732esac
1733done
1734
1735
1736fi
1737 if test "${ac_cv_path_install+set}" = set; then
1738 INSTALL=$ac_cv_path_install
1739 else
1740 # As a last resort, use the slow shell script. We don't cache a
1741 # path for INSTALL within a source directory, because that will
1742 # break other packages using the cache if that directory is
1743 # removed, or if the path is relative.
1744 INSTALL=$ac_install_sh
1745 fi
1746fi
1747echo "$as_me:$LINENO: result: $INSTALL" >&5
1748echo "${ECHO_T}$INSTALL" >&6
1749
1750# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1751# It thinks the first close brace ends the variable substitution.
1752test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1753
1754test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1755
1756test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1757
1758
1759# Make sure we can run config.sub.
1760$ac_config_sub sun4 >/dev/null 2>&1 ||
1761 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1762echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1763 { (exit 1); exit 1; }; }
1764
1765echo "$as_me:$LINENO: checking build system type" >&5
1766echo $ECHO_N "checking build system type... $ECHO_C" >&6
1767if test "${ac_cv_build+set}" = set; then
1768 echo $ECHO_N "(cached) $ECHO_C" >&6
1769else
1770 ac_cv_build_alias=$build_alias
1771test -z "$ac_cv_build_alias" &&
1772 ac_cv_build_alias=`$ac_config_guess`
1773test -z "$ac_cv_build_alias" &&
1774 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1775echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1776 { (exit 1); exit 1; }; }
1777ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1778 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1779echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1780 { (exit 1); exit 1; }; }
1781
1782fi
1783echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1784echo "${ECHO_T}$ac_cv_build" >&6
1785build=$ac_cv_build
1786build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1787build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1788build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1789
1790
1791echo "$as_me:$LINENO: checking host system type" >&5
1792echo $ECHO_N "checking host system type... $ECHO_C" >&6
1793if test "${ac_cv_host+set}" = set; then
1794 echo $ECHO_N "(cached) $ECHO_C" >&6
1795else
1796 ac_cv_host_alias=$host_alias
1797test -z "$ac_cv_host_alias" &&
1798 ac_cv_host_alias=$ac_cv_build_alias
1799ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1800 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1801echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1802 { (exit 1); exit 1; }; }
1803
1804fi
1805echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1806echo "${ECHO_T}$ac_cv_host" >&6
1807host=$ac_cv_host
1808host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1809host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1810host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1811
1812
1813echo "$as_me:$LINENO: checking target system type" >&5
1814echo $ECHO_N "checking target system type... $ECHO_C" >&6
1815if test "${ac_cv_target+set}" = set; then
1816 echo $ECHO_N "(cached) $ECHO_C" >&6
1817else
1818 ac_cv_target_alias=$target_alias
1819test "x$ac_cv_target_alias" = "x" &&
1820 ac_cv_target_alias=$ac_cv_host_alias
1821ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1822 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1823echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1824 { (exit 1); exit 1; }; }
1825
1826fi
1827echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1828echo "${ECHO_T}$ac_cv_target" >&6
1829target=$ac_cv_target
1830target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1831target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1832target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1833
1834
1835# The aliases save the names the user supplied, while $host etc.
1836# will get canonicalized.
1837test -n "$target_alias" &&
1838 test "$program_prefix$program_suffix$program_transform_name" = \
1839 NONENONEs,x,x, &&
1840 program_prefix=${target_alias}-
1841
1842case $build in
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001843 *-*-linux*)
1844 OS=Linux
John Criswell7a73b802003-06-30 21:59:07 +00001845
Brian Gaekef3b24102003-11-16 18:38:14 +00001846 if test -d /home/vadve/lattner/local/x86/llvm-gcc
1847 then
1848 LLVMGCCDIR=/home/vadve/lattner/local/x86/llvm-gcc/
John Criswell7a73b802003-06-30 21:59:07 +00001849
Brian Gaekef3b24102003-11-16 18:38:14 +00001850 fi
John Criswell7a73b802003-06-30 21:59:07 +00001851 ;;
1852
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001853 *-*-solaris*)
1854 OS=SunOS
John Criswell7a73b802003-06-30 21:59:07 +00001855
Brian Gaekef3b24102003-11-16 18:38:14 +00001856 if test -d /home/vadve/lattner/local/sparc/llvm-gcc
1857 then
1858 LLVMGCCDIR=/home/vadve/lattner/local/sparc/llvm-gcc/
John Criswell7a73b802003-06-30 21:59:07 +00001859
Brian Gaekef3b24102003-11-16 18:38:14 +00001860 fi
John Criswell7a73b802003-06-30 21:59:07 +00001861 ;;
1862
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001863 *-*-darwin*)
1864 OS=Darwin
1865
1866 ;;
1867
John Criswell7a73b802003-06-30 21:59:07 +00001868 *) OS=Unknown
1869
1870 ;;
1871esac
1872
1873case $target in
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001874 sparc*-*-solaris*) target=sparcv9-sun-solaris2.8
John Criswell7a73b802003-06-30 21:59:07 +00001875
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001876 ;;
John Criswell7a73b802003-06-30 21:59:07 +00001877esac
1878
John Criswell76595452003-07-01 22:07:39 +00001879case $target in
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001880 i*86-*) ARCH=x86
John Criswell76595452003-07-01 22:07:39 +00001881
1882 ;;
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001883 sparc*-*) ARCH=Sparc
1884
1885 ;;
1886 powerpc*-*) ARCH=PowerPC
1887
1888 ;;
1889 *) ARCH=Unknown
John Criswell76595452003-07-01 22:07:39 +00001890
1891 ;;
1892esac
1893
John Criswell7a73b802003-06-30 21:59:07 +00001894
1895ac_ext=cc
1896ac_cpp='$CXXCPP $CPPFLAGS'
1897ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1898ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1899ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1900if test -n "$ac_tool_prefix"; then
1901 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1902 do
1903 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1904set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1905echo "$as_me:$LINENO: checking for $ac_word" >&5
1906echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1907if test "${ac_cv_prog_CXX+set}" = set; then
1908 echo $ECHO_N "(cached) $ECHO_C" >&6
1909else
1910 if test -n "$CXX"; then
1911 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1912else
1913as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1914for as_dir in $PATH
1915do
1916 IFS=$as_save_IFS
1917 test -z "$as_dir" && as_dir=.
1918 for ac_exec_ext in '' $ac_executable_extensions; do
1919 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1920 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1921 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1922 break 2
1923 fi
1924done
1925done
1926
1927fi
1928fi
1929CXX=$ac_cv_prog_CXX
1930if test -n "$CXX"; then
1931 echo "$as_me:$LINENO: result: $CXX" >&5
1932echo "${ECHO_T}$CXX" >&6
1933else
1934 echo "$as_me:$LINENO: result: no" >&5
1935echo "${ECHO_T}no" >&6
1936fi
1937
1938 test -n "$CXX" && break
1939 done
1940fi
1941if test -z "$CXX"; then
1942 ac_ct_CXX=$CXX
1943 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1944do
1945 # Extract the first word of "$ac_prog", so it can be a program name with args.
1946set dummy $ac_prog; ac_word=$2
1947echo "$as_me:$LINENO: checking for $ac_word" >&5
1948echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1949if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1950 echo $ECHO_N "(cached) $ECHO_C" >&6
1951else
1952 if test -n "$ac_ct_CXX"; then
1953 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1954else
1955as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1956for as_dir in $PATH
1957do
1958 IFS=$as_save_IFS
1959 test -z "$as_dir" && as_dir=.
1960 for ac_exec_ext in '' $ac_executable_extensions; do
1961 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1962 ac_cv_prog_ac_ct_CXX="$ac_prog"
1963 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1964 break 2
1965 fi
1966done
1967done
1968
1969fi
1970fi
1971ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
1972if test -n "$ac_ct_CXX"; then
1973 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
1974echo "${ECHO_T}$ac_ct_CXX" >&6
1975else
1976 echo "$as_me:$LINENO: result: no" >&5
1977echo "${ECHO_T}no" >&6
1978fi
1979
1980 test -n "$ac_ct_CXX" && break
1981done
1982test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
1983
1984 CXX=$ac_ct_CXX
1985fi
1986
1987
1988# Provide some information about the compiler.
1989echo "$as_me:$LINENO:" \
1990 "checking for C++ compiler version" >&5
1991ac_compiler=`set X $ac_compile; echo $2`
1992{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1993 (eval $ac_compiler --version </dev/null >&5) 2>&5
1994 ac_status=$?
1995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1996 (exit $ac_status); }
1997{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1998 (eval $ac_compiler -v </dev/null >&5) 2>&5
1999 ac_status=$?
2000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2001 (exit $ac_status); }
2002{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2003 (eval $ac_compiler -V </dev/null >&5) 2>&5
2004 ac_status=$?
2005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006 (exit $ac_status); }
2007
2008cat >conftest.$ac_ext <<_ACEOF
2009#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002010/* confdefs.h. */
2011_ACEOF
2012cat confdefs.h >>conftest.$ac_ext
2013cat >>conftest.$ac_ext <<_ACEOF
2014/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002015
John Criswell7a73b802003-06-30 21:59:07 +00002016int
2017main ()
2018{
2019
2020 ;
2021 return 0;
2022}
2023_ACEOF
2024ac_clean_files_save=$ac_clean_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002025ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002026# Try to create an executable without -o first, disregard a.out.
2027# It will help us diagnose broken compilers, and finding out an intuition
2028# of exeext.
2029echo "$as_me:$LINENO: checking for C++ compiler default output" >&5
2030echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6
2031ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2032if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2033 (eval $ac_link_default) 2>&5
2034 ac_status=$?
2035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2036 (exit $ac_status); }; then
2037 # Find the output, starting from the most likely. This scheme is
2038# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2039# resort.
2040
2041# Be careful to initialize this variable, since it used to be cached.
2042# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2043ac_cv_exeext=
John Criswell0c38eaf2003-09-10 15:17:25 +00002044# b.out is created by i960 compilers.
2045for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2046do
2047 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002048 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002049 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2050 ;;
2051 conftest.$ac_ext )
2052 # This is the source file.
2053 ;;
2054 [ab].out )
2055 # We found the default executable, but exeext='' is most
2056 # certainly right.
2057 break;;
2058 *.* )
2059 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2060 # FIXME: I believe we export ac_cv_exeext for Libtool,
2061 # but it would be cool to find out if it's true. Does anybody
2062 # maintain Libtool? --akim.
2063 export ac_cv_exeext
2064 break;;
2065 * )
2066 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002067 esac
2068done
2069else
2070 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002071sed 's/^/| /' conftest.$ac_ext >&5
2072
2073{ { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2074See \`config.log' for more details." >&5
2075echo "$as_me: error: C++ compiler cannot create executables
2076See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002077 { (exit 77); exit 77; }; }
2078fi
2079
2080ac_exeext=$ac_cv_exeext
2081echo "$as_me:$LINENO: result: $ac_file" >&5
2082echo "${ECHO_T}$ac_file" >&6
2083
2084# Check the compiler produces executables we can run. If not, either
2085# the compiler is broken, or we cross compile.
2086echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2087echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2088# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2089# If not cross compiling, check that we can run a simple program.
2090if test "$cross_compiling" != yes; then
2091 if { ac_try='./$ac_file'
2092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2093 (eval $ac_try) 2>&5
2094 ac_status=$?
2095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2096 (exit $ac_status); }; }; then
2097 cross_compiling=no
2098 else
2099 if test "$cross_compiling" = maybe; then
2100 cross_compiling=yes
2101 else
2102 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002103If you meant to cross compile, use \`--host'.
2104See \`config.log' for more details." >&5
John Criswell7a73b802003-06-30 21:59:07 +00002105echo "$as_me: error: cannot run C++ compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002106If you meant to cross compile, use \`--host'.
2107See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002108 { (exit 1); exit 1; }; }
2109 fi
2110 fi
2111fi
2112echo "$as_me:$LINENO: result: yes" >&5
2113echo "${ECHO_T}yes" >&6
2114
John Criswell0c38eaf2003-09-10 15:17:25 +00002115rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002116ac_clean_files=$ac_clean_files_save
2117# Check the compiler produces executables we can run. If not, either
2118# the compiler is broken, or we cross compile.
2119echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2120echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2121echo "$as_me:$LINENO: result: $cross_compiling" >&5
2122echo "${ECHO_T}$cross_compiling" >&6
2123
2124echo "$as_me:$LINENO: checking for suffix of executables" >&5
2125echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2126if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2127 (eval $ac_link) 2>&5
2128 ac_status=$?
2129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2130 (exit $ac_status); }; then
2131 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2132# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2133# work properly (i.e., refer to `conftest.exe'), while it won't with
2134# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002135for ac_file in conftest.exe conftest conftest.*; do
2136 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002137 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002138 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002139 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2140 export ac_cv_exeext
2141 break;;
2142 * ) break;;
2143 esac
2144done
2145else
John Criswell0c38eaf2003-09-10 15:17:25 +00002146 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2147See \`config.log' for more details." >&5
2148echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2149See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002150 { (exit 1); exit 1; }; }
2151fi
2152
2153rm -f conftest$ac_cv_exeext
2154echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2155echo "${ECHO_T}$ac_cv_exeext" >&6
2156
2157rm -f conftest.$ac_ext
2158EXEEXT=$ac_cv_exeext
2159ac_exeext=$EXEEXT
2160echo "$as_me:$LINENO: checking for suffix of object files" >&5
2161echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2162if test "${ac_cv_objext+set}" = set; then
2163 echo $ECHO_N "(cached) $ECHO_C" >&6
2164else
2165 cat >conftest.$ac_ext <<_ACEOF
2166#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002167/* confdefs.h. */
2168_ACEOF
2169cat confdefs.h >>conftest.$ac_ext
2170cat >>conftest.$ac_ext <<_ACEOF
2171/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002172
John Criswell7a73b802003-06-30 21:59:07 +00002173int
2174main ()
2175{
2176
2177 ;
2178 return 0;
2179}
2180_ACEOF
2181rm -f conftest.o conftest.obj
2182if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2183 (eval $ac_compile) 2>&5
2184 ac_status=$?
2185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2186 (exit $ac_status); }; then
2187 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2188 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002189 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002190 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2191 break;;
2192 esac
2193done
2194else
2195 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002196sed 's/^/| /' conftest.$ac_ext >&5
2197
2198{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2199See \`config.log' for more details." >&5
2200echo "$as_me: error: cannot compute suffix of object files: cannot compile
2201See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002202 { (exit 1); exit 1; }; }
2203fi
2204
2205rm -f conftest.$ac_cv_objext conftest.$ac_ext
2206fi
2207echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2208echo "${ECHO_T}$ac_cv_objext" >&6
2209OBJEXT=$ac_cv_objext
2210ac_objext=$OBJEXT
2211echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2212echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2213if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2214 echo $ECHO_N "(cached) $ECHO_C" >&6
2215else
2216 cat >conftest.$ac_ext <<_ACEOF
2217#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002218/* confdefs.h. */
2219_ACEOF
2220cat confdefs.h >>conftest.$ac_ext
2221cat >>conftest.$ac_ext <<_ACEOF
2222/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002223
John Criswell7a73b802003-06-30 21:59:07 +00002224int
2225main ()
2226{
2227#ifndef __GNUC__
2228 choke me
2229#endif
2230
2231 ;
2232 return 0;
2233}
2234_ACEOF
2235rm -f conftest.$ac_objext
2236if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2237 (eval $ac_compile) 2>&5
2238 ac_status=$?
2239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2240 (exit $ac_status); } &&
2241 { ac_try='test -s conftest.$ac_objext'
2242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2243 (eval $ac_try) 2>&5
2244 ac_status=$?
2245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2246 (exit $ac_status); }; }; then
2247 ac_compiler_gnu=yes
2248else
2249 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002250sed 's/^/| /' conftest.$ac_ext >&5
2251
John Criswell7a73b802003-06-30 21:59:07 +00002252ac_compiler_gnu=no
2253fi
2254rm -f conftest.$ac_objext conftest.$ac_ext
2255ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2256
2257fi
2258echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2259echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2260GXX=`test $ac_compiler_gnu = yes && echo yes`
2261ac_test_CXXFLAGS=${CXXFLAGS+set}
2262ac_save_CXXFLAGS=$CXXFLAGS
2263CXXFLAGS="-g"
2264echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2265echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2266if test "${ac_cv_prog_cxx_g+set}" = set; then
2267 echo $ECHO_N "(cached) $ECHO_C" >&6
2268else
2269 cat >conftest.$ac_ext <<_ACEOF
2270#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002271/* confdefs.h. */
2272_ACEOF
2273cat confdefs.h >>conftest.$ac_ext
2274cat >>conftest.$ac_ext <<_ACEOF
2275/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002276
John Criswell7a73b802003-06-30 21:59:07 +00002277int
2278main ()
2279{
2280
2281 ;
2282 return 0;
2283}
2284_ACEOF
2285rm -f conftest.$ac_objext
2286if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2287 (eval $ac_compile) 2>&5
2288 ac_status=$?
2289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2290 (exit $ac_status); } &&
2291 { ac_try='test -s conftest.$ac_objext'
2292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2293 (eval $ac_try) 2>&5
2294 ac_status=$?
2295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2296 (exit $ac_status); }; }; then
2297 ac_cv_prog_cxx_g=yes
2298else
2299 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002300sed 's/^/| /' conftest.$ac_ext >&5
2301
John Criswell7a73b802003-06-30 21:59:07 +00002302ac_cv_prog_cxx_g=no
2303fi
2304rm -f conftest.$ac_objext conftest.$ac_ext
2305fi
2306echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2307echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2308if test "$ac_test_CXXFLAGS" = set; then
2309 CXXFLAGS=$ac_save_CXXFLAGS
2310elif test $ac_cv_prog_cxx_g = yes; then
2311 if test "$GXX" = yes; then
2312 CXXFLAGS="-g -O2"
2313 else
2314 CXXFLAGS="-g"
2315 fi
2316else
2317 if test "$GXX" = yes; then
2318 CXXFLAGS="-O2"
2319 else
2320 CXXFLAGS=
2321 fi
2322fi
2323for ac_declaration in \
2324 ''\
2325 '#include <stdlib.h>' \
2326 'extern "C" void std::exit (int) throw (); using std::exit;' \
2327 'extern "C" void std::exit (int); using std::exit;' \
2328 'extern "C" void exit (int) throw ();' \
2329 'extern "C" void exit (int);' \
2330 'void exit (int);'
2331do
2332 cat >conftest.$ac_ext <<_ACEOF
2333#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002334/* confdefs.h. */
2335_ACEOF
2336cat confdefs.h >>conftest.$ac_ext
2337cat >>conftest.$ac_ext <<_ACEOF
2338/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002339#include <stdlib.h>
2340$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00002341int
2342main ()
2343{
2344exit (42);
2345 ;
2346 return 0;
2347}
2348_ACEOF
2349rm -f conftest.$ac_objext
2350if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2351 (eval $ac_compile) 2>&5
2352 ac_status=$?
2353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2354 (exit $ac_status); } &&
2355 { ac_try='test -s conftest.$ac_objext'
2356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2357 (eval $ac_try) 2>&5
2358 ac_status=$?
2359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2360 (exit $ac_status); }; }; then
2361 :
2362else
2363 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002364sed 's/^/| /' conftest.$ac_ext >&5
2365
John Criswell7a73b802003-06-30 21:59:07 +00002366continue
2367fi
2368rm -f conftest.$ac_objext conftest.$ac_ext
2369 cat >conftest.$ac_ext <<_ACEOF
2370#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002371/* confdefs.h. */
2372_ACEOF
2373cat confdefs.h >>conftest.$ac_ext
2374cat >>conftest.$ac_ext <<_ACEOF
2375/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002376$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00002377int
2378main ()
2379{
2380exit (42);
2381 ;
2382 return 0;
2383}
2384_ACEOF
2385rm -f conftest.$ac_objext
2386if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2387 (eval $ac_compile) 2>&5
2388 ac_status=$?
2389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2390 (exit $ac_status); } &&
2391 { ac_try='test -s conftest.$ac_objext'
2392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2393 (eval $ac_try) 2>&5
2394 ac_status=$?
2395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2396 (exit $ac_status); }; }; then
2397 break
2398else
2399 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002400sed 's/^/| /' conftest.$ac_ext >&5
2401
John Criswell7a73b802003-06-30 21:59:07 +00002402fi
2403rm -f conftest.$ac_objext conftest.$ac_ext
2404done
2405rm -f conftest*
2406if test -n "$ac_declaration"; then
2407 echo '#ifdef __cplusplus' >>confdefs.h
2408 echo $ac_declaration >>confdefs.h
2409 echo '#endif' >>confdefs.h
2410fi
2411
2412ac_ext=c
2413ac_cpp='$CPP $CPPFLAGS'
2414ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2415ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2416ac_compiler_gnu=$ac_cv_c_compiler_gnu
2417
2418ac_ext=c
2419ac_cpp='$CPP $CPPFLAGS'
2420ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2421ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2422ac_compiler_gnu=$ac_cv_c_compiler_gnu
2423if test -n "$ac_tool_prefix"; then
2424 for ac_prog in gcc
2425 do
2426 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2427set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2428echo "$as_me:$LINENO: checking for $ac_word" >&5
2429echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2430if test "${ac_cv_prog_CC+set}" = set; then
2431 echo $ECHO_N "(cached) $ECHO_C" >&6
2432else
2433 if test -n "$CC"; then
2434 ac_cv_prog_CC="$CC" # Let the user override the test.
2435else
2436as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2437for as_dir in $PATH
2438do
2439 IFS=$as_save_IFS
2440 test -z "$as_dir" && as_dir=.
2441 for ac_exec_ext in '' $ac_executable_extensions; do
2442 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2443 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2444 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2445 break 2
2446 fi
2447done
2448done
2449
2450fi
2451fi
2452CC=$ac_cv_prog_CC
2453if test -n "$CC"; then
2454 echo "$as_me:$LINENO: result: $CC" >&5
2455echo "${ECHO_T}$CC" >&6
2456else
2457 echo "$as_me:$LINENO: result: no" >&5
2458echo "${ECHO_T}no" >&6
2459fi
2460
2461 test -n "$CC" && break
2462 done
2463fi
2464if test -z "$CC"; then
2465 ac_ct_CC=$CC
2466 for ac_prog in gcc
2467do
2468 # Extract the first word of "$ac_prog", so it can be a program name with args.
2469set dummy $ac_prog; ac_word=$2
2470echo "$as_me:$LINENO: checking for $ac_word" >&5
2471echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2472if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2473 echo $ECHO_N "(cached) $ECHO_C" >&6
2474else
2475 if test -n "$ac_ct_CC"; then
2476 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2477else
2478as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2479for as_dir in $PATH
2480do
2481 IFS=$as_save_IFS
2482 test -z "$as_dir" && as_dir=.
2483 for ac_exec_ext in '' $ac_executable_extensions; do
2484 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2485 ac_cv_prog_ac_ct_CC="$ac_prog"
2486 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2487 break 2
2488 fi
2489done
2490done
2491
2492fi
2493fi
2494ac_ct_CC=$ac_cv_prog_ac_ct_CC
2495if test -n "$ac_ct_CC"; then
2496 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2497echo "${ECHO_T}$ac_ct_CC" >&6
2498else
2499 echo "$as_me:$LINENO: result: no" >&5
2500echo "${ECHO_T}no" >&6
2501fi
2502
2503 test -n "$ac_ct_CC" && break
2504done
2505
2506 CC=$ac_ct_CC
2507fi
2508
2509
John Criswell0c38eaf2003-09-10 15:17:25 +00002510test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2511See \`config.log' for more details." >&5
2512echo "$as_me: error: no acceptable C compiler found in \$PATH
2513See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002514 { (exit 1); exit 1; }; }
2515
2516# Provide some information about the compiler.
2517echo "$as_me:$LINENO:" \
2518 "checking for C compiler version" >&5
2519ac_compiler=`set X $ac_compile; echo $2`
2520{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2521 (eval $ac_compiler --version </dev/null >&5) 2>&5
2522 ac_status=$?
2523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2524 (exit $ac_status); }
2525{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2526 (eval $ac_compiler -v </dev/null >&5) 2>&5
2527 ac_status=$?
2528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2529 (exit $ac_status); }
2530{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2531 (eval $ac_compiler -V </dev/null >&5) 2>&5
2532 ac_status=$?
2533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2534 (exit $ac_status); }
2535
2536echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2537echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2538if test "${ac_cv_c_compiler_gnu+set}" = set; then
2539 echo $ECHO_N "(cached) $ECHO_C" >&6
2540else
2541 cat >conftest.$ac_ext <<_ACEOF
2542#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002543/* confdefs.h. */
2544_ACEOF
2545cat confdefs.h >>conftest.$ac_ext
2546cat >>conftest.$ac_ext <<_ACEOF
2547/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002548
John Criswell7a73b802003-06-30 21:59:07 +00002549int
2550main ()
2551{
2552#ifndef __GNUC__
2553 choke me
2554#endif
2555
2556 ;
2557 return 0;
2558}
2559_ACEOF
2560rm -f conftest.$ac_objext
2561if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2562 (eval $ac_compile) 2>&5
2563 ac_status=$?
2564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2565 (exit $ac_status); } &&
2566 { ac_try='test -s conftest.$ac_objext'
2567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2568 (eval $ac_try) 2>&5
2569 ac_status=$?
2570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2571 (exit $ac_status); }; }; then
2572 ac_compiler_gnu=yes
2573else
2574 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002575sed 's/^/| /' conftest.$ac_ext >&5
2576
John Criswell7a73b802003-06-30 21:59:07 +00002577ac_compiler_gnu=no
2578fi
2579rm -f conftest.$ac_objext conftest.$ac_ext
2580ac_cv_c_compiler_gnu=$ac_compiler_gnu
2581
2582fi
2583echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2584echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2585GCC=`test $ac_compiler_gnu = yes && echo yes`
2586ac_test_CFLAGS=${CFLAGS+set}
2587ac_save_CFLAGS=$CFLAGS
2588CFLAGS="-g"
2589echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2590echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2591if test "${ac_cv_prog_cc_g+set}" = set; then
2592 echo $ECHO_N "(cached) $ECHO_C" >&6
2593else
2594 cat >conftest.$ac_ext <<_ACEOF
2595#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002596/* confdefs.h. */
2597_ACEOF
2598cat confdefs.h >>conftest.$ac_ext
2599cat >>conftest.$ac_ext <<_ACEOF
2600/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002601
John Criswell7a73b802003-06-30 21:59:07 +00002602int
2603main ()
2604{
2605
2606 ;
2607 return 0;
2608}
2609_ACEOF
2610rm -f conftest.$ac_objext
2611if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2612 (eval $ac_compile) 2>&5
2613 ac_status=$?
2614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2615 (exit $ac_status); } &&
2616 { ac_try='test -s conftest.$ac_objext'
2617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2618 (eval $ac_try) 2>&5
2619 ac_status=$?
2620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2621 (exit $ac_status); }; }; then
2622 ac_cv_prog_cc_g=yes
2623else
2624 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002625sed 's/^/| /' conftest.$ac_ext >&5
2626
John Criswell7a73b802003-06-30 21:59:07 +00002627ac_cv_prog_cc_g=no
2628fi
2629rm -f conftest.$ac_objext conftest.$ac_ext
2630fi
2631echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2632echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2633if test "$ac_test_CFLAGS" = set; then
2634 CFLAGS=$ac_save_CFLAGS
2635elif test $ac_cv_prog_cc_g = yes; then
2636 if test "$GCC" = yes; then
2637 CFLAGS="-g -O2"
2638 else
2639 CFLAGS="-g"
2640 fi
2641else
2642 if test "$GCC" = yes; then
2643 CFLAGS="-O2"
2644 else
2645 CFLAGS=
2646 fi
2647fi
John Criswell0c38eaf2003-09-10 15:17:25 +00002648echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2649echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2650if test "${ac_cv_prog_cc_stdc+set}" = set; then
2651 echo $ECHO_N "(cached) $ECHO_C" >&6
2652else
2653 ac_cv_prog_cc_stdc=no
2654ac_save_CC=$CC
2655cat >conftest.$ac_ext <<_ACEOF
2656#line $LINENO "configure"
2657/* confdefs.h. */
2658_ACEOF
2659cat confdefs.h >>conftest.$ac_ext
2660cat >>conftest.$ac_ext <<_ACEOF
2661/* end confdefs.h. */
2662#include <stdarg.h>
2663#include <stdio.h>
2664#include <sys/types.h>
2665#include <sys/stat.h>
2666/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2667struct buf { int x; };
2668FILE * (*rcsopen) (struct buf *, struct stat *, int);
2669static char *e (p, i)
2670 char **p;
2671 int i;
2672{
2673 return p[i];
2674}
2675static char *f (char * (*g) (char **, int), char **p, ...)
2676{
2677 char *s;
2678 va_list v;
2679 va_start (v,p);
2680 s = g (p, va_arg (v,int));
2681 va_end (v);
2682 return s;
2683}
2684int test (int i, double x);
2685struct s1 {int (*f) (int a);};
2686struct s2 {int (*f) (double a);};
2687int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2688int argc;
2689char **argv;
2690int
2691main ()
2692{
2693return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2694 ;
2695 return 0;
2696}
2697_ACEOF
2698# Don't try gcc -ansi; that turns off useful extensions and
2699# breaks some systems' header files.
2700# AIX -qlanglvl=ansi
2701# Ultrix and OSF/1 -std1
2702# HP-UX 10.20 and later -Ae
2703# HP-UX older versions -Aa -D_HPUX_SOURCE
2704# SVR4 -Xc -D__EXTENSIONS__
2705for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2706do
2707 CC="$ac_save_CC $ac_arg"
2708 rm -f conftest.$ac_objext
2709if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2710 (eval $ac_compile) 2>&5
2711 ac_status=$?
2712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2713 (exit $ac_status); } &&
2714 { ac_try='test -s conftest.$ac_objext'
2715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2716 (eval $ac_try) 2>&5
2717 ac_status=$?
2718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2719 (exit $ac_status); }; }; then
2720 ac_cv_prog_cc_stdc=$ac_arg
2721break
2722else
2723 echo "$as_me: failed program was:" >&5
2724sed 's/^/| /' conftest.$ac_ext >&5
2725
2726fi
2727rm -f conftest.$ac_objext
2728done
2729rm -f conftest.$ac_ext conftest.$ac_objext
2730CC=$ac_save_CC
2731
2732fi
2733
2734case "x$ac_cv_prog_cc_stdc" in
2735 x|xno)
2736 echo "$as_me:$LINENO: result: none needed" >&5
2737echo "${ECHO_T}none needed" >&6 ;;
2738 *)
2739 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2740echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2741 CC="$CC $ac_cv_prog_cc_stdc" ;;
2742esac
2743
John Criswell7a73b802003-06-30 21:59:07 +00002744# Some people use a C++ compiler to compile C. Since we use `exit',
2745# in C++ we need to declare it. In case someone uses the same compiler
2746# for both compiling C and C++ we need to have the C++ compiler decide
2747# the declaration of exit, since it's the most demanding environment.
2748cat >conftest.$ac_ext <<_ACEOF
2749#ifndef __cplusplus
2750 choke me
2751#endif
2752_ACEOF
2753rm -f conftest.$ac_objext
2754if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2755 (eval $ac_compile) 2>&5
2756 ac_status=$?
2757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2758 (exit $ac_status); } &&
2759 { ac_try='test -s conftest.$ac_objext'
2760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2761 (eval $ac_try) 2>&5
2762 ac_status=$?
2763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2764 (exit $ac_status); }; }; then
2765 for ac_declaration in \
2766 ''\
2767 '#include <stdlib.h>' \
2768 'extern "C" void std::exit (int) throw (); using std::exit;' \
2769 'extern "C" void std::exit (int); using std::exit;' \
2770 'extern "C" void exit (int) throw ();' \
2771 'extern "C" void exit (int);' \
2772 'void exit (int);'
2773do
2774 cat >conftest.$ac_ext <<_ACEOF
2775#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002776/* confdefs.h. */
2777_ACEOF
2778cat confdefs.h >>conftest.$ac_ext
2779cat >>conftest.$ac_ext <<_ACEOF
2780/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002781#include <stdlib.h>
2782$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00002783int
2784main ()
2785{
2786exit (42);
2787 ;
2788 return 0;
2789}
2790_ACEOF
2791rm -f conftest.$ac_objext
2792if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2793 (eval $ac_compile) 2>&5
2794 ac_status=$?
2795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2796 (exit $ac_status); } &&
2797 { ac_try='test -s conftest.$ac_objext'
2798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2799 (eval $ac_try) 2>&5
2800 ac_status=$?
2801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2802 (exit $ac_status); }; }; then
2803 :
2804else
2805 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002806sed 's/^/| /' conftest.$ac_ext >&5
2807
John Criswell7a73b802003-06-30 21:59:07 +00002808continue
2809fi
2810rm -f conftest.$ac_objext conftest.$ac_ext
2811 cat >conftest.$ac_ext <<_ACEOF
2812#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002813/* confdefs.h. */
2814_ACEOF
2815cat confdefs.h >>conftest.$ac_ext
2816cat >>conftest.$ac_ext <<_ACEOF
2817/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002818$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00002819int
2820main ()
2821{
2822exit (42);
2823 ;
2824 return 0;
2825}
2826_ACEOF
2827rm -f conftest.$ac_objext
2828if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2829 (eval $ac_compile) 2>&5
2830 ac_status=$?
2831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2832 (exit $ac_status); } &&
2833 { ac_try='test -s conftest.$ac_objext'
2834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2835 (eval $ac_try) 2>&5
2836 ac_status=$?
2837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2838 (exit $ac_status); }; }; then
2839 break
2840else
2841 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002842sed 's/^/| /' conftest.$ac_ext >&5
2843
John Criswell7a73b802003-06-30 21:59:07 +00002844fi
2845rm -f conftest.$ac_objext conftest.$ac_ext
2846done
2847rm -f conftest*
2848if test -n "$ac_declaration"; then
2849 echo '#ifdef __cplusplus' >>confdefs.h
2850 echo $ac_declaration >>confdefs.h
2851 echo '#endif' >>confdefs.h
2852fi
2853
2854else
2855 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002856sed 's/^/| /' conftest.$ac_ext >&5
2857
John Criswell7a73b802003-06-30 21:59:07 +00002858fi
2859rm -f conftest.$ac_objext conftest.$ac_ext
2860ac_ext=c
2861ac_cpp='$CPP $CPPFLAGS'
2862ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2863ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2864ac_compiler_gnu=$ac_cv_c_compiler_gnu
2865
2866ac_ext=c
2867ac_cpp='$CPP $CPPFLAGS'
2868ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2869ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2870ac_compiler_gnu=$ac_cv_c_compiler_gnu
2871echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2872echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2873# On Suns, sometimes $CPP names a directory.
2874if test -n "$CPP" && test -d "$CPP"; then
2875 CPP=
2876fi
2877if test -z "$CPP"; then
2878 if test "${ac_cv_prog_CPP+set}" = set; then
2879 echo $ECHO_N "(cached) $ECHO_C" >&6
2880else
2881 # Double quotes because CPP needs to be expanded
2882 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2883 do
2884 ac_preproc_ok=false
2885for ac_c_preproc_warn_flag in '' yes
2886do
2887 # Use a header file that comes with gcc, so configuring glibc
2888 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00002889 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2890 # <limits.h> exists even on freestanding compilers.
John Criswell7a73b802003-06-30 21:59:07 +00002891 # On the NeXT, cc -E runs the code through the compiler's parser,
2892 # not just through cpp. "Syntax error" is here to catch this case.
2893 cat >conftest.$ac_ext <<_ACEOF
2894#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002895/* confdefs.h. */
2896_ACEOF
2897cat confdefs.h >>conftest.$ac_ext
2898cat >>conftest.$ac_ext <<_ACEOF
2899/* end confdefs.h. */
2900#ifdef __STDC__
2901# include <limits.h>
2902#else
2903# include <assert.h>
2904#endif
John Criswell7a73b802003-06-30 21:59:07 +00002905 Syntax error
2906_ACEOF
2907if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2908 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2909 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00002910 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00002911 rm -f conftest.er1
2912 cat conftest.err >&5
2913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2914 (exit $ac_status); } >/dev/null; then
2915 if test -s conftest.err; then
2916 ac_cpp_err=$ac_c_preproc_warn_flag
2917 else
2918 ac_cpp_err=
2919 fi
2920else
2921 ac_cpp_err=yes
2922fi
2923if test -z "$ac_cpp_err"; then
2924 :
2925else
2926 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002927sed 's/^/| /' conftest.$ac_ext >&5
2928
John Criswell7a73b802003-06-30 21:59:07 +00002929 # Broken: fails on valid input.
2930continue
2931fi
2932rm -f conftest.err conftest.$ac_ext
2933
2934 # OK, works on sane cases. Now check whether non-existent headers
2935 # can be detected and how.
2936 cat >conftest.$ac_ext <<_ACEOF
2937#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002938/* confdefs.h. */
2939_ACEOF
2940cat confdefs.h >>conftest.$ac_ext
2941cat >>conftest.$ac_ext <<_ACEOF
2942/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002943#include <ac_nonexistent.h>
2944_ACEOF
2945if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2946 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2947 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00002948 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00002949 rm -f conftest.er1
2950 cat conftest.err >&5
2951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2952 (exit $ac_status); } >/dev/null; then
2953 if test -s conftest.err; then
2954 ac_cpp_err=$ac_c_preproc_warn_flag
2955 else
2956 ac_cpp_err=
2957 fi
2958else
2959 ac_cpp_err=yes
2960fi
2961if test -z "$ac_cpp_err"; then
2962 # Broken: success on invalid input.
2963continue
2964else
2965 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002966sed 's/^/| /' conftest.$ac_ext >&5
2967
John Criswell7a73b802003-06-30 21:59:07 +00002968 # Passes both tests.
2969ac_preproc_ok=:
2970break
2971fi
2972rm -f conftest.err conftest.$ac_ext
2973
2974done
2975# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2976rm -f conftest.err conftest.$ac_ext
2977if $ac_preproc_ok; then
2978 break
2979fi
2980
2981 done
2982 ac_cv_prog_CPP=$CPP
2983
2984fi
2985 CPP=$ac_cv_prog_CPP
2986else
2987 ac_cv_prog_CPP=$CPP
2988fi
2989echo "$as_me:$LINENO: result: $CPP" >&5
2990echo "${ECHO_T}$CPP" >&6
2991ac_preproc_ok=false
2992for ac_c_preproc_warn_flag in '' yes
2993do
2994 # Use a header file that comes with gcc, so configuring glibc
2995 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00002996 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2997 # <limits.h> exists even on freestanding compilers.
John Criswell7a73b802003-06-30 21:59:07 +00002998 # On the NeXT, cc -E runs the code through the compiler's parser,
2999 # not just through cpp. "Syntax error" is here to catch this case.
3000 cat >conftest.$ac_ext <<_ACEOF
3001#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003002/* confdefs.h. */
3003_ACEOF
3004cat confdefs.h >>conftest.$ac_ext
3005cat >>conftest.$ac_ext <<_ACEOF
3006/* end confdefs.h. */
3007#ifdef __STDC__
3008# include <limits.h>
3009#else
3010# include <assert.h>
3011#endif
John Criswell7a73b802003-06-30 21:59:07 +00003012 Syntax error
3013_ACEOF
3014if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3015 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3016 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003017 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003018 rm -f conftest.er1
3019 cat conftest.err >&5
3020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3021 (exit $ac_status); } >/dev/null; then
3022 if test -s conftest.err; then
3023 ac_cpp_err=$ac_c_preproc_warn_flag
3024 else
3025 ac_cpp_err=
3026 fi
3027else
3028 ac_cpp_err=yes
3029fi
3030if test -z "$ac_cpp_err"; then
3031 :
3032else
3033 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003034sed 's/^/| /' conftest.$ac_ext >&5
3035
John Criswell7a73b802003-06-30 21:59:07 +00003036 # Broken: fails on valid input.
3037continue
3038fi
3039rm -f conftest.err conftest.$ac_ext
3040
3041 # OK, works on sane cases. Now check whether non-existent headers
3042 # can be detected and how.
3043 cat >conftest.$ac_ext <<_ACEOF
3044#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003045/* confdefs.h. */
3046_ACEOF
3047cat confdefs.h >>conftest.$ac_ext
3048cat >>conftest.$ac_ext <<_ACEOF
3049/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003050#include <ac_nonexistent.h>
3051_ACEOF
3052if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3053 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3054 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003055 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003056 rm -f conftest.er1
3057 cat conftest.err >&5
3058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3059 (exit $ac_status); } >/dev/null; then
3060 if test -s conftest.err; then
3061 ac_cpp_err=$ac_c_preproc_warn_flag
3062 else
3063 ac_cpp_err=
3064 fi
3065else
3066 ac_cpp_err=yes
3067fi
3068if test -z "$ac_cpp_err"; then
3069 # Broken: success on invalid input.
3070continue
3071else
3072 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003073sed 's/^/| /' conftest.$ac_ext >&5
3074
John Criswell7a73b802003-06-30 21:59:07 +00003075 # Passes both tests.
3076ac_preproc_ok=:
3077break
3078fi
3079rm -f conftest.err conftest.$ac_ext
3080
3081done
3082# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3083rm -f conftest.err conftest.$ac_ext
3084if $ac_preproc_ok; then
3085 :
3086else
John Criswell0c38eaf2003-09-10 15:17:25 +00003087 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3088See \`config.log' for more details." >&5
3089echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3090See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00003091 { (exit 1); exit 1; }; }
3092fi
3093
3094ac_ext=c
3095ac_cpp='$CPP $CPPFLAGS'
3096ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3097ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3098ac_compiler_gnu=$ac_cv_c_compiler_gnu
3099
3100
3101if test "$GCC" != "yes"
3102then
3103 { { echo "$as_me:$LINENO: error: gcc required but not found" >&5
3104echo "$as_me: error: gcc required but not found" >&2;}
3105 { (exit 1); exit 1; }; }
3106fi
3107
3108if test "$GXX" != "yes"
3109then
3110 { { echo "$as_me:$LINENO: error: g++ required but not found" >&5
3111echo "$as_me: error: g++ required but not found" >&2;}
3112 { (exit 1); exit 1; }; }
3113fi
3114
John Criswellde00db22003-08-25 16:49:54 +00003115gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
3116if test "$gccmajor" -lt "3"
3117then
3118 { { echo "$as_me:$LINENO: error: gcc 3.x required" >&5
3119echo "$as_me: error: gcc 3.x required" >&2;}
3120 { (exit 1); exit 1; }; }
3121fi
3122
John Criswell7a73b802003-06-30 21:59:07 +00003123 echo "$as_me:$LINENO: checking for GNU make" >&5
3124echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
3125if test "${_cv_gnu_make_command+set}" = set; then
3126 echo $ECHO_N "(cached) $ECHO_C" >&6
3127else
3128 _cv_gnu_make_command='' ;
3129 for a in "$MAKE" make gmake gnumake ; do
3130 if test -z "$a" ; then continue ; fi ;
3131 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
3132 _cv_gnu_make_command=$a ;
3133 break;
3134 fi
3135 done ;
3136
3137fi
3138echo "$as_me:$LINENO: result: $_cv_gnu_make_command" >&5
3139echo "${ECHO_T}$_cv_gnu_make_command" >&6 ;
3140 if test "x$_cv_gnu_make_command" != "x" ; then
3141 ifGNUmake='' ;
3142 else
3143 ifGNUmake='#' ;
3144 echo "$as_me:$LINENO: result: \"Not found\"" >&5
3145echo "${ECHO_T}\"Not found\"" >&6;
3146 fi
3147
3148
3149if test -z "$_cv_gnu_make_command"
3150then
3151 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
3152echo "$as_me: error: GNU Make required but not found" >&2;}
3153 { (exit 1); exit 1; }; }
3154fi
3155
3156
3157echo "$as_me:$LINENO: checking " >&5
3158echo $ECHO_N "checking ... $ECHO_C" >&6
3159if test "${ac_cv_has_flex+set}" = set; then
3160 echo $ECHO_N "(cached) $ECHO_C" >&6
3161else
3162 for ac_prog in flex lex
3163do
3164 # Extract the first word of "$ac_prog", so it can be a program name with args.
3165set dummy $ac_prog; ac_word=$2
3166echo "$as_me:$LINENO: checking for $ac_word" >&5
3167echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3168if test "${ac_cv_prog_LEX+set}" = set; then
3169 echo $ECHO_N "(cached) $ECHO_C" >&6
3170else
3171 if test -n "$LEX"; then
3172 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3173else
3174as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3175for as_dir in $PATH
3176do
3177 IFS=$as_save_IFS
3178 test -z "$as_dir" && as_dir=.
3179 for ac_exec_ext in '' $ac_executable_extensions; do
3180 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3181 ac_cv_prog_LEX="$ac_prog"
3182 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3183 break 2
3184 fi
3185done
3186done
3187
3188fi
3189fi
3190LEX=$ac_cv_prog_LEX
3191if test -n "$LEX"; then
3192 echo "$as_me:$LINENO: result: $LEX" >&5
3193echo "${ECHO_T}$LEX" >&6
3194else
3195 echo "$as_me:$LINENO: result: no" >&5
3196echo "${ECHO_T}no" >&6
3197fi
3198
3199 test -n "$LEX" && break
3200done
3201test -n "$LEX" || LEX=":"
3202
3203if test -z "$LEXLIB"
3204then
3205 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3206echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3207if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3208 echo $ECHO_N "(cached) $ECHO_C" >&6
3209else
3210 ac_check_lib_save_LIBS=$LIBS
3211LIBS="-lfl $LIBS"
3212cat >conftest.$ac_ext <<_ACEOF
3213#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003214/* confdefs.h. */
3215_ACEOF
3216cat confdefs.h >>conftest.$ac_ext
3217cat >>conftest.$ac_ext <<_ACEOF
3218/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003219
3220/* Override any gcc2 internal prototype to avoid an error. */
3221#ifdef __cplusplus
3222extern "C"
3223#endif
3224/* We use char because int might match the return type of a gcc2
3225 builtin and then its argument prototype would still apply. */
3226char yywrap ();
John Criswell7a73b802003-06-30 21:59:07 +00003227int
3228main ()
3229{
3230yywrap ();
3231 ;
3232 return 0;
3233}
3234_ACEOF
3235rm -f conftest.$ac_objext conftest$ac_exeext
3236if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3237 (eval $ac_link) 2>&5
3238 ac_status=$?
3239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3240 (exit $ac_status); } &&
3241 { ac_try='test -s conftest$ac_exeext'
3242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3243 (eval $ac_try) 2>&5
3244 ac_status=$?
3245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3246 (exit $ac_status); }; }; then
3247 ac_cv_lib_fl_yywrap=yes
3248else
3249 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003250sed 's/^/| /' conftest.$ac_ext >&5
3251
John Criswell7a73b802003-06-30 21:59:07 +00003252ac_cv_lib_fl_yywrap=no
3253fi
3254rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3255LIBS=$ac_check_lib_save_LIBS
3256fi
3257echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3258echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3259if test $ac_cv_lib_fl_yywrap = yes; then
3260 LEXLIB="-lfl"
3261else
3262 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3263echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3264if test "${ac_cv_lib_l_yywrap+set}" = set; then
3265 echo $ECHO_N "(cached) $ECHO_C" >&6
3266else
3267 ac_check_lib_save_LIBS=$LIBS
3268LIBS="-ll $LIBS"
3269cat >conftest.$ac_ext <<_ACEOF
3270#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003271/* confdefs.h. */
3272_ACEOF
3273cat confdefs.h >>conftest.$ac_ext
3274cat >>conftest.$ac_ext <<_ACEOF
3275/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003276
3277/* Override any gcc2 internal prototype to avoid an error. */
3278#ifdef __cplusplus
3279extern "C"
3280#endif
3281/* We use char because int might match the return type of a gcc2
3282 builtin and then its argument prototype would still apply. */
3283char yywrap ();
John Criswell7a73b802003-06-30 21:59:07 +00003284int
3285main ()
3286{
3287yywrap ();
3288 ;
3289 return 0;
3290}
3291_ACEOF
3292rm -f conftest.$ac_objext conftest$ac_exeext
3293if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3294 (eval $ac_link) 2>&5
3295 ac_status=$?
3296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3297 (exit $ac_status); } &&
3298 { ac_try='test -s conftest$ac_exeext'
3299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3300 (eval $ac_try) 2>&5
3301 ac_status=$?
3302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3303 (exit $ac_status); }; }; then
3304 ac_cv_lib_l_yywrap=yes
3305else
3306 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003307sed 's/^/| /' conftest.$ac_ext >&5
3308
John Criswell7a73b802003-06-30 21:59:07 +00003309ac_cv_lib_l_yywrap=no
3310fi
3311rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3312LIBS=$ac_check_lib_save_LIBS
3313fi
3314echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3315echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3316if test $ac_cv_lib_l_yywrap = yes; then
3317 LEXLIB="-ll"
3318fi
3319
3320fi
3321
3322fi
3323
3324if test "x$LEX" != "x:"; then
3325 echo "$as_me:$LINENO: checking lex output file root" >&5
3326echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3327if test "${ac_cv_prog_lex_root+set}" = set; then
3328 echo $ECHO_N "(cached) $ECHO_C" >&6
3329else
3330 # The minimal lex program is just a single line: %%. But some broken lexes
3331# (Solaris, I think it was) want two %% lines, so accommodate them.
3332cat >conftest.l <<_ACEOF
3333%%
3334%%
3335_ACEOF
3336{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3337 (eval $LEX conftest.l) 2>&5
3338 ac_status=$?
3339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3340 (exit $ac_status); }
3341if test -f lex.yy.c; then
3342 ac_cv_prog_lex_root=lex.yy
3343elif test -f lexyy.c; then
3344 ac_cv_prog_lex_root=lexyy
3345else
3346 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3347echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3348 { (exit 1); exit 1; }; }
3349fi
3350fi
3351echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3352echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3353rm -f conftest.l
3354LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3355
3356echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3357echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3358if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3359 echo $ECHO_N "(cached) $ECHO_C" >&6
3360else
3361 # POSIX says lex can declare yytext either as a pointer or an array; the
3362# default is implementation-dependent. Figure out which it is, since
3363# not all implementations provide the %pointer and %array declarations.
3364ac_cv_prog_lex_yytext_pointer=no
3365echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3366ac_save_LIBS=$LIBS
3367LIBS="$LIBS $LEXLIB"
3368cat >conftest.$ac_ext <<_ACEOF
3369`cat $LEX_OUTPUT_ROOT.c`
3370_ACEOF
3371rm -f conftest.$ac_objext conftest$ac_exeext
3372if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3373 (eval $ac_link) 2>&5
3374 ac_status=$?
3375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3376 (exit $ac_status); } &&
3377 { ac_try='test -s conftest$ac_exeext'
3378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3379 (eval $ac_try) 2>&5
3380 ac_status=$?
3381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3382 (exit $ac_status); }; }; then
3383 ac_cv_prog_lex_yytext_pointer=yes
3384else
3385 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003386sed 's/^/| /' conftest.$ac_ext >&5
3387
John Criswell7a73b802003-06-30 21:59:07 +00003388fi
3389rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3390LIBS=$ac_save_LIBS
3391rm -f "${LEX_OUTPUT_ROOT}.c"
3392
3393fi
3394echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3395echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3396if test $ac_cv_prog_lex_yytext_pointer = yes; then
3397
3398cat >>confdefs.h <<\_ACEOF
3399#define YYTEXT_POINTER 1
3400_ACEOF
3401
3402fi
3403
3404fi
3405
3406fi
3407echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
3408echo "${ECHO_T}$ac_cv_has_flex" >&6
3409if test "$LEX" != "flex"; then
3410 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
3411echo "$as_me: error: flex not found but required" >&2;}
3412 { (exit 1); exit 1; }; }
3413fi
3414
3415echo "$as_me:$LINENO: checking " >&5
3416echo $ECHO_N "checking ... $ECHO_C" >&6
3417if test "${ac_cv_has_bison+set}" = set; then
3418 echo $ECHO_N "(cached) $ECHO_C" >&6
3419else
3420 for ac_prog in 'bison -y' byacc
3421do
3422 # Extract the first word of "$ac_prog", so it can be a program name with args.
3423set dummy $ac_prog; ac_word=$2
3424echo "$as_me:$LINENO: checking for $ac_word" >&5
3425echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3426if test "${ac_cv_prog_YACC+set}" = set; then
3427 echo $ECHO_N "(cached) $ECHO_C" >&6
3428else
3429 if test -n "$YACC"; then
3430 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3431else
3432as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3433for as_dir in $PATH
3434do
3435 IFS=$as_save_IFS
3436 test -z "$as_dir" && as_dir=.
3437 for ac_exec_ext in '' $ac_executable_extensions; do
3438 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3439 ac_cv_prog_YACC="$ac_prog"
3440 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3441 break 2
3442 fi
3443done
3444done
3445
3446fi
3447fi
3448YACC=$ac_cv_prog_YACC
3449if test -n "$YACC"; then
3450 echo "$as_me:$LINENO: result: $YACC" >&5
3451echo "${ECHO_T}$YACC" >&6
3452else
3453 echo "$as_me:$LINENO: result: no" >&5
3454echo "${ECHO_T}no" >&6
3455fi
3456
3457 test -n "$YACC" && break
3458done
3459test -n "$YACC" || YACC="yacc"
3460
3461
3462fi
3463echo "$as_me:$LINENO: result: $ac_cv_has_bison" >&5
3464echo "${ECHO_T}$ac_cv_has_bison" >&6
3465if test "$YACC" != "bison -y"; then
3466 { { echo "$as_me:$LINENO: error: bison not found but required" >&5
3467echo "$as_me: error: bison not found but required" >&2;}
3468 { (exit 1); exit 1; }; }
3469else
3470 YACC=bison
3471
3472fi
3473
3474
3475# Check whether --enable-shared or --disable-shared was given.
3476if test "${enable_shared+set}" = set; then
3477 enableval="$enable_shared"
3478 p=${PACKAGE-default}
John Criswell47fdd832003-07-14 16:52:07 +00003479 case $enableval in
3480 yes) enable_shared=yes ;;
3481 no) enable_shared=no ;;
3482 *)
3483 enable_shared=no
3484 # Look at the argument we got. We use all the common list separators.
3485 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3486 for pkg in $enableval; do
3487 IFS="$lt_save_ifs"
3488 if test "X$pkg" = "X$p"; then
3489 enable_shared=yes
3490 fi
3491 done
3492 IFS="$lt_save_ifs"
3493 ;;
3494 esac
John Criswell7a73b802003-06-30 21:59:07 +00003495else
3496 enable_shared=yes
3497fi;
John Criswell47fdd832003-07-14 16:52:07 +00003498
John Criswell7a73b802003-06-30 21:59:07 +00003499# Check whether --enable-static or --disable-static was given.
3500if test "${enable_static+set}" = set; then
3501 enableval="$enable_static"
3502 p=${PACKAGE-default}
John Criswell47fdd832003-07-14 16:52:07 +00003503 case $enableval in
3504 yes) enable_static=yes ;;
3505 no) enable_static=no ;;
3506 *)
3507 enable_static=no
3508 # Look at the argument we got. We use all the common list separators.
3509 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3510 for pkg in $enableval; do
3511 IFS="$lt_save_ifs"
3512 if test "X$pkg" = "X$p"; then
3513 enable_static=yes
3514 fi
3515 done
3516 IFS="$lt_save_ifs"
3517 ;;
3518 esac
John Criswell7a73b802003-06-30 21:59:07 +00003519else
3520 enable_static=yes
3521fi;
John Criswell47fdd832003-07-14 16:52:07 +00003522
John Criswell7a73b802003-06-30 21:59:07 +00003523# Check whether --enable-fast-install or --disable-fast-install was given.
3524if test "${enable_fast_install+set}" = set; then
3525 enableval="$enable_fast_install"
3526 p=${PACKAGE-default}
John Criswell47fdd832003-07-14 16:52:07 +00003527 case $enableval in
3528 yes) enable_fast_install=yes ;;
3529 no) enable_fast_install=no ;;
3530 *)
3531 enable_fast_install=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_fast_install=yes
3538 fi
3539 done
3540 IFS="$lt_save_ifs"
3541 ;;
3542 esac
John Criswell7a73b802003-06-30 21:59:07 +00003543else
3544 enable_fast_install=yes
3545fi;
John Criswell47fdd832003-07-14 16:52:07 +00003546
3547echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3548echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3549if test "${lt_cv_path_SED+set}" = set; then
3550 echo $ECHO_N "(cached) $ECHO_C" >&6
3551else
3552 # Loop through the user's path and test for sed and gsed.
3553# Then use that list of sed's as ones to test for truncation.
3554as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3555for as_dir in $PATH
3556do
3557 IFS=$as_save_IFS
3558 test -z "$as_dir" && as_dir=.
3559 for lt_ac_prog in sed gsed; do
3560 for ac_exec_ext in '' $ac_executable_extensions; do
3561 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3562 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3563 fi
3564 done
3565 done
3566done
3567lt_ac_max=0
3568lt_ac_count=0
3569# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3570# along with /bin/sed that truncates output.
3571for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3572 test ! -f $lt_ac_sed && break
3573 cat /dev/null > conftest.in
3574 lt_ac_count=0
3575 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3576 # Check for GNU sed and select it if it is found.
3577 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3578 lt_cv_path_SED=$lt_ac_sed
3579 break
3580 fi
3581 while true; do
3582 cat conftest.in conftest.in >conftest.tmp
3583 mv conftest.tmp conftest.in
3584 cp conftest.in conftest.nl
3585 echo >>conftest.nl
3586 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3587 cmp -s conftest.out conftest.nl || break
3588 # 10000 chars as input seems more than enough
3589 test $lt_ac_count -gt 10 && break
3590 lt_ac_count=`expr $lt_ac_count + 1`
3591 if test $lt_ac_count -gt $lt_ac_max; then
3592 lt_ac_max=$lt_ac_count
3593 lt_cv_path_SED=$lt_ac_sed
3594 fi
3595 done
3596done
3597SED=$lt_cv_path_SED
3598
John Criswell7a73b802003-06-30 21:59:07 +00003599fi
3600
John Criswell47fdd832003-07-14 16:52:07 +00003601echo "$as_me:$LINENO: result: $SED" >&5
3602echo "${ECHO_T}$SED" >&6
3603
3604echo "$as_me:$LINENO: checking for egrep" >&5
3605echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3606if test "${ac_cv_prog_egrep+set}" = set; then
3607 echo $ECHO_N "(cached) $ECHO_C" >&6
3608else
3609 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3610 then ac_cv_prog_egrep='grep -E'
3611 else ac_cv_prog_egrep='egrep'
3612 fi
3613fi
3614echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3615echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3616 EGREP=$ac_cv_prog_egrep
3617
3618
John Criswell7a73b802003-06-30 21:59:07 +00003619
3620# Check whether --with-gnu-ld or --without-gnu-ld was given.
3621if test "${with_gnu_ld+set}" = set; then
3622 withval="$with_gnu_ld"
3623 test "$withval" = no || with_gnu_ld=yes
3624else
3625 with_gnu_ld=no
3626fi;
3627ac_prog=ld
3628if test "$GCC" = yes; then
3629 # Check if gcc -print-prog-name=ld gives a path.
John Criswell47fdd832003-07-14 16:52:07 +00003630 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3631echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00003632 case $host in
3633 *-*-mingw*)
3634 # gcc leaves a trailing carriage return which upsets mingw
3635 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3636 *)
3637 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3638 esac
3639 case $ac_prog in
3640 # Accept absolute paths.
John Criswell47fdd832003-07-14 16:52:07 +00003641 [\\/]* | ?:[\\/]*)
John Criswell7a73b802003-06-30 21:59:07 +00003642 re_direlt='/[^/][^/]*/\.\./'
3643 # Canonicalize the path of ld
John Criswell47fdd832003-07-14 16:52:07 +00003644 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
John Criswell7a73b802003-06-30 21:59:07 +00003645 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
John Criswell47fdd832003-07-14 16:52:07 +00003646 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
John Criswell7a73b802003-06-30 21:59:07 +00003647 done
3648 test -z "$LD" && LD="$ac_prog"
3649 ;;
3650 "")
3651 # If it fails, then pretend we aren't using GCC.
3652 ac_prog=ld
3653 ;;
3654 *)
3655 # If it is relative, then search for the first ld in PATH.
3656 with_gnu_ld=unknown
3657 ;;
3658 esac
3659elif test "$with_gnu_ld" = yes; then
3660 echo "$as_me:$LINENO: checking for GNU ld" >&5
3661echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3662else
3663 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3664echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3665fi
3666if test "${lt_cv_path_LD+set}" = set; then
3667 echo $ECHO_N "(cached) $ECHO_C" >&6
3668else
3669 if test -z "$LD"; then
John Criswell47fdd832003-07-14 16:52:07 +00003670 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +00003671 for ac_dir in $PATH; do
John Criswell47fdd832003-07-14 16:52:07 +00003672 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00003673 test -z "$ac_dir" && ac_dir=.
3674 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3675 lt_cv_path_LD="$ac_dir/$ac_prog"
3676 # Check to see if the program is GNU ld. I'd rather use --version,
3677 # but apparently some GNU ld's only accept -v.
3678 # Break only if it was the GNU/non-GNU ld that we prefer.
John Criswell47fdd832003-07-14 16:52:07 +00003679 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3680 *GNU* | *'with BFD'*)
John Criswell7a73b802003-06-30 21:59:07 +00003681 test "$with_gnu_ld" != no && break
John Criswell47fdd832003-07-14 16:52:07 +00003682 ;;
3683 *)
John Criswell7a73b802003-06-30 21:59:07 +00003684 test "$with_gnu_ld" != yes && break
John Criswell47fdd832003-07-14 16:52:07 +00003685 ;;
3686 esac
John Criswell7a73b802003-06-30 21:59:07 +00003687 fi
3688 done
John Criswell47fdd832003-07-14 16:52:07 +00003689 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00003690else
3691 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3692fi
3693fi
3694
3695LD="$lt_cv_path_LD"
3696if test -n "$LD"; then
3697 echo "$as_me:$LINENO: result: $LD" >&5
3698echo "${ECHO_T}$LD" >&6
3699else
3700 echo "$as_me:$LINENO: result: no" >&5
3701echo "${ECHO_T}no" >&6
3702fi
3703test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3704echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3705 { (exit 1); exit 1; }; }
3706echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3707echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3708if test "${lt_cv_prog_gnu_ld+set}" = set; then
3709 echo $ECHO_N "(cached) $ECHO_C" >&6
3710else
3711 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
John Criswell47fdd832003-07-14 16:52:07 +00003712case `"$LD" -v 2>&1 </dev/null` in
3713*GNU* | *'with BFD'*)
John Criswell7a73b802003-06-30 21:59:07 +00003714 lt_cv_prog_gnu_ld=yes
John Criswell47fdd832003-07-14 16:52:07 +00003715 ;;
3716*)
John Criswell7a73b802003-06-30 21:59:07 +00003717 lt_cv_prog_gnu_ld=no
John Criswell47fdd832003-07-14 16:52:07 +00003718 ;;
3719esac
John Criswell7a73b802003-06-30 21:59:07 +00003720fi
3721echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3722echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3723with_gnu_ld=$lt_cv_prog_gnu_ld
3724
3725
3726echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3727echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3728if test "${lt_cv_ld_reload_flag+set}" = set; then
3729 echo $ECHO_N "(cached) $ECHO_C" >&6
3730else
3731 lt_cv_ld_reload_flag='-r'
3732fi
3733echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3734echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3735reload_flag=$lt_cv_ld_reload_flag
John Criswell47fdd832003-07-14 16:52:07 +00003736case $reload_flag in
3737"" | " "*) ;;
3738*) reload_flag=" $reload_flag" ;;
3739esac
3740reload_cmds='$LD$reload_flag -o $output$reload_objs'
John Criswell7a73b802003-06-30 21:59:07 +00003741
3742echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3743echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3744if test "${lt_cv_path_NM+set}" = set; then
3745 echo $ECHO_N "(cached) $ECHO_C" >&6
3746else
3747 if test -n "$NM"; then
3748 # Let the user override the test.
3749 lt_cv_path_NM="$NM"
3750else
John Criswell47fdd832003-07-14 16:52:07 +00003751 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +00003752 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
John Criswell47fdd832003-07-14 16:52:07 +00003753 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00003754 test -z "$ac_dir" && ac_dir=.
John Criswell47fdd832003-07-14 16:52:07 +00003755 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3756 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
John Criswell7a73b802003-06-30 21:59:07 +00003757 # Check to see if the nm accepts a BSD-compat flag.
3758 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3759 # nm: unknown option "B" ignored
3760 # Tru64's nm complains that /dev/null is an invalid object file
John Criswell47fdd832003-07-14 16:52:07 +00003761 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3762 */dev/null* | *'Invalid file or object type'*)
John Criswell7a73b802003-06-30 21:59:07 +00003763 lt_cv_path_NM="$tmp_nm -B"
3764 break
John Criswell47fdd832003-07-14 16:52:07 +00003765 ;;
3766 *)
3767 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3768 */dev/null*)
3769 lt_cv_path_NM="$tmp_nm -p"
3770 break
3771 ;;
3772 *)
3773 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3774 continue # so that we can try to find one that supports BSD flags
3775 ;;
3776 esac
3777 esac
John Criswell7a73b802003-06-30 21:59:07 +00003778 fi
3779 done
John Criswell47fdd832003-07-14 16:52:07 +00003780 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00003781 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3782fi
3783fi
John Criswell47fdd832003-07-14 16:52:07 +00003784echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3785echo "${ECHO_T}$lt_cv_path_NM" >&6
John Criswell7a73b802003-06-30 21:59:07 +00003786NM="$lt_cv_path_NM"
John Criswell7a73b802003-06-30 21:59:07 +00003787
3788echo "$as_me:$LINENO: checking whether ln -s works" >&5
3789echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3790LN_S=$as_ln_s
3791if test "$LN_S" = "ln -s"; then
3792 echo "$as_me:$LINENO: result: yes" >&5
3793echo "${ECHO_T}yes" >&6
3794else
3795 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3796echo "${ECHO_T}no, using $LN_S" >&6
3797fi
3798
John Criswell47fdd832003-07-14 16:52:07 +00003799echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3800echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00003801if test "${lt_cv_deplibs_check_method+set}" = set; then
3802 echo $ECHO_N "(cached) $ECHO_C" >&6
3803else
3804 lt_cv_file_magic_cmd='$MAGIC_CMD'
3805lt_cv_file_magic_test_file=
3806lt_cv_deplibs_check_method='unknown'
3807# Need to set the preceding variable on all platforms that support
3808# interlibrary dependencies.
3809# 'none' -- dependencies not supported.
3810# `unknown' -- same as none, but documents that we really don't know.
3811# 'pass_all' -- all dependencies passed with no checks.
3812# 'test_compile' -- check by making test program.
3813# 'file_magic [[regex]]' -- check by looking for files in library path
John Criswell47fdd832003-07-14 16:52:07 +00003814# which responds to the $file_magic_cmd with a given extended regex.
John Criswell7a73b802003-06-30 21:59:07 +00003815# If you have `file' or equivalent on your system and you're not sure
3816# whether `pass_all' will *always* work, you probably want this one.
3817
3818case $host_os in
3819aix4* | aix5*)
3820 lt_cv_deplibs_check_method=pass_all
3821 ;;
3822
3823beos*)
3824 lt_cv_deplibs_check_method=pass_all
3825 ;;
3826
3827bsdi4*)
3828 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3829 lt_cv_file_magic_cmd='/usr/bin/file -L'
3830 lt_cv_file_magic_test_file=/shlib/libc.so
3831 ;;
3832
3833cygwin* | mingw* | pw32*)
John Criswell47fdd832003-07-14 16:52:07 +00003834 # win32_libid is a shell function defined in ltmain.sh
3835 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3836 lt_cv_file_magic_cmd='win32_libid'
John Criswell7a73b802003-06-30 21:59:07 +00003837 ;;
3838
3839darwin* | rhapsody*)
John Criswell47fdd832003-07-14 16:52:07 +00003840 # this will be overwritten by pass_all, but leave it in just in case
John Criswell7a73b802003-06-30 21:59:07 +00003841 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3842 lt_cv_file_magic_cmd='/usr/bin/file -L'
3843 case "$host_os" in
3844 rhapsody* | darwin1.[012])
John Criswell47fdd832003-07-14 16:52:07 +00003845 lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
John Criswell7a73b802003-06-30 21:59:07 +00003846 ;;
3847 *) # Darwin 1.3 on
3848 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3849 ;;
3850 esac
John Criswell47fdd832003-07-14 16:52:07 +00003851 lt_cv_deplibs_check_method=pass_all
John Criswell7a73b802003-06-30 21:59:07 +00003852 ;;
3853
3854freebsd*)
3855 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3856 case $host_cpu in
3857 i*86 )
3858 # Not sure whether the presence of OpenBSD here was a mistake.
3859 # Let's accept both of them until this is cleared up.
3860 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3861 lt_cv_file_magic_cmd=/usr/bin/file
3862 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3863 ;;
3864 esac
3865 else
3866 lt_cv_deplibs_check_method=pass_all
3867 fi
3868 ;;
3869
3870gnu*)
3871 lt_cv_deplibs_check_method=pass_all
3872 ;;
3873
John Criswell47fdd832003-07-14 16:52:07 +00003874hpux10.20* | hpux11*)
John Criswell7a73b802003-06-30 21:59:07 +00003875 lt_cv_file_magic_cmd=/usr/bin/file
John Criswell47fdd832003-07-14 16:52:07 +00003876 case "$host_cpu" in
3877 ia64*)
3878 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3879 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3880 ;;
3881 hppa*64*)
3882 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]'
3883 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3884 ;;
3885 *)
3886 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3887 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3888 ;;
3889 esac
John Criswell7a73b802003-06-30 21:59:07 +00003890 ;;
3891
John Criswell47fdd832003-07-14 16:52:07 +00003892irix5* | irix6* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +00003893 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00003894 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +00003895 # this will be overridden with pass_all, but let us keep it just in case
3896 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3897 ;;
3898 *)
3899 case $LD in
3900 *-32|*"-32 ") libmagic=32-bit;;
3901 *-n32|*"-n32 ") libmagic=N32;;
3902 *-64|*"-64 ") libmagic=64-bit;;
3903 *) libmagic=never-match;;
3904 esac
3905 # this will be overridden with pass_all, but let us keep it just in case
3906 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3907 ;;
3908 esac
3909 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3910 lt_cv_deplibs_check_method=pass_all
3911 ;;
3912
3913# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +00003914linux*)
John Criswell7a73b802003-06-30 21:59:07 +00003915 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +00003916 alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*)
John Criswell7a73b802003-06-30 21:59:07 +00003917 lt_cv_deplibs_check_method=pass_all ;;
3918 *)
3919 # glibc up to 2.1.1 does not perform some relocations on ARM
3920 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3921 esac
3922 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3923 ;;
3924
3925netbsd*)
3926 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +00003927 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
John Criswell7a73b802003-06-30 21:59:07 +00003928 else
John Criswell47fdd832003-07-14 16:52:07 +00003929 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
John Criswell7a73b802003-06-30 21:59:07 +00003930 fi
3931 ;;
3932
3933newos6*)
3934 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3935 lt_cv_file_magic_cmd=/usr/bin/file
3936 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3937 ;;
3938
John Criswell47fdd832003-07-14 16:52:07 +00003939nto-qnx)
3940 lt_cv_deplibs_check_method=unknown
3941 ;;
3942
John Criswell7a73b802003-06-30 21:59:07 +00003943openbsd*)
3944 lt_cv_file_magic_cmd=/usr/bin/file
3945 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3946 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3947 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3948 else
3949 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3950 fi
3951 ;;
3952
3953osf3* | osf4* | osf5*)
3954 # this will be overridden with pass_all, but let us keep it just in case
3955 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3956 lt_cv_file_magic_test_file=/shlib/libc.so
3957 lt_cv_deplibs_check_method=pass_all
3958 ;;
3959
3960sco3.2v5*)
3961 lt_cv_deplibs_check_method=pass_all
3962 ;;
3963
3964solaris*)
3965 lt_cv_deplibs_check_method=pass_all
3966 lt_cv_file_magic_test_file=/lib/libc.so
3967 ;;
3968
John Criswell7a73b802003-06-30 21:59:07 +00003969sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3970 case $host_vendor in
3971 motorola)
3972 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]'
3973 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3974 ;;
3975 ncr)
3976 lt_cv_deplibs_check_method=pass_all
3977 ;;
3978 sequent)
3979 lt_cv_file_magic_cmd='/bin/file'
3980 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3981 ;;
3982 sni)
3983 lt_cv_file_magic_cmd='/bin/file'
3984 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3985 lt_cv_file_magic_test_file=/lib/libc.so
3986 ;;
John Criswell47fdd832003-07-14 16:52:07 +00003987 siemens)
3988 lt_cv_deplibs_check_method=pass_all
3989 ;;
John Criswell7a73b802003-06-30 21:59:07 +00003990 esac
3991 ;;
John Criswell47fdd832003-07-14 16:52:07 +00003992
3993sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3994 lt_cv_deplibs_check_method=pass_all
3995 ;;
John Criswell7a73b802003-06-30 21:59:07 +00003996esac
3997
3998fi
3999echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4000echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4001file_magic_cmd=$lt_cv_file_magic_cmd
4002deplibs_check_method=$lt_cv_deplibs_check_method
John Criswell47fdd832003-07-14 16:52:07 +00004003test -z "$deplibs_check_method" && deplibs_check_method=unknown
John Criswell7a73b802003-06-30 21:59:07 +00004004
4005
4006
4007
John Criswell47fdd832003-07-14 16:52:07 +00004008# If no C compiler was specified, use CC.
4009LTCC=${LTCC-"$CC"}
John Criswell7a73b802003-06-30 21:59:07 +00004010
John Criswell47fdd832003-07-14 16:52:07 +00004011# Allow CC to be a program name with arguments.
4012compiler=$CC
John Criswell7a73b802003-06-30 21:59:07 +00004013
John Criswell47fdd832003-07-14 16:52:07 +00004014# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4015if test "${enable_libtool_lock+set}" = set; then
4016 enableval="$enable_libtool_lock"
John Criswell7a73b802003-06-30 21:59:07 +00004017
John Criswell47fdd832003-07-14 16:52:07 +00004018fi;
4019test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
John Criswell7a73b802003-06-30 21:59:07 +00004020
John Criswell47fdd832003-07-14 16:52:07 +00004021# Some flags need to be propagated to the compiler or linker for good
4022# libtool support.
4023case $host in
4024ia64-*-hpux*)
4025 # Find out which ABI we are using.
4026 echo 'int i;' > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004027 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4028 (eval $ac_compile) 2>&5
4029 ac_status=$?
4030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4031 (exit $ac_status); }; then
John Criswell47fdd832003-07-14 16:52:07 +00004032 case `/usr/bin/file conftest.$ac_objext` in
4033 *ELF-32*)
4034 HPUX_IA64_MODE="32"
4035 ;;
4036 *ELF-64*)
4037 HPUX_IA64_MODE="64"
4038 ;;
4039 esac
4040 fi
4041 rm -rf conftest*
4042 ;;
4043*-*-irix6*)
4044 # Find out which ABI we are using.
John Criswell33a911a2003-11-25 20:36:46 +00004045 echo '#line 4045 "configure"' > conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +00004046 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4047 (eval $ac_compile) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00004048 ac_status=$?
4049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00004050 (exit $ac_status); }; then
4051 if test "$lt_cv_prog_gnu_ld" = yes; then
4052 case `/usr/bin/file conftest.$ac_objext` in
4053 *32-bit*)
4054 LD="${LD-ld} -melf32bsmip"
4055 ;;
4056 *N32*)
4057 LD="${LD-ld} -melf32bmipn32"
4058 ;;
4059 *64-bit*)
4060 LD="${LD-ld} -melf64bmip"
4061 ;;
4062 esac
4063 else
4064 case `/usr/bin/file conftest.$ac_objext` in
4065 *32-bit*)
4066 LD="${LD-ld} -32"
4067 ;;
4068 *N32*)
4069 LD="${LD-ld} -n32"
4070 ;;
4071 *64-bit*)
4072 LD="${LD-ld} -64"
4073 ;;
4074 esac
4075 fi
4076 fi
4077 rm -rf conftest*
4078 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004079
John Criswell47fdd832003-07-14 16:52:07 +00004080x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4081 # Find out which ABI we are using.
4082 echo 'int i;' > conftest.$ac_ext
4083 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4084 (eval $ac_compile) 2>&5
4085 ac_status=$?
4086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4087 (exit $ac_status); }; then
4088 case "`/usr/bin/file conftest.o`" in
4089 *32-bit*)
4090 case $host in
4091 x86_64-*linux*)
4092 LD="${LD-ld} -m elf_i386"
4093 ;;
4094 ppc64-*linux*)
4095 LD="${LD-ld} -m elf32ppclinux"
4096 ;;
4097 s390x-*linux*)
4098 LD="${LD-ld} -m elf_s390"
4099 ;;
4100 sparc64-*linux*)
4101 LD="${LD-ld} -m elf32_sparc"
4102 ;;
4103 esac
4104 ;;
4105 *64-bit*)
4106 case $host in
4107 x86_64-*linux*)
4108 LD="${LD-ld} -m elf_x86_64"
4109 ;;
4110 ppc*-*linux*|powerpc*-*linux*)
4111 LD="${LD-ld} -m elf64ppc"
4112 ;;
4113 s390*-*linux*)
4114 LD="${LD-ld} -m elf64_s390"
4115 ;;
4116 sparc*-*linux*)
4117 LD="${LD-ld} -m elf64_sparc"
4118 ;;
4119 esac
4120 ;;
4121 esac
4122 fi
4123 rm -rf conftest*
4124 ;;
4125
4126*-*-sco3.2v5*)
4127 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4128 SAVE_CFLAGS="$CFLAGS"
4129 CFLAGS="$CFLAGS -belf"
4130 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4131echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4132if test "${lt_cv_cc_needs_belf+set}" = set; then
4133 echo $ECHO_N "(cached) $ECHO_C" >&6
4134else
4135 ac_ext=c
4136ac_cpp='$CPP $CPPFLAGS'
4137ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4138ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4139ac_compiler_gnu=$ac_cv_c_compiler_gnu
4140
4141 cat >conftest.$ac_ext <<_ACEOF
4142#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004143/* confdefs.h. */
4144_ACEOF
4145cat confdefs.h >>conftest.$ac_ext
4146cat >>conftest.$ac_ext <<_ACEOF
4147/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00004148
John Criswell47fdd832003-07-14 16:52:07 +00004149int
4150main ()
John Criswell7a73b802003-06-30 21:59:07 +00004151{
John Criswell7a73b802003-06-30 21:59:07 +00004152
John Criswell47fdd832003-07-14 16:52:07 +00004153 ;
4154 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00004155}
John Criswell47fdd832003-07-14 16:52:07 +00004156_ACEOF
4157rm -f conftest.$ac_objext conftest$ac_exeext
4158if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
John Criswell7a73b802003-06-30 21:59:07 +00004159 (eval $ac_link) 2>&5
4160 ac_status=$?
4161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00004162 (exit $ac_status); } &&
4163 { ac_try='test -s conftest$ac_exeext'
4164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4165 (eval $ac_try) 2>&5
4166 ac_status=$?
4167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4168 (exit $ac_status); }; }; then
4169 lt_cv_cc_needs_belf=yes
John Criswell7a73b802003-06-30 21:59:07 +00004170else
John Criswell47fdd832003-07-14 16:52:07 +00004171 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004172sed 's/^/| /' conftest.$ac_ext >&5
4173
John Criswell47fdd832003-07-14 16:52:07 +00004174lt_cv_cc_needs_belf=no
John Criswell7a73b802003-06-30 21:59:07 +00004175fi
John Criswell47fdd832003-07-14 16:52:07 +00004176rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4177 ac_ext=c
4178ac_cpp='$CPP $CPPFLAGS'
4179ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4180ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4181ac_compiler_gnu=$ac_cv_c_compiler_gnu
4182
John Criswell7a73b802003-06-30 21:59:07 +00004183fi
John Criswell47fdd832003-07-14 16:52:07 +00004184echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4185echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4186 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4187 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4188 CFLAGS="$SAVE_CFLAGS"
4189 fi
4190 ;;
4191
4192esac
4193
4194need_locks="$enable_libtool_lock"
4195
John Criswell7a73b802003-06-30 21:59:07 +00004196
4197
4198echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4199echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4200if test "${ac_cv_header_stdc+set}" = set; then
4201 echo $ECHO_N "(cached) $ECHO_C" >&6
4202else
4203 cat >conftest.$ac_ext <<_ACEOF
4204#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004205/* confdefs.h. */
4206_ACEOF
4207cat confdefs.h >>conftest.$ac_ext
4208cat >>conftest.$ac_ext <<_ACEOF
4209/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004210#include <stdlib.h>
4211#include <stdarg.h>
4212#include <string.h>
4213#include <float.h>
4214
John Criswell0c38eaf2003-09-10 15:17:25 +00004215int
4216main ()
4217{
4218
4219 ;
4220 return 0;
4221}
John Criswell7a73b802003-06-30 21:59:07 +00004222_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004223rm -f conftest.$ac_objext
4224if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4225 (eval $ac_compile) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00004226 ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +00004227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004228 (exit $ac_status); } &&
4229 { ac_try='test -s conftest.$ac_objext'
4230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4231 (eval $ac_try) 2>&5
4232 ac_status=$?
4233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4234 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00004235 ac_cv_header_stdc=yes
4236else
4237 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004238sed 's/^/| /' conftest.$ac_ext >&5
4239
4240ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00004241fi
John Criswell0c38eaf2003-09-10 15:17:25 +00004242rm -f conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004243
4244if test $ac_cv_header_stdc = yes; then
4245 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4246 cat >conftest.$ac_ext <<_ACEOF
4247#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004248/* confdefs.h. */
4249_ACEOF
4250cat confdefs.h >>conftest.$ac_ext
4251cat >>conftest.$ac_ext <<_ACEOF
4252/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004253#include <string.h>
4254
4255_ACEOF
4256if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00004257 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00004258 :
4259else
4260 ac_cv_header_stdc=no
4261fi
4262rm -f conftest*
4263
4264fi
4265
4266if test $ac_cv_header_stdc = yes; then
4267 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4268 cat >conftest.$ac_ext <<_ACEOF
4269#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004270/* confdefs.h. */
4271_ACEOF
4272cat confdefs.h >>conftest.$ac_ext
4273cat >>conftest.$ac_ext <<_ACEOF
4274/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004275#include <stdlib.h>
4276
4277_ACEOF
4278if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00004279 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00004280 :
4281else
4282 ac_cv_header_stdc=no
4283fi
4284rm -f conftest*
4285
4286fi
4287
4288if test $ac_cv_header_stdc = yes; then
4289 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4290 if test "$cross_compiling" = yes; then
4291 :
4292else
4293 cat >conftest.$ac_ext <<_ACEOF
4294#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004295/* confdefs.h. */
4296_ACEOF
4297cat confdefs.h >>conftest.$ac_ext
4298cat >>conftest.$ac_ext <<_ACEOF
4299/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004300#include <ctype.h>
4301#if ((' ' & 0x0FF) == 0x020)
4302# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4303# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4304#else
John Criswell0c38eaf2003-09-10 15:17:25 +00004305# define ISLOWER(c) \
4306 (('a' <= (c) && (c) <= 'i') \
John Criswell7a73b802003-06-30 21:59:07 +00004307 || ('j' <= (c) && (c) <= 'r') \
4308 || ('s' <= (c) && (c) <= 'z'))
4309# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4310#endif
4311
4312#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4313int
4314main ()
4315{
4316 int i;
4317 for (i = 0; i < 256; i++)
4318 if (XOR (islower (i), ISLOWER (i))
4319 || toupper (i) != TOUPPER (i))
4320 exit(2);
4321 exit (0);
4322}
4323_ACEOF
4324rm -f conftest$ac_exeext
4325if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4326 (eval $ac_link) 2>&5
4327 ac_status=$?
4328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4329 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4331 (eval $ac_try) 2>&5
4332 ac_status=$?
4333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4334 (exit $ac_status); }; }; then
4335 :
4336else
4337 echo "$as_me: program exited with status $ac_status" >&5
4338echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004339sed 's/^/| /' conftest.$ac_ext >&5
4340
John Criswell7a73b802003-06-30 21:59:07 +00004341( exit $ac_status )
4342ac_cv_header_stdc=no
4343fi
John Criswell0c38eaf2003-09-10 15:17:25 +00004344rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004345fi
4346fi
4347fi
4348echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4349echo "${ECHO_T}$ac_cv_header_stdc" >&6
4350if test $ac_cv_header_stdc = yes; then
4351
4352cat >>confdefs.h <<\_ACEOF
4353#define STDC_HEADERS 1
4354_ACEOF
4355
4356fi
4357
4358# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4359
4360
4361
4362
4363
4364
4365
4366
4367
4368for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4369 inttypes.h stdint.h unistd.h
4370do
4371as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4372echo "$as_me:$LINENO: checking for $ac_header" >&5
4373echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4374if eval "test \"\${$as_ac_Header+set}\" = set"; then
4375 echo $ECHO_N "(cached) $ECHO_C" >&6
4376else
4377 cat >conftest.$ac_ext <<_ACEOF
4378#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004379/* confdefs.h. */
4380_ACEOF
4381cat confdefs.h >>conftest.$ac_ext
4382cat >>conftest.$ac_ext <<_ACEOF
4383/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004384$ac_includes_default
4385
4386#include <$ac_header>
4387_ACEOF
4388rm -f conftest.$ac_objext
4389if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4390 (eval $ac_compile) 2>&5
4391 ac_status=$?
4392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4393 (exit $ac_status); } &&
4394 { ac_try='test -s conftest.$ac_objext'
4395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4396 (eval $ac_try) 2>&5
4397 ac_status=$?
4398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4399 (exit $ac_status); }; }; then
4400 eval "$as_ac_Header=yes"
4401else
4402 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004403sed 's/^/| /' conftest.$ac_ext >&5
4404
John Criswell7a73b802003-06-30 21:59:07 +00004405eval "$as_ac_Header=no"
4406fi
4407rm -f conftest.$ac_objext conftest.$ac_ext
4408fi
4409echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4410echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4411if test `eval echo '${'$as_ac_Header'}'` = yes; then
4412 cat >>confdefs.h <<_ACEOF
4413#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4414_ACEOF
4415
4416fi
4417
4418done
4419
4420
4421
4422for ac_header in dlfcn.h
4423do
4424as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4425if eval "test \"\${$as_ac_Header+set}\" = set"; then
4426 echo "$as_me:$LINENO: checking for $ac_header" >&5
4427echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4428if eval "test \"\${$as_ac_Header+set}\" = set"; then
4429 echo $ECHO_N "(cached) $ECHO_C" >&6
4430fi
4431echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4432echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4433else
4434 # Is the header compilable?
4435echo "$as_me:$LINENO: checking $ac_header usability" >&5
4436echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4437cat >conftest.$ac_ext <<_ACEOF
4438#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004439/* confdefs.h. */
4440_ACEOF
4441cat confdefs.h >>conftest.$ac_ext
4442cat >>conftest.$ac_ext <<_ACEOF
4443/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004444$ac_includes_default
4445#include <$ac_header>
4446_ACEOF
4447rm -f conftest.$ac_objext
4448if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4449 (eval $ac_compile) 2>&5
4450 ac_status=$?
4451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4452 (exit $ac_status); } &&
4453 { ac_try='test -s conftest.$ac_objext'
4454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4455 (eval $ac_try) 2>&5
4456 ac_status=$?
4457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4458 (exit $ac_status); }; }; then
4459 ac_header_compiler=yes
4460else
4461 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004462sed 's/^/| /' conftest.$ac_ext >&5
4463
John Criswell7a73b802003-06-30 21:59:07 +00004464ac_header_compiler=no
4465fi
4466rm -f conftest.$ac_objext conftest.$ac_ext
4467echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4468echo "${ECHO_T}$ac_header_compiler" >&6
4469
4470# Is the header present?
4471echo "$as_me:$LINENO: checking $ac_header presence" >&5
4472echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4473cat >conftest.$ac_ext <<_ACEOF
4474#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004475/* confdefs.h. */
4476_ACEOF
4477cat confdefs.h >>conftest.$ac_ext
4478cat >>conftest.$ac_ext <<_ACEOF
4479/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004480#include <$ac_header>
4481_ACEOF
4482if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4483 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4484 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004485 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00004486 rm -f conftest.er1
4487 cat conftest.err >&5
4488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4489 (exit $ac_status); } >/dev/null; then
4490 if test -s conftest.err; then
4491 ac_cpp_err=$ac_c_preproc_warn_flag
4492 else
4493 ac_cpp_err=
4494 fi
4495else
4496 ac_cpp_err=yes
4497fi
4498if test -z "$ac_cpp_err"; then
4499 ac_header_preproc=yes
4500else
4501 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004502sed 's/^/| /' conftest.$ac_ext >&5
4503
John Criswell7a73b802003-06-30 21:59:07 +00004504 ac_header_preproc=no
4505fi
4506rm -f conftest.err conftest.$ac_ext
4507echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4508echo "${ECHO_T}$ac_header_preproc" >&6
4509
4510# So? What about this header?
4511case $ac_header_compiler:$ac_header_preproc in
4512 yes:no )
4513 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4514echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4515 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004516echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4517 (
4518 cat <<\_ASBOX
4519## ------------------------------------ ##
4520## Report this to bug-autoconf@gnu.org. ##
4521## ------------------------------------ ##
4522_ASBOX
4523 ) |
4524 sed "s/^/$as_me: WARNING: /" >&2
4525 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004526 no:yes )
4527 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4528echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4529 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4530echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4531 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004532echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4533 (
4534 cat <<\_ASBOX
4535## ------------------------------------ ##
4536## Report this to bug-autoconf@gnu.org. ##
4537## ------------------------------------ ##
4538_ASBOX
4539 ) |
4540 sed "s/^/$as_me: WARNING: /" >&2
4541 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004542esac
4543echo "$as_me:$LINENO: checking for $ac_header" >&5
4544echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4545if eval "test \"\${$as_ac_Header+set}\" = set"; then
4546 echo $ECHO_N "(cached) $ECHO_C" >&6
4547else
4548 eval "$as_ac_Header=$ac_header_preproc"
4549fi
4550echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4551echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4552
4553fi
4554if test `eval echo '${'$as_ac_Header'}'` = yes; then
4555 cat >>confdefs.h <<_ACEOF
4556#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4557_ACEOF
4558
4559fi
4560
4561done
4562
John Criswell47fdd832003-07-14 16:52:07 +00004563ac_ext=cc
4564ac_cpp='$CXXCPP $CPPFLAGS'
4565ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4566ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4567ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4568echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4569echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4570if test -z "$CXXCPP"; then
4571 if test "${ac_cv_prog_CXXCPP+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00004572 echo $ECHO_N "(cached) $ECHO_C" >&6
4573else
John Criswell47fdd832003-07-14 16:52:07 +00004574 # Double quotes because CXXCPP needs to be expanded
4575 for CXXCPP in "$CXX -E" "/lib/cpp"
4576 do
4577 ac_preproc_ok=false
4578for ac_cxx_preproc_warn_flag in '' yes
4579do
4580 # Use a header file that comes with gcc, so configuring glibc
4581 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00004582 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4583 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +00004584 # On the NeXT, cc -E runs the code through the compiler's parser,
4585 # not just through cpp. "Syntax error" is here to catch this case.
4586 cat >conftest.$ac_ext <<_ACEOF
4587#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004588/* confdefs.h. */
4589_ACEOF
4590cat confdefs.h >>conftest.$ac_ext
4591cat >>conftest.$ac_ext <<_ACEOF
4592/* end confdefs.h. */
4593#ifdef __STDC__
4594# include <limits.h>
4595#else
4596# include <assert.h>
4597#endif
John Criswell47fdd832003-07-14 16:52:07 +00004598 Syntax error
4599_ACEOF
4600if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4601 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4602 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004603 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00004604 rm -f conftest.er1
4605 cat conftest.err >&5
4606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4607 (exit $ac_status); } >/dev/null; then
4608 if test -s conftest.err; then
4609 ac_cpp_err=$ac_cxx_preproc_warn_flag
John Criswell7a73b802003-06-30 21:59:07 +00004610 else
John Criswell47fdd832003-07-14 16:52:07 +00004611 ac_cpp_err=
John Criswell7a73b802003-06-30 21:59:07 +00004612 fi
John Criswell47fdd832003-07-14 16:52:07 +00004613else
4614 ac_cpp_err=yes
4615fi
4616if test -z "$ac_cpp_err"; then
4617 :
4618else
4619 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004620sed 's/^/| /' conftest.$ac_ext >&5
4621
John Criswell47fdd832003-07-14 16:52:07 +00004622 # Broken: fails on valid input.
4623continue
4624fi
4625rm -f conftest.err conftest.$ac_ext
4626
4627 # OK, works on sane cases. Now check whether non-existent headers
4628 # can be detected and how.
4629 cat >conftest.$ac_ext <<_ACEOF
4630#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004631/* confdefs.h. */
4632_ACEOF
4633cat confdefs.h >>conftest.$ac_ext
4634cat >>conftest.$ac_ext <<_ACEOF
4635/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00004636#include <ac_nonexistent.h>
4637_ACEOF
4638if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4639 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4640 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004641 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00004642 rm -f conftest.er1
4643 cat conftest.err >&5
4644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4645 (exit $ac_status); } >/dev/null; then
4646 if test -s conftest.err; then
4647 ac_cpp_err=$ac_cxx_preproc_warn_flag
4648 else
4649 ac_cpp_err=
4650 fi
4651else
4652 ac_cpp_err=yes
4653fi
4654if test -z "$ac_cpp_err"; then
4655 # Broken: success on invalid input.
4656continue
4657else
4658 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004659sed 's/^/| /' conftest.$ac_ext >&5
4660
John Criswell47fdd832003-07-14 16:52:07 +00004661 # Passes both tests.
4662ac_preproc_ok=:
4663break
4664fi
4665rm -f conftest.err conftest.$ac_ext
4666
4667done
4668# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4669rm -f conftest.err conftest.$ac_ext
4670if $ac_preproc_ok; then
4671 break
John Criswell7a73b802003-06-30 21:59:07 +00004672fi
4673
John Criswell47fdd832003-07-14 16:52:07 +00004674 done
4675 ac_cv_prog_CXXCPP=$CXXCPP
4676
4677fi
4678 CXXCPP=$ac_cv_prog_CXXCPP
4679else
4680 ac_cv_prog_CXXCPP=$CXXCPP
4681fi
4682echo "$as_me:$LINENO: result: $CXXCPP" >&5
4683echo "${ECHO_T}$CXXCPP" >&6
4684ac_preproc_ok=false
4685for ac_cxx_preproc_warn_flag in '' yes
4686do
4687 # Use a header file that comes with gcc, so configuring glibc
4688 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00004689 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4690 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +00004691 # On the NeXT, cc -E runs the code through the compiler's parser,
4692 # not just through cpp. "Syntax error" is here to catch this case.
4693 cat >conftest.$ac_ext <<_ACEOF
4694#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004695/* confdefs.h. */
4696_ACEOF
4697cat confdefs.h >>conftest.$ac_ext
4698cat >>conftest.$ac_ext <<_ACEOF
4699/* end confdefs.h. */
4700#ifdef __STDC__
4701# include <limits.h>
4702#else
4703# include <assert.h>
4704#endif
John Criswell47fdd832003-07-14 16:52:07 +00004705 Syntax error
4706_ACEOF
4707if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4708 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4709 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004710 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00004711 rm -f conftest.er1
4712 cat conftest.err >&5
4713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4714 (exit $ac_status); } >/dev/null; then
4715 if test -s conftest.err; then
4716 ac_cpp_err=$ac_cxx_preproc_warn_flag
4717 else
4718 ac_cpp_err=
4719 fi
4720else
4721 ac_cpp_err=yes
4722fi
4723if test -z "$ac_cpp_err"; then
4724 :
4725else
4726 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004727sed 's/^/| /' conftest.$ac_ext >&5
4728
John Criswell47fdd832003-07-14 16:52:07 +00004729 # Broken: fails on valid input.
4730continue
4731fi
4732rm -f conftest.err conftest.$ac_ext
4733
4734 # OK, works on sane cases. Now check whether non-existent headers
4735 # can be detected and how.
4736 cat >conftest.$ac_ext <<_ACEOF
4737#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004738/* confdefs.h. */
4739_ACEOF
4740cat confdefs.h >>conftest.$ac_ext
4741cat >>conftest.$ac_ext <<_ACEOF
4742/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00004743#include <ac_nonexistent.h>
4744_ACEOF
4745if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4746 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4747 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004748 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00004749 rm -f conftest.er1
4750 cat conftest.err >&5
4751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4752 (exit $ac_status); } >/dev/null; then
4753 if test -s conftest.err; then
4754 ac_cpp_err=$ac_cxx_preproc_warn_flag
4755 else
4756 ac_cpp_err=
4757 fi
4758else
4759 ac_cpp_err=yes
4760fi
4761if test -z "$ac_cpp_err"; then
4762 # Broken: success on invalid input.
4763continue
4764else
4765 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004766sed 's/^/| /' conftest.$ac_ext >&5
4767
John Criswell47fdd832003-07-14 16:52:07 +00004768 # Passes both tests.
4769ac_preproc_ok=:
4770break
4771fi
4772rm -f conftest.err conftest.$ac_ext
4773
4774done
4775# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4776rm -f conftest.err conftest.$ac_ext
4777if $ac_preproc_ok; then
4778 :
4779else
John Criswell0c38eaf2003-09-10 15:17:25 +00004780 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4781See \`config.log' for more details." >&5
4782echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4783See \`config.log' for more details." >&2;}
John Criswell47fdd832003-07-14 16:52:07 +00004784 { (exit 1); exit 1; }; }
4785fi
4786
4787ac_ext=cc
4788ac_cpp='$CXXCPP $CPPFLAGS'
4789ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4790ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4791ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4792
4793
4794ac_ext=f
4795ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4796ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4797ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4798if test -n "$ac_tool_prefix"; then
John Criswell0c38eaf2003-09-10 15:17:25 +00004799 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 +00004800 do
4801 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4802set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4803echo "$as_me:$LINENO: checking for $ac_word" >&5
4804echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4805if test "${ac_cv_prog_F77+set}" = set; then
4806 echo $ECHO_N "(cached) $ECHO_C" >&6
4807else
4808 if test -n "$F77"; then
4809 ac_cv_prog_F77="$F77" # Let the user override the test.
4810else
4811as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4812for as_dir in $PATH
4813do
4814 IFS=$as_save_IFS
4815 test -z "$as_dir" && as_dir=.
4816 for ac_exec_ext in '' $ac_executable_extensions; do
4817 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4818 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4819 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4820 break 2
4821 fi
4822done
4823done
4824
4825fi
4826fi
4827F77=$ac_cv_prog_F77
4828if test -n "$F77"; then
4829 echo "$as_me:$LINENO: result: $F77" >&5
4830echo "${ECHO_T}$F77" >&6
4831else
4832 echo "$as_me:$LINENO: result: no" >&5
4833echo "${ECHO_T}no" >&6
4834fi
4835
4836 test -n "$F77" && break
4837 done
4838fi
4839if test -z "$F77"; then
4840 ac_ct_F77=$F77
John Criswell0c38eaf2003-09-10 15:17:25 +00004841 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 +00004842do
4843 # Extract the first word of "$ac_prog", so it can be a program name with args.
4844set dummy $ac_prog; ac_word=$2
4845echo "$as_me:$LINENO: checking for $ac_word" >&5
4846echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4847if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
4848 echo $ECHO_N "(cached) $ECHO_C" >&6
4849else
4850 if test -n "$ac_ct_F77"; then
4851 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4852else
4853as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4854for as_dir in $PATH
4855do
4856 IFS=$as_save_IFS
4857 test -z "$as_dir" && as_dir=.
4858 for ac_exec_ext in '' $ac_executable_extensions; do
4859 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4860 ac_cv_prog_ac_ct_F77="$ac_prog"
4861 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4862 break 2
4863 fi
4864done
4865done
4866
4867fi
4868fi
4869ac_ct_F77=$ac_cv_prog_ac_ct_F77
4870if test -n "$ac_ct_F77"; then
4871 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
4872echo "${ECHO_T}$ac_ct_F77" >&6
4873else
4874 echo "$as_me:$LINENO: result: no" >&5
4875echo "${ECHO_T}no" >&6
4876fi
4877
4878 test -n "$ac_ct_F77" && break
4879done
4880
4881 F77=$ac_ct_F77
4882fi
4883
4884
4885# Provide some information about the compiler.
John Criswell33a911a2003-11-25 20:36:46 +00004886echo "$as_me:4886:" \
John Criswell47fdd832003-07-14 16:52:07 +00004887 "checking for Fortran 77 compiler version" >&5
4888ac_compiler=`set X $ac_compile; echo $2`
4889{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4890 (eval $ac_compiler --version </dev/null >&5) 2>&5
4891 ac_status=$?
4892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4893 (exit $ac_status); }
4894{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4895 (eval $ac_compiler -v </dev/null >&5) 2>&5
4896 ac_status=$?
4897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4898 (exit $ac_status); }
4899{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4900 (eval $ac_compiler -V </dev/null >&5) 2>&5
4901 ac_status=$?
4902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4903 (exit $ac_status); }
4904
4905# If we don't use `.F' as extension, the preprocessor is not run on the
4906# input file.
4907ac_save_ext=$ac_ext
4908ac_ext=F
4909echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
4910echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
4911if test "${ac_cv_f77_compiler_gnu+set}" = set; then
4912 echo $ECHO_N "(cached) $ECHO_C" >&6
4913else
4914 cat >conftest.$ac_ext <<_ACEOF
4915 program main
4916#ifndef __GNUC__
4917 choke me
4918#endif
4919
4920 end
4921_ACEOF
4922rm -f conftest.$ac_objext
4923if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4924 (eval $ac_compile) 2>&5
4925 ac_status=$?
4926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4927 (exit $ac_status); } &&
4928 { ac_try='test -s conftest.$ac_objext'
4929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4930 (eval $ac_try) 2>&5
4931 ac_status=$?
4932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4933 (exit $ac_status); }; }; then
4934 ac_compiler_gnu=yes
4935else
4936 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004937sed 's/^/| /' conftest.$ac_ext >&5
4938
John Criswell47fdd832003-07-14 16:52:07 +00004939ac_compiler_gnu=no
4940fi
4941rm -f conftest.$ac_objext conftest.$ac_ext
4942ac_cv_f77_compiler_gnu=$ac_compiler_gnu
4943
4944fi
4945echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
4946echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
4947ac_ext=$ac_save_ext
4948G77=`test $ac_compiler_gnu = yes && echo yes`
4949ac_test_FFLAGS=${FFLAGS+set}
4950ac_save_FFLAGS=$FFLAGS
4951FFLAGS=
4952echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
4953echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
4954if test "${ac_cv_prog_f77_g+set}" = set; then
4955 echo $ECHO_N "(cached) $ECHO_C" >&6
4956else
4957 FFLAGS=-g
4958cat >conftest.$ac_ext <<_ACEOF
4959 program main
4960
4961 end
4962_ACEOF
4963rm -f conftest.$ac_objext
4964if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4965 (eval $ac_compile) 2>&5
4966 ac_status=$?
4967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4968 (exit $ac_status); } &&
4969 { ac_try='test -s conftest.$ac_objext'
4970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4971 (eval $ac_try) 2>&5
4972 ac_status=$?
4973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4974 (exit $ac_status); }; }; then
4975 ac_cv_prog_f77_g=yes
4976else
4977 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004978sed 's/^/| /' conftest.$ac_ext >&5
4979
John Criswell47fdd832003-07-14 16:52:07 +00004980ac_cv_prog_f77_g=no
4981fi
4982rm -f conftest.$ac_objext conftest.$ac_ext
4983
4984fi
4985echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
4986echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
4987if test "$ac_test_FFLAGS" = set; then
4988 FFLAGS=$ac_save_FFLAGS
4989elif test $ac_cv_prog_f77_g = yes; then
4990 if test "$G77" = yes; then
4991 FFLAGS="-g -O2"
4992 else
4993 FFLAGS="-g"
4994 fi
4995else
4996 if test "$G77" = yes; then
4997 FFLAGS="-O2"
4998 else
4999 FFLAGS=
5000 fi
5001fi
5002ac_ext=c
5003ac_cpp='$CPP $CPPFLAGS'
5004ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5005ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5006ac_compiler_gnu=$ac_cv_c_compiler_gnu
5007
5008
5009
5010# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5011
5012# find the maximum length of command line arguments
5013echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5014echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5015if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5016 echo $ECHO_N "(cached) $ECHO_C" >&6
5017else
5018 i=0
5019 testring="ABCD"
5020
5021 case $build_os in
5022 msdosdjgpp*)
5023 # On DJGPP, this test can blow up pretty badly due to problems in libc
5024 # (any single argument exceeding 2000 bytes causes a buffer overrun
5025 # during glob expansion). Even if it were fixed, the result of this
5026 # check would be larger than it should be.
5027 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5028 ;;
5029
5030 gnu*)
5031 # Under GNU Hurd, this test is not required because there is
5032 # no limit to the length of command line arguments.
5033 # Libtool will interpret -1 as no limit whatsoever
5034 lt_cv_sys_max_cmd_len=-1;
5035 ;;
5036
5037 cygwin* | mingw*)
5038 # On Win9x/ME, this test blows up -- it succeeds, but takes
5039 # about 5 minutes as the teststring grows exponentially.
5040 # Worse, since 9x/ME are not pre-emptively multitasking,
5041 # you end up with a "frozen" computer, even though with patience
5042 # the test eventually succeeds (with a max line length of 256k).
5043 # Instead, let's just punt: use the minimum linelength reported by
5044 # all of the supported platforms: 8192 (on NT/2K/XP).
5045 lt_cv_sys_max_cmd_len=8192;
5046 ;;
5047
5048 *)
5049 # If test is not a shell built-in, we'll probably end up computing a
5050 # maximum length that is only half of the actual maximum length, but
5051 # we can't tell.
5052 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5053 = "XX$testring") >/dev/null 2>&1 &&
5054 new_result=`expr "X$testring" : ".*" 2>&1` &&
5055 lt_cv_sys_max_cmd_len=$new_result &&
5056 test $i != 17 # 1/2 MB should be enough
5057 do
5058 i=`expr $i + 1`
5059 testring=$testring$testring
5060 done
5061 testring=
5062 # Add a significant safety factor because C++ compilers can tack on massive
5063 # amounts of additional arguments before passing them to the linker.
5064 # It appears as though 1/2 is a usable value.
5065 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5066 ;;
5067 esac
5068
5069fi
5070
5071if test -n $lt_cv_sys_max_cmd_len ; then
5072 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5073echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5074else
5075 echo "$as_me:$LINENO: result: none" >&5
5076echo "${ECHO_T}none" >&6
5077fi
5078
5079
5080
5081
5082# Check for command to grab the raw symbol name followed by C symbol from nm.
5083echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5084echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5085if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5086 echo $ECHO_N "(cached) $ECHO_C" >&6
5087else
5088
5089# These are sane defaults that work on at least a few old systems.
5090# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5091
5092# Character class describing NM global symbol codes.
5093symcode='[BCDEGRST]'
5094
5095# Regexp to match symbols that can be accessed directly from C.
5096sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5097
5098# Transform the above into a raw symbol and a C symbol.
5099symxfrm='\1 \2\3 \3'
5100
5101# Transform an extracted symbol line into a proper C declaration
5102lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5103
5104# Transform an extracted symbol line into symbol name and symbol address
5105lt_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'"
5106
5107# Define system-specific variables.
5108case $host_os in
5109aix*)
5110 symcode='[BCDT]'
5111 ;;
5112cygwin* | mingw* | pw32*)
5113 symcode='[ABCDGISTW]'
5114 ;;
5115hpux*) # Its linker distinguishes data from code symbols
5116 if test "$host_cpu" = ia64; then
5117 symcode='[ABCDEGRST]'
5118 fi
5119 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5120 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'"
5121 ;;
5122irix* | nonstopux*)
5123 symcode='[BCDEGRST]'
5124 ;;
5125osf*)
5126 symcode='[BCDEGQRST]'
5127 ;;
5128solaris* | sysv5*)
5129 symcode='[BDT]'
5130 ;;
5131sysv4)
5132 symcode='[DFNSTU]'
5133 ;;
5134esac
5135
5136# Handle CRLF in mingw tool chain
5137opt_cr=
5138case $build_os in
5139mingw*)
5140 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5141 ;;
5142esac
5143
5144# If we're using GNU nm, then use its standard symbol codes.
5145case `$NM -V 2>&1` in
5146*GNU* | *'with BFD'*)
5147 symcode='[ABCDGISTW]' ;;
5148esac
5149
5150# Try without a prefix undercore, then with it.
5151for ac_symprfx in "" "_"; do
5152
5153 # Write the raw and C identifiers.
5154 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5155
5156 # Check to see that the pipe works correctly.
5157 pipe_works=no
5158
5159 rm -f conftest*
5160 cat > conftest.$ac_ext <<EOF
5161#ifdef __cplusplus
5162extern "C" {
5163#endif
5164char nm_test_var;
5165void nm_test_func(){}
5166#ifdef __cplusplus
5167}
5168#endif
5169int main(){nm_test_var='a';nm_test_func();return(0);}
5170EOF
5171
5172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5173 (eval $ac_compile) 2>&5
5174 ac_status=$?
5175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5176 (exit $ac_status); }; then
5177 # Now try to grab the symbols.
5178 nlist=conftest.nm
5179 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5180 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5181 ac_status=$?
5182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5183 (exit $ac_status); } && test -s "$nlist"; then
5184 # Try sorting and uniquifying the output.
5185 if sort "$nlist" | uniq > "$nlist"T; then
5186 mv -f "$nlist"T "$nlist"
5187 else
5188 rm -f "$nlist"T
5189 fi
5190
5191 # Make sure that we snagged all the symbols we need.
5192 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5193 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5194 cat <<EOF > conftest.$ac_ext
5195#ifdef __cplusplus
5196extern "C" {
5197#endif
5198
5199EOF
5200 # Now generate the symbol file.
5201 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5202
5203 cat <<EOF >> conftest.$ac_ext
5204#if defined (__STDC__) && __STDC__
5205# define lt_ptr_t void *
5206#else
5207# define lt_ptr_t char *
5208# define const
5209#endif
5210
5211/* The mapping between symbol names and symbols. */
5212const struct {
5213 const char *name;
5214 lt_ptr_t address;
5215}
5216lt_preloaded_symbols[] =
5217{
5218EOF
5219 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5220 cat <<\EOF >> conftest.$ac_ext
5221 {0, (lt_ptr_t) 0}
5222};
5223
5224#ifdef __cplusplus
5225}
5226#endif
5227EOF
5228 # Now try linking the two files.
5229 mv conftest.$ac_objext conftstm.$ac_objext
5230 lt_save_LIBS="$LIBS"
5231 lt_save_CFLAGS="$CFLAGS"
5232 LIBS="conftstm.$ac_objext"
5233 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5234 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5235 (eval $ac_link) 2>&5
5236 ac_status=$?
5237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5238 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5239 pipe_works=yes
5240 fi
5241 LIBS="$lt_save_LIBS"
5242 CFLAGS="$lt_save_CFLAGS"
5243 else
5244 echo "cannot find nm_test_func in $nlist" >&5
5245 fi
5246 else
5247 echo "cannot find nm_test_var in $nlist" >&5
5248 fi
5249 else
5250 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5251 fi
5252 else
5253 echo "$progname: failed program was:" >&5
5254 cat conftest.$ac_ext >&5
5255 fi
5256 rm -f conftest* conftst*
5257
5258 # Do not use the global_symbol_pipe unless it works.
5259 if test "$pipe_works" = yes; then
5260 break
5261 else
5262 lt_cv_sys_global_symbol_pipe=
5263 fi
5264done
5265
5266fi
5267
5268if test -z "$lt_cv_sys_global_symbol_pipe"; then
5269 lt_cv_sys_global_symbol_to_cdecl=
5270fi
5271if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5272 echo "$as_me:$LINENO: result: failed" >&5
5273echo "${ECHO_T}failed" >&6
5274else
5275 echo "$as_me:$LINENO: result: ok" >&5
5276echo "${ECHO_T}ok" >&6
5277fi
5278
5279echo "$as_me:$LINENO: checking for objdir" >&5
5280echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5281if test "${lt_cv_objdir+set}" = set; then
5282 echo $ECHO_N "(cached) $ECHO_C" >&6
5283else
5284 rm -f .libs 2>/dev/null
5285mkdir .libs 2>/dev/null
5286if test -d .libs; then
5287 lt_cv_objdir=.libs
5288else
5289 # MS-DOS does not allow filenames that begin with a dot.
5290 lt_cv_objdir=_libs
5291fi
5292rmdir .libs 2>/dev/null
5293fi
5294echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5295echo "${ECHO_T}$lt_cv_objdir" >&6
5296objdir=$lt_cv_objdir
5297
5298
5299
5300
5301
5302case $host_os in
5303aix3*)
5304 # AIX sometimes has problems with the GCC collect2 program. For some
5305 # reason, if we set the COLLECT_NAMES environment variable, the problems
5306 # vanish in a puff of smoke.
5307 if test "X${COLLECT_NAMES+set}" != Xset; then
5308 COLLECT_NAMES=
5309 export COLLECT_NAMES
John Criswell7a73b802003-06-30 21:59:07 +00005310 fi
5311 ;;
5312esac
5313
John Criswell47fdd832003-07-14 16:52:07 +00005314# Sed substitution that helps us do robust quoting. It backslashifies
5315# metacharacters that are still active within double-quoted strings.
5316Xsed='sed -e s/^X//'
5317sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5318
5319# Same as above, but do not quote variable references.
5320double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5321
5322# Sed substitution to delay expansion of an escaped shell variable in a
5323# double_quote_subst'ed string.
5324delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5325
5326# Sed substitution to avoid accidental globbing in evaled expressions
5327no_glob_subst='s/\*/\\\*/g'
5328
5329# Constants:
5330rm="rm -f"
5331
5332# Global variables:
John Criswell8d4221e2003-07-23 16:52:50 +00005333default_ofile=mklib
John Criswell47fdd832003-07-14 16:52:07 +00005334can_build_shared=yes
5335
5336# All known linkers require a `.a' archive for static linking (except M$VC,
5337# which needs '.lib').
5338libext=a
5339ltmain="$ac_aux_dir/ltmain.sh"
5340ofile="$default_ofile"
5341with_gnu_ld="$lt_cv_prog_gnu_ld"
5342
5343if test -n "$ac_tool_prefix"; then
5344 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5345set dummy ${ac_tool_prefix}ar; ac_word=$2
5346echo "$as_me:$LINENO: checking for $ac_word" >&5
5347echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5348if test "${ac_cv_prog_AR+set}" = set; then
5349 echo $ECHO_N "(cached) $ECHO_C" >&6
5350else
5351 if test -n "$AR"; then
5352 ac_cv_prog_AR="$AR" # Let the user override the test.
5353else
5354as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5355for as_dir in $PATH
5356do
5357 IFS=$as_save_IFS
5358 test -z "$as_dir" && as_dir=.
5359 for ac_exec_ext in '' $ac_executable_extensions; do
5360 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5361 ac_cv_prog_AR="${ac_tool_prefix}ar"
5362 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5363 break 2
5364 fi
5365done
5366done
5367
5368fi
5369fi
5370AR=$ac_cv_prog_AR
5371if test -n "$AR"; then
5372 echo "$as_me:$LINENO: result: $AR" >&5
5373echo "${ECHO_T}$AR" >&6
5374else
5375 echo "$as_me:$LINENO: result: no" >&5
5376echo "${ECHO_T}no" >&6
5377fi
5378
5379fi
5380if test -z "$ac_cv_prog_AR"; then
5381 ac_ct_AR=$AR
5382 # Extract the first word of "ar", so it can be a program name with args.
5383set dummy ar; ac_word=$2
5384echo "$as_me:$LINENO: checking for $ac_word" >&5
5385echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5386if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5387 echo $ECHO_N "(cached) $ECHO_C" >&6
5388else
5389 if test -n "$ac_ct_AR"; then
5390 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5391else
5392as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5393for as_dir in $PATH
5394do
5395 IFS=$as_save_IFS
5396 test -z "$as_dir" && as_dir=.
5397 for ac_exec_ext in '' $ac_executable_extensions; do
5398 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5399 ac_cv_prog_ac_ct_AR="ar"
5400 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5401 break 2
5402 fi
5403done
5404done
5405
5406 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5407fi
5408fi
5409ac_ct_AR=$ac_cv_prog_ac_ct_AR
5410if test -n "$ac_ct_AR"; then
5411 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5412echo "${ECHO_T}$ac_ct_AR" >&6
5413else
5414 echo "$as_me:$LINENO: result: no" >&5
5415echo "${ECHO_T}no" >&6
5416fi
5417
5418 AR=$ac_ct_AR
5419else
5420 AR="$ac_cv_prog_AR"
5421fi
5422
John Criswell7a73b802003-06-30 21:59:07 +00005423if test -n "$ac_tool_prefix"; then
5424 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5425set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5426echo "$as_me:$LINENO: checking for $ac_word" >&5
5427echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5428if test "${ac_cv_prog_RANLIB+set}" = set; then
5429 echo $ECHO_N "(cached) $ECHO_C" >&6
5430else
5431 if test -n "$RANLIB"; then
5432 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5433else
5434as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5435for as_dir in $PATH
5436do
5437 IFS=$as_save_IFS
5438 test -z "$as_dir" && as_dir=.
5439 for ac_exec_ext in '' $ac_executable_extensions; do
5440 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5441 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5442 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5443 break 2
5444 fi
5445done
5446done
5447
5448fi
5449fi
5450RANLIB=$ac_cv_prog_RANLIB
5451if test -n "$RANLIB"; then
5452 echo "$as_me:$LINENO: result: $RANLIB" >&5
5453echo "${ECHO_T}$RANLIB" >&6
5454else
5455 echo "$as_me:$LINENO: result: no" >&5
5456echo "${ECHO_T}no" >&6
5457fi
5458
5459fi
5460if test -z "$ac_cv_prog_RANLIB"; then
5461 ac_ct_RANLIB=$RANLIB
5462 # Extract the first word of "ranlib", so it can be a program name with args.
5463set dummy ranlib; ac_word=$2
5464echo "$as_me:$LINENO: checking for $ac_word" >&5
5465echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5466if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5467 echo $ECHO_N "(cached) $ECHO_C" >&6
5468else
5469 if test -n "$ac_ct_RANLIB"; then
5470 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5471else
5472as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5473for as_dir in $PATH
5474do
5475 IFS=$as_save_IFS
5476 test -z "$as_dir" && as_dir=.
5477 for ac_exec_ext in '' $ac_executable_extensions; do
5478 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5479 ac_cv_prog_ac_ct_RANLIB="ranlib"
5480 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5481 break 2
5482 fi
5483done
5484done
5485
5486 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5487fi
5488fi
5489ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5490if test -n "$ac_ct_RANLIB"; then
5491 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5492echo "${ECHO_T}$ac_ct_RANLIB" >&6
5493else
5494 echo "$as_me:$LINENO: result: no" >&5
5495echo "${ECHO_T}no" >&6
5496fi
5497
5498 RANLIB=$ac_ct_RANLIB
5499else
5500 RANLIB="$ac_cv_prog_RANLIB"
5501fi
5502
5503if test -n "$ac_tool_prefix"; then
5504 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5505set dummy ${ac_tool_prefix}strip; ac_word=$2
5506echo "$as_me:$LINENO: checking for $ac_word" >&5
5507echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5508if test "${ac_cv_prog_STRIP+set}" = set; then
5509 echo $ECHO_N "(cached) $ECHO_C" >&6
5510else
5511 if test -n "$STRIP"; then
5512 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5513else
5514as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5515for as_dir in $PATH
5516do
5517 IFS=$as_save_IFS
5518 test -z "$as_dir" && as_dir=.
5519 for ac_exec_ext in '' $ac_executable_extensions; do
5520 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5521 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5522 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5523 break 2
5524 fi
5525done
5526done
5527
5528fi
5529fi
5530STRIP=$ac_cv_prog_STRIP
5531if test -n "$STRIP"; then
5532 echo "$as_me:$LINENO: result: $STRIP" >&5
5533echo "${ECHO_T}$STRIP" >&6
5534else
5535 echo "$as_me:$LINENO: result: no" >&5
5536echo "${ECHO_T}no" >&6
5537fi
5538
5539fi
5540if test -z "$ac_cv_prog_STRIP"; then
5541 ac_ct_STRIP=$STRIP
5542 # Extract the first word of "strip", so it can be a program name with args.
5543set dummy strip; ac_word=$2
5544echo "$as_me:$LINENO: checking for $ac_word" >&5
5545echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5546if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5547 echo $ECHO_N "(cached) $ECHO_C" >&6
5548else
5549 if test -n "$ac_ct_STRIP"; then
5550 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5551else
5552as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5553for as_dir in $PATH
5554do
5555 IFS=$as_save_IFS
5556 test -z "$as_dir" && as_dir=.
5557 for ac_exec_ext in '' $ac_executable_extensions; do
5558 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5559 ac_cv_prog_ac_ct_STRIP="strip"
5560 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5561 break 2
5562 fi
5563done
5564done
5565
5566 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5567fi
5568fi
5569ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5570if test -n "$ac_ct_STRIP"; then
5571 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5572echo "${ECHO_T}$ac_ct_STRIP" >&6
5573else
5574 echo "$as_me:$LINENO: result: no" >&5
5575echo "${ECHO_T}no" >&6
5576fi
5577
5578 STRIP=$ac_ct_STRIP
5579else
5580 STRIP="$ac_cv_prog_STRIP"
5581fi
5582
5583
John Criswell7a73b802003-06-30 21:59:07 +00005584old_CC="$CC"
5585old_CFLAGS="$CFLAGS"
5586
5587# Set sane defaults for various variables
5588test -z "$AR" && AR=ar
5589test -z "$AR_FLAGS" && AR_FLAGS=cru
5590test -z "$AS" && AS=as
5591test -z "$CC" && CC=cc
John Criswell47fdd832003-07-14 16:52:07 +00005592test -z "$LTCC" && LTCC=$CC
John Criswell7a73b802003-06-30 21:59:07 +00005593test -z "$DLLTOOL" && DLLTOOL=dlltool
5594test -z "$LD" && LD=ld
5595test -z "$LN_S" && LN_S="ln -s"
5596test -z "$MAGIC_CMD" && MAGIC_CMD=file
5597test -z "$NM" && NM=nm
John Criswell47fdd832003-07-14 16:52:07 +00005598test -z "$SED" && SED=sed
John Criswell7a73b802003-06-30 21:59:07 +00005599test -z "$OBJDUMP" && OBJDUMP=objdump
5600test -z "$RANLIB" && RANLIB=:
5601test -z "$STRIP" && STRIP=:
5602test -z "$ac_objext" && ac_objext=o
5603
John Criswell7a73b802003-06-30 21:59:07 +00005604# Determine commands to create old-style static archives.
5605old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5606old_postinstall_cmds='chmod 644 $oldlib'
5607old_postuninstall_cmds=
5608
5609if test -n "$RANLIB"; then
5610 case $host_os in
5611 openbsd*)
5612 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5613 ;;
5614 *)
5615 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5616 ;;
5617 esac
5618 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5619fi
5620
John Criswell47fdd832003-07-14 16:52:07 +00005621# Only perform the check for file, if the check method requires it
5622case $deplibs_check_method in
5623file_magic*)
5624 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5625 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5626echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5627if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5628 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00005629else
John Criswell47fdd832003-07-14 16:52:07 +00005630 case $MAGIC_CMD in
5631[\\/*] | ?:[\\/]*)
5632 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5633 ;;
5634*)
5635 lt_save_MAGIC_CMD="$MAGIC_CMD"
5636 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5637 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5638 for ac_dir in $ac_dummy; do
5639 IFS="$lt_save_ifs"
5640 test -z "$ac_dir" && ac_dir=.
5641 if test -f $ac_dir/${ac_tool_prefix}file; then
5642 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5643 if test -n "$file_magic_test_file"; then
5644 case $deplibs_check_method in
5645 "file_magic "*)
5646 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5647 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5648 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5649 $EGREP "$file_magic_regex" > /dev/null; then
5650 :
5651 else
5652 cat <<EOF 1>&2
5653
5654*** Warning: the command libtool uses to detect shared libraries,
5655*** $file_magic_cmd, produces output that libtool cannot recognize.
5656*** The result is that libtool may fail to recognize shared libraries
5657*** as such. This will affect the creation of libtool libraries that
5658*** depend on shared libraries, but programs linked with such libtool
5659*** libraries will work regardless of this problem. Nevertheless, you
5660*** may want to report the problem to your system manager and/or to
5661*** bug-libtool@gnu.org
5662
5663EOF
5664 fi ;;
5665 esac
5666 fi
5667 break
5668 fi
5669 done
5670 IFS="$lt_save_ifs"
5671 MAGIC_CMD="$lt_save_MAGIC_CMD"
5672 ;;
5673esac
John Criswell7a73b802003-06-30 21:59:07 +00005674fi
John Criswell7a73b802003-06-30 21:59:07 +00005675
John Criswell47fdd832003-07-14 16:52:07 +00005676MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5677if test -n "$MAGIC_CMD"; then
5678 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5679echo "${ECHO_T}$MAGIC_CMD" >&6
5680else
5681 echo "$as_me:$LINENO: result: no" >&5
5682echo "${ECHO_T}no" >&6
5683fi
John Criswell7a73b802003-06-30 21:59:07 +00005684
John Criswell47fdd832003-07-14 16:52:07 +00005685if test -z "$lt_cv_path_MAGIC_CMD"; then
5686 if test -n "$ac_tool_prefix"; then
5687 echo "$as_me:$LINENO: checking for file" >&5
5688echo $ECHO_N "checking for file... $ECHO_C" >&6
5689if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5690 echo $ECHO_N "(cached) $ECHO_C" >&6
5691else
5692 case $MAGIC_CMD in
5693[\\/*] | ?:[\\/]*)
5694 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5695 ;;
5696*)
5697 lt_save_MAGIC_CMD="$MAGIC_CMD"
5698 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5699 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5700 for ac_dir in $ac_dummy; do
5701 IFS="$lt_save_ifs"
5702 test -z "$ac_dir" && ac_dir=.
5703 if test -f $ac_dir/file; then
5704 lt_cv_path_MAGIC_CMD="$ac_dir/file"
5705 if test -n "$file_magic_test_file"; then
5706 case $deplibs_check_method in
5707 "file_magic "*)
5708 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5709 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5710 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5711 $EGREP "$file_magic_regex" > /dev/null; then
5712 :
5713 else
5714 cat <<EOF 1>&2
5715
5716*** Warning: the command libtool uses to detect shared libraries,
5717*** $file_magic_cmd, produces output that libtool cannot recognize.
5718*** The result is that libtool may fail to recognize shared libraries
5719*** as such. This will affect the creation of libtool libraries that
5720*** depend on shared libraries, but programs linked with such libtool
5721*** libraries will work regardless of this problem. Nevertheless, you
5722*** may want to report the problem to your system manager and/or to
5723*** bug-libtool@gnu.org
5724
5725EOF
5726 fi ;;
5727 esac
5728 fi
5729 break
5730 fi
5731 done
5732 IFS="$lt_save_ifs"
5733 MAGIC_CMD="$lt_save_MAGIC_CMD"
5734 ;;
5735esac
5736fi
5737
5738MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5739if test -n "$MAGIC_CMD"; then
5740 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5741echo "${ECHO_T}$MAGIC_CMD" >&6
5742else
5743 echo "$as_me:$LINENO: result: no" >&5
5744echo "${ECHO_T}no" >&6
5745fi
5746
5747 else
5748 MAGIC_CMD=:
5749 fi
5750fi
5751
5752 fi
5753 ;;
5754esac
5755
5756enable_dlopen=no
5757enable_win32_dll=no
5758
5759# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5760if test "${enable_libtool_lock+set}" = set; then
5761 enableval="$enable_libtool_lock"
5762
5763fi;
5764test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5765
John Criswell7a73b802003-06-30 21:59:07 +00005766
5767# Check whether --with-pic or --without-pic was given.
5768if test "${with_pic+set}" = set; then
5769 withval="$with_pic"
5770 pic_mode="$withval"
5771else
5772 pic_mode=default
5773fi;
5774test -z "$pic_mode" && pic_mode=default
5775
John Criswell47fdd832003-07-14 16:52:07 +00005776# Use C for the default configuration in the libtool script
5777tagname=
5778lt_save_CC="$CC"
5779ac_ext=c
5780ac_cpp='$CPP $CPPFLAGS'
5781ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5782ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5783ac_compiler_gnu=$ac_cv_c_compiler_gnu
5784
5785
5786# Source file extension for C test sources.
5787ac_ext=c
5788
5789# Object file extension for compiled C test sources.
5790objext=o
5791objext=$objext
5792
5793# Code to be used in simple compile tests
5794lt_simple_compile_test_code="int some_variable = 0;\n"
5795
5796# Code to be used in simple link tests
5797lt_simple_link_test_code='int main(){return(0);}\n'
5798
5799
5800# If no C compiler was specified, use CC.
5801LTCC=${LTCC-"$CC"}
5802
5803# Allow CC to be a program name with arguments.
5804compiler=$CC
5805
5806
5807#
5808# Check for any special shared library compilation flags.
5809#
5810lt_prog_cc_shlib=
5811if test "$GCC" = no; then
5812 case $host_os in
5813 sco3.2v5*)
5814 lt_prog_cc_shlib='-belf'
5815 ;;
5816 esac
5817fi
5818if test -n "$lt_prog_cc_shlib"; then
5819 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
5820echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
5821 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
5822 else
5823 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5824echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5825 lt_cv_prog_cc_can_build_shared=no
5826 fi
5827fi
5828
5829
5830#
5831# Check to make sure the static flag actually works.
5832#
5833echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
5834echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
5835if test "${lt_prog_compiler_static_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00005836 echo $ECHO_N "(cached) $ECHO_C" >&6
5837else
John Criswell47fdd832003-07-14 16:52:07 +00005838 lt_prog_compiler_static_works=no
5839 save_LDFLAGS="$LDFLAGS"
5840 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
5841 printf "$lt_simple_link_test_code" > conftest.$ac_ext
5842 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
5843 # The compiler can only warn and ignore the option if not recognized
5844 # So say no if there are warnings
5845 if test -s conftest.err; then
5846 # Append any errors to the config.log.
5847 cat conftest.err 1>&5
5848 else
5849 lt_prog_compiler_static_works=yes
5850 fi
5851 fi
5852 $rm conftest*
5853 LDFLAGS="$save_LDFLAGS"
5854
5855fi
5856echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
5857echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
5858
5859if test x"$lt_prog_compiler_static_works" = xyes; then
5860 :
5861else
5862 lt_prog_compiler_static=
5863fi
5864
5865
5866
5867## CAVEAT EMPTOR:
5868## There is no encapsulation within the following macros, do not change
5869## the running order or otherwise move them around unless you know exactly
5870## what you are doing...
5871
5872lt_prog_compiler_no_builtin_flag=
5873
5874if test "$GCC" = yes; then
5875 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
5876
5877 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5878echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5879if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
5880 echo $ECHO_N "(cached) $ECHO_C" >&6
5881else
5882 lt_cv_prog_compiler_rtti_exceptions=no
5883 ac_outfile=conftest.$ac_objext
5884 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
5885 lt_compiler_flag="-fno-rtti -fno-exceptions"
5886 # Insert the option either (1) after the last *FLAGS variable, or
5887 # (2) before a word containing "conftest.", or (3) at the end.
5888 # Note that $ac_compile itself does not contain backslashes and begins
5889 # with a dollar sign (not a hyphen), so the echo should work correctly.
5890 # The option is referenced via a variable to avoid confusing sed.
5891 lt_compile=`echo "$ac_compile" | $SED \
5892 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
5893 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5894 -e 's:$: $lt_compiler_flag:'`
John Criswell33a911a2003-11-25 20:36:46 +00005895 (eval echo "\"\$as_me:5895: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +00005896 (eval "$lt_compile" 2>conftest.err)
5897 ac_status=$?
5898 cat conftest.err >&5
John Criswell33a911a2003-11-25 20:36:46 +00005899 echo "$as_me:5899: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00005900 if (exit $ac_status) && test -s "$ac_outfile"; then
5901 # The compiler can only warn and ignore the option if not recognized
5902 # So say no if there are warnings
5903 if test ! -s conftest.err; then
5904 lt_cv_prog_compiler_rtti_exceptions=yes
5905 fi
5906 fi
5907 $rm conftest*
5908
5909fi
5910echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
5911echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
5912
5913if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
5914 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
5915else
5916 :
5917fi
5918
5919fi
5920
5921lt_prog_compiler_wl=
5922lt_prog_compiler_pic=
5923lt_prog_compiler_static=
5924
5925echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5926echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00005927
5928 if test "$GCC" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +00005929 lt_prog_compiler_wl='-Wl,'
5930 lt_prog_compiler_static='-static'
John Criswell7a73b802003-06-30 21:59:07 +00005931
5932 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00005933 aix*)
5934 # All AIX code is PIC.
5935 if test "$host_cpu" = ia64; then
5936 # AIX 5 now supports IA64 processor
5937 lt_prog_compiler_static='-Bstatic'
5938 fi
John Criswell7a73b802003-06-30 21:59:07 +00005939 ;;
John Criswell47fdd832003-07-14 16:52:07 +00005940
John Criswell7a73b802003-06-30 21:59:07 +00005941 amigaos*)
5942 # FIXME: we need at least 68020 code to build shared libraries, but
5943 # adding the `-m68020' flag to GCC prevents building anything better,
5944 # like `-m68040'.
John Criswell47fdd832003-07-14 16:52:07 +00005945 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
John Criswell7a73b802003-06-30 21:59:07 +00005946 ;;
John Criswell47fdd832003-07-14 16:52:07 +00005947
5948 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
John Criswell7a73b802003-06-30 21:59:07 +00005949 # PIC is the default for these OSes.
5950 ;;
John Criswell47fdd832003-07-14 16:52:07 +00005951
5952 mingw* | pw32* | os2*)
5953 # This hack is so that the source file can tell whether it is being
5954 # built for inclusion in a dll (and should export symbols for example).
5955 lt_prog_compiler_pic='-DDLL_EXPORT'
5956 ;;
5957
John Criswell7a73b802003-06-30 21:59:07 +00005958 darwin* | rhapsody*)
5959 # PIC is the default on this platform
5960 # Common symbols not allowed in MH_DYLIB files
John Criswell47fdd832003-07-14 16:52:07 +00005961 lt_prog_compiler_pic='-fno-common'
John Criswell7a73b802003-06-30 21:59:07 +00005962 ;;
John Criswell47fdd832003-07-14 16:52:07 +00005963
5964 msdosdjgpp*)
5965 # Just because we use GCC doesn't mean we suddenly get shared libraries
5966 # on systems that don't support them.
5967 lt_prog_compiler_can_build_shared=no
5968 enable_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00005969 ;;
John Criswell47fdd832003-07-14 16:52:07 +00005970
John Criswell7a73b802003-06-30 21:59:07 +00005971 sysv4*MP*)
5972 if test -d /usr/nec; then
John Criswell47fdd832003-07-14 16:52:07 +00005973 lt_prog_compiler_pic=-Kconform_pic
John Criswell7a73b802003-06-30 21:59:07 +00005974 fi
5975 ;;
John Criswell47fdd832003-07-14 16:52:07 +00005976
5977 hpux*)
5978 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5979 # not for PA HP-UX.
5980 case "$host_cpu" in
5981 hppa*64*|ia64*)
5982 # +Z the default
5983 ;;
5984 *)
5985 lt_prog_compiler_pic='-fPIC'
5986 ;;
5987 esac
5988 ;;
5989
John Criswell7a73b802003-06-30 21:59:07 +00005990 *)
John Criswell47fdd832003-07-14 16:52:07 +00005991 lt_prog_compiler_pic='-fPIC'
John Criswell7a73b802003-06-30 21:59:07 +00005992 ;;
5993 esac
5994 else
John Criswell47fdd832003-07-14 16:52:07 +00005995 # PORTME Check for flag to pass linker flags through the system compiler.
John Criswell7a73b802003-06-30 21:59:07 +00005996 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00005997 aix*)
5998 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +00005999 if test "$host_cpu" = ia64; then
6000 # AIX 5 now supports IA64 processor
John Criswell47fdd832003-07-14 16:52:07 +00006001 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006002 else
John Criswell47fdd832003-07-14 16:52:07 +00006003 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
John Criswell7a73b802003-06-30 21:59:07 +00006004 fi
6005 ;;
6006
John Criswell47fdd832003-07-14 16:52:07 +00006007 mingw* | pw32* | os2*)
6008 # This hack is so that the source file can tell whether it is being
6009 # built for inclusion in a dll (and should export symbols for example).
6010 lt_prog_compiler_pic='-DDLL_EXPORT'
6011 ;;
6012
John Criswell7a73b802003-06-30 21:59:07 +00006013 hpux9* | hpux10* | hpux11*)
John Criswell47fdd832003-07-14 16:52:07 +00006014 lt_prog_compiler_wl='-Wl,'
6015 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6016 # not for PA HP-UX.
6017 case "$host_cpu" in
6018 hppa*64*|ia64*)
6019 # +Z the default
6020 ;;
6021 *)
6022 lt_prog_compiler_pic='+Z'
6023 ;;
6024 esac
6025 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6026 lt_prog_compiler_static='${wl}-a ${wl}archive'
John Criswell7a73b802003-06-30 21:59:07 +00006027 ;;
6028
John Criswell47fdd832003-07-14 16:52:07 +00006029 irix5* | irix6* | nonstopux*)
6030 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +00006031 # PIC (with -KPIC) is the default.
John Criswell47fdd832003-07-14 16:52:07 +00006032 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +00006033 ;;
6034
6035 newsos6)
John Criswell47fdd832003-07-14 16:52:07 +00006036 lt_prog_compiler_pic='-KPIC'
6037 lt_prog_compiler_static='-Bstatic'
6038 ;;
6039
6040 linux*)
6041 case $CC in
6042 icc|ecc)
6043 lt_prog_compiler_wl='-Wl,'
6044 lt_prog_compiler_pic='-KPIC'
6045 lt_prog_compiler_static='-static'
6046 ;;
6047 ccc)
6048 lt_prog_compiler_wl='-Wl,'
6049 # All Alpha code is PIC.
6050 lt_prog_compiler_static='-non_shared'
6051 ;;
6052 esac
John Criswell7a73b802003-06-30 21:59:07 +00006053 ;;
6054
6055 osf3* | osf4* | osf5*)
John Criswell47fdd832003-07-14 16:52:07 +00006056 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +00006057 # All OSF/1 code is PIC.
John Criswell47fdd832003-07-14 16:52:07 +00006058 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +00006059 ;;
6060
6061 sco3.2v5*)
John Criswell47fdd832003-07-14 16:52:07 +00006062 lt_prog_compiler_pic='-Kpic'
6063 lt_prog_compiler_static='-dn'
John Criswell7a73b802003-06-30 21:59:07 +00006064 ;;
6065
6066 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +00006067 lt_prog_compiler_wl='-Wl,'
6068 lt_prog_compiler_pic='-KPIC'
6069 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006070 ;;
6071
6072 sunos4*)
John Criswell47fdd832003-07-14 16:52:07 +00006073 lt_prog_compiler_wl='-Qoption ld '
6074 lt_prog_compiler_pic='-PIC'
6075 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006076 ;;
6077
6078 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
John Criswell47fdd832003-07-14 16:52:07 +00006079 lt_prog_compiler_wl='-Wl,'
6080 lt_prog_compiler_pic='-KPIC'
6081 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006082 ;;
6083
6084 sysv4*MP*)
6085 if test -d /usr/nec ;then
John Criswell47fdd832003-07-14 16:52:07 +00006086 lt_prog_compiler_pic='-Kconform_pic'
6087 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006088 fi
6089 ;;
6090
John Criswell47fdd832003-07-14 16:52:07 +00006091 uts4*)
6092 lt_prog_compiler_pic='-pic'
6093 lt_prog_compiler_static='-Bstatic'
6094 ;;
6095
John Criswell7a73b802003-06-30 21:59:07 +00006096 *)
John Criswell47fdd832003-07-14 16:52:07 +00006097 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00006098 ;;
6099 esac
6100 fi
6101
John Criswell47fdd832003-07-14 16:52:07 +00006102echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6103echo "${ECHO_T}$lt_prog_compiler_pic" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006104
John Criswell47fdd832003-07-14 16:52:07 +00006105#
6106# Check to make sure the PIC flag actually works.
6107#
6108if test -n "$lt_prog_compiler_pic"; then
6109 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6110echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6111if test "${lt_prog_compiler_pic_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00006112 echo $ECHO_N "(cached) $ECHO_C" >&6
6113else
John Criswell47fdd832003-07-14 16:52:07 +00006114 lt_prog_compiler_pic_works=no
6115 ac_outfile=conftest.$ac_objext
6116 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6117 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6118 # Insert the option either (1) after the last *FLAGS variable, or
6119 # (2) before a word containing "conftest.", or (3) at the end.
6120 # Note that $ac_compile itself does not contain backslashes and begins
6121 # with a dollar sign (not a hyphen), so the echo should work correctly.
6122 # The option is referenced via a variable to avoid confusing sed.
6123 lt_compile=`echo "$ac_compile" | $SED \
6124 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6125 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6126 -e 's:$: $lt_compiler_flag:'`
John Criswell33a911a2003-11-25 20:36:46 +00006127 (eval echo "\"\$as_me:6127: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +00006128 (eval "$lt_compile" 2>conftest.err)
6129 ac_status=$?
6130 cat conftest.err >&5
John Criswell33a911a2003-11-25 20:36:46 +00006131 echo "$as_me:6131: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00006132 if (exit $ac_status) && test -s "$ac_outfile"; then
6133 # The compiler can only warn and ignore the option if not recognized
6134 # So say no if there are warnings
6135 if test ! -s conftest.err; then
6136 lt_prog_compiler_pic_works=yes
6137 fi
6138 fi
6139 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +00006140
John Criswell47fdd832003-07-14 16:52:07 +00006141fi
6142echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6143echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006144
John Criswell47fdd832003-07-14 16:52:07 +00006145if test x"$lt_prog_compiler_pic_works" = xyes; then
6146 case $lt_prog_compiler_pic in
6147 "" | " "*) ;;
6148 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6149 esac
John Criswell7a73b802003-06-30 21:59:07 +00006150else
John Criswell47fdd832003-07-14 16:52:07 +00006151 lt_prog_compiler_pic=
6152 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00006153fi
6154
John Criswell7a73b802003-06-30 21:59:07 +00006155fi
John Criswell47fdd832003-07-14 16:52:07 +00006156case "$host_os" in
6157 # For platforms which do not support PIC, -DPIC is meaningless:
6158 *djgpp*)
6159 lt_prog_compiler_pic=
6160 ;;
6161 *)
6162 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6163 ;;
6164esac
John Criswell7a73b802003-06-30 21:59:07 +00006165
John Criswell7a73b802003-06-30 21:59:07 +00006166echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6167echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
John Criswell47fdd832003-07-14 16:52:07 +00006168if test "${lt_cv_prog_compiler_c_o+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00006169 echo $ECHO_N "(cached) $ECHO_C" >&6
6170else
John Criswell47fdd832003-07-14 16:52:07 +00006171 lt_cv_prog_compiler_c_o=no
6172 $rm -r conftest 2>/dev/null
6173 mkdir conftest
6174 cd conftest
6175 mkdir out
6176 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00006177
John Criswell47fdd832003-07-14 16:52:07 +00006178 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
6179 # that will create temporary files in the current directory regardless of
6180 # the output directory. Thus, making CWD read-only will cause this test
6181 # to fail, enabling locking or at least warning the user not to do parallel
6182 # builds.
6183 chmod -w .
6184
6185 lt_compiler_flag="-o out/conftest2.$ac_objext"
6186 # Insert the option either (1) after the last *FLAGS variable, or
6187 # (2) before a word containing "conftest.", or (3) at the end.
6188 # Note that $ac_compile itself does not contain backslashes and begins
6189 # with a dollar sign (not a hyphen), so the echo should work correctly.
6190 lt_compile=`echo "$ac_compile" | $SED \
6191 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6192 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6193 -e 's:$: $lt_compiler_flag:'`
John Criswell33a911a2003-11-25 20:36:46 +00006194 (eval echo "\"\$as_me:6194: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +00006195 (eval "$lt_compile" 2>out/conftest.err)
6196 ac_status=$?
6197 cat out/conftest.err >&5
John Criswell33a911a2003-11-25 20:36:46 +00006198 echo "$as_me:6198: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00006199 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6200 then
6201 # The compiler can only warn and ignore the option if not recognized
6202 # So say no if there are warnings
6203 if test ! -s out/conftest.err; then
6204 lt_cv_prog_compiler_c_o=yes
6205 fi
6206 fi
6207 chmod u+w .
6208 $rm conftest* out/*
6209 rmdir out
6210 cd ..
6211 rmdir conftest
6212 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +00006213
6214fi
John Criswell47fdd832003-07-14 16:52:07 +00006215echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6216echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006217
John Criswell7a73b802003-06-30 21:59:07 +00006218
John Criswell7a73b802003-06-30 21:59:07 +00006219hard_links="nottested"
John Criswell47fdd832003-07-14 16:52:07 +00006220if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
John Criswell7a73b802003-06-30 21:59:07 +00006221 # do not overwrite the value of need_locks provided by the user
6222 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6223echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6224 hard_links=yes
6225 $rm conftest*
6226 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6227 touch conftest.a
6228 ln conftest.a conftest.b 2>&5 || hard_links=no
6229 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6230 echo "$as_me:$LINENO: result: $hard_links" >&5
6231echo "${ECHO_T}$hard_links" >&6
6232 if test "$hard_links" = no; then
6233 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6234echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6235 need_locks=warn
6236 fi
6237else
6238 need_locks=no
6239fi
John Criswell7a73b802003-06-30 21:59:07 +00006240
John Criswell47fdd832003-07-14 16:52:07 +00006241echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6242echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6243
6244 runpath_var=
6245 allow_undefined_flag=
6246 enable_shared_with_static_runtimes=no
6247 archive_cmds=
6248 archive_expsym_cmds=
6249 old_archive_From_new_cmds=
6250 old_archive_from_expsyms_cmds=
6251 export_dynamic_flag_spec=
6252 whole_archive_flag_spec=
6253 thread_safe_flag_spec=
6254 hardcode_libdir_flag_spec=
6255 hardcode_libdir_flag_spec_ld=
6256 hardcode_libdir_separator=
6257 hardcode_direct=no
6258 hardcode_minus_L=no
6259 hardcode_shlibpath_var=unsupported
6260 link_all_deplibs=unknown
6261 hardcode_automatic=no
6262 module_cmds=
6263 module_expsym_cmds=
6264 always_export_symbols=no
6265 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6266 # include_expsyms should be a list of space-separated symbols to be *always*
6267 # included in the symbol list
6268 include_expsyms=
6269 # exclude_expsyms can be an extended regexp of symbols to exclude
6270 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6271 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6272 # as well as any symbol that contains `d'.
6273 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6274 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6275 # platforms (ab)use it in PIC code, but their linkers get confused if
6276 # the symbol is explicitly referenced. Since portable code cannot
6277 # rely on this symbol name, it's probably fine to never include it in
6278 # preloaded symbol tables.
6279 extract_expsyms_cmds=
6280
6281 case $host_os in
6282 cygwin* | mingw* | pw32*)
6283 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6284 # When not using gcc, we currently assume that we are using
6285 # Microsoft Visual C++.
6286 if test "$GCC" != yes; then
6287 with_gnu_ld=no
6288 fi
6289 ;;
6290 openbsd*)
6291 with_gnu_ld=no
6292 ;;
6293 esac
6294
6295 ld_shlibs=yes
6296 if test "$with_gnu_ld" = yes; then
6297 # If archive_cmds runs LD, not CC, wlarc should be empty
6298 wlarc='${wl}'
6299
6300 # See if GNU ld supports shared libraries.
6301 case $host_os in
6302 aix3* | aix4* | aix5*)
6303 # On AIX/PPC, the GNU linker is very broken
6304 if test "$host_cpu" != ia64; then
6305 ld_shlibs=no
6306 cat <<EOF 1>&2
6307
6308*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6309*** to be unable to reliably create shared libraries on AIX.
6310*** Therefore, libtool is disabling shared libraries support. If you
6311*** really care for shared libraries, you may want to modify your PATH
6312*** so that a non-GNU linker is found, and then restart.
6313
6314EOF
6315 fi
6316 ;;
6317
6318 amigaos*)
6319 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)'
6320 hardcode_libdir_flag_spec='-L$libdir'
6321 hardcode_minus_L=yes
6322
6323 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6324 # that the semantics of dynamic libraries on AmigaOS, at least up
6325 # to version 4, is to share data among multiple programs linked
6326 # with the same dynamic library. Since this doesn't match the
6327 # behavior of shared libraries on other platforms, we can't use
6328 # them.
6329 ld_shlibs=no
6330 ;;
6331
6332 beos*)
6333 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6334 allow_undefined_flag=unsupported
6335 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6336 # support --undefined. This deserves some investigation. FIXME
6337 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6338 else
6339 ld_shlibs=no
6340 fi
6341 ;;
6342
6343 cygwin* | mingw* | pw32*)
6344 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6345 # as there is no search path for DLLs.
6346 hardcode_libdir_flag_spec='-L$libdir'
6347 allow_undefined_flag=unsupported
6348 always_export_symbols=no
6349 enable_shared_with_static_runtimes=yes
6350 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6351
6352 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6353 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6354 # If the export-symbols file already is a .def file (1st line
6355 # is EXPORTS), use it as is; otherwise, prepend...
6356 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6357 cp $export_symbols $output_objdir/$soname.def;
6358 else
6359 echo EXPORTS > $output_objdir/$soname.def;
6360 cat $export_symbols >> $output_objdir/$soname.def;
6361 fi~
6362 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6363 else
6364 ld_shlibs=no
6365 fi
6366 ;;
6367
6368 netbsd*)
6369 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6370 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6371 wlarc=
6372 else
6373 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6374 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6375 fi
6376 ;;
6377
6378 solaris* | sysv5*)
6379 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6380 ld_shlibs=no
6381 cat <<EOF 1>&2
6382
6383*** Warning: The releases 2.8.* of the GNU linker cannot reliably
6384*** create shared libraries on Solaris systems. Therefore, libtool
6385*** is disabling shared libraries support. We urge you to upgrade GNU
6386*** binutils to release 2.9.1 or newer. Another option is to modify
6387*** your PATH or compiler configuration so that the native linker is
6388*** used, and then restart.
6389
6390EOF
6391 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6392 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6393 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6394 else
6395 ld_shlibs=no
6396 fi
6397 ;;
6398
6399 sunos4*)
6400 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6401 wlarc=
6402 hardcode_direct=yes
6403 hardcode_shlibpath_var=no
6404 ;;
6405
6406 *)
6407 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6408 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6409 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6410 else
6411 ld_shlibs=no
6412 fi
6413 ;;
6414 esac
6415
6416 if test "$ld_shlibs" = yes; then
6417 runpath_var=LD_RUN_PATH
6418 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6419 export_dynamic_flag_spec='${wl}--export-dynamic'
6420 # ancient GNU ld didn't support --whole-archive et. al.
6421 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6422 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6423 else
6424 whole_archive_flag_spec=
6425 fi
6426 fi
6427 else
6428 # PORTME fill in a description of your system's linker (not GNU ld)
6429 case $host_os in
6430 aix3*)
6431 allow_undefined_flag=unsupported
6432 always_export_symbols=yes
6433 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'
6434 # Note: this linker hardcodes the directories in LIBPATH if there
6435 # are no directories specified by -L.
6436 hardcode_minus_L=yes
6437 if test "$GCC" = yes && test -z "$link_static_flag"; then
6438 # Neither direct hardcoding nor static linking is supported with a
6439 # broken collect2.
6440 hardcode_direct=unsupported
6441 fi
6442 ;;
6443
6444 aix4* | aix5*)
6445 if test "$host_cpu" = ia64; then
6446 # On IA64, the linker does run time linking by default, so we don't
6447 # have to do anything special.
6448 aix_use_runtimelinking=no
6449 exp_sym_flag='-Bexport'
6450 no_entry_flag=""
6451 else
6452 # If we're using GNU nm, then we don't want the "-C" option.
6453 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6454 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6455 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'
6456 else
6457 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'
6458 fi
6459 aix_use_runtimelinking=no
6460
6461 # Test if we are trying to use run time linking or normal
6462 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6463 # need to do runtime linking.
6464 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6465 for ld_flag in $LDFLAGS; do
6466 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6467 aix_use_runtimelinking=yes
6468 break
6469 fi
6470 done
6471 esac
6472
6473 exp_sym_flag='-bexport'
6474 no_entry_flag='-bnoentry'
6475 fi
6476
6477 # When large executables or shared objects are built, AIX ld can
6478 # have problems creating the table of contents. If linking a library
6479 # or program results in "error TOC overflow" add -mminimal-toc to
6480 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6481 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6482
6483 archive_cmds=''
6484 hardcode_direct=yes
6485 hardcode_libdir_separator=':'
6486 link_all_deplibs=yes
6487
6488 if test "$GCC" = yes; then
6489 case $host_os in aix4.012|aix4.012.*)
6490 # We only want to do this on AIX 4.2 and lower, the check
6491 # below for broken collect2 doesn't work under 4.3+
6492 collect2name=`${CC} -print-prog-name=collect2`
6493 if test -f "$collect2name" && \
6494 strings "$collect2name" | grep resolve_lib_name >/dev/null
6495 then
6496 # We have reworked collect2
6497 hardcode_direct=yes
6498 else
6499 # We have old collect2
6500 hardcode_direct=unsupported
6501 # It fails to find uninstalled libraries when the uninstalled
6502 # path is not listed in the libpath. Setting hardcode_minus_L
6503 # to unsupported forces relinking
6504 hardcode_minus_L=yes
6505 hardcode_libdir_flag_spec='-L$libdir'
6506 hardcode_libdir_separator=
6507 fi
6508 esac
6509 shared_flag='-shared'
6510 else
6511 # not using gcc
6512 if test "$host_cpu" = ia64; then
6513 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6514 # chokes on -Wl,-G. The following line is correct:
6515 shared_flag='-G'
6516 else
6517 if test "$aix_use_runtimelinking" = yes; then
6518 shared_flag='${wl}-G'
6519 else
6520 shared_flag='${wl}-bM:SRE'
6521 fi
6522 fi
6523 fi
6524
6525 # It seems that -bexpall does not export symbols beginning with
6526 # underscore (_), so it is better to generate a list of symbols to export.
6527 always_export_symbols=yes
6528 if test "$aix_use_runtimelinking" = yes; then
6529 # Warning - without using the other runtime loading flags (-brtl),
6530 # -berok will link without error, but may produce a broken library.
6531 allow_undefined_flag='-berok'
6532 # Determine the default libpath from the value encoded in an empty executable.
6533 cat >conftest.$ac_ext <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00006534#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00006535/* confdefs.h. */
6536_ACEOF
6537cat confdefs.h >>conftest.$ac_ext
6538cat >>conftest.$ac_ext <<_ACEOF
6539/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006540
John Criswell7a73b802003-06-30 21:59:07 +00006541int
6542main ()
6543{
John Criswell47fdd832003-07-14 16:52:07 +00006544
John Criswell7a73b802003-06-30 21:59:07 +00006545 ;
6546 return 0;
6547}
6548_ACEOF
John Criswell47fdd832003-07-14 16:52:07 +00006549rm -f conftest.$ac_objext conftest$ac_exeext
6550if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6551 (eval $ac_link) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00006552 ac_status=$?
6553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6554 (exit $ac_status); } &&
John Criswell47fdd832003-07-14 16:52:07 +00006555 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00006556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6557 (eval $ac_try) 2>&5
6558 ac_status=$?
6559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6560 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00006561
John Criswell47fdd832003-07-14 16:52:07 +00006562aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6563}'`
6564# Check for a 64-bit object if we didn't find anything.
6565if 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; }
6566}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +00006567else
6568 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006569sed 's/^/| /' conftest.$ac_ext >&5
6570
John Criswell7a73b802003-06-30 21:59:07 +00006571fi
John Criswell47fdd832003-07-14 16:52:07 +00006572rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6573if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +00006574
John Criswell47fdd832003-07-14 16:52:07 +00006575 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6576 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"
6577 else
6578 if test "$host_cpu" = ia64; then
6579 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6580 allow_undefined_flag="-z nodefs"
6581 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"
6582 else
6583 # Determine the default libpath from the value encoded in an empty executable.
6584 cat >conftest.$ac_ext <<_ACEOF
6585#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00006586/* confdefs.h. */
6587_ACEOF
6588cat confdefs.h >>conftest.$ac_ext
6589cat >>conftest.$ac_ext <<_ACEOF
6590/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006591
John Criswell47fdd832003-07-14 16:52:07 +00006592int
6593main ()
6594{
John Criswell7a73b802003-06-30 21:59:07 +00006595
John Criswell47fdd832003-07-14 16:52:07 +00006596 ;
6597 return 0;
6598}
6599_ACEOF
6600rm -f conftest.$ac_objext conftest$ac_exeext
6601if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6602 (eval $ac_link) 2>&5
6603 ac_status=$?
6604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6605 (exit $ac_status); } &&
6606 { ac_try='test -s conftest$ac_exeext'
6607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6608 (eval $ac_try) 2>&5
6609 ac_status=$?
6610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6611 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00006612
John Criswell47fdd832003-07-14 16:52:07 +00006613aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6614}'`
6615# Check for a 64-bit object if we didn't find anything.
6616if 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; }
6617}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +00006618else
John Criswell47fdd832003-07-14 16:52:07 +00006619 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006620sed 's/^/| /' conftest.$ac_ext >&5
6621
John Criswell47fdd832003-07-14 16:52:07 +00006622fi
6623rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6624if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +00006625
John Criswell47fdd832003-07-14 16:52:07 +00006626 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6627 # Warning - without using the other run time loading flags,
6628 # -berok will link without error, but may produce a broken library.
6629 no_undefined_flag=' ${wl}-bernotok'
6630 allow_undefined_flag=' ${wl}-berok'
6631 # -bexpall does not export symbols beginning with underscore (_)
6632 always_export_symbols=yes
6633 # Exported symbols can be pulled into shared objects from archives
6634 whole_archive_flag_spec=' '
6635 archive_cmds_need_lc=yes
6636 # This is similar to how AIX traditionally builds it's shared libraries.
6637 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 +00006638 fi
6639 fi
John Criswell7a73b802003-06-30 21:59:07 +00006640 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006641
6642 amigaos*)
6643 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)'
6644 hardcode_libdir_flag_spec='-L$libdir'
6645 hardcode_minus_L=yes
6646 # see comment about different semantics on the GNU ld section
6647 ld_shlibs=no
John Criswell7a73b802003-06-30 21:59:07 +00006648 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006649
John Criswell47fdd832003-07-14 16:52:07 +00006650 bsdi4*)
6651 export_dynamic_flag_spec=-rdynamic
6652 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006653
John Criswell47fdd832003-07-14 16:52:07 +00006654 cygwin* | mingw* | pw32*)
6655 # When not using gcc, we currently assume that we are using
6656 # Microsoft Visual C++.
6657 # hardcode_libdir_flag_spec is actually meaningless, as there is
6658 # no search path for DLLs.
6659 hardcode_libdir_flag_spec=' '
6660 allow_undefined_flag=unsupported
6661 # Tell ltmain to make .lib files, not .a files.
6662 libext=lib
6663 # Tell ltmain to make .dll files, not .so files.
6664 shrext=".dll"
6665 # FIXME: Setting linknames here is a bad hack.
6666 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
6667 # The linker will automatically build a .lib file if we build a DLL.
6668 old_archive_From_new_cmds='true'
6669 # FIXME: Should let the user specify the lib program.
6670 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6671 fix_srcfile_path='`cygpath -w "$srcfile"`'
6672 enable_shared_with_static_runtimes=yes
6673 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006674
John Criswell47fdd832003-07-14 16:52:07 +00006675 darwin* | rhapsody*)
6676 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
6677 archive_cmds_need_lc=no
John Criswell7a73b802003-06-30 21:59:07 +00006678 case "$host_os" in
John Criswell47fdd832003-07-14 16:52:07 +00006679 rhapsody* | darwin1.[012])
6680 allow_undefined_flag='-undefined suppress'
6681 ;;
6682 *) # Darwin 1.3 on
6683 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
John Criswell7a73b802003-06-30 21:59:07 +00006684 ;;
6685 esac
John Criswell47fdd832003-07-14 16:52:07 +00006686 # FIXME: Relying on posixy $() will cause problems for
6687 # cross-compilation, but unfortunately the echo tests do not
6688 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
6689 # `"' quotes if we put them in here... so don't!
6690 lt_int_apple_cc_single_mod=no
6691 output_verbose_link_cmd='echo'
6692 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
6693 lt_int_apple_cc_single_mod=yes
6694 fi
6695 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6696 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6697 else
6698 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'
6699 fi
6700 module_cmds='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
6701 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6702 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6703 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}'
6704 else
6705 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}'
6706 fi
6707 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}'
6708 hardcode_direct=no
6709 hardcode_automatic=yes
6710 hardcode_shlibpath_var=unsupported
6711 whole_archive_flag_spec='-all_load $convenience'
6712 link_all_deplibs=yes
John Criswell7a73b802003-06-30 21:59:07 +00006713 fi
John Criswell47fdd832003-07-14 16:52:07 +00006714 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006715
John Criswell47fdd832003-07-14 16:52:07 +00006716 dgux*)
John Criswell7a73b802003-06-30 21:59:07 +00006717 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
John Criswell47fdd832003-07-14 16:52:07 +00006718 hardcode_libdir_flag_spec='-L$libdir'
6719 hardcode_shlibpath_var=no
6720 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006721
John Criswell47fdd832003-07-14 16:52:07 +00006722 freebsd1*)
6723 ld_shlibs=no
6724 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006725
John Criswell47fdd832003-07-14 16:52:07 +00006726 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6727 # support. Future versions do this automatically, but an explicit c++rt0.o
6728 # does not break anything, and helps significantly (at the cost of a little
6729 # extra space).
6730 freebsd2.2*)
6731 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6732 hardcode_libdir_flag_spec='-R$libdir'
6733 hardcode_direct=yes
6734 hardcode_shlibpath_var=no
6735 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006736
John Criswell47fdd832003-07-14 16:52:07 +00006737 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6738 freebsd2*)
6739 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6740 hardcode_direct=yes
6741 hardcode_minus_L=yes
6742 hardcode_shlibpath_var=no
6743 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006744
John Criswell47fdd832003-07-14 16:52:07 +00006745 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6746 freebsd*)
6747 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6748 hardcode_libdir_flag_spec='-R$libdir'
6749 hardcode_direct=yes
6750 hardcode_shlibpath_var=no
6751 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006752
John Criswell47fdd832003-07-14 16:52:07 +00006753 hpux9*)
6754 if test "$GCC" = yes; then
6755 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'
6756 else
6757 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'
6758 fi
6759 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6760 hardcode_libdir_separator=:
6761 hardcode_direct=yes
6762
6763 # hardcode_minus_L: Not really in the search PATH,
6764 # but as the default location of the library.
6765 hardcode_minus_L=yes
6766 export_dynamic_flag_spec='${wl}-E'
6767 ;;
6768
6769 hpux10* | hpux11*)
6770 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6771 case "$host_cpu" in
6772 hppa*64*|ia64*)
6773 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6774 ;;
6775 *)
6776 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6777 ;;
6778 esac
6779 else
6780 case "$host_cpu" in
6781 hppa*64*|ia64*)
6782 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
6783 ;;
6784 *)
6785 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
6786 ;;
6787 esac
6788 fi
6789 if test "$with_gnu_ld" = no; then
6790 case "$host_cpu" in
6791 hppa*64*)
6792 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6793 hardcode_libdir_flag_spec_ld='+b $libdir'
6794 hardcode_libdir_separator=:
6795 hardcode_direct=no
6796 hardcode_shlibpath_var=no
6797 ;;
6798 ia64*)
6799 hardcode_libdir_flag_spec='-L$libdir'
6800 hardcode_direct=no
6801 hardcode_shlibpath_var=no
6802
6803 # hardcode_minus_L: Not really in the search PATH,
6804 # but as the default location of the library.
6805 hardcode_minus_L=yes
6806 ;;
6807 *)
6808 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6809 hardcode_libdir_separator=:
6810 hardcode_direct=yes
6811 export_dynamic_flag_spec='${wl}-E'
6812
6813 # hardcode_minus_L: Not really in the search PATH,
6814 # but as the default location of the library.
6815 hardcode_minus_L=yes
6816 ;;
6817 esac
6818 fi
6819 ;;
6820
6821 irix5* | irix6* | nonstopux*)
6822 if test "$GCC" = yes; then
6823 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'
6824 else
6825 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'
6826 hardcode_libdir_flag_spec_ld='-rpath $libdir'
6827 fi
6828 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6829 hardcode_libdir_separator=:
6830 link_all_deplibs=yes
6831 ;;
6832
6833 netbsd*)
6834 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6835 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
6836 else
6837 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
6838 fi
6839 hardcode_libdir_flag_spec='-R$libdir'
6840 hardcode_direct=yes
6841 hardcode_shlibpath_var=no
6842 ;;
6843
6844 newsos6)
6845 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6846 hardcode_direct=yes
6847 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6848 hardcode_libdir_separator=:
6849 hardcode_shlibpath_var=no
6850 ;;
6851
6852 openbsd*)
6853 hardcode_direct=yes
6854 hardcode_shlibpath_var=no
6855 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6856 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6857 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6858 export_dynamic_flag_spec='${wl}-E'
6859 else
6860 case $host_os in
6861 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
6862 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6863 hardcode_libdir_flag_spec='-R$libdir'
6864 ;;
6865 *)
6866 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6867 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6868 ;;
6869 esac
6870 fi
6871 ;;
6872
6873 os2*)
6874 hardcode_libdir_flag_spec='-L$libdir'
6875 hardcode_minus_L=yes
6876 allow_undefined_flag=unsupported
6877 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'
6878 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6879 ;;
6880
6881 osf3*)
6882 if test "$GCC" = yes; then
6883 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6884 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'
6885 else
6886 allow_undefined_flag=' -expect_unresolved \*'
6887 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'
6888 fi
6889 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6890 hardcode_libdir_separator=:
6891 ;;
6892
6893 osf4* | osf5*) # as osf3* with the addition of -msym flag
6894 if test "$GCC" = yes; then
6895 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6896 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'
6897 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6898 else
6899 allow_undefined_flag=' -expect_unresolved \*'
6900 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'
6901 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6902 $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'
6903
6904 # Both c and cxx compiler support -rpath directly
6905 hardcode_libdir_flag_spec='-rpath $libdir'
6906 fi
6907 hardcode_libdir_separator=:
6908 ;;
6909
6910 sco3.2v5*)
John Criswell7a73b802003-06-30 21:59:07 +00006911 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6912 hardcode_shlibpath_var=no
John Criswell47fdd832003-07-14 16:52:07 +00006913 export_dynamic_flag_spec='${wl}-Bexport'
John Criswell7a73b802003-06-30 21:59:07 +00006914 runpath_var=LD_RUN_PATH
6915 hardcode_runpath_var=yes
John Criswell47fdd832003-07-14 16:52:07 +00006916 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006917
John Criswell47fdd832003-07-14 16:52:07 +00006918 solaris*)
6919 no_undefined_flag=' -z text'
6920 if test "$GCC" = yes; then
6921 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6922 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6923 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
6924 else
6925 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6926 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6927 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6928 fi
6929 hardcode_libdir_flag_spec='-R$libdir'
6930 hardcode_shlibpath_var=no
6931 case $host_os in
6932 solaris2.[0-5] | solaris2.[0-5].*) ;;
6933 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6934 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6935 esac
6936 link_all_deplibs=yes
6937 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006938
John Criswell47fdd832003-07-14 16:52:07 +00006939 sunos4*)
6940 if test "x$host_vendor" = xsequent; then
6941 # Use $CC to link under sequent, because it throws in some extra .o
6942 # files that make .init and .fini sections work.
6943 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6944 else
6945 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6946 fi
6947 hardcode_libdir_flag_spec='-L$libdir'
6948 hardcode_direct=yes
6949 hardcode_minus_L=yes
6950 hardcode_shlibpath_var=no
6951 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006952
John Criswell47fdd832003-07-14 16:52:07 +00006953 sysv4)
6954 case $host_vendor in
6955 sni)
6956 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6957 hardcode_direct=yes # is this really true???
6958 ;;
6959 siemens)
6960 ## LD is ld it makes a PLAMLIB
6961 ## CC just makes a GrossModule.
6962 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6963 reload_cmds='$CC -r -o $output$reload_objs'
6964 hardcode_direct=no
6965 ;;
6966 motorola)
6967 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6968 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6969 ;;
6970 esac
6971 runpath_var='LD_RUN_PATH'
6972 hardcode_shlibpath_var=no
6973 ;;
6974
6975 sysv4.3*)
6976 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6977 hardcode_shlibpath_var=no
6978 export_dynamic_flag_spec='-Bexport'
6979 ;;
6980
6981 sysv4*MP*)
6982 if test -d /usr/nec; then
6983 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6984 hardcode_shlibpath_var=no
6985 runpath_var=LD_RUN_PATH
6986 hardcode_runpath_var=yes
6987 ld_shlibs=yes
6988 fi
6989 ;;
6990
6991 sysv4.2uw2*)
6992 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6993 hardcode_direct=yes
6994 hardcode_minus_L=no
6995 hardcode_shlibpath_var=no
6996 hardcode_runpath_var=yes
6997 runpath_var=LD_RUN_PATH
6998 ;;
6999
7000 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7001 no_undefined_flag='${wl}-z ${wl}text'
7002 if test "$GCC" = yes; then
7003 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7004 else
7005 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7006 fi
7007 runpath_var='LD_RUN_PATH'
7008 hardcode_shlibpath_var=no
7009 ;;
7010
7011 sysv5*)
7012 no_undefined_flag=' -z text'
7013 # $CC -shared without GNU ld will not create a library from C++
7014 # object files and a static libstdc++, better avoid it by now
7015 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7016 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7017 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7018 hardcode_libdir_flag_spec=
7019 hardcode_shlibpath_var=no
7020 runpath_var='LD_RUN_PATH'
7021 ;;
7022
7023 uts4*)
7024 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7025 hardcode_libdir_flag_spec='-L$libdir'
7026 hardcode_shlibpath_var=no
7027 ;;
7028
7029 *)
7030 ld_shlibs=no
7031 ;;
7032 esac
7033 fi
7034
John Criswell7a73b802003-06-30 21:59:07 +00007035echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7036echo "${ECHO_T}$ld_shlibs" >&6
7037test "$ld_shlibs" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00007038
John Criswell47fdd832003-07-14 16:52:07 +00007039variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7040if test "$GCC" = yes; then
7041 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7042fi
7043
7044#
7045# Do we need to explicitly link libc?
7046#
7047case "x$archive_cmds_need_lc" in
7048x|xyes)
7049 # Assume -lc should be added
7050 archive_cmds_need_lc=yes
7051
7052 if test "$enable_shared" = yes && test "$GCC" = yes; then
7053 case $archive_cmds in
7054 *'~'*)
7055 # FIXME: we may have to deal with multi-command sequences.
7056 ;;
7057 '$CC '*)
7058 # Test whether the compiler implicitly links with -lc since on some
7059 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7060 # to ld, don't add -lc before -lgcc.
7061 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7062echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7063 $rm conftest*
7064 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7065
7066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7067 (eval $ac_compile) 2>&5
7068 ac_status=$?
7069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7070 (exit $ac_status); } 2>conftest.err; then
7071 soname=conftest
7072 lib=conftest
7073 libobjs=conftest.$ac_objext
7074 deplibs=
7075 wl=$lt_prog_compiler_wl
7076 compiler_flags=-v
7077 linker_flags=-v
7078 verstring=
7079 output_objdir=.
7080 libname=conftest
7081 lt_save_allow_undefined_flag=$allow_undefined_flag
7082 allow_undefined_flag=
7083 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7084 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7085 ac_status=$?
7086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7087 (exit $ac_status); }
7088 then
7089 archive_cmds_need_lc=no
7090 else
7091 archive_cmds_need_lc=yes
7092 fi
7093 allow_undefined_flag=$lt_save_allow_undefined_flag
7094 else
7095 cat conftest.err 1>&5
7096 fi
7097 $rm conftest*
7098 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7099echo "${ECHO_T}$archive_cmds_need_lc" >&6
7100 ;;
7101 esac
7102 fi
7103 ;;
7104esac
7105
John Criswell7a73b802003-06-30 21:59:07 +00007106echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7107echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7108hardcode_action=
7109if test -n "$hardcode_libdir_flag_spec" || \
John Criswell47fdd832003-07-14 16:52:07 +00007110 test -n "$runpath_var " || \
7111 test "X$hardcode_automatic"="Xyes" ; then
John Criswell7a73b802003-06-30 21:59:07 +00007112
7113 # We can hardcode non-existant directories.
7114 if test "$hardcode_direct" != no &&
7115 # If the only mechanism to avoid hardcoding is shlibpath_var, we
7116 # have to relink, otherwise we might link with an installed library
7117 # when we should be linking with a yet-to-be-installed one
John Criswell47fdd832003-07-14 16:52:07 +00007118 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
John Criswell7a73b802003-06-30 21:59:07 +00007119 test "$hardcode_minus_L" != no; then
7120 # Linking always hardcodes the temporary library directory.
7121 hardcode_action=relink
7122 else
7123 # We can link without hardcoding, and we can hardcode nonexisting dirs.
7124 hardcode_action=immediate
7125 fi
7126else
7127 # We cannot hardcode anything, or else we can only hardcode existing
7128 # directories.
7129 hardcode_action=unsupported
7130fi
7131echo "$as_me:$LINENO: result: $hardcode_action" >&5
7132echo "${ECHO_T}$hardcode_action" >&6
John Criswell7a73b802003-06-30 21:59:07 +00007133
John Criswell47fdd832003-07-14 16:52:07 +00007134if test "$hardcode_action" = relink; then
7135 # Fast installation is not supported
7136 enable_fast_install=no
7137elif test "$shlibpath_overrides_runpath" = yes ||
7138 test "$enable_shared" = no; then
7139 # Fast installation is not necessary
7140 enable_fast_install=needless
7141fi
7142
John Criswell7a73b802003-06-30 21:59:07 +00007143striplib=
7144old_striplib=
7145echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7146echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7147if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7148 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7149 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7150 echo "$as_me:$LINENO: result: yes" >&5
7151echo "${ECHO_T}yes" >&6
7152else
John Criswell47fdd832003-07-14 16:52:07 +00007153# FIXME - insert some real tests, host_os isn't really good enough
7154 case $host_os in
7155 darwin*)
7156 if test -n "$STRIP" ; then
7157 striplib="$STRIP -x"
7158 echo "$as_me:$LINENO: result: yes" >&5
7159echo "${ECHO_T}yes" >&6
7160 else
John Criswell7a73b802003-06-30 21:59:07 +00007161 echo "$as_me:$LINENO: result: no" >&5
7162echo "${ECHO_T}no" >&6
7163fi
John Criswell47fdd832003-07-14 16:52:07 +00007164 ;;
7165 *)
7166 echo "$as_me:$LINENO: result: no" >&5
7167echo "${ECHO_T}no" >&6
7168 ;;
7169 esac
7170fi
John Criswell7a73b802003-06-30 21:59:07 +00007171
John Criswell7a73b802003-06-30 21:59:07 +00007172echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7173echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7174library_names_spec=
7175libname_spec='lib$name'
7176soname_spec=
John Criswell47fdd832003-07-14 16:52:07 +00007177shrext=".so"
John Criswell7a73b802003-06-30 21:59:07 +00007178postinstall_cmds=
7179postuninstall_cmds=
7180finish_cmds=
7181finish_eval=
7182shlibpath_var=
7183shlibpath_overrides_runpath=unknown
7184version_type=none
7185dynamic_linker="$host_os ld.so"
7186sys_lib_dlsearch_path_spec="/lib /usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +00007187if test "$GCC" = yes; then
7188 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7189 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7190 # if the path contains ";" then we assume it to be the separator
7191 # otherwise default to the standard path separator (i.e. ":") - it is
7192 # assumed that no part of a normal pathname contains ";" but that should
7193 # okay in the real world where ";" in dirpaths is itself problematic.
7194 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7195 else
7196 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7197 fi
7198else
7199 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7200fi
7201need_lib_prefix=unknown
7202hardcode_into_libs=no
7203
7204# when you set need_version to no, make sure it does not cause -set_version
7205# flags to be left without arguments
7206need_version=unknown
John Criswell7a73b802003-06-30 21:59:07 +00007207
7208case $host_os in
7209aix3*)
7210 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007211 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +00007212 shlibpath_var=LIBPATH
7213
John Criswell47fdd832003-07-14 16:52:07 +00007214 # AIX 3 has no versioning support, so we append a major version to the name.
7215 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007216 ;;
7217
7218aix4* | aix5*)
7219 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007220 need_lib_prefix=no
7221 need_version=no
7222 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +00007223 if test "$host_cpu" = ia64; then
7224 # AIX 5 supports IA64
John Criswell47fdd832003-07-14 16:52:07 +00007225 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007226 shlibpath_var=LD_LIBRARY_PATH
7227 else
7228 # With GCC up to 2.95.x, collect2 would create an import file
7229 # for dependence libraries. The import file would start with
7230 # the line `#! .'. This would cause the generated library to
7231 # depend on `.', always an invalid library. This was fixed in
7232 # development snapshots of GCC prior to 3.0.
7233 case $host_os in
7234 aix4 | aix4.[01] | aix4.[01].*)
John Criswell47fdd832003-07-14 16:52:07 +00007235 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7236 echo ' yes '
7237 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7238 :
7239 else
7240 can_build_shared=no
7241 fi
7242 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007243 esac
John Criswell47fdd832003-07-14 16:52:07 +00007244 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7245 # soname into executable. Probably we can add versioning support to
7246 # collect2, so additional links can be useful in future.
John Criswell7a73b802003-06-30 21:59:07 +00007247 if test "$aix_use_runtimelinking" = yes; then
7248 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7249 # instead of lib<name>.a to let people know that these are not
7250 # typical AIX shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +00007251 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007252 else
7253 # We preserve .a as extension for shared libraries through AIX4.2
7254 # and later when we are not doing run time linking.
7255 library_names_spec='${libname}${release}.a $libname.a'
John Criswell47fdd832003-07-14 16:52:07 +00007256 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007257 fi
7258 shlibpath_var=LIBPATH
7259 fi
7260 ;;
7261
7262amigaos*)
7263 library_names_spec='$libname.ixlibrary $libname.a'
7264 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7265 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'
7266 ;;
7267
7268beos*)
John Criswell47fdd832003-07-14 16:52:07 +00007269 library_names_spec='${libname}${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007270 dynamic_linker="$host_os ld.so"
7271 shlibpath_var=LIBRARY_PATH
7272 ;;
7273
7274bsdi4*)
7275 version_type=linux
7276 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7278 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007279 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7280 shlibpath_var=LD_LIBRARY_PATH
7281 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7282 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
John Criswell7a73b802003-06-30 21:59:07 +00007283 # the default ld.so.conf also contains /usr/contrib/lib and
7284 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7285 # libtool to hard-code these into programs
7286 ;;
7287
7288cygwin* | mingw* | pw32*)
7289 version_type=windows
John Criswell47fdd832003-07-14 16:52:07 +00007290 shrext=".dll"
John Criswell7a73b802003-06-30 21:59:07 +00007291 need_version=no
7292 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +00007293
John Criswell7a73b802003-06-30 21:59:07 +00007294 case $GCC,$host_os in
John Criswell47fdd832003-07-14 16:52:07 +00007295 yes,cygwin* | yes,mingw* | yes,pw32*)
John Criswell7a73b802003-06-30 21:59:07 +00007296 library_names_spec='$libname.dll.a'
John Criswell47fdd832003-07-14 16:52:07 +00007297 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7298 postinstall_cmds='base_file=`basename \${file}`~
7299 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
John Criswell7a73b802003-06-30 21:59:07 +00007300 dldir=$destdir/`dirname \$dlpath`~
7301 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +00007302 $install_prog $dir/$dlname \$dldir/$dlname'
7303 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
John Criswell7a73b802003-06-30 21:59:07 +00007304 dlpath=$dir/\$dldll~
7305 $rm \$dlpath'
John Criswell47fdd832003-07-14 16:52:07 +00007306 shlibpath_overrides_runpath=yes
7307
7308 case $host_os in
7309 cygwin*)
7310 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7311 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7312 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
7313 ;;
7314 mingw*)
7315 # MinGW DLLs use traditional 'lib' prefix
7316 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7317 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7318 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7319 # It is most probably a Windows format PATH printed by
7320 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7321 # path with ; separators, and with drive letters. We can handle the
7322 # drive letters (cygwin fileutils understands them), so leave them,
7323 # especially as we might pass files found there to a mingw objdump,
7324 # which wouldn't understand a cygwinified path. Ahh.
7325 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7326 else
7327 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7328 fi
7329 ;;
7330 pw32*)
7331 # pw32 DLLs use 'pw' prefix rather than 'lib'
7332 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7333 ;;
7334 esac
John Criswell7a73b802003-06-30 21:59:07 +00007335 ;;
John Criswell47fdd832003-07-14 16:52:07 +00007336
John Criswell7a73b802003-06-30 21:59:07 +00007337 *)
John Criswell47fdd832003-07-14 16:52:07 +00007338 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
John Criswell7a73b802003-06-30 21:59:07 +00007339 ;;
7340 esac
7341 dynamic_linker='Win32 ld.exe'
7342 # FIXME: first we should search . and the directory the executable is in
7343 shlibpath_var=PATH
7344 ;;
7345
7346darwin* | rhapsody*)
7347 dynamic_linker="$host_os dyld"
7348 version_type=darwin
7349 need_lib_prefix=no
7350 need_version=no
7351 # FIXME: Relying on posixy $() will cause problems for
7352 # cross-compilation, but unfortunately the echo tests do not
7353 # yet detect zsh echo's removal of \ escapes.
John Criswell47fdd832003-07-14 16:52:07 +00007354 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7355 soname_spec='${libname}${release}${major}$shared_ext'
John Criswell7a73b802003-06-30 21:59:07 +00007356 shlibpath_overrides_runpath=yes
7357 shlibpath_var=DYLD_LIBRARY_PATH
John Criswell47fdd832003-07-14 16:52:07 +00007358 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
7359 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7360 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7361 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"`
7362 fi
7363 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7364 ;;
7365
7366dgux*)
7367 version_type=linux
7368 need_lib_prefix=no
7369 need_version=no
7370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7371 soname_spec='${libname}${release}${shared_ext}$major'
7372 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +00007373 ;;
7374
7375freebsd1*)
7376 dynamic_linker=no
7377 ;;
7378
7379freebsd*)
7380 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7381 version_type=freebsd-$objformat
7382 case $version_type in
7383 freebsd-elf*)
John Criswell47fdd832003-07-14 16:52:07 +00007384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007385 need_version=no
7386 need_lib_prefix=no
7387 ;;
7388 freebsd-*)
John Criswell47fdd832003-07-14 16:52:07 +00007389 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +00007390 need_version=yes
7391 ;;
7392 esac
7393 shlibpath_var=LD_LIBRARY_PATH
7394 case $host_os in
7395 freebsd2*)
7396 shlibpath_overrides_runpath=yes
7397 ;;
John Criswell47fdd832003-07-14 16:52:07 +00007398 freebsd3.01* | freebsdelf3.01*)
7399 shlibpath_overrides_runpath=yes
7400 hardcode_into_libs=yes
7401 ;;
7402 *) # from 3.2 on
John Criswell7a73b802003-06-30 21:59:07 +00007403 shlibpath_overrides_runpath=no
7404 hardcode_into_libs=yes
7405 ;;
7406 esac
7407 ;;
7408
7409gnu*)
7410 version_type=linux
7411 need_lib_prefix=no
7412 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007413 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7414 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007415 shlibpath_var=LD_LIBRARY_PATH
7416 hardcode_into_libs=yes
7417 ;;
7418
7419hpux9* | hpux10* | hpux11*)
7420 # Give a soname corresponding to the major version so that dld.sl refuses to
7421 # link against other versions.
John Criswell7a73b802003-06-30 21:59:07 +00007422 version_type=sunos
7423 need_lib_prefix=no
7424 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007425 case "$host_cpu" in
7426 ia64*)
7427 shrext='.so'
7428 hardcode_into_libs=yes
7429 dynamic_linker="$host_os dld.so"
7430 shlibpath_var=LD_LIBRARY_PATH
7431 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7432 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7433 soname_spec='${libname}${release}${shared_ext}$major'
7434 if test "X$HPUX_IA64_MODE" = X32; then
7435 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7436 else
7437 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7438 fi
7439 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7440 ;;
7441 hppa*64*)
7442 shrext='.sl'
7443 hardcode_into_libs=yes
7444 dynamic_linker="$host_os dld.sl"
7445 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7446 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7447 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7448 soname_spec='${libname}${release}${shared_ext}$major'
7449 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7450 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7451 ;;
7452 *)
7453 shrext='.sl'
7454 dynamic_linker="$host_os dld.sl"
7455 shlibpath_var=SHLIB_PATH
7456 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7458 soname_spec='${libname}${release}${shared_ext}$major'
7459 ;;
7460 esac
John Criswell7a73b802003-06-30 21:59:07 +00007461 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7462 postinstall_cmds='chmod 555 $lib'
7463 ;;
7464
John Criswell47fdd832003-07-14 16:52:07 +00007465irix5* | irix6* | nonstopux*)
7466 case $host_os in
7467 nonstopux*) version_type=nonstopux ;;
7468 *)
7469 if test "$lt_cv_prog_gnu_ld" = yes; then
7470 version_type=linux
7471 else
7472 version_type=irix
7473 fi ;;
7474 esac
John Criswell7a73b802003-06-30 21:59:07 +00007475 need_lib_prefix=no
7476 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007477 soname_spec='${libname}${release}${shared_ext}$major'
7478 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 +00007479 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00007480 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +00007481 libsuff= shlibsuff=
7482 ;;
7483 *)
7484 case $LD in # libtool.m4 will add one of these switches to LD
John Criswell47fdd832003-07-14 16:52:07 +00007485 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7486 libsuff= shlibsuff= libmagic=32-bit;;
7487 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7488 libsuff=32 shlibsuff=N32 libmagic=N32;;
7489 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7490 libsuff=64 shlibsuff=64 libmagic=64-bit;;
John Criswell7a73b802003-06-30 21:59:07 +00007491 *) libsuff= shlibsuff= libmagic=never-match;;
7492 esac
7493 ;;
7494 esac
7495 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7496 shlibpath_overrides_runpath=no
7497 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7498 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
John Criswell47fdd832003-07-14 16:52:07 +00007499 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +00007500 ;;
7501
7502# No shared lib support for Linux oldld, aout, or coff.
John Criswell47fdd832003-07-14 16:52:07 +00007503linux*oldld* | linux*aout* | linux*coff*)
John Criswell7a73b802003-06-30 21:59:07 +00007504 dynamic_linker=no
7505 ;;
7506
7507# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +00007508linux*)
John Criswell7a73b802003-06-30 21:59:07 +00007509 version_type=linux
7510 need_lib_prefix=no
7511 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7513 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007514 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7515 shlibpath_var=LD_LIBRARY_PATH
7516 shlibpath_overrides_runpath=no
7517 # This implies no fast_install, which is unacceptable.
7518 # Some rework will be needed to allow for fast_install
7519 # before this can be enabled.
7520 hardcode_into_libs=yes
7521
7522 # We used to test for /lib/ld.so.1 and disable shared libraries on
7523 # powerpc, because MkLinux only supported shared libraries with the
7524 # GNU dynamic linker. Since this was broken with cross compilers,
7525 # most powerpc-linux boxes support dynamic linking these days and
7526 # people can always --disable-shared, the test was removed, and we
7527 # assume the GNU/Linux dynamic linker is in use.
7528 dynamic_linker='GNU/Linux ld.so'
7529 ;;
7530
7531netbsd*)
7532 version_type=sunos
7533 need_lib_prefix=no
7534 need_version=no
7535 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +00007536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +00007537 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7538 dynamic_linker='NetBSD (a.out) ld.so'
7539 else
John Criswell47fdd832003-07-14 16:52:07 +00007540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
7541 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007542 dynamic_linker='NetBSD ld.elf_so'
7543 fi
7544 shlibpath_var=LD_LIBRARY_PATH
7545 shlibpath_overrides_runpath=yes
7546 hardcode_into_libs=yes
7547 ;;
7548
7549newsos6)
7550 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7552 shlibpath_var=LD_LIBRARY_PATH
7553 shlibpath_overrides_runpath=yes
7554 ;;
7555
7556nto-qnx)
7557 version_type=linux
7558 need_lib_prefix=no
7559 need_version=no
7560 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 shlibpath_var=LD_LIBRARY_PATH
7563 shlibpath_overrides_runpath=yes
7564 ;;
7565
7566openbsd*)
7567 version_type=sunos
7568 need_lib_prefix=no
7569 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7571 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7572 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +00007573 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 +00007574 case $host_os in
7575 openbsd2.[89] | openbsd2.[89].*)
7576 shlibpath_overrides_runpath=no
7577 ;;
7578 *)
7579 shlibpath_overrides_runpath=yes
7580 ;;
7581 esac
John Criswell7a73b802003-06-30 21:59:07 +00007582 else
7583 shlibpath_overrides_runpath=yes
7584 fi
John Criswell7a73b802003-06-30 21:59:07 +00007585 ;;
7586
7587os2*)
7588 libname_spec='$name'
John Criswell47fdd832003-07-14 16:52:07 +00007589 shrext=".dll"
John Criswell7a73b802003-06-30 21:59:07 +00007590 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +00007591 library_names_spec='$libname${shared_ext} $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +00007592 dynamic_linker='OS/2 ld.exe'
7593 shlibpath_var=LIBPATH
7594 ;;
7595
7596osf3* | osf4* | osf5*)
7597 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +00007598 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +00007599 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007600 soname_spec='${libname}${release}${shared_ext}$major'
7601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007602 shlibpath_var=LD_LIBRARY_PATH
7603 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7604 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7605 ;;
7606
7607sco3.2v5*)
7608 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +00007609 soname_spec='${libname}${release}${shared_ext}$major'
7610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007611 shlibpath_var=LD_LIBRARY_PATH
7612 ;;
7613
7614solaris*)
7615 version_type=linux
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}${release}${shared_ext}$major $libname${shared_ext}'
7619 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007620 shlibpath_var=LD_LIBRARY_PATH
7621 shlibpath_overrides_runpath=yes
7622 hardcode_into_libs=yes
7623 # ldd complains unless libraries are executable
7624 postinstall_cmds='chmod +x $lib'
7625 ;;
7626
7627sunos4*)
7628 version_type=sunos
John Criswell47fdd832003-07-14 16:52:07 +00007629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +00007630 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7631 shlibpath_var=LD_LIBRARY_PATH
7632 shlibpath_overrides_runpath=yes
7633 if test "$with_gnu_ld" = yes; then
7634 need_lib_prefix=no
7635 fi
7636 need_version=yes
7637 ;;
7638
7639sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7640 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7642 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007643 shlibpath_var=LD_LIBRARY_PATH
7644 case $host_vendor in
7645 sni)
7646 shlibpath_overrides_runpath=no
John Criswell47fdd832003-07-14 16:52:07 +00007647 need_lib_prefix=no
7648 export_dynamic_flag_spec='${wl}-Blargedynsym'
7649 runpath_var=LD_RUN_PATH
7650 ;;
7651 siemens)
7652 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +00007653 ;;
7654 motorola)
7655 need_lib_prefix=no
7656 need_version=no
7657 shlibpath_overrides_runpath=no
7658 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7659 ;;
7660 esac
7661 ;;
7662
John Criswell7a73b802003-06-30 21:59:07 +00007663sysv4*MP*)
7664 if test -d /usr/nec ;then
7665 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007666 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7667 soname_spec='$libname${shared_ext}.$major'
John Criswell7a73b802003-06-30 21:59:07 +00007668 shlibpath_var=LD_LIBRARY_PATH
7669 fi
7670 ;;
7671
John Criswell47fdd832003-07-14 16:52:07 +00007672uts4*)
7673 version_type=linux
7674 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7675 soname_spec='${libname}${release}${shared_ext}$major'
7676 shlibpath_var=LD_LIBRARY_PATH
7677 ;;
7678
John Criswell7a73b802003-06-30 21:59:07 +00007679*)
7680 dynamic_linker=no
7681 ;;
7682esac
7683echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7684echo "${ECHO_T}$dynamic_linker" >&6
7685test "$dynamic_linker" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00007686
7687if test "x$enable_dlopen" != xyes; then
7688 enable_dlopen=unknown
7689 enable_dlopen_self=unknown
7690 enable_dlopen_self_static=unknown
7691else
7692 lt_cv_dlopen=no
7693 lt_cv_dlopen_libs=
7694
7695 case $host_os in
7696 beos*)
7697 lt_cv_dlopen="load_add_on"
7698 lt_cv_dlopen_libs=
7699 lt_cv_dlopen_self=yes
7700 ;;
7701
John Criswell47fdd832003-07-14 16:52:07 +00007702 mingw* | pw32*)
John Criswell7a73b802003-06-30 21:59:07 +00007703 lt_cv_dlopen="LoadLibrary"
7704 lt_cv_dlopen_libs=
7705 ;;
7706
John Criswell47fdd832003-07-14 16:52:07 +00007707 cygwin*)
7708 lt_cv_dlopen="dlopen"
7709 lt_cv_dlopen_libs=
7710 ;;
7711
7712 darwin*)
7713 # if libdl is installed we need to link against it
7714 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7715echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7716if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7717 echo $ECHO_N "(cached) $ECHO_C" >&6
7718else
7719 ac_check_lib_save_LIBS=$LIBS
7720LIBS="-ldl $LIBS"
7721cat >conftest.$ac_ext <<_ACEOF
7722#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00007723/* confdefs.h. */
7724_ACEOF
7725cat confdefs.h >>conftest.$ac_ext
7726cat >>conftest.$ac_ext <<_ACEOF
7727/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00007728
7729/* Override any gcc2 internal prototype to avoid an error. */
7730#ifdef __cplusplus
7731extern "C"
7732#endif
7733/* We use char because int might match the return type of a gcc2
7734 builtin and then its argument prototype would still apply. */
7735char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +00007736int
7737main ()
7738{
7739dlopen ();
7740 ;
7741 return 0;
7742}
7743_ACEOF
7744rm -f conftest.$ac_objext conftest$ac_exeext
7745if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7746 (eval $ac_link) 2>&5
7747 ac_status=$?
7748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7749 (exit $ac_status); } &&
7750 { ac_try='test -s conftest$ac_exeext'
7751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7752 (eval $ac_try) 2>&5
7753 ac_status=$?
7754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7755 (exit $ac_status); }; }; then
7756 ac_cv_lib_dl_dlopen=yes
7757else
7758 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00007759sed 's/^/| /' conftest.$ac_ext >&5
7760
John Criswell47fdd832003-07-14 16:52:07 +00007761ac_cv_lib_dl_dlopen=no
7762fi
7763rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7764LIBS=$ac_check_lib_save_LIBS
7765fi
7766echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7767echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7768if test $ac_cv_lib_dl_dlopen = yes; then
7769 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7770else
7771
7772 lt_cv_dlopen="dyld"
7773 lt_cv_dlopen_libs=
7774 lt_cv_dlopen_self=yes
7775
7776fi
7777
7778 ;;
7779
John Criswell7a73b802003-06-30 21:59:07 +00007780 *)
7781 echo "$as_me:$LINENO: checking for shl_load" >&5
7782echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7783if test "${ac_cv_func_shl_load+set}" = set; then
7784 echo $ECHO_N "(cached) $ECHO_C" >&6
7785else
7786 cat >conftest.$ac_ext <<_ACEOF
7787#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00007788/* confdefs.h. */
7789_ACEOF
7790cat confdefs.h >>conftest.$ac_ext
7791cat >>conftest.$ac_ext <<_ACEOF
7792/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00007793/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +00007794 which can conflict with char shl_load (); below.
7795 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7796 <limits.h> exists even on freestanding compilers. */
7797#ifdef __STDC__
7798# include <limits.h>
7799#else
7800# include <assert.h>
7801#endif
John Criswell7a73b802003-06-30 21:59:07 +00007802/* Override any gcc2 internal prototype to avoid an error. */
7803#ifdef __cplusplus
7804extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +00007805{
John Criswell7a73b802003-06-30 21:59:07 +00007806#endif
7807/* We use char because int might match the return type of a gcc2
7808 builtin and then its argument prototype would still apply. */
7809char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +00007810/* The GNU C library defines this for functions which it implements
7811 to always fail with ENOSYS. Some functions are actually named
7812 something starting with __ and the normal name is an alias. */
7813#if defined (__stub_shl_load) || defined (__stub___shl_load)
7814choke me
7815#else
John Criswell0c38eaf2003-09-10 15:17:25 +00007816char (*f) () = shl_load;
7817#endif
7818#ifdef __cplusplus
7819}
John Criswell7a73b802003-06-30 21:59:07 +00007820#endif
7821
John Criswell0c38eaf2003-09-10 15:17:25 +00007822int
7823main ()
7824{
7825return f != shl_load;
John Criswell7a73b802003-06-30 21:59:07 +00007826 ;
7827 return 0;
7828}
7829_ACEOF
7830rm -f conftest.$ac_objext conftest$ac_exeext
7831if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7832 (eval $ac_link) 2>&5
7833 ac_status=$?
7834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7835 (exit $ac_status); } &&
7836 { ac_try='test -s conftest$ac_exeext'
7837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7838 (eval $ac_try) 2>&5
7839 ac_status=$?
7840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7841 (exit $ac_status); }; }; then
7842 ac_cv_func_shl_load=yes
7843else
7844 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00007845sed 's/^/| /' conftest.$ac_ext >&5
7846
John Criswell7a73b802003-06-30 21:59:07 +00007847ac_cv_func_shl_load=no
7848fi
7849rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7850fi
7851echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7852echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7853if test $ac_cv_func_shl_load = yes; then
7854 lt_cv_dlopen="shl_load"
7855else
7856 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7857echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7858if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7859 echo $ECHO_N "(cached) $ECHO_C" >&6
7860else
7861 ac_check_lib_save_LIBS=$LIBS
7862LIBS="-ldld $LIBS"
7863cat >conftest.$ac_ext <<_ACEOF
7864#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00007865/* confdefs.h. */
7866_ACEOF
7867cat confdefs.h >>conftest.$ac_ext
7868cat >>conftest.$ac_ext <<_ACEOF
7869/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00007870
7871/* Override any gcc2 internal prototype to avoid an error. */
7872#ifdef __cplusplus
7873extern "C"
7874#endif
7875/* We use char because int might match the return type of a gcc2
7876 builtin and then its argument prototype would still apply. */
7877char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +00007878int
7879main ()
7880{
7881shl_load ();
7882 ;
7883 return 0;
7884}
7885_ACEOF
7886rm -f conftest.$ac_objext conftest$ac_exeext
7887if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7888 (eval $ac_link) 2>&5
7889 ac_status=$?
7890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7891 (exit $ac_status); } &&
7892 { ac_try='test -s conftest$ac_exeext'
7893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7894 (eval $ac_try) 2>&5
7895 ac_status=$?
7896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7897 (exit $ac_status); }; }; then
7898 ac_cv_lib_dld_shl_load=yes
7899else
7900 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00007901sed 's/^/| /' conftest.$ac_ext >&5
7902
John Criswell7a73b802003-06-30 21:59:07 +00007903ac_cv_lib_dld_shl_load=no
7904fi
7905rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7906LIBS=$ac_check_lib_save_LIBS
7907fi
7908echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7909echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7910if test $ac_cv_lib_dld_shl_load = yes; then
7911 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
7912else
7913 echo "$as_me:$LINENO: checking for dlopen" >&5
7914echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
7915if test "${ac_cv_func_dlopen+set}" = set; then
7916 echo $ECHO_N "(cached) $ECHO_C" >&6
7917else
7918 cat >conftest.$ac_ext <<_ACEOF
7919#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00007920/* confdefs.h. */
7921_ACEOF
7922cat confdefs.h >>conftest.$ac_ext
7923cat >>conftest.$ac_ext <<_ACEOF
7924/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00007925/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +00007926 which can conflict with char dlopen (); below.
7927 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7928 <limits.h> exists even on freestanding compilers. */
7929#ifdef __STDC__
7930# include <limits.h>
7931#else
7932# include <assert.h>
7933#endif
John Criswell7a73b802003-06-30 21:59:07 +00007934/* Override any gcc2 internal prototype to avoid an error. */
7935#ifdef __cplusplus
7936extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +00007937{
John Criswell7a73b802003-06-30 21:59:07 +00007938#endif
7939/* We use char because int might match the return type of a gcc2
7940 builtin and then its argument prototype would still apply. */
7941char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +00007942/* The GNU C library defines this for functions which it implements
7943 to always fail with ENOSYS. Some functions are actually named
7944 something starting with __ and the normal name is an alias. */
7945#if defined (__stub_dlopen) || defined (__stub___dlopen)
7946choke me
7947#else
John Criswell0c38eaf2003-09-10 15:17:25 +00007948char (*f) () = dlopen;
7949#endif
7950#ifdef __cplusplus
7951}
John Criswell7a73b802003-06-30 21:59:07 +00007952#endif
7953
John Criswell0c38eaf2003-09-10 15:17:25 +00007954int
7955main ()
7956{
7957return f != dlopen;
John Criswell7a73b802003-06-30 21:59:07 +00007958 ;
7959 return 0;
7960}
7961_ACEOF
7962rm -f conftest.$ac_objext conftest$ac_exeext
7963if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7964 (eval $ac_link) 2>&5
7965 ac_status=$?
7966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7967 (exit $ac_status); } &&
7968 { ac_try='test -s conftest$ac_exeext'
7969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7970 (eval $ac_try) 2>&5
7971 ac_status=$?
7972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7973 (exit $ac_status); }; }; then
7974 ac_cv_func_dlopen=yes
7975else
7976 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00007977sed 's/^/| /' conftest.$ac_ext >&5
7978
John Criswell7a73b802003-06-30 21:59:07 +00007979ac_cv_func_dlopen=no
7980fi
7981rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7982fi
7983echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
7984echo "${ECHO_T}$ac_cv_func_dlopen" >&6
7985if test $ac_cv_func_dlopen = yes; then
7986 lt_cv_dlopen="dlopen"
7987else
7988 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7989echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7990if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7991 echo $ECHO_N "(cached) $ECHO_C" >&6
7992else
7993 ac_check_lib_save_LIBS=$LIBS
7994LIBS="-ldl $LIBS"
7995cat >conftest.$ac_ext <<_ACEOF
7996#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00007997/* confdefs.h. */
7998_ACEOF
7999cat confdefs.h >>conftest.$ac_ext
8000cat >>conftest.$ac_ext <<_ACEOF
8001/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008002
8003/* Override any gcc2 internal prototype to avoid an error. */
8004#ifdef __cplusplus
8005extern "C"
8006#endif
8007/* We use char because int might match the return type of a gcc2
8008 builtin and then its argument prototype would still apply. */
8009char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +00008010int
8011main ()
8012{
8013dlopen ();
8014 ;
8015 return 0;
8016}
8017_ACEOF
8018rm -f conftest.$ac_objext conftest$ac_exeext
8019if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8020 (eval $ac_link) 2>&5
8021 ac_status=$?
8022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8023 (exit $ac_status); } &&
8024 { ac_try='test -s conftest$ac_exeext'
8025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8026 (eval $ac_try) 2>&5
8027 ac_status=$?
8028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8029 (exit $ac_status); }; }; then
8030 ac_cv_lib_dl_dlopen=yes
8031else
8032 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008033sed 's/^/| /' conftest.$ac_ext >&5
8034
John Criswell7a73b802003-06-30 21:59:07 +00008035ac_cv_lib_dl_dlopen=no
8036fi
8037rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8038LIBS=$ac_check_lib_save_LIBS
8039fi
8040echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8041echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8042if test $ac_cv_lib_dl_dlopen = yes; then
8043 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8044else
8045 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8046echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8047if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8048 echo $ECHO_N "(cached) $ECHO_C" >&6
8049else
8050 ac_check_lib_save_LIBS=$LIBS
8051LIBS="-lsvld $LIBS"
8052cat >conftest.$ac_ext <<_ACEOF
8053#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008054/* confdefs.h. */
8055_ACEOF
8056cat confdefs.h >>conftest.$ac_ext
8057cat >>conftest.$ac_ext <<_ACEOF
8058/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008059
8060/* Override any gcc2 internal prototype to avoid an error. */
8061#ifdef __cplusplus
8062extern "C"
8063#endif
8064/* We use char because int might match the return type of a gcc2
8065 builtin and then its argument prototype would still apply. */
8066char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +00008067int
8068main ()
8069{
8070dlopen ();
8071 ;
8072 return 0;
8073}
8074_ACEOF
8075rm -f conftest.$ac_objext conftest$ac_exeext
8076if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8077 (eval $ac_link) 2>&5
8078 ac_status=$?
8079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8080 (exit $ac_status); } &&
8081 { ac_try='test -s conftest$ac_exeext'
8082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8083 (eval $ac_try) 2>&5
8084 ac_status=$?
8085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8086 (exit $ac_status); }; }; then
8087 ac_cv_lib_svld_dlopen=yes
8088else
8089 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008090sed 's/^/| /' conftest.$ac_ext >&5
8091
John Criswell7a73b802003-06-30 21:59:07 +00008092ac_cv_lib_svld_dlopen=no
8093fi
8094rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8095LIBS=$ac_check_lib_save_LIBS
8096fi
8097echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8098echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8099if test $ac_cv_lib_svld_dlopen = yes; then
8100 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8101else
8102 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8103echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8104if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8105 echo $ECHO_N "(cached) $ECHO_C" >&6
8106else
8107 ac_check_lib_save_LIBS=$LIBS
8108LIBS="-ldld $LIBS"
8109cat >conftest.$ac_ext <<_ACEOF
8110#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008111/* confdefs.h. */
8112_ACEOF
8113cat confdefs.h >>conftest.$ac_ext
8114cat >>conftest.$ac_ext <<_ACEOF
8115/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008116
8117/* Override any gcc2 internal prototype to avoid an error. */
8118#ifdef __cplusplus
8119extern "C"
8120#endif
8121/* We use char because int might match the return type of a gcc2
8122 builtin and then its argument prototype would still apply. */
8123char dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +00008124int
8125main ()
8126{
8127dld_link ();
8128 ;
8129 return 0;
8130}
8131_ACEOF
8132rm -f conftest.$ac_objext conftest$ac_exeext
8133if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8134 (eval $ac_link) 2>&5
8135 ac_status=$?
8136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8137 (exit $ac_status); } &&
8138 { ac_try='test -s conftest$ac_exeext'
8139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8140 (eval $ac_try) 2>&5
8141 ac_status=$?
8142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8143 (exit $ac_status); }; }; then
8144 ac_cv_lib_dld_dld_link=yes
8145else
8146 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008147sed 's/^/| /' conftest.$ac_ext >&5
8148
John Criswell7a73b802003-06-30 21:59:07 +00008149ac_cv_lib_dld_dld_link=no
8150fi
8151rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8152LIBS=$ac_check_lib_save_LIBS
8153fi
8154echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8155echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8156if test $ac_cv_lib_dld_dld_link = yes; then
8157 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8158fi
8159
8160
8161fi
8162
8163
8164fi
8165
8166
8167fi
8168
8169
8170fi
8171
8172
8173fi
8174
8175 ;;
8176 esac
8177
8178 if test "x$lt_cv_dlopen" != xno; then
8179 enable_dlopen=yes
8180 else
8181 enable_dlopen=no
8182 fi
8183
8184 case $lt_cv_dlopen in
8185 dlopen)
8186 save_CPPFLAGS="$CPPFLAGS"
John Criswell47fdd832003-07-14 16:52:07 +00008187 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
John Criswell7a73b802003-06-30 21:59:07 +00008188
8189 save_LDFLAGS="$LDFLAGS"
8190 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8191
8192 save_LIBS="$LIBS"
8193 LIBS="$lt_cv_dlopen_libs $LIBS"
8194
8195 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8196echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8197if test "${lt_cv_dlopen_self+set}" = set; then
8198 echo $ECHO_N "(cached) $ECHO_C" >&6
8199else
8200 if test "$cross_compiling" = yes; then :
8201 lt_cv_dlopen_self=cross
8202else
John Criswell47fdd832003-07-14 16:52:07 +00008203 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +00008204 lt_status=$lt_dlunknown
8205 cat > conftest.$ac_ext <<EOF
John Criswell33a911a2003-11-25 20:36:46 +00008206#line 8206 "configure"
John Criswell7a73b802003-06-30 21:59:07 +00008207#include "confdefs.h"
8208
8209#if HAVE_DLFCN_H
8210#include <dlfcn.h>
8211#endif
8212
8213#include <stdio.h>
8214
8215#ifdef RTLD_GLOBAL
8216# define LT_DLGLOBAL RTLD_GLOBAL
8217#else
8218# ifdef DL_GLOBAL
8219# define LT_DLGLOBAL DL_GLOBAL
8220# else
8221# define LT_DLGLOBAL 0
8222# endif
8223#endif
8224
8225/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8226 find out it does not work in some platform. */
8227#ifndef LT_DLLAZY_OR_NOW
8228# ifdef RTLD_LAZY
8229# define LT_DLLAZY_OR_NOW RTLD_LAZY
8230# else
8231# ifdef DL_LAZY
8232# define LT_DLLAZY_OR_NOW DL_LAZY
8233# else
8234# ifdef RTLD_NOW
8235# define LT_DLLAZY_OR_NOW RTLD_NOW
8236# else
8237# ifdef DL_NOW
8238# define LT_DLLAZY_OR_NOW DL_NOW
8239# else
8240# define LT_DLLAZY_OR_NOW 0
8241# endif
8242# endif
8243# endif
8244# endif
8245#endif
8246
8247#ifdef __cplusplus
8248extern "C" void exit (int);
8249#endif
8250
8251void fnord() { int i=42;}
8252int main ()
8253{
8254 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8255 int status = $lt_dlunknown;
8256
8257 if (self)
8258 {
8259 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8260 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8261 /* dlclose (self); */
8262 }
8263
8264 exit (status);
8265}
8266EOF
8267 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8268 (eval $ac_link) 2>&5
8269 ac_status=$?
8270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8271 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8272 (./conftest; exit; ) 2>/dev/null
8273 lt_status=$?
8274 case x$lt_status in
8275 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8276 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8277 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8278 esac
8279 else :
8280 # compilation failed
8281 lt_cv_dlopen_self=no
8282 fi
8283fi
8284rm -fr conftest*
8285
8286
8287fi
8288echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8289echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8290
8291 if test "x$lt_cv_dlopen_self" = xyes; then
8292 LDFLAGS="$LDFLAGS $link_static_flag"
8293 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8294echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8295if test "${lt_cv_dlopen_self_static+set}" = set; then
8296 echo $ECHO_N "(cached) $ECHO_C" >&6
8297else
8298 if test "$cross_compiling" = yes; then :
8299 lt_cv_dlopen_self_static=cross
8300else
John Criswell47fdd832003-07-14 16:52:07 +00008301 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +00008302 lt_status=$lt_dlunknown
8303 cat > conftest.$ac_ext <<EOF
John Criswell33a911a2003-11-25 20:36:46 +00008304#line 8304 "configure"
John Criswell7a73b802003-06-30 21:59:07 +00008305#include "confdefs.h"
8306
8307#if HAVE_DLFCN_H
8308#include <dlfcn.h>
8309#endif
8310
8311#include <stdio.h>
8312
8313#ifdef RTLD_GLOBAL
8314# define LT_DLGLOBAL RTLD_GLOBAL
8315#else
8316# ifdef DL_GLOBAL
8317# define LT_DLGLOBAL DL_GLOBAL
8318# else
8319# define LT_DLGLOBAL 0
8320# endif
8321#endif
8322
8323/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8324 find out it does not work in some platform. */
8325#ifndef LT_DLLAZY_OR_NOW
8326# ifdef RTLD_LAZY
8327# define LT_DLLAZY_OR_NOW RTLD_LAZY
8328# else
8329# ifdef DL_LAZY
8330# define LT_DLLAZY_OR_NOW DL_LAZY
8331# else
8332# ifdef RTLD_NOW
8333# define LT_DLLAZY_OR_NOW RTLD_NOW
8334# else
8335# ifdef DL_NOW
8336# define LT_DLLAZY_OR_NOW DL_NOW
8337# else
8338# define LT_DLLAZY_OR_NOW 0
8339# endif
8340# endif
8341# endif
8342# endif
8343#endif
8344
8345#ifdef __cplusplus
8346extern "C" void exit (int);
8347#endif
8348
8349void fnord() { int i=42;}
8350int main ()
8351{
8352 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8353 int status = $lt_dlunknown;
8354
8355 if (self)
8356 {
8357 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8358 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8359 /* dlclose (self); */
8360 }
8361
8362 exit (status);
8363}
8364EOF
8365 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8366 (eval $ac_link) 2>&5
8367 ac_status=$?
8368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8369 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8370 (./conftest; exit; ) 2>/dev/null
8371 lt_status=$?
8372 case x$lt_status in
8373 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8374 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8375 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8376 esac
8377 else :
8378 # compilation failed
8379 lt_cv_dlopen_self_static=no
8380 fi
8381fi
8382rm -fr conftest*
8383
8384
8385fi
8386echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8387echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8388 fi
8389
8390 CPPFLAGS="$save_CPPFLAGS"
8391 LDFLAGS="$save_LDFLAGS"
8392 LIBS="$save_LIBS"
8393 ;;
8394 esac
8395
8396 case $lt_cv_dlopen_self in
8397 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8398 *) enable_dlopen_self=unknown ;;
8399 esac
8400
8401 case $lt_cv_dlopen_self_static in
8402 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8403 *) enable_dlopen_self_static=unknown ;;
8404 esac
8405fi
8406
8407
John Criswell47fdd832003-07-14 16:52:07 +00008408# Report which librarie types wil actually be built
8409echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8410echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8411echo "$as_me:$LINENO: result: $can_build_shared" >&5
8412echo "${ECHO_T}$can_build_shared" >&6
John Criswell7a73b802003-06-30 21:59:07 +00008413
John Criswell47fdd832003-07-14 16:52:07 +00008414echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8415echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8416test "$can_build_shared" = "no" && enable_shared=no
8417
8418# On AIX, shared libraries and static libraries use the same namespace, and
8419# are all built from PIC.
8420case "$host_os" in
8421aix3*)
8422 test "$enable_shared" = yes && enable_static=no
8423 if test -n "$RANLIB"; then
8424 archive_cmds="$archive_cmds~\$RANLIB \$lib"
8425 postinstall_cmds='$RANLIB $lib'
8426 fi
8427 ;;
8428
8429aix4*)
8430 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8431 test "$enable_shared" = yes && enable_static=no
8432 fi
8433 ;;
8434 darwin* | rhapsody*)
8435 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
8436 archive_cmds_need_lc=no
8437 case "$host_os" in
8438 rhapsody* | darwin1.[012])
8439 allow_undefined_flag='-undefined suppress'
8440 ;;
8441 *) # Darwin 1.3 on
8442 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
8443 ;;
8444 esac
8445 # FIXME: Relying on posixy $() will cause problems for
8446 # cross-compilation, but unfortunately the echo tests do not
8447 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
8448 # `"' quotes if we put them in here... so don't!
8449 output_verbose_link_cmd='echo'
8450 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8451 module_cmds='$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
8452 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8453 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}'
8454 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}'
8455 hardcode_direct=no
8456 hardcode_automatic=yes
8457 hardcode_shlibpath_var=unsupported
8458 whole_archive_flag_spec='-all_load $convenience'
8459 link_all_deplibs=yes
John Criswell7a73b802003-06-30 21:59:07 +00008460 fi
John Criswell7a73b802003-06-30 21:59:07 +00008461 ;;
John Criswell47fdd832003-07-14 16:52:07 +00008462esac
8463echo "$as_me:$LINENO: result: $enable_shared" >&5
8464echo "${ECHO_T}$enable_shared" >&6
John Criswell7a73b802003-06-30 21:59:07 +00008465
John Criswell47fdd832003-07-14 16:52:07 +00008466echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8467echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8468# Make sure either enable_shared or enable_static is yes.
8469test "$enable_shared" = yes || enable_static=yes
8470echo "$as_me:$LINENO: result: $enable_static" >&5
8471echo "${ECHO_T}$enable_static" >&6
8472
8473# The else clause should only fire when bootstrapping the
John Criswell7a73b802003-06-30 21:59:07 +00008474# libtool distribution, otherwise you forgot to ship ltmain.sh
8475# with your package, and you will get complaints that there are
8476# no rules to generate ltmain.sh.
8477if test -f "$ltmain"; then
John Criswell47fdd832003-07-14 16:52:07 +00008478 # See if we are running on zsh, and set the options which allow our commands through
8479 # without removal of \ escapes.
8480 if test -n "${ZSH_VERSION+set}" ; then
8481 setopt NO_GLOB_SUBST
8482 fi
John Criswell7a73b802003-06-30 21:59:07 +00008483 # Now quote all the things that may contain metacharacters while being
8484 # careful not to overquote the AC_SUBSTed values. We take copies of the
8485 # variables and quote the copies for generation of the libtool script.
John Criswell47fdd832003-07-14 16:52:07 +00008486 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
8487 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8488 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8489 deplibs_check_method reload_flag reload_cmds need_locks \
8490 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8491 lt_cv_sys_global_symbol_to_c_name_address \
John Criswell7a73b802003-06-30 21:59:07 +00008492 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
John Criswell47fdd832003-07-14 16:52:07 +00008493 old_postinstall_cmds old_postuninstall_cmds \
8494 compiler \
8495 CC \
8496 LD \
8497 lt_prog_compiler_wl \
8498 lt_prog_compiler_pic \
8499 lt_prog_compiler_static \
8500 lt_prog_compiler_no_builtin_flag \
8501 export_dynamic_flag_spec \
8502 thread_safe_flag_spec \
8503 whole_archive_flag_spec \
8504 enable_shared_with_static_runtimes \
8505 old_archive_cmds \
8506 old_archive_from_new_cmds \
8507 predep_objects \
8508 postdep_objects \
8509 predeps \
8510 postdeps \
8511 compiler_lib_search_path \
8512 archive_cmds \
8513 archive_expsym_cmds \
8514 postinstall_cmds \
8515 postuninstall_cmds \
8516 old_archive_from_expsyms_cmds \
8517 allow_undefined_flag \
8518 no_undefined_flag \
8519 export_symbols_cmds \
8520 hardcode_libdir_flag_spec \
8521 hardcode_libdir_flag_spec_ld \
8522 hardcode_libdir_separator \
8523 hardcode_automatic \
8524 module_cmds \
8525 module_expsym_cmds \
8526 lt_cv_prog_compiler_c_o \
8527 exclude_expsyms \
8528 include_expsyms; do
John Criswell7a73b802003-06-30 21:59:07 +00008529
8530 case $var in
John Criswell47fdd832003-07-14 16:52:07 +00008531 old_archive_cmds | \
8532 old_archive_from_new_cmds | \
8533 archive_cmds | \
8534 archive_expsym_cmds | \
8535 module_cmds | \
8536 module_expsym_cmds | \
8537 old_archive_from_expsyms_cmds | \
8538 export_symbols_cmds | \
8539 extract_expsyms_cmds | reload_cmds | finish_cmds | \
John Criswell7a73b802003-06-30 21:59:07 +00008540 postinstall_cmds | postuninstall_cmds | \
John Criswell47fdd832003-07-14 16:52:07 +00008541 old_postinstall_cmds | old_postuninstall_cmds | \
8542 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
John Criswell7a73b802003-06-30 21:59:07 +00008543 # Double-quote double-evaled strings.
8544 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8545 ;;
8546 *)
8547 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8548 ;;
8549 esac
8550 done
8551
John Criswell47fdd832003-07-14 16:52:07 +00008552 case $lt_echo in
8553 *'\$0 --fallback-echo"')
8554 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8555 ;;
8556 esac
8557
8558cfgfile="${ofile}T"
8559 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8560 $rm -f "$cfgfile"
8561 { echo "$as_me:$LINENO: creating $ofile" >&5
8562echo "$as_me: creating $ofile" >&6;}
8563
8564 cat <<__EOF__ >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +00008565#! $SHELL
8566
John Criswell47fdd832003-07-14 16:52:07 +00008567# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
John Criswell7a73b802003-06-30 21:59:07 +00008568# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8569# NOTE: Changes made to this file will be lost: look at ltmain.sh.
8570#
John Criswell47fdd832003-07-14 16:52:07 +00008571# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8572# Free Software Foundation, Inc.
8573#
8574# This file is part of GNU Libtool:
John Criswell7a73b802003-06-30 21:59:07 +00008575# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8576#
8577# This program is free software; you can redistribute it and/or modify
8578# it under the terms of the GNU General Public License as published by
8579# the Free Software Foundation; either version 2 of the License, or
8580# (at your option) any later version.
8581#
8582# This program is distributed in the hope that it will be useful, but
8583# WITHOUT ANY WARRANTY; without even the implied warranty of
8584# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
8585# General Public License for more details.
8586#
8587# You should have received a copy of the GNU General Public License
8588# along with this program; if not, write to the Free Software
8589# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8590#
8591# As a special exception to the GNU General Public License, if you
8592# distribute this file as part of a program that contains a
8593# configuration script generated by Autoconf, you may include it under
8594# the same distribution terms that you use for the rest of that program.
8595
John Criswell47fdd832003-07-14 16:52:07 +00008596# A sed program that does not truncate output.
8597SED=$lt_SED
8598
John Criswell7a73b802003-06-30 21:59:07 +00008599# Sed that helps us avoid accidentally triggering echo(1) options like -n.
John Criswell47fdd832003-07-14 16:52:07 +00008600Xsed="$SED -e s/^X//"
John Criswell7a73b802003-06-30 21:59:07 +00008601
8602# The HP-UX ksh and POSIX shell print the target directory to stdout
8603# if CDPATH is set.
8604if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8605
John Criswell47fdd832003-07-14 16:52:07 +00008606# The names of the tagged configurations supported by this script.
8607available_tags=
8608
John Criswell7a73b802003-06-30 21:59:07 +00008609# ### BEGIN LIBTOOL CONFIG
8610
8611# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8612
8613# Shell to use when invoking shell scripts.
8614SHELL=$lt_SHELL
8615
8616# Whether or not to build shared libraries.
8617build_libtool_libs=$enable_shared
8618
8619# Whether or not to build static libraries.
8620build_old_libs=$enable_static
8621
8622# Whether or not to add -lc for building shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +00008623build_libtool_need_lc=$archive_cmds_need_lc
8624
8625# Whether or not to disallow shared libs when runtime libs are static
8626allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
John Criswell7a73b802003-06-30 21:59:07 +00008627
8628# Whether or not to optimize for fast installation.
8629fast_install=$enable_fast_install
8630
8631# The host system.
8632host_alias=$host_alias
8633host=$host
8634
8635# An echo program that does not interpret backslashes.
8636echo=$lt_echo
8637
8638# The archiver.
8639AR=$lt_AR
8640AR_FLAGS=$lt_AR_FLAGS
8641
John Criswell47fdd832003-07-14 16:52:07 +00008642# A C compiler.
8643LTCC=$lt_LTCC
8644
8645# A language-specific compiler.
8646CC=$lt_compiler
John Criswell7a73b802003-06-30 21:59:07 +00008647
8648# Is the compiler the GNU C compiler?
8649with_gcc=$GCC
8650
John Criswell47fdd832003-07-14 16:52:07 +00008651# An ERE matcher.
8652EGREP=$lt_EGREP
8653
John Criswell7a73b802003-06-30 21:59:07 +00008654# The linker used to build libraries.
8655LD=$lt_LD
8656
8657# Whether we need hard or soft links.
8658LN_S=$lt_LN_S
8659
8660# A BSD-compatible nm program.
8661NM=$lt_NM
8662
8663# A symbol stripping program
8664STRIP=$STRIP
8665
8666# Used to examine libraries when file_magic_cmd begins "file"
8667MAGIC_CMD=$MAGIC_CMD
8668
8669# Used on cygwin: DLL creation program.
8670DLLTOOL="$DLLTOOL"
8671
8672# Used on cygwin: object dumper.
8673OBJDUMP="$OBJDUMP"
8674
8675# Used on cygwin: assembler.
8676AS="$AS"
8677
8678# The name of the directory that contains temporary libtool files.
8679objdir=$objdir
8680
8681# How to create reloadable object files.
8682reload_flag=$lt_reload_flag
8683reload_cmds=$lt_reload_cmds
8684
8685# How to pass a linker flag through the compiler.
John Criswell47fdd832003-07-14 16:52:07 +00008686wl=$lt_lt_prog_compiler_wl
John Criswell7a73b802003-06-30 21:59:07 +00008687
8688# Object file suffix (normally "o").
8689objext="$ac_objext"
8690
8691# Old archive suffix (normally "a").
8692libext="$libext"
8693
John Criswell47fdd832003-07-14 16:52:07 +00008694# Shared library suffix (normally ".so").
8695shrext='$shrext'
8696
John Criswell7a73b802003-06-30 21:59:07 +00008697# Executable file suffix (normally "").
8698exeext="$exeext"
8699
8700# Additional compiler flags for building library objects.
John Criswell47fdd832003-07-14 16:52:07 +00008701pic_flag=$lt_lt_prog_compiler_pic
John Criswell7a73b802003-06-30 21:59:07 +00008702pic_mode=$pic_mode
8703
John Criswell47fdd832003-07-14 16:52:07 +00008704# What is the maximum length of a command?
8705max_cmd_len=$lt_cv_sys_max_cmd_len
John Criswell7a73b802003-06-30 21:59:07 +00008706
John Criswell47fdd832003-07-14 16:52:07 +00008707# Does compiler simultaneously support -c and -o options?
8708compiler_c_o=$lt_lt_cv_prog_compiler_c_o
John Criswell7a73b802003-06-30 21:59:07 +00008709
8710# Must we lock files when doing compilation ?
8711need_locks=$lt_need_locks
8712
8713# Do we need the lib prefix for modules?
8714need_lib_prefix=$need_lib_prefix
8715
8716# Do we need a version for libraries?
8717need_version=$need_version
8718
8719# Whether dlopen is supported.
8720dlopen_support=$enable_dlopen
8721
8722# Whether dlopen of programs is supported.
8723dlopen_self=$enable_dlopen_self
8724
8725# Whether dlopen of statically linked programs is supported.
8726dlopen_self_static=$enable_dlopen_self_static
8727
8728# Compiler flag to prevent dynamic linking.
John Criswell47fdd832003-07-14 16:52:07 +00008729link_static_flag=$lt_lt_prog_compiler_static
John Criswell7a73b802003-06-30 21:59:07 +00008730
8731# Compiler flag to turn off builtin functions.
John Criswell47fdd832003-07-14 16:52:07 +00008732no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
John Criswell7a73b802003-06-30 21:59:07 +00008733
8734# Compiler flag to allow reflexive dlopens.
8735export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
8736
8737# Compiler flag to generate shared objects directly from archives.
8738whole_archive_flag_spec=$lt_whole_archive_flag_spec
8739
8740# Compiler flag to generate thread-safe objects.
8741thread_safe_flag_spec=$lt_thread_safe_flag_spec
8742
8743# Library versioning type.
8744version_type=$version_type
8745
8746# Format of library name prefix.
8747libname_spec=$lt_libname_spec
8748
8749# List of archive names. First name is the real one, the rest are links.
8750# The last name is the one that the linker finds with -lNAME.
8751library_names_spec=$lt_library_names_spec
8752
8753# The coded name of the library, if different from the real name.
8754soname_spec=$lt_soname_spec
8755
8756# Commands used to build and install an old-style archive.
8757RANLIB=$lt_RANLIB
8758old_archive_cmds=$lt_old_archive_cmds
8759old_postinstall_cmds=$lt_old_postinstall_cmds
8760old_postuninstall_cmds=$lt_old_postuninstall_cmds
8761
8762# Create an old-style archive from a shared archive.
8763old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
8764
8765# Create a temporary old-style archive to link instead of a shared archive.
8766old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
8767
8768# Commands used to build and install a shared archive.
8769archive_cmds=$lt_archive_cmds
8770archive_expsym_cmds=$lt_archive_expsym_cmds
8771postinstall_cmds=$lt_postinstall_cmds
8772postuninstall_cmds=$lt_postuninstall_cmds
8773
John Criswell47fdd832003-07-14 16:52:07 +00008774# Commands used to build a loadable module (assumed same as above if empty)
8775module_cmds=$lt_module_cmds
8776module_expsym_cmds=$lt_module_expsym_cmds
8777
John Criswell7a73b802003-06-30 21:59:07 +00008778# Commands to strip libraries.
8779old_striplib=$lt_old_striplib
8780striplib=$lt_striplib
8781
John Criswell47fdd832003-07-14 16:52:07 +00008782# Dependencies to place before the objects being linked to create a
8783# shared library.
8784predep_objects=$lt_predep_objects
8785
8786# Dependencies to place after the objects being linked to create a
8787# shared library.
8788postdep_objects=$lt_postdep_objects
8789
8790# Dependencies to place before the objects being linked to create a
8791# shared library.
8792predeps=$lt_predeps
8793
8794# Dependencies to place after the objects being linked to create a
8795# shared library.
8796postdeps=$lt_postdeps
8797
8798# The library search path used internally by the compiler when linking
8799# a shared library.
8800compiler_lib_search_path=$lt_compiler_lib_search_path
8801
John Criswell7a73b802003-06-30 21:59:07 +00008802# Method to check whether dependent libraries are shared objects.
8803deplibs_check_method=$lt_deplibs_check_method
8804
8805# Command to use when deplibs_check_method == file_magic.
8806file_magic_cmd=$lt_file_magic_cmd
8807
8808# Flag that allows shared libraries with undefined symbols to be built.
8809allow_undefined_flag=$lt_allow_undefined_flag
8810
8811# Flag that forces no undefined symbols.
8812no_undefined_flag=$lt_no_undefined_flag
8813
8814# Commands used to finish a libtool library installation in a directory.
8815finish_cmds=$lt_finish_cmds
8816
8817# Same as above, but a single script fragment to be evaled but not shown.
8818finish_eval=$lt_finish_eval
8819
8820# Take the output of nm and produce a listing of raw symbols and C names.
John Criswell47fdd832003-07-14 16:52:07 +00008821global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
John Criswell7a73b802003-06-30 21:59:07 +00008822
8823# Transform the output of nm in a proper C declaration
John Criswell47fdd832003-07-14 16:52:07 +00008824global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
John Criswell7a73b802003-06-30 21:59:07 +00008825
8826# Transform the output of nm in a C name address pair
John Criswell47fdd832003-07-14 16:52:07 +00008827global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
John Criswell7a73b802003-06-30 21:59:07 +00008828
8829# This is the shared library runtime path variable.
8830runpath_var=$runpath_var
8831
8832# This is the shared library path variable.
8833shlibpath_var=$shlibpath_var
8834
8835# Is shlibpath searched before the hard-coded library search path?
8836shlibpath_overrides_runpath=$shlibpath_overrides_runpath
8837
8838# How to hardcode a shared library path into an executable.
8839hardcode_action=$hardcode_action
8840
8841# Whether we should hardcode library paths into libraries.
8842hardcode_into_libs=$hardcode_into_libs
8843
8844# Flag to hardcode \$libdir into a binary during linking.
8845# This must work even if \$libdir does not exist.
8846hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
8847
John Criswell47fdd832003-07-14 16:52:07 +00008848# If ld is used when linking, flag to hardcode \$libdir into
8849# a binary during linking. This must work even if \$libdir does
8850# not exist.
8851hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
8852
John Criswell7a73b802003-06-30 21:59:07 +00008853# Whether we need a single -rpath flag with a separated argument.
8854hardcode_libdir_separator=$lt_hardcode_libdir_separator
8855
John Criswell47fdd832003-07-14 16:52:07 +00008856# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
John Criswell7a73b802003-06-30 21:59:07 +00008857# resulting binary.
8858hardcode_direct=$hardcode_direct
8859
8860# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
8861# resulting binary.
8862hardcode_minus_L=$hardcode_minus_L
8863
8864# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
8865# the resulting binary.
8866hardcode_shlibpath_var=$hardcode_shlibpath_var
8867
John Criswell47fdd832003-07-14 16:52:07 +00008868# Set to yes if building a shared library automatically hardcodes DIR into the library
8869# and all subsequent libraries and executables linked against it.
8870hardcode_automatic=$hardcode_automatic
8871
John Criswell7a73b802003-06-30 21:59:07 +00008872# Variables whose values should be saved in libtool wrapper scripts and
8873# restored at relink time.
8874variables_saved_for_relink="$variables_saved_for_relink"
8875
8876# Whether libtool must link a program against all its dependency libraries.
8877link_all_deplibs=$link_all_deplibs
8878
8879# Compile-time system search path for libraries
8880sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
8881
8882# Run-time system search path for libraries
8883sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
8884
8885# Fix the shell variable \$srcfile for the compiler.
8886fix_srcfile_path="$fix_srcfile_path"
8887
8888# Set to yes if exported symbols are required.
8889always_export_symbols=$always_export_symbols
8890
8891# The commands to list exported symbols.
8892export_symbols_cmds=$lt_export_symbols_cmds
8893
8894# The commands to extract the exported symbol list from a shared archive.
8895extract_expsyms_cmds=$lt_extract_expsyms_cmds
8896
8897# Symbols that should not be listed in the preloaded symbols.
8898exclude_expsyms=$lt_exclude_expsyms
8899
8900# Symbols that must always be exported.
8901include_expsyms=$lt_include_expsyms
8902
8903# ### END LIBTOOL CONFIG
8904
8905__EOF__
8906
John Criswell47fdd832003-07-14 16:52:07 +00008907
John Criswell7a73b802003-06-30 21:59:07 +00008908 case $host_os in
8909 aix3*)
John Criswell47fdd832003-07-14 16:52:07 +00008910 cat <<\EOF >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +00008911
8912# AIX sometimes has problems with the GCC collect2 program. For some
8913# reason, if we set the COLLECT_NAMES environment variable, the problems
8914# vanish in a puff of smoke.
8915if test "X${COLLECT_NAMES+set}" != Xset; then
8916 COLLECT_NAMES=
8917 export COLLECT_NAMES
8918fi
8919EOF
8920 ;;
8921 esac
8922
John Criswell7a73b802003-06-30 21:59:07 +00008923 # We use sed instead of cat because bash on DJGPP gets confused if
8924 # if finds mixed CR/LF and LF-only lines. Since sed operates in
8925 # text mode, it properly converts lines to CR/LF. This bash problem
8926 # is reportedly fixed, but why not run on old versions too?
John Criswell47fdd832003-07-14 16:52:07 +00008927 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
John Criswell7a73b802003-06-30 21:59:07 +00008928
John Criswell47fdd832003-07-14 16:52:07 +00008929 mv -f "$cfgfile" "$ofile" || \
8930 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
John Criswell7a73b802003-06-30 21:59:07 +00008931 chmod +x "$ofile"
John Criswell47fdd832003-07-14 16:52:07 +00008932
8933else
8934 # If there is no Makefile yet, we rely on a make rule to execute
8935 # `config.status --recheck' to rerun these tests and create the
8936 # libtool script then.
8937 test -f Makefile && make "$ltmain"
John Criswell7a73b802003-06-30 21:59:07 +00008938fi
John Criswell7a73b802003-06-30 21:59:07 +00008939
8940
John Criswell47fdd832003-07-14 16:52:07 +00008941ac_ext=c
8942ac_cpp='$CPP $CPPFLAGS'
8943ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8944ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8945ac_compiler_gnu=$ac_cv_c_compiler_gnu
8946
8947CC="$lt_save_CC"
8948
8949
8950# Check whether --with-tags or --without-tags was given.
8951if test "${with_tags+set}" = set; then
8952 withval="$with_tags"
8953 tagnames="$withval"
8954fi;
8955
8956if test -f "$ltmain" && test -n "$tagnames"; then
8957 if test ! -f "${ofile}"; then
8958 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
8959echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
8960 fi
8961
8962 if test -z "$LTCC"; then
8963 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
8964 if test -z "$LTCC"; then
8965 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
8966echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
8967 else
8968 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
8969echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
8970 fi
8971 fi
8972
8973 # Extract list of available tagged configurations in $ofile.
8974 # Note that this assumes the entire list is on one line.
8975 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
8976
8977 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8978 for tagname in $tagnames; do
8979 IFS="$lt_save_ifs"
8980 # Check whether tagname contains only valid characters
8981 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
8982 "") ;;
8983 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
8984echo "$as_me: error: invalid tag name: $tagname" >&2;}
8985 { (exit 1); exit 1; }; }
8986 ;;
8987 esac
8988
8989 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
8990 then
8991 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
8992echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
8993 { (exit 1); exit 1; }; }
8994 fi
8995
8996 # Update the list of available tags.
8997 if test -n "$tagname"; then
8998 echo appending configuration tag \"$tagname\" to $ofile
8999
9000 case $tagname in
9001 CXX)
9002 if test -n "$CXX" && test "X$CXX" != "Xno"; then
9003 ac_ext=cc
9004ac_cpp='$CXXCPP $CPPFLAGS'
9005ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9006ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9007ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9008
9009
9010
9011
9012archive_cmds_need_lc_CXX=no
9013allow_undefined_flag_CXX=
9014always_export_symbols_CXX=no
9015archive_expsym_cmds_CXX=
9016export_dynamic_flag_spec_CXX=
9017hardcode_direct_CXX=no
9018hardcode_libdir_flag_spec_CXX=
9019hardcode_libdir_flag_spec_ld_CXX=
9020hardcode_libdir_separator_CXX=
9021hardcode_minus_L_CXX=no
9022hardcode_automatic_CXX=no
9023module_cmds_CXX=
9024module_expsym_cmds_CXX=
9025link_all_deplibs_CXX=unknown
9026old_archive_cmds_CXX=$old_archive_cmds
9027no_undefined_flag_CXX=
9028whole_archive_flag_spec_CXX=
9029enable_shared_with_static_runtimes_CXX=no
9030
9031# Dependencies to place before and after the object being linked:
9032predep_objects_CXX=
9033postdep_objects_CXX=
9034predeps_CXX=
9035postdeps_CXX=
9036compiler_lib_search_path_CXX=
9037
9038# Source file extension for C++ test sources.
9039ac_ext=cc
9040
9041# Object file extension for compiled C++ test sources.
9042objext=o
9043objext_CXX=$objext
9044
9045# Code to be used in simple compile tests
9046lt_simple_compile_test_code="int some_variable = 0;\n"
9047
9048# Code to be used in simple link tests
9049lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9050
9051# ltmain only uses $CC for tagged configurations so make sure $CC is set.
9052
9053# If no C compiler was specified, use CC.
9054LTCC=${LTCC-"$CC"}
9055
9056# Allow CC to be a program name with arguments.
9057compiler=$CC
9058
9059
9060# Allow CC to be a program name with arguments.
9061lt_save_CC=$CC
9062lt_save_LD=$LD
9063lt_save_GCC=$GCC
9064GCC=$GXX
9065lt_save_with_gnu_ld=$with_gnu_ld
9066lt_save_path_LD=$lt_cv_path_LD
9067if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9068 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9069else
9070 unset lt_cv_prog_gnu_ld
9071fi
9072if test -n "${lt_cv_path_LDCXX+set}"; then
9073 lt_cv_path_LD=$lt_cv_path_LDCXX
9074else
9075 unset lt_cv_path_LD
9076fi
9077test -z "${LDCXX+set}" || LD=$LDCXX
9078CC=${CXX-"c++"}
9079compiler=$CC
9080compiler_CXX=$CC
9081cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9082
9083# We don't want -fno-exception wen compiling C++ code, so set the
9084# no_builtin_flag separately
9085if test "$GXX" = yes; then
9086 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9087else
9088 lt_prog_compiler_no_builtin_flag_CXX=
9089fi
9090
9091if test "$GXX" = yes; then
9092 # Set up default GNU C++ configuration
9093
9094
9095# Check whether --with-gnu-ld or --without-gnu-ld was given.
9096if test "${with_gnu_ld+set}" = set; then
9097 withval="$with_gnu_ld"
9098 test "$withval" = no || with_gnu_ld=yes
9099else
9100 with_gnu_ld=no
9101fi;
9102ac_prog=ld
9103if test "$GCC" = yes; then
9104 # Check if gcc -print-prog-name=ld gives a path.
9105 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9106echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9107 case $host in
9108 *-*-mingw*)
9109 # gcc leaves a trailing carriage return which upsets mingw
9110 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9111 *)
9112 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9113 esac
9114 case $ac_prog in
9115 # Accept absolute paths.
9116 [\\/]* | ?:[\\/]*)
9117 re_direlt='/[^/][^/]*/\.\./'
9118 # Canonicalize the path of ld
9119 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9120 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9121 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9122 done
9123 test -z "$LD" && LD="$ac_prog"
9124 ;;
9125 "")
9126 # If it fails, then pretend we aren't using GCC.
9127 ac_prog=ld
9128 ;;
9129 *)
9130 # If it is relative, then search for the first ld in PATH.
9131 with_gnu_ld=unknown
9132 ;;
9133 esac
9134elif test "$with_gnu_ld" = yes; then
9135 echo "$as_me:$LINENO: checking for GNU ld" >&5
9136echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9137else
9138 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9139echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9140fi
9141if test "${lt_cv_path_LD+set}" = set; then
9142 echo $ECHO_N "(cached) $ECHO_C" >&6
9143else
9144 if test -z "$LD"; then
9145 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9146 for ac_dir in $PATH; do
9147 IFS="$lt_save_ifs"
9148 test -z "$ac_dir" && ac_dir=.
9149 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9150 lt_cv_path_LD="$ac_dir/$ac_prog"
9151 # Check to see if the program is GNU ld. I'd rather use --version,
9152 # but apparently some GNU ld's only accept -v.
9153 # Break only if it was the GNU/non-GNU ld that we prefer.
9154 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9155 *GNU* | *'with BFD'*)
9156 test "$with_gnu_ld" != no && break
9157 ;;
9158 *)
9159 test "$with_gnu_ld" != yes && break
9160 ;;
9161 esac
9162 fi
9163 done
9164 IFS="$lt_save_ifs"
9165else
9166 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9167fi
9168fi
9169
9170LD="$lt_cv_path_LD"
9171if test -n "$LD"; then
9172 echo "$as_me:$LINENO: result: $LD" >&5
9173echo "${ECHO_T}$LD" >&6
9174else
9175 echo "$as_me:$LINENO: result: no" >&5
9176echo "${ECHO_T}no" >&6
9177fi
9178test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9179echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9180 { (exit 1); exit 1; }; }
9181echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9182echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9183if test "${lt_cv_prog_gnu_ld+set}" = set; then
9184 echo $ECHO_N "(cached) $ECHO_C" >&6
9185else
9186 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9187case `"$LD" -v 2>&1 </dev/null` in
9188*GNU* | *'with BFD'*)
9189 lt_cv_prog_gnu_ld=yes
9190 ;;
9191*)
9192 lt_cv_prog_gnu_ld=no
9193 ;;
9194esac
9195fi
9196echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9197echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9198with_gnu_ld=$lt_cv_prog_gnu_ld
9199
9200
9201
9202 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9203 # archiving commands below assume that GNU ld is being used.
9204 if test "$with_gnu_ld" = yes; then
9205 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9206 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'
9207
9208 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9209 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9210
9211 # If archive_cmds runs LD, not CC, wlarc should be empty
9212 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9213 # investigate it a little bit more. (MM)
9214 wlarc='${wl}'
9215
9216 # ancient GNU ld didn't support --whole-archive et. al.
9217 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9218 grep 'no-whole-archive' > /dev/null; then
9219 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9220 else
9221 whole_archive_flag_spec_CXX=
9222 fi
9223 else
9224 with_gnu_ld=no
9225 wlarc=
9226
9227 # A generic and very simple default shared library creation
9228 # command for GNU C++ for the case where it uses the native
9229 # linker, instead of GNU ld. If possible, this setting should
9230 # overridden to take advantage of the native linker features on
9231 # the platform it is being used on.
9232 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9233 fi
9234
9235 # Commands to make compiler produce verbose output that lists
9236 # what "hidden" libraries, object files and flags are used when
9237 # linking a shared library.
9238 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9239
9240else
9241 GXX=no
9242 with_gnu_ld=no
9243 wlarc=
9244fi
9245
9246# PORTME: fill in a description of your system's C++ link characteristics
9247echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9248echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9249ld_shlibs_CXX=yes
9250case $host_os in
9251 aix3*)
9252 # FIXME: insert proper C++ library support
9253 ld_shlibs_CXX=no
9254 ;;
9255 aix4* | aix5*)
9256 if test "$host_cpu" = ia64; then
9257 # On IA64, the linker does run time linking by default, so we don't
9258 # have to do anything special.
9259 aix_use_runtimelinking=no
9260 exp_sym_flag='-Bexport'
9261 no_entry_flag=""
9262 else
9263 aix_use_runtimelinking=no
9264
9265 # Test if we are trying to use run time linking or normal
9266 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9267 # need to do runtime linking.
9268 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9269 for ld_flag in $LDFLAGS; do
9270 case $ld_flag in
9271 *-brtl*)
9272 aix_use_runtimelinking=yes
9273 break
9274 ;;
9275 esac
9276 done
9277 esac
9278
9279 exp_sym_flag='-bexport'
9280 no_entry_flag='-bnoentry'
9281 fi
9282
9283 # When large executables or shared objects are built, AIX ld can
9284 # have problems creating the table of contents. If linking a library
9285 # or program results in "error TOC overflow" add -mminimal-toc to
9286 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9287 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9288
9289 archive_cmds_CXX=''
9290 hardcode_direct_CXX=yes
9291 hardcode_libdir_separator_CXX=':'
9292 link_all_deplibs_CXX=yes
9293
9294 if test "$GXX" = yes; then
9295 case $host_os in aix4.012|aix4.012.*)
9296 # We only want to do this on AIX 4.2 and lower, the check
9297 # below for broken collect2 doesn't work under 4.3+
9298 collect2name=`${CC} -print-prog-name=collect2`
9299 if test -f "$collect2name" && \
9300 strings "$collect2name" | grep resolve_lib_name >/dev/null
9301 then
9302 # We have reworked collect2
9303 hardcode_direct_CXX=yes
9304 else
9305 # We have old collect2
9306 hardcode_direct_CXX=unsupported
9307 # It fails to find uninstalled libraries when the uninstalled
9308 # path is not listed in the libpath. Setting hardcode_minus_L
9309 # to unsupported forces relinking
9310 hardcode_minus_L_CXX=yes
9311 hardcode_libdir_flag_spec_CXX='-L$libdir'
9312 hardcode_libdir_separator_CXX=
9313 fi
9314 esac
9315 shared_flag='-shared'
9316 else
9317 # not using gcc
9318 if test "$host_cpu" = ia64; then
9319 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9320 # chokes on -Wl,-G. The following line is correct:
9321 shared_flag='-G'
9322 else
9323 if test "$aix_use_runtimelinking" = yes; then
9324 shared_flag='${wl}-G'
9325 else
9326 shared_flag='${wl}-bM:SRE'
9327 fi
9328 fi
9329 fi
9330
9331 # It seems that -bexpall does not export symbols beginning with
9332 # underscore (_), so it is better to generate a list of symbols to export.
9333 always_export_symbols_CXX=yes
9334 if test "$aix_use_runtimelinking" = yes; then
9335 # Warning - without using the other runtime loading flags (-brtl),
9336 # -berok will link without error, but may produce a broken library.
9337 allow_undefined_flag_CXX='-berok'
9338 # Determine the default libpath from the value encoded in an empty executable.
9339 cat >conftest.$ac_ext <<_ACEOF
9340#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00009341/* confdefs.h. */
9342_ACEOF
9343cat confdefs.h >>conftest.$ac_ext
9344cat >>conftest.$ac_ext <<_ACEOF
9345/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00009346
John Criswell47fdd832003-07-14 16:52:07 +00009347int
9348main ()
9349{
9350
9351 ;
9352 return 0;
9353}
9354_ACEOF
9355rm -f conftest.$ac_objext conftest$ac_exeext
9356if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9357 (eval $ac_link) 2>&5
9358 ac_status=$?
9359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9360 (exit $ac_status); } &&
9361 { ac_try='test -s conftest$ac_exeext'
9362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9363 (eval $ac_try) 2>&5
9364 ac_status=$?
9365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9366 (exit $ac_status); }; }; then
9367
9368aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9369}'`
9370# Check for a 64-bit object if we didn't find anything.
9371if 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; }
9372}'`; fi
9373else
9374 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00009375sed 's/^/| /' conftest.$ac_ext >&5
9376
John Criswell47fdd832003-07-14 16:52:07 +00009377fi
9378rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9379if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9380
9381 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9382
9383 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"
9384 else
9385 if test "$host_cpu" = ia64; then
9386 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9387 allow_undefined_flag_CXX="-z nodefs"
9388 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"
9389 else
9390 # Determine the default libpath from the value encoded in an empty executable.
9391 cat >conftest.$ac_ext <<_ACEOF
9392#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00009393/* confdefs.h. */
9394_ACEOF
9395cat confdefs.h >>conftest.$ac_ext
9396cat >>conftest.$ac_ext <<_ACEOF
9397/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00009398
John Criswell47fdd832003-07-14 16:52:07 +00009399int
9400main ()
9401{
9402
9403 ;
9404 return 0;
9405}
9406_ACEOF
9407rm -f conftest.$ac_objext conftest$ac_exeext
9408if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9409 (eval $ac_link) 2>&5
9410 ac_status=$?
9411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9412 (exit $ac_status); } &&
9413 { ac_try='test -s conftest$ac_exeext'
9414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9415 (eval $ac_try) 2>&5
9416 ac_status=$?
9417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9418 (exit $ac_status); }; }; then
9419
9420aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9421}'`
9422# Check for a 64-bit object if we didn't find anything.
9423if 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; }
9424}'`; fi
9425else
9426 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00009427sed 's/^/| /' conftest.$ac_ext >&5
9428
John Criswell47fdd832003-07-14 16:52:07 +00009429fi
9430rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9431if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9432
9433 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9434 # Warning - without using the other run time loading flags,
9435 # -berok will link without error, but may produce a broken library.
9436 no_undefined_flag_CXX=' ${wl}-bernotok'
9437 allow_undefined_flag_CXX=' ${wl}-berok'
9438 # -bexpall does not export symbols beginning with underscore (_)
9439 always_export_symbols_CXX=yes
9440 # Exported symbols can be pulled into shared objects from archives
9441 whole_archive_flag_spec_CXX=' '
9442 archive_cmds_need_lc_CXX=yes
9443 # This is similar to how AIX traditionally builds it's shared libraries.
9444 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'
9445 fi
9446 fi
9447 ;;
9448 chorus*)
9449 case $cc_basename in
9450 *)
9451 # FIXME: insert proper C++ library support
9452 ld_shlibs_CXX=no
9453 ;;
9454 esac
9455 ;;
9456
9457 cygwin* | mingw* | pw32*)
9458 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9459 # as there is no search path for DLLs.
9460 hardcode_libdir_flag_spec_CXX='-L$libdir'
9461 allow_undefined_flag_CXX=unsupported
9462 always_export_symbols_CXX=no
9463 enable_shared_with_static_runtimes_CXX=yes
9464
9465 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9466 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'
9467 # If the export-symbols file already is a .def file (1st line
9468 # is EXPORTS), use it as is; otherwise, prepend...
9469 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9470 cp $export_symbols $output_objdir/$soname.def;
9471 else
9472 echo EXPORTS > $output_objdir/$soname.def;
9473 cat $export_symbols >> $output_objdir/$soname.def;
9474 fi~
9475 $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'
9476 else
9477 ld_shlibs_CXX=no
9478 fi
9479 ;;
9480
9481 darwin* | rhapsody*)
9482 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
9483 archive_cmds_need_lc_CXX=no
9484 case "$host_os" in
9485 rhapsody* | darwin1.[012])
9486 allow_undefined_flag_CXX='-undefined suppress'
9487 ;;
9488 *) # Darwin 1.3 on
9489 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9490 ;;
9491 esac
9492 lt_int_apple_cc_single_mod=no
9493 output_verbose_link_cmd='echo'
9494 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9495 lt_int_apple_cc_single_mod=yes
9496 fi
9497 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9498 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9499 else
9500 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'
9501 fi
9502 module_cmds_CXX='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
9503
9504 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9505 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9506 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}'
9507 else
9508 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}'
9509 fi
9510 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}'
9511 hardcode_direct_CXX=no
9512 hardcode_automatic_CXX=yes
9513 hardcode_shlibpath_var_CXX=unsupported
9514 whole_archive_flag_spec_CXX='-all_load $convenience'
9515 link_all_deplibs_CXX=yes
9516 fi
9517 ;;
9518
9519 dgux*)
9520 case $cc_basename in
9521 ec++)
9522 # FIXME: insert proper C++ library support
9523 ld_shlibs_CXX=no
9524 ;;
9525 ghcx)
9526 # Green Hills C++ Compiler
9527 # FIXME: insert proper C++ library support
9528 ld_shlibs_CXX=no
9529 ;;
9530 *)
9531 # FIXME: insert proper C++ library support
9532 ld_shlibs_CXX=no
9533 ;;
9534 esac
9535 ;;
9536 freebsd12*)
9537 # C++ shared libraries reported to be fairly broken before switch to ELF
9538 ld_shlibs_CXX=no
9539 ;;
9540 freebsd-elf*)
9541 archive_cmds_need_lc_CXX=no
9542 ;;
9543 freebsd*)
9544 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9545 # conventions
9546 ld_shlibs_CXX=yes
9547 ;;
9548 gnu*)
9549 ;;
9550 hpux9*)
9551 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9552 hardcode_libdir_separator_CXX=:
9553 export_dynamic_flag_spec_CXX='${wl}-E'
9554 hardcode_direct_CXX=yes
9555 hardcode_minus_L_CXX=yes # Not in the search PATH,
9556 # but as the default
9557 # location of the library.
9558
9559 case $cc_basename in
9560 CC)
9561 # FIXME: insert proper C++ library support
9562 ld_shlibs_CXX=no
9563 ;;
9564 aCC)
9565 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'
9566 # Commands to make compiler produce verbose output that lists
9567 # what "hidden" libraries, object files and flags are used when
9568 # linking a shared library.
9569 #
9570 # There doesn't appear to be a way to prevent this compiler from
9571 # explicitly linking system object files so we need to strip them
9572 # from the output so that they don't get included in the library
9573 # dependencies.
9574 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'
9575 ;;
9576 *)
9577 if test "$GXX" = yes; then
9578 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'
9579 else
9580 # FIXME: insert proper C++ library support
9581 ld_shlibs_CXX=no
9582 fi
9583 ;;
9584 esac
9585 ;;
9586 hpux10*|hpux11*)
9587 if test $with_gnu_ld = no; then
9588 case "$host_cpu" in
9589 hppa*64*)
9590 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9591 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
9592 hardcode_libdir_separator_CXX=:
9593 ;;
9594 ia64*)
9595 hardcode_libdir_flag_spec_CXX='-L$libdir'
9596 ;;
9597 *)
9598 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9599 hardcode_libdir_separator_CXX=:
9600 export_dynamic_flag_spec_CXX='${wl}-E'
9601 ;;
9602 esac
9603 fi
9604 case "$host_cpu" in
9605 hppa*64*)
9606 hardcode_direct_CXX=no
9607 hardcode_shlibpath_var_CXX=no
9608 ;;
9609 ia64*)
9610 hardcode_direct_CXX=no
9611 hardcode_shlibpath_var_CXX=no
9612 hardcode_minus_L_CXX=yes # Not in the search PATH,
9613 # but as the default
9614 # location of the library.
9615 ;;
9616 *)
9617 hardcode_direct_CXX=yes
9618 hardcode_minus_L_CXX=yes # Not in the search PATH,
9619 # but as the default
9620 # location of the library.
9621 ;;
9622 esac
9623
9624 case $cc_basename in
9625 CC)
9626 # FIXME: insert proper C++ library support
9627 ld_shlibs_CXX=no
9628 ;;
9629 aCC)
9630 case "$host_cpu" in
9631 hppa*64*|ia64*)
9632 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9633 ;;
9634 *)
9635 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9636 ;;
9637 esac
9638 # Commands to make compiler produce verbose output that lists
9639 # what "hidden" libraries, object files and flags are used when
9640 # linking a shared library.
9641 #
9642 # There doesn't appear to be a way to prevent this compiler from
9643 # explicitly linking system object files so we need to strip them
9644 # from the output so that they don't get included in the library
9645 # dependencies.
9646 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'
9647 ;;
9648 *)
9649 if test "$GXX" = yes; then
9650 if test $with_gnu_ld = no; then
9651 case "$host_cpu" in
9652 ia64*|hppa*64*)
9653 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9654 ;;
9655 *)
9656 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'
9657 ;;
9658 esac
9659 fi
9660 else
9661 # FIXME: insert proper C++ library support
9662 ld_shlibs_CXX=no
9663 fi
9664 ;;
9665 esac
9666 ;;
9667 irix5* | irix6*)
9668 case $cc_basename in
9669 CC)
9670 # SGI C++
9671 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'
9672
9673 # Archives containing C++ object files must be created using
9674 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
9675 # necessary to make sure instantiated templates are included
9676 # in the archive.
9677 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
9678 ;;
9679 *)
9680 if test "$GXX" = yes; then
9681 if test "$with_gnu_ld" = no; then
9682 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'
9683 else
9684 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
9685 fi
9686 fi
9687 link_all_deplibs_CXX=yes
9688 ;;
9689 esac
9690 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9691 hardcode_libdir_separator_CXX=:
9692 ;;
9693 linux*)
9694 case $cc_basename in
9695 KCC)
9696 # Kuck and Associates, Inc. (KAI) C++ Compiler
9697
9698 # KCC will only create a shared library if the output file
9699 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9700 # to its proper name (with version) after linking.
9701 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'
9702 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'
9703 # Commands to make compiler produce verbose output that lists
9704 # what "hidden" libraries, object files and flags are used when
9705 # linking a shared library.
9706 #
9707 # There doesn't appear to be a way to prevent this compiler from
9708 # explicitly linking system object files so we need to strip them
9709 # from the output so that they don't get included in the library
9710 # dependencies.
9711 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'
9712
9713 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
9714 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9715
9716 # Archives containing C++ object files must be created using
9717 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9718 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9719 ;;
9720 icpc)
9721 # Intel C++
9722 with_gnu_ld=yes
9723 archive_cmds_need_lc_CXX=no
9724 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9725 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'
9726 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9727 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9728 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9729 ;;
9730 cxx)
9731 # Compaq C++
9732 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9733 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'
9734
9735 runpath_var=LD_RUN_PATH
9736 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9737 hardcode_libdir_separator_CXX=:
9738
9739 # Commands to make compiler produce verbose output that lists
9740 # what "hidden" libraries, object files and flags are used when
9741 # linking a shared library.
9742 #
9743 # There doesn't appear to be a way to prevent this compiler from
9744 # explicitly linking system object files so we need to strip them
9745 # from the output so that they don't get included in the library
9746 # dependencies.
9747 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'
9748 ;;
9749 esac
9750 ;;
9751 lynxos*)
9752 # FIXME: insert proper C++ library support
9753 ld_shlibs_CXX=no
9754 ;;
9755 m88k*)
9756 # FIXME: insert proper C++ library support
9757 ld_shlibs_CXX=no
9758 ;;
9759 mvs*)
9760 case $cc_basename in
9761 cxx)
9762 # FIXME: insert proper C++ library support
9763 ld_shlibs_CXX=no
9764 ;;
9765 *)
9766 # FIXME: insert proper C++ library support
9767 ld_shlibs_CXX=no
9768 ;;
9769 esac
9770 ;;
9771 netbsd*)
9772 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9773 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
9774 wlarc=
9775 hardcode_libdir_flag_spec_CXX='-R$libdir'
9776 hardcode_direct_CXX=yes
9777 hardcode_shlibpath_var_CXX=no
9778 fi
9779 # Workaround some broken pre-1.5 toolchains
9780 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
9781 ;;
9782 osf3*)
9783 case $cc_basename in
9784 KCC)
9785 # Kuck and Associates, Inc. (KAI) C++ Compiler
9786
9787 # KCC will only create a shared library if the output file
9788 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9789 # to its proper name (with version) after linking.
9790 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'
9791
9792 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9793 hardcode_libdir_separator_CXX=:
9794
9795 # Archives containing C++ object files must be created using
9796 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9797 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9798
9799 ;;
9800 RCC)
9801 # Rational C++ 2.4.1
9802 # FIXME: insert proper C++ library support
9803 ld_shlibs_CXX=no
9804 ;;
9805 cxx)
9806 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9807 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'
9808
9809 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9810 hardcode_libdir_separator_CXX=:
9811
9812 # Commands to make compiler produce verbose output that lists
9813 # what "hidden" libraries, object files and flags are used when
9814 # linking a shared library.
9815 #
9816 # There doesn't appear to be a way to prevent this compiler from
9817 # explicitly linking system object files so we need to strip them
9818 # from the output so that they don't get included in the library
9819 # dependencies.
9820 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'
9821 ;;
9822 *)
9823 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9824 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9825 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'
9826
9827 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9828 hardcode_libdir_separator_CXX=:
9829
9830 # Commands to make compiler produce verbose output that lists
9831 # what "hidden" libraries, object files and flags are used when
9832 # linking a shared library.
9833 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9834
9835 else
9836 # FIXME: insert proper C++ library support
9837 ld_shlibs_CXX=no
9838 fi
9839 ;;
9840 esac
9841 ;;
9842 osf4* | osf5*)
9843 case $cc_basename in
9844 KCC)
9845 # Kuck and Associates, Inc. (KAI) C++ Compiler
9846
9847 # KCC will only create a shared library if the output file
9848 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9849 # to its proper name (with version) after linking.
9850 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'
9851
9852 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9853 hardcode_libdir_separator_CXX=:
9854
9855 # Archives containing C++ object files must be created using
9856 # the KAI C++ compiler.
9857 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
9858 ;;
9859 RCC)
9860 # Rational C++ 2.4.1
9861 # FIXME: insert proper C++ library support
9862 ld_shlibs_CXX=no
9863 ;;
9864 cxx)
9865 allow_undefined_flag_CXX=' -expect_unresolved \*'
9866 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'
9867 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
9868 echo "-hidden">> $lib.exp~
9869 $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~
9870 $rm $lib.exp'
9871
9872 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9873 hardcode_libdir_separator_CXX=:
9874
9875 # Commands to make compiler produce verbose output that lists
9876 # what "hidden" libraries, object files and flags are used when
9877 # linking a shared library.
9878 #
9879 # There doesn't appear to be a way to prevent this compiler from
9880 # explicitly linking system object files so we need to strip them
9881 # from the output so that they don't get included in the library
9882 # dependencies.
9883 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'
9884 ;;
9885 *)
9886 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9887 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9888 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'
9889
9890 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9891 hardcode_libdir_separator_CXX=:
9892
9893 # Commands to make compiler produce verbose output that lists
9894 # what "hidden" libraries, object files and flags are used when
9895 # linking a shared library.
9896 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9897
9898 else
9899 # FIXME: insert proper C++ library support
9900 ld_shlibs_CXX=no
9901 fi
9902 ;;
9903 esac
9904 ;;
9905 psos*)
9906 # FIXME: insert proper C++ library support
9907 ld_shlibs_CXX=no
9908 ;;
9909 sco*)
9910 archive_cmds_need_lc_CXX=no
9911 case $cc_basename in
9912 CC)
9913 # FIXME: insert proper C++ library support
9914 ld_shlibs_CXX=no
9915 ;;
9916 *)
9917 # FIXME: insert proper C++ library support
9918 ld_shlibs_CXX=no
9919 ;;
9920 esac
9921 ;;
9922 sunos4*)
9923 case $cc_basename in
9924 CC)
9925 # Sun C++ 4.x
9926 # FIXME: insert proper C++ library support
9927 ld_shlibs_CXX=no
9928 ;;
9929 lcc)
9930 # Lucid
9931 # FIXME: insert proper C++ library support
9932 ld_shlibs_CXX=no
9933 ;;
9934 *)
9935 # FIXME: insert proper C++ library support
9936 ld_shlibs_CXX=no
9937 ;;
9938 esac
9939 ;;
9940 solaris*)
9941 case $cc_basename in
9942 CC)
9943 # Sun C++ 4.2, 5.x and Centerline C++
9944 no_undefined_flag_CXX=' -zdefs'
9945 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9946 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9947 $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'
9948
9949 hardcode_libdir_flag_spec_CXX='-R$libdir'
9950 hardcode_shlibpath_var_CXX=no
9951 case $host_os in
9952 solaris2.0-5 | solaris2.0-5.*) ;;
9953 *)
9954 # The C++ compiler is used as linker so we must use $wl
9955 # flag to pass the commands to the underlying system
9956 # linker.
9957 # Supported since Solaris 2.6 (maybe 2.5.1?)
9958 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9959 ;;
9960 esac
9961 link_all_deplibs_CXX=yes
9962
9963 # Commands to make compiler produce verbose output that lists
9964 # what "hidden" libraries, object files and flags are used when
9965 # linking a shared library.
9966 #
9967 # There doesn't appear to be a way to prevent this compiler from
9968 # explicitly linking system object files so we need to strip them
9969 # from the output so that they don't get included in the library
9970 # dependencies.
9971 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'
9972
9973 # Archives containing C++ object files must be created using
9974 # "CC -xar", where "CC" is the Sun C++ compiler. This is
9975 # necessary to make sure instantiated templates are included
9976 # in the archive.
9977 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
9978 ;;
9979 gcx)
9980 # Green Hills C++ Compiler
9981 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9982
9983 # The C++ compiler must be used to create the archive.
9984 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
9985 ;;
9986 *)
9987 # GNU C++ compiler with Solaris linker
9988 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9989 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
9990 if $CC --version | grep -v '^2\.7' > /dev/null; then
9991 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9992 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9993 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
9994
9995 # Commands to make compiler produce verbose output that lists
9996 # what "hidden" libraries, object files and flags are used when
9997 # linking a shared library.
9998 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
9999 else
10000 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10001 # platform.
10002 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10003 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10004 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10005
10006 # Commands to make compiler produce verbose output that lists
10007 # what "hidden" libraries, object files and flags are used when
10008 # linking a shared library.
10009 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10010 fi
10011
10012 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10013 fi
10014 ;;
10015 esac
10016 ;;
10017 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10018 archive_cmds_need_lc_CXX=no
10019 ;;
10020 tandem*)
10021 case $cc_basename in
10022 NCC)
10023 # NonStop-UX NCC 3.20
10024 # FIXME: insert proper C++ library support
10025 ld_shlibs_CXX=no
10026 ;;
10027 *)
10028 # FIXME: insert proper C++ library support
10029 ld_shlibs_CXX=no
10030 ;;
10031 esac
10032 ;;
10033 vxworks*)
10034 # FIXME: insert proper C++ library support
10035 ld_shlibs_CXX=no
10036 ;;
10037 *)
10038 # FIXME: insert proper C++ library support
10039 ld_shlibs_CXX=no
10040 ;;
10041esac
10042echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10043echo "${ECHO_T}$ld_shlibs_CXX" >&6
10044test "$ld_shlibs_CXX" = no && can_build_shared=no
10045
10046GCC_CXX="$GXX"
10047LD_CXX="$LD"
10048
10049## CAVEAT EMPTOR:
10050## There is no encapsulation within the following macros, do not change
10051## the running order or otherwise move them around unless you know exactly
10052## what you are doing...
10053
10054cat > conftest.$ac_ext <<EOF
10055class Foo
10056{
10057public:
10058 Foo (void) { a = 0; }
10059private:
10060 int a;
10061};
10062EOF
10063
10064if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10065 (eval $ac_compile) 2>&5
10066 ac_status=$?
10067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10068 (exit $ac_status); }; then
10069 # Parse the compiler output and extract the necessary
10070 # objects, libraries and library flags.
10071
10072 # Sentinel used to keep track of whether or not we are before
10073 # the conftest object file.
10074 pre_test_object_deps_done=no
10075
10076 # The `*' in the case matches for architectures that use `case' in
10077 # $output_verbose_cmd can trigger glob expansion during the loop
10078 # eval without this substitution.
10079 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10080
10081 for p in `eval $output_verbose_link_cmd`; do
10082 case $p in
10083
10084 -L* | -R* | -l*)
10085 # Some compilers place space between "-{L,R}" and the path.
10086 # Remove the space.
10087 if test $p = "-L" \
10088 || test $p = "-R"; then
10089 prev=$p
10090 continue
10091 else
10092 prev=
10093 fi
10094
10095 if test "$pre_test_object_deps_done" = no; then
10096 case $p in
10097 -L* | -R*)
10098 # Internal compiler library paths should come after those
10099 # provided the user. The postdeps already come after the
10100 # user supplied libs so there is no need to process them.
10101 if test -z "$compiler_lib_search_path_CXX"; then
10102 compiler_lib_search_path_CXX="${prev}${p}"
10103 else
10104 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10105 fi
10106 ;;
10107 # The "-l" case would never come before the object being
10108 # linked, so don't bother handling this case.
10109 esac
10110 else
10111 if test -z "$postdeps_CXX"; then
10112 postdeps_CXX="${prev}${p}"
10113 else
10114 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10115 fi
10116 fi
10117 ;;
10118
10119 *.$objext)
10120 # This assumes that the test object file only shows up
10121 # once in the compiler output.
10122 if test "$p" = "conftest.$objext"; then
10123 pre_test_object_deps_done=yes
10124 continue
10125 fi
10126
10127 if test "$pre_test_object_deps_done" = no; then
10128 if test -z "$predep_objects_CXX"; then
10129 predep_objects_CXX="$p"
10130 else
10131 predep_objects_CXX="$predep_objects_CXX $p"
10132 fi
10133 else
10134 if test -z "$postdep_objects_CXX"; then
10135 postdep_objects_CXX="$p"
10136 else
10137 postdep_objects_CXX="$postdep_objects_CXX $p"
10138 fi
10139 fi
10140 ;;
10141
10142 *) ;; # Ignore the rest.
10143
10144 esac
10145 done
10146
10147 # Clean up.
10148 rm -f a.out a.exe
10149else
10150 echo "libtool.m4: error: problem compiling CXX test program"
10151fi
10152
10153$rm -f confest.$objext
10154
10155case " $postdeps_CXX " in
10156*" -lc "*) archive_cmds_need_lc_CXX=no ;;
10157esac
10158
10159lt_prog_compiler_wl_CXX=
10160lt_prog_compiler_pic_CXX=
10161lt_prog_compiler_static_CXX=
10162
10163echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10164echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10165
10166 # C++ specific cases for pic, static, wl, etc.
10167 if test "$GXX" = yes; then
10168 lt_prog_compiler_wl_CXX='-Wl,'
10169 lt_prog_compiler_static_CXX='-static'
10170
10171 case $host_os in
10172 aix*)
10173 # All AIX code is PIC.
10174 if test "$host_cpu" = ia64; then
10175 # AIX 5 now supports IA64 processor
10176 lt_prog_compiler_static_CXX='-Bstatic'
10177 fi
10178 ;;
10179 amigaos*)
10180 # FIXME: we need at least 68020 code to build shared libraries, but
10181 # adding the `-m68020' flag to GCC prevents building anything better,
10182 # like `-m68040'.
10183 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10184 ;;
10185 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10186 # PIC is the default for these OSes.
10187 ;;
10188 mingw* | os2* | pw32*)
10189 # This hack is so that the source file can tell whether it is being
10190 # built for inclusion in a dll (and should export symbols for example).
10191 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10192 ;;
10193 darwin* | rhapsody*)
10194 # PIC is the default on this platform
10195 # Common symbols not allowed in MH_DYLIB files
10196 lt_prog_compiler_pic_CXX='-fno-common'
10197 ;;
10198 *djgpp*)
10199 # DJGPP does not support shared libraries at all
10200 lt_prog_compiler_pic_CXX=
10201 ;;
10202 sysv4*MP*)
10203 if test -d /usr/nec; then
10204 lt_prog_compiler_pic_CXX=-Kconform_pic
10205 fi
10206 ;;
10207 hpux*)
10208 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10209 # not for PA HP-UX.
10210 case "$host_cpu" in
10211 hppa*64*|ia64*)
10212 ;;
10213 *)
10214 lt_prog_compiler_pic_CXX='-fPIC'
10215 ;;
10216 esac
10217 ;;
10218 *)
10219 lt_prog_compiler_pic_CXX='-fPIC'
10220 ;;
10221 esac
10222 else
10223 case $host_os in
10224 aix4* | aix5*)
10225 # All AIX code is PIC.
10226 if test "$host_cpu" = ia64; then
10227 # AIX 5 now supports IA64 processor
10228 lt_prog_compiler_static_CXX='-Bstatic'
10229 else
10230 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10231 fi
10232 ;;
10233 chorus*)
10234 case $cc_basename in
10235 cxch68)
10236 # Green Hills C++ Compiler
10237 # _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"
10238 ;;
10239 esac
10240 ;;
10241 dgux*)
10242 case $cc_basename in
10243 ec++)
10244 lt_prog_compiler_pic_CXX='-KPIC'
10245 ;;
10246 ghcx)
10247 # Green Hills C++ Compiler
10248 lt_prog_compiler_pic_CXX='-pic'
10249 ;;
10250 *)
10251 ;;
10252 esac
10253 ;;
10254 freebsd*)
10255 # FreeBSD uses GNU C++
10256 ;;
10257 hpux9* | hpux10* | hpux11*)
10258 case $cc_basename in
10259 CC)
10260 lt_prog_compiler_wl_CXX='-Wl,'
10261 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10262 if test "$host_cpu" != ia64; then
10263 lt_prog_compiler_pic_CXX='+Z'
10264 fi
10265 ;;
10266 aCC)
10267 lt_prog_compiler_wl_CXX='-Wl,'
10268 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10269 case "$host_cpu" in
10270 hppa*64*|ia64*)
10271 # +Z the default
10272 ;;
10273 *)
10274 lt_prog_compiler_pic_CXX='+Z'
10275 ;;
10276 esac
10277 ;;
10278 *)
10279 ;;
10280 esac
10281 ;;
10282 irix5* | irix6* | nonstopux*)
10283 case $cc_basename in
10284 CC)
10285 lt_prog_compiler_wl_CXX='-Wl,'
10286 lt_prog_compiler_static_CXX='-non_shared'
10287 # CC pic flag -KPIC is the default.
10288 ;;
10289 *)
10290 ;;
10291 esac
10292 ;;
10293 linux*)
10294 case $cc_basename in
10295 KCC)
10296 # KAI C++ Compiler
10297 lt_prog_compiler_wl_CXX='--backend -Wl,'
10298 lt_prog_compiler_pic_CXX='-fPIC'
10299 ;;
10300 icpc)
10301 # Intel C++
10302 lt_prog_compiler_wl_CXX='-Wl,'
10303 lt_prog_compiler_pic_CXX='-KPIC'
10304 lt_prog_compiler_static_CXX='-static'
10305 ;;
10306 cxx)
10307 # Compaq C++
10308 # Make sure the PIC flag is empty. It appears that all Alpha
10309 # Linux and Compaq Tru64 Unix objects are PIC.
10310 lt_prog_compiler_pic_CXX=
10311 lt_prog_compiler_static_CXX='-non_shared'
10312 ;;
10313 *)
10314 ;;
10315 esac
10316 ;;
10317 lynxos*)
10318 ;;
10319 m88k*)
10320 ;;
10321 mvs*)
10322 case $cc_basename in
10323 cxx)
10324 lt_prog_compiler_pic_CXX='-W c,exportall'
10325 ;;
10326 *)
10327 ;;
10328 esac
10329 ;;
10330 netbsd*)
10331 ;;
10332 osf3* | osf4* | osf5*)
10333 case $cc_basename in
10334 KCC)
10335 lt_prog_compiler_wl_CXX='--backend -Wl,'
10336 ;;
10337 RCC)
10338 # Rational C++ 2.4.1
10339 lt_prog_compiler_pic_CXX='-pic'
10340 ;;
10341 cxx)
10342 # Digital/Compaq C++
10343 lt_prog_compiler_wl_CXX='-Wl,'
10344 # Make sure the PIC flag is empty. It appears that all Alpha
10345 # Linux and Compaq Tru64 Unix objects are PIC.
10346 lt_prog_compiler_pic_CXX=
10347 lt_prog_compiler_static_CXX='-non_shared'
10348 ;;
10349 *)
10350 ;;
10351 esac
10352 ;;
10353 psos*)
10354 ;;
10355 sco*)
10356 case $cc_basename in
10357 CC)
10358 lt_prog_compiler_pic_CXX='-fPIC'
10359 ;;
10360 *)
10361 ;;
10362 esac
10363 ;;
10364 solaris*)
10365 case $cc_basename in
10366 CC)
10367 # Sun C++ 4.2, 5.x and Centerline C++
10368 lt_prog_compiler_pic_CXX='-KPIC'
10369 lt_prog_compiler_static_CXX='-Bstatic'
10370 lt_prog_compiler_wl_CXX='-Qoption ld '
10371 ;;
10372 gcx)
10373 # Green Hills C++ Compiler
10374 lt_prog_compiler_pic_CXX='-PIC'
10375 ;;
10376 *)
10377 ;;
10378 esac
10379 ;;
10380 sunos4*)
10381 case $cc_basename in
10382 CC)
10383 # Sun C++ 4.x
10384 lt_prog_compiler_pic_CXX='-pic'
10385 lt_prog_compiler_static_CXX='-Bstatic'
10386 ;;
10387 lcc)
10388 # Lucid
10389 lt_prog_compiler_pic_CXX='-pic'
10390 ;;
10391 *)
10392 ;;
10393 esac
10394 ;;
10395 tandem*)
10396 case $cc_basename in
10397 NCC)
10398 # NonStop-UX NCC 3.20
10399 lt_prog_compiler_pic_CXX='-KPIC'
10400 ;;
10401 *)
10402 ;;
10403 esac
10404 ;;
10405 unixware*)
10406 ;;
10407 vxworks*)
10408 ;;
10409 *)
10410 lt_prog_compiler_can_build_shared_CXX=no
10411 ;;
10412 esac
10413 fi
10414
10415echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10416echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10417
10418#
10419# Check to make sure the PIC flag actually works.
10420#
10421if test -n "$lt_prog_compiler_pic_CXX"; then
10422 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10423echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10424if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10425 echo $ECHO_N "(cached) $ECHO_C" >&6
10426else
10427 lt_prog_compiler_pic_works_CXX=no
10428 ac_outfile=conftest.$ac_objext
10429 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10430 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10431 # Insert the option either (1) after the last *FLAGS variable, or
10432 # (2) before a word containing "conftest.", or (3) at the end.
10433 # Note that $ac_compile itself does not contain backslashes and begins
10434 # with a dollar sign (not a hyphen), so the echo should work correctly.
10435 # The option is referenced via a variable to avoid confusing sed.
10436 lt_compile=`echo "$ac_compile" | $SED \
10437 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10438 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10439 -e 's:$: $lt_compiler_flag:'`
John Criswell33a911a2003-11-25 20:36:46 +000010440 (eval echo "\"\$as_me:10440: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000010441 (eval "$lt_compile" 2>conftest.err)
10442 ac_status=$?
10443 cat conftest.err >&5
John Criswell33a911a2003-11-25 20:36:46 +000010444 echo "$as_me:10444: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000010445 if (exit $ac_status) && test -s "$ac_outfile"; then
10446 # The compiler can only warn and ignore the option if not recognized
10447 # So say no if there are warnings
10448 if test ! -s conftest.err; then
10449 lt_prog_compiler_pic_works_CXX=yes
10450 fi
10451 fi
10452 $rm conftest*
10453
10454fi
10455echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10456echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10457
10458if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10459 case $lt_prog_compiler_pic_CXX in
10460 "" | " "*) ;;
10461 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10462 esac
10463else
10464 lt_prog_compiler_pic_CXX=
10465 lt_prog_compiler_can_build_shared_CXX=no
10466fi
10467
10468fi
10469case "$host_os" in
10470 # For platforms which do not support PIC, -DPIC is meaningless:
10471 *djgpp*)
10472 lt_prog_compiler_pic_CXX=
10473 ;;
10474 *)
10475 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10476 ;;
10477esac
10478
10479echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10480echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10481if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10482 echo $ECHO_N "(cached) $ECHO_C" >&6
10483else
10484 lt_cv_prog_compiler_c_o_CXX=no
10485 $rm -r conftest 2>/dev/null
10486 mkdir conftest
10487 cd conftest
10488 mkdir out
10489 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10490
10491 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
10492 # that will create temporary files in the current directory regardless of
10493 # the output directory. Thus, making CWD read-only will cause this test
10494 # to fail, enabling locking or at least warning the user not to do parallel
10495 # builds.
10496 chmod -w .
10497
10498 lt_compiler_flag="-o out/conftest2.$ac_objext"
10499 # Insert the option either (1) after the last *FLAGS variable, or
10500 # (2) before a word containing "conftest.", or (3) at the end.
10501 # Note that $ac_compile itself does not contain backslashes and begins
10502 # with a dollar sign (not a hyphen), so the echo should work correctly.
10503 lt_compile=`echo "$ac_compile" | $SED \
10504 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10505 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10506 -e 's:$: $lt_compiler_flag:'`
John Criswell33a911a2003-11-25 20:36:46 +000010507 (eval echo "\"\$as_me:10507: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000010508 (eval "$lt_compile" 2>out/conftest.err)
10509 ac_status=$?
10510 cat out/conftest.err >&5
John Criswell33a911a2003-11-25 20:36:46 +000010511 echo "$as_me:10511: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000010512 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10513 then
10514 # The compiler can only warn and ignore the option if not recognized
10515 # So say no if there are warnings
10516 if test ! -s out/conftest.err; then
10517 lt_cv_prog_compiler_c_o_CXX=yes
10518 fi
10519 fi
10520 chmod u+w .
10521 $rm conftest* out/*
10522 rmdir out
10523 cd ..
10524 rmdir conftest
10525 $rm conftest*
10526
10527fi
10528echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10529echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10530
10531
10532hard_links="nottested"
10533if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10534 # do not overwrite the value of need_locks provided by the user
10535 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10536echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10537 hard_links=yes
10538 $rm conftest*
10539 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10540 touch conftest.a
10541 ln conftest.a conftest.b 2>&5 || hard_links=no
10542 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10543 echo "$as_me:$LINENO: result: $hard_links" >&5
10544echo "${ECHO_T}$hard_links" >&6
10545 if test "$hard_links" = no; then
10546 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10547echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10548 need_locks=warn
10549 fi
10550else
10551 need_locks=no
10552fi
10553
10554echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10555echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10556
10557 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10558 case $host_os in
10559 aix4* | aix5*)
10560 # If we're using GNU nm, then we don't want the "-C" option.
10561 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10562 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10563 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'
10564 else
10565 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'
10566 fi
10567 ;;
10568 pw32*)
10569 export_symbols_cmds_CXX="$ltdll_cmds"
10570 ;;
10571 cygwin* | mingw*)
10572 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10573 ;;
10574 *)
10575 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10576 ;;
10577 esac
10578
10579echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10580echo "${ECHO_T}$ld_shlibs_CXX" >&6
10581test "$ld_shlibs_CXX" = no && can_build_shared=no
10582
10583variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10584if test "$GCC" = yes; then
10585 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10586fi
10587
10588#
10589# Do we need to explicitly link libc?
10590#
10591case "x$archive_cmds_need_lc_CXX" in
10592x|xyes)
10593 # Assume -lc should be added
10594 archive_cmds_need_lc_CXX=yes
10595
10596 if test "$enable_shared" = yes && test "$GCC" = yes; then
10597 case $archive_cmds_CXX in
10598 *'~'*)
10599 # FIXME: we may have to deal with multi-command sequences.
10600 ;;
10601 '$CC '*)
10602 # Test whether the compiler implicitly links with -lc since on some
10603 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10604 # to ld, don't add -lc before -lgcc.
10605 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10606echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10607 $rm conftest*
10608 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10609
10610 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10611 (eval $ac_compile) 2>&5
10612 ac_status=$?
10613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10614 (exit $ac_status); } 2>conftest.err; then
10615 soname=conftest
10616 lib=conftest
10617 libobjs=conftest.$ac_objext
10618 deplibs=
10619 wl=$lt_prog_compiler_wl_CXX
10620 compiler_flags=-v
10621 linker_flags=-v
10622 verstring=
10623 output_objdir=.
10624 libname=conftest
10625 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
10626 allow_undefined_flag_CXX=
10627 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10628 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10629 ac_status=$?
10630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10631 (exit $ac_status); }
10632 then
10633 archive_cmds_need_lc_CXX=no
10634 else
10635 archive_cmds_need_lc_CXX=yes
10636 fi
10637 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
10638 else
10639 cat conftest.err 1>&5
10640 fi
10641 $rm conftest*
10642 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
10643echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
10644 ;;
10645 esac
10646 fi
10647 ;;
10648esac
10649
10650echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10651echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10652hardcode_action_CXX=
10653if test -n "$hardcode_libdir_flag_spec_CXX" || \
10654 test -n "$runpath_var CXX" || \
10655 test "X$hardcode_automatic_CXX"="Xyes" ; then
10656
10657 # We can hardcode non-existant directories.
10658 if test "$hardcode_direct_CXX" != no &&
10659 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10660 # have to relink, otherwise we might link with an installed library
10661 # when we should be linking with a yet-to-be-installed one
10662 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
10663 test "$hardcode_minus_L_CXX" != no; then
10664 # Linking always hardcodes the temporary library directory.
10665 hardcode_action_CXX=relink
10666 else
10667 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10668 hardcode_action_CXX=immediate
10669 fi
10670else
10671 # We cannot hardcode anything, or else we can only hardcode existing
10672 # directories.
10673 hardcode_action_CXX=unsupported
10674fi
10675echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
10676echo "${ECHO_T}$hardcode_action_CXX" >&6
10677
10678if test "$hardcode_action_CXX" = relink; then
10679 # Fast installation is not supported
10680 enable_fast_install=no
10681elif test "$shlibpath_overrides_runpath" = yes ||
10682 test "$enable_shared" = no; then
10683 # Fast installation is not necessary
10684 enable_fast_install=needless
10685fi
10686
10687striplib=
10688old_striplib=
10689echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10690echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10691if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10692 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10693 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10694 echo "$as_me:$LINENO: result: yes" >&5
10695echo "${ECHO_T}yes" >&6
10696else
10697# FIXME - insert some real tests, host_os isn't really good enough
10698 case $host_os in
10699 darwin*)
10700 if test -n "$STRIP" ; then
10701 striplib="$STRIP -x"
10702 echo "$as_me:$LINENO: result: yes" >&5
10703echo "${ECHO_T}yes" >&6
10704 else
10705 echo "$as_me:$LINENO: result: no" >&5
10706echo "${ECHO_T}no" >&6
10707fi
10708 ;;
10709 *)
10710 echo "$as_me:$LINENO: result: no" >&5
10711echo "${ECHO_T}no" >&6
10712 ;;
10713 esac
10714fi
10715
10716echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10717echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10718library_names_spec=
10719libname_spec='lib$name'
10720soname_spec=
10721shrext=".so"
10722postinstall_cmds=
10723postuninstall_cmds=
10724finish_cmds=
10725finish_eval=
10726shlibpath_var=
10727shlibpath_overrides_runpath=unknown
10728version_type=none
10729dynamic_linker="$host_os ld.so"
10730sys_lib_dlsearch_path_spec="/lib /usr/lib"
10731if test "$GCC" = yes; then
10732 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10733 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10734 # if the path contains ";" then we assume it to be the separator
10735 # otherwise default to the standard path separator (i.e. ":") - it is
10736 # assumed that no part of a normal pathname contains ";" but that should
10737 # okay in the real world where ";" in dirpaths is itself problematic.
10738 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10739 else
10740 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10741 fi
10742else
10743 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10744fi
10745need_lib_prefix=unknown
10746hardcode_into_libs=no
10747
10748# when you set need_version to no, make sure it does not cause -set_version
10749# flags to be left without arguments
10750need_version=unknown
10751
10752case $host_os in
10753aix3*)
10754 version_type=linux
10755 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10756 shlibpath_var=LIBPATH
10757
10758 # AIX 3 has no versioning support, so we append a major version to the name.
10759 soname_spec='${libname}${release}${shared_ext}$major'
10760 ;;
10761
10762aix4* | aix5*)
10763 version_type=linux
10764 need_lib_prefix=no
10765 need_version=no
10766 hardcode_into_libs=yes
10767 if test "$host_cpu" = ia64; then
10768 # AIX 5 supports IA64
10769 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10770 shlibpath_var=LD_LIBRARY_PATH
10771 else
10772 # With GCC up to 2.95.x, collect2 would create an import file
10773 # for dependence libraries. The import file would start with
10774 # the line `#! .'. This would cause the generated library to
10775 # depend on `.', always an invalid library. This was fixed in
10776 # development snapshots of GCC prior to 3.0.
10777 case $host_os in
10778 aix4 | aix4.[01] | aix4.[01].*)
10779 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10780 echo ' yes '
10781 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10782 :
10783 else
10784 can_build_shared=no
10785 fi
10786 ;;
10787 esac
10788 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10789 # soname into executable. Probably we can add versioning support to
10790 # collect2, so additional links can be useful in future.
10791 if test "$aix_use_runtimelinking" = yes; then
10792 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10793 # instead of lib<name>.a to let people know that these are not
10794 # typical AIX shared libraries.
10795 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10796 else
10797 # We preserve .a as extension for shared libraries through AIX4.2
10798 # and later when we are not doing run time linking.
10799 library_names_spec='${libname}${release}.a $libname.a'
10800 soname_spec='${libname}${release}${shared_ext}$major'
10801 fi
10802 shlibpath_var=LIBPATH
10803 fi
10804 ;;
10805
10806amigaos*)
10807 library_names_spec='$libname.ixlibrary $libname.a'
10808 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10809 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'
10810 ;;
10811
10812beos*)
10813 library_names_spec='${libname}${shared_ext}'
10814 dynamic_linker="$host_os ld.so"
10815 shlibpath_var=LIBRARY_PATH
10816 ;;
10817
10818bsdi4*)
10819 version_type=linux
10820 need_version=no
10821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10822 soname_spec='${libname}${release}${shared_ext}$major'
10823 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10824 shlibpath_var=LD_LIBRARY_PATH
10825 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10826 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10827 # the default ld.so.conf also contains /usr/contrib/lib and
10828 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10829 # libtool to hard-code these into programs
10830 ;;
10831
10832cygwin* | mingw* | pw32*)
10833 version_type=windows
10834 shrext=".dll"
10835 need_version=no
10836 need_lib_prefix=no
10837
10838 case $GCC,$host_os in
10839 yes,cygwin* | yes,mingw* | yes,pw32*)
10840 library_names_spec='$libname.dll.a'
10841 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10842 postinstall_cmds='base_file=`basename \${file}`~
10843 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10844 dldir=$destdir/`dirname \$dlpath`~
10845 test -d \$dldir || mkdir -p \$dldir~
10846 $install_prog $dir/$dlname \$dldir/$dlname'
10847 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10848 dlpath=$dir/\$dldll~
10849 $rm \$dlpath'
10850 shlibpath_overrides_runpath=yes
10851
10852 case $host_os in
10853 cygwin*)
10854 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10855 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10856 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
10857 ;;
10858 mingw*)
10859 # MinGW DLLs use traditional 'lib' prefix
10860 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10861 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10862 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10863 # It is most probably a Windows format PATH printed by
10864 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10865 # path with ; separators, and with drive letters. We can handle the
10866 # drive letters (cygwin fileutils understands them), so leave them,
10867 # especially as we might pass files found there to a mingw objdump,
10868 # which wouldn't understand a cygwinified path. Ahh.
10869 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10870 else
10871 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10872 fi
10873 ;;
10874 pw32*)
10875 # pw32 DLLs use 'pw' prefix rather than 'lib'
10876 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
10877 ;;
10878 esac
10879 ;;
10880
10881 *)
10882 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10883 ;;
10884 esac
10885 dynamic_linker='Win32 ld.exe'
10886 # FIXME: first we should search . and the directory the executable is in
10887 shlibpath_var=PATH
10888 ;;
10889
10890darwin* | rhapsody*)
10891 dynamic_linker="$host_os dyld"
10892 version_type=darwin
10893 need_lib_prefix=no
10894 need_version=no
10895 # FIXME: Relying on posixy $() will cause problems for
10896 # cross-compilation, but unfortunately the echo tests do not
10897 # yet detect zsh echo's removal of \ escapes.
10898 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10899 soname_spec='${libname}${release}${major}$shared_ext'
10900 shlibpath_overrides_runpath=yes
10901 shlibpath_var=DYLD_LIBRARY_PATH
10902 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
10903 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10904 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
10905 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"`
10906 fi
10907 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10908 ;;
10909
10910dgux*)
10911 version_type=linux
10912 need_lib_prefix=no
10913 need_version=no
10914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10915 soname_spec='${libname}${release}${shared_ext}$major'
10916 shlibpath_var=LD_LIBRARY_PATH
10917 ;;
10918
10919freebsd1*)
10920 dynamic_linker=no
10921 ;;
10922
10923freebsd*)
10924 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
10925 version_type=freebsd-$objformat
10926 case $version_type in
10927 freebsd-elf*)
10928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10929 need_version=no
10930 need_lib_prefix=no
10931 ;;
10932 freebsd-*)
10933 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10934 need_version=yes
10935 ;;
10936 esac
10937 shlibpath_var=LD_LIBRARY_PATH
10938 case $host_os in
10939 freebsd2*)
10940 shlibpath_overrides_runpath=yes
10941 ;;
10942 freebsd3.01* | freebsdelf3.01*)
10943 shlibpath_overrides_runpath=yes
10944 hardcode_into_libs=yes
10945 ;;
10946 *) # from 3.2 on
10947 shlibpath_overrides_runpath=no
10948 hardcode_into_libs=yes
10949 ;;
10950 esac
10951 ;;
10952
10953gnu*)
10954 version_type=linux
10955 need_lib_prefix=no
10956 need_version=no
10957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10958 soname_spec='${libname}${release}${shared_ext}$major'
10959 shlibpath_var=LD_LIBRARY_PATH
10960 hardcode_into_libs=yes
10961 ;;
10962
10963hpux9* | hpux10* | hpux11*)
10964 # Give a soname corresponding to the major version so that dld.sl refuses to
10965 # link against other versions.
10966 version_type=sunos
10967 need_lib_prefix=no
10968 need_version=no
10969 case "$host_cpu" in
10970 ia64*)
10971 shrext='.so'
10972 hardcode_into_libs=yes
10973 dynamic_linker="$host_os dld.so"
10974 shlibpath_var=LD_LIBRARY_PATH
10975 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10977 soname_spec='${libname}${release}${shared_ext}$major'
10978 if test "X$HPUX_IA64_MODE" = X32; then
10979 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10980 else
10981 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10982 fi
10983 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10984 ;;
10985 hppa*64*)
10986 shrext='.sl'
10987 hardcode_into_libs=yes
10988 dynamic_linker="$host_os dld.sl"
10989 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10990 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10992 soname_spec='${libname}${release}${shared_ext}$major'
10993 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10994 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10995 ;;
10996 *)
10997 shrext='.sl'
10998 dynamic_linker="$host_os dld.sl"
10999 shlibpath_var=SHLIB_PATH
11000 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11002 soname_spec='${libname}${release}${shared_ext}$major'
11003 ;;
11004 esac
11005 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11006 postinstall_cmds='chmod 555 $lib'
11007 ;;
11008
11009irix5* | irix6* | nonstopux*)
11010 case $host_os in
11011 nonstopux*) version_type=nonstopux ;;
11012 *)
11013 if test "$lt_cv_prog_gnu_ld" = yes; then
11014 version_type=linux
11015 else
11016 version_type=irix
11017 fi ;;
11018 esac
11019 need_lib_prefix=no
11020 need_version=no
11021 soname_spec='${libname}${release}${shared_ext}$major'
11022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11023 case $host_os in
11024 irix5* | nonstopux*)
11025 libsuff= shlibsuff=
11026 ;;
11027 *)
11028 case $LD in # libtool.m4 will add one of these switches to LD
11029 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11030 libsuff= shlibsuff= libmagic=32-bit;;
11031 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11032 libsuff=32 shlibsuff=N32 libmagic=N32;;
11033 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11034 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11035 *) libsuff= shlibsuff= libmagic=never-match;;
11036 esac
11037 ;;
11038 esac
11039 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11040 shlibpath_overrides_runpath=no
11041 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11042 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11043 hardcode_into_libs=yes
11044 ;;
11045
11046# No shared lib support for Linux oldld, aout, or coff.
11047linux*oldld* | linux*aout* | linux*coff*)
11048 dynamic_linker=no
11049 ;;
11050
11051# This must be Linux ELF.
11052linux*)
11053 version_type=linux
11054 need_lib_prefix=no
11055 need_version=no
11056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11057 soname_spec='${libname}${release}${shared_ext}$major'
11058 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11059 shlibpath_var=LD_LIBRARY_PATH
11060 shlibpath_overrides_runpath=no
11061 # This implies no fast_install, which is unacceptable.
11062 # Some rework will be needed to allow for fast_install
11063 # before this can be enabled.
11064 hardcode_into_libs=yes
11065
11066 # We used to test for /lib/ld.so.1 and disable shared libraries on
11067 # powerpc, because MkLinux only supported shared libraries with the
11068 # GNU dynamic linker. Since this was broken with cross compilers,
11069 # most powerpc-linux boxes support dynamic linking these days and
11070 # people can always --disable-shared, the test was removed, and we
11071 # assume the GNU/Linux dynamic linker is in use.
11072 dynamic_linker='GNU/Linux ld.so'
11073 ;;
11074
11075netbsd*)
11076 version_type=sunos
11077 need_lib_prefix=no
11078 need_version=no
11079 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11081 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11082 dynamic_linker='NetBSD (a.out) ld.so'
11083 else
11084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
11085 soname_spec='${libname}${release}${shared_ext}$major'
11086 dynamic_linker='NetBSD ld.elf_so'
11087 fi
11088 shlibpath_var=LD_LIBRARY_PATH
11089 shlibpath_overrides_runpath=yes
11090 hardcode_into_libs=yes
11091 ;;
11092
11093newsos6)
11094 version_type=linux
11095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11096 shlibpath_var=LD_LIBRARY_PATH
11097 shlibpath_overrides_runpath=yes
11098 ;;
11099
11100nto-qnx)
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 shlibpath_var=LD_LIBRARY_PATH
11107 shlibpath_overrides_runpath=yes
11108 ;;
11109
11110openbsd*)
11111 version_type=sunos
11112 need_lib_prefix=no
11113 need_version=no
11114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11115 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11116 shlibpath_var=LD_LIBRARY_PATH
11117 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11118 case $host_os in
11119 openbsd2.[89] | openbsd2.[89].*)
11120 shlibpath_overrides_runpath=no
11121 ;;
11122 *)
11123 shlibpath_overrides_runpath=yes
11124 ;;
11125 esac
11126 else
11127 shlibpath_overrides_runpath=yes
11128 fi
11129 ;;
11130
11131os2*)
11132 libname_spec='$name'
11133 shrext=".dll"
11134 need_lib_prefix=no
11135 library_names_spec='$libname${shared_ext} $libname.a'
11136 dynamic_linker='OS/2 ld.exe'
11137 shlibpath_var=LIBPATH
11138 ;;
11139
11140osf3* | osf4* | osf5*)
11141 version_type=osf
11142 need_lib_prefix=no
11143 need_version=no
11144 soname_spec='${libname}${release}${shared_ext}$major'
11145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11146 shlibpath_var=LD_LIBRARY_PATH
11147 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11148 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11149 ;;
11150
11151sco3.2v5*)
11152 version_type=osf
11153 soname_spec='${libname}${release}${shared_ext}$major'
11154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11155 shlibpath_var=LD_LIBRARY_PATH
11156 ;;
11157
11158solaris*)
11159 version_type=linux
11160 need_lib_prefix=no
11161 need_version=no
11162 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11163 soname_spec='${libname}${release}${shared_ext}$major'
11164 shlibpath_var=LD_LIBRARY_PATH
11165 shlibpath_overrides_runpath=yes
11166 hardcode_into_libs=yes
11167 # ldd complains unless libraries are executable
11168 postinstall_cmds='chmod +x $lib'
11169 ;;
11170
11171sunos4*)
11172 version_type=sunos
11173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11174 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11175 shlibpath_var=LD_LIBRARY_PATH
11176 shlibpath_overrides_runpath=yes
11177 if test "$with_gnu_ld" = yes; then
11178 need_lib_prefix=no
11179 fi
11180 need_version=yes
11181 ;;
11182
11183sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11184 version_type=linux
11185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11186 soname_spec='${libname}${release}${shared_ext}$major'
11187 shlibpath_var=LD_LIBRARY_PATH
11188 case $host_vendor in
11189 sni)
11190 shlibpath_overrides_runpath=no
11191 need_lib_prefix=no
11192 export_dynamic_flag_spec='${wl}-Blargedynsym'
11193 runpath_var=LD_RUN_PATH
11194 ;;
11195 siemens)
11196 need_lib_prefix=no
11197 ;;
11198 motorola)
11199 need_lib_prefix=no
11200 need_version=no
11201 shlibpath_overrides_runpath=no
11202 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11203 ;;
11204 esac
11205 ;;
11206
11207sysv4*MP*)
11208 if test -d /usr/nec ;then
11209 version_type=linux
11210 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11211 soname_spec='$libname${shared_ext}.$major'
11212 shlibpath_var=LD_LIBRARY_PATH
11213 fi
11214 ;;
11215
11216uts4*)
11217 version_type=linux
11218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11219 soname_spec='${libname}${release}${shared_ext}$major'
11220 shlibpath_var=LD_LIBRARY_PATH
11221 ;;
11222
11223*)
11224 dynamic_linker=no
11225 ;;
11226esac
11227echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11228echo "${ECHO_T}$dynamic_linker" >&6
11229test "$dynamic_linker" = no && can_build_shared=no
11230
11231if test "x$enable_dlopen" != xyes; then
11232 enable_dlopen=unknown
11233 enable_dlopen_self=unknown
11234 enable_dlopen_self_static=unknown
11235else
11236 lt_cv_dlopen=no
11237 lt_cv_dlopen_libs=
11238
11239 case $host_os in
11240 beos*)
11241 lt_cv_dlopen="load_add_on"
11242 lt_cv_dlopen_libs=
11243 lt_cv_dlopen_self=yes
11244 ;;
11245
11246 mingw* | pw32*)
11247 lt_cv_dlopen="LoadLibrary"
11248 lt_cv_dlopen_libs=
11249 ;;
11250
11251 cygwin*)
11252 lt_cv_dlopen="dlopen"
11253 lt_cv_dlopen_libs=
11254 ;;
11255
11256 darwin*)
11257 # if libdl is installed we need to link against it
11258 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11259echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11260if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11261 echo $ECHO_N "(cached) $ECHO_C" >&6
11262else
11263 ac_check_lib_save_LIBS=$LIBS
11264LIBS="-ldl $LIBS"
11265cat >conftest.$ac_ext <<_ACEOF
11266#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011267/* confdefs.h. */
11268_ACEOF
11269cat confdefs.h >>conftest.$ac_ext
11270cat >>conftest.$ac_ext <<_ACEOF
11271/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011272
11273/* Override any gcc2 internal prototype to avoid an error. */
11274#ifdef __cplusplus
11275extern "C"
11276#endif
11277/* We use char because int might match the return type of a gcc2
11278 builtin and then its argument prototype would still apply. */
11279char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011280int
11281main ()
11282{
11283dlopen ();
11284 ;
11285 return 0;
11286}
11287_ACEOF
11288rm -f conftest.$ac_objext conftest$ac_exeext
11289if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11290 (eval $ac_link) 2>&5
11291 ac_status=$?
11292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11293 (exit $ac_status); } &&
11294 { ac_try='test -s conftest$ac_exeext'
11295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11296 (eval $ac_try) 2>&5
11297 ac_status=$?
11298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11299 (exit $ac_status); }; }; then
11300 ac_cv_lib_dl_dlopen=yes
11301else
11302 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011303sed 's/^/| /' conftest.$ac_ext >&5
11304
John Criswell47fdd832003-07-14 16:52:07 +000011305ac_cv_lib_dl_dlopen=no
11306fi
11307rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11308LIBS=$ac_check_lib_save_LIBS
11309fi
11310echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11311echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11312if test $ac_cv_lib_dl_dlopen = yes; then
11313 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11314else
11315
11316 lt_cv_dlopen="dyld"
11317 lt_cv_dlopen_libs=
11318 lt_cv_dlopen_self=yes
11319
11320fi
11321
11322 ;;
11323
11324 *)
11325 echo "$as_me:$LINENO: checking for shl_load" >&5
11326echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11327if test "${ac_cv_func_shl_load+set}" = set; then
11328 echo $ECHO_N "(cached) $ECHO_C" >&6
11329else
11330 cat >conftest.$ac_ext <<_ACEOF
11331#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011332/* confdefs.h. */
11333_ACEOF
11334cat confdefs.h >>conftest.$ac_ext
11335cat >>conftest.$ac_ext <<_ACEOF
11336/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011337/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000011338 which can conflict with char shl_load (); below.
11339 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11340 <limits.h> exists even on freestanding compilers. */
11341#ifdef __STDC__
11342# include <limits.h>
11343#else
11344# include <assert.h>
11345#endif
John Criswell47fdd832003-07-14 16:52:07 +000011346/* Override any gcc2 internal prototype to avoid an error. */
11347#ifdef __cplusplus
11348extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000011349{
John Criswell47fdd832003-07-14 16:52:07 +000011350#endif
11351/* We use char because int might match the return type of a gcc2
11352 builtin and then its argument prototype would still apply. */
11353char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000011354/* The GNU C library defines this for functions which it implements
11355 to always fail with ENOSYS. Some functions are actually named
11356 something starting with __ and the normal name is an alias. */
11357#if defined (__stub_shl_load) || defined (__stub___shl_load)
11358choke me
11359#else
John Criswell0c38eaf2003-09-10 15:17:25 +000011360char (*f) () = shl_load;
11361#endif
11362#ifdef __cplusplus
11363}
John Criswell47fdd832003-07-14 16:52:07 +000011364#endif
11365
John Criswell0c38eaf2003-09-10 15:17:25 +000011366int
11367main ()
11368{
11369return f != shl_load;
John Criswell47fdd832003-07-14 16:52:07 +000011370 ;
11371 return 0;
11372}
11373_ACEOF
11374rm -f conftest.$ac_objext conftest$ac_exeext
11375if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11376 (eval $ac_link) 2>&5
11377 ac_status=$?
11378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11379 (exit $ac_status); } &&
11380 { ac_try='test -s conftest$ac_exeext'
11381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11382 (eval $ac_try) 2>&5
11383 ac_status=$?
11384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11385 (exit $ac_status); }; }; then
11386 ac_cv_func_shl_load=yes
11387else
11388 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011389sed 's/^/| /' conftest.$ac_ext >&5
11390
John Criswell47fdd832003-07-14 16:52:07 +000011391ac_cv_func_shl_load=no
11392fi
11393rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11394fi
11395echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11396echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11397if test $ac_cv_func_shl_load = yes; then
11398 lt_cv_dlopen="shl_load"
11399else
11400 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11401echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11402if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11403 echo $ECHO_N "(cached) $ECHO_C" >&6
11404else
11405 ac_check_lib_save_LIBS=$LIBS
11406LIBS="-ldld $LIBS"
11407cat >conftest.$ac_ext <<_ACEOF
11408#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011409/* confdefs.h. */
11410_ACEOF
11411cat confdefs.h >>conftest.$ac_ext
11412cat >>conftest.$ac_ext <<_ACEOF
11413/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011414
11415/* Override any gcc2 internal prototype to avoid an error. */
11416#ifdef __cplusplus
11417extern "C"
11418#endif
11419/* We use char because int might match the return type of a gcc2
11420 builtin and then its argument prototype would still apply. */
11421char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000011422int
11423main ()
11424{
11425shl_load ();
11426 ;
11427 return 0;
11428}
11429_ACEOF
11430rm -f conftest.$ac_objext conftest$ac_exeext
11431if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11432 (eval $ac_link) 2>&5
11433 ac_status=$?
11434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11435 (exit $ac_status); } &&
11436 { ac_try='test -s conftest$ac_exeext'
11437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11438 (eval $ac_try) 2>&5
11439 ac_status=$?
11440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11441 (exit $ac_status); }; }; then
11442 ac_cv_lib_dld_shl_load=yes
11443else
11444 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011445sed 's/^/| /' conftest.$ac_ext >&5
11446
John Criswell47fdd832003-07-14 16:52:07 +000011447ac_cv_lib_dld_shl_load=no
11448fi
11449rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11450LIBS=$ac_check_lib_save_LIBS
11451fi
11452echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11453echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11454if test $ac_cv_lib_dld_shl_load = yes; then
11455 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11456else
11457 echo "$as_me:$LINENO: checking for dlopen" >&5
11458echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11459if test "${ac_cv_func_dlopen+set}" = set; then
11460 echo $ECHO_N "(cached) $ECHO_C" >&6
11461else
11462 cat >conftest.$ac_ext <<_ACEOF
11463#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011464/* confdefs.h. */
11465_ACEOF
11466cat confdefs.h >>conftest.$ac_ext
11467cat >>conftest.$ac_ext <<_ACEOF
11468/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011469/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000011470 which can conflict with char dlopen (); below.
11471 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11472 <limits.h> exists even on freestanding compilers. */
11473#ifdef __STDC__
11474# include <limits.h>
11475#else
11476# include <assert.h>
11477#endif
John Criswell47fdd832003-07-14 16:52:07 +000011478/* Override any gcc2 internal prototype to avoid an error. */
11479#ifdef __cplusplus
11480extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000011481{
John Criswell47fdd832003-07-14 16:52:07 +000011482#endif
11483/* We use char because int might match the return type of a gcc2
11484 builtin and then its argument prototype would still apply. */
11485char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011486/* The GNU C library defines this for functions which it implements
11487 to always fail with ENOSYS. Some functions are actually named
11488 something starting with __ and the normal name is an alias. */
11489#if defined (__stub_dlopen) || defined (__stub___dlopen)
11490choke me
11491#else
John Criswell0c38eaf2003-09-10 15:17:25 +000011492char (*f) () = dlopen;
11493#endif
11494#ifdef __cplusplus
11495}
John Criswell47fdd832003-07-14 16:52:07 +000011496#endif
11497
John Criswell0c38eaf2003-09-10 15:17:25 +000011498int
11499main ()
11500{
11501return f != dlopen;
John Criswell47fdd832003-07-14 16:52:07 +000011502 ;
11503 return 0;
11504}
11505_ACEOF
11506rm -f conftest.$ac_objext conftest$ac_exeext
11507if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11508 (eval $ac_link) 2>&5
11509 ac_status=$?
11510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11511 (exit $ac_status); } &&
11512 { ac_try='test -s conftest$ac_exeext'
11513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11514 (eval $ac_try) 2>&5
11515 ac_status=$?
11516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11517 (exit $ac_status); }; }; then
11518 ac_cv_func_dlopen=yes
11519else
11520 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011521sed 's/^/| /' conftest.$ac_ext >&5
11522
John Criswell47fdd832003-07-14 16:52:07 +000011523ac_cv_func_dlopen=no
11524fi
11525rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11526fi
11527echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11528echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11529if test $ac_cv_func_dlopen = yes; then
11530 lt_cv_dlopen="dlopen"
11531else
11532 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11533echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11534if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11535 echo $ECHO_N "(cached) $ECHO_C" >&6
11536else
11537 ac_check_lib_save_LIBS=$LIBS
11538LIBS="-ldl $LIBS"
11539cat >conftest.$ac_ext <<_ACEOF
11540#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011541/* confdefs.h. */
11542_ACEOF
11543cat confdefs.h >>conftest.$ac_ext
11544cat >>conftest.$ac_ext <<_ACEOF
11545/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011546
11547/* Override any gcc2 internal prototype to avoid an error. */
11548#ifdef __cplusplus
11549extern "C"
11550#endif
11551/* We use char because int might match the return type of a gcc2
11552 builtin and then its argument prototype would still apply. */
11553char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011554int
11555main ()
11556{
11557dlopen ();
11558 ;
11559 return 0;
11560}
11561_ACEOF
11562rm -f conftest.$ac_objext conftest$ac_exeext
11563if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11564 (eval $ac_link) 2>&5
11565 ac_status=$?
11566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11567 (exit $ac_status); } &&
11568 { ac_try='test -s conftest$ac_exeext'
11569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11570 (eval $ac_try) 2>&5
11571 ac_status=$?
11572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11573 (exit $ac_status); }; }; then
11574 ac_cv_lib_dl_dlopen=yes
11575else
11576 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011577sed 's/^/| /' conftest.$ac_ext >&5
11578
John Criswell47fdd832003-07-14 16:52:07 +000011579ac_cv_lib_dl_dlopen=no
11580fi
11581rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11582LIBS=$ac_check_lib_save_LIBS
11583fi
11584echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11585echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11586if test $ac_cv_lib_dl_dlopen = yes; then
11587 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11588else
11589 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11590echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11591if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11592 echo $ECHO_N "(cached) $ECHO_C" >&6
11593else
11594 ac_check_lib_save_LIBS=$LIBS
11595LIBS="-lsvld $LIBS"
11596cat >conftest.$ac_ext <<_ACEOF
11597#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011598/* confdefs.h. */
11599_ACEOF
11600cat confdefs.h >>conftest.$ac_ext
11601cat >>conftest.$ac_ext <<_ACEOF
11602/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011603
11604/* Override any gcc2 internal prototype to avoid an error. */
11605#ifdef __cplusplus
11606extern "C"
11607#endif
11608/* We use char because int might match the return type of a gcc2
11609 builtin and then its argument prototype would still apply. */
11610char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011611int
11612main ()
11613{
11614dlopen ();
11615 ;
11616 return 0;
11617}
11618_ACEOF
11619rm -f conftest.$ac_objext conftest$ac_exeext
11620if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11621 (eval $ac_link) 2>&5
11622 ac_status=$?
11623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11624 (exit $ac_status); } &&
11625 { ac_try='test -s conftest$ac_exeext'
11626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11627 (eval $ac_try) 2>&5
11628 ac_status=$?
11629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11630 (exit $ac_status); }; }; then
11631 ac_cv_lib_svld_dlopen=yes
11632else
11633 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011634sed 's/^/| /' conftest.$ac_ext >&5
11635
John Criswell47fdd832003-07-14 16:52:07 +000011636ac_cv_lib_svld_dlopen=no
11637fi
11638rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11639LIBS=$ac_check_lib_save_LIBS
11640fi
11641echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11642echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11643if test $ac_cv_lib_svld_dlopen = yes; then
11644 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11645else
11646 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11647echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
11648if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11649 echo $ECHO_N "(cached) $ECHO_C" >&6
11650else
11651 ac_check_lib_save_LIBS=$LIBS
11652LIBS="-ldld $LIBS"
11653cat >conftest.$ac_ext <<_ACEOF
11654#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011655/* confdefs.h. */
11656_ACEOF
11657cat confdefs.h >>conftest.$ac_ext
11658cat >>conftest.$ac_ext <<_ACEOF
11659/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011660
11661/* Override any gcc2 internal prototype to avoid an error. */
11662#ifdef __cplusplus
11663extern "C"
11664#endif
11665/* We use char because int might match the return type of a gcc2
11666 builtin and then its argument prototype would still apply. */
11667char dld_link ();
John Criswell47fdd832003-07-14 16:52:07 +000011668int
11669main ()
11670{
11671dld_link ();
11672 ;
11673 return 0;
11674}
11675_ACEOF
11676rm -f conftest.$ac_objext conftest$ac_exeext
11677if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11678 (eval $ac_link) 2>&5
11679 ac_status=$?
11680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11681 (exit $ac_status); } &&
11682 { ac_try='test -s conftest$ac_exeext'
11683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11684 (eval $ac_try) 2>&5
11685 ac_status=$?
11686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11687 (exit $ac_status); }; }; then
11688 ac_cv_lib_dld_dld_link=yes
11689else
11690 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011691sed 's/^/| /' conftest.$ac_ext >&5
11692
John Criswell47fdd832003-07-14 16:52:07 +000011693ac_cv_lib_dld_dld_link=no
11694fi
11695rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11696LIBS=$ac_check_lib_save_LIBS
11697fi
11698echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11699echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
11700if test $ac_cv_lib_dld_dld_link = yes; then
11701 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11702fi
11703
11704
11705fi
11706
11707
11708fi
11709
11710
11711fi
11712
11713
11714fi
11715
11716
11717fi
11718
11719 ;;
11720 esac
11721
11722 if test "x$lt_cv_dlopen" != xno; then
11723 enable_dlopen=yes
11724 else
11725 enable_dlopen=no
11726 fi
11727
11728 case $lt_cv_dlopen in
11729 dlopen)
11730 save_CPPFLAGS="$CPPFLAGS"
11731 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11732
11733 save_LDFLAGS="$LDFLAGS"
11734 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11735
11736 save_LIBS="$LIBS"
11737 LIBS="$lt_cv_dlopen_libs $LIBS"
11738
11739 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11740echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11741if test "${lt_cv_dlopen_self+set}" = set; then
11742 echo $ECHO_N "(cached) $ECHO_C" >&6
11743else
11744 if test "$cross_compiling" = yes; then :
11745 lt_cv_dlopen_self=cross
11746else
11747 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11748 lt_status=$lt_dlunknown
11749 cat > conftest.$ac_ext <<EOF
John Criswell33a911a2003-11-25 20:36:46 +000011750#line 11750 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000011751#include "confdefs.h"
11752
11753#if HAVE_DLFCN_H
11754#include <dlfcn.h>
11755#endif
11756
11757#include <stdio.h>
11758
11759#ifdef RTLD_GLOBAL
11760# define LT_DLGLOBAL RTLD_GLOBAL
11761#else
11762# ifdef DL_GLOBAL
11763# define LT_DLGLOBAL DL_GLOBAL
11764# else
11765# define LT_DLGLOBAL 0
11766# endif
11767#endif
11768
11769/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11770 find out it does not work in some platform. */
11771#ifndef LT_DLLAZY_OR_NOW
11772# ifdef RTLD_LAZY
11773# define LT_DLLAZY_OR_NOW RTLD_LAZY
11774# else
11775# ifdef DL_LAZY
11776# define LT_DLLAZY_OR_NOW DL_LAZY
11777# else
11778# ifdef RTLD_NOW
11779# define LT_DLLAZY_OR_NOW RTLD_NOW
11780# else
11781# ifdef DL_NOW
11782# define LT_DLLAZY_OR_NOW DL_NOW
11783# else
11784# define LT_DLLAZY_OR_NOW 0
11785# endif
11786# endif
11787# endif
11788# endif
11789#endif
11790
11791#ifdef __cplusplus
11792extern "C" void exit (int);
11793#endif
11794
11795void fnord() { int i=42;}
11796int main ()
11797{
11798 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11799 int status = $lt_dlunknown;
11800
11801 if (self)
11802 {
11803 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11804 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11805 /* dlclose (self); */
11806 }
11807
11808 exit (status);
11809}
11810EOF
11811 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11812 (eval $ac_link) 2>&5
11813 ac_status=$?
11814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11815 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11816 (./conftest; exit; ) 2>/dev/null
11817 lt_status=$?
11818 case x$lt_status in
11819 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11820 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11821 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
11822 esac
11823 else :
11824 # compilation failed
11825 lt_cv_dlopen_self=no
11826 fi
11827fi
11828rm -fr conftest*
11829
11830
11831fi
11832echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11833echo "${ECHO_T}$lt_cv_dlopen_self" >&6
11834
11835 if test "x$lt_cv_dlopen_self" = xyes; then
11836 LDFLAGS="$LDFLAGS $link_static_flag"
11837 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11838echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
11839if test "${lt_cv_dlopen_self_static+set}" = set; then
11840 echo $ECHO_N "(cached) $ECHO_C" >&6
11841else
11842 if test "$cross_compiling" = yes; then :
11843 lt_cv_dlopen_self_static=cross
11844else
11845 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11846 lt_status=$lt_dlunknown
11847 cat > conftest.$ac_ext <<EOF
John Criswell33a911a2003-11-25 20:36:46 +000011848#line 11848 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000011849#include "confdefs.h"
11850
11851#if HAVE_DLFCN_H
11852#include <dlfcn.h>
11853#endif
11854
11855#include <stdio.h>
11856
11857#ifdef RTLD_GLOBAL
11858# define LT_DLGLOBAL RTLD_GLOBAL
11859#else
11860# ifdef DL_GLOBAL
11861# define LT_DLGLOBAL DL_GLOBAL
11862# else
11863# define LT_DLGLOBAL 0
11864# endif
11865#endif
11866
11867/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11868 find out it does not work in some platform. */
11869#ifndef LT_DLLAZY_OR_NOW
11870# ifdef RTLD_LAZY
11871# define LT_DLLAZY_OR_NOW RTLD_LAZY
11872# else
11873# ifdef DL_LAZY
11874# define LT_DLLAZY_OR_NOW DL_LAZY
11875# else
11876# ifdef RTLD_NOW
11877# define LT_DLLAZY_OR_NOW RTLD_NOW
11878# else
11879# ifdef DL_NOW
11880# define LT_DLLAZY_OR_NOW DL_NOW
11881# else
11882# define LT_DLLAZY_OR_NOW 0
11883# endif
11884# endif
11885# endif
11886# endif
11887#endif
11888
11889#ifdef __cplusplus
11890extern "C" void exit (int);
11891#endif
11892
11893void fnord() { int i=42;}
11894int main ()
11895{
11896 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11897 int status = $lt_dlunknown;
11898
11899 if (self)
11900 {
11901 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11902 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11903 /* dlclose (self); */
11904 }
11905
11906 exit (status);
11907}
11908EOF
11909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11910 (eval $ac_link) 2>&5
11911 ac_status=$?
11912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11913 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11914 (./conftest; exit; ) 2>/dev/null
11915 lt_status=$?
11916 case x$lt_status in
11917 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11918 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11919 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
11920 esac
11921 else :
11922 # compilation failed
11923 lt_cv_dlopen_self_static=no
11924 fi
11925fi
11926rm -fr conftest*
11927
11928
11929fi
11930echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11931echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
11932 fi
11933
11934 CPPFLAGS="$save_CPPFLAGS"
11935 LDFLAGS="$save_LDFLAGS"
11936 LIBS="$save_LIBS"
11937 ;;
11938 esac
11939
11940 case $lt_cv_dlopen_self in
11941 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11942 *) enable_dlopen_self=unknown ;;
11943 esac
11944
11945 case $lt_cv_dlopen_self_static in
11946 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11947 *) enable_dlopen_self_static=unknown ;;
11948 esac
11949fi
11950
11951
11952# The else clause should only fire when bootstrapping the
11953# libtool distribution, otherwise you forgot to ship ltmain.sh
11954# with your package, and you will get complaints that there are
11955# no rules to generate ltmain.sh.
11956if test -f "$ltmain"; then
11957 # See if we are running on zsh, and set the options which allow our commands through
11958 # without removal of \ escapes.
11959 if test -n "${ZSH_VERSION+set}" ; then
11960 setopt NO_GLOB_SUBST
11961 fi
11962 # Now quote all the things that may contain metacharacters while being
11963 # careful not to overquote the AC_SUBSTed values. We take copies of the
11964 # variables and quote the copies for generation of the libtool script.
11965 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
11966 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11967 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11968 deplibs_check_method reload_flag reload_cmds need_locks \
11969 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11970 lt_cv_sys_global_symbol_to_c_name_address \
11971 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11972 old_postinstall_cmds old_postuninstall_cmds \
11973 compiler_CXX \
11974 CC_CXX \
11975 LD_CXX \
11976 lt_prog_compiler_wl_CXX \
11977 lt_prog_compiler_pic_CXX \
11978 lt_prog_compiler_static_CXX \
11979 lt_prog_compiler_no_builtin_flag_CXX \
11980 export_dynamic_flag_spec_CXX \
11981 thread_safe_flag_spec_CXX \
11982 whole_archive_flag_spec_CXX \
11983 enable_shared_with_static_runtimes_CXX \
11984 old_archive_cmds_CXX \
11985 old_archive_from_new_cmds_CXX \
11986 predep_objects_CXX \
11987 postdep_objects_CXX \
11988 predeps_CXX \
11989 postdeps_CXX \
11990 compiler_lib_search_path_CXX \
11991 archive_cmds_CXX \
11992 archive_expsym_cmds_CXX \
11993 postinstall_cmds_CXX \
11994 postuninstall_cmds_CXX \
11995 old_archive_from_expsyms_cmds_CXX \
11996 allow_undefined_flag_CXX \
11997 no_undefined_flag_CXX \
11998 export_symbols_cmds_CXX \
11999 hardcode_libdir_flag_spec_CXX \
12000 hardcode_libdir_flag_spec_ld_CXX \
12001 hardcode_libdir_separator_CXX \
12002 hardcode_automatic_CXX \
12003 module_cmds_CXX \
12004 module_expsym_cmds_CXX \
12005 lt_cv_prog_compiler_c_o_CXX \
12006 exclude_expsyms_CXX \
12007 include_expsyms_CXX; do
12008
12009 case $var in
12010 old_archive_cmds_CXX | \
12011 old_archive_from_new_cmds_CXX | \
12012 archive_cmds_CXX | \
12013 archive_expsym_cmds_CXX | \
12014 module_cmds_CXX | \
12015 module_expsym_cmds_CXX | \
12016 old_archive_from_expsyms_cmds_CXX | \
12017 export_symbols_cmds_CXX | \
12018 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12019 postinstall_cmds | postuninstall_cmds | \
12020 old_postinstall_cmds | old_postuninstall_cmds | \
12021 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12022 # Double-quote double-evaled strings.
12023 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12024 ;;
12025 *)
12026 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12027 ;;
12028 esac
12029 done
12030
12031 case $lt_echo in
12032 *'\$0 --fallback-echo"')
12033 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12034 ;;
12035 esac
12036
12037cfgfile="$ofile"
12038
12039 cat <<__EOF__ >> "$cfgfile"
12040# ### BEGIN LIBTOOL TAG CONFIG: $tagname
12041
12042# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12043
12044# Shell to use when invoking shell scripts.
12045SHELL=$lt_SHELL
12046
12047# Whether or not to build shared libraries.
12048build_libtool_libs=$enable_shared
12049
12050# Whether or not to build static libraries.
12051build_old_libs=$enable_static
12052
12053# Whether or not to add -lc for building shared libraries.
12054build_libtool_need_lc=$archive_cmds_need_lc_CXX
12055
12056# Whether or not to disallow shared libs when runtime libs are static
12057allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12058
12059# Whether or not to optimize for fast installation.
12060fast_install=$enable_fast_install
12061
12062# The host system.
12063host_alias=$host_alias
12064host=$host
12065
12066# An echo program that does not interpret backslashes.
12067echo=$lt_echo
12068
12069# The archiver.
12070AR=$lt_AR
12071AR_FLAGS=$lt_AR_FLAGS
12072
12073# A C compiler.
12074LTCC=$lt_LTCC
12075
12076# A language-specific compiler.
12077CC=$lt_compiler_CXX
12078
12079# Is the compiler the GNU C compiler?
12080with_gcc=$GCC_CXX
12081
12082# An ERE matcher.
12083EGREP=$lt_EGREP
12084
12085# The linker used to build libraries.
12086LD=$lt_LD_CXX
12087
12088# Whether we need hard or soft links.
12089LN_S=$lt_LN_S
12090
12091# A BSD-compatible nm program.
12092NM=$lt_NM
12093
12094# A symbol stripping program
12095STRIP=$STRIP
12096
12097# Used to examine libraries when file_magic_cmd begins "file"
12098MAGIC_CMD=$MAGIC_CMD
12099
12100# Used on cygwin: DLL creation program.
12101DLLTOOL="$DLLTOOL"
12102
12103# Used on cygwin: object dumper.
12104OBJDUMP="$OBJDUMP"
12105
12106# Used on cygwin: assembler.
12107AS="$AS"
12108
12109# The name of the directory that contains temporary libtool files.
12110objdir=$objdir
12111
12112# How to create reloadable object files.
12113reload_flag=$lt_reload_flag
12114reload_cmds=$lt_reload_cmds
12115
12116# How to pass a linker flag through the compiler.
12117wl=$lt_lt_prog_compiler_wl_CXX
12118
12119# Object file suffix (normally "o").
12120objext="$ac_objext"
12121
12122# Old archive suffix (normally "a").
12123libext="$libext"
12124
12125# Shared library suffix (normally ".so").
12126shrext='$shrext'
12127
12128# Executable file suffix (normally "").
12129exeext="$exeext"
12130
12131# Additional compiler flags for building library objects.
12132pic_flag=$lt_lt_prog_compiler_pic_CXX
12133pic_mode=$pic_mode
12134
12135# What is the maximum length of a command?
12136max_cmd_len=$lt_cv_sys_max_cmd_len
12137
12138# Does compiler simultaneously support -c and -o options?
12139compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12140
12141# Must we lock files when doing compilation ?
12142need_locks=$lt_need_locks
12143
12144# Do we need the lib prefix for modules?
12145need_lib_prefix=$need_lib_prefix
12146
12147# Do we need a version for libraries?
12148need_version=$need_version
12149
12150# Whether dlopen is supported.
12151dlopen_support=$enable_dlopen
12152
12153# Whether dlopen of programs is supported.
12154dlopen_self=$enable_dlopen_self
12155
12156# Whether dlopen of statically linked programs is supported.
12157dlopen_self_static=$enable_dlopen_self_static
12158
12159# Compiler flag to prevent dynamic linking.
12160link_static_flag=$lt_lt_prog_compiler_static_CXX
12161
12162# Compiler flag to turn off builtin functions.
12163no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12164
12165# Compiler flag to allow reflexive dlopens.
12166export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12167
12168# Compiler flag to generate shared objects directly from archives.
12169whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12170
12171# Compiler flag to generate thread-safe objects.
12172thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12173
12174# Library versioning type.
12175version_type=$version_type
12176
12177# Format of library name prefix.
12178libname_spec=$lt_libname_spec
12179
12180# List of archive names. First name is the real one, the rest are links.
12181# The last name is the one that the linker finds with -lNAME.
12182library_names_spec=$lt_library_names_spec
12183
12184# The coded name of the library, if different from the real name.
12185soname_spec=$lt_soname_spec
12186
12187# Commands used to build and install an old-style archive.
12188RANLIB=$lt_RANLIB
12189old_archive_cmds=$lt_old_archive_cmds_CXX
12190old_postinstall_cmds=$lt_old_postinstall_cmds
12191old_postuninstall_cmds=$lt_old_postuninstall_cmds
12192
12193# Create an old-style archive from a shared archive.
12194old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12195
12196# Create a temporary old-style archive to link instead of a shared archive.
12197old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12198
12199# Commands used to build and install a shared archive.
12200archive_cmds=$lt_archive_cmds_CXX
12201archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12202postinstall_cmds=$lt_postinstall_cmds
12203postuninstall_cmds=$lt_postuninstall_cmds
12204
12205# Commands used to build a loadable module (assumed same as above if empty)
12206module_cmds=$lt_module_cmds_CXX
12207module_expsym_cmds=$lt_module_expsym_cmds_CXX
12208
12209# Commands to strip libraries.
12210old_striplib=$lt_old_striplib
12211striplib=$lt_striplib
12212
12213# Dependencies to place before the objects being linked to create a
12214# shared library.
12215predep_objects=$lt_predep_objects_CXX
12216
12217# Dependencies to place after the objects being linked to create a
12218# shared library.
12219postdep_objects=$lt_postdep_objects_CXX
12220
12221# Dependencies to place before the objects being linked to create a
12222# shared library.
12223predeps=$lt_predeps_CXX
12224
12225# Dependencies to place after the objects being linked to create a
12226# shared library.
12227postdeps=$lt_postdeps_CXX
12228
12229# The library search path used internally by the compiler when linking
12230# a shared library.
12231compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12232
12233# Method to check whether dependent libraries are shared objects.
12234deplibs_check_method=$lt_deplibs_check_method
12235
12236# Command to use when deplibs_check_method == file_magic.
12237file_magic_cmd=$lt_file_magic_cmd
12238
12239# Flag that allows shared libraries with undefined symbols to be built.
12240allow_undefined_flag=$lt_allow_undefined_flag_CXX
12241
12242# Flag that forces no undefined symbols.
12243no_undefined_flag=$lt_no_undefined_flag_CXX
12244
12245# Commands used to finish a libtool library installation in a directory.
12246finish_cmds=$lt_finish_cmds
12247
12248# Same as above, but a single script fragment to be evaled but not shown.
12249finish_eval=$lt_finish_eval
12250
12251# Take the output of nm and produce a listing of raw symbols and C names.
12252global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12253
12254# Transform the output of nm in a proper C declaration
12255global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12256
12257# Transform the output of nm in a C name address pair
12258global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12259
12260# This is the shared library runtime path variable.
12261runpath_var=$runpath_var
12262
12263# This is the shared library path variable.
12264shlibpath_var=$shlibpath_var
12265
12266# Is shlibpath searched before the hard-coded library search path?
12267shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12268
12269# How to hardcode a shared library path into an executable.
12270hardcode_action=$hardcode_action_CXX
12271
12272# Whether we should hardcode library paths into libraries.
12273hardcode_into_libs=$hardcode_into_libs
12274
12275# Flag to hardcode \$libdir into a binary during linking.
12276# This must work even if \$libdir does not exist.
12277hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12278
12279# If ld is used when linking, flag to hardcode \$libdir into
12280# a binary during linking. This must work even if \$libdir does
12281# not exist.
12282hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12283
12284# Whether we need a single -rpath flag with a separated argument.
12285hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12286
12287# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12288# resulting binary.
12289hardcode_direct=$hardcode_direct_CXX
12290
12291# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12292# resulting binary.
12293hardcode_minus_L=$hardcode_minus_L_CXX
12294
12295# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12296# the resulting binary.
12297hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12298
12299# Set to yes if building a shared library automatically hardcodes DIR into the library
12300# and all subsequent libraries and executables linked against it.
12301hardcode_automatic=$hardcode_automatic_CXX
12302
12303# Variables whose values should be saved in libtool wrapper scripts and
12304# restored at relink time.
12305variables_saved_for_relink="$variables_saved_for_relink"
12306
12307# Whether libtool must link a program against all its dependency libraries.
12308link_all_deplibs=$link_all_deplibs_CXX
12309
12310# Compile-time system search path for libraries
12311sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12312
12313# Run-time system search path for libraries
12314sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12315
12316# Fix the shell variable \$srcfile for the compiler.
12317fix_srcfile_path="$fix_srcfile_path_CXX"
12318
12319# Set to yes if exported symbols are required.
12320always_export_symbols=$always_export_symbols_CXX
12321
12322# The commands to list exported symbols.
12323export_symbols_cmds=$lt_export_symbols_cmds_CXX
12324
12325# The commands to extract the exported symbol list from a shared archive.
12326extract_expsyms_cmds=$lt_extract_expsyms_cmds
12327
12328# Symbols that should not be listed in the preloaded symbols.
12329exclude_expsyms=$lt_exclude_expsyms_CXX
12330
12331# Symbols that must always be exported.
12332include_expsyms=$lt_include_expsyms_CXX
12333
12334# ### END LIBTOOL TAG CONFIG: $tagname
12335
12336__EOF__
12337
12338
12339else
12340 # If there is no Makefile yet, we rely on a make rule to execute
12341 # `config.status --recheck' to rerun these tests and create the
12342 # libtool script then.
12343 test -f Makefile && make "$ltmain"
12344fi
12345
12346
12347ac_ext=c
12348ac_cpp='$CPP $CPPFLAGS'
12349ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12350ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12351ac_compiler_gnu=$ac_cv_c_compiler_gnu
12352
12353CC=$lt_save_CC
12354LDCXX=$LD
12355LD=$lt_save_LD
12356GCC=$lt_save_GCC
12357with_gnu_ldcxx=$with_gnu_ld
12358with_gnu_ld=$lt_save_with_gnu_ld
12359lt_cv_path_LDCXX=$lt_cv_path_LD
12360lt_cv_path_LD=$lt_save_path_LD
12361lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12362lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12363
12364 else
12365 tagname=""
12366 fi
12367 ;;
12368
12369 F77)
12370 if test -n "$F77" && test "X$F77" != "Xno"; then
12371
12372ac_ext=f
12373ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12374ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12375ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12376
12377
12378archive_cmds_need_lc_F77=no
12379allow_undefined_flag_F77=
12380always_export_symbols_F77=no
12381archive_expsym_cmds_F77=
12382export_dynamic_flag_spec_F77=
12383hardcode_direct_F77=no
12384hardcode_libdir_flag_spec_F77=
12385hardcode_libdir_flag_spec_ld_F77=
12386hardcode_libdir_separator_F77=
12387hardcode_minus_L_F77=no
12388hardcode_automatic_F77=no
12389module_cmds_F77=
12390module_expsym_cmds_F77=
12391link_all_deplibs_F77=unknown
12392old_archive_cmds_F77=$old_archive_cmds
12393no_undefined_flag_F77=
12394whole_archive_flag_spec_F77=
12395enable_shared_with_static_runtimes_F77=no
12396
12397# Source file extension for f77 test sources.
12398ac_ext=f
12399
12400# Object file extension for compiled f77 test sources.
12401objext=o
12402objext_F77=$objext
12403
12404# Code to be used in simple compile tests
12405lt_simple_compile_test_code=" subroutine t\n return\n end\n"
12406
12407# Code to be used in simple link tests
12408lt_simple_link_test_code=" program t\n end\n"
12409
12410# ltmain only uses $CC for tagged configurations so make sure $CC is set.
12411
12412# If no C compiler was specified, use CC.
12413LTCC=${LTCC-"$CC"}
12414
12415# Allow CC to be a program name with arguments.
12416compiler=$CC
12417
12418
12419# Allow CC to be a program name with arguments.
12420lt_save_CC="$CC"
12421CC=${F77-"f77"}
12422compiler=$CC
12423compiler_F77=$CC
12424cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12425
12426echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12427echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12428echo "$as_me:$LINENO: result: $can_build_shared" >&5
12429echo "${ECHO_T}$can_build_shared" >&6
12430
12431echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12432echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12433test "$can_build_shared" = "no" && enable_shared=no
12434
12435# On AIX, shared libraries and static libraries use the same namespace, and
12436# are all built from PIC.
12437case "$host_os" in
12438aix3*)
12439 test "$enable_shared" = yes && enable_static=no
12440 if test -n "$RANLIB"; then
12441 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12442 postinstall_cmds='$RANLIB $lib'
12443 fi
12444 ;;
12445aix4*)
12446 test "$enable_shared" = yes && enable_static=no
12447 ;;
12448esac
12449echo "$as_me:$LINENO: result: $enable_shared" >&5
12450echo "${ECHO_T}$enable_shared" >&6
12451
12452echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12453echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12454# Make sure either enable_shared or enable_static is yes.
12455test "$enable_shared" = yes || enable_static=yes
12456echo "$as_me:$LINENO: result: $enable_static" >&5
12457echo "${ECHO_T}$enable_static" >&6
12458
12459test "$ld_shlibs_F77" = no && can_build_shared=no
12460
12461GCC_F77="$G77"
12462LD_F77="$LD"
12463
12464lt_prog_compiler_wl_F77=
12465lt_prog_compiler_pic_F77=
12466lt_prog_compiler_static_F77=
12467
12468echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12469echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12470
12471 if test "$GCC" = yes; then
12472 lt_prog_compiler_wl_F77='-Wl,'
12473 lt_prog_compiler_static_F77='-static'
12474
12475 case $host_os in
12476 aix*)
12477 # All AIX code is PIC.
12478 if test "$host_cpu" = ia64; then
12479 # AIX 5 now supports IA64 processor
12480 lt_prog_compiler_static_F77='-Bstatic'
12481 fi
12482 ;;
12483
12484 amigaos*)
12485 # FIXME: we need at least 68020 code to build shared libraries, but
12486 # adding the `-m68020' flag to GCC prevents building anything better,
12487 # like `-m68040'.
12488 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12489 ;;
12490
12491 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12492 # PIC is the default for these OSes.
12493 ;;
12494
12495 mingw* | pw32* | os2*)
12496 # This hack is so that the source file can tell whether it is being
12497 # built for inclusion in a dll (and should export symbols for example).
12498 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12499 ;;
12500
12501 darwin* | rhapsody*)
12502 # PIC is the default on this platform
12503 # Common symbols not allowed in MH_DYLIB files
12504 lt_prog_compiler_pic_F77='-fno-common'
12505 ;;
12506
12507 msdosdjgpp*)
12508 # Just because we use GCC doesn't mean we suddenly get shared libraries
12509 # on systems that don't support them.
12510 lt_prog_compiler_can_build_shared_F77=no
12511 enable_shared=no
12512 ;;
12513
12514 sysv4*MP*)
12515 if test -d /usr/nec; then
12516 lt_prog_compiler_pic_F77=-Kconform_pic
12517 fi
12518 ;;
12519
12520 hpux*)
12521 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12522 # not for PA HP-UX.
12523 case "$host_cpu" in
12524 hppa*64*|ia64*)
12525 # +Z the default
12526 ;;
12527 *)
12528 lt_prog_compiler_pic_F77='-fPIC'
12529 ;;
12530 esac
12531 ;;
12532
12533 *)
12534 lt_prog_compiler_pic_F77='-fPIC'
12535 ;;
12536 esac
12537 else
12538 # PORTME Check for flag to pass linker flags through the system compiler.
12539 case $host_os in
12540 aix*)
12541 lt_prog_compiler_wl_F77='-Wl,'
12542 if test "$host_cpu" = ia64; then
12543 # AIX 5 now supports IA64 processor
12544 lt_prog_compiler_static_F77='-Bstatic'
12545 else
12546 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12547 fi
12548 ;;
12549
12550 mingw* | pw32* | os2*)
12551 # This hack is so that the source file can tell whether it is being
12552 # built for inclusion in a dll (and should export symbols for example).
12553 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12554 ;;
12555
12556 hpux9* | hpux10* | hpux11*)
12557 lt_prog_compiler_wl_F77='-Wl,'
12558 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12559 # not for PA HP-UX.
12560 case "$host_cpu" in
12561 hppa*64*|ia64*)
12562 # +Z the default
12563 ;;
12564 *)
12565 lt_prog_compiler_pic_F77='+Z'
12566 ;;
12567 esac
12568 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12569 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
12570 ;;
12571
12572 irix5* | irix6* | nonstopux*)
12573 lt_prog_compiler_wl_F77='-Wl,'
12574 # PIC (with -KPIC) is the default.
12575 lt_prog_compiler_static_F77='-non_shared'
12576 ;;
12577
12578 newsos6)
12579 lt_prog_compiler_pic_F77='-KPIC'
12580 lt_prog_compiler_static_F77='-Bstatic'
12581 ;;
12582
12583 linux*)
12584 case $CC in
12585 icc|ecc)
12586 lt_prog_compiler_wl_F77='-Wl,'
12587 lt_prog_compiler_pic_F77='-KPIC'
12588 lt_prog_compiler_static_F77='-static'
12589 ;;
12590 ccc)
12591 lt_prog_compiler_wl_F77='-Wl,'
12592 # All Alpha code is PIC.
12593 lt_prog_compiler_static_F77='-non_shared'
12594 ;;
12595 esac
12596 ;;
12597
12598 osf3* | osf4* | osf5*)
12599 lt_prog_compiler_wl_F77='-Wl,'
12600 # All OSF/1 code is PIC.
12601 lt_prog_compiler_static_F77='-non_shared'
12602 ;;
12603
12604 sco3.2v5*)
12605 lt_prog_compiler_pic_F77='-Kpic'
12606 lt_prog_compiler_static_F77='-dn'
12607 ;;
12608
12609 solaris*)
12610 lt_prog_compiler_wl_F77='-Wl,'
12611 lt_prog_compiler_pic_F77='-KPIC'
12612 lt_prog_compiler_static_F77='-Bstatic'
12613 ;;
12614
12615 sunos4*)
12616 lt_prog_compiler_wl_F77='-Qoption ld '
12617 lt_prog_compiler_pic_F77='-PIC'
12618 lt_prog_compiler_static_F77='-Bstatic'
12619 ;;
12620
12621 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12622 lt_prog_compiler_wl_F77='-Wl,'
12623 lt_prog_compiler_pic_F77='-KPIC'
12624 lt_prog_compiler_static_F77='-Bstatic'
12625 ;;
12626
12627 sysv4*MP*)
12628 if test -d /usr/nec ;then
12629 lt_prog_compiler_pic_F77='-Kconform_pic'
12630 lt_prog_compiler_static_F77='-Bstatic'
12631 fi
12632 ;;
12633
12634 uts4*)
12635 lt_prog_compiler_pic_F77='-pic'
12636 lt_prog_compiler_static_F77='-Bstatic'
12637 ;;
12638
12639 *)
12640 lt_prog_compiler_can_build_shared_F77=no
12641 ;;
12642 esac
12643 fi
12644
12645echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
12646echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
12647
12648#
12649# Check to make sure the PIC flag actually works.
12650#
12651if test -n "$lt_prog_compiler_pic_F77"; then
12652 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
12653echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
12654if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
12655 echo $ECHO_N "(cached) $ECHO_C" >&6
12656else
12657 lt_prog_compiler_pic_works_F77=no
12658 ac_outfile=conftest.$ac_objext
12659 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12660 lt_compiler_flag="$lt_prog_compiler_pic_F77"
12661 # Insert the option either (1) after the last *FLAGS variable, or
12662 # (2) before a word containing "conftest.", or (3) at the end.
12663 # Note that $ac_compile itself does not contain backslashes and begins
12664 # with a dollar sign (not a hyphen), so the echo should work correctly.
12665 # The option is referenced via a variable to avoid confusing sed.
12666 lt_compile=`echo "$ac_compile" | $SED \
12667 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12668 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12669 -e 's:$: $lt_compiler_flag:'`
John Criswell33a911a2003-11-25 20:36:46 +000012670 (eval echo "\"\$as_me:12670: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000012671 (eval "$lt_compile" 2>conftest.err)
12672 ac_status=$?
12673 cat conftest.err >&5
John Criswell33a911a2003-11-25 20:36:46 +000012674 echo "$as_me:12674: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000012675 if (exit $ac_status) && test -s "$ac_outfile"; then
12676 # The compiler can only warn and ignore the option if not recognized
12677 # So say no if there are warnings
12678 if test ! -s conftest.err; then
12679 lt_prog_compiler_pic_works_F77=yes
12680 fi
12681 fi
12682 $rm conftest*
12683
12684fi
12685echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
12686echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
12687
12688if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
12689 case $lt_prog_compiler_pic_F77 in
12690 "" | " "*) ;;
12691 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
12692 esac
12693else
12694 lt_prog_compiler_pic_F77=
12695 lt_prog_compiler_can_build_shared_F77=no
12696fi
12697
12698fi
12699case "$host_os" in
12700 # For platforms which do not support PIC, -DPIC is meaningless:
12701 *djgpp*)
12702 lt_prog_compiler_pic_F77=
12703 ;;
12704 *)
12705 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
12706 ;;
12707esac
12708
12709echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12710echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12711if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
12712 echo $ECHO_N "(cached) $ECHO_C" >&6
12713else
12714 lt_cv_prog_compiler_c_o_F77=no
12715 $rm -r conftest 2>/dev/null
12716 mkdir conftest
12717 cd conftest
12718 mkdir out
12719 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12720
12721 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
12722 # that will create temporary files in the current directory regardless of
12723 # the output directory. Thus, making CWD read-only will cause this test
12724 # to fail, enabling locking or at least warning the user not to do parallel
12725 # builds.
12726 chmod -w .
12727
12728 lt_compiler_flag="-o out/conftest2.$ac_objext"
12729 # Insert the option either (1) after the last *FLAGS variable, or
12730 # (2) before a word containing "conftest.", or (3) at the end.
12731 # Note that $ac_compile itself does not contain backslashes and begins
12732 # with a dollar sign (not a hyphen), so the echo should work correctly.
12733 lt_compile=`echo "$ac_compile" | $SED \
12734 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12735 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12736 -e 's:$: $lt_compiler_flag:'`
John Criswell33a911a2003-11-25 20:36:46 +000012737 (eval echo "\"\$as_me:12737: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000012738 (eval "$lt_compile" 2>out/conftest.err)
12739 ac_status=$?
12740 cat out/conftest.err >&5
John Criswell33a911a2003-11-25 20:36:46 +000012741 echo "$as_me:12741: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000012742 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12743 then
12744 # The compiler can only warn and ignore the option if not recognized
12745 # So say no if there are warnings
12746 if test ! -s out/conftest.err; then
12747 lt_cv_prog_compiler_c_o_F77=yes
12748 fi
12749 fi
12750 chmod u+w .
12751 $rm conftest* out/*
12752 rmdir out
12753 cd ..
12754 rmdir conftest
12755 $rm conftest*
12756
12757fi
12758echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
12759echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
12760
12761
12762hard_links="nottested"
12763if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
12764 # do not overwrite the value of need_locks provided by the user
12765 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12766echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12767 hard_links=yes
12768 $rm conftest*
12769 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12770 touch conftest.a
12771 ln conftest.a conftest.b 2>&5 || hard_links=no
12772 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12773 echo "$as_me:$LINENO: result: $hard_links" >&5
12774echo "${ECHO_T}$hard_links" >&6
12775 if test "$hard_links" = no; then
12776 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12777echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12778 need_locks=warn
12779 fi
12780else
12781 need_locks=no
12782fi
12783
12784echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12785echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12786
12787 runpath_var=
12788 allow_undefined_flag_F77=
12789 enable_shared_with_static_runtimes_F77=no
12790 archive_cmds_F77=
12791 archive_expsym_cmds_F77=
12792 old_archive_From_new_cmds_F77=
12793 old_archive_from_expsyms_cmds_F77=
12794 export_dynamic_flag_spec_F77=
12795 whole_archive_flag_spec_F77=
12796 thread_safe_flag_spec_F77=
12797 hardcode_libdir_flag_spec_F77=
12798 hardcode_libdir_flag_spec_ld_F77=
12799 hardcode_libdir_separator_F77=
12800 hardcode_direct_F77=no
12801 hardcode_minus_L_F77=no
12802 hardcode_shlibpath_var_F77=unsupported
12803 link_all_deplibs_F77=unknown
12804 hardcode_automatic_F77=no
12805 module_cmds_F77=
12806 module_expsym_cmds_F77=
12807 always_export_symbols_F77=no
12808 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12809 # include_expsyms should be a list of space-separated symbols to be *always*
12810 # included in the symbol list
12811 include_expsyms_F77=
12812 # exclude_expsyms can be an extended regexp of symbols to exclude
12813 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12814 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12815 # as well as any symbol that contains `d'.
12816 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
12817 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12818 # platforms (ab)use it in PIC code, but their linkers get confused if
12819 # the symbol is explicitly referenced. Since portable code cannot
12820 # rely on this symbol name, it's probably fine to never include it in
12821 # preloaded symbol tables.
12822 extract_expsyms_cmds=
12823
12824 case $host_os in
12825 cygwin* | mingw* | pw32*)
12826 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12827 # When not using gcc, we currently assume that we are using
12828 # Microsoft Visual C++.
12829 if test "$GCC" != yes; then
12830 with_gnu_ld=no
12831 fi
12832 ;;
12833 openbsd*)
12834 with_gnu_ld=no
12835 ;;
12836 esac
12837
12838 ld_shlibs_F77=yes
12839 if test "$with_gnu_ld" = yes; then
12840 # If archive_cmds runs LD, not CC, wlarc should be empty
12841 wlarc='${wl}'
12842
12843 # See if GNU ld supports shared libraries.
12844 case $host_os in
12845 aix3* | aix4* | aix5*)
12846 # On AIX/PPC, the GNU linker is very broken
12847 if test "$host_cpu" != ia64; then
12848 ld_shlibs_F77=no
12849 cat <<EOF 1>&2
12850
12851*** Warning: the GNU linker, at least up to release 2.9.1, is reported
12852*** to be unable to reliably create shared libraries on AIX.
12853*** Therefore, libtool is disabling shared libraries support. If you
12854*** really care for shared libraries, you may want to modify your PATH
12855*** so that a non-GNU linker is found, and then restart.
12856
12857EOF
12858 fi
12859 ;;
12860
12861 amigaos*)
12862 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)'
12863 hardcode_libdir_flag_spec_F77='-L$libdir'
12864 hardcode_minus_L_F77=yes
12865
12866 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12867 # that the semantics of dynamic libraries on AmigaOS, at least up
12868 # to version 4, is to share data among multiple programs linked
12869 # with the same dynamic library. Since this doesn't match the
12870 # behavior of shared libraries on other platforms, we can't use
12871 # them.
12872 ld_shlibs_F77=no
12873 ;;
12874
12875 beos*)
12876 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12877 allow_undefined_flag_F77=unsupported
12878 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12879 # support --undefined. This deserves some investigation. FIXME
12880 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12881 else
12882 ld_shlibs_F77=no
12883 fi
12884 ;;
12885
12886 cygwin* | mingw* | pw32*)
12887 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
12888 # as there is no search path for DLLs.
12889 hardcode_libdir_flag_spec_F77='-L$libdir'
12890 allow_undefined_flag_F77=unsupported
12891 always_export_symbols_F77=no
12892 enable_shared_with_static_runtimes_F77=yes
12893 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12894
12895 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12896 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12897 # If the export-symbols file already is a .def file (1st line
12898 # is EXPORTS), use it as is; otherwise, prepend...
12899 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12900 cp $export_symbols $output_objdir/$soname.def;
12901 else
12902 echo EXPORTS > $output_objdir/$soname.def;
12903 cat $export_symbols >> $output_objdir/$soname.def;
12904 fi~
12905 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12906 else
12907 ld_shlibs=no
12908 fi
12909 ;;
12910
12911 netbsd*)
12912 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12913 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12914 wlarc=
12915 else
12916 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12917 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12918 fi
12919 ;;
12920
12921 solaris* | sysv5*)
12922 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12923 ld_shlibs_F77=no
12924 cat <<EOF 1>&2
12925
12926*** Warning: The releases 2.8.* of the GNU linker cannot reliably
12927*** create shared libraries on Solaris systems. Therefore, libtool
12928*** is disabling shared libraries support. We urge you to upgrade GNU
12929*** binutils to release 2.9.1 or newer. Another option is to modify
12930*** your PATH or compiler configuration so that the native linker is
12931*** used, and then restart.
12932
12933EOF
12934 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12935 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12936 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12937 else
12938 ld_shlibs_F77=no
12939 fi
12940 ;;
12941
12942 sunos4*)
12943 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12944 wlarc=
12945 hardcode_direct_F77=yes
12946 hardcode_shlibpath_var_F77=no
12947 ;;
12948
12949 *)
12950 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12951 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12952 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12953 else
12954 ld_shlibs_F77=no
12955 fi
12956 ;;
12957 esac
12958
12959 if test "$ld_shlibs_F77" = yes; then
12960 runpath_var=LD_RUN_PATH
12961 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
12962 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
12963 # ancient GNU ld didn't support --whole-archive et. al.
12964 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
12965 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12966 else
12967 whole_archive_flag_spec_F77=
12968 fi
12969 fi
12970 else
12971 # PORTME fill in a description of your system's linker (not GNU ld)
12972 case $host_os in
12973 aix3*)
12974 allow_undefined_flag_F77=unsupported
12975 always_export_symbols_F77=yes
12976 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'
12977 # Note: this linker hardcodes the directories in LIBPATH if there
12978 # are no directories specified by -L.
12979 hardcode_minus_L_F77=yes
12980 if test "$GCC" = yes && test -z "$link_static_flag"; then
12981 # Neither direct hardcoding nor static linking is supported with a
12982 # broken collect2.
12983 hardcode_direct_F77=unsupported
12984 fi
12985 ;;
12986
12987 aix4* | aix5*)
12988 if test "$host_cpu" = ia64; then
12989 # On IA64, the linker does run time linking by default, so we don't
12990 # have to do anything special.
12991 aix_use_runtimelinking=no
12992 exp_sym_flag='-Bexport'
12993 no_entry_flag=""
12994 else
12995 # If we're using GNU nm, then we don't want the "-C" option.
12996 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12997 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12998 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'
12999 else
13000 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'
13001 fi
13002 aix_use_runtimelinking=no
13003
13004 # Test if we are trying to use run time linking or normal
13005 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13006 # need to do runtime linking.
13007 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13008 for ld_flag in $LDFLAGS; do
13009 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13010 aix_use_runtimelinking=yes
13011 break
13012 fi
13013 done
13014 esac
13015
13016 exp_sym_flag='-bexport'
13017 no_entry_flag='-bnoentry'
13018 fi
13019
13020 # When large executables or shared objects are built, AIX ld can
13021 # have problems creating the table of contents. If linking a library
13022 # or program results in "error TOC overflow" add -mminimal-toc to
13023 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13024 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13025
13026 archive_cmds_F77=''
13027 hardcode_direct_F77=yes
13028 hardcode_libdir_separator_F77=':'
13029 link_all_deplibs_F77=yes
13030
13031 if test "$GCC" = yes; then
13032 case $host_os in aix4.012|aix4.012.*)
13033 # We only want to do this on AIX 4.2 and lower, the check
13034 # below for broken collect2 doesn't work under 4.3+
13035 collect2name=`${CC} -print-prog-name=collect2`
13036 if test -f "$collect2name" && \
13037 strings "$collect2name" | grep resolve_lib_name >/dev/null
13038 then
13039 # We have reworked collect2
13040 hardcode_direct_F77=yes
13041 else
13042 # We have old collect2
13043 hardcode_direct_F77=unsupported
13044 # It fails to find uninstalled libraries when the uninstalled
13045 # path is not listed in the libpath. Setting hardcode_minus_L
13046 # to unsupported forces relinking
13047 hardcode_minus_L_F77=yes
13048 hardcode_libdir_flag_spec_F77='-L$libdir'
13049 hardcode_libdir_separator_F77=
13050 fi
13051 esac
13052 shared_flag='-shared'
13053 else
13054 # not using gcc
13055 if test "$host_cpu" = ia64; then
13056 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13057 # chokes on -Wl,-G. The following line is correct:
13058 shared_flag='-G'
13059 else
13060 if test "$aix_use_runtimelinking" = yes; then
13061 shared_flag='${wl}-G'
13062 else
13063 shared_flag='${wl}-bM:SRE'
13064 fi
13065 fi
13066 fi
13067
13068 # It seems that -bexpall does not export symbols beginning with
13069 # underscore (_), so it is better to generate a list of symbols to export.
13070 always_export_symbols_F77=yes
13071 if test "$aix_use_runtimelinking" = yes; then
13072 # Warning - without using the other runtime loading flags (-brtl),
13073 # -berok will link without error, but may produce a broken library.
13074 allow_undefined_flag_F77='-berok'
13075 # Determine the default libpath from the value encoded in an empty executable.
13076 cat >conftest.$ac_ext <<_ACEOF
13077 program main
13078
13079 end
13080_ACEOF
13081rm -f conftest.$ac_objext conftest$ac_exeext
13082if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13083 (eval $ac_link) 2>&5
13084 ac_status=$?
13085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13086 (exit $ac_status); } &&
13087 { ac_try='test -s conftest$ac_exeext'
13088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13089 (eval $ac_try) 2>&5
13090 ac_status=$?
13091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13092 (exit $ac_status); }; }; then
13093
13094aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13095}'`
13096# Check for a 64-bit object if we didn't find anything.
13097if 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; }
13098}'`; fi
13099else
13100 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013101sed 's/^/| /' conftest.$ac_ext >&5
13102
John Criswell47fdd832003-07-14 16:52:07 +000013103fi
13104rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13105if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13106
13107 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13108 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"
13109 else
13110 if test "$host_cpu" = ia64; then
13111 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13112 allow_undefined_flag_F77="-z nodefs"
13113 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"
13114 else
13115 # Determine the default libpath from the value encoded in an empty executable.
13116 cat >conftest.$ac_ext <<_ACEOF
13117 program main
13118
13119 end
13120_ACEOF
13121rm -f conftest.$ac_objext conftest$ac_exeext
13122if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13123 (eval $ac_link) 2>&5
13124 ac_status=$?
13125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13126 (exit $ac_status); } &&
13127 { ac_try='test -s conftest$ac_exeext'
13128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13129 (eval $ac_try) 2>&5
13130 ac_status=$?
13131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13132 (exit $ac_status); }; }; then
13133
13134aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13135}'`
13136# Check for a 64-bit object if we didn't find anything.
13137if 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; }
13138}'`; fi
13139else
13140 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013141sed 's/^/| /' conftest.$ac_ext >&5
13142
John Criswell47fdd832003-07-14 16:52:07 +000013143fi
13144rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13145if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13146
13147 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13148 # Warning - without using the other run time loading flags,
13149 # -berok will link without error, but may produce a broken library.
13150 no_undefined_flag_F77=' ${wl}-bernotok'
13151 allow_undefined_flag_F77=' ${wl}-berok'
13152 # -bexpall does not export symbols beginning with underscore (_)
13153 always_export_symbols_F77=yes
13154 # Exported symbols can be pulled into shared objects from archives
13155 whole_archive_flag_spec_F77=' '
13156 archive_cmds_need_lc_F77=yes
13157 # This is similar to how AIX traditionally builds it's shared libraries.
13158 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'
13159 fi
13160 fi
13161 ;;
13162
13163 amigaos*)
13164 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)'
13165 hardcode_libdir_flag_spec_F77='-L$libdir'
13166 hardcode_minus_L_F77=yes
13167 # see comment about different semantics on the GNU ld section
13168 ld_shlibs_F77=no
13169 ;;
13170
13171 bsdi4*)
13172 export_dynamic_flag_spec_F77=-rdynamic
13173 ;;
13174
13175 cygwin* | mingw* | pw32*)
13176 # When not using gcc, we currently assume that we are using
13177 # Microsoft Visual C++.
13178 # hardcode_libdir_flag_spec is actually meaningless, as there is
13179 # no search path for DLLs.
13180 hardcode_libdir_flag_spec_F77=' '
13181 allow_undefined_flag_F77=unsupported
13182 # Tell ltmain to make .lib files, not .a files.
13183 libext=lib
13184 # Tell ltmain to make .dll files, not .so files.
13185 shrext=".dll"
13186 # FIXME: Setting linknames here is a bad hack.
13187 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13188 # The linker will automatically build a .lib file if we build a DLL.
13189 old_archive_From_new_cmds_F77='true'
13190 # FIXME: Should let the user specify the lib program.
13191 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13192 fix_srcfile_path='`cygpath -w "$srcfile"`'
13193 enable_shared_with_static_runtimes_F77=yes
13194 ;;
13195
13196 darwin* | rhapsody*)
13197 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13198 archive_cmds_need_lc_F77=no
13199 case "$host_os" in
13200 rhapsody* | darwin1.[012])
13201 allow_undefined_flag_F77='-undefined suppress'
13202 ;;
13203 *) # Darwin 1.3 on
13204 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13205 ;;
13206 esac
13207 # FIXME: Relying on posixy $() will cause problems for
13208 # cross-compilation, but unfortunately the echo tests do not
13209 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
13210 # `"' quotes if we put them in here... so don't!
13211 lt_int_apple_cc_single_mod=no
13212 output_verbose_link_cmd='echo'
13213 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13214 lt_int_apple_cc_single_mod=yes
13215 fi
13216 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13217 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13218 else
13219 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'
13220 fi
13221 module_cmds_F77='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
13222 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13223 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13224 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}'
13225 else
13226 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}'
13227 fi
13228 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}'
13229 hardcode_direct_F77=no
13230 hardcode_automatic_F77=yes
13231 hardcode_shlibpath_var_F77=unsupported
13232 whole_archive_flag_spec_F77='-all_load $convenience'
13233 link_all_deplibs_F77=yes
13234 fi
13235 ;;
13236
13237 dgux*)
13238 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13239 hardcode_libdir_flag_spec_F77='-L$libdir'
13240 hardcode_shlibpath_var_F77=no
13241 ;;
13242
13243 freebsd1*)
13244 ld_shlibs_F77=no
13245 ;;
13246
13247 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13248 # support. Future versions do this automatically, but an explicit c++rt0.o
13249 # does not break anything, and helps significantly (at the cost of a little
13250 # extra space).
13251 freebsd2.2*)
13252 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13253 hardcode_libdir_flag_spec_F77='-R$libdir'
13254 hardcode_direct_F77=yes
13255 hardcode_shlibpath_var_F77=no
13256 ;;
13257
13258 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13259 freebsd2*)
13260 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13261 hardcode_direct_F77=yes
13262 hardcode_minus_L_F77=yes
13263 hardcode_shlibpath_var_F77=no
13264 ;;
13265
13266 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13267 freebsd*)
13268 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13269 hardcode_libdir_flag_spec_F77='-R$libdir'
13270 hardcode_direct_F77=yes
13271 hardcode_shlibpath_var_F77=no
13272 ;;
13273
13274 hpux9*)
13275 if test "$GCC" = yes; then
13276 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'
13277 else
13278 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'
13279 fi
13280 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13281 hardcode_libdir_separator_F77=:
13282 hardcode_direct_F77=yes
13283
13284 # hardcode_minus_L: Not really in the search PATH,
13285 # but as the default location of the library.
13286 hardcode_minus_L_F77=yes
13287 export_dynamic_flag_spec_F77='${wl}-E'
13288 ;;
13289
13290 hpux10* | hpux11*)
13291 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13292 case "$host_cpu" in
13293 hppa*64*|ia64*)
13294 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13295 ;;
13296 *)
13297 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13298 ;;
13299 esac
13300 else
13301 case "$host_cpu" in
13302 hppa*64*|ia64*)
13303 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13304 ;;
13305 *)
13306 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13307 ;;
13308 esac
13309 fi
13310 if test "$with_gnu_ld" = no; then
13311 case "$host_cpu" in
13312 hppa*64*)
13313 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13314 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13315 hardcode_libdir_separator_F77=:
13316 hardcode_direct_F77=no
13317 hardcode_shlibpath_var_F77=no
13318 ;;
13319 ia64*)
13320 hardcode_libdir_flag_spec_F77='-L$libdir'
13321 hardcode_direct_F77=no
13322 hardcode_shlibpath_var_F77=no
13323
13324 # hardcode_minus_L: Not really in the search PATH,
13325 # but as the default location of the library.
13326 hardcode_minus_L_F77=yes
13327 ;;
13328 *)
13329 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13330 hardcode_libdir_separator_F77=:
13331 hardcode_direct_F77=yes
13332 export_dynamic_flag_spec_F77='${wl}-E'
13333
13334 # hardcode_minus_L: Not really in the search PATH,
13335 # but as the default location of the library.
13336 hardcode_minus_L_F77=yes
13337 ;;
13338 esac
13339 fi
13340 ;;
13341
13342 irix5* | irix6* | nonstopux*)
13343 if test "$GCC" = yes; then
13344 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'
13345 else
13346 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'
13347 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13348 fi
13349 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13350 hardcode_libdir_separator_F77=:
13351 link_all_deplibs_F77=yes
13352 ;;
13353
13354 netbsd*)
13355 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13356 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13357 else
13358 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13359 fi
13360 hardcode_libdir_flag_spec_F77='-R$libdir'
13361 hardcode_direct_F77=yes
13362 hardcode_shlibpath_var_F77=no
13363 ;;
13364
13365 newsos6)
13366 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13367 hardcode_direct_F77=yes
13368 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13369 hardcode_libdir_separator_F77=:
13370 hardcode_shlibpath_var_F77=no
13371 ;;
13372
13373 openbsd*)
13374 hardcode_direct_F77=yes
13375 hardcode_shlibpath_var_F77=no
13376 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13377 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13378 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13379 export_dynamic_flag_spec_F77='${wl}-E'
13380 else
13381 case $host_os in
13382 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13383 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13384 hardcode_libdir_flag_spec_F77='-R$libdir'
13385 ;;
13386 *)
13387 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13388 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13389 ;;
13390 esac
13391 fi
13392 ;;
13393
13394 os2*)
13395 hardcode_libdir_flag_spec_F77='-L$libdir'
13396 hardcode_minus_L_F77=yes
13397 allow_undefined_flag_F77=unsupported
13398 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'
13399 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13400 ;;
13401
13402 osf3*)
13403 if test "$GCC" = yes; then
13404 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13405 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'
13406 else
13407 allow_undefined_flag_F77=' -expect_unresolved \*'
13408 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'
13409 fi
13410 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13411 hardcode_libdir_separator_F77=:
13412 ;;
13413
13414 osf4* | osf5*) # as osf3* with the addition of -msym flag
13415 if test "$GCC" = yes; then
13416 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13417 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'
13418 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13419 else
13420 allow_undefined_flag_F77=' -expect_unresolved \*'
13421 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'
13422 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~
13423 $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'
13424
13425 # Both c and cxx compiler support -rpath directly
13426 hardcode_libdir_flag_spec_F77='-rpath $libdir'
13427 fi
13428 hardcode_libdir_separator_F77=:
13429 ;;
13430
13431 sco3.2v5*)
13432 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13433 hardcode_shlibpath_var_F77=no
13434 export_dynamic_flag_spec_F77='${wl}-Bexport'
13435 runpath_var=LD_RUN_PATH
13436 hardcode_runpath_var=yes
13437 ;;
13438
13439 solaris*)
13440 no_undefined_flag_F77=' -z text'
13441 if test "$GCC" = yes; then
13442 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13443 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13444 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13445 else
13446 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13447 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13448 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13449 fi
13450 hardcode_libdir_flag_spec_F77='-R$libdir'
13451 hardcode_shlibpath_var_F77=no
13452 case $host_os in
13453 solaris2.[0-5] | solaris2.[0-5].*) ;;
13454 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13455 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13456 esac
13457 link_all_deplibs_F77=yes
13458 ;;
13459
13460 sunos4*)
13461 if test "x$host_vendor" = xsequent; then
13462 # Use $CC to link under sequent, because it throws in some extra .o
13463 # files that make .init and .fini sections work.
13464 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13465 else
13466 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13467 fi
13468 hardcode_libdir_flag_spec_F77='-L$libdir'
13469 hardcode_direct_F77=yes
13470 hardcode_minus_L_F77=yes
13471 hardcode_shlibpath_var_F77=no
13472 ;;
13473
13474 sysv4)
13475 case $host_vendor in
13476 sni)
13477 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13478 hardcode_direct_F77=yes # is this really true???
13479 ;;
13480 siemens)
13481 ## LD is ld it makes a PLAMLIB
13482 ## CC just makes a GrossModule.
13483 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13484 reload_cmds_F77='$CC -r -o $output$reload_objs'
13485 hardcode_direct_F77=no
13486 ;;
13487 motorola)
13488 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13489 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13490 ;;
13491 esac
13492 runpath_var='LD_RUN_PATH'
13493 hardcode_shlibpath_var_F77=no
13494 ;;
13495
13496 sysv4.3*)
13497 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13498 hardcode_shlibpath_var_F77=no
13499 export_dynamic_flag_spec_F77='-Bexport'
13500 ;;
13501
13502 sysv4*MP*)
13503 if test -d /usr/nec; then
13504 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13505 hardcode_shlibpath_var_F77=no
13506 runpath_var=LD_RUN_PATH
13507 hardcode_runpath_var=yes
13508 ld_shlibs_F77=yes
13509 fi
13510 ;;
13511
13512 sysv4.2uw2*)
13513 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13514 hardcode_direct_F77=yes
13515 hardcode_minus_L_F77=no
13516 hardcode_shlibpath_var_F77=no
13517 hardcode_runpath_var=yes
13518 runpath_var=LD_RUN_PATH
13519 ;;
13520
13521 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
13522 no_undefined_flag_F77='${wl}-z ${wl}text'
13523 if test "$GCC" = yes; then
13524 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13525 else
13526 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13527 fi
13528 runpath_var='LD_RUN_PATH'
13529 hardcode_shlibpath_var_F77=no
13530 ;;
13531
13532 sysv5*)
13533 no_undefined_flag_F77=' -z text'
13534 # $CC -shared without GNU ld will not create a library from C++
13535 # object files and a static libstdc++, better avoid it by now
13536 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13537 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13538 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13539 hardcode_libdir_flag_spec_F77=
13540 hardcode_shlibpath_var_F77=no
13541 runpath_var='LD_RUN_PATH'
13542 ;;
13543
13544 uts4*)
13545 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13546 hardcode_libdir_flag_spec_F77='-L$libdir'
13547 hardcode_shlibpath_var_F77=no
13548 ;;
13549
13550 *)
13551 ld_shlibs_F77=no
13552 ;;
13553 esac
13554 fi
13555
13556echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
13557echo "${ECHO_T}$ld_shlibs_F77" >&6
13558test "$ld_shlibs_F77" = no && can_build_shared=no
13559
13560variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13561if test "$GCC" = yes; then
13562 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13563fi
13564
13565#
13566# Do we need to explicitly link libc?
13567#
13568case "x$archive_cmds_need_lc_F77" in
13569x|xyes)
13570 # Assume -lc should be added
13571 archive_cmds_need_lc_F77=yes
13572
13573 if test "$enable_shared" = yes && test "$GCC" = yes; then
13574 case $archive_cmds_F77 in
13575 *'~'*)
13576 # FIXME: we may have to deal with multi-command sequences.
13577 ;;
13578 '$CC '*)
13579 # Test whether the compiler implicitly links with -lc since on some
13580 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13581 # to ld, don't add -lc before -lgcc.
13582 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13583echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13584 $rm conftest*
13585 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13586
13587 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13588 (eval $ac_compile) 2>&5
13589 ac_status=$?
13590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13591 (exit $ac_status); } 2>conftest.err; then
13592 soname=conftest
13593 lib=conftest
13594 libobjs=conftest.$ac_objext
13595 deplibs=
13596 wl=$lt_prog_compiler_wl_F77
13597 compiler_flags=-v
13598 linker_flags=-v
13599 verstring=
13600 output_objdir=.
13601 libname=conftest
13602 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
13603 allow_undefined_flag_F77=
13604 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13605 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13606 ac_status=$?
13607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13608 (exit $ac_status); }
13609 then
13610 archive_cmds_need_lc_F77=no
13611 else
13612 archive_cmds_need_lc_F77=yes
13613 fi
13614 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
13615 else
13616 cat conftest.err 1>&5
13617 fi
13618 $rm conftest*
13619 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
13620echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
13621 ;;
13622 esac
13623 fi
13624 ;;
13625esac
13626
13627echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13628echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13629hardcode_action_F77=
13630if test -n "$hardcode_libdir_flag_spec_F77" || \
13631 test -n "$runpath_var F77" || \
13632 test "X$hardcode_automatic_F77"="Xyes" ; then
13633
13634 # We can hardcode non-existant directories.
13635 if test "$hardcode_direct_F77" != no &&
13636 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13637 # have to relink, otherwise we might link with an installed library
13638 # when we should be linking with a yet-to-be-installed one
13639 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
13640 test "$hardcode_minus_L_F77" != no; then
13641 # Linking always hardcodes the temporary library directory.
13642 hardcode_action_F77=relink
13643 else
13644 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13645 hardcode_action_F77=immediate
13646 fi
13647else
13648 # We cannot hardcode anything, or else we can only hardcode existing
13649 # directories.
13650 hardcode_action_F77=unsupported
13651fi
13652echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
13653echo "${ECHO_T}$hardcode_action_F77" >&6
13654
13655if test "$hardcode_action_F77" = relink; then
13656 # Fast installation is not supported
13657 enable_fast_install=no
13658elif test "$shlibpath_overrides_runpath" = yes ||
13659 test "$enable_shared" = no; then
13660 # Fast installation is not necessary
13661 enable_fast_install=needless
13662fi
13663
13664striplib=
13665old_striplib=
13666echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13667echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13668if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13669 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13670 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13671 echo "$as_me:$LINENO: result: yes" >&5
13672echo "${ECHO_T}yes" >&6
13673else
13674# FIXME - insert some real tests, host_os isn't really good enough
13675 case $host_os in
13676 darwin*)
13677 if test -n "$STRIP" ; then
13678 striplib="$STRIP -x"
13679 echo "$as_me:$LINENO: result: yes" >&5
13680echo "${ECHO_T}yes" >&6
13681 else
13682 echo "$as_me:$LINENO: result: no" >&5
13683echo "${ECHO_T}no" >&6
13684fi
13685 ;;
13686 *)
13687 echo "$as_me:$LINENO: result: no" >&5
13688echo "${ECHO_T}no" >&6
13689 ;;
13690 esac
13691fi
13692
13693echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13694echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13695library_names_spec=
13696libname_spec='lib$name'
13697soname_spec=
13698shrext=".so"
13699postinstall_cmds=
13700postuninstall_cmds=
13701finish_cmds=
13702finish_eval=
13703shlibpath_var=
13704shlibpath_overrides_runpath=unknown
13705version_type=none
13706dynamic_linker="$host_os ld.so"
13707sys_lib_dlsearch_path_spec="/lib /usr/lib"
13708if test "$GCC" = yes; then
13709 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13710 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13711 # if the path contains ";" then we assume it to be the separator
13712 # otherwise default to the standard path separator (i.e. ":") - it is
13713 # assumed that no part of a normal pathname contains ";" but that should
13714 # okay in the real world where ";" in dirpaths is itself problematic.
13715 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13716 else
13717 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13718 fi
13719else
13720 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13721fi
13722need_lib_prefix=unknown
13723hardcode_into_libs=no
13724
13725# when you set need_version to no, make sure it does not cause -set_version
13726# flags to be left without arguments
13727need_version=unknown
13728
13729case $host_os in
13730aix3*)
13731 version_type=linux
13732 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13733 shlibpath_var=LIBPATH
13734
13735 # AIX 3 has no versioning support, so we append a major version to the name.
13736 soname_spec='${libname}${release}${shared_ext}$major'
13737 ;;
13738
13739aix4* | aix5*)
13740 version_type=linux
13741 need_lib_prefix=no
13742 need_version=no
13743 hardcode_into_libs=yes
13744 if test "$host_cpu" = ia64; then
13745 # AIX 5 supports IA64
13746 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13747 shlibpath_var=LD_LIBRARY_PATH
13748 else
13749 # With GCC up to 2.95.x, collect2 would create an import file
13750 # for dependence libraries. The import file would start with
13751 # the line `#! .'. This would cause the generated library to
13752 # depend on `.', always an invalid library. This was fixed in
13753 # development snapshots of GCC prior to 3.0.
13754 case $host_os in
13755 aix4 | aix4.[01] | aix4.[01].*)
13756 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13757 echo ' yes '
13758 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13759 :
13760 else
13761 can_build_shared=no
13762 fi
13763 ;;
13764 esac
13765 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13766 # soname into executable. Probably we can add versioning support to
13767 # collect2, so additional links can be useful in future.
13768 if test "$aix_use_runtimelinking" = yes; then
13769 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13770 # instead of lib<name>.a to let people know that these are not
13771 # typical AIX shared libraries.
13772 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13773 else
13774 # We preserve .a as extension for shared libraries through AIX4.2
13775 # and later when we are not doing run time linking.
13776 library_names_spec='${libname}${release}.a $libname.a'
13777 soname_spec='${libname}${release}${shared_ext}$major'
13778 fi
13779 shlibpath_var=LIBPATH
13780 fi
13781 ;;
13782
13783amigaos*)
13784 library_names_spec='$libname.ixlibrary $libname.a'
13785 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13786 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'
13787 ;;
13788
13789beos*)
13790 library_names_spec='${libname}${shared_ext}'
13791 dynamic_linker="$host_os ld.so"
13792 shlibpath_var=LIBRARY_PATH
13793 ;;
13794
13795bsdi4*)
13796 version_type=linux
13797 need_version=no
13798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13799 soname_spec='${libname}${release}${shared_ext}$major'
13800 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13801 shlibpath_var=LD_LIBRARY_PATH
13802 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13803 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13804 # the default ld.so.conf also contains /usr/contrib/lib and
13805 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13806 # libtool to hard-code these into programs
13807 ;;
13808
13809cygwin* | mingw* | pw32*)
13810 version_type=windows
13811 shrext=".dll"
13812 need_version=no
13813 need_lib_prefix=no
13814
13815 case $GCC,$host_os in
13816 yes,cygwin* | yes,mingw* | yes,pw32*)
13817 library_names_spec='$libname.dll.a'
13818 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13819 postinstall_cmds='base_file=`basename \${file}`~
13820 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13821 dldir=$destdir/`dirname \$dlpath`~
13822 test -d \$dldir || mkdir -p \$dldir~
13823 $install_prog $dir/$dlname \$dldir/$dlname'
13824 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13825 dlpath=$dir/\$dldll~
13826 $rm \$dlpath'
13827 shlibpath_overrides_runpath=yes
13828
13829 case $host_os in
13830 cygwin*)
13831 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13832 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13833 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
13834 ;;
13835 mingw*)
13836 # MinGW DLLs use traditional 'lib' prefix
13837 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13838 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13839 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13840 # It is most probably a Windows format PATH printed by
13841 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13842 # path with ; separators, and with drive letters. We can handle the
13843 # drive letters (cygwin fileutils understands them), so leave them,
13844 # especially as we might pass files found there to a mingw objdump,
13845 # which wouldn't understand a cygwinified path. Ahh.
13846 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13847 else
13848 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13849 fi
13850 ;;
13851 pw32*)
13852 # pw32 DLLs use 'pw' prefix rather than 'lib'
13853 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13854 ;;
13855 esac
13856 ;;
13857
13858 *)
13859 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13860 ;;
13861 esac
13862 dynamic_linker='Win32 ld.exe'
13863 # FIXME: first we should search . and the directory the executable is in
13864 shlibpath_var=PATH
13865 ;;
13866
13867darwin* | rhapsody*)
13868 dynamic_linker="$host_os dyld"
13869 version_type=darwin
13870 need_lib_prefix=no
13871 need_version=no
13872 # FIXME: Relying on posixy $() will cause problems for
13873 # cross-compilation, but unfortunately the echo tests do not
13874 # yet detect zsh echo's removal of \ escapes.
13875 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13876 soname_spec='${libname}${release}${major}$shared_ext'
13877 shlibpath_overrides_runpath=yes
13878 shlibpath_var=DYLD_LIBRARY_PATH
13879 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
13880 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13881 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13882 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"`
13883 fi
13884 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13885 ;;
13886
13887dgux*)
13888 version_type=linux
13889 need_lib_prefix=no
13890 need_version=no
13891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13892 soname_spec='${libname}${release}${shared_ext}$major'
13893 shlibpath_var=LD_LIBRARY_PATH
13894 ;;
13895
13896freebsd1*)
13897 dynamic_linker=no
13898 ;;
13899
13900freebsd*)
13901 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13902 version_type=freebsd-$objformat
13903 case $version_type in
13904 freebsd-elf*)
13905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13906 need_version=no
13907 need_lib_prefix=no
13908 ;;
13909 freebsd-*)
13910 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13911 need_version=yes
13912 ;;
13913 esac
13914 shlibpath_var=LD_LIBRARY_PATH
13915 case $host_os in
13916 freebsd2*)
13917 shlibpath_overrides_runpath=yes
13918 ;;
13919 freebsd3.01* | freebsdelf3.01*)
13920 shlibpath_overrides_runpath=yes
13921 hardcode_into_libs=yes
13922 ;;
13923 *) # from 3.2 on
13924 shlibpath_overrides_runpath=no
13925 hardcode_into_libs=yes
13926 ;;
13927 esac
13928 ;;
13929
13930gnu*)
13931 version_type=linux
13932 need_lib_prefix=no
13933 need_version=no
13934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13935 soname_spec='${libname}${release}${shared_ext}$major'
13936 shlibpath_var=LD_LIBRARY_PATH
13937 hardcode_into_libs=yes
13938 ;;
13939
13940hpux9* | hpux10* | hpux11*)
13941 # Give a soname corresponding to the major version so that dld.sl refuses to
13942 # link against other versions.
13943 version_type=sunos
13944 need_lib_prefix=no
13945 need_version=no
13946 case "$host_cpu" in
13947 ia64*)
13948 shrext='.so'
13949 hardcode_into_libs=yes
13950 dynamic_linker="$host_os dld.so"
13951 shlibpath_var=LD_LIBRARY_PATH
13952 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13954 soname_spec='${libname}${release}${shared_ext}$major'
13955 if test "X$HPUX_IA64_MODE" = X32; then
13956 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13957 else
13958 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13959 fi
13960 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13961 ;;
13962 hppa*64*)
13963 shrext='.sl'
13964 hardcode_into_libs=yes
13965 dynamic_linker="$host_os dld.sl"
13966 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13967 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13969 soname_spec='${libname}${release}${shared_ext}$major'
13970 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13971 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13972 ;;
13973 *)
13974 shrext='.sl'
13975 dynamic_linker="$host_os dld.sl"
13976 shlibpath_var=SHLIB_PATH
13977 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13979 soname_spec='${libname}${release}${shared_ext}$major'
13980 ;;
13981 esac
13982 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13983 postinstall_cmds='chmod 555 $lib'
13984 ;;
13985
13986irix5* | irix6* | nonstopux*)
13987 case $host_os in
13988 nonstopux*) version_type=nonstopux ;;
13989 *)
13990 if test "$lt_cv_prog_gnu_ld" = yes; then
13991 version_type=linux
13992 else
13993 version_type=irix
13994 fi ;;
13995 esac
13996 need_lib_prefix=no
13997 need_version=no
13998 soname_spec='${libname}${release}${shared_ext}$major'
13999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14000 case $host_os in
14001 irix5* | nonstopux*)
14002 libsuff= shlibsuff=
14003 ;;
14004 *)
14005 case $LD in # libtool.m4 will add one of these switches to LD
14006 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14007 libsuff= shlibsuff= libmagic=32-bit;;
14008 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14009 libsuff=32 shlibsuff=N32 libmagic=N32;;
14010 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14011 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14012 *) libsuff= shlibsuff= libmagic=never-match;;
14013 esac
14014 ;;
14015 esac
14016 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14017 shlibpath_overrides_runpath=no
14018 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14019 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14020 hardcode_into_libs=yes
14021 ;;
14022
14023# No shared lib support for Linux oldld, aout, or coff.
14024linux*oldld* | linux*aout* | linux*coff*)
14025 dynamic_linker=no
14026 ;;
14027
14028# This must be Linux ELF.
14029linux*)
14030 version_type=linux
14031 need_lib_prefix=no
14032 need_version=no
14033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14034 soname_spec='${libname}${release}${shared_ext}$major'
14035 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14036 shlibpath_var=LD_LIBRARY_PATH
14037 shlibpath_overrides_runpath=no
14038 # This implies no fast_install, which is unacceptable.
14039 # Some rework will be needed to allow for fast_install
14040 # before this can be enabled.
14041 hardcode_into_libs=yes
14042
14043 # We used to test for /lib/ld.so.1 and disable shared libraries on
14044 # powerpc, because MkLinux only supported shared libraries with the
14045 # GNU dynamic linker. Since this was broken with cross compilers,
14046 # most powerpc-linux boxes support dynamic linking these days and
14047 # people can always --disable-shared, the test was removed, and we
14048 # assume the GNU/Linux dynamic linker is in use.
14049 dynamic_linker='GNU/Linux ld.so'
14050 ;;
14051
14052netbsd*)
14053 version_type=sunos
14054 need_lib_prefix=no
14055 need_version=no
14056 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14058 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14059 dynamic_linker='NetBSD (a.out) ld.so'
14060 else
14061 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
14062 soname_spec='${libname}${release}${shared_ext}$major'
14063 dynamic_linker='NetBSD ld.elf_so'
14064 fi
14065 shlibpath_var=LD_LIBRARY_PATH
14066 shlibpath_overrides_runpath=yes
14067 hardcode_into_libs=yes
14068 ;;
14069
14070newsos6)
14071 version_type=linux
14072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14073 shlibpath_var=LD_LIBRARY_PATH
14074 shlibpath_overrides_runpath=yes
14075 ;;
14076
14077nto-qnx)
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 shlibpath_var=LD_LIBRARY_PATH
14084 shlibpath_overrides_runpath=yes
14085 ;;
14086
14087openbsd*)
14088 version_type=sunos
14089 need_lib_prefix=no
14090 need_version=no
14091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14092 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14093 shlibpath_var=LD_LIBRARY_PATH
14094 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14095 case $host_os in
14096 openbsd2.[89] | openbsd2.[89].*)
14097 shlibpath_overrides_runpath=no
14098 ;;
14099 *)
14100 shlibpath_overrides_runpath=yes
14101 ;;
14102 esac
14103 else
14104 shlibpath_overrides_runpath=yes
14105 fi
14106 ;;
14107
14108os2*)
14109 libname_spec='$name'
14110 shrext=".dll"
14111 need_lib_prefix=no
14112 library_names_spec='$libname${shared_ext} $libname.a'
14113 dynamic_linker='OS/2 ld.exe'
14114 shlibpath_var=LIBPATH
14115 ;;
14116
14117osf3* | osf4* | osf5*)
14118 version_type=osf
14119 need_lib_prefix=no
14120 need_version=no
14121 soname_spec='${libname}${release}${shared_ext}$major'
14122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14123 shlibpath_var=LD_LIBRARY_PATH
14124 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14125 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14126 ;;
14127
14128sco3.2v5*)
14129 version_type=osf
14130 soname_spec='${libname}${release}${shared_ext}$major'
14131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14132 shlibpath_var=LD_LIBRARY_PATH
14133 ;;
14134
14135solaris*)
14136 version_type=linux
14137 need_lib_prefix=no
14138 need_version=no
14139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14140 soname_spec='${libname}${release}${shared_ext}$major'
14141 shlibpath_var=LD_LIBRARY_PATH
14142 shlibpath_overrides_runpath=yes
14143 hardcode_into_libs=yes
14144 # ldd complains unless libraries are executable
14145 postinstall_cmds='chmod +x $lib'
14146 ;;
14147
14148sunos4*)
14149 version_type=sunos
14150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14151 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14152 shlibpath_var=LD_LIBRARY_PATH
14153 shlibpath_overrides_runpath=yes
14154 if test "$with_gnu_ld" = yes; then
14155 need_lib_prefix=no
14156 fi
14157 need_version=yes
14158 ;;
14159
14160sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14161 version_type=linux
14162 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14163 soname_spec='${libname}${release}${shared_ext}$major'
14164 shlibpath_var=LD_LIBRARY_PATH
14165 case $host_vendor in
14166 sni)
14167 shlibpath_overrides_runpath=no
14168 need_lib_prefix=no
14169 export_dynamic_flag_spec='${wl}-Blargedynsym'
14170 runpath_var=LD_RUN_PATH
14171 ;;
14172 siemens)
14173 need_lib_prefix=no
14174 ;;
14175 motorola)
14176 need_lib_prefix=no
14177 need_version=no
14178 shlibpath_overrides_runpath=no
14179 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14180 ;;
14181 esac
14182 ;;
14183
14184sysv4*MP*)
14185 if test -d /usr/nec ;then
14186 version_type=linux
14187 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14188 soname_spec='$libname${shared_ext}.$major'
14189 shlibpath_var=LD_LIBRARY_PATH
14190 fi
14191 ;;
14192
14193uts4*)
14194 version_type=linux
14195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14196 soname_spec='${libname}${release}${shared_ext}$major'
14197 shlibpath_var=LD_LIBRARY_PATH
14198 ;;
14199
14200*)
14201 dynamic_linker=no
14202 ;;
14203esac
14204echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14205echo "${ECHO_T}$dynamic_linker" >&6
14206test "$dynamic_linker" = no && can_build_shared=no
14207
14208
14209# The else clause should only fire when bootstrapping the
14210# libtool distribution, otherwise you forgot to ship ltmain.sh
14211# with your package, and you will get complaints that there are
14212# no rules to generate ltmain.sh.
14213if test -f "$ltmain"; then
14214 # See if we are running on zsh, and set the options which allow our commands through
14215 # without removal of \ escapes.
14216 if test -n "${ZSH_VERSION+set}" ; then
14217 setopt NO_GLOB_SUBST
14218 fi
14219 # Now quote all the things that may contain metacharacters while being
14220 # careful not to overquote the AC_SUBSTed values. We take copies of the
14221 # variables and quote the copies for generation of the libtool script.
14222 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
14223 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14224 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14225 deplibs_check_method reload_flag reload_cmds need_locks \
14226 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14227 lt_cv_sys_global_symbol_to_c_name_address \
14228 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14229 old_postinstall_cmds old_postuninstall_cmds \
14230 compiler_F77 \
14231 CC_F77 \
14232 LD_F77 \
14233 lt_prog_compiler_wl_F77 \
14234 lt_prog_compiler_pic_F77 \
14235 lt_prog_compiler_static_F77 \
14236 lt_prog_compiler_no_builtin_flag_F77 \
14237 export_dynamic_flag_spec_F77 \
14238 thread_safe_flag_spec_F77 \
14239 whole_archive_flag_spec_F77 \
14240 enable_shared_with_static_runtimes_F77 \
14241 old_archive_cmds_F77 \
14242 old_archive_from_new_cmds_F77 \
14243 predep_objects_F77 \
14244 postdep_objects_F77 \
14245 predeps_F77 \
14246 postdeps_F77 \
14247 compiler_lib_search_path_F77 \
14248 archive_cmds_F77 \
14249 archive_expsym_cmds_F77 \
14250 postinstall_cmds_F77 \
14251 postuninstall_cmds_F77 \
14252 old_archive_from_expsyms_cmds_F77 \
14253 allow_undefined_flag_F77 \
14254 no_undefined_flag_F77 \
14255 export_symbols_cmds_F77 \
14256 hardcode_libdir_flag_spec_F77 \
14257 hardcode_libdir_flag_spec_ld_F77 \
14258 hardcode_libdir_separator_F77 \
14259 hardcode_automatic_F77 \
14260 module_cmds_F77 \
14261 module_expsym_cmds_F77 \
14262 lt_cv_prog_compiler_c_o_F77 \
14263 exclude_expsyms_F77 \
14264 include_expsyms_F77; do
14265
14266 case $var in
14267 old_archive_cmds_F77 | \
14268 old_archive_from_new_cmds_F77 | \
14269 archive_cmds_F77 | \
14270 archive_expsym_cmds_F77 | \
14271 module_cmds_F77 | \
14272 module_expsym_cmds_F77 | \
14273 old_archive_from_expsyms_cmds_F77 | \
14274 export_symbols_cmds_F77 | \
14275 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14276 postinstall_cmds | postuninstall_cmds | \
14277 old_postinstall_cmds | old_postuninstall_cmds | \
14278 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14279 # Double-quote double-evaled strings.
14280 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14281 ;;
14282 *)
14283 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14284 ;;
14285 esac
14286 done
14287
14288 case $lt_echo in
14289 *'\$0 --fallback-echo"')
14290 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14291 ;;
14292 esac
14293
14294cfgfile="$ofile"
14295
14296 cat <<__EOF__ >> "$cfgfile"
14297# ### BEGIN LIBTOOL TAG CONFIG: $tagname
14298
14299# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14300
14301# Shell to use when invoking shell scripts.
14302SHELL=$lt_SHELL
14303
14304# Whether or not to build shared libraries.
14305build_libtool_libs=$enable_shared
14306
14307# Whether or not to build static libraries.
14308build_old_libs=$enable_static
14309
14310# Whether or not to add -lc for building shared libraries.
14311build_libtool_need_lc=$archive_cmds_need_lc_F77
14312
14313# Whether or not to disallow shared libs when runtime libs are static
14314allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14315
14316# Whether or not to optimize for fast installation.
14317fast_install=$enable_fast_install
14318
14319# The host system.
14320host_alias=$host_alias
14321host=$host
14322
14323# An echo program that does not interpret backslashes.
14324echo=$lt_echo
14325
14326# The archiver.
14327AR=$lt_AR
14328AR_FLAGS=$lt_AR_FLAGS
14329
14330# A C compiler.
14331LTCC=$lt_LTCC
14332
14333# A language-specific compiler.
14334CC=$lt_compiler_F77
14335
14336# Is the compiler the GNU C compiler?
14337with_gcc=$GCC_F77
14338
14339# An ERE matcher.
14340EGREP=$lt_EGREP
14341
14342# The linker used to build libraries.
14343LD=$lt_LD_F77
14344
14345# Whether we need hard or soft links.
14346LN_S=$lt_LN_S
14347
14348# A BSD-compatible nm program.
14349NM=$lt_NM
14350
14351# A symbol stripping program
14352STRIP=$STRIP
14353
14354# Used to examine libraries when file_magic_cmd begins "file"
14355MAGIC_CMD=$MAGIC_CMD
14356
14357# Used on cygwin: DLL creation program.
14358DLLTOOL="$DLLTOOL"
14359
14360# Used on cygwin: object dumper.
14361OBJDUMP="$OBJDUMP"
14362
14363# Used on cygwin: assembler.
14364AS="$AS"
14365
14366# The name of the directory that contains temporary libtool files.
14367objdir=$objdir
14368
14369# How to create reloadable object files.
14370reload_flag=$lt_reload_flag
14371reload_cmds=$lt_reload_cmds
14372
14373# How to pass a linker flag through the compiler.
14374wl=$lt_lt_prog_compiler_wl_F77
14375
14376# Object file suffix (normally "o").
14377objext="$ac_objext"
14378
14379# Old archive suffix (normally "a").
14380libext="$libext"
14381
14382# Shared library suffix (normally ".so").
14383shrext='$shrext'
14384
14385# Executable file suffix (normally "").
14386exeext="$exeext"
14387
14388# Additional compiler flags for building library objects.
14389pic_flag=$lt_lt_prog_compiler_pic_F77
14390pic_mode=$pic_mode
14391
14392# What is the maximum length of a command?
14393max_cmd_len=$lt_cv_sys_max_cmd_len
14394
14395# Does compiler simultaneously support -c and -o options?
14396compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14397
14398# Must we lock files when doing compilation ?
14399need_locks=$lt_need_locks
14400
14401# Do we need the lib prefix for modules?
14402need_lib_prefix=$need_lib_prefix
14403
14404# Do we need a version for libraries?
14405need_version=$need_version
14406
14407# Whether dlopen is supported.
14408dlopen_support=$enable_dlopen
14409
14410# Whether dlopen of programs is supported.
14411dlopen_self=$enable_dlopen_self
14412
14413# Whether dlopen of statically linked programs is supported.
14414dlopen_self_static=$enable_dlopen_self_static
14415
14416# Compiler flag to prevent dynamic linking.
14417link_static_flag=$lt_lt_prog_compiler_static_F77
14418
14419# Compiler flag to turn off builtin functions.
14420no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14421
14422# Compiler flag to allow reflexive dlopens.
14423export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14424
14425# Compiler flag to generate shared objects directly from archives.
14426whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14427
14428# Compiler flag to generate thread-safe objects.
14429thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14430
14431# Library versioning type.
14432version_type=$version_type
14433
14434# Format of library name prefix.
14435libname_spec=$lt_libname_spec
14436
14437# List of archive names. First name is the real one, the rest are links.
14438# The last name is the one that the linker finds with -lNAME.
14439library_names_spec=$lt_library_names_spec
14440
14441# The coded name of the library, if different from the real name.
14442soname_spec=$lt_soname_spec
14443
14444# Commands used to build and install an old-style archive.
14445RANLIB=$lt_RANLIB
14446old_archive_cmds=$lt_old_archive_cmds_F77
14447old_postinstall_cmds=$lt_old_postinstall_cmds
14448old_postuninstall_cmds=$lt_old_postuninstall_cmds
14449
14450# Create an old-style archive from a shared archive.
14451old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14452
14453# Create a temporary old-style archive to link instead of a shared archive.
14454old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14455
14456# Commands used to build and install a shared archive.
14457archive_cmds=$lt_archive_cmds_F77
14458archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14459postinstall_cmds=$lt_postinstall_cmds
14460postuninstall_cmds=$lt_postuninstall_cmds
14461
14462# Commands used to build a loadable module (assumed same as above if empty)
14463module_cmds=$lt_module_cmds_F77
14464module_expsym_cmds=$lt_module_expsym_cmds_F77
14465
14466# Commands to strip libraries.
14467old_striplib=$lt_old_striplib
14468striplib=$lt_striplib
14469
14470# Dependencies to place before the objects being linked to create a
14471# shared library.
14472predep_objects=$lt_predep_objects_F77
14473
14474# Dependencies to place after the objects being linked to create a
14475# shared library.
14476postdep_objects=$lt_postdep_objects_F77
14477
14478# Dependencies to place before the objects being linked to create a
14479# shared library.
14480predeps=$lt_predeps_F77
14481
14482# Dependencies to place after the objects being linked to create a
14483# shared library.
14484postdeps=$lt_postdeps_F77
14485
14486# The library search path used internally by the compiler when linking
14487# a shared library.
14488compiler_lib_search_path=$lt_compiler_lib_search_path_F77
14489
14490# Method to check whether dependent libraries are shared objects.
14491deplibs_check_method=$lt_deplibs_check_method
14492
14493# Command to use when deplibs_check_method == file_magic.
14494file_magic_cmd=$lt_file_magic_cmd
14495
14496# Flag that allows shared libraries with undefined symbols to be built.
14497allow_undefined_flag=$lt_allow_undefined_flag_F77
14498
14499# Flag that forces no undefined symbols.
14500no_undefined_flag=$lt_no_undefined_flag_F77
14501
14502# Commands used to finish a libtool library installation in a directory.
14503finish_cmds=$lt_finish_cmds
14504
14505# Same as above, but a single script fragment to be evaled but not shown.
14506finish_eval=$lt_finish_eval
14507
14508# Take the output of nm and produce a listing of raw symbols and C names.
14509global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14510
14511# Transform the output of nm in a proper C declaration
14512global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14513
14514# Transform the output of nm in a C name address pair
14515global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14516
14517# This is the shared library runtime path variable.
14518runpath_var=$runpath_var
14519
14520# This is the shared library path variable.
14521shlibpath_var=$shlibpath_var
14522
14523# Is shlibpath searched before the hard-coded library search path?
14524shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14525
14526# How to hardcode a shared library path into an executable.
14527hardcode_action=$hardcode_action_F77
14528
14529# Whether we should hardcode library paths into libraries.
14530hardcode_into_libs=$hardcode_into_libs
14531
14532# Flag to hardcode \$libdir into a binary during linking.
14533# This must work even if \$libdir does not exist.
14534hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
14535
14536# If ld is used when linking, flag to hardcode \$libdir into
14537# a binary during linking. This must work even if \$libdir does
14538# not exist.
14539hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
14540
14541# Whether we need a single -rpath flag with a separated argument.
14542hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
14543
14544# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14545# resulting binary.
14546hardcode_direct=$hardcode_direct_F77
14547
14548# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14549# resulting binary.
14550hardcode_minus_L=$hardcode_minus_L_F77
14551
14552# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14553# the resulting binary.
14554hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
14555
14556# Set to yes if building a shared library automatically hardcodes DIR into the library
14557# and all subsequent libraries and executables linked against it.
14558hardcode_automatic=$hardcode_automatic_F77
14559
14560# Variables whose values should be saved in libtool wrapper scripts and
14561# restored at relink time.
14562variables_saved_for_relink="$variables_saved_for_relink"
14563
14564# Whether libtool must link a program against all its dependency libraries.
14565link_all_deplibs=$link_all_deplibs_F77
14566
14567# Compile-time system search path for libraries
14568sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14569
14570# Run-time system search path for libraries
14571sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14572
14573# Fix the shell variable \$srcfile for the compiler.
14574fix_srcfile_path="$fix_srcfile_path_F77"
14575
14576# Set to yes if exported symbols are required.
14577always_export_symbols=$always_export_symbols_F77
14578
14579# The commands to list exported symbols.
14580export_symbols_cmds=$lt_export_symbols_cmds_F77
14581
14582# The commands to extract the exported symbol list from a shared archive.
14583extract_expsyms_cmds=$lt_extract_expsyms_cmds
14584
14585# Symbols that should not be listed in the preloaded symbols.
14586exclude_expsyms=$lt_exclude_expsyms_F77
14587
14588# Symbols that must always be exported.
14589include_expsyms=$lt_include_expsyms_F77
14590
14591# ### END LIBTOOL TAG CONFIG: $tagname
14592
14593__EOF__
14594
14595
14596else
14597 # If there is no Makefile yet, we rely on a make rule to execute
14598 # `config.status --recheck' to rerun these tests and create the
14599 # libtool script then.
14600 test -f Makefile && make "$ltmain"
14601fi
14602
14603
14604ac_ext=c
14605ac_cpp='$CPP $CPPFLAGS'
14606ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14607ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14608ac_compiler_gnu=$ac_cv_c_compiler_gnu
14609
14610CC="$lt_save_CC"
14611
14612 else
14613 tagname=""
14614 fi
14615 ;;
14616
14617 GCJ)
14618 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
14619
14620
14621
14622# Source file extension for Java test sources.
14623ac_ext=java
14624
14625# Object file extension for compiled Java test sources.
14626objext=o
14627objext_GCJ=$objext
14628
14629# Code to be used in simple compile tests
14630lt_simple_compile_test_code="class foo {}\n"
14631
14632# Code to be used in simple link tests
14633lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
14634
14635# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14636
14637# If no C compiler was specified, use CC.
14638LTCC=${LTCC-"$CC"}
14639
14640# Allow CC to be a program name with arguments.
14641compiler=$CC
14642
14643
14644# Allow CC to be a program name with arguments.
14645lt_save_CC="$CC"
14646CC=${GCJ-"gcj"}
14647compiler=$CC
14648compiler_GCJ=$CC
14649
14650# GCJ did not exist at the time GCC didn't implicitly link libc in.
14651archive_cmds_need_lc_GCJ=no
14652
14653## CAVEAT EMPTOR:
14654## There is no encapsulation within the following macros, do not change
14655## the running order or otherwise move them around unless you know exactly
14656## what you are doing...
14657
14658lt_prog_compiler_no_builtin_flag_GCJ=
14659
14660if test "$GCC" = yes; then
14661 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
14662
14663 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14664echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
14665if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14666 echo $ECHO_N "(cached) $ECHO_C" >&6
14667else
14668 lt_cv_prog_compiler_rtti_exceptions=no
14669 ac_outfile=conftest.$ac_objext
14670 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14671 lt_compiler_flag="-fno-rtti -fno-exceptions"
14672 # Insert the option either (1) after the last *FLAGS variable, or
14673 # (2) before a word containing "conftest.", or (3) at the end.
14674 # Note that $ac_compile itself does not contain backslashes and begins
14675 # with a dollar sign (not a hyphen), so the echo should work correctly.
14676 # The option is referenced via a variable to avoid confusing sed.
14677 lt_compile=`echo "$ac_compile" | $SED \
14678 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14679 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14680 -e 's:$: $lt_compiler_flag:'`
John Criswell33a911a2003-11-25 20:36:46 +000014681 (eval echo "\"\$as_me:14681: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014682 (eval "$lt_compile" 2>conftest.err)
14683 ac_status=$?
14684 cat conftest.err >&5
John Criswell33a911a2003-11-25 20:36:46 +000014685 echo "$as_me:14685: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014686 if (exit $ac_status) && test -s "$ac_outfile"; then
14687 # The compiler can only warn and ignore the option if not recognized
14688 # So say no if there are warnings
14689 if test ! -s conftest.err; then
14690 lt_cv_prog_compiler_rtti_exceptions=yes
14691 fi
14692 fi
14693 $rm conftest*
14694
14695fi
14696echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14697echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
14698
14699if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14700 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
14701else
14702 :
14703fi
14704
14705fi
14706
14707lt_prog_compiler_wl_GCJ=
14708lt_prog_compiler_pic_GCJ=
14709lt_prog_compiler_static_GCJ=
14710
14711echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14712echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
14713
14714 if test "$GCC" = yes; then
14715 lt_prog_compiler_wl_GCJ='-Wl,'
14716 lt_prog_compiler_static_GCJ='-static'
14717
14718 case $host_os in
14719 aix*)
14720 # All AIX code is PIC.
14721 if test "$host_cpu" = ia64; then
14722 # AIX 5 now supports IA64 processor
14723 lt_prog_compiler_static_GCJ='-Bstatic'
14724 fi
14725 ;;
14726
14727 amigaos*)
14728 # FIXME: we need at least 68020 code to build shared libraries, but
14729 # adding the `-m68020' flag to GCC prevents building anything better,
14730 # like `-m68040'.
14731 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
14732 ;;
14733
14734 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14735 # PIC is the default for these OSes.
14736 ;;
14737
14738 mingw* | pw32* | os2*)
14739 # This hack is so that the source file can tell whether it is being
14740 # built for inclusion in a dll (and should export symbols for example).
14741 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
14742 ;;
14743
14744 darwin* | rhapsody*)
14745 # PIC is the default on this platform
14746 # Common symbols not allowed in MH_DYLIB files
14747 lt_prog_compiler_pic_GCJ='-fno-common'
14748 ;;
14749
14750 msdosdjgpp*)
14751 # Just because we use GCC doesn't mean we suddenly get shared libraries
14752 # on systems that don't support them.
14753 lt_prog_compiler_can_build_shared_GCJ=no
14754 enable_shared=no
14755 ;;
14756
14757 sysv4*MP*)
14758 if test -d /usr/nec; then
14759 lt_prog_compiler_pic_GCJ=-Kconform_pic
14760 fi
14761 ;;
14762
14763 hpux*)
14764 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14765 # not for PA HP-UX.
14766 case "$host_cpu" in
14767 hppa*64*|ia64*)
14768 # +Z the default
14769 ;;
14770 *)
14771 lt_prog_compiler_pic_GCJ='-fPIC'
14772 ;;
14773 esac
14774 ;;
14775
14776 *)
14777 lt_prog_compiler_pic_GCJ='-fPIC'
14778 ;;
14779 esac
14780 else
14781 # PORTME Check for flag to pass linker flags through the system compiler.
14782 case $host_os in
14783 aix*)
14784 lt_prog_compiler_wl_GCJ='-Wl,'
14785 if test "$host_cpu" = ia64; then
14786 # AIX 5 now supports IA64 processor
14787 lt_prog_compiler_static_GCJ='-Bstatic'
14788 else
14789 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
14790 fi
14791 ;;
14792
14793 mingw* | pw32* | os2*)
14794 # This hack is so that the source file can tell whether it is being
14795 # built for inclusion in a dll (and should export symbols for example).
14796 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
14797 ;;
14798
14799 hpux9* | hpux10* | hpux11*)
14800 lt_prog_compiler_wl_GCJ='-Wl,'
14801 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14802 # not for PA HP-UX.
14803 case "$host_cpu" in
14804 hppa*64*|ia64*)
14805 # +Z the default
14806 ;;
14807 *)
14808 lt_prog_compiler_pic_GCJ='+Z'
14809 ;;
14810 esac
14811 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14812 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
14813 ;;
14814
14815 irix5* | irix6* | nonstopux*)
14816 lt_prog_compiler_wl_GCJ='-Wl,'
14817 # PIC (with -KPIC) is the default.
14818 lt_prog_compiler_static_GCJ='-non_shared'
14819 ;;
14820
14821 newsos6)
14822 lt_prog_compiler_pic_GCJ='-KPIC'
14823 lt_prog_compiler_static_GCJ='-Bstatic'
14824 ;;
14825
14826 linux*)
14827 case $CC in
14828 icc|ecc)
14829 lt_prog_compiler_wl_GCJ='-Wl,'
14830 lt_prog_compiler_pic_GCJ='-KPIC'
14831 lt_prog_compiler_static_GCJ='-static'
14832 ;;
14833 ccc)
14834 lt_prog_compiler_wl_GCJ='-Wl,'
14835 # All Alpha code is PIC.
14836 lt_prog_compiler_static_GCJ='-non_shared'
14837 ;;
14838 esac
14839 ;;
14840
14841 osf3* | osf4* | osf5*)
14842 lt_prog_compiler_wl_GCJ='-Wl,'
14843 # All OSF/1 code is PIC.
14844 lt_prog_compiler_static_GCJ='-non_shared'
14845 ;;
14846
14847 sco3.2v5*)
14848 lt_prog_compiler_pic_GCJ='-Kpic'
14849 lt_prog_compiler_static_GCJ='-dn'
14850 ;;
14851
14852 solaris*)
14853 lt_prog_compiler_wl_GCJ='-Wl,'
14854 lt_prog_compiler_pic_GCJ='-KPIC'
14855 lt_prog_compiler_static_GCJ='-Bstatic'
14856 ;;
14857
14858 sunos4*)
14859 lt_prog_compiler_wl_GCJ='-Qoption ld '
14860 lt_prog_compiler_pic_GCJ='-PIC'
14861 lt_prog_compiler_static_GCJ='-Bstatic'
14862 ;;
14863
14864 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14865 lt_prog_compiler_wl_GCJ='-Wl,'
14866 lt_prog_compiler_pic_GCJ='-KPIC'
14867 lt_prog_compiler_static_GCJ='-Bstatic'
14868 ;;
14869
14870 sysv4*MP*)
14871 if test -d /usr/nec ;then
14872 lt_prog_compiler_pic_GCJ='-Kconform_pic'
14873 lt_prog_compiler_static_GCJ='-Bstatic'
14874 fi
14875 ;;
14876
14877 uts4*)
14878 lt_prog_compiler_pic_GCJ='-pic'
14879 lt_prog_compiler_static_GCJ='-Bstatic'
14880 ;;
14881
14882 *)
14883 lt_prog_compiler_can_build_shared_GCJ=no
14884 ;;
14885 esac
14886 fi
14887
14888echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
14889echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
14890
14891#
14892# Check to make sure the PIC flag actually works.
14893#
14894if test -n "$lt_prog_compiler_pic_GCJ"; then
14895 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
14896echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
14897if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
14898 echo $ECHO_N "(cached) $ECHO_C" >&6
14899else
14900 lt_prog_compiler_pic_works_GCJ=no
14901 ac_outfile=conftest.$ac_objext
14902 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14903 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
14904 # Insert the option either (1) after the last *FLAGS variable, or
14905 # (2) before a word containing "conftest.", or (3) at the end.
14906 # Note that $ac_compile itself does not contain backslashes and begins
14907 # with a dollar sign (not a hyphen), so the echo should work correctly.
14908 # The option is referenced via a variable to avoid confusing sed.
14909 lt_compile=`echo "$ac_compile" | $SED \
14910 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14911 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14912 -e 's:$: $lt_compiler_flag:'`
John Criswell33a911a2003-11-25 20:36:46 +000014913 (eval echo "\"\$as_me:14913: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014914 (eval "$lt_compile" 2>conftest.err)
14915 ac_status=$?
14916 cat conftest.err >&5
John Criswell33a911a2003-11-25 20:36:46 +000014917 echo "$as_me:14917: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014918 if (exit $ac_status) && test -s "$ac_outfile"; then
14919 # The compiler can only warn and ignore the option if not recognized
14920 # So say no if there are warnings
14921 if test ! -s conftest.err; then
14922 lt_prog_compiler_pic_works_GCJ=yes
14923 fi
14924 fi
14925 $rm conftest*
14926
14927fi
14928echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
14929echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
14930
14931if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
14932 case $lt_prog_compiler_pic_GCJ in
14933 "" | " "*) ;;
14934 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
14935 esac
14936else
14937 lt_prog_compiler_pic_GCJ=
14938 lt_prog_compiler_can_build_shared_GCJ=no
14939fi
14940
14941fi
14942case "$host_os" in
14943 # For platforms which do not support PIC, -DPIC is meaningless:
14944 *djgpp*)
14945 lt_prog_compiler_pic_GCJ=
14946 ;;
14947 *)
14948 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
14949 ;;
14950esac
14951
14952echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14953echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14954if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
14955 echo $ECHO_N "(cached) $ECHO_C" >&6
14956else
14957 lt_cv_prog_compiler_c_o_GCJ=no
14958 $rm -r conftest 2>/dev/null
14959 mkdir conftest
14960 cd conftest
14961 mkdir out
14962 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14963
14964 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
14965 # that will create temporary files in the current directory regardless of
14966 # the output directory. Thus, making CWD read-only will cause this test
14967 # to fail, enabling locking or at least warning the user not to do parallel
14968 # builds.
14969 chmod -w .
14970
14971 lt_compiler_flag="-o out/conftest2.$ac_objext"
14972 # Insert the option either (1) after the last *FLAGS variable, or
14973 # (2) before a word containing "conftest.", or (3) at the end.
14974 # Note that $ac_compile itself does not contain backslashes and begins
14975 # with a dollar sign (not a hyphen), so the echo should work correctly.
14976 lt_compile=`echo "$ac_compile" | $SED \
14977 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14978 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14979 -e 's:$: $lt_compiler_flag:'`
John Criswell33a911a2003-11-25 20:36:46 +000014980 (eval echo "\"\$as_me:14980: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014981 (eval "$lt_compile" 2>out/conftest.err)
14982 ac_status=$?
14983 cat out/conftest.err >&5
John Criswell33a911a2003-11-25 20:36:46 +000014984 echo "$as_me:14984: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014985 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14986 then
14987 # The compiler can only warn and ignore the option if not recognized
14988 # So say no if there are warnings
14989 if test ! -s out/conftest.err; then
14990 lt_cv_prog_compiler_c_o_GCJ=yes
14991 fi
14992 fi
14993 chmod u+w .
14994 $rm conftest* out/*
14995 rmdir out
14996 cd ..
14997 rmdir conftest
14998 $rm conftest*
14999
15000fi
15001echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15002echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15003
15004
15005hard_links="nottested"
15006if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15007 # do not overwrite the value of need_locks provided by the user
15008 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15009echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15010 hard_links=yes
15011 $rm conftest*
15012 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15013 touch conftest.a
15014 ln conftest.a conftest.b 2>&5 || hard_links=no
15015 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15016 echo "$as_me:$LINENO: result: $hard_links" >&5
15017echo "${ECHO_T}$hard_links" >&6
15018 if test "$hard_links" = no; then
15019 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15020echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15021 need_locks=warn
15022 fi
15023else
15024 need_locks=no
15025fi
15026
15027echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15028echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15029
15030 runpath_var=
15031 allow_undefined_flag_GCJ=
15032 enable_shared_with_static_runtimes_GCJ=no
15033 archive_cmds_GCJ=
15034 archive_expsym_cmds_GCJ=
15035 old_archive_From_new_cmds_GCJ=
15036 old_archive_from_expsyms_cmds_GCJ=
15037 export_dynamic_flag_spec_GCJ=
15038 whole_archive_flag_spec_GCJ=
15039 thread_safe_flag_spec_GCJ=
15040 hardcode_libdir_flag_spec_GCJ=
15041 hardcode_libdir_flag_spec_ld_GCJ=
15042 hardcode_libdir_separator_GCJ=
15043 hardcode_direct_GCJ=no
15044 hardcode_minus_L_GCJ=no
15045 hardcode_shlibpath_var_GCJ=unsupported
15046 link_all_deplibs_GCJ=unknown
15047 hardcode_automatic_GCJ=no
15048 module_cmds_GCJ=
15049 module_expsym_cmds_GCJ=
15050 always_export_symbols_GCJ=no
15051 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15052 # include_expsyms should be a list of space-separated symbols to be *always*
15053 # included in the symbol list
15054 include_expsyms_GCJ=
15055 # exclude_expsyms can be an extended regexp of symbols to exclude
15056 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15057 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15058 # as well as any symbol that contains `d'.
15059 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15060 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15061 # platforms (ab)use it in PIC code, but their linkers get confused if
15062 # the symbol is explicitly referenced. Since portable code cannot
15063 # rely on this symbol name, it's probably fine to never include it in
15064 # preloaded symbol tables.
15065 extract_expsyms_cmds=
15066
15067 case $host_os in
15068 cygwin* | mingw* | pw32*)
15069 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15070 # When not using gcc, we currently assume that we are using
15071 # Microsoft Visual C++.
15072 if test "$GCC" != yes; then
15073 with_gnu_ld=no
15074 fi
15075 ;;
15076 openbsd*)
15077 with_gnu_ld=no
15078 ;;
15079 esac
15080
15081 ld_shlibs_GCJ=yes
15082 if test "$with_gnu_ld" = yes; then
15083 # If archive_cmds runs LD, not CC, wlarc should be empty
15084 wlarc='${wl}'
15085
15086 # See if GNU ld supports shared libraries.
15087 case $host_os in
15088 aix3* | aix4* | aix5*)
15089 # On AIX/PPC, the GNU linker is very broken
15090 if test "$host_cpu" != ia64; then
15091 ld_shlibs_GCJ=no
15092 cat <<EOF 1>&2
15093
15094*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15095*** to be unable to reliably create shared libraries on AIX.
15096*** Therefore, libtool is disabling shared libraries support. If you
15097*** really care for shared libraries, you may want to modify your PATH
15098*** so that a non-GNU linker is found, and then restart.
15099
15100EOF
15101 fi
15102 ;;
15103
15104 amigaos*)
15105 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)'
15106 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15107 hardcode_minus_L_GCJ=yes
15108
15109 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15110 # that the semantics of dynamic libraries on AmigaOS, at least up
15111 # to version 4, is to share data among multiple programs linked
15112 # with the same dynamic library. Since this doesn't match the
15113 # behavior of shared libraries on other platforms, we can't use
15114 # them.
15115 ld_shlibs_GCJ=no
15116 ;;
15117
15118 beos*)
15119 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15120 allow_undefined_flag_GCJ=unsupported
15121 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15122 # support --undefined. This deserves some investigation. FIXME
15123 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15124 else
15125 ld_shlibs_GCJ=no
15126 fi
15127 ;;
15128
15129 cygwin* | mingw* | pw32*)
15130 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15131 # as there is no search path for DLLs.
15132 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15133 allow_undefined_flag_GCJ=unsupported
15134 always_export_symbols_GCJ=no
15135 enable_shared_with_static_runtimes_GCJ=yes
15136 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15137
15138 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15139 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15140 # If the export-symbols file already is a .def file (1st line
15141 # is EXPORTS), use it as is; otherwise, prepend...
15142 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15143 cp $export_symbols $output_objdir/$soname.def;
15144 else
15145 echo EXPORTS > $output_objdir/$soname.def;
15146 cat $export_symbols >> $output_objdir/$soname.def;
15147 fi~
15148 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15149 else
15150 ld_shlibs=no
15151 fi
15152 ;;
15153
15154 netbsd*)
15155 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15156 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15157 wlarc=
15158 else
15159 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15160 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15161 fi
15162 ;;
15163
15164 solaris* | sysv5*)
15165 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15166 ld_shlibs_GCJ=no
15167 cat <<EOF 1>&2
15168
15169*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15170*** create shared libraries on Solaris systems. Therefore, libtool
15171*** is disabling shared libraries support. We urge you to upgrade GNU
15172*** binutils to release 2.9.1 or newer. Another option is to modify
15173*** your PATH or compiler configuration so that the native linker is
15174*** used, and then restart.
15175
15176EOF
15177 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15178 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15179 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15180 else
15181 ld_shlibs_GCJ=no
15182 fi
15183 ;;
15184
15185 sunos4*)
15186 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15187 wlarc=
15188 hardcode_direct_GCJ=yes
15189 hardcode_shlibpath_var_GCJ=no
15190 ;;
15191
15192 *)
15193 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15194 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15195 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15196 else
15197 ld_shlibs_GCJ=no
15198 fi
15199 ;;
15200 esac
15201
15202 if test "$ld_shlibs_GCJ" = yes; then
15203 runpath_var=LD_RUN_PATH
15204 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15205 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15206 # ancient GNU ld didn't support --whole-archive et. al.
15207 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15208 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15209 else
15210 whole_archive_flag_spec_GCJ=
15211 fi
15212 fi
15213 else
15214 # PORTME fill in a description of your system's linker (not GNU ld)
15215 case $host_os in
15216 aix3*)
15217 allow_undefined_flag_GCJ=unsupported
15218 always_export_symbols_GCJ=yes
15219 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'
15220 # Note: this linker hardcodes the directories in LIBPATH if there
15221 # are no directories specified by -L.
15222 hardcode_minus_L_GCJ=yes
15223 if test "$GCC" = yes && test -z "$link_static_flag"; then
15224 # Neither direct hardcoding nor static linking is supported with a
15225 # broken collect2.
15226 hardcode_direct_GCJ=unsupported
15227 fi
15228 ;;
15229
15230 aix4* | aix5*)
15231 if test "$host_cpu" = ia64; then
15232 # On IA64, the linker does run time linking by default, so we don't
15233 # have to do anything special.
15234 aix_use_runtimelinking=no
15235 exp_sym_flag='-Bexport'
15236 no_entry_flag=""
15237 else
15238 # If we're using GNU nm, then we don't want the "-C" option.
15239 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15240 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15241 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'
15242 else
15243 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'
15244 fi
15245 aix_use_runtimelinking=no
15246
15247 # Test if we are trying to use run time linking or normal
15248 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15249 # need to do runtime linking.
15250 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15251 for ld_flag in $LDFLAGS; do
15252 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15253 aix_use_runtimelinking=yes
15254 break
15255 fi
15256 done
15257 esac
15258
15259 exp_sym_flag='-bexport'
15260 no_entry_flag='-bnoentry'
15261 fi
15262
15263 # When large executables or shared objects are built, AIX ld can
15264 # have problems creating the table of contents. If linking a library
15265 # or program results in "error TOC overflow" add -mminimal-toc to
15266 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15267 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15268
15269 archive_cmds_GCJ=''
15270 hardcode_direct_GCJ=yes
15271 hardcode_libdir_separator_GCJ=':'
15272 link_all_deplibs_GCJ=yes
15273
15274 if test "$GCC" = yes; then
15275 case $host_os in aix4.012|aix4.012.*)
15276 # We only want to do this on AIX 4.2 and lower, the check
15277 # below for broken collect2 doesn't work under 4.3+
15278 collect2name=`${CC} -print-prog-name=collect2`
15279 if test -f "$collect2name" && \
15280 strings "$collect2name" | grep resolve_lib_name >/dev/null
15281 then
15282 # We have reworked collect2
15283 hardcode_direct_GCJ=yes
15284 else
15285 # We have old collect2
15286 hardcode_direct_GCJ=unsupported
15287 # It fails to find uninstalled libraries when the uninstalled
15288 # path is not listed in the libpath. Setting hardcode_minus_L
15289 # to unsupported forces relinking
15290 hardcode_minus_L_GCJ=yes
15291 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15292 hardcode_libdir_separator_GCJ=
15293 fi
15294 esac
15295 shared_flag='-shared'
15296 else
15297 # not using gcc
15298 if test "$host_cpu" = ia64; then
15299 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15300 # chokes on -Wl,-G. The following line is correct:
15301 shared_flag='-G'
15302 else
15303 if test "$aix_use_runtimelinking" = yes; then
15304 shared_flag='${wl}-G'
15305 else
15306 shared_flag='${wl}-bM:SRE'
15307 fi
15308 fi
15309 fi
15310
15311 # It seems that -bexpall does not export symbols beginning with
15312 # underscore (_), so it is better to generate a list of symbols to export.
15313 always_export_symbols_GCJ=yes
15314 if test "$aix_use_runtimelinking" = yes; then
15315 # Warning - without using the other runtime loading flags (-brtl),
15316 # -berok will link without error, but may produce a broken library.
15317 allow_undefined_flag_GCJ='-berok'
15318 # Determine the default libpath from the value encoded in an empty executable.
15319 cat >conftest.$ac_ext <<_ACEOF
15320#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000015321/* confdefs.h. */
15322_ACEOF
15323cat confdefs.h >>conftest.$ac_ext
15324cat >>conftest.$ac_ext <<_ACEOF
15325/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000015326
John Criswell47fdd832003-07-14 16:52:07 +000015327int
15328main ()
15329{
15330
15331 ;
15332 return 0;
15333}
15334_ACEOF
15335rm -f conftest.$ac_objext conftest$ac_exeext
15336if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15337 (eval $ac_link) 2>&5
15338 ac_status=$?
15339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15340 (exit $ac_status); } &&
15341 { ac_try='test -s conftest$ac_exeext'
15342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15343 (eval $ac_try) 2>&5
15344 ac_status=$?
15345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15346 (exit $ac_status); }; }; then
15347
15348aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15349}'`
15350# Check for a 64-bit object if we didn't find anything.
15351if 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; }
15352}'`; fi
15353else
15354 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015355sed 's/^/| /' conftest.$ac_ext >&5
15356
John Criswell47fdd832003-07-14 16:52:07 +000015357fi
15358rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15359if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15360
15361 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15362 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"
15363 else
15364 if test "$host_cpu" = ia64; then
15365 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
15366 allow_undefined_flag_GCJ="-z nodefs"
15367 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"
15368 else
15369 # Determine the default libpath from the value encoded in an empty executable.
15370 cat >conftest.$ac_ext <<_ACEOF
15371#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000015372/* confdefs.h. */
15373_ACEOF
15374cat confdefs.h >>conftest.$ac_ext
15375cat >>conftest.$ac_ext <<_ACEOF
15376/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000015377
John Criswell47fdd832003-07-14 16:52:07 +000015378int
15379main ()
15380{
15381
15382 ;
15383 return 0;
15384}
15385_ACEOF
15386rm -f conftest.$ac_objext conftest$ac_exeext
15387if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15388 (eval $ac_link) 2>&5
15389 ac_status=$?
15390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15391 (exit $ac_status); } &&
15392 { ac_try='test -s conftest$ac_exeext'
15393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15394 (eval $ac_try) 2>&5
15395 ac_status=$?
15396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15397 (exit $ac_status); }; }; then
15398
15399aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15400}'`
15401# Check for a 64-bit object if we didn't find anything.
15402if 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; }
15403}'`; fi
15404else
15405 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015406sed 's/^/| /' conftest.$ac_ext >&5
15407
John Criswell47fdd832003-07-14 16:52:07 +000015408fi
15409rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15410if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15411
15412 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15413 # Warning - without using the other run time loading flags,
15414 # -berok will link without error, but may produce a broken library.
15415 no_undefined_flag_GCJ=' ${wl}-bernotok'
15416 allow_undefined_flag_GCJ=' ${wl}-berok'
15417 # -bexpall does not export symbols beginning with underscore (_)
15418 always_export_symbols_GCJ=yes
15419 # Exported symbols can be pulled into shared objects from archives
15420 whole_archive_flag_spec_GCJ=' '
15421 archive_cmds_need_lc_GCJ=yes
15422 # This is similar to how AIX traditionally builds it's shared libraries.
15423 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'
15424 fi
15425 fi
15426 ;;
15427
15428 amigaos*)
15429 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)'
15430 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15431 hardcode_minus_L_GCJ=yes
15432 # see comment about different semantics on the GNU ld section
15433 ld_shlibs_GCJ=no
15434 ;;
15435
15436 bsdi4*)
15437 export_dynamic_flag_spec_GCJ=-rdynamic
15438 ;;
15439
15440 cygwin* | mingw* | pw32*)
15441 # When not using gcc, we currently assume that we are using
15442 # Microsoft Visual C++.
15443 # hardcode_libdir_flag_spec is actually meaningless, as there is
15444 # no search path for DLLs.
15445 hardcode_libdir_flag_spec_GCJ=' '
15446 allow_undefined_flag_GCJ=unsupported
15447 # Tell ltmain to make .lib files, not .a files.
15448 libext=lib
15449 # Tell ltmain to make .dll files, not .so files.
15450 shrext=".dll"
15451 # FIXME: Setting linknames here is a bad hack.
15452 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15453 # The linker will automatically build a .lib file if we build a DLL.
15454 old_archive_From_new_cmds_GCJ='true'
15455 # FIXME: Should let the user specify the lib program.
15456 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
15457 fix_srcfile_path='`cygpath -w "$srcfile"`'
15458 enable_shared_with_static_runtimes_GCJ=yes
15459 ;;
15460
15461 darwin* | rhapsody*)
15462 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
15463 archive_cmds_need_lc_GCJ=no
15464 case "$host_os" in
15465 rhapsody* | darwin1.[012])
15466 allow_undefined_flag_GCJ='-undefined suppress'
15467 ;;
15468 *) # Darwin 1.3 on
15469 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15470 ;;
15471 esac
15472 # FIXME: Relying on posixy $() will cause problems for
15473 # cross-compilation, but unfortunately the echo tests do not
15474 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
15475 # `"' quotes if we put them in here... so don't!
15476 lt_int_apple_cc_single_mod=no
15477 output_verbose_link_cmd='echo'
15478 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15479 lt_int_apple_cc_single_mod=yes
15480 fi
15481 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15482 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15483 else
15484 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'
15485 fi
15486 module_cmds_GCJ='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
15487 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15488 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15489 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}'
15490 else
15491 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}'
15492 fi
15493 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}'
15494 hardcode_direct_GCJ=no
15495 hardcode_automatic_GCJ=yes
15496 hardcode_shlibpath_var_GCJ=unsupported
15497 whole_archive_flag_spec_GCJ='-all_load $convenience'
15498 link_all_deplibs_GCJ=yes
15499 fi
15500 ;;
15501
15502 dgux*)
15503 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15504 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15505 hardcode_shlibpath_var_GCJ=no
15506 ;;
15507
15508 freebsd1*)
15509 ld_shlibs_GCJ=no
15510 ;;
15511
15512 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15513 # support. Future versions do this automatically, but an explicit c++rt0.o
15514 # does not break anything, and helps significantly (at the cost of a little
15515 # extra space).
15516 freebsd2.2*)
15517 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15518 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15519 hardcode_direct_GCJ=yes
15520 hardcode_shlibpath_var_GCJ=no
15521 ;;
15522
15523 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15524 freebsd2*)
15525 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15526 hardcode_direct_GCJ=yes
15527 hardcode_minus_L_GCJ=yes
15528 hardcode_shlibpath_var_GCJ=no
15529 ;;
15530
15531 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15532 freebsd*)
15533 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15534 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15535 hardcode_direct_GCJ=yes
15536 hardcode_shlibpath_var_GCJ=no
15537 ;;
15538
15539 hpux9*)
15540 if test "$GCC" = yes; then
15541 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'
15542 else
15543 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'
15544 fi
15545 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15546 hardcode_libdir_separator_GCJ=:
15547 hardcode_direct_GCJ=yes
15548
15549 # hardcode_minus_L: Not really in the search PATH,
15550 # but as the default location of the library.
15551 hardcode_minus_L_GCJ=yes
15552 export_dynamic_flag_spec_GCJ='${wl}-E'
15553 ;;
15554
15555 hpux10* | hpux11*)
15556 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15557 case "$host_cpu" in
15558 hppa*64*|ia64*)
15559 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15560 ;;
15561 *)
15562 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15563 ;;
15564 esac
15565 else
15566 case "$host_cpu" in
15567 hppa*64*|ia64*)
15568 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15569 ;;
15570 *)
15571 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15572 ;;
15573 esac
15574 fi
15575 if test "$with_gnu_ld" = no; then
15576 case "$host_cpu" in
15577 hppa*64*)
15578 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15579 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
15580 hardcode_libdir_separator_GCJ=:
15581 hardcode_direct_GCJ=no
15582 hardcode_shlibpath_var_GCJ=no
15583 ;;
15584 ia64*)
15585 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15586 hardcode_direct_GCJ=no
15587 hardcode_shlibpath_var_GCJ=no
15588
15589 # hardcode_minus_L: Not really in the search PATH,
15590 # but as the default location of the library.
15591 hardcode_minus_L_GCJ=yes
15592 ;;
15593 *)
15594 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15595 hardcode_libdir_separator_GCJ=:
15596 hardcode_direct_GCJ=yes
15597 export_dynamic_flag_spec_GCJ='${wl}-E'
15598
15599 # hardcode_minus_L: Not really in the search PATH,
15600 # but as the default location of the library.
15601 hardcode_minus_L_GCJ=yes
15602 ;;
15603 esac
15604 fi
15605 ;;
15606
15607 irix5* | irix6* | nonstopux*)
15608 if test "$GCC" = yes; then
15609 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'
15610 else
15611 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'
15612 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
15613 fi
15614 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15615 hardcode_libdir_separator_GCJ=:
15616 link_all_deplibs_GCJ=yes
15617 ;;
15618
15619 netbsd*)
15620 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15621 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15622 else
15623 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15624 fi
15625 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15626 hardcode_direct_GCJ=yes
15627 hardcode_shlibpath_var_GCJ=no
15628 ;;
15629
15630 newsos6)
15631 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15632 hardcode_direct_GCJ=yes
15633 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15634 hardcode_libdir_separator_GCJ=:
15635 hardcode_shlibpath_var_GCJ=no
15636 ;;
15637
15638 openbsd*)
15639 hardcode_direct_GCJ=yes
15640 hardcode_shlibpath_var_GCJ=no
15641 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15642 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15643 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15644 export_dynamic_flag_spec_GCJ='${wl}-E'
15645 else
15646 case $host_os in
15647 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15648 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15649 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15650 ;;
15651 *)
15652 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15653 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15654 ;;
15655 esac
15656 fi
15657 ;;
15658
15659 os2*)
15660 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15661 hardcode_minus_L_GCJ=yes
15662 allow_undefined_flag_GCJ=unsupported
15663 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'
15664 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15665 ;;
15666
15667 osf3*)
15668 if test "$GCC" = yes; then
15669 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
15670 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'
15671 else
15672 allow_undefined_flag_GCJ=' -expect_unresolved \*'
15673 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'
15674 fi
15675 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15676 hardcode_libdir_separator_GCJ=:
15677 ;;
15678
15679 osf4* | osf5*) # as osf3* with the addition of -msym flag
15680 if test "$GCC" = yes; then
15681 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
15682 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'
15683 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15684 else
15685 allow_undefined_flag_GCJ=' -expect_unresolved \*'
15686 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'
15687 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~
15688 $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'
15689
15690 # Both c and cxx compiler support -rpath directly
15691 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
15692 fi
15693 hardcode_libdir_separator_GCJ=:
15694 ;;
15695
15696 sco3.2v5*)
15697 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15698 hardcode_shlibpath_var_GCJ=no
15699 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
15700 runpath_var=LD_RUN_PATH
15701 hardcode_runpath_var=yes
15702 ;;
15703
15704 solaris*)
15705 no_undefined_flag_GCJ=' -z text'
15706 if test "$GCC" = yes; then
15707 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15708 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15709 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15710 else
15711 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15712 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15713 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15714 fi
15715 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15716 hardcode_shlibpath_var_GCJ=no
15717 case $host_os in
15718 solaris2.[0-5] | solaris2.[0-5].*) ;;
15719 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
15720 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
15721 esac
15722 link_all_deplibs_GCJ=yes
15723 ;;
15724
15725 sunos4*)
15726 if test "x$host_vendor" = xsequent; then
15727 # Use $CC to link under sequent, because it throws in some extra .o
15728 # files that make .init and .fini sections work.
15729 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15730 else
15731 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15732 fi
15733 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15734 hardcode_direct_GCJ=yes
15735 hardcode_minus_L_GCJ=yes
15736 hardcode_shlibpath_var_GCJ=no
15737 ;;
15738
15739 sysv4)
15740 case $host_vendor in
15741 sni)
15742 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15743 hardcode_direct_GCJ=yes # is this really true???
15744 ;;
15745 siemens)
15746 ## LD is ld it makes a PLAMLIB
15747 ## CC just makes a GrossModule.
15748 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15749 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
15750 hardcode_direct_GCJ=no
15751 ;;
15752 motorola)
15753 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15754 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
15755 ;;
15756 esac
15757 runpath_var='LD_RUN_PATH'
15758 hardcode_shlibpath_var_GCJ=no
15759 ;;
15760
15761 sysv4.3*)
15762 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15763 hardcode_shlibpath_var_GCJ=no
15764 export_dynamic_flag_spec_GCJ='-Bexport'
15765 ;;
15766
15767 sysv4*MP*)
15768 if test -d /usr/nec; then
15769 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15770 hardcode_shlibpath_var_GCJ=no
15771 runpath_var=LD_RUN_PATH
15772 hardcode_runpath_var=yes
15773 ld_shlibs_GCJ=yes
15774 fi
15775 ;;
15776
15777 sysv4.2uw2*)
15778 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15779 hardcode_direct_GCJ=yes
15780 hardcode_minus_L_GCJ=no
15781 hardcode_shlibpath_var_GCJ=no
15782 hardcode_runpath_var=yes
15783 runpath_var=LD_RUN_PATH
15784 ;;
15785
15786 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
15787 no_undefined_flag_GCJ='${wl}-z ${wl}text'
15788 if test "$GCC" = yes; then
15789 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15790 else
15791 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15792 fi
15793 runpath_var='LD_RUN_PATH'
15794 hardcode_shlibpath_var_GCJ=no
15795 ;;
15796
15797 sysv5*)
15798 no_undefined_flag_GCJ=' -z text'
15799 # $CC -shared without GNU ld will not create a library from C++
15800 # object files and a static libstdc++, better avoid it by now
15801 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15802 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15803 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15804 hardcode_libdir_flag_spec_GCJ=
15805 hardcode_shlibpath_var_GCJ=no
15806 runpath_var='LD_RUN_PATH'
15807 ;;
15808
15809 uts4*)
15810 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15811 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15812 hardcode_shlibpath_var_GCJ=no
15813 ;;
15814
15815 *)
15816 ld_shlibs_GCJ=no
15817 ;;
15818 esac
15819 fi
15820
15821echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
15822echo "${ECHO_T}$ld_shlibs_GCJ" >&6
15823test "$ld_shlibs_GCJ" = no && can_build_shared=no
15824
15825variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15826if test "$GCC" = yes; then
15827 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15828fi
15829
15830#
15831# Do we need to explicitly link libc?
15832#
15833case "x$archive_cmds_need_lc_GCJ" in
15834x|xyes)
15835 # Assume -lc should be added
15836 archive_cmds_need_lc_GCJ=yes
15837
15838 if test "$enable_shared" = yes && test "$GCC" = yes; then
15839 case $archive_cmds_GCJ in
15840 *'~'*)
15841 # FIXME: we may have to deal with multi-command sequences.
15842 ;;
15843 '$CC '*)
15844 # Test whether the compiler implicitly links with -lc since on some
15845 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15846 # to ld, don't add -lc before -lgcc.
15847 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15848echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
15849 $rm conftest*
15850 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15851
15852 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15853 (eval $ac_compile) 2>&5
15854 ac_status=$?
15855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15856 (exit $ac_status); } 2>conftest.err; then
15857 soname=conftest
15858 lib=conftest
15859 libobjs=conftest.$ac_objext
15860 deplibs=
15861 wl=$lt_prog_compiler_wl_GCJ
15862 compiler_flags=-v
15863 linker_flags=-v
15864 verstring=
15865 output_objdir=.
15866 libname=conftest
15867 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
15868 allow_undefined_flag_GCJ=
15869 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15870 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15871 ac_status=$?
15872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15873 (exit $ac_status); }
15874 then
15875 archive_cmds_need_lc_GCJ=no
15876 else
15877 archive_cmds_need_lc_GCJ=yes
15878 fi
15879 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
15880 else
15881 cat conftest.err 1>&5
15882 fi
15883 $rm conftest*
15884 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
15885echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
15886 ;;
15887 esac
15888 fi
15889 ;;
15890esac
15891
15892echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15893echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15894hardcode_action_GCJ=
15895if test -n "$hardcode_libdir_flag_spec_GCJ" || \
15896 test -n "$runpath_var GCJ" || \
15897 test "X$hardcode_automatic_GCJ"="Xyes" ; then
15898
15899 # We can hardcode non-existant directories.
15900 if test "$hardcode_direct_GCJ" != no &&
15901 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15902 # have to relink, otherwise we might link with an installed library
15903 # when we should be linking with a yet-to-be-installed one
15904 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
15905 test "$hardcode_minus_L_GCJ" != no; then
15906 # Linking always hardcodes the temporary library directory.
15907 hardcode_action_GCJ=relink
15908 else
15909 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15910 hardcode_action_GCJ=immediate
15911 fi
15912else
15913 # We cannot hardcode anything, or else we can only hardcode existing
15914 # directories.
15915 hardcode_action_GCJ=unsupported
15916fi
15917echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
15918echo "${ECHO_T}$hardcode_action_GCJ" >&6
15919
15920if test "$hardcode_action_GCJ" = relink; then
15921 # Fast installation is not supported
15922 enable_fast_install=no
15923elif test "$shlibpath_overrides_runpath" = yes ||
15924 test "$enable_shared" = no; then
15925 # Fast installation is not necessary
15926 enable_fast_install=needless
15927fi
15928
15929striplib=
15930old_striplib=
15931echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15932echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15933if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15934 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15935 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15936 echo "$as_me:$LINENO: result: yes" >&5
15937echo "${ECHO_T}yes" >&6
15938else
15939# FIXME - insert some real tests, host_os isn't really good enough
15940 case $host_os in
15941 darwin*)
15942 if test -n "$STRIP" ; then
15943 striplib="$STRIP -x"
15944 echo "$as_me:$LINENO: result: yes" >&5
15945echo "${ECHO_T}yes" >&6
15946 else
15947 echo "$as_me:$LINENO: result: no" >&5
15948echo "${ECHO_T}no" >&6
15949fi
15950 ;;
15951 *)
15952 echo "$as_me:$LINENO: result: no" >&5
15953echo "${ECHO_T}no" >&6
15954 ;;
15955 esac
15956fi
15957
15958echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15959echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
15960library_names_spec=
15961libname_spec='lib$name'
15962soname_spec=
15963shrext=".so"
15964postinstall_cmds=
15965postuninstall_cmds=
15966finish_cmds=
15967finish_eval=
15968shlibpath_var=
15969shlibpath_overrides_runpath=unknown
15970version_type=none
15971dynamic_linker="$host_os ld.so"
15972sys_lib_dlsearch_path_spec="/lib /usr/lib"
15973if test "$GCC" = yes; then
15974 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15975 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15976 # if the path contains ";" then we assume it to be the separator
15977 # otherwise default to the standard path separator (i.e. ":") - it is
15978 # assumed that no part of a normal pathname contains ";" but that should
15979 # okay in the real world where ";" in dirpaths is itself problematic.
15980 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15981 else
15982 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15983 fi
15984else
15985 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15986fi
15987need_lib_prefix=unknown
15988hardcode_into_libs=no
15989
15990# when you set need_version to no, make sure it does not cause -set_version
15991# flags to be left without arguments
15992need_version=unknown
15993
15994case $host_os in
15995aix3*)
15996 version_type=linux
15997 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15998 shlibpath_var=LIBPATH
15999
16000 # AIX 3 has no versioning support, so we append a major version to the name.
16001 soname_spec='${libname}${release}${shared_ext}$major'
16002 ;;
16003
16004aix4* | aix5*)
16005 version_type=linux
16006 need_lib_prefix=no
16007 need_version=no
16008 hardcode_into_libs=yes
16009 if test "$host_cpu" = ia64; then
16010 # AIX 5 supports IA64
16011 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16012 shlibpath_var=LD_LIBRARY_PATH
16013 else
16014 # With GCC up to 2.95.x, collect2 would create an import file
16015 # for dependence libraries. The import file would start with
16016 # the line `#! .'. This would cause the generated library to
16017 # depend on `.', always an invalid library. This was fixed in
16018 # development snapshots of GCC prior to 3.0.
16019 case $host_os in
16020 aix4 | aix4.[01] | aix4.[01].*)
16021 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16022 echo ' yes '
16023 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16024 :
16025 else
16026 can_build_shared=no
16027 fi
16028 ;;
16029 esac
16030 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16031 # soname into executable. Probably we can add versioning support to
16032 # collect2, so additional links can be useful in future.
16033 if test "$aix_use_runtimelinking" = yes; then
16034 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16035 # instead of lib<name>.a to let people know that these are not
16036 # typical AIX shared libraries.
16037 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16038 else
16039 # We preserve .a as extension for shared libraries through AIX4.2
16040 # and later when we are not doing run time linking.
16041 library_names_spec='${libname}${release}.a $libname.a'
16042 soname_spec='${libname}${release}${shared_ext}$major'
16043 fi
16044 shlibpath_var=LIBPATH
16045 fi
16046 ;;
16047
16048amigaos*)
16049 library_names_spec='$libname.ixlibrary $libname.a'
16050 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16051 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'
16052 ;;
16053
16054beos*)
16055 library_names_spec='${libname}${shared_ext}'
16056 dynamic_linker="$host_os ld.so"
16057 shlibpath_var=LIBRARY_PATH
16058 ;;
16059
16060bsdi4*)
16061 version_type=linux
16062 need_version=no
16063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16064 soname_spec='${libname}${release}${shared_ext}$major'
16065 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16066 shlibpath_var=LD_LIBRARY_PATH
16067 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16068 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16069 # the default ld.so.conf also contains /usr/contrib/lib and
16070 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16071 # libtool to hard-code these into programs
16072 ;;
16073
16074cygwin* | mingw* | pw32*)
16075 version_type=windows
16076 shrext=".dll"
16077 need_version=no
16078 need_lib_prefix=no
16079
16080 case $GCC,$host_os in
16081 yes,cygwin* | yes,mingw* | yes,pw32*)
16082 library_names_spec='$libname.dll.a'
16083 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16084 postinstall_cmds='base_file=`basename \${file}`~
16085 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16086 dldir=$destdir/`dirname \$dlpath`~
16087 test -d \$dldir || mkdir -p \$dldir~
16088 $install_prog $dir/$dlname \$dldir/$dlname'
16089 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16090 dlpath=$dir/\$dldll~
16091 $rm \$dlpath'
16092 shlibpath_overrides_runpath=yes
16093
16094 case $host_os in
16095 cygwin*)
16096 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16097 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16098 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
16099 ;;
16100 mingw*)
16101 # MinGW DLLs use traditional 'lib' prefix
16102 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16103 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16104 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16105 # It is most probably a Windows format PATH printed by
16106 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16107 # path with ; separators, and with drive letters. We can handle the
16108 # drive letters (cygwin fileutils understands them), so leave them,
16109 # especially as we might pass files found there to a mingw objdump,
16110 # which wouldn't understand a cygwinified path. Ahh.
16111 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16112 else
16113 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16114 fi
16115 ;;
16116 pw32*)
16117 # pw32 DLLs use 'pw' prefix rather than 'lib'
16118 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16119 ;;
16120 esac
16121 ;;
16122
16123 *)
16124 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16125 ;;
16126 esac
16127 dynamic_linker='Win32 ld.exe'
16128 # FIXME: first we should search . and the directory the executable is in
16129 shlibpath_var=PATH
16130 ;;
16131
16132darwin* | rhapsody*)
16133 dynamic_linker="$host_os dyld"
16134 version_type=darwin
16135 need_lib_prefix=no
16136 need_version=no
16137 # FIXME: Relying on posixy $() will cause problems for
16138 # cross-compilation, but unfortunately the echo tests do not
16139 # yet detect zsh echo's removal of \ escapes.
16140 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16141 soname_spec='${libname}${release}${major}$shared_ext'
16142 shlibpath_overrides_runpath=yes
16143 shlibpath_var=DYLD_LIBRARY_PATH
16144 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
16145 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16146 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
16147 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"`
16148 fi
16149 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16150 ;;
16151
16152dgux*)
16153 version_type=linux
16154 need_lib_prefix=no
16155 need_version=no
16156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16157 soname_spec='${libname}${release}${shared_ext}$major'
16158 shlibpath_var=LD_LIBRARY_PATH
16159 ;;
16160
16161freebsd1*)
16162 dynamic_linker=no
16163 ;;
16164
16165freebsd*)
16166 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16167 version_type=freebsd-$objformat
16168 case $version_type in
16169 freebsd-elf*)
16170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16171 need_version=no
16172 need_lib_prefix=no
16173 ;;
16174 freebsd-*)
16175 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16176 need_version=yes
16177 ;;
16178 esac
16179 shlibpath_var=LD_LIBRARY_PATH
16180 case $host_os in
16181 freebsd2*)
16182 shlibpath_overrides_runpath=yes
16183 ;;
16184 freebsd3.01* | freebsdelf3.01*)
16185 shlibpath_overrides_runpath=yes
16186 hardcode_into_libs=yes
16187 ;;
16188 *) # from 3.2 on
16189 shlibpath_overrides_runpath=no
16190 hardcode_into_libs=yes
16191 ;;
16192 esac
16193 ;;
16194
16195gnu*)
16196 version_type=linux
16197 need_lib_prefix=no
16198 need_version=no
16199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16200 soname_spec='${libname}${release}${shared_ext}$major'
16201 shlibpath_var=LD_LIBRARY_PATH
16202 hardcode_into_libs=yes
16203 ;;
16204
16205hpux9* | hpux10* | hpux11*)
16206 # Give a soname corresponding to the major version so that dld.sl refuses to
16207 # link against other versions.
16208 version_type=sunos
16209 need_lib_prefix=no
16210 need_version=no
16211 case "$host_cpu" in
16212 ia64*)
16213 shrext='.so'
16214 hardcode_into_libs=yes
16215 dynamic_linker="$host_os dld.so"
16216 shlibpath_var=LD_LIBRARY_PATH
16217 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16219 soname_spec='${libname}${release}${shared_ext}$major'
16220 if test "X$HPUX_IA64_MODE" = X32; then
16221 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16222 else
16223 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16224 fi
16225 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16226 ;;
16227 hppa*64*)
16228 shrext='.sl'
16229 hardcode_into_libs=yes
16230 dynamic_linker="$host_os dld.sl"
16231 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16232 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16234 soname_spec='${libname}${release}${shared_ext}$major'
16235 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16236 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16237 ;;
16238 *)
16239 shrext='.sl'
16240 dynamic_linker="$host_os dld.sl"
16241 shlibpath_var=SHLIB_PATH
16242 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16243 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16244 soname_spec='${libname}${release}${shared_ext}$major'
16245 ;;
16246 esac
16247 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16248 postinstall_cmds='chmod 555 $lib'
16249 ;;
16250
16251irix5* | irix6* | nonstopux*)
16252 case $host_os in
16253 nonstopux*) version_type=nonstopux ;;
16254 *)
16255 if test "$lt_cv_prog_gnu_ld" = yes; then
16256 version_type=linux
16257 else
16258 version_type=irix
16259 fi ;;
16260 esac
16261 need_lib_prefix=no
16262 need_version=no
16263 soname_spec='${libname}${release}${shared_ext}$major'
16264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16265 case $host_os in
16266 irix5* | nonstopux*)
16267 libsuff= shlibsuff=
16268 ;;
16269 *)
16270 case $LD in # libtool.m4 will add one of these switches to LD
16271 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16272 libsuff= shlibsuff= libmagic=32-bit;;
16273 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16274 libsuff=32 shlibsuff=N32 libmagic=N32;;
16275 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16276 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16277 *) libsuff= shlibsuff= libmagic=never-match;;
16278 esac
16279 ;;
16280 esac
16281 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16282 shlibpath_overrides_runpath=no
16283 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16284 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16285 hardcode_into_libs=yes
16286 ;;
16287
16288# No shared lib support for Linux oldld, aout, or coff.
16289linux*oldld* | linux*aout* | linux*coff*)
16290 dynamic_linker=no
16291 ;;
16292
16293# This must be Linux ELF.
16294linux*)
16295 version_type=linux
16296 need_lib_prefix=no
16297 need_version=no
16298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16299 soname_spec='${libname}${release}${shared_ext}$major'
16300 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16301 shlibpath_var=LD_LIBRARY_PATH
16302 shlibpath_overrides_runpath=no
16303 # This implies no fast_install, which is unacceptable.
16304 # Some rework will be needed to allow for fast_install
16305 # before this can be enabled.
16306 hardcode_into_libs=yes
16307
16308 # We used to test for /lib/ld.so.1 and disable shared libraries on
16309 # powerpc, because MkLinux only supported shared libraries with the
16310 # GNU dynamic linker. Since this was broken with cross compilers,
16311 # most powerpc-linux boxes support dynamic linking these days and
16312 # people can always --disable-shared, the test was removed, and we
16313 # assume the GNU/Linux dynamic linker is in use.
16314 dynamic_linker='GNU/Linux ld.so'
16315 ;;
16316
16317netbsd*)
16318 version_type=sunos
16319 need_lib_prefix=no
16320 need_version=no
16321 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16323 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16324 dynamic_linker='NetBSD (a.out) ld.so'
16325 else
16326 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
16327 soname_spec='${libname}${release}${shared_ext}$major'
16328 dynamic_linker='NetBSD ld.elf_so'
16329 fi
16330 shlibpath_var=LD_LIBRARY_PATH
16331 shlibpath_overrides_runpath=yes
16332 hardcode_into_libs=yes
16333 ;;
16334
16335newsos6)
16336 version_type=linux
16337 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16338 shlibpath_var=LD_LIBRARY_PATH
16339 shlibpath_overrides_runpath=yes
16340 ;;
16341
16342nto-qnx)
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 shlibpath_var=LD_LIBRARY_PATH
16349 shlibpath_overrides_runpath=yes
16350 ;;
16351
16352openbsd*)
16353 version_type=sunos
16354 need_lib_prefix=no
16355 need_version=no
16356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16357 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16358 shlibpath_var=LD_LIBRARY_PATH
16359 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16360 case $host_os in
16361 openbsd2.[89] | openbsd2.[89].*)
16362 shlibpath_overrides_runpath=no
16363 ;;
16364 *)
16365 shlibpath_overrides_runpath=yes
16366 ;;
16367 esac
16368 else
16369 shlibpath_overrides_runpath=yes
16370 fi
16371 ;;
16372
16373os2*)
16374 libname_spec='$name'
16375 shrext=".dll"
16376 need_lib_prefix=no
16377 library_names_spec='$libname${shared_ext} $libname.a'
16378 dynamic_linker='OS/2 ld.exe'
16379 shlibpath_var=LIBPATH
16380 ;;
16381
16382osf3* | osf4* | osf5*)
16383 version_type=osf
16384 need_lib_prefix=no
16385 need_version=no
16386 soname_spec='${libname}${release}${shared_ext}$major'
16387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16388 shlibpath_var=LD_LIBRARY_PATH
16389 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16390 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16391 ;;
16392
16393sco3.2v5*)
16394 version_type=osf
16395 soname_spec='${libname}${release}${shared_ext}$major'
16396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16397 shlibpath_var=LD_LIBRARY_PATH
16398 ;;
16399
16400solaris*)
16401 version_type=linux
16402 need_lib_prefix=no
16403 need_version=no
16404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16405 soname_spec='${libname}${release}${shared_ext}$major'
16406 shlibpath_var=LD_LIBRARY_PATH
16407 shlibpath_overrides_runpath=yes
16408 hardcode_into_libs=yes
16409 # ldd complains unless libraries are executable
16410 postinstall_cmds='chmod +x $lib'
16411 ;;
16412
16413sunos4*)
16414 version_type=sunos
16415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16416 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16417 shlibpath_var=LD_LIBRARY_PATH
16418 shlibpath_overrides_runpath=yes
16419 if test "$with_gnu_ld" = yes; then
16420 need_lib_prefix=no
16421 fi
16422 need_version=yes
16423 ;;
16424
16425sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16426 version_type=linux
16427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16428 soname_spec='${libname}${release}${shared_ext}$major'
16429 shlibpath_var=LD_LIBRARY_PATH
16430 case $host_vendor in
16431 sni)
16432 shlibpath_overrides_runpath=no
16433 need_lib_prefix=no
16434 export_dynamic_flag_spec='${wl}-Blargedynsym'
16435 runpath_var=LD_RUN_PATH
16436 ;;
16437 siemens)
16438 need_lib_prefix=no
16439 ;;
16440 motorola)
16441 need_lib_prefix=no
16442 need_version=no
16443 shlibpath_overrides_runpath=no
16444 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16445 ;;
16446 esac
16447 ;;
16448
16449sysv4*MP*)
16450 if test -d /usr/nec ;then
16451 version_type=linux
16452 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16453 soname_spec='$libname${shared_ext}.$major'
16454 shlibpath_var=LD_LIBRARY_PATH
16455 fi
16456 ;;
16457
16458uts4*)
16459 version_type=linux
16460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16461 soname_spec='${libname}${release}${shared_ext}$major'
16462 shlibpath_var=LD_LIBRARY_PATH
16463 ;;
16464
16465*)
16466 dynamic_linker=no
16467 ;;
16468esac
16469echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16470echo "${ECHO_T}$dynamic_linker" >&6
16471test "$dynamic_linker" = no && can_build_shared=no
16472
16473if test "x$enable_dlopen" != xyes; then
16474 enable_dlopen=unknown
16475 enable_dlopen_self=unknown
16476 enable_dlopen_self_static=unknown
16477else
16478 lt_cv_dlopen=no
16479 lt_cv_dlopen_libs=
16480
16481 case $host_os in
16482 beos*)
16483 lt_cv_dlopen="load_add_on"
16484 lt_cv_dlopen_libs=
16485 lt_cv_dlopen_self=yes
16486 ;;
16487
16488 mingw* | pw32*)
16489 lt_cv_dlopen="LoadLibrary"
16490 lt_cv_dlopen_libs=
16491 ;;
16492
16493 cygwin*)
16494 lt_cv_dlopen="dlopen"
16495 lt_cv_dlopen_libs=
16496 ;;
16497
16498 darwin*)
16499 # if libdl is installed we need to link against it
16500 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16501echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16502if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16503 echo $ECHO_N "(cached) $ECHO_C" >&6
16504else
16505 ac_check_lib_save_LIBS=$LIBS
16506LIBS="-ldl $LIBS"
16507cat >conftest.$ac_ext <<_ACEOF
16508#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000016509/* confdefs.h. */
16510_ACEOF
16511cat confdefs.h >>conftest.$ac_ext
16512cat >>conftest.$ac_ext <<_ACEOF
16513/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016514
16515/* Override any gcc2 internal prototype to avoid an error. */
16516#ifdef __cplusplus
16517extern "C"
16518#endif
16519/* We use char because int might match the return type of a gcc2
16520 builtin and then its argument prototype would still apply. */
16521char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000016522int
16523main ()
16524{
16525dlopen ();
16526 ;
16527 return 0;
16528}
16529_ACEOF
16530rm -f conftest.$ac_objext conftest$ac_exeext
16531if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16532 (eval $ac_link) 2>&5
16533 ac_status=$?
16534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16535 (exit $ac_status); } &&
16536 { ac_try='test -s conftest$ac_exeext'
16537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16538 (eval $ac_try) 2>&5
16539 ac_status=$?
16540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16541 (exit $ac_status); }; }; then
16542 ac_cv_lib_dl_dlopen=yes
16543else
16544 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016545sed 's/^/| /' conftest.$ac_ext >&5
16546
John Criswell47fdd832003-07-14 16:52:07 +000016547ac_cv_lib_dl_dlopen=no
16548fi
16549rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16550LIBS=$ac_check_lib_save_LIBS
16551fi
16552echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16553echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16554if test $ac_cv_lib_dl_dlopen = yes; then
16555 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16556else
16557
16558 lt_cv_dlopen="dyld"
16559 lt_cv_dlopen_libs=
16560 lt_cv_dlopen_self=yes
16561
16562fi
16563
16564 ;;
16565
16566 *)
16567 echo "$as_me:$LINENO: checking for shl_load" >&5
16568echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
16569if test "${ac_cv_func_shl_load+set}" = set; then
16570 echo $ECHO_N "(cached) $ECHO_C" >&6
16571else
16572 cat >conftest.$ac_ext <<_ACEOF
16573#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000016574/* confdefs.h. */
16575_ACEOF
16576cat confdefs.h >>conftest.$ac_ext
16577cat >>conftest.$ac_ext <<_ACEOF
16578/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016579/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000016580 which can conflict with char shl_load (); below.
16581 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16582 <limits.h> exists even on freestanding compilers. */
16583#ifdef __STDC__
16584# include <limits.h>
16585#else
16586# include <assert.h>
16587#endif
John Criswell47fdd832003-07-14 16:52:07 +000016588/* Override any gcc2 internal prototype to avoid an error. */
16589#ifdef __cplusplus
16590extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000016591{
John Criswell47fdd832003-07-14 16:52:07 +000016592#endif
16593/* We use char because int might match the return type of a gcc2
16594 builtin and then its argument prototype would still apply. */
16595char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000016596/* The GNU C library defines this for functions which it implements
16597 to always fail with ENOSYS. Some functions are actually named
16598 something starting with __ and the normal name is an alias. */
16599#if defined (__stub_shl_load) || defined (__stub___shl_load)
16600choke me
16601#else
John Criswell0c38eaf2003-09-10 15:17:25 +000016602char (*f) () = shl_load;
16603#endif
16604#ifdef __cplusplus
16605}
John Criswell47fdd832003-07-14 16:52:07 +000016606#endif
16607
John Criswell0c38eaf2003-09-10 15:17:25 +000016608int
16609main ()
16610{
16611return f != shl_load;
John Criswell47fdd832003-07-14 16:52:07 +000016612 ;
16613 return 0;
16614}
16615_ACEOF
16616rm -f conftest.$ac_objext conftest$ac_exeext
16617if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16618 (eval $ac_link) 2>&5
16619 ac_status=$?
16620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16621 (exit $ac_status); } &&
16622 { ac_try='test -s conftest$ac_exeext'
16623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16624 (eval $ac_try) 2>&5
16625 ac_status=$?
16626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16627 (exit $ac_status); }; }; then
16628 ac_cv_func_shl_load=yes
16629else
16630 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016631sed 's/^/| /' conftest.$ac_ext >&5
16632
John Criswell47fdd832003-07-14 16:52:07 +000016633ac_cv_func_shl_load=no
16634fi
16635rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16636fi
16637echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16638echo "${ECHO_T}$ac_cv_func_shl_load" >&6
16639if test $ac_cv_func_shl_load = yes; then
16640 lt_cv_dlopen="shl_load"
16641else
16642 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16643echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
16644if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16645 echo $ECHO_N "(cached) $ECHO_C" >&6
16646else
16647 ac_check_lib_save_LIBS=$LIBS
16648LIBS="-ldld $LIBS"
16649cat >conftest.$ac_ext <<_ACEOF
16650#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000016651/* confdefs.h. */
16652_ACEOF
16653cat confdefs.h >>conftest.$ac_ext
16654cat >>conftest.$ac_ext <<_ACEOF
16655/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016656
16657/* Override any gcc2 internal prototype to avoid an error. */
16658#ifdef __cplusplus
16659extern "C"
16660#endif
16661/* We use char because int might match the return type of a gcc2
16662 builtin and then its argument prototype would still apply. */
16663char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000016664int
16665main ()
16666{
16667shl_load ();
16668 ;
16669 return 0;
16670}
16671_ACEOF
16672rm -f conftest.$ac_objext conftest$ac_exeext
16673if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16674 (eval $ac_link) 2>&5
16675 ac_status=$?
16676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16677 (exit $ac_status); } &&
16678 { ac_try='test -s conftest$ac_exeext'
16679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16680 (eval $ac_try) 2>&5
16681 ac_status=$?
16682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16683 (exit $ac_status); }; }; then
16684 ac_cv_lib_dld_shl_load=yes
16685else
16686 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016687sed 's/^/| /' conftest.$ac_ext >&5
16688
John Criswell47fdd832003-07-14 16:52:07 +000016689ac_cv_lib_dld_shl_load=no
16690fi
16691rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16692LIBS=$ac_check_lib_save_LIBS
16693fi
16694echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16695echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
16696if test $ac_cv_lib_dld_shl_load = yes; then
16697 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16698else
16699 echo "$as_me:$LINENO: checking for dlopen" >&5
16700echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
16701if test "${ac_cv_func_dlopen+set}" = set; then
16702 echo $ECHO_N "(cached) $ECHO_C" >&6
16703else
16704 cat >conftest.$ac_ext <<_ACEOF
16705#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000016706/* confdefs.h. */
16707_ACEOF
16708cat confdefs.h >>conftest.$ac_ext
16709cat >>conftest.$ac_ext <<_ACEOF
16710/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016711/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000016712 which can conflict with char dlopen (); below.
16713 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16714 <limits.h> exists even on freestanding compilers. */
16715#ifdef __STDC__
16716# include <limits.h>
16717#else
16718# include <assert.h>
16719#endif
John Criswell47fdd832003-07-14 16:52:07 +000016720/* Override any gcc2 internal prototype to avoid an error. */
16721#ifdef __cplusplus
16722extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000016723{
John Criswell47fdd832003-07-14 16:52:07 +000016724#endif
16725/* We use char because int might match the return type of a gcc2
16726 builtin and then its argument prototype would still apply. */
16727char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000016728/* The GNU C library defines this for functions which it implements
16729 to always fail with ENOSYS. Some functions are actually named
16730 something starting with __ and the normal name is an alias. */
16731#if defined (__stub_dlopen) || defined (__stub___dlopen)
16732choke me
16733#else
John Criswell0c38eaf2003-09-10 15:17:25 +000016734char (*f) () = dlopen;
16735#endif
16736#ifdef __cplusplus
16737}
John Criswell47fdd832003-07-14 16:52:07 +000016738#endif
16739
John Criswell0c38eaf2003-09-10 15:17:25 +000016740int
16741main ()
16742{
16743return f != dlopen;
John Criswell47fdd832003-07-14 16:52:07 +000016744 ;
16745 return 0;
16746}
16747_ACEOF
16748rm -f conftest.$ac_objext conftest$ac_exeext
16749if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16750 (eval $ac_link) 2>&5
16751 ac_status=$?
16752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16753 (exit $ac_status); } &&
16754 { ac_try='test -s conftest$ac_exeext'
16755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16756 (eval $ac_try) 2>&5
16757 ac_status=$?
16758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16759 (exit $ac_status); }; }; then
16760 ac_cv_func_dlopen=yes
16761else
16762 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016763sed 's/^/| /' conftest.$ac_ext >&5
16764
John Criswell47fdd832003-07-14 16:52:07 +000016765ac_cv_func_dlopen=no
16766fi
16767rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16768fi
16769echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16770echo "${ECHO_T}$ac_cv_func_dlopen" >&6
16771if test $ac_cv_func_dlopen = yes; then
16772 lt_cv_dlopen="dlopen"
16773else
16774 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16775echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16776if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16777 echo $ECHO_N "(cached) $ECHO_C" >&6
16778else
16779 ac_check_lib_save_LIBS=$LIBS
16780LIBS="-ldl $LIBS"
16781cat >conftest.$ac_ext <<_ACEOF
16782#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000016783/* confdefs.h. */
16784_ACEOF
16785cat confdefs.h >>conftest.$ac_ext
16786cat >>conftest.$ac_ext <<_ACEOF
16787/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016788
16789/* Override any gcc2 internal prototype to avoid an error. */
16790#ifdef __cplusplus
16791extern "C"
16792#endif
16793/* We use char because int might match the return type of a gcc2
16794 builtin and then its argument prototype would still apply. */
16795char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000016796int
16797main ()
16798{
16799dlopen ();
16800 ;
16801 return 0;
16802}
16803_ACEOF
16804rm -f conftest.$ac_objext conftest$ac_exeext
16805if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16806 (eval $ac_link) 2>&5
16807 ac_status=$?
16808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16809 (exit $ac_status); } &&
16810 { ac_try='test -s conftest$ac_exeext'
16811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16812 (eval $ac_try) 2>&5
16813 ac_status=$?
16814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16815 (exit $ac_status); }; }; then
16816 ac_cv_lib_dl_dlopen=yes
16817else
16818 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016819sed 's/^/| /' conftest.$ac_ext >&5
16820
John Criswell47fdd832003-07-14 16:52:07 +000016821ac_cv_lib_dl_dlopen=no
16822fi
16823rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16824LIBS=$ac_check_lib_save_LIBS
16825fi
16826echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16827echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16828if test $ac_cv_lib_dl_dlopen = yes; then
16829 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16830else
16831 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
16832echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
16833if test "${ac_cv_lib_svld_dlopen+set}" = set; then
16834 echo $ECHO_N "(cached) $ECHO_C" >&6
16835else
16836 ac_check_lib_save_LIBS=$LIBS
16837LIBS="-lsvld $LIBS"
16838cat >conftest.$ac_ext <<_ACEOF
16839#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000016840/* confdefs.h. */
16841_ACEOF
16842cat confdefs.h >>conftest.$ac_ext
16843cat >>conftest.$ac_ext <<_ACEOF
16844/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016845
16846/* Override any gcc2 internal prototype to avoid an error. */
16847#ifdef __cplusplus
16848extern "C"
16849#endif
16850/* We use char because int might match the return type of a gcc2
16851 builtin and then its argument prototype would still apply. */
16852char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000016853int
16854main ()
16855{
16856dlopen ();
16857 ;
16858 return 0;
16859}
16860_ACEOF
16861rm -f conftest.$ac_objext conftest$ac_exeext
16862if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16863 (eval $ac_link) 2>&5
16864 ac_status=$?
16865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16866 (exit $ac_status); } &&
16867 { ac_try='test -s conftest$ac_exeext'
16868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16869 (eval $ac_try) 2>&5
16870 ac_status=$?
16871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16872 (exit $ac_status); }; }; then
16873 ac_cv_lib_svld_dlopen=yes
16874else
16875 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016876sed 's/^/| /' conftest.$ac_ext >&5
16877
John Criswell47fdd832003-07-14 16:52:07 +000016878ac_cv_lib_svld_dlopen=no
16879fi
16880rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16881LIBS=$ac_check_lib_save_LIBS
16882fi
16883echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
16884echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
16885if test $ac_cv_lib_svld_dlopen = yes; then
16886 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16887else
16888 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
16889echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
16890if test "${ac_cv_lib_dld_dld_link+set}" = set; then
16891 echo $ECHO_N "(cached) $ECHO_C" >&6
16892else
16893 ac_check_lib_save_LIBS=$LIBS
16894LIBS="-ldld $LIBS"
16895cat >conftest.$ac_ext <<_ACEOF
16896#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000016897/* confdefs.h. */
16898_ACEOF
16899cat confdefs.h >>conftest.$ac_ext
16900cat >>conftest.$ac_ext <<_ACEOF
16901/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016902
16903/* Override any gcc2 internal prototype to avoid an error. */
16904#ifdef __cplusplus
16905extern "C"
16906#endif
16907/* We use char because int might match the return type of a gcc2
16908 builtin and then its argument prototype would still apply. */
16909char dld_link ();
John Criswell47fdd832003-07-14 16:52:07 +000016910int
16911main ()
16912{
16913dld_link ();
16914 ;
16915 return 0;
16916}
16917_ACEOF
16918rm -f conftest.$ac_objext conftest$ac_exeext
16919if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16920 (eval $ac_link) 2>&5
16921 ac_status=$?
16922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16923 (exit $ac_status); } &&
16924 { ac_try='test -s conftest$ac_exeext'
16925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16926 (eval $ac_try) 2>&5
16927 ac_status=$?
16928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16929 (exit $ac_status); }; }; then
16930 ac_cv_lib_dld_dld_link=yes
16931else
16932 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016933sed 's/^/| /' conftest.$ac_ext >&5
16934
John Criswell47fdd832003-07-14 16:52:07 +000016935ac_cv_lib_dld_dld_link=no
16936fi
16937rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16938LIBS=$ac_check_lib_save_LIBS
16939fi
16940echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
16941echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
16942if test $ac_cv_lib_dld_dld_link = yes; then
16943 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
16944fi
16945
16946
16947fi
16948
16949
16950fi
16951
16952
16953fi
16954
16955
16956fi
16957
16958
16959fi
16960
16961 ;;
16962 esac
16963
16964 if test "x$lt_cv_dlopen" != xno; then
16965 enable_dlopen=yes
16966 else
16967 enable_dlopen=no
16968 fi
16969
16970 case $lt_cv_dlopen in
16971 dlopen)
16972 save_CPPFLAGS="$CPPFLAGS"
16973 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16974
16975 save_LDFLAGS="$LDFLAGS"
16976 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
16977
16978 save_LIBS="$LIBS"
16979 LIBS="$lt_cv_dlopen_libs $LIBS"
16980
16981 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
16982echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
16983if test "${lt_cv_dlopen_self+set}" = set; then
16984 echo $ECHO_N "(cached) $ECHO_C" >&6
16985else
16986 if test "$cross_compiling" = yes; then :
16987 lt_cv_dlopen_self=cross
16988else
16989 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16990 lt_status=$lt_dlunknown
16991 cat > conftest.$ac_ext <<EOF
John Criswell33a911a2003-11-25 20:36:46 +000016992#line 16992 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000016993#include "confdefs.h"
16994
16995#if HAVE_DLFCN_H
16996#include <dlfcn.h>
16997#endif
16998
16999#include <stdio.h>
17000
17001#ifdef RTLD_GLOBAL
17002# define LT_DLGLOBAL RTLD_GLOBAL
17003#else
17004# ifdef DL_GLOBAL
17005# define LT_DLGLOBAL DL_GLOBAL
17006# else
17007# define LT_DLGLOBAL 0
17008# endif
17009#endif
17010
17011/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17012 find out it does not work in some platform. */
17013#ifndef LT_DLLAZY_OR_NOW
17014# ifdef RTLD_LAZY
17015# define LT_DLLAZY_OR_NOW RTLD_LAZY
17016# else
17017# ifdef DL_LAZY
17018# define LT_DLLAZY_OR_NOW DL_LAZY
17019# else
17020# ifdef RTLD_NOW
17021# define LT_DLLAZY_OR_NOW RTLD_NOW
17022# else
17023# ifdef DL_NOW
17024# define LT_DLLAZY_OR_NOW DL_NOW
17025# else
17026# define LT_DLLAZY_OR_NOW 0
17027# endif
17028# endif
17029# endif
17030# endif
17031#endif
17032
17033#ifdef __cplusplus
17034extern "C" void exit (int);
17035#endif
17036
17037void fnord() { int i=42;}
17038int main ()
17039{
17040 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17041 int status = $lt_dlunknown;
17042
17043 if (self)
17044 {
17045 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17046 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17047 /* dlclose (self); */
17048 }
17049
17050 exit (status);
17051}
17052EOF
17053 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17054 (eval $ac_link) 2>&5
17055 ac_status=$?
17056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17057 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17058 (./conftest; exit; ) 2>/dev/null
17059 lt_status=$?
17060 case x$lt_status in
17061 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17062 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17063 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17064 esac
17065 else :
17066 # compilation failed
17067 lt_cv_dlopen_self=no
17068 fi
17069fi
17070rm -fr conftest*
17071
17072
17073fi
17074echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17075echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17076
17077 if test "x$lt_cv_dlopen_self" = xyes; then
17078 LDFLAGS="$LDFLAGS $link_static_flag"
17079 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17080echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17081if test "${lt_cv_dlopen_self_static+set}" = set; then
17082 echo $ECHO_N "(cached) $ECHO_C" >&6
17083else
17084 if test "$cross_compiling" = yes; then :
17085 lt_cv_dlopen_self_static=cross
17086else
17087 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17088 lt_status=$lt_dlunknown
17089 cat > conftest.$ac_ext <<EOF
John Criswell33a911a2003-11-25 20:36:46 +000017090#line 17090 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000017091#include "confdefs.h"
17092
17093#if HAVE_DLFCN_H
17094#include <dlfcn.h>
17095#endif
17096
17097#include <stdio.h>
17098
17099#ifdef RTLD_GLOBAL
17100# define LT_DLGLOBAL RTLD_GLOBAL
17101#else
17102# ifdef DL_GLOBAL
17103# define LT_DLGLOBAL DL_GLOBAL
17104# else
17105# define LT_DLGLOBAL 0
17106# endif
17107#endif
17108
17109/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17110 find out it does not work in some platform. */
17111#ifndef LT_DLLAZY_OR_NOW
17112# ifdef RTLD_LAZY
17113# define LT_DLLAZY_OR_NOW RTLD_LAZY
17114# else
17115# ifdef DL_LAZY
17116# define LT_DLLAZY_OR_NOW DL_LAZY
17117# else
17118# ifdef RTLD_NOW
17119# define LT_DLLAZY_OR_NOW RTLD_NOW
17120# else
17121# ifdef DL_NOW
17122# define LT_DLLAZY_OR_NOW DL_NOW
17123# else
17124# define LT_DLLAZY_OR_NOW 0
17125# endif
17126# endif
17127# endif
17128# endif
17129#endif
17130
17131#ifdef __cplusplus
17132extern "C" void exit (int);
17133#endif
17134
17135void fnord() { int i=42;}
17136int main ()
17137{
17138 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17139 int status = $lt_dlunknown;
17140
17141 if (self)
17142 {
17143 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17144 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17145 /* dlclose (self); */
17146 }
17147
17148 exit (status);
17149}
17150EOF
17151 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17152 (eval $ac_link) 2>&5
17153 ac_status=$?
17154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17155 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17156 (./conftest; exit; ) 2>/dev/null
17157 lt_status=$?
17158 case x$lt_status in
17159 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17160 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17161 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17162 esac
17163 else :
17164 # compilation failed
17165 lt_cv_dlopen_self_static=no
17166 fi
17167fi
17168rm -fr conftest*
17169
17170
17171fi
17172echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17173echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17174 fi
17175
17176 CPPFLAGS="$save_CPPFLAGS"
17177 LDFLAGS="$save_LDFLAGS"
17178 LIBS="$save_LIBS"
17179 ;;
17180 esac
17181
17182 case $lt_cv_dlopen_self in
17183 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17184 *) enable_dlopen_self=unknown ;;
17185 esac
17186
17187 case $lt_cv_dlopen_self_static in
17188 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17189 *) enable_dlopen_self_static=unknown ;;
17190 esac
17191fi
17192
17193
17194# The else clause should only fire when bootstrapping the
17195# libtool distribution, otherwise you forgot to ship ltmain.sh
17196# with your package, and you will get complaints that there are
17197# no rules to generate ltmain.sh.
17198if test -f "$ltmain"; then
17199 # See if we are running on zsh, and set the options which allow our commands through
17200 # without removal of \ escapes.
17201 if test -n "${ZSH_VERSION+set}" ; then
17202 setopt NO_GLOB_SUBST
17203 fi
17204 # Now quote all the things that may contain metacharacters while being
17205 # careful not to overquote the AC_SUBSTed values. We take copies of the
17206 # variables and quote the copies for generation of the libtool script.
17207 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17208 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17209 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17210 deplibs_check_method reload_flag reload_cmds need_locks \
17211 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17212 lt_cv_sys_global_symbol_to_c_name_address \
17213 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17214 old_postinstall_cmds old_postuninstall_cmds \
17215 compiler_GCJ \
17216 CC_GCJ \
17217 LD_GCJ \
17218 lt_prog_compiler_wl_GCJ \
17219 lt_prog_compiler_pic_GCJ \
17220 lt_prog_compiler_static_GCJ \
17221 lt_prog_compiler_no_builtin_flag_GCJ \
17222 export_dynamic_flag_spec_GCJ \
17223 thread_safe_flag_spec_GCJ \
17224 whole_archive_flag_spec_GCJ \
17225 enable_shared_with_static_runtimes_GCJ \
17226 old_archive_cmds_GCJ \
17227 old_archive_from_new_cmds_GCJ \
17228 predep_objects_GCJ \
17229 postdep_objects_GCJ \
17230 predeps_GCJ \
17231 postdeps_GCJ \
17232 compiler_lib_search_path_GCJ \
17233 archive_cmds_GCJ \
17234 archive_expsym_cmds_GCJ \
17235 postinstall_cmds_GCJ \
17236 postuninstall_cmds_GCJ \
17237 old_archive_from_expsyms_cmds_GCJ \
17238 allow_undefined_flag_GCJ \
17239 no_undefined_flag_GCJ \
17240 export_symbols_cmds_GCJ \
17241 hardcode_libdir_flag_spec_GCJ \
17242 hardcode_libdir_flag_spec_ld_GCJ \
17243 hardcode_libdir_separator_GCJ \
17244 hardcode_automatic_GCJ \
17245 module_cmds_GCJ \
17246 module_expsym_cmds_GCJ \
17247 lt_cv_prog_compiler_c_o_GCJ \
17248 exclude_expsyms_GCJ \
17249 include_expsyms_GCJ; do
17250
17251 case $var in
17252 old_archive_cmds_GCJ | \
17253 old_archive_from_new_cmds_GCJ | \
17254 archive_cmds_GCJ | \
17255 archive_expsym_cmds_GCJ | \
17256 module_cmds_GCJ | \
17257 module_expsym_cmds_GCJ | \
17258 old_archive_from_expsyms_cmds_GCJ | \
17259 export_symbols_cmds_GCJ | \
17260 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17261 postinstall_cmds | postuninstall_cmds | \
17262 old_postinstall_cmds | old_postuninstall_cmds | \
17263 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17264 # Double-quote double-evaled strings.
17265 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17266 ;;
17267 *)
17268 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17269 ;;
17270 esac
17271 done
17272
17273 case $lt_echo in
17274 *'\$0 --fallback-echo"')
17275 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17276 ;;
17277 esac
17278
17279cfgfile="$ofile"
17280
17281 cat <<__EOF__ >> "$cfgfile"
17282# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17283
17284# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17285
17286# Shell to use when invoking shell scripts.
17287SHELL=$lt_SHELL
17288
17289# Whether or not to build shared libraries.
17290build_libtool_libs=$enable_shared
17291
17292# Whether or not to build static libraries.
17293build_old_libs=$enable_static
17294
17295# Whether or not to add -lc for building shared libraries.
17296build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17297
17298# Whether or not to disallow shared libs when runtime libs are static
17299allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17300
17301# Whether or not to optimize for fast installation.
17302fast_install=$enable_fast_install
17303
17304# The host system.
17305host_alias=$host_alias
17306host=$host
17307
17308# An echo program that does not interpret backslashes.
17309echo=$lt_echo
17310
17311# The archiver.
17312AR=$lt_AR
17313AR_FLAGS=$lt_AR_FLAGS
17314
17315# A C compiler.
17316LTCC=$lt_LTCC
17317
17318# A language-specific compiler.
17319CC=$lt_compiler_GCJ
17320
17321# Is the compiler the GNU C compiler?
17322with_gcc=$GCC_GCJ
17323
17324# An ERE matcher.
17325EGREP=$lt_EGREP
17326
17327# The linker used to build libraries.
17328LD=$lt_LD_GCJ
17329
17330# Whether we need hard or soft links.
17331LN_S=$lt_LN_S
17332
17333# A BSD-compatible nm program.
17334NM=$lt_NM
17335
17336# A symbol stripping program
17337STRIP=$STRIP
17338
17339# Used to examine libraries when file_magic_cmd begins "file"
17340MAGIC_CMD=$MAGIC_CMD
17341
17342# Used on cygwin: DLL creation program.
17343DLLTOOL="$DLLTOOL"
17344
17345# Used on cygwin: object dumper.
17346OBJDUMP="$OBJDUMP"
17347
17348# Used on cygwin: assembler.
17349AS="$AS"
17350
17351# The name of the directory that contains temporary libtool files.
17352objdir=$objdir
17353
17354# How to create reloadable object files.
17355reload_flag=$lt_reload_flag
17356reload_cmds=$lt_reload_cmds
17357
17358# How to pass a linker flag through the compiler.
17359wl=$lt_lt_prog_compiler_wl_GCJ
17360
17361# Object file suffix (normally "o").
17362objext="$ac_objext"
17363
17364# Old archive suffix (normally "a").
17365libext="$libext"
17366
17367# Shared library suffix (normally ".so").
17368shrext='$shrext'
17369
17370# Executable file suffix (normally "").
17371exeext="$exeext"
17372
17373# Additional compiler flags for building library objects.
17374pic_flag=$lt_lt_prog_compiler_pic_GCJ
17375pic_mode=$pic_mode
17376
17377# What is the maximum length of a command?
17378max_cmd_len=$lt_cv_sys_max_cmd_len
17379
17380# Does compiler simultaneously support -c and -o options?
17381compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17382
17383# Must we lock files when doing compilation ?
17384need_locks=$lt_need_locks
17385
17386# Do we need the lib prefix for modules?
17387need_lib_prefix=$need_lib_prefix
17388
17389# Do we need a version for libraries?
17390need_version=$need_version
17391
17392# Whether dlopen is supported.
17393dlopen_support=$enable_dlopen
17394
17395# Whether dlopen of programs is supported.
17396dlopen_self=$enable_dlopen_self
17397
17398# Whether dlopen of statically linked programs is supported.
17399dlopen_self_static=$enable_dlopen_self_static
17400
17401# Compiler flag to prevent dynamic linking.
17402link_static_flag=$lt_lt_prog_compiler_static_GCJ
17403
17404# Compiler flag to turn off builtin functions.
17405no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17406
17407# Compiler flag to allow reflexive dlopens.
17408export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17409
17410# Compiler flag to generate shared objects directly from archives.
17411whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17412
17413# Compiler flag to generate thread-safe objects.
17414thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17415
17416# Library versioning type.
17417version_type=$version_type
17418
17419# Format of library name prefix.
17420libname_spec=$lt_libname_spec
17421
17422# List of archive names. First name is the real one, the rest are links.
17423# The last name is the one that the linker finds with -lNAME.
17424library_names_spec=$lt_library_names_spec
17425
17426# The coded name of the library, if different from the real name.
17427soname_spec=$lt_soname_spec
17428
17429# Commands used to build and install an old-style archive.
17430RANLIB=$lt_RANLIB
17431old_archive_cmds=$lt_old_archive_cmds_GCJ
17432old_postinstall_cmds=$lt_old_postinstall_cmds
17433old_postuninstall_cmds=$lt_old_postuninstall_cmds
17434
17435# Create an old-style archive from a shared archive.
17436old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17437
17438# Create a temporary old-style archive to link instead of a shared archive.
17439old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17440
17441# Commands used to build and install a shared archive.
17442archive_cmds=$lt_archive_cmds_GCJ
17443archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17444postinstall_cmds=$lt_postinstall_cmds
17445postuninstall_cmds=$lt_postuninstall_cmds
17446
17447# Commands used to build a loadable module (assumed same as above if empty)
17448module_cmds=$lt_module_cmds_GCJ
17449module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17450
17451# Commands to strip libraries.
17452old_striplib=$lt_old_striplib
17453striplib=$lt_striplib
17454
17455# Dependencies to place before the objects being linked to create a
17456# shared library.
17457predep_objects=$lt_predep_objects_GCJ
17458
17459# Dependencies to place after the objects being linked to create a
17460# shared library.
17461postdep_objects=$lt_postdep_objects_GCJ
17462
17463# Dependencies to place before the objects being linked to create a
17464# shared library.
17465predeps=$lt_predeps_GCJ
17466
17467# Dependencies to place after the objects being linked to create a
17468# shared library.
17469postdeps=$lt_postdeps_GCJ
17470
17471# The library search path used internally by the compiler when linking
17472# a shared library.
17473compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17474
17475# Method to check whether dependent libraries are shared objects.
17476deplibs_check_method=$lt_deplibs_check_method
17477
17478# Command to use when deplibs_check_method == file_magic.
17479file_magic_cmd=$lt_file_magic_cmd
17480
17481# Flag that allows shared libraries with undefined symbols to be built.
17482allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17483
17484# Flag that forces no undefined symbols.
17485no_undefined_flag=$lt_no_undefined_flag_GCJ
17486
17487# Commands used to finish a libtool library installation in a directory.
17488finish_cmds=$lt_finish_cmds
17489
17490# Same as above, but a single script fragment to be evaled but not shown.
17491finish_eval=$lt_finish_eval
17492
17493# Take the output of nm and produce a listing of raw symbols and C names.
17494global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17495
17496# Transform the output of nm in a proper C declaration
17497global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17498
17499# Transform the output of nm in a C name address pair
17500global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17501
17502# This is the shared library runtime path variable.
17503runpath_var=$runpath_var
17504
17505# This is the shared library path variable.
17506shlibpath_var=$shlibpath_var
17507
17508# Is shlibpath searched before the hard-coded library search path?
17509shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17510
17511# How to hardcode a shared library path into an executable.
17512hardcode_action=$hardcode_action_GCJ
17513
17514# Whether we should hardcode library paths into libraries.
17515hardcode_into_libs=$hardcode_into_libs
17516
17517# Flag to hardcode \$libdir into a binary during linking.
17518# This must work even if \$libdir does not exist.
17519hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
17520
17521# If ld is used when linking, flag to hardcode \$libdir into
17522# a binary during linking. This must work even if \$libdir does
17523# not exist.
17524hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17525
17526# Whether we need a single -rpath flag with a separated argument.
17527hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17528
17529# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17530# resulting binary.
17531hardcode_direct=$hardcode_direct_GCJ
17532
17533# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17534# resulting binary.
17535hardcode_minus_L=$hardcode_minus_L_GCJ
17536
17537# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17538# the resulting binary.
17539hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
17540
17541# Set to yes if building a shared library automatically hardcodes DIR into the library
17542# and all subsequent libraries and executables linked against it.
17543hardcode_automatic=$hardcode_automatic_GCJ
17544
17545# Variables whose values should be saved in libtool wrapper scripts and
17546# restored at relink time.
17547variables_saved_for_relink="$variables_saved_for_relink"
17548
17549# Whether libtool must link a program against all its dependency libraries.
17550link_all_deplibs=$link_all_deplibs_GCJ
17551
17552# Compile-time system search path for libraries
17553sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17554
17555# Run-time system search path for libraries
17556sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17557
17558# Fix the shell variable \$srcfile for the compiler.
17559fix_srcfile_path="$fix_srcfile_path_GCJ"
17560
17561# Set to yes if exported symbols are required.
17562always_export_symbols=$always_export_symbols_GCJ
17563
17564# The commands to list exported symbols.
17565export_symbols_cmds=$lt_export_symbols_cmds_GCJ
17566
17567# The commands to extract the exported symbol list from a shared archive.
17568extract_expsyms_cmds=$lt_extract_expsyms_cmds
17569
17570# Symbols that should not be listed in the preloaded symbols.
17571exclude_expsyms=$lt_exclude_expsyms_GCJ
17572
17573# Symbols that must always be exported.
17574include_expsyms=$lt_include_expsyms_GCJ
17575
17576# ### END LIBTOOL TAG CONFIG: $tagname
17577
17578__EOF__
17579
17580
17581else
17582 # If there is no Makefile yet, we rely on a make rule to execute
17583 # `config.status --recheck' to rerun these tests and create the
17584 # libtool script then.
17585 test -f Makefile && make "$ltmain"
17586fi
17587
17588
17589ac_ext=c
17590ac_cpp='$CPP $CPPFLAGS'
17591ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17592ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17593ac_compiler_gnu=$ac_cv_c_compiler_gnu
17594
17595CC="$lt_save_CC"
17596
17597 else
17598 tagname=""
17599 fi
17600 ;;
17601
17602 RC)
17603
17604
17605
17606# Source file extension for RC test sources.
17607ac_ext=rc
17608
17609# Object file extension for compiled RC test sources.
17610objext=o
17611objext_RC=$objext
17612
17613# Code to be used in simple compile tests
17614lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
17615
17616# Code to be used in simple link tests
17617lt_simple_link_test_code="$lt_simple_compile_test_code"
17618
17619# ltmain only uses $CC for tagged configurations so make sure $CC is set.
17620
17621# If no C compiler was specified, use CC.
17622LTCC=${LTCC-"$CC"}
17623
17624# Allow CC to be a program name with arguments.
17625compiler=$CC
17626
17627
17628# Allow CC to be a program name with arguments.
17629lt_save_CC="$CC"
17630CC=${RC-"windres"}
17631compiler=$CC
17632compiler_RC=$CC
17633lt_cv_prog_compiler_c_o_RC=yes
17634
17635# The else clause should only fire when bootstrapping the
17636# libtool distribution, otherwise you forgot to ship ltmain.sh
17637# with your package, and you will get complaints that there are
17638# no rules to generate ltmain.sh.
17639if test -f "$ltmain"; then
17640 # See if we are running on zsh, and set the options which allow our commands through
17641 # without removal of \ escapes.
17642 if test -n "${ZSH_VERSION+set}" ; then
17643 setopt NO_GLOB_SUBST
17644 fi
17645 # Now quote all the things that may contain metacharacters while being
17646 # careful not to overquote the AC_SUBSTed values. We take copies of the
17647 # variables and quote the copies for generation of the libtool script.
17648 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17649 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17650 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17651 deplibs_check_method reload_flag reload_cmds need_locks \
17652 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17653 lt_cv_sys_global_symbol_to_c_name_address \
17654 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17655 old_postinstall_cmds old_postuninstall_cmds \
17656 compiler_RC \
17657 CC_RC \
17658 LD_RC \
17659 lt_prog_compiler_wl_RC \
17660 lt_prog_compiler_pic_RC \
17661 lt_prog_compiler_static_RC \
17662 lt_prog_compiler_no_builtin_flag_RC \
17663 export_dynamic_flag_spec_RC \
17664 thread_safe_flag_spec_RC \
17665 whole_archive_flag_spec_RC \
17666 enable_shared_with_static_runtimes_RC \
17667 old_archive_cmds_RC \
17668 old_archive_from_new_cmds_RC \
17669 predep_objects_RC \
17670 postdep_objects_RC \
17671 predeps_RC \
17672 postdeps_RC \
17673 compiler_lib_search_path_RC \
17674 archive_cmds_RC \
17675 archive_expsym_cmds_RC \
17676 postinstall_cmds_RC \
17677 postuninstall_cmds_RC \
17678 old_archive_from_expsyms_cmds_RC \
17679 allow_undefined_flag_RC \
17680 no_undefined_flag_RC \
17681 export_symbols_cmds_RC \
17682 hardcode_libdir_flag_spec_RC \
17683 hardcode_libdir_flag_spec_ld_RC \
17684 hardcode_libdir_separator_RC \
17685 hardcode_automatic_RC \
17686 module_cmds_RC \
17687 module_expsym_cmds_RC \
17688 lt_cv_prog_compiler_c_o_RC \
17689 exclude_expsyms_RC \
17690 include_expsyms_RC; do
17691
17692 case $var in
17693 old_archive_cmds_RC | \
17694 old_archive_from_new_cmds_RC | \
17695 archive_cmds_RC | \
17696 archive_expsym_cmds_RC | \
17697 module_cmds_RC | \
17698 module_expsym_cmds_RC | \
17699 old_archive_from_expsyms_cmds_RC | \
17700 export_symbols_cmds_RC | \
17701 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17702 postinstall_cmds | postuninstall_cmds | \
17703 old_postinstall_cmds | old_postuninstall_cmds | \
17704 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17705 # Double-quote double-evaled strings.
17706 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17707 ;;
17708 *)
17709 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17710 ;;
17711 esac
17712 done
17713
17714 case $lt_echo in
17715 *'\$0 --fallback-echo"')
17716 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17717 ;;
17718 esac
17719
17720cfgfile="$ofile"
17721
17722 cat <<__EOF__ >> "$cfgfile"
17723# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17724
17725# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17726
17727# Shell to use when invoking shell scripts.
17728SHELL=$lt_SHELL
17729
17730# Whether or not to build shared libraries.
17731build_libtool_libs=$enable_shared
17732
17733# Whether or not to build static libraries.
17734build_old_libs=$enable_static
17735
17736# Whether or not to add -lc for building shared libraries.
17737build_libtool_need_lc=$archive_cmds_need_lc_RC
17738
17739# Whether or not to disallow shared libs when runtime libs are static
17740allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
17741
17742# Whether or not to optimize for fast installation.
17743fast_install=$enable_fast_install
17744
17745# The host system.
17746host_alias=$host_alias
17747host=$host
17748
17749# An echo program that does not interpret backslashes.
17750echo=$lt_echo
17751
17752# The archiver.
17753AR=$lt_AR
17754AR_FLAGS=$lt_AR_FLAGS
17755
17756# A C compiler.
17757LTCC=$lt_LTCC
17758
17759# A language-specific compiler.
17760CC=$lt_compiler_RC
17761
17762# Is the compiler the GNU C compiler?
17763with_gcc=$GCC_RC
17764
17765# An ERE matcher.
17766EGREP=$lt_EGREP
17767
17768# The linker used to build libraries.
17769LD=$lt_LD_RC
17770
17771# Whether we need hard or soft links.
17772LN_S=$lt_LN_S
17773
17774# A BSD-compatible nm program.
17775NM=$lt_NM
17776
17777# A symbol stripping program
17778STRIP=$STRIP
17779
17780# Used to examine libraries when file_magic_cmd begins "file"
17781MAGIC_CMD=$MAGIC_CMD
17782
17783# Used on cygwin: DLL creation program.
17784DLLTOOL="$DLLTOOL"
17785
17786# Used on cygwin: object dumper.
17787OBJDUMP="$OBJDUMP"
17788
17789# Used on cygwin: assembler.
17790AS="$AS"
17791
17792# The name of the directory that contains temporary libtool files.
17793objdir=$objdir
17794
17795# How to create reloadable object files.
17796reload_flag=$lt_reload_flag
17797reload_cmds=$lt_reload_cmds
17798
17799# How to pass a linker flag through the compiler.
17800wl=$lt_lt_prog_compiler_wl_RC
17801
17802# Object file suffix (normally "o").
17803objext="$ac_objext"
17804
17805# Old archive suffix (normally "a").
17806libext="$libext"
17807
17808# Shared library suffix (normally ".so").
17809shrext='$shrext'
17810
17811# Executable file suffix (normally "").
17812exeext="$exeext"
17813
17814# Additional compiler flags for building library objects.
17815pic_flag=$lt_lt_prog_compiler_pic_RC
17816pic_mode=$pic_mode
17817
17818# What is the maximum length of a command?
17819max_cmd_len=$lt_cv_sys_max_cmd_len
17820
17821# Does compiler simultaneously support -c and -o options?
17822compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
17823
17824# Must we lock files when doing compilation ?
17825need_locks=$lt_need_locks
17826
17827# Do we need the lib prefix for modules?
17828need_lib_prefix=$need_lib_prefix
17829
17830# Do we need a version for libraries?
17831need_version=$need_version
17832
17833# Whether dlopen is supported.
17834dlopen_support=$enable_dlopen
17835
17836# Whether dlopen of programs is supported.
17837dlopen_self=$enable_dlopen_self
17838
17839# Whether dlopen of statically linked programs is supported.
17840dlopen_self_static=$enable_dlopen_self_static
17841
17842# Compiler flag to prevent dynamic linking.
17843link_static_flag=$lt_lt_prog_compiler_static_RC
17844
17845# Compiler flag to turn off builtin functions.
17846no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
17847
17848# Compiler flag to allow reflexive dlopens.
17849export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
17850
17851# Compiler flag to generate shared objects directly from archives.
17852whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
17853
17854# Compiler flag to generate thread-safe objects.
17855thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
17856
17857# Library versioning type.
17858version_type=$version_type
17859
17860# Format of library name prefix.
17861libname_spec=$lt_libname_spec
17862
17863# List of archive names. First name is the real one, the rest are links.
17864# The last name is the one that the linker finds with -lNAME.
17865library_names_spec=$lt_library_names_spec
17866
17867# The coded name of the library, if different from the real name.
17868soname_spec=$lt_soname_spec
17869
17870# Commands used to build and install an old-style archive.
17871RANLIB=$lt_RANLIB
17872old_archive_cmds=$lt_old_archive_cmds_RC
17873old_postinstall_cmds=$lt_old_postinstall_cmds
17874old_postuninstall_cmds=$lt_old_postuninstall_cmds
17875
17876# Create an old-style archive from a shared archive.
17877old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
17878
17879# Create a temporary old-style archive to link instead of a shared archive.
17880old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
17881
17882# Commands used to build and install a shared archive.
17883archive_cmds=$lt_archive_cmds_RC
17884archive_expsym_cmds=$lt_archive_expsym_cmds_RC
17885postinstall_cmds=$lt_postinstall_cmds
17886postuninstall_cmds=$lt_postuninstall_cmds
17887
17888# Commands used to build a loadable module (assumed same as above if empty)
17889module_cmds=$lt_module_cmds_RC
17890module_expsym_cmds=$lt_module_expsym_cmds_RC
17891
17892# Commands to strip libraries.
17893old_striplib=$lt_old_striplib
17894striplib=$lt_striplib
17895
17896# Dependencies to place before the objects being linked to create a
17897# shared library.
17898predep_objects=$lt_predep_objects_RC
17899
17900# Dependencies to place after the objects being linked to create a
17901# shared library.
17902postdep_objects=$lt_postdep_objects_RC
17903
17904# Dependencies to place before the objects being linked to create a
17905# shared library.
17906predeps=$lt_predeps_RC
17907
17908# Dependencies to place after the objects being linked to create a
17909# shared library.
17910postdeps=$lt_postdeps_RC
17911
17912# The library search path used internally by the compiler when linking
17913# a shared library.
17914compiler_lib_search_path=$lt_compiler_lib_search_path_RC
17915
17916# Method to check whether dependent libraries are shared objects.
17917deplibs_check_method=$lt_deplibs_check_method
17918
17919# Command to use when deplibs_check_method == file_magic.
17920file_magic_cmd=$lt_file_magic_cmd
17921
17922# Flag that allows shared libraries with undefined symbols to be built.
17923allow_undefined_flag=$lt_allow_undefined_flag_RC
17924
17925# Flag that forces no undefined symbols.
17926no_undefined_flag=$lt_no_undefined_flag_RC
17927
17928# Commands used to finish a libtool library installation in a directory.
17929finish_cmds=$lt_finish_cmds
17930
17931# Same as above, but a single script fragment to be evaled but not shown.
17932finish_eval=$lt_finish_eval
17933
17934# Take the output of nm and produce a listing of raw symbols and C names.
17935global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17936
17937# Transform the output of nm in a proper C declaration
17938global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17939
17940# Transform the output of nm in a C name address pair
17941global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17942
17943# This is the shared library runtime path variable.
17944runpath_var=$runpath_var
17945
17946# This is the shared library path variable.
17947shlibpath_var=$shlibpath_var
17948
17949# Is shlibpath searched before the hard-coded library search path?
17950shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17951
17952# How to hardcode a shared library path into an executable.
17953hardcode_action=$hardcode_action_RC
17954
17955# Whether we should hardcode library paths into libraries.
17956hardcode_into_libs=$hardcode_into_libs
17957
17958# Flag to hardcode \$libdir into a binary during linking.
17959# This must work even if \$libdir does not exist.
17960hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
17961
17962# If ld is used when linking, flag to hardcode \$libdir into
17963# a binary during linking. This must work even if \$libdir does
17964# not exist.
17965hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
17966
17967# Whether we need a single -rpath flag with a separated argument.
17968hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
17969
17970# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17971# resulting binary.
17972hardcode_direct=$hardcode_direct_RC
17973
17974# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17975# resulting binary.
17976hardcode_minus_L=$hardcode_minus_L_RC
17977
17978# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17979# the resulting binary.
17980hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
17981
17982# Set to yes if building a shared library automatically hardcodes DIR into the library
17983# and all subsequent libraries and executables linked against it.
17984hardcode_automatic=$hardcode_automatic_RC
17985
17986# Variables whose values should be saved in libtool wrapper scripts and
17987# restored at relink time.
17988variables_saved_for_relink="$variables_saved_for_relink"
17989
17990# Whether libtool must link a program against all its dependency libraries.
17991link_all_deplibs=$link_all_deplibs_RC
17992
17993# Compile-time system search path for libraries
17994sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17995
17996# Run-time system search path for libraries
17997sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17998
17999# Fix the shell variable \$srcfile for the compiler.
18000fix_srcfile_path="$fix_srcfile_path_RC"
18001
18002# Set to yes if exported symbols are required.
18003always_export_symbols=$always_export_symbols_RC
18004
18005# The commands to list exported symbols.
18006export_symbols_cmds=$lt_export_symbols_cmds_RC
18007
18008# The commands to extract the exported symbol list from a shared archive.
18009extract_expsyms_cmds=$lt_extract_expsyms_cmds
18010
18011# Symbols that should not be listed in the preloaded symbols.
18012exclude_expsyms=$lt_exclude_expsyms_RC
18013
18014# Symbols that must always be exported.
18015include_expsyms=$lt_include_expsyms_RC
18016
18017# ### END LIBTOOL TAG CONFIG: $tagname
18018
18019__EOF__
18020
18021
18022else
18023 # If there is no Makefile yet, we rely on a make rule to execute
18024 # `config.status --recheck' to rerun these tests and create the
18025 # libtool script then.
18026 test -f Makefile && make "$ltmain"
18027fi
18028
18029
18030ac_ext=c
18031ac_cpp='$CPP $CPPFLAGS'
18032ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18033ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18034ac_compiler_gnu=$ac_cv_c_compiler_gnu
18035
18036CC="$lt_save_CC"
18037
18038 ;;
18039
18040 *)
18041 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18042echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18043 { (exit 1); exit 1; }; }
18044 ;;
18045 esac
18046
18047 # Append the new tag name to the list of available tags.
18048 if test -n "$tagname" ; then
18049 available_tags="$available_tags $tagname"
18050 fi
18051 fi
18052 done
18053 IFS="$lt_save_ifs"
18054
18055 # Now substitute the updated list of available tags.
18056 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18057 mv "${ofile}T" "$ofile"
18058 chmod +x "$ofile"
18059 else
18060 rm -f "${ofile}T"
18061 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18062echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18063 { (exit 1); exit 1; }; }
18064 fi
18065fi
John Criswell7a73b802003-06-30 21:59:07 +000018066
18067
18068
18069# This can be used to rebuild libtool when needed
18070LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18071
18072# Always use our own libtool.
John Criswell8d4221e2003-07-23 16:52:50 +000018073LIBTOOL='$(SHELL) $(top_builddir)/mklib'
John Criswell7a73b802003-06-30 21:59:07 +000018074
18075# Prevent multiple expansion
18076
18077
18078
John Criswell47fdd832003-07-14 16:52:07 +000018079
18080
18081
18082
18083
18084
18085
18086
18087
18088
18089
18090
18091
18092
18093
18094
18095
18096
John Criswellde00db22003-08-25 16:49:54 +000018097# Extract the first word of "pwd", so it can be a program name with args.
18098set dummy pwd; ac_word=$2
18099echo "$as_me:$LINENO: checking for $ac_word" >&5
18100echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18101if test "${ac_cv_path_RPWD+set}" = set; then
18102 echo $ECHO_N "(cached) $ECHO_C" >&6
18103else
18104 case $RPWD in
18105 [\\/]* | ?:[\\/]*)
18106 ac_cv_path_RPWD="$RPWD" # Let the user override the test with a path.
18107 ;;
18108 *)
18109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18110for as_dir in $PATH
18111do
18112 IFS=$as_save_IFS
18113 test -z "$as_dir" && as_dir=.
18114 for ac_exec_ext in '' $ac_executable_extensions; do
18115 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18116 ac_cv_path_RPWD="$as_dir/$ac_word$ac_exec_ext"
18117 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18118 break 2
18119 fi
18120done
18121done
18122
John Criswell39827c82003-09-23 15:28:52 +000018123 test -z "$ac_cv_path_RPWD" && ac_cv_path_RPWD="false"
John Criswellde00db22003-08-25 16:49:54 +000018124 ;;
18125esac
18126fi
18127RPWD=$ac_cv_path_RPWD
18128
18129if test -n "$RPWD"; then
18130 echo "$as_me:$LINENO: result: $RPWD" >&5
18131echo "${ECHO_T}$RPWD" >&6
18132else
18133 echo "$as_me:$LINENO: result: no" >&5
18134echo "${ECHO_T}no" >&6
18135fi
18136
John Criswell39827c82003-09-23 15:28:52 +000018137if test ${RPWD} = "false"
18138then
18139 { { echo "$as_me:$LINENO: error: pwd required but not found" >&5
18140echo "$as_me: error: pwd required but not found" >&2;}
18141 { (exit 1); exit 1; }; }
18142fi
18143
John Criswell7a73b802003-06-30 21:59:07 +000018144# Extract the first word of "ar", so it can be a program name with args.
18145set dummy ar; ac_word=$2
18146echo "$as_me:$LINENO: checking for $ac_word" >&5
18147echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18148if test "${ac_cv_path_AR+set}" = set; then
18149 echo $ECHO_N "(cached) $ECHO_C" >&6
18150else
18151 case $AR in
18152 [\\/]* | ?:[\\/]*)
18153 ac_cv_path_AR="$AR" # Let the user override the test with a path.
18154 ;;
18155 *)
18156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18157for as_dir in $PATH
18158do
18159 IFS=$as_save_IFS
18160 test -z "$as_dir" && as_dir=.
18161 for ac_exec_ext in '' $ac_executable_extensions; do
18162 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18163 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
18164 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18165 break 2
18166 fi
18167done
18168done
18169
John Criswell39827c82003-09-23 15:28:52 +000018170 test -z "$ac_cv_path_AR" && ac_cv_path_AR="false"
John Criswell7a73b802003-06-30 21:59:07 +000018171 ;;
18172esac
18173fi
18174AR=$ac_cv_path_AR
18175
18176if test -n "$AR"; then
18177 echo "$as_me:$LINENO: result: $AR" >&5
18178echo "${ECHO_T}$AR" >&6
18179else
18180 echo "$as_me:$LINENO: result: no" >&5
18181echo "${ECHO_T}no" >&6
18182fi
18183
John Criswell39827c82003-09-23 15:28:52 +000018184if test ${AR} = "false"
18185then
18186 { { echo "$as_me:$LINENO: error: ar required but not found" >&5
18187echo "$as_me: error: ar required but not found" >&2;}
18188 { (exit 1); exit 1; }; }
18189fi
18190
John Criswell7a73b802003-06-30 21:59:07 +000018191# Extract the first word of "sed", so it can be a program name with args.
18192set dummy sed; ac_word=$2
18193echo "$as_me:$LINENO: checking for $ac_word" >&5
18194echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18195if test "${ac_cv_path_SED+set}" = set; then
18196 echo $ECHO_N "(cached) $ECHO_C" >&6
18197else
18198 case $SED in
18199 [\\/]* | ?:[\\/]*)
18200 ac_cv_path_SED="$SED" # Let the user override the test with a path.
18201 ;;
18202 *)
18203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18204for as_dir in $PATH
18205do
18206 IFS=$as_save_IFS
18207 test -z "$as_dir" && as_dir=.
18208 for ac_exec_ext in '' $ac_executable_extensions; do
18209 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18210 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
18211 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18212 break 2
18213 fi
18214done
18215done
18216
John Criswell39827c82003-09-23 15:28:52 +000018217 test -z "$ac_cv_path_SED" && ac_cv_path_SED="false"
John Criswell7a73b802003-06-30 21:59:07 +000018218 ;;
18219esac
18220fi
18221SED=$ac_cv_path_SED
18222
18223if test -n "$SED"; then
18224 echo "$as_me:$LINENO: result: $SED" >&5
18225echo "${ECHO_T}$SED" >&6
18226else
18227 echo "$as_me:$LINENO: result: no" >&5
18228echo "${ECHO_T}no" >&6
18229fi
18230
John Criswell39827c82003-09-23 15:28:52 +000018231if test ${SED} = "false"
18232then
18233 { { echo "$as_me:$LINENO: error: sed required but not found" >&5
18234echo "$as_me: error: sed required but not found" >&2;}
18235 { (exit 1); exit 1; }; }
18236fi
18237
John Criswell7a73b802003-06-30 21:59:07 +000018238# Extract the first word of "rm", so it can be a program name with args.
18239set dummy rm; ac_word=$2
18240echo "$as_me:$LINENO: checking for $ac_word" >&5
18241echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18242if test "${ac_cv_path_RM+set}" = set; then
18243 echo $ECHO_N "(cached) $ECHO_C" >&6
18244else
18245 case $RM in
18246 [\\/]* | ?:[\\/]*)
18247 ac_cv_path_RM="$RM" # Let the user override the test with a path.
18248 ;;
18249 *)
18250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18251for as_dir in $PATH
18252do
18253 IFS=$as_save_IFS
18254 test -z "$as_dir" && as_dir=.
18255 for ac_exec_ext in '' $ac_executable_extensions; do
18256 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18257 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
18258 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18259 break 2
18260 fi
18261done
18262done
18263
John Criswell39827c82003-09-23 15:28:52 +000018264 test -z "$ac_cv_path_RM" && ac_cv_path_RM="false"
John Criswell7a73b802003-06-30 21:59:07 +000018265 ;;
18266esac
18267fi
18268RM=$ac_cv_path_RM
18269
18270if test -n "$RM"; then
18271 echo "$as_me:$LINENO: result: $RM" >&5
18272echo "${ECHO_T}$RM" >&6
18273else
18274 echo "$as_me:$LINENO: result: no" >&5
18275echo "${ECHO_T}no" >&6
18276fi
18277
John Criswell39827c82003-09-23 15:28:52 +000018278if test ${RM} = "false"
18279then
18280 { { echo "$as_me:$LINENO: error: rm required but not found" >&5
18281echo "$as_me: error: rm required but not found" >&2;}
18282 { (exit 1); exit 1; }; }
18283fi
18284
John Criswell7a73b802003-06-30 21:59:07 +000018285# Extract the first word of "echo", so it can be a program name with args.
18286set dummy echo; ac_word=$2
18287echo "$as_me:$LINENO: checking for $ac_word" >&5
18288echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18289if test "${ac_cv_path_ECHO+set}" = set; then
18290 echo $ECHO_N "(cached) $ECHO_C" >&6
18291else
18292 case $ECHO in
18293 [\\/]* | ?:[\\/]*)
18294 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
18295 ;;
18296 *)
18297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18298for as_dir in $PATH
18299do
18300 IFS=$as_save_IFS
18301 test -z "$as_dir" && as_dir=.
18302 for ac_exec_ext in '' $ac_executable_extensions; do
18303 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18304 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
18305 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18306 break 2
18307 fi
18308done
18309done
18310
John Criswell39827c82003-09-23 15:28:52 +000018311 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="false"
John Criswell7a73b802003-06-30 21:59:07 +000018312 ;;
18313esac
18314fi
18315ECHO=$ac_cv_path_ECHO
18316
18317if test -n "$ECHO"; then
18318 echo "$as_me:$LINENO: result: $ECHO" >&5
18319echo "${ECHO_T}$ECHO" >&6
18320else
18321 echo "$as_me:$LINENO: result: no" >&5
18322echo "${ECHO_T}no" >&6
18323fi
18324
John Criswell39827c82003-09-23 15:28:52 +000018325if test ${ECHO} = "false"
18326then
18327 { { echo "$as_me:$LINENO: error: echo required but not found" >&5
18328echo "$as_me: error: echo required but not found" >&2;}
18329 { (exit 1); exit 1; }; }
18330fi
18331
John Criswell7a73b802003-06-30 21:59:07 +000018332# Extract the first word of "mkdir", so it can be a program name with args.
18333set dummy mkdir; ac_word=$2
18334echo "$as_me:$LINENO: checking for $ac_word" >&5
18335echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18336if test "${ac_cv_path_MKDIR+set}" = set; then
18337 echo $ECHO_N "(cached) $ECHO_C" >&6
18338else
18339 case $MKDIR in
18340 [\\/]* | ?:[\\/]*)
18341 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
18342 ;;
18343 *)
18344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18345for as_dir in $PATH
18346do
18347 IFS=$as_save_IFS
18348 test -z "$as_dir" && as_dir=.
18349 for ac_exec_ext in '' $ac_executable_extensions; do
18350 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18351 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
18352 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18353 break 2
18354 fi
18355done
18356done
18357
John Criswell39827c82003-09-23 15:28:52 +000018358 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="false"
John Criswell7a73b802003-06-30 21:59:07 +000018359 ;;
18360esac
18361fi
18362MKDIR=$ac_cv_path_MKDIR
18363
18364if test -n "$MKDIR"; then
18365 echo "$as_me:$LINENO: result: $MKDIR" >&5
18366echo "${ECHO_T}$MKDIR" >&6
18367else
18368 echo "$as_me:$LINENO: result: no" >&5
18369echo "${ECHO_T}no" >&6
18370fi
18371
John Criswell39827c82003-09-23 15:28:52 +000018372if test ${MKDIR} = "false"
18373then
18374 { { echo "$as_me:$LINENO: error: mkdir required but not found" >&5
18375echo "$as_me: error: mkdir required but not found" >&2;}
18376 { (exit 1); exit 1; }; }
18377fi
18378
John Criswell7a73b802003-06-30 21:59:07 +000018379# Extract the first word of "date", so it can be a program name with args.
18380set dummy date; ac_word=$2
18381echo "$as_me:$LINENO: checking for $ac_word" >&5
18382echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18383if test "${ac_cv_path_DATE+set}" = set; then
18384 echo $ECHO_N "(cached) $ECHO_C" >&6
18385else
18386 case $DATE in
18387 [\\/]* | ?:[\\/]*)
18388 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
18389 ;;
18390 *)
18391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18392for as_dir in $PATH
18393do
18394 IFS=$as_save_IFS
18395 test -z "$as_dir" && as_dir=.
18396 for ac_exec_ext in '' $ac_executable_extensions; do
18397 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18398 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
18399 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18400 break 2
18401 fi
18402done
18403done
18404
John Criswell39827c82003-09-23 15:28:52 +000018405 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="false"
John Criswell7a73b802003-06-30 21:59:07 +000018406 ;;
18407esac
18408fi
18409DATE=$ac_cv_path_DATE
18410
18411if test -n "$DATE"; then
18412 echo "$as_me:$LINENO: result: $DATE" >&5
18413echo "${ECHO_T}$DATE" >&6
18414else
18415 echo "$as_me:$LINENO: result: no" >&5
18416echo "${ECHO_T}no" >&6
18417fi
18418
John Criswell39827c82003-09-23 15:28:52 +000018419if test ${DATE} = "false"
18420then
18421 { { echo "$as_me:$LINENO: error: date required but not found" >&5
18422echo "$as_me: error: date required but not found" >&2;}
18423 { (exit 1); exit 1; }; }
18424fi
18425
John Criswell7a73b802003-06-30 21:59:07 +000018426# Extract the first word of "mv", so it can be a program name with args.
18427set dummy mv; ac_word=$2
18428echo "$as_me:$LINENO: checking for $ac_word" >&5
18429echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18430if test "${ac_cv_path_MV+set}" = set; then
18431 echo $ECHO_N "(cached) $ECHO_C" >&6
18432else
18433 case $MV in
18434 [\\/]* | ?:[\\/]*)
18435 ac_cv_path_MV="$MV" # Let the user override the test with a path.
18436 ;;
18437 *)
18438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18439for as_dir in $PATH
18440do
18441 IFS=$as_save_IFS
18442 test -z "$as_dir" && as_dir=.
18443 for ac_exec_ext in '' $ac_executable_extensions; do
18444 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18445 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
18446 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18447 break 2
18448 fi
18449done
18450done
18451
John Criswell39827c82003-09-23 15:28:52 +000018452 test -z "$ac_cv_path_MV" && ac_cv_path_MV="false"
John Criswell7a73b802003-06-30 21:59:07 +000018453 ;;
18454esac
18455fi
18456MV=$ac_cv_path_MV
18457
18458if test -n "$MV"; then
18459 echo "$as_me:$LINENO: result: $MV" >&5
18460echo "${ECHO_T}$MV" >&6
18461else
18462 echo "$as_me:$LINENO: result: no" >&5
18463echo "${ECHO_T}no" >&6
18464fi
18465
John Criswell39827c82003-09-23 15:28:52 +000018466if test ${MV} = "false"
18467then
18468 { { echo "$as_me:$LINENO: error: mv required but not found" >&5
18469echo "$as_me: error: mv required but not found" >&2;}
18470 { (exit 1); exit 1; }; }
18471fi
18472
John Criswell7a73b802003-06-30 21:59:07 +000018473# Extract the first word of "dot", so it can be a program name with args.
18474set dummy dot; ac_word=$2
18475echo "$as_me:$LINENO: checking for $ac_word" >&5
18476echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18477if test "${ac_cv_path_DOT+set}" = set; then
18478 echo $ECHO_N "(cached) $ECHO_C" >&6
18479else
18480 case $DOT in
18481 [\\/]* | ?:[\\/]*)
18482 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
18483 ;;
18484 *)
18485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18486for as_dir in $PATH
18487do
18488 IFS=$as_save_IFS
18489 test -z "$as_dir" && as_dir=.
18490 for ac_exec_ext in '' $ac_executable_extensions; do
18491 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18492 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
18493 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18494 break 2
18495 fi
18496done
18497done
18498
John Criswell39827c82003-09-23 15:28:52 +000018499 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="false"
John Criswell7a73b802003-06-30 21:59:07 +000018500 ;;
18501esac
18502fi
18503DOT=$ac_cv_path_DOT
18504
18505if test -n "$DOT"; then
18506 echo "$as_me:$LINENO: result: $DOT" >&5
18507echo "${ECHO_T}$DOT" >&6
18508else
18509 echo "$as_me:$LINENO: result: no" >&5
18510echo "${ECHO_T}no" >&6
18511fi
18512
John Criswell39827c82003-09-23 15:28:52 +000018513
John Criswell7a73b802003-06-30 21:59:07 +000018514# Extract the first word of "etags", so it can be a program name with args.
18515set dummy etags; ac_word=$2
18516echo "$as_me:$LINENO: checking for $ac_word" >&5
18517echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18518if test "${ac_cv_path_ETAGS+set}" = set; then
18519 echo $ECHO_N "(cached) $ECHO_C" >&6
18520else
18521 case $ETAGS in
18522 [\\/]* | ?:[\\/]*)
18523 ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
18524 ;;
18525 *)
18526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18527for as_dir in $PATH
18528do
18529 IFS=$as_save_IFS
18530 test -z "$as_dir" && as_dir=.
18531 for ac_exec_ext in '' $ac_executable_extensions; do
18532 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18533 ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
18534 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18535 break 2
18536 fi
18537done
18538done
18539
John Criswell39827c82003-09-23 15:28:52 +000018540 test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="false"
John Criswell7a73b802003-06-30 21:59:07 +000018541 ;;
18542esac
18543fi
18544ETAGS=$ac_cv_path_ETAGS
18545
18546if test -n "$ETAGS"; then
18547 echo "$as_me:$LINENO: result: $ETAGS" >&5
18548echo "${ECHO_T}$ETAGS" >&6
18549else
18550 echo "$as_me:$LINENO: result: no" >&5
18551echo "${ECHO_T}no" >&6
18552fi
18553
John Criswell39827c82003-09-23 15:28:52 +000018554
John Criswellde00db22003-08-25 16:49:54 +000018555# Extract the first word of "python", so it can be a program name with args.
18556set dummy python; ac_word=$2
18557echo "$as_me:$LINENO: checking for $ac_word" >&5
18558echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18559if test "${ac_cv_path_PYTHON+set}" = set; then
18560 echo $ECHO_N "(cached) $ECHO_C" >&6
18561else
18562 case $PYTHON in
18563 [\\/]* | ?:[\\/]*)
18564 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
18565 ;;
18566 *)
18567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18568for as_dir in $PATH
18569do
18570 IFS=$as_save_IFS
18571 test -z "$as_dir" && as_dir=.
18572 for ac_exec_ext in '' $ac_executable_extensions; do
18573 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18574 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
18575 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18576 break 2
18577 fi
18578done
18579done
18580
John Criswell39827c82003-09-23 15:28:52 +000018581 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="false"
John Criswellde00db22003-08-25 16:49:54 +000018582 ;;
18583esac
18584fi
18585PYTHON=$ac_cv_path_PYTHON
18586
18587if test -n "$PYTHON"; then
18588 echo "$as_me:$LINENO: result: $PYTHON" >&5
18589echo "${ECHO_T}$PYTHON" >&6
18590else
18591 echo "$as_me:$LINENO: result: no" >&5
18592echo "${ECHO_T}no" >&6
18593fi
18594
John Criswell39827c82003-09-23 15:28:52 +000018595if test ${PYTHON} = "false"
18596then
John Criswell61095982003-09-23 20:46:32 +000018597 { echo "$as_me:$LINENO: WARNING: python required but not found" >&5
18598echo "$as_me: WARNING: python required but not found" >&2;}
John Criswell39827c82003-09-23 15:28:52 +000018599fi
18600
John Criswellde00db22003-08-25 16:49:54 +000018601# Extract the first word of "qmtest", so it can be a program name with args.
18602set dummy qmtest; ac_word=$2
18603echo "$as_me:$LINENO: checking for $ac_word" >&5
18604echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18605if test "${ac_cv_path_QMTEST+set}" = set; then
18606 echo $ECHO_N "(cached) $ECHO_C" >&6
18607else
18608 case $QMTEST in
18609 [\\/]* | ?:[\\/]*)
18610 ac_cv_path_QMTEST="$QMTEST" # Let the user override the test with a path.
18611 ;;
18612 *)
18613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18614for as_dir in $PATH
18615do
18616 IFS=$as_save_IFS
18617 test -z "$as_dir" && as_dir=.
18618 for ac_exec_ext in '' $ac_executable_extensions; do
18619 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18620 ac_cv_path_QMTEST="$as_dir/$ac_word$ac_exec_ext"
18621 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18622 break 2
18623 fi
18624done
18625done
18626
John Criswell39827c82003-09-23 15:28:52 +000018627 test -z "$ac_cv_path_QMTEST" && ac_cv_path_QMTEST="false"
John Criswellde00db22003-08-25 16:49:54 +000018628 ;;
18629esac
18630fi
18631QMTEST=$ac_cv_path_QMTEST
18632
18633if test -n "$QMTEST"; then
18634 echo "$as_me:$LINENO: result: $QMTEST" >&5
18635echo "${ECHO_T}$QMTEST" >&6
18636else
18637 echo "$as_me:$LINENO: result: no" >&5
18638echo "${ECHO_T}no" >&6
18639fi
18640
John Criswell39827c82003-09-23 15:28:52 +000018641if test ${QMTEST} = "false"
18642then
John Criswell61095982003-09-23 20:46:32 +000018643 { echo "$as_me:$LINENO: WARNING: qmtest required but not found" >&5
18644echo "$as_me: WARNING: qmtest required but not found" >&2;}
John Criswell39827c82003-09-23 15:28:52 +000018645fi
John Criswellde00db22003-08-25 16:49:54 +000018646
18647pyversion=`$PYTHON -V 2>&1 | cut -d\ -f2`
18648pymajor=`echo $pyversion | cut -d. -f1`
18649pyminor=`echo $pyversion | cut -d. -f2`
18650
18651if test "$pymajor" -ge "2"
18652then
18653 if test "$pymajor" -eq "2"
18654 then
18655 if test "$pyminor" -lt "2"
18656 then
Brian Gaekef3b24102003-11-16 18:38:14 +000018657 { echo "$as_me:$LINENO: WARNING: Python 2.2 or greater required for qmtest" >&5
18658echo "$as_me: WARNING: Python 2.2 or greater required for qmtest" >&2;}
John Criswellde00db22003-08-25 16:49:54 +000018659 fi
18660 fi
18661else
Brian Gaekef3b24102003-11-16 18:38:14 +000018662 { echo "$as_me:$LINENO: WARNING: Python 2.2 or greater required for qmtest" >&5
18663echo "$as_me: WARNING: Python 2.2 or greater required for qmtest" >&2;}
John Criswellde00db22003-08-25 16:49:54 +000018664fi
John Criswell7a73b802003-06-30 21:59:07 +000018665
18666
18667
18668
18669
18670echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
18671echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
18672if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
18673 echo $ECHO_N "(cached) $ECHO_C" >&6
18674else
18675 ac_check_lib_save_LIBS=$LIBS
18676LIBS="-lelf $LIBS"
18677cat >conftest.$ac_ext <<_ACEOF
18678#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000018679/* confdefs.h. */
18680_ACEOF
18681cat confdefs.h >>conftest.$ac_ext
18682cat >>conftest.$ac_ext <<_ACEOF
18683/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000018684
18685/* Override any gcc2 internal prototype to avoid an error. */
18686#ifdef __cplusplus
18687extern "C"
18688#endif
18689/* We use char because int might match the return type of a gcc2
18690 builtin and then its argument prototype would still apply. */
18691char elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000018692int
18693main ()
18694{
18695elf_begin ();
18696 ;
18697 return 0;
18698}
18699_ACEOF
18700rm -f conftest.$ac_objext conftest$ac_exeext
18701if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18702 (eval $ac_link) 2>&5
18703 ac_status=$?
18704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18705 (exit $ac_status); } &&
18706 { ac_try='test -s conftest$ac_exeext'
18707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18708 (eval $ac_try) 2>&5
18709 ac_status=$?
18710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18711 (exit $ac_status); }; }; then
18712 ac_cv_lib_elf_elf_begin=yes
18713else
18714 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018715sed 's/^/| /' conftest.$ac_ext >&5
18716
John Criswell7a73b802003-06-30 21:59:07 +000018717ac_cv_lib_elf_elf_begin=no
18718fi
18719rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18720LIBS=$ac_check_lib_save_LIBS
18721fi
18722echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
18723echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
18724if test $ac_cv_lib_elf_elf_begin = yes; then
18725 cat >>confdefs.h <<_ACEOF
18726#define HAVE_LIBELF 1
18727_ACEOF
18728
18729 LIBS="-lelf $LIBS"
18730
18731fi
18732
18733
18734echo "$as_me:$LINENO: checking for library containing dlopen" >&5
18735echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
18736if test "${ac_cv_search_dlopen+set}" = set; then
18737 echo $ECHO_N "(cached) $ECHO_C" >&6
18738else
18739 ac_func_search_save_LIBS=$LIBS
18740ac_cv_search_dlopen=no
18741cat >conftest.$ac_ext <<_ACEOF
18742#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000018743/* confdefs.h. */
18744_ACEOF
18745cat confdefs.h >>conftest.$ac_ext
18746cat >>conftest.$ac_ext <<_ACEOF
18747/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000018748
18749/* Override any gcc2 internal prototype to avoid an error. */
18750#ifdef __cplusplus
18751extern "C"
18752#endif
18753/* We use char because int might match the return type of a gcc2
18754 builtin and then its argument prototype would still apply. */
18755char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000018756int
18757main ()
18758{
18759dlopen ();
18760 ;
18761 return 0;
18762}
18763_ACEOF
18764rm -f conftest.$ac_objext conftest$ac_exeext
18765if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18766 (eval $ac_link) 2>&5
18767 ac_status=$?
18768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18769 (exit $ac_status); } &&
18770 { ac_try='test -s conftest$ac_exeext'
18771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18772 (eval $ac_try) 2>&5
18773 ac_status=$?
18774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18775 (exit $ac_status); }; }; then
18776 ac_cv_search_dlopen="none required"
18777else
18778 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018779sed 's/^/| /' conftest.$ac_ext >&5
18780
John Criswell7a73b802003-06-30 21:59:07 +000018781fi
18782rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18783if test "$ac_cv_search_dlopen" = no; then
18784 for ac_lib in dl; do
18785 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18786 cat >conftest.$ac_ext <<_ACEOF
18787#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000018788/* confdefs.h. */
18789_ACEOF
18790cat confdefs.h >>conftest.$ac_ext
18791cat >>conftest.$ac_ext <<_ACEOF
18792/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000018793
18794/* Override any gcc2 internal prototype to avoid an error. */
18795#ifdef __cplusplus
18796extern "C"
18797#endif
18798/* We use char because int might match the return type of a gcc2
18799 builtin and then its argument prototype would still apply. */
18800char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000018801int
18802main ()
18803{
18804dlopen ();
18805 ;
18806 return 0;
18807}
18808_ACEOF
18809rm -f conftest.$ac_objext conftest$ac_exeext
18810if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18811 (eval $ac_link) 2>&5
18812 ac_status=$?
18813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18814 (exit $ac_status); } &&
18815 { ac_try='test -s conftest$ac_exeext'
18816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18817 (eval $ac_try) 2>&5
18818 ac_status=$?
18819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18820 (exit $ac_status); }; }; then
18821 ac_cv_search_dlopen="-l$ac_lib"
18822break
18823else
18824 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018825sed 's/^/| /' conftest.$ac_ext >&5
18826
John Criswell7a73b802003-06-30 21:59:07 +000018827fi
18828rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18829 done
18830fi
18831LIBS=$ac_func_search_save_LIBS
18832fi
18833echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
18834echo "${ECHO_T}$ac_cv_search_dlopen" >&6
18835if test "$ac_cv_search_dlopen" != no; then
18836 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000018837
18838cat >>confdefs.h <<\_ACEOF
Brian Gaekec45be042003-10-07 06:01:34 +000018839#define HAVE_DLOPEN 1
18840_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000018841
18842else
Brian Gaekec45be042003-10-07 06:01:34 +000018843 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
18844echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000018845fi
18846
18847
18848echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
18849echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
18850if test "${ac_cv_search_mallinfo+set}" = set; then
18851 echo $ECHO_N "(cached) $ECHO_C" >&6
18852else
18853 ac_func_search_save_LIBS=$LIBS
18854ac_cv_search_mallinfo=no
18855cat >conftest.$ac_ext <<_ACEOF
18856#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000018857/* confdefs.h. */
18858_ACEOF
18859cat confdefs.h >>conftest.$ac_ext
18860cat >>conftest.$ac_ext <<_ACEOF
18861/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000018862
18863/* Override any gcc2 internal prototype to avoid an error. */
18864#ifdef __cplusplus
18865extern "C"
18866#endif
18867/* We use char because int might match the return type of a gcc2
18868 builtin and then its argument prototype would still apply. */
18869char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000018870int
18871main ()
18872{
18873mallinfo ();
18874 ;
18875 return 0;
18876}
18877_ACEOF
18878rm -f conftest.$ac_objext conftest$ac_exeext
18879if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18880 (eval $ac_link) 2>&5
18881 ac_status=$?
18882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18883 (exit $ac_status); } &&
18884 { ac_try='test -s conftest$ac_exeext'
18885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18886 (eval $ac_try) 2>&5
18887 ac_status=$?
18888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18889 (exit $ac_status); }; }; then
18890 ac_cv_search_mallinfo="none required"
18891else
18892 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018893sed 's/^/| /' conftest.$ac_ext >&5
18894
John Criswell7a73b802003-06-30 21:59:07 +000018895fi
18896rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18897if test "$ac_cv_search_mallinfo" = no; then
18898 for ac_lib in malloc; do
18899 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18900 cat >conftest.$ac_ext <<_ACEOF
18901#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000018902/* confdefs.h. */
18903_ACEOF
18904cat confdefs.h >>conftest.$ac_ext
18905cat >>conftest.$ac_ext <<_ACEOF
18906/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000018907
18908/* Override any gcc2 internal prototype to avoid an error. */
18909#ifdef __cplusplus
18910extern "C"
18911#endif
18912/* We use char because int might match the return type of a gcc2
18913 builtin and then its argument prototype would still apply. */
18914char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000018915int
18916main ()
18917{
18918mallinfo ();
18919 ;
18920 return 0;
18921}
18922_ACEOF
18923rm -f conftest.$ac_objext conftest$ac_exeext
18924if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18925 (eval $ac_link) 2>&5
18926 ac_status=$?
18927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18928 (exit $ac_status); } &&
18929 { ac_try='test -s conftest$ac_exeext'
18930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18931 (eval $ac_try) 2>&5
18932 ac_status=$?
18933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18934 (exit $ac_status); }; }; then
18935 ac_cv_search_mallinfo="-l$ac_lib"
18936break
18937else
18938 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018939sed 's/^/| /' conftest.$ac_ext >&5
18940
John Criswell7a73b802003-06-30 21:59:07 +000018941fi
18942rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18943 done
18944fi
18945LIBS=$ac_func_search_save_LIBS
18946fi
18947echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
18948echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
18949if test "$ac_cv_search_mallinfo" != no; then
18950 test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000018951
18952cat >>confdefs.h <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000018953#define HAVE_MALLINFO 1
18954_ACEOF
18955
18956fi
18957
18958
18959
18960echo "$as_me:$LINENO: checking for ANSI C header files" >&5
18961echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
18962if test "${ac_cv_header_stdc+set}" = set; then
18963 echo $ECHO_N "(cached) $ECHO_C" >&6
18964else
18965 cat >conftest.$ac_ext <<_ACEOF
18966#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000018967/* confdefs.h. */
18968_ACEOF
18969cat confdefs.h >>conftest.$ac_ext
18970cat >>conftest.$ac_ext <<_ACEOF
18971/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000018972#include <stdlib.h>
18973#include <stdarg.h>
18974#include <string.h>
18975#include <float.h>
18976
John Criswell0c38eaf2003-09-10 15:17:25 +000018977int
18978main ()
18979{
18980
18981 ;
18982 return 0;
18983}
John Criswell7a73b802003-06-30 21:59:07 +000018984_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018985rm -f conftest.$ac_objext
18986if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18987 (eval $ac_compile) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000018988 ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +000018989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018990 (exit $ac_status); } &&
18991 { ac_try='test -s conftest.$ac_objext'
18992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18993 (eval $ac_try) 2>&5
18994 ac_status=$?
18995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18996 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000018997 ac_cv_header_stdc=yes
18998else
18999 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019000sed 's/^/| /' conftest.$ac_ext >&5
19001
19002ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000019003fi
John Criswell0c38eaf2003-09-10 15:17:25 +000019004rm -f conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000019005
19006if test $ac_cv_header_stdc = yes; then
19007 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19008 cat >conftest.$ac_ext <<_ACEOF
19009#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019010/* confdefs.h. */
19011_ACEOF
19012cat confdefs.h >>conftest.$ac_ext
19013cat >>conftest.$ac_ext <<_ACEOF
19014/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019015#include <string.h>
19016
19017_ACEOF
19018if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000019019 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000019020 :
19021else
19022 ac_cv_header_stdc=no
19023fi
19024rm -f conftest*
19025
19026fi
19027
19028if test $ac_cv_header_stdc = yes; then
19029 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19030 cat >conftest.$ac_ext <<_ACEOF
19031#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019032/* confdefs.h. */
19033_ACEOF
19034cat confdefs.h >>conftest.$ac_ext
19035cat >>conftest.$ac_ext <<_ACEOF
19036/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019037#include <stdlib.h>
19038
19039_ACEOF
19040if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000019041 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000019042 :
19043else
19044 ac_cv_header_stdc=no
19045fi
19046rm -f conftest*
19047
19048fi
19049
19050if test $ac_cv_header_stdc = yes; then
19051 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19052 if test "$cross_compiling" = yes; then
19053 :
19054else
19055 cat >conftest.$ac_ext <<_ACEOF
19056#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019057/* confdefs.h. */
19058_ACEOF
19059cat confdefs.h >>conftest.$ac_ext
19060cat >>conftest.$ac_ext <<_ACEOF
19061/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019062#include <ctype.h>
19063#if ((' ' & 0x0FF) == 0x020)
19064# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19065# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19066#else
John Criswell0c38eaf2003-09-10 15:17:25 +000019067# define ISLOWER(c) \
19068 (('a' <= (c) && (c) <= 'i') \
John Criswell7a73b802003-06-30 21:59:07 +000019069 || ('j' <= (c) && (c) <= 'r') \
19070 || ('s' <= (c) && (c) <= 'z'))
19071# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19072#endif
19073
19074#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19075int
19076main ()
19077{
19078 int i;
19079 for (i = 0; i < 256; i++)
19080 if (XOR (islower (i), ISLOWER (i))
19081 || toupper (i) != TOUPPER (i))
19082 exit(2);
19083 exit (0);
19084}
19085_ACEOF
19086rm -f conftest$ac_exeext
19087if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19088 (eval $ac_link) 2>&5
19089 ac_status=$?
19090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19091 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19093 (eval $ac_try) 2>&5
19094 ac_status=$?
19095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19096 (exit $ac_status); }; }; then
19097 :
19098else
19099 echo "$as_me: program exited with status $ac_status" >&5
19100echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019101sed 's/^/| /' conftest.$ac_ext >&5
19102
John Criswell7a73b802003-06-30 21:59:07 +000019103( exit $ac_status )
19104ac_cv_header_stdc=no
19105fi
John Criswell0c38eaf2003-09-10 15:17:25 +000019106rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000019107fi
19108fi
19109fi
19110echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19111echo "${ECHO_T}$ac_cv_header_stdc" >&6
19112if test $ac_cv_header_stdc = yes; then
19113
19114cat >>confdefs.h <<\_ACEOF
19115#define STDC_HEADERS 1
19116_ACEOF
19117
19118fi
19119
19120echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
19121echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
19122if test "${ac_cv_header_sys_wait_h+set}" = set; then
19123 echo $ECHO_N "(cached) $ECHO_C" >&6
19124else
19125 cat >conftest.$ac_ext <<_ACEOF
19126#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019127/* confdefs.h. */
19128_ACEOF
19129cat confdefs.h >>conftest.$ac_ext
19130cat >>conftest.$ac_ext <<_ACEOF
19131/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019132#include <sys/types.h>
19133#include <sys/wait.h>
19134#ifndef WEXITSTATUS
19135# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
19136#endif
19137#ifndef WIFEXITED
19138# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
19139#endif
19140
John Criswell7a73b802003-06-30 21:59:07 +000019141int
19142main ()
19143{
19144 int s;
19145 wait (&s);
19146 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
19147 ;
19148 return 0;
19149}
19150_ACEOF
19151rm -f conftest.$ac_objext
19152if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19153 (eval $ac_compile) 2>&5
19154 ac_status=$?
19155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19156 (exit $ac_status); } &&
19157 { ac_try='test -s conftest.$ac_objext'
19158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19159 (eval $ac_try) 2>&5
19160 ac_status=$?
19161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19162 (exit $ac_status); }; }; then
19163 ac_cv_header_sys_wait_h=yes
19164else
19165 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019166sed 's/^/| /' conftest.$ac_ext >&5
19167
John Criswell7a73b802003-06-30 21:59:07 +000019168ac_cv_header_sys_wait_h=no
19169fi
19170rm -f conftest.$ac_objext conftest.$ac_ext
19171fi
19172echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
19173echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
19174if test $ac_cv_header_sys_wait_h = yes; then
19175
19176cat >>confdefs.h <<\_ACEOF
19177#define HAVE_SYS_WAIT_H 1
19178_ACEOF
19179
19180fi
19181
19182
19183
19184
19185
19186
19187
19188
19189
19190
19191for ac_header in assert.h fcntl.h limits.h sys/time.h unistd.h errno.h signal.h math.h
19192do
19193as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19194if eval "test \"\${$as_ac_Header+set}\" = set"; then
19195 echo "$as_me:$LINENO: checking for $ac_header" >&5
19196echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19197if eval "test \"\${$as_ac_Header+set}\" = set"; then
19198 echo $ECHO_N "(cached) $ECHO_C" >&6
19199fi
19200echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19201echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19202else
19203 # Is the header compilable?
19204echo "$as_me:$LINENO: checking $ac_header usability" >&5
19205echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19206cat >conftest.$ac_ext <<_ACEOF
19207#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019208/* confdefs.h. */
19209_ACEOF
19210cat confdefs.h >>conftest.$ac_ext
19211cat >>conftest.$ac_ext <<_ACEOF
19212/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019213$ac_includes_default
19214#include <$ac_header>
19215_ACEOF
19216rm -f conftest.$ac_objext
19217if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19218 (eval $ac_compile) 2>&5
19219 ac_status=$?
19220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19221 (exit $ac_status); } &&
19222 { ac_try='test -s conftest.$ac_objext'
19223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19224 (eval $ac_try) 2>&5
19225 ac_status=$?
19226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19227 (exit $ac_status); }; }; then
19228 ac_header_compiler=yes
19229else
19230 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019231sed 's/^/| /' conftest.$ac_ext >&5
19232
John Criswell7a73b802003-06-30 21:59:07 +000019233ac_header_compiler=no
19234fi
19235rm -f conftest.$ac_objext conftest.$ac_ext
19236echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19237echo "${ECHO_T}$ac_header_compiler" >&6
19238
19239# Is the header present?
19240echo "$as_me:$LINENO: checking $ac_header presence" >&5
19241echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19242cat >conftest.$ac_ext <<_ACEOF
19243#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019244/* confdefs.h. */
19245_ACEOF
19246cat confdefs.h >>conftest.$ac_ext
19247cat >>conftest.$ac_ext <<_ACEOF
19248/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019249#include <$ac_header>
19250_ACEOF
19251if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19252 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19253 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000019254 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000019255 rm -f conftest.er1
19256 cat conftest.err >&5
19257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19258 (exit $ac_status); } >/dev/null; then
19259 if test -s conftest.err; then
19260 ac_cpp_err=$ac_c_preproc_warn_flag
19261 else
19262 ac_cpp_err=
19263 fi
19264else
19265 ac_cpp_err=yes
19266fi
19267if test -z "$ac_cpp_err"; then
19268 ac_header_preproc=yes
19269else
19270 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019271sed 's/^/| /' conftest.$ac_ext >&5
19272
John Criswell7a73b802003-06-30 21:59:07 +000019273 ac_header_preproc=no
19274fi
19275rm -f conftest.err conftest.$ac_ext
19276echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19277echo "${ECHO_T}$ac_header_preproc" >&6
19278
19279# So? What about this header?
19280case $ac_header_compiler:$ac_header_preproc in
19281 yes:no )
19282 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19283echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19284 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019285echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19286 (
19287 cat <<\_ASBOX
19288## ------------------------------------ ##
19289## Report this to bug-autoconf@gnu.org. ##
19290## ------------------------------------ ##
19291_ASBOX
19292 ) |
19293 sed "s/^/$as_me: WARNING: /" >&2
19294 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019295 no:yes )
19296 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19297echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19298 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19299echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19300 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019301echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19302 (
19303 cat <<\_ASBOX
19304## ------------------------------------ ##
19305## Report this to bug-autoconf@gnu.org. ##
19306## ------------------------------------ ##
19307_ASBOX
19308 ) |
19309 sed "s/^/$as_me: WARNING: /" >&2
19310 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019311esac
19312echo "$as_me:$LINENO: checking for $ac_header" >&5
19313echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19314if eval "test \"\${$as_ac_Header+set}\" = set"; then
19315 echo $ECHO_N "(cached) $ECHO_C" >&6
19316else
19317 eval "$as_ac_Header=$ac_header_preproc"
19318fi
19319echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19320echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19321
19322fi
19323if test `eval echo '${'$as_ac_Header'}'` = yes; then
19324 cat >>confdefs.h <<_ACEOF
19325#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19326_ACEOF
19327
19328fi
19329
19330done
19331
19332
19333
19334
19335
John Criswelle8a63eb2003-10-23 19:16:12 +000019336for ac_header in malloc.h sys/mman.h sys/resource.h
John Criswell7a73b802003-06-30 21:59:07 +000019337do
19338as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19339if eval "test \"\${$as_ac_Header+set}\" = set"; then
19340 echo "$as_me:$LINENO: checking for $ac_header" >&5
19341echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19342if eval "test \"\${$as_ac_Header+set}\" = set"; then
19343 echo $ECHO_N "(cached) $ECHO_C" >&6
19344fi
19345echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19346echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19347else
19348 # Is the header compilable?
19349echo "$as_me:$LINENO: checking $ac_header usability" >&5
19350echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19351cat >conftest.$ac_ext <<_ACEOF
19352#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019353/* confdefs.h. */
19354_ACEOF
19355cat confdefs.h >>conftest.$ac_ext
19356cat >>conftest.$ac_ext <<_ACEOF
19357/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019358$ac_includes_default
19359#include <$ac_header>
19360_ACEOF
19361rm -f conftest.$ac_objext
19362if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19363 (eval $ac_compile) 2>&5
19364 ac_status=$?
19365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19366 (exit $ac_status); } &&
19367 { ac_try='test -s conftest.$ac_objext'
19368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19369 (eval $ac_try) 2>&5
19370 ac_status=$?
19371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19372 (exit $ac_status); }; }; then
19373 ac_header_compiler=yes
19374else
19375 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019376sed 's/^/| /' conftest.$ac_ext >&5
19377
John Criswell7a73b802003-06-30 21:59:07 +000019378ac_header_compiler=no
19379fi
19380rm -f conftest.$ac_objext conftest.$ac_ext
19381echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19382echo "${ECHO_T}$ac_header_compiler" >&6
19383
19384# Is the header present?
19385echo "$as_me:$LINENO: checking $ac_header presence" >&5
19386echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19387cat >conftest.$ac_ext <<_ACEOF
19388#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019389/* confdefs.h. */
19390_ACEOF
19391cat confdefs.h >>conftest.$ac_ext
19392cat >>conftest.$ac_ext <<_ACEOF
19393/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019394#include <$ac_header>
19395_ACEOF
19396if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19397 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19398 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000019399 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000019400 rm -f conftest.er1
19401 cat conftest.err >&5
19402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19403 (exit $ac_status); } >/dev/null; then
19404 if test -s conftest.err; then
19405 ac_cpp_err=$ac_c_preproc_warn_flag
19406 else
19407 ac_cpp_err=
19408 fi
19409else
19410 ac_cpp_err=yes
19411fi
19412if test -z "$ac_cpp_err"; then
19413 ac_header_preproc=yes
19414else
19415 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019416sed 's/^/| /' conftest.$ac_ext >&5
19417
John Criswell7a73b802003-06-30 21:59:07 +000019418 ac_header_preproc=no
19419fi
19420rm -f conftest.err conftest.$ac_ext
19421echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19422echo "${ECHO_T}$ac_header_preproc" >&6
19423
19424# So? What about this header?
19425case $ac_header_compiler:$ac_header_preproc in
19426 yes:no )
19427 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19428echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19429 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019430echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19431 (
19432 cat <<\_ASBOX
19433## ------------------------------------ ##
19434## Report this to bug-autoconf@gnu.org. ##
19435## ------------------------------------ ##
19436_ASBOX
19437 ) |
19438 sed "s/^/$as_me: WARNING: /" >&2
19439 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019440 no:yes )
19441 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19442echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19443 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19444echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19445 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019446echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19447 (
19448 cat <<\_ASBOX
19449## ------------------------------------ ##
19450## Report this to bug-autoconf@gnu.org. ##
19451## ------------------------------------ ##
19452_ASBOX
19453 ) |
19454 sed "s/^/$as_me: WARNING: /" >&2
19455 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019456esac
19457echo "$as_me:$LINENO: checking for $ac_header" >&5
19458echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19459if eval "test \"\${$as_ac_Header+set}\" = set"; then
19460 echo $ECHO_N "(cached) $ECHO_C" >&6
19461else
19462 eval "$as_ac_Header=$ac_header_preproc"
19463fi
19464echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19465echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19466
19467fi
19468if test `eval echo '${'$as_ac_Header'}'` = yes; then
19469 cat >>confdefs.h <<_ACEOF
19470#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19471_ACEOF
19472
19473fi
19474
19475done
19476
19477
19478
19479
19480for ac_header in dlfcn.h link.h
19481do
19482as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19483if eval "test \"\${$as_ac_Header+set}\" = set"; then
19484 echo "$as_me:$LINENO: checking for $ac_header" >&5
19485echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19486if eval "test \"\${$as_ac_Header+set}\" = set"; then
19487 echo $ECHO_N "(cached) $ECHO_C" >&6
19488fi
19489echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19490echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19491else
19492 # Is the header compilable?
19493echo "$as_me:$LINENO: checking $ac_header usability" >&5
19494echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19495cat >conftest.$ac_ext <<_ACEOF
19496#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019497/* confdefs.h. */
19498_ACEOF
19499cat confdefs.h >>conftest.$ac_ext
19500cat >>conftest.$ac_ext <<_ACEOF
19501/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019502$ac_includes_default
19503#include <$ac_header>
19504_ACEOF
19505rm -f conftest.$ac_objext
19506if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19507 (eval $ac_compile) 2>&5
19508 ac_status=$?
19509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19510 (exit $ac_status); } &&
19511 { ac_try='test -s conftest.$ac_objext'
19512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19513 (eval $ac_try) 2>&5
19514 ac_status=$?
19515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19516 (exit $ac_status); }; }; then
19517 ac_header_compiler=yes
19518else
19519 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019520sed 's/^/| /' conftest.$ac_ext >&5
19521
John Criswell7a73b802003-06-30 21:59:07 +000019522ac_header_compiler=no
19523fi
19524rm -f conftest.$ac_objext conftest.$ac_ext
19525echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19526echo "${ECHO_T}$ac_header_compiler" >&6
19527
19528# Is the header present?
19529echo "$as_me:$LINENO: checking $ac_header presence" >&5
19530echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19531cat >conftest.$ac_ext <<_ACEOF
19532#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019533/* confdefs.h. */
19534_ACEOF
19535cat confdefs.h >>conftest.$ac_ext
19536cat >>conftest.$ac_ext <<_ACEOF
19537/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019538#include <$ac_header>
19539_ACEOF
19540if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19541 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19542 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000019543 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000019544 rm -f conftest.er1
19545 cat conftest.err >&5
19546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19547 (exit $ac_status); } >/dev/null; then
19548 if test -s conftest.err; then
19549 ac_cpp_err=$ac_c_preproc_warn_flag
19550 else
19551 ac_cpp_err=
19552 fi
19553else
19554 ac_cpp_err=yes
19555fi
19556if test -z "$ac_cpp_err"; then
19557 ac_header_preproc=yes
19558else
19559 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019560sed 's/^/| /' conftest.$ac_ext >&5
19561
John Criswell7a73b802003-06-30 21:59:07 +000019562 ac_header_preproc=no
19563fi
19564rm -f conftest.err conftest.$ac_ext
19565echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19566echo "${ECHO_T}$ac_header_preproc" >&6
19567
19568# So? What about this header?
19569case $ac_header_compiler:$ac_header_preproc in
19570 yes:no )
19571 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19572echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19573 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019574echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19575 (
19576 cat <<\_ASBOX
19577## ------------------------------------ ##
19578## Report this to bug-autoconf@gnu.org. ##
19579## ------------------------------------ ##
19580_ASBOX
19581 ) |
19582 sed "s/^/$as_me: WARNING: /" >&2
19583 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019584 no:yes )
19585 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19586echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19587 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19588echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19589 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019590echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19591 (
19592 cat <<\_ASBOX
19593## ------------------------------------ ##
19594## Report this to bug-autoconf@gnu.org. ##
19595## ------------------------------------ ##
19596_ASBOX
19597 ) |
19598 sed "s/^/$as_me: WARNING: /" >&2
19599 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019600esac
19601echo "$as_me:$LINENO: checking for $ac_header" >&5
19602echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19603if eval "test \"\${$as_ac_Header+set}\" = set"; then
19604 echo $ECHO_N "(cached) $ECHO_C" >&6
19605else
19606 eval "$as_ac_Header=$ac_header_preproc"
19607fi
19608echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19609echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19610
19611fi
19612if test `eval echo '${'$as_ac_Header'}'` = yes; then
19613 cat >>confdefs.h <<_ACEOF
19614#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19615_ACEOF
19616
19617fi
19618
19619done
19620
19621
19622
John Criswell7a73b802003-06-30 21:59:07 +000019623echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
19624echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
19625if test "${ac_cv_c_const+set}" = set; then
19626 echo $ECHO_N "(cached) $ECHO_C" >&6
19627else
19628 cat >conftest.$ac_ext <<_ACEOF
19629#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019630/* confdefs.h. */
19631_ACEOF
19632cat confdefs.h >>conftest.$ac_ext
19633cat >>conftest.$ac_ext <<_ACEOF
19634/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019635
John Criswell7a73b802003-06-30 21:59:07 +000019636int
19637main ()
19638{
19639/* FIXME: Include the comments suggested by Paul. */
19640#ifndef __cplusplus
19641 /* Ultrix mips cc rejects this. */
19642 typedef int charset[2];
19643 const charset x;
19644 /* SunOS 4.1.1 cc rejects this. */
19645 char const *const *ccp;
19646 char **p;
19647 /* NEC SVR4.0.2 mips cc rejects this. */
19648 struct point {int x, y;};
19649 static struct point const zero = {0,0};
19650 /* AIX XL C 1.02.0.0 rejects this.
19651 It does not let you subtract one const X* pointer from another in
19652 an arm of an if-expression whose if-part is not a constant
19653 expression */
19654 const char *g = "string";
19655 ccp = &g + (g ? g-g : 0);
19656 /* HPUX 7.0 cc rejects these. */
19657 ++ccp;
19658 p = (char**) ccp;
19659 ccp = (char const *const *) p;
19660 { /* SCO 3.2v4 cc rejects this. */
19661 char *t;
19662 char const *s = 0 ? (char *) 0 : (char const *) 0;
19663
19664 *t++ = 0;
19665 }
19666 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
19667 int x[] = {25, 17};
19668 const int *foo = &x[0];
19669 ++foo;
19670 }
19671 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19672 typedef const int *iptr;
19673 iptr p = 0;
19674 ++p;
19675 }
19676 { /* AIX XL C 1.02.0.0 rejects this saying
19677 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19678 struct s { int j; const int *ap[3]; };
19679 struct s *b; b->j = 5;
19680 }
19681 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19682 const int foo = 10;
19683 }
19684#endif
19685
19686 ;
19687 return 0;
19688}
19689_ACEOF
19690rm -f conftest.$ac_objext
19691if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19692 (eval $ac_compile) 2>&5
19693 ac_status=$?
19694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19695 (exit $ac_status); } &&
19696 { ac_try='test -s conftest.$ac_objext'
19697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19698 (eval $ac_try) 2>&5
19699 ac_status=$?
19700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19701 (exit $ac_status); }; }; then
19702 ac_cv_c_const=yes
19703else
19704 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019705sed 's/^/| /' conftest.$ac_ext >&5
19706
John Criswell7a73b802003-06-30 21:59:07 +000019707ac_cv_c_const=no
19708fi
19709rm -f conftest.$ac_objext conftest.$ac_ext
19710fi
19711echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
19712echo "${ECHO_T}$ac_cv_c_const" >&6
19713if test $ac_cv_c_const = no; then
19714
19715cat >>confdefs.h <<\_ACEOF
19716#define const
19717_ACEOF
19718
19719fi
19720
19721echo "$as_me:$LINENO: checking for inline" >&5
19722echo $ECHO_N "checking for inline... $ECHO_C" >&6
19723if test "${ac_cv_c_inline+set}" = set; then
19724 echo $ECHO_N "(cached) $ECHO_C" >&6
19725else
19726 ac_cv_c_inline=no
19727for ac_kw in inline __inline__ __inline; do
19728 cat >conftest.$ac_ext <<_ACEOF
19729#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019730/* confdefs.h. */
19731_ACEOF
19732cat confdefs.h >>conftest.$ac_ext
19733cat >>conftest.$ac_ext <<_ACEOF
19734/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019735#ifndef __cplusplus
John Criswell0c38eaf2003-09-10 15:17:25 +000019736typedef int foo_t;
19737static $ac_kw foo_t static_foo () {return 0; }
19738$ac_kw foo_t foo () {return 0; }
John Criswell7a73b802003-06-30 21:59:07 +000019739#endif
19740
19741_ACEOF
19742rm -f conftest.$ac_objext
19743if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19744 (eval $ac_compile) 2>&5
19745 ac_status=$?
19746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19747 (exit $ac_status); } &&
19748 { ac_try='test -s conftest.$ac_objext'
19749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19750 (eval $ac_try) 2>&5
19751 ac_status=$?
19752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19753 (exit $ac_status); }; }; then
19754 ac_cv_c_inline=$ac_kw; break
19755else
19756 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019757sed 's/^/| /' conftest.$ac_ext >&5
19758
John Criswell7a73b802003-06-30 21:59:07 +000019759fi
19760rm -f conftest.$ac_objext conftest.$ac_ext
19761done
19762
19763fi
19764echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
19765echo "${ECHO_T}$ac_cv_c_inline" >&6
19766case $ac_cv_c_inline in
19767 inline | yes) ;;
19768 no)
19769cat >>confdefs.h <<\_ACEOF
19770#define inline
19771_ACEOF
19772 ;;
19773 *) cat >>confdefs.h <<_ACEOF
19774#define inline $ac_cv_c_inline
19775_ACEOF
19776 ;;
19777esac
19778
19779
19780echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
19781echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
19782if test "${ac_cv_c_bigendian+set}" = set; then
19783 echo $ECHO_N "(cached) $ECHO_C" >&6
19784else
19785 # See if sys/param.h defines the BYTE_ORDER macro.
19786cat >conftest.$ac_ext <<_ACEOF
19787#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019788/* confdefs.h. */
19789_ACEOF
19790cat confdefs.h >>conftest.$ac_ext
19791cat >>conftest.$ac_ext <<_ACEOF
19792/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019793#include <sys/types.h>
19794#include <sys/param.h>
19795
John Criswell7a73b802003-06-30 21:59:07 +000019796int
19797main ()
19798{
19799#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
19800 bogus endian macros
19801#endif
19802
19803 ;
19804 return 0;
19805}
19806_ACEOF
19807rm -f conftest.$ac_objext
19808if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19809 (eval $ac_compile) 2>&5
19810 ac_status=$?
19811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19812 (exit $ac_status); } &&
19813 { ac_try='test -s conftest.$ac_objext'
19814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19815 (eval $ac_try) 2>&5
19816 ac_status=$?
19817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19818 (exit $ac_status); }; }; then
19819 # It does; now see whether it defined to BIG_ENDIAN or not.
19820cat >conftest.$ac_ext <<_ACEOF
19821#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019822/* confdefs.h. */
19823_ACEOF
19824cat confdefs.h >>conftest.$ac_ext
19825cat >>conftest.$ac_ext <<_ACEOF
19826/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019827#include <sys/types.h>
19828#include <sys/param.h>
19829
John Criswell7a73b802003-06-30 21:59:07 +000019830int
19831main ()
19832{
19833#if BYTE_ORDER != BIG_ENDIAN
19834 not big endian
19835#endif
19836
19837 ;
19838 return 0;
19839}
19840_ACEOF
19841rm -f conftest.$ac_objext
19842if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19843 (eval $ac_compile) 2>&5
19844 ac_status=$?
19845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19846 (exit $ac_status); } &&
19847 { ac_try='test -s conftest.$ac_objext'
19848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19849 (eval $ac_try) 2>&5
19850 ac_status=$?
19851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19852 (exit $ac_status); }; }; then
19853 ac_cv_c_bigendian=yes
19854else
19855 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019856sed 's/^/| /' conftest.$ac_ext >&5
19857
John Criswell7a73b802003-06-30 21:59:07 +000019858ac_cv_c_bigendian=no
19859fi
19860rm -f conftest.$ac_objext conftest.$ac_ext
19861else
19862 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019863sed 's/^/| /' conftest.$ac_ext >&5
19864
John Criswell7a73b802003-06-30 21:59:07 +000019865# It does not; compile a test program.
19866if test "$cross_compiling" = yes; then
John Criswell0c38eaf2003-09-10 15:17:25 +000019867 # try to guess the endianness by grepping values into an object file
John Criswell7a73b802003-06-30 21:59:07 +000019868 ac_cv_c_bigendian=unknown
19869 cat >conftest.$ac_ext <<_ACEOF
19870#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019871/* confdefs.h. */
19872_ACEOF
19873cat confdefs.h >>conftest.$ac_ext
19874cat >>conftest.$ac_ext <<_ACEOF
19875/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019876short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
19877short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
19878void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
19879short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
19880short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
19881void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
John Criswell7a73b802003-06-30 21:59:07 +000019882int
19883main ()
19884{
19885 _ascii (); _ebcdic ();
19886 ;
19887 return 0;
19888}
19889_ACEOF
19890rm -f conftest.$ac_objext
19891if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19892 (eval $ac_compile) 2>&5
19893 ac_status=$?
19894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19895 (exit $ac_status); } &&
19896 { ac_try='test -s conftest.$ac_objext'
19897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19898 (eval $ac_try) 2>&5
19899 ac_status=$?
19900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19901 (exit $ac_status); }; }; then
John Criswell0c38eaf2003-09-10 15:17:25 +000019902 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
John Criswell7a73b802003-06-30 21:59:07 +000019903 ac_cv_c_bigendian=yes
19904fi
John Criswell0c38eaf2003-09-10 15:17:25 +000019905if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
John Criswell7a73b802003-06-30 21:59:07 +000019906 if test "$ac_cv_c_bigendian" = unknown; then
19907 ac_cv_c_bigendian=no
19908 else
19909 # finding both strings is unlikely to happen, but who knows?
19910 ac_cv_c_bigendian=unknown
19911 fi
19912fi
19913else
19914 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019915sed 's/^/| /' conftest.$ac_ext >&5
19916
John Criswell7a73b802003-06-30 21:59:07 +000019917fi
19918rm -f conftest.$ac_objext conftest.$ac_ext
19919else
19920 cat >conftest.$ac_ext <<_ACEOF
19921#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019922/* confdefs.h. */
19923_ACEOF
19924cat confdefs.h >>conftest.$ac_ext
19925cat >>conftest.$ac_ext <<_ACEOF
19926/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019927int
19928main ()
19929{
19930 /* Are we little or big endian? From Harbison&Steele. */
19931 union
19932 {
19933 long l;
19934 char c[sizeof (long)];
19935 } u;
19936 u.l = 1;
19937 exit (u.c[sizeof (long) - 1] == 1);
19938}
19939_ACEOF
19940rm -f conftest$ac_exeext
19941if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19942 (eval $ac_link) 2>&5
19943 ac_status=$?
19944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19945 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19947 (eval $ac_try) 2>&5
19948 ac_status=$?
19949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19950 (exit $ac_status); }; }; then
19951 ac_cv_c_bigendian=no
19952else
19953 echo "$as_me: program exited with status $ac_status" >&5
19954echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019955sed 's/^/| /' conftest.$ac_ext >&5
19956
John Criswell7a73b802003-06-30 21:59:07 +000019957( exit $ac_status )
19958ac_cv_c_bigendian=yes
19959fi
John Criswell0c38eaf2003-09-10 15:17:25 +000019960rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000019961fi
19962fi
19963rm -f conftest.$ac_objext conftest.$ac_ext
19964fi
19965echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
19966echo "${ECHO_T}$ac_cv_c_bigendian" >&6
19967case $ac_cv_c_bigendian in
19968 yes)
John Criswell5ab73462003-10-09 15:44:28 +000019969
19970cat >>confdefs.h <<\_ACEOF
19971#define ENDIAN_BIG
John Criswell7a73b802003-06-30 21:59:07 +000019972_ACEOF
19973 ;;
19974 no)
John Criswell5ab73462003-10-09 15:44:28 +000019975
19976cat >>confdefs.h <<\_ACEOF
19977#define ENDIAN_LITTLE
John Criswell7a73b802003-06-30 21:59:07 +000019978_ACEOF
19979 ;;
19980 *)
John Criswell0c38eaf2003-09-10 15:17:25 +000019981 { { echo "$as_me:$LINENO: error: unknown endianness
John Criswell7a73b802003-06-30 21:59:07 +000019982presetting ac_cv_c_bigendian=no (or yes) will help" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019983echo "$as_me: error: unknown endianness
John Criswell7a73b802003-06-30 21:59:07 +000019984presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
19985 { (exit 1); exit 1; }; } ;;
19986esac
19987
19988
19989echo "$as_me:$LINENO: checking for pid_t" >&5
19990echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
19991if test "${ac_cv_type_pid_t+set}" = set; then
19992 echo $ECHO_N "(cached) $ECHO_C" >&6
19993else
19994 cat >conftest.$ac_ext <<_ACEOF
19995#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019996/* confdefs.h. */
19997_ACEOF
19998cat confdefs.h >>conftest.$ac_ext
19999cat >>conftest.$ac_ext <<_ACEOF
20000/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020001$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000020002int
20003main ()
20004{
20005if ((pid_t *) 0)
20006 return 0;
20007if (sizeof (pid_t))
20008 return 0;
20009 ;
20010 return 0;
20011}
20012_ACEOF
20013rm -f conftest.$ac_objext
20014if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20015 (eval $ac_compile) 2>&5
20016 ac_status=$?
20017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20018 (exit $ac_status); } &&
20019 { ac_try='test -s conftest.$ac_objext'
20020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20021 (eval $ac_try) 2>&5
20022 ac_status=$?
20023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20024 (exit $ac_status); }; }; then
20025 ac_cv_type_pid_t=yes
20026else
20027 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020028sed 's/^/| /' conftest.$ac_ext >&5
20029
John Criswell7a73b802003-06-30 21:59:07 +000020030ac_cv_type_pid_t=no
20031fi
20032rm -f conftest.$ac_objext conftest.$ac_ext
20033fi
20034echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
20035echo "${ECHO_T}$ac_cv_type_pid_t" >&6
20036if test $ac_cv_type_pid_t = yes; then
20037 :
20038else
20039
20040cat >>confdefs.h <<_ACEOF
20041#define pid_t int
20042_ACEOF
20043
20044fi
20045
20046echo "$as_me:$LINENO: checking for size_t" >&5
20047echo $ECHO_N "checking for size_t... $ECHO_C" >&6
20048if test "${ac_cv_type_size_t+set}" = set; then
20049 echo $ECHO_N "(cached) $ECHO_C" >&6
20050else
20051 cat >conftest.$ac_ext <<_ACEOF
20052#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020053/* confdefs.h. */
20054_ACEOF
20055cat confdefs.h >>conftest.$ac_ext
20056cat >>conftest.$ac_ext <<_ACEOF
20057/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020058$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000020059int
20060main ()
20061{
20062if ((size_t *) 0)
20063 return 0;
20064if (sizeof (size_t))
20065 return 0;
20066 ;
20067 return 0;
20068}
20069_ACEOF
20070rm -f conftest.$ac_objext
20071if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20072 (eval $ac_compile) 2>&5
20073 ac_status=$?
20074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20075 (exit $ac_status); } &&
20076 { ac_try='test -s conftest.$ac_objext'
20077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20078 (eval $ac_try) 2>&5
20079 ac_status=$?
20080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20081 (exit $ac_status); }; }; then
20082 ac_cv_type_size_t=yes
20083else
20084 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020085sed 's/^/| /' conftest.$ac_ext >&5
20086
John Criswell7a73b802003-06-30 21:59:07 +000020087ac_cv_type_size_t=no
20088fi
20089rm -f conftest.$ac_objext conftest.$ac_ext
20090fi
20091echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20092echo "${ECHO_T}$ac_cv_type_size_t" >&6
20093if test $ac_cv_type_size_t = yes; then
20094 :
20095else
20096
20097cat >>confdefs.h <<_ACEOF
20098#define size_t unsigned
20099_ACEOF
20100
20101fi
20102
20103echo "$as_me:$LINENO: checking for int64_t" >&5
20104echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
20105if test "${ac_cv_type_int64_t+set}" = set; then
20106 echo $ECHO_N "(cached) $ECHO_C" >&6
20107else
20108 cat >conftest.$ac_ext <<_ACEOF
20109#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020110/* confdefs.h. */
20111_ACEOF
20112cat confdefs.h >>conftest.$ac_ext
20113cat >>conftest.$ac_ext <<_ACEOF
20114/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020115$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000020116int
20117main ()
20118{
20119if ((int64_t *) 0)
20120 return 0;
20121if (sizeof (int64_t))
20122 return 0;
20123 ;
20124 return 0;
20125}
20126_ACEOF
20127rm -f conftest.$ac_objext
20128if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20129 (eval $ac_compile) 2>&5
20130 ac_status=$?
20131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20132 (exit $ac_status); } &&
20133 { ac_try='test -s conftest.$ac_objext'
20134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20135 (eval $ac_try) 2>&5
20136 ac_status=$?
20137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20138 (exit $ac_status); }; }; then
20139 ac_cv_type_int64_t=yes
20140else
20141 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020142sed 's/^/| /' conftest.$ac_ext >&5
20143
John Criswell7a73b802003-06-30 21:59:07 +000020144ac_cv_type_int64_t=no
20145fi
20146rm -f conftest.$ac_objext conftest.$ac_ext
20147fi
20148echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
20149echo "${ECHO_T}$ac_cv_type_int64_t" >&6
20150if test $ac_cv_type_int64_t = yes; then
20151
20152cat >>confdefs.h <<_ACEOF
20153#define HAVE_INT64_T 1
20154_ACEOF
20155
20156
20157else
20158 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
20159echo "$as_me: error: Type int64_t required but not found" >&2;}
20160 { (exit 1); exit 1; }; }
20161fi
20162
20163echo "$as_me:$LINENO: checking for uint64_t" >&5
20164echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
20165if test "${ac_cv_type_uint64_t+set}" = set; then
20166 echo $ECHO_N "(cached) $ECHO_C" >&6
20167else
20168 cat >conftest.$ac_ext <<_ACEOF
20169#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020170/* confdefs.h. */
20171_ACEOF
20172cat confdefs.h >>conftest.$ac_ext
20173cat >>conftest.$ac_ext <<_ACEOF
20174/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020175$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000020176int
20177main ()
20178{
20179if ((uint64_t *) 0)
20180 return 0;
20181if (sizeof (uint64_t))
20182 return 0;
20183 ;
20184 return 0;
20185}
20186_ACEOF
20187rm -f conftest.$ac_objext
20188if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20189 (eval $ac_compile) 2>&5
20190 ac_status=$?
20191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20192 (exit $ac_status); } &&
20193 { ac_try='test -s conftest.$ac_objext'
20194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20195 (eval $ac_try) 2>&5
20196 ac_status=$?
20197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20198 (exit $ac_status); }; }; then
20199 ac_cv_type_uint64_t=yes
20200else
20201 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020202sed 's/^/| /' conftest.$ac_ext >&5
20203
John Criswell7a73b802003-06-30 21:59:07 +000020204ac_cv_type_uint64_t=no
20205fi
20206rm -f conftest.$ac_objext conftest.$ac_ext
20207fi
20208echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
20209echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
20210if test $ac_cv_type_uint64_t = yes; then
20211
20212cat >>confdefs.h <<_ACEOF
20213#define HAVE_UINT64_T 1
20214_ACEOF
20215
20216
20217else
20218 { { echo "$as_me:$LINENO: error: Type uint64_t required but not found" >&5
20219echo "$as_me: error: Type uint64_t required but not found" >&2;}
20220 { (exit 1); exit 1; }; }
20221fi
20222
20223echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20224echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
20225if test "${ac_cv_header_time+set}" = set; then
20226 echo $ECHO_N "(cached) $ECHO_C" >&6
20227else
20228 cat >conftest.$ac_ext <<_ACEOF
20229#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020230/* confdefs.h. */
20231_ACEOF
20232cat confdefs.h >>conftest.$ac_ext
20233cat >>conftest.$ac_ext <<_ACEOF
20234/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020235#include <sys/types.h>
20236#include <sys/time.h>
20237#include <time.h>
20238
John Criswell7a73b802003-06-30 21:59:07 +000020239int
20240main ()
20241{
20242if ((struct tm *) 0)
20243return 0;
20244 ;
20245 return 0;
20246}
20247_ACEOF
20248rm -f conftest.$ac_objext
20249if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20250 (eval $ac_compile) 2>&5
20251 ac_status=$?
20252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20253 (exit $ac_status); } &&
20254 { ac_try='test -s conftest.$ac_objext'
20255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20256 (eval $ac_try) 2>&5
20257 ac_status=$?
20258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20259 (exit $ac_status); }; }; then
20260 ac_cv_header_time=yes
20261else
20262 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020263sed 's/^/| /' conftest.$ac_ext >&5
20264
John Criswell7a73b802003-06-30 21:59:07 +000020265ac_cv_header_time=no
20266fi
20267rm -f conftest.$ac_objext conftest.$ac_ext
20268fi
20269echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20270echo "${ECHO_T}$ac_cv_header_time" >&6
20271if test $ac_cv_header_time = yes; then
20272
20273cat >>confdefs.h <<\_ACEOF
20274#define TIME_WITH_SYS_TIME 1
20275_ACEOF
20276
20277fi
20278
20279echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20280echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
20281if test "${ac_cv_struct_tm+set}" = set; then
20282 echo $ECHO_N "(cached) $ECHO_C" >&6
20283else
20284 cat >conftest.$ac_ext <<_ACEOF
20285#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020286/* confdefs.h. */
20287_ACEOF
20288cat confdefs.h >>conftest.$ac_ext
20289cat >>conftest.$ac_ext <<_ACEOF
20290/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020291#include <sys/types.h>
20292#include <time.h>
20293
John Criswell7a73b802003-06-30 21:59:07 +000020294int
20295main ()
20296{
20297struct tm *tp; tp->tm_sec;
20298 ;
20299 return 0;
20300}
20301_ACEOF
20302rm -f conftest.$ac_objext
20303if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20304 (eval $ac_compile) 2>&5
20305 ac_status=$?
20306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20307 (exit $ac_status); } &&
20308 { ac_try='test -s conftest.$ac_objext'
20309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20310 (eval $ac_try) 2>&5
20311 ac_status=$?
20312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20313 (exit $ac_status); }; }; then
20314 ac_cv_struct_tm=time.h
20315else
20316 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020317sed 's/^/| /' conftest.$ac_ext >&5
20318
John Criswell7a73b802003-06-30 21:59:07 +000020319ac_cv_struct_tm=sys/time.h
20320fi
20321rm -f conftest.$ac_objext conftest.$ac_ext
20322fi
20323echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
20324echo "${ECHO_T}$ac_cv_struct_tm" >&6
20325if test $ac_cv_struct_tm = sys/time.h; then
20326
20327cat >>confdefs.h <<\_ACEOF
20328#define TM_IN_SYS_TIME 1
20329_ACEOF
20330
20331fi
20332
20333
John Criswella0137d32003-10-13 16:22:01 +000020334
20335
20336
20337 ac_ext=c
20338ac_cpp='$CPP $CPPFLAGS'
20339ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20340ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20341ac_compiler_gnu=$ac_cv_c_compiler_gnu
20342
20343 if test "$cross_compiling" = yes; then
20344 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20345See \`config.log' for more details." >&5
20346echo "$as_me: error: cannot run test program while cross compiling
20347See \`config.log' for more details." >&2;}
20348 { (exit 1); exit 1; }; }
20349else
20350 cat >conftest.$ac_ext <<_ACEOF
20351#line $LINENO "configure"
20352/* confdefs.h. */
20353_ACEOF
20354cat confdefs.h >>conftest.$ac_ext
20355cat >>conftest.$ac_ext <<_ACEOF
20356/* end confdefs.h. */
20357#include <stdio.h>
20358 #include <stdlib.h>
20359int
20360main ()
20361{
20362
20363 volatile double A, B;
20364 char Buffer[100];
20365 A = 1;
20366 A /= 10.0;
20367 sprintf(Buffer, "%a", A);
20368 B = atof(Buffer);
20369 if (A != B)
20370 return (1);
20371 if (A != 0x1.999999999999ap-4)
20372 return (1);
20373 return (0);
20374 ;
20375 return 0;
20376}
20377_ACEOF
20378rm -f conftest$ac_exeext
20379if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20380 (eval $ac_link) 2>&5
20381 ac_status=$?
20382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20383 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20385 (eval $ac_try) 2>&5
20386 ac_status=$?
20387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20388 (exit $ac_status); }; }; then
20389 ac_c_printf_a=yes
20390else
20391 echo "$as_me: program exited with status $ac_status" >&5
20392echo "$as_me: failed program was:" >&5
20393sed 's/^/| /' conftest.$ac_ext >&5
20394
20395( exit $ac_status )
20396ac_c_printf_a=no
20397fi
20398rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20399fi
20400 ac_ext=c
20401ac_cpp='$CPP $CPPFLAGS'
20402ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20403ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20404ac_compiler_gnu=$ac_cv_c_compiler_gnu
20405
20406 if test "$ac_c_printf_a" = "yes"; then
20407
20408cat >>confdefs.h <<\_ACEOF
20409#define HAVE_PRINTF_A 1
20410_ACEOF
20411
20412 fi
20413
20414
John Criswell7a73b802003-06-30 21:59:07 +000020415echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
20416echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
20417if test "${ac_cv_cxx_namespaces+set}" = set; then
20418 echo $ECHO_N "(cached) $ECHO_C" >&6
20419else
20420
20421
20422 ac_ext=cc
20423ac_cpp='$CXXCPP $CPPFLAGS'
20424ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20425ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20426ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20427
20428 cat >conftest.$ac_ext <<_ACEOF
20429#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020430/* confdefs.h. */
20431_ACEOF
20432cat confdefs.h >>conftest.$ac_ext
20433cat >>conftest.$ac_ext <<_ACEOF
20434/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020435namespace Outer { namespace Inner { int i = 0; }}
John Criswell7a73b802003-06-30 21:59:07 +000020436int
20437main ()
20438{
20439using namespace Outer::Inner; return i;
20440 ;
20441 return 0;
20442}
20443_ACEOF
20444rm -f conftest.$ac_objext
20445if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20446 (eval $ac_compile) 2>&5
20447 ac_status=$?
20448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20449 (exit $ac_status); } &&
20450 { ac_try='test -s conftest.$ac_objext'
20451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20452 (eval $ac_try) 2>&5
20453 ac_status=$?
20454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20455 (exit $ac_status); }; }; then
20456 ac_cv_cxx_namespaces=yes
20457else
20458 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020459sed 's/^/| /' conftest.$ac_ext >&5
20460
John Criswell7a73b802003-06-30 21:59:07 +000020461ac_cv_cxx_namespaces=no
20462fi
20463rm -f conftest.$ac_objext conftest.$ac_ext
20464 ac_ext=c
20465ac_cpp='$CPP $CPPFLAGS'
20466ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20467ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20468ac_compiler_gnu=$ac_cv_c_compiler_gnu
20469
20470
20471fi
20472echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
20473echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
20474if test "$ac_cv_cxx_namespaces" = yes; then
20475
20476cat >>confdefs.h <<\_ACEOF
20477#define HAVE_NAMESPACES
20478_ACEOF
20479
20480fi
20481
Brian Gaeke90583492003-11-10 03:06:28 +000020482echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
20483echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
20484if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000020485 echo $ECHO_N "(cached) $ECHO_C" >&6
20486else
20487
20488
20489
20490 ac_ext=cc
20491ac_cpp='$CXXCPP $CPPFLAGS'
20492ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20493ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20494ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20495
20496 cat >conftest.$ac_ext <<_ACEOF
20497#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020498/* confdefs.h. */
20499_ACEOF
20500cat confdefs.h >>conftest.$ac_ext
20501cat >>conftest.$ac_ext <<_ACEOF
20502/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020503#include <ext/hash_map>
20504#ifdef HAVE_NAMESPACES
20505using namespace std;
20506#endif
John Criswell7a73b802003-06-30 21:59:07 +000020507int
20508main ()
20509{
Brian Gaeke90583492003-11-10 03:06:28 +000020510hash_map<int, int> t;
John Criswell7a73b802003-06-30 21:59:07 +000020511 ;
20512 return 0;
20513}
20514_ACEOF
20515rm -f conftest.$ac_objext
20516if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20517 (eval $ac_compile) 2>&5
20518 ac_status=$?
20519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20520 (exit $ac_status); } &&
20521 { ac_try='test -s conftest.$ac_objext'
20522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20523 (eval $ac_try) 2>&5
20524 ac_status=$?
20525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20526 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000020527 ac_cv_cxx_have_std_ext_hash_map=yes
John Criswell7a73b802003-06-30 21:59:07 +000020528else
20529 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020530sed 's/^/| /' conftest.$ac_ext >&5
20531
Brian Gaeke90583492003-11-10 03:06:28 +000020532ac_cv_cxx_have_std_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000020533fi
20534rm -f conftest.$ac_objext conftest.$ac_ext
20535 ac_ext=c
20536ac_cpp='$CPP $CPPFLAGS'
20537ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20538ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20539ac_compiler_gnu=$ac_cv_c_compiler_gnu
20540
John Criswell7a73b802003-06-30 21:59:07 +000020541fi
Brian Gaeke90583492003-11-10 03:06:28 +000020542echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
20543echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
20544 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000020545
20546cat >>confdefs.h <<\_ACEOF
20547#define HAVE_STD_EXT_HASH_MAP
20548_ACEOF
20549
Brian Gaeke90583492003-11-10 03:06:28 +000020550 fi
20551 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
20552echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
20553if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
20554 echo $ECHO_N "(cached) $ECHO_C" >&6
20555else
20556
20557
20558
20559 ac_ext=cc
20560ac_cpp='$CXXCPP $CPPFLAGS'
20561ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20562ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20563ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20564
20565 cat >conftest.$ac_ext <<_ACEOF
20566#line $LINENO "configure"
20567/* confdefs.h. */
20568_ACEOF
20569cat confdefs.h >>conftest.$ac_ext
20570cat >>conftest.$ac_ext <<_ACEOF
20571/* end confdefs.h. */
20572#include <ext/hash_map>
20573#ifdef HAVE_NAMESPACES
20574using namespace __gnu_cxx;
20575#endif
20576int
20577main ()
20578{
20579hash_map<int,int> t;
20580 ;
20581 return 0;
20582}
20583_ACEOF
20584rm -f conftest.$ac_objext
20585if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20586 (eval $ac_compile) 2>&5
20587 ac_status=$?
20588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20589 (exit $ac_status); } &&
20590 { ac_try='test -s conftest.$ac_objext'
20591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20592 (eval $ac_try) 2>&5
20593 ac_status=$?
20594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20595 (exit $ac_status); }; }; then
20596 ac_cv_cxx_have_gnu_ext_hash_map=yes
20597else
20598 echo "$as_me: failed program was:" >&5
20599sed 's/^/| /' conftest.$ac_ext >&5
20600
20601ac_cv_cxx_have_gnu_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000020602fi
Brian Gaeke90583492003-11-10 03:06:28 +000020603rm -f conftest.$ac_objext conftest.$ac_ext
20604 ac_ext=c
20605ac_cpp='$CPP $CPPFLAGS'
20606ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20607ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20608ac_compiler_gnu=$ac_cv_c_compiler_gnu
20609
20610fi
20611echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
20612echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
20613 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000020614
20615cat >>confdefs.h <<\_ACEOF
20616#define HAVE_GNU_EXT_HASH_MAP
20617_ACEOF
20618
Brian Gaeke90583492003-11-10 03:06:28 +000020619 fi
20620 echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
20621echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
20622if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
20623 echo $ECHO_N "(cached) $ECHO_C" >&6
20624else
John Criswell7a73b802003-06-30 21:59:07 +000020625
Brian Gaeke90583492003-11-10 03:06:28 +000020626
20627
20628 ac_ext=cc
20629ac_cpp='$CXXCPP $CPPFLAGS'
20630ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20631ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20632ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20633
20634 cat >conftest.$ac_ext <<_ACEOF
20635#line $LINENO "configure"
20636/* confdefs.h. */
20637_ACEOF
20638cat confdefs.h >>conftest.$ac_ext
20639cat >>conftest.$ac_ext <<_ACEOF
20640/* end confdefs.h. */
20641#include <hash_map>
20642int
20643main ()
20644{
20645hash_map<int,int> t;
20646 ;
20647 return 0;
20648}
20649_ACEOF
20650rm -f conftest.$ac_objext
20651if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20652 (eval $ac_compile) 2>&5
20653 ac_status=$?
20654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20655 (exit $ac_status); } &&
20656 { ac_try='test -s conftest.$ac_objext'
20657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20658 (eval $ac_try) 2>&5
20659 ac_status=$?
20660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20661 (exit $ac_status); }; }; then
20662 ac_cv_cxx_have_global_hash_map=yes
20663else
20664 echo "$as_me: failed program was:" >&5
20665sed 's/^/| /' conftest.$ac_ext >&5
20666
20667ac_cv_cxx_have_global_hash_map=no
20668fi
20669rm -f conftest.$ac_objext conftest.$ac_ext
20670 ac_ext=c
20671ac_cpp='$CPP $CPPFLAGS'
20672ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20673ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20674ac_compiler_gnu=$ac_cv_c_compiler_gnu
20675
20676fi
20677echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
20678echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
20679 if test "$ac_cv_cxx_have_global_hash_map" = yes; then
20680
20681cat >>confdefs.h <<\_ACEOF
20682#define HAVE_GLOBAL_HASH_MAP
20683_ACEOF
20684
20685 fi
20686echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
20687echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
20688if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000020689 echo $ECHO_N "(cached) $ECHO_C" >&6
20690else
20691
20692
20693
20694 ac_ext=cc
20695ac_cpp='$CXXCPP $CPPFLAGS'
20696ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20697ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20698ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20699
20700 cat >conftest.$ac_ext <<_ACEOF
20701#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020702/* confdefs.h. */
20703_ACEOF
20704cat confdefs.h >>conftest.$ac_ext
20705cat >>conftest.$ac_ext <<_ACEOF
20706/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020707#include <ext/hash_set>
20708#ifdef HAVE_NAMESPACES
20709using namespace std;
20710#endif
John Criswell7a73b802003-06-30 21:59:07 +000020711int
20712main ()
20713{
Brian Gaeke90583492003-11-10 03:06:28 +000020714hash_set<int> t;
John Criswell7a73b802003-06-30 21:59:07 +000020715 ;
20716 return 0;
20717}
20718_ACEOF
20719rm -f conftest.$ac_objext
20720if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20721 (eval $ac_compile) 2>&5
20722 ac_status=$?
20723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20724 (exit $ac_status); } &&
20725 { ac_try='test -s conftest.$ac_objext'
20726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20727 (eval $ac_try) 2>&5
20728 ac_status=$?
20729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20730 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000020731 ac_cv_cxx_have_std_ext_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000020732else
20733 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020734sed 's/^/| /' conftest.$ac_ext >&5
20735
Brian Gaeke90583492003-11-10 03:06:28 +000020736ac_cv_cxx_have_std_ext_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000020737fi
20738rm -f conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000020739 ac_ext=c
20740ac_cpp='$CPP $CPPFLAGS'
20741ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20742ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20743ac_compiler_gnu=$ac_cv_c_compiler_gnu
20744
20745fi
20746echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
20747echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
20748 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes; then
20749
20750cat >>confdefs.h <<\_ACEOF
20751#define HAVE_STD_EXT_HASH_SET
20752_ACEOF
20753
20754 fi
20755 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
20756echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
20757if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
20758 echo $ECHO_N "(cached) $ECHO_C" >&6
20759else
20760
20761
20762
20763 ac_ext=cc
20764ac_cpp='$CXXCPP $CPPFLAGS'
20765ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20766ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20767ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20768
John Criswell7a73b802003-06-30 21:59:07 +000020769 cat >conftest.$ac_ext <<_ACEOF
20770#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020771/* confdefs.h. */
20772_ACEOF
20773cat confdefs.h >>conftest.$ac_ext
20774cat >>conftest.$ac_ext <<_ACEOF
20775/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020776#include <ext/hash_set>
20777#ifdef HAVE_NAMESPACES
20778using namespace __gnu_cxx;
20779#endif
John Criswell7a73b802003-06-30 21:59:07 +000020780int
20781main ()
20782{
Brian Gaeke90583492003-11-10 03:06:28 +000020783hash_set<int> t;
20784 ;
20785 return 0;
20786}
20787_ACEOF
20788rm -f conftest.$ac_objext
20789if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20790 (eval $ac_compile) 2>&5
20791 ac_status=$?
20792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20793 (exit $ac_status); } &&
20794 { ac_try='test -s conftest.$ac_objext'
20795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20796 (eval $ac_try) 2>&5
20797 ac_status=$?
20798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20799 (exit $ac_status); }; }; then
20800 ac_cv_cxx_have_gnu_ext_hash_set=yes
20801else
20802 echo "$as_me: failed program was:" >&5
20803sed 's/^/| /' conftest.$ac_ext >&5
20804
20805ac_cv_cxx_have_gnu_ext_hash_set=no
20806fi
20807rm -f conftest.$ac_objext conftest.$ac_ext
20808 ac_ext=c
20809ac_cpp='$CPP $CPPFLAGS'
20810ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20811ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20812ac_compiler_gnu=$ac_cv_c_compiler_gnu
20813
20814fi
20815echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
20816echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
20817 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes; then
20818
20819cat >>confdefs.h <<\_ACEOF
20820#define HAVE_GNU_EXT_HASH_SET
20821_ACEOF
20822
20823 fi
20824 echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
20825echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
20826if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
20827 echo $ECHO_N "(cached) $ECHO_C" >&6
20828else
20829
20830
20831
20832 ac_ext=cc
20833ac_cpp='$CXXCPP $CPPFLAGS'
20834ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20835ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20836ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20837
20838 cat >conftest.$ac_ext <<_ACEOF
20839#line $LINENO "configure"
20840/* confdefs.h. */
20841_ACEOF
20842cat confdefs.h >>conftest.$ac_ext
20843cat >>conftest.$ac_ext <<_ACEOF
20844/* end confdefs.h. */
20845#include <hash_set>
20846int
20847main ()
20848{
John Criswell7a73b802003-06-30 21:59:07 +000020849hash_set<int> t; return 0;
20850 ;
20851 return 0;
20852}
20853_ACEOF
20854rm -f conftest.$ac_objext
20855if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20856 (eval $ac_compile) 2>&5
20857 ac_status=$?
20858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20859 (exit $ac_status); } &&
20860 { ac_try='test -s conftest.$ac_objext'
20861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20862 (eval $ac_try) 2>&5
20863 ac_status=$?
20864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20865 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000020866 ac_cv_cxx_have_global_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000020867else
20868 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020869sed 's/^/| /' conftest.$ac_ext >&5
20870
Brian Gaeke90583492003-11-10 03:06:28 +000020871ac_cv_cxx_have_global_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000020872fi
20873rm -f conftest.$ac_objext conftest.$ac_ext
20874 ac_ext=c
20875ac_cpp='$CPP $CPPFLAGS'
20876ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20877ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20878ac_compiler_gnu=$ac_cv_c_compiler_gnu
20879
John Criswell7a73b802003-06-30 21:59:07 +000020880fi
Brian Gaeke90583492003-11-10 03:06:28 +000020881echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
20882echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
20883 if test "$ac_cv_cxx_have_global_hash_set" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000020884
20885cat >>confdefs.h <<\_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000020886#define HAVE_GLOBAL_HASH_SET
John Criswell7a73b802003-06-30 21:59:07 +000020887_ACEOF
20888
Brian Gaeke90583492003-11-10 03:06:28 +000020889 fi
John Criswell7a73b802003-06-30 21:59:07 +000020890echo "$as_me:$LINENO: checking whether the compiler has ext/slist" >&5
20891echo $ECHO_N "checking whether the compiler has ext/slist... $ECHO_C" >&6
20892if test "${ac_cv_cxx_have_ext_slist+set}" = set; then
20893 echo $ECHO_N "(cached) $ECHO_C" >&6
20894else
20895
20896
20897
20898 ac_ext=cc
20899ac_cpp='$CXXCPP $CPPFLAGS'
20900ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20901ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20902ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20903
20904 cat >conftest.$ac_ext <<_ACEOF
20905#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020906/* confdefs.h. */
20907_ACEOF
20908cat confdefs.h >>conftest.$ac_ext
20909cat >>conftest.$ac_ext <<_ACEOF
20910/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020911#include <ext/slist>
20912#ifdef HAVE_NAMESPACES
20913using namespace std;
20914#endif
John Criswell7a73b802003-06-30 21:59:07 +000020915int
20916main ()
20917{
20918slist<int> s; return 0;
20919 ;
20920 return 0;
20921}
20922_ACEOF
20923rm -f conftest.$ac_objext
20924if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20925 (eval $ac_compile) 2>&5
20926 ac_status=$?
20927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20928 (exit $ac_status); } &&
20929 { ac_try='test -s conftest.$ac_objext'
20930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20931 (eval $ac_try) 2>&5
20932 ac_status=$?
20933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20934 (exit $ac_status); }; }; then
20935 ac_cv_cxx_have_ext_slist=std
20936else
20937 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020938sed 's/^/| /' conftest.$ac_ext >&5
20939
John Criswell7a73b802003-06-30 21:59:07 +000020940ac_cv_cxx_have_ext_slist=no
20941fi
20942rm -f conftest.$ac_objext conftest.$ac_ext
20943 cat >conftest.$ac_ext <<_ACEOF
20944#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020945/* confdefs.h. */
20946_ACEOF
20947cat confdefs.h >>conftest.$ac_ext
20948cat >>conftest.$ac_ext <<_ACEOF
20949/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020950#include <ext/slist>
20951#ifdef HAVE_NAMESPACES
20952using namespace __gnu_cxx;
20953#endif
John Criswell7a73b802003-06-30 21:59:07 +000020954int
20955main ()
20956{
20957slist<int> s; return 0;
20958 ;
20959 return 0;
20960}
20961_ACEOF
20962rm -f conftest.$ac_objext
20963if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20964 (eval $ac_compile) 2>&5
20965 ac_status=$?
20966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20967 (exit $ac_status); } &&
20968 { ac_try='test -s conftest.$ac_objext'
20969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20970 (eval $ac_try) 2>&5
20971 ac_status=$?
20972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20973 (exit $ac_status); }; }; then
20974 ac_cv_cxx_have_ext_slist=gnu
20975else
20976 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020977sed 's/^/| /' conftest.$ac_ext >&5
20978
John Criswell7a73b802003-06-30 21:59:07 +000020979ac_cv_cxx_have_ext_slist=no
20980fi
20981rm -f conftest.$ac_objext conftest.$ac_ext
20982
20983 ac_ext=c
20984ac_cpp='$CPP $CPPFLAGS'
20985ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20986ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20987ac_compiler_gnu=$ac_cv_c_compiler_gnu
20988
20989
20990fi
20991echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_slist" >&5
20992echo "${ECHO_T}$ac_cv_cxx_have_ext_slist" >&6
20993if test "$ac_cv_cxx_have_ext_slist" = std; then
20994
20995cat >>confdefs.h <<\_ACEOF
20996#define HAVE_EXT_SLIST std
20997_ACEOF
20998
20999fi
21000if test "$ac_cv_cxx_have_ext_slist" = gnu; then
21001
21002cat >>confdefs.h <<\_ACEOF
21003#define HAVE_EXT_SLIST gnu
21004_ACEOF
21005
21006fi
21007
21008echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
21009echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
21010if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
21011 echo $ECHO_N "(cached) $ECHO_C" >&6
21012else
21013
21014
21015
21016 ac_ext=cc
21017ac_cpp='$CXXCPP $CPPFLAGS'
21018ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21019ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21020ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21021
21022 cat >conftest.$ac_ext <<_ACEOF
21023#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021024/* confdefs.h. */
21025_ACEOF
21026cat confdefs.h >>conftest.$ac_ext
21027cat >>conftest.$ac_ext <<_ACEOF
21028/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021029#include <iterator>
21030#ifdef HAVE_NAMESPACES
21031using namespace std;
21032#endif
John Criswell7a73b802003-06-30 21:59:07 +000021033int
21034main ()
21035{
21036iterator<int,int,int> t; return 0;
21037 ;
21038 return 0;
21039}
21040_ACEOF
21041rm -f conftest.$ac_objext
21042if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21043 (eval $ac_compile) 2>&5
21044 ac_status=$?
21045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21046 (exit $ac_status); } &&
21047 { ac_try='test -s conftest.$ac_objext'
21048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21049 (eval $ac_try) 2>&5
21050 ac_status=$?
21051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21052 (exit $ac_status); }; }; then
21053 ac_cv_cxx_have_std_iterator=yes
21054else
21055 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021056sed 's/^/| /' conftest.$ac_ext >&5
21057
John Criswell7a73b802003-06-30 21:59:07 +000021058ac_cv_cxx_have_std_iterator=no
21059fi
21060rm -f conftest.$ac_objext conftest.$ac_ext
21061 ac_ext=c
21062ac_cpp='$CPP $CPPFLAGS'
21063ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21064ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21065ac_compiler_gnu=$ac_cv_c_compiler_gnu
21066
21067
21068fi
21069echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
21070echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
21071if test "$ac_cv_cxx_have_std_iterator" = yes; then
21072
21073cat >>confdefs.h <<\_ACEOF
21074#define HAVE_STD_ITERATOR
21075_ACEOF
21076
21077fi
21078
21079echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
21080echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
21081if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
21082 echo $ECHO_N "(cached) $ECHO_C" >&6
21083else
21084
21085
21086
21087 ac_ext=cc
21088ac_cpp='$CXXCPP $CPPFLAGS'
21089ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21090ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21091ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21092
21093 cat >conftest.$ac_ext <<_ACEOF
21094#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021095/* confdefs.h. */
21096_ACEOF
21097cat confdefs.h >>conftest.$ac_ext
21098cat >>conftest.$ac_ext <<_ACEOF
21099/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021100#include <iterator>
21101#ifdef HAVE_NAMESPACES
21102using namespace std;
21103#endif
John Criswell7a73b802003-06-30 21:59:07 +000021104int
21105main ()
21106{
John Criswellc78022e2003-07-29 19:11:58 +000021107bidirectional_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000021108 ;
21109 return 0;
21110}
21111_ACEOF
21112rm -f conftest.$ac_objext
21113if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21114 (eval $ac_compile) 2>&5
21115 ac_status=$?
21116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21117 (exit $ac_status); } &&
21118 { ac_try='test -s conftest.$ac_objext'
21119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21120 (eval $ac_try) 2>&5
21121 ac_status=$?
21122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21123 (exit $ac_status); }; }; then
21124 ac_cv_cxx_have_bi_iterator=yes
21125else
21126 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021127sed 's/^/| /' conftest.$ac_ext >&5
21128
John Criswell7a73b802003-06-30 21:59:07 +000021129ac_cv_cxx_have_bi_iterator=no
21130fi
21131rm -f conftest.$ac_objext conftest.$ac_ext
21132 ac_ext=c
21133ac_cpp='$CPP $CPPFLAGS'
21134ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21135ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21136ac_compiler_gnu=$ac_cv_c_compiler_gnu
21137
21138
21139fi
21140echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
21141echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
21142if test "$ac_cv_cxx_have_bi_iterator" = yes; then
21143
21144cat >>confdefs.h <<\_ACEOF
21145#define HAVE_BI_ITERATOR
21146_ACEOF
21147
21148fi
21149
21150echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
21151echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
21152if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
21153 echo $ECHO_N "(cached) $ECHO_C" >&6
21154else
21155
21156
21157
21158 ac_ext=cc
21159ac_cpp='$CXXCPP $CPPFLAGS'
21160ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21161ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21162ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21163
21164 cat >conftest.$ac_ext <<_ACEOF
21165#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021166/* confdefs.h. */
21167_ACEOF
21168cat confdefs.h >>conftest.$ac_ext
21169cat >>conftest.$ac_ext <<_ACEOF
21170/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021171#include <iterator>
21172#ifdef HAVE_NAMESPACES
21173using namespace std;
21174#endif
John Criswell7a73b802003-06-30 21:59:07 +000021175int
21176main ()
21177{
John Criswellc78022e2003-07-29 19:11:58 +000021178forward_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000021179 ;
21180 return 0;
21181}
21182_ACEOF
21183rm -f conftest.$ac_objext
21184if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21185 (eval $ac_compile) 2>&5
21186 ac_status=$?
21187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21188 (exit $ac_status); } &&
21189 { ac_try='test -s conftest.$ac_objext'
21190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21191 (eval $ac_try) 2>&5
21192 ac_status=$?
21193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21194 (exit $ac_status); }; }; then
21195 ac_cv_cxx_have_fwd_iterator=yes
21196else
21197 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021198sed 's/^/| /' conftest.$ac_ext >&5
21199
John Criswell7a73b802003-06-30 21:59:07 +000021200ac_cv_cxx_have_fwd_iterator=no
21201fi
21202rm -f conftest.$ac_objext conftest.$ac_ext
21203 ac_ext=c
21204ac_cpp='$CPP $CPPFLAGS'
21205ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21206ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21207ac_compiler_gnu=$ac_cv_c_compiler_gnu
21208
21209
21210fi
21211echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
21212echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
21213if test "$ac_cv_cxx_have_fwd_iterator" = yes; then
21214
21215cat >>confdefs.h <<\_ACEOF
21216#define HAVE_FWD_ITERATOR
21217_ACEOF
21218
21219fi
21220
21221
21222# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
21223# for constant arguments. Useless!
21224echo "$as_me:$LINENO: checking for working alloca.h" >&5
21225echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
21226if test "${ac_cv_working_alloca_h+set}" = set; then
21227 echo $ECHO_N "(cached) $ECHO_C" >&6
21228else
21229 cat >conftest.$ac_ext <<_ACEOF
21230#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021231/* confdefs.h. */
21232_ACEOF
21233cat confdefs.h >>conftest.$ac_ext
21234cat >>conftest.$ac_ext <<_ACEOF
21235/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021236#include <alloca.h>
John Criswell7a73b802003-06-30 21:59:07 +000021237int
21238main ()
21239{
21240char *p = (char *) alloca (2 * sizeof (int));
21241 ;
21242 return 0;
21243}
21244_ACEOF
21245rm -f conftest.$ac_objext conftest$ac_exeext
21246if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21247 (eval $ac_link) 2>&5
21248 ac_status=$?
21249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21250 (exit $ac_status); } &&
21251 { ac_try='test -s conftest$ac_exeext'
21252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21253 (eval $ac_try) 2>&5
21254 ac_status=$?
21255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21256 (exit $ac_status); }; }; then
21257 ac_cv_working_alloca_h=yes
21258else
21259 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021260sed 's/^/| /' conftest.$ac_ext >&5
21261
John Criswell7a73b802003-06-30 21:59:07 +000021262ac_cv_working_alloca_h=no
21263fi
21264rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21265fi
21266echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
21267echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
21268if test $ac_cv_working_alloca_h = yes; then
21269
21270cat >>confdefs.h <<\_ACEOF
21271#define HAVE_ALLOCA_H 1
21272_ACEOF
21273
21274fi
21275
21276echo "$as_me:$LINENO: checking for alloca" >&5
21277echo $ECHO_N "checking for alloca... $ECHO_C" >&6
21278if test "${ac_cv_func_alloca_works+set}" = set; then
21279 echo $ECHO_N "(cached) $ECHO_C" >&6
21280else
21281 cat >conftest.$ac_ext <<_ACEOF
21282#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021283/* confdefs.h. */
21284_ACEOF
21285cat confdefs.h >>conftest.$ac_ext
21286cat >>conftest.$ac_ext <<_ACEOF
21287/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021288#ifdef __GNUC__
21289# define alloca __builtin_alloca
21290#else
21291# ifdef _MSC_VER
21292# include <malloc.h>
21293# define alloca _alloca
21294# else
21295# if HAVE_ALLOCA_H
21296# include <alloca.h>
21297# else
21298# ifdef _AIX
21299 #pragma alloca
21300# else
21301# ifndef alloca /* predefined by HP cc +Olibcalls */
21302char *alloca ();
21303# endif
21304# endif
21305# endif
21306# endif
21307#endif
21308
John Criswell7a73b802003-06-30 21:59:07 +000021309int
21310main ()
21311{
21312char *p = (char *) alloca (1);
21313 ;
21314 return 0;
21315}
21316_ACEOF
21317rm -f conftest.$ac_objext conftest$ac_exeext
21318if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21319 (eval $ac_link) 2>&5
21320 ac_status=$?
21321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21322 (exit $ac_status); } &&
21323 { ac_try='test -s conftest$ac_exeext'
21324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21325 (eval $ac_try) 2>&5
21326 ac_status=$?
21327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21328 (exit $ac_status); }; }; then
21329 ac_cv_func_alloca_works=yes
21330else
21331 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021332sed 's/^/| /' conftest.$ac_ext >&5
21333
John Criswell7a73b802003-06-30 21:59:07 +000021334ac_cv_func_alloca_works=no
21335fi
21336rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21337fi
21338echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
21339echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
21340
21341if test $ac_cv_func_alloca_works = yes; then
21342
21343cat >>confdefs.h <<\_ACEOF
21344#define HAVE_ALLOCA 1
21345_ACEOF
21346
21347else
21348 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
21349# that cause trouble. Some versions do not even contain alloca or
21350# contain a buggy version. If you still want to use their alloca,
21351# use ar to extract alloca.o from them instead of compiling alloca.c.
21352
21353ALLOCA=alloca.$ac_objext
21354
21355cat >>confdefs.h <<\_ACEOF
21356#define C_ALLOCA 1
21357_ACEOF
21358
21359
21360echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
21361echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
21362if test "${ac_cv_os_cray+set}" = set; then
21363 echo $ECHO_N "(cached) $ECHO_C" >&6
21364else
21365 cat >conftest.$ac_ext <<_ACEOF
21366#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021367/* confdefs.h. */
21368_ACEOF
21369cat confdefs.h >>conftest.$ac_ext
21370cat >>conftest.$ac_ext <<_ACEOF
21371/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021372#if defined(CRAY) && ! defined(CRAY2)
21373webecray
21374#else
21375wenotbecray
21376#endif
21377
21378_ACEOF
21379if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000021380 $EGREP "webecray" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000021381 ac_cv_os_cray=yes
21382else
21383 ac_cv_os_cray=no
21384fi
21385rm -f conftest*
21386
21387fi
21388echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
21389echo "${ECHO_T}$ac_cv_os_cray" >&6
21390if test $ac_cv_os_cray = yes; then
21391 for ac_func in _getb67 GETB67 getb67; do
21392 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21393echo "$as_me:$LINENO: checking for $ac_func" >&5
21394echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21395if eval "test \"\${$as_ac_var+set}\" = set"; then
21396 echo $ECHO_N "(cached) $ECHO_C" >&6
21397else
21398 cat >conftest.$ac_ext <<_ACEOF
21399#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021400/* confdefs.h. */
21401_ACEOF
21402cat confdefs.h >>conftest.$ac_ext
21403cat >>conftest.$ac_ext <<_ACEOF
21404/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021405/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000021406 which can conflict with char $ac_func (); below.
21407 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21408 <limits.h> exists even on freestanding compilers. */
21409#ifdef __STDC__
21410# include <limits.h>
21411#else
21412# include <assert.h>
21413#endif
John Criswell7a73b802003-06-30 21:59:07 +000021414/* Override any gcc2 internal prototype to avoid an error. */
21415#ifdef __cplusplus
21416extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000021417{
John Criswell7a73b802003-06-30 21:59:07 +000021418#endif
21419/* We use char because int might match the return type of a gcc2
21420 builtin and then its argument prototype would still apply. */
21421char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000021422/* The GNU C library defines this for functions which it implements
21423 to always fail with ENOSYS. Some functions are actually named
21424 something starting with __ and the normal name is an alias. */
21425#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21426choke me
21427#else
John Criswell0c38eaf2003-09-10 15:17:25 +000021428char (*f) () = $ac_func;
21429#endif
21430#ifdef __cplusplus
21431}
John Criswell7a73b802003-06-30 21:59:07 +000021432#endif
21433
John Criswell0c38eaf2003-09-10 15:17:25 +000021434int
21435main ()
21436{
21437return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000021438 ;
21439 return 0;
21440}
21441_ACEOF
21442rm -f conftest.$ac_objext conftest$ac_exeext
21443if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21444 (eval $ac_link) 2>&5
21445 ac_status=$?
21446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21447 (exit $ac_status); } &&
21448 { ac_try='test -s conftest$ac_exeext'
21449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21450 (eval $ac_try) 2>&5
21451 ac_status=$?
21452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21453 (exit $ac_status); }; }; then
21454 eval "$as_ac_var=yes"
21455else
21456 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021457sed 's/^/| /' conftest.$ac_ext >&5
21458
John Criswell7a73b802003-06-30 21:59:07 +000021459eval "$as_ac_var=no"
21460fi
21461rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21462fi
21463echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21464echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21465if test `eval echo '${'$as_ac_var'}'` = yes; then
21466
21467cat >>confdefs.h <<_ACEOF
21468#define CRAY_STACKSEG_END $ac_func
21469_ACEOF
21470
21471 break
21472fi
21473
21474 done
21475fi
21476
21477echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
21478echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
21479if test "${ac_cv_c_stack_direction+set}" = set; then
21480 echo $ECHO_N "(cached) $ECHO_C" >&6
21481else
21482 if test "$cross_compiling" = yes; then
21483 ac_cv_c_stack_direction=0
21484else
21485 cat >conftest.$ac_ext <<_ACEOF
21486#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021487/* confdefs.h. */
21488_ACEOF
21489cat confdefs.h >>conftest.$ac_ext
21490cat >>conftest.$ac_ext <<_ACEOF
21491/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021492int
21493find_stack_direction ()
21494{
21495 static char *addr = 0;
21496 auto char dummy;
21497 if (addr == 0)
21498 {
21499 addr = &dummy;
21500 return find_stack_direction ();
21501 }
21502 else
21503 return (&dummy > addr) ? 1 : -1;
21504}
21505
21506int
21507main ()
21508{
21509 exit (find_stack_direction () < 0);
21510}
21511_ACEOF
21512rm -f conftest$ac_exeext
21513if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21514 (eval $ac_link) 2>&5
21515 ac_status=$?
21516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21517 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21519 (eval $ac_try) 2>&5
21520 ac_status=$?
21521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21522 (exit $ac_status); }; }; then
21523 ac_cv_c_stack_direction=1
21524else
21525 echo "$as_me: program exited with status $ac_status" >&5
21526echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021527sed 's/^/| /' conftest.$ac_ext >&5
21528
John Criswell7a73b802003-06-30 21:59:07 +000021529( exit $ac_status )
21530ac_cv_c_stack_direction=-1
21531fi
John Criswell0c38eaf2003-09-10 15:17:25 +000021532rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021533fi
21534fi
21535echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
21536echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
21537
21538cat >>confdefs.h <<_ACEOF
21539#define STACK_DIRECTION $ac_cv_c_stack_direction
21540_ACEOF
21541
21542
21543fi
21544
21545if test $ac_cv_c_compiler_gnu = yes; then
21546 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
21547echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
21548if test "${ac_cv_prog_gcc_traditional+set}" = set; then
21549 echo $ECHO_N "(cached) $ECHO_C" >&6
21550else
21551 ac_pattern="Autoconf.*'x'"
21552 cat >conftest.$ac_ext <<_ACEOF
21553#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021554/* confdefs.h. */
21555_ACEOF
21556cat confdefs.h >>conftest.$ac_ext
21557cat >>conftest.$ac_ext <<_ACEOF
21558/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021559#include <sgtty.h>
21560Autoconf TIOCGETP
21561_ACEOF
21562if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000021563 $EGREP "$ac_pattern" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000021564 ac_cv_prog_gcc_traditional=yes
21565else
21566 ac_cv_prog_gcc_traditional=no
21567fi
21568rm -f conftest*
21569
21570
21571 if test $ac_cv_prog_gcc_traditional = no; then
21572 cat >conftest.$ac_ext <<_ACEOF
21573#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021574/* confdefs.h. */
21575_ACEOF
21576cat confdefs.h >>conftest.$ac_ext
21577cat >>conftest.$ac_ext <<_ACEOF
21578/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021579#include <termio.h>
21580Autoconf TCGETA
21581_ACEOF
21582if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000021583 $EGREP "$ac_pattern" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000021584 ac_cv_prog_gcc_traditional=yes
21585fi
21586rm -f conftest*
21587
21588 fi
21589fi
21590echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
21591echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
21592 if test $ac_cv_prog_gcc_traditional = yes; then
21593 CC="$CC -traditional"
21594 fi
21595fi
21596
21597echo "$as_me:$LINENO: checking for working memcmp" >&5
21598echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
21599if test "${ac_cv_func_memcmp_working+set}" = set; then
21600 echo $ECHO_N "(cached) $ECHO_C" >&6
21601else
21602 if test "$cross_compiling" = yes; then
21603 ac_cv_func_memcmp_working=no
21604else
21605 cat >conftest.$ac_ext <<_ACEOF
21606#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021607/* confdefs.h. */
21608_ACEOF
21609cat confdefs.h >>conftest.$ac_ext
21610cat >>conftest.$ac_ext <<_ACEOF
21611/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021612
John Criswell7a73b802003-06-30 21:59:07 +000021613int
21614main ()
21615{
21616
21617 /* Some versions of memcmp are not 8-bit clean. */
21618 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
21619 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
21620 exit (1);
21621
21622 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
21623 or more and with at least one buffer not starting on a 4-byte boundary.
21624 William Lewis provided this test program. */
21625 {
21626 char foo[21];
21627 char bar[21];
21628 int i;
21629 for (i = 0; i < 4; i++)
21630 {
21631 char *a = foo + i;
21632 char *b = bar + i;
21633 strcpy (a, "--------01111111");
21634 strcpy (b, "--------10000000");
21635 if (memcmp (a, b, 16) >= 0)
21636 exit (1);
21637 }
21638 exit (0);
21639 }
21640
21641 ;
21642 return 0;
21643}
21644_ACEOF
21645rm -f conftest$ac_exeext
21646if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21647 (eval $ac_link) 2>&5
21648 ac_status=$?
21649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21650 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21652 (eval $ac_try) 2>&5
21653 ac_status=$?
21654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21655 (exit $ac_status); }; }; then
21656 ac_cv_func_memcmp_working=yes
21657else
21658 echo "$as_me: program exited with status $ac_status" >&5
21659echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021660sed 's/^/| /' conftest.$ac_ext >&5
21661
John Criswell7a73b802003-06-30 21:59:07 +000021662( exit $ac_status )
21663ac_cv_func_memcmp_working=no
21664fi
John Criswell0c38eaf2003-09-10 15:17:25 +000021665rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021666fi
21667fi
21668echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
21669echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
21670test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
21671
21672
21673
21674for ac_header in stdlib.h unistd.h
21675do
21676as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21677if eval "test \"\${$as_ac_Header+set}\" = set"; then
21678 echo "$as_me:$LINENO: checking for $ac_header" >&5
21679echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21680if eval "test \"\${$as_ac_Header+set}\" = set"; then
21681 echo $ECHO_N "(cached) $ECHO_C" >&6
21682fi
21683echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21684echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21685else
21686 # Is the header compilable?
21687echo "$as_me:$LINENO: checking $ac_header usability" >&5
21688echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21689cat >conftest.$ac_ext <<_ACEOF
21690#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021691/* confdefs.h. */
21692_ACEOF
21693cat confdefs.h >>conftest.$ac_ext
21694cat >>conftest.$ac_ext <<_ACEOF
21695/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021696$ac_includes_default
21697#include <$ac_header>
21698_ACEOF
21699rm -f conftest.$ac_objext
21700if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21701 (eval $ac_compile) 2>&5
21702 ac_status=$?
21703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21704 (exit $ac_status); } &&
21705 { ac_try='test -s conftest.$ac_objext'
21706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21707 (eval $ac_try) 2>&5
21708 ac_status=$?
21709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21710 (exit $ac_status); }; }; then
21711 ac_header_compiler=yes
21712else
21713 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021714sed 's/^/| /' conftest.$ac_ext >&5
21715
John Criswell7a73b802003-06-30 21:59:07 +000021716ac_header_compiler=no
21717fi
21718rm -f conftest.$ac_objext conftest.$ac_ext
21719echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21720echo "${ECHO_T}$ac_header_compiler" >&6
21721
21722# Is the header present?
21723echo "$as_me:$LINENO: checking $ac_header presence" >&5
21724echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21725cat >conftest.$ac_ext <<_ACEOF
21726#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021727/* confdefs.h. */
21728_ACEOF
21729cat confdefs.h >>conftest.$ac_ext
21730cat >>conftest.$ac_ext <<_ACEOF
21731/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021732#include <$ac_header>
21733_ACEOF
21734if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21735 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21736 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000021737 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000021738 rm -f conftest.er1
21739 cat conftest.err >&5
21740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21741 (exit $ac_status); } >/dev/null; then
21742 if test -s conftest.err; then
21743 ac_cpp_err=$ac_c_preproc_warn_flag
21744 else
21745 ac_cpp_err=
21746 fi
21747else
21748 ac_cpp_err=yes
21749fi
21750if test -z "$ac_cpp_err"; then
21751 ac_header_preproc=yes
21752else
21753 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021754sed 's/^/| /' conftest.$ac_ext >&5
21755
John Criswell7a73b802003-06-30 21:59:07 +000021756 ac_header_preproc=no
21757fi
21758rm -f conftest.err conftest.$ac_ext
21759echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21760echo "${ECHO_T}$ac_header_preproc" >&6
21761
21762# So? What about this header?
21763case $ac_header_compiler:$ac_header_preproc in
21764 yes:no )
21765 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21766echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21767 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021768echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21769 (
21770 cat <<\_ASBOX
21771## ------------------------------------ ##
21772## Report this to bug-autoconf@gnu.org. ##
21773## ------------------------------------ ##
21774_ASBOX
21775 ) |
21776 sed "s/^/$as_me: WARNING: /" >&2
21777 ;;
John Criswell7a73b802003-06-30 21:59:07 +000021778 no:yes )
21779 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21780echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21781 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21782echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21783 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021784echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21785 (
21786 cat <<\_ASBOX
21787## ------------------------------------ ##
21788## Report this to bug-autoconf@gnu.org. ##
21789## ------------------------------------ ##
21790_ASBOX
21791 ) |
21792 sed "s/^/$as_me: WARNING: /" >&2
21793 ;;
John Criswell7a73b802003-06-30 21:59:07 +000021794esac
21795echo "$as_me:$LINENO: checking for $ac_header" >&5
21796echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21797if eval "test \"\${$as_ac_Header+set}\" = set"; then
21798 echo $ECHO_N "(cached) $ECHO_C" >&6
21799else
21800 eval "$as_ac_Header=$ac_header_preproc"
21801fi
21802echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21803echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21804
21805fi
21806if test `eval echo '${'$as_ac_Header'}'` = yes; then
21807 cat >>confdefs.h <<_ACEOF
21808#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21809_ACEOF
21810
21811fi
21812
21813done
21814
21815
21816for ac_func in getpagesize
21817do
21818as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21819echo "$as_me:$LINENO: checking for $ac_func" >&5
21820echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21821if eval "test \"\${$as_ac_var+set}\" = set"; then
21822 echo $ECHO_N "(cached) $ECHO_C" >&6
21823else
21824 cat >conftest.$ac_ext <<_ACEOF
21825#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021826/* confdefs.h. */
21827_ACEOF
21828cat confdefs.h >>conftest.$ac_ext
21829cat >>conftest.$ac_ext <<_ACEOF
21830/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021831/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000021832 which can conflict with char $ac_func (); below.
21833 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21834 <limits.h> exists even on freestanding compilers. */
21835#ifdef __STDC__
21836# include <limits.h>
21837#else
21838# include <assert.h>
21839#endif
John Criswell7a73b802003-06-30 21:59:07 +000021840/* Override any gcc2 internal prototype to avoid an error. */
21841#ifdef __cplusplus
21842extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000021843{
John Criswell7a73b802003-06-30 21:59:07 +000021844#endif
21845/* We use char because int might match the return type of a gcc2
21846 builtin and then its argument prototype would still apply. */
21847char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000021848/* The GNU C library defines this for functions which it implements
21849 to always fail with ENOSYS. Some functions are actually named
21850 something starting with __ and the normal name is an alias. */
21851#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21852choke me
21853#else
John Criswell0c38eaf2003-09-10 15:17:25 +000021854char (*f) () = $ac_func;
21855#endif
21856#ifdef __cplusplus
21857}
John Criswell7a73b802003-06-30 21:59:07 +000021858#endif
21859
John Criswell0c38eaf2003-09-10 15:17:25 +000021860int
21861main ()
21862{
21863return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000021864 ;
21865 return 0;
21866}
21867_ACEOF
21868rm -f conftest.$ac_objext conftest$ac_exeext
21869if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21870 (eval $ac_link) 2>&5
21871 ac_status=$?
21872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21873 (exit $ac_status); } &&
21874 { ac_try='test -s conftest$ac_exeext'
21875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21876 (eval $ac_try) 2>&5
21877 ac_status=$?
21878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21879 (exit $ac_status); }; }; then
21880 eval "$as_ac_var=yes"
21881else
21882 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021883sed 's/^/| /' conftest.$ac_ext >&5
21884
John Criswell7a73b802003-06-30 21:59:07 +000021885eval "$as_ac_var=no"
21886fi
21887rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21888fi
21889echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21890echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21891if test `eval echo '${'$as_ac_var'}'` = yes; then
21892 cat >>confdefs.h <<_ACEOF
21893#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21894_ACEOF
21895
21896fi
21897done
21898
21899echo "$as_me:$LINENO: checking for working mmap" >&5
21900echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
21901if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
21902 echo $ECHO_N "(cached) $ECHO_C" >&6
21903else
21904 if test "$cross_compiling" = yes; then
21905 ac_cv_func_mmap_fixed_mapped=no
21906else
21907 cat >conftest.$ac_ext <<_ACEOF
21908#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021909/* confdefs.h. */
21910_ACEOF
21911cat confdefs.h >>conftest.$ac_ext
21912cat >>conftest.$ac_ext <<_ACEOF
21913/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021914$ac_includes_default
21915/* malloc might have been renamed as rpl_malloc. */
21916#undef malloc
21917
21918/* Thanks to Mike Haertel and Jim Avera for this test.
21919 Here is a matrix of mmap possibilities:
21920 mmap private not fixed
21921 mmap private fixed at somewhere currently unmapped
21922 mmap private fixed at somewhere already mapped
21923 mmap shared not fixed
21924 mmap shared fixed at somewhere currently unmapped
21925 mmap shared fixed at somewhere already mapped
21926 For private mappings, we should verify that changes cannot be read()
21927 back from the file, nor mmap's back from the file at a different
21928 address. (There have been systems where private was not correctly
21929 implemented like the infamous i386 svr4.0, and systems where the
21930 VM page cache was not coherent with the file system buffer cache
21931 like early versions of FreeBSD and possibly contemporary NetBSD.)
21932 For shared mappings, we should conversely verify that changes get
21933 propagated back to all the places they're supposed to be.
21934
21935 Grep wants private fixed already mapped.
21936 The main things grep needs to know about mmap are:
21937 * does it exist and is it safe to write into the mmap'd area
21938 * how to use it (BSD variants) */
21939
21940#include <fcntl.h>
21941#include <sys/mman.h>
21942
21943#if !STDC_HEADERS && !HAVE_STDLIB_H
21944char *malloc ();
21945#endif
21946
21947/* This mess was copied from the GNU getpagesize.h. */
21948#if !HAVE_GETPAGESIZE
21949/* Assume that all systems that can run configure have sys/param.h. */
21950# if !HAVE_SYS_PARAM_H
21951# define HAVE_SYS_PARAM_H 1
21952# endif
21953
21954# ifdef _SC_PAGESIZE
21955# define getpagesize() sysconf(_SC_PAGESIZE)
21956# else /* no _SC_PAGESIZE */
21957# if HAVE_SYS_PARAM_H
21958# include <sys/param.h>
21959# ifdef EXEC_PAGESIZE
21960# define getpagesize() EXEC_PAGESIZE
21961# else /* no EXEC_PAGESIZE */
21962# ifdef NBPG
21963# define getpagesize() NBPG * CLSIZE
21964# ifndef CLSIZE
21965# define CLSIZE 1
21966# endif /* no CLSIZE */
21967# else /* no NBPG */
21968# ifdef NBPC
21969# define getpagesize() NBPC
21970# else /* no NBPC */
21971# ifdef PAGESIZE
21972# define getpagesize() PAGESIZE
21973# endif /* PAGESIZE */
21974# endif /* no NBPC */
21975# endif /* no NBPG */
21976# endif /* no EXEC_PAGESIZE */
21977# else /* no HAVE_SYS_PARAM_H */
21978# define getpagesize() 8192 /* punt totally */
21979# endif /* no HAVE_SYS_PARAM_H */
21980# endif /* no _SC_PAGESIZE */
21981
21982#endif /* no HAVE_GETPAGESIZE */
21983
21984int
21985main ()
21986{
21987 char *data, *data2, *data3;
21988 int i, pagesize;
21989 int fd;
21990
21991 pagesize = getpagesize ();
21992
21993 /* First, make a file with some known garbage in it. */
21994 data = (char *) malloc (pagesize);
21995 if (!data)
21996 exit (1);
21997 for (i = 0; i < pagesize; ++i)
21998 *(data + i) = rand ();
21999 umask (0);
22000 fd = creat ("conftest.mmap", 0600);
22001 if (fd < 0)
22002 exit (1);
22003 if (write (fd, data, pagesize) != pagesize)
22004 exit (1);
22005 close (fd);
22006
22007 /* Next, try to mmap the file at a fixed address which already has
22008 something else allocated at it. If we can, also make sure that
22009 we see the same garbage. */
22010 fd = open ("conftest.mmap", O_RDWR);
22011 if (fd < 0)
22012 exit (1);
22013 data2 = (char *) malloc (2 * pagesize);
22014 if (!data2)
22015 exit (1);
22016 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
22017 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
22018 MAP_PRIVATE | MAP_FIXED, fd, 0L))
22019 exit (1);
22020 for (i = 0; i < pagesize; ++i)
22021 if (*(data + i) != *(data2 + i))
22022 exit (1);
22023
22024 /* Finally, make sure that changes to the mapped area do not
22025 percolate back to the file as seen by read(). (This is a bug on
22026 some variants of i386 svr4.0.) */
22027 for (i = 0; i < pagesize; ++i)
22028 *(data2 + i) = *(data2 + i) + 1;
22029 data3 = (char *) malloc (pagesize);
22030 if (!data3)
22031 exit (1);
22032 if (read (fd, data3, pagesize) != pagesize)
22033 exit (1);
22034 for (i = 0; i < pagesize; ++i)
22035 if (*(data + i) != *(data3 + i))
22036 exit (1);
22037 close (fd);
22038 exit (0);
22039}
22040_ACEOF
22041rm -f conftest$ac_exeext
22042if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22043 (eval $ac_link) 2>&5
22044 ac_status=$?
22045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22046 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22048 (eval $ac_try) 2>&5
22049 ac_status=$?
22050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22051 (exit $ac_status); }; }; then
22052 ac_cv_func_mmap_fixed_mapped=yes
22053else
22054 echo "$as_me: program exited with status $ac_status" >&5
22055echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022056sed 's/^/| /' conftest.$ac_ext >&5
22057
John Criswell7a73b802003-06-30 21:59:07 +000022058( exit $ac_status )
22059ac_cv_func_mmap_fixed_mapped=no
22060fi
John Criswell0c38eaf2003-09-10 15:17:25 +000022061rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000022062fi
22063fi
22064echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
22065echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
22066if test $ac_cv_func_mmap_fixed_mapped = yes; then
22067
22068cat >>confdefs.h <<\_ACEOF
22069#define HAVE_MMAP 1
22070_ACEOF
22071
22072fi
22073rm -f conftest.mmap
22074
22075echo "$as_me:$LINENO: checking for mmap of files" >&5
22076echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
22077if test "${ac_cv_func_mmap_file+set}" = set; then
22078 echo $ECHO_N "(cached) $ECHO_C" >&6
22079else
22080
22081
22082 ac_ext=c
22083ac_cpp='$CPP $CPPFLAGS'
22084ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22085ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22086ac_compiler_gnu=$ac_cv_c_compiler_gnu
22087
22088 if test "$cross_compiling" = yes; then
John Criswell0c38eaf2003-09-10 15:17:25 +000022089 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22090See \`config.log' for more details." >&5
22091echo "$as_me: error: cannot run test program while cross compiling
22092See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000022093 { (exit 1); exit 1; }; }
22094else
22095 cat >conftest.$ac_ext <<_ACEOF
22096#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022097/* confdefs.h. */
22098_ACEOF
22099cat confdefs.h >>conftest.$ac_ext
22100cat >>conftest.$ac_ext <<_ACEOF
22101/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022102
John Criswell7a73b802003-06-30 21:59:07 +000022103#ifdef HAVE_SYS_TYPES_H
22104#include <sys/types.h>
22105#endif
22106
John Criswell5ab73462003-10-09 15:44:28 +000022107#ifdef HAVE_SYS_MMAN_H
22108#include <sys/mman.h>
22109#endif
22110
John Criswell7a73b802003-06-30 21:59:07 +000022111#ifdef HAVE_FCNTL_H
22112#include <fcntl.h>
22113#endif
22114
22115 int fd;
22116 int main () {
John Criswell5ab73462003-10-09 15:44:28 +000022117 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 +000022118_ACEOF
22119rm -f conftest$ac_exeext
22120if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22121 (eval $ac_link) 2>&5
22122 ac_status=$?
22123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22124 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22126 (eval $ac_try) 2>&5
22127 ac_status=$?
22128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22129 (exit $ac_status); }; }; then
22130 ac_cv_func_mmap_file=yes
22131else
22132 echo "$as_me: program exited with status $ac_status" >&5
22133echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022134sed 's/^/| /' conftest.$ac_ext >&5
22135
John Criswell7a73b802003-06-30 21:59:07 +000022136( exit $ac_status )
22137ac_cv_func_mmap_file=no
22138fi
John Criswell0c38eaf2003-09-10 15:17:25 +000022139rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000022140fi
22141 ac_ext=c
22142ac_cpp='$CPP $CPPFLAGS'
22143ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22144ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22145ac_compiler_gnu=$ac_cv_c_compiler_gnu
22146
22147
22148fi
22149echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
22150echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
22151if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000022152
22153cat >>confdefs.h <<\_ACEOF
22154#define HAVE_MMAP_FILE
John Criswell7a73b802003-06-30 21:59:07 +000022155_ACEOF
22156
22157 MMAP_FILE=yes
22158
22159fi
22160
22161if test ${ac_cv_func_mmap_file} = "no"
22162then
22163 { { echo "$as_me:$LINENO: error: mmap() of files required but not found" >&5
22164echo "$as_me: error: mmap() of files required but not found" >&2;}
22165 { (exit 1); exit 1; }; }
22166fi
22167echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
22168echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
22169if test "${ac_cv_header_mmap_anon+set}" = set; then
22170 echo $ECHO_N "(cached) $ECHO_C" >&6
22171else
22172
22173
22174 ac_ext=c
22175ac_cpp='$CPP $CPPFLAGS'
22176ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22177ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22178ac_compiler_gnu=$ac_cv_c_compiler_gnu
22179
22180 cat >conftest.$ac_ext <<_ACEOF
22181#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022182/* confdefs.h. */
22183_ACEOF
22184cat confdefs.h >>conftest.$ac_ext
22185cat >>conftest.$ac_ext <<_ACEOF
22186/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022187#include <sys/mman.h>
22188 #include <unistd.h>
22189 #include <fcntl.h>
John Criswell7a73b802003-06-30 21:59:07 +000022190int
22191main ()
22192{
22193mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
22194 ;
22195 return 0;
22196}
22197_ACEOF
22198rm -f conftest.$ac_objext
22199if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22200 (eval $ac_compile) 2>&5
22201 ac_status=$?
22202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22203 (exit $ac_status); } &&
22204 { ac_try='test -s conftest.$ac_objext'
22205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22206 (eval $ac_try) 2>&5
22207 ac_status=$?
22208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22209 (exit $ac_status); }; }; then
22210 ac_cv_header_mmap_anon=yes
22211else
22212 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022213sed 's/^/| /' conftest.$ac_ext >&5
22214
John Criswell7a73b802003-06-30 21:59:07 +000022215ac_cv_header_mmap_anon=no
22216fi
22217rm -f conftest.$ac_objext conftest.$ac_ext
22218 ac_ext=c
22219ac_cpp='$CPP $CPPFLAGS'
22220ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22221ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22222ac_compiler_gnu=$ac_cv_c_compiler_gnu
22223
22224
22225fi
22226echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
22227echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
22228if test "$ac_cv_header_mmap_anon" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000022229
22230cat >>confdefs.h <<\_ACEOF
22231#define HAVE_MMAP_ANONYMOUS
John Criswell7a73b802003-06-30 21:59:07 +000022232_ACEOF
22233
22234fi
22235
22236echo "$as_me:$LINENO: checking return type of signal handlers" >&5
22237echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
22238if test "${ac_cv_type_signal+set}" = set; then
22239 echo $ECHO_N "(cached) $ECHO_C" >&6
22240else
22241 cat >conftest.$ac_ext <<_ACEOF
22242#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022243/* confdefs.h. */
22244_ACEOF
22245cat confdefs.h >>conftest.$ac_ext
22246cat >>conftest.$ac_ext <<_ACEOF
22247/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022248#include <sys/types.h>
22249#include <signal.h>
22250#ifdef signal
22251# undef signal
22252#endif
22253#ifdef __cplusplus
22254extern "C" void (*signal (int, void (*)(int)))(int);
22255#else
22256void (*signal ()) ();
22257#endif
22258
John Criswell7a73b802003-06-30 21:59:07 +000022259int
22260main ()
22261{
22262int i;
22263 ;
22264 return 0;
22265}
22266_ACEOF
22267rm -f conftest.$ac_objext
22268if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22269 (eval $ac_compile) 2>&5
22270 ac_status=$?
22271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22272 (exit $ac_status); } &&
22273 { ac_try='test -s conftest.$ac_objext'
22274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22275 (eval $ac_try) 2>&5
22276 ac_status=$?
22277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22278 (exit $ac_status); }; }; then
22279 ac_cv_type_signal=void
22280else
22281 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022282sed 's/^/| /' conftest.$ac_ext >&5
22283
John Criswell7a73b802003-06-30 21:59:07 +000022284ac_cv_type_signal=int
22285fi
22286rm -f conftest.$ac_objext conftest.$ac_ext
22287fi
22288echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
22289echo "${ECHO_T}$ac_cv_type_signal" >&6
22290
22291cat >>confdefs.h <<_ACEOF
22292#define RETSIGTYPE $ac_cv_type_signal
22293_ACEOF
22294
22295
22296
22297
22298
22299
22300
22301
22302
22303
22304
Brian Gaekec45be042003-10-07 06:01:34 +000022305
22306
John Criswella0137d32003-10-13 16:22:01 +000022307for ac_func in getcwd gettimeofday strcspn strdup strerror strspn strstr strtod strtol strtoq strtoll
John Criswell7a73b802003-06-30 21:59:07 +000022308do
22309as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22310echo "$as_me:$LINENO: checking for $ac_func" >&5
22311echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22312if eval "test \"\${$as_ac_var+set}\" = set"; then
22313 echo $ECHO_N "(cached) $ECHO_C" >&6
22314else
22315 cat >conftest.$ac_ext <<_ACEOF
22316#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022317/* confdefs.h. */
22318_ACEOF
22319cat confdefs.h >>conftest.$ac_ext
22320cat >>conftest.$ac_ext <<_ACEOF
22321/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022322/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000022323 which can conflict with char $ac_func (); below.
22324 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22325 <limits.h> exists even on freestanding compilers. */
22326#ifdef __STDC__
22327# include <limits.h>
22328#else
22329# include <assert.h>
22330#endif
John Criswell7a73b802003-06-30 21:59:07 +000022331/* Override any gcc2 internal prototype to avoid an error. */
22332#ifdef __cplusplus
22333extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000022334{
John Criswell7a73b802003-06-30 21:59:07 +000022335#endif
22336/* We use char because int might match the return type of a gcc2
22337 builtin and then its argument prototype would still apply. */
22338char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000022339/* The GNU C library defines this for functions which it implements
22340 to always fail with ENOSYS. Some functions are actually named
22341 something starting with __ and the normal name is an alias. */
22342#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22343choke me
22344#else
John Criswell0c38eaf2003-09-10 15:17:25 +000022345char (*f) () = $ac_func;
22346#endif
22347#ifdef __cplusplus
22348}
John Criswell7a73b802003-06-30 21:59:07 +000022349#endif
22350
John Criswell0c38eaf2003-09-10 15:17:25 +000022351int
22352main ()
22353{
22354return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000022355 ;
22356 return 0;
22357}
22358_ACEOF
22359rm -f conftest.$ac_objext conftest$ac_exeext
22360if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22361 (eval $ac_link) 2>&5
22362 ac_status=$?
22363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22364 (exit $ac_status); } &&
22365 { ac_try='test -s conftest$ac_exeext'
22366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22367 (eval $ac_try) 2>&5
22368 ac_status=$?
22369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22370 (exit $ac_status); }; }; then
22371 eval "$as_ac_var=yes"
22372else
22373 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022374sed 's/^/| /' conftest.$ac_ext >&5
22375
John Criswell7a73b802003-06-30 21:59:07 +000022376eval "$as_ac_var=no"
22377fi
22378rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22379fi
22380echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22381echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22382if test `eval echo '${'$as_ac_var'}'` = yes; then
22383 cat >>confdefs.h <<_ACEOF
22384#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22385_ACEOF
22386
22387fi
22388done
22389
22390
22391
22392echo "$as_me:$LINENO: checking for mmap" >&5
22393echo $ECHO_N "checking for mmap... $ECHO_C" >&6
22394if test "${ac_cv_func_mmap+set}" = set; then
22395 echo $ECHO_N "(cached) $ECHO_C" >&6
22396else
22397 cat >conftest.$ac_ext <<_ACEOF
22398#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022399/* confdefs.h. */
22400_ACEOF
22401cat confdefs.h >>conftest.$ac_ext
22402cat >>conftest.$ac_ext <<_ACEOF
22403/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022404/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000022405 which can conflict with char mmap (); below.
22406 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22407 <limits.h> exists even on freestanding compilers. */
22408#ifdef __STDC__
22409# include <limits.h>
22410#else
22411# include <assert.h>
22412#endif
John Criswell7a73b802003-06-30 21:59:07 +000022413/* Override any gcc2 internal prototype to avoid an error. */
22414#ifdef __cplusplus
22415extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000022416{
John Criswell7a73b802003-06-30 21:59:07 +000022417#endif
22418/* We use char because int might match the return type of a gcc2
22419 builtin and then its argument prototype would still apply. */
22420char mmap ();
John Criswell7a73b802003-06-30 21:59:07 +000022421/* The GNU C library defines this for functions which it implements
22422 to always fail with ENOSYS. Some functions are actually named
22423 something starting with __ and the normal name is an alias. */
22424#if defined (__stub_mmap) || defined (__stub___mmap)
22425choke me
22426#else
John Criswell0c38eaf2003-09-10 15:17:25 +000022427char (*f) () = mmap;
22428#endif
22429#ifdef __cplusplus
22430}
John Criswell7a73b802003-06-30 21:59:07 +000022431#endif
22432
John Criswell0c38eaf2003-09-10 15:17:25 +000022433int
22434main ()
22435{
22436return f != mmap;
John Criswell7a73b802003-06-30 21:59:07 +000022437 ;
22438 return 0;
22439}
22440_ACEOF
22441rm -f conftest.$ac_objext conftest$ac_exeext
22442if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22443 (eval $ac_link) 2>&5
22444 ac_status=$?
22445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22446 (exit $ac_status); } &&
22447 { ac_try='test -s conftest$ac_exeext'
22448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22449 (eval $ac_try) 2>&5
22450 ac_status=$?
22451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22452 (exit $ac_status); }; }; then
22453 ac_cv_func_mmap=yes
22454else
22455 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022456sed 's/^/| /' conftest.$ac_ext >&5
22457
John Criswell7a73b802003-06-30 21:59:07 +000022458ac_cv_func_mmap=no
22459fi
22460rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22461fi
22462echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
22463echo "${ECHO_T}$ac_cv_func_mmap" >&6
22464if test $ac_cv_func_mmap = yes; then
22465 :
22466else
22467 { { echo "$as_me:$LINENO: error: Function mmap() required but not found" >&5
22468echo "$as_me: error: Function mmap() required but not found" >&2;}
22469 { (exit 1); exit 1; }; }
22470fi
22471
22472echo "$as_me:$LINENO: checking for mprotect" >&5
22473echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
22474if test "${ac_cv_func_mprotect+set}" = set; then
22475 echo $ECHO_N "(cached) $ECHO_C" >&6
22476else
22477 cat >conftest.$ac_ext <<_ACEOF
22478#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022479/* confdefs.h. */
22480_ACEOF
22481cat confdefs.h >>conftest.$ac_ext
22482cat >>conftest.$ac_ext <<_ACEOF
22483/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022484/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000022485 which can conflict with char mprotect (); below.
22486 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22487 <limits.h> exists even on freestanding compilers. */
22488#ifdef __STDC__
22489# include <limits.h>
22490#else
22491# include <assert.h>
22492#endif
John Criswell7a73b802003-06-30 21:59:07 +000022493/* Override any gcc2 internal prototype to avoid an error. */
22494#ifdef __cplusplus
22495extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000022496{
John Criswell7a73b802003-06-30 21:59:07 +000022497#endif
22498/* We use char because int might match the return type of a gcc2
22499 builtin and then its argument prototype would still apply. */
22500char mprotect ();
John Criswell7a73b802003-06-30 21:59:07 +000022501/* The GNU C library defines this for functions which it implements
22502 to always fail with ENOSYS. Some functions are actually named
22503 something starting with __ and the normal name is an alias. */
22504#if defined (__stub_mprotect) || defined (__stub___mprotect)
22505choke me
22506#else
John Criswell0c38eaf2003-09-10 15:17:25 +000022507char (*f) () = mprotect;
22508#endif
22509#ifdef __cplusplus
22510}
John Criswell7a73b802003-06-30 21:59:07 +000022511#endif
22512
John Criswell0c38eaf2003-09-10 15:17:25 +000022513int
22514main ()
22515{
22516return f != mprotect;
John Criswell7a73b802003-06-30 21:59:07 +000022517 ;
22518 return 0;
22519}
22520_ACEOF
22521rm -f conftest.$ac_objext conftest$ac_exeext
22522if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22523 (eval $ac_link) 2>&5
22524 ac_status=$?
22525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22526 (exit $ac_status); } &&
22527 { ac_try='test -s conftest$ac_exeext'
22528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22529 (eval $ac_try) 2>&5
22530 ac_status=$?
22531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22532 (exit $ac_status); }; }; then
22533 ac_cv_func_mprotect=yes
22534else
22535 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022536sed 's/^/| /' conftest.$ac_ext >&5
22537
John Criswell7a73b802003-06-30 21:59:07 +000022538ac_cv_func_mprotect=no
22539fi
22540rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22541fi
22542echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
22543echo "${ECHO_T}$ac_cv_func_mprotect" >&6
22544if test $ac_cv_func_mprotect = yes; then
22545 :
22546else
22547 { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
22548echo "$as_me: error: Function mprotect() required but not found" >&2;}
22549 { (exit 1); exit 1; }; }
22550fi
22551
22552
John Criswellb13092b2003-07-22 21:00:24 +000022553
John Criswellcb7a1eb2003-11-17 19:46:02 +000022554
22555
22556 ac_ext=c
22557ac_cpp='$CPP $CPPFLAGS'
22558ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22559ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22560ac_compiler_gnu=$ac_cv_c_compiler_gnu
22561
Brian Gaekef91a15c2003-11-18 06:20:41 +000022562 oldcflags="$CFLAGS"
22563 CFLAGS="$CFLAGS -Wl,-R."
John Criswellcb7a1eb2003-11-17 19:46:02 +000022564 cat >conftest.$ac_ext <<_ACEOF
Brian Gaekef91a15c2003-11-18 06:20:41 +000022565int main() { return 0; }
John Criswellcb7a1eb2003-11-17 19:46:02 +000022566_ACEOF
22567rm -f conftest.$ac_objext conftest$ac_exeext
22568if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22569 (eval $ac_link) 2>&5
22570 ac_status=$?
22571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22572 (exit $ac_status); } &&
22573 { ac_try='test -s conftest$ac_exeext'
22574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22575 (eval $ac_try) 2>&5
22576 ac_status=$?
22577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22578 (exit $ac_status); }; }; then
22579 ac_cv_link_use_r=yes
22580else
22581 echo "$as_me: failed program was:" >&5
22582sed 's/^/| /' conftest.$ac_ext >&5
22583
Brian Gaekef91a15c2003-11-18 06:20:41 +000022584ac_cv_link_use_r=no
John Criswellcb7a1eb2003-11-17 19:46:02 +000022585fi
22586rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Brian Gaekef91a15c2003-11-18 06:20:41 +000022587 CFLAGS="$oldcflags"
John Criswellcb7a1eb2003-11-17 19:46:02 +000022588 ac_ext=c
22589ac_cpp='$CPP $CPPFLAGS'
22590ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22591ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22592ac_compiler_gnu=$ac_cv_c_compiler_gnu
22593
Brian Gaekef91a15c2003-11-18 06:20:41 +000022594 if test "$ac_cv_link_use_r" = yes
John Criswellcb7a1eb2003-11-17 19:46:02 +000022595 then
Brian Gaekef91a15c2003-11-18 06:20:41 +000022596
22597cat >>confdefs.h <<\_ACEOF
John Criswellcb7a1eb2003-11-17 19:46:02 +000022598#define HAVE_LINK_R 1
22599_ACEOF
22600
22601 fi
22602
22603
22604
John Criswell7a73b802003-06-30 21:59:07 +000022605# Check whether --enable-purify or --disable-purify was given.
22606if test "${enable_purify+set}" = set; then
22607 enableval="$enable_purify"
John Criswell7a73b802003-06-30 21:59:07 +000022608
22609else
John Criswellb13092b2003-07-22 21:00:24 +000022610 enableval="no"
John Criswell7a73b802003-06-30 21:59:07 +000022611fi;
John Criswellb13092b2003-07-22 21:00:24 +000022612if test ${enableval} = "no"
22613then
22614 ENABLE_PURIFY=
22615
22616else
22617 ENABLE_PURIFY=ENABLE_PURIFY=1
22618
22619fi
22620
John Criswell7a73b802003-06-30 21:59:07 +000022621# Check whether --enable-optimized or --disable-optimized was given.
22622if test "${enable_optimized+set}" = set; then
22623 enableval="$enable_optimized"
John Criswell7a73b802003-06-30 21:59:07 +000022624
22625else
John Criswellb13092b2003-07-22 21:00:24 +000022626 enableval=no
John Criswell7a73b802003-06-30 21:59:07 +000022627fi;
John Criswellb13092b2003-07-22 21:00:24 +000022628if test ${enableval} = "no"
22629then
22630 ENABLE_OPTIMIZED=
22631
22632else
22633 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
22634
22635fi
22636
John Criswell55126592003-10-07 21:57:39 +000022637# Check whether --enable-spec2000 or --disable-spec2000 was given.
22638if test "${enable_spec2000+set}" = set; then
22639 enableval="$enable_spec2000"
John Criswell7a73b802003-06-30 21:59:07 +000022640
22641else
John Criswellb13092b2003-07-22 21:00:24 +000022642 enableval=no
John Criswell7a73b802003-06-30 21:59:07 +000022643fi;
John Criswellb13092b2003-07-22 21:00:24 +000022644if test ${enableval} = "no"
22645then
John Criswell55126592003-10-07 21:57:39 +000022646 if test -d /home/vadve/shared/benchmarks/speccpu2000/benchspec
22647 then
22648 SPEC_ROOT=/home/vadve/shared/benchmarks/speccpu2000/benchspec
John Criswellb13092b2003-07-22 21:00:24 +000022649
John Criswell55126592003-10-07 21:57:39 +000022650 USE_SPEC=USE_SPEC=1
22651
22652 else
22653 USE_SPEC=
22654
22655
22656 fi
John Criswellb13092b2003-07-22 21:00:24 +000022657else
John Criswell55126592003-10-07 21:57:39 +000022658 if test ${enableval} = ""
22659 then
22660 SPEC_ROOT=/home/vadve/shared/benchmarks/speccpu2000/benchspec
22661
22662 else
22663 SPEC_ROOT=${enableval}
22664
22665 fi
John Criswellb13092b2003-07-22 21:00:24 +000022666 USE_SPEC=USE_SPEC=1
22667
22668fi
22669
John Criswell7a73b802003-06-30 21:59:07 +000022670# Check whether --enable-precompiled_bytecode or --disable-precompiled_bytecode was given.
22671if test "${enable_precompiled_bytecode+set}" = set; then
22672 enableval="$enable_precompiled_bytecode"
John Criswell7a73b802003-06-30 21:59:07 +000022673
22674else
John Criswellb13092b2003-07-22 21:00:24 +000022675 enableval=no
John Criswell7a73b802003-06-30 21:59:07 +000022676fi;
John Criswellb13092b2003-07-22 21:00:24 +000022677if test ${enableval} = "no"
22678then
22679 UPB=
John Criswellf02dbf02003-07-22 20:07:49 +000022680
John Criswellb13092b2003-07-22 21:00:24 +000022681else
22682 UPB=USE_PRECOMPILED_BYTECODE=1
22683
22684fi
John Criswellf02dbf02003-07-22 20:07:49 +000022685
22686
22687# Check whether --enable-llc_diffs or --disable-llc_diffs was given.
22688if test "${enable_llc_diffs+set}" = set; then
22689 enableval="$enable_llc_diffs"
John Criswellf02dbf02003-07-22 20:07:49 +000022690
22691else
John Criswellb13092b2003-07-22 21:00:24 +000022692 enableval=yes
John Criswellf02dbf02003-07-22 20:07:49 +000022693fi;
John Criswellb13092b2003-07-22 21:00:24 +000022694if test ${enableval} = "no"
22695then
22696 DISABLE_LLC_DIFFS=DISABLE_LLC_DIFFS:=1
John Criswellf02dbf02003-07-22 20:07:49 +000022697
John Criswellb13092b2003-07-22 21:00:24 +000022698else
22699 DISABLE_LLC_DIFFS=
22700
22701fi
22702
22703# Check whether --enable-jit or --disable-jit was given.
John Criswell7a73b802003-06-30 21:59:07 +000022704if test "${enable_jit+set}" = set; then
22705 enableval="$enable_jit"
John Criswell7a73b802003-06-30 21:59:07 +000022706
22707else
John Criswellc78022e2003-07-29 19:11:58 +000022708 enableval=default
John Criswell7a73b802003-06-30 21:59:07 +000022709fi;
John Criswellb13092b2003-07-22 21:00:24 +000022710
22711if test ${enableval} = "no"
22712then
22713 JIT=
22714
22715else
John Criswellc78022e2003-07-29 19:11:58 +000022716 case $target in
22717 *i*86*)
22718 JIT=TARGET_HAS_JIT=1
John Criswellb13092b2003-07-22 21:00:24 +000022719
John Criswellc78022e2003-07-29 19:11:58 +000022720 ;;
22721 *sparc*)
22722 JIT=TARGET_HAS_JIT=1
22723
22724 ;;
22725 *)
22726 JIT=
22727
22728 ;;
22729 esac
John Criswellb13092b2003-07-22 21:00:24 +000022730fi
John Criswell7a73b802003-06-30 21:59:07 +000022731
22732
John Criswellc78022e2003-07-29 19:11:58 +000022733
John Criswell7a73b802003-06-30 21:59:07 +000022734# Check whether --with-llvmgccdir or --without-llvmgccdir was given.
22735if test "${with_llvmgccdir+set}" = set; then
22736 withval="$with_llvmgccdir"
22737 LLVMGCCDIR=$withval
22738
22739fi;
22740
Brian Gaekef3b24102003-11-16 18:38:14 +000022741echo "$as_me:$LINENO: checking for llvm-gcc" >&5
22742echo $ECHO_N "checking for llvm-gcc... $ECHO_C" >&6
22743LLVM_GCC_CHECK=no
22744if test -d "$LLVMGCCDIR"
22745then
22746 if test -x "$LLVMGCCDIR/bin/gcc"
22747 then
22748 LLVM_GCC_CHECK="$LLVMGCCDIR/bin/gcc"
22749 fi
22750fi
22751llvmgccwarn=no
22752echo "$as_me:$LINENO: result: $LLVM_GCC_CHECK" >&5
22753echo "${ECHO_T}$LLVM_GCC_CHECK" >&6
22754if test "$LLVM_GCC_CHECK" = "no"
22755then
22756 llvmgccwarn=yes
22757fi
22758
22759echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
22760echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
22761LLVM_GCC_SANE=no
22762if test -x "$LLVM_GCC_CHECK"
22763then
22764 cp /dev/null conftest.c
22765 "$LLVM_GCC_CHECK" -S -o - conftest.c | grep implementation > /dev/null 2>&1
22766 if test $? -eq 0
22767 then
22768 LLVM_GCC_SANE=yes
22769 fi
22770 rm conftest.c
22771fi
22772echo "$as_me:$LINENO: result: $LLVM_GCC_SANE" >&5
22773echo "${ECHO_T}$LLVM_GCC_SANE" >&6
22774if test "$LLVM_GCC_SANE" = "no"
22775then
22776 llvmgccwarn=yes
22777fi
22778
John Criswellc78022e2003-07-29 19:11:58 +000022779
John Criswell7a73b802003-06-30 21:59:07 +000022780# Check whether --with-bcrepos or --without-bcrepos was given.
22781if test "${with_bcrepos+set}" = set; then
22782 withval="$with_bcrepos"
22783 BCR=$withval
22784
22785else
22786 BCR=/home/vadve/lattner/LLVMPrograms
22787
22788fi;
22789
John Criswellc78022e2003-07-29 19:11:58 +000022790
John Criswell7a73b802003-06-30 21:59:07 +000022791# Check whether --with-papi or --without-papi was given.
22792if test "${with_papi+set}" = set; then
22793 withval="$with_papi"
22794 PAPIDIR=$withval
22795
22796else
John Criswellde00db22003-08-25 16:49:54 +000022797 PAPIDIR=/home/vadve/shared/Sparc/papi-2.3.4.1
John Criswell7a73b802003-06-30 21:59:07 +000022798
22799fi;
22800
John Criswell7a73b802003-06-30 21:59:07 +000022801
22802# Check whether --with-purify or --without-purify was given.
22803if test "${with_purify+set}" = set; then
22804 withval="$with_purify"
22805 PURIFY=$withval
22806
22807fi;
22808
John Criswellde00db22003-08-25 16:49:54 +000022809
John Criswell0c38eaf2003-09-10 15:17:25 +000022810 ac_config_files="$ac_config_files Makefile.config"
John Criswell7a73b802003-06-30 21:59:07 +000022811cat >confcache <<\_ACEOF
22812# This file is a shell script that caches the results of configure
22813# tests run on this system so they can be shared between configure
22814# scripts and configure runs, see configure's option --config-cache.
22815# It is not useful on other systems. If it contains results you don't
22816# want to keep, you may remove or edit it.
22817#
22818# config.status only pays attention to the cache file if you give it
22819# the --recheck option to rerun configure.
22820#
John Criswell0c38eaf2003-09-10 15:17:25 +000022821# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000022822# loading this file, other *unset* `ac_cv_foo' will be assigned the
22823# following values.
22824
22825_ACEOF
22826
22827# The following way of writing the cache mishandles newlines in values,
22828# but we know of no workaround that is simple, portable, and efficient.
22829# So, don't put newlines in cache variables' values.
22830# Ultrix sh set writes to stderr and can't be redirected directly,
22831# and sets the high bit in the cache file unless we assign to the vars.
22832{
22833 (set) 2>&1 |
22834 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22835 *ac_space=\ *)
22836 # `set' does not quote correctly, so add quotes (double-quote
22837 # substitution turns \\\\ into \\, and sed turns \\ into \).
22838 sed -n \
22839 "s/'/'\\\\''/g;
22840 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22841 ;;
22842 *)
22843 # `set' quotes correctly as required by POSIX, so do not add quotes.
22844 sed -n \
22845 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22846 ;;
22847 esac;
22848} |
22849 sed '
22850 t clear
22851 : clear
22852 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22853 t end
22854 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22855 : end' >>confcache
John Criswell0c38eaf2003-09-10 15:17:25 +000022856if diff $cache_file confcache >/dev/null 2>&1; then :; else
John Criswell7a73b802003-06-30 21:59:07 +000022857 if test -w $cache_file; then
22858 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22859 cat confcache >$cache_file
22860 else
22861 echo "not updating unwritable cache $cache_file"
22862 fi
22863fi
22864rm -f confcache
22865
22866test "x$prefix" = xNONE && prefix=$ac_default_prefix
22867# Let make expand exec_prefix.
22868test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22869
22870# VPATH may cause trouble with some makes, so we remove $(srcdir),
22871# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22872# trailing colons and then remove the whole line if VPATH becomes empty
22873# (actually we leave an empty line to preserve line numbers).
22874if test "x$srcdir" = x.; then
22875 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22876s/:*\$(srcdir):*/:/;
22877s/:*\${srcdir}:*/:/;
22878s/:*@srcdir@:*/:/;
22879s/^\([^=]*=[ ]*\):*/\1/;
22880s/:*$//;
22881s/^[^=]*=[ ]*$//;
22882}'
22883fi
22884
22885DEFS=-DHAVE_CONFIG_H
22886
John Criswell0c38eaf2003-09-10 15:17:25 +000022887ac_libobjs=
22888ac_ltlibobjs=
22889for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22890 # 1. Remove the extension, and $U if already installed.
22891 ac_i=`echo "$ac_i" |
22892 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22893 # 2. Add them.
22894 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22895 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22896done
22897LIBOBJS=$ac_libobjs
22898
22899LTLIBOBJS=$ac_ltlibobjs
22900
22901
John Criswell7a73b802003-06-30 21:59:07 +000022902
22903: ${CONFIG_STATUS=./config.status}
22904ac_clean_files_save=$ac_clean_files
22905ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22906{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22907echo "$as_me: creating $CONFIG_STATUS" >&6;}
22908cat >$CONFIG_STATUS <<_ACEOF
22909#! $SHELL
22910# Generated by $as_me.
22911# Run this file to recreate the current configuration.
22912# Compiler output produced by configure, useful for debugging
22913# configure, is in config.log if it exists.
22914
22915debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000022916ac_cs_recheck=false
22917ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000022918SHELL=\${CONFIG_SHELL-$SHELL}
22919_ACEOF
22920
22921cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022922## --------------------- ##
22923## M4sh Initialization. ##
22924## --------------------- ##
22925
22926# Be Bourne compatible
22927if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22928 emulate sh
22929 NULLCMD=:
John Criswell0c38eaf2003-09-10 15:17:25 +000022930 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22931 # is contrary to our usage. Disable this feature.
22932 alias -g '${1+"$@"}'='"$@"'
John Criswell7a73b802003-06-30 21:59:07 +000022933elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22934 set -o posix
22935fi
22936
John Criswell7a73b802003-06-30 21:59:07 +000022937# Support unset when possible.
22938if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
22939 as_unset=unset
22940else
22941 as_unset=false
22942fi
22943
John Criswell0c38eaf2003-09-10 15:17:25 +000022944
22945# Work around bugs in pre-3.0 UWIN ksh.
22946$as_unset ENV MAIL MAILPATH
22947PS1='$ '
22948PS2='> '
22949PS4='+ '
22950
22951# NLS nuisances.
22952for as_var in \
22953 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22954 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22955 LC_TELEPHONE LC_TIME
22956do
22957 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
22958 eval $as_var=C; export $as_var
22959 else
22960 $as_unset $as_var
22961 fi
22962done
22963
22964# Required to use basename.
22965if expr a : '\(a\)' >/dev/null 2>&1; then
22966 as_expr=expr
22967else
22968 as_expr=false
22969fi
22970
22971if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
22972 as_basename=basename
22973else
22974 as_basename=false
22975fi
John Criswell7a73b802003-06-30 21:59:07 +000022976
22977
22978# Name of the executable.
John Criswell0c38eaf2003-09-10 15:17:25 +000022979as_me=`$as_basename "$0" ||
John Criswell7a73b802003-06-30 21:59:07 +000022980$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22981 X"$0" : 'X\(//\)$' \| \
22982 X"$0" : 'X\(/\)$' \| \
22983 . : '\(.\)' 2>/dev/null ||
22984echo X/"$0" |
22985 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22986 /^X\/\(\/\/\)$/{ s//\1/; q; }
22987 /^X\/\(\/\).*/{ s//\1/; q; }
22988 s/.*/./; q'`
22989
John Criswell0c38eaf2003-09-10 15:17:25 +000022990
John Criswell7a73b802003-06-30 21:59:07 +000022991# PATH needs CR, and LINENO needs CR and PATH.
22992# Avoid depending upon Character Ranges.
22993as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22994as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22995as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22996as_cr_digits='0123456789'
22997as_cr_alnum=$as_cr_Letters$as_cr_digits
22998
22999# The user is always right.
23000if test "${PATH_SEPARATOR+set}" != set; then
John Criswell0c38eaf2003-09-10 15:17:25 +000023001 echo "#! /bin/sh" >conf$$.sh
23002 echo "exit 0" >>conf$$.sh
23003 chmod +x conf$$.sh
23004 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000023005 PATH_SEPARATOR=';'
23006 else
23007 PATH_SEPARATOR=:
23008 fi
John Criswell0c38eaf2003-09-10 15:17:25 +000023009 rm -f conf$$.sh
John Criswell7a73b802003-06-30 21:59:07 +000023010fi
23011
23012
23013 as_lineno_1=$LINENO
23014 as_lineno_2=$LINENO
23015 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23016 test "x$as_lineno_1" != "x$as_lineno_2" &&
23017 test "x$as_lineno_3" = "x$as_lineno_2" || {
23018 # Find who we are. Look in the path if we contain no path at all
23019 # relative or not.
23020 case $0 in
23021 *[\\/]* ) as_myself=$0 ;;
23022 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23023for as_dir in $PATH
23024do
23025 IFS=$as_save_IFS
23026 test -z "$as_dir" && as_dir=.
23027 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23028done
23029
23030 ;;
23031 esac
23032 # We did not find ourselves, most probably we were run as `sh COMMAND'
23033 # in which case we are not to be found in the path.
23034 if test "x$as_myself" = x; then
23035 as_myself=$0
23036 fi
23037 if test ! -f "$as_myself"; then
23038 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
23039echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
23040 { (exit 1); exit 1; }; }
23041 fi
23042 case $CONFIG_SHELL in
23043 '')
23044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23045for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
23046do
23047 IFS=$as_save_IFS
23048 test -z "$as_dir" && as_dir=.
23049 for as_base in sh bash ksh sh5; do
23050 case $as_dir in
23051 /*)
23052 if ("$as_dir/$as_base" -c '
23053 as_lineno_1=$LINENO
23054 as_lineno_2=$LINENO
23055 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23056 test "x$as_lineno_1" != "x$as_lineno_2" &&
23057 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
John Criswell0c38eaf2003-09-10 15:17:25 +000023058 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
23059 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
John Criswell7a73b802003-06-30 21:59:07 +000023060 CONFIG_SHELL=$as_dir/$as_base
23061 export CONFIG_SHELL
23062 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
23063 fi;;
23064 esac
23065 done
23066done
23067;;
23068 esac
23069
23070 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23071 # uniformly replaced by the line number. The first 'sed' inserts a
23072 # line-number line before each line; the second 'sed' does the real
23073 # work. The second script uses 'N' to pair each line-number line
23074 # with the numbered line, and appends trailing '-' during
23075 # substitution so that $LINENO is not a special case at line end.
23076 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23077 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
23078 sed '=' <$as_myself |
23079 sed '
23080 N
23081 s,$,-,
23082 : loop
23083 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
23084 t loop
23085 s,-$,,
23086 s,^['$as_cr_digits']*\n,,
23087 ' >$as_me.lineno &&
23088 chmod +x $as_me.lineno ||
23089 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
23090echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
23091 { (exit 1); exit 1; }; }
23092
23093 # Don't try to exec as it changes $[0], causing all sort of problems
23094 # (the dirname of $[0] is not the place where we might find the
23095 # original and so on. Autoconf is especially sensible to this).
23096 . ./$as_me.lineno
23097 # Exit status is that of the last command.
23098 exit
23099}
23100
23101
23102case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
23103 *c*,-n*) ECHO_N= ECHO_C='
23104' ECHO_T=' ' ;;
23105 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
23106 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
23107esac
23108
23109if expr a : '\(a\)' >/dev/null 2>&1; then
23110 as_expr=expr
23111else
23112 as_expr=false
23113fi
23114
23115rm -f conf$$ conf$$.exe conf$$.file
23116echo >conf$$.file
23117if ln -s conf$$.file conf$$ 2>/dev/null; then
23118 # We could just check for DJGPP; but this test a) works b) is more generic
23119 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23120 if test -f conf$$.exe; then
23121 # Don't use ln at all; we don't have any links
23122 as_ln_s='cp -p'
23123 else
23124 as_ln_s='ln -s'
23125 fi
23126elif ln conf$$.file conf$$ 2>/dev/null; then
23127 as_ln_s=ln
23128else
23129 as_ln_s='cp -p'
23130fi
23131rm -f conf$$ conf$$.exe conf$$.file
23132
John Criswell0c38eaf2003-09-10 15:17:25 +000023133if mkdir -p . 2>/dev/null; then
23134 as_mkdir_p=:
23135else
23136 as_mkdir_p=false
23137fi
23138
John Criswell7a73b802003-06-30 21:59:07 +000023139as_executable_p="test -f"
23140
23141# Sed expression to map a string onto a valid CPP name.
23142as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
23143
23144# Sed expression to map a string onto a valid variable name.
23145as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
23146
23147
23148# IFS
23149# We need space, tab and new line, in precisely that order.
23150as_nl='
23151'
23152IFS=" $as_nl"
23153
23154# CDPATH.
John Criswell0c38eaf2003-09-10 15:17:25 +000023155$as_unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000023156
23157exec 6>&1
23158
23159# Open the log real soon, to keep \$[0] and so on meaningful, and to
23160# report actual input values of CONFIG_FILES etc. instead of their
23161# values after options handling. Logging --version etc. is OK.
23162exec 5>>config.log
23163{
23164 echo
23165 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23166## Running $as_me. ##
23167_ASBOX
23168} >&5
23169cat >&5 <<_CSEOF
23170
23171This file was extended by [LLVM] $as_me [1.0], which was
John Criswell0c38eaf2003-09-10 15:17:25 +000023172generated by GNU Autoconf 2.57. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000023173
23174 CONFIG_FILES = $CONFIG_FILES
23175 CONFIG_HEADERS = $CONFIG_HEADERS
23176 CONFIG_LINKS = $CONFIG_LINKS
23177 CONFIG_COMMANDS = $CONFIG_COMMANDS
23178 $ $0 $@
23179
23180_CSEOF
23181echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23182echo >&5
23183_ACEOF
23184
23185# Files that config.status was made for.
23186if test -n "$ac_config_files"; then
23187 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23188fi
23189
23190if test -n "$ac_config_headers"; then
23191 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23192fi
23193
23194if test -n "$ac_config_links"; then
23195 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23196fi
23197
23198if test -n "$ac_config_commands"; then
23199 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23200fi
23201
23202cat >>$CONFIG_STATUS <<\_ACEOF
23203
23204ac_cs_usage="\
23205\`$as_me' instantiates files from templates according to the
23206current configuration.
23207
23208Usage: $0 [OPTIONS] [FILE]...
23209
23210 -h, --help print this help, then exit
23211 -V, --version print version number, then exit
John Criswell0c38eaf2003-09-10 15:17:25 +000023212 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000023213 -d, --debug don't remove temporary files
23214 --recheck update $as_me by reconfiguring in the same conditions
23215 --file=FILE[:TEMPLATE]
23216 instantiate the configuration file FILE
23217 --header=FILE[:TEMPLATE]
23218 instantiate the configuration header FILE
23219
23220Configuration files:
23221$config_files
23222
23223Configuration headers:
23224$config_headers
23225
John Criswellc764fbc2003-09-06 15:17:13 +000023226Configuration commands:
23227$config_commands
23228
John Criswell7a73b802003-06-30 21:59:07 +000023229Report bugs to <bug-autoconf@gnu.org>."
23230_ACEOF
23231
23232cat >>$CONFIG_STATUS <<_ACEOF
23233ac_cs_version="\\
23234[LLVM] config.status [1.0]
John Criswell0c38eaf2003-09-10 15:17:25 +000023235configured by $0, generated by GNU Autoconf 2.57,
John Criswell7a73b802003-06-30 21:59:07 +000023236 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23237
23238Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
23239Free Software Foundation, Inc.
23240This config.status script is free software; the Free Software Foundation
23241gives unlimited permission to copy, distribute and modify it."
23242srcdir=$srcdir
23243INSTALL="$INSTALL"
23244_ACEOF
23245
23246cat >>$CONFIG_STATUS <<\_ACEOF
23247# If no file are specified by the user, then we need to provide default
23248# value. By we need to know if files were specified by the user.
23249ac_need_defaults=:
23250while test $# != 0
23251do
23252 case $1 in
23253 --*=*)
23254 ac_option=`expr "x$1" : 'x\([^=]*\)='`
23255 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000023256 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000023257 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000023258 -*)
23259 ac_option=$1
23260 ac_optarg=$2
23261 ac_shift=shift
23262 ;;
John Criswell7a73b802003-06-30 21:59:07 +000023263 *) # This is not an option, so the user has probably given explicit
23264 # arguments.
John Criswell0c38eaf2003-09-10 15:17:25 +000023265 ac_option=$1
John Criswell7a73b802003-06-30 21:59:07 +000023266 ac_need_defaults=false;;
23267 esac
23268
John Criswell0c38eaf2003-09-10 15:17:25 +000023269 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000023270 # Handling of the options.
23271_ACEOF
John Criswelld9cd1442003-09-09 20:52:17 +000023272cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023273 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23274 ac_cs_recheck=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000023275 --version | --vers* | -V )
23276 echo "$ac_cs_version"; exit 0 ;;
23277 --he | --h)
23278 # Conflict between --help and --header
23279 { { echo "$as_me:$LINENO: error: ambiguous option: $1
23280Try \`$0 --help' for more information." >&5
23281echo "$as_me: error: ambiguous option: $1
23282Try \`$0 --help' for more information." >&2;}
23283 { (exit 1); exit 1; }; };;
23284 --help | --hel | -h )
23285 echo "$ac_cs_usage"; exit 0 ;;
23286 --debug | --d* | -d )
23287 debug=: ;;
23288 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000023289 $ac_shift
23290 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000023291 ac_need_defaults=false;;
23292 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000023293 $ac_shift
23294 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000023295 ac_need_defaults=false;;
John Criswell0c38eaf2003-09-10 15:17:25 +000023296 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23297 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23298 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000023299
23300 # This is an error.
23301 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23302Try \`$0 --help' for more information." >&5
23303echo "$as_me: error: unrecognized option: $1
23304Try \`$0 --help' for more information." >&2;}
23305 { (exit 1); exit 1; }; } ;;
23306
23307 *) ac_config_targets="$ac_config_targets $1" ;;
23308
23309 esac
23310 shift
23311done
23312
John Criswell0c38eaf2003-09-10 15:17:25 +000023313ac_configure_extra_args=
23314
23315if $ac_cs_silent; then
23316 exec 6>/dev/null
23317 ac_configure_extra_args="$ac_configure_extra_args --silent"
23318fi
23319
23320_ACEOF
23321cat >>$CONFIG_STATUS <<_ACEOF
23322if \$ac_cs_recheck; then
23323 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23324 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23325fi
23326
John Criswell7a73b802003-06-30 21:59:07 +000023327_ACEOF
23328
John Criswellc764fbc2003-09-06 15:17:13 +000023329cat >>$CONFIG_STATUS <<_ACEOF
23330#
23331# INIT-COMMANDS section.
23332#
John Criswell7a73b802003-06-30 21:59:07 +000023333
John Criswellc764fbc2003-09-06 15:17:13 +000023334${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
23335${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common`
John Criswellc764fbc2003-09-06 15:17:13 +000023336${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023337${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023338${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile`
23339${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
John Criswellf424d742003-10-07 21:13:47 +000023340${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvm.py`
23341${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvmdb.py`
John Criswellc764fbc2003-09-06 15:17:13 +000023342${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile`
23343${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile.programs`
23344${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.Makefile`
23345${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.report`
23346${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.micro.report`
23347${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.report`
23348${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.example.Makefile`
23349${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.Makefile`
23350${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.buildrepo.Makefile`
23351${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.Makefile`
23352${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.report`
23353${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.Makefile`
23354${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.report`
23355${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.typesafe.Makefile`
23356${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.gnuplot`
23357${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.micro.Makefile`
23358${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/Makefile`
23359${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile`
John Criswell613758d2003-09-11 18:03:50 +000023360${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile.spec`
John Criswellc764fbc2003-09-06 15:17:13 +000023361${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile`
23362${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile.multisrc`
Misha Brukman811ce9f2003-11-12 22:16:51 +000023363${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in`
23364${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile`
23365${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in`
23366${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile`
23367${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in`
23368${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile`
23369${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in`
23370${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile`
23371${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in`
23372${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile`
23373${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in`
23374${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile`
23375${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in`
John Criswellc764fbc2003-09-06 15:17:13 +000023376${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile`
23377${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile.singlesrc`
John Criswellc764fbc2003-09-06 15:17:13 +000023378${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
Brian Gaekec45be042003-10-07 06:01:34 +000023379${srcdir}/autoconf/mkinstalldirs `dirname utils/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023380${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023381
23382_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000023383
23384
23385
23386cat >>$CONFIG_STATUS <<\_ACEOF
23387for ac_config_target in $ac_config_targets
23388do
23389 case "$ac_config_target" in
23390 # Handling of arguments.
23391 "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023392 "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
23393 "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023394 "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023395 "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023396 "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
23397 "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
John Criswellf424d742003-10-07 21:13:47 +000023398 "test/QMTest/llvm.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvm.py" ;;
23399 "test/QMTest/llvmdb.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvmdb.py" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023400 "test/Programs/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile" ;;
23401 "test/Programs/Makefile.programs" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile.programs" ;;
23402 "test/Programs/TEST.aa.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.Makefile" ;;
23403 "test/Programs/TEST.dsgraph.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.report" ;;
23404 "test/Programs/TEST.micro.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.micro.report" ;;
23405 "test/Programs/TEST.aa.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.report" ;;
23406 "test/Programs/TEST.example.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.example.Makefile" ;;
23407 "test/Programs/TEST.nightly.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.Makefile" ;;
23408 "test/Programs/TEST.buildrepo.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.buildrepo.Makefile" ;;
23409 "test/Programs/TEST.jit.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.Makefile" ;;
23410 "test/Programs/TEST.nightly.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.report" ;;
23411 "test/Programs/TEST.dsgraph.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.Makefile" ;;
23412 "test/Programs/TEST.jit.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.report" ;;
23413 "test/Programs/TEST.typesafe.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.typesafe.Makefile" ;;
23414 "test/Programs/TEST.dsgraph.gnuplot" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.gnuplot" ;;
23415 "test/Programs/TEST.micro.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.micro.Makefile" ;;
23416 "test/Programs/External/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/Makefile" ;;
23417 "test/Programs/External/SPEC/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile" ;;
John Criswell613758d2003-09-11 18:03:50 +000023418 "test/Programs/External/SPEC/Makefile.spec" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile.spec" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023419 "test/Programs/MultiSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile" ;;
23420 "test/Programs/MultiSource/Makefile.multisrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile.multisrc" ;;
Misha Brukman811ce9f2003-11-12 22:16:51 +000023421 "test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in" ;;
23422 "test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile" ;;
23423 "test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in" ;;
23424 "test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile" ;;
23425 "test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in" ;;
23426 "test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile" ;;
23427 "test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in" ;;
23428 "test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile" ;;
23429 "test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in" ;;
23430 "test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile" ;;
23431 "test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in" ;;
23432 "test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile" ;;
23433 "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 +000023434 "test/Programs/SingleSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile" ;;
23435 "test/Programs/SingleSource/Makefile.singlesrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile.singlesrc" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023436 "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
Brian Gaekec45be042003-10-07 06:01:34 +000023437 "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023438 "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
John Criswell7a73b802003-06-30 21:59:07 +000023439 "include/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/Config/config.h" ;;
23440 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23441echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23442 { (exit 1); exit 1; }; };;
23443 esac
23444done
23445
23446# If the user did not use the arguments to specify the items to instantiate,
23447# then the envvar interface is used. Set only those that are not.
23448# We use the long form for the default assignment because of an extremely
23449# bizarre bug on SunOS 4.1.3.
23450if $ac_need_defaults; then
23451 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23452 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000023453 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000023454fi
23455
John Criswell0c38eaf2003-09-10 15:17:25 +000023456# Have a temporary directory for convenience. Make it in the build tree
23457# simply because there is no reason to put it here, and in addition,
23458# creating and moving files from /tmp can sometimes cause problems.
John Criswell7a73b802003-06-30 21:59:07 +000023459# Create a temporary directory, and hook for its removal unless debugging.
23460$debug ||
23461{
23462 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23463 trap '{ (exit 1); exit 1; }' 1 2 13 15
23464}
23465
23466# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000023467
John Criswell7a73b802003-06-30 21:59:07 +000023468{
John Criswell0c38eaf2003-09-10 15:17:25 +000023469 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000023470 test -n "$tmp" && test -d "$tmp"
23471} ||
23472{
John Criswell0c38eaf2003-09-10 15:17:25 +000023473 tmp=./confstat$$-$RANDOM
John Criswell7a73b802003-06-30 21:59:07 +000023474 (umask 077 && mkdir $tmp)
23475} ||
23476{
John Criswell0c38eaf2003-09-10 15:17:25 +000023477 echo "$me: cannot create a temporary directory in ." >&2
John Criswell7a73b802003-06-30 21:59:07 +000023478 { (exit 1); exit 1; }
23479}
23480
23481_ACEOF
23482
23483cat >>$CONFIG_STATUS <<_ACEOF
23484
23485#
23486# CONFIG_FILES section.
23487#
23488
23489# No need to generate the scripts if there are no CONFIG_FILES.
23490# This happens for instance when ./config.status config.h
23491if test -n "\$CONFIG_FILES"; then
23492 # Protect against being on the right side of a sed subst in config.status.
23493 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23494 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23495s,@SHELL@,$SHELL,;t t
23496s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23497s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23498s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23499s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23500s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23501s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23502s,@exec_prefix@,$exec_prefix,;t t
23503s,@prefix@,$prefix,;t t
23504s,@program_transform_name@,$program_transform_name,;t t
23505s,@bindir@,$bindir,;t t
23506s,@sbindir@,$sbindir,;t t
23507s,@libexecdir@,$libexecdir,;t t
23508s,@datadir@,$datadir,;t t
23509s,@sysconfdir@,$sysconfdir,;t t
23510s,@sharedstatedir@,$sharedstatedir,;t t
23511s,@localstatedir@,$localstatedir,;t t
23512s,@libdir@,$libdir,;t t
23513s,@includedir@,$includedir,;t t
23514s,@oldincludedir@,$oldincludedir,;t t
23515s,@infodir@,$infodir,;t t
23516s,@mandir@,$mandir,;t t
23517s,@build_alias@,$build_alias,;t t
23518s,@host_alias@,$host_alias,;t t
23519s,@target_alias@,$target_alias,;t t
23520s,@DEFS@,$DEFS,;t t
23521s,@ECHO_C@,$ECHO_C,;t t
23522s,@ECHO_N@,$ECHO_N,;t t
23523s,@ECHO_T@,$ECHO_T,;t t
23524s,@LIBS@,$LIBS,;t t
John Criswell12399a12003-09-30 15:55:44 +000023525s,@subdirs@,$subdirs,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023526s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23527s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23528s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23529s,@build@,$build,;t t
23530s,@build_cpu@,$build_cpu,;t t
23531s,@build_vendor@,$build_vendor,;t t
23532s,@build_os@,$build_os,;t t
23533s,@host@,$host,;t t
23534s,@host_cpu@,$host_cpu,;t t
23535s,@host_vendor@,$host_vendor,;t t
23536s,@host_os@,$host_os,;t t
23537s,@target@,$target,;t t
23538s,@target_cpu@,$target_cpu,;t t
23539s,@target_vendor@,$target_vendor,;t t
23540s,@target_os@,$target_os,;t t
23541s,@OS@,$OS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023542s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
John Criswell76595452003-07-01 22:07:39 +000023543s,@ARCH@,$ARCH,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023544s,@CXX@,$CXX,;t t
23545s,@CXXFLAGS@,$CXXFLAGS,;t t
23546s,@LDFLAGS@,$LDFLAGS,;t t
23547s,@CPPFLAGS@,$CPPFLAGS,;t t
23548s,@ac_ct_CXX@,$ac_ct_CXX,;t t
23549s,@EXEEXT@,$EXEEXT,;t t
23550s,@OBJEXT@,$OBJEXT,;t t
23551s,@CC@,$CC,;t t
23552s,@CFLAGS@,$CFLAGS,;t t
23553s,@ac_ct_CC@,$ac_ct_CC,;t t
23554s,@CPP@,$CPP,;t t
23555s,@ifGNUmake@,$ifGNUmake,;t t
23556s,@LEX@,$LEX,;t t
23557s,@LEXLIB@,$LEXLIB,;t t
23558s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
23559s,@YACC@,$YACC,;t t
John Criswell47fdd832003-07-14 16:52:07 +000023560s,@EGREP@,$EGREP,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023561s,@LN_S@,$LN_S,;t t
23562s,@ECHO@,$ECHO,;t t
John Criswell47fdd832003-07-14 16:52:07 +000023563s,@AR@,$AR,;t t
23564s,@ac_ct_AR@,$ac_ct_AR,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023565s,@RANLIB@,$RANLIB,;t t
23566s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23567s,@STRIP@,$STRIP,;t t
23568s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
John Criswell47fdd832003-07-14 16:52:07 +000023569s,@CXXCPP@,$CXXCPP,;t t
23570s,@F77@,$F77,;t t
23571s,@FFLAGS@,$FFLAGS,;t t
23572s,@ac_ct_F77@,$ac_ct_F77,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023573s,@LIBTOOL@,$LIBTOOL,;t t
John Criswellde00db22003-08-25 16:49:54 +000023574s,@RPWD@,$RPWD,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023575s,@SED@,$SED,;t t
23576s,@RM@,$RM,;t t
23577s,@MKDIR@,$MKDIR,;t t
23578s,@DATE@,$DATE,;t t
23579s,@MV@,$MV,;t t
23580s,@DOT@,$DOT,;t t
23581s,@ETAGS@,$ETAGS,;t t
John Criswellde00db22003-08-25 16:49:54 +000023582s,@PYTHON@,$PYTHON,;t t
23583s,@QMTEST@,$QMTEST,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023584s,@ALLOCA@,$ALLOCA,;t t
23585s,@LIBOBJS@,$LIBOBJS,;t t
23586s,@MMAP_FILE@,$MMAP_FILE,;t t
23587s,@ENABLE_PURIFY@,$ENABLE_PURIFY,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023588s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
John Criswell55126592003-10-07 21:57:39 +000023589s,@SPEC_ROOT@,$SPEC_ROOT,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023590s,@USE_SPEC@,$USE_SPEC,;t t
23591s,@UPB@,$UPB,;t t
John Criswellf02dbf02003-07-22 20:07:49 +000023592s,@DISABLE_LLC_DIFFS@,$DISABLE_LLC_DIFFS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023593s,@JIT@,$JIT,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023594s,@BCR@,$BCR,;t t
23595s,@PAPIDIR@,$PAPIDIR,;t t
John Criswellce2141f2003-10-02 19:02:30 +000023596s,@PURIFY@,$PURIFY,;t t
John Criswell0c38eaf2003-09-10 15:17:25 +000023597s,@LTLIBOBJS@,$LTLIBOBJS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023598CEOF
23599
23600_ACEOF
23601
23602 cat >>$CONFIG_STATUS <<\_ACEOF
23603 # Split the substitutions into bite-sized pieces for seds with
23604 # small command number limits, like on Digital OSF/1 and HP-UX.
23605 ac_max_sed_lines=48
23606 ac_sed_frag=1 # Number of current file.
23607 ac_beg=1 # First line for current file.
23608 ac_end=$ac_max_sed_lines # Line after last line for current file.
23609 ac_more_lines=:
23610 ac_sed_cmds=
23611 while $ac_more_lines; do
23612 if test $ac_beg -gt 1; then
23613 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23614 else
23615 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23616 fi
23617 if test ! -s $tmp/subs.frag; then
23618 ac_more_lines=false
23619 else
23620 # The purpose of the label and of the branching condition is to
23621 # speed up the sed processing (if there are no `@' at all, there
23622 # is no need to browse any of the substitutions).
23623 # These are the two extra sed commands mentioned above.
23624 (echo ':t
23625 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
23626 if test -z "$ac_sed_cmds"; then
23627 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
23628 else
23629 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23630 fi
23631 ac_sed_frag=`expr $ac_sed_frag + 1`
23632 ac_beg=$ac_end
23633 ac_end=`expr $ac_end + $ac_max_sed_lines`
23634 fi
23635 done
23636 if test -z "$ac_sed_cmds"; then
23637 ac_sed_cmds=cat
23638 fi
23639fi # test -n "$CONFIG_FILES"
23640
23641_ACEOF
23642cat >>$CONFIG_STATUS <<\_ACEOF
23643for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
23644 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23645 case $ac_file in
23646 - | *:- | *:-:* ) # input from stdin
23647 cat >$tmp/stdin
23648 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23649 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23650 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23651 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23652 * ) ac_file_in=$ac_file.in ;;
23653 esac
23654
23655 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23656 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23657$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23658 X"$ac_file" : 'X\(//\)[^/]' \| \
23659 X"$ac_file" : 'X\(//\)$' \| \
23660 X"$ac_file" : 'X\(/\)' \| \
23661 . : '\(.\)' 2>/dev/null ||
23662echo X"$ac_file" |
23663 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23664 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23665 /^X\(\/\/\)$/{ s//\1/; q; }
23666 /^X\(\/\).*/{ s//\1/; q; }
23667 s/.*/./; q'`
John Criswell0c38eaf2003-09-10 15:17:25 +000023668 { if $as_mkdir_p; then
23669 mkdir -p "$ac_dir"
23670 else
23671 as_dir="$ac_dir"
23672 as_dirs=
23673 while test ! -d "$as_dir"; do
23674 as_dirs="$as_dir $as_dirs"
23675 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23676$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23677 X"$as_dir" : 'X\(//\)[^/]' \| \
23678 X"$as_dir" : 'X\(//\)$' \| \
23679 X"$as_dir" : 'X\(/\)' \| \
23680 . : '\(.\)' 2>/dev/null ||
23681echo X"$as_dir" |
23682 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23683 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23684 /^X\(\/\/\)$/{ s//\1/; q; }
23685 /^X\(\/\).*/{ s//\1/; q; }
23686 s/.*/./; q'`
23687 done
23688 test ! -n "$as_dirs" || mkdir $as_dirs
23689 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23690echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23691 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000023692
23693 ac_builddir=.
23694
23695if test "$ac_dir" != .; then
23696 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23697 # A "../" for each directory in $ac_dir_suffix.
23698 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23699else
23700 ac_dir_suffix= ac_top_builddir=
23701fi
23702
23703case $srcdir in
23704 .) # No --srcdir option. We are building in place.
23705 ac_srcdir=.
23706 if test -z "$ac_top_builddir"; then
23707 ac_top_srcdir=.
23708 else
23709 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23710 fi ;;
23711 [\\/]* | ?:[\\/]* ) # Absolute path.
23712 ac_srcdir=$srcdir$ac_dir_suffix;
23713 ac_top_srcdir=$srcdir ;;
23714 *) # Relative path.
23715 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23716 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23717esac
23718# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
23719# absolute.
23720ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
John Criswell0c38eaf2003-09-10 15:17:25 +000023721ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
John Criswell7a73b802003-06-30 21:59:07 +000023722ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
23723ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
23724
23725
23726 case $INSTALL in
23727 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23728 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
23729 esac
23730
23731 if test x"$ac_file" != x-; then
23732 { echo "$as_me:$LINENO: creating $ac_file" >&5
23733echo "$as_me: creating $ac_file" >&6;}
23734 rm -f "$ac_file"
23735 fi
23736 # Let's still pretend it is `configure' which instantiates (i.e., don't
23737 # use $as_me), people would be surprised to read:
23738 # /* config.h. Generated by config.status. */
23739 if test x"$ac_file" = x-; then
23740 configure_input=
23741 else
23742 configure_input="$ac_file. "
23743 fi
23744 configure_input=$configure_input"Generated from `echo $ac_file_in |
23745 sed 's,.*/,,'` by configure."
23746
23747 # First look for the input files in the build tree, otherwise in the
23748 # src tree.
23749 ac_file_inputs=`IFS=:
23750 for f in $ac_file_in; do
23751 case $f in
23752 -) echo $tmp/stdin ;;
23753 [\\/$]*)
23754 # Absolute (can't be DOS-style, as IFS=:)
23755 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23756echo "$as_me: error: cannot find input file: $f" >&2;}
23757 { (exit 1); exit 1; }; }
23758 echo $f;;
23759 *) # Relative
23760 if test -f "$f"; then
23761 # Build tree
23762 echo $f
23763 elif test -f "$srcdir/$f"; then
23764 # Source tree
23765 echo $srcdir/$f
23766 else
23767 # /dev/null tree
23768 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23769echo "$as_me: error: cannot find input file: $f" >&2;}
23770 { (exit 1); exit 1; }; }
23771 fi;;
23772 esac
23773 done` || { (exit 1); exit 1; }
23774_ACEOF
23775cat >>$CONFIG_STATUS <<_ACEOF
23776 sed "$ac_vpsub
23777$extrasub
23778_ACEOF
23779cat >>$CONFIG_STATUS <<\_ACEOF
23780:t
23781/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23782s,@configure_input@,$configure_input,;t t
23783s,@srcdir@,$ac_srcdir,;t t
23784s,@abs_srcdir@,$ac_abs_srcdir,;t t
23785s,@top_srcdir@,$ac_top_srcdir,;t t
23786s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
23787s,@builddir@,$ac_builddir,;t t
23788s,@abs_builddir@,$ac_abs_builddir,;t t
23789s,@top_builddir@,$ac_top_builddir,;t t
23790s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
23791s,@INSTALL@,$ac_INSTALL,;t t
23792" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23793 rm -f $tmp/stdin
23794 if test x"$ac_file" != x-; then
23795 mv $tmp/out $ac_file
23796 else
23797 cat $tmp/out
23798 rm -f $tmp/out
23799 fi
23800
23801done
23802_ACEOF
23803cat >>$CONFIG_STATUS <<\_ACEOF
23804
23805#
23806# CONFIG_HEADER section.
23807#
23808
23809# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
23810# NAME is the cpp macro being defined and VALUE is the value it is being given.
23811#
23812# ac_d sets the value in "#define NAME VALUE" lines.
23813ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
23814ac_dB='[ ].*$,\1#\2'
23815ac_dC=' '
23816ac_dD=',;t'
23817# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23818ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23819ac_uB='$,\1#\2define\3'
23820ac_uC=' '
23821ac_uD=',;t'
23822
23823for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
23824 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23825 case $ac_file in
23826 - | *:- | *:-:* ) # input from stdin
23827 cat >$tmp/stdin
23828 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23829 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23830 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23831 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23832 * ) ac_file_in=$ac_file.in ;;
23833 esac
23834
23835 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
23836echo "$as_me: creating $ac_file" >&6;}
23837
23838 # First look for the input files in the build tree, otherwise in the
23839 # src tree.
23840 ac_file_inputs=`IFS=:
23841 for f in $ac_file_in; do
23842 case $f in
23843 -) echo $tmp/stdin ;;
23844 [\\/$]*)
23845 # Absolute (can't be DOS-style, as IFS=:)
23846 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23847echo "$as_me: error: cannot find input file: $f" >&2;}
23848 { (exit 1); exit 1; }; }
23849 echo $f;;
23850 *) # Relative
23851 if test -f "$f"; then
23852 # Build tree
23853 echo $f
23854 elif test -f "$srcdir/$f"; then
23855 # Source tree
23856 echo $srcdir/$f
23857 else
23858 # /dev/null tree
23859 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23860echo "$as_me: error: cannot find input file: $f" >&2;}
23861 { (exit 1); exit 1; }; }
23862 fi;;
23863 esac
23864 done` || { (exit 1); exit 1; }
23865 # Remove the trailing spaces.
23866 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
23867
23868_ACEOF
23869
23870# Transform confdefs.h into two sed scripts, `conftest.defines' and
23871# `conftest.undefs', that substitutes the proper values into
23872# config.h.in to produce config.h. The first handles `#define'
23873# templates, and the second `#undef' templates.
23874# And first: Protect against being on the right side of a sed subst in
23875# config.status. Protect against being in an unquoted here document
23876# in config.status.
23877rm -f conftest.defines conftest.undefs
23878# Using a here document instead of a string reduces the quoting nightmare.
23879# Putting comments in sed scripts is not portable.
23880#
23881# `end' is used to avoid that the second main sed command (meant for
23882# 0-ary CPP macros) applies to n-ary macro definitions.
23883# See the Autoconf documentation for `clear'.
23884cat >confdef2sed.sed <<\_ACEOF
23885s/[\\&,]/\\&/g
23886s,[\\$`],\\&,g
23887t clear
23888: clear
23889s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
23890t end
23891s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
23892: end
23893_ACEOF
23894# If some macros were called several times there might be several times
23895# the same #defines, which is useless. Nevertheless, we may not want to
23896# sort them, since we want the *last* AC-DEFINE to be honored.
23897uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
23898sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
23899rm -f confdef2sed.sed
23900
23901# This sed command replaces #undef with comments. This is necessary, for
23902# example, in the case of _POSIX_SOURCE, which is predefined and required
23903# on some systems where configure will not decide to define it.
23904cat >>conftest.undefs <<\_ACEOF
23905s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
23906_ACEOF
23907
23908# Break up conftest.defines because some shells have a limit on the size
23909# of here documents, and old seds have small limits too (100 cmds).
23910echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
John Criswell0c38eaf2003-09-10 15:17:25 +000023911echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000023912echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
23913echo ' :' >>$CONFIG_STATUS
23914rm -f conftest.tail
23915while grep . conftest.defines >/dev/null
23916do
23917 # Write a limited-size here document to $tmp/defines.sed.
23918 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
23919 # Speed up: don't consider the non `#define' lines.
23920 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
23921 # Work around the forget-to-reset-the-flag bug.
23922 echo 't clr' >>$CONFIG_STATUS
23923 echo ': clr' >>$CONFIG_STATUS
23924 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
23925 echo 'CEOF
23926 sed -f $tmp/defines.sed $tmp/in >$tmp/out
23927 rm -f $tmp/in
23928 mv $tmp/out $tmp/in
23929' >>$CONFIG_STATUS
23930 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
23931 rm -f conftest.defines
23932 mv conftest.tail conftest.defines
23933done
23934rm -f conftest.defines
John Criswell0c38eaf2003-09-10 15:17:25 +000023935echo ' fi # grep' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000023936echo >>$CONFIG_STATUS
23937
23938# Break up conftest.undefs because some shells have a limit on the size
23939# of here documents, and old seds have small limits too (100 cmds).
23940echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
23941rm -f conftest.tail
23942while grep . conftest.undefs >/dev/null
23943do
23944 # Write a limited-size here document to $tmp/undefs.sed.
23945 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
23946 # Speed up: don't consider the non `#undef'
23947 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
23948 # Work around the forget-to-reset-the-flag bug.
23949 echo 't clr' >>$CONFIG_STATUS
23950 echo ': clr' >>$CONFIG_STATUS
23951 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
23952 echo 'CEOF
23953 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
23954 rm -f $tmp/in
23955 mv $tmp/out $tmp/in
23956' >>$CONFIG_STATUS
23957 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
23958 rm -f conftest.undefs
23959 mv conftest.tail conftest.undefs
23960done
23961rm -f conftest.undefs
23962
23963cat >>$CONFIG_STATUS <<\_ACEOF
23964 # Let's still pretend it is `configure' which instantiates (i.e., don't
23965 # use $as_me), people would be surprised to read:
23966 # /* config.h. Generated by config.status. */
23967 if test x"$ac_file" = x-; then
23968 echo "/* Generated by configure. */" >$tmp/config.h
23969 else
23970 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
23971 fi
23972 cat $tmp/in >>$tmp/config.h
23973 rm -f $tmp/in
23974 if test x"$ac_file" != x-; then
John Criswell0c38eaf2003-09-10 15:17:25 +000023975 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000023976 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23977echo "$as_me: $ac_file is unchanged" >&6;}
23978 else
23979 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23980$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23981 X"$ac_file" : 'X\(//\)[^/]' \| \
23982 X"$ac_file" : 'X\(//\)$' \| \
23983 X"$ac_file" : 'X\(/\)' \| \
23984 . : '\(.\)' 2>/dev/null ||
23985echo X"$ac_file" |
23986 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23987 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23988 /^X\(\/\/\)$/{ s//\1/; q; }
23989 /^X\(\/\).*/{ s//\1/; q; }
23990 s/.*/./; q'`
John Criswell0c38eaf2003-09-10 15:17:25 +000023991 { if $as_mkdir_p; then
23992 mkdir -p "$ac_dir"
23993 else
23994 as_dir="$ac_dir"
23995 as_dirs=
23996 while test ! -d "$as_dir"; do
23997 as_dirs="$as_dir $as_dirs"
23998 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23999$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24000 X"$as_dir" : 'X\(//\)[^/]' \| \
24001 X"$as_dir" : 'X\(//\)$' \| \
24002 X"$as_dir" : 'X\(/\)' \| \
24003 . : '\(.\)' 2>/dev/null ||
24004echo X"$as_dir" |
24005 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24006 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24007 /^X\(\/\/\)$/{ s//\1/; q; }
24008 /^X\(\/\).*/{ s//\1/; q; }
24009 s/.*/./; q'`
24010 done
24011 test ! -n "$as_dirs" || mkdir $as_dirs
24012 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24013echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24014 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000024015
24016 rm -f $ac_file
24017 mv $tmp/config.h $ac_file
24018 fi
24019 else
24020 cat $tmp/config.h
24021 rm -f $tmp/config.h
24022 fi
24023done
24024_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000024025cat >>$CONFIG_STATUS <<\_ACEOF
24026
24027#
24028# CONFIG_COMMANDS section.
24029#
24030for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
24031 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
24032 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
24033 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
24034$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24035 X"$ac_dest" : 'X\(//\)[^/]' \| \
24036 X"$ac_dest" : 'X\(//\)$' \| \
24037 X"$ac_dest" : 'X\(/\)' \| \
24038 . : '\(.\)' 2>/dev/null ||
24039echo X"$ac_dest" |
24040 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24041 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24042 /^X\(\/\/\)$/{ s//\1/; q; }
24043 /^X\(\/\).*/{ s//\1/; q; }
24044 s/.*/./; q'`
24045 ac_builddir=.
24046
24047if test "$ac_dir" != .; then
24048 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24049 # A "../" for each directory in $ac_dir_suffix.
24050 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24051else
24052 ac_dir_suffix= ac_top_builddir=
24053fi
24054
24055case $srcdir in
24056 .) # No --srcdir option. We are building in place.
24057 ac_srcdir=.
24058 if test -z "$ac_top_builddir"; then
24059 ac_top_srcdir=.
24060 else
24061 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24062 fi ;;
24063 [\\/]* | ?:[\\/]* ) # Absolute path.
24064 ac_srcdir=$srcdir$ac_dir_suffix;
24065 ac_top_srcdir=$srcdir ;;
24066 *) # Relative path.
24067 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24068 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24069esac
24070# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
24071# absolute.
24072ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
John Criswell0c38eaf2003-09-10 15:17:25 +000024073ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
John Criswellc764fbc2003-09-06 15:17:13 +000024074ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
24075ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
24076
24077
24078 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
24079echo "$as_me: executing $ac_dest commands" >&6;}
24080 case $ac_dest in
24081 Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
24082 Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024083 lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024084 runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024085 test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
24086 test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
John Criswellf424d742003-10-07 21:13:47 +000024087 test/QMTest/llvm.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvm.py test/QMTest/llvm.py ;;
24088 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 +000024089 test/Programs/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile test/Programs/Makefile ;;
24090 test/Programs/Makefile.programs ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile.programs test/Programs/Makefile.programs ;;
24091 test/Programs/TEST.aa.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.Makefile test/Programs/TEST.aa.Makefile ;;
24092 test/Programs/TEST.dsgraph.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.report test/Programs/TEST.dsgraph.report ;;
24093 test/Programs/TEST.micro.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.micro.report test/Programs/TEST.micro.report ;;
24094 test/Programs/TEST.aa.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.report test/Programs/TEST.aa.report ;;
24095 test/Programs/TEST.example.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.example.Makefile test/Programs/TEST.example.Makefile ;;
24096 test/Programs/TEST.nightly.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.Makefile test/Programs/TEST.nightly.Makefile ;;
24097 test/Programs/TEST.buildrepo.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.buildrepo.Makefile test/Programs/TEST.buildrepo.Makefile ;;
24098 test/Programs/TEST.jit.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.Makefile test/Programs/TEST.jit.Makefile ;;
24099 test/Programs/TEST.nightly.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.report test/Programs/TEST.nightly.report ;;
24100 test/Programs/TEST.dsgraph.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.Makefile test/Programs/TEST.dsgraph.Makefile ;;
24101 test/Programs/TEST.jit.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.report test/Programs/TEST.jit.report ;;
24102 test/Programs/TEST.typesafe.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.typesafe.Makefile test/Programs/TEST.typesafe.Makefile ;;
24103 test/Programs/TEST.dsgraph.gnuplot ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.gnuplot test/Programs/TEST.dsgraph.gnuplot ;;
24104 test/Programs/TEST.micro.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.micro.Makefile test/Programs/TEST.micro.Makefile ;;
24105 test/Programs/External/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/Makefile test/Programs/External/Makefile ;;
24106 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 +000024107 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 +000024108 test/Programs/MultiSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile test/Programs/MultiSource/Makefile ;;
24109 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 +000024110 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 ;;
24111 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 ;;
24112 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 ;;
24113 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 ;;
24114 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 ;;
24115 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 ;;
24116 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 ;;
24117 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 ;;
24118 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 ;;
24119 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 ;;
24120 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 ;;
24121 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 ;;
24122 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 +000024123 test/Programs/SingleSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile test/Programs/SingleSource/Makefile ;;
24124 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 +000024125 tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
Brian Gaekec45be042003-10-07 06:01:34 +000024126 utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024127 projects/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024128 esac
24129done
24130_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000024131
24132cat >>$CONFIG_STATUS <<\_ACEOF
24133
24134{ (exit 0); exit 0; }
24135_ACEOF
24136chmod +x $CONFIG_STATUS
24137ac_clean_files=$ac_clean_files_save
24138
24139
24140# configure is writing to config.log, and then calls config.status.
24141# config.status does its own redirection, appending to config.log.
24142# Unfortunately, on DOS this fails, as config.log is still kept open
24143# by configure, so config.status won't be able to write to it; its
24144# output is simply discarded. So we exec the FD to /dev/null,
24145# effectively closing config.log, so it can be properly (re)opened and
24146# appended to by config.status. When coming back to configure, we
24147# need to make the FD available again.
24148if test "$no_create" != yes; then
24149 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000024150 ac_config_status_args=
24151 test "$silent" = yes &&
24152 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000024153 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000024154 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000024155 exec 5>>config.log
24156 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24157 # would make configure fail if this is the last instruction.
24158 $ac_cs_success || { (exit 1); exit 1; }
24159fi
24160
John Criswell12399a12003-09-30 15:55:44 +000024161#
24162# CONFIG_SUBDIRS section.
24163#
24164if test "$no_recursion" != yes; then
24165
24166 # Remove --cache-file and --srcdir arguments so they do not pile up.
24167 ac_sub_configure_args=
24168 ac_prev=
24169 for ac_arg in $ac_configure_args; do
24170 if test -n "$ac_prev"; then
24171 ac_prev=
24172 continue
24173 fi
24174 case $ac_arg in
24175 -cache-file | --cache-file | --cache-fil | --cache-fi \
24176 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
24177 ac_prev=cache_file ;;
24178 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
24179 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
24180 | --c=*)
24181 ;;
24182 --config-cache | -C)
24183 ;;
24184 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
24185 ac_prev=srcdir ;;
24186 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
24187 ;;
24188 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
24189 ac_prev=prefix ;;
24190 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
24191 ;;
24192 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
24193 esac
24194 done
24195
24196 # Always prepend --prefix to ensure using the same prefix
24197 # in subdir configurations.
24198 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
24199
24200 ac_popdir=`pwd`
24201 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
24202
24203 # Do not complain, so a configure script can configure whichever
24204 # parts of a large source tree are present.
24205 test -d $srcdir/$ac_dir || continue
24206
24207 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
24208echo "$as_me: configuring in $ac_dir" >&6;}
24209 { if $as_mkdir_p; then
24210 mkdir -p "$ac_dir"
24211 else
24212 as_dir="$ac_dir"
24213 as_dirs=
24214 while test ! -d "$as_dir"; do
24215 as_dirs="$as_dir $as_dirs"
24216 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24217$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24218 X"$as_dir" : 'X\(//\)[^/]' \| \
24219 X"$as_dir" : 'X\(//\)$' \| \
24220 X"$as_dir" : 'X\(/\)' \| \
24221 . : '\(.\)' 2>/dev/null ||
24222echo X"$as_dir" |
24223 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24224 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24225 /^X\(\/\/\)$/{ s//\1/; q; }
24226 /^X\(\/\).*/{ s//\1/; q; }
24227 s/.*/./; q'`
24228 done
24229 test ! -n "$as_dirs" || mkdir $as_dirs
24230 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24231echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24232 { (exit 1); exit 1; }; }; }
24233
24234 ac_builddir=.
24235
24236if test "$ac_dir" != .; then
24237 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24238 # A "../" for each directory in $ac_dir_suffix.
24239 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24240else
24241 ac_dir_suffix= ac_top_builddir=
24242fi
24243
24244case $srcdir in
24245 .) # No --srcdir option. We are building in place.
24246 ac_srcdir=.
24247 if test -z "$ac_top_builddir"; then
24248 ac_top_srcdir=.
24249 else
24250 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24251 fi ;;
24252 [\\/]* | ?:[\\/]* ) # Absolute path.
24253 ac_srcdir=$srcdir$ac_dir_suffix;
24254 ac_top_srcdir=$srcdir ;;
24255 *) # Relative path.
24256 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24257 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24258esac
24259# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
24260# absolute.
24261ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
24262ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
24263ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
24264ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
24265
24266
24267 cd $ac_dir
24268
24269 # Check for guested configure; otherwise get Cygnus style configure.
24270 if test -f $ac_srcdir/configure.gnu; then
24271 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
24272 elif test -f $ac_srcdir/configure; then
24273 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
24274 elif test -f $ac_srcdir/configure.in; then
24275 ac_sub_configure=$ac_configure
24276 else
24277 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
24278echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
24279 ac_sub_configure=
24280 fi
24281
24282 # The recursion is here.
24283 if test -n "$ac_sub_configure"; then
24284 # Make the cache file name correct relative to the subdirectory.
24285 case $cache_file in
24286 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
24287 *) # Relative path.
24288 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
24289 esac
24290
24291 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
24292echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
24293 # The eval makes quoting arguments work.
24294 eval $ac_sub_configure $ac_sub_configure_args \
24295 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
24296 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
24297echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
24298 { (exit 1); exit 1; }; }
24299 fi
24300
24301 cd $ac_popdir
24302 done
24303fi
24304
Brian Gaekef3b24102003-11-16 18:38:14 +000024305
24306if test $llvmgccwarn = yes
24307then
24308 { echo "$as_me:$LINENO: WARNING: ***** llvm C/C++ front end was not found, or does not" >&5
24309echo "$as_me: WARNING: ***** llvm C/C++ front end was not found, or does not" >&2;}
24310 { echo "$as_me:$LINENO: WARNING: ***** appear to be working." >&5
24311echo "$as_me: WARNING: ***** appear to be working." >&2;}
24312 { echo "$as_me:$LINENO: WARNING: ***** " >&5
24313echo "$as_me: WARNING: ***** " >&2;}
24314 { echo "$as_me:$LINENO: WARNING: ***** Please check configure's --with-llvmgccdir option." >&5
24315echo "$as_me: WARNING: ***** Please check configure's --with-llvmgccdir option." >&2;}
24316 { echo "$as_me:$LINENO: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&5
24317echo "$as_me: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&2;}
24318 { echo "$as_me:$LINENO: WARNING: ***** but you should be able to build the llvm tools." >&5
24319echo "$as_me: WARNING: ***** but you should be able to build the llvm tools." >&2;}
24320fi