blob: 7e4291290f0cc145e9a0e0c7d9ea879224b2f848 [file] [log] [blame]
John Criswell7a73b802003-06-30 21:59:07 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
John Criswell392aaa32003-07-22 19:18:09 +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 Criswell392aaa32003-07-22 19:18:09 +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 Criswell392aaa32003-07-22 19:18:09 +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
429# Factoring default headers for most tests.
430ac_includes_default="\
431#include <stdio.h>
432#if HAVE_SYS_TYPES_H
433# include <sys/types.h>
434#endif
435#if HAVE_SYS_STAT_H
436# include <sys/stat.h>
437#endif
438#if STDC_HEADERS
439# include <stdlib.h>
440# include <stddef.h>
441#else
442# if HAVE_STDLIB_H
443# include <stdlib.h>
444# endif
445#endif
446#if HAVE_STRING_H
447# if !STDC_HEADERS && HAVE_MEMORY_H
448# include <memory.h>
449# endif
450# include <string.h>
451#endif
452#if HAVE_STRINGS_H
453# include <strings.h>
454#endif
455#if HAVE_INTTYPES_H
456# include <inttypes.h>
457#else
458# if HAVE_STDINT_H
459# include <stdint.h>
460# endif
461#endif
462#if HAVE_UNISTD_H
463# include <unistd.h>
464#endif"
465
466ac_unique_file=""Makefile.config.in""
John Criswellc764fbc2003-09-06 15:17:13 +0000467ac_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 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 PURIFY PYTHON QMTEST ALLOCA LIBOBJS MMAP_FILE ENABLE_PURIFY ENABLE_OPTIMIZED USE_SPEC UPB DISABLE_LLC_DIFFS JIT SPEC_ROOT BCR PAPIDIR LTLIBOBJS'
John Criswell392aaa32003-07-22 19:18:09 +0000468ac_subst_files=''
John Criswell7a73b802003-06-30 21:59:07 +0000469
470# Initialize some variables set by options.
471ac_init_help=
472ac_init_version=false
473# The variables have the same names as the options, with
474# dashes changed to underlines.
475cache_file=/dev/null
476exec_prefix=NONE
477no_create=
478no_recursion=
479prefix=NONE
480program_prefix=NONE
481program_suffix=NONE
482program_transform_name=s,x,x,
483silent=
484site=
485srcdir=
486verbose=
487x_includes=NONE
488x_libraries=NONE
489
490# Installation directory options.
491# These are left unexpanded so users can "make install exec_prefix=/foo"
492# and all the variables that are supposed to be based on exec_prefix
493# by default will actually change.
494# Use braces instead of parens because sh, perl, etc. also accept them.
495bindir='${exec_prefix}/bin'
496sbindir='${exec_prefix}/sbin'
497libexecdir='${exec_prefix}/libexec'
498datadir='${prefix}/share'
499sysconfdir='${prefix}/etc'
500sharedstatedir='${prefix}/com'
501localstatedir='${prefix}/var'
502libdir='${exec_prefix}/lib'
503includedir='${prefix}/include'
504oldincludedir='/usr/include'
505infodir='${prefix}/info'
506mandir='${prefix}/man'
507
508ac_prev=
509for ac_option
510do
511 # If the previous option needs an argument, assign it.
512 if test -n "$ac_prev"; then
513 eval "$ac_prev=\$ac_option"
514 ac_prev=
515 continue
516 fi
517
518 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
519
520 # Accept the important Cygnus configure options, so we can diagnose typos.
521
522 case $ac_option in
523
524 -bindir | --bindir | --bindi | --bind | --bin | --bi)
525 ac_prev=bindir ;;
526 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
527 bindir=$ac_optarg ;;
528
529 -build | --build | --buil | --bui | --bu)
530 ac_prev=build_alias ;;
531 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
532 build_alias=$ac_optarg ;;
533
534 -cache-file | --cache-file | --cache-fil | --cache-fi \
535 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
536 ac_prev=cache_file ;;
537 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
538 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
539 cache_file=$ac_optarg ;;
540
541 --config-cache | -C)
542 cache_file=config.cache ;;
543
544 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
545 ac_prev=datadir ;;
546 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
547 | --da=*)
548 datadir=$ac_optarg ;;
549
550 -disable-* | --disable-*)
551 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
552 # Reject names that are not valid shell variable names.
553 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
554 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
555 { (exit 1); exit 1; }; }
556 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
557 eval "enable_$ac_feature=no" ;;
558
559 -enable-* | --enable-*)
560 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
561 # Reject names that are not valid shell variable names.
562 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
563 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
564 { (exit 1); exit 1; }; }
565 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
566 case $ac_option in
567 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
568 *) ac_optarg=yes ;;
569 esac
570 eval "enable_$ac_feature='$ac_optarg'" ;;
571
572 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
573 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
574 | --exec | --exe | --ex)
575 ac_prev=exec_prefix ;;
576 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
577 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
578 | --exec=* | --exe=* | --ex=*)
579 exec_prefix=$ac_optarg ;;
580
581 -gas | --gas | --ga | --g)
582 # Obsolete; use --with-gas.
583 with_gas=yes ;;
584
585 -help | --help | --hel | --he | -h)
586 ac_init_help=long ;;
587 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
588 ac_init_help=recursive ;;
589 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
590 ac_init_help=short ;;
591
592 -host | --host | --hos | --ho)
593 ac_prev=host_alias ;;
594 -host=* | --host=* | --hos=* | --ho=*)
595 host_alias=$ac_optarg ;;
596
597 -includedir | --includedir | --includedi | --included | --include \
598 | --includ | --inclu | --incl | --inc)
599 ac_prev=includedir ;;
600 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
601 | --includ=* | --inclu=* | --incl=* | --inc=*)
602 includedir=$ac_optarg ;;
603
604 -infodir | --infodir | --infodi | --infod | --info | --inf)
605 ac_prev=infodir ;;
606 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
607 infodir=$ac_optarg ;;
608
609 -libdir | --libdir | --libdi | --libd)
610 ac_prev=libdir ;;
611 -libdir=* | --libdir=* | --libdi=* | --libd=*)
612 libdir=$ac_optarg ;;
613
614 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
615 | --libexe | --libex | --libe)
616 ac_prev=libexecdir ;;
617 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
618 | --libexe=* | --libex=* | --libe=*)
619 libexecdir=$ac_optarg ;;
620
621 -localstatedir | --localstatedir | --localstatedi | --localstated \
622 | --localstate | --localstat | --localsta | --localst \
623 | --locals | --local | --loca | --loc | --lo)
624 ac_prev=localstatedir ;;
625 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
626 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
627 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
628 localstatedir=$ac_optarg ;;
629
630 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
631 ac_prev=mandir ;;
632 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
633 mandir=$ac_optarg ;;
634
635 -nfp | --nfp | --nf)
636 # Obsolete; use --without-fp.
637 with_fp=no ;;
638
639 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
640 | --no-cr | --no-c | -n)
641 no_create=yes ;;
642
643 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
644 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
645 no_recursion=yes ;;
646
647 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
648 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
649 | --oldin | --oldi | --old | --ol | --o)
650 ac_prev=oldincludedir ;;
651 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
652 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
653 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
654 oldincludedir=$ac_optarg ;;
655
656 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
657 ac_prev=prefix ;;
658 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
659 prefix=$ac_optarg ;;
660
661 -program-prefix | --program-prefix | --program-prefi | --program-pref \
662 | --program-pre | --program-pr | --program-p)
663 ac_prev=program_prefix ;;
664 -program-prefix=* | --program-prefix=* | --program-prefi=* \
665 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
666 program_prefix=$ac_optarg ;;
667
668 -program-suffix | --program-suffix | --program-suffi | --program-suff \
669 | --program-suf | --program-su | --program-s)
670 ac_prev=program_suffix ;;
671 -program-suffix=* | --program-suffix=* | --program-suffi=* \
672 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
673 program_suffix=$ac_optarg ;;
674
675 -program-transform-name | --program-transform-name \
676 | --program-transform-nam | --program-transform-na \
677 | --program-transform-n | --program-transform- \
678 | --program-transform | --program-transfor \
679 | --program-transfo | --program-transf \
680 | --program-trans | --program-tran \
681 | --progr-tra | --program-tr | --program-t)
682 ac_prev=program_transform_name ;;
683 -program-transform-name=* | --program-transform-name=* \
684 | --program-transform-nam=* | --program-transform-na=* \
685 | --program-transform-n=* | --program-transform-=* \
686 | --program-transform=* | --program-transfor=* \
687 | --program-transfo=* | --program-transf=* \
688 | --program-trans=* | --program-tran=* \
689 | --progr-tra=* | --program-tr=* | --program-t=*)
690 program_transform_name=$ac_optarg ;;
691
692 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
693 | -silent | --silent | --silen | --sile | --sil)
694 silent=yes ;;
695
696 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
697 ac_prev=sbindir ;;
698 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
699 | --sbi=* | --sb=*)
700 sbindir=$ac_optarg ;;
701
702 -sharedstatedir | --sharedstatedir | --sharedstatedi \
703 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
704 | --sharedst | --shareds | --shared | --share | --shar \
705 | --sha | --sh)
706 ac_prev=sharedstatedir ;;
707 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
708 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
709 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
710 | --sha=* | --sh=*)
711 sharedstatedir=$ac_optarg ;;
712
713 -site | --site | --sit)
714 ac_prev=site ;;
715 -site=* | --site=* | --sit=*)
716 site=$ac_optarg ;;
717
718 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
719 ac_prev=srcdir ;;
720 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
721 srcdir=$ac_optarg ;;
722
723 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
724 | --syscon | --sysco | --sysc | --sys | --sy)
725 ac_prev=sysconfdir ;;
726 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
727 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
728 sysconfdir=$ac_optarg ;;
729
730 -target | --target | --targe | --targ | --tar | --ta | --t)
731 ac_prev=target_alias ;;
732 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
733 target_alias=$ac_optarg ;;
734
735 -v | -verbose | --verbose | --verbos | --verbo | --verb)
736 verbose=yes ;;
737
738 -version | --version | --versio | --versi | --vers | -V)
739 ac_init_version=: ;;
740
741 -with-* | --with-*)
742 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
743 # Reject names that are not valid shell variable names.
744 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
745 { echo "$as_me: error: invalid package name: $ac_package" >&2
746 { (exit 1); exit 1; }; }
747 ac_package=`echo $ac_package| sed 's/-/_/g'`
748 case $ac_option in
749 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
750 *) ac_optarg=yes ;;
751 esac
752 eval "with_$ac_package='$ac_optarg'" ;;
753
754 -without-* | --without-*)
755 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
756 # Reject names that are not valid shell variable names.
757 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
758 { echo "$as_me: error: invalid package name: $ac_package" >&2
759 { (exit 1); exit 1; }; }
760 ac_package=`echo $ac_package | sed 's/-/_/g'`
761 eval "with_$ac_package=no" ;;
762
763 --x)
764 # Obsolete; use --with-x.
765 with_x=yes ;;
766
767 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
768 | --x-incl | --x-inc | --x-in | --x-i)
769 ac_prev=x_includes ;;
770 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
771 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
772 x_includes=$ac_optarg ;;
773
774 -x-libraries | --x-libraries | --x-librarie | --x-librari \
775 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
776 ac_prev=x_libraries ;;
777 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
778 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
779 x_libraries=$ac_optarg ;;
780
781 -*) { echo "$as_me: error: unrecognized option: $ac_option
782Try \`$0 --help' for more information." >&2
783 { (exit 1); exit 1; }; }
784 ;;
785
786 *=*)
787 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
788 # Reject names that are not valid shell variable names.
789 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
790 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
791 { (exit 1); exit 1; }; }
792 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
793 eval "$ac_envvar='$ac_optarg'"
794 export $ac_envvar ;;
795
796 *)
797 # FIXME: should be removed in autoconf 3.0.
798 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
799 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
800 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
801 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
802 ;;
803
804 esac
805done
806
807if test -n "$ac_prev"; then
808 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
809 { echo "$as_me: error: missing argument to $ac_option" >&2
810 { (exit 1); exit 1; }; }
811fi
812
813# Be sure to have absolute paths.
814for ac_var in exec_prefix prefix
815do
816 eval ac_val=$`echo $ac_var`
817 case $ac_val in
818 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
819 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
820 { (exit 1); exit 1; }; };;
821 esac
822done
823
824# Be sure to have absolute paths.
825for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
826 localstatedir libdir includedir oldincludedir infodir mandir
827do
828 eval ac_val=$`echo $ac_var`
829 case $ac_val in
830 [\\/$]* | ?:[\\/]* ) ;;
831 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
832 { (exit 1); exit 1; }; };;
833 esac
834done
835
836# There might be people who depend on the old broken behavior: `$host'
837# used to hold the argument of --host etc.
838# FIXME: To remove some day.
839build=$build_alias
840host=$host_alias
841target=$target_alias
842
843# FIXME: To remove some day.
844if test "x$host_alias" != x; then
845 if test "x$build_alias" = x; then
846 cross_compiling=maybe
847 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
848 If a cross compiler is detected then cross compile mode will be used." >&2
849 elif test "x$build_alias" != "x$host_alias"; then
850 cross_compiling=yes
851 fi
852fi
853
854ac_tool_prefix=
855test -n "$host_alias" && ac_tool_prefix=$host_alias-
856
857test "$silent" = yes && exec 6>/dev/null
858
859
860# Find the source files, if location was not specified.
861if test -z "$srcdir"; then
862 ac_srcdir_defaulted=yes
863 # Try the directory containing this script, then its parent.
864 ac_confdir=`(dirname "$0") 2>/dev/null ||
865$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
866 X"$0" : 'X\(//\)[^/]' \| \
867 X"$0" : 'X\(//\)$' \| \
868 X"$0" : 'X\(/\)' \| \
869 . : '\(.\)' 2>/dev/null ||
870echo X"$0" |
871 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
872 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
873 /^X\(\/\/\)$/{ s//\1/; q; }
874 /^X\(\/\).*/{ s//\1/; q; }
875 s/.*/./; q'`
876 srcdir=$ac_confdir
877 if test ! -r $srcdir/$ac_unique_file; then
878 srcdir=..
879 fi
880else
881 ac_srcdir_defaulted=no
882fi
883if test ! -r $srcdir/$ac_unique_file; then
884 if test "$ac_srcdir_defaulted" = yes; then
885 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
886 { (exit 1); exit 1; }; }
887 else
888 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
889 { (exit 1); exit 1; }; }
890 fi
891fi
John Criswell392aaa32003-07-22 19:18:09 +0000892(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
893 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
894 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +0000895srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
896ac_env_build_alias_set=${build_alias+set}
897ac_env_build_alias_value=$build_alias
898ac_cv_env_build_alias_set=${build_alias+set}
899ac_cv_env_build_alias_value=$build_alias
900ac_env_host_alias_set=${host_alias+set}
901ac_env_host_alias_value=$host_alias
902ac_cv_env_host_alias_set=${host_alias+set}
903ac_cv_env_host_alias_value=$host_alias
904ac_env_target_alias_set=${target_alias+set}
905ac_env_target_alias_value=$target_alias
906ac_cv_env_target_alias_set=${target_alias+set}
907ac_cv_env_target_alias_value=$target_alias
908ac_env_CXX_set=${CXX+set}
909ac_env_CXX_value=$CXX
910ac_cv_env_CXX_set=${CXX+set}
911ac_cv_env_CXX_value=$CXX
912ac_env_CXXFLAGS_set=${CXXFLAGS+set}
913ac_env_CXXFLAGS_value=$CXXFLAGS
914ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
915ac_cv_env_CXXFLAGS_value=$CXXFLAGS
916ac_env_LDFLAGS_set=${LDFLAGS+set}
917ac_env_LDFLAGS_value=$LDFLAGS
918ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
919ac_cv_env_LDFLAGS_value=$LDFLAGS
920ac_env_CPPFLAGS_set=${CPPFLAGS+set}
921ac_env_CPPFLAGS_value=$CPPFLAGS
922ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
923ac_cv_env_CPPFLAGS_value=$CPPFLAGS
924ac_env_CC_set=${CC+set}
925ac_env_CC_value=$CC
926ac_cv_env_CC_set=${CC+set}
927ac_cv_env_CC_value=$CC
928ac_env_CFLAGS_set=${CFLAGS+set}
929ac_env_CFLAGS_value=$CFLAGS
930ac_cv_env_CFLAGS_set=${CFLAGS+set}
931ac_cv_env_CFLAGS_value=$CFLAGS
932ac_env_CPP_set=${CPP+set}
933ac_env_CPP_value=$CPP
934ac_cv_env_CPP_set=${CPP+set}
935ac_cv_env_CPP_value=$CPP
John Criswell47fdd832003-07-14 16:52:07 +0000936ac_env_CXXCPP_set=${CXXCPP+set}
937ac_env_CXXCPP_value=$CXXCPP
938ac_cv_env_CXXCPP_set=${CXXCPP+set}
939ac_cv_env_CXXCPP_value=$CXXCPP
940ac_env_F77_set=${F77+set}
941ac_env_F77_value=$F77
942ac_cv_env_F77_set=${F77+set}
943ac_cv_env_F77_value=$F77
944ac_env_FFLAGS_set=${FFLAGS+set}
945ac_env_FFLAGS_value=$FFLAGS
946ac_cv_env_FFLAGS_set=${FFLAGS+set}
947ac_cv_env_FFLAGS_value=$FFLAGS
John Criswell7a73b802003-06-30 21:59:07 +0000948
949#
950# Report the --help message.
951#
952if test "$ac_init_help" = "long"; then
953 # Omit some internal or obsolete options to make the list less imposing.
954 # This message is too long to be a string in the A/UX 3.1 sh.
955 cat <<_ACEOF
956\`configure' configures [LLVM] [1.0] to adapt to many kinds of systems.
957
958Usage: $0 [OPTION]... [VAR=VALUE]...
959
960To assign environment variables (e.g., CC, CFLAGS...), specify them as
961VAR=VALUE. See below for descriptions of some of the useful variables.
962
963Defaults for the options are specified in brackets.
964
965Configuration:
966 -h, --help display this help and exit
967 --help=short display options specific to this package
968 --help=recursive display the short help of all the included packages
969 -V, --version display version information and exit
970 -q, --quiet, --silent do not print \`checking...' messages
971 --cache-file=FILE cache test results in FILE [disabled]
972 -C, --config-cache alias for \`--cache-file=config.cache'
973 -n, --no-create do not create output files
974 --srcdir=DIR find the sources in DIR [configure dir or \`..']
975
976_ACEOF
977
978 cat <<_ACEOF
979Installation directories:
980 --prefix=PREFIX install architecture-independent files in PREFIX
981 [$ac_default_prefix]
982 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
983 [PREFIX]
984
985By default, \`make install' will install all the files in
986\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
987an installation prefix other than \`$ac_default_prefix' using \`--prefix',
988for instance \`--prefix=\$HOME'.
989
990For better control, use the options below.
991
992Fine tuning of the installation directories:
993 --bindir=DIR user executables [EPREFIX/bin]
994 --sbindir=DIR system admin executables [EPREFIX/sbin]
995 --libexecdir=DIR program executables [EPREFIX/libexec]
996 --datadir=DIR read-only architecture-independent data [PREFIX/share]
997 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
998 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
999 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1000 --libdir=DIR object code libraries [EPREFIX/lib]
1001 --includedir=DIR C header files [PREFIX/include]
1002 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1003 --infodir=DIR info documentation [PREFIX/info]
1004 --mandir=DIR man documentation [PREFIX/man]
1005_ACEOF
1006
1007 cat <<\_ACEOF
1008
1009System types:
1010 --build=BUILD configure for building on BUILD [guessed]
1011 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1012 --target=TARGET configure for building compilers for TARGET [HOST]
1013_ACEOF
1014fi
1015
1016if test -n "$ac_init_help"; then
1017 case $ac_init_help in
1018 short | recursive ) echo "Configuration of [LLVM] [1.0]:";;
1019 esac
1020 cat <<\_ACEOF
1021
1022Optional Features:
1023 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1024 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
John Criswell47fdd832003-07-14 16:52:07 +00001025 --enable-shared[=PKGS]
1026 build shared libraries [default=yes]
1027 --enable-static[=PKGS]
1028 build static libraries [default=yes]
1029 --enable-fast-install[=PKGS]
1030 optimize for fast installation [default=yes]
John Criswell7a73b802003-06-30 21:59:07 +00001031 --disable-libtool-lock avoid locking (might break parallel builds)
1032 --enable-purify Compile with purify (default is NO)
John Criswell7a73b802003-06-30 21:59:07 +00001033 --enable-optimized Compile with optimizations enabled (default is NO)
1034 --enable-spec Compile SPEC benchmarks (default is NO)
1035 --enable-precompiled_bytecode
1036 Use pre-compiled bytecode (default is NO)
John Criswellf02dbf02003-07-22 20:07:49 +00001037 --enable-llc_diffs Enable LLC Diffs when testing (default is YES)
John Criswellc78022e2003-07-29 19:11:58 +00001038 --enable-jit Enable Just In Time Compiling (default is YES)
John Criswell7a73b802003-06-30 21:59:07 +00001039
1040Optional Packages:
1041 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1042 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
John Criswell47fdd832003-07-14 16:52:07 +00001043 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1044 --with-pic try to use only PIC/non-PIC objects [default=use
1045 both]
1046 --with-tags[=TAGS]
1047 include additional configurations [automatic]
John Criswell7a73b802003-06-30 21:59:07 +00001048 --with-spec Location of SPEC benchmarks
1049 --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 Criswell392aaa32003-07-22 19:18:09 +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 Criswell392aaa32003-07-22 19:18:09 +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 Criswell392aaa32003-07-22 19:18:09 +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 Criswell392aaa32003-07-22 19:18:09 +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 Criswell392aaa32003-07-22 19:18:09 +00001204# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001205ac_configure_args=
John Criswell392aaa32003-07-22 19:18:09 +00001206ac_configure_args0=
1207ac_configure_args1=
John Criswell7a73b802003-06-30 21:59:07 +00001208ac_sep=
John Criswell392aaa32003-07-22 19:18:09 +00001209ac_must_keep_next=false
1210for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001211do
John Criswell392aaa32003-07-22 19:18:09 +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 Criswell392aaa32003-07-22 19:18:09 +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 Criswell392aaa32003-07-22 19:18:09 +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 Criswell392aaa32003-07-22 19:18:09 +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 Criswell392aaa32003-07-22 19:18:09 +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 Criswell7a73b802003-06-30 21:59:07 +00001485
1486ac_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
1512 ac_config_headers="$ac_config_headers include/Config/config.h"
1513
John Criswellc764fbc2003-09-06 15:17:13 +00001514 ac_config_commands="$ac_config_commands Makefile"
1515
1516
1517 ac_config_commands="$ac_config_commands Makefile.common"
1518
1519
1520 ac_config_commands="$ac_config_commands Makefile.rules"
1521
1522
1523 ac_config_commands="$ac_config_commands lib/Makefile"
1524
1525
1526 ac_config_commands="$ac_config_commands lib/Analysis/Makefile"
1527
1528
1529 ac_config_commands="$ac_config_commands lib/Analysis/DataStructure/Makefile"
1530
1531
1532 ac_config_commands="$ac_config_commands lib/Analysis/IPA/Makefile"
1533
1534
1535 ac_config_commands="$ac_config_commands lib/Analysis/LiveVar/Makefile"
1536
1537
1538 ac_config_commands="$ac_config_commands lib/AsmParser/Makefile"
1539
1540
1541 ac_config_commands="$ac_config_commands lib/Bytecode/Makefile"
1542
1543
1544 ac_config_commands="$ac_config_commands lib/Bytecode/Reader/Makefile"
1545
1546
1547 ac_config_commands="$ac_config_commands lib/Bytecode/Writer/Makefile"
1548
1549
1550 ac_config_commands="$ac_config_commands lib/CWriter/Makefile"
1551
1552
1553 ac_config_commands="$ac_config_commands lib/CodeGen/Makefile"
1554
1555
1556 ac_config_commands="$ac_config_commands lib/CodeGen/InstrSched/Makefile"
1557
1558
1559 ac_config_commands="$ac_config_commands lib/CodeGen/InstrSelection/Makefile"
1560
1561
1562 ac_config_commands="$ac_config_commands lib/CodeGen/ModuloScheduling/Makefile"
1563
1564
1565 ac_config_commands="$ac_config_commands lib/CodeGen/PostOpts/Makefile"
1566
1567
1568 ac_config_commands="$ac_config_commands lib/CodeGen/PreOpts/Makefile"
1569
1570
1571 ac_config_commands="$ac_config_commands lib/CodeGen/RegAlloc/Makefile"
1572
1573
1574 ac_config_commands="$ac_config_commands lib/CodeGen/SelectionDAG/Makefile"
1575
1576
1577 ac_config_commands="$ac_config_commands lib/ExecutionEngine/Makefile"
1578
1579
1580 ac_config_commands="$ac_config_commands lib/ExecutionEngine/Interpreter/Makefile"
1581
1582
1583 ac_config_commands="$ac_config_commands lib/ExecutionEngine/JIT/Makefile"
1584
1585
1586 ac_config_commands="$ac_config_commands lib/Support/Makefile"
1587
1588
1589 ac_config_commands="$ac_config_commands lib/Target/Makefile"
1590
1591
1592 ac_config_commands="$ac_config_commands lib/Target/Sparc/Makefile"
1593
1594
1595 ac_config_commands="$ac_config_commands lib/Target/X86/Makefile"
1596
1597
1598 ac_config_commands="$ac_config_commands lib/Transforms/Makefile"
1599
1600
1601 ac_config_commands="$ac_config_commands lib/Transforms/Hello/Makefile"
1602
1603
1604 ac_config_commands="$ac_config_commands lib/Transforms/IPO/Makefile"
1605
1606
1607 ac_config_commands="$ac_config_commands lib/Transforms/Instrumentation/Makefile"
1608
1609
1610 ac_config_commands="$ac_config_commands lib/Transforms/Instrumentation/ProfilePaths/Makefile"
1611
1612
1613 ac_config_commands="$ac_config_commands lib/Transforms/Scalar/Makefile"
1614
1615
1616 ac_config_commands="$ac_config_commands lib/Transforms/Utils/Makefile"
1617
1618
1619 ac_config_commands="$ac_config_commands lib/VMCore/Makefile"
1620
1621
1622 ac_config_commands="$ac_config_commands runtime/Makefile"
1623
1624
1625 ac_config_commands="$ac_config_commands runtime/GCCLibraries/Makefile"
1626
1627
1628 ac_config_commands="$ac_config_commands runtime/GCCLibraries/crtend/Makefile"
1629
1630
1631 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libc/Makefile"
1632
1633
1634 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libg/Makefile"
1635
1636
1637 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libgcc/Makefile"
1638
1639
1640 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libm/Makefile"
1641
1642
1643 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libmalloc/Makefile"
1644
1645
1646 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libucb/Makefile"
1647
1648
1649 ac_config_commands="$ac_config_commands runtime/libdummy/Makefile"
1650
1651
1652 ac_config_commands="$ac_config_commands runtime/libtrace/Makefile"
1653
1654
1655 ac_config_commands="$ac_config_commands test/Makefile"
1656
1657
1658 ac_config_commands="$ac_config_commands test/Makefile.tests"
1659
1660
1661 ac_config_commands="$ac_config_commands test/Programs/Makefile"
1662
1663
1664 ac_config_commands="$ac_config_commands test/Programs/Makefile.programs"
1665
1666
1667 ac_config_commands="$ac_config_commands test/Programs/TEST.aa.Makefile"
1668
1669
1670 ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.report"
1671
1672
1673 ac_config_commands="$ac_config_commands test/Programs/TEST.micro.report"
1674
1675
1676 ac_config_commands="$ac_config_commands test/Programs/TEST.aa.report"
1677
1678
1679 ac_config_commands="$ac_config_commands test/Programs/TEST.example.Makefile"
1680
1681
1682 ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.Makefile"
1683
1684
1685 ac_config_commands="$ac_config_commands test/Programs/TEST.buildrepo.Makefile"
1686
1687
1688 ac_config_commands="$ac_config_commands test/Programs/TEST.jit.Makefile"
1689
1690
1691 ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.report"
1692
1693
1694 ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.Makefile"
1695
1696
1697 ac_config_commands="$ac_config_commands test/Programs/TEST.jit.report"
1698
1699
1700 ac_config_commands="$ac_config_commands test/Programs/TEST.typesafe.Makefile"
1701
1702
1703 ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.gnuplot"
1704
1705
1706 ac_config_commands="$ac_config_commands test/Programs/TEST.micro.Makefile"
1707
1708
1709 ac_config_commands="$ac_config_commands test/Programs/External/Makefile"
1710
1711
1712 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile"
1713
1714
1715 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/Makefile"
1716
1717
1718 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/179.art/Makefile"
1719
1720
1721 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/183.equake/Makefile"
1722
1723
1724 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/188.ammp/Makefile"
1725
1726
1727 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/Makefile"
1728
1729
1730 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/164.gzip/Makefile"
1731
1732
1733 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/175.vpr/Makefile"
1734
1735
1736 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/176.gcc/Makefile"
1737
1738
1739 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/181.mcf/Makefile"
1740
1741
1742 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/186.crafty/Makefile"
1743
1744
1745 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/197.parser/Makefile"
1746
1747
1748 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/254.gap/Makefile"
1749
1750
1751 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/255.vortex/Makefile"
1752
1753
1754 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile"
1755
1756
1757 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/300.twolf/Makefile"
1758
1759
1760 ac_config_commands="$ac_config_commands test/Programs/LLVMSource/Makefile"
1761
1762
1763 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile"
1764
1765
1766 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile.multisrc"
1767
1768
1769 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Burg/Makefile"
1770
1771
1772 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Fhourstones/Makefile"
1773
1774
1775 ac_config_commands="$ac_config_commands test/Programs/MultiSource/McCat/Makefile"
1776
1777
1778 ac_config_commands="$ac_config_commands test/Programs/MultiSource/McCat/01-qbsort/Makefile"
1779
1780
1781 ac_config_commands="$ac_config_commands test/Programs/MultiSource/McCat/03-testtrie/Makefile"
1782
1783
1784 ac_config_commands="$ac_config_commands test/Programs/MultiSource/McCat/04-bisect/Makefile"
1785
1786
1787 ac_config_commands="$ac_config_commands test/Programs/MultiSource/McCat/05-eks/Makefile"
1788
1789
1790 ac_config_commands="$ac_config_commands test/Programs/MultiSource/McCat/08-main/Makefile"
1791
1792
1793 ac_config_commands="$ac_config_commands test/Programs/MultiSource/McCat/09-vor/Makefile"
1794
1795
1796 ac_config_commands="$ac_config_commands test/Programs/MultiSource/McCat/12-IOtest/Makefile"
1797
1798
1799 ac_config_commands="$ac_config_commands test/Programs/MultiSource/McCat/15-trie/Makefile"
1800
1801
1802 ac_config_commands="$ac_config_commands test/Programs/MultiSource/McCat/17-bintr/Makefile"
1803
1804
1805 ac_config_commands="$ac_config_commands test/Programs/MultiSource/McCat/18-imp/Makefile"
1806
1807
1808 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Olden/Makefile"
1809
1810
1811 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Olden/bh/Makefile"
1812
1813
1814 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Olden/bisort/Makefile"
1815
1816
1817 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Olden/em3d/Makefile"
1818
1819
1820 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Olden/health/Makefile"
1821
1822
1823 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Olden/mst/Makefile"
1824
1825
1826 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Olden/perimeter/Makefile"
1827
1828
1829 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Olden/power/Makefile"
1830
1831
1832 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Olden/treeadd/Makefile"
1833
1834
1835 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Olden/tsp/Makefile"
1836
1837
1838 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Olden/voronoi/Makefile"
1839
1840
1841 ac_config_commands="$ac_config_commands test/Programs/MultiSource/OptimizerEval/Makefile"
1842
1843
1844 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Ptrdist/Makefile"
1845
1846
1847 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Ptrdist/anagram/Makefile"
1848
1849
1850 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Ptrdist/bc/Makefile"
1851
1852
1853 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Ptrdist/ft/Makefile"
1854
1855
1856 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Ptrdist/ks/Makefile"
1857
1858
1859 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Ptrdist/yacr2/Makefile"
1860
1861
1862 ac_config_commands="$ac_config_commands test/Programs/MultiSource/aha/Makefile"
1863
1864
1865 ac_config_commands="$ac_config_commands test/Programs/MultiSource/llubenchmark/Makefile"
1866
1867
1868 ac_config_commands="$ac_config_commands test/Programs/MultiSource/sgefa/Makefile"
1869
1870
1871 ac_config_commands="$ac_config_commands test/Programs/MultiSource/sim/Makefile"
1872
1873
1874 ac_config_commands="$ac_config_commands test/Programs/NoSource/Makefile"
1875
1876
1877 ac_config_commands="$ac_config_commands test/Programs/NoSource/Flex/Makefile"
1878
1879
1880 ac_config_commands="$ac_config_commands test/Programs/NoSource/Larn/Makefile"
1881
1882
1883 ac_config_commands="$ac_config_commands test/Programs/NoSource/Moria-5.5.2/Makefile"
1884
1885
1886 ac_config_commands="$ac_config_commands test/Programs/NoSource/Povray31/Makefile"
1887
1888
1889 ac_config_commands="$ac_config_commands test/Programs/NoSource/SPEC/Makefile"
1890
1891
1892 ac_config_commands="$ac_config_commands test/Programs/NoSource/SPEC/CINT2000/Makefile"
1893
1894
1895 ac_config_commands="$ac_config_commands test/Programs/NoSource/SPEC/CINT2000/164.gzip/Makefile"
1896
1897
1898 ac_config_commands="$ac_config_commands test/Programs/NoSource/SPEC/CINT2000/181.mcf/Makefile"
1899
1900
1901 ac_config_commands="$ac_config_commands test/Programs/NoSource/SPEC/CINT2000/197.parser/Makefile"
1902
1903
1904 ac_config_commands="$ac_config_commands test/Programs/NoSource/SPEC/CINT2000/254.gap/Makefile"
1905
1906
1907 ac_config_commands="$ac_config_commands test/Programs/NoSource/SPEC/CINT2000/255.vortex/Makefile"
1908
1909
1910 ac_config_commands="$ac_config_commands test/Programs/NoSource/SPEC/CINT2000/256.bzip2/Makefile"
1911
1912
1913 ac_config_commands="$ac_config_commands test/Programs/NoSource/SPEC/CINT2000/300.twolf/Makefile"
1914
1915
1916 ac_config_commands="$ac_config_commands test/Programs/NoSource/m4/Makefile"
1917
1918
1919 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile"
1920
1921
1922 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile.singlesrc"
1923
1924
1925 ac_config_commands="$ac_config_commands test/Programs/SingleSource/CustomChecked/Makefile"
1926
1927
1928 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Shootout/Makefile"
1929
1930
1931 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Stanford/Makefile"
1932
1933
1934 ac_config_commands="$ac_config_commands test/Programs/SingleSource/UnitTests/Makefile"
1935
1936
1937 ac_config_commands="$ac_config_commands tools/Makefile"
1938
1939
1940 ac_config_commands="$ac_config_commands tools/analyze/Makefile"
1941
1942
1943 ac_config_commands="$ac_config_commands tools/as/Makefile"
1944
1945
1946 ac_config_commands="$ac_config_commands tools/bugpoint/Makefile"
1947
1948
1949 ac_config_commands="$ac_config_commands tools/dis/Makefile"
1950
1951
1952 ac_config_commands="$ac_config_commands tools/extract/Makefile"
1953
1954
1955 ac_config_commands="$ac_config_commands tools/gccas/Makefile"
1956
1957
1958 ac_config_commands="$ac_config_commands tools/gccld/Makefile"
1959
1960
1961 ac_config_commands="$ac_config_commands tools/link/Makefile"
1962
1963
1964 ac_config_commands="$ac_config_commands tools/llc/Makefile"
1965
1966
1967 ac_config_commands="$ac_config_commands tools/lli/Makefile"
1968
1969
1970 ac_config_commands="$ac_config_commands tools/opt/Makefile"
1971
1972
1973 ac_config_commands="$ac_config_commands tools/llee/Makefile"
1974
1975
1976 ac_config_commands="$ac_config_commands tools/llvm-as/Makefile"
1977
1978
1979 ac_config_commands="$ac_config_commands tools/llvm-dis/Makefile"
1980
1981
1982 ac_config_commands="$ac_config_commands utils/Makefile"
1983
1984
1985 ac_config_commands="$ac_config_commands utils/Burg/Makefile"
1986
1987
1988 ac_config_commands="$ac_config_commands utils/Burg/Doc/Makefile"
1989
1990
1991 ac_config_commands="$ac_config_commands utils/TableGen/Makefile"
1992
1993
1994 ac_config_commands="$ac_config_commands www/docs/Makefile"
1995
1996
1997 ac_config_commands="$ac_config_commands projects/Makefile"
1998
1999
2000 ac_config_commands="$ac_config_commands projects/sample/Makefile"
2001
2002
2003 ac_config_commands="$ac_config_commands projects/sample/Makefile.common"
2004
2005
2006 ac_config_commands="$ac_config_commands projects/sample/Makefile.config"
2007
2008
2009 ac_config_commands="$ac_config_commands projects/sample/lib/Makefile"
2010
2011
2012 ac_config_commands="$ac_config_commands projects/sample/lib/sample/Makefile"
2013
2014
2015 ac_config_commands="$ac_config_commands projects/sample/tools/Makefile"
2016
2017
2018 ac_config_commands="$ac_config_commands projects/sample/tools/sample/Makefile"
2019
2020
2021 ac_config_commands="$ac_config_commands projects/ModuleMaker/Makefile"
2022
2023
2024 ac_config_commands="$ac_config_commands projects/ModuleMaker/Makefile.common"
2025
2026
2027 ac_config_commands="$ac_config_commands projects/ModuleMaker/tools/Makefile"
2028
2029
2030 ac_config_commands="$ac_config_commands projects/ModuleMaker/tools/ModuleMaker/Makefile"
2031
2032
John Criswell392aaa32003-07-22 19:18:09 +00002033
2034
John Criswell7a73b802003-06-30 21:59:07 +00002035# Find a good install program. We prefer a C program (faster),
2036# so one script is as good as another. But avoid the broken or
2037# incompatible versions:
2038# SysV /etc/install, /usr/sbin/install
2039# SunOS /usr/etc/install
2040# IRIX /sbin/install
2041# AIX /bin/install
2042# AmigaOS /C/install, which installs bootblocks on floppy discs
2043# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2044# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2045# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2046# ./install, which can be erroneously created by make from ./install.sh.
2047echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2048echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2049if test -z "$INSTALL"; then
2050if test "${ac_cv_path_install+set}" = set; then
2051 echo $ECHO_N "(cached) $ECHO_C" >&6
2052else
2053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2054for as_dir in $PATH
2055do
2056 IFS=$as_save_IFS
2057 test -z "$as_dir" && as_dir=.
2058 # Account for people who put trailing slashes in PATH elements.
2059case $as_dir/ in
2060 ./ | .// | /cC/* | \
2061 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2062 /usr/ucb/* ) ;;
2063 *)
2064 # OSF1 and SCO ODT 3.0 have their own names for install.
2065 # Don't use installbsd from OSF since it installs stuff as root
2066 # by default.
2067 for ac_prog in ginstall scoinst install; do
2068 for ac_exec_ext in '' $ac_executable_extensions; do
2069 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2070 if test $ac_prog = install &&
2071 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2072 # AIX install. It has an incompatible calling convention.
2073 :
2074 elif test $ac_prog = install &&
2075 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2076 # program-specific install script used by HP pwplus--don't use.
2077 :
2078 else
2079 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2080 break 3
2081 fi
2082 fi
2083 done
2084 done
2085 ;;
2086esac
2087done
2088
2089
2090fi
2091 if test "${ac_cv_path_install+set}" = set; then
2092 INSTALL=$ac_cv_path_install
2093 else
2094 # As a last resort, use the slow shell script. We don't cache a
2095 # path for INSTALL within a source directory, because that will
2096 # break other packages using the cache if that directory is
2097 # removed, or if the path is relative.
2098 INSTALL=$ac_install_sh
2099 fi
2100fi
2101echo "$as_me:$LINENO: result: $INSTALL" >&5
2102echo "${ECHO_T}$INSTALL" >&6
2103
2104# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2105# It thinks the first close brace ends the variable substitution.
2106test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2107
2108test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2109
2110test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2111
2112
2113# Make sure we can run config.sub.
2114$ac_config_sub sun4 >/dev/null 2>&1 ||
2115 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2116echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2117 { (exit 1); exit 1; }; }
2118
2119echo "$as_me:$LINENO: checking build system type" >&5
2120echo $ECHO_N "checking build system type... $ECHO_C" >&6
2121if test "${ac_cv_build+set}" = set; then
2122 echo $ECHO_N "(cached) $ECHO_C" >&6
2123else
2124 ac_cv_build_alias=$build_alias
2125test -z "$ac_cv_build_alias" &&
2126 ac_cv_build_alias=`$ac_config_guess`
2127test -z "$ac_cv_build_alias" &&
2128 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2129echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2130 { (exit 1); exit 1; }; }
2131ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2132 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2133echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2134 { (exit 1); exit 1; }; }
2135
2136fi
2137echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2138echo "${ECHO_T}$ac_cv_build" >&6
2139build=$ac_cv_build
2140build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2141build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2142build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2143
2144
2145echo "$as_me:$LINENO: checking host system type" >&5
2146echo $ECHO_N "checking host system type... $ECHO_C" >&6
2147if test "${ac_cv_host+set}" = set; then
2148 echo $ECHO_N "(cached) $ECHO_C" >&6
2149else
2150 ac_cv_host_alias=$host_alias
2151test -z "$ac_cv_host_alias" &&
2152 ac_cv_host_alias=$ac_cv_build_alias
2153ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2154 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2155echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2156 { (exit 1); exit 1; }; }
2157
2158fi
2159echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2160echo "${ECHO_T}$ac_cv_host" >&6
2161host=$ac_cv_host
2162host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2163host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2164host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2165
2166
2167echo "$as_me:$LINENO: checking target system type" >&5
2168echo $ECHO_N "checking target system type... $ECHO_C" >&6
2169if test "${ac_cv_target+set}" = set; then
2170 echo $ECHO_N "(cached) $ECHO_C" >&6
2171else
2172 ac_cv_target_alias=$target_alias
2173test "x$ac_cv_target_alias" = "x" &&
2174 ac_cv_target_alias=$ac_cv_host_alias
2175ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
2176 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
2177echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
2178 { (exit 1); exit 1; }; }
2179
2180fi
2181echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2182echo "${ECHO_T}$ac_cv_target" >&6
2183target=$ac_cv_target
2184target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2185target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2186target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2187
2188
2189# The aliases save the names the user supplied, while $host etc.
2190# will get canonicalized.
2191test -n "$target_alias" &&
2192 test "$program_prefix$program_suffix$program_transform_name" = \
2193 NONENONEs,x,x, &&
2194 program_prefix=${target_alias}-
2195
2196case $build in
2197 *i*86*) OS=Linux
2198
John Criswellf02dbf02003-07-22 20:07:49 +00002199 LLVMGCCDIR=/home/vadve/lattner/local/x86/llvm-gcc/
John Criswell7a73b802003-06-30 21:59:07 +00002200
2201 ;;
2202
2203 *sparc*) OS=SunOS
2204
2205 LLVMGCCDIR=/home/vadve/lattner/local/sparc/llvm-gcc/
2206
2207 ;;
2208
2209 *) OS=Unknown
2210
2211 ;;
2212esac
2213
2214case $target in
2215 *sparc*solaris*) target=sparcv9-sun-solaris2.8
2216
2217 ;;
2218esac
2219
John Criswell76595452003-07-01 22:07:39 +00002220case $target in
2221 *i*86*) ARCH=x86
2222
2223 ;;
2224 *sparc*solaris*) ARCH=Sparc
2225
2226 ;;
2227esac
2228
John Criswell7a73b802003-06-30 21:59:07 +00002229
2230ac_ext=cc
2231ac_cpp='$CXXCPP $CPPFLAGS'
2232ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2233ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2234ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2235if test -n "$ac_tool_prefix"; then
2236 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2237 do
2238 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2239set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2240echo "$as_me:$LINENO: checking for $ac_word" >&5
2241echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2242if test "${ac_cv_prog_CXX+set}" = set; then
2243 echo $ECHO_N "(cached) $ECHO_C" >&6
2244else
2245 if test -n "$CXX"; then
2246 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2247else
2248as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2249for as_dir in $PATH
2250do
2251 IFS=$as_save_IFS
2252 test -z "$as_dir" && as_dir=.
2253 for ac_exec_ext in '' $ac_executable_extensions; do
2254 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2255 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2256 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2257 break 2
2258 fi
2259done
2260done
2261
2262fi
2263fi
2264CXX=$ac_cv_prog_CXX
2265if test -n "$CXX"; then
2266 echo "$as_me:$LINENO: result: $CXX" >&5
2267echo "${ECHO_T}$CXX" >&6
2268else
2269 echo "$as_me:$LINENO: result: no" >&5
2270echo "${ECHO_T}no" >&6
2271fi
2272
2273 test -n "$CXX" && break
2274 done
2275fi
2276if test -z "$CXX"; then
2277 ac_ct_CXX=$CXX
2278 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2279do
2280 # Extract the first word of "$ac_prog", so it can be a program name with args.
2281set dummy $ac_prog; ac_word=$2
2282echo "$as_me:$LINENO: checking for $ac_word" >&5
2283echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2284if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2285 echo $ECHO_N "(cached) $ECHO_C" >&6
2286else
2287 if test -n "$ac_ct_CXX"; then
2288 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2289else
2290as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2291for as_dir in $PATH
2292do
2293 IFS=$as_save_IFS
2294 test -z "$as_dir" && as_dir=.
2295 for ac_exec_ext in '' $ac_executable_extensions; do
2296 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2297 ac_cv_prog_ac_ct_CXX="$ac_prog"
2298 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2299 break 2
2300 fi
2301done
2302done
2303
2304fi
2305fi
2306ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2307if test -n "$ac_ct_CXX"; then
2308 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2309echo "${ECHO_T}$ac_ct_CXX" >&6
2310else
2311 echo "$as_me:$LINENO: result: no" >&5
2312echo "${ECHO_T}no" >&6
2313fi
2314
2315 test -n "$ac_ct_CXX" && break
2316done
2317test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2318
2319 CXX=$ac_ct_CXX
2320fi
2321
2322
2323# Provide some information about the compiler.
2324echo "$as_me:$LINENO:" \
2325 "checking for C++ compiler version" >&5
2326ac_compiler=`set X $ac_compile; echo $2`
2327{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2328 (eval $ac_compiler --version </dev/null >&5) 2>&5
2329 ac_status=$?
2330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2331 (exit $ac_status); }
2332{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2333 (eval $ac_compiler -v </dev/null >&5) 2>&5
2334 ac_status=$?
2335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2336 (exit $ac_status); }
2337{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2338 (eval $ac_compiler -V </dev/null >&5) 2>&5
2339 ac_status=$?
2340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2341 (exit $ac_status); }
2342
2343cat >conftest.$ac_ext <<_ACEOF
2344#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +00002345/* confdefs.h. */
2346_ACEOF
2347cat confdefs.h >>conftest.$ac_ext
2348cat >>conftest.$ac_ext <<_ACEOF
2349/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002350
John Criswell7a73b802003-06-30 21:59:07 +00002351int
2352main ()
2353{
2354
2355 ;
2356 return 0;
2357}
2358_ACEOF
2359ac_clean_files_save=$ac_clean_files
John Criswell392aaa32003-07-22 19:18:09 +00002360ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002361# Try to create an executable without -o first, disregard a.out.
2362# It will help us diagnose broken compilers, and finding out an intuition
2363# of exeext.
2364echo "$as_me:$LINENO: checking for C++ compiler default output" >&5
2365echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6
2366ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2367if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2368 (eval $ac_link_default) 2>&5
2369 ac_status=$?
2370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2371 (exit $ac_status); }; then
2372 # Find the output, starting from the most likely. This scheme is
2373# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2374# resort.
2375
2376# Be careful to initialize this variable, since it used to be cached.
2377# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2378ac_cv_exeext=
John Criswell392aaa32003-07-22 19:18:09 +00002379# b.out is created by i960 compilers.
2380for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2381do
2382 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002383 case $ac_file in
John Criswell392aaa32003-07-22 19:18:09 +00002384 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2385 ;;
2386 conftest.$ac_ext )
2387 # This is the source file.
2388 ;;
2389 [ab].out )
2390 # We found the default executable, but exeext='' is most
2391 # certainly right.
2392 break;;
2393 *.* )
2394 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2395 # FIXME: I believe we export ac_cv_exeext for Libtool,
2396 # but it would be cool to find out if it's true. Does anybody
2397 # maintain Libtool? --akim.
2398 export ac_cv_exeext
2399 break;;
2400 * )
2401 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002402 esac
2403done
2404else
2405 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +00002406sed 's/^/| /' conftest.$ac_ext >&5
2407
2408{ { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2409See \`config.log' for more details." >&5
2410echo "$as_me: error: C++ compiler cannot create executables
2411See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002412 { (exit 77); exit 77; }; }
2413fi
2414
2415ac_exeext=$ac_cv_exeext
2416echo "$as_me:$LINENO: result: $ac_file" >&5
2417echo "${ECHO_T}$ac_file" >&6
2418
2419# Check the compiler produces executables we can run. If not, either
2420# the compiler is broken, or we cross compile.
2421echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2422echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2423# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2424# If not cross compiling, check that we can run a simple program.
2425if test "$cross_compiling" != yes; then
2426 if { ac_try='./$ac_file'
2427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2428 (eval $ac_try) 2>&5
2429 ac_status=$?
2430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2431 (exit $ac_status); }; }; then
2432 cross_compiling=no
2433 else
2434 if test "$cross_compiling" = maybe; then
2435 cross_compiling=yes
2436 else
2437 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
John Criswell392aaa32003-07-22 19:18:09 +00002438If you meant to cross compile, use \`--host'.
2439See \`config.log' for more details." >&5
John Criswell7a73b802003-06-30 21:59:07 +00002440echo "$as_me: error: cannot run C++ compiled programs.
John Criswell392aaa32003-07-22 19:18:09 +00002441If you meant to cross compile, use \`--host'.
2442See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002443 { (exit 1); exit 1; }; }
2444 fi
2445 fi
2446fi
2447echo "$as_me:$LINENO: result: yes" >&5
2448echo "${ECHO_T}yes" >&6
2449
John Criswell392aaa32003-07-22 19:18:09 +00002450rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002451ac_clean_files=$ac_clean_files_save
2452# Check the compiler produces executables we can run. If not, either
2453# the compiler is broken, or we cross compile.
2454echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2455echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2456echo "$as_me:$LINENO: result: $cross_compiling" >&5
2457echo "${ECHO_T}$cross_compiling" >&6
2458
2459echo "$as_me:$LINENO: checking for suffix of executables" >&5
2460echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2461if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2462 (eval $ac_link) 2>&5
2463 ac_status=$?
2464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2465 (exit $ac_status); }; then
2466 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2467# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2468# work properly (i.e., refer to `conftest.exe'), while it won't with
2469# `rm'.
John Criswell392aaa32003-07-22 19:18:09 +00002470for ac_file in conftest.exe conftest conftest.*; do
2471 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002472 case $ac_file in
John Criswell392aaa32003-07-22 19:18:09 +00002473 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002474 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2475 export ac_cv_exeext
2476 break;;
2477 * ) break;;
2478 esac
2479done
2480else
John Criswell392aaa32003-07-22 19:18:09 +00002481 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2482See \`config.log' for more details." >&5
2483echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2484See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002485 { (exit 1); exit 1; }; }
2486fi
2487
2488rm -f conftest$ac_cv_exeext
2489echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2490echo "${ECHO_T}$ac_cv_exeext" >&6
2491
2492rm -f conftest.$ac_ext
2493EXEEXT=$ac_cv_exeext
2494ac_exeext=$EXEEXT
2495echo "$as_me:$LINENO: checking for suffix of object files" >&5
2496echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2497if test "${ac_cv_objext+set}" = set; then
2498 echo $ECHO_N "(cached) $ECHO_C" >&6
2499else
2500 cat >conftest.$ac_ext <<_ACEOF
2501#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +00002502/* confdefs.h. */
2503_ACEOF
2504cat confdefs.h >>conftest.$ac_ext
2505cat >>conftest.$ac_ext <<_ACEOF
2506/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002507
John Criswell7a73b802003-06-30 21:59:07 +00002508int
2509main ()
2510{
2511
2512 ;
2513 return 0;
2514}
2515_ACEOF
2516rm -f conftest.o conftest.obj
2517if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2518 (eval $ac_compile) 2>&5
2519 ac_status=$?
2520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2521 (exit $ac_status); }; then
2522 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2523 case $ac_file in
John Criswell392aaa32003-07-22 19:18:09 +00002524 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002525 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2526 break;;
2527 esac
2528done
2529else
2530 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +00002531sed 's/^/| /' conftest.$ac_ext >&5
2532
2533{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2534See \`config.log' for more details." >&5
2535echo "$as_me: error: cannot compute suffix of object files: cannot compile
2536See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002537 { (exit 1); exit 1; }; }
2538fi
2539
2540rm -f conftest.$ac_cv_objext conftest.$ac_ext
2541fi
2542echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2543echo "${ECHO_T}$ac_cv_objext" >&6
2544OBJEXT=$ac_cv_objext
2545ac_objext=$OBJEXT
2546echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2547echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2548if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2549 echo $ECHO_N "(cached) $ECHO_C" >&6
2550else
2551 cat >conftest.$ac_ext <<_ACEOF
2552#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +00002553/* confdefs.h. */
2554_ACEOF
2555cat confdefs.h >>conftest.$ac_ext
2556cat >>conftest.$ac_ext <<_ACEOF
2557/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002558
John Criswell7a73b802003-06-30 21:59:07 +00002559int
2560main ()
2561{
2562#ifndef __GNUC__
2563 choke me
2564#endif
2565
2566 ;
2567 return 0;
2568}
2569_ACEOF
2570rm -f conftest.$ac_objext
2571if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2572 (eval $ac_compile) 2>&5
2573 ac_status=$?
2574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2575 (exit $ac_status); } &&
2576 { ac_try='test -s conftest.$ac_objext'
2577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2578 (eval $ac_try) 2>&5
2579 ac_status=$?
2580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2581 (exit $ac_status); }; }; then
2582 ac_compiler_gnu=yes
2583else
2584 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +00002585sed 's/^/| /' conftest.$ac_ext >&5
2586
John Criswell7a73b802003-06-30 21:59:07 +00002587ac_compiler_gnu=no
2588fi
2589rm -f conftest.$ac_objext conftest.$ac_ext
2590ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2591
2592fi
2593echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2594echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2595GXX=`test $ac_compiler_gnu = yes && echo yes`
2596ac_test_CXXFLAGS=${CXXFLAGS+set}
2597ac_save_CXXFLAGS=$CXXFLAGS
2598CXXFLAGS="-g"
2599echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2600echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2601if test "${ac_cv_prog_cxx_g+set}" = set; then
2602 echo $ECHO_N "(cached) $ECHO_C" >&6
2603else
2604 cat >conftest.$ac_ext <<_ACEOF
2605#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +00002606/* confdefs.h. */
2607_ACEOF
2608cat confdefs.h >>conftest.$ac_ext
2609cat >>conftest.$ac_ext <<_ACEOF
2610/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002611
John Criswell7a73b802003-06-30 21:59:07 +00002612int
2613main ()
2614{
2615
2616 ;
2617 return 0;
2618}
2619_ACEOF
2620rm -f conftest.$ac_objext
2621if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2622 (eval $ac_compile) 2>&5
2623 ac_status=$?
2624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2625 (exit $ac_status); } &&
2626 { ac_try='test -s conftest.$ac_objext'
2627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2628 (eval $ac_try) 2>&5
2629 ac_status=$?
2630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2631 (exit $ac_status); }; }; then
2632 ac_cv_prog_cxx_g=yes
2633else
2634 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +00002635sed 's/^/| /' conftest.$ac_ext >&5
2636
John Criswell7a73b802003-06-30 21:59:07 +00002637ac_cv_prog_cxx_g=no
2638fi
2639rm -f conftest.$ac_objext conftest.$ac_ext
2640fi
2641echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2642echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2643if test "$ac_test_CXXFLAGS" = set; then
2644 CXXFLAGS=$ac_save_CXXFLAGS
2645elif test $ac_cv_prog_cxx_g = yes; then
2646 if test "$GXX" = yes; then
2647 CXXFLAGS="-g -O2"
2648 else
2649 CXXFLAGS="-g"
2650 fi
2651else
2652 if test "$GXX" = yes; then
2653 CXXFLAGS="-O2"
2654 else
2655 CXXFLAGS=
2656 fi
2657fi
2658for ac_declaration in \
2659 ''\
2660 '#include <stdlib.h>' \
2661 'extern "C" void std::exit (int) throw (); using std::exit;' \
2662 'extern "C" void std::exit (int); using std::exit;' \
2663 'extern "C" void exit (int) throw ();' \
2664 'extern "C" void exit (int);' \
2665 'void exit (int);'
2666do
2667 cat >conftest.$ac_ext <<_ACEOF
2668#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +00002669/* confdefs.h. */
2670_ACEOF
2671cat confdefs.h >>conftest.$ac_ext
2672cat >>conftest.$ac_ext <<_ACEOF
2673/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002674#include <stdlib.h>
2675$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00002676int
2677main ()
2678{
2679exit (42);
2680 ;
2681 return 0;
2682}
2683_ACEOF
2684rm -f conftest.$ac_objext
2685if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2686 (eval $ac_compile) 2>&5
2687 ac_status=$?
2688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2689 (exit $ac_status); } &&
2690 { ac_try='test -s conftest.$ac_objext'
2691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2692 (eval $ac_try) 2>&5
2693 ac_status=$?
2694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2695 (exit $ac_status); }; }; then
2696 :
2697else
2698 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +00002699sed 's/^/| /' conftest.$ac_ext >&5
2700
John Criswell7a73b802003-06-30 21:59:07 +00002701continue
2702fi
2703rm -f conftest.$ac_objext conftest.$ac_ext
2704 cat >conftest.$ac_ext <<_ACEOF
2705#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +00002706/* confdefs.h. */
2707_ACEOF
2708cat confdefs.h >>conftest.$ac_ext
2709cat >>conftest.$ac_ext <<_ACEOF
2710/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002711$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00002712int
2713main ()
2714{
2715exit (42);
2716 ;
2717 return 0;
2718}
2719_ACEOF
2720rm -f conftest.$ac_objext
2721if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2722 (eval $ac_compile) 2>&5
2723 ac_status=$?
2724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2725 (exit $ac_status); } &&
2726 { ac_try='test -s conftest.$ac_objext'
2727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2728 (eval $ac_try) 2>&5
2729 ac_status=$?
2730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2731 (exit $ac_status); }; }; then
2732 break
2733else
2734 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +00002735sed 's/^/| /' conftest.$ac_ext >&5
2736
John Criswell7a73b802003-06-30 21:59:07 +00002737fi
2738rm -f conftest.$ac_objext conftest.$ac_ext
2739done
2740rm -f conftest*
2741if test -n "$ac_declaration"; then
2742 echo '#ifdef __cplusplus' >>confdefs.h
2743 echo $ac_declaration >>confdefs.h
2744 echo '#endif' >>confdefs.h
2745fi
2746
2747ac_ext=c
2748ac_cpp='$CPP $CPPFLAGS'
2749ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2750ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2751ac_compiler_gnu=$ac_cv_c_compiler_gnu
2752
2753ac_ext=c
2754ac_cpp='$CPP $CPPFLAGS'
2755ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2756ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2757ac_compiler_gnu=$ac_cv_c_compiler_gnu
2758if test -n "$ac_tool_prefix"; then
2759 for ac_prog in gcc
2760 do
2761 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2762set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2763echo "$as_me:$LINENO: checking for $ac_word" >&5
2764echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2765if test "${ac_cv_prog_CC+set}" = set; then
2766 echo $ECHO_N "(cached) $ECHO_C" >&6
2767else
2768 if test -n "$CC"; then
2769 ac_cv_prog_CC="$CC" # Let the user override the test.
2770else
2771as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2772for as_dir in $PATH
2773do
2774 IFS=$as_save_IFS
2775 test -z "$as_dir" && as_dir=.
2776 for ac_exec_ext in '' $ac_executable_extensions; do
2777 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2778 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2779 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2780 break 2
2781 fi
2782done
2783done
2784
2785fi
2786fi
2787CC=$ac_cv_prog_CC
2788if test -n "$CC"; then
2789 echo "$as_me:$LINENO: result: $CC" >&5
2790echo "${ECHO_T}$CC" >&6
2791else
2792 echo "$as_me:$LINENO: result: no" >&5
2793echo "${ECHO_T}no" >&6
2794fi
2795
2796 test -n "$CC" && break
2797 done
2798fi
2799if test -z "$CC"; then
2800 ac_ct_CC=$CC
2801 for ac_prog in gcc
2802do
2803 # Extract the first word of "$ac_prog", so it can be a program name with args.
2804set dummy $ac_prog; ac_word=$2
2805echo "$as_me:$LINENO: checking for $ac_word" >&5
2806echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2807if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2808 echo $ECHO_N "(cached) $ECHO_C" >&6
2809else
2810 if test -n "$ac_ct_CC"; then
2811 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2812else
2813as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2814for as_dir in $PATH
2815do
2816 IFS=$as_save_IFS
2817 test -z "$as_dir" && as_dir=.
2818 for ac_exec_ext in '' $ac_executable_extensions; do
2819 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2820 ac_cv_prog_ac_ct_CC="$ac_prog"
2821 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2822 break 2
2823 fi
2824done
2825done
2826
2827fi
2828fi
2829ac_ct_CC=$ac_cv_prog_ac_ct_CC
2830if test -n "$ac_ct_CC"; then
2831 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2832echo "${ECHO_T}$ac_ct_CC" >&6
2833else
2834 echo "$as_me:$LINENO: result: no" >&5
2835echo "${ECHO_T}no" >&6
2836fi
2837
2838 test -n "$ac_ct_CC" && break
2839done
2840
2841 CC=$ac_ct_CC
2842fi
2843
2844
John Criswell392aaa32003-07-22 19:18:09 +00002845test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2846See \`config.log' for more details." >&5
2847echo "$as_me: error: no acceptable C compiler found in \$PATH
2848See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002849 { (exit 1); exit 1; }; }
2850
2851# Provide some information about the compiler.
2852echo "$as_me:$LINENO:" \
2853 "checking for C compiler version" >&5
2854ac_compiler=`set X $ac_compile; echo $2`
2855{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2856 (eval $ac_compiler --version </dev/null >&5) 2>&5
2857 ac_status=$?
2858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2859 (exit $ac_status); }
2860{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2861 (eval $ac_compiler -v </dev/null >&5) 2>&5
2862 ac_status=$?
2863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2864 (exit $ac_status); }
2865{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2866 (eval $ac_compiler -V </dev/null >&5) 2>&5
2867 ac_status=$?
2868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2869 (exit $ac_status); }
2870
2871echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2872echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2873if test "${ac_cv_c_compiler_gnu+set}" = set; then
2874 echo $ECHO_N "(cached) $ECHO_C" >&6
2875else
2876 cat >conftest.$ac_ext <<_ACEOF
2877#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +00002878/* confdefs.h. */
2879_ACEOF
2880cat confdefs.h >>conftest.$ac_ext
2881cat >>conftest.$ac_ext <<_ACEOF
2882/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002883
John Criswell7a73b802003-06-30 21:59:07 +00002884int
2885main ()
2886{
2887#ifndef __GNUC__
2888 choke me
2889#endif
2890
2891 ;
2892 return 0;
2893}
2894_ACEOF
2895rm -f conftest.$ac_objext
2896if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2897 (eval $ac_compile) 2>&5
2898 ac_status=$?
2899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2900 (exit $ac_status); } &&
2901 { ac_try='test -s conftest.$ac_objext'
2902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2903 (eval $ac_try) 2>&5
2904 ac_status=$?
2905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2906 (exit $ac_status); }; }; then
2907 ac_compiler_gnu=yes
2908else
2909 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +00002910sed 's/^/| /' conftest.$ac_ext >&5
2911
John Criswell7a73b802003-06-30 21:59:07 +00002912ac_compiler_gnu=no
2913fi
2914rm -f conftest.$ac_objext conftest.$ac_ext
2915ac_cv_c_compiler_gnu=$ac_compiler_gnu
2916
2917fi
2918echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2919echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2920GCC=`test $ac_compiler_gnu = yes && echo yes`
2921ac_test_CFLAGS=${CFLAGS+set}
2922ac_save_CFLAGS=$CFLAGS
2923CFLAGS="-g"
2924echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2925echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2926if test "${ac_cv_prog_cc_g+set}" = set; then
2927 echo $ECHO_N "(cached) $ECHO_C" >&6
2928else
2929 cat >conftest.$ac_ext <<_ACEOF
2930#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +00002931/* confdefs.h. */
2932_ACEOF
2933cat confdefs.h >>conftest.$ac_ext
2934cat >>conftest.$ac_ext <<_ACEOF
2935/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002936
John Criswell7a73b802003-06-30 21:59:07 +00002937int
2938main ()
2939{
2940
2941 ;
2942 return 0;
2943}
2944_ACEOF
2945rm -f conftest.$ac_objext
2946if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2947 (eval $ac_compile) 2>&5
2948 ac_status=$?
2949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2950 (exit $ac_status); } &&
2951 { ac_try='test -s conftest.$ac_objext'
2952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2953 (eval $ac_try) 2>&5
2954 ac_status=$?
2955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2956 (exit $ac_status); }; }; then
2957 ac_cv_prog_cc_g=yes
2958else
2959 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +00002960sed 's/^/| /' conftest.$ac_ext >&5
2961
John Criswell7a73b802003-06-30 21:59:07 +00002962ac_cv_prog_cc_g=no
2963fi
2964rm -f conftest.$ac_objext conftest.$ac_ext
2965fi
2966echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2967echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2968if test "$ac_test_CFLAGS" = set; then
2969 CFLAGS=$ac_save_CFLAGS
2970elif test $ac_cv_prog_cc_g = yes; then
2971 if test "$GCC" = yes; then
2972 CFLAGS="-g -O2"
2973 else
2974 CFLAGS="-g"
2975 fi
2976else
2977 if test "$GCC" = yes; then
2978 CFLAGS="-O2"
2979 else
2980 CFLAGS=
2981 fi
2982fi
John Criswell392aaa32003-07-22 19:18:09 +00002983echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2984echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2985if test "${ac_cv_prog_cc_stdc+set}" = set; then
2986 echo $ECHO_N "(cached) $ECHO_C" >&6
2987else
2988 ac_cv_prog_cc_stdc=no
2989ac_save_CC=$CC
2990cat >conftest.$ac_ext <<_ACEOF
2991#line $LINENO "configure"
2992/* confdefs.h. */
2993_ACEOF
2994cat confdefs.h >>conftest.$ac_ext
2995cat >>conftest.$ac_ext <<_ACEOF
2996/* end confdefs.h. */
2997#include <stdarg.h>
2998#include <stdio.h>
2999#include <sys/types.h>
3000#include <sys/stat.h>
3001/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3002struct buf { int x; };
3003FILE * (*rcsopen) (struct buf *, struct stat *, int);
3004static char *e (p, i)
3005 char **p;
3006 int i;
3007{
3008 return p[i];
3009}
3010static char *f (char * (*g) (char **, int), char **p, ...)
3011{
3012 char *s;
3013 va_list v;
3014 va_start (v,p);
3015 s = g (p, va_arg (v,int));
3016 va_end (v);
3017 return s;
3018}
3019int test (int i, double x);
3020struct s1 {int (*f) (int a);};
3021struct s2 {int (*f) (double a);};
3022int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3023int argc;
3024char **argv;
3025int
3026main ()
3027{
3028return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3029 ;
3030 return 0;
3031}
3032_ACEOF
3033# Don't try gcc -ansi; that turns off useful extensions and
3034# breaks some systems' header files.
3035# AIX -qlanglvl=ansi
3036# Ultrix and OSF/1 -std1
3037# HP-UX 10.20 and later -Ae
3038# HP-UX older versions -Aa -D_HPUX_SOURCE
3039# SVR4 -Xc -D__EXTENSIONS__
3040for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3041do
3042 CC="$ac_save_CC $ac_arg"
3043 rm -f conftest.$ac_objext
3044if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3045 (eval $ac_compile) 2>&5
3046 ac_status=$?
3047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3048 (exit $ac_status); } &&
3049 { ac_try='test -s conftest.$ac_objext'
3050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3051 (eval $ac_try) 2>&5
3052 ac_status=$?
3053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3054 (exit $ac_status); }; }; then
3055 ac_cv_prog_cc_stdc=$ac_arg
3056break
3057else
3058 echo "$as_me: failed program was:" >&5
3059sed 's/^/| /' conftest.$ac_ext >&5
3060
3061fi
3062rm -f conftest.$ac_objext
3063done
3064rm -f conftest.$ac_ext conftest.$ac_objext
3065CC=$ac_save_CC
3066
3067fi
3068
3069case "x$ac_cv_prog_cc_stdc" in
3070 x|xno)
3071 echo "$as_me:$LINENO: result: none needed" >&5
3072echo "${ECHO_T}none needed" >&6 ;;
3073 *)
3074 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3075echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3076 CC="$CC $ac_cv_prog_cc_stdc" ;;
3077esac
3078
John Criswell7a73b802003-06-30 21:59:07 +00003079# Some people use a C++ compiler to compile C. Since we use `exit',
3080# in C++ we need to declare it. In case someone uses the same compiler
3081# for both compiling C and C++ we need to have the C++ compiler decide
3082# the declaration of exit, since it's the most demanding environment.
3083cat >conftest.$ac_ext <<_ACEOF
3084#ifndef __cplusplus
3085 choke me
3086#endif
3087_ACEOF
3088rm -f conftest.$ac_objext
3089if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3090 (eval $ac_compile) 2>&5
3091 ac_status=$?
3092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3093 (exit $ac_status); } &&
3094 { ac_try='test -s conftest.$ac_objext'
3095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3096 (eval $ac_try) 2>&5
3097 ac_status=$?
3098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3099 (exit $ac_status); }; }; then
3100 for ac_declaration in \
3101 ''\
3102 '#include <stdlib.h>' \
3103 'extern "C" void std::exit (int) throw (); using std::exit;' \
3104 'extern "C" void std::exit (int); using std::exit;' \
3105 'extern "C" void exit (int) throw ();' \
3106 'extern "C" void exit (int);' \
3107 'void exit (int);'
3108do
3109 cat >conftest.$ac_ext <<_ACEOF
3110#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +00003111/* confdefs.h. */
3112_ACEOF
3113cat confdefs.h >>conftest.$ac_ext
3114cat >>conftest.$ac_ext <<_ACEOF
3115/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003116#include <stdlib.h>
3117$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00003118int
3119main ()
3120{
3121exit (42);
3122 ;
3123 return 0;
3124}
3125_ACEOF
3126rm -f conftest.$ac_objext
3127if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3128 (eval $ac_compile) 2>&5
3129 ac_status=$?
3130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3131 (exit $ac_status); } &&
3132 { ac_try='test -s conftest.$ac_objext'
3133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3134 (eval $ac_try) 2>&5
3135 ac_status=$?
3136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3137 (exit $ac_status); }; }; then
3138 :
3139else
3140 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +00003141sed 's/^/| /' conftest.$ac_ext >&5
3142
John Criswell7a73b802003-06-30 21:59:07 +00003143continue
3144fi
3145rm -f conftest.$ac_objext conftest.$ac_ext
3146 cat >conftest.$ac_ext <<_ACEOF
3147#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +00003148/* confdefs.h. */
3149_ACEOF
3150cat confdefs.h >>conftest.$ac_ext
3151cat >>conftest.$ac_ext <<_ACEOF
3152/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003153$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00003154int
3155main ()
3156{
3157exit (42);
3158 ;
3159 return 0;
3160}
3161_ACEOF
3162rm -f conftest.$ac_objext
3163if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3164 (eval $ac_compile) 2>&5
3165 ac_status=$?
3166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3167 (exit $ac_status); } &&
3168 { ac_try='test -s conftest.$ac_objext'
3169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3170 (eval $ac_try) 2>&5
3171 ac_status=$?
3172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3173 (exit $ac_status); }; }; then
3174 break
3175else
3176 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +00003177sed 's/^/| /' conftest.$ac_ext >&5
3178
John Criswell7a73b802003-06-30 21:59:07 +00003179fi
3180rm -f conftest.$ac_objext conftest.$ac_ext
3181done
3182rm -f conftest*
3183if test -n "$ac_declaration"; then
3184 echo '#ifdef __cplusplus' >>confdefs.h
3185 echo $ac_declaration >>confdefs.h
3186 echo '#endif' >>confdefs.h
3187fi
3188
3189else
3190 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +00003191sed 's/^/| /' conftest.$ac_ext >&5
3192
John Criswell7a73b802003-06-30 21:59:07 +00003193fi
3194rm -f conftest.$ac_objext conftest.$ac_ext
3195ac_ext=c
3196ac_cpp='$CPP $CPPFLAGS'
3197ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3198ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3199ac_compiler_gnu=$ac_cv_c_compiler_gnu
3200
3201ac_ext=c
3202ac_cpp='$CPP $CPPFLAGS'
3203ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3204ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3205ac_compiler_gnu=$ac_cv_c_compiler_gnu
3206echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3207echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3208# On Suns, sometimes $CPP names a directory.
3209if test -n "$CPP" && test -d "$CPP"; then
3210 CPP=
3211fi
3212if test -z "$CPP"; then
3213 if test "${ac_cv_prog_CPP+set}" = set; then
3214 echo $ECHO_N "(cached) $ECHO_C" >&6
3215else
3216 # Double quotes because CPP needs to be expanded
3217 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3218 do
3219 ac_preproc_ok=false
3220for ac_c_preproc_warn_flag in '' yes
3221do
3222 # Use a header file that comes with gcc, so configuring glibc
3223 # with a fresh cross-compiler works.
John Criswell392aaa32003-07-22 19:18:09 +00003224 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3225 # <limits.h> exists even on freestanding compilers.
John Criswell7a73b802003-06-30 21:59:07 +00003226 # On the NeXT, cc -E runs the code through the compiler's parser,
3227 # not just through cpp. "Syntax error" is here to catch this case.
3228 cat >conftest.$ac_ext <<_ACEOF
3229#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +00003230/* confdefs.h. */
3231_ACEOF
3232cat confdefs.h >>conftest.$ac_ext
3233cat >>conftest.$ac_ext <<_ACEOF
3234/* end confdefs.h. */
3235#ifdef __STDC__
3236# include <limits.h>
3237#else
3238# include <assert.h>
3239#endif
John Criswell7a73b802003-06-30 21:59:07 +00003240 Syntax error
3241_ACEOF
3242if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3243 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3244 ac_status=$?
John Criswell392aaa32003-07-22 19:18:09 +00003245 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003246 rm -f conftest.er1
3247 cat conftest.err >&5
3248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3249 (exit $ac_status); } >/dev/null; then
3250 if test -s conftest.err; then
3251 ac_cpp_err=$ac_c_preproc_warn_flag
3252 else
3253 ac_cpp_err=
3254 fi
3255else
3256 ac_cpp_err=yes
3257fi
3258if test -z "$ac_cpp_err"; then
3259 :
3260else
3261 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +00003262sed 's/^/| /' conftest.$ac_ext >&5
3263
John Criswell7a73b802003-06-30 21:59:07 +00003264 # Broken: fails on valid input.
3265continue
3266fi
3267rm -f conftest.err conftest.$ac_ext
3268
3269 # OK, works on sane cases. Now check whether non-existent headers
3270 # can be detected and how.
3271 cat >conftest.$ac_ext <<_ACEOF
3272#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +00003273/* confdefs.h. */
3274_ACEOF
3275cat confdefs.h >>conftest.$ac_ext
3276cat >>conftest.$ac_ext <<_ACEOF
3277/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003278#include <ac_nonexistent.h>
3279_ACEOF
3280if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3281 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3282 ac_status=$?
John Criswell392aaa32003-07-22 19:18:09 +00003283 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003284 rm -f conftest.er1
3285 cat conftest.err >&5
3286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3287 (exit $ac_status); } >/dev/null; then
3288 if test -s conftest.err; then
3289 ac_cpp_err=$ac_c_preproc_warn_flag
3290 else
3291 ac_cpp_err=
3292 fi
3293else
3294 ac_cpp_err=yes
3295fi
3296if test -z "$ac_cpp_err"; then
3297 # Broken: success on invalid input.
3298continue
3299else
3300 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +00003301sed 's/^/| /' conftest.$ac_ext >&5
3302
John Criswell7a73b802003-06-30 21:59:07 +00003303 # Passes both tests.
3304ac_preproc_ok=:
3305break
3306fi
3307rm -f conftest.err conftest.$ac_ext
3308
3309done
3310# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3311rm -f conftest.err conftest.$ac_ext
3312if $ac_preproc_ok; then
3313 break
3314fi
3315
3316 done
3317 ac_cv_prog_CPP=$CPP
3318
3319fi
3320 CPP=$ac_cv_prog_CPP
3321else
3322 ac_cv_prog_CPP=$CPP
3323fi
3324echo "$as_me:$LINENO: result: $CPP" >&5
3325echo "${ECHO_T}$CPP" >&6
3326ac_preproc_ok=false
3327for ac_c_preproc_warn_flag in '' yes
3328do
3329 # Use a header file that comes with gcc, so configuring glibc
3330 # with a fresh cross-compiler works.
John Criswell392aaa32003-07-22 19:18:09 +00003331 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3332 # <limits.h> exists even on freestanding compilers.
John Criswell7a73b802003-06-30 21:59:07 +00003333 # On the NeXT, cc -E runs the code through the compiler's parser,
3334 # not just through cpp. "Syntax error" is here to catch this case.
3335 cat >conftest.$ac_ext <<_ACEOF
3336#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +00003337/* confdefs.h. */
3338_ACEOF
3339cat confdefs.h >>conftest.$ac_ext
3340cat >>conftest.$ac_ext <<_ACEOF
3341/* end confdefs.h. */
3342#ifdef __STDC__
3343# include <limits.h>
3344#else
3345# include <assert.h>
3346#endif
John Criswell7a73b802003-06-30 21:59:07 +00003347 Syntax error
3348_ACEOF
3349if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3350 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3351 ac_status=$?
John Criswell392aaa32003-07-22 19:18:09 +00003352 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003353 rm -f conftest.er1
3354 cat conftest.err >&5
3355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3356 (exit $ac_status); } >/dev/null; then
3357 if test -s conftest.err; then
3358 ac_cpp_err=$ac_c_preproc_warn_flag
3359 else
3360 ac_cpp_err=
3361 fi
3362else
3363 ac_cpp_err=yes
3364fi
3365if test -z "$ac_cpp_err"; then
3366 :
3367else
3368 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +00003369sed 's/^/| /' conftest.$ac_ext >&5
3370
John Criswell7a73b802003-06-30 21:59:07 +00003371 # Broken: fails on valid input.
3372continue
3373fi
3374rm -f conftest.err conftest.$ac_ext
3375
3376 # OK, works on sane cases. Now check whether non-existent headers
3377 # can be detected and how.
3378 cat >conftest.$ac_ext <<_ACEOF
3379#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +00003380/* confdefs.h. */
3381_ACEOF
3382cat confdefs.h >>conftest.$ac_ext
3383cat >>conftest.$ac_ext <<_ACEOF
3384/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003385#include <ac_nonexistent.h>
3386_ACEOF
3387if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3388 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3389 ac_status=$?
John Criswell392aaa32003-07-22 19:18:09 +00003390 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003391 rm -f conftest.er1
3392 cat conftest.err >&5
3393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3394 (exit $ac_status); } >/dev/null; then
3395 if test -s conftest.err; then
3396 ac_cpp_err=$ac_c_preproc_warn_flag
3397 else
3398 ac_cpp_err=
3399 fi
3400else
3401 ac_cpp_err=yes
3402fi
3403if test -z "$ac_cpp_err"; then
3404 # Broken: success on invalid input.
3405continue
3406else
3407 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +00003408sed 's/^/| /' conftest.$ac_ext >&5
3409
John Criswell7a73b802003-06-30 21:59:07 +00003410 # Passes both tests.
3411ac_preproc_ok=:
3412break
3413fi
3414rm -f conftest.err conftest.$ac_ext
3415
3416done
3417# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3418rm -f conftest.err conftest.$ac_ext
3419if $ac_preproc_ok; then
3420 :
3421else
John Criswell392aaa32003-07-22 19:18:09 +00003422 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3423See \`config.log' for more details." >&5
3424echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3425See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00003426 { (exit 1); exit 1; }; }
3427fi
3428
3429ac_ext=c
3430ac_cpp='$CPP $CPPFLAGS'
3431ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3432ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3433ac_compiler_gnu=$ac_cv_c_compiler_gnu
3434
3435
3436if test "$GCC" != "yes"
3437then
3438 { { echo "$as_me:$LINENO: error: gcc required but not found" >&5
3439echo "$as_me: error: gcc required but not found" >&2;}
3440 { (exit 1); exit 1; }; }
3441fi
3442
3443if test "$GXX" != "yes"
3444then
3445 { { echo "$as_me:$LINENO: error: g++ required but not found" >&5
3446echo "$as_me: error: g++ required but not found" >&2;}
3447 { (exit 1); exit 1; }; }
3448fi
3449
John Criswellde00db22003-08-25 16:49:54 +00003450gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
3451if test "$gccmajor" -lt "3"
3452then
3453 { { echo "$as_me:$LINENO: error: gcc 3.x required" >&5
3454echo "$as_me: error: gcc 3.x required" >&2;}
3455 { (exit 1); exit 1; }; }
3456fi
3457
John Criswell7a73b802003-06-30 21:59:07 +00003458 echo "$as_me:$LINENO: checking for GNU make" >&5
3459echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
3460if test "${_cv_gnu_make_command+set}" = set; then
3461 echo $ECHO_N "(cached) $ECHO_C" >&6
3462else
3463 _cv_gnu_make_command='' ;
3464 for a in "$MAKE" make gmake gnumake ; do
3465 if test -z "$a" ; then continue ; fi ;
3466 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
3467 _cv_gnu_make_command=$a ;
3468 break;
3469 fi
3470 done ;
3471
3472fi
3473echo "$as_me:$LINENO: result: $_cv_gnu_make_command" >&5
3474echo "${ECHO_T}$_cv_gnu_make_command" >&6 ;
3475 if test "x$_cv_gnu_make_command" != "x" ; then
3476 ifGNUmake='' ;
3477 else
3478 ifGNUmake='#' ;
3479 echo "$as_me:$LINENO: result: \"Not found\"" >&5
3480echo "${ECHO_T}\"Not found\"" >&6;
3481 fi
3482
3483
3484if test -z "$_cv_gnu_make_command"
3485then
3486 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
3487echo "$as_me: error: GNU Make required but not found" >&2;}
3488 { (exit 1); exit 1; }; }
3489fi
3490
3491
3492echo "$as_me:$LINENO: checking " >&5
3493echo $ECHO_N "checking ... $ECHO_C" >&6
3494if test "${ac_cv_has_flex+set}" = set; then
3495 echo $ECHO_N "(cached) $ECHO_C" >&6
3496else
3497 for ac_prog in flex lex
3498do
3499 # Extract the first word of "$ac_prog", so it can be a program name with args.
3500set dummy $ac_prog; ac_word=$2
3501echo "$as_me:$LINENO: checking for $ac_word" >&5
3502echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3503if test "${ac_cv_prog_LEX+set}" = set; then
3504 echo $ECHO_N "(cached) $ECHO_C" >&6
3505else
3506 if test -n "$LEX"; then
3507 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3508else
3509as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3510for as_dir in $PATH
3511do
3512 IFS=$as_save_IFS
3513 test -z "$as_dir" && as_dir=.
3514 for ac_exec_ext in '' $ac_executable_extensions; do
3515 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3516 ac_cv_prog_LEX="$ac_prog"
3517 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3518 break 2
3519 fi
3520done
3521done
3522
3523fi
3524fi
3525LEX=$ac_cv_prog_LEX
3526if test -n "$LEX"; then
3527 echo "$as_me:$LINENO: result: $LEX" >&5
3528echo "${ECHO_T}$LEX" >&6
3529else
3530 echo "$as_me:$LINENO: result: no" >&5
3531echo "${ECHO_T}no" >&6
3532fi
3533
3534 test -n "$LEX" && break
3535done
3536test -n "$LEX" || LEX=":"
3537
3538if test -z "$LEXLIB"
3539then
3540 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3541echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3542if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3543 echo $ECHO_N "(cached) $ECHO_C" >&6
3544else
3545 ac_check_lib_save_LIBS=$LIBS
3546LIBS="-lfl $LIBS"
3547cat >conftest.$ac_ext <<_ACEOF
3548#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +00003549/* confdefs.h. */
3550_ACEOF
3551cat confdefs.h >>conftest.$ac_ext
3552cat >>conftest.$ac_ext <<_ACEOF
3553/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003554
3555/* Override any gcc2 internal prototype to avoid an error. */
3556#ifdef __cplusplus
3557extern "C"
3558#endif
3559/* We use char because int might match the return type of a gcc2
3560 builtin and then its argument prototype would still apply. */
3561char yywrap ();
John Criswell7a73b802003-06-30 21:59:07 +00003562int
3563main ()
3564{
3565yywrap ();
3566 ;
3567 return 0;
3568}
3569_ACEOF
3570rm -f conftest.$ac_objext conftest$ac_exeext
3571if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3572 (eval $ac_link) 2>&5
3573 ac_status=$?
3574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3575 (exit $ac_status); } &&
3576 { ac_try='test -s conftest$ac_exeext'
3577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3578 (eval $ac_try) 2>&5
3579 ac_status=$?
3580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3581 (exit $ac_status); }; }; then
3582 ac_cv_lib_fl_yywrap=yes
3583else
3584 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +00003585sed 's/^/| /' conftest.$ac_ext >&5
3586
John Criswell7a73b802003-06-30 21:59:07 +00003587ac_cv_lib_fl_yywrap=no
3588fi
3589rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3590LIBS=$ac_check_lib_save_LIBS
3591fi
3592echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3593echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3594if test $ac_cv_lib_fl_yywrap = yes; then
3595 LEXLIB="-lfl"
3596else
3597 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3598echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3599if test "${ac_cv_lib_l_yywrap+set}" = set; then
3600 echo $ECHO_N "(cached) $ECHO_C" >&6
3601else
3602 ac_check_lib_save_LIBS=$LIBS
3603LIBS="-ll $LIBS"
3604cat >conftest.$ac_ext <<_ACEOF
3605#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +00003606/* confdefs.h. */
3607_ACEOF
3608cat confdefs.h >>conftest.$ac_ext
3609cat >>conftest.$ac_ext <<_ACEOF
3610/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003611
3612/* Override any gcc2 internal prototype to avoid an error. */
3613#ifdef __cplusplus
3614extern "C"
3615#endif
3616/* We use char because int might match the return type of a gcc2
3617 builtin and then its argument prototype would still apply. */
3618char yywrap ();
John Criswell7a73b802003-06-30 21:59:07 +00003619int
3620main ()
3621{
3622yywrap ();
3623 ;
3624 return 0;
3625}
3626_ACEOF
3627rm -f conftest.$ac_objext conftest$ac_exeext
3628if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3629 (eval $ac_link) 2>&5
3630 ac_status=$?
3631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3632 (exit $ac_status); } &&
3633 { ac_try='test -s conftest$ac_exeext'
3634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3635 (eval $ac_try) 2>&5
3636 ac_status=$?
3637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3638 (exit $ac_status); }; }; then
3639 ac_cv_lib_l_yywrap=yes
3640else
3641 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +00003642sed 's/^/| /' conftest.$ac_ext >&5
3643
John Criswell7a73b802003-06-30 21:59:07 +00003644ac_cv_lib_l_yywrap=no
3645fi
3646rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3647LIBS=$ac_check_lib_save_LIBS
3648fi
3649echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3650echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3651if test $ac_cv_lib_l_yywrap = yes; then
3652 LEXLIB="-ll"
3653fi
3654
3655fi
3656
3657fi
3658
3659if test "x$LEX" != "x:"; then
3660 echo "$as_me:$LINENO: checking lex output file root" >&5
3661echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3662if test "${ac_cv_prog_lex_root+set}" = set; then
3663 echo $ECHO_N "(cached) $ECHO_C" >&6
3664else
3665 # The minimal lex program is just a single line: %%. But some broken lexes
3666# (Solaris, I think it was) want two %% lines, so accommodate them.
3667cat >conftest.l <<_ACEOF
3668%%
3669%%
3670_ACEOF
3671{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3672 (eval $LEX conftest.l) 2>&5
3673 ac_status=$?
3674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3675 (exit $ac_status); }
3676if test -f lex.yy.c; then
3677 ac_cv_prog_lex_root=lex.yy
3678elif test -f lexyy.c; then
3679 ac_cv_prog_lex_root=lexyy
3680else
3681 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3682echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3683 { (exit 1); exit 1; }; }
3684fi
3685fi
3686echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3687echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3688rm -f conftest.l
3689LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3690
3691echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3692echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3693if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3694 echo $ECHO_N "(cached) $ECHO_C" >&6
3695else
3696 # POSIX says lex can declare yytext either as a pointer or an array; the
3697# default is implementation-dependent. Figure out which it is, since
3698# not all implementations provide the %pointer and %array declarations.
3699ac_cv_prog_lex_yytext_pointer=no
3700echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3701ac_save_LIBS=$LIBS
3702LIBS="$LIBS $LEXLIB"
3703cat >conftest.$ac_ext <<_ACEOF
3704`cat $LEX_OUTPUT_ROOT.c`
3705_ACEOF
3706rm -f conftest.$ac_objext conftest$ac_exeext
3707if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3708 (eval $ac_link) 2>&5
3709 ac_status=$?
3710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3711 (exit $ac_status); } &&
3712 { ac_try='test -s conftest$ac_exeext'
3713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3714 (eval $ac_try) 2>&5
3715 ac_status=$?
3716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3717 (exit $ac_status); }; }; then
3718 ac_cv_prog_lex_yytext_pointer=yes
3719else
3720 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +00003721sed 's/^/| /' conftest.$ac_ext >&5
3722
John Criswell7a73b802003-06-30 21:59:07 +00003723fi
3724rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3725LIBS=$ac_save_LIBS
3726rm -f "${LEX_OUTPUT_ROOT}.c"
3727
3728fi
3729echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3730echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3731if test $ac_cv_prog_lex_yytext_pointer = yes; then
3732
3733cat >>confdefs.h <<\_ACEOF
3734#define YYTEXT_POINTER 1
3735_ACEOF
3736
3737fi
3738
3739fi
3740
3741fi
3742echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
3743echo "${ECHO_T}$ac_cv_has_flex" >&6
3744if test "$LEX" != "flex"; then
3745 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
3746echo "$as_me: error: flex not found but required" >&2;}
3747 { (exit 1); exit 1; }; }
3748fi
3749
3750echo "$as_me:$LINENO: checking " >&5
3751echo $ECHO_N "checking ... $ECHO_C" >&6
3752if test "${ac_cv_has_bison+set}" = set; then
3753 echo $ECHO_N "(cached) $ECHO_C" >&6
3754else
3755 for ac_prog in 'bison -y' byacc
3756do
3757 # Extract the first word of "$ac_prog", so it can be a program name with args.
3758set dummy $ac_prog; ac_word=$2
3759echo "$as_me:$LINENO: checking for $ac_word" >&5
3760echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3761if test "${ac_cv_prog_YACC+set}" = set; then
3762 echo $ECHO_N "(cached) $ECHO_C" >&6
3763else
3764 if test -n "$YACC"; then
3765 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3766else
3767as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3768for as_dir in $PATH
3769do
3770 IFS=$as_save_IFS
3771 test -z "$as_dir" && as_dir=.
3772 for ac_exec_ext in '' $ac_executable_extensions; do
3773 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3774 ac_cv_prog_YACC="$ac_prog"
3775 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3776 break 2
3777 fi
3778done
3779done
3780
3781fi
3782fi
3783YACC=$ac_cv_prog_YACC
3784if test -n "$YACC"; then
3785 echo "$as_me:$LINENO: result: $YACC" >&5
3786echo "${ECHO_T}$YACC" >&6
3787else
3788 echo "$as_me:$LINENO: result: no" >&5
3789echo "${ECHO_T}no" >&6
3790fi
3791
3792 test -n "$YACC" && break
3793done
3794test -n "$YACC" || YACC="yacc"
3795
3796
3797fi
3798echo "$as_me:$LINENO: result: $ac_cv_has_bison" >&5
3799echo "${ECHO_T}$ac_cv_has_bison" >&6
3800if test "$YACC" != "bison -y"; then
3801 { { echo "$as_me:$LINENO: error: bison not found but required" >&5
3802echo "$as_me: error: bison not found but required" >&2;}
3803 { (exit 1); exit 1; }; }
3804else
3805 YACC=bison
3806
3807fi
3808
3809
3810# Check whether --enable-shared or --disable-shared was given.
3811if test "${enable_shared+set}" = set; then
3812 enableval="$enable_shared"
3813 p=${PACKAGE-default}
John Criswell47fdd832003-07-14 16:52:07 +00003814 case $enableval in
3815 yes) enable_shared=yes ;;
3816 no) enable_shared=no ;;
3817 *)
3818 enable_shared=no
3819 # Look at the argument we got. We use all the common list separators.
3820 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3821 for pkg in $enableval; do
3822 IFS="$lt_save_ifs"
3823 if test "X$pkg" = "X$p"; then
3824 enable_shared=yes
3825 fi
3826 done
3827 IFS="$lt_save_ifs"
3828 ;;
3829 esac
John Criswell7a73b802003-06-30 21:59:07 +00003830else
3831 enable_shared=yes
3832fi;
John Criswell47fdd832003-07-14 16:52:07 +00003833
John Criswell7a73b802003-06-30 21:59:07 +00003834# Check whether --enable-static or --disable-static was given.
3835if test "${enable_static+set}" = set; then
3836 enableval="$enable_static"
3837 p=${PACKAGE-default}
John Criswell47fdd832003-07-14 16:52:07 +00003838 case $enableval in
3839 yes) enable_static=yes ;;
3840 no) enable_static=no ;;
3841 *)
3842 enable_static=no
3843 # Look at the argument we got. We use all the common list separators.
3844 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3845 for pkg in $enableval; do
3846 IFS="$lt_save_ifs"
3847 if test "X$pkg" = "X$p"; then
3848 enable_static=yes
3849 fi
3850 done
3851 IFS="$lt_save_ifs"
3852 ;;
3853 esac
John Criswell7a73b802003-06-30 21:59:07 +00003854else
3855 enable_static=yes
3856fi;
John Criswell47fdd832003-07-14 16:52:07 +00003857
John Criswell7a73b802003-06-30 21:59:07 +00003858# Check whether --enable-fast-install or --disable-fast-install was given.
3859if test "${enable_fast_install+set}" = set; then
3860 enableval="$enable_fast_install"
3861 p=${PACKAGE-default}
John Criswell47fdd832003-07-14 16:52:07 +00003862 case $enableval in
3863 yes) enable_fast_install=yes ;;
3864 no) enable_fast_install=no ;;
3865 *)
3866 enable_fast_install=no
3867 # Look at the argument we got. We use all the common list separators.
3868 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3869 for pkg in $enableval; do
3870 IFS="$lt_save_ifs"
3871 if test "X$pkg" = "X$p"; then
3872 enable_fast_install=yes
3873 fi
3874 done
3875 IFS="$lt_save_ifs"
3876 ;;
3877 esac
John Criswell7a73b802003-06-30 21:59:07 +00003878else
3879 enable_fast_install=yes
3880fi;
John Criswell47fdd832003-07-14 16:52:07 +00003881
3882echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3883echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3884if test "${lt_cv_path_SED+set}" = set; then
3885 echo $ECHO_N "(cached) $ECHO_C" >&6
3886else
3887 # Loop through the user's path and test for sed and gsed.
3888# Then use that list of sed's as ones to test for truncation.
3889as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3890for as_dir in $PATH
3891do
3892 IFS=$as_save_IFS
3893 test -z "$as_dir" && as_dir=.
3894 for lt_ac_prog in sed gsed; do
3895 for ac_exec_ext in '' $ac_executable_extensions; do
3896 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3897 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3898 fi
3899 done
3900 done
3901done
3902lt_ac_max=0
3903lt_ac_count=0
3904# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3905# along with /bin/sed that truncates output.
3906for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3907 test ! -f $lt_ac_sed && break
3908 cat /dev/null > conftest.in
3909 lt_ac_count=0
3910 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3911 # Check for GNU sed and select it if it is found.
3912 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3913 lt_cv_path_SED=$lt_ac_sed
3914 break
3915 fi
3916 while true; do
3917 cat conftest.in conftest.in >conftest.tmp
3918 mv conftest.tmp conftest.in
3919 cp conftest.in conftest.nl
3920 echo >>conftest.nl
3921 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3922 cmp -s conftest.out conftest.nl || break
3923 # 10000 chars as input seems more than enough
3924 test $lt_ac_count -gt 10 && break
3925 lt_ac_count=`expr $lt_ac_count + 1`
3926 if test $lt_ac_count -gt $lt_ac_max; then
3927 lt_ac_max=$lt_ac_count
3928 lt_cv_path_SED=$lt_ac_sed
3929 fi
3930 done
3931done
3932SED=$lt_cv_path_SED
3933
John Criswell7a73b802003-06-30 21:59:07 +00003934fi
3935
John Criswell47fdd832003-07-14 16:52:07 +00003936echo "$as_me:$LINENO: result: $SED" >&5
3937echo "${ECHO_T}$SED" >&6
3938
3939echo "$as_me:$LINENO: checking for egrep" >&5
3940echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3941if test "${ac_cv_prog_egrep+set}" = set; then
3942 echo $ECHO_N "(cached) $ECHO_C" >&6
3943else
3944 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3945 then ac_cv_prog_egrep='grep -E'
3946 else ac_cv_prog_egrep='egrep'
3947 fi
3948fi
3949echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3950echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3951 EGREP=$ac_cv_prog_egrep
3952
3953
John Criswell7a73b802003-06-30 21:59:07 +00003954
3955# Check whether --with-gnu-ld or --without-gnu-ld was given.
3956if test "${with_gnu_ld+set}" = set; then
3957 withval="$with_gnu_ld"
3958 test "$withval" = no || with_gnu_ld=yes
3959else
3960 with_gnu_ld=no
3961fi;
3962ac_prog=ld
3963if test "$GCC" = yes; then
3964 # Check if gcc -print-prog-name=ld gives a path.
John Criswell47fdd832003-07-14 16:52:07 +00003965 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3966echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00003967 case $host in
3968 *-*-mingw*)
3969 # gcc leaves a trailing carriage return which upsets mingw
3970 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3971 *)
3972 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3973 esac
3974 case $ac_prog in
3975 # Accept absolute paths.
John Criswell47fdd832003-07-14 16:52:07 +00003976 [\\/]* | ?:[\\/]*)
John Criswell7a73b802003-06-30 21:59:07 +00003977 re_direlt='/[^/][^/]*/\.\./'
3978 # Canonicalize the path of ld
John Criswell47fdd832003-07-14 16:52:07 +00003979 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
John Criswell7a73b802003-06-30 21:59:07 +00003980 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
John Criswell47fdd832003-07-14 16:52:07 +00003981 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
John Criswell7a73b802003-06-30 21:59:07 +00003982 done
3983 test -z "$LD" && LD="$ac_prog"
3984 ;;
3985 "")
3986 # If it fails, then pretend we aren't using GCC.
3987 ac_prog=ld
3988 ;;
3989 *)
3990 # If it is relative, then search for the first ld in PATH.
3991 with_gnu_ld=unknown
3992 ;;
3993 esac
3994elif test "$with_gnu_ld" = yes; then
3995 echo "$as_me:$LINENO: checking for GNU ld" >&5
3996echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3997else
3998 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3999echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4000fi
4001if test "${lt_cv_path_LD+set}" = set; then
4002 echo $ECHO_N "(cached) $ECHO_C" >&6
4003else
4004 if test -z "$LD"; then
John Criswell47fdd832003-07-14 16:52:07 +00004005 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +00004006 for ac_dir in $PATH; do
John Criswell47fdd832003-07-14 16:52:07 +00004007 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00004008 test -z "$ac_dir" && ac_dir=.
4009 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4010 lt_cv_path_LD="$ac_dir/$ac_prog"
4011 # Check to see if the program is GNU ld. I'd rather use --version,
4012 # but apparently some GNU ld's only accept -v.
4013 # Break only if it was the GNU/non-GNU ld that we prefer.
John Criswell47fdd832003-07-14 16:52:07 +00004014 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4015 *GNU* | *'with BFD'*)
John Criswell7a73b802003-06-30 21:59:07 +00004016 test "$with_gnu_ld" != no && break
John Criswell47fdd832003-07-14 16:52:07 +00004017 ;;
4018 *)
John Criswell7a73b802003-06-30 21:59:07 +00004019 test "$with_gnu_ld" != yes && break
John Criswell47fdd832003-07-14 16:52:07 +00004020 ;;
4021 esac
John Criswell7a73b802003-06-30 21:59:07 +00004022 fi
4023 done
John Criswell47fdd832003-07-14 16:52:07 +00004024 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00004025else
4026 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4027fi
4028fi
4029
4030LD="$lt_cv_path_LD"
4031if test -n "$LD"; then
4032 echo "$as_me:$LINENO: result: $LD" >&5
4033echo "${ECHO_T}$LD" >&6
4034else
4035 echo "$as_me:$LINENO: result: no" >&5
4036echo "${ECHO_T}no" >&6
4037fi
4038test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4039echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4040 { (exit 1); exit 1; }; }
4041echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4042echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4043if test "${lt_cv_prog_gnu_ld+set}" = set; then
4044 echo $ECHO_N "(cached) $ECHO_C" >&6
4045else
4046 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
John Criswell47fdd832003-07-14 16:52:07 +00004047case `"$LD" -v 2>&1 </dev/null` in
4048*GNU* | *'with BFD'*)
John Criswell7a73b802003-06-30 21:59:07 +00004049 lt_cv_prog_gnu_ld=yes
John Criswell47fdd832003-07-14 16:52:07 +00004050 ;;
4051*)
John Criswell7a73b802003-06-30 21:59:07 +00004052 lt_cv_prog_gnu_ld=no
John Criswell47fdd832003-07-14 16:52:07 +00004053 ;;
4054esac
John Criswell7a73b802003-06-30 21:59:07 +00004055fi
4056echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4057echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4058with_gnu_ld=$lt_cv_prog_gnu_ld
4059
4060
4061echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4062echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4063if test "${lt_cv_ld_reload_flag+set}" = set; then
4064 echo $ECHO_N "(cached) $ECHO_C" >&6
4065else
4066 lt_cv_ld_reload_flag='-r'
4067fi
4068echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4069echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4070reload_flag=$lt_cv_ld_reload_flag
John Criswell47fdd832003-07-14 16:52:07 +00004071case $reload_flag in
4072"" | " "*) ;;
4073*) reload_flag=" $reload_flag" ;;
4074esac
4075reload_cmds='$LD$reload_flag -o $output$reload_objs'
John Criswell7a73b802003-06-30 21:59:07 +00004076
4077echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4078echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4079if test "${lt_cv_path_NM+set}" = set; then
4080 echo $ECHO_N "(cached) $ECHO_C" >&6
4081else
4082 if test -n "$NM"; then
4083 # Let the user override the test.
4084 lt_cv_path_NM="$NM"
4085else
John Criswell47fdd832003-07-14 16:52:07 +00004086 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +00004087 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
John Criswell47fdd832003-07-14 16:52:07 +00004088 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00004089 test -z "$ac_dir" && ac_dir=.
John Criswell47fdd832003-07-14 16:52:07 +00004090 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
4091 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
John Criswell7a73b802003-06-30 21:59:07 +00004092 # Check to see if the nm accepts a BSD-compat flag.
4093 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4094 # nm: unknown option "B" ignored
4095 # Tru64's nm complains that /dev/null is an invalid object file
John Criswell47fdd832003-07-14 16:52:07 +00004096 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4097 */dev/null* | *'Invalid file or object type'*)
John Criswell7a73b802003-06-30 21:59:07 +00004098 lt_cv_path_NM="$tmp_nm -B"
4099 break
John Criswell47fdd832003-07-14 16:52:07 +00004100 ;;
4101 *)
4102 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4103 */dev/null*)
4104 lt_cv_path_NM="$tmp_nm -p"
4105 break
4106 ;;
4107 *)
4108 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4109 continue # so that we can try to find one that supports BSD flags
4110 ;;
4111 esac
4112 esac
John Criswell7a73b802003-06-30 21:59:07 +00004113 fi
4114 done
John Criswell47fdd832003-07-14 16:52:07 +00004115 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00004116 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4117fi
4118fi
John Criswell47fdd832003-07-14 16:52:07 +00004119echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4120echo "${ECHO_T}$lt_cv_path_NM" >&6
John Criswell7a73b802003-06-30 21:59:07 +00004121NM="$lt_cv_path_NM"
John Criswell7a73b802003-06-30 21:59:07 +00004122
4123echo "$as_me:$LINENO: checking whether ln -s works" >&5
4124echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4125LN_S=$as_ln_s
4126if test "$LN_S" = "ln -s"; then
4127 echo "$as_me:$LINENO: result: yes" >&5
4128echo "${ECHO_T}yes" >&6
4129else
4130 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4131echo "${ECHO_T}no, using $LN_S" >&6
4132fi
4133
John Criswell47fdd832003-07-14 16:52:07 +00004134echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4135echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00004136if test "${lt_cv_deplibs_check_method+set}" = set; then
4137 echo $ECHO_N "(cached) $ECHO_C" >&6
4138else
4139 lt_cv_file_magic_cmd='$MAGIC_CMD'
4140lt_cv_file_magic_test_file=
4141lt_cv_deplibs_check_method='unknown'
4142# Need to set the preceding variable on all platforms that support
4143# interlibrary dependencies.
4144# 'none' -- dependencies not supported.
4145# `unknown' -- same as none, but documents that we really don't know.
4146# 'pass_all' -- all dependencies passed with no checks.
4147# 'test_compile' -- check by making test program.
4148# 'file_magic [[regex]]' -- check by looking for files in library path
John Criswell47fdd832003-07-14 16:52:07 +00004149# which responds to the $file_magic_cmd with a given extended regex.
John Criswell7a73b802003-06-30 21:59:07 +00004150# If you have `file' or equivalent on your system and you're not sure
4151# whether `pass_all' will *always* work, you probably want this one.
4152
4153case $host_os in
4154aix4* | aix5*)
4155 lt_cv_deplibs_check_method=pass_all
4156 ;;
4157
4158beos*)
4159 lt_cv_deplibs_check_method=pass_all
4160 ;;
4161
4162bsdi4*)
4163 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4164 lt_cv_file_magic_cmd='/usr/bin/file -L'
4165 lt_cv_file_magic_test_file=/shlib/libc.so
4166 ;;
4167
4168cygwin* | mingw* | pw32*)
John Criswell47fdd832003-07-14 16:52:07 +00004169 # win32_libid is a shell function defined in ltmain.sh
4170 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4171 lt_cv_file_magic_cmd='win32_libid'
John Criswell7a73b802003-06-30 21:59:07 +00004172 ;;
4173
4174darwin* | rhapsody*)
John Criswell47fdd832003-07-14 16:52:07 +00004175 # this will be overwritten by pass_all, but leave it in just in case
John Criswell7a73b802003-06-30 21:59:07 +00004176 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
4177 lt_cv_file_magic_cmd='/usr/bin/file -L'
4178 case "$host_os" in
4179 rhapsody* | darwin1.[012])
John Criswell47fdd832003-07-14 16:52:07 +00004180 lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
John Criswell7a73b802003-06-30 21:59:07 +00004181 ;;
4182 *) # Darwin 1.3 on
4183 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
4184 ;;
4185 esac
John Criswell47fdd832003-07-14 16:52:07 +00004186 lt_cv_deplibs_check_method=pass_all
John Criswell7a73b802003-06-30 21:59:07 +00004187 ;;
4188
4189freebsd*)
4190 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4191 case $host_cpu in
4192 i*86 )
4193 # Not sure whether the presence of OpenBSD here was a mistake.
4194 # Let's accept both of them until this is cleared up.
4195 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4196 lt_cv_file_magic_cmd=/usr/bin/file
4197 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4198 ;;
4199 esac
4200 else
4201 lt_cv_deplibs_check_method=pass_all
4202 fi
4203 ;;
4204
4205gnu*)
4206 lt_cv_deplibs_check_method=pass_all
4207 ;;
4208
John Criswell47fdd832003-07-14 16:52:07 +00004209hpux10.20* | hpux11*)
John Criswell7a73b802003-06-30 21:59:07 +00004210 lt_cv_file_magic_cmd=/usr/bin/file
John Criswell47fdd832003-07-14 16:52:07 +00004211 case "$host_cpu" in
4212 ia64*)
4213 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4214 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4215 ;;
4216 hppa*64*)
4217 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]'
4218 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4219 ;;
4220 *)
4221 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4222 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4223 ;;
4224 esac
John Criswell7a73b802003-06-30 21:59:07 +00004225 ;;
4226
John Criswell47fdd832003-07-14 16:52:07 +00004227irix5* | irix6* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +00004228 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00004229 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +00004230 # this will be overridden with pass_all, but let us keep it just in case
4231 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4232 ;;
4233 *)
4234 case $LD in
4235 *-32|*"-32 ") libmagic=32-bit;;
4236 *-n32|*"-n32 ") libmagic=N32;;
4237 *-64|*"-64 ") libmagic=64-bit;;
4238 *) libmagic=never-match;;
4239 esac
4240 # this will be overridden with pass_all, but let us keep it just in case
4241 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4242 ;;
4243 esac
4244 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4245 lt_cv_deplibs_check_method=pass_all
4246 ;;
4247
4248# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +00004249linux*)
John Criswell7a73b802003-06-30 21:59:07 +00004250 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +00004251 alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*)
John Criswell7a73b802003-06-30 21:59:07 +00004252 lt_cv_deplibs_check_method=pass_all ;;
4253 *)
4254 # glibc up to 2.1.1 does not perform some relocations on ARM
4255 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4256 esac
4257 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4258 ;;
4259
4260netbsd*)
4261 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +00004262 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
John Criswell7a73b802003-06-30 21:59:07 +00004263 else
John Criswell47fdd832003-07-14 16:52:07 +00004264 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
John Criswell7a73b802003-06-30 21:59:07 +00004265 fi
4266 ;;
4267
4268newos6*)
4269 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4270 lt_cv_file_magic_cmd=/usr/bin/file
4271 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4272 ;;
4273
John Criswell47fdd832003-07-14 16:52:07 +00004274nto-qnx)
4275 lt_cv_deplibs_check_method=unknown
4276 ;;
4277
John Criswell7a73b802003-06-30 21:59:07 +00004278openbsd*)
4279 lt_cv_file_magic_cmd=/usr/bin/file
4280 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4281 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4282 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4283 else
4284 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4285 fi
4286 ;;
4287
4288osf3* | osf4* | osf5*)
4289 # this will be overridden with pass_all, but let us keep it just in case
4290 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4291 lt_cv_file_magic_test_file=/shlib/libc.so
4292 lt_cv_deplibs_check_method=pass_all
4293 ;;
4294
4295sco3.2v5*)
4296 lt_cv_deplibs_check_method=pass_all
4297 ;;
4298
4299solaris*)
4300 lt_cv_deplibs_check_method=pass_all
4301 lt_cv_file_magic_test_file=/lib/libc.so
4302 ;;
4303
John Criswell7a73b802003-06-30 21:59:07 +00004304sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4305 case $host_vendor in
4306 motorola)
4307 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]'
4308 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4309 ;;
4310 ncr)
4311 lt_cv_deplibs_check_method=pass_all
4312 ;;
4313 sequent)
4314 lt_cv_file_magic_cmd='/bin/file'
4315 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4316 ;;
4317 sni)
4318 lt_cv_file_magic_cmd='/bin/file'
4319 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4320 lt_cv_file_magic_test_file=/lib/libc.so
4321 ;;
John Criswell47fdd832003-07-14 16:52:07 +00004322 siemens)
4323 lt_cv_deplibs_check_method=pass_all
4324 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004325 esac
4326 ;;
John Criswell47fdd832003-07-14 16:52:07 +00004327
4328sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4329 lt_cv_deplibs_check_method=pass_all
4330 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004331esac
4332
4333fi
4334echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4335echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4336file_magic_cmd=$lt_cv_file_magic_cmd
4337deplibs_check_method=$lt_cv_deplibs_check_method
John Criswell47fdd832003-07-14 16:52:07 +00004338test -z "$deplibs_check_method" && deplibs_check_method=unknown
John Criswell7a73b802003-06-30 21:59:07 +00004339
4340
4341
4342
John Criswell47fdd832003-07-14 16:52:07 +00004343# If no C compiler was specified, use CC.
4344LTCC=${LTCC-"$CC"}
John Criswell7a73b802003-06-30 21:59:07 +00004345
John Criswell47fdd832003-07-14 16:52:07 +00004346# Allow CC to be a program name with arguments.
4347compiler=$CC
John Criswell7a73b802003-06-30 21:59:07 +00004348
John Criswell47fdd832003-07-14 16:52:07 +00004349# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4350if test "${enable_libtool_lock+set}" = set; then
4351 enableval="$enable_libtool_lock"
John Criswell7a73b802003-06-30 21:59:07 +00004352
John Criswell47fdd832003-07-14 16:52:07 +00004353fi;
4354test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
John Criswell7a73b802003-06-30 21:59:07 +00004355
John Criswell47fdd832003-07-14 16:52:07 +00004356# Some flags need to be propagated to the compiler or linker for good
4357# libtool support.
4358case $host in
4359ia64-*-hpux*)
4360 # Find out which ABI we are using.
4361 echo 'int i;' > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004362 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4363 (eval $ac_compile) 2>&5
4364 ac_status=$?
4365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4366 (exit $ac_status); }; then
John Criswell47fdd832003-07-14 16:52:07 +00004367 case `/usr/bin/file conftest.$ac_objext` in
4368 *ELF-32*)
4369 HPUX_IA64_MODE="32"
4370 ;;
4371 *ELF-64*)
4372 HPUX_IA64_MODE="64"
4373 ;;
4374 esac
4375 fi
4376 rm -rf conftest*
4377 ;;
4378*-*-irix6*)
4379 # Find out which ABI we are using.
John Criswellc764fbc2003-09-06 15:17:13 +00004380 echo '#line 4380 "configure"' > conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +00004381 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4382 (eval $ac_compile) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00004383 ac_status=$?
4384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00004385 (exit $ac_status); }; then
4386 if test "$lt_cv_prog_gnu_ld" = yes; then
4387 case `/usr/bin/file conftest.$ac_objext` in
4388 *32-bit*)
4389 LD="${LD-ld} -melf32bsmip"
4390 ;;
4391 *N32*)
4392 LD="${LD-ld} -melf32bmipn32"
4393 ;;
4394 *64-bit*)
4395 LD="${LD-ld} -melf64bmip"
4396 ;;
4397 esac
4398 else
4399 case `/usr/bin/file conftest.$ac_objext` in
4400 *32-bit*)
4401 LD="${LD-ld} -32"
4402 ;;
4403 *N32*)
4404 LD="${LD-ld} -n32"
4405 ;;
4406 *64-bit*)
4407 LD="${LD-ld} -64"
4408 ;;
4409 esac
4410 fi
4411 fi
4412 rm -rf conftest*
4413 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004414
John Criswell47fdd832003-07-14 16:52:07 +00004415x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4416 # Find out which ABI we are using.
4417 echo 'int i;' > conftest.$ac_ext
4418 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4419 (eval $ac_compile) 2>&5
4420 ac_status=$?
4421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4422 (exit $ac_status); }; then
4423 case "`/usr/bin/file conftest.o`" in
4424 *32-bit*)
4425 case $host in
4426 x86_64-*linux*)
4427 LD="${LD-ld} -m elf_i386"
4428 ;;
4429 ppc64-*linux*)
4430 LD="${LD-ld} -m elf32ppclinux"
4431 ;;
4432 s390x-*linux*)
4433 LD="${LD-ld} -m elf_s390"
4434 ;;
4435 sparc64-*linux*)
4436 LD="${LD-ld} -m elf32_sparc"
4437 ;;
4438 esac
4439 ;;
4440 *64-bit*)
4441 case $host in
4442 x86_64-*linux*)
4443 LD="${LD-ld} -m elf_x86_64"
4444 ;;
4445 ppc*-*linux*|powerpc*-*linux*)
4446 LD="${LD-ld} -m elf64ppc"
4447 ;;
4448 s390*-*linux*)
4449 LD="${LD-ld} -m elf64_s390"
4450 ;;
4451 sparc*-*linux*)
4452 LD="${LD-ld} -m elf64_sparc"
4453 ;;
4454 esac
4455 ;;
4456 esac
4457 fi
4458 rm -rf conftest*
4459 ;;
4460
4461*-*-sco3.2v5*)
4462 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4463 SAVE_CFLAGS="$CFLAGS"
4464 CFLAGS="$CFLAGS -belf"
4465 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4466echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4467if test "${lt_cv_cc_needs_belf+set}" = set; then
4468 echo $ECHO_N "(cached) $ECHO_C" >&6
4469else
4470 ac_ext=c
4471ac_cpp='$CPP $CPPFLAGS'
4472ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4473ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4474ac_compiler_gnu=$ac_cv_c_compiler_gnu
4475
4476 cat >conftest.$ac_ext <<_ACEOF
4477#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +00004478/* confdefs.h. */
4479_ACEOF
4480cat confdefs.h >>conftest.$ac_ext
4481cat >>conftest.$ac_ext <<_ACEOF
4482/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00004483
John Criswell47fdd832003-07-14 16:52:07 +00004484int
4485main ()
John Criswell7a73b802003-06-30 21:59:07 +00004486{
John Criswell7a73b802003-06-30 21:59:07 +00004487
John Criswell47fdd832003-07-14 16:52:07 +00004488 ;
4489 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00004490}
John Criswell47fdd832003-07-14 16:52:07 +00004491_ACEOF
4492rm -f conftest.$ac_objext conftest$ac_exeext
4493if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
John Criswell7a73b802003-06-30 21:59:07 +00004494 (eval $ac_link) 2>&5
4495 ac_status=$?
4496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00004497 (exit $ac_status); } &&
4498 { ac_try='test -s conftest$ac_exeext'
4499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4500 (eval $ac_try) 2>&5
4501 ac_status=$?
4502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4503 (exit $ac_status); }; }; then
4504 lt_cv_cc_needs_belf=yes
John Criswell7a73b802003-06-30 21:59:07 +00004505else
John Criswell47fdd832003-07-14 16:52:07 +00004506 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +00004507sed 's/^/| /' conftest.$ac_ext >&5
4508
John Criswell47fdd832003-07-14 16:52:07 +00004509lt_cv_cc_needs_belf=no
John Criswell7a73b802003-06-30 21:59:07 +00004510fi
John Criswell47fdd832003-07-14 16:52:07 +00004511rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4512 ac_ext=c
4513ac_cpp='$CPP $CPPFLAGS'
4514ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4515ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4516ac_compiler_gnu=$ac_cv_c_compiler_gnu
4517
John Criswell7a73b802003-06-30 21:59:07 +00004518fi
John Criswell47fdd832003-07-14 16:52:07 +00004519echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4520echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4521 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4522 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4523 CFLAGS="$SAVE_CFLAGS"
4524 fi
4525 ;;
4526
4527esac
4528
4529need_locks="$enable_libtool_lock"
4530
John Criswell7a73b802003-06-30 21:59:07 +00004531
4532
4533echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4534echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4535if test "${ac_cv_header_stdc+set}" = set; then
4536 echo $ECHO_N "(cached) $ECHO_C" >&6
4537else
4538 cat >conftest.$ac_ext <<_ACEOF
4539#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +00004540/* confdefs.h. */
4541_ACEOF
4542cat confdefs.h >>conftest.$ac_ext
4543cat >>conftest.$ac_ext <<_ACEOF
4544/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004545#include <stdlib.h>
4546#include <stdarg.h>
4547#include <string.h>
4548#include <float.h>
4549
John Criswell392aaa32003-07-22 19:18:09 +00004550int
4551main ()
4552{
4553
4554 ;
4555 return 0;
4556}
John Criswell7a73b802003-06-30 21:59:07 +00004557_ACEOF
John Criswell392aaa32003-07-22 19:18:09 +00004558rm -f conftest.$ac_objext
4559if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4560 (eval $ac_compile) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00004561 ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +00004562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell392aaa32003-07-22 19:18:09 +00004563 (exit $ac_status); } &&
4564 { ac_try='test -s conftest.$ac_objext'
4565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4566 (eval $ac_try) 2>&5
4567 ac_status=$?
4568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4569 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00004570 ac_cv_header_stdc=yes
4571else
4572 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +00004573sed 's/^/| /' conftest.$ac_ext >&5
4574
4575ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00004576fi
John Criswell392aaa32003-07-22 19:18:09 +00004577rm -f conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004578
4579if test $ac_cv_header_stdc = yes; then
4580 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4581 cat >conftest.$ac_ext <<_ACEOF
4582#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +00004583/* confdefs.h. */
4584_ACEOF
4585cat confdefs.h >>conftest.$ac_ext
4586cat >>conftest.$ac_ext <<_ACEOF
4587/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004588#include <string.h>
4589
4590_ACEOF
4591if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell392aaa32003-07-22 19:18:09 +00004592 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00004593 :
4594else
4595 ac_cv_header_stdc=no
4596fi
4597rm -f conftest*
4598
4599fi
4600
4601if test $ac_cv_header_stdc = yes; then
4602 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4603 cat >conftest.$ac_ext <<_ACEOF
4604#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +00004605/* confdefs.h. */
4606_ACEOF
4607cat confdefs.h >>conftest.$ac_ext
4608cat >>conftest.$ac_ext <<_ACEOF
4609/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004610#include <stdlib.h>
4611
4612_ACEOF
4613if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell392aaa32003-07-22 19:18:09 +00004614 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00004615 :
4616else
4617 ac_cv_header_stdc=no
4618fi
4619rm -f conftest*
4620
4621fi
4622
4623if test $ac_cv_header_stdc = yes; then
4624 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4625 if test "$cross_compiling" = yes; then
4626 :
4627else
4628 cat >conftest.$ac_ext <<_ACEOF
4629#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +00004630/* confdefs.h. */
4631_ACEOF
4632cat confdefs.h >>conftest.$ac_ext
4633cat >>conftest.$ac_ext <<_ACEOF
4634/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004635#include <ctype.h>
4636#if ((' ' & 0x0FF) == 0x020)
4637# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4638# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4639#else
John Criswell392aaa32003-07-22 19:18:09 +00004640# define ISLOWER(c) \
4641 (('a' <= (c) && (c) <= 'i') \
John Criswell7a73b802003-06-30 21:59:07 +00004642 || ('j' <= (c) && (c) <= 'r') \
4643 || ('s' <= (c) && (c) <= 'z'))
4644# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4645#endif
4646
4647#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4648int
4649main ()
4650{
4651 int i;
4652 for (i = 0; i < 256; i++)
4653 if (XOR (islower (i), ISLOWER (i))
4654 || toupper (i) != TOUPPER (i))
4655 exit(2);
4656 exit (0);
4657}
4658_ACEOF
4659rm -f conftest$ac_exeext
4660if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4661 (eval $ac_link) 2>&5
4662 ac_status=$?
4663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4664 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4666 (eval $ac_try) 2>&5
4667 ac_status=$?
4668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4669 (exit $ac_status); }; }; then
4670 :
4671else
4672 echo "$as_me: program exited with status $ac_status" >&5
4673echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +00004674sed 's/^/| /' conftest.$ac_ext >&5
4675
John Criswell7a73b802003-06-30 21:59:07 +00004676( exit $ac_status )
4677ac_cv_header_stdc=no
4678fi
John Criswell392aaa32003-07-22 19:18:09 +00004679rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004680fi
4681fi
4682fi
4683echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4684echo "${ECHO_T}$ac_cv_header_stdc" >&6
4685if test $ac_cv_header_stdc = yes; then
4686
4687cat >>confdefs.h <<\_ACEOF
4688#define STDC_HEADERS 1
4689_ACEOF
4690
4691fi
4692
4693# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4704 inttypes.h stdint.h unistd.h
4705do
4706as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4707echo "$as_me:$LINENO: checking for $ac_header" >&5
4708echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4709if eval "test \"\${$as_ac_Header+set}\" = set"; then
4710 echo $ECHO_N "(cached) $ECHO_C" >&6
4711else
4712 cat >conftest.$ac_ext <<_ACEOF
4713#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +00004714/* confdefs.h. */
4715_ACEOF
4716cat confdefs.h >>conftest.$ac_ext
4717cat >>conftest.$ac_ext <<_ACEOF
4718/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004719$ac_includes_default
4720
4721#include <$ac_header>
4722_ACEOF
4723rm -f conftest.$ac_objext
4724if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4725 (eval $ac_compile) 2>&5
4726 ac_status=$?
4727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4728 (exit $ac_status); } &&
4729 { ac_try='test -s conftest.$ac_objext'
4730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4731 (eval $ac_try) 2>&5
4732 ac_status=$?
4733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4734 (exit $ac_status); }; }; then
4735 eval "$as_ac_Header=yes"
4736else
4737 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +00004738sed 's/^/| /' conftest.$ac_ext >&5
4739
John Criswell7a73b802003-06-30 21:59:07 +00004740eval "$as_ac_Header=no"
4741fi
4742rm -f conftest.$ac_objext conftest.$ac_ext
4743fi
4744echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4745echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4746if test `eval echo '${'$as_ac_Header'}'` = yes; then
4747 cat >>confdefs.h <<_ACEOF
4748#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4749_ACEOF
4750
4751fi
4752
4753done
4754
4755
4756
4757for ac_header in dlfcn.h
4758do
4759as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4760if eval "test \"\${$as_ac_Header+set}\" = set"; then
4761 echo "$as_me:$LINENO: checking for $ac_header" >&5
4762echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4763if eval "test \"\${$as_ac_Header+set}\" = set"; then
4764 echo $ECHO_N "(cached) $ECHO_C" >&6
4765fi
4766echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4767echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4768else
4769 # Is the header compilable?
4770echo "$as_me:$LINENO: checking $ac_header usability" >&5
4771echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4772cat >conftest.$ac_ext <<_ACEOF
4773#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +00004774/* confdefs.h. */
4775_ACEOF
4776cat confdefs.h >>conftest.$ac_ext
4777cat >>conftest.$ac_ext <<_ACEOF
4778/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004779$ac_includes_default
4780#include <$ac_header>
4781_ACEOF
4782rm -f conftest.$ac_objext
4783if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4784 (eval $ac_compile) 2>&5
4785 ac_status=$?
4786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4787 (exit $ac_status); } &&
4788 { ac_try='test -s conftest.$ac_objext'
4789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4790 (eval $ac_try) 2>&5
4791 ac_status=$?
4792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4793 (exit $ac_status); }; }; then
4794 ac_header_compiler=yes
4795else
4796 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +00004797sed 's/^/| /' conftest.$ac_ext >&5
4798
John Criswell7a73b802003-06-30 21:59:07 +00004799ac_header_compiler=no
4800fi
4801rm -f conftest.$ac_objext conftest.$ac_ext
4802echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4803echo "${ECHO_T}$ac_header_compiler" >&6
4804
4805# Is the header present?
4806echo "$as_me:$LINENO: checking $ac_header presence" >&5
4807echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4808cat >conftest.$ac_ext <<_ACEOF
4809#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +00004810/* confdefs.h. */
4811_ACEOF
4812cat confdefs.h >>conftest.$ac_ext
4813cat >>conftest.$ac_ext <<_ACEOF
4814/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004815#include <$ac_header>
4816_ACEOF
4817if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4818 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4819 ac_status=$?
John Criswell392aaa32003-07-22 19:18:09 +00004820 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00004821 rm -f conftest.er1
4822 cat conftest.err >&5
4823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4824 (exit $ac_status); } >/dev/null; then
4825 if test -s conftest.err; then
4826 ac_cpp_err=$ac_c_preproc_warn_flag
4827 else
4828 ac_cpp_err=
4829 fi
4830else
4831 ac_cpp_err=yes
4832fi
4833if test -z "$ac_cpp_err"; then
4834 ac_header_preproc=yes
4835else
4836 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +00004837sed 's/^/| /' conftest.$ac_ext >&5
4838
John Criswell7a73b802003-06-30 21:59:07 +00004839 ac_header_preproc=no
4840fi
4841rm -f conftest.err conftest.$ac_ext
4842echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4843echo "${ECHO_T}$ac_header_preproc" >&6
4844
4845# So? What about this header?
4846case $ac_header_compiler:$ac_header_preproc in
4847 yes:no )
4848 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4849echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4850 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell392aaa32003-07-22 19:18:09 +00004851echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4852 (
4853 cat <<\_ASBOX
4854## ------------------------------------ ##
4855## Report this to bug-autoconf@gnu.org. ##
4856## ------------------------------------ ##
4857_ASBOX
4858 ) |
4859 sed "s/^/$as_me: WARNING: /" >&2
4860 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004861 no:yes )
4862 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4863echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4864 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4865echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4866 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell392aaa32003-07-22 19:18:09 +00004867echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4868 (
4869 cat <<\_ASBOX
4870## ------------------------------------ ##
4871## Report this to bug-autoconf@gnu.org. ##
4872## ------------------------------------ ##
4873_ASBOX
4874 ) |
4875 sed "s/^/$as_me: WARNING: /" >&2
4876 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004877esac
4878echo "$as_me:$LINENO: checking for $ac_header" >&5
4879echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4880if eval "test \"\${$as_ac_Header+set}\" = set"; then
4881 echo $ECHO_N "(cached) $ECHO_C" >&6
4882else
4883 eval "$as_ac_Header=$ac_header_preproc"
4884fi
4885echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4886echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4887
4888fi
4889if test `eval echo '${'$as_ac_Header'}'` = yes; then
4890 cat >>confdefs.h <<_ACEOF
4891#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4892_ACEOF
4893
4894fi
4895
4896done
4897
John Criswell47fdd832003-07-14 16:52:07 +00004898ac_ext=cc
4899ac_cpp='$CXXCPP $CPPFLAGS'
4900ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4901ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4902ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4903echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4904echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4905if test -z "$CXXCPP"; then
4906 if test "${ac_cv_prog_CXXCPP+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00004907 echo $ECHO_N "(cached) $ECHO_C" >&6
4908else
John Criswell47fdd832003-07-14 16:52:07 +00004909 # Double quotes because CXXCPP needs to be expanded
4910 for CXXCPP in "$CXX -E" "/lib/cpp"
4911 do
4912 ac_preproc_ok=false
4913for ac_cxx_preproc_warn_flag in '' yes
4914do
4915 # Use a header file that comes with gcc, so configuring glibc
4916 # with a fresh cross-compiler works.
John Criswell392aaa32003-07-22 19:18:09 +00004917 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4918 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +00004919 # On the NeXT, cc -E runs the code through the compiler's parser,
4920 # not just through cpp. "Syntax error" is here to catch this case.
4921 cat >conftest.$ac_ext <<_ACEOF
4922#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +00004923/* confdefs.h. */
4924_ACEOF
4925cat confdefs.h >>conftest.$ac_ext
4926cat >>conftest.$ac_ext <<_ACEOF
4927/* end confdefs.h. */
4928#ifdef __STDC__
4929# include <limits.h>
4930#else
4931# include <assert.h>
4932#endif
John Criswell47fdd832003-07-14 16:52:07 +00004933 Syntax error
4934_ACEOF
4935if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4936 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4937 ac_status=$?
John Criswell392aaa32003-07-22 19:18:09 +00004938 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00004939 rm -f conftest.er1
4940 cat conftest.err >&5
4941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4942 (exit $ac_status); } >/dev/null; then
4943 if test -s conftest.err; then
4944 ac_cpp_err=$ac_cxx_preproc_warn_flag
John Criswell7a73b802003-06-30 21:59:07 +00004945 else
John Criswell47fdd832003-07-14 16:52:07 +00004946 ac_cpp_err=
John Criswell7a73b802003-06-30 21:59:07 +00004947 fi
John Criswell47fdd832003-07-14 16:52:07 +00004948else
4949 ac_cpp_err=yes
4950fi
4951if test -z "$ac_cpp_err"; then
4952 :
4953else
4954 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +00004955sed 's/^/| /' conftest.$ac_ext >&5
4956
John Criswell47fdd832003-07-14 16:52:07 +00004957 # Broken: fails on valid input.
4958continue
4959fi
4960rm -f conftest.err conftest.$ac_ext
4961
4962 # OK, works on sane cases. Now check whether non-existent headers
4963 # can be detected and how.
4964 cat >conftest.$ac_ext <<_ACEOF
4965#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +00004966/* confdefs.h. */
4967_ACEOF
4968cat confdefs.h >>conftest.$ac_ext
4969cat >>conftest.$ac_ext <<_ACEOF
4970/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00004971#include <ac_nonexistent.h>
4972_ACEOF
4973if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4974 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4975 ac_status=$?
John Criswell392aaa32003-07-22 19:18:09 +00004976 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00004977 rm -f conftest.er1
4978 cat conftest.err >&5
4979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4980 (exit $ac_status); } >/dev/null; then
4981 if test -s conftest.err; then
4982 ac_cpp_err=$ac_cxx_preproc_warn_flag
4983 else
4984 ac_cpp_err=
4985 fi
4986else
4987 ac_cpp_err=yes
4988fi
4989if test -z "$ac_cpp_err"; then
4990 # Broken: success on invalid input.
4991continue
4992else
4993 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +00004994sed 's/^/| /' conftest.$ac_ext >&5
4995
John Criswell47fdd832003-07-14 16:52:07 +00004996 # Passes both tests.
4997ac_preproc_ok=:
4998break
4999fi
5000rm -f conftest.err conftest.$ac_ext
5001
5002done
5003# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5004rm -f conftest.err conftest.$ac_ext
5005if $ac_preproc_ok; then
5006 break
John Criswell7a73b802003-06-30 21:59:07 +00005007fi
5008
John Criswell47fdd832003-07-14 16:52:07 +00005009 done
5010 ac_cv_prog_CXXCPP=$CXXCPP
5011
5012fi
5013 CXXCPP=$ac_cv_prog_CXXCPP
5014else
5015 ac_cv_prog_CXXCPP=$CXXCPP
5016fi
5017echo "$as_me:$LINENO: result: $CXXCPP" >&5
5018echo "${ECHO_T}$CXXCPP" >&6
5019ac_preproc_ok=false
5020for ac_cxx_preproc_warn_flag in '' yes
5021do
5022 # Use a header file that comes with gcc, so configuring glibc
5023 # with a fresh cross-compiler works.
John Criswell392aaa32003-07-22 19:18:09 +00005024 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5025 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +00005026 # On the NeXT, cc -E runs the code through the compiler's parser,
5027 # not just through cpp. "Syntax error" is here to catch this case.
5028 cat >conftest.$ac_ext <<_ACEOF
5029#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +00005030/* confdefs.h. */
5031_ACEOF
5032cat confdefs.h >>conftest.$ac_ext
5033cat >>conftest.$ac_ext <<_ACEOF
5034/* end confdefs.h. */
5035#ifdef __STDC__
5036# include <limits.h>
5037#else
5038# include <assert.h>
5039#endif
John Criswell47fdd832003-07-14 16:52:07 +00005040 Syntax error
5041_ACEOF
5042if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5043 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5044 ac_status=$?
John Criswell392aaa32003-07-22 19:18:09 +00005045 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00005046 rm -f conftest.er1
5047 cat conftest.err >&5
5048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5049 (exit $ac_status); } >/dev/null; then
5050 if test -s conftest.err; then
5051 ac_cpp_err=$ac_cxx_preproc_warn_flag
5052 else
5053 ac_cpp_err=
5054 fi
5055else
5056 ac_cpp_err=yes
5057fi
5058if test -z "$ac_cpp_err"; then
5059 :
5060else
5061 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +00005062sed 's/^/| /' conftest.$ac_ext >&5
5063
John Criswell47fdd832003-07-14 16:52:07 +00005064 # Broken: fails on valid input.
5065continue
5066fi
5067rm -f conftest.err conftest.$ac_ext
5068
5069 # OK, works on sane cases. Now check whether non-existent headers
5070 # can be detected and how.
5071 cat >conftest.$ac_ext <<_ACEOF
5072#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +00005073/* confdefs.h. */
5074_ACEOF
5075cat confdefs.h >>conftest.$ac_ext
5076cat >>conftest.$ac_ext <<_ACEOF
5077/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00005078#include <ac_nonexistent.h>
5079_ACEOF
5080if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5081 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5082 ac_status=$?
John Criswell392aaa32003-07-22 19:18:09 +00005083 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00005084 rm -f conftest.er1
5085 cat conftest.err >&5
5086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5087 (exit $ac_status); } >/dev/null; then
5088 if test -s conftest.err; then
5089 ac_cpp_err=$ac_cxx_preproc_warn_flag
5090 else
5091 ac_cpp_err=
5092 fi
5093else
5094 ac_cpp_err=yes
5095fi
5096if test -z "$ac_cpp_err"; then
5097 # Broken: success on invalid input.
5098continue
5099else
5100 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +00005101sed 's/^/| /' conftest.$ac_ext >&5
5102
John Criswell47fdd832003-07-14 16:52:07 +00005103 # Passes both tests.
5104ac_preproc_ok=:
5105break
5106fi
5107rm -f conftest.err conftest.$ac_ext
5108
5109done
5110# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5111rm -f conftest.err conftest.$ac_ext
5112if $ac_preproc_ok; then
5113 :
5114else
John Criswell392aaa32003-07-22 19:18:09 +00005115 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5116See \`config.log' for more details." >&5
5117echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5118See \`config.log' for more details." >&2;}
John Criswell47fdd832003-07-14 16:52:07 +00005119 { (exit 1); exit 1; }; }
5120fi
5121
5122ac_ext=cc
5123ac_cpp='$CXXCPP $CPPFLAGS'
5124ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5125ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5126ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5127
5128
5129ac_ext=f
5130ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5131ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5132ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5133if test -n "$ac_tool_prefix"; then
John Criswell392aaa32003-07-22 19:18:09 +00005134 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 +00005135 do
5136 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5137set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5138echo "$as_me:$LINENO: checking for $ac_word" >&5
5139echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5140if test "${ac_cv_prog_F77+set}" = set; then
5141 echo $ECHO_N "(cached) $ECHO_C" >&6
5142else
5143 if test -n "$F77"; then
5144 ac_cv_prog_F77="$F77" # Let the user override the test.
5145else
5146as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5147for as_dir in $PATH
5148do
5149 IFS=$as_save_IFS
5150 test -z "$as_dir" && as_dir=.
5151 for ac_exec_ext in '' $ac_executable_extensions; do
5152 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5153 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5154 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5155 break 2
5156 fi
5157done
5158done
5159
5160fi
5161fi
5162F77=$ac_cv_prog_F77
5163if test -n "$F77"; then
5164 echo "$as_me:$LINENO: result: $F77" >&5
5165echo "${ECHO_T}$F77" >&6
5166else
5167 echo "$as_me:$LINENO: result: no" >&5
5168echo "${ECHO_T}no" >&6
5169fi
5170
5171 test -n "$F77" && break
5172 done
5173fi
5174if test -z "$F77"; then
5175 ac_ct_F77=$F77
John Criswell392aaa32003-07-22 19:18:09 +00005176 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 +00005177do
5178 # Extract the first word of "$ac_prog", so it can be a program name with args.
5179set dummy $ac_prog; ac_word=$2
5180echo "$as_me:$LINENO: checking for $ac_word" >&5
5181echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5182if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5183 echo $ECHO_N "(cached) $ECHO_C" >&6
5184else
5185 if test -n "$ac_ct_F77"; then
5186 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5187else
5188as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5189for as_dir in $PATH
5190do
5191 IFS=$as_save_IFS
5192 test -z "$as_dir" && as_dir=.
5193 for ac_exec_ext in '' $ac_executable_extensions; do
5194 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5195 ac_cv_prog_ac_ct_F77="$ac_prog"
5196 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5197 break 2
5198 fi
5199done
5200done
5201
5202fi
5203fi
5204ac_ct_F77=$ac_cv_prog_ac_ct_F77
5205if test -n "$ac_ct_F77"; then
5206 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5207echo "${ECHO_T}$ac_ct_F77" >&6
5208else
5209 echo "$as_me:$LINENO: result: no" >&5
5210echo "${ECHO_T}no" >&6
5211fi
5212
5213 test -n "$ac_ct_F77" && break
5214done
5215
5216 F77=$ac_ct_F77
5217fi
5218
5219
5220# Provide some information about the compiler.
John Criswellc764fbc2003-09-06 15:17:13 +00005221echo "$as_me:5221:" \
John Criswell47fdd832003-07-14 16:52:07 +00005222 "checking for Fortran 77 compiler version" >&5
5223ac_compiler=`set X $ac_compile; echo $2`
5224{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5225 (eval $ac_compiler --version </dev/null >&5) 2>&5
5226 ac_status=$?
5227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5228 (exit $ac_status); }
5229{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5230 (eval $ac_compiler -v </dev/null >&5) 2>&5
5231 ac_status=$?
5232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5233 (exit $ac_status); }
5234{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5235 (eval $ac_compiler -V </dev/null >&5) 2>&5
5236 ac_status=$?
5237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5238 (exit $ac_status); }
5239
5240# If we don't use `.F' as extension, the preprocessor is not run on the
5241# input file.
5242ac_save_ext=$ac_ext
5243ac_ext=F
5244echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5245echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5246if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5247 echo $ECHO_N "(cached) $ECHO_C" >&6
5248else
5249 cat >conftest.$ac_ext <<_ACEOF
5250 program main
5251#ifndef __GNUC__
5252 choke me
5253#endif
5254
5255 end
5256_ACEOF
5257rm -f conftest.$ac_objext
5258if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5259 (eval $ac_compile) 2>&5
5260 ac_status=$?
5261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5262 (exit $ac_status); } &&
5263 { ac_try='test -s conftest.$ac_objext'
5264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5265 (eval $ac_try) 2>&5
5266 ac_status=$?
5267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5268 (exit $ac_status); }; }; then
5269 ac_compiler_gnu=yes
5270else
5271 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +00005272sed 's/^/| /' conftest.$ac_ext >&5
5273
John Criswell47fdd832003-07-14 16:52:07 +00005274ac_compiler_gnu=no
5275fi
5276rm -f conftest.$ac_objext conftest.$ac_ext
5277ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5278
5279fi
5280echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5281echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5282ac_ext=$ac_save_ext
5283G77=`test $ac_compiler_gnu = yes && echo yes`
5284ac_test_FFLAGS=${FFLAGS+set}
5285ac_save_FFLAGS=$FFLAGS
5286FFLAGS=
5287echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5288echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5289if test "${ac_cv_prog_f77_g+set}" = set; then
5290 echo $ECHO_N "(cached) $ECHO_C" >&6
5291else
5292 FFLAGS=-g
5293cat >conftest.$ac_ext <<_ACEOF
5294 program main
5295
5296 end
5297_ACEOF
5298rm -f conftest.$ac_objext
5299if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5300 (eval $ac_compile) 2>&5
5301 ac_status=$?
5302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5303 (exit $ac_status); } &&
5304 { ac_try='test -s conftest.$ac_objext'
5305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5306 (eval $ac_try) 2>&5
5307 ac_status=$?
5308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5309 (exit $ac_status); }; }; then
5310 ac_cv_prog_f77_g=yes
5311else
5312 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +00005313sed 's/^/| /' conftest.$ac_ext >&5
5314
John Criswell47fdd832003-07-14 16:52:07 +00005315ac_cv_prog_f77_g=no
5316fi
5317rm -f conftest.$ac_objext conftest.$ac_ext
5318
5319fi
5320echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5321echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5322if test "$ac_test_FFLAGS" = set; then
5323 FFLAGS=$ac_save_FFLAGS
5324elif test $ac_cv_prog_f77_g = yes; then
5325 if test "$G77" = yes; then
5326 FFLAGS="-g -O2"
5327 else
5328 FFLAGS="-g"
5329 fi
5330else
5331 if test "$G77" = yes; then
5332 FFLAGS="-O2"
5333 else
5334 FFLAGS=
5335 fi
5336fi
5337ac_ext=c
5338ac_cpp='$CPP $CPPFLAGS'
5339ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5340ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5341ac_compiler_gnu=$ac_cv_c_compiler_gnu
5342
5343
5344
5345# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5346
5347# find the maximum length of command line arguments
5348echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5349echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5350if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5351 echo $ECHO_N "(cached) $ECHO_C" >&6
5352else
5353 i=0
5354 testring="ABCD"
5355
5356 case $build_os in
5357 msdosdjgpp*)
5358 # On DJGPP, this test can blow up pretty badly due to problems in libc
5359 # (any single argument exceeding 2000 bytes causes a buffer overrun
5360 # during glob expansion). Even if it were fixed, the result of this
5361 # check would be larger than it should be.
5362 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5363 ;;
5364
5365 gnu*)
5366 # Under GNU Hurd, this test is not required because there is
5367 # no limit to the length of command line arguments.
5368 # Libtool will interpret -1 as no limit whatsoever
5369 lt_cv_sys_max_cmd_len=-1;
5370 ;;
5371
5372 cygwin* | mingw*)
5373 # On Win9x/ME, this test blows up -- it succeeds, but takes
5374 # about 5 minutes as the teststring grows exponentially.
5375 # Worse, since 9x/ME are not pre-emptively multitasking,
5376 # you end up with a "frozen" computer, even though with patience
5377 # the test eventually succeeds (with a max line length of 256k).
5378 # Instead, let's just punt: use the minimum linelength reported by
5379 # all of the supported platforms: 8192 (on NT/2K/XP).
5380 lt_cv_sys_max_cmd_len=8192;
5381 ;;
5382
5383 *)
5384 # If test is not a shell built-in, we'll probably end up computing a
5385 # maximum length that is only half of the actual maximum length, but
5386 # we can't tell.
5387 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5388 = "XX$testring") >/dev/null 2>&1 &&
5389 new_result=`expr "X$testring" : ".*" 2>&1` &&
5390 lt_cv_sys_max_cmd_len=$new_result &&
5391 test $i != 17 # 1/2 MB should be enough
5392 do
5393 i=`expr $i + 1`
5394 testring=$testring$testring
5395 done
5396 testring=
5397 # Add a significant safety factor because C++ compilers can tack on massive
5398 # amounts of additional arguments before passing them to the linker.
5399 # It appears as though 1/2 is a usable value.
5400 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5401 ;;
5402 esac
5403
5404fi
5405
5406if test -n $lt_cv_sys_max_cmd_len ; then
5407 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5408echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5409else
5410 echo "$as_me:$LINENO: result: none" >&5
5411echo "${ECHO_T}none" >&6
5412fi
5413
5414
5415
5416
5417# Check for command to grab the raw symbol name followed by C symbol from nm.
5418echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5419echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5420if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5421 echo $ECHO_N "(cached) $ECHO_C" >&6
5422else
5423
5424# These are sane defaults that work on at least a few old systems.
5425# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5426
5427# Character class describing NM global symbol codes.
5428symcode='[BCDEGRST]'
5429
5430# Regexp to match symbols that can be accessed directly from C.
5431sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5432
5433# Transform the above into a raw symbol and a C symbol.
5434symxfrm='\1 \2\3 \3'
5435
5436# Transform an extracted symbol line into a proper C declaration
5437lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5438
5439# Transform an extracted symbol line into symbol name and symbol address
5440lt_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'"
5441
5442# Define system-specific variables.
5443case $host_os in
5444aix*)
5445 symcode='[BCDT]'
5446 ;;
5447cygwin* | mingw* | pw32*)
5448 symcode='[ABCDGISTW]'
5449 ;;
5450hpux*) # Its linker distinguishes data from code symbols
5451 if test "$host_cpu" = ia64; then
5452 symcode='[ABCDEGRST]'
5453 fi
5454 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5455 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'"
5456 ;;
5457irix* | nonstopux*)
5458 symcode='[BCDEGRST]'
5459 ;;
5460osf*)
5461 symcode='[BCDEGQRST]'
5462 ;;
5463solaris* | sysv5*)
5464 symcode='[BDT]'
5465 ;;
5466sysv4)
5467 symcode='[DFNSTU]'
5468 ;;
5469esac
5470
5471# Handle CRLF in mingw tool chain
5472opt_cr=
5473case $build_os in
5474mingw*)
5475 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5476 ;;
5477esac
5478
5479# If we're using GNU nm, then use its standard symbol codes.
5480case `$NM -V 2>&1` in
5481*GNU* | *'with BFD'*)
5482 symcode='[ABCDGISTW]' ;;
5483esac
5484
5485# Try without a prefix undercore, then with it.
5486for ac_symprfx in "" "_"; do
5487
5488 # Write the raw and C identifiers.
5489 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5490
5491 # Check to see that the pipe works correctly.
5492 pipe_works=no
5493
5494 rm -f conftest*
5495 cat > conftest.$ac_ext <<EOF
5496#ifdef __cplusplus
5497extern "C" {
5498#endif
5499char nm_test_var;
5500void nm_test_func(){}
5501#ifdef __cplusplus
5502}
5503#endif
5504int main(){nm_test_var='a';nm_test_func();return(0);}
5505EOF
5506
5507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5508 (eval $ac_compile) 2>&5
5509 ac_status=$?
5510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5511 (exit $ac_status); }; then
5512 # Now try to grab the symbols.
5513 nlist=conftest.nm
5514 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5515 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5516 ac_status=$?
5517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5518 (exit $ac_status); } && test -s "$nlist"; then
5519 # Try sorting and uniquifying the output.
5520 if sort "$nlist" | uniq > "$nlist"T; then
5521 mv -f "$nlist"T "$nlist"
5522 else
5523 rm -f "$nlist"T
5524 fi
5525
5526 # Make sure that we snagged all the symbols we need.
5527 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5528 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5529 cat <<EOF > conftest.$ac_ext
5530#ifdef __cplusplus
5531extern "C" {
5532#endif
5533
5534EOF
5535 # Now generate the symbol file.
5536 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5537
5538 cat <<EOF >> conftest.$ac_ext
5539#if defined (__STDC__) && __STDC__
5540# define lt_ptr_t void *
5541#else
5542# define lt_ptr_t char *
5543# define const
5544#endif
5545
5546/* The mapping between symbol names and symbols. */
5547const struct {
5548 const char *name;
5549 lt_ptr_t address;
5550}
5551lt_preloaded_symbols[] =
5552{
5553EOF
5554 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5555 cat <<\EOF >> conftest.$ac_ext
5556 {0, (lt_ptr_t) 0}
5557};
5558
5559#ifdef __cplusplus
5560}
5561#endif
5562EOF
5563 # Now try linking the two files.
5564 mv conftest.$ac_objext conftstm.$ac_objext
5565 lt_save_LIBS="$LIBS"
5566 lt_save_CFLAGS="$CFLAGS"
5567 LIBS="conftstm.$ac_objext"
5568 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5569 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5570 (eval $ac_link) 2>&5
5571 ac_status=$?
5572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5573 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5574 pipe_works=yes
5575 fi
5576 LIBS="$lt_save_LIBS"
5577 CFLAGS="$lt_save_CFLAGS"
5578 else
5579 echo "cannot find nm_test_func in $nlist" >&5
5580 fi
5581 else
5582 echo "cannot find nm_test_var in $nlist" >&5
5583 fi
5584 else
5585 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5586 fi
5587 else
5588 echo "$progname: failed program was:" >&5
5589 cat conftest.$ac_ext >&5
5590 fi
5591 rm -f conftest* conftst*
5592
5593 # Do not use the global_symbol_pipe unless it works.
5594 if test "$pipe_works" = yes; then
5595 break
5596 else
5597 lt_cv_sys_global_symbol_pipe=
5598 fi
5599done
5600
5601fi
5602
5603if test -z "$lt_cv_sys_global_symbol_pipe"; then
5604 lt_cv_sys_global_symbol_to_cdecl=
5605fi
5606if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5607 echo "$as_me:$LINENO: result: failed" >&5
5608echo "${ECHO_T}failed" >&6
5609else
5610 echo "$as_me:$LINENO: result: ok" >&5
5611echo "${ECHO_T}ok" >&6
5612fi
5613
5614echo "$as_me:$LINENO: checking for objdir" >&5
5615echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5616if test "${lt_cv_objdir+set}" = set; then
5617 echo $ECHO_N "(cached) $ECHO_C" >&6
5618else
5619 rm -f .libs 2>/dev/null
5620mkdir .libs 2>/dev/null
5621if test -d .libs; then
5622 lt_cv_objdir=.libs
5623else
5624 # MS-DOS does not allow filenames that begin with a dot.
5625 lt_cv_objdir=_libs
5626fi
5627rmdir .libs 2>/dev/null
5628fi
5629echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5630echo "${ECHO_T}$lt_cv_objdir" >&6
5631objdir=$lt_cv_objdir
5632
5633
5634
5635
5636
5637case $host_os in
5638aix3*)
5639 # AIX sometimes has problems with the GCC collect2 program. For some
5640 # reason, if we set the COLLECT_NAMES environment variable, the problems
5641 # vanish in a puff of smoke.
5642 if test "X${COLLECT_NAMES+set}" != Xset; then
5643 COLLECT_NAMES=
5644 export COLLECT_NAMES
John Criswell7a73b802003-06-30 21:59:07 +00005645 fi
5646 ;;
5647esac
5648
John Criswell47fdd832003-07-14 16:52:07 +00005649# Sed substitution that helps us do robust quoting. It backslashifies
5650# metacharacters that are still active within double-quoted strings.
5651Xsed='sed -e s/^X//'
5652sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5653
5654# Same as above, but do not quote variable references.
5655double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5656
5657# Sed substitution to delay expansion of an escaped shell variable in a
5658# double_quote_subst'ed string.
5659delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5660
5661# Sed substitution to avoid accidental globbing in evaled expressions
5662no_glob_subst='s/\*/\\\*/g'
5663
5664# Constants:
5665rm="rm -f"
5666
5667# Global variables:
John Criswell8d4221e2003-07-23 16:52:50 +00005668default_ofile=mklib
John Criswell47fdd832003-07-14 16:52:07 +00005669can_build_shared=yes
5670
5671# All known linkers require a `.a' archive for static linking (except M$VC,
5672# which needs '.lib').
5673libext=a
5674ltmain="$ac_aux_dir/ltmain.sh"
5675ofile="$default_ofile"
5676with_gnu_ld="$lt_cv_prog_gnu_ld"
5677
5678if test -n "$ac_tool_prefix"; then
5679 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5680set dummy ${ac_tool_prefix}ar; ac_word=$2
5681echo "$as_me:$LINENO: checking for $ac_word" >&5
5682echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5683if test "${ac_cv_prog_AR+set}" = set; then
5684 echo $ECHO_N "(cached) $ECHO_C" >&6
5685else
5686 if test -n "$AR"; then
5687 ac_cv_prog_AR="$AR" # Let the user override the test.
5688else
5689as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5690for as_dir in $PATH
5691do
5692 IFS=$as_save_IFS
5693 test -z "$as_dir" && as_dir=.
5694 for ac_exec_ext in '' $ac_executable_extensions; do
5695 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5696 ac_cv_prog_AR="${ac_tool_prefix}ar"
5697 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5698 break 2
5699 fi
5700done
5701done
5702
5703fi
5704fi
5705AR=$ac_cv_prog_AR
5706if test -n "$AR"; then
5707 echo "$as_me:$LINENO: result: $AR" >&5
5708echo "${ECHO_T}$AR" >&6
5709else
5710 echo "$as_me:$LINENO: result: no" >&5
5711echo "${ECHO_T}no" >&6
5712fi
5713
5714fi
5715if test -z "$ac_cv_prog_AR"; then
5716 ac_ct_AR=$AR
5717 # Extract the first word of "ar", so it can be a program name with args.
5718set dummy ar; ac_word=$2
5719echo "$as_me:$LINENO: checking for $ac_word" >&5
5720echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5721if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5722 echo $ECHO_N "(cached) $ECHO_C" >&6
5723else
5724 if test -n "$ac_ct_AR"; then
5725 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5726else
5727as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5728for as_dir in $PATH
5729do
5730 IFS=$as_save_IFS
5731 test -z "$as_dir" && as_dir=.
5732 for ac_exec_ext in '' $ac_executable_extensions; do
5733 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5734 ac_cv_prog_ac_ct_AR="ar"
5735 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5736 break 2
5737 fi
5738done
5739done
5740
5741 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5742fi
5743fi
5744ac_ct_AR=$ac_cv_prog_ac_ct_AR
5745if test -n "$ac_ct_AR"; then
5746 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5747echo "${ECHO_T}$ac_ct_AR" >&6
5748else
5749 echo "$as_me:$LINENO: result: no" >&5
5750echo "${ECHO_T}no" >&6
5751fi
5752
5753 AR=$ac_ct_AR
5754else
5755 AR="$ac_cv_prog_AR"
5756fi
5757
John Criswell7a73b802003-06-30 21:59:07 +00005758if test -n "$ac_tool_prefix"; then
5759 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5760set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5761echo "$as_me:$LINENO: checking for $ac_word" >&5
5762echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5763if test "${ac_cv_prog_RANLIB+set}" = set; then
5764 echo $ECHO_N "(cached) $ECHO_C" >&6
5765else
5766 if test -n "$RANLIB"; then
5767 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5768else
5769as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5770for as_dir in $PATH
5771do
5772 IFS=$as_save_IFS
5773 test -z "$as_dir" && as_dir=.
5774 for ac_exec_ext in '' $ac_executable_extensions; do
5775 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5776 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5777 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5778 break 2
5779 fi
5780done
5781done
5782
5783fi
5784fi
5785RANLIB=$ac_cv_prog_RANLIB
5786if test -n "$RANLIB"; then
5787 echo "$as_me:$LINENO: result: $RANLIB" >&5
5788echo "${ECHO_T}$RANLIB" >&6
5789else
5790 echo "$as_me:$LINENO: result: no" >&5
5791echo "${ECHO_T}no" >&6
5792fi
5793
5794fi
5795if test -z "$ac_cv_prog_RANLIB"; then
5796 ac_ct_RANLIB=$RANLIB
5797 # Extract the first word of "ranlib", so it can be a program name with args.
5798set dummy ranlib; ac_word=$2
5799echo "$as_me:$LINENO: checking for $ac_word" >&5
5800echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5801if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5802 echo $ECHO_N "(cached) $ECHO_C" >&6
5803else
5804 if test -n "$ac_ct_RANLIB"; then
5805 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5806else
5807as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5808for as_dir in $PATH
5809do
5810 IFS=$as_save_IFS
5811 test -z "$as_dir" && as_dir=.
5812 for ac_exec_ext in '' $ac_executable_extensions; do
5813 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5814 ac_cv_prog_ac_ct_RANLIB="ranlib"
5815 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5816 break 2
5817 fi
5818done
5819done
5820
5821 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5822fi
5823fi
5824ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5825if test -n "$ac_ct_RANLIB"; then
5826 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5827echo "${ECHO_T}$ac_ct_RANLIB" >&6
5828else
5829 echo "$as_me:$LINENO: result: no" >&5
5830echo "${ECHO_T}no" >&6
5831fi
5832
5833 RANLIB=$ac_ct_RANLIB
5834else
5835 RANLIB="$ac_cv_prog_RANLIB"
5836fi
5837
5838if test -n "$ac_tool_prefix"; then
5839 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5840set dummy ${ac_tool_prefix}strip; ac_word=$2
5841echo "$as_me:$LINENO: checking for $ac_word" >&5
5842echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5843if test "${ac_cv_prog_STRIP+set}" = set; then
5844 echo $ECHO_N "(cached) $ECHO_C" >&6
5845else
5846 if test -n "$STRIP"; then
5847 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5848else
5849as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5850for as_dir in $PATH
5851do
5852 IFS=$as_save_IFS
5853 test -z "$as_dir" && as_dir=.
5854 for ac_exec_ext in '' $ac_executable_extensions; do
5855 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5856 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5857 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5858 break 2
5859 fi
5860done
5861done
5862
5863fi
5864fi
5865STRIP=$ac_cv_prog_STRIP
5866if test -n "$STRIP"; then
5867 echo "$as_me:$LINENO: result: $STRIP" >&5
5868echo "${ECHO_T}$STRIP" >&6
5869else
5870 echo "$as_me:$LINENO: result: no" >&5
5871echo "${ECHO_T}no" >&6
5872fi
5873
5874fi
5875if test -z "$ac_cv_prog_STRIP"; then
5876 ac_ct_STRIP=$STRIP
5877 # Extract the first word of "strip", so it can be a program name with args.
5878set dummy strip; ac_word=$2
5879echo "$as_me:$LINENO: checking for $ac_word" >&5
5880echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5881if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5882 echo $ECHO_N "(cached) $ECHO_C" >&6
5883else
5884 if test -n "$ac_ct_STRIP"; then
5885 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5886else
5887as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5888for as_dir in $PATH
5889do
5890 IFS=$as_save_IFS
5891 test -z "$as_dir" && as_dir=.
5892 for ac_exec_ext in '' $ac_executable_extensions; do
5893 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5894 ac_cv_prog_ac_ct_STRIP="strip"
5895 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5896 break 2
5897 fi
5898done
5899done
5900
5901 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5902fi
5903fi
5904ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5905if test -n "$ac_ct_STRIP"; then
5906 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5907echo "${ECHO_T}$ac_ct_STRIP" >&6
5908else
5909 echo "$as_me:$LINENO: result: no" >&5
5910echo "${ECHO_T}no" >&6
5911fi
5912
5913 STRIP=$ac_ct_STRIP
5914else
5915 STRIP="$ac_cv_prog_STRIP"
5916fi
5917
5918
John Criswell7a73b802003-06-30 21:59:07 +00005919old_CC="$CC"
5920old_CFLAGS="$CFLAGS"
5921
5922# Set sane defaults for various variables
5923test -z "$AR" && AR=ar
5924test -z "$AR_FLAGS" && AR_FLAGS=cru
5925test -z "$AS" && AS=as
5926test -z "$CC" && CC=cc
John Criswell47fdd832003-07-14 16:52:07 +00005927test -z "$LTCC" && LTCC=$CC
John Criswell7a73b802003-06-30 21:59:07 +00005928test -z "$DLLTOOL" && DLLTOOL=dlltool
5929test -z "$LD" && LD=ld
5930test -z "$LN_S" && LN_S="ln -s"
5931test -z "$MAGIC_CMD" && MAGIC_CMD=file
5932test -z "$NM" && NM=nm
John Criswell47fdd832003-07-14 16:52:07 +00005933test -z "$SED" && SED=sed
John Criswell7a73b802003-06-30 21:59:07 +00005934test -z "$OBJDUMP" && OBJDUMP=objdump
5935test -z "$RANLIB" && RANLIB=:
5936test -z "$STRIP" && STRIP=:
5937test -z "$ac_objext" && ac_objext=o
5938
John Criswell7a73b802003-06-30 21:59:07 +00005939# Determine commands to create old-style static archives.
5940old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5941old_postinstall_cmds='chmod 644 $oldlib'
5942old_postuninstall_cmds=
5943
5944if test -n "$RANLIB"; then
5945 case $host_os in
5946 openbsd*)
5947 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5948 ;;
5949 *)
5950 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5951 ;;
5952 esac
5953 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5954fi
5955
John Criswell47fdd832003-07-14 16:52:07 +00005956# Only perform the check for file, if the check method requires it
5957case $deplibs_check_method in
5958file_magic*)
5959 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5960 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5961echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5962if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5963 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00005964else
John Criswell47fdd832003-07-14 16:52:07 +00005965 case $MAGIC_CMD in
5966[\\/*] | ?:[\\/]*)
5967 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5968 ;;
5969*)
5970 lt_save_MAGIC_CMD="$MAGIC_CMD"
5971 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5972 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5973 for ac_dir in $ac_dummy; do
5974 IFS="$lt_save_ifs"
5975 test -z "$ac_dir" && ac_dir=.
5976 if test -f $ac_dir/${ac_tool_prefix}file; then
5977 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5978 if test -n "$file_magic_test_file"; then
5979 case $deplibs_check_method in
5980 "file_magic "*)
5981 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5982 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5983 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5984 $EGREP "$file_magic_regex" > /dev/null; then
5985 :
5986 else
5987 cat <<EOF 1>&2
5988
5989*** Warning: the command libtool uses to detect shared libraries,
5990*** $file_magic_cmd, produces output that libtool cannot recognize.
5991*** The result is that libtool may fail to recognize shared libraries
5992*** as such. This will affect the creation of libtool libraries that
5993*** depend on shared libraries, but programs linked with such libtool
5994*** libraries will work regardless of this problem. Nevertheless, you
5995*** may want to report the problem to your system manager and/or to
5996*** bug-libtool@gnu.org
5997
5998EOF
5999 fi ;;
6000 esac
6001 fi
6002 break
6003 fi
6004 done
6005 IFS="$lt_save_ifs"
6006 MAGIC_CMD="$lt_save_MAGIC_CMD"
6007 ;;
6008esac
John Criswell7a73b802003-06-30 21:59:07 +00006009fi
John Criswell7a73b802003-06-30 21:59:07 +00006010
John Criswell47fdd832003-07-14 16:52:07 +00006011MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6012if test -n "$MAGIC_CMD"; then
6013 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6014echo "${ECHO_T}$MAGIC_CMD" >&6
6015else
6016 echo "$as_me:$LINENO: result: no" >&5
6017echo "${ECHO_T}no" >&6
6018fi
John Criswell7a73b802003-06-30 21:59:07 +00006019
John Criswell47fdd832003-07-14 16:52:07 +00006020if test -z "$lt_cv_path_MAGIC_CMD"; then
6021 if test -n "$ac_tool_prefix"; then
6022 echo "$as_me:$LINENO: checking for file" >&5
6023echo $ECHO_N "checking for file... $ECHO_C" >&6
6024if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6025 echo $ECHO_N "(cached) $ECHO_C" >&6
6026else
6027 case $MAGIC_CMD in
6028[\\/*] | ?:[\\/]*)
6029 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6030 ;;
6031*)
6032 lt_save_MAGIC_CMD="$MAGIC_CMD"
6033 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6034 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6035 for ac_dir in $ac_dummy; do
6036 IFS="$lt_save_ifs"
6037 test -z "$ac_dir" && ac_dir=.
6038 if test -f $ac_dir/file; then
6039 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6040 if test -n "$file_magic_test_file"; then
6041 case $deplibs_check_method in
6042 "file_magic "*)
6043 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6044 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6045 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6046 $EGREP "$file_magic_regex" > /dev/null; then
6047 :
6048 else
6049 cat <<EOF 1>&2
6050
6051*** Warning: the command libtool uses to detect shared libraries,
6052*** $file_magic_cmd, produces output that libtool cannot recognize.
6053*** The result is that libtool may fail to recognize shared libraries
6054*** as such. This will affect the creation of libtool libraries that
6055*** depend on shared libraries, but programs linked with such libtool
6056*** libraries will work regardless of this problem. Nevertheless, you
6057*** may want to report the problem to your system manager and/or to
6058*** bug-libtool@gnu.org
6059
6060EOF
6061 fi ;;
6062 esac
6063 fi
6064 break
6065 fi
6066 done
6067 IFS="$lt_save_ifs"
6068 MAGIC_CMD="$lt_save_MAGIC_CMD"
6069 ;;
6070esac
6071fi
6072
6073MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6074if test -n "$MAGIC_CMD"; then
6075 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6076echo "${ECHO_T}$MAGIC_CMD" >&6
6077else
6078 echo "$as_me:$LINENO: result: no" >&5
6079echo "${ECHO_T}no" >&6
6080fi
6081
6082 else
6083 MAGIC_CMD=:
6084 fi
6085fi
6086
6087 fi
6088 ;;
6089esac
6090
6091enable_dlopen=no
6092enable_win32_dll=no
6093
6094# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6095if test "${enable_libtool_lock+set}" = set; then
6096 enableval="$enable_libtool_lock"
6097
6098fi;
6099test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6100
John Criswell7a73b802003-06-30 21:59:07 +00006101
6102# Check whether --with-pic or --without-pic was given.
6103if test "${with_pic+set}" = set; then
6104 withval="$with_pic"
6105 pic_mode="$withval"
6106else
6107 pic_mode=default
6108fi;
6109test -z "$pic_mode" && pic_mode=default
6110
John Criswell47fdd832003-07-14 16:52:07 +00006111# Use C for the default configuration in the libtool script
6112tagname=
6113lt_save_CC="$CC"
6114ac_ext=c
6115ac_cpp='$CPP $CPPFLAGS'
6116ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6117ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6118ac_compiler_gnu=$ac_cv_c_compiler_gnu
6119
6120
6121# Source file extension for C test sources.
6122ac_ext=c
6123
6124# Object file extension for compiled C test sources.
6125objext=o
6126objext=$objext
6127
6128# Code to be used in simple compile tests
6129lt_simple_compile_test_code="int some_variable = 0;\n"
6130
6131# Code to be used in simple link tests
6132lt_simple_link_test_code='int main(){return(0);}\n'
6133
6134
6135# If no C compiler was specified, use CC.
6136LTCC=${LTCC-"$CC"}
6137
6138# Allow CC to be a program name with arguments.
6139compiler=$CC
6140
6141
6142#
6143# Check for any special shared library compilation flags.
6144#
6145lt_prog_cc_shlib=
6146if test "$GCC" = no; then
6147 case $host_os in
6148 sco3.2v5*)
6149 lt_prog_cc_shlib='-belf'
6150 ;;
6151 esac
6152fi
6153if test -n "$lt_prog_cc_shlib"; then
6154 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6155echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6156 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
6157 else
6158 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6159echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6160 lt_cv_prog_cc_can_build_shared=no
6161 fi
6162fi
6163
6164
6165#
6166# Check to make sure the static flag actually works.
6167#
6168echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6169echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6170if test "${lt_prog_compiler_static_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00006171 echo $ECHO_N "(cached) $ECHO_C" >&6
6172else
John Criswell47fdd832003-07-14 16:52:07 +00006173 lt_prog_compiler_static_works=no
6174 save_LDFLAGS="$LDFLAGS"
6175 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6176 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6177 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6178 # The compiler can only warn and ignore the option if not recognized
6179 # So say no if there are warnings
6180 if test -s conftest.err; then
6181 # Append any errors to the config.log.
6182 cat conftest.err 1>&5
6183 else
6184 lt_prog_compiler_static_works=yes
6185 fi
6186 fi
6187 $rm conftest*
6188 LDFLAGS="$save_LDFLAGS"
6189
6190fi
6191echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6192echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6193
6194if test x"$lt_prog_compiler_static_works" = xyes; then
6195 :
6196else
6197 lt_prog_compiler_static=
6198fi
6199
6200
6201
6202## CAVEAT EMPTOR:
6203## There is no encapsulation within the following macros, do not change
6204## the running order or otherwise move them around unless you know exactly
6205## what you are doing...
6206
6207lt_prog_compiler_no_builtin_flag=
6208
6209if test "$GCC" = yes; then
6210 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6211
6212 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6213echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6214if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6215 echo $ECHO_N "(cached) $ECHO_C" >&6
6216else
6217 lt_cv_prog_compiler_rtti_exceptions=no
6218 ac_outfile=conftest.$ac_objext
6219 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6220 lt_compiler_flag="-fno-rtti -fno-exceptions"
6221 # Insert the option either (1) after the last *FLAGS variable, or
6222 # (2) before a word containing "conftest.", or (3) at the end.
6223 # Note that $ac_compile itself does not contain backslashes and begins
6224 # with a dollar sign (not a hyphen), so the echo should work correctly.
6225 # The option is referenced via a variable to avoid confusing sed.
6226 lt_compile=`echo "$ac_compile" | $SED \
6227 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6228 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6229 -e 's:$: $lt_compiler_flag:'`
John Criswellc764fbc2003-09-06 15:17:13 +00006230 (eval echo "\"\$as_me:6230: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +00006231 (eval "$lt_compile" 2>conftest.err)
6232 ac_status=$?
6233 cat conftest.err >&5
John Criswellc764fbc2003-09-06 15:17:13 +00006234 echo "$as_me:6234: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00006235 if (exit $ac_status) && test -s "$ac_outfile"; then
6236 # The compiler can only warn and ignore the option if not recognized
6237 # So say no if there are warnings
6238 if test ! -s conftest.err; then
6239 lt_cv_prog_compiler_rtti_exceptions=yes
6240 fi
6241 fi
6242 $rm conftest*
6243
6244fi
6245echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6246echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6247
6248if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6249 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6250else
6251 :
6252fi
6253
6254fi
6255
6256lt_prog_compiler_wl=
6257lt_prog_compiler_pic=
6258lt_prog_compiler_static=
6259
6260echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6261echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006262
6263 if test "$GCC" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +00006264 lt_prog_compiler_wl='-Wl,'
6265 lt_prog_compiler_static='-static'
John Criswell7a73b802003-06-30 21:59:07 +00006266
6267 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00006268 aix*)
6269 # All AIX code is PIC.
6270 if test "$host_cpu" = ia64; then
6271 # AIX 5 now supports IA64 processor
6272 lt_prog_compiler_static='-Bstatic'
6273 fi
John Criswell7a73b802003-06-30 21:59:07 +00006274 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006275
John Criswell7a73b802003-06-30 21:59:07 +00006276 amigaos*)
6277 # FIXME: we need at least 68020 code to build shared libraries, but
6278 # adding the `-m68020' flag to GCC prevents building anything better,
6279 # like `-m68040'.
John Criswell47fdd832003-07-14 16:52:07 +00006280 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
John Criswell7a73b802003-06-30 21:59:07 +00006281 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006282
6283 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
John Criswell7a73b802003-06-30 21:59:07 +00006284 # PIC is the default for these OSes.
6285 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006286
6287 mingw* | pw32* | os2*)
6288 # This hack is so that the source file can tell whether it is being
6289 # built for inclusion in a dll (and should export symbols for example).
6290 lt_prog_compiler_pic='-DDLL_EXPORT'
6291 ;;
6292
John Criswell7a73b802003-06-30 21:59:07 +00006293 darwin* | rhapsody*)
6294 # PIC is the default on this platform
6295 # Common symbols not allowed in MH_DYLIB files
John Criswell47fdd832003-07-14 16:52:07 +00006296 lt_prog_compiler_pic='-fno-common'
John Criswell7a73b802003-06-30 21:59:07 +00006297 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006298
6299 msdosdjgpp*)
6300 # Just because we use GCC doesn't mean we suddenly get shared libraries
6301 # on systems that don't support them.
6302 lt_prog_compiler_can_build_shared=no
6303 enable_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00006304 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006305
John Criswell7a73b802003-06-30 21:59:07 +00006306 sysv4*MP*)
6307 if test -d /usr/nec; then
John Criswell47fdd832003-07-14 16:52:07 +00006308 lt_prog_compiler_pic=-Kconform_pic
John Criswell7a73b802003-06-30 21:59:07 +00006309 fi
6310 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006311
6312 hpux*)
6313 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6314 # not for PA HP-UX.
6315 case "$host_cpu" in
6316 hppa*64*|ia64*)
6317 # +Z the default
6318 ;;
6319 *)
6320 lt_prog_compiler_pic='-fPIC'
6321 ;;
6322 esac
6323 ;;
6324
John Criswell7a73b802003-06-30 21:59:07 +00006325 *)
John Criswell47fdd832003-07-14 16:52:07 +00006326 lt_prog_compiler_pic='-fPIC'
John Criswell7a73b802003-06-30 21:59:07 +00006327 ;;
6328 esac
6329 else
John Criswell47fdd832003-07-14 16:52:07 +00006330 # PORTME Check for flag to pass linker flags through the system compiler.
John Criswell7a73b802003-06-30 21:59:07 +00006331 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00006332 aix*)
6333 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +00006334 if test "$host_cpu" = ia64; then
6335 # AIX 5 now supports IA64 processor
John Criswell47fdd832003-07-14 16:52:07 +00006336 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006337 else
John Criswell47fdd832003-07-14 16:52:07 +00006338 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
John Criswell7a73b802003-06-30 21:59:07 +00006339 fi
6340 ;;
6341
John Criswell47fdd832003-07-14 16:52:07 +00006342 mingw* | pw32* | os2*)
6343 # This hack is so that the source file can tell whether it is being
6344 # built for inclusion in a dll (and should export symbols for example).
6345 lt_prog_compiler_pic='-DDLL_EXPORT'
6346 ;;
6347
John Criswell7a73b802003-06-30 21:59:07 +00006348 hpux9* | hpux10* | hpux11*)
John Criswell47fdd832003-07-14 16:52:07 +00006349 lt_prog_compiler_wl='-Wl,'
6350 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6351 # not for PA HP-UX.
6352 case "$host_cpu" in
6353 hppa*64*|ia64*)
6354 # +Z the default
6355 ;;
6356 *)
6357 lt_prog_compiler_pic='+Z'
6358 ;;
6359 esac
6360 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6361 lt_prog_compiler_static='${wl}-a ${wl}archive'
John Criswell7a73b802003-06-30 21:59:07 +00006362 ;;
6363
John Criswell47fdd832003-07-14 16:52:07 +00006364 irix5* | irix6* | nonstopux*)
6365 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +00006366 # PIC (with -KPIC) is the default.
John Criswell47fdd832003-07-14 16:52:07 +00006367 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +00006368 ;;
6369
6370 newsos6)
John Criswell47fdd832003-07-14 16:52:07 +00006371 lt_prog_compiler_pic='-KPIC'
6372 lt_prog_compiler_static='-Bstatic'
6373 ;;
6374
6375 linux*)
6376 case $CC in
6377 icc|ecc)
6378 lt_prog_compiler_wl='-Wl,'
6379 lt_prog_compiler_pic='-KPIC'
6380 lt_prog_compiler_static='-static'
6381 ;;
6382 ccc)
6383 lt_prog_compiler_wl='-Wl,'
6384 # All Alpha code is PIC.
6385 lt_prog_compiler_static='-non_shared'
6386 ;;
6387 esac
John Criswell7a73b802003-06-30 21:59:07 +00006388 ;;
6389
6390 osf3* | osf4* | osf5*)
John Criswell47fdd832003-07-14 16:52:07 +00006391 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +00006392 # All OSF/1 code is PIC.
John Criswell47fdd832003-07-14 16:52:07 +00006393 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +00006394 ;;
6395
6396 sco3.2v5*)
John Criswell47fdd832003-07-14 16:52:07 +00006397 lt_prog_compiler_pic='-Kpic'
6398 lt_prog_compiler_static='-dn'
John Criswell7a73b802003-06-30 21:59:07 +00006399 ;;
6400
6401 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +00006402 lt_prog_compiler_wl='-Wl,'
6403 lt_prog_compiler_pic='-KPIC'
6404 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006405 ;;
6406
6407 sunos4*)
John Criswell47fdd832003-07-14 16:52:07 +00006408 lt_prog_compiler_wl='-Qoption ld '
6409 lt_prog_compiler_pic='-PIC'
6410 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006411 ;;
6412
6413 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
John Criswell47fdd832003-07-14 16:52:07 +00006414 lt_prog_compiler_wl='-Wl,'
6415 lt_prog_compiler_pic='-KPIC'
6416 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006417 ;;
6418
6419 sysv4*MP*)
6420 if test -d /usr/nec ;then
John Criswell47fdd832003-07-14 16:52:07 +00006421 lt_prog_compiler_pic='-Kconform_pic'
6422 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006423 fi
6424 ;;
6425
John Criswell47fdd832003-07-14 16:52:07 +00006426 uts4*)
6427 lt_prog_compiler_pic='-pic'
6428 lt_prog_compiler_static='-Bstatic'
6429 ;;
6430
John Criswell7a73b802003-06-30 21:59:07 +00006431 *)
John Criswell47fdd832003-07-14 16:52:07 +00006432 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00006433 ;;
6434 esac
6435 fi
6436
John Criswell47fdd832003-07-14 16:52:07 +00006437echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6438echo "${ECHO_T}$lt_prog_compiler_pic" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006439
John Criswell47fdd832003-07-14 16:52:07 +00006440#
6441# Check to make sure the PIC flag actually works.
6442#
6443if test -n "$lt_prog_compiler_pic"; then
6444 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6445echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6446if test "${lt_prog_compiler_pic_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00006447 echo $ECHO_N "(cached) $ECHO_C" >&6
6448else
John Criswell47fdd832003-07-14 16:52:07 +00006449 lt_prog_compiler_pic_works=no
6450 ac_outfile=conftest.$ac_objext
6451 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6452 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6453 # Insert the option either (1) after the last *FLAGS variable, or
6454 # (2) before a word containing "conftest.", or (3) at the end.
6455 # Note that $ac_compile itself does not contain backslashes and begins
6456 # with a dollar sign (not a hyphen), so the echo should work correctly.
6457 # The option is referenced via a variable to avoid confusing sed.
6458 lt_compile=`echo "$ac_compile" | $SED \
6459 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6460 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6461 -e 's:$: $lt_compiler_flag:'`
John Criswellc764fbc2003-09-06 15:17:13 +00006462 (eval echo "\"\$as_me:6462: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +00006463 (eval "$lt_compile" 2>conftest.err)
6464 ac_status=$?
6465 cat conftest.err >&5
John Criswellc764fbc2003-09-06 15:17:13 +00006466 echo "$as_me:6466: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00006467 if (exit $ac_status) && test -s "$ac_outfile"; then
6468 # The compiler can only warn and ignore the option if not recognized
6469 # So say no if there are warnings
6470 if test ! -s conftest.err; then
6471 lt_prog_compiler_pic_works=yes
6472 fi
6473 fi
6474 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +00006475
John Criswell47fdd832003-07-14 16:52:07 +00006476fi
6477echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6478echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006479
John Criswell47fdd832003-07-14 16:52:07 +00006480if test x"$lt_prog_compiler_pic_works" = xyes; then
6481 case $lt_prog_compiler_pic in
6482 "" | " "*) ;;
6483 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6484 esac
John Criswell7a73b802003-06-30 21:59:07 +00006485else
John Criswell47fdd832003-07-14 16:52:07 +00006486 lt_prog_compiler_pic=
6487 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00006488fi
6489
John Criswell7a73b802003-06-30 21:59:07 +00006490fi
John Criswell47fdd832003-07-14 16:52:07 +00006491case "$host_os" in
6492 # For platforms which do not support PIC, -DPIC is meaningless:
6493 *djgpp*)
6494 lt_prog_compiler_pic=
6495 ;;
6496 *)
6497 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6498 ;;
6499esac
John Criswell7a73b802003-06-30 21:59:07 +00006500
John Criswell7a73b802003-06-30 21:59:07 +00006501echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6502echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
John Criswell47fdd832003-07-14 16:52:07 +00006503if test "${lt_cv_prog_compiler_c_o+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00006504 echo $ECHO_N "(cached) $ECHO_C" >&6
6505else
John Criswell47fdd832003-07-14 16:52:07 +00006506 lt_cv_prog_compiler_c_o=no
6507 $rm -r conftest 2>/dev/null
6508 mkdir conftest
6509 cd conftest
6510 mkdir out
6511 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00006512
John Criswell47fdd832003-07-14 16:52:07 +00006513 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
6514 # that will create temporary files in the current directory regardless of
6515 # the output directory. Thus, making CWD read-only will cause this test
6516 # to fail, enabling locking or at least warning the user not to do parallel
6517 # builds.
6518 chmod -w .
6519
6520 lt_compiler_flag="-o out/conftest2.$ac_objext"
6521 # Insert the option either (1) after the last *FLAGS variable, or
6522 # (2) before a word containing "conftest.", or (3) at the end.
6523 # Note that $ac_compile itself does not contain backslashes and begins
6524 # with a dollar sign (not a hyphen), so the echo should work correctly.
6525 lt_compile=`echo "$ac_compile" | $SED \
6526 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6527 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6528 -e 's:$: $lt_compiler_flag:'`
John Criswellc764fbc2003-09-06 15:17:13 +00006529 (eval echo "\"\$as_me:6529: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +00006530 (eval "$lt_compile" 2>out/conftest.err)
6531 ac_status=$?
6532 cat out/conftest.err >&5
John Criswellc764fbc2003-09-06 15:17:13 +00006533 echo "$as_me:6533: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00006534 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6535 then
6536 # The compiler can only warn and ignore the option if not recognized
6537 # So say no if there are warnings
6538 if test ! -s out/conftest.err; then
6539 lt_cv_prog_compiler_c_o=yes
6540 fi
6541 fi
6542 chmod u+w .
6543 $rm conftest* out/*
6544 rmdir out
6545 cd ..
6546 rmdir conftest
6547 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +00006548
6549fi
John Criswell47fdd832003-07-14 16:52:07 +00006550echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6551echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006552
John Criswell7a73b802003-06-30 21:59:07 +00006553
John Criswell7a73b802003-06-30 21:59:07 +00006554hard_links="nottested"
John Criswell47fdd832003-07-14 16:52:07 +00006555if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
John Criswell7a73b802003-06-30 21:59:07 +00006556 # do not overwrite the value of need_locks provided by the user
6557 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6558echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6559 hard_links=yes
6560 $rm conftest*
6561 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6562 touch conftest.a
6563 ln conftest.a conftest.b 2>&5 || hard_links=no
6564 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6565 echo "$as_me:$LINENO: result: $hard_links" >&5
6566echo "${ECHO_T}$hard_links" >&6
6567 if test "$hard_links" = no; then
6568 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6569echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6570 need_locks=warn
6571 fi
6572else
6573 need_locks=no
6574fi
John Criswell7a73b802003-06-30 21:59:07 +00006575
John Criswell47fdd832003-07-14 16:52:07 +00006576echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6577echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6578
6579 runpath_var=
6580 allow_undefined_flag=
6581 enable_shared_with_static_runtimes=no
6582 archive_cmds=
6583 archive_expsym_cmds=
6584 old_archive_From_new_cmds=
6585 old_archive_from_expsyms_cmds=
6586 export_dynamic_flag_spec=
6587 whole_archive_flag_spec=
6588 thread_safe_flag_spec=
6589 hardcode_libdir_flag_spec=
6590 hardcode_libdir_flag_spec_ld=
6591 hardcode_libdir_separator=
6592 hardcode_direct=no
6593 hardcode_minus_L=no
6594 hardcode_shlibpath_var=unsupported
6595 link_all_deplibs=unknown
6596 hardcode_automatic=no
6597 module_cmds=
6598 module_expsym_cmds=
6599 always_export_symbols=no
6600 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6601 # include_expsyms should be a list of space-separated symbols to be *always*
6602 # included in the symbol list
6603 include_expsyms=
6604 # exclude_expsyms can be an extended regexp of symbols to exclude
6605 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6606 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6607 # as well as any symbol that contains `d'.
6608 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6609 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6610 # platforms (ab)use it in PIC code, but their linkers get confused if
6611 # the symbol is explicitly referenced. Since portable code cannot
6612 # rely on this symbol name, it's probably fine to never include it in
6613 # preloaded symbol tables.
6614 extract_expsyms_cmds=
6615
6616 case $host_os in
6617 cygwin* | mingw* | pw32*)
6618 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6619 # When not using gcc, we currently assume that we are using
6620 # Microsoft Visual C++.
6621 if test "$GCC" != yes; then
6622 with_gnu_ld=no
6623 fi
6624 ;;
6625 openbsd*)
6626 with_gnu_ld=no
6627 ;;
6628 esac
6629
6630 ld_shlibs=yes
6631 if test "$with_gnu_ld" = yes; then
6632 # If archive_cmds runs LD, not CC, wlarc should be empty
6633 wlarc='${wl}'
6634
6635 # See if GNU ld supports shared libraries.
6636 case $host_os in
6637 aix3* | aix4* | aix5*)
6638 # On AIX/PPC, the GNU linker is very broken
6639 if test "$host_cpu" != ia64; then
6640 ld_shlibs=no
6641 cat <<EOF 1>&2
6642
6643*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6644*** to be unable to reliably create shared libraries on AIX.
6645*** Therefore, libtool is disabling shared libraries support. If you
6646*** really care for shared libraries, you may want to modify your PATH
6647*** so that a non-GNU linker is found, and then restart.
6648
6649EOF
6650 fi
6651 ;;
6652
6653 amigaos*)
6654 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)'
6655 hardcode_libdir_flag_spec='-L$libdir'
6656 hardcode_minus_L=yes
6657
6658 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6659 # that the semantics of dynamic libraries on AmigaOS, at least up
6660 # to version 4, is to share data among multiple programs linked
6661 # with the same dynamic library. Since this doesn't match the
6662 # behavior of shared libraries on other platforms, we can't use
6663 # them.
6664 ld_shlibs=no
6665 ;;
6666
6667 beos*)
6668 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6669 allow_undefined_flag=unsupported
6670 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6671 # support --undefined. This deserves some investigation. FIXME
6672 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6673 else
6674 ld_shlibs=no
6675 fi
6676 ;;
6677
6678 cygwin* | mingw* | pw32*)
6679 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6680 # as there is no search path for DLLs.
6681 hardcode_libdir_flag_spec='-L$libdir'
6682 allow_undefined_flag=unsupported
6683 always_export_symbols=no
6684 enable_shared_with_static_runtimes=yes
6685 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6686
6687 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6688 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6689 # If the export-symbols file already is a .def file (1st line
6690 # is EXPORTS), use it as is; otherwise, prepend...
6691 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6692 cp $export_symbols $output_objdir/$soname.def;
6693 else
6694 echo EXPORTS > $output_objdir/$soname.def;
6695 cat $export_symbols >> $output_objdir/$soname.def;
6696 fi~
6697 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6698 else
6699 ld_shlibs=no
6700 fi
6701 ;;
6702
6703 netbsd*)
6704 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6705 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6706 wlarc=
6707 else
6708 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6709 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6710 fi
6711 ;;
6712
6713 solaris* | sysv5*)
6714 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6715 ld_shlibs=no
6716 cat <<EOF 1>&2
6717
6718*** Warning: The releases 2.8.* of the GNU linker cannot reliably
6719*** create shared libraries on Solaris systems. Therefore, libtool
6720*** is disabling shared libraries support. We urge you to upgrade GNU
6721*** binutils to release 2.9.1 or newer. Another option is to modify
6722*** your PATH or compiler configuration so that the native linker is
6723*** used, and then restart.
6724
6725EOF
6726 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6727 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6728 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6729 else
6730 ld_shlibs=no
6731 fi
6732 ;;
6733
6734 sunos4*)
6735 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6736 wlarc=
6737 hardcode_direct=yes
6738 hardcode_shlibpath_var=no
6739 ;;
6740
6741 *)
6742 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6743 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6744 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6745 else
6746 ld_shlibs=no
6747 fi
6748 ;;
6749 esac
6750
6751 if test "$ld_shlibs" = yes; then
6752 runpath_var=LD_RUN_PATH
6753 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6754 export_dynamic_flag_spec='${wl}--export-dynamic'
6755 # ancient GNU ld didn't support --whole-archive et. al.
6756 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6757 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6758 else
6759 whole_archive_flag_spec=
6760 fi
6761 fi
6762 else
6763 # PORTME fill in a description of your system's linker (not GNU ld)
6764 case $host_os in
6765 aix3*)
6766 allow_undefined_flag=unsupported
6767 always_export_symbols=yes
6768 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'
6769 # Note: this linker hardcodes the directories in LIBPATH if there
6770 # are no directories specified by -L.
6771 hardcode_minus_L=yes
6772 if test "$GCC" = yes && test -z "$link_static_flag"; then
6773 # Neither direct hardcoding nor static linking is supported with a
6774 # broken collect2.
6775 hardcode_direct=unsupported
6776 fi
6777 ;;
6778
6779 aix4* | aix5*)
6780 if test "$host_cpu" = ia64; then
6781 # On IA64, the linker does run time linking by default, so we don't
6782 # have to do anything special.
6783 aix_use_runtimelinking=no
6784 exp_sym_flag='-Bexport'
6785 no_entry_flag=""
6786 else
6787 # If we're using GNU nm, then we don't want the "-C" option.
6788 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6789 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6790 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'
6791 else
6792 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'
6793 fi
6794 aix_use_runtimelinking=no
6795
6796 # Test if we are trying to use run time linking or normal
6797 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6798 # need to do runtime linking.
6799 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6800 for ld_flag in $LDFLAGS; do
6801 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6802 aix_use_runtimelinking=yes
6803 break
6804 fi
6805 done
6806 esac
6807
6808 exp_sym_flag='-bexport'
6809 no_entry_flag='-bnoentry'
6810 fi
6811
6812 # When large executables or shared objects are built, AIX ld can
6813 # have problems creating the table of contents. If linking a library
6814 # or program results in "error TOC overflow" add -mminimal-toc to
6815 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6816 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6817
6818 archive_cmds=''
6819 hardcode_direct=yes
6820 hardcode_libdir_separator=':'
6821 link_all_deplibs=yes
6822
6823 if test "$GCC" = yes; then
6824 case $host_os in aix4.012|aix4.012.*)
6825 # We only want to do this on AIX 4.2 and lower, the check
6826 # below for broken collect2 doesn't work under 4.3+
6827 collect2name=`${CC} -print-prog-name=collect2`
6828 if test -f "$collect2name" && \
6829 strings "$collect2name" | grep resolve_lib_name >/dev/null
6830 then
6831 # We have reworked collect2
6832 hardcode_direct=yes
6833 else
6834 # We have old collect2
6835 hardcode_direct=unsupported
6836 # It fails to find uninstalled libraries when the uninstalled
6837 # path is not listed in the libpath. Setting hardcode_minus_L
6838 # to unsupported forces relinking
6839 hardcode_minus_L=yes
6840 hardcode_libdir_flag_spec='-L$libdir'
6841 hardcode_libdir_separator=
6842 fi
6843 esac
6844 shared_flag='-shared'
6845 else
6846 # not using gcc
6847 if test "$host_cpu" = ia64; then
6848 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6849 # chokes on -Wl,-G. The following line is correct:
6850 shared_flag='-G'
6851 else
6852 if test "$aix_use_runtimelinking" = yes; then
6853 shared_flag='${wl}-G'
6854 else
6855 shared_flag='${wl}-bM:SRE'
6856 fi
6857 fi
6858 fi
6859
6860 # It seems that -bexpall does not export symbols beginning with
6861 # underscore (_), so it is better to generate a list of symbols to export.
6862 always_export_symbols=yes
6863 if test "$aix_use_runtimelinking" = yes; then
6864 # Warning - without using the other runtime loading flags (-brtl),
6865 # -berok will link without error, but may produce a broken library.
6866 allow_undefined_flag='-berok'
6867 # Determine the default libpath from the value encoded in an empty executable.
6868 cat >conftest.$ac_ext <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00006869#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +00006870/* confdefs.h. */
6871_ACEOF
6872cat confdefs.h >>conftest.$ac_ext
6873cat >>conftest.$ac_ext <<_ACEOF
6874/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006875
John Criswell7a73b802003-06-30 21:59:07 +00006876int
6877main ()
6878{
John Criswell47fdd832003-07-14 16:52:07 +00006879
John Criswell7a73b802003-06-30 21:59:07 +00006880 ;
6881 return 0;
6882}
6883_ACEOF
John Criswell47fdd832003-07-14 16:52:07 +00006884rm -f conftest.$ac_objext conftest$ac_exeext
6885if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6886 (eval $ac_link) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00006887 ac_status=$?
6888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6889 (exit $ac_status); } &&
John Criswell47fdd832003-07-14 16:52:07 +00006890 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00006891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6892 (eval $ac_try) 2>&5
6893 ac_status=$?
6894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6895 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00006896
John Criswell47fdd832003-07-14 16:52:07 +00006897aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6898}'`
6899# Check for a 64-bit object if we didn't find anything.
6900if 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; }
6901}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +00006902else
6903 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +00006904sed 's/^/| /' conftest.$ac_ext >&5
6905
John Criswell7a73b802003-06-30 21:59:07 +00006906fi
John Criswell47fdd832003-07-14 16:52:07 +00006907rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6908if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +00006909
John Criswell47fdd832003-07-14 16:52:07 +00006910 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6911 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"
6912 else
6913 if test "$host_cpu" = ia64; then
6914 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6915 allow_undefined_flag="-z nodefs"
6916 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"
6917 else
6918 # Determine the default libpath from the value encoded in an empty executable.
6919 cat >conftest.$ac_ext <<_ACEOF
6920#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +00006921/* confdefs.h. */
6922_ACEOF
6923cat confdefs.h >>conftest.$ac_ext
6924cat >>conftest.$ac_ext <<_ACEOF
6925/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006926
John Criswell47fdd832003-07-14 16:52:07 +00006927int
6928main ()
6929{
John Criswell7a73b802003-06-30 21:59:07 +00006930
John Criswell47fdd832003-07-14 16:52:07 +00006931 ;
6932 return 0;
6933}
6934_ACEOF
6935rm -f conftest.$ac_objext conftest$ac_exeext
6936if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6937 (eval $ac_link) 2>&5
6938 ac_status=$?
6939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6940 (exit $ac_status); } &&
6941 { ac_try='test -s conftest$ac_exeext'
6942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6943 (eval $ac_try) 2>&5
6944 ac_status=$?
6945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6946 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00006947
John Criswell47fdd832003-07-14 16:52:07 +00006948aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6949}'`
6950# Check for a 64-bit object if we didn't find anything.
6951if 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; }
6952}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +00006953else
John Criswell47fdd832003-07-14 16:52:07 +00006954 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +00006955sed 's/^/| /' conftest.$ac_ext >&5
6956
John Criswell47fdd832003-07-14 16:52:07 +00006957fi
6958rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6959if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +00006960
John Criswell47fdd832003-07-14 16:52:07 +00006961 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6962 # Warning - without using the other run time loading flags,
6963 # -berok will link without error, but may produce a broken library.
6964 no_undefined_flag=' ${wl}-bernotok'
6965 allow_undefined_flag=' ${wl}-berok'
6966 # -bexpall does not export symbols beginning with underscore (_)
6967 always_export_symbols=yes
6968 # Exported symbols can be pulled into shared objects from archives
6969 whole_archive_flag_spec=' '
6970 archive_cmds_need_lc=yes
6971 # This is similar to how AIX traditionally builds it's shared libraries.
6972 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 +00006973 fi
6974 fi
John Criswell7a73b802003-06-30 21:59:07 +00006975 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006976
6977 amigaos*)
6978 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)'
6979 hardcode_libdir_flag_spec='-L$libdir'
6980 hardcode_minus_L=yes
6981 # see comment about different semantics on the GNU ld section
6982 ld_shlibs=no
John Criswell7a73b802003-06-30 21:59:07 +00006983 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006984
John Criswell47fdd832003-07-14 16:52:07 +00006985 bsdi4*)
6986 export_dynamic_flag_spec=-rdynamic
6987 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006988
John Criswell47fdd832003-07-14 16:52:07 +00006989 cygwin* | mingw* | pw32*)
6990 # When not using gcc, we currently assume that we are using
6991 # Microsoft Visual C++.
6992 # hardcode_libdir_flag_spec is actually meaningless, as there is
6993 # no search path for DLLs.
6994 hardcode_libdir_flag_spec=' '
6995 allow_undefined_flag=unsupported
6996 # Tell ltmain to make .lib files, not .a files.
6997 libext=lib
6998 # Tell ltmain to make .dll files, not .so files.
6999 shrext=".dll"
7000 # FIXME: Setting linknames here is a bad hack.
7001 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7002 # The linker will automatically build a .lib file if we build a DLL.
7003 old_archive_From_new_cmds='true'
7004 # FIXME: Should let the user specify the lib program.
7005 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7006 fix_srcfile_path='`cygpath -w "$srcfile"`'
7007 enable_shared_with_static_runtimes=yes
7008 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007009
John Criswell47fdd832003-07-14 16:52:07 +00007010 darwin* | rhapsody*)
7011 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7012 archive_cmds_need_lc=no
John Criswell7a73b802003-06-30 21:59:07 +00007013 case "$host_os" in
John Criswell47fdd832003-07-14 16:52:07 +00007014 rhapsody* | darwin1.[012])
7015 allow_undefined_flag='-undefined suppress'
7016 ;;
7017 *) # Darwin 1.3 on
7018 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
John Criswell7a73b802003-06-30 21:59:07 +00007019 ;;
7020 esac
John Criswell47fdd832003-07-14 16:52:07 +00007021 # FIXME: Relying on posixy $() will cause problems for
7022 # cross-compilation, but unfortunately the echo tests do not
7023 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
7024 # `"' quotes if we put them in here... so don't!
7025 lt_int_apple_cc_single_mod=no
7026 output_verbose_link_cmd='echo'
7027 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7028 lt_int_apple_cc_single_mod=yes
7029 fi
7030 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7031 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7032 else
7033 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'
7034 fi
7035 module_cmds='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
7036 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7037 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7038 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}'
7039 else
7040 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}'
7041 fi
7042 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}'
7043 hardcode_direct=no
7044 hardcode_automatic=yes
7045 hardcode_shlibpath_var=unsupported
7046 whole_archive_flag_spec='-all_load $convenience'
7047 link_all_deplibs=yes
John Criswell7a73b802003-06-30 21:59:07 +00007048 fi
John Criswell47fdd832003-07-14 16:52:07 +00007049 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007050
John Criswell47fdd832003-07-14 16:52:07 +00007051 dgux*)
John Criswell7a73b802003-06-30 21:59:07 +00007052 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
John Criswell47fdd832003-07-14 16:52:07 +00007053 hardcode_libdir_flag_spec='-L$libdir'
7054 hardcode_shlibpath_var=no
7055 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007056
John Criswell47fdd832003-07-14 16:52:07 +00007057 freebsd1*)
7058 ld_shlibs=no
7059 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007060
John Criswell47fdd832003-07-14 16:52:07 +00007061 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7062 # support. Future versions do this automatically, but an explicit c++rt0.o
7063 # does not break anything, and helps significantly (at the cost of a little
7064 # extra space).
7065 freebsd2.2*)
7066 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7067 hardcode_libdir_flag_spec='-R$libdir'
7068 hardcode_direct=yes
7069 hardcode_shlibpath_var=no
7070 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007071
John Criswell47fdd832003-07-14 16:52:07 +00007072 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7073 freebsd2*)
7074 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7075 hardcode_direct=yes
7076 hardcode_minus_L=yes
7077 hardcode_shlibpath_var=no
7078 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007079
John Criswell47fdd832003-07-14 16:52:07 +00007080 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7081 freebsd*)
7082 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7083 hardcode_libdir_flag_spec='-R$libdir'
7084 hardcode_direct=yes
7085 hardcode_shlibpath_var=no
7086 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007087
John Criswell47fdd832003-07-14 16:52:07 +00007088 hpux9*)
7089 if test "$GCC" = yes; then
7090 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'
7091 else
7092 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'
7093 fi
7094 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7095 hardcode_libdir_separator=:
7096 hardcode_direct=yes
7097
7098 # hardcode_minus_L: Not really in the search PATH,
7099 # but as the default location of the library.
7100 hardcode_minus_L=yes
7101 export_dynamic_flag_spec='${wl}-E'
7102 ;;
7103
7104 hpux10* | hpux11*)
7105 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7106 case "$host_cpu" in
7107 hppa*64*|ia64*)
7108 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7109 ;;
7110 *)
7111 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7112 ;;
7113 esac
7114 else
7115 case "$host_cpu" in
7116 hppa*64*|ia64*)
7117 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7118 ;;
7119 *)
7120 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7121 ;;
7122 esac
7123 fi
7124 if test "$with_gnu_ld" = no; then
7125 case "$host_cpu" in
7126 hppa*64*)
7127 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7128 hardcode_libdir_flag_spec_ld='+b $libdir'
7129 hardcode_libdir_separator=:
7130 hardcode_direct=no
7131 hardcode_shlibpath_var=no
7132 ;;
7133 ia64*)
7134 hardcode_libdir_flag_spec='-L$libdir'
7135 hardcode_direct=no
7136 hardcode_shlibpath_var=no
7137
7138 # hardcode_minus_L: Not really in the search PATH,
7139 # but as the default location of the library.
7140 hardcode_minus_L=yes
7141 ;;
7142 *)
7143 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7144 hardcode_libdir_separator=:
7145 hardcode_direct=yes
7146 export_dynamic_flag_spec='${wl}-E'
7147
7148 # hardcode_minus_L: Not really in the search PATH,
7149 # but as the default location of the library.
7150 hardcode_minus_L=yes
7151 ;;
7152 esac
7153 fi
7154 ;;
7155
7156 irix5* | irix6* | nonstopux*)
7157 if test "$GCC" = yes; then
7158 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'
7159 else
7160 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'
7161 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7162 fi
7163 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7164 hardcode_libdir_separator=:
7165 link_all_deplibs=yes
7166 ;;
7167
7168 netbsd*)
7169 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7170 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7171 else
7172 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7173 fi
7174 hardcode_libdir_flag_spec='-R$libdir'
7175 hardcode_direct=yes
7176 hardcode_shlibpath_var=no
7177 ;;
7178
7179 newsos6)
7180 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7181 hardcode_direct=yes
7182 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7183 hardcode_libdir_separator=:
7184 hardcode_shlibpath_var=no
7185 ;;
7186
7187 openbsd*)
7188 hardcode_direct=yes
7189 hardcode_shlibpath_var=no
7190 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7191 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7192 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7193 export_dynamic_flag_spec='${wl}-E'
7194 else
7195 case $host_os in
7196 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7197 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7198 hardcode_libdir_flag_spec='-R$libdir'
7199 ;;
7200 *)
7201 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7202 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7203 ;;
7204 esac
7205 fi
7206 ;;
7207
7208 os2*)
7209 hardcode_libdir_flag_spec='-L$libdir'
7210 hardcode_minus_L=yes
7211 allow_undefined_flag=unsupported
7212 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'
7213 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7214 ;;
7215
7216 osf3*)
7217 if test "$GCC" = yes; then
7218 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7219 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'
7220 else
7221 allow_undefined_flag=' -expect_unresolved \*'
7222 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'
7223 fi
7224 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7225 hardcode_libdir_separator=:
7226 ;;
7227
7228 osf4* | osf5*) # as osf3* with the addition of -msym flag
7229 if test "$GCC" = yes; then
7230 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7231 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'
7232 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7233 else
7234 allow_undefined_flag=' -expect_unresolved \*'
7235 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'
7236 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7237 $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'
7238
7239 # Both c and cxx compiler support -rpath directly
7240 hardcode_libdir_flag_spec='-rpath $libdir'
7241 fi
7242 hardcode_libdir_separator=:
7243 ;;
7244
7245 sco3.2v5*)
John Criswell7a73b802003-06-30 21:59:07 +00007246 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7247 hardcode_shlibpath_var=no
John Criswell47fdd832003-07-14 16:52:07 +00007248 export_dynamic_flag_spec='${wl}-Bexport'
John Criswell7a73b802003-06-30 21:59:07 +00007249 runpath_var=LD_RUN_PATH
7250 hardcode_runpath_var=yes
John Criswell47fdd832003-07-14 16:52:07 +00007251 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007252
John Criswell47fdd832003-07-14 16:52:07 +00007253 solaris*)
7254 no_undefined_flag=' -z text'
7255 if test "$GCC" = yes; then
7256 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7257 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7258 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7259 else
7260 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7261 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7262 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7263 fi
7264 hardcode_libdir_flag_spec='-R$libdir'
7265 hardcode_shlibpath_var=no
7266 case $host_os in
7267 solaris2.[0-5] | solaris2.[0-5].*) ;;
7268 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7269 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7270 esac
7271 link_all_deplibs=yes
7272 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007273
John Criswell47fdd832003-07-14 16:52:07 +00007274 sunos4*)
7275 if test "x$host_vendor" = xsequent; then
7276 # Use $CC to link under sequent, because it throws in some extra .o
7277 # files that make .init and .fini sections work.
7278 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7279 else
7280 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7281 fi
7282 hardcode_libdir_flag_spec='-L$libdir'
7283 hardcode_direct=yes
7284 hardcode_minus_L=yes
7285 hardcode_shlibpath_var=no
7286 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007287
John Criswell47fdd832003-07-14 16:52:07 +00007288 sysv4)
7289 case $host_vendor in
7290 sni)
7291 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7292 hardcode_direct=yes # is this really true???
7293 ;;
7294 siemens)
7295 ## LD is ld it makes a PLAMLIB
7296 ## CC just makes a GrossModule.
7297 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7298 reload_cmds='$CC -r -o $output$reload_objs'
7299 hardcode_direct=no
7300 ;;
7301 motorola)
7302 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7303 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7304 ;;
7305 esac
7306 runpath_var='LD_RUN_PATH'
7307 hardcode_shlibpath_var=no
7308 ;;
7309
7310 sysv4.3*)
7311 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7312 hardcode_shlibpath_var=no
7313 export_dynamic_flag_spec='-Bexport'
7314 ;;
7315
7316 sysv4*MP*)
7317 if test -d /usr/nec; then
7318 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7319 hardcode_shlibpath_var=no
7320 runpath_var=LD_RUN_PATH
7321 hardcode_runpath_var=yes
7322 ld_shlibs=yes
7323 fi
7324 ;;
7325
7326 sysv4.2uw2*)
7327 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7328 hardcode_direct=yes
7329 hardcode_minus_L=no
7330 hardcode_shlibpath_var=no
7331 hardcode_runpath_var=yes
7332 runpath_var=LD_RUN_PATH
7333 ;;
7334
7335 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7336 no_undefined_flag='${wl}-z ${wl}text'
7337 if test "$GCC" = yes; then
7338 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7339 else
7340 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7341 fi
7342 runpath_var='LD_RUN_PATH'
7343 hardcode_shlibpath_var=no
7344 ;;
7345
7346 sysv5*)
7347 no_undefined_flag=' -z text'
7348 # $CC -shared without GNU ld will not create a library from C++
7349 # object files and a static libstdc++, better avoid it by now
7350 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7351 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7352 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7353 hardcode_libdir_flag_spec=
7354 hardcode_shlibpath_var=no
7355 runpath_var='LD_RUN_PATH'
7356 ;;
7357
7358 uts4*)
7359 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7360 hardcode_libdir_flag_spec='-L$libdir'
7361 hardcode_shlibpath_var=no
7362 ;;
7363
7364 *)
7365 ld_shlibs=no
7366 ;;
7367 esac
7368 fi
7369
John Criswell7a73b802003-06-30 21:59:07 +00007370echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7371echo "${ECHO_T}$ld_shlibs" >&6
7372test "$ld_shlibs" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00007373
John Criswell47fdd832003-07-14 16:52:07 +00007374variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7375if test "$GCC" = yes; then
7376 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7377fi
7378
7379#
7380# Do we need to explicitly link libc?
7381#
7382case "x$archive_cmds_need_lc" in
7383x|xyes)
7384 # Assume -lc should be added
7385 archive_cmds_need_lc=yes
7386
7387 if test "$enable_shared" = yes && test "$GCC" = yes; then
7388 case $archive_cmds in
7389 *'~'*)
7390 # FIXME: we may have to deal with multi-command sequences.
7391 ;;
7392 '$CC '*)
7393 # Test whether the compiler implicitly links with -lc since on some
7394 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7395 # to ld, don't add -lc before -lgcc.
7396 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7397echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7398 $rm conftest*
7399 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7400
7401 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7402 (eval $ac_compile) 2>&5
7403 ac_status=$?
7404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7405 (exit $ac_status); } 2>conftest.err; then
7406 soname=conftest
7407 lib=conftest
7408 libobjs=conftest.$ac_objext
7409 deplibs=
7410 wl=$lt_prog_compiler_wl
7411 compiler_flags=-v
7412 linker_flags=-v
7413 verstring=
7414 output_objdir=.
7415 libname=conftest
7416 lt_save_allow_undefined_flag=$allow_undefined_flag
7417 allow_undefined_flag=
7418 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7419 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7420 ac_status=$?
7421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7422 (exit $ac_status); }
7423 then
7424 archive_cmds_need_lc=no
7425 else
7426 archive_cmds_need_lc=yes
7427 fi
7428 allow_undefined_flag=$lt_save_allow_undefined_flag
7429 else
7430 cat conftest.err 1>&5
7431 fi
7432 $rm conftest*
7433 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7434echo "${ECHO_T}$archive_cmds_need_lc" >&6
7435 ;;
7436 esac
7437 fi
7438 ;;
7439esac
7440
John Criswell7a73b802003-06-30 21:59:07 +00007441echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7442echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7443hardcode_action=
7444if test -n "$hardcode_libdir_flag_spec" || \
John Criswell47fdd832003-07-14 16:52:07 +00007445 test -n "$runpath_var " || \
7446 test "X$hardcode_automatic"="Xyes" ; then
John Criswell7a73b802003-06-30 21:59:07 +00007447
7448 # We can hardcode non-existant directories.
7449 if test "$hardcode_direct" != no &&
7450 # If the only mechanism to avoid hardcoding is shlibpath_var, we
7451 # have to relink, otherwise we might link with an installed library
7452 # when we should be linking with a yet-to-be-installed one
John Criswell47fdd832003-07-14 16:52:07 +00007453 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
John Criswell7a73b802003-06-30 21:59:07 +00007454 test "$hardcode_minus_L" != no; then
7455 # Linking always hardcodes the temporary library directory.
7456 hardcode_action=relink
7457 else
7458 # We can link without hardcoding, and we can hardcode nonexisting dirs.
7459 hardcode_action=immediate
7460 fi
7461else
7462 # We cannot hardcode anything, or else we can only hardcode existing
7463 # directories.
7464 hardcode_action=unsupported
7465fi
7466echo "$as_me:$LINENO: result: $hardcode_action" >&5
7467echo "${ECHO_T}$hardcode_action" >&6
John Criswell7a73b802003-06-30 21:59:07 +00007468
John Criswell47fdd832003-07-14 16:52:07 +00007469if test "$hardcode_action" = relink; then
7470 # Fast installation is not supported
7471 enable_fast_install=no
7472elif test "$shlibpath_overrides_runpath" = yes ||
7473 test "$enable_shared" = no; then
7474 # Fast installation is not necessary
7475 enable_fast_install=needless
7476fi
7477
John Criswell7a73b802003-06-30 21:59:07 +00007478striplib=
7479old_striplib=
7480echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7481echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7482if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7483 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7484 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7485 echo "$as_me:$LINENO: result: yes" >&5
7486echo "${ECHO_T}yes" >&6
7487else
John Criswell47fdd832003-07-14 16:52:07 +00007488# FIXME - insert some real tests, host_os isn't really good enough
7489 case $host_os in
7490 darwin*)
7491 if test -n "$STRIP" ; then
7492 striplib="$STRIP -x"
7493 echo "$as_me:$LINENO: result: yes" >&5
7494echo "${ECHO_T}yes" >&6
7495 else
John Criswell7a73b802003-06-30 21:59:07 +00007496 echo "$as_me:$LINENO: result: no" >&5
7497echo "${ECHO_T}no" >&6
7498fi
John Criswell47fdd832003-07-14 16:52:07 +00007499 ;;
7500 *)
7501 echo "$as_me:$LINENO: result: no" >&5
7502echo "${ECHO_T}no" >&6
7503 ;;
7504 esac
7505fi
John Criswell7a73b802003-06-30 21:59:07 +00007506
John Criswell7a73b802003-06-30 21:59:07 +00007507echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7508echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7509library_names_spec=
7510libname_spec='lib$name'
7511soname_spec=
John Criswell47fdd832003-07-14 16:52:07 +00007512shrext=".so"
John Criswell7a73b802003-06-30 21:59:07 +00007513postinstall_cmds=
7514postuninstall_cmds=
7515finish_cmds=
7516finish_eval=
7517shlibpath_var=
7518shlibpath_overrides_runpath=unknown
7519version_type=none
7520dynamic_linker="$host_os ld.so"
7521sys_lib_dlsearch_path_spec="/lib /usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +00007522if test "$GCC" = yes; then
7523 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7524 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7525 # if the path contains ";" then we assume it to be the separator
7526 # otherwise default to the standard path separator (i.e. ":") - it is
7527 # assumed that no part of a normal pathname contains ";" but that should
7528 # okay in the real world where ";" in dirpaths is itself problematic.
7529 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7530 else
7531 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7532 fi
7533else
7534 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7535fi
7536need_lib_prefix=unknown
7537hardcode_into_libs=no
7538
7539# when you set need_version to no, make sure it does not cause -set_version
7540# flags to be left without arguments
7541need_version=unknown
John Criswell7a73b802003-06-30 21:59:07 +00007542
7543case $host_os in
7544aix3*)
7545 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007546 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +00007547 shlibpath_var=LIBPATH
7548
John Criswell47fdd832003-07-14 16:52:07 +00007549 # AIX 3 has no versioning support, so we append a major version to the name.
7550 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007551 ;;
7552
7553aix4* | aix5*)
7554 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007555 need_lib_prefix=no
7556 need_version=no
7557 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +00007558 if test "$host_cpu" = ia64; then
7559 # AIX 5 supports IA64
John Criswell47fdd832003-07-14 16:52:07 +00007560 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007561 shlibpath_var=LD_LIBRARY_PATH
7562 else
7563 # With GCC up to 2.95.x, collect2 would create an import file
7564 # for dependence libraries. The import file would start with
7565 # the line `#! .'. This would cause the generated library to
7566 # depend on `.', always an invalid library. This was fixed in
7567 # development snapshots of GCC prior to 3.0.
7568 case $host_os in
7569 aix4 | aix4.[01] | aix4.[01].*)
John Criswell47fdd832003-07-14 16:52:07 +00007570 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7571 echo ' yes '
7572 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7573 :
7574 else
7575 can_build_shared=no
7576 fi
7577 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007578 esac
John Criswell47fdd832003-07-14 16:52:07 +00007579 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7580 # soname into executable. Probably we can add versioning support to
7581 # collect2, so additional links can be useful in future.
John Criswell7a73b802003-06-30 21:59:07 +00007582 if test "$aix_use_runtimelinking" = yes; then
7583 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7584 # instead of lib<name>.a to let people know that these are not
7585 # typical AIX shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +00007586 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007587 else
7588 # We preserve .a as extension for shared libraries through AIX4.2
7589 # and later when we are not doing run time linking.
7590 library_names_spec='${libname}${release}.a $libname.a'
John Criswell47fdd832003-07-14 16:52:07 +00007591 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007592 fi
7593 shlibpath_var=LIBPATH
7594 fi
7595 ;;
7596
7597amigaos*)
7598 library_names_spec='$libname.ixlibrary $libname.a'
7599 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7600 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'
7601 ;;
7602
7603beos*)
John Criswell47fdd832003-07-14 16:52:07 +00007604 library_names_spec='${libname}${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007605 dynamic_linker="$host_os ld.so"
7606 shlibpath_var=LIBRARY_PATH
7607 ;;
7608
7609bsdi4*)
7610 version_type=linux
7611 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7613 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007614 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7615 shlibpath_var=LD_LIBRARY_PATH
7616 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7617 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
John Criswell7a73b802003-06-30 21:59:07 +00007618 # the default ld.so.conf also contains /usr/contrib/lib and
7619 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7620 # libtool to hard-code these into programs
7621 ;;
7622
7623cygwin* | mingw* | pw32*)
7624 version_type=windows
John Criswell47fdd832003-07-14 16:52:07 +00007625 shrext=".dll"
John Criswell7a73b802003-06-30 21:59:07 +00007626 need_version=no
7627 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +00007628
John Criswell7a73b802003-06-30 21:59:07 +00007629 case $GCC,$host_os in
John Criswell47fdd832003-07-14 16:52:07 +00007630 yes,cygwin* | yes,mingw* | yes,pw32*)
John Criswell7a73b802003-06-30 21:59:07 +00007631 library_names_spec='$libname.dll.a'
John Criswell47fdd832003-07-14 16:52:07 +00007632 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7633 postinstall_cmds='base_file=`basename \${file}`~
7634 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
John Criswell7a73b802003-06-30 21:59:07 +00007635 dldir=$destdir/`dirname \$dlpath`~
7636 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +00007637 $install_prog $dir/$dlname \$dldir/$dlname'
7638 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
John Criswell7a73b802003-06-30 21:59:07 +00007639 dlpath=$dir/\$dldll~
7640 $rm \$dlpath'
John Criswell47fdd832003-07-14 16:52:07 +00007641 shlibpath_overrides_runpath=yes
7642
7643 case $host_os in
7644 cygwin*)
7645 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7646 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7647 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
7648 ;;
7649 mingw*)
7650 # MinGW DLLs use traditional 'lib' prefix
7651 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7652 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7653 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7654 # It is most probably a Windows format PATH printed by
7655 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7656 # path with ; separators, and with drive letters. We can handle the
7657 # drive letters (cygwin fileutils understands them), so leave them,
7658 # especially as we might pass files found there to a mingw objdump,
7659 # which wouldn't understand a cygwinified path. Ahh.
7660 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7661 else
7662 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7663 fi
7664 ;;
7665 pw32*)
7666 # pw32 DLLs use 'pw' prefix rather than 'lib'
7667 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7668 ;;
7669 esac
John Criswell7a73b802003-06-30 21:59:07 +00007670 ;;
John Criswell47fdd832003-07-14 16:52:07 +00007671
John Criswell7a73b802003-06-30 21:59:07 +00007672 *)
John Criswell47fdd832003-07-14 16:52:07 +00007673 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
John Criswell7a73b802003-06-30 21:59:07 +00007674 ;;
7675 esac
7676 dynamic_linker='Win32 ld.exe'
7677 # FIXME: first we should search . and the directory the executable is in
7678 shlibpath_var=PATH
7679 ;;
7680
7681darwin* | rhapsody*)
7682 dynamic_linker="$host_os dyld"
7683 version_type=darwin
7684 need_lib_prefix=no
7685 need_version=no
7686 # FIXME: Relying on posixy $() will cause problems for
7687 # cross-compilation, but unfortunately the echo tests do not
7688 # yet detect zsh echo's removal of \ escapes.
John Criswell47fdd832003-07-14 16:52:07 +00007689 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7690 soname_spec='${libname}${release}${major}$shared_ext'
John Criswell7a73b802003-06-30 21:59:07 +00007691 shlibpath_overrides_runpath=yes
7692 shlibpath_var=DYLD_LIBRARY_PATH
John Criswell47fdd832003-07-14 16:52:07 +00007693 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
7694 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7695 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7696 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"`
7697 fi
7698 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7699 ;;
7700
7701dgux*)
7702 version_type=linux
7703 need_lib_prefix=no
7704 need_version=no
7705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7706 soname_spec='${libname}${release}${shared_ext}$major'
7707 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +00007708 ;;
7709
7710freebsd1*)
7711 dynamic_linker=no
7712 ;;
7713
7714freebsd*)
7715 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7716 version_type=freebsd-$objformat
7717 case $version_type in
7718 freebsd-elf*)
John Criswell47fdd832003-07-14 16:52:07 +00007719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007720 need_version=no
7721 need_lib_prefix=no
7722 ;;
7723 freebsd-*)
John Criswell47fdd832003-07-14 16:52:07 +00007724 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +00007725 need_version=yes
7726 ;;
7727 esac
7728 shlibpath_var=LD_LIBRARY_PATH
7729 case $host_os in
7730 freebsd2*)
7731 shlibpath_overrides_runpath=yes
7732 ;;
John Criswell47fdd832003-07-14 16:52:07 +00007733 freebsd3.01* | freebsdelf3.01*)
7734 shlibpath_overrides_runpath=yes
7735 hardcode_into_libs=yes
7736 ;;
7737 *) # from 3.2 on
John Criswell7a73b802003-06-30 21:59:07 +00007738 shlibpath_overrides_runpath=no
7739 hardcode_into_libs=yes
7740 ;;
7741 esac
7742 ;;
7743
7744gnu*)
7745 version_type=linux
7746 need_lib_prefix=no
7747 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7749 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007750 shlibpath_var=LD_LIBRARY_PATH
7751 hardcode_into_libs=yes
7752 ;;
7753
7754hpux9* | hpux10* | hpux11*)
7755 # Give a soname corresponding to the major version so that dld.sl refuses to
7756 # link against other versions.
John Criswell7a73b802003-06-30 21:59:07 +00007757 version_type=sunos
7758 need_lib_prefix=no
7759 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007760 case "$host_cpu" in
7761 ia64*)
7762 shrext='.so'
7763 hardcode_into_libs=yes
7764 dynamic_linker="$host_os dld.so"
7765 shlibpath_var=LD_LIBRARY_PATH
7766 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7767 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7768 soname_spec='${libname}${release}${shared_ext}$major'
7769 if test "X$HPUX_IA64_MODE" = X32; then
7770 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7771 else
7772 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7773 fi
7774 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7775 ;;
7776 hppa*64*)
7777 shrext='.sl'
7778 hardcode_into_libs=yes
7779 dynamic_linker="$host_os dld.sl"
7780 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7781 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7782 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7783 soname_spec='${libname}${release}${shared_ext}$major'
7784 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7785 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7786 ;;
7787 *)
7788 shrext='.sl'
7789 dynamic_linker="$host_os dld.sl"
7790 shlibpath_var=SHLIB_PATH
7791 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7793 soname_spec='${libname}${release}${shared_ext}$major'
7794 ;;
7795 esac
John Criswell7a73b802003-06-30 21:59:07 +00007796 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7797 postinstall_cmds='chmod 555 $lib'
7798 ;;
7799
John Criswell47fdd832003-07-14 16:52:07 +00007800irix5* | irix6* | nonstopux*)
7801 case $host_os in
7802 nonstopux*) version_type=nonstopux ;;
7803 *)
7804 if test "$lt_cv_prog_gnu_ld" = yes; then
7805 version_type=linux
7806 else
7807 version_type=irix
7808 fi ;;
7809 esac
John Criswell7a73b802003-06-30 21:59:07 +00007810 need_lib_prefix=no
7811 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007812 soname_spec='${libname}${release}${shared_ext}$major'
7813 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 +00007814 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00007815 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +00007816 libsuff= shlibsuff=
7817 ;;
7818 *)
7819 case $LD in # libtool.m4 will add one of these switches to LD
John Criswell47fdd832003-07-14 16:52:07 +00007820 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7821 libsuff= shlibsuff= libmagic=32-bit;;
7822 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7823 libsuff=32 shlibsuff=N32 libmagic=N32;;
7824 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7825 libsuff=64 shlibsuff=64 libmagic=64-bit;;
John Criswell7a73b802003-06-30 21:59:07 +00007826 *) libsuff= shlibsuff= libmagic=never-match;;
7827 esac
7828 ;;
7829 esac
7830 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7831 shlibpath_overrides_runpath=no
7832 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7833 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
John Criswell47fdd832003-07-14 16:52:07 +00007834 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +00007835 ;;
7836
7837# No shared lib support for Linux oldld, aout, or coff.
John Criswell47fdd832003-07-14 16:52:07 +00007838linux*oldld* | linux*aout* | linux*coff*)
John Criswell7a73b802003-06-30 21:59:07 +00007839 dynamic_linker=no
7840 ;;
7841
7842# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +00007843linux*)
John Criswell7a73b802003-06-30 21:59:07 +00007844 version_type=linux
7845 need_lib_prefix=no
7846 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7848 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007849 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7850 shlibpath_var=LD_LIBRARY_PATH
7851 shlibpath_overrides_runpath=no
7852 # This implies no fast_install, which is unacceptable.
7853 # Some rework will be needed to allow for fast_install
7854 # before this can be enabled.
7855 hardcode_into_libs=yes
7856
7857 # We used to test for /lib/ld.so.1 and disable shared libraries on
7858 # powerpc, because MkLinux only supported shared libraries with the
7859 # GNU dynamic linker. Since this was broken with cross compilers,
7860 # most powerpc-linux boxes support dynamic linking these days and
7861 # people can always --disable-shared, the test was removed, and we
7862 # assume the GNU/Linux dynamic linker is in use.
7863 dynamic_linker='GNU/Linux ld.so'
7864 ;;
7865
7866netbsd*)
7867 version_type=sunos
7868 need_lib_prefix=no
7869 need_version=no
7870 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +00007871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +00007872 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7873 dynamic_linker='NetBSD (a.out) ld.so'
7874 else
John Criswell47fdd832003-07-14 16:52:07 +00007875 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
7876 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007877 dynamic_linker='NetBSD ld.elf_so'
7878 fi
7879 shlibpath_var=LD_LIBRARY_PATH
7880 shlibpath_overrides_runpath=yes
7881 hardcode_into_libs=yes
7882 ;;
7883
7884newsos6)
7885 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7887 shlibpath_var=LD_LIBRARY_PATH
7888 shlibpath_overrides_runpath=yes
7889 ;;
7890
7891nto-qnx)
7892 version_type=linux
7893 need_lib_prefix=no
7894 need_version=no
7895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7896 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007897 shlibpath_var=LD_LIBRARY_PATH
7898 shlibpath_overrides_runpath=yes
7899 ;;
7900
7901openbsd*)
7902 version_type=sunos
7903 need_lib_prefix=no
7904 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7906 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7907 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +00007908 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 +00007909 case $host_os in
7910 openbsd2.[89] | openbsd2.[89].*)
7911 shlibpath_overrides_runpath=no
7912 ;;
7913 *)
7914 shlibpath_overrides_runpath=yes
7915 ;;
7916 esac
John Criswell7a73b802003-06-30 21:59:07 +00007917 else
7918 shlibpath_overrides_runpath=yes
7919 fi
John Criswell7a73b802003-06-30 21:59:07 +00007920 ;;
7921
7922os2*)
7923 libname_spec='$name'
John Criswell47fdd832003-07-14 16:52:07 +00007924 shrext=".dll"
John Criswell7a73b802003-06-30 21:59:07 +00007925 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +00007926 library_names_spec='$libname${shared_ext} $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +00007927 dynamic_linker='OS/2 ld.exe'
7928 shlibpath_var=LIBPATH
7929 ;;
7930
7931osf3* | osf4* | osf5*)
7932 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +00007933 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +00007934 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007935 soname_spec='${libname}${release}${shared_ext}$major'
7936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007937 shlibpath_var=LD_LIBRARY_PATH
7938 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7939 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7940 ;;
7941
7942sco3.2v5*)
7943 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +00007944 soname_spec='${libname}${release}${shared_ext}$major'
7945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007946 shlibpath_var=LD_LIBRARY_PATH
7947 ;;
7948
7949solaris*)
7950 version_type=linux
7951 need_lib_prefix=no
7952 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7954 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007955 shlibpath_var=LD_LIBRARY_PATH
7956 shlibpath_overrides_runpath=yes
7957 hardcode_into_libs=yes
7958 # ldd complains unless libraries are executable
7959 postinstall_cmds='chmod +x $lib'
7960 ;;
7961
7962sunos4*)
7963 version_type=sunos
John Criswell47fdd832003-07-14 16:52:07 +00007964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +00007965 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7966 shlibpath_var=LD_LIBRARY_PATH
7967 shlibpath_overrides_runpath=yes
7968 if test "$with_gnu_ld" = yes; then
7969 need_lib_prefix=no
7970 fi
7971 need_version=yes
7972 ;;
7973
7974sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7975 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7977 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007978 shlibpath_var=LD_LIBRARY_PATH
7979 case $host_vendor in
7980 sni)
7981 shlibpath_overrides_runpath=no
John Criswell47fdd832003-07-14 16:52:07 +00007982 need_lib_prefix=no
7983 export_dynamic_flag_spec='${wl}-Blargedynsym'
7984 runpath_var=LD_RUN_PATH
7985 ;;
7986 siemens)
7987 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +00007988 ;;
7989 motorola)
7990 need_lib_prefix=no
7991 need_version=no
7992 shlibpath_overrides_runpath=no
7993 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7994 ;;
7995 esac
7996 ;;
7997
John Criswell7a73b802003-06-30 21:59:07 +00007998sysv4*MP*)
7999 if test -d /usr/nec ;then
8000 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00008001 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8002 soname_spec='$libname${shared_ext}.$major'
John Criswell7a73b802003-06-30 21:59:07 +00008003 shlibpath_var=LD_LIBRARY_PATH
8004 fi
8005 ;;
8006
John Criswell47fdd832003-07-14 16:52:07 +00008007uts4*)
8008 version_type=linux
8009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8010 soname_spec='${libname}${release}${shared_ext}$major'
8011 shlibpath_var=LD_LIBRARY_PATH
8012 ;;
8013
John Criswell7a73b802003-06-30 21:59:07 +00008014*)
8015 dynamic_linker=no
8016 ;;
8017esac
8018echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8019echo "${ECHO_T}$dynamic_linker" >&6
8020test "$dynamic_linker" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00008021
8022if test "x$enable_dlopen" != xyes; then
8023 enable_dlopen=unknown
8024 enable_dlopen_self=unknown
8025 enable_dlopen_self_static=unknown
8026else
8027 lt_cv_dlopen=no
8028 lt_cv_dlopen_libs=
8029
8030 case $host_os in
8031 beos*)
8032 lt_cv_dlopen="load_add_on"
8033 lt_cv_dlopen_libs=
8034 lt_cv_dlopen_self=yes
8035 ;;
8036
John Criswell47fdd832003-07-14 16:52:07 +00008037 mingw* | pw32*)
John Criswell7a73b802003-06-30 21:59:07 +00008038 lt_cv_dlopen="LoadLibrary"
8039 lt_cv_dlopen_libs=
8040 ;;
8041
John Criswell47fdd832003-07-14 16:52:07 +00008042 cygwin*)
8043 lt_cv_dlopen="dlopen"
8044 lt_cv_dlopen_libs=
8045 ;;
8046
8047 darwin*)
8048 # if libdl is installed we need to link against it
8049 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8050echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8051if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8052 echo $ECHO_N "(cached) $ECHO_C" >&6
8053else
8054 ac_check_lib_save_LIBS=$LIBS
8055LIBS="-ldl $LIBS"
8056cat >conftest.$ac_ext <<_ACEOF
8057#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +00008058/* confdefs.h. */
8059_ACEOF
8060cat confdefs.h >>conftest.$ac_ext
8061cat >>conftest.$ac_ext <<_ACEOF
8062/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00008063
8064/* Override any gcc2 internal prototype to avoid an error. */
8065#ifdef __cplusplus
8066extern "C"
8067#endif
8068/* We use char because int might match the return type of a gcc2
8069 builtin and then its argument prototype would still apply. */
8070char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +00008071int
8072main ()
8073{
8074dlopen ();
8075 ;
8076 return 0;
8077}
8078_ACEOF
8079rm -f conftest.$ac_objext conftest$ac_exeext
8080if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8081 (eval $ac_link) 2>&5
8082 ac_status=$?
8083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8084 (exit $ac_status); } &&
8085 { ac_try='test -s conftest$ac_exeext'
8086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8087 (eval $ac_try) 2>&5
8088 ac_status=$?
8089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8090 (exit $ac_status); }; }; then
8091 ac_cv_lib_dl_dlopen=yes
8092else
8093 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +00008094sed 's/^/| /' conftest.$ac_ext >&5
8095
John Criswell47fdd832003-07-14 16:52:07 +00008096ac_cv_lib_dl_dlopen=no
8097fi
8098rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8099LIBS=$ac_check_lib_save_LIBS
8100fi
8101echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8102echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8103if test $ac_cv_lib_dl_dlopen = yes; then
8104 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8105else
8106
8107 lt_cv_dlopen="dyld"
8108 lt_cv_dlopen_libs=
8109 lt_cv_dlopen_self=yes
8110
8111fi
8112
8113 ;;
8114
John Criswell7a73b802003-06-30 21:59:07 +00008115 *)
8116 echo "$as_me:$LINENO: checking for shl_load" >&5
8117echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8118if test "${ac_cv_func_shl_load+set}" = set; then
8119 echo $ECHO_N "(cached) $ECHO_C" >&6
8120else
8121 cat >conftest.$ac_ext <<_ACEOF
8122#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +00008123/* confdefs.h. */
8124_ACEOF
8125cat confdefs.h >>conftest.$ac_ext
8126cat >>conftest.$ac_ext <<_ACEOF
8127/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008128/* System header to define __stub macros and hopefully few prototypes,
John Criswell392aaa32003-07-22 19:18:09 +00008129 which can conflict with char shl_load (); below.
8130 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8131 <limits.h> exists even on freestanding compilers. */
8132#ifdef __STDC__
8133# include <limits.h>
8134#else
8135# include <assert.h>
8136#endif
John Criswell7a73b802003-06-30 21:59:07 +00008137/* Override any gcc2 internal prototype to avoid an error. */
8138#ifdef __cplusplus
8139extern "C"
John Criswell392aaa32003-07-22 19:18:09 +00008140{
John Criswell7a73b802003-06-30 21:59:07 +00008141#endif
8142/* We use char because int might match the return type of a gcc2
8143 builtin and then its argument prototype would still apply. */
8144char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +00008145/* The GNU C library defines this for functions which it implements
8146 to always fail with ENOSYS. Some functions are actually named
8147 something starting with __ and the normal name is an alias. */
8148#if defined (__stub_shl_load) || defined (__stub___shl_load)
8149choke me
8150#else
John Criswell392aaa32003-07-22 19:18:09 +00008151char (*f) () = shl_load;
8152#endif
8153#ifdef __cplusplus
8154}
John Criswell7a73b802003-06-30 21:59:07 +00008155#endif
8156
John Criswell392aaa32003-07-22 19:18:09 +00008157int
8158main ()
8159{
8160return f != shl_load;
John Criswell7a73b802003-06-30 21:59:07 +00008161 ;
8162 return 0;
8163}
8164_ACEOF
8165rm -f conftest.$ac_objext conftest$ac_exeext
8166if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8167 (eval $ac_link) 2>&5
8168 ac_status=$?
8169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8170 (exit $ac_status); } &&
8171 { ac_try='test -s conftest$ac_exeext'
8172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8173 (eval $ac_try) 2>&5
8174 ac_status=$?
8175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8176 (exit $ac_status); }; }; then
8177 ac_cv_func_shl_load=yes
8178else
8179 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +00008180sed 's/^/| /' conftest.$ac_ext >&5
8181
John Criswell7a73b802003-06-30 21:59:07 +00008182ac_cv_func_shl_load=no
8183fi
8184rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8185fi
8186echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8187echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8188if test $ac_cv_func_shl_load = yes; then
8189 lt_cv_dlopen="shl_load"
8190else
8191 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8192echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8193if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8194 echo $ECHO_N "(cached) $ECHO_C" >&6
8195else
8196 ac_check_lib_save_LIBS=$LIBS
8197LIBS="-ldld $LIBS"
8198cat >conftest.$ac_ext <<_ACEOF
8199#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +00008200/* confdefs.h. */
8201_ACEOF
8202cat confdefs.h >>conftest.$ac_ext
8203cat >>conftest.$ac_ext <<_ACEOF
8204/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008205
8206/* Override any gcc2 internal prototype to avoid an error. */
8207#ifdef __cplusplus
8208extern "C"
8209#endif
8210/* We use char because int might match the return type of a gcc2
8211 builtin and then its argument prototype would still apply. */
8212char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +00008213int
8214main ()
8215{
8216shl_load ();
8217 ;
8218 return 0;
8219}
8220_ACEOF
8221rm -f conftest.$ac_objext conftest$ac_exeext
8222if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8223 (eval $ac_link) 2>&5
8224 ac_status=$?
8225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8226 (exit $ac_status); } &&
8227 { ac_try='test -s conftest$ac_exeext'
8228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8229 (eval $ac_try) 2>&5
8230 ac_status=$?
8231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8232 (exit $ac_status); }; }; then
8233 ac_cv_lib_dld_shl_load=yes
8234else
8235 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +00008236sed 's/^/| /' conftest.$ac_ext >&5
8237
John Criswell7a73b802003-06-30 21:59:07 +00008238ac_cv_lib_dld_shl_load=no
8239fi
8240rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8241LIBS=$ac_check_lib_save_LIBS
8242fi
8243echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8244echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8245if test $ac_cv_lib_dld_shl_load = yes; then
8246 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8247else
8248 echo "$as_me:$LINENO: checking for dlopen" >&5
8249echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8250if test "${ac_cv_func_dlopen+set}" = set; then
8251 echo $ECHO_N "(cached) $ECHO_C" >&6
8252else
8253 cat >conftest.$ac_ext <<_ACEOF
8254#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +00008255/* confdefs.h. */
8256_ACEOF
8257cat confdefs.h >>conftest.$ac_ext
8258cat >>conftest.$ac_ext <<_ACEOF
8259/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008260/* System header to define __stub macros and hopefully few prototypes,
John Criswell392aaa32003-07-22 19:18:09 +00008261 which can conflict with char dlopen (); below.
8262 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8263 <limits.h> exists even on freestanding compilers. */
8264#ifdef __STDC__
8265# include <limits.h>
8266#else
8267# include <assert.h>
8268#endif
John Criswell7a73b802003-06-30 21:59:07 +00008269/* Override any gcc2 internal prototype to avoid an error. */
8270#ifdef __cplusplus
8271extern "C"
John Criswell392aaa32003-07-22 19:18:09 +00008272{
John Criswell7a73b802003-06-30 21:59:07 +00008273#endif
8274/* We use char because int might match the return type of a gcc2
8275 builtin and then its argument prototype would still apply. */
8276char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +00008277/* The GNU C library defines this for functions which it implements
8278 to always fail with ENOSYS. Some functions are actually named
8279 something starting with __ and the normal name is an alias. */
8280#if defined (__stub_dlopen) || defined (__stub___dlopen)
8281choke me
8282#else
John Criswell392aaa32003-07-22 19:18:09 +00008283char (*f) () = dlopen;
8284#endif
8285#ifdef __cplusplus
8286}
John Criswell7a73b802003-06-30 21:59:07 +00008287#endif
8288
John Criswell392aaa32003-07-22 19:18:09 +00008289int
8290main ()
8291{
8292return f != dlopen;
John Criswell7a73b802003-06-30 21:59:07 +00008293 ;
8294 return 0;
8295}
8296_ACEOF
8297rm -f conftest.$ac_objext conftest$ac_exeext
8298if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8299 (eval $ac_link) 2>&5
8300 ac_status=$?
8301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8302 (exit $ac_status); } &&
8303 { ac_try='test -s conftest$ac_exeext'
8304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8305 (eval $ac_try) 2>&5
8306 ac_status=$?
8307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8308 (exit $ac_status); }; }; then
8309 ac_cv_func_dlopen=yes
8310else
8311 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +00008312sed 's/^/| /' conftest.$ac_ext >&5
8313
John Criswell7a73b802003-06-30 21:59:07 +00008314ac_cv_func_dlopen=no
8315fi
8316rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8317fi
8318echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8319echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8320if test $ac_cv_func_dlopen = yes; then
8321 lt_cv_dlopen="dlopen"
8322else
8323 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8324echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8325if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8326 echo $ECHO_N "(cached) $ECHO_C" >&6
8327else
8328 ac_check_lib_save_LIBS=$LIBS
8329LIBS="-ldl $LIBS"
8330cat >conftest.$ac_ext <<_ACEOF
8331#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +00008332/* confdefs.h. */
8333_ACEOF
8334cat confdefs.h >>conftest.$ac_ext
8335cat >>conftest.$ac_ext <<_ACEOF
8336/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008337
8338/* Override any gcc2 internal prototype to avoid an error. */
8339#ifdef __cplusplus
8340extern "C"
8341#endif
8342/* We use char because int might match the return type of a gcc2
8343 builtin and then its argument prototype would still apply. */
8344char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +00008345int
8346main ()
8347{
8348dlopen ();
8349 ;
8350 return 0;
8351}
8352_ACEOF
8353rm -f conftest.$ac_objext conftest$ac_exeext
8354if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8355 (eval $ac_link) 2>&5
8356 ac_status=$?
8357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8358 (exit $ac_status); } &&
8359 { ac_try='test -s conftest$ac_exeext'
8360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8361 (eval $ac_try) 2>&5
8362 ac_status=$?
8363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8364 (exit $ac_status); }; }; then
8365 ac_cv_lib_dl_dlopen=yes
8366else
8367 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +00008368sed 's/^/| /' conftest.$ac_ext >&5
8369
John Criswell7a73b802003-06-30 21:59:07 +00008370ac_cv_lib_dl_dlopen=no
8371fi
8372rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8373LIBS=$ac_check_lib_save_LIBS
8374fi
8375echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8376echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8377if test $ac_cv_lib_dl_dlopen = yes; then
8378 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8379else
8380 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8381echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8382if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8383 echo $ECHO_N "(cached) $ECHO_C" >&6
8384else
8385 ac_check_lib_save_LIBS=$LIBS
8386LIBS="-lsvld $LIBS"
8387cat >conftest.$ac_ext <<_ACEOF
8388#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +00008389/* confdefs.h. */
8390_ACEOF
8391cat confdefs.h >>conftest.$ac_ext
8392cat >>conftest.$ac_ext <<_ACEOF
8393/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008394
8395/* Override any gcc2 internal prototype to avoid an error. */
8396#ifdef __cplusplus
8397extern "C"
8398#endif
8399/* We use char because int might match the return type of a gcc2
8400 builtin and then its argument prototype would still apply. */
8401char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +00008402int
8403main ()
8404{
8405dlopen ();
8406 ;
8407 return 0;
8408}
8409_ACEOF
8410rm -f conftest.$ac_objext conftest$ac_exeext
8411if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8412 (eval $ac_link) 2>&5
8413 ac_status=$?
8414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8415 (exit $ac_status); } &&
8416 { ac_try='test -s conftest$ac_exeext'
8417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8418 (eval $ac_try) 2>&5
8419 ac_status=$?
8420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8421 (exit $ac_status); }; }; then
8422 ac_cv_lib_svld_dlopen=yes
8423else
8424 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +00008425sed 's/^/| /' conftest.$ac_ext >&5
8426
John Criswell7a73b802003-06-30 21:59:07 +00008427ac_cv_lib_svld_dlopen=no
8428fi
8429rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8430LIBS=$ac_check_lib_save_LIBS
8431fi
8432echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8433echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8434if test $ac_cv_lib_svld_dlopen = yes; then
8435 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8436else
8437 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8438echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8439if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8440 echo $ECHO_N "(cached) $ECHO_C" >&6
8441else
8442 ac_check_lib_save_LIBS=$LIBS
8443LIBS="-ldld $LIBS"
8444cat >conftest.$ac_ext <<_ACEOF
8445#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +00008446/* confdefs.h. */
8447_ACEOF
8448cat confdefs.h >>conftest.$ac_ext
8449cat >>conftest.$ac_ext <<_ACEOF
8450/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008451
8452/* Override any gcc2 internal prototype to avoid an error. */
8453#ifdef __cplusplus
8454extern "C"
8455#endif
8456/* We use char because int might match the return type of a gcc2
8457 builtin and then its argument prototype would still apply. */
8458char dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +00008459int
8460main ()
8461{
8462dld_link ();
8463 ;
8464 return 0;
8465}
8466_ACEOF
8467rm -f conftest.$ac_objext conftest$ac_exeext
8468if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8469 (eval $ac_link) 2>&5
8470 ac_status=$?
8471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8472 (exit $ac_status); } &&
8473 { ac_try='test -s conftest$ac_exeext'
8474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8475 (eval $ac_try) 2>&5
8476 ac_status=$?
8477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8478 (exit $ac_status); }; }; then
8479 ac_cv_lib_dld_dld_link=yes
8480else
8481 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +00008482sed 's/^/| /' conftest.$ac_ext >&5
8483
John Criswell7a73b802003-06-30 21:59:07 +00008484ac_cv_lib_dld_dld_link=no
8485fi
8486rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8487LIBS=$ac_check_lib_save_LIBS
8488fi
8489echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8490echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8491if test $ac_cv_lib_dld_dld_link = yes; then
8492 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8493fi
8494
8495
8496fi
8497
8498
8499fi
8500
8501
8502fi
8503
8504
8505fi
8506
8507
8508fi
8509
8510 ;;
8511 esac
8512
8513 if test "x$lt_cv_dlopen" != xno; then
8514 enable_dlopen=yes
8515 else
8516 enable_dlopen=no
8517 fi
8518
8519 case $lt_cv_dlopen in
8520 dlopen)
8521 save_CPPFLAGS="$CPPFLAGS"
John Criswell47fdd832003-07-14 16:52:07 +00008522 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
John Criswell7a73b802003-06-30 21:59:07 +00008523
8524 save_LDFLAGS="$LDFLAGS"
8525 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8526
8527 save_LIBS="$LIBS"
8528 LIBS="$lt_cv_dlopen_libs $LIBS"
8529
8530 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8531echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8532if test "${lt_cv_dlopen_self+set}" = set; then
8533 echo $ECHO_N "(cached) $ECHO_C" >&6
8534else
8535 if test "$cross_compiling" = yes; then :
8536 lt_cv_dlopen_self=cross
8537else
John Criswell47fdd832003-07-14 16:52:07 +00008538 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +00008539 lt_status=$lt_dlunknown
8540 cat > conftest.$ac_ext <<EOF
John Criswellc764fbc2003-09-06 15:17:13 +00008541#line 8541 "configure"
John Criswell7a73b802003-06-30 21:59:07 +00008542#include "confdefs.h"
8543
8544#if HAVE_DLFCN_H
8545#include <dlfcn.h>
8546#endif
8547
8548#include <stdio.h>
8549
8550#ifdef RTLD_GLOBAL
8551# define LT_DLGLOBAL RTLD_GLOBAL
8552#else
8553# ifdef DL_GLOBAL
8554# define LT_DLGLOBAL DL_GLOBAL
8555# else
8556# define LT_DLGLOBAL 0
8557# endif
8558#endif
8559
8560/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8561 find out it does not work in some platform. */
8562#ifndef LT_DLLAZY_OR_NOW
8563# ifdef RTLD_LAZY
8564# define LT_DLLAZY_OR_NOW RTLD_LAZY
8565# else
8566# ifdef DL_LAZY
8567# define LT_DLLAZY_OR_NOW DL_LAZY
8568# else
8569# ifdef RTLD_NOW
8570# define LT_DLLAZY_OR_NOW RTLD_NOW
8571# else
8572# ifdef DL_NOW
8573# define LT_DLLAZY_OR_NOW DL_NOW
8574# else
8575# define LT_DLLAZY_OR_NOW 0
8576# endif
8577# endif
8578# endif
8579# endif
8580#endif
8581
8582#ifdef __cplusplus
8583extern "C" void exit (int);
8584#endif
8585
8586void fnord() { int i=42;}
8587int main ()
8588{
8589 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8590 int status = $lt_dlunknown;
8591
8592 if (self)
8593 {
8594 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8595 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8596 /* dlclose (self); */
8597 }
8598
8599 exit (status);
8600}
8601EOF
8602 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8603 (eval $ac_link) 2>&5
8604 ac_status=$?
8605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8606 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8607 (./conftest; exit; ) 2>/dev/null
8608 lt_status=$?
8609 case x$lt_status in
8610 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8611 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8612 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8613 esac
8614 else :
8615 # compilation failed
8616 lt_cv_dlopen_self=no
8617 fi
8618fi
8619rm -fr conftest*
8620
8621
8622fi
8623echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8624echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8625
8626 if test "x$lt_cv_dlopen_self" = xyes; then
8627 LDFLAGS="$LDFLAGS $link_static_flag"
8628 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8629echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8630if test "${lt_cv_dlopen_self_static+set}" = set; then
8631 echo $ECHO_N "(cached) $ECHO_C" >&6
8632else
8633 if test "$cross_compiling" = yes; then :
8634 lt_cv_dlopen_self_static=cross
8635else
John Criswell47fdd832003-07-14 16:52:07 +00008636 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +00008637 lt_status=$lt_dlunknown
8638 cat > conftest.$ac_ext <<EOF
John Criswellc764fbc2003-09-06 15:17:13 +00008639#line 8639 "configure"
John Criswell7a73b802003-06-30 21:59:07 +00008640#include "confdefs.h"
8641
8642#if HAVE_DLFCN_H
8643#include <dlfcn.h>
8644#endif
8645
8646#include <stdio.h>
8647
8648#ifdef RTLD_GLOBAL
8649# define LT_DLGLOBAL RTLD_GLOBAL
8650#else
8651# ifdef DL_GLOBAL
8652# define LT_DLGLOBAL DL_GLOBAL
8653# else
8654# define LT_DLGLOBAL 0
8655# endif
8656#endif
8657
8658/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8659 find out it does not work in some platform. */
8660#ifndef LT_DLLAZY_OR_NOW
8661# ifdef RTLD_LAZY
8662# define LT_DLLAZY_OR_NOW RTLD_LAZY
8663# else
8664# ifdef DL_LAZY
8665# define LT_DLLAZY_OR_NOW DL_LAZY
8666# else
8667# ifdef RTLD_NOW
8668# define LT_DLLAZY_OR_NOW RTLD_NOW
8669# else
8670# ifdef DL_NOW
8671# define LT_DLLAZY_OR_NOW DL_NOW
8672# else
8673# define LT_DLLAZY_OR_NOW 0
8674# endif
8675# endif
8676# endif
8677# endif
8678#endif
8679
8680#ifdef __cplusplus
8681extern "C" void exit (int);
8682#endif
8683
8684void fnord() { int i=42;}
8685int main ()
8686{
8687 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8688 int status = $lt_dlunknown;
8689
8690 if (self)
8691 {
8692 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8693 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8694 /* dlclose (self); */
8695 }
8696
8697 exit (status);
8698}
8699EOF
8700 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8701 (eval $ac_link) 2>&5
8702 ac_status=$?
8703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8704 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8705 (./conftest; exit; ) 2>/dev/null
8706 lt_status=$?
8707 case x$lt_status in
8708 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8709 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8710 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8711 esac
8712 else :
8713 # compilation failed
8714 lt_cv_dlopen_self_static=no
8715 fi
8716fi
8717rm -fr conftest*
8718
8719
8720fi
8721echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8722echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8723 fi
8724
8725 CPPFLAGS="$save_CPPFLAGS"
8726 LDFLAGS="$save_LDFLAGS"
8727 LIBS="$save_LIBS"
8728 ;;
8729 esac
8730
8731 case $lt_cv_dlopen_self in
8732 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8733 *) enable_dlopen_self=unknown ;;
8734 esac
8735
8736 case $lt_cv_dlopen_self_static in
8737 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8738 *) enable_dlopen_self_static=unknown ;;
8739 esac
8740fi
8741
8742
John Criswell47fdd832003-07-14 16:52:07 +00008743# Report which librarie types wil actually be built
8744echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8745echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8746echo "$as_me:$LINENO: result: $can_build_shared" >&5
8747echo "${ECHO_T}$can_build_shared" >&6
John Criswell7a73b802003-06-30 21:59:07 +00008748
John Criswell47fdd832003-07-14 16:52:07 +00008749echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8750echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8751test "$can_build_shared" = "no" && enable_shared=no
8752
8753# On AIX, shared libraries and static libraries use the same namespace, and
8754# are all built from PIC.
8755case "$host_os" in
8756aix3*)
8757 test "$enable_shared" = yes && enable_static=no
8758 if test -n "$RANLIB"; then
8759 archive_cmds="$archive_cmds~\$RANLIB \$lib"
8760 postinstall_cmds='$RANLIB $lib'
8761 fi
8762 ;;
8763
8764aix4*)
8765 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8766 test "$enable_shared" = yes && enable_static=no
8767 fi
8768 ;;
8769 darwin* | rhapsody*)
8770 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
8771 archive_cmds_need_lc=no
8772 case "$host_os" in
8773 rhapsody* | darwin1.[012])
8774 allow_undefined_flag='-undefined suppress'
8775 ;;
8776 *) # Darwin 1.3 on
8777 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
8778 ;;
8779 esac
8780 # FIXME: Relying on posixy $() will cause problems for
8781 # cross-compilation, but unfortunately the echo tests do not
8782 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
8783 # `"' quotes if we put them in here... so don't!
8784 output_verbose_link_cmd='echo'
8785 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8786 module_cmds='$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
8787 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8788 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}'
8789 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}'
8790 hardcode_direct=no
8791 hardcode_automatic=yes
8792 hardcode_shlibpath_var=unsupported
8793 whole_archive_flag_spec='-all_load $convenience'
8794 link_all_deplibs=yes
John Criswell7a73b802003-06-30 21:59:07 +00008795 fi
John Criswell7a73b802003-06-30 21:59:07 +00008796 ;;
John Criswell47fdd832003-07-14 16:52:07 +00008797esac
8798echo "$as_me:$LINENO: result: $enable_shared" >&5
8799echo "${ECHO_T}$enable_shared" >&6
John Criswell7a73b802003-06-30 21:59:07 +00008800
John Criswell47fdd832003-07-14 16:52:07 +00008801echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8802echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8803# Make sure either enable_shared or enable_static is yes.
8804test "$enable_shared" = yes || enable_static=yes
8805echo "$as_me:$LINENO: result: $enable_static" >&5
8806echo "${ECHO_T}$enable_static" >&6
8807
8808# The else clause should only fire when bootstrapping the
John Criswell7a73b802003-06-30 21:59:07 +00008809# libtool distribution, otherwise you forgot to ship ltmain.sh
8810# with your package, and you will get complaints that there are
8811# no rules to generate ltmain.sh.
8812if test -f "$ltmain"; then
John Criswell47fdd832003-07-14 16:52:07 +00008813 # See if we are running on zsh, and set the options which allow our commands through
8814 # without removal of \ escapes.
8815 if test -n "${ZSH_VERSION+set}" ; then
8816 setopt NO_GLOB_SUBST
8817 fi
John Criswell7a73b802003-06-30 21:59:07 +00008818 # Now quote all the things that may contain metacharacters while being
8819 # careful not to overquote the AC_SUBSTed values. We take copies of the
8820 # variables and quote the copies for generation of the libtool script.
John Criswell47fdd832003-07-14 16:52:07 +00008821 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
8822 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8823 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8824 deplibs_check_method reload_flag reload_cmds need_locks \
8825 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8826 lt_cv_sys_global_symbol_to_c_name_address \
John Criswell7a73b802003-06-30 21:59:07 +00008827 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
John Criswell47fdd832003-07-14 16:52:07 +00008828 old_postinstall_cmds old_postuninstall_cmds \
8829 compiler \
8830 CC \
8831 LD \
8832 lt_prog_compiler_wl \
8833 lt_prog_compiler_pic \
8834 lt_prog_compiler_static \
8835 lt_prog_compiler_no_builtin_flag \
8836 export_dynamic_flag_spec \
8837 thread_safe_flag_spec \
8838 whole_archive_flag_spec \
8839 enable_shared_with_static_runtimes \
8840 old_archive_cmds \
8841 old_archive_from_new_cmds \
8842 predep_objects \
8843 postdep_objects \
8844 predeps \
8845 postdeps \
8846 compiler_lib_search_path \
8847 archive_cmds \
8848 archive_expsym_cmds \
8849 postinstall_cmds \
8850 postuninstall_cmds \
8851 old_archive_from_expsyms_cmds \
8852 allow_undefined_flag \
8853 no_undefined_flag \
8854 export_symbols_cmds \
8855 hardcode_libdir_flag_spec \
8856 hardcode_libdir_flag_spec_ld \
8857 hardcode_libdir_separator \
8858 hardcode_automatic \
8859 module_cmds \
8860 module_expsym_cmds \
8861 lt_cv_prog_compiler_c_o \
8862 exclude_expsyms \
8863 include_expsyms; do
John Criswell7a73b802003-06-30 21:59:07 +00008864
8865 case $var in
John Criswell47fdd832003-07-14 16:52:07 +00008866 old_archive_cmds | \
8867 old_archive_from_new_cmds | \
8868 archive_cmds | \
8869 archive_expsym_cmds | \
8870 module_cmds | \
8871 module_expsym_cmds | \
8872 old_archive_from_expsyms_cmds | \
8873 export_symbols_cmds | \
8874 extract_expsyms_cmds | reload_cmds | finish_cmds | \
John Criswell7a73b802003-06-30 21:59:07 +00008875 postinstall_cmds | postuninstall_cmds | \
John Criswell47fdd832003-07-14 16:52:07 +00008876 old_postinstall_cmds | old_postuninstall_cmds | \
8877 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
John Criswell7a73b802003-06-30 21:59:07 +00008878 # Double-quote double-evaled strings.
8879 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8880 ;;
8881 *)
8882 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8883 ;;
8884 esac
8885 done
8886
John Criswell47fdd832003-07-14 16:52:07 +00008887 case $lt_echo in
8888 *'\$0 --fallback-echo"')
8889 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8890 ;;
8891 esac
8892
8893cfgfile="${ofile}T"
8894 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8895 $rm -f "$cfgfile"
8896 { echo "$as_me:$LINENO: creating $ofile" >&5
8897echo "$as_me: creating $ofile" >&6;}
8898
8899 cat <<__EOF__ >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +00008900#! $SHELL
8901
John Criswell47fdd832003-07-14 16:52:07 +00008902# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
John Criswell7a73b802003-06-30 21:59:07 +00008903# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8904# NOTE: Changes made to this file will be lost: look at ltmain.sh.
8905#
John Criswell47fdd832003-07-14 16:52:07 +00008906# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8907# Free Software Foundation, Inc.
8908#
8909# This file is part of GNU Libtool:
John Criswell7a73b802003-06-30 21:59:07 +00008910# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8911#
8912# This program is free software; you can redistribute it and/or modify
8913# it under the terms of the GNU General Public License as published by
8914# the Free Software Foundation; either version 2 of the License, or
8915# (at your option) any later version.
8916#
8917# This program is distributed in the hope that it will be useful, but
8918# WITHOUT ANY WARRANTY; without even the implied warranty of
8919# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
8920# General Public License for more details.
8921#
8922# You should have received a copy of the GNU General Public License
8923# along with this program; if not, write to the Free Software
8924# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8925#
8926# As a special exception to the GNU General Public License, if you
8927# distribute this file as part of a program that contains a
8928# configuration script generated by Autoconf, you may include it under
8929# the same distribution terms that you use for the rest of that program.
8930
John Criswell47fdd832003-07-14 16:52:07 +00008931# A sed program that does not truncate output.
8932SED=$lt_SED
8933
John Criswell7a73b802003-06-30 21:59:07 +00008934# Sed that helps us avoid accidentally triggering echo(1) options like -n.
John Criswell47fdd832003-07-14 16:52:07 +00008935Xsed="$SED -e s/^X//"
John Criswell7a73b802003-06-30 21:59:07 +00008936
8937# The HP-UX ksh and POSIX shell print the target directory to stdout
8938# if CDPATH is set.
8939if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8940
John Criswell47fdd832003-07-14 16:52:07 +00008941# The names of the tagged configurations supported by this script.
8942available_tags=
8943
John Criswell7a73b802003-06-30 21:59:07 +00008944# ### BEGIN LIBTOOL CONFIG
8945
8946# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8947
8948# Shell to use when invoking shell scripts.
8949SHELL=$lt_SHELL
8950
8951# Whether or not to build shared libraries.
8952build_libtool_libs=$enable_shared
8953
8954# Whether or not to build static libraries.
8955build_old_libs=$enable_static
8956
8957# Whether or not to add -lc for building shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +00008958build_libtool_need_lc=$archive_cmds_need_lc
8959
8960# Whether or not to disallow shared libs when runtime libs are static
8961allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
John Criswell7a73b802003-06-30 21:59:07 +00008962
8963# Whether or not to optimize for fast installation.
8964fast_install=$enable_fast_install
8965
8966# The host system.
8967host_alias=$host_alias
8968host=$host
8969
8970# An echo program that does not interpret backslashes.
8971echo=$lt_echo
8972
8973# The archiver.
8974AR=$lt_AR
8975AR_FLAGS=$lt_AR_FLAGS
8976
John Criswell47fdd832003-07-14 16:52:07 +00008977# A C compiler.
8978LTCC=$lt_LTCC
8979
8980# A language-specific compiler.
8981CC=$lt_compiler
John Criswell7a73b802003-06-30 21:59:07 +00008982
8983# Is the compiler the GNU C compiler?
8984with_gcc=$GCC
8985
John Criswell47fdd832003-07-14 16:52:07 +00008986# An ERE matcher.
8987EGREP=$lt_EGREP
8988
John Criswell7a73b802003-06-30 21:59:07 +00008989# The linker used to build libraries.
8990LD=$lt_LD
8991
8992# Whether we need hard or soft links.
8993LN_S=$lt_LN_S
8994
8995# A BSD-compatible nm program.
8996NM=$lt_NM
8997
8998# A symbol stripping program
8999STRIP=$STRIP
9000
9001# Used to examine libraries when file_magic_cmd begins "file"
9002MAGIC_CMD=$MAGIC_CMD
9003
9004# Used on cygwin: DLL creation program.
9005DLLTOOL="$DLLTOOL"
9006
9007# Used on cygwin: object dumper.
9008OBJDUMP="$OBJDUMP"
9009
9010# Used on cygwin: assembler.
9011AS="$AS"
9012
9013# The name of the directory that contains temporary libtool files.
9014objdir=$objdir
9015
9016# How to create reloadable object files.
9017reload_flag=$lt_reload_flag
9018reload_cmds=$lt_reload_cmds
9019
9020# How to pass a linker flag through the compiler.
John Criswell47fdd832003-07-14 16:52:07 +00009021wl=$lt_lt_prog_compiler_wl
John Criswell7a73b802003-06-30 21:59:07 +00009022
9023# Object file suffix (normally "o").
9024objext="$ac_objext"
9025
9026# Old archive suffix (normally "a").
9027libext="$libext"
9028
John Criswell47fdd832003-07-14 16:52:07 +00009029# Shared library suffix (normally ".so").
9030shrext='$shrext'
9031
John Criswell7a73b802003-06-30 21:59:07 +00009032# Executable file suffix (normally "").
9033exeext="$exeext"
9034
9035# Additional compiler flags for building library objects.
John Criswell47fdd832003-07-14 16:52:07 +00009036pic_flag=$lt_lt_prog_compiler_pic
John Criswell7a73b802003-06-30 21:59:07 +00009037pic_mode=$pic_mode
9038
John Criswell47fdd832003-07-14 16:52:07 +00009039# What is the maximum length of a command?
9040max_cmd_len=$lt_cv_sys_max_cmd_len
John Criswell7a73b802003-06-30 21:59:07 +00009041
John Criswell47fdd832003-07-14 16:52:07 +00009042# Does compiler simultaneously support -c and -o options?
9043compiler_c_o=$lt_lt_cv_prog_compiler_c_o
John Criswell7a73b802003-06-30 21:59:07 +00009044
9045# Must we lock files when doing compilation ?
9046need_locks=$lt_need_locks
9047
9048# Do we need the lib prefix for modules?
9049need_lib_prefix=$need_lib_prefix
9050
9051# Do we need a version for libraries?
9052need_version=$need_version
9053
9054# Whether dlopen is supported.
9055dlopen_support=$enable_dlopen
9056
9057# Whether dlopen of programs is supported.
9058dlopen_self=$enable_dlopen_self
9059
9060# Whether dlopen of statically linked programs is supported.
9061dlopen_self_static=$enable_dlopen_self_static
9062
9063# Compiler flag to prevent dynamic linking.
John Criswell47fdd832003-07-14 16:52:07 +00009064link_static_flag=$lt_lt_prog_compiler_static
John Criswell7a73b802003-06-30 21:59:07 +00009065
9066# Compiler flag to turn off builtin functions.
John Criswell47fdd832003-07-14 16:52:07 +00009067no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
John Criswell7a73b802003-06-30 21:59:07 +00009068
9069# Compiler flag to allow reflexive dlopens.
9070export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9071
9072# Compiler flag to generate shared objects directly from archives.
9073whole_archive_flag_spec=$lt_whole_archive_flag_spec
9074
9075# Compiler flag to generate thread-safe objects.
9076thread_safe_flag_spec=$lt_thread_safe_flag_spec
9077
9078# Library versioning type.
9079version_type=$version_type
9080
9081# Format of library name prefix.
9082libname_spec=$lt_libname_spec
9083
9084# List of archive names. First name is the real one, the rest are links.
9085# The last name is the one that the linker finds with -lNAME.
9086library_names_spec=$lt_library_names_spec
9087
9088# The coded name of the library, if different from the real name.
9089soname_spec=$lt_soname_spec
9090
9091# Commands used to build and install an old-style archive.
9092RANLIB=$lt_RANLIB
9093old_archive_cmds=$lt_old_archive_cmds
9094old_postinstall_cmds=$lt_old_postinstall_cmds
9095old_postuninstall_cmds=$lt_old_postuninstall_cmds
9096
9097# Create an old-style archive from a shared archive.
9098old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9099
9100# Create a temporary old-style archive to link instead of a shared archive.
9101old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9102
9103# Commands used to build and install a shared archive.
9104archive_cmds=$lt_archive_cmds
9105archive_expsym_cmds=$lt_archive_expsym_cmds
9106postinstall_cmds=$lt_postinstall_cmds
9107postuninstall_cmds=$lt_postuninstall_cmds
9108
John Criswell47fdd832003-07-14 16:52:07 +00009109# Commands used to build a loadable module (assumed same as above if empty)
9110module_cmds=$lt_module_cmds
9111module_expsym_cmds=$lt_module_expsym_cmds
9112
John Criswell7a73b802003-06-30 21:59:07 +00009113# Commands to strip libraries.
9114old_striplib=$lt_old_striplib
9115striplib=$lt_striplib
9116
John Criswell47fdd832003-07-14 16:52:07 +00009117# Dependencies to place before the objects being linked to create a
9118# shared library.
9119predep_objects=$lt_predep_objects
9120
9121# Dependencies to place after the objects being linked to create a
9122# shared library.
9123postdep_objects=$lt_postdep_objects
9124
9125# Dependencies to place before the objects being linked to create a
9126# shared library.
9127predeps=$lt_predeps
9128
9129# Dependencies to place after the objects being linked to create a
9130# shared library.
9131postdeps=$lt_postdeps
9132
9133# The library search path used internally by the compiler when linking
9134# a shared library.
9135compiler_lib_search_path=$lt_compiler_lib_search_path
9136
John Criswell7a73b802003-06-30 21:59:07 +00009137# Method to check whether dependent libraries are shared objects.
9138deplibs_check_method=$lt_deplibs_check_method
9139
9140# Command to use when deplibs_check_method == file_magic.
9141file_magic_cmd=$lt_file_magic_cmd
9142
9143# Flag that allows shared libraries with undefined symbols to be built.
9144allow_undefined_flag=$lt_allow_undefined_flag
9145
9146# Flag that forces no undefined symbols.
9147no_undefined_flag=$lt_no_undefined_flag
9148
9149# Commands used to finish a libtool library installation in a directory.
9150finish_cmds=$lt_finish_cmds
9151
9152# Same as above, but a single script fragment to be evaled but not shown.
9153finish_eval=$lt_finish_eval
9154
9155# Take the output of nm and produce a listing of raw symbols and C names.
John Criswell47fdd832003-07-14 16:52:07 +00009156global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
John Criswell7a73b802003-06-30 21:59:07 +00009157
9158# Transform the output of nm in a proper C declaration
John Criswell47fdd832003-07-14 16:52:07 +00009159global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
John Criswell7a73b802003-06-30 21:59:07 +00009160
9161# Transform the output of nm in a C name address pair
John Criswell47fdd832003-07-14 16:52:07 +00009162global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
John Criswell7a73b802003-06-30 21:59:07 +00009163
9164# This is the shared library runtime path variable.
9165runpath_var=$runpath_var
9166
9167# This is the shared library path variable.
9168shlibpath_var=$shlibpath_var
9169
9170# Is shlibpath searched before the hard-coded library search path?
9171shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9172
9173# How to hardcode a shared library path into an executable.
9174hardcode_action=$hardcode_action
9175
9176# Whether we should hardcode library paths into libraries.
9177hardcode_into_libs=$hardcode_into_libs
9178
9179# Flag to hardcode \$libdir into a binary during linking.
9180# This must work even if \$libdir does not exist.
9181hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9182
John Criswell47fdd832003-07-14 16:52:07 +00009183# If ld is used when linking, flag to hardcode \$libdir into
9184# a binary during linking. This must work even if \$libdir does
9185# not exist.
9186hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9187
John Criswell7a73b802003-06-30 21:59:07 +00009188# Whether we need a single -rpath flag with a separated argument.
9189hardcode_libdir_separator=$lt_hardcode_libdir_separator
9190
John Criswell47fdd832003-07-14 16:52:07 +00009191# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
John Criswell7a73b802003-06-30 21:59:07 +00009192# resulting binary.
9193hardcode_direct=$hardcode_direct
9194
9195# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9196# resulting binary.
9197hardcode_minus_L=$hardcode_minus_L
9198
9199# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9200# the resulting binary.
9201hardcode_shlibpath_var=$hardcode_shlibpath_var
9202
John Criswell47fdd832003-07-14 16:52:07 +00009203# Set to yes if building a shared library automatically hardcodes DIR into the library
9204# and all subsequent libraries and executables linked against it.
9205hardcode_automatic=$hardcode_automatic
9206
John Criswell7a73b802003-06-30 21:59:07 +00009207# Variables whose values should be saved in libtool wrapper scripts and
9208# restored at relink time.
9209variables_saved_for_relink="$variables_saved_for_relink"
9210
9211# Whether libtool must link a program against all its dependency libraries.
9212link_all_deplibs=$link_all_deplibs
9213
9214# Compile-time system search path for libraries
9215sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9216
9217# Run-time system search path for libraries
9218sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9219
9220# Fix the shell variable \$srcfile for the compiler.
9221fix_srcfile_path="$fix_srcfile_path"
9222
9223# Set to yes if exported symbols are required.
9224always_export_symbols=$always_export_symbols
9225
9226# The commands to list exported symbols.
9227export_symbols_cmds=$lt_export_symbols_cmds
9228
9229# The commands to extract the exported symbol list from a shared archive.
9230extract_expsyms_cmds=$lt_extract_expsyms_cmds
9231
9232# Symbols that should not be listed in the preloaded symbols.
9233exclude_expsyms=$lt_exclude_expsyms
9234
9235# Symbols that must always be exported.
9236include_expsyms=$lt_include_expsyms
9237
9238# ### END LIBTOOL CONFIG
9239
9240__EOF__
9241
John Criswell47fdd832003-07-14 16:52:07 +00009242
John Criswell7a73b802003-06-30 21:59:07 +00009243 case $host_os in
9244 aix3*)
John Criswell47fdd832003-07-14 16:52:07 +00009245 cat <<\EOF >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +00009246
9247# AIX sometimes has problems with the GCC collect2 program. For some
9248# reason, if we set the COLLECT_NAMES environment variable, the problems
9249# vanish in a puff of smoke.
9250if test "X${COLLECT_NAMES+set}" != Xset; then
9251 COLLECT_NAMES=
9252 export COLLECT_NAMES
9253fi
9254EOF
9255 ;;
9256 esac
9257
John Criswell7a73b802003-06-30 21:59:07 +00009258 # We use sed instead of cat because bash on DJGPP gets confused if
9259 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9260 # text mode, it properly converts lines to CR/LF. This bash problem
9261 # is reportedly fixed, but why not run on old versions too?
John Criswell47fdd832003-07-14 16:52:07 +00009262 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
John Criswell7a73b802003-06-30 21:59:07 +00009263
John Criswell47fdd832003-07-14 16:52:07 +00009264 mv -f "$cfgfile" "$ofile" || \
9265 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
John Criswell7a73b802003-06-30 21:59:07 +00009266 chmod +x "$ofile"
John Criswell47fdd832003-07-14 16:52:07 +00009267
9268else
9269 # If there is no Makefile yet, we rely on a make rule to execute
9270 # `config.status --recheck' to rerun these tests and create the
9271 # libtool script then.
9272 test -f Makefile && make "$ltmain"
John Criswell7a73b802003-06-30 21:59:07 +00009273fi
John Criswell7a73b802003-06-30 21:59:07 +00009274
9275
John Criswell47fdd832003-07-14 16:52:07 +00009276ac_ext=c
9277ac_cpp='$CPP $CPPFLAGS'
9278ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9279ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9280ac_compiler_gnu=$ac_cv_c_compiler_gnu
9281
9282CC="$lt_save_CC"
9283
9284
9285# Check whether --with-tags or --without-tags was given.
9286if test "${with_tags+set}" = set; then
9287 withval="$with_tags"
9288 tagnames="$withval"
9289fi;
9290
9291if test -f "$ltmain" && test -n "$tagnames"; then
9292 if test ! -f "${ofile}"; then
9293 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9294echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9295 fi
9296
9297 if test -z "$LTCC"; then
9298 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9299 if test -z "$LTCC"; then
9300 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9301echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9302 else
9303 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9304echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9305 fi
9306 fi
9307
9308 # Extract list of available tagged configurations in $ofile.
9309 # Note that this assumes the entire list is on one line.
9310 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9311
9312 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9313 for tagname in $tagnames; do
9314 IFS="$lt_save_ifs"
9315 # Check whether tagname contains only valid characters
9316 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9317 "") ;;
9318 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9319echo "$as_me: error: invalid tag name: $tagname" >&2;}
9320 { (exit 1); exit 1; }; }
9321 ;;
9322 esac
9323
9324 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9325 then
9326 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9327echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9328 { (exit 1); exit 1; }; }
9329 fi
9330
9331 # Update the list of available tags.
9332 if test -n "$tagname"; then
9333 echo appending configuration tag \"$tagname\" to $ofile
9334
9335 case $tagname in
9336 CXX)
9337 if test -n "$CXX" && test "X$CXX" != "Xno"; then
9338 ac_ext=cc
9339ac_cpp='$CXXCPP $CPPFLAGS'
9340ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9341ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9342ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9343
9344
9345
9346
9347archive_cmds_need_lc_CXX=no
9348allow_undefined_flag_CXX=
9349always_export_symbols_CXX=no
9350archive_expsym_cmds_CXX=
9351export_dynamic_flag_spec_CXX=
9352hardcode_direct_CXX=no
9353hardcode_libdir_flag_spec_CXX=
9354hardcode_libdir_flag_spec_ld_CXX=
9355hardcode_libdir_separator_CXX=
9356hardcode_minus_L_CXX=no
9357hardcode_automatic_CXX=no
9358module_cmds_CXX=
9359module_expsym_cmds_CXX=
9360link_all_deplibs_CXX=unknown
9361old_archive_cmds_CXX=$old_archive_cmds
9362no_undefined_flag_CXX=
9363whole_archive_flag_spec_CXX=
9364enable_shared_with_static_runtimes_CXX=no
9365
9366# Dependencies to place before and after the object being linked:
9367predep_objects_CXX=
9368postdep_objects_CXX=
9369predeps_CXX=
9370postdeps_CXX=
9371compiler_lib_search_path_CXX=
9372
9373# Source file extension for C++ test sources.
9374ac_ext=cc
9375
9376# Object file extension for compiled C++ test sources.
9377objext=o
9378objext_CXX=$objext
9379
9380# Code to be used in simple compile tests
9381lt_simple_compile_test_code="int some_variable = 0;\n"
9382
9383# Code to be used in simple link tests
9384lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9385
9386# ltmain only uses $CC for tagged configurations so make sure $CC is set.
9387
9388# If no C compiler was specified, use CC.
9389LTCC=${LTCC-"$CC"}
9390
9391# Allow CC to be a program name with arguments.
9392compiler=$CC
9393
9394
9395# Allow CC to be a program name with arguments.
9396lt_save_CC=$CC
9397lt_save_LD=$LD
9398lt_save_GCC=$GCC
9399GCC=$GXX
9400lt_save_with_gnu_ld=$with_gnu_ld
9401lt_save_path_LD=$lt_cv_path_LD
9402if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9403 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9404else
9405 unset lt_cv_prog_gnu_ld
9406fi
9407if test -n "${lt_cv_path_LDCXX+set}"; then
9408 lt_cv_path_LD=$lt_cv_path_LDCXX
9409else
9410 unset lt_cv_path_LD
9411fi
9412test -z "${LDCXX+set}" || LD=$LDCXX
9413CC=${CXX-"c++"}
9414compiler=$CC
9415compiler_CXX=$CC
9416cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9417
9418# We don't want -fno-exception wen compiling C++ code, so set the
9419# no_builtin_flag separately
9420if test "$GXX" = yes; then
9421 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9422else
9423 lt_prog_compiler_no_builtin_flag_CXX=
9424fi
9425
9426if test "$GXX" = yes; then
9427 # Set up default GNU C++ configuration
9428
9429
9430# Check whether --with-gnu-ld or --without-gnu-ld was given.
9431if test "${with_gnu_ld+set}" = set; then
9432 withval="$with_gnu_ld"
9433 test "$withval" = no || with_gnu_ld=yes
9434else
9435 with_gnu_ld=no
9436fi;
9437ac_prog=ld
9438if test "$GCC" = yes; then
9439 # Check if gcc -print-prog-name=ld gives a path.
9440 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9441echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9442 case $host in
9443 *-*-mingw*)
9444 # gcc leaves a trailing carriage return which upsets mingw
9445 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9446 *)
9447 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9448 esac
9449 case $ac_prog in
9450 # Accept absolute paths.
9451 [\\/]* | ?:[\\/]*)
9452 re_direlt='/[^/][^/]*/\.\./'
9453 # Canonicalize the path of ld
9454 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9455 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9456 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9457 done
9458 test -z "$LD" && LD="$ac_prog"
9459 ;;
9460 "")
9461 # If it fails, then pretend we aren't using GCC.
9462 ac_prog=ld
9463 ;;
9464 *)
9465 # If it is relative, then search for the first ld in PATH.
9466 with_gnu_ld=unknown
9467 ;;
9468 esac
9469elif test "$with_gnu_ld" = yes; then
9470 echo "$as_me:$LINENO: checking for GNU ld" >&5
9471echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9472else
9473 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9474echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9475fi
9476if test "${lt_cv_path_LD+set}" = set; then
9477 echo $ECHO_N "(cached) $ECHO_C" >&6
9478else
9479 if test -z "$LD"; then
9480 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9481 for ac_dir in $PATH; do
9482 IFS="$lt_save_ifs"
9483 test -z "$ac_dir" && ac_dir=.
9484 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9485 lt_cv_path_LD="$ac_dir/$ac_prog"
9486 # Check to see if the program is GNU ld. I'd rather use --version,
9487 # but apparently some GNU ld's only accept -v.
9488 # Break only if it was the GNU/non-GNU ld that we prefer.
9489 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9490 *GNU* | *'with BFD'*)
9491 test "$with_gnu_ld" != no && break
9492 ;;
9493 *)
9494 test "$with_gnu_ld" != yes && break
9495 ;;
9496 esac
9497 fi
9498 done
9499 IFS="$lt_save_ifs"
9500else
9501 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9502fi
9503fi
9504
9505LD="$lt_cv_path_LD"
9506if test -n "$LD"; then
9507 echo "$as_me:$LINENO: result: $LD" >&5
9508echo "${ECHO_T}$LD" >&6
9509else
9510 echo "$as_me:$LINENO: result: no" >&5
9511echo "${ECHO_T}no" >&6
9512fi
9513test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9514echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9515 { (exit 1); exit 1; }; }
9516echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9517echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9518if test "${lt_cv_prog_gnu_ld+set}" = set; then
9519 echo $ECHO_N "(cached) $ECHO_C" >&6
9520else
9521 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9522case `"$LD" -v 2>&1 </dev/null` in
9523*GNU* | *'with BFD'*)
9524 lt_cv_prog_gnu_ld=yes
9525 ;;
9526*)
9527 lt_cv_prog_gnu_ld=no
9528 ;;
9529esac
9530fi
9531echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9532echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9533with_gnu_ld=$lt_cv_prog_gnu_ld
9534
9535
9536
9537 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9538 # archiving commands below assume that GNU ld is being used.
9539 if test "$with_gnu_ld" = yes; then
9540 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9541 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'
9542
9543 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9544 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9545
9546 # If archive_cmds runs LD, not CC, wlarc should be empty
9547 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9548 # investigate it a little bit more. (MM)
9549 wlarc='${wl}'
9550
9551 # ancient GNU ld didn't support --whole-archive et. al.
9552 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9553 grep 'no-whole-archive' > /dev/null; then
9554 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9555 else
9556 whole_archive_flag_spec_CXX=
9557 fi
9558 else
9559 with_gnu_ld=no
9560 wlarc=
9561
9562 # A generic and very simple default shared library creation
9563 # command for GNU C++ for the case where it uses the native
9564 # linker, instead of GNU ld. If possible, this setting should
9565 # overridden to take advantage of the native linker features on
9566 # the platform it is being used on.
9567 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9568 fi
9569
9570 # Commands to make compiler produce verbose output that lists
9571 # what "hidden" libraries, object files and flags are used when
9572 # linking a shared library.
9573 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9574
9575else
9576 GXX=no
9577 with_gnu_ld=no
9578 wlarc=
9579fi
9580
9581# PORTME: fill in a description of your system's C++ link characteristics
9582echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9583echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9584ld_shlibs_CXX=yes
9585case $host_os in
9586 aix3*)
9587 # FIXME: insert proper C++ library support
9588 ld_shlibs_CXX=no
9589 ;;
9590 aix4* | aix5*)
9591 if test "$host_cpu" = ia64; then
9592 # On IA64, the linker does run time linking by default, so we don't
9593 # have to do anything special.
9594 aix_use_runtimelinking=no
9595 exp_sym_flag='-Bexport'
9596 no_entry_flag=""
9597 else
9598 aix_use_runtimelinking=no
9599
9600 # Test if we are trying to use run time linking or normal
9601 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9602 # need to do runtime linking.
9603 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9604 for ld_flag in $LDFLAGS; do
9605 case $ld_flag in
9606 *-brtl*)
9607 aix_use_runtimelinking=yes
9608 break
9609 ;;
9610 esac
9611 done
9612 esac
9613
9614 exp_sym_flag='-bexport'
9615 no_entry_flag='-bnoentry'
9616 fi
9617
9618 # When large executables or shared objects are built, AIX ld can
9619 # have problems creating the table of contents. If linking a library
9620 # or program results in "error TOC overflow" add -mminimal-toc to
9621 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9622 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9623
9624 archive_cmds_CXX=''
9625 hardcode_direct_CXX=yes
9626 hardcode_libdir_separator_CXX=':'
9627 link_all_deplibs_CXX=yes
9628
9629 if test "$GXX" = yes; then
9630 case $host_os in aix4.012|aix4.012.*)
9631 # We only want to do this on AIX 4.2 and lower, the check
9632 # below for broken collect2 doesn't work under 4.3+
9633 collect2name=`${CC} -print-prog-name=collect2`
9634 if test -f "$collect2name" && \
9635 strings "$collect2name" | grep resolve_lib_name >/dev/null
9636 then
9637 # We have reworked collect2
9638 hardcode_direct_CXX=yes
9639 else
9640 # We have old collect2
9641 hardcode_direct_CXX=unsupported
9642 # It fails to find uninstalled libraries when the uninstalled
9643 # path is not listed in the libpath. Setting hardcode_minus_L
9644 # to unsupported forces relinking
9645 hardcode_minus_L_CXX=yes
9646 hardcode_libdir_flag_spec_CXX='-L$libdir'
9647 hardcode_libdir_separator_CXX=
9648 fi
9649 esac
9650 shared_flag='-shared'
9651 else
9652 # not using gcc
9653 if test "$host_cpu" = ia64; then
9654 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9655 # chokes on -Wl,-G. The following line is correct:
9656 shared_flag='-G'
9657 else
9658 if test "$aix_use_runtimelinking" = yes; then
9659 shared_flag='${wl}-G'
9660 else
9661 shared_flag='${wl}-bM:SRE'
9662 fi
9663 fi
9664 fi
9665
9666 # It seems that -bexpall does not export symbols beginning with
9667 # underscore (_), so it is better to generate a list of symbols to export.
9668 always_export_symbols_CXX=yes
9669 if test "$aix_use_runtimelinking" = yes; then
9670 # Warning - without using the other runtime loading flags (-brtl),
9671 # -berok will link without error, but may produce a broken library.
9672 allow_undefined_flag_CXX='-berok'
9673 # Determine the default libpath from the value encoded in an empty executable.
9674 cat >conftest.$ac_ext <<_ACEOF
9675#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +00009676/* confdefs.h. */
9677_ACEOF
9678cat confdefs.h >>conftest.$ac_ext
9679cat >>conftest.$ac_ext <<_ACEOF
9680/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00009681
John Criswell47fdd832003-07-14 16:52:07 +00009682int
9683main ()
9684{
9685
9686 ;
9687 return 0;
9688}
9689_ACEOF
9690rm -f conftest.$ac_objext conftest$ac_exeext
9691if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9692 (eval $ac_link) 2>&5
9693 ac_status=$?
9694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9695 (exit $ac_status); } &&
9696 { ac_try='test -s conftest$ac_exeext'
9697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9698 (eval $ac_try) 2>&5
9699 ac_status=$?
9700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9701 (exit $ac_status); }; }; then
9702
9703aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9704}'`
9705# Check for a 64-bit object if we didn't find anything.
9706if 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; }
9707}'`; fi
9708else
9709 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +00009710sed 's/^/| /' conftest.$ac_ext >&5
9711
John Criswell47fdd832003-07-14 16:52:07 +00009712fi
9713rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9714if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9715
9716 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9717
9718 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"
9719 else
9720 if test "$host_cpu" = ia64; then
9721 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9722 allow_undefined_flag_CXX="-z nodefs"
9723 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"
9724 else
9725 # Determine the default libpath from the value encoded in an empty executable.
9726 cat >conftest.$ac_ext <<_ACEOF
9727#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +00009728/* confdefs.h. */
9729_ACEOF
9730cat confdefs.h >>conftest.$ac_ext
9731cat >>conftest.$ac_ext <<_ACEOF
9732/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00009733
John Criswell47fdd832003-07-14 16:52:07 +00009734int
9735main ()
9736{
9737
9738 ;
9739 return 0;
9740}
9741_ACEOF
9742rm -f conftest.$ac_objext conftest$ac_exeext
9743if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9744 (eval $ac_link) 2>&5
9745 ac_status=$?
9746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9747 (exit $ac_status); } &&
9748 { ac_try='test -s conftest$ac_exeext'
9749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9750 (eval $ac_try) 2>&5
9751 ac_status=$?
9752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9753 (exit $ac_status); }; }; then
9754
9755aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9756}'`
9757# Check for a 64-bit object if we didn't find anything.
9758if 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; }
9759}'`; fi
9760else
9761 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +00009762sed 's/^/| /' conftest.$ac_ext >&5
9763
John Criswell47fdd832003-07-14 16:52:07 +00009764fi
9765rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9766if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9767
9768 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9769 # Warning - without using the other run time loading flags,
9770 # -berok will link without error, but may produce a broken library.
9771 no_undefined_flag_CXX=' ${wl}-bernotok'
9772 allow_undefined_flag_CXX=' ${wl}-berok'
9773 # -bexpall does not export symbols beginning with underscore (_)
9774 always_export_symbols_CXX=yes
9775 # Exported symbols can be pulled into shared objects from archives
9776 whole_archive_flag_spec_CXX=' '
9777 archive_cmds_need_lc_CXX=yes
9778 # This is similar to how AIX traditionally builds it's shared libraries.
9779 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'
9780 fi
9781 fi
9782 ;;
9783 chorus*)
9784 case $cc_basename in
9785 *)
9786 # FIXME: insert proper C++ library support
9787 ld_shlibs_CXX=no
9788 ;;
9789 esac
9790 ;;
9791
9792 cygwin* | mingw* | pw32*)
9793 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9794 # as there is no search path for DLLs.
9795 hardcode_libdir_flag_spec_CXX='-L$libdir'
9796 allow_undefined_flag_CXX=unsupported
9797 always_export_symbols_CXX=no
9798 enable_shared_with_static_runtimes_CXX=yes
9799
9800 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9801 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'
9802 # If the export-symbols file already is a .def file (1st line
9803 # is EXPORTS), use it as is; otherwise, prepend...
9804 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9805 cp $export_symbols $output_objdir/$soname.def;
9806 else
9807 echo EXPORTS > $output_objdir/$soname.def;
9808 cat $export_symbols >> $output_objdir/$soname.def;
9809 fi~
9810 $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'
9811 else
9812 ld_shlibs_CXX=no
9813 fi
9814 ;;
9815
9816 darwin* | rhapsody*)
9817 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
9818 archive_cmds_need_lc_CXX=no
9819 case "$host_os" in
9820 rhapsody* | darwin1.[012])
9821 allow_undefined_flag_CXX='-undefined suppress'
9822 ;;
9823 *) # Darwin 1.3 on
9824 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9825 ;;
9826 esac
9827 lt_int_apple_cc_single_mod=no
9828 output_verbose_link_cmd='echo'
9829 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9830 lt_int_apple_cc_single_mod=yes
9831 fi
9832 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9833 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9834 else
9835 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'
9836 fi
9837 module_cmds_CXX='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
9838
9839 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9840 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9841 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}'
9842 else
9843 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}'
9844 fi
9845 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}'
9846 hardcode_direct_CXX=no
9847 hardcode_automatic_CXX=yes
9848 hardcode_shlibpath_var_CXX=unsupported
9849 whole_archive_flag_spec_CXX='-all_load $convenience'
9850 link_all_deplibs_CXX=yes
9851 fi
9852 ;;
9853
9854 dgux*)
9855 case $cc_basename in
9856 ec++)
9857 # FIXME: insert proper C++ library support
9858 ld_shlibs_CXX=no
9859 ;;
9860 ghcx)
9861 # Green Hills C++ Compiler
9862 # FIXME: insert proper C++ library support
9863 ld_shlibs_CXX=no
9864 ;;
9865 *)
9866 # FIXME: insert proper C++ library support
9867 ld_shlibs_CXX=no
9868 ;;
9869 esac
9870 ;;
9871 freebsd12*)
9872 # C++ shared libraries reported to be fairly broken before switch to ELF
9873 ld_shlibs_CXX=no
9874 ;;
9875 freebsd-elf*)
9876 archive_cmds_need_lc_CXX=no
9877 ;;
9878 freebsd*)
9879 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9880 # conventions
9881 ld_shlibs_CXX=yes
9882 ;;
9883 gnu*)
9884 ;;
9885 hpux9*)
9886 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9887 hardcode_libdir_separator_CXX=:
9888 export_dynamic_flag_spec_CXX='${wl}-E'
9889 hardcode_direct_CXX=yes
9890 hardcode_minus_L_CXX=yes # Not in the search PATH,
9891 # but as the default
9892 # location of the library.
9893
9894 case $cc_basename in
9895 CC)
9896 # FIXME: insert proper C++ library support
9897 ld_shlibs_CXX=no
9898 ;;
9899 aCC)
9900 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'
9901 # Commands to make compiler produce verbose output that lists
9902 # what "hidden" libraries, object files and flags are used when
9903 # linking a shared library.
9904 #
9905 # There doesn't appear to be a way to prevent this compiler from
9906 # explicitly linking system object files so we need to strip them
9907 # from the output so that they don't get included in the library
9908 # dependencies.
9909 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'
9910 ;;
9911 *)
9912 if test "$GXX" = yes; then
9913 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'
9914 else
9915 # FIXME: insert proper C++ library support
9916 ld_shlibs_CXX=no
9917 fi
9918 ;;
9919 esac
9920 ;;
9921 hpux10*|hpux11*)
9922 if test $with_gnu_ld = no; then
9923 case "$host_cpu" in
9924 hppa*64*)
9925 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9926 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
9927 hardcode_libdir_separator_CXX=:
9928 ;;
9929 ia64*)
9930 hardcode_libdir_flag_spec_CXX='-L$libdir'
9931 ;;
9932 *)
9933 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9934 hardcode_libdir_separator_CXX=:
9935 export_dynamic_flag_spec_CXX='${wl}-E'
9936 ;;
9937 esac
9938 fi
9939 case "$host_cpu" in
9940 hppa*64*)
9941 hardcode_direct_CXX=no
9942 hardcode_shlibpath_var_CXX=no
9943 ;;
9944 ia64*)
9945 hardcode_direct_CXX=no
9946 hardcode_shlibpath_var_CXX=no
9947 hardcode_minus_L_CXX=yes # Not in the search PATH,
9948 # but as the default
9949 # location of the library.
9950 ;;
9951 *)
9952 hardcode_direct_CXX=yes
9953 hardcode_minus_L_CXX=yes # Not in the search PATH,
9954 # but as the default
9955 # location of the library.
9956 ;;
9957 esac
9958
9959 case $cc_basename in
9960 CC)
9961 # FIXME: insert proper C++ library support
9962 ld_shlibs_CXX=no
9963 ;;
9964 aCC)
9965 case "$host_cpu" in
9966 hppa*64*|ia64*)
9967 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9968 ;;
9969 *)
9970 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9971 ;;
9972 esac
9973 # Commands to make compiler produce verbose output that lists
9974 # what "hidden" libraries, object files and flags are used when
9975 # linking a shared library.
9976 #
9977 # There doesn't appear to be a way to prevent this compiler from
9978 # explicitly linking system object files so we need to strip them
9979 # from the output so that they don't get included in the library
9980 # dependencies.
9981 output_verbose_link_cmd='templist=`($CC -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'
9982 ;;
9983 *)
9984 if test "$GXX" = yes; then
9985 if test $with_gnu_ld = no; then
9986 case "$host_cpu" in
9987 ia64*|hppa*64*)
9988 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9989 ;;
9990 *)
9991 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'
9992 ;;
9993 esac
9994 fi
9995 else
9996 # FIXME: insert proper C++ library support
9997 ld_shlibs_CXX=no
9998 fi
9999 ;;
10000 esac
10001 ;;
10002 irix5* | irix6*)
10003 case $cc_basename in
10004 CC)
10005 # SGI C++
10006 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'
10007
10008 # Archives containing C++ object files must be created using
10009 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10010 # necessary to make sure instantiated templates are included
10011 # in the archive.
10012 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10013 ;;
10014 *)
10015 if test "$GXX" = yes; then
10016 if test "$with_gnu_ld" = no; then
10017 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'
10018 else
10019 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'
10020 fi
10021 fi
10022 link_all_deplibs_CXX=yes
10023 ;;
10024 esac
10025 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10026 hardcode_libdir_separator_CXX=:
10027 ;;
10028 linux*)
10029 case $cc_basename in
10030 KCC)
10031 # Kuck and Associates, Inc. (KAI) C++ Compiler
10032
10033 # KCC will only create a shared library if the output file
10034 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10035 # to its proper name (with version) after linking.
10036 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'
10037 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'
10038 # Commands to make compiler produce verbose output that lists
10039 # what "hidden" libraries, object files and flags are used when
10040 # linking a shared library.
10041 #
10042 # There doesn't appear to be a way to prevent this compiler from
10043 # explicitly linking system object files so we need to strip them
10044 # from the output so that they don't get included in the library
10045 # dependencies.
10046 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'
10047
10048 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10049 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10050
10051 # Archives containing C++ object files must be created using
10052 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10053 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10054 ;;
10055 icpc)
10056 # Intel C++
10057 with_gnu_ld=yes
10058 archive_cmds_need_lc_CXX=no
10059 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10060 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'
10061 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10062 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10063 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10064 ;;
10065 cxx)
10066 # Compaq C++
10067 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10068 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'
10069
10070 runpath_var=LD_RUN_PATH
10071 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10072 hardcode_libdir_separator_CXX=:
10073
10074 # Commands to make compiler produce verbose output that lists
10075 # what "hidden" libraries, object files and flags are used when
10076 # linking a shared library.
10077 #
10078 # There doesn't appear to be a way to prevent this compiler from
10079 # explicitly linking system object files so we need to strip them
10080 # from the output so that they don't get included in the library
10081 # dependencies.
10082 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'
10083 ;;
10084 esac
10085 ;;
10086 lynxos*)
10087 # FIXME: insert proper C++ library support
10088 ld_shlibs_CXX=no
10089 ;;
10090 m88k*)
10091 # FIXME: insert proper C++ library support
10092 ld_shlibs_CXX=no
10093 ;;
10094 mvs*)
10095 case $cc_basename in
10096 cxx)
10097 # FIXME: insert proper C++ library support
10098 ld_shlibs_CXX=no
10099 ;;
10100 *)
10101 # FIXME: insert proper C++ library support
10102 ld_shlibs_CXX=no
10103 ;;
10104 esac
10105 ;;
10106 netbsd*)
10107 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10108 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10109 wlarc=
10110 hardcode_libdir_flag_spec_CXX='-R$libdir'
10111 hardcode_direct_CXX=yes
10112 hardcode_shlibpath_var_CXX=no
10113 fi
10114 # Workaround some broken pre-1.5 toolchains
10115 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10116 ;;
10117 osf3*)
10118 case $cc_basename in
10119 KCC)
10120 # Kuck and Associates, Inc. (KAI) C++ Compiler
10121
10122 # KCC will only create a shared library if the output file
10123 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10124 # to its proper name (with version) after linking.
10125 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'
10126
10127 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10128 hardcode_libdir_separator_CXX=:
10129
10130 # Archives containing C++ object files must be created using
10131 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10132 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10133
10134 ;;
10135 RCC)
10136 # Rational C++ 2.4.1
10137 # FIXME: insert proper C++ library support
10138 ld_shlibs_CXX=no
10139 ;;
10140 cxx)
10141 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10142 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'
10143
10144 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10145 hardcode_libdir_separator_CXX=:
10146
10147 # Commands to make compiler produce verbose output that lists
10148 # what "hidden" libraries, object files and flags are used when
10149 # linking a shared library.
10150 #
10151 # There doesn't appear to be a way to prevent this compiler from
10152 # explicitly linking system object files so we need to strip them
10153 # from the output so that they don't get included in the library
10154 # dependencies.
10155 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'
10156 ;;
10157 *)
10158 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10159 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10160 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'
10161
10162 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10163 hardcode_libdir_separator_CXX=:
10164
10165 # Commands to make compiler produce verbose output that lists
10166 # what "hidden" libraries, object files and flags are used when
10167 # linking a shared library.
10168 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10169
10170 else
10171 # FIXME: insert proper C++ library support
10172 ld_shlibs_CXX=no
10173 fi
10174 ;;
10175 esac
10176 ;;
10177 osf4* | osf5*)
10178 case $cc_basename in
10179 KCC)
10180 # Kuck and Associates, Inc. (KAI) C++ Compiler
10181
10182 # KCC will only create a shared library if the output file
10183 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10184 # to its proper name (with version) after linking.
10185 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'
10186
10187 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10188 hardcode_libdir_separator_CXX=:
10189
10190 # Archives containing C++ object files must be created using
10191 # the KAI C++ compiler.
10192 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10193 ;;
10194 RCC)
10195 # Rational C++ 2.4.1
10196 # FIXME: insert proper C++ library support
10197 ld_shlibs_CXX=no
10198 ;;
10199 cxx)
10200 allow_undefined_flag_CXX=' -expect_unresolved \*'
10201 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'
10202 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10203 echo "-hidden">> $lib.exp~
10204 $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~
10205 $rm $lib.exp'
10206
10207 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10208 hardcode_libdir_separator_CXX=:
10209
10210 # Commands to make compiler produce verbose output that lists
10211 # what "hidden" libraries, object files and flags are used when
10212 # linking a shared library.
10213 #
10214 # There doesn't appear to be a way to prevent this compiler from
10215 # explicitly linking system object files so we need to strip them
10216 # from the output so that they don't get included in the library
10217 # dependencies.
10218 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'
10219 ;;
10220 *)
10221 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10222 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10223 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'
10224
10225 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10226 hardcode_libdir_separator_CXX=:
10227
10228 # Commands to make compiler produce verbose output that lists
10229 # what "hidden" libraries, object files and flags are used when
10230 # linking a shared library.
10231 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10232
10233 else
10234 # FIXME: insert proper C++ library support
10235 ld_shlibs_CXX=no
10236 fi
10237 ;;
10238 esac
10239 ;;
10240 psos*)
10241 # FIXME: insert proper C++ library support
10242 ld_shlibs_CXX=no
10243 ;;
10244 sco*)
10245 archive_cmds_need_lc_CXX=no
10246 case $cc_basename in
10247 CC)
10248 # FIXME: insert proper C++ library support
10249 ld_shlibs_CXX=no
10250 ;;
10251 *)
10252 # FIXME: insert proper C++ library support
10253 ld_shlibs_CXX=no
10254 ;;
10255 esac
10256 ;;
10257 sunos4*)
10258 case $cc_basename in
10259 CC)
10260 # Sun C++ 4.x
10261 # FIXME: insert proper C++ library support
10262 ld_shlibs_CXX=no
10263 ;;
10264 lcc)
10265 # Lucid
10266 # FIXME: insert proper C++ library support
10267 ld_shlibs_CXX=no
10268 ;;
10269 *)
10270 # FIXME: insert proper C++ library support
10271 ld_shlibs_CXX=no
10272 ;;
10273 esac
10274 ;;
10275 solaris*)
10276 case $cc_basename in
10277 CC)
10278 # Sun C++ 4.2, 5.x and Centerline C++
10279 no_undefined_flag_CXX=' -zdefs'
10280 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10281 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10282 $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'
10283
10284 hardcode_libdir_flag_spec_CXX='-R$libdir'
10285 hardcode_shlibpath_var_CXX=no
10286 case $host_os in
10287 solaris2.0-5 | solaris2.0-5.*) ;;
10288 *)
10289 # The C++ compiler is used as linker so we must use $wl
10290 # flag to pass the commands to the underlying system
10291 # linker.
10292 # Supported since Solaris 2.6 (maybe 2.5.1?)
10293 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10294 ;;
10295 esac
10296 link_all_deplibs_CXX=yes
10297
10298 # Commands to make compiler produce verbose output that lists
10299 # what "hidden" libraries, object files and flags are used when
10300 # linking a shared library.
10301 #
10302 # There doesn't appear to be a way to prevent this compiler from
10303 # explicitly linking system object files so we need to strip them
10304 # from the output so that they don't get included in the library
10305 # dependencies.
10306 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'
10307
10308 # Archives containing C++ object files must be created using
10309 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10310 # necessary to make sure instantiated templates are included
10311 # in the archive.
10312 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10313 ;;
10314 gcx)
10315 # Green Hills C++ Compiler
10316 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10317
10318 # The C++ compiler must be used to create the archive.
10319 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10320 ;;
10321 *)
10322 # GNU C++ compiler with Solaris linker
10323 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10324 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10325 if $CC --version | grep -v '^2\.7' > /dev/null; then
10326 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10327 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10328 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10329
10330 # Commands to make compiler produce verbose output that lists
10331 # what "hidden" libraries, object files and flags are used when
10332 # linking a shared library.
10333 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10334 else
10335 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10336 # platform.
10337 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10338 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10339 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10340
10341 # Commands to make compiler produce verbose output that lists
10342 # what "hidden" libraries, object files and flags are used when
10343 # linking a shared library.
10344 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10345 fi
10346
10347 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10348 fi
10349 ;;
10350 esac
10351 ;;
10352 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10353 archive_cmds_need_lc_CXX=no
10354 ;;
10355 tandem*)
10356 case $cc_basename in
10357 NCC)
10358 # NonStop-UX NCC 3.20
10359 # FIXME: insert proper C++ library support
10360 ld_shlibs_CXX=no
10361 ;;
10362 *)
10363 # FIXME: insert proper C++ library support
10364 ld_shlibs_CXX=no
10365 ;;
10366 esac
10367 ;;
10368 vxworks*)
10369 # FIXME: insert proper C++ library support
10370 ld_shlibs_CXX=no
10371 ;;
10372 *)
10373 # FIXME: insert proper C++ library support
10374 ld_shlibs_CXX=no
10375 ;;
10376esac
10377echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10378echo "${ECHO_T}$ld_shlibs_CXX" >&6
10379test "$ld_shlibs_CXX" = no && can_build_shared=no
10380
10381GCC_CXX="$GXX"
10382LD_CXX="$LD"
10383
10384## CAVEAT EMPTOR:
10385## There is no encapsulation within the following macros, do not change
10386## the running order or otherwise move them around unless you know exactly
10387## what you are doing...
10388
10389cat > conftest.$ac_ext <<EOF
10390class Foo
10391{
10392public:
10393 Foo (void) { a = 0; }
10394private:
10395 int a;
10396};
10397EOF
10398
10399if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10400 (eval $ac_compile) 2>&5
10401 ac_status=$?
10402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10403 (exit $ac_status); }; then
10404 # Parse the compiler output and extract the necessary
10405 # objects, libraries and library flags.
10406
10407 # Sentinel used to keep track of whether or not we are before
10408 # the conftest object file.
10409 pre_test_object_deps_done=no
10410
10411 # The `*' in the case matches for architectures that use `case' in
10412 # $output_verbose_cmd can trigger glob expansion during the loop
10413 # eval without this substitution.
10414 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10415
10416 for p in `eval $output_verbose_link_cmd`; do
10417 case $p in
10418
10419 -L* | -R* | -l*)
10420 # Some compilers place space between "-{L,R}" and the path.
10421 # Remove the space.
10422 if test $p = "-L" \
10423 || test $p = "-R"; then
10424 prev=$p
10425 continue
10426 else
10427 prev=
10428 fi
10429
10430 if test "$pre_test_object_deps_done" = no; then
10431 case $p in
10432 -L* | -R*)
10433 # Internal compiler library paths should come after those
10434 # provided the user. The postdeps already come after the
10435 # user supplied libs so there is no need to process them.
10436 if test -z "$compiler_lib_search_path_CXX"; then
10437 compiler_lib_search_path_CXX="${prev}${p}"
10438 else
10439 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10440 fi
10441 ;;
10442 # The "-l" case would never come before the object being
10443 # linked, so don't bother handling this case.
10444 esac
10445 else
10446 if test -z "$postdeps_CXX"; then
10447 postdeps_CXX="${prev}${p}"
10448 else
10449 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10450 fi
10451 fi
10452 ;;
10453
10454 *.$objext)
10455 # This assumes that the test object file only shows up
10456 # once in the compiler output.
10457 if test "$p" = "conftest.$objext"; then
10458 pre_test_object_deps_done=yes
10459 continue
10460 fi
10461
10462 if test "$pre_test_object_deps_done" = no; then
10463 if test -z "$predep_objects_CXX"; then
10464 predep_objects_CXX="$p"
10465 else
10466 predep_objects_CXX="$predep_objects_CXX $p"
10467 fi
10468 else
10469 if test -z "$postdep_objects_CXX"; then
10470 postdep_objects_CXX="$p"
10471 else
10472 postdep_objects_CXX="$postdep_objects_CXX $p"
10473 fi
10474 fi
10475 ;;
10476
10477 *) ;; # Ignore the rest.
10478
10479 esac
10480 done
10481
10482 # Clean up.
10483 rm -f a.out a.exe
10484else
10485 echo "libtool.m4: error: problem compiling CXX test program"
10486fi
10487
10488$rm -f confest.$objext
10489
10490case " $postdeps_CXX " in
10491*" -lc "*) archive_cmds_need_lc_CXX=no ;;
10492esac
10493
10494lt_prog_compiler_wl_CXX=
10495lt_prog_compiler_pic_CXX=
10496lt_prog_compiler_static_CXX=
10497
10498echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10499echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10500
10501 # C++ specific cases for pic, static, wl, etc.
10502 if test "$GXX" = yes; then
10503 lt_prog_compiler_wl_CXX='-Wl,'
10504 lt_prog_compiler_static_CXX='-static'
10505
10506 case $host_os in
10507 aix*)
10508 # All AIX code is PIC.
10509 if test "$host_cpu" = ia64; then
10510 # AIX 5 now supports IA64 processor
10511 lt_prog_compiler_static_CXX='-Bstatic'
10512 fi
10513 ;;
10514 amigaos*)
10515 # FIXME: we need at least 68020 code to build shared libraries, but
10516 # adding the `-m68020' flag to GCC prevents building anything better,
10517 # like `-m68040'.
10518 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10519 ;;
10520 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10521 # PIC is the default for these OSes.
10522 ;;
10523 mingw* | os2* | pw32*)
10524 # This hack is so that the source file can tell whether it is being
10525 # built for inclusion in a dll (and should export symbols for example).
10526 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10527 ;;
10528 darwin* | rhapsody*)
10529 # PIC is the default on this platform
10530 # Common symbols not allowed in MH_DYLIB files
10531 lt_prog_compiler_pic_CXX='-fno-common'
10532 ;;
10533 *djgpp*)
10534 # DJGPP does not support shared libraries at all
10535 lt_prog_compiler_pic_CXX=
10536 ;;
10537 sysv4*MP*)
10538 if test -d /usr/nec; then
10539 lt_prog_compiler_pic_CXX=-Kconform_pic
10540 fi
10541 ;;
10542 hpux*)
10543 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10544 # not for PA HP-UX.
10545 case "$host_cpu" in
10546 hppa*64*|ia64*)
10547 ;;
10548 *)
10549 lt_prog_compiler_pic_CXX='-fPIC'
10550 ;;
10551 esac
10552 ;;
10553 *)
10554 lt_prog_compiler_pic_CXX='-fPIC'
10555 ;;
10556 esac
10557 else
10558 case $host_os in
10559 aix4* | aix5*)
10560 # All AIX code is PIC.
10561 if test "$host_cpu" = ia64; then
10562 # AIX 5 now supports IA64 processor
10563 lt_prog_compiler_static_CXX='-Bstatic'
10564 else
10565 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10566 fi
10567 ;;
10568 chorus*)
10569 case $cc_basename in
10570 cxch68)
10571 # Green Hills C++ Compiler
10572 # _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"
10573 ;;
10574 esac
10575 ;;
10576 dgux*)
10577 case $cc_basename in
10578 ec++)
10579 lt_prog_compiler_pic_CXX='-KPIC'
10580 ;;
10581 ghcx)
10582 # Green Hills C++ Compiler
10583 lt_prog_compiler_pic_CXX='-pic'
10584 ;;
10585 *)
10586 ;;
10587 esac
10588 ;;
10589 freebsd*)
10590 # FreeBSD uses GNU C++
10591 ;;
10592 hpux9* | hpux10* | hpux11*)
10593 case $cc_basename in
10594 CC)
10595 lt_prog_compiler_wl_CXX='-Wl,'
10596 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10597 if test "$host_cpu" != ia64; then
10598 lt_prog_compiler_pic_CXX='+Z'
10599 fi
10600 ;;
10601 aCC)
10602 lt_prog_compiler_wl_CXX='-Wl,'
10603 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10604 case "$host_cpu" in
10605 hppa*64*|ia64*)
10606 # +Z the default
10607 ;;
10608 *)
10609 lt_prog_compiler_pic_CXX='+Z'
10610 ;;
10611 esac
10612 ;;
10613 *)
10614 ;;
10615 esac
10616 ;;
10617 irix5* | irix6* | nonstopux*)
10618 case $cc_basename in
10619 CC)
10620 lt_prog_compiler_wl_CXX='-Wl,'
10621 lt_prog_compiler_static_CXX='-non_shared'
10622 # CC pic flag -KPIC is the default.
10623 ;;
10624 *)
10625 ;;
10626 esac
10627 ;;
10628 linux*)
10629 case $cc_basename in
10630 KCC)
10631 # KAI C++ Compiler
10632 lt_prog_compiler_wl_CXX='--backend -Wl,'
10633 lt_prog_compiler_pic_CXX='-fPIC'
10634 ;;
10635 icpc)
10636 # Intel C++
10637 lt_prog_compiler_wl_CXX='-Wl,'
10638 lt_prog_compiler_pic_CXX='-KPIC'
10639 lt_prog_compiler_static_CXX='-static'
10640 ;;
10641 cxx)
10642 # Compaq C++
10643 # Make sure the PIC flag is empty. It appears that all Alpha
10644 # Linux and Compaq Tru64 Unix objects are PIC.
10645 lt_prog_compiler_pic_CXX=
10646 lt_prog_compiler_static_CXX='-non_shared'
10647 ;;
10648 *)
10649 ;;
10650 esac
10651 ;;
10652 lynxos*)
10653 ;;
10654 m88k*)
10655 ;;
10656 mvs*)
10657 case $cc_basename in
10658 cxx)
10659 lt_prog_compiler_pic_CXX='-W c,exportall'
10660 ;;
10661 *)
10662 ;;
10663 esac
10664 ;;
10665 netbsd*)
10666 ;;
10667 osf3* | osf4* | osf5*)
10668 case $cc_basename in
10669 KCC)
10670 lt_prog_compiler_wl_CXX='--backend -Wl,'
10671 ;;
10672 RCC)
10673 # Rational C++ 2.4.1
10674 lt_prog_compiler_pic_CXX='-pic'
10675 ;;
10676 cxx)
10677 # Digital/Compaq C++
10678 lt_prog_compiler_wl_CXX='-Wl,'
10679 # Make sure the PIC flag is empty. It appears that all Alpha
10680 # Linux and Compaq Tru64 Unix objects are PIC.
10681 lt_prog_compiler_pic_CXX=
10682 lt_prog_compiler_static_CXX='-non_shared'
10683 ;;
10684 *)
10685 ;;
10686 esac
10687 ;;
10688 psos*)
10689 ;;
10690 sco*)
10691 case $cc_basename in
10692 CC)
10693 lt_prog_compiler_pic_CXX='-fPIC'
10694 ;;
10695 *)
10696 ;;
10697 esac
10698 ;;
10699 solaris*)
10700 case $cc_basename in
10701 CC)
10702 # Sun C++ 4.2, 5.x and Centerline C++
10703 lt_prog_compiler_pic_CXX='-KPIC'
10704 lt_prog_compiler_static_CXX='-Bstatic'
10705 lt_prog_compiler_wl_CXX='-Qoption ld '
10706 ;;
10707 gcx)
10708 # Green Hills C++ Compiler
10709 lt_prog_compiler_pic_CXX='-PIC'
10710 ;;
10711 *)
10712 ;;
10713 esac
10714 ;;
10715 sunos4*)
10716 case $cc_basename in
10717 CC)
10718 # Sun C++ 4.x
10719 lt_prog_compiler_pic_CXX='-pic'
10720 lt_prog_compiler_static_CXX='-Bstatic'
10721 ;;
10722 lcc)
10723 # Lucid
10724 lt_prog_compiler_pic_CXX='-pic'
10725 ;;
10726 *)
10727 ;;
10728 esac
10729 ;;
10730 tandem*)
10731 case $cc_basename in
10732 NCC)
10733 # NonStop-UX NCC 3.20
10734 lt_prog_compiler_pic_CXX='-KPIC'
10735 ;;
10736 *)
10737 ;;
10738 esac
10739 ;;
10740 unixware*)
10741 ;;
10742 vxworks*)
10743 ;;
10744 *)
10745 lt_prog_compiler_can_build_shared_CXX=no
10746 ;;
10747 esac
10748 fi
10749
10750echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10751echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10752
10753#
10754# Check to make sure the PIC flag actually works.
10755#
10756if test -n "$lt_prog_compiler_pic_CXX"; then
10757 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10758echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10759if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10760 echo $ECHO_N "(cached) $ECHO_C" >&6
10761else
10762 lt_prog_compiler_pic_works_CXX=no
10763 ac_outfile=conftest.$ac_objext
10764 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10765 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10766 # Insert the option either (1) after the last *FLAGS variable, or
10767 # (2) before a word containing "conftest.", or (3) at the end.
10768 # Note that $ac_compile itself does not contain backslashes and begins
10769 # with a dollar sign (not a hyphen), so the echo should work correctly.
10770 # The option is referenced via a variable to avoid confusing sed.
10771 lt_compile=`echo "$ac_compile" | $SED \
10772 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10773 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10774 -e 's:$: $lt_compiler_flag:'`
John Criswellc764fbc2003-09-06 15:17:13 +000010775 (eval echo "\"\$as_me:10775: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000010776 (eval "$lt_compile" 2>conftest.err)
10777 ac_status=$?
10778 cat conftest.err >&5
John Criswellc764fbc2003-09-06 15:17:13 +000010779 echo "$as_me:10779: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000010780 if (exit $ac_status) && test -s "$ac_outfile"; then
10781 # The compiler can only warn and ignore the option if not recognized
10782 # So say no if there are warnings
10783 if test ! -s conftest.err; then
10784 lt_prog_compiler_pic_works_CXX=yes
10785 fi
10786 fi
10787 $rm conftest*
10788
10789fi
10790echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10791echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10792
10793if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10794 case $lt_prog_compiler_pic_CXX in
10795 "" | " "*) ;;
10796 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10797 esac
10798else
10799 lt_prog_compiler_pic_CXX=
10800 lt_prog_compiler_can_build_shared_CXX=no
10801fi
10802
10803fi
10804case "$host_os" in
10805 # For platforms which do not support PIC, -DPIC is meaningless:
10806 *djgpp*)
10807 lt_prog_compiler_pic_CXX=
10808 ;;
10809 *)
10810 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10811 ;;
10812esac
10813
10814echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10815echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10816if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10817 echo $ECHO_N "(cached) $ECHO_C" >&6
10818else
10819 lt_cv_prog_compiler_c_o_CXX=no
10820 $rm -r conftest 2>/dev/null
10821 mkdir conftest
10822 cd conftest
10823 mkdir out
10824 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10825
10826 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
10827 # that will create temporary files in the current directory regardless of
10828 # the output directory. Thus, making CWD read-only will cause this test
10829 # to fail, enabling locking or at least warning the user not to do parallel
10830 # builds.
10831 chmod -w .
10832
10833 lt_compiler_flag="-o out/conftest2.$ac_objext"
10834 # Insert the option either (1) after the last *FLAGS variable, or
10835 # (2) before a word containing "conftest.", or (3) at the end.
10836 # Note that $ac_compile itself does not contain backslashes and begins
10837 # with a dollar sign (not a hyphen), so the echo should work correctly.
10838 lt_compile=`echo "$ac_compile" | $SED \
10839 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10840 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10841 -e 's:$: $lt_compiler_flag:'`
John Criswellc764fbc2003-09-06 15:17:13 +000010842 (eval echo "\"\$as_me:10842: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000010843 (eval "$lt_compile" 2>out/conftest.err)
10844 ac_status=$?
10845 cat out/conftest.err >&5
John Criswellc764fbc2003-09-06 15:17:13 +000010846 echo "$as_me:10846: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000010847 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10848 then
10849 # The compiler can only warn and ignore the option if not recognized
10850 # So say no if there are warnings
10851 if test ! -s out/conftest.err; then
10852 lt_cv_prog_compiler_c_o_CXX=yes
10853 fi
10854 fi
10855 chmod u+w .
10856 $rm conftest* out/*
10857 rmdir out
10858 cd ..
10859 rmdir conftest
10860 $rm conftest*
10861
10862fi
10863echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10864echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10865
10866
10867hard_links="nottested"
10868if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10869 # do not overwrite the value of need_locks provided by the user
10870 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10871echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10872 hard_links=yes
10873 $rm conftest*
10874 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10875 touch conftest.a
10876 ln conftest.a conftest.b 2>&5 || hard_links=no
10877 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10878 echo "$as_me:$LINENO: result: $hard_links" >&5
10879echo "${ECHO_T}$hard_links" >&6
10880 if test "$hard_links" = no; then
10881 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10882echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10883 need_locks=warn
10884 fi
10885else
10886 need_locks=no
10887fi
10888
10889echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10890echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10891
10892 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10893 case $host_os in
10894 aix4* | aix5*)
10895 # If we're using GNU nm, then we don't want the "-C" option.
10896 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10897 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10898 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'
10899 else
10900 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'
10901 fi
10902 ;;
10903 pw32*)
10904 export_symbols_cmds_CXX="$ltdll_cmds"
10905 ;;
10906 cygwin* | mingw*)
10907 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10908 ;;
10909 *)
10910 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10911 ;;
10912 esac
10913
10914echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10915echo "${ECHO_T}$ld_shlibs_CXX" >&6
10916test "$ld_shlibs_CXX" = no && can_build_shared=no
10917
10918variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10919if test "$GCC" = yes; then
10920 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10921fi
10922
10923#
10924# Do we need to explicitly link libc?
10925#
10926case "x$archive_cmds_need_lc_CXX" in
10927x|xyes)
10928 # Assume -lc should be added
10929 archive_cmds_need_lc_CXX=yes
10930
10931 if test "$enable_shared" = yes && test "$GCC" = yes; then
10932 case $archive_cmds_CXX in
10933 *'~'*)
10934 # FIXME: we may have to deal with multi-command sequences.
10935 ;;
10936 '$CC '*)
10937 # Test whether the compiler implicitly links with -lc since on some
10938 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10939 # to ld, don't add -lc before -lgcc.
10940 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10941echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10942 $rm conftest*
10943 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10944
10945 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10946 (eval $ac_compile) 2>&5
10947 ac_status=$?
10948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10949 (exit $ac_status); } 2>conftest.err; then
10950 soname=conftest
10951 lib=conftest
10952 libobjs=conftest.$ac_objext
10953 deplibs=
10954 wl=$lt_prog_compiler_wl_CXX
10955 compiler_flags=-v
10956 linker_flags=-v
10957 verstring=
10958 output_objdir=.
10959 libname=conftest
10960 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
10961 allow_undefined_flag_CXX=
10962 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10963 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10964 ac_status=$?
10965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10966 (exit $ac_status); }
10967 then
10968 archive_cmds_need_lc_CXX=no
10969 else
10970 archive_cmds_need_lc_CXX=yes
10971 fi
10972 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
10973 else
10974 cat conftest.err 1>&5
10975 fi
10976 $rm conftest*
10977 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
10978echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
10979 ;;
10980 esac
10981 fi
10982 ;;
10983esac
10984
10985echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10986echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10987hardcode_action_CXX=
10988if test -n "$hardcode_libdir_flag_spec_CXX" || \
10989 test -n "$runpath_var CXX" || \
10990 test "X$hardcode_automatic_CXX"="Xyes" ; then
10991
10992 # We can hardcode non-existant directories.
10993 if test "$hardcode_direct_CXX" != no &&
10994 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10995 # have to relink, otherwise we might link with an installed library
10996 # when we should be linking with a yet-to-be-installed one
10997 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
10998 test "$hardcode_minus_L_CXX" != no; then
10999 # Linking always hardcodes the temporary library directory.
11000 hardcode_action_CXX=relink
11001 else
11002 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11003 hardcode_action_CXX=immediate
11004 fi
11005else
11006 # We cannot hardcode anything, or else we can only hardcode existing
11007 # directories.
11008 hardcode_action_CXX=unsupported
11009fi
11010echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11011echo "${ECHO_T}$hardcode_action_CXX" >&6
11012
11013if test "$hardcode_action_CXX" = relink; then
11014 # Fast installation is not supported
11015 enable_fast_install=no
11016elif test "$shlibpath_overrides_runpath" = yes ||
11017 test "$enable_shared" = no; then
11018 # Fast installation is not necessary
11019 enable_fast_install=needless
11020fi
11021
11022striplib=
11023old_striplib=
11024echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11025echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11026if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11027 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11028 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11029 echo "$as_me:$LINENO: result: yes" >&5
11030echo "${ECHO_T}yes" >&6
11031else
11032# FIXME - insert some real tests, host_os isn't really good enough
11033 case $host_os in
11034 darwin*)
11035 if test -n "$STRIP" ; then
11036 striplib="$STRIP -x"
11037 echo "$as_me:$LINENO: result: yes" >&5
11038echo "${ECHO_T}yes" >&6
11039 else
11040 echo "$as_me:$LINENO: result: no" >&5
11041echo "${ECHO_T}no" >&6
11042fi
11043 ;;
11044 *)
11045 echo "$as_me:$LINENO: result: no" >&5
11046echo "${ECHO_T}no" >&6
11047 ;;
11048 esac
11049fi
11050
11051echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11052echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11053library_names_spec=
11054libname_spec='lib$name'
11055soname_spec=
11056shrext=".so"
11057postinstall_cmds=
11058postuninstall_cmds=
11059finish_cmds=
11060finish_eval=
11061shlibpath_var=
11062shlibpath_overrides_runpath=unknown
11063version_type=none
11064dynamic_linker="$host_os ld.so"
11065sys_lib_dlsearch_path_spec="/lib /usr/lib"
11066if test "$GCC" = yes; then
11067 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11068 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11069 # if the path contains ";" then we assume it to be the separator
11070 # otherwise default to the standard path separator (i.e. ":") - it is
11071 # assumed that no part of a normal pathname contains ";" but that should
11072 # okay in the real world where ";" in dirpaths is itself problematic.
11073 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11074 else
11075 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11076 fi
11077else
11078 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11079fi
11080need_lib_prefix=unknown
11081hardcode_into_libs=no
11082
11083# when you set need_version to no, make sure it does not cause -set_version
11084# flags to be left without arguments
11085need_version=unknown
11086
11087case $host_os in
11088aix3*)
11089 version_type=linux
11090 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11091 shlibpath_var=LIBPATH
11092
11093 # AIX 3 has no versioning support, so we append a major version to the name.
11094 soname_spec='${libname}${release}${shared_ext}$major'
11095 ;;
11096
11097aix4* | aix5*)
11098 version_type=linux
11099 need_lib_prefix=no
11100 need_version=no
11101 hardcode_into_libs=yes
11102 if test "$host_cpu" = ia64; then
11103 # AIX 5 supports IA64
11104 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11105 shlibpath_var=LD_LIBRARY_PATH
11106 else
11107 # With GCC up to 2.95.x, collect2 would create an import file
11108 # for dependence libraries. The import file would start with
11109 # the line `#! .'. This would cause the generated library to
11110 # depend on `.', always an invalid library. This was fixed in
11111 # development snapshots of GCC prior to 3.0.
11112 case $host_os in
11113 aix4 | aix4.[01] | aix4.[01].*)
11114 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11115 echo ' yes '
11116 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11117 :
11118 else
11119 can_build_shared=no
11120 fi
11121 ;;
11122 esac
11123 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11124 # soname into executable. Probably we can add versioning support to
11125 # collect2, so additional links can be useful in future.
11126 if test "$aix_use_runtimelinking" = yes; then
11127 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11128 # instead of lib<name>.a to let people know that these are not
11129 # typical AIX shared libraries.
11130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11131 else
11132 # We preserve .a as extension for shared libraries through AIX4.2
11133 # and later when we are not doing run time linking.
11134 library_names_spec='${libname}${release}.a $libname.a'
11135 soname_spec='${libname}${release}${shared_ext}$major'
11136 fi
11137 shlibpath_var=LIBPATH
11138 fi
11139 ;;
11140
11141amigaos*)
11142 library_names_spec='$libname.ixlibrary $libname.a'
11143 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11144 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'
11145 ;;
11146
11147beos*)
11148 library_names_spec='${libname}${shared_ext}'
11149 dynamic_linker="$host_os ld.so"
11150 shlibpath_var=LIBRARY_PATH
11151 ;;
11152
11153bsdi4*)
11154 version_type=linux
11155 need_version=no
11156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11157 soname_spec='${libname}${release}${shared_ext}$major'
11158 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11159 shlibpath_var=LD_LIBRARY_PATH
11160 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11161 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11162 # the default ld.so.conf also contains /usr/contrib/lib and
11163 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11164 # libtool to hard-code these into programs
11165 ;;
11166
11167cygwin* | mingw* | pw32*)
11168 version_type=windows
11169 shrext=".dll"
11170 need_version=no
11171 need_lib_prefix=no
11172
11173 case $GCC,$host_os in
11174 yes,cygwin* | yes,mingw* | yes,pw32*)
11175 library_names_spec='$libname.dll.a'
11176 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11177 postinstall_cmds='base_file=`basename \${file}`~
11178 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11179 dldir=$destdir/`dirname \$dlpath`~
11180 test -d \$dldir || mkdir -p \$dldir~
11181 $install_prog $dir/$dlname \$dldir/$dlname'
11182 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11183 dlpath=$dir/\$dldll~
11184 $rm \$dlpath'
11185 shlibpath_overrides_runpath=yes
11186
11187 case $host_os in
11188 cygwin*)
11189 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11190 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11191 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
11192 ;;
11193 mingw*)
11194 # MinGW DLLs use traditional 'lib' prefix
11195 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11196 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11197 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11198 # It is most probably a Windows format PATH printed by
11199 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11200 # path with ; separators, and with drive letters. We can handle the
11201 # drive letters (cygwin fileutils understands them), so leave them,
11202 # especially as we might pass files found there to a mingw objdump,
11203 # which wouldn't understand a cygwinified path. Ahh.
11204 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11205 else
11206 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11207 fi
11208 ;;
11209 pw32*)
11210 # pw32 DLLs use 'pw' prefix rather than 'lib'
11211 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11212 ;;
11213 esac
11214 ;;
11215
11216 *)
11217 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11218 ;;
11219 esac
11220 dynamic_linker='Win32 ld.exe'
11221 # FIXME: first we should search . and the directory the executable is in
11222 shlibpath_var=PATH
11223 ;;
11224
11225darwin* | rhapsody*)
11226 dynamic_linker="$host_os dyld"
11227 version_type=darwin
11228 need_lib_prefix=no
11229 need_version=no
11230 # FIXME: Relying on posixy $() will cause problems for
11231 # cross-compilation, but unfortunately the echo tests do not
11232 # yet detect zsh echo's removal of \ escapes.
11233 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11234 soname_spec='${libname}${release}${major}$shared_ext'
11235 shlibpath_overrides_runpath=yes
11236 shlibpath_var=DYLD_LIBRARY_PATH
11237 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
11238 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11239 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
11240 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"`
11241 fi
11242 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11243 ;;
11244
11245dgux*)
11246 version_type=linux
11247 need_lib_prefix=no
11248 need_version=no
11249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11250 soname_spec='${libname}${release}${shared_ext}$major'
11251 shlibpath_var=LD_LIBRARY_PATH
11252 ;;
11253
11254freebsd1*)
11255 dynamic_linker=no
11256 ;;
11257
11258freebsd*)
11259 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11260 version_type=freebsd-$objformat
11261 case $version_type in
11262 freebsd-elf*)
11263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11264 need_version=no
11265 need_lib_prefix=no
11266 ;;
11267 freebsd-*)
11268 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11269 need_version=yes
11270 ;;
11271 esac
11272 shlibpath_var=LD_LIBRARY_PATH
11273 case $host_os in
11274 freebsd2*)
11275 shlibpath_overrides_runpath=yes
11276 ;;
11277 freebsd3.01* | freebsdelf3.01*)
11278 shlibpath_overrides_runpath=yes
11279 hardcode_into_libs=yes
11280 ;;
11281 *) # from 3.2 on
11282 shlibpath_overrides_runpath=no
11283 hardcode_into_libs=yes
11284 ;;
11285 esac
11286 ;;
11287
11288gnu*)
11289 version_type=linux
11290 need_lib_prefix=no
11291 need_version=no
11292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11293 soname_spec='${libname}${release}${shared_ext}$major'
11294 shlibpath_var=LD_LIBRARY_PATH
11295 hardcode_into_libs=yes
11296 ;;
11297
11298hpux9* | hpux10* | hpux11*)
11299 # Give a soname corresponding to the major version so that dld.sl refuses to
11300 # link against other versions.
11301 version_type=sunos
11302 need_lib_prefix=no
11303 need_version=no
11304 case "$host_cpu" in
11305 ia64*)
11306 shrext='.so'
11307 hardcode_into_libs=yes
11308 dynamic_linker="$host_os dld.so"
11309 shlibpath_var=LD_LIBRARY_PATH
11310 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11312 soname_spec='${libname}${release}${shared_ext}$major'
11313 if test "X$HPUX_IA64_MODE" = X32; then
11314 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11315 else
11316 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11317 fi
11318 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11319 ;;
11320 hppa*64*)
11321 shrext='.sl'
11322 hardcode_into_libs=yes
11323 dynamic_linker="$host_os dld.sl"
11324 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11325 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11326 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11327 soname_spec='${libname}${release}${shared_ext}$major'
11328 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11329 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11330 ;;
11331 *)
11332 shrext='.sl'
11333 dynamic_linker="$host_os dld.sl"
11334 shlibpath_var=SHLIB_PATH
11335 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11337 soname_spec='${libname}${release}${shared_ext}$major'
11338 ;;
11339 esac
11340 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11341 postinstall_cmds='chmod 555 $lib'
11342 ;;
11343
11344irix5* | irix6* | nonstopux*)
11345 case $host_os in
11346 nonstopux*) version_type=nonstopux ;;
11347 *)
11348 if test "$lt_cv_prog_gnu_ld" = yes; then
11349 version_type=linux
11350 else
11351 version_type=irix
11352 fi ;;
11353 esac
11354 need_lib_prefix=no
11355 need_version=no
11356 soname_spec='${libname}${release}${shared_ext}$major'
11357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11358 case $host_os in
11359 irix5* | nonstopux*)
11360 libsuff= shlibsuff=
11361 ;;
11362 *)
11363 case $LD in # libtool.m4 will add one of these switches to LD
11364 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11365 libsuff= shlibsuff= libmagic=32-bit;;
11366 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11367 libsuff=32 shlibsuff=N32 libmagic=N32;;
11368 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11369 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11370 *) libsuff= shlibsuff= libmagic=never-match;;
11371 esac
11372 ;;
11373 esac
11374 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11375 shlibpath_overrides_runpath=no
11376 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11377 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11378 hardcode_into_libs=yes
11379 ;;
11380
11381# No shared lib support for Linux oldld, aout, or coff.
11382linux*oldld* | linux*aout* | linux*coff*)
11383 dynamic_linker=no
11384 ;;
11385
11386# This must be Linux ELF.
11387linux*)
11388 version_type=linux
11389 need_lib_prefix=no
11390 need_version=no
11391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11392 soname_spec='${libname}${release}${shared_ext}$major'
11393 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11394 shlibpath_var=LD_LIBRARY_PATH
11395 shlibpath_overrides_runpath=no
11396 # This implies no fast_install, which is unacceptable.
11397 # Some rework will be needed to allow for fast_install
11398 # before this can be enabled.
11399 hardcode_into_libs=yes
11400
11401 # We used to test for /lib/ld.so.1 and disable shared libraries on
11402 # powerpc, because MkLinux only supported shared libraries with the
11403 # GNU dynamic linker. Since this was broken with cross compilers,
11404 # most powerpc-linux boxes support dynamic linking these days and
11405 # people can always --disable-shared, the test was removed, and we
11406 # assume the GNU/Linux dynamic linker is in use.
11407 dynamic_linker='GNU/Linux ld.so'
11408 ;;
11409
11410netbsd*)
11411 version_type=sunos
11412 need_lib_prefix=no
11413 need_version=no
11414 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11416 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11417 dynamic_linker='NetBSD (a.out) ld.so'
11418 else
11419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
11420 soname_spec='${libname}${release}${shared_ext}$major'
11421 dynamic_linker='NetBSD ld.elf_so'
11422 fi
11423 shlibpath_var=LD_LIBRARY_PATH
11424 shlibpath_overrides_runpath=yes
11425 hardcode_into_libs=yes
11426 ;;
11427
11428newsos6)
11429 version_type=linux
11430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11431 shlibpath_var=LD_LIBRARY_PATH
11432 shlibpath_overrides_runpath=yes
11433 ;;
11434
11435nto-qnx)
11436 version_type=linux
11437 need_lib_prefix=no
11438 need_version=no
11439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11440 soname_spec='${libname}${release}${shared_ext}$major'
11441 shlibpath_var=LD_LIBRARY_PATH
11442 shlibpath_overrides_runpath=yes
11443 ;;
11444
11445openbsd*)
11446 version_type=sunos
11447 need_lib_prefix=no
11448 need_version=no
11449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11450 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11451 shlibpath_var=LD_LIBRARY_PATH
11452 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11453 case $host_os in
11454 openbsd2.[89] | openbsd2.[89].*)
11455 shlibpath_overrides_runpath=no
11456 ;;
11457 *)
11458 shlibpath_overrides_runpath=yes
11459 ;;
11460 esac
11461 else
11462 shlibpath_overrides_runpath=yes
11463 fi
11464 ;;
11465
11466os2*)
11467 libname_spec='$name'
11468 shrext=".dll"
11469 need_lib_prefix=no
11470 library_names_spec='$libname${shared_ext} $libname.a'
11471 dynamic_linker='OS/2 ld.exe'
11472 shlibpath_var=LIBPATH
11473 ;;
11474
11475osf3* | osf4* | osf5*)
11476 version_type=osf
11477 need_lib_prefix=no
11478 need_version=no
11479 soname_spec='${libname}${release}${shared_ext}$major'
11480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11481 shlibpath_var=LD_LIBRARY_PATH
11482 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11483 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11484 ;;
11485
11486sco3.2v5*)
11487 version_type=osf
11488 soname_spec='${libname}${release}${shared_ext}$major'
11489 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11490 shlibpath_var=LD_LIBRARY_PATH
11491 ;;
11492
11493solaris*)
11494 version_type=linux
11495 need_lib_prefix=no
11496 need_version=no
11497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11498 soname_spec='${libname}${release}${shared_ext}$major'
11499 shlibpath_var=LD_LIBRARY_PATH
11500 shlibpath_overrides_runpath=yes
11501 hardcode_into_libs=yes
11502 # ldd complains unless libraries are executable
11503 postinstall_cmds='chmod +x $lib'
11504 ;;
11505
11506sunos4*)
11507 version_type=sunos
11508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11509 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11510 shlibpath_var=LD_LIBRARY_PATH
11511 shlibpath_overrides_runpath=yes
11512 if test "$with_gnu_ld" = yes; then
11513 need_lib_prefix=no
11514 fi
11515 need_version=yes
11516 ;;
11517
11518sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11519 version_type=linux
11520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11521 soname_spec='${libname}${release}${shared_ext}$major'
11522 shlibpath_var=LD_LIBRARY_PATH
11523 case $host_vendor in
11524 sni)
11525 shlibpath_overrides_runpath=no
11526 need_lib_prefix=no
11527 export_dynamic_flag_spec='${wl}-Blargedynsym'
11528 runpath_var=LD_RUN_PATH
11529 ;;
11530 siemens)
11531 need_lib_prefix=no
11532 ;;
11533 motorola)
11534 need_lib_prefix=no
11535 need_version=no
11536 shlibpath_overrides_runpath=no
11537 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11538 ;;
11539 esac
11540 ;;
11541
11542sysv4*MP*)
11543 if test -d /usr/nec ;then
11544 version_type=linux
11545 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11546 soname_spec='$libname${shared_ext}.$major'
11547 shlibpath_var=LD_LIBRARY_PATH
11548 fi
11549 ;;
11550
11551uts4*)
11552 version_type=linux
11553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11554 soname_spec='${libname}${release}${shared_ext}$major'
11555 shlibpath_var=LD_LIBRARY_PATH
11556 ;;
11557
11558*)
11559 dynamic_linker=no
11560 ;;
11561esac
11562echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11563echo "${ECHO_T}$dynamic_linker" >&6
11564test "$dynamic_linker" = no && can_build_shared=no
11565
11566if test "x$enable_dlopen" != xyes; then
11567 enable_dlopen=unknown
11568 enable_dlopen_self=unknown
11569 enable_dlopen_self_static=unknown
11570else
11571 lt_cv_dlopen=no
11572 lt_cv_dlopen_libs=
11573
11574 case $host_os in
11575 beos*)
11576 lt_cv_dlopen="load_add_on"
11577 lt_cv_dlopen_libs=
11578 lt_cv_dlopen_self=yes
11579 ;;
11580
11581 mingw* | pw32*)
11582 lt_cv_dlopen="LoadLibrary"
11583 lt_cv_dlopen_libs=
11584 ;;
11585
11586 cygwin*)
11587 lt_cv_dlopen="dlopen"
11588 lt_cv_dlopen_libs=
11589 ;;
11590
11591 darwin*)
11592 # if libdl is installed we need to link against it
11593 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11594echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11595if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11596 echo $ECHO_N "(cached) $ECHO_C" >&6
11597else
11598 ac_check_lib_save_LIBS=$LIBS
11599LIBS="-ldl $LIBS"
11600cat >conftest.$ac_ext <<_ACEOF
11601#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000011602/* confdefs.h. */
11603_ACEOF
11604cat confdefs.h >>conftest.$ac_ext
11605cat >>conftest.$ac_ext <<_ACEOF
11606/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011607
11608/* Override any gcc2 internal prototype to avoid an error. */
11609#ifdef __cplusplus
11610extern "C"
11611#endif
11612/* We use char because int might match the return type of a gcc2
11613 builtin and then its argument prototype would still apply. */
11614char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011615int
11616main ()
11617{
11618dlopen ();
11619 ;
11620 return 0;
11621}
11622_ACEOF
11623rm -f conftest.$ac_objext conftest$ac_exeext
11624if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11625 (eval $ac_link) 2>&5
11626 ac_status=$?
11627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11628 (exit $ac_status); } &&
11629 { ac_try='test -s conftest$ac_exeext'
11630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11631 (eval $ac_try) 2>&5
11632 ac_status=$?
11633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11634 (exit $ac_status); }; }; then
11635 ac_cv_lib_dl_dlopen=yes
11636else
11637 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000011638sed 's/^/| /' conftest.$ac_ext >&5
11639
John Criswell47fdd832003-07-14 16:52:07 +000011640ac_cv_lib_dl_dlopen=no
11641fi
11642rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11643LIBS=$ac_check_lib_save_LIBS
11644fi
11645echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11646echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11647if test $ac_cv_lib_dl_dlopen = yes; then
11648 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11649else
11650
11651 lt_cv_dlopen="dyld"
11652 lt_cv_dlopen_libs=
11653 lt_cv_dlopen_self=yes
11654
11655fi
11656
11657 ;;
11658
11659 *)
11660 echo "$as_me:$LINENO: checking for shl_load" >&5
11661echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11662if test "${ac_cv_func_shl_load+set}" = set; then
11663 echo $ECHO_N "(cached) $ECHO_C" >&6
11664else
11665 cat >conftest.$ac_ext <<_ACEOF
11666#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000011667/* confdefs.h. */
11668_ACEOF
11669cat confdefs.h >>conftest.$ac_ext
11670cat >>conftest.$ac_ext <<_ACEOF
11671/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011672/* System header to define __stub macros and hopefully few prototypes,
John Criswell392aaa32003-07-22 19:18:09 +000011673 which can conflict with char shl_load (); below.
11674 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11675 <limits.h> exists even on freestanding compilers. */
11676#ifdef __STDC__
11677# include <limits.h>
11678#else
11679# include <assert.h>
11680#endif
John Criswell47fdd832003-07-14 16:52:07 +000011681/* Override any gcc2 internal prototype to avoid an error. */
11682#ifdef __cplusplus
11683extern "C"
John Criswell392aaa32003-07-22 19:18:09 +000011684{
John Criswell47fdd832003-07-14 16:52:07 +000011685#endif
11686/* We use char because int might match the return type of a gcc2
11687 builtin and then its argument prototype would still apply. */
11688char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000011689/* The GNU C library defines this for functions which it implements
11690 to always fail with ENOSYS. Some functions are actually named
11691 something starting with __ and the normal name is an alias. */
11692#if defined (__stub_shl_load) || defined (__stub___shl_load)
11693choke me
11694#else
John Criswell392aaa32003-07-22 19:18:09 +000011695char (*f) () = shl_load;
11696#endif
11697#ifdef __cplusplus
11698}
John Criswell47fdd832003-07-14 16:52:07 +000011699#endif
11700
John Criswell392aaa32003-07-22 19:18:09 +000011701int
11702main ()
11703{
11704return f != shl_load;
John Criswell47fdd832003-07-14 16:52:07 +000011705 ;
11706 return 0;
11707}
11708_ACEOF
11709rm -f conftest.$ac_objext conftest$ac_exeext
11710if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11711 (eval $ac_link) 2>&5
11712 ac_status=$?
11713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11714 (exit $ac_status); } &&
11715 { ac_try='test -s conftest$ac_exeext'
11716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11717 (eval $ac_try) 2>&5
11718 ac_status=$?
11719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11720 (exit $ac_status); }; }; then
11721 ac_cv_func_shl_load=yes
11722else
11723 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000011724sed 's/^/| /' conftest.$ac_ext >&5
11725
John Criswell47fdd832003-07-14 16:52:07 +000011726ac_cv_func_shl_load=no
11727fi
11728rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11729fi
11730echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11731echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11732if test $ac_cv_func_shl_load = yes; then
11733 lt_cv_dlopen="shl_load"
11734else
11735 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11736echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11737if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11738 echo $ECHO_N "(cached) $ECHO_C" >&6
11739else
11740 ac_check_lib_save_LIBS=$LIBS
11741LIBS="-ldld $LIBS"
11742cat >conftest.$ac_ext <<_ACEOF
11743#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000011744/* confdefs.h. */
11745_ACEOF
11746cat confdefs.h >>conftest.$ac_ext
11747cat >>conftest.$ac_ext <<_ACEOF
11748/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011749
11750/* Override any gcc2 internal prototype to avoid an error. */
11751#ifdef __cplusplus
11752extern "C"
11753#endif
11754/* We use char because int might match the return type of a gcc2
11755 builtin and then its argument prototype would still apply. */
11756char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000011757int
11758main ()
11759{
11760shl_load ();
11761 ;
11762 return 0;
11763}
11764_ACEOF
11765rm -f conftest.$ac_objext conftest$ac_exeext
11766if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11767 (eval $ac_link) 2>&5
11768 ac_status=$?
11769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11770 (exit $ac_status); } &&
11771 { ac_try='test -s conftest$ac_exeext'
11772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11773 (eval $ac_try) 2>&5
11774 ac_status=$?
11775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11776 (exit $ac_status); }; }; then
11777 ac_cv_lib_dld_shl_load=yes
11778else
11779 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000011780sed 's/^/| /' conftest.$ac_ext >&5
11781
John Criswell47fdd832003-07-14 16:52:07 +000011782ac_cv_lib_dld_shl_load=no
11783fi
11784rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11785LIBS=$ac_check_lib_save_LIBS
11786fi
11787echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11788echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11789if test $ac_cv_lib_dld_shl_load = yes; then
11790 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11791else
11792 echo "$as_me:$LINENO: checking for dlopen" >&5
11793echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11794if test "${ac_cv_func_dlopen+set}" = set; then
11795 echo $ECHO_N "(cached) $ECHO_C" >&6
11796else
11797 cat >conftest.$ac_ext <<_ACEOF
11798#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000011799/* confdefs.h. */
11800_ACEOF
11801cat confdefs.h >>conftest.$ac_ext
11802cat >>conftest.$ac_ext <<_ACEOF
11803/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011804/* System header to define __stub macros and hopefully few prototypes,
John Criswell392aaa32003-07-22 19:18:09 +000011805 which can conflict with char dlopen (); below.
11806 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11807 <limits.h> exists even on freestanding compilers. */
11808#ifdef __STDC__
11809# include <limits.h>
11810#else
11811# include <assert.h>
11812#endif
John Criswell47fdd832003-07-14 16:52:07 +000011813/* Override any gcc2 internal prototype to avoid an error. */
11814#ifdef __cplusplus
11815extern "C"
John Criswell392aaa32003-07-22 19:18:09 +000011816{
John Criswell47fdd832003-07-14 16:52:07 +000011817#endif
11818/* We use char because int might match the return type of a gcc2
11819 builtin and then its argument prototype would still apply. */
11820char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011821/* The GNU C library defines this for functions which it implements
11822 to always fail with ENOSYS. Some functions are actually named
11823 something starting with __ and the normal name is an alias. */
11824#if defined (__stub_dlopen) || defined (__stub___dlopen)
11825choke me
11826#else
John Criswell392aaa32003-07-22 19:18:09 +000011827char (*f) () = dlopen;
11828#endif
11829#ifdef __cplusplus
11830}
John Criswell47fdd832003-07-14 16:52:07 +000011831#endif
11832
John Criswell392aaa32003-07-22 19:18:09 +000011833int
11834main ()
11835{
11836return f != dlopen;
John Criswell47fdd832003-07-14 16:52:07 +000011837 ;
11838 return 0;
11839}
11840_ACEOF
11841rm -f conftest.$ac_objext conftest$ac_exeext
11842if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11843 (eval $ac_link) 2>&5
11844 ac_status=$?
11845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11846 (exit $ac_status); } &&
11847 { ac_try='test -s conftest$ac_exeext'
11848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11849 (eval $ac_try) 2>&5
11850 ac_status=$?
11851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11852 (exit $ac_status); }; }; then
11853 ac_cv_func_dlopen=yes
11854else
11855 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000011856sed 's/^/| /' conftest.$ac_ext >&5
11857
John Criswell47fdd832003-07-14 16:52:07 +000011858ac_cv_func_dlopen=no
11859fi
11860rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11861fi
11862echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11863echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11864if test $ac_cv_func_dlopen = yes; then
11865 lt_cv_dlopen="dlopen"
11866else
11867 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11868echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11869if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11870 echo $ECHO_N "(cached) $ECHO_C" >&6
11871else
11872 ac_check_lib_save_LIBS=$LIBS
11873LIBS="-ldl $LIBS"
11874cat >conftest.$ac_ext <<_ACEOF
11875#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000011876/* confdefs.h. */
11877_ACEOF
11878cat confdefs.h >>conftest.$ac_ext
11879cat >>conftest.$ac_ext <<_ACEOF
11880/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011881
11882/* Override any gcc2 internal prototype to avoid an error. */
11883#ifdef __cplusplus
11884extern "C"
11885#endif
11886/* We use char because int might match the return type of a gcc2
11887 builtin and then its argument prototype would still apply. */
11888char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011889int
11890main ()
11891{
11892dlopen ();
11893 ;
11894 return 0;
11895}
11896_ACEOF
11897rm -f conftest.$ac_objext conftest$ac_exeext
11898if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11899 (eval $ac_link) 2>&5
11900 ac_status=$?
11901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11902 (exit $ac_status); } &&
11903 { ac_try='test -s conftest$ac_exeext'
11904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11905 (eval $ac_try) 2>&5
11906 ac_status=$?
11907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11908 (exit $ac_status); }; }; then
11909 ac_cv_lib_dl_dlopen=yes
11910else
11911 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000011912sed 's/^/| /' conftest.$ac_ext >&5
11913
John Criswell47fdd832003-07-14 16:52:07 +000011914ac_cv_lib_dl_dlopen=no
11915fi
11916rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11917LIBS=$ac_check_lib_save_LIBS
11918fi
11919echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11920echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11921if test $ac_cv_lib_dl_dlopen = yes; then
11922 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11923else
11924 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11925echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11926if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11927 echo $ECHO_N "(cached) $ECHO_C" >&6
11928else
11929 ac_check_lib_save_LIBS=$LIBS
11930LIBS="-lsvld $LIBS"
11931cat >conftest.$ac_ext <<_ACEOF
11932#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000011933/* confdefs.h. */
11934_ACEOF
11935cat confdefs.h >>conftest.$ac_ext
11936cat >>conftest.$ac_ext <<_ACEOF
11937/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011938
11939/* Override any gcc2 internal prototype to avoid an error. */
11940#ifdef __cplusplus
11941extern "C"
11942#endif
11943/* We use char because int might match the return type of a gcc2
11944 builtin and then its argument prototype would still apply. */
11945char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011946int
11947main ()
11948{
11949dlopen ();
11950 ;
11951 return 0;
11952}
11953_ACEOF
11954rm -f conftest.$ac_objext conftest$ac_exeext
11955if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11956 (eval $ac_link) 2>&5
11957 ac_status=$?
11958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11959 (exit $ac_status); } &&
11960 { ac_try='test -s conftest$ac_exeext'
11961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11962 (eval $ac_try) 2>&5
11963 ac_status=$?
11964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11965 (exit $ac_status); }; }; then
11966 ac_cv_lib_svld_dlopen=yes
11967else
11968 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000011969sed 's/^/| /' conftest.$ac_ext >&5
11970
John Criswell47fdd832003-07-14 16:52:07 +000011971ac_cv_lib_svld_dlopen=no
11972fi
11973rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11974LIBS=$ac_check_lib_save_LIBS
11975fi
11976echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11977echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11978if test $ac_cv_lib_svld_dlopen = yes; then
11979 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11980else
11981 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11982echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
11983if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11984 echo $ECHO_N "(cached) $ECHO_C" >&6
11985else
11986 ac_check_lib_save_LIBS=$LIBS
11987LIBS="-ldld $LIBS"
11988cat >conftest.$ac_ext <<_ACEOF
11989#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000011990/* confdefs.h. */
11991_ACEOF
11992cat confdefs.h >>conftest.$ac_ext
11993cat >>conftest.$ac_ext <<_ACEOF
11994/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011995
11996/* Override any gcc2 internal prototype to avoid an error. */
11997#ifdef __cplusplus
11998extern "C"
11999#endif
12000/* We use char because int might match the return type of a gcc2
12001 builtin and then its argument prototype would still apply. */
12002char dld_link ();
John Criswell47fdd832003-07-14 16:52:07 +000012003int
12004main ()
12005{
12006dld_link ();
12007 ;
12008 return 0;
12009}
12010_ACEOF
12011rm -f conftest.$ac_objext conftest$ac_exeext
12012if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12013 (eval $ac_link) 2>&5
12014 ac_status=$?
12015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12016 (exit $ac_status); } &&
12017 { ac_try='test -s conftest$ac_exeext'
12018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12019 (eval $ac_try) 2>&5
12020 ac_status=$?
12021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12022 (exit $ac_status); }; }; then
12023 ac_cv_lib_dld_dld_link=yes
12024else
12025 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000012026sed 's/^/| /' conftest.$ac_ext >&5
12027
John Criswell47fdd832003-07-14 16:52:07 +000012028ac_cv_lib_dld_dld_link=no
12029fi
12030rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12031LIBS=$ac_check_lib_save_LIBS
12032fi
12033echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12034echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12035if test $ac_cv_lib_dld_dld_link = yes; then
12036 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12037fi
12038
12039
12040fi
12041
12042
12043fi
12044
12045
12046fi
12047
12048
12049fi
12050
12051
12052fi
12053
12054 ;;
12055 esac
12056
12057 if test "x$lt_cv_dlopen" != xno; then
12058 enable_dlopen=yes
12059 else
12060 enable_dlopen=no
12061 fi
12062
12063 case $lt_cv_dlopen in
12064 dlopen)
12065 save_CPPFLAGS="$CPPFLAGS"
12066 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12067
12068 save_LDFLAGS="$LDFLAGS"
12069 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12070
12071 save_LIBS="$LIBS"
12072 LIBS="$lt_cv_dlopen_libs $LIBS"
12073
12074 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12075echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12076if test "${lt_cv_dlopen_self+set}" = set; then
12077 echo $ECHO_N "(cached) $ECHO_C" >&6
12078else
12079 if test "$cross_compiling" = yes; then :
12080 lt_cv_dlopen_self=cross
12081else
12082 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12083 lt_status=$lt_dlunknown
12084 cat > conftest.$ac_ext <<EOF
John Criswellc764fbc2003-09-06 15:17:13 +000012085#line 12085 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000012086#include "confdefs.h"
12087
12088#if HAVE_DLFCN_H
12089#include <dlfcn.h>
12090#endif
12091
12092#include <stdio.h>
12093
12094#ifdef RTLD_GLOBAL
12095# define LT_DLGLOBAL RTLD_GLOBAL
12096#else
12097# ifdef DL_GLOBAL
12098# define LT_DLGLOBAL DL_GLOBAL
12099# else
12100# define LT_DLGLOBAL 0
12101# endif
12102#endif
12103
12104/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12105 find out it does not work in some platform. */
12106#ifndef LT_DLLAZY_OR_NOW
12107# ifdef RTLD_LAZY
12108# define LT_DLLAZY_OR_NOW RTLD_LAZY
12109# else
12110# ifdef DL_LAZY
12111# define LT_DLLAZY_OR_NOW DL_LAZY
12112# else
12113# ifdef RTLD_NOW
12114# define LT_DLLAZY_OR_NOW RTLD_NOW
12115# else
12116# ifdef DL_NOW
12117# define LT_DLLAZY_OR_NOW DL_NOW
12118# else
12119# define LT_DLLAZY_OR_NOW 0
12120# endif
12121# endif
12122# endif
12123# endif
12124#endif
12125
12126#ifdef __cplusplus
12127extern "C" void exit (int);
12128#endif
12129
12130void fnord() { int i=42;}
12131int main ()
12132{
12133 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12134 int status = $lt_dlunknown;
12135
12136 if (self)
12137 {
12138 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12139 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12140 /* dlclose (self); */
12141 }
12142
12143 exit (status);
12144}
12145EOF
12146 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12147 (eval $ac_link) 2>&5
12148 ac_status=$?
12149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12150 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12151 (./conftest; exit; ) 2>/dev/null
12152 lt_status=$?
12153 case x$lt_status in
12154 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12155 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12156 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12157 esac
12158 else :
12159 # compilation failed
12160 lt_cv_dlopen_self=no
12161 fi
12162fi
12163rm -fr conftest*
12164
12165
12166fi
12167echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12168echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12169
12170 if test "x$lt_cv_dlopen_self" = xyes; then
12171 LDFLAGS="$LDFLAGS $link_static_flag"
12172 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12173echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12174if test "${lt_cv_dlopen_self_static+set}" = set; then
12175 echo $ECHO_N "(cached) $ECHO_C" >&6
12176else
12177 if test "$cross_compiling" = yes; then :
12178 lt_cv_dlopen_self_static=cross
12179else
12180 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12181 lt_status=$lt_dlunknown
12182 cat > conftest.$ac_ext <<EOF
John Criswellc764fbc2003-09-06 15:17:13 +000012183#line 12183 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000012184#include "confdefs.h"
12185
12186#if HAVE_DLFCN_H
12187#include <dlfcn.h>
12188#endif
12189
12190#include <stdio.h>
12191
12192#ifdef RTLD_GLOBAL
12193# define LT_DLGLOBAL RTLD_GLOBAL
12194#else
12195# ifdef DL_GLOBAL
12196# define LT_DLGLOBAL DL_GLOBAL
12197# else
12198# define LT_DLGLOBAL 0
12199# endif
12200#endif
12201
12202/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12203 find out it does not work in some platform. */
12204#ifndef LT_DLLAZY_OR_NOW
12205# ifdef RTLD_LAZY
12206# define LT_DLLAZY_OR_NOW RTLD_LAZY
12207# else
12208# ifdef DL_LAZY
12209# define LT_DLLAZY_OR_NOW DL_LAZY
12210# else
12211# ifdef RTLD_NOW
12212# define LT_DLLAZY_OR_NOW RTLD_NOW
12213# else
12214# ifdef DL_NOW
12215# define LT_DLLAZY_OR_NOW DL_NOW
12216# else
12217# define LT_DLLAZY_OR_NOW 0
12218# endif
12219# endif
12220# endif
12221# endif
12222#endif
12223
12224#ifdef __cplusplus
12225extern "C" void exit (int);
12226#endif
12227
12228void fnord() { int i=42;}
12229int main ()
12230{
12231 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12232 int status = $lt_dlunknown;
12233
12234 if (self)
12235 {
12236 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12237 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12238 /* dlclose (self); */
12239 }
12240
12241 exit (status);
12242}
12243EOF
12244 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12245 (eval $ac_link) 2>&5
12246 ac_status=$?
12247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12248 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12249 (./conftest; exit; ) 2>/dev/null
12250 lt_status=$?
12251 case x$lt_status in
12252 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12253 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12254 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12255 esac
12256 else :
12257 # compilation failed
12258 lt_cv_dlopen_self_static=no
12259 fi
12260fi
12261rm -fr conftest*
12262
12263
12264fi
12265echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12266echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12267 fi
12268
12269 CPPFLAGS="$save_CPPFLAGS"
12270 LDFLAGS="$save_LDFLAGS"
12271 LIBS="$save_LIBS"
12272 ;;
12273 esac
12274
12275 case $lt_cv_dlopen_self in
12276 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12277 *) enable_dlopen_self=unknown ;;
12278 esac
12279
12280 case $lt_cv_dlopen_self_static in
12281 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12282 *) enable_dlopen_self_static=unknown ;;
12283 esac
12284fi
12285
12286
12287# The else clause should only fire when bootstrapping the
12288# libtool distribution, otherwise you forgot to ship ltmain.sh
12289# with your package, and you will get complaints that there are
12290# no rules to generate ltmain.sh.
12291if test -f "$ltmain"; then
12292 # See if we are running on zsh, and set the options which allow our commands through
12293 # without removal of \ escapes.
12294 if test -n "${ZSH_VERSION+set}" ; then
12295 setopt NO_GLOB_SUBST
12296 fi
12297 # Now quote all the things that may contain metacharacters while being
12298 # careful not to overquote the AC_SUBSTed values. We take copies of the
12299 # variables and quote the copies for generation of the libtool script.
12300 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
12301 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12302 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12303 deplibs_check_method reload_flag reload_cmds need_locks \
12304 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12305 lt_cv_sys_global_symbol_to_c_name_address \
12306 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12307 old_postinstall_cmds old_postuninstall_cmds \
12308 compiler_CXX \
12309 CC_CXX \
12310 LD_CXX \
12311 lt_prog_compiler_wl_CXX \
12312 lt_prog_compiler_pic_CXX \
12313 lt_prog_compiler_static_CXX \
12314 lt_prog_compiler_no_builtin_flag_CXX \
12315 export_dynamic_flag_spec_CXX \
12316 thread_safe_flag_spec_CXX \
12317 whole_archive_flag_spec_CXX \
12318 enable_shared_with_static_runtimes_CXX \
12319 old_archive_cmds_CXX \
12320 old_archive_from_new_cmds_CXX \
12321 predep_objects_CXX \
12322 postdep_objects_CXX \
12323 predeps_CXX \
12324 postdeps_CXX \
12325 compiler_lib_search_path_CXX \
12326 archive_cmds_CXX \
12327 archive_expsym_cmds_CXX \
12328 postinstall_cmds_CXX \
12329 postuninstall_cmds_CXX \
12330 old_archive_from_expsyms_cmds_CXX \
12331 allow_undefined_flag_CXX \
12332 no_undefined_flag_CXX \
12333 export_symbols_cmds_CXX \
12334 hardcode_libdir_flag_spec_CXX \
12335 hardcode_libdir_flag_spec_ld_CXX \
12336 hardcode_libdir_separator_CXX \
12337 hardcode_automatic_CXX \
12338 module_cmds_CXX \
12339 module_expsym_cmds_CXX \
12340 lt_cv_prog_compiler_c_o_CXX \
12341 exclude_expsyms_CXX \
12342 include_expsyms_CXX; do
12343
12344 case $var in
12345 old_archive_cmds_CXX | \
12346 old_archive_from_new_cmds_CXX | \
12347 archive_cmds_CXX | \
12348 archive_expsym_cmds_CXX | \
12349 module_cmds_CXX | \
12350 module_expsym_cmds_CXX | \
12351 old_archive_from_expsyms_cmds_CXX | \
12352 export_symbols_cmds_CXX | \
12353 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12354 postinstall_cmds | postuninstall_cmds | \
12355 old_postinstall_cmds | old_postuninstall_cmds | \
12356 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12357 # Double-quote double-evaled strings.
12358 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12359 ;;
12360 *)
12361 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12362 ;;
12363 esac
12364 done
12365
12366 case $lt_echo in
12367 *'\$0 --fallback-echo"')
12368 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12369 ;;
12370 esac
12371
12372cfgfile="$ofile"
12373
12374 cat <<__EOF__ >> "$cfgfile"
12375# ### BEGIN LIBTOOL TAG CONFIG: $tagname
12376
12377# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12378
12379# Shell to use when invoking shell scripts.
12380SHELL=$lt_SHELL
12381
12382# Whether or not to build shared libraries.
12383build_libtool_libs=$enable_shared
12384
12385# Whether or not to build static libraries.
12386build_old_libs=$enable_static
12387
12388# Whether or not to add -lc for building shared libraries.
12389build_libtool_need_lc=$archive_cmds_need_lc_CXX
12390
12391# Whether or not to disallow shared libs when runtime libs are static
12392allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12393
12394# Whether or not to optimize for fast installation.
12395fast_install=$enable_fast_install
12396
12397# The host system.
12398host_alias=$host_alias
12399host=$host
12400
12401# An echo program that does not interpret backslashes.
12402echo=$lt_echo
12403
12404# The archiver.
12405AR=$lt_AR
12406AR_FLAGS=$lt_AR_FLAGS
12407
12408# A C compiler.
12409LTCC=$lt_LTCC
12410
12411# A language-specific compiler.
12412CC=$lt_compiler_CXX
12413
12414# Is the compiler the GNU C compiler?
12415with_gcc=$GCC_CXX
12416
12417# An ERE matcher.
12418EGREP=$lt_EGREP
12419
12420# The linker used to build libraries.
12421LD=$lt_LD_CXX
12422
12423# Whether we need hard or soft links.
12424LN_S=$lt_LN_S
12425
12426# A BSD-compatible nm program.
12427NM=$lt_NM
12428
12429# A symbol stripping program
12430STRIP=$STRIP
12431
12432# Used to examine libraries when file_magic_cmd begins "file"
12433MAGIC_CMD=$MAGIC_CMD
12434
12435# Used on cygwin: DLL creation program.
12436DLLTOOL="$DLLTOOL"
12437
12438# Used on cygwin: object dumper.
12439OBJDUMP="$OBJDUMP"
12440
12441# Used on cygwin: assembler.
12442AS="$AS"
12443
12444# The name of the directory that contains temporary libtool files.
12445objdir=$objdir
12446
12447# How to create reloadable object files.
12448reload_flag=$lt_reload_flag
12449reload_cmds=$lt_reload_cmds
12450
12451# How to pass a linker flag through the compiler.
12452wl=$lt_lt_prog_compiler_wl_CXX
12453
12454# Object file suffix (normally "o").
12455objext="$ac_objext"
12456
12457# Old archive suffix (normally "a").
12458libext="$libext"
12459
12460# Shared library suffix (normally ".so").
12461shrext='$shrext'
12462
12463# Executable file suffix (normally "").
12464exeext="$exeext"
12465
12466# Additional compiler flags for building library objects.
12467pic_flag=$lt_lt_prog_compiler_pic_CXX
12468pic_mode=$pic_mode
12469
12470# What is the maximum length of a command?
12471max_cmd_len=$lt_cv_sys_max_cmd_len
12472
12473# Does compiler simultaneously support -c and -o options?
12474compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12475
12476# Must we lock files when doing compilation ?
12477need_locks=$lt_need_locks
12478
12479# Do we need the lib prefix for modules?
12480need_lib_prefix=$need_lib_prefix
12481
12482# Do we need a version for libraries?
12483need_version=$need_version
12484
12485# Whether dlopen is supported.
12486dlopen_support=$enable_dlopen
12487
12488# Whether dlopen of programs is supported.
12489dlopen_self=$enable_dlopen_self
12490
12491# Whether dlopen of statically linked programs is supported.
12492dlopen_self_static=$enable_dlopen_self_static
12493
12494# Compiler flag to prevent dynamic linking.
12495link_static_flag=$lt_lt_prog_compiler_static_CXX
12496
12497# Compiler flag to turn off builtin functions.
12498no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12499
12500# Compiler flag to allow reflexive dlopens.
12501export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12502
12503# Compiler flag to generate shared objects directly from archives.
12504whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12505
12506# Compiler flag to generate thread-safe objects.
12507thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12508
12509# Library versioning type.
12510version_type=$version_type
12511
12512# Format of library name prefix.
12513libname_spec=$lt_libname_spec
12514
12515# List of archive names. First name is the real one, the rest are links.
12516# The last name is the one that the linker finds with -lNAME.
12517library_names_spec=$lt_library_names_spec
12518
12519# The coded name of the library, if different from the real name.
12520soname_spec=$lt_soname_spec
12521
12522# Commands used to build and install an old-style archive.
12523RANLIB=$lt_RANLIB
12524old_archive_cmds=$lt_old_archive_cmds_CXX
12525old_postinstall_cmds=$lt_old_postinstall_cmds
12526old_postuninstall_cmds=$lt_old_postuninstall_cmds
12527
12528# Create an old-style archive from a shared archive.
12529old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12530
12531# Create a temporary old-style archive to link instead of a shared archive.
12532old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12533
12534# Commands used to build and install a shared archive.
12535archive_cmds=$lt_archive_cmds_CXX
12536archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12537postinstall_cmds=$lt_postinstall_cmds
12538postuninstall_cmds=$lt_postuninstall_cmds
12539
12540# Commands used to build a loadable module (assumed same as above if empty)
12541module_cmds=$lt_module_cmds_CXX
12542module_expsym_cmds=$lt_module_expsym_cmds_CXX
12543
12544# Commands to strip libraries.
12545old_striplib=$lt_old_striplib
12546striplib=$lt_striplib
12547
12548# Dependencies to place before the objects being linked to create a
12549# shared library.
12550predep_objects=$lt_predep_objects_CXX
12551
12552# Dependencies to place after the objects being linked to create a
12553# shared library.
12554postdep_objects=$lt_postdep_objects_CXX
12555
12556# Dependencies to place before the objects being linked to create a
12557# shared library.
12558predeps=$lt_predeps_CXX
12559
12560# Dependencies to place after the objects being linked to create a
12561# shared library.
12562postdeps=$lt_postdeps_CXX
12563
12564# The library search path used internally by the compiler when linking
12565# a shared library.
12566compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12567
12568# Method to check whether dependent libraries are shared objects.
12569deplibs_check_method=$lt_deplibs_check_method
12570
12571# Command to use when deplibs_check_method == file_magic.
12572file_magic_cmd=$lt_file_magic_cmd
12573
12574# Flag that allows shared libraries with undefined symbols to be built.
12575allow_undefined_flag=$lt_allow_undefined_flag_CXX
12576
12577# Flag that forces no undefined symbols.
12578no_undefined_flag=$lt_no_undefined_flag_CXX
12579
12580# Commands used to finish a libtool library installation in a directory.
12581finish_cmds=$lt_finish_cmds
12582
12583# Same as above, but a single script fragment to be evaled but not shown.
12584finish_eval=$lt_finish_eval
12585
12586# Take the output of nm and produce a listing of raw symbols and C names.
12587global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12588
12589# Transform the output of nm in a proper C declaration
12590global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12591
12592# Transform the output of nm in a C name address pair
12593global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12594
12595# This is the shared library runtime path variable.
12596runpath_var=$runpath_var
12597
12598# This is the shared library path variable.
12599shlibpath_var=$shlibpath_var
12600
12601# Is shlibpath searched before the hard-coded library search path?
12602shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12603
12604# How to hardcode a shared library path into an executable.
12605hardcode_action=$hardcode_action_CXX
12606
12607# Whether we should hardcode library paths into libraries.
12608hardcode_into_libs=$hardcode_into_libs
12609
12610# Flag to hardcode \$libdir into a binary during linking.
12611# This must work even if \$libdir does not exist.
12612hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12613
12614# If ld is used when linking, flag to hardcode \$libdir into
12615# a binary during linking. This must work even if \$libdir does
12616# not exist.
12617hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12618
12619# Whether we need a single -rpath flag with a separated argument.
12620hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12621
12622# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12623# resulting binary.
12624hardcode_direct=$hardcode_direct_CXX
12625
12626# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12627# resulting binary.
12628hardcode_minus_L=$hardcode_minus_L_CXX
12629
12630# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12631# the resulting binary.
12632hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12633
12634# Set to yes if building a shared library automatically hardcodes DIR into the library
12635# and all subsequent libraries and executables linked against it.
12636hardcode_automatic=$hardcode_automatic_CXX
12637
12638# Variables whose values should be saved in libtool wrapper scripts and
12639# restored at relink time.
12640variables_saved_for_relink="$variables_saved_for_relink"
12641
12642# Whether libtool must link a program against all its dependency libraries.
12643link_all_deplibs=$link_all_deplibs_CXX
12644
12645# Compile-time system search path for libraries
12646sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12647
12648# Run-time system search path for libraries
12649sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12650
12651# Fix the shell variable \$srcfile for the compiler.
12652fix_srcfile_path="$fix_srcfile_path_CXX"
12653
12654# Set to yes if exported symbols are required.
12655always_export_symbols=$always_export_symbols_CXX
12656
12657# The commands to list exported symbols.
12658export_symbols_cmds=$lt_export_symbols_cmds_CXX
12659
12660# The commands to extract the exported symbol list from a shared archive.
12661extract_expsyms_cmds=$lt_extract_expsyms_cmds
12662
12663# Symbols that should not be listed in the preloaded symbols.
12664exclude_expsyms=$lt_exclude_expsyms_CXX
12665
12666# Symbols that must always be exported.
12667include_expsyms=$lt_include_expsyms_CXX
12668
12669# ### END LIBTOOL TAG CONFIG: $tagname
12670
12671__EOF__
12672
12673
12674else
12675 # If there is no Makefile yet, we rely on a make rule to execute
12676 # `config.status --recheck' to rerun these tests and create the
12677 # libtool script then.
12678 test -f Makefile && make "$ltmain"
12679fi
12680
12681
12682ac_ext=c
12683ac_cpp='$CPP $CPPFLAGS'
12684ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12685ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12686ac_compiler_gnu=$ac_cv_c_compiler_gnu
12687
12688CC=$lt_save_CC
12689LDCXX=$LD
12690LD=$lt_save_LD
12691GCC=$lt_save_GCC
12692with_gnu_ldcxx=$with_gnu_ld
12693with_gnu_ld=$lt_save_with_gnu_ld
12694lt_cv_path_LDCXX=$lt_cv_path_LD
12695lt_cv_path_LD=$lt_save_path_LD
12696lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12697lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12698
12699 else
12700 tagname=""
12701 fi
12702 ;;
12703
12704 F77)
12705 if test -n "$F77" && test "X$F77" != "Xno"; then
12706
12707ac_ext=f
12708ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12709ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12710ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12711
12712
12713archive_cmds_need_lc_F77=no
12714allow_undefined_flag_F77=
12715always_export_symbols_F77=no
12716archive_expsym_cmds_F77=
12717export_dynamic_flag_spec_F77=
12718hardcode_direct_F77=no
12719hardcode_libdir_flag_spec_F77=
12720hardcode_libdir_flag_spec_ld_F77=
12721hardcode_libdir_separator_F77=
12722hardcode_minus_L_F77=no
12723hardcode_automatic_F77=no
12724module_cmds_F77=
12725module_expsym_cmds_F77=
12726link_all_deplibs_F77=unknown
12727old_archive_cmds_F77=$old_archive_cmds
12728no_undefined_flag_F77=
12729whole_archive_flag_spec_F77=
12730enable_shared_with_static_runtimes_F77=no
12731
12732# Source file extension for f77 test sources.
12733ac_ext=f
12734
12735# Object file extension for compiled f77 test sources.
12736objext=o
12737objext_F77=$objext
12738
12739# Code to be used in simple compile tests
12740lt_simple_compile_test_code=" subroutine t\n return\n end\n"
12741
12742# Code to be used in simple link tests
12743lt_simple_link_test_code=" program t\n end\n"
12744
12745# ltmain only uses $CC for tagged configurations so make sure $CC is set.
12746
12747# If no C compiler was specified, use CC.
12748LTCC=${LTCC-"$CC"}
12749
12750# Allow CC to be a program name with arguments.
12751compiler=$CC
12752
12753
12754# Allow CC to be a program name with arguments.
12755lt_save_CC="$CC"
12756CC=${F77-"f77"}
12757compiler=$CC
12758compiler_F77=$CC
12759cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12760
12761echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12762echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12763echo "$as_me:$LINENO: result: $can_build_shared" >&5
12764echo "${ECHO_T}$can_build_shared" >&6
12765
12766echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12767echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12768test "$can_build_shared" = "no" && enable_shared=no
12769
12770# On AIX, shared libraries and static libraries use the same namespace, and
12771# are all built from PIC.
12772case "$host_os" in
12773aix3*)
12774 test "$enable_shared" = yes && enable_static=no
12775 if test -n "$RANLIB"; then
12776 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12777 postinstall_cmds='$RANLIB $lib'
12778 fi
12779 ;;
12780aix4*)
12781 test "$enable_shared" = yes && enable_static=no
12782 ;;
12783esac
12784echo "$as_me:$LINENO: result: $enable_shared" >&5
12785echo "${ECHO_T}$enable_shared" >&6
12786
12787echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12788echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12789# Make sure either enable_shared or enable_static is yes.
12790test "$enable_shared" = yes || enable_static=yes
12791echo "$as_me:$LINENO: result: $enable_static" >&5
12792echo "${ECHO_T}$enable_static" >&6
12793
12794test "$ld_shlibs_F77" = no && can_build_shared=no
12795
12796GCC_F77="$G77"
12797LD_F77="$LD"
12798
12799lt_prog_compiler_wl_F77=
12800lt_prog_compiler_pic_F77=
12801lt_prog_compiler_static_F77=
12802
12803echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12804echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12805
12806 if test "$GCC" = yes; then
12807 lt_prog_compiler_wl_F77='-Wl,'
12808 lt_prog_compiler_static_F77='-static'
12809
12810 case $host_os in
12811 aix*)
12812 # All AIX code is PIC.
12813 if test "$host_cpu" = ia64; then
12814 # AIX 5 now supports IA64 processor
12815 lt_prog_compiler_static_F77='-Bstatic'
12816 fi
12817 ;;
12818
12819 amigaos*)
12820 # FIXME: we need at least 68020 code to build shared libraries, but
12821 # adding the `-m68020' flag to GCC prevents building anything better,
12822 # like `-m68040'.
12823 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12824 ;;
12825
12826 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12827 # PIC is the default for these OSes.
12828 ;;
12829
12830 mingw* | pw32* | os2*)
12831 # This hack is so that the source file can tell whether it is being
12832 # built for inclusion in a dll (and should export symbols for example).
12833 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12834 ;;
12835
12836 darwin* | rhapsody*)
12837 # PIC is the default on this platform
12838 # Common symbols not allowed in MH_DYLIB files
12839 lt_prog_compiler_pic_F77='-fno-common'
12840 ;;
12841
12842 msdosdjgpp*)
12843 # Just because we use GCC doesn't mean we suddenly get shared libraries
12844 # on systems that don't support them.
12845 lt_prog_compiler_can_build_shared_F77=no
12846 enable_shared=no
12847 ;;
12848
12849 sysv4*MP*)
12850 if test -d /usr/nec; then
12851 lt_prog_compiler_pic_F77=-Kconform_pic
12852 fi
12853 ;;
12854
12855 hpux*)
12856 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12857 # not for PA HP-UX.
12858 case "$host_cpu" in
12859 hppa*64*|ia64*)
12860 # +Z the default
12861 ;;
12862 *)
12863 lt_prog_compiler_pic_F77='-fPIC'
12864 ;;
12865 esac
12866 ;;
12867
12868 *)
12869 lt_prog_compiler_pic_F77='-fPIC'
12870 ;;
12871 esac
12872 else
12873 # PORTME Check for flag to pass linker flags through the system compiler.
12874 case $host_os in
12875 aix*)
12876 lt_prog_compiler_wl_F77='-Wl,'
12877 if test "$host_cpu" = ia64; then
12878 # AIX 5 now supports IA64 processor
12879 lt_prog_compiler_static_F77='-Bstatic'
12880 else
12881 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12882 fi
12883 ;;
12884
12885 mingw* | pw32* | os2*)
12886 # This hack is so that the source file can tell whether it is being
12887 # built for inclusion in a dll (and should export symbols for example).
12888 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12889 ;;
12890
12891 hpux9* | hpux10* | hpux11*)
12892 lt_prog_compiler_wl_F77='-Wl,'
12893 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12894 # not for PA HP-UX.
12895 case "$host_cpu" in
12896 hppa*64*|ia64*)
12897 # +Z the default
12898 ;;
12899 *)
12900 lt_prog_compiler_pic_F77='+Z'
12901 ;;
12902 esac
12903 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12904 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
12905 ;;
12906
12907 irix5* | irix6* | nonstopux*)
12908 lt_prog_compiler_wl_F77='-Wl,'
12909 # PIC (with -KPIC) is the default.
12910 lt_prog_compiler_static_F77='-non_shared'
12911 ;;
12912
12913 newsos6)
12914 lt_prog_compiler_pic_F77='-KPIC'
12915 lt_prog_compiler_static_F77='-Bstatic'
12916 ;;
12917
12918 linux*)
12919 case $CC in
12920 icc|ecc)
12921 lt_prog_compiler_wl_F77='-Wl,'
12922 lt_prog_compiler_pic_F77='-KPIC'
12923 lt_prog_compiler_static_F77='-static'
12924 ;;
12925 ccc)
12926 lt_prog_compiler_wl_F77='-Wl,'
12927 # All Alpha code is PIC.
12928 lt_prog_compiler_static_F77='-non_shared'
12929 ;;
12930 esac
12931 ;;
12932
12933 osf3* | osf4* | osf5*)
12934 lt_prog_compiler_wl_F77='-Wl,'
12935 # All OSF/1 code is PIC.
12936 lt_prog_compiler_static_F77='-non_shared'
12937 ;;
12938
12939 sco3.2v5*)
12940 lt_prog_compiler_pic_F77='-Kpic'
12941 lt_prog_compiler_static_F77='-dn'
12942 ;;
12943
12944 solaris*)
12945 lt_prog_compiler_wl_F77='-Wl,'
12946 lt_prog_compiler_pic_F77='-KPIC'
12947 lt_prog_compiler_static_F77='-Bstatic'
12948 ;;
12949
12950 sunos4*)
12951 lt_prog_compiler_wl_F77='-Qoption ld '
12952 lt_prog_compiler_pic_F77='-PIC'
12953 lt_prog_compiler_static_F77='-Bstatic'
12954 ;;
12955
12956 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12957 lt_prog_compiler_wl_F77='-Wl,'
12958 lt_prog_compiler_pic_F77='-KPIC'
12959 lt_prog_compiler_static_F77='-Bstatic'
12960 ;;
12961
12962 sysv4*MP*)
12963 if test -d /usr/nec ;then
12964 lt_prog_compiler_pic_F77='-Kconform_pic'
12965 lt_prog_compiler_static_F77='-Bstatic'
12966 fi
12967 ;;
12968
12969 uts4*)
12970 lt_prog_compiler_pic_F77='-pic'
12971 lt_prog_compiler_static_F77='-Bstatic'
12972 ;;
12973
12974 *)
12975 lt_prog_compiler_can_build_shared_F77=no
12976 ;;
12977 esac
12978 fi
12979
12980echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
12981echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
12982
12983#
12984# Check to make sure the PIC flag actually works.
12985#
12986if test -n "$lt_prog_compiler_pic_F77"; then
12987 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
12988echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
12989if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
12990 echo $ECHO_N "(cached) $ECHO_C" >&6
12991else
12992 lt_prog_compiler_pic_works_F77=no
12993 ac_outfile=conftest.$ac_objext
12994 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12995 lt_compiler_flag="$lt_prog_compiler_pic_F77"
12996 # Insert the option either (1) after the last *FLAGS variable, or
12997 # (2) before a word containing "conftest.", or (3) at the end.
12998 # Note that $ac_compile itself does not contain backslashes and begins
12999 # with a dollar sign (not a hyphen), so the echo should work correctly.
13000 # The option is referenced via a variable to avoid confusing sed.
13001 lt_compile=`echo "$ac_compile" | $SED \
13002 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13003 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13004 -e 's:$: $lt_compiler_flag:'`
John Criswellc764fbc2003-09-06 15:17:13 +000013005 (eval echo "\"\$as_me:13005: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000013006 (eval "$lt_compile" 2>conftest.err)
13007 ac_status=$?
13008 cat conftest.err >&5
John Criswellc764fbc2003-09-06 15:17:13 +000013009 echo "$as_me:13009: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000013010 if (exit $ac_status) && test -s "$ac_outfile"; then
13011 # The compiler can only warn and ignore the option if not recognized
13012 # So say no if there are warnings
13013 if test ! -s conftest.err; then
13014 lt_prog_compiler_pic_works_F77=yes
13015 fi
13016 fi
13017 $rm conftest*
13018
13019fi
13020echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13021echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13022
13023if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13024 case $lt_prog_compiler_pic_F77 in
13025 "" | " "*) ;;
13026 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13027 esac
13028else
13029 lt_prog_compiler_pic_F77=
13030 lt_prog_compiler_can_build_shared_F77=no
13031fi
13032
13033fi
13034case "$host_os" in
13035 # For platforms which do not support PIC, -DPIC is meaningless:
13036 *djgpp*)
13037 lt_prog_compiler_pic_F77=
13038 ;;
13039 *)
13040 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13041 ;;
13042esac
13043
13044echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13045echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13046if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13047 echo $ECHO_N "(cached) $ECHO_C" >&6
13048else
13049 lt_cv_prog_compiler_c_o_F77=no
13050 $rm -r conftest 2>/dev/null
13051 mkdir conftest
13052 cd conftest
13053 mkdir out
13054 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13055
13056 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
13057 # that will create temporary files in the current directory regardless of
13058 # the output directory. Thus, making CWD read-only will cause this test
13059 # to fail, enabling locking or at least warning the user not to do parallel
13060 # builds.
13061 chmod -w .
13062
13063 lt_compiler_flag="-o out/conftest2.$ac_objext"
13064 # Insert the option either (1) after the last *FLAGS variable, or
13065 # (2) before a word containing "conftest.", or (3) at the end.
13066 # Note that $ac_compile itself does not contain backslashes and begins
13067 # with a dollar sign (not a hyphen), so the echo should work correctly.
13068 lt_compile=`echo "$ac_compile" | $SED \
13069 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13070 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13071 -e 's:$: $lt_compiler_flag:'`
John Criswellc764fbc2003-09-06 15:17:13 +000013072 (eval echo "\"\$as_me:13072: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000013073 (eval "$lt_compile" 2>out/conftest.err)
13074 ac_status=$?
13075 cat out/conftest.err >&5
John Criswellc764fbc2003-09-06 15:17:13 +000013076 echo "$as_me:13076: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000013077 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13078 then
13079 # The compiler can only warn and ignore the option if not recognized
13080 # So say no if there are warnings
13081 if test ! -s out/conftest.err; then
13082 lt_cv_prog_compiler_c_o_F77=yes
13083 fi
13084 fi
13085 chmod u+w .
13086 $rm conftest* out/*
13087 rmdir out
13088 cd ..
13089 rmdir conftest
13090 $rm conftest*
13091
13092fi
13093echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13094echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13095
13096
13097hard_links="nottested"
13098if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13099 # do not overwrite the value of need_locks provided by the user
13100 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13101echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13102 hard_links=yes
13103 $rm conftest*
13104 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13105 touch conftest.a
13106 ln conftest.a conftest.b 2>&5 || hard_links=no
13107 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13108 echo "$as_me:$LINENO: result: $hard_links" >&5
13109echo "${ECHO_T}$hard_links" >&6
13110 if test "$hard_links" = no; then
13111 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13112echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13113 need_locks=warn
13114 fi
13115else
13116 need_locks=no
13117fi
13118
13119echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13120echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13121
13122 runpath_var=
13123 allow_undefined_flag_F77=
13124 enable_shared_with_static_runtimes_F77=no
13125 archive_cmds_F77=
13126 archive_expsym_cmds_F77=
13127 old_archive_From_new_cmds_F77=
13128 old_archive_from_expsyms_cmds_F77=
13129 export_dynamic_flag_spec_F77=
13130 whole_archive_flag_spec_F77=
13131 thread_safe_flag_spec_F77=
13132 hardcode_libdir_flag_spec_F77=
13133 hardcode_libdir_flag_spec_ld_F77=
13134 hardcode_libdir_separator_F77=
13135 hardcode_direct_F77=no
13136 hardcode_minus_L_F77=no
13137 hardcode_shlibpath_var_F77=unsupported
13138 link_all_deplibs_F77=unknown
13139 hardcode_automatic_F77=no
13140 module_cmds_F77=
13141 module_expsym_cmds_F77=
13142 always_export_symbols_F77=no
13143 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13144 # include_expsyms should be a list of space-separated symbols to be *always*
13145 # included in the symbol list
13146 include_expsyms_F77=
13147 # exclude_expsyms can be an extended regexp of symbols to exclude
13148 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13149 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13150 # as well as any symbol that contains `d'.
13151 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13152 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13153 # platforms (ab)use it in PIC code, but their linkers get confused if
13154 # the symbol is explicitly referenced. Since portable code cannot
13155 # rely on this symbol name, it's probably fine to never include it in
13156 # preloaded symbol tables.
13157 extract_expsyms_cmds=
13158
13159 case $host_os in
13160 cygwin* | mingw* | pw32*)
13161 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13162 # When not using gcc, we currently assume that we are using
13163 # Microsoft Visual C++.
13164 if test "$GCC" != yes; then
13165 with_gnu_ld=no
13166 fi
13167 ;;
13168 openbsd*)
13169 with_gnu_ld=no
13170 ;;
13171 esac
13172
13173 ld_shlibs_F77=yes
13174 if test "$with_gnu_ld" = yes; then
13175 # If archive_cmds runs LD, not CC, wlarc should be empty
13176 wlarc='${wl}'
13177
13178 # See if GNU ld supports shared libraries.
13179 case $host_os in
13180 aix3* | aix4* | aix5*)
13181 # On AIX/PPC, the GNU linker is very broken
13182 if test "$host_cpu" != ia64; then
13183 ld_shlibs_F77=no
13184 cat <<EOF 1>&2
13185
13186*** Warning: the GNU linker, at least up to release 2.9.1, is reported
13187*** to be unable to reliably create shared libraries on AIX.
13188*** Therefore, libtool is disabling shared libraries support. If you
13189*** really care for shared libraries, you may want to modify your PATH
13190*** so that a non-GNU linker is found, and then restart.
13191
13192EOF
13193 fi
13194 ;;
13195
13196 amigaos*)
13197 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)'
13198 hardcode_libdir_flag_spec_F77='-L$libdir'
13199 hardcode_minus_L_F77=yes
13200
13201 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13202 # that the semantics of dynamic libraries on AmigaOS, at least up
13203 # to version 4, is to share data among multiple programs linked
13204 # with the same dynamic library. Since this doesn't match the
13205 # behavior of shared libraries on other platforms, we can't use
13206 # them.
13207 ld_shlibs_F77=no
13208 ;;
13209
13210 beos*)
13211 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13212 allow_undefined_flag_F77=unsupported
13213 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13214 # support --undefined. This deserves some investigation. FIXME
13215 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13216 else
13217 ld_shlibs_F77=no
13218 fi
13219 ;;
13220
13221 cygwin* | mingw* | pw32*)
13222 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13223 # as there is no search path for DLLs.
13224 hardcode_libdir_flag_spec_F77='-L$libdir'
13225 allow_undefined_flag_F77=unsupported
13226 always_export_symbols_F77=no
13227 enable_shared_with_static_runtimes_F77=yes
13228 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13229
13230 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13231 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13232 # If the export-symbols file already is a .def file (1st line
13233 # is EXPORTS), use it as is; otherwise, prepend...
13234 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13235 cp $export_symbols $output_objdir/$soname.def;
13236 else
13237 echo EXPORTS > $output_objdir/$soname.def;
13238 cat $export_symbols >> $output_objdir/$soname.def;
13239 fi~
13240 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13241 else
13242 ld_shlibs=no
13243 fi
13244 ;;
13245
13246 netbsd*)
13247 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13248 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13249 wlarc=
13250 else
13251 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13252 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13253 fi
13254 ;;
13255
13256 solaris* | sysv5*)
13257 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13258 ld_shlibs_F77=no
13259 cat <<EOF 1>&2
13260
13261*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13262*** create shared libraries on Solaris systems. Therefore, libtool
13263*** is disabling shared libraries support. We urge you to upgrade GNU
13264*** binutils to release 2.9.1 or newer. Another option is to modify
13265*** your PATH or compiler configuration so that the native linker is
13266*** used, and then restart.
13267
13268EOF
13269 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13270 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13271 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13272 else
13273 ld_shlibs_F77=no
13274 fi
13275 ;;
13276
13277 sunos4*)
13278 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13279 wlarc=
13280 hardcode_direct_F77=yes
13281 hardcode_shlibpath_var_F77=no
13282 ;;
13283
13284 *)
13285 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13286 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13287 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13288 else
13289 ld_shlibs_F77=no
13290 fi
13291 ;;
13292 esac
13293
13294 if test "$ld_shlibs_F77" = yes; then
13295 runpath_var=LD_RUN_PATH
13296 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13297 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13298 # ancient GNU ld didn't support --whole-archive et. al.
13299 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13300 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13301 else
13302 whole_archive_flag_spec_F77=
13303 fi
13304 fi
13305 else
13306 # PORTME fill in a description of your system's linker (not GNU ld)
13307 case $host_os in
13308 aix3*)
13309 allow_undefined_flag_F77=unsupported
13310 always_export_symbols_F77=yes
13311 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'
13312 # Note: this linker hardcodes the directories in LIBPATH if there
13313 # are no directories specified by -L.
13314 hardcode_minus_L_F77=yes
13315 if test "$GCC" = yes && test -z "$link_static_flag"; then
13316 # Neither direct hardcoding nor static linking is supported with a
13317 # broken collect2.
13318 hardcode_direct_F77=unsupported
13319 fi
13320 ;;
13321
13322 aix4* | aix5*)
13323 if test "$host_cpu" = ia64; then
13324 # On IA64, the linker does run time linking by default, so we don't
13325 # have to do anything special.
13326 aix_use_runtimelinking=no
13327 exp_sym_flag='-Bexport'
13328 no_entry_flag=""
13329 else
13330 # If we're using GNU nm, then we don't want the "-C" option.
13331 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13332 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13333 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'
13334 else
13335 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'
13336 fi
13337 aix_use_runtimelinking=no
13338
13339 # Test if we are trying to use run time linking or normal
13340 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13341 # need to do runtime linking.
13342 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13343 for ld_flag in $LDFLAGS; do
13344 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13345 aix_use_runtimelinking=yes
13346 break
13347 fi
13348 done
13349 esac
13350
13351 exp_sym_flag='-bexport'
13352 no_entry_flag='-bnoentry'
13353 fi
13354
13355 # When large executables or shared objects are built, AIX ld can
13356 # have problems creating the table of contents. If linking a library
13357 # or program results in "error TOC overflow" add -mminimal-toc to
13358 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13359 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13360
13361 archive_cmds_F77=''
13362 hardcode_direct_F77=yes
13363 hardcode_libdir_separator_F77=':'
13364 link_all_deplibs_F77=yes
13365
13366 if test "$GCC" = yes; then
13367 case $host_os in aix4.012|aix4.012.*)
13368 # We only want to do this on AIX 4.2 and lower, the check
13369 # below for broken collect2 doesn't work under 4.3+
13370 collect2name=`${CC} -print-prog-name=collect2`
13371 if test -f "$collect2name" && \
13372 strings "$collect2name" | grep resolve_lib_name >/dev/null
13373 then
13374 # We have reworked collect2
13375 hardcode_direct_F77=yes
13376 else
13377 # We have old collect2
13378 hardcode_direct_F77=unsupported
13379 # It fails to find uninstalled libraries when the uninstalled
13380 # path is not listed in the libpath. Setting hardcode_minus_L
13381 # to unsupported forces relinking
13382 hardcode_minus_L_F77=yes
13383 hardcode_libdir_flag_spec_F77='-L$libdir'
13384 hardcode_libdir_separator_F77=
13385 fi
13386 esac
13387 shared_flag='-shared'
13388 else
13389 # not using gcc
13390 if test "$host_cpu" = ia64; then
13391 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13392 # chokes on -Wl,-G. The following line is correct:
13393 shared_flag='-G'
13394 else
13395 if test "$aix_use_runtimelinking" = yes; then
13396 shared_flag='${wl}-G'
13397 else
13398 shared_flag='${wl}-bM:SRE'
13399 fi
13400 fi
13401 fi
13402
13403 # It seems that -bexpall does not export symbols beginning with
13404 # underscore (_), so it is better to generate a list of symbols to export.
13405 always_export_symbols_F77=yes
13406 if test "$aix_use_runtimelinking" = yes; then
13407 # Warning - without using the other runtime loading flags (-brtl),
13408 # -berok will link without error, but may produce a broken library.
13409 allow_undefined_flag_F77='-berok'
13410 # Determine the default libpath from the value encoded in an empty executable.
13411 cat >conftest.$ac_ext <<_ACEOF
13412 program main
13413
13414 end
13415_ACEOF
13416rm -f conftest.$ac_objext conftest$ac_exeext
13417if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13418 (eval $ac_link) 2>&5
13419 ac_status=$?
13420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13421 (exit $ac_status); } &&
13422 { ac_try='test -s conftest$ac_exeext'
13423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13424 (eval $ac_try) 2>&5
13425 ac_status=$?
13426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13427 (exit $ac_status); }; }; then
13428
13429aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13430}'`
13431# Check for a 64-bit object if we didn't find anything.
13432if 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; }
13433}'`; fi
13434else
13435 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000013436sed 's/^/| /' conftest.$ac_ext >&5
13437
John Criswell47fdd832003-07-14 16:52:07 +000013438fi
13439rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13440if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13441
13442 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13443 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"
13444 else
13445 if test "$host_cpu" = ia64; then
13446 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13447 allow_undefined_flag_F77="-z nodefs"
13448 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"
13449 else
13450 # Determine the default libpath from the value encoded in an empty executable.
13451 cat >conftest.$ac_ext <<_ACEOF
13452 program main
13453
13454 end
13455_ACEOF
13456rm -f conftest.$ac_objext conftest$ac_exeext
13457if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13458 (eval $ac_link) 2>&5
13459 ac_status=$?
13460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13461 (exit $ac_status); } &&
13462 { ac_try='test -s conftest$ac_exeext'
13463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13464 (eval $ac_try) 2>&5
13465 ac_status=$?
13466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13467 (exit $ac_status); }; }; then
13468
13469aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13470}'`
13471# Check for a 64-bit object if we didn't find anything.
13472if 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; }
13473}'`; fi
13474else
13475 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000013476sed 's/^/| /' conftest.$ac_ext >&5
13477
John Criswell47fdd832003-07-14 16:52:07 +000013478fi
13479rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13480if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13481
13482 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13483 # Warning - without using the other run time loading flags,
13484 # -berok will link without error, but may produce a broken library.
13485 no_undefined_flag_F77=' ${wl}-bernotok'
13486 allow_undefined_flag_F77=' ${wl}-berok'
13487 # -bexpall does not export symbols beginning with underscore (_)
13488 always_export_symbols_F77=yes
13489 # Exported symbols can be pulled into shared objects from archives
13490 whole_archive_flag_spec_F77=' '
13491 archive_cmds_need_lc_F77=yes
13492 # This is similar to how AIX traditionally builds it's shared libraries.
13493 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'
13494 fi
13495 fi
13496 ;;
13497
13498 amigaos*)
13499 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)'
13500 hardcode_libdir_flag_spec_F77='-L$libdir'
13501 hardcode_minus_L_F77=yes
13502 # see comment about different semantics on the GNU ld section
13503 ld_shlibs_F77=no
13504 ;;
13505
13506 bsdi4*)
13507 export_dynamic_flag_spec_F77=-rdynamic
13508 ;;
13509
13510 cygwin* | mingw* | pw32*)
13511 # When not using gcc, we currently assume that we are using
13512 # Microsoft Visual C++.
13513 # hardcode_libdir_flag_spec is actually meaningless, as there is
13514 # no search path for DLLs.
13515 hardcode_libdir_flag_spec_F77=' '
13516 allow_undefined_flag_F77=unsupported
13517 # Tell ltmain to make .lib files, not .a files.
13518 libext=lib
13519 # Tell ltmain to make .dll files, not .so files.
13520 shrext=".dll"
13521 # FIXME: Setting linknames here is a bad hack.
13522 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13523 # The linker will automatically build a .lib file if we build a DLL.
13524 old_archive_From_new_cmds_F77='true'
13525 # FIXME: Should let the user specify the lib program.
13526 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13527 fix_srcfile_path='`cygpath -w "$srcfile"`'
13528 enable_shared_with_static_runtimes_F77=yes
13529 ;;
13530
13531 darwin* | rhapsody*)
13532 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13533 archive_cmds_need_lc_F77=no
13534 case "$host_os" in
13535 rhapsody* | darwin1.[012])
13536 allow_undefined_flag_F77='-undefined suppress'
13537 ;;
13538 *) # Darwin 1.3 on
13539 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13540 ;;
13541 esac
13542 # FIXME: Relying on posixy $() will cause problems for
13543 # cross-compilation, but unfortunately the echo tests do not
13544 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
13545 # `"' quotes if we put them in here... so don't!
13546 lt_int_apple_cc_single_mod=no
13547 output_verbose_link_cmd='echo'
13548 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13549 lt_int_apple_cc_single_mod=yes
13550 fi
13551 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13552 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13553 else
13554 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'
13555 fi
13556 module_cmds_F77='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
13557 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13558 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13559 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}'
13560 else
13561 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}'
13562 fi
13563 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}'
13564 hardcode_direct_F77=no
13565 hardcode_automatic_F77=yes
13566 hardcode_shlibpath_var_F77=unsupported
13567 whole_archive_flag_spec_F77='-all_load $convenience'
13568 link_all_deplibs_F77=yes
13569 fi
13570 ;;
13571
13572 dgux*)
13573 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13574 hardcode_libdir_flag_spec_F77='-L$libdir'
13575 hardcode_shlibpath_var_F77=no
13576 ;;
13577
13578 freebsd1*)
13579 ld_shlibs_F77=no
13580 ;;
13581
13582 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13583 # support. Future versions do this automatically, but an explicit c++rt0.o
13584 # does not break anything, and helps significantly (at the cost of a little
13585 # extra space).
13586 freebsd2.2*)
13587 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13588 hardcode_libdir_flag_spec_F77='-R$libdir'
13589 hardcode_direct_F77=yes
13590 hardcode_shlibpath_var_F77=no
13591 ;;
13592
13593 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13594 freebsd2*)
13595 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13596 hardcode_direct_F77=yes
13597 hardcode_minus_L_F77=yes
13598 hardcode_shlibpath_var_F77=no
13599 ;;
13600
13601 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13602 freebsd*)
13603 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13604 hardcode_libdir_flag_spec_F77='-R$libdir'
13605 hardcode_direct_F77=yes
13606 hardcode_shlibpath_var_F77=no
13607 ;;
13608
13609 hpux9*)
13610 if test "$GCC" = yes; then
13611 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'
13612 else
13613 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'
13614 fi
13615 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13616 hardcode_libdir_separator_F77=:
13617 hardcode_direct_F77=yes
13618
13619 # hardcode_minus_L: Not really in the search PATH,
13620 # but as the default location of the library.
13621 hardcode_minus_L_F77=yes
13622 export_dynamic_flag_spec_F77='${wl}-E'
13623 ;;
13624
13625 hpux10* | hpux11*)
13626 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13627 case "$host_cpu" in
13628 hppa*64*|ia64*)
13629 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13630 ;;
13631 *)
13632 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13633 ;;
13634 esac
13635 else
13636 case "$host_cpu" in
13637 hppa*64*|ia64*)
13638 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13639 ;;
13640 *)
13641 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13642 ;;
13643 esac
13644 fi
13645 if test "$with_gnu_ld" = no; then
13646 case "$host_cpu" in
13647 hppa*64*)
13648 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13649 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13650 hardcode_libdir_separator_F77=:
13651 hardcode_direct_F77=no
13652 hardcode_shlibpath_var_F77=no
13653 ;;
13654 ia64*)
13655 hardcode_libdir_flag_spec_F77='-L$libdir'
13656 hardcode_direct_F77=no
13657 hardcode_shlibpath_var_F77=no
13658
13659 # hardcode_minus_L: Not really in the search PATH,
13660 # but as the default location of the library.
13661 hardcode_minus_L_F77=yes
13662 ;;
13663 *)
13664 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13665 hardcode_libdir_separator_F77=:
13666 hardcode_direct_F77=yes
13667 export_dynamic_flag_spec_F77='${wl}-E'
13668
13669 # hardcode_minus_L: Not really in the search PATH,
13670 # but as the default location of the library.
13671 hardcode_minus_L_F77=yes
13672 ;;
13673 esac
13674 fi
13675 ;;
13676
13677 irix5* | irix6* | nonstopux*)
13678 if test "$GCC" = yes; then
13679 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'
13680 else
13681 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'
13682 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13683 fi
13684 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13685 hardcode_libdir_separator_F77=:
13686 link_all_deplibs_F77=yes
13687 ;;
13688
13689 netbsd*)
13690 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13691 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13692 else
13693 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13694 fi
13695 hardcode_libdir_flag_spec_F77='-R$libdir'
13696 hardcode_direct_F77=yes
13697 hardcode_shlibpath_var_F77=no
13698 ;;
13699
13700 newsos6)
13701 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13702 hardcode_direct_F77=yes
13703 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13704 hardcode_libdir_separator_F77=:
13705 hardcode_shlibpath_var_F77=no
13706 ;;
13707
13708 openbsd*)
13709 hardcode_direct_F77=yes
13710 hardcode_shlibpath_var_F77=no
13711 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13712 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13713 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13714 export_dynamic_flag_spec_F77='${wl}-E'
13715 else
13716 case $host_os in
13717 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13718 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13719 hardcode_libdir_flag_spec_F77='-R$libdir'
13720 ;;
13721 *)
13722 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13723 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13724 ;;
13725 esac
13726 fi
13727 ;;
13728
13729 os2*)
13730 hardcode_libdir_flag_spec_F77='-L$libdir'
13731 hardcode_minus_L_F77=yes
13732 allow_undefined_flag_F77=unsupported
13733 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'
13734 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13735 ;;
13736
13737 osf3*)
13738 if test "$GCC" = yes; then
13739 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13740 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'
13741 else
13742 allow_undefined_flag_F77=' -expect_unresolved \*'
13743 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'
13744 fi
13745 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13746 hardcode_libdir_separator_F77=:
13747 ;;
13748
13749 osf4* | osf5*) # as osf3* with the addition of -msym flag
13750 if test "$GCC" = yes; then
13751 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13752 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'
13753 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13754 else
13755 allow_undefined_flag_F77=' -expect_unresolved \*'
13756 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'
13757 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~
13758 $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'
13759
13760 # Both c and cxx compiler support -rpath directly
13761 hardcode_libdir_flag_spec_F77='-rpath $libdir'
13762 fi
13763 hardcode_libdir_separator_F77=:
13764 ;;
13765
13766 sco3.2v5*)
13767 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13768 hardcode_shlibpath_var_F77=no
13769 export_dynamic_flag_spec_F77='${wl}-Bexport'
13770 runpath_var=LD_RUN_PATH
13771 hardcode_runpath_var=yes
13772 ;;
13773
13774 solaris*)
13775 no_undefined_flag_F77=' -z text'
13776 if test "$GCC" = yes; then
13777 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13778 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13779 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13780 else
13781 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13782 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13783 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13784 fi
13785 hardcode_libdir_flag_spec_F77='-R$libdir'
13786 hardcode_shlibpath_var_F77=no
13787 case $host_os in
13788 solaris2.[0-5] | solaris2.[0-5].*) ;;
13789 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13790 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13791 esac
13792 link_all_deplibs_F77=yes
13793 ;;
13794
13795 sunos4*)
13796 if test "x$host_vendor" = xsequent; then
13797 # Use $CC to link under sequent, because it throws in some extra .o
13798 # files that make .init and .fini sections work.
13799 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13800 else
13801 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13802 fi
13803 hardcode_libdir_flag_spec_F77='-L$libdir'
13804 hardcode_direct_F77=yes
13805 hardcode_minus_L_F77=yes
13806 hardcode_shlibpath_var_F77=no
13807 ;;
13808
13809 sysv4)
13810 case $host_vendor in
13811 sni)
13812 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13813 hardcode_direct_F77=yes # is this really true???
13814 ;;
13815 siemens)
13816 ## LD is ld it makes a PLAMLIB
13817 ## CC just makes a GrossModule.
13818 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13819 reload_cmds_F77='$CC -r -o $output$reload_objs'
13820 hardcode_direct_F77=no
13821 ;;
13822 motorola)
13823 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13824 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13825 ;;
13826 esac
13827 runpath_var='LD_RUN_PATH'
13828 hardcode_shlibpath_var_F77=no
13829 ;;
13830
13831 sysv4.3*)
13832 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13833 hardcode_shlibpath_var_F77=no
13834 export_dynamic_flag_spec_F77='-Bexport'
13835 ;;
13836
13837 sysv4*MP*)
13838 if test -d /usr/nec; then
13839 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13840 hardcode_shlibpath_var_F77=no
13841 runpath_var=LD_RUN_PATH
13842 hardcode_runpath_var=yes
13843 ld_shlibs_F77=yes
13844 fi
13845 ;;
13846
13847 sysv4.2uw2*)
13848 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13849 hardcode_direct_F77=yes
13850 hardcode_minus_L_F77=no
13851 hardcode_shlibpath_var_F77=no
13852 hardcode_runpath_var=yes
13853 runpath_var=LD_RUN_PATH
13854 ;;
13855
13856 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
13857 no_undefined_flag_F77='${wl}-z ${wl}text'
13858 if test "$GCC" = yes; then
13859 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13860 else
13861 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13862 fi
13863 runpath_var='LD_RUN_PATH'
13864 hardcode_shlibpath_var_F77=no
13865 ;;
13866
13867 sysv5*)
13868 no_undefined_flag_F77=' -z text'
13869 # $CC -shared without GNU ld will not create a library from C++
13870 # object files and a static libstdc++, better avoid it by now
13871 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13872 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13873 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13874 hardcode_libdir_flag_spec_F77=
13875 hardcode_shlibpath_var_F77=no
13876 runpath_var='LD_RUN_PATH'
13877 ;;
13878
13879 uts4*)
13880 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13881 hardcode_libdir_flag_spec_F77='-L$libdir'
13882 hardcode_shlibpath_var_F77=no
13883 ;;
13884
13885 *)
13886 ld_shlibs_F77=no
13887 ;;
13888 esac
13889 fi
13890
13891echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
13892echo "${ECHO_T}$ld_shlibs_F77" >&6
13893test "$ld_shlibs_F77" = no && can_build_shared=no
13894
13895variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13896if test "$GCC" = yes; then
13897 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13898fi
13899
13900#
13901# Do we need to explicitly link libc?
13902#
13903case "x$archive_cmds_need_lc_F77" in
13904x|xyes)
13905 # Assume -lc should be added
13906 archive_cmds_need_lc_F77=yes
13907
13908 if test "$enable_shared" = yes && test "$GCC" = yes; then
13909 case $archive_cmds_F77 in
13910 *'~'*)
13911 # FIXME: we may have to deal with multi-command sequences.
13912 ;;
13913 '$CC '*)
13914 # Test whether the compiler implicitly links with -lc since on some
13915 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13916 # to ld, don't add -lc before -lgcc.
13917 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13918echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13919 $rm conftest*
13920 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13921
13922 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13923 (eval $ac_compile) 2>&5
13924 ac_status=$?
13925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13926 (exit $ac_status); } 2>conftest.err; then
13927 soname=conftest
13928 lib=conftest
13929 libobjs=conftest.$ac_objext
13930 deplibs=
13931 wl=$lt_prog_compiler_wl_F77
13932 compiler_flags=-v
13933 linker_flags=-v
13934 verstring=
13935 output_objdir=.
13936 libname=conftest
13937 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
13938 allow_undefined_flag_F77=
13939 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13940 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13941 ac_status=$?
13942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13943 (exit $ac_status); }
13944 then
13945 archive_cmds_need_lc_F77=no
13946 else
13947 archive_cmds_need_lc_F77=yes
13948 fi
13949 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
13950 else
13951 cat conftest.err 1>&5
13952 fi
13953 $rm conftest*
13954 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
13955echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
13956 ;;
13957 esac
13958 fi
13959 ;;
13960esac
13961
13962echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13963echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13964hardcode_action_F77=
13965if test -n "$hardcode_libdir_flag_spec_F77" || \
13966 test -n "$runpath_var F77" || \
13967 test "X$hardcode_automatic_F77"="Xyes" ; then
13968
13969 # We can hardcode non-existant directories.
13970 if test "$hardcode_direct_F77" != no &&
13971 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13972 # have to relink, otherwise we might link with an installed library
13973 # when we should be linking with a yet-to-be-installed one
13974 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
13975 test "$hardcode_minus_L_F77" != no; then
13976 # Linking always hardcodes the temporary library directory.
13977 hardcode_action_F77=relink
13978 else
13979 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13980 hardcode_action_F77=immediate
13981 fi
13982else
13983 # We cannot hardcode anything, or else we can only hardcode existing
13984 # directories.
13985 hardcode_action_F77=unsupported
13986fi
13987echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
13988echo "${ECHO_T}$hardcode_action_F77" >&6
13989
13990if test "$hardcode_action_F77" = relink; then
13991 # Fast installation is not supported
13992 enable_fast_install=no
13993elif test "$shlibpath_overrides_runpath" = yes ||
13994 test "$enable_shared" = no; then
13995 # Fast installation is not necessary
13996 enable_fast_install=needless
13997fi
13998
13999striplib=
14000old_striplib=
14001echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14002echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14003if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14004 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14005 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14006 echo "$as_me:$LINENO: result: yes" >&5
14007echo "${ECHO_T}yes" >&6
14008else
14009# FIXME - insert some real tests, host_os isn't really good enough
14010 case $host_os in
14011 darwin*)
14012 if test -n "$STRIP" ; then
14013 striplib="$STRIP -x"
14014 echo "$as_me:$LINENO: result: yes" >&5
14015echo "${ECHO_T}yes" >&6
14016 else
14017 echo "$as_me:$LINENO: result: no" >&5
14018echo "${ECHO_T}no" >&6
14019fi
14020 ;;
14021 *)
14022 echo "$as_me:$LINENO: result: no" >&5
14023echo "${ECHO_T}no" >&6
14024 ;;
14025 esac
14026fi
14027
14028echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14029echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14030library_names_spec=
14031libname_spec='lib$name'
14032soname_spec=
14033shrext=".so"
14034postinstall_cmds=
14035postuninstall_cmds=
14036finish_cmds=
14037finish_eval=
14038shlibpath_var=
14039shlibpath_overrides_runpath=unknown
14040version_type=none
14041dynamic_linker="$host_os ld.so"
14042sys_lib_dlsearch_path_spec="/lib /usr/lib"
14043if test "$GCC" = yes; then
14044 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14045 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14046 # if the path contains ";" then we assume it to be the separator
14047 # otherwise default to the standard path separator (i.e. ":") - it is
14048 # assumed that no part of a normal pathname contains ";" but that should
14049 # okay in the real world where ";" in dirpaths is itself problematic.
14050 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14051 else
14052 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14053 fi
14054else
14055 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14056fi
14057need_lib_prefix=unknown
14058hardcode_into_libs=no
14059
14060# when you set need_version to no, make sure it does not cause -set_version
14061# flags to be left without arguments
14062need_version=unknown
14063
14064case $host_os in
14065aix3*)
14066 version_type=linux
14067 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14068 shlibpath_var=LIBPATH
14069
14070 # AIX 3 has no versioning support, so we append a major version to the name.
14071 soname_spec='${libname}${release}${shared_ext}$major'
14072 ;;
14073
14074aix4* | aix5*)
14075 version_type=linux
14076 need_lib_prefix=no
14077 need_version=no
14078 hardcode_into_libs=yes
14079 if test "$host_cpu" = ia64; then
14080 # AIX 5 supports IA64
14081 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14082 shlibpath_var=LD_LIBRARY_PATH
14083 else
14084 # With GCC up to 2.95.x, collect2 would create an import file
14085 # for dependence libraries. The import file would start with
14086 # the line `#! .'. This would cause the generated library to
14087 # depend on `.', always an invalid library. This was fixed in
14088 # development snapshots of GCC prior to 3.0.
14089 case $host_os in
14090 aix4 | aix4.[01] | aix4.[01].*)
14091 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14092 echo ' yes '
14093 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14094 :
14095 else
14096 can_build_shared=no
14097 fi
14098 ;;
14099 esac
14100 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14101 # soname into executable. Probably we can add versioning support to
14102 # collect2, so additional links can be useful in future.
14103 if test "$aix_use_runtimelinking" = yes; then
14104 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14105 # instead of lib<name>.a to let people know that these are not
14106 # typical AIX shared libraries.
14107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14108 else
14109 # We preserve .a as extension for shared libraries through AIX4.2
14110 # and later when we are not doing run time linking.
14111 library_names_spec='${libname}${release}.a $libname.a'
14112 soname_spec='${libname}${release}${shared_ext}$major'
14113 fi
14114 shlibpath_var=LIBPATH
14115 fi
14116 ;;
14117
14118amigaos*)
14119 library_names_spec='$libname.ixlibrary $libname.a'
14120 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14121 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'
14122 ;;
14123
14124beos*)
14125 library_names_spec='${libname}${shared_ext}'
14126 dynamic_linker="$host_os ld.so"
14127 shlibpath_var=LIBRARY_PATH
14128 ;;
14129
14130bsdi4*)
14131 version_type=linux
14132 need_version=no
14133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14134 soname_spec='${libname}${release}${shared_ext}$major'
14135 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14136 shlibpath_var=LD_LIBRARY_PATH
14137 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14138 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14139 # the default ld.so.conf also contains /usr/contrib/lib and
14140 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14141 # libtool to hard-code these into programs
14142 ;;
14143
14144cygwin* | mingw* | pw32*)
14145 version_type=windows
14146 shrext=".dll"
14147 need_version=no
14148 need_lib_prefix=no
14149
14150 case $GCC,$host_os in
14151 yes,cygwin* | yes,mingw* | yes,pw32*)
14152 library_names_spec='$libname.dll.a'
14153 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14154 postinstall_cmds='base_file=`basename \${file}`~
14155 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14156 dldir=$destdir/`dirname \$dlpath`~
14157 test -d \$dldir || mkdir -p \$dldir~
14158 $install_prog $dir/$dlname \$dldir/$dlname'
14159 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14160 dlpath=$dir/\$dldll~
14161 $rm \$dlpath'
14162 shlibpath_overrides_runpath=yes
14163
14164 case $host_os in
14165 cygwin*)
14166 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14167 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14168 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
14169 ;;
14170 mingw*)
14171 # MinGW DLLs use traditional 'lib' prefix
14172 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14173 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14174 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14175 # It is most probably a Windows format PATH printed by
14176 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14177 # path with ; separators, and with drive letters. We can handle the
14178 # drive letters (cygwin fileutils understands them), so leave them,
14179 # especially as we might pass files found there to a mingw objdump,
14180 # which wouldn't understand a cygwinified path. Ahh.
14181 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14182 else
14183 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14184 fi
14185 ;;
14186 pw32*)
14187 # pw32 DLLs use 'pw' prefix rather than 'lib'
14188 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14189 ;;
14190 esac
14191 ;;
14192
14193 *)
14194 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14195 ;;
14196 esac
14197 dynamic_linker='Win32 ld.exe'
14198 # FIXME: first we should search . and the directory the executable is in
14199 shlibpath_var=PATH
14200 ;;
14201
14202darwin* | rhapsody*)
14203 dynamic_linker="$host_os dyld"
14204 version_type=darwin
14205 need_lib_prefix=no
14206 need_version=no
14207 # FIXME: Relying on posixy $() will cause problems for
14208 # cross-compilation, but unfortunately the echo tests do not
14209 # yet detect zsh echo's removal of \ escapes.
14210 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14211 soname_spec='${libname}${release}${major}$shared_ext'
14212 shlibpath_overrides_runpath=yes
14213 shlibpath_var=DYLD_LIBRARY_PATH
14214 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
14215 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14216 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
14217 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"`
14218 fi
14219 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14220 ;;
14221
14222dgux*)
14223 version_type=linux
14224 need_lib_prefix=no
14225 need_version=no
14226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14227 soname_spec='${libname}${release}${shared_ext}$major'
14228 shlibpath_var=LD_LIBRARY_PATH
14229 ;;
14230
14231freebsd1*)
14232 dynamic_linker=no
14233 ;;
14234
14235freebsd*)
14236 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14237 version_type=freebsd-$objformat
14238 case $version_type in
14239 freebsd-elf*)
14240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14241 need_version=no
14242 need_lib_prefix=no
14243 ;;
14244 freebsd-*)
14245 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14246 need_version=yes
14247 ;;
14248 esac
14249 shlibpath_var=LD_LIBRARY_PATH
14250 case $host_os in
14251 freebsd2*)
14252 shlibpath_overrides_runpath=yes
14253 ;;
14254 freebsd3.01* | freebsdelf3.01*)
14255 shlibpath_overrides_runpath=yes
14256 hardcode_into_libs=yes
14257 ;;
14258 *) # from 3.2 on
14259 shlibpath_overrides_runpath=no
14260 hardcode_into_libs=yes
14261 ;;
14262 esac
14263 ;;
14264
14265gnu*)
14266 version_type=linux
14267 need_lib_prefix=no
14268 need_version=no
14269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14270 soname_spec='${libname}${release}${shared_ext}$major'
14271 shlibpath_var=LD_LIBRARY_PATH
14272 hardcode_into_libs=yes
14273 ;;
14274
14275hpux9* | hpux10* | hpux11*)
14276 # Give a soname corresponding to the major version so that dld.sl refuses to
14277 # link against other versions.
14278 version_type=sunos
14279 need_lib_prefix=no
14280 need_version=no
14281 case "$host_cpu" in
14282 ia64*)
14283 shrext='.so'
14284 hardcode_into_libs=yes
14285 dynamic_linker="$host_os dld.so"
14286 shlibpath_var=LD_LIBRARY_PATH
14287 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14289 soname_spec='${libname}${release}${shared_ext}$major'
14290 if test "X$HPUX_IA64_MODE" = X32; then
14291 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14292 else
14293 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14294 fi
14295 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14296 ;;
14297 hppa*64*)
14298 shrext='.sl'
14299 hardcode_into_libs=yes
14300 dynamic_linker="$host_os dld.sl"
14301 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14302 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14304 soname_spec='${libname}${release}${shared_ext}$major'
14305 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14306 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14307 ;;
14308 *)
14309 shrext='.sl'
14310 dynamic_linker="$host_os dld.sl"
14311 shlibpath_var=SHLIB_PATH
14312 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14314 soname_spec='${libname}${release}${shared_ext}$major'
14315 ;;
14316 esac
14317 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14318 postinstall_cmds='chmod 555 $lib'
14319 ;;
14320
14321irix5* | irix6* | nonstopux*)
14322 case $host_os in
14323 nonstopux*) version_type=nonstopux ;;
14324 *)
14325 if test "$lt_cv_prog_gnu_ld" = yes; then
14326 version_type=linux
14327 else
14328 version_type=irix
14329 fi ;;
14330 esac
14331 need_lib_prefix=no
14332 need_version=no
14333 soname_spec='${libname}${release}${shared_ext}$major'
14334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14335 case $host_os in
14336 irix5* | nonstopux*)
14337 libsuff= shlibsuff=
14338 ;;
14339 *)
14340 case $LD in # libtool.m4 will add one of these switches to LD
14341 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14342 libsuff= shlibsuff= libmagic=32-bit;;
14343 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14344 libsuff=32 shlibsuff=N32 libmagic=N32;;
14345 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14346 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14347 *) libsuff= shlibsuff= libmagic=never-match;;
14348 esac
14349 ;;
14350 esac
14351 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14352 shlibpath_overrides_runpath=no
14353 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14354 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14355 hardcode_into_libs=yes
14356 ;;
14357
14358# No shared lib support for Linux oldld, aout, or coff.
14359linux*oldld* | linux*aout* | linux*coff*)
14360 dynamic_linker=no
14361 ;;
14362
14363# This must be Linux ELF.
14364linux*)
14365 version_type=linux
14366 need_lib_prefix=no
14367 need_version=no
14368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14369 soname_spec='${libname}${release}${shared_ext}$major'
14370 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14371 shlibpath_var=LD_LIBRARY_PATH
14372 shlibpath_overrides_runpath=no
14373 # This implies no fast_install, which is unacceptable.
14374 # Some rework will be needed to allow for fast_install
14375 # before this can be enabled.
14376 hardcode_into_libs=yes
14377
14378 # We used to test for /lib/ld.so.1 and disable shared libraries on
14379 # powerpc, because MkLinux only supported shared libraries with the
14380 # GNU dynamic linker. Since this was broken with cross compilers,
14381 # most powerpc-linux boxes support dynamic linking these days and
14382 # people can always --disable-shared, the test was removed, and we
14383 # assume the GNU/Linux dynamic linker is in use.
14384 dynamic_linker='GNU/Linux ld.so'
14385 ;;
14386
14387netbsd*)
14388 version_type=sunos
14389 need_lib_prefix=no
14390 need_version=no
14391 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14393 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14394 dynamic_linker='NetBSD (a.out) ld.so'
14395 else
14396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
14397 soname_spec='${libname}${release}${shared_ext}$major'
14398 dynamic_linker='NetBSD ld.elf_so'
14399 fi
14400 shlibpath_var=LD_LIBRARY_PATH
14401 shlibpath_overrides_runpath=yes
14402 hardcode_into_libs=yes
14403 ;;
14404
14405newsos6)
14406 version_type=linux
14407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14408 shlibpath_var=LD_LIBRARY_PATH
14409 shlibpath_overrides_runpath=yes
14410 ;;
14411
14412nto-qnx)
14413 version_type=linux
14414 need_lib_prefix=no
14415 need_version=no
14416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14417 soname_spec='${libname}${release}${shared_ext}$major'
14418 shlibpath_var=LD_LIBRARY_PATH
14419 shlibpath_overrides_runpath=yes
14420 ;;
14421
14422openbsd*)
14423 version_type=sunos
14424 need_lib_prefix=no
14425 need_version=no
14426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14427 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14428 shlibpath_var=LD_LIBRARY_PATH
14429 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14430 case $host_os in
14431 openbsd2.[89] | openbsd2.[89].*)
14432 shlibpath_overrides_runpath=no
14433 ;;
14434 *)
14435 shlibpath_overrides_runpath=yes
14436 ;;
14437 esac
14438 else
14439 shlibpath_overrides_runpath=yes
14440 fi
14441 ;;
14442
14443os2*)
14444 libname_spec='$name'
14445 shrext=".dll"
14446 need_lib_prefix=no
14447 library_names_spec='$libname${shared_ext} $libname.a'
14448 dynamic_linker='OS/2 ld.exe'
14449 shlibpath_var=LIBPATH
14450 ;;
14451
14452osf3* | osf4* | osf5*)
14453 version_type=osf
14454 need_lib_prefix=no
14455 need_version=no
14456 soname_spec='${libname}${release}${shared_ext}$major'
14457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14458 shlibpath_var=LD_LIBRARY_PATH
14459 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14460 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14461 ;;
14462
14463sco3.2v5*)
14464 version_type=osf
14465 soname_spec='${libname}${release}${shared_ext}$major'
14466 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14467 shlibpath_var=LD_LIBRARY_PATH
14468 ;;
14469
14470solaris*)
14471 version_type=linux
14472 need_lib_prefix=no
14473 need_version=no
14474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14475 soname_spec='${libname}${release}${shared_ext}$major'
14476 shlibpath_var=LD_LIBRARY_PATH
14477 shlibpath_overrides_runpath=yes
14478 hardcode_into_libs=yes
14479 # ldd complains unless libraries are executable
14480 postinstall_cmds='chmod +x $lib'
14481 ;;
14482
14483sunos4*)
14484 version_type=sunos
14485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14486 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14487 shlibpath_var=LD_LIBRARY_PATH
14488 shlibpath_overrides_runpath=yes
14489 if test "$with_gnu_ld" = yes; then
14490 need_lib_prefix=no
14491 fi
14492 need_version=yes
14493 ;;
14494
14495sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14496 version_type=linux
14497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14498 soname_spec='${libname}${release}${shared_ext}$major'
14499 shlibpath_var=LD_LIBRARY_PATH
14500 case $host_vendor in
14501 sni)
14502 shlibpath_overrides_runpath=no
14503 need_lib_prefix=no
14504 export_dynamic_flag_spec='${wl}-Blargedynsym'
14505 runpath_var=LD_RUN_PATH
14506 ;;
14507 siemens)
14508 need_lib_prefix=no
14509 ;;
14510 motorola)
14511 need_lib_prefix=no
14512 need_version=no
14513 shlibpath_overrides_runpath=no
14514 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14515 ;;
14516 esac
14517 ;;
14518
14519sysv4*MP*)
14520 if test -d /usr/nec ;then
14521 version_type=linux
14522 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14523 soname_spec='$libname${shared_ext}.$major'
14524 shlibpath_var=LD_LIBRARY_PATH
14525 fi
14526 ;;
14527
14528uts4*)
14529 version_type=linux
14530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14531 soname_spec='${libname}${release}${shared_ext}$major'
14532 shlibpath_var=LD_LIBRARY_PATH
14533 ;;
14534
14535*)
14536 dynamic_linker=no
14537 ;;
14538esac
14539echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14540echo "${ECHO_T}$dynamic_linker" >&6
14541test "$dynamic_linker" = no && can_build_shared=no
14542
14543
14544# The else clause should only fire when bootstrapping the
14545# libtool distribution, otherwise you forgot to ship ltmain.sh
14546# with your package, and you will get complaints that there are
14547# no rules to generate ltmain.sh.
14548if test -f "$ltmain"; then
14549 # See if we are running on zsh, and set the options which allow our commands through
14550 # without removal of \ escapes.
14551 if test -n "${ZSH_VERSION+set}" ; then
14552 setopt NO_GLOB_SUBST
14553 fi
14554 # Now quote all the things that may contain metacharacters while being
14555 # careful not to overquote the AC_SUBSTed values. We take copies of the
14556 # variables and quote the copies for generation of the libtool script.
14557 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
14558 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14559 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14560 deplibs_check_method reload_flag reload_cmds need_locks \
14561 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14562 lt_cv_sys_global_symbol_to_c_name_address \
14563 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14564 old_postinstall_cmds old_postuninstall_cmds \
14565 compiler_F77 \
14566 CC_F77 \
14567 LD_F77 \
14568 lt_prog_compiler_wl_F77 \
14569 lt_prog_compiler_pic_F77 \
14570 lt_prog_compiler_static_F77 \
14571 lt_prog_compiler_no_builtin_flag_F77 \
14572 export_dynamic_flag_spec_F77 \
14573 thread_safe_flag_spec_F77 \
14574 whole_archive_flag_spec_F77 \
14575 enable_shared_with_static_runtimes_F77 \
14576 old_archive_cmds_F77 \
14577 old_archive_from_new_cmds_F77 \
14578 predep_objects_F77 \
14579 postdep_objects_F77 \
14580 predeps_F77 \
14581 postdeps_F77 \
14582 compiler_lib_search_path_F77 \
14583 archive_cmds_F77 \
14584 archive_expsym_cmds_F77 \
14585 postinstall_cmds_F77 \
14586 postuninstall_cmds_F77 \
14587 old_archive_from_expsyms_cmds_F77 \
14588 allow_undefined_flag_F77 \
14589 no_undefined_flag_F77 \
14590 export_symbols_cmds_F77 \
14591 hardcode_libdir_flag_spec_F77 \
14592 hardcode_libdir_flag_spec_ld_F77 \
14593 hardcode_libdir_separator_F77 \
14594 hardcode_automatic_F77 \
14595 module_cmds_F77 \
14596 module_expsym_cmds_F77 \
14597 lt_cv_prog_compiler_c_o_F77 \
14598 exclude_expsyms_F77 \
14599 include_expsyms_F77; do
14600
14601 case $var in
14602 old_archive_cmds_F77 | \
14603 old_archive_from_new_cmds_F77 | \
14604 archive_cmds_F77 | \
14605 archive_expsym_cmds_F77 | \
14606 module_cmds_F77 | \
14607 module_expsym_cmds_F77 | \
14608 old_archive_from_expsyms_cmds_F77 | \
14609 export_symbols_cmds_F77 | \
14610 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14611 postinstall_cmds | postuninstall_cmds | \
14612 old_postinstall_cmds | old_postuninstall_cmds | \
14613 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14614 # Double-quote double-evaled strings.
14615 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14616 ;;
14617 *)
14618 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14619 ;;
14620 esac
14621 done
14622
14623 case $lt_echo in
14624 *'\$0 --fallback-echo"')
14625 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14626 ;;
14627 esac
14628
14629cfgfile="$ofile"
14630
14631 cat <<__EOF__ >> "$cfgfile"
14632# ### BEGIN LIBTOOL TAG CONFIG: $tagname
14633
14634# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14635
14636# Shell to use when invoking shell scripts.
14637SHELL=$lt_SHELL
14638
14639# Whether or not to build shared libraries.
14640build_libtool_libs=$enable_shared
14641
14642# Whether or not to build static libraries.
14643build_old_libs=$enable_static
14644
14645# Whether or not to add -lc for building shared libraries.
14646build_libtool_need_lc=$archive_cmds_need_lc_F77
14647
14648# Whether or not to disallow shared libs when runtime libs are static
14649allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14650
14651# Whether or not to optimize for fast installation.
14652fast_install=$enable_fast_install
14653
14654# The host system.
14655host_alias=$host_alias
14656host=$host
14657
14658# An echo program that does not interpret backslashes.
14659echo=$lt_echo
14660
14661# The archiver.
14662AR=$lt_AR
14663AR_FLAGS=$lt_AR_FLAGS
14664
14665# A C compiler.
14666LTCC=$lt_LTCC
14667
14668# A language-specific compiler.
14669CC=$lt_compiler_F77
14670
14671# Is the compiler the GNU C compiler?
14672with_gcc=$GCC_F77
14673
14674# An ERE matcher.
14675EGREP=$lt_EGREP
14676
14677# The linker used to build libraries.
14678LD=$lt_LD_F77
14679
14680# Whether we need hard or soft links.
14681LN_S=$lt_LN_S
14682
14683# A BSD-compatible nm program.
14684NM=$lt_NM
14685
14686# A symbol stripping program
14687STRIP=$STRIP
14688
14689# Used to examine libraries when file_magic_cmd begins "file"
14690MAGIC_CMD=$MAGIC_CMD
14691
14692# Used on cygwin: DLL creation program.
14693DLLTOOL="$DLLTOOL"
14694
14695# Used on cygwin: object dumper.
14696OBJDUMP="$OBJDUMP"
14697
14698# Used on cygwin: assembler.
14699AS="$AS"
14700
14701# The name of the directory that contains temporary libtool files.
14702objdir=$objdir
14703
14704# How to create reloadable object files.
14705reload_flag=$lt_reload_flag
14706reload_cmds=$lt_reload_cmds
14707
14708# How to pass a linker flag through the compiler.
14709wl=$lt_lt_prog_compiler_wl_F77
14710
14711# Object file suffix (normally "o").
14712objext="$ac_objext"
14713
14714# Old archive suffix (normally "a").
14715libext="$libext"
14716
14717# Shared library suffix (normally ".so").
14718shrext='$shrext'
14719
14720# Executable file suffix (normally "").
14721exeext="$exeext"
14722
14723# Additional compiler flags for building library objects.
14724pic_flag=$lt_lt_prog_compiler_pic_F77
14725pic_mode=$pic_mode
14726
14727# What is the maximum length of a command?
14728max_cmd_len=$lt_cv_sys_max_cmd_len
14729
14730# Does compiler simultaneously support -c and -o options?
14731compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14732
14733# Must we lock files when doing compilation ?
14734need_locks=$lt_need_locks
14735
14736# Do we need the lib prefix for modules?
14737need_lib_prefix=$need_lib_prefix
14738
14739# Do we need a version for libraries?
14740need_version=$need_version
14741
14742# Whether dlopen is supported.
14743dlopen_support=$enable_dlopen
14744
14745# Whether dlopen of programs is supported.
14746dlopen_self=$enable_dlopen_self
14747
14748# Whether dlopen of statically linked programs is supported.
14749dlopen_self_static=$enable_dlopen_self_static
14750
14751# Compiler flag to prevent dynamic linking.
14752link_static_flag=$lt_lt_prog_compiler_static_F77
14753
14754# Compiler flag to turn off builtin functions.
14755no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14756
14757# Compiler flag to allow reflexive dlopens.
14758export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14759
14760# Compiler flag to generate shared objects directly from archives.
14761whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14762
14763# Compiler flag to generate thread-safe objects.
14764thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14765
14766# Library versioning type.
14767version_type=$version_type
14768
14769# Format of library name prefix.
14770libname_spec=$lt_libname_spec
14771
14772# List of archive names. First name is the real one, the rest are links.
14773# The last name is the one that the linker finds with -lNAME.
14774library_names_spec=$lt_library_names_spec
14775
14776# The coded name of the library, if different from the real name.
14777soname_spec=$lt_soname_spec
14778
14779# Commands used to build and install an old-style archive.
14780RANLIB=$lt_RANLIB
14781old_archive_cmds=$lt_old_archive_cmds_F77
14782old_postinstall_cmds=$lt_old_postinstall_cmds
14783old_postuninstall_cmds=$lt_old_postuninstall_cmds
14784
14785# Create an old-style archive from a shared archive.
14786old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14787
14788# Create a temporary old-style archive to link instead of a shared archive.
14789old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14790
14791# Commands used to build and install a shared archive.
14792archive_cmds=$lt_archive_cmds_F77
14793archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14794postinstall_cmds=$lt_postinstall_cmds
14795postuninstall_cmds=$lt_postuninstall_cmds
14796
14797# Commands used to build a loadable module (assumed same as above if empty)
14798module_cmds=$lt_module_cmds_F77
14799module_expsym_cmds=$lt_module_expsym_cmds_F77
14800
14801# Commands to strip libraries.
14802old_striplib=$lt_old_striplib
14803striplib=$lt_striplib
14804
14805# Dependencies to place before the objects being linked to create a
14806# shared library.
14807predep_objects=$lt_predep_objects_F77
14808
14809# Dependencies to place after the objects being linked to create a
14810# shared library.
14811postdep_objects=$lt_postdep_objects_F77
14812
14813# Dependencies to place before the objects being linked to create a
14814# shared library.
14815predeps=$lt_predeps_F77
14816
14817# Dependencies to place after the objects being linked to create a
14818# shared library.
14819postdeps=$lt_postdeps_F77
14820
14821# The library search path used internally by the compiler when linking
14822# a shared library.
14823compiler_lib_search_path=$lt_compiler_lib_search_path_F77
14824
14825# Method to check whether dependent libraries are shared objects.
14826deplibs_check_method=$lt_deplibs_check_method
14827
14828# Command to use when deplibs_check_method == file_magic.
14829file_magic_cmd=$lt_file_magic_cmd
14830
14831# Flag that allows shared libraries with undefined symbols to be built.
14832allow_undefined_flag=$lt_allow_undefined_flag_F77
14833
14834# Flag that forces no undefined symbols.
14835no_undefined_flag=$lt_no_undefined_flag_F77
14836
14837# Commands used to finish a libtool library installation in a directory.
14838finish_cmds=$lt_finish_cmds
14839
14840# Same as above, but a single script fragment to be evaled but not shown.
14841finish_eval=$lt_finish_eval
14842
14843# Take the output of nm and produce a listing of raw symbols and C names.
14844global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14845
14846# Transform the output of nm in a proper C declaration
14847global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14848
14849# Transform the output of nm in a C name address pair
14850global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14851
14852# This is the shared library runtime path variable.
14853runpath_var=$runpath_var
14854
14855# This is the shared library path variable.
14856shlibpath_var=$shlibpath_var
14857
14858# Is shlibpath searched before the hard-coded library search path?
14859shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14860
14861# How to hardcode a shared library path into an executable.
14862hardcode_action=$hardcode_action_F77
14863
14864# Whether we should hardcode library paths into libraries.
14865hardcode_into_libs=$hardcode_into_libs
14866
14867# Flag to hardcode \$libdir into a binary during linking.
14868# This must work even if \$libdir does not exist.
14869hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
14870
14871# If ld is used when linking, flag to hardcode \$libdir into
14872# a binary during linking. This must work even if \$libdir does
14873# not exist.
14874hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
14875
14876# Whether we need a single -rpath flag with a separated argument.
14877hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
14878
14879# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14880# resulting binary.
14881hardcode_direct=$hardcode_direct_F77
14882
14883# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14884# resulting binary.
14885hardcode_minus_L=$hardcode_minus_L_F77
14886
14887# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14888# the resulting binary.
14889hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
14890
14891# Set to yes if building a shared library automatically hardcodes DIR into the library
14892# and all subsequent libraries and executables linked against it.
14893hardcode_automatic=$hardcode_automatic_F77
14894
14895# Variables whose values should be saved in libtool wrapper scripts and
14896# restored at relink time.
14897variables_saved_for_relink="$variables_saved_for_relink"
14898
14899# Whether libtool must link a program against all its dependency libraries.
14900link_all_deplibs=$link_all_deplibs_F77
14901
14902# Compile-time system search path for libraries
14903sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14904
14905# Run-time system search path for libraries
14906sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14907
14908# Fix the shell variable \$srcfile for the compiler.
14909fix_srcfile_path="$fix_srcfile_path_F77"
14910
14911# Set to yes if exported symbols are required.
14912always_export_symbols=$always_export_symbols_F77
14913
14914# The commands to list exported symbols.
14915export_symbols_cmds=$lt_export_symbols_cmds_F77
14916
14917# The commands to extract the exported symbol list from a shared archive.
14918extract_expsyms_cmds=$lt_extract_expsyms_cmds
14919
14920# Symbols that should not be listed in the preloaded symbols.
14921exclude_expsyms=$lt_exclude_expsyms_F77
14922
14923# Symbols that must always be exported.
14924include_expsyms=$lt_include_expsyms_F77
14925
14926# ### END LIBTOOL TAG CONFIG: $tagname
14927
14928__EOF__
14929
14930
14931else
14932 # If there is no Makefile yet, we rely on a make rule to execute
14933 # `config.status --recheck' to rerun these tests and create the
14934 # libtool script then.
14935 test -f Makefile && make "$ltmain"
14936fi
14937
14938
14939ac_ext=c
14940ac_cpp='$CPP $CPPFLAGS'
14941ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14942ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14943ac_compiler_gnu=$ac_cv_c_compiler_gnu
14944
14945CC="$lt_save_CC"
14946
14947 else
14948 tagname=""
14949 fi
14950 ;;
14951
14952 GCJ)
14953 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
14954
14955
14956
14957# Source file extension for Java test sources.
14958ac_ext=java
14959
14960# Object file extension for compiled Java test sources.
14961objext=o
14962objext_GCJ=$objext
14963
14964# Code to be used in simple compile tests
14965lt_simple_compile_test_code="class foo {}\n"
14966
14967# Code to be used in simple link tests
14968lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
14969
14970# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14971
14972# If no C compiler was specified, use CC.
14973LTCC=${LTCC-"$CC"}
14974
14975# Allow CC to be a program name with arguments.
14976compiler=$CC
14977
14978
14979# Allow CC to be a program name with arguments.
14980lt_save_CC="$CC"
14981CC=${GCJ-"gcj"}
14982compiler=$CC
14983compiler_GCJ=$CC
14984
14985# GCJ did not exist at the time GCC didn't implicitly link libc in.
14986archive_cmds_need_lc_GCJ=no
14987
14988## CAVEAT EMPTOR:
14989## There is no encapsulation within the following macros, do not change
14990## the running order or otherwise move them around unless you know exactly
14991## what you are doing...
14992
14993lt_prog_compiler_no_builtin_flag_GCJ=
14994
14995if test "$GCC" = yes; then
14996 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
14997
14998 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14999echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15000if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15001 echo $ECHO_N "(cached) $ECHO_C" >&6
15002else
15003 lt_cv_prog_compiler_rtti_exceptions=no
15004 ac_outfile=conftest.$ac_objext
15005 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15006 lt_compiler_flag="-fno-rtti -fno-exceptions"
15007 # Insert the option either (1) after the last *FLAGS variable, or
15008 # (2) before a word containing "conftest.", or (3) at the end.
15009 # Note that $ac_compile itself does not contain backslashes and begins
15010 # with a dollar sign (not a hyphen), so the echo should work correctly.
15011 # The option is referenced via a variable to avoid confusing sed.
15012 lt_compile=`echo "$ac_compile" | $SED \
15013 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15014 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15015 -e 's:$: $lt_compiler_flag:'`
John Criswellc764fbc2003-09-06 15:17:13 +000015016 (eval echo "\"\$as_me:15016: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000015017 (eval "$lt_compile" 2>conftest.err)
15018 ac_status=$?
15019 cat conftest.err >&5
John Criswellc764fbc2003-09-06 15:17:13 +000015020 echo "$as_me:15020: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000015021 if (exit $ac_status) && test -s "$ac_outfile"; then
15022 # The compiler can only warn and ignore the option if not recognized
15023 # So say no if there are warnings
15024 if test ! -s conftest.err; then
15025 lt_cv_prog_compiler_rtti_exceptions=yes
15026 fi
15027 fi
15028 $rm conftest*
15029
15030fi
15031echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15032echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15033
15034if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15035 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15036else
15037 :
15038fi
15039
15040fi
15041
15042lt_prog_compiler_wl_GCJ=
15043lt_prog_compiler_pic_GCJ=
15044lt_prog_compiler_static_GCJ=
15045
15046echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15047echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15048
15049 if test "$GCC" = yes; then
15050 lt_prog_compiler_wl_GCJ='-Wl,'
15051 lt_prog_compiler_static_GCJ='-static'
15052
15053 case $host_os in
15054 aix*)
15055 # All AIX code is PIC.
15056 if test "$host_cpu" = ia64; then
15057 # AIX 5 now supports IA64 processor
15058 lt_prog_compiler_static_GCJ='-Bstatic'
15059 fi
15060 ;;
15061
15062 amigaos*)
15063 # FIXME: we need at least 68020 code to build shared libraries, but
15064 # adding the `-m68020' flag to GCC prevents building anything better,
15065 # like `-m68040'.
15066 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15067 ;;
15068
15069 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15070 # PIC is the default for these OSes.
15071 ;;
15072
15073 mingw* | pw32* | os2*)
15074 # This hack is so that the source file can tell whether it is being
15075 # built for inclusion in a dll (and should export symbols for example).
15076 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15077 ;;
15078
15079 darwin* | rhapsody*)
15080 # PIC is the default on this platform
15081 # Common symbols not allowed in MH_DYLIB files
15082 lt_prog_compiler_pic_GCJ='-fno-common'
15083 ;;
15084
15085 msdosdjgpp*)
15086 # Just because we use GCC doesn't mean we suddenly get shared libraries
15087 # on systems that don't support them.
15088 lt_prog_compiler_can_build_shared_GCJ=no
15089 enable_shared=no
15090 ;;
15091
15092 sysv4*MP*)
15093 if test -d /usr/nec; then
15094 lt_prog_compiler_pic_GCJ=-Kconform_pic
15095 fi
15096 ;;
15097
15098 hpux*)
15099 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15100 # not for PA HP-UX.
15101 case "$host_cpu" in
15102 hppa*64*|ia64*)
15103 # +Z the default
15104 ;;
15105 *)
15106 lt_prog_compiler_pic_GCJ='-fPIC'
15107 ;;
15108 esac
15109 ;;
15110
15111 *)
15112 lt_prog_compiler_pic_GCJ='-fPIC'
15113 ;;
15114 esac
15115 else
15116 # PORTME Check for flag to pass linker flags through the system compiler.
15117 case $host_os in
15118 aix*)
15119 lt_prog_compiler_wl_GCJ='-Wl,'
15120 if test "$host_cpu" = ia64; then
15121 # AIX 5 now supports IA64 processor
15122 lt_prog_compiler_static_GCJ='-Bstatic'
15123 else
15124 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15125 fi
15126 ;;
15127
15128 mingw* | pw32* | os2*)
15129 # This hack is so that the source file can tell whether it is being
15130 # built for inclusion in a dll (and should export symbols for example).
15131 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15132 ;;
15133
15134 hpux9* | hpux10* | hpux11*)
15135 lt_prog_compiler_wl_GCJ='-Wl,'
15136 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15137 # not for PA HP-UX.
15138 case "$host_cpu" in
15139 hppa*64*|ia64*)
15140 # +Z the default
15141 ;;
15142 *)
15143 lt_prog_compiler_pic_GCJ='+Z'
15144 ;;
15145 esac
15146 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15147 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15148 ;;
15149
15150 irix5* | irix6* | nonstopux*)
15151 lt_prog_compiler_wl_GCJ='-Wl,'
15152 # PIC (with -KPIC) is the default.
15153 lt_prog_compiler_static_GCJ='-non_shared'
15154 ;;
15155
15156 newsos6)
15157 lt_prog_compiler_pic_GCJ='-KPIC'
15158 lt_prog_compiler_static_GCJ='-Bstatic'
15159 ;;
15160
15161 linux*)
15162 case $CC in
15163 icc|ecc)
15164 lt_prog_compiler_wl_GCJ='-Wl,'
15165 lt_prog_compiler_pic_GCJ='-KPIC'
15166 lt_prog_compiler_static_GCJ='-static'
15167 ;;
15168 ccc)
15169 lt_prog_compiler_wl_GCJ='-Wl,'
15170 # All Alpha code is PIC.
15171 lt_prog_compiler_static_GCJ='-non_shared'
15172 ;;
15173 esac
15174 ;;
15175
15176 osf3* | osf4* | osf5*)
15177 lt_prog_compiler_wl_GCJ='-Wl,'
15178 # All OSF/1 code is PIC.
15179 lt_prog_compiler_static_GCJ='-non_shared'
15180 ;;
15181
15182 sco3.2v5*)
15183 lt_prog_compiler_pic_GCJ='-Kpic'
15184 lt_prog_compiler_static_GCJ='-dn'
15185 ;;
15186
15187 solaris*)
15188 lt_prog_compiler_wl_GCJ='-Wl,'
15189 lt_prog_compiler_pic_GCJ='-KPIC'
15190 lt_prog_compiler_static_GCJ='-Bstatic'
15191 ;;
15192
15193 sunos4*)
15194 lt_prog_compiler_wl_GCJ='-Qoption ld '
15195 lt_prog_compiler_pic_GCJ='-PIC'
15196 lt_prog_compiler_static_GCJ='-Bstatic'
15197 ;;
15198
15199 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15200 lt_prog_compiler_wl_GCJ='-Wl,'
15201 lt_prog_compiler_pic_GCJ='-KPIC'
15202 lt_prog_compiler_static_GCJ='-Bstatic'
15203 ;;
15204
15205 sysv4*MP*)
15206 if test -d /usr/nec ;then
15207 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15208 lt_prog_compiler_static_GCJ='-Bstatic'
15209 fi
15210 ;;
15211
15212 uts4*)
15213 lt_prog_compiler_pic_GCJ='-pic'
15214 lt_prog_compiler_static_GCJ='-Bstatic'
15215 ;;
15216
15217 *)
15218 lt_prog_compiler_can_build_shared_GCJ=no
15219 ;;
15220 esac
15221 fi
15222
15223echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15224echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15225
15226#
15227# Check to make sure the PIC flag actually works.
15228#
15229if test -n "$lt_prog_compiler_pic_GCJ"; then
15230 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15231echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15232if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15233 echo $ECHO_N "(cached) $ECHO_C" >&6
15234else
15235 lt_prog_compiler_pic_works_GCJ=no
15236 ac_outfile=conftest.$ac_objext
15237 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15238 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15239 # Insert the option either (1) after the last *FLAGS variable, or
15240 # (2) before a word containing "conftest.", or (3) at the end.
15241 # Note that $ac_compile itself does not contain backslashes and begins
15242 # with a dollar sign (not a hyphen), so the echo should work correctly.
15243 # The option is referenced via a variable to avoid confusing sed.
15244 lt_compile=`echo "$ac_compile" | $SED \
15245 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15246 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15247 -e 's:$: $lt_compiler_flag:'`
John Criswellc764fbc2003-09-06 15:17:13 +000015248 (eval echo "\"\$as_me:15248: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000015249 (eval "$lt_compile" 2>conftest.err)
15250 ac_status=$?
15251 cat conftest.err >&5
John Criswellc764fbc2003-09-06 15:17:13 +000015252 echo "$as_me:15252: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000015253 if (exit $ac_status) && test -s "$ac_outfile"; then
15254 # The compiler can only warn and ignore the option if not recognized
15255 # So say no if there are warnings
15256 if test ! -s conftest.err; then
15257 lt_prog_compiler_pic_works_GCJ=yes
15258 fi
15259 fi
15260 $rm conftest*
15261
15262fi
15263echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15264echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15265
15266if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15267 case $lt_prog_compiler_pic_GCJ in
15268 "" | " "*) ;;
15269 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15270 esac
15271else
15272 lt_prog_compiler_pic_GCJ=
15273 lt_prog_compiler_can_build_shared_GCJ=no
15274fi
15275
15276fi
15277case "$host_os" in
15278 # For platforms which do not support PIC, -DPIC is meaningless:
15279 *djgpp*)
15280 lt_prog_compiler_pic_GCJ=
15281 ;;
15282 *)
15283 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15284 ;;
15285esac
15286
15287echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15288echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15289if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15290 echo $ECHO_N "(cached) $ECHO_C" >&6
15291else
15292 lt_cv_prog_compiler_c_o_GCJ=no
15293 $rm -r conftest 2>/dev/null
15294 mkdir conftest
15295 cd conftest
15296 mkdir out
15297 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15298
15299 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
15300 # that will create temporary files in the current directory regardless of
15301 # the output directory. Thus, making CWD read-only will cause this test
15302 # to fail, enabling locking or at least warning the user not to do parallel
15303 # builds.
15304 chmod -w .
15305
15306 lt_compiler_flag="-o out/conftest2.$ac_objext"
15307 # Insert the option either (1) after the last *FLAGS variable, or
15308 # (2) before a word containing "conftest.", or (3) at the end.
15309 # Note that $ac_compile itself does not contain backslashes and begins
15310 # with a dollar sign (not a hyphen), so the echo should work correctly.
15311 lt_compile=`echo "$ac_compile" | $SED \
15312 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15313 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15314 -e 's:$: $lt_compiler_flag:'`
John Criswellc764fbc2003-09-06 15:17:13 +000015315 (eval echo "\"\$as_me:15315: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000015316 (eval "$lt_compile" 2>out/conftest.err)
15317 ac_status=$?
15318 cat out/conftest.err >&5
John Criswellc764fbc2003-09-06 15:17:13 +000015319 echo "$as_me:15319: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000015320 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15321 then
15322 # The compiler can only warn and ignore the option if not recognized
15323 # So say no if there are warnings
15324 if test ! -s out/conftest.err; then
15325 lt_cv_prog_compiler_c_o_GCJ=yes
15326 fi
15327 fi
15328 chmod u+w .
15329 $rm conftest* out/*
15330 rmdir out
15331 cd ..
15332 rmdir conftest
15333 $rm conftest*
15334
15335fi
15336echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15337echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15338
15339
15340hard_links="nottested"
15341if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15342 # do not overwrite the value of need_locks provided by the user
15343 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15344echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15345 hard_links=yes
15346 $rm conftest*
15347 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15348 touch conftest.a
15349 ln conftest.a conftest.b 2>&5 || hard_links=no
15350 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15351 echo "$as_me:$LINENO: result: $hard_links" >&5
15352echo "${ECHO_T}$hard_links" >&6
15353 if test "$hard_links" = no; then
15354 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15355echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15356 need_locks=warn
15357 fi
15358else
15359 need_locks=no
15360fi
15361
15362echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15363echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15364
15365 runpath_var=
15366 allow_undefined_flag_GCJ=
15367 enable_shared_with_static_runtimes_GCJ=no
15368 archive_cmds_GCJ=
15369 archive_expsym_cmds_GCJ=
15370 old_archive_From_new_cmds_GCJ=
15371 old_archive_from_expsyms_cmds_GCJ=
15372 export_dynamic_flag_spec_GCJ=
15373 whole_archive_flag_spec_GCJ=
15374 thread_safe_flag_spec_GCJ=
15375 hardcode_libdir_flag_spec_GCJ=
15376 hardcode_libdir_flag_spec_ld_GCJ=
15377 hardcode_libdir_separator_GCJ=
15378 hardcode_direct_GCJ=no
15379 hardcode_minus_L_GCJ=no
15380 hardcode_shlibpath_var_GCJ=unsupported
15381 link_all_deplibs_GCJ=unknown
15382 hardcode_automatic_GCJ=no
15383 module_cmds_GCJ=
15384 module_expsym_cmds_GCJ=
15385 always_export_symbols_GCJ=no
15386 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15387 # include_expsyms should be a list of space-separated symbols to be *always*
15388 # included in the symbol list
15389 include_expsyms_GCJ=
15390 # exclude_expsyms can be an extended regexp of symbols to exclude
15391 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15392 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15393 # as well as any symbol that contains `d'.
15394 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15395 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15396 # platforms (ab)use it in PIC code, but their linkers get confused if
15397 # the symbol is explicitly referenced. Since portable code cannot
15398 # rely on this symbol name, it's probably fine to never include it in
15399 # preloaded symbol tables.
15400 extract_expsyms_cmds=
15401
15402 case $host_os in
15403 cygwin* | mingw* | pw32*)
15404 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15405 # When not using gcc, we currently assume that we are using
15406 # Microsoft Visual C++.
15407 if test "$GCC" != yes; then
15408 with_gnu_ld=no
15409 fi
15410 ;;
15411 openbsd*)
15412 with_gnu_ld=no
15413 ;;
15414 esac
15415
15416 ld_shlibs_GCJ=yes
15417 if test "$with_gnu_ld" = yes; then
15418 # If archive_cmds runs LD, not CC, wlarc should be empty
15419 wlarc='${wl}'
15420
15421 # See if GNU ld supports shared libraries.
15422 case $host_os in
15423 aix3* | aix4* | aix5*)
15424 # On AIX/PPC, the GNU linker is very broken
15425 if test "$host_cpu" != ia64; then
15426 ld_shlibs_GCJ=no
15427 cat <<EOF 1>&2
15428
15429*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15430*** to be unable to reliably create shared libraries on AIX.
15431*** Therefore, libtool is disabling shared libraries support. If you
15432*** really care for shared libraries, you may want to modify your PATH
15433*** so that a non-GNU linker is found, and then restart.
15434
15435EOF
15436 fi
15437 ;;
15438
15439 amigaos*)
15440 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)'
15441 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15442 hardcode_minus_L_GCJ=yes
15443
15444 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15445 # that the semantics of dynamic libraries on AmigaOS, at least up
15446 # to version 4, is to share data among multiple programs linked
15447 # with the same dynamic library. Since this doesn't match the
15448 # behavior of shared libraries on other platforms, we can't use
15449 # them.
15450 ld_shlibs_GCJ=no
15451 ;;
15452
15453 beos*)
15454 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15455 allow_undefined_flag_GCJ=unsupported
15456 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15457 # support --undefined. This deserves some investigation. FIXME
15458 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15459 else
15460 ld_shlibs_GCJ=no
15461 fi
15462 ;;
15463
15464 cygwin* | mingw* | pw32*)
15465 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15466 # as there is no search path for DLLs.
15467 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15468 allow_undefined_flag_GCJ=unsupported
15469 always_export_symbols_GCJ=no
15470 enable_shared_with_static_runtimes_GCJ=yes
15471 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15472
15473 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15474 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15475 # If the export-symbols file already is a .def file (1st line
15476 # is EXPORTS), use it as is; otherwise, prepend...
15477 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15478 cp $export_symbols $output_objdir/$soname.def;
15479 else
15480 echo EXPORTS > $output_objdir/$soname.def;
15481 cat $export_symbols >> $output_objdir/$soname.def;
15482 fi~
15483 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15484 else
15485 ld_shlibs=no
15486 fi
15487 ;;
15488
15489 netbsd*)
15490 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15491 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15492 wlarc=
15493 else
15494 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15495 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15496 fi
15497 ;;
15498
15499 solaris* | sysv5*)
15500 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15501 ld_shlibs_GCJ=no
15502 cat <<EOF 1>&2
15503
15504*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15505*** create shared libraries on Solaris systems. Therefore, libtool
15506*** is disabling shared libraries support. We urge you to upgrade GNU
15507*** binutils to release 2.9.1 or newer. Another option is to modify
15508*** your PATH or compiler configuration so that the native linker is
15509*** used, and then restart.
15510
15511EOF
15512 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15513 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15514 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15515 else
15516 ld_shlibs_GCJ=no
15517 fi
15518 ;;
15519
15520 sunos4*)
15521 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15522 wlarc=
15523 hardcode_direct_GCJ=yes
15524 hardcode_shlibpath_var_GCJ=no
15525 ;;
15526
15527 *)
15528 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15529 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15530 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15531 else
15532 ld_shlibs_GCJ=no
15533 fi
15534 ;;
15535 esac
15536
15537 if test "$ld_shlibs_GCJ" = yes; then
15538 runpath_var=LD_RUN_PATH
15539 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15540 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15541 # ancient GNU ld didn't support --whole-archive et. al.
15542 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15543 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15544 else
15545 whole_archive_flag_spec_GCJ=
15546 fi
15547 fi
15548 else
15549 # PORTME fill in a description of your system's linker (not GNU ld)
15550 case $host_os in
15551 aix3*)
15552 allow_undefined_flag_GCJ=unsupported
15553 always_export_symbols_GCJ=yes
15554 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'
15555 # Note: this linker hardcodes the directories in LIBPATH if there
15556 # are no directories specified by -L.
15557 hardcode_minus_L_GCJ=yes
15558 if test "$GCC" = yes && test -z "$link_static_flag"; then
15559 # Neither direct hardcoding nor static linking is supported with a
15560 # broken collect2.
15561 hardcode_direct_GCJ=unsupported
15562 fi
15563 ;;
15564
15565 aix4* | aix5*)
15566 if test "$host_cpu" = ia64; then
15567 # On IA64, the linker does run time linking by default, so we don't
15568 # have to do anything special.
15569 aix_use_runtimelinking=no
15570 exp_sym_flag='-Bexport'
15571 no_entry_flag=""
15572 else
15573 # If we're using GNU nm, then we don't want the "-C" option.
15574 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15575 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15576 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'
15577 else
15578 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'
15579 fi
15580 aix_use_runtimelinking=no
15581
15582 # Test if we are trying to use run time linking or normal
15583 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15584 # need to do runtime linking.
15585 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15586 for ld_flag in $LDFLAGS; do
15587 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15588 aix_use_runtimelinking=yes
15589 break
15590 fi
15591 done
15592 esac
15593
15594 exp_sym_flag='-bexport'
15595 no_entry_flag='-bnoentry'
15596 fi
15597
15598 # When large executables or shared objects are built, AIX ld can
15599 # have problems creating the table of contents. If linking a library
15600 # or program results in "error TOC overflow" add -mminimal-toc to
15601 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15602 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15603
15604 archive_cmds_GCJ=''
15605 hardcode_direct_GCJ=yes
15606 hardcode_libdir_separator_GCJ=':'
15607 link_all_deplibs_GCJ=yes
15608
15609 if test "$GCC" = yes; then
15610 case $host_os in aix4.012|aix4.012.*)
15611 # We only want to do this on AIX 4.2 and lower, the check
15612 # below for broken collect2 doesn't work under 4.3+
15613 collect2name=`${CC} -print-prog-name=collect2`
15614 if test -f "$collect2name" && \
15615 strings "$collect2name" | grep resolve_lib_name >/dev/null
15616 then
15617 # We have reworked collect2
15618 hardcode_direct_GCJ=yes
15619 else
15620 # We have old collect2
15621 hardcode_direct_GCJ=unsupported
15622 # It fails to find uninstalled libraries when the uninstalled
15623 # path is not listed in the libpath. Setting hardcode_minus_L
15624 # to unsupported forces relinking
15625 hardcode_minus_L_GCJ=yes
15626 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15627 hardcode_libdir_separator_GCJ=
15628 fi
15629 esac
15630 shared_flag='-shared'
15631 else
15632 # not using gcc
15633 if test "$host_cpu" = ia64; then
15634 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15635 # chokes on -Wl,-G. The following line is correct:
15636 shared_flag='-G'
15637 else
15638 if test "$aix_use_runtimelinking" = yes; then
15639 shared_flag='${wl}-G'
15640 else
15641 shared_flag='${wl}-bM:SRE'
15642 fi
15643 fi
15644 fi
15645
15646 # It seems that -bexpall does not export symbols beginning with
15647 # underscore (_), so it is better to generate a list of symbols to export.
15648 always_export_symbols_GCJ=yes
15649 if test "$aix_use_runtimelinking" = yes; then
15650 # Warning - without using the other runtime loading flags (-brtl),
15651 # -berok will link without error, but may produce a broken library.
15652 allow_undefined_flag_GCJ='-berok'
15653 # Determine the default libpath from the value encoded in an empty executable.
15654 cat >conftest.$ac_ext <<_ACEOF
15655#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000015656/* confdefs.h. */
15657_ACEOF
15658cat confdefs.h >>conftest.$ac_ext
15659cat >>conftest.$ac_ext <<_ACEOF
15660/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000015661
John Criswell47fdd832003-07-14 16:52:07 +000015662int
15663main ()
15664{
15665
15666 ;
15667 return 0;
15668}
15669_ACEOF
15670rm -f conftest.$ac_objext conftest$ac_exeext
15671if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15672 (eval $ac_link) 2>&5
15673 ac_status=$?
15674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15675 (exit $ac_status); } &&
15676 { ac_try='test -s conftest$ac_exeext'
15677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15678 (eval $ac_try) 2>&5
15679 ac_status=$?
15680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15681 (exit $ac_status); }; }; then
15682
15683aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15684}'`
15685# Check for a 64-bit object if we didn't find anything.
15686if 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; }
15687}'`; fi
15688else
15689 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000015690sed 's/^/| /' conftest.$ac_ext >&5
15691
John Criswell47fdd832003-07-14 16:52:07 +000015692fi
15693rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15694if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15695
15696 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15697 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"
15698 else
15699 if test "$host_cpu" = ia64; then
15700 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
15701 allow_undefined_flag_GCJ="-z nodefs"
15702 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"
15703 else
15704 # Determine the default libpath from the value encoded in an empty executable.
15705 cat >conftest.$ac_ext <<_ACEOF
15706#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000015707/* confdefs.h. */
15708_ACEOF
15709cat confdefs.h >>conftest.$ac_ext
15710cat >>conftest.$ac_ext <<_ACEOF
15711/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000015712
John Criswell47fdd832003-07-14 16:52:07 +000015713int
15714main ()
15715{
15716
15717 ;
15718 return 0;
15719}
15720_ACEOF
15721rm -f conftest.$ac_objext conftest$ac_exeext
15722if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15723 (eval $ac_link) 2>&5
15724 ac_status=$?
15725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15726 (exit $ac_status); } &&
15727 { ac_try='test -s conftest$ac_exeext'
15728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15729 (eval $ac_try) 2>&5
15730 ac_status=$?
15731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15732 (exit $ac_status); }; }; then
15733
15734aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15735}'`
15736# Check for a 64-bit object if we didn't find anything.
15737if 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; }
15738}'`; fi
15739else
15740 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000015741sed 's/^/| /' conftest.$ac_ext >&5
15742
John Criswell47fdd832003-07-14 16:52:07 +000015743fi
15744rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15745if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15746
15747 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15748 # Warning - without using the other run time loading flags,
15749 # -berok will link without error, but may produce a broken library.
15750 no_undefined_flag_GCJ=' ${wl}-bernotok'
15751 allow_undefined_flag_GCJ=' ${wl}-berok'
15752 # -bexpall does not export symbols beginning with underscore (_)
15753 always_export_symbols_GCJ=yes
15754 # Exported symbols can be pulled into shared objects from archives
15755 whole_archive_flag_spec_GCJ=' '
15756 archive_cmds_need_lc_GCJ=yes
15757 # This is similar to how AIX traditionally builds it's shared libraries.
15758 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'
15759 fi
15760 fi
15761 ;;
15762
15763 amigaos*)
15764 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)'
15765 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15766 hardcode_minus_L_GCJ=yes
15767 # see comment about different semantics on the GNU ld section
15768 ld_shlibs_GCJ=no
15769 ;;
15770
15771 bsdi4*)
15772 export_dynamic_flag_spec_GCJ=-rdynamic
15773 ;;
15774
15775 cygwin* | mingw* | pw32*)
15776 # When not using gcc, we currently assume that we are using
15777 # Microsoft Visual C++.
15778 # hardcode_libdir_flag_spec is actually meaningless, as there is
15779 # no search path for DLLs.
15780 hardcode_libdir_flag_spec_GCJ=' '
15781 allow_undefined_flag_GCJ=unsupported
15782 # Tell ltmain to make .lib files, not .a files.
15783 libext=lib
15784 # Tell ltmain to make .dll files, not .so files.
15785 shrext=".dll"
15786 # FIXME: Setting linknames here is a bad hack.
15787 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15788 # The linker will automatically build a .lib file if we build a DLL.
15789 old_archive_From_new_cmds_GCJ='true'
15790 # FIXME: Should let the user specify the lib program.
15791 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
15792 fix_srcfile_path='`cygpath -w "$srcfile"`'
15793 enable_shared_with_static_runtimes_GCJ=yes
15794 ;;
15795
15796 darwin* | rhapsody*)
15797 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
15798 archive_cmds_need_lc_GCJ=no
15799 case "$host_os" in
15800 rhapsody* | darwin1.[012])
15801 allow_undefined_flag_GCJ='-undefined suppress'
15802 ;;
15803 *) # Darwin 1.3 on
15804 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15805 ;;
15806 esac
15807 # FIXME: Relying on posixy $() will cause problems for
15808 # cross-compilation, but unfortunately the echo tests do not
15809 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
15810 # `"' quotes if we put them in here... so don't!
15811 lt_int_apple_cc_single_mod=no
15812 output_verbose_link_cmd='echo'
15813 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15814 lt_int_apple_cc_single_mod=yes
15815 fi
15816 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15817 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15818 else
15819 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'
15820 fi
15821 module_cmds_GCJ='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
15822 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15823 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15824 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}'
15825 else
15826 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}'
15827 fi
15828 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}'
15829 hardcode_direct_GCJ=no
15830 hardcode_automatic_GCJ=yes
15831 hardcode_shlibpath_var_GCJ=unsupported
15832 whole_archive_flag_spec_GCJ='-all_load $convenience'
15833 link_all_deplibs_GCJ=yes
15834 fi
15835 ;;
15836
15837 dgux*)
15838 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15839 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15840 hardcode_shlibpath_var_GCJ=no
15841 ;;
15842
15843 freebsd1*)
15844 ld_shlibs_GCJ=no
15845 ;;
15846
15847 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15848 # support. Future versions do this automatically, but an explicit c++rt0.o
15849 # does not break anything, and helps significantly (at the cost of a little
15850 # extra space).
15851 freebsd2.2*)
15852 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15853 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15854 hardcode_direct_GCJ=yes
15855 hardcode_shlibpath_var_GCJ=no
15856 ;;
15857
15858 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15859 freebsd2*)
15860 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15861 hardcode_direct_GCJ=yes
15862 hardcode_minus_L_GCJ=yes
15863 hardcode_shlibpath_var_GCJ=no
15864 ;;
15865
15866 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15867 freebsd*)
15868 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15869 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15870 hardcode_direct_GCJ=yes
15871 hardcode_shlibpath_var_GCJ=no
15872 ;;
15873
15874 hpux9*)
15875 if test "$GCC" = yes; then
15876 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'
15877 else
15878 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'
15879 fi
15880 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15881 hardcode_libdir_separator_GCJ=:
15882 hardcode_direct_GCJ=yes
15883
15884 # hardcode_minus_L: Not really in the search PATH,
15885 # but as the default location of the library.
15886 hardcode_minus_L_GCJ=yes
15887 export_dynamic_flag_spec_GCJ='${wl}-E'
15888 ;;
15889
15890 hpux10* | hpux11*)
15891 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15892 case "$host_cpu" in
15893 hppa*64*|ia64*)
15894 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15895 ;;
15896 *)
15897 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15898 ;;
15899 esac
15900 else
15901 case "$host_cpu" in
15902 hppa*64*|ia64*)
15903 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15904 ;;
15905 *)
15906 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15907 ;;
15908 esac
15909 fi
15910 if test "$with_gnu_ld" = no; then
15911 case "$host_cpu" in
15912 hppa*64*)
15913 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15914 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
15915 hardcode_libdir_separator_GCJ=:
15916 hardcode_direct_GCJ=no
15917 hardcode_shlibpath_var_GCJ=no
15918 ;;
15919 ia64*)
15920 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15921 hardcode_direct_GCJ=no
15922 hardcode_shlibpath_var_GCJ=no
15923
15924 # hardcode_minus_L: Not really in the search PATH,
15925 # but as the default location of the library.
15926 hardcode_minus_L_GCJ=yes
15927 ;;
15928 *)
15929 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15930 hardcode_libdir_separator_GCJ=:
15931 hardcode_direct_GCJ=yes
15932 export_dynamic_flag_spec_GCJ='${wl}-E'
15933
15934 # hardcode_minus_L: Not really in the search PATH,
15935 # but as the default location of the library.
15936 hardcode_minus_L_GCJ=yes
15937 ;;
15938 esac
15939 fi
15940 ;;
15941
15942 irix5* | irix6* | nonstopux*)
15943 if test "$GCC" = yes; then
15944 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'
15945 else
15946 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'
15947 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
15948 fi
15949 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15950 hardcode_libdir_separator_GCJ=:
15951 link_all_deplibs_GCJ=yes
15952 ;;
15953
15954 netbsd*)
15955 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15956 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15957 else
15958 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15959 fi
15960 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15961 hardcode_direct_GCJ=yes
15962 hardcode_shlibpath_var_GCJ=no
15963 ;;
15964
15965 newsos6)
15966 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15967 hardcode_direct_GCJ=yes
15968 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15969 hardcode_libdir_separator_GCJ=:
15970 hardcode_shlibpath_var_GCJ=no
15971 ;;
15972
15973 openbsd*)
15974 hardcode_direct_GCJ=yes
15975 hardcode_shlibpath_var_GCJ=no
15976 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15977 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15978 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15979 export_dynamic_flag_spec_GCJ='${wl}-E'
15980 else
15981 case $host_os in
15982 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15983 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15984 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15985 ;;
15986 *)
15987 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15988 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15989 ;;
15990 esac
15991 fi
15992 ;;
15993
15994 os2*)
15995 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15996 hardcode_minus_L_GCJ=yes
15997 allow_undefined_flag_GCJ=unsupported
15998 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'
15999 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16000 ;;
16001
16002 osf3*)
16003 if test "$GCC" = yes; then
16004 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16005 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'
16006 else
16007 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16008 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'
16009 fi
16010 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16011 hardcode_libdir_separator_GCJ=:
16012 ;;
16013
16014 osf4* | osf5*) # as osf3* with the addition of -msym flag
16015 if test "$GCC" = yes; then
16016 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16017 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'
16018 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16019 else
16020 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16021 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'
16022 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~
16023 $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'
16024
16025 # Both c and cxx compiler support -rpath directly
16026 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16027 fi
16028 hardcode_libdir_separator_GCJ=:
16029 ;;
16030
16031 sco3.2v5*)
16032 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16033 hardcode_shlibpath_var_GCJ=no
16034 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16035 runpath_var=LD_RUN_PATH
16036 hardcode_runpath_var=yes
16037 ;;
16038
16039 solaris*)
16040 no_undefined_flag_GCJ=' -z text'
16041 if test "$GCC" = yes; then
16042 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16043 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16044 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16045 else
16046 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16047 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16048 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16049 fi
16050 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16051 hardcode_shlibpath_var_GCJ=no
16052 case $host_os in
16053 solaris2.[0-5] | solaris2.[0-5].*) ;;
16054 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16055 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16056 esac
16057 link_all_deplibs_GCJ=yes
16058 ;;
16059
16060 sunos4*)
16061 if test "x$host_vendor" = xsequent; then
16062 # Use $CC to link under sequent, because it throws in some extra .o
16063 # files that make .init and .fini sections work.
16064 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16065 else
16066 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16067 fi
16068 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16069 hardcode_direct_GCJ=yes
16070 hardcode_minus_L_GCJ=yes
16071 hardcode_shlibpath_var_GCJ=no
16072 ;;
16073
16074 sysv4)
16075 case $host_vendor in
16076 sni)
16077 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16078 hardcode_direct_GCJ=yes # is this really true???
16079 ;;
16080 siemens)
16081 ## LD is ld it makes a PLAMLIB
16082 ## CC just makes a GrossModule.
16083 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16084 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16085 hardcode_direct_GCJ=no
16086 ;;
16087 motorola)
16088 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16089 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16090 ;;
16091 esac
16092 runpath_var='LD_RUN_PATH'
16093 hardcode_shlibpath_var_GCJ=no
16094 ;;
16095
16096 sysv4.3*)
16097 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16098 hardcode_shlibpath_var_GCJ=no
16099 export_dynamic_flag_spec_GCJ='-Bexport'
16100 ;;
16101
16102 sysv4*MP*)
16103 if test -d /usr/nec; then
16104 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16105 hardcode_shlibpath_var_GCJ=no
16106 runpath_var=LD_RUN_PATH
16107 hardcode_runpath_var=yes
16108 ld_shlibs_GCJ=yes
16109 fi
16110 ;;
16111
16112 sysv4.2uw2*)
16113 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16114 hardcode_direct_GCJ=yes
16115 hardcode_minus_L_GCJ=no
16116 hardcode_shlibpath_var_GCJ=no
16117 hardcode_runpath_var=yes
16118 runpath_var=LD_RUN_PATH
16119 ;;
16120
16121 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16122 no_undefined_flag_GCJ='${wl}-z ${wl}text'
16123 if test "$GCC" = yes; then
16124 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16125 else
16126 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16127 fi
16128 runpath_var='LD_RUN_PATH'
16129 hardcode_shlibpath_var_GCJ=no
16130 ;;
16131
16132 sysv5*)
16133 no_undefined_flag_GCJ=' -z text'
16134 # $CC -shared without GNU ld will not create a library from C++
16135 # object files and a static libstdc++, better avoid it by now
16136 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16137 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16138 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16139 hardcode_libdir_flag_spec_GCJ=
16140 hardcode_shlibpath_var_GCJ=no
16141 runpath_var='LD_RUN_PATH'
16142 ;;
16143
16144 uts4*)
16145 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16146 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16147 hardcode_shlibpath_var_GCJ=no
16148 ;;
16149
16150 *)
16151 ld_shlibs_GCJ=no
16152 ;;
16153 esac
16154 fi
16155
16156echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16157echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16158test "$ld_shlibs_GCJ" = no && can_build_shared=no
16159
16160variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16161if test "$GCC" = yes; then
16162 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16163fi
16164
16165#
16166# Do we need to explicitly link libc?
16167#
16168case "x$archive_cmds_need_lc_GCJ" in
16169x|xyes)
16170 # Assume -lc should be added
16171 archive_cmds_need_lc_GCJ=yes
16172
16173 if test "$enable_shared" = yes && test "$GCC" = yes; then
16174 case $archive_cmds_GCJ in
16175 *'~'*)
16176 # FIXME: we may have to deal with multi-command sequences.
16177 ;;
16178 '$CC '*)
16179 # Test whether the compiler implicitly links with -lc since on some
16180 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16181 # to ld, don't add -lc before -lgcc.
16182 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16183echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16184 $rm conftest*
16185 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16186
16187 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16188 (eval $ac_compile) 2>&5
16189 ac_status=$?
16190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16191 (exit $ac_status); } 2>conftest.err; then
16192 soname=conftest
16193 lib=conftest
16194 libobjs=conftest.$ac_objext
16195 deplibs=
16196 wl=$lt_prog_compiler_wl_GCJ
16197 compiler_flags=-v
16198 linker_flags=-v
16199 verstring=
16200 output_objdir=.
16201 libname=conftest
16202 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16203 allow_undefined_flag_GCJ=
16204 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16205 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16206 ac_status=$?
16207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16208 (exit $ac_status); }
16209 then
16210 archive_cmds_need_lc_GCJ=no
16211 else
16212 archive_cmds_need_lc_GCJ=yes
16213 fi
16214 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16215 else
16216 cat conftest.err 1>&5
16217 fi
16218 $rm conftest*
16219 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16220echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16221 ;;
16222 esac
16223 fi
16224 ;;
16225esac
16226
16227echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16228echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16229hardcode_action_GCJ=
16230if test -n "$hardcode_libdir_flag_spec_GCJ" || \
16231 test -n "$runpath_var GCJ" || \
16232 test "X$hardcode_automatic_GCJ"="Xyes" ; then
16233
16234 # We can hardcode non-existant directories.
16235 if test "$hardcode_direct_GCJ" != no &&
16236 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16237 # have to relink, otherwise we might link with an installed library
16238 # when we should be linking with a yet-to-be-installed one
16239 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
16240 test "$hardcode_minus_L_GCJ" != no; then
16241 # Linking always hardcodes the temporary library directory.
16242 hardcode_action_GCJ=relink
16243 else
16244 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16245 hardcode_action_GCJ=immediate
16246 fi
16247else
16248 # We cannot hardcode anything, or else we can only hardcode existing
16249 # directories.
16250 hardcode_action_GCJ=unsupported
16251fi
16252echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
16253echo "${ECHO_T}$hardcode_action_GCJ" >&6
16254
16255if test "$hardcode_action_GCJ" = relink; then
16256 # Fast installation is not supported
16257 enable_fast_install=no
16258elif test "$shlibpath_overrides_runpath" = yes ||
16259 test "$enable_shared" = no; then
16260 # Fast installation is not necessary
16261 enable_fast_install=needless
16262fi
16263
16264striplib=
16265old_striplib=
16266echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16267echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
16268if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16269 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16270 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16271 echo "$as_me:$LINENO: result: yes" >&5
16272echo "${ECHO_T}yes" >&6
16273else
16274# FIXME - insert some real tests, host_os isn't really good enough
16275 case $host_os in
16276 darwin*)
16277 if test -n "$STRIP" ; then
16278 striplib="$STRIP -x"
16279 echo "$as_me:$LINENO: result: yes" >&5
16280echo "${ECHO_T}yes" >&6
16281 else
16282 echo "$as_me:$LINENO: result: no" >&5
16283echo "${ECHO_T}no" >&6
16284fi
16285 ;;
16286 *)
16287 echo "$as_me:$LINENO: result: no" >&5
16288echo "${ECHO_T}no" >&6
16289 ;;
16290 esac
16291fi
16292
16293echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16294echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16295library_names_spec=
16296libname_spec='lib$name'
16297soname_spec=
16298shrext=".so"
16299postinstall_cmds=
16300postuninstall_cmds=
16301finish_cmds=
16302finish_eval=
16303shlibpath_var=
16304shlibpath_overrides_runpath=unknown
16305version_type=none
16306dynamic_linker="$host_os ld.so"
16307sys_lib_dlsearch_path_spec="/lib /usr/lib"
16308if test "$GCC" = yes; then
16309 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16310 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16311 # if the path contains ";" then we assume it to be the separator
16312 # otherwise default to the standard path separator (i.e. ":") - it is
16313 # assumed that no part of a normal pathname contains ";" but that should
16314 # okay in the real world where ";" in dirpaths is itself problematic.
16315 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16316 else
16317 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16318 fi
16319else
16320 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16321fi
16322need_lib_prefix=unknown
16323hardcode_into_libs=no
16324
16325# when you set need_version to no, make sure it does not cause -set_version
16326# flags to be left without arguments
16327need_version=unknown
16328
16329case $host_os in
16330aix3*)
16331 version_type=linux
16332 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16333 shlibpath_var=LIBPATH
16334
16335 # AIX 3 has no versioning support, so we append a major version to the name.
16336 soname_spec='${libname}${release}${shared_ext}$major'
16337 ;;
16338
16339aix4* | aix5*)
16340 version_type=linux
16341 need_lib_prefix=no
16342 need_version=no
16343 hardcode_into_libs=yes
16344 if test "$host_cpu" = ia64; then
16345 # AIX 5 supports IA64
16346 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16347 shlibpath_var=LD_LIBRARY_PATH
16348 else
16349 # With GCC up to 2.95.x, collect2 would create an import file
16350 # for dependence libraries. The import file would start with
16351 # the line `#! .'. This would cause the generated library to
16352 # depend on `.', always an invalid library. This was fixed in
16353 # development snapshots of GCC prior to 3.0.
16354 case $host_os in
16355 aix4 | aix4.[01] | aix4.[01].*)
16356 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16357 echo ' yes '
16358 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16359 :
16360 else
16361 can_build_shared=no
16362 fi
16363 ;;
16364 esac
16365 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16366 # soname into executable. Probably we can add versioning support to
16367 # collect2, so additional links can be useful in future.
16368 if test "$aix_use_runtimelinking" = yes; then
16369 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16370 # instead of lib<name>.a to let people know that these are not
16371 # typical AIX shared libraries.
16372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16373 else
16374 # We preserve .a as extension for shared libraries through AIX4.2
16375 # and later when we are not doing run time linking.
16376 library_names_spec='${libname}${release}.a $libname.a'
16377 soname_spec='${libname}${release}${shared_ext}$major'
16378 fi
16379 shlibpath_var=LIBPATH
16380 fi
16381 ;;
16382
16383amigaos*)
16384 library_names_spec='$libname.ixlibrary $libname.a'
16385 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16386 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'
16387 ;;
16388
16389beos*)
16390 library_names_spec='${libname}${shared_ext}'
16391 dynamic_linker="$host_os ld.so"
16392 shlibpath_var=LIBRARY_PATH
16393 ;;
16394
16395bsdi4*)
16396 version_type=linux
16397 need_version=no
16398 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16399 soname_spec='${libname}${release}${shared_ext}$major'
16400 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16401 shlibpath_var=LD_LIBRARY_PATH
16402 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16403 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16404 # the default ld.so.conf also contains /usr/contrib/lib and
16405 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16406 # libtool to hard-code these into programs
16407 ;;
16408
16409cygwin* | mingw* | pw32*)
16410 version_type=windows
16411 shrext=".dll"
16412 need_version=no
16413 need_lib_prefix=no
16414
16415 case $GCC,$host_os in
16416 yes,cygwin* | yes,mingw* | yes,pw32*)
16417 library_names_spec='$libname.dll.a'
16418 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16419 postinstall_cmds='base_file=`basename \${file}`~
16420 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16421 dldir=$destdir/`dirname \$dlpath`~
16422 test -d \$dldir || mkdir -p \$dldir~
16423 $install_prog $dir/$dlname \$dldir/$dlname'
16424 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16425 dlpath=$dir/\$dldll~
16426 $rm \$dlpath'
16427 shlibpath_overrides_runpath=yes
16428
16429 case $host_os in
16430 cygwin*)
16431 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16432 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16433 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
16434 ;;
16435 mingw*)
16436 # MinGW DLLs use traditional 'lib' prefix
16437 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16438 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16439 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16440 # It is most probably a Windows format PATH printed by
16441 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16442 # path with ; separators, and with drive letters. We can handle the
16443 # drive letters (cygwin fileutils understands them), so leave them,
16444 # especially as we might pass files found there to a mingw objdump,
16445 # which wouldn't understand a cygwinified path. Ahh.
16446 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16447 else
16448 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16449 fi
16450 ;;
16451 pw32*)
16452 # pw32 DLLs use 'pw' prefix rather than 'lib'
16453 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16454 ;;
16455 esac
16456 ;;
16457
16458 *)
16459 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16460 ;;
16461 esac
16462 dynamic_linker='Win32 ld.exe'
16463 # FIXME: first we should search . and the directory the executable is in
16464 shlibpath_var=PATH
16465 ;;
16466
16467darwin* | rhapsody*)
16468 dynamic_linker="$host_os dyld"
16469 version_type=darwin
16470 need_lib_prefix=no
16471 need_version=no
16472 # FIXME: Relying on posixy $() will cause problems for
16473 # cross-compilation, but unfortunately the echo tests do not
16474 # yet detect zsh echo's removal of \ escapes.
16475 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16476 soname_spec='${libname}${release}${major}$shared_ext'
16477 shlibpath_overrides_runpath=yes
16478 shlibpath_var=DYLD_LIBRARY_PATH
16479 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
16480 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16481 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
16482 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"`
16483 fi
16484 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16485 ;;
16486
16487dgux*)
16488 version_type=linux
16489 need_lib_prefix=no
16490 need_version=no
16491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16492 soname_spec='${libname}${release}${shared_ext}$major'
16493 shlibpath_var=LD_LIBRARY_PATH
16494 ;;
16495
16496freebsd1*)
16497 dynamic_linker=no
16498 ;;
16499
16500freebsd*)
16501 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16502 version_type=freebsd-$objformat
16503 case $version_type in
16504 freebsd-elf*)
16505 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16506 need_version=no
16507 need_lib_prefix=no
16508 ;;
16509 freebsd-*)
16510 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16511 need_version=yes
16512 ;;
16513 esac
16514 shlibpath_var=LD_LIBRARY_PATH
16515 case $host_os in
16516 freebsd2*)
16517 shlibpath_overrides_runpath=yes
16518 ;;
16519 freebsd3.01* | freebsdelf3.01*)
16520 shlibpath_overrides_runpath=yes
16521 hardcode_into_libs=yes
16522 ;;
16523 *) # from 3.2 on
16524 shlibpath_overrides_runpath=no
16525 hardcode_into_libs=yes
16526 ;;
16527 esac
16528 ;;
16529
16530gnu*)
16531 version_type=linux
16532 need_lib_prefix=no
16533 need_version=no
16534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16535 soname_spec='${libname}${release}${shared_ext}$major'
16536 shlibpath_var=LD_LIBRARY_PATH
16537 hardcode_into_libs=yes
16538 ;;
16539
16540hpux9* | hpux10* | hpux11*)
16541 # Give a soname corresponding to the major version so that dld.sl refuses to
16542 # link against other versions.
16543 version_type=sunos
16544 need_lib_prefix=no
16545 need_version=no
16546 case "$host_cpu" in
16547 ia64*)
16548 shrext='.so'
16549 hardcode_into_libs=yes
16550 dynamic_linker="$host_os dld.so"
16551 shlibpath_var=LD_LIBRARY_PATH
16552 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16554 soname_spec='${libname}${release}${shared_ext}$major'
16555 if test "X$HPUX_IA64_MODE" = X32; then
16556 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16557 else
16558 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16559 fi
16560 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16561 ;;
16562 hppa*64*)
16563 shrext='.sl'
16564 hardcode_into_libs=yes
16565 dynamic_linker="$host_os dld.sl"
16566 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16567 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16568 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16569 soname_spec='${libname}${release}${shared_ext}$major'
16570 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16571 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16572 ;;
16573 *)
16574 shrext='.sl'
16575 dynamic_linker="$host_os dld.sl"
16576 shlibpath_var=SHLIB_PATH
16577 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16578 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16579 soname_spec='${libname}${release}${shared_ext}$major'
16580 ;;
16581 esac
16582 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16583 postinstall_cmds='chmod 555 $lib'
16584 ;;
16585
16586irix5* | irix6* | nonstopux*)
16587 case $host_os in
16588 nonstopux*) version_type=nonstopux ;;
16589 *)
16590 if test "$lt_cv_prog_gnu_ld" = yes; then
16591 version_type=linux
16592 else
16593 version_type=irix
16594 fi ;;
16595 esac
16596 need_lib_prefix=no
16597 need_version=no
16598 soname_spec='${libname}${release}${shared_ext}$major'
16599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16600 case $host_os in
16601 irix5* | nonstopux*)
16602 libsuff= shlibsuff=
16603 ;;
16604 *)
16605 case $LD in # libtool.m4 will add one of these switches to LD
16606 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16607 libsuff= shlibsuff= libmagic=32-bit;;
16608 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16609 libsuff=32 shlibsuff=N32 libmagic=N32;;
16610 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16611 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16612 *) libsuff= shlibsuff= libmagic=never-match;;
16613 esac
16614 ;;
16615 esac
16616 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16617 shlibpath_overrides_runpath=no
16618 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16619 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16620 hardcode_into_libs=yes
16621 ;;
16622
16623# No shared lib support for Linux oldld, aout, or coff.
16624linux*oldld* | linux*aout* | linux*coff*)
16625 dynamic_linker=no
16626 ;;
16627
16628# This must be Linux ELF.
16629linux*)
16630 version_type=linux
16631 need_lib_prefix=no
16632 need_version=no
16633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16634 soname_spec='${libname}${release}${shared_ext}$major'
16635 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16636 shlibpath_var=LD_LIBRARY_PATH
16637 shlibpath_overrides_runpath=no
16638 # This implies no fast_install, which is unacceptable.
16639 # Some rework will be needed to allow for fast_install
16640 # before this can be enabled.
16641 hardcode_into_libs=yes
16642
16643 # We used to test for /lib/ld.so.1 and disable shared libraries on
16644 # powerpc, because MkLinux only supported shared libraries with the
16645 # GNU dynamic linker. Since this was broken with cross compilers,
16646 # most powerpc-linux boxes support dynamic linking these days and
16647 # people can always --disable-shared, the test was removed, and we
16648 # assume the GNU/Linux dynamic linker is in use.
16649 dynamic_linker='GNU/Linux ld.so'
16650 ;;
16651
16652netbsd*)
16653 version_type=sunos
16654 need_lib_prefix=no
16655 need_version=no
16656 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16658 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16659 dynamic_linker='NetBSD (a.out) ld.so'
16660 else
16661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
16662 soname_spec='${libname}${release}${shared_ext}$major'
16663 dynamic_linker='NetBSD ld.elf_so'
16664 fi
16665 shlibpath_var=LD_LIBRARY_PATH
16666 shlibpath_overrides_runpath=yes
16667 hardcode_into_libs=yes
16668 ;;
16669
16670newsos6)
16671 version_type=linux
16672 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16673 shlibpath_var=LD_LIBRARY_PATH
16674 shlibpath_overrides_runpath=yes
16675 ;;
16676
16677nto-qnx)
16678 version_type=linux
16679 need_lib_prefix=no
16680 need_version=no
16681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16682 soname_spec='${libname}${release}${shared_ext}$major'
16683 shlibpath_var=LD_LIBRARY_PATH
16684 shlibpath_overrides_runpath=yes
16685 ;;
16686
16687openbsd*)
16688 version_type=sunos
16689 need_lib_prefix=no
16690 need_version=no
16691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16692 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16693 shlibpath_var=LD_LIBRARY_PATH
16694 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16695 case $host_os in
16696 openbsd2.[89] | openbsd2.[89].*)
16697 shlibpath_overrides_runpath=no
16698 ;;
16699 *)
16700 shlibpath_overrides_runpath=yes
16701 ;;
16702 esac
16703 else
16704 shlibpath_overrides_runpath=yes
16705 fi
16706 ;;
16707
16708os2*)
16709 libname_spec='$name'
16710 shrext=".dll"
16711 need_lib_prefix=no
16712 library_names_spec='$libname${shared_ext} $libname.a'
16713 dynamic_linker='OS/2 ld.exe'
16714 shlibpath_var=LIBPATH
16715 ;;
16716
16717osf3* | osf4* | osf5*)
16718 version_type=osf
16719 need_lib_prefix=no
16720 need_version=no
16721 soname_spec='${libname}${release}${shared_ext}$major'
16722 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16723 shlibpath_var=LD_LIBRARY_PATH
16724 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16725 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16726 ;;
16727
16728sco3.2v5*)
16729 version_type=osf
16730 soname_spec='${libname}${release}${shared_ext}$major'
16731 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16732 shlibpath_var=LD_LIBRARY_PATH
16733 ;;
16734
16735solaris*)
16736 version_type=linux
16737 need_lib_prefix=no
16738 need_version=no
16739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16740 soname_spec='${libname}${release}${shared_ext}$major'
16741 shlibpath_var=LD_LIBRARY_PATH
16742 shlibpath_overrides_runpath=yes
16743 hardcode_into_libs=yes
16744 # ldd complains unless libraries are executable
16745 postinstall_cmds='chmod +x $lib'
16746 ;;
16747
16748sunos4*)
16749 version_type=sunos
16750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16751 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16752 shlibpath_var=LD_LIBRARY_PATH
16753 shlibpath_overrides_runpath=yes
16754 if test "$with_gnu_ld" = yes; then
16755 need_lib_prefix=no
16756 fi
16757 need_version=yes
16758 ;;
16759
16760sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16761 version_type=linux
16762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16763 soname_spec='${libname}${release}${shared_ext}$major'
16764 shlibpath_var=LD_LIBRARY_PATH
16765 case $host_vendor in
16766 sni)
16767 shlibpath_overrides_runpath=no
16768 need_lib_prefix=no
16769 export_dynamic_flag_spec='${wl}-Blargedynsym'
16770 runpath_var=LD_RUN_PATH
16771 ;;
16772 siemens)
16773 need_lib_prefix=no
16774 ;;
16775 motorola)
16776 need_lib_prefix=no
16777 need_version=no
16778 shlibpath_overrides_runpath=no
16779 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16780 ;;
16781 esac
16782 ;;
16783
16784sysv4*MP*)
16785 if test -d /usr/nec ;then
16786 version_type=linux
16787 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16788 soname_spec='$libname${shared_ext}.$major'
16789 shlibpath_var=LD_LIBRARY_PATH
16790 fi
16791 ;;
16792
16793uts4*)
16794 version_type=linux
16795 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16796 soname_spec='${libname}${release}${shared_ext}$major'
16797 shlibpath_var=LD_LIBRARY_PATH
16798 ;;
16799
16800*)
16801 dynamic_linker=no
16802 ;;
16803esac
16804echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16805echo "${ECHO_T}$dynamic_linker" >&6
16806test "$dynamic_linker" = no && can_build_shared=no
16807
16808if test "x$enable_dlopen" != xyes; then
16809 enable_dlopen=unknown
16810 enable_dlopen_self=unknown
16811 enable_dlopen_self_static=unknown
16812else
16813 lt_cv_dlopen=no
16814 lt_cv_dlopen_libs=
16815
16816 case $host_os in
16817 beos*)
16818 lt_cv_dlopen="load_add_on"
16819 lt_cv_dlopen_libs=
16820 lt_cv_dlopen_self=yes
16821 ;;
16822
16823 mingw* | pw32*)
16824 lt_cv_dlopen="LoadLibrary"
16825 lt_cv_dlopen_libs=
16826 ;;
16827
16828 cygwin*)
16829 lt_cv_dlopen="dlopen"
16830 lt_cv_dlopen_libs=
16831 ;;
16832
16833 darwin*)
16834 # if libdl is installed we need to link against it
16835 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16836echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16837if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16838 echo $ECHO_N "(cached) $ECHO_C" >&6
16839else
16840 ac_check_lib_save_LIBS=$LIBS
16841LIBS="-ldl $LIBS"
16842cat >conftest.$ac_ext <<_ACEOF
16843#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000016844/* confdefs.h. */
16845_ACEOF
16846cat confdefs.h >>conftest.$ac_ext
16847cat >>conftest.$ac_ext <<_ACEOF
16848/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016849
16850/* Override any gcc2 internal prototype to avoid an error. */
16851#ifdef __cplusplus
16852extern "C"
16853#endif
16854/* We use char because int might match the return type of a gcc2
16855 builtin and then its argument prototype would still apply. */
16856char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000016857int
16858main ()
16859{
16860dlopen ();
16861 ;
16862 return 0;
16863}
16864_ACEOF
16865rm -f conftest.$ac_objext conftest$ac_exeext
16866if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16867 (eval $ac_link) 2>&5
16868 ac_status=$?
16869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16870 (exit $ac_status); } &&
16871 { ac_try='test -s conftest$ac_exeext'
16872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16873 (eval $ac_try) 2>&5
16874 ac_status=$?
16875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16876 (exit $ac_status); }; }; then
16877 ac_cv_lib_dl_dlopen=yes
16878else
16879 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000016880sed 's/^/| /' conftest.$ac_ext >&5
16881
John Criswell47fdd832003-07-14 16:52:07 +000016882ac_cv_lib_dl_dlopen=no
16883fi
16884rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16885LIBS=$ac_check_lib_save_LIBS
16886fi
16887echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16888echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16889if test $ac_cv_lib_dl_dlopen = yes; then
16890 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16891else
16892
16893 lt_cv_dlopen="dyld"
16894 lt_cv_dlopen_libs=
16895 lt_cv_dlopen_self=yes
16896
16897fi
16898
16899 ;;
16900
16901 *)
16902 echo "$as_me:$LINENO: checking for shl_load" >&5
16903echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
16904if test "${ac_cv_func_shl_load+set}" = set; then
16905 echo $ECHO_N "(cached) $ECHO_C" >&6
16906else
16907 cat >conftest.$ac_ext <<_ACEOF
16908#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000016909/* confdefs.h. */
16910_ACEOF
16911cat confdefs.h >>conftest.$ac_ext
16912cat >>conftest.$ac_ext <<_ACEOF
16913/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016914/* System header to define __stub macros and hopefully few prototypes,
John Criswell392aaa32003-07-22 19:18:09 +000016915 which can conflict with char shl_load (); below.
16916 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16917 <limits.h> exists even on freestanding compilers. */
16918#ifdef __STDC__
16919# include <limits.h>
16920#else
16921# include <assert.h>
16922#endif
John Criswell47fdd832003-07-14 16:52:07 +000016923/* Override any gcc2 internal prototype to avoid an error. */
16924#ifdef __cplusplus
16925extern "C"
John Criswell392aaa32003-07-22 19:18:09 +000016926{
John Criswell47fdd832003-07-14 16:52:07 +000016927#endif
16928/* We use char because int might match the return type of a gcc2
16929 builtin and then its argument prototype would still apply. */
16930char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000016931/* The GNU C library defines this for functions which it implements
16932 to always fail with ENOSYS. Some functions are actually named
16933 something starting with __ and the normal name is an alias. */
16934#if defined (__stub_shl_load) || defined (__stub___shl_load)
16935choke me
16936#else
John Criswell392aaa32003-07-22 19:18:09 +000016937char (*f) () = shl_load;
16938#endif
16939#ifdef __cplusplus
16940}
John Criswell47fdd832003-07-14 16:52:07 +000016941#endif
16942
John Criswell392aaa32003-07-22 19:18:09 +000016943int
16944main ()
16945{
16946return f != shl_load;
John Criswell47fdd832003-07-14 16:52:07 +000016947 ;
16948 return 0;
16949}
16950_ACEOF
16951rm -f conftest.$ac_objext conftest$ac_exeext
16952if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16953 (eval $ac_link) 2>&5
16954 ac_status=$?
16955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16956 (exit $ac_status); } &&
16957 { ac_try='test -s conftest$ac_exeext'
16958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16959 (eval $ac_try) 2>&5
16960 ac_status=$?
16961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16962 (exit $ac_status); }; }; then
16963 ac_cv_func_shl_load=yes
16964else
16965 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000016966sed 's/^/| /' conftest.$ac_ext >&5
16967
John Criswell47fdd832003-07-14 16:52:07 +000016968ac_cv_func_shl_load=no
16969fi
16970rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16971fi
16972echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16973echo "${ECHO_T}$ac_cv_func_shl_load" >&6
16974if test $ac_cv_func_shl_load = yes; then
16975 lt_cv_dlopen="shl_load"
16976else
16977 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16978echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
16979if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16980 echo $ECHO_N "(cached) $ECHO_C" >&6
16981else
16982 ac_check_lib_save_LIBS=$LIBS
16983LIBS="-ldld $LIBS"
16984cat >conftest.$ac_ext <<_ACEOF
16985#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000016986/* confdefs.h. */
16987_ACEOF
16988cat confdefs.h >>conftest.$ac_ext
16989cat >>conftest.$ac_ext <<_ACEOF
16990/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016991
16992/* Override any gcc2 internal prototype to avoid an error. */
16993#ifdef __cplusplus
16994extern "C"
16995#endif
16996/* We use char because int might match the return type of a gcc2
16997 builtin and then its argument prototype would still apply. */
16998char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000016999int
17000main ()
17001{
17002shl_load ();
17003 ;
17004 return 0;
17005}
17006_ACEOF
17007rm -f conftest.$ac_objext conftest$ac_exeext
17008if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17009 (eval $ac_link) 2>&5
17010 ac_status=$?
17011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17012 (exit $ac_status); } &&
17013 { ac_try='test -s conftest$ac_exeext'
17014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17015 (eval $ac_try) 2>&5
17016 ac_status=$?
17017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17018 (exit $ac_status); }; }; then
17019 ac_cv_lib_dld_shl_load=yes
17020else
17021 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000017022sed 's/^/| /' conftest.$ac_ext >&5
17023
John Criswell47fdd832003-07-14 16:52:07 +000017024ac_cv_lib_dld_shl_load=no
17025fi
17026rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17027LIBS=$ac_check_lib_save_LIBS
17028fi
17029echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17030echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17031if test $ac_cv_lib_dld_shl_load = yes; then
17032 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17033else
17034 echo "$as_me:$LINENO: checking for dlopen" >&5
17035echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17036if test "${ac_cv_func_dlopen+set}" = set; then
17037 echo $ECHO_N "(cached) $ECHO_C" >&6
17038else
17039 cat >conftest.$ac_ext <<_ACEOF
17040#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000017041/* confdefs.h. */
17042_ACEOF
17043cat confdefs.h >>conftest.$ac_ext
17044cat >>conftest.$ac_ext <<_ACEOF
17045/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017046/* System header to define __stub macros and hopefully few prototypes,
John Criswell392aaa32003-07-22 19:18:09 +000017047 which can conflict with char dlopen (); below.
17048 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17049 <limits.h> exists even on freestanding compilers. */
17050#ifdef __STDC__
17051# include <limits.h>
17052#else
17053# include <assert.h>
17054#endif
John Criswell47fdd832003-07-14 16:52:07 +000017055/* Override any gcc2 internal prototype to avoid an error. */
17056#ifdef __cplusplus
17057extern "C"
John Criswell392aaa32003-07-22 19:18:09 +000017058{
John Criswell47fdd832003-07-14 16:52:07 +000017059#endif
17060/* We use char because int might match the return type of a gcc2
17061 builtin and then its argument prototype would still apply. */
17062char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017063/* The GNU C library defines this for functions which it implements
17064 to always fail with ENOSYS. Some functions are actually named
17065 something starting with __ and the normal name is an alias. */
17066#if defined (__stub_dlopen) || defined (__stub___dlopen)
17067choke me
17068#else
John Criswell392aaa32003-07-22 19:18:09 +000017069char (*f) () = dlopen;
17070#endif
17071#ifdef __cplusplus
17072}
John Criswell47fdd832003-07-14 16:52:07 +000017073#endif
17074
John Criswell392aaa32003-07-22 19:18:09 +000017075int
17076main ()
17077{
17078return f != dlopen;
John Criswell47fdd832003-07-14 16:52:07 +000017079 ;
17080 return 0;
17081}
17082_ACEOF
17083rm -f conftest.$ac_objext conftest$ac_exeext
17084if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17085 (eval $ac_link) 2>&5
17086 ac_status=$?
17087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17088 (exit $ac_status); } &&
17089 { ac_try='test -s conftest$ac_exeext'
17090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17091 (eval $ac_try) 2>&5
17092 ac_status=$?
17093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17094 (exit $ac_status); }; }; then
17095 ac_cv_func_dlopen=yes
17096else
17097 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000017098sed 's/^/| /' conftest.$ac_ext >&5
17099
John Criswell47fdd832003-07-14 16:52:07 +000017100ac_cv_func_dlopen=no
17101fi
17102rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17103fi
17104echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17105echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17106if test $ac_cv_func_dlopen = yes; then
17107 lt_cv_dlopen="dlopen"
17108else
17109 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17110echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17111if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17112 echo $ECHO_N "(cached) $ECHO_C" >&6
17113else
17114 ac_check_lib_save_LIBS=$LIBS
17115LIBS="-ldl $LIBS"
17116cat >conftest.$ac_ext <<_ACEOF
17117#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000017118/* confdefs.h. */
17119_ACEOF
17120cat confdefs.h >>conftest.$ac_ext
17121cat >>conftest.$ac_ext <<_ACEOF
17122/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017123
17124/* Override any gcc2 internal prototype to avoid an error. */
17125#ifdef __cplusplus
17126extern "C"
17127#endif
17128/* We use char because int might match the return type of a gcc2
17129 builtin and then its argument prototype would still apply. */
17130char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017131int
17132main ()
17133{
17134dlopen ();
17135 ;
17136 return 0;
17137}
17138_ACEOF
17139rm -f conftest.$ac_objext conftest$ac_exeext
17140if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17141 (eval $ac_link) 2>&5
17142 ac_status=$?
17143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17144 (exit $ac_status); } &&
17145 { ac_try='test -s conftest$ac_exeext'
17146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17147 (eval $ac_try) 2>&5
17148 ac_status=$?
17149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17150 (exit $ac_status); }; }; then
17151 ac_cv_lib_dl_dlopen=yes
17152else
17153 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000017154sed 's/^/| /' conftest.$ac_ext >&5
17155
John Criswell47fdd832003-07-14 16:52:07 +000017156ac_cv_lib_dl_dlopen=no
17157fi
17158rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17159LIBS=$ac_check_lib_save_LIBS
17160fi
17161echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17162echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17163if test $ac_cv_lib_dl_dlopen = yes; then
17164 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17165else
17166 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17167echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17168if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17169 echo $ECHO_N "(cached) $ECHO_C" >&6
17170else
17171 ac_check_lib_save_LIBS=$LIBS
17172LIBS="-lsvld $LIBS"
17173cat >conftest.$ac_ext <<_ACEOF
17174#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000017175/* confdefs.h. */
17176_ACEOF
17177cat confdefs.h >>conftest.$ac_ext
17178cat >>conftest.$ac_ext <<_ACEOF
17179/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017180
17181/* Override any gcc2 internal prototype to avoid an error. */
17182#ifdef __cplusplus
17183extern "C"
17184#endif
17185/* We use char because int might match the return type of a gcc2
17186 builtin and then its argument prototype would still apply. */
17187char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017188int
17189main ()
17190{
17191dlopen ();
17192 ;
17193 return 0;
17194}
17195_ACEOF
17196rm -f conftest.$ac_objext conftest$ac_exeext
17197if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17198 (eval $ac_link) 2>&5
17199 ac_status=$?
17200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17201 (exit $ac_status); } &&
17202 { ac_try='test -s conftest$ac_exeext'
17203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17204 (eval $ac_try) 2>&5
17205 ac_status=$?
17206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17207 (exit $ac_status); }; }; then
17208 ac_cv_lib_svld_dlopen=yes
17209else
17210 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000017211sed 's/^/| /' conftest.$ac_ext >&5
17212
John Criswell47fdd832003-07-14 16:52:07 +000017213ac_cv_lib_svld_dlopen=no
17214fi
17215rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17216LIBS=$ac_check_lib_save_LIBS
17217fi
17218echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17219echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17220if test $ac_cv_lib_svld_dlopen = yes; then
17221 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17222else
17223 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17224echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17225if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17226 echo $ECHO_N "(cached) $ECHO_C" >&6
17227else
17228 ac_check_lib_save_LIBS=$LIBS
17229LIBS="-ldld $LIBS"
17230cat >conftest.$ac_ext <<_ACEOF
17231#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000017232/* confdefs.h. */
17233_ACEOF
17234cat confdefs.h >>conftest.$ac_ext
17235cat >>conftest.$ac_ext <<_ACEOF
17236/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017237
17238/* Override any gcc2 internal prototype to avoid an error. */
17239#ifdef __cplusplus
17240extern "C"
17241#endif
17242/* We use char because int might match the return type of a gcc2
17243 builtin and then its argument prototype would still apply. */
17244char dld_link ();
John Criswell47fdd832003-07-14 16:52:07 +000017245int
17246main ()
17247{
17248dld_link ();
17249 ;
17250 return 0;
17251}
17252_ACEOF
17253rm -f conftest.$ac_objext conftest$ac_exeext
17254if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17255 (eval $ac_link) 2>&5
17256 ac_status=$?
17257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17258 (exit $ac_status); } &&
17259 { ac_try='test -s conftest$ac_exeext'
17260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17261 (eval $ac_try) 2>&5
17262 ac_status=$?
17263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17264 (exit $ac_status); }; }; then
17265 ac_cv_lib_dld_dld_link=yes
17266else
17267 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000017268sed 's/^/| /' conftest.$ac_ext >&5
17269
John Criswell47fdd832003-07-14 16:52:07 +000017270ac_cv_lib_dld_dld_link=no
17271fi
17272rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17273LIBS=$ac_check_lib_save_LIBS
17274fi
17275echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17276echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17277if test $ac_cv_lib_dld_dld_link = yes; then
17278 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17279fi
17280
17281
17282fi
17283
17284
17285fi
17286
17287
17288fi
17289
17290
17291fi
17292
17293
17294fi
17295
17296 ;;
17297 esac
17298
17299 if test "x$lt_cv_dlopen" != xno; then
17300 enable_dlopen=yes
17301 else
17302 enable_dlopen=no
17303 fi
17304
17305 case $lt_cv_dlopen in
17306 dlopen)
17307 save_CPPFLAGS="$CPPFLAGS"
17308 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17309
17310 save_LDFLAGS="$LDFLAGS"
17311 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17312
17313 save_LIBS="$LIBS"
17314 LIBS="$lt_cv_dlopen_libs $LIBS"
17315
17316 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17317echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17318if test "${lt_cv_dlopen_self+set}" = set; then
17319 echo $ECHO_N "(cached) $ECHO_C" >&6
17320else
17321 if test "$cross_compiling" = yes; then :
17322 lt_cv_dlopen_self=cross
17323else
17324 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17325 lt_status=$lt_dlunknown
17326 cat > conftest.$ac_ext <<EOF
John Criswellc764fbc2003-09-06 15:17:13 +000017327#line 17327 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000017328#include "confdefs.h"
17329
17330#if HAVE_DLFCN_H
17331#include <dlfcn.h>
17332#endif
17333
17334#include <stdio.h>
17335
17336#ifdef RTLD_GLOBAL
17337# define LT_DLGLOBAL RTLD_GLOBAL
17338#else
17339# ifdef DL_GLOBAL
17340# define LT_DLGLOBAL DL_GLOBAL
17341# else
17342# define LT_DLGLOBAL 0
17343# endif
17344#endif
17345
17346/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17347 find out it does not work in some platform. */
17348#ifndef LT_DLLAZY_OR_NOW
17349# ifdef RTLD_LAZY
17350# define LT_DLLAZY_OR_NOW RTLD_LAZY
17351# else
17352# ifdef DL_LAZY
17353# define LT_DLLAZY_OR_NOW DL_LAZY
17354# else
17355# ifdef RTLD_NOW
17356# define LT_DLLAZY_OR_NOW RTLD_NOW
17357# else
17358# ifdef DL_NOW
17359# define LT_DLLAZY_OR_NOW DL_NOW
17360# else
17361# define LT_DLLAZY_OR_NOW 0
17362# endif
17363# endif
17364# endif
17365# endif
17366#endif
17367
17368#ifdef __cplusplus
17369extern "C" void exit (int);
17370#endif
17371
17372void fnord() { int i=42;}
17373int main ()
17374{
17375 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17376 int status = $lt_dlunknown;
17377
17378 if (self)
17379 {
17380 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17381 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17382 /* dlclose (self); */
17383 }
17384
17385 exit (status);
17386}
17387EOF
17388 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17389 (eval $ac_link) 2>&5
17390 ac_status=$?
17391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17392 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17393 (./conftest; exit; ) 2>/dev/null
17394 lt_status=$?
17395 case x$lt_status in
17396 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17397 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17398 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17399 esac
17400 else :
17401 # compilation failed
17402 lt_cv_dlopen_self=no
17403 fi
17404fi
17405rm -fr conftest*
17406
17407
17408fi
17409echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17410echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17411
17412 if test "x$lt_cv_dlopen_self" = xyes; then
17413 LDFLAGS="$LDFLAGS $link_static_flag"
17414 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17415echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17416if test "${lt_cv_dlopen_self_static+set}" = set; then
17417 echo $ECHO_N "(cached) $ECHO_C" >&6
17418else
17419 if test "$cross_compiling" = yes; then :
17420 lt_cv_dlopen_self_static=cross
17421else
17422 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17423 lt_status=$lt_dlunknown
17424 cat > conftest.$ac_ext <<EOF
John Criswellc764fbc2003-09-06 15:17:13 +000017425#line 17425 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000017426#include "confdefs.h"
17427
17428#if HAVE_DLFCN_H
17429#include <dlfcn.h>
17430#endif
17431
17432#include <stdio.h>
17433
17434#ifdef RTLD_GLOBAL
17435# define LT_DLGLOBAL RTLD_GLOBAL
17436#else
17437# ifdef DL_GLOBAL
17438# define LT_DLGLOBAL DL_GLOBAL
17439# else
17440# define LT_DLGLOBAL 0
17441# endif
17442#endif
17443
17444/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17445 find out it does not work in some platform. */
17446#ifndef LT_DLLAZY_OR_NOW
17447# ifdef RTLD_LAZY
17448# define LT_DLLAZY_OR_NOW RTLD_LAZY
17449# else
17450# ifdef DL_LAZY
17451# define LT_DLLAZY_OR_NOW DL_LAZY
17452# else
17453# ifdef RTLD_NOW
17454# define LT_DLLAZY_OR_NOW RTLD_NOW
17455# else
17456# ifdef DL_NOW
17457# define LT_DLLAZY_OR_NOW DL_NOW
17458# else
17459# define LT_DLLAZY_OR_NOW 0
17460# endif
17461# endif
17462# endif
17463# endif
17464#endif
17465
17466#ifdef __cplusplus
17467extern "C" void exit (int);
17468#endif
17469
17470void fnord() { int i=42;}
17471int main ()
17472{
17473 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17474 int status = $lt_dlunknown;
17475
17476 if (self)
17477 {
17478 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17479 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17480 /* dlclose (self); */
17481 }
17482
17483 exit (status);
17484}
17485EOF
17486 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17487 (eval $ac_link) 2>&5
17488 ac_status=$?
17489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17490 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17491 (./conftest; exit; ) 2>/dev/null
17492 lt_status=$?
17493 case x$lt_status in
17494 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17495 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17496 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17497 esac
17498 else :
17499 # compilation failed
17500 lt_cv_dlopen_self_static=no
17501 fi
17502fi
17503rm -fr conftest*
17504
17505
17506fi
17507echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17508echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17509 fi
17510
17511 CPPFLAGS="$save_CPPFLAGS"
17512 LDFLAGS="$save_LDFLAGS"
17513 LIBS="$save_LIBS"
17514 ;;
17515 esac
17516
17517 case $lt_cv_dlopen_self in
17518 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17519 *) enable_dlopen_self=unknown ;;
17520 esac
17521
17522 case $lt_cv_dlopen_self_static in
17523 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17524 *) enable_dlopen_self_static=unknown ;;
17525 esac
17526fi
17527
17528
17529# The else clause should only fire when bootstrapping the
17530# libtool distribution, otherwise you forgot to ship ltmain.sh
17531# with your package, and you will get complaints that there are
17532# no rules to generate ltmain.sh.
17533if test -f "$ltmain"; then
17534 # See if we are running on zsh, and set the options which allow our commands through
17535 # without removal of \ escapes.
17536 if test -n "${ZSH_VERSION+set}" ; then
17537 setopt NO_GLOB_SUBST
17538 fi
17539 # Now quote all the things that may contain metacharacters while being
17540 # careful not to overquote the AC_SUBSTed values. We take copies of the
17541 # variables and quote the copies for generation of the libtool script.
17542 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17543 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17544 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17545 deplibs_check_method reload_flag reload_cmds need_locks \
17546 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17547 lt_cv_sys_global_symbol_to_c_name_address \
17548 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17549 old_postinstall_cmds old_postuninstall_cmds \
17550 compiler_GCJ \
17551 CC_GCJ \
17552 LD_GCJ \
17553 lt_prog_compiler_wl_GCJ \
17554 lt_prog_compiler_pic_GCJ \
17555 lt_prog_compiler_static_GCJ \
17556 lt_prog_compiler_no_builtin_flag_GCJ \
17557 export_dynamic_flag_spec_GCJ \
17558 thread_safe_flag_spec_GCJ \
17559 whole_archive_flag_spec_GCJ \
17560 enable_shared_with_static_runtimes_GCJ \
17561 old_archive_cmds_GCJ \
17562 old_archive_from_new_cmds_GCJ \
17563 predep_objects_GCJ \
17564 postdep_objects_GCJ \
17565 predeps_GCJ \
17566 postdeps_GCJ \
17567 compiler_lib_search_path_GCJ \
17568 archive_cmds_GCJ \
17569 archive_expsym_cmds_GCJ \
17570 postinstall_cmds_GCJ \
17571 postuninstall_cmds_GCJ \
17572 old_archive_from_expsyms_cmds_GCJ \
17573 allow_undefined_flag_GCJ \
17574 no_undefined_flag_GCJ \
17575 export_symbols_cmds_GCJ \
17576 hardcode_libdir_flag_spec_GCJ \
17577 hardcode_libdir_flag_spec_ld_GCJ \
17578 hardcode_libdir_separator_GCJ \
17579 hardcode_automatic_GCJ \
17580 module_cmds_GCJ \
17581 module_expsym_cmds_GCJ \
17582 lt_cv_prog_compiler_c_o_GCJ \
17583 exclude_expsyms_GCJ \
17584 include_expsyms_GCJ; do
17585
17586 case $var in
17587 old_archive_cmds_GCJ | \
17588 old_archive_from_new_cmds_GCJ | \
17589 archive_cmds_GCJ | \
17590 archive_expsym_cmds_GCJ | \
17591 module_cmds_GCJ | \
17592 module_expsym_cmds_GCJ | \
17593 old_archive_from_expsyms_cmds_GCJ | \
17594 export_symbols_cmds_GCJ | \
17595 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17596 postinstall_cmds | postuninstall_cmds | \
17597 old_postinstall_cmds | old_postuninstall_cmds | \
17598 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17599 # Double-quote double-evaled strings.
17600 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17601 ;;
17602 *)
17603 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17604 ;;
17605 esac
17606 done
17607
17608 case $lt_echo in
17609 *'\$0 --fallback-echo"')
17610 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17611 ;;
17612 esac
17613
17614cfgfile="$ofile"
17615
17616 cat <<__EOF__ >> "$cfgfile"
17617# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17618
17619# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17620
17621# Shell to use when invoking shell scripts.
17622SHELL=$lt_SHELL
17623
17624# Whether or not to build shared libraries.
17625build_libtool_libs=$enable_shared
17626
17627# Whether or not to build static libraries.
17628build_old_libs=$enable_static
17629
17630# Whether or not to add -lc for building shared libraries.
17631build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17632
17633# Whether or not to disallow shared libs when runtime libs are static
17634allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17635
17636# Whether or not to optimize for fast installation.
17637fast_install=$enable_fast_install
17638
17639# The host system.
17640host_alias=$host_alias
17641host=$host
17642
17643# An echo program that does not interpret backslashes.
17644echo=$lt_echo
17645
17646# The archiver.
17647AR=$lt_AR
17648AR_FLAGS=$lt_AR_FLAGS
17649
17650# A C compiler.
17651LTCC=$lt_LTCC
17652
17653# A language-specific compiler.
17654CC=$lt_compiler_GCJ
17655
17656# Is the compiler the GNU C compiler?
17657with_gcc=$GCC_GCJ
17658
17659# An ERE matcher.
17660EGREP=$lt_EGREP
17661
17662# The linker used to build libraries.
17663LD=$lt_LD_GCJ
17664
17665# Whether we need hard or soft links.
17666LN_S=$lt_LN_S
17667
17668# A BSD-compatible nm program.
17669NM=$lt_NM
17670
17671# A symbol stripping program
17672STRIP=$STRIP
17673
17674# Used to examine libraries when file_magic_cmd begins "file"
17675MAGIC_CMD=$MAGIC_CMD
17676
17677# Used on cygwin: DLL creation program.
17678DLLTOOL="$DLLTOOL"
17679
17680# Used on cygwin: object dumper.
17681OBJDUMP="$OBJDUMP"
17682
17683# Used on cygwin: assembler.
17684AS="$AS"
17685
17686# The name of the directory that contains temporary libtool files.
17687objdir=$objdir
17688
17689# How to create reloadable object files.
17690reload_flag=$lt_reload_flag
17691reload_cmds=$lt_reload_cmds
17692
17693# How to pass a linker flag through the compiler.
17694wl=$lt_lt_prog_compiler_wl_GCJ
17695
17696# Object file suffix (normally "o").
17697objext="$ac_objext"
17698
17699# Old archive suffix (normally "a").
17700libext="$libext"
17701
17702# Shared library suffix (normally ".so").
17703shrext='$shrext'
17704
17705# Executable file suffix (normally "").
17706exeext="$exeext"
17707
17708# Additional compiler flags for building library objects.
17709pic_flag=$lt_lt_prog_compiler_pic_GCJ
17710pic_mode=$pic_mode
17711
17712# What is the maximum length of a command?
17713max_cmd_len=$lt_cv_sys_max_cmd_len
17714
17715# Does compiler simultaneously support -c and -o options?
17716compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17717
17718# Must we lock files when doing compilation ?
17719need_locks=$lt_need_locks
17720
17721# Do we need the lib prefix for modules?
17722need_lib_prefix=$need_lib_prefix
17723
17724# Do we need a version for libraries?
17725need_version=$need_version
17726
17727# Whether dlopen is supported.
17728dlopen_support=$enable_dlopen
17729
17730# Whether dlopen of programs is supported.
17731dlopen_self=$enable_dlopen_self
17732
17733# Whether dlopen of statically linked programs is supported.
17734dlopen_self_static=$enable_dlopen_self_static
17735
17736# Compiler flag to prevent dynamic linking.
17737link_static_flag=$lt_lt_prog_compiler_static_GCJ
17738
17739# Compiler flag to turn off builtin functions.
17740no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17741
17742# Compiler flag to allow reflexive dlopens.
17743export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17744
17745# Compiler flag to generate shared objects directly from archives.
17746whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17747
17748# Compiler flag to generate thread-safe objects.
17749thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17750
17751# Library versioning type.
17752version_type=$version_type
17753
17754# Format of library name prefix.
17755libname_spec=$lt_libname_spec
17756
17757# List of archive names. First name is the real one, the rest are links.
17758# The last name is the one that the linker finds with -lNAME.
17759library_names_spec=$lt_library_names_spec
17760
17761# The coded name of the library, if different from the real name.
17762soname_spec=$lt_soname_spec
17763
17764# Commands used to build and install an old-style archive.
17765RANLIB=$lt_RANLIB
17766old_archive_cmds=$lt_old_archive_cmds_GCJ
17767old_postinstall_cmds=$lt_old_postinstall_cmds
17768old_postuninstall_cmds=$lt_old_postuninstall_cmds
17769
17770# Create an old-style archive from a shared archive.
17771old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17772
17773# Create a temporary old-style archive to link instead of a shared archive.
17774old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17775
17776# Commands used to build and install a shared archive.
17777archive_cmds=$lt_archive_cmds_GCJ
17778archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17779postinstall_cmds=$lt_postinstall_cmds
17780postuninstall_cmds=$lt_postuninstall_cmds
17781
17782# Commands used to build a loadable module (assumed same as above if empty)
17783module_cmds=$lt_module_cmds_GCJ
17784module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17785
17786# Commands to strip libraries.
17787old_striplib=$lt_old_striplib
17788striplib=$lt_striplib
17789
17790# Dependencies to place before the objects being linked to create a
17791# shared library.
17792predep_objects=$lt_predep_objects_GCJ
17793
17794# Dependencies to place after the objects being linked to create a
17795# shared library.
17796postdep_objects=$lt_postdep_objects_GCJ
17797
17798# Dependencies to place before the objects being linked to create a
17799# shared library.
17800predeps=$lt_predeps_GCJ
17801
17802# Dependencies to place after the objects being linked to create a
17803# shared library.
17804postdeps=$lt_postdeps_GCJ
17805
17806# The library search path used internally by the compiler when linking
17807# a shared library.
17808compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17809
17810# Method to check whether dependent libraries are shared objects.
17811deplibs_check_method=$lt_deplibs_check_method
17812
17813# Command to use when deplibs_check_method == file_magic.
17814file_magic_cmd=$lt_file_magic_cmd
17815
17816# Flag that allows shared libraries with undefined symbols to be built.
17817allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17818
17819# Flag that forces no undefined symbols.
17820no_undefined_flag=$lt_no_undefined_flag_GCJ
17821
17822# Commands used to finish a libtool library installation in a directory.
17823finish_cmds=$lt_finish_cmds
17824
17825# Same as above, but a single script fragment to be evaled but not shown.
17826finish_eval=$lt_finish_eval
17827
17828# Take the output of nm and produce a listing of raw symbols and C names.
17829global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17830
17831# Transform the output of nm in a proper C declaration
17832global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17833
17834# Transform the output of nm in a C name address pair
17835global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17836
17837# This is the shared library runtime path variable.
17838runpath_var=$runpath_var
17839
17840# This is the shared library path variable.
17841shlibpath_var=$shlibpath_var
17842
17843# Is shlibpath searched before the hard-coded library search path?
17844shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17845
17846# How to hardcode a shared library path into an executable.
17847hardcode_action=$hardcode_action_GCJ
17848
17849# Whether we should hardcode library paths into libraries.
17850hardcode_into_libs=$hardcode_into_libs
17851
17852# Flag to hardcode \$libdir into a binary during linking.
17853# This must work even if \$libdir does not exist.
17854hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
17855
17856# If ld is used when linking, flag to hardcode \$libdir into
17857# a binary during linking. This must work even if \$libdir does
17858# not exist.
17859hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17860
17861# Whether we need a single -rpath flag with a separated argument.
17862hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17863
17864# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17865# resulting binary.
17866hardcode_direct=$hardcode_direct_GCJ
17867
17868# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17869# resulting binary.
17870hardcode_minus_L=$hardcode_minus_L_GCJ
17871
17872# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17873# the resulting binary.
17874hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
17875
17876# Set to yes if building a shared library automatically hardcodes DIR into the library
17877# and all subsequent libraries and executables linked against it.
17878hardcode_automatic=$hardcode_automatic_GCJ
17879
17880# Variables whose values should be saved in libtool wrapper scripts and
17881# restored at relink time.
17882variables_saved_for_relink="$variables_saved_for_relink"
17883
17884# Whether libtool must link a program against all its dependency libraries.
17885link_all_deplibs=$link_all_deplibs_GCJ
17886
17887# Compile-time system search path for libraries
17888sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17889
17890# Run-time system search path for libraries
17891sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17892
17893# Fix the shell variable \$srcfile for the compiler.
17894fix_srcfile_path="$fix_srcfile_path_GCJ"
17895
17896# Set to yes if exported symbols are required.
17897always_export_symbols=$always_export_symbols_GCJ
17898
17899# The commands to list exported symbols.
17900export_symbols_cmds=$lt_export_symbols_cmds_GCJ
17901
17902# The commands to extract the exported symbol list from a shared archive.
17903extract_expsyms_cmds=$lt_extract_expsyms_cmds
17904
17905# Symbols that should not be listed in the preloaded symbols.
17906exclude_expsyms=$lt_exclude_expsyms_GCJ
17907
17908# Symbols that must always be exported.
17909include_expsyms=$lt_include_expsyms_GCJ
17910
17911# ### END LIBTOOL TAG CONFIG: $tagname
17912
17913__EOF__
17914
17915
17916else
17917 # If there is no Makefile yet, we rely on a make rule to execute
17918 # `config.status --recheck' to rerun these tests and create the
17919 # libtool script then.
17920 test -f Makefile && make "$ltmain"
17921fi
17922
17923
17924ac_ext=c
17925ac_cpp='$CPP $CPPFLAGS'
17926ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17927ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17928ac_compiler_gnu=$ac_cv_c_compiler_gnu
17929
17930CC="$lt_save_CC"
17931
17932 else
17933 tagname=""
17934 fi
17935 ;;
17936
17937 RC)
17938
17939
17940
17941# Source file extension for RC test sources.
17942ac_ext=rc
17943
17944# Object file extension for compiled RC test sources.
17945objext=o
17946objext_RC=$objext
17947
17948# Code to be used in simple compile tests
17949lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
17950
17951# Code to be used in simple link tests
17952lt_simple_link_test_code="$lt_simple_compile_test_code"
17953
17954# ltmain only uses $CC for tagged configurations so make sure $CC is set.
17955
17956# If no C compiler was specified, use CC.
17957LTCC=${LTCC-"$CC"}
17958
17959# Allow CC to be a program name with arguments.
17960compiler=$CC
17961
17962
17963# Allow CC to be a program name with arguments.
17964lt_save_CC="$CC"
17965CC=${RC-"windres"}
17966compiler=$CC
17967compiler_RC=$CC
17968lt_cv_prog_compiler_c_o_RC=yes
17969
17970# The else clause should only fire when bootstrapping the
17971# libtool distribution, otherwise you forgot to ship ltmain.sh
17972# with your package, and you will get complaints that there are
17973# no rules to generate ltmain.sh.
17974if test -f "$ltmain"; then
17975 # See if we are running on zsh, and set the options which allow our commands through
17976 # without removal of \ escapes.
17977 if test -n "${ZSH_VERSION+set}" ; then
17978 setopt NO_GLOB_SUBST
17979 fi
17980 # Now quote all the things that may contain metacharacters while being
17981 # careful not to overquote the AC_SUBSTed values. We take copies of the
17982 # variables and quote the copies for generation of the libtool script.
17983 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17984 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17985 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17986 deplibs_check_method reload_flag reload_cmds need_locks \
17987 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17988 lt_cv_sys_global_symbol_to_c_name_address \
17989 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17990 old_postinstall_cmds old_postuninstall_cmds \
17991 compiler_RC \
17992 CC_RC \
17993 LD_RC \
17994 lt_prog_compiler_wl_RC \
17995 lt_prog_compiler_pic_RC \
17996 lt_prog_compiler_static_RC \
17997 lt_prog_compiler_no_builtin_flag_RC \
17998 export_dynamic_flag_spec_RC \
17999 thread_safe_flag_spec_RC \
18000 whole_archive_flag_spec_RC \
18001 enable_shared_with_static_runtimes_RC \
18002 old_archive_cmds_RC \
18003 old_archive_from_new_cmds_RC \
18004 predep_objects_RC \
18005 postdep_objects_RC \
18006 predeps_RC \
18007 postdeps_RC \
18008 compiler_lib_search_path_RC \
18009 archive_cmds_RC \
18010 archive_expsym_cmds_RC \
18011 postinstall_cmds_RC \
18012 postuninstall_cmds_RC \
18013 old_archive_from_expsyms_cmds_RC \
18014 allow_undefined_flag_RC \
18015 no_undefined_flag_RC \
18016 export_symbols_cmds_RC \
18017 hardcode_libdir_flag_spec_RC \
18018 hardcode_libdir_flag_spec_ld_RC \
18019 hardcode_libdir_separator_RC \
18020 hardcode_automatic_RC \
18021 module_cmds_RC \
18022 module_expsym_cmds_RC \
18023 lt_cv_prog_compiler_c_o_RC \
18024 exclude_expsyms_RC \
18025 include_expsyms_RC; do
18026
18027 case $var in
18028 old_archive_cmds_RC | \
18029 old_archive_from_new_cmds_RC | \
18030 archive_cmds_RC | \
18031 archive_expsym_cmds_RC | \
18032 module_cmds_RC | \
18033 module_expsym_cmds_RC | \
18034 old_archive_from_expsyms_cmds_RC | \
18035 export_symbols_cmds_RC | \
18036 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18037 postinstall_cmds | postuninstall_cmds | \
18038 old_postinstall_cmds | old_postuninstall_cmds | \
18039 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18040 # Double-quote double-evaled strings.
18041 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18042 ;;
18043 *)
18044 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18045 ;;
18046 esac
18047 done
18048
18049 case $lt_echo in
18050 *'\$0 --fallback-echo"')
18051 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18052 ;;
18053 esac
18054
18055cfgfile="$ofile"
18056
18057 cat <<__EOF__ >> "$cfgfile"
18058# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18059
18060# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18061
18062# Shell to use when invoking shell scripts.
18063SHELL=$lt_SHELL
18064
18065# Whether or not to build shared libraries.
18066build_libtool_libs=$enable_shared
18067
18068# Whether or not to build static libraries.
18069build_old_libs=$enable_static
18070
18071# Whether or not to add -lc for building shared libraries.
18072build_libtool_need_lc=$archive_cmds_need_lc_RC
18073
18074# Whether or not to disallow shared libs when runtime libs are static
18075allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18076
18077# Whether or not to optimize for fast installation.
18078fast_install=$enable_fast_install
18079
18080# The host system.
18081host_alias=$host_alias
18082host=$host
18083
18084# An echo program that does not interpret backslashes.
18085echo=$lt_echo
18086
18087# The archiver.
18088AR=$lt_AR
18089AR_FLAGS=$lt_AR_FLAGS
18090
18091# A C compiler.
18092LTCC=$lt_LTCC
18093
18094# A language-specific compiler.
18095CC=$lt_compiler_RC
18096
18097# Is the compiler the GNU C compiler?
18098with_gcc=$GCC_RC
18099
18100# An ERE matcher.
18101EGREP=$lt_EGREP
18102
18103# The linker used to build libraries.
18104LD=$lt_LD_RC
18105
18106# Whether we need hard or soft links.
18107LN_S=$lt_LN_S
18108
18109# A BSD-compatible nm program.
18110NM=$lt_NM
18111
18112# A symbol stripping program
18113STRIP=$STRIP
18114
18115# Used to examine libraries when file_magic_cmd begins "file"
18116MAGIC_CMD=$MAGIC_CMD
18117
18118# Used on cygwin: DLL creation program.
18119DLLTOOL="$DLLTOOL"
18120
18121# Used on cygwin: object dumper.
18122OBJDUMP="$OBJDUMP"
18123
18124# Used on cygwin: assembler.
18125AS="$AS"
18126
18127# The name of the directory that contains temporary libtool files.
18128objdir=$objdir
18129
18130# How to create reloadable object files.
18131reload_flag=$lt_reload_flag
18132reload_cmds=$lt_reload_cmds
18133
18134# How to pass a linker flag through the compiler.
18135wl=$lt_lt_prog_compiler_wl_RC
18136
18137# Object file suffix (normally "o").
18138objext="$ac_objext"
18139
18140# Old archive suffix (normally "a").
18141libext="$libext"
18142
18143# Shared library suffix (normally ".so").
18144shrext='$shrext'
18145
18146# Executable file suffix (normally "").
18147exeext="$exeext"
18148
18149# Additional compiler flags for building library objects.
18150pic_flag=$lt_lt_prog_compiler_pic_RC
18151pic_mode=$pic_mode
18152
18153# What is the maximum length of a command?
18154max_cmd_len=$lt_cv_sys_max_cmd_len
18155
18156# Does compiler simultaneously support -c and -o options?
18157compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18158
18159# Must we lock files when doing compilation ?
18160need_locks=$lt_need_locks
18161
18162# Do we need the lib prefix for modules?
18163need_lib_prefix=$need_lib_prefix
18164
18165# Do we need a version for libraries?
18166need_version=$need_version
18167
18168# Whether dlopen is supported.
18169dlopen_support=$enable_dlopen
18170
18171# Whether dlopen of programs is supported.
18172dlopen_self=$enable_dlopen_self
18173
18174# Whether dlopen of statically linked programs is supported.
18175dlopen_self_static=$enable_dlopen_self_static
18176
18177# Compiler flag to prevent dynamic linking.
18178link_static_flag=$lt_lt_prog_compiler_static_RC
18179
18180# Compiler flag to turn off builtin functions.
18181no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18182
18183# Compiler flag to allow reflexive dlopens.
18184export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18185
18186# Compiler flag to generate shared objects directly from archives.
18187whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18188
18189# Compiler flag to generate thread-safe objects.
18190thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18191
18192# Library versioning type.
18193version_type=$version_type
18194
18195# Format of library name prefix.
18196libname_spec=$lt_libname_spec
18197
18198# List of archive names. First name is the real one, the rest are links.
18199# The last name is the one that the linker finds with -lNAME.
18200library_names_spec=$lt_library_names_spec
18201
18202# The coded name of the library, if different from the real name.
18203soname_spec=$lt_soname_spec
18204
18205# Commands used to build and install an old-style archive.
18206RANLIB=$lt_RANLIB
18207old_archive_cmds=$lt_old_archive_cmds_RC
18208old_postinstall_cmds=$lt_old_postinstall_cmds
18209old_postuninstall_cmds=$lt_old_postuninstall_cmds
18210
18211# Create an old-style archive from a shared archive.
18212old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18213
18214# Create a temporary old-style archive to link instead of a shared archive.
18215old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18216
18217# Commands used to build and install a shared archive.
18218archive_cmds=$lt_archive_cmds_RC
18219archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18220postinstall_cmds=$lt_postinstall_cmds
18221postuninstall_cmds=$lt_postuninstall_cmds
18222
18223# Commands used to build a loadable module (assumed same as above if empty)
18224module_cmds=$lt_module_cmds_RC
18225module_expsym_cmds=$lt_module_expsym_cmds_RC
18226
18227# Commands to strip libraries.
18228old_striplib=$lt_old_striplib
18229striplib=$lt_striplib
18230
18231# Dependencies to place before the objects being linked to create a
18232# shared library.
18233predep_objects=$lt_predep_objects_RC
18234
18235# Dependencies to place after the objects being linked to create a
18236# shared library.
18237postdep_objects=$lt_postdep_objects_RC
18238
18239# Dependencies to place before the objects being linked to create a
18240# shared library.
18241predeps=$lt_predeps_RC
18242
18243# Dependencies to place after the objects being linked to create a
18244# shared library.
18245postdeps=$lt_postdeps_RC
18246
18247# The library search path used internally by the compiler when linking
18248# a shared library.
18249compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18250
18251# Method to check whether dependent libraries are shared objects.
18252deplibs_check_method=$lt_deplibs_check_method
18253
18254# Command to use when deplibs_check_method == file_magic.
18255file_magic_cmd=$lt_file_magic_cmd
18256
18257# Flag that allows shared libraries with undefined symbols to be built.
18258allow_undefined_flag=$lt_allow_undefined_flag_RC
18259
18260# Flag that forces no undefined symbols.
18261no_undefined_flag=$lt_no_undefined_flag_RC
18262
18263# Commands used to finish a libtool library installation in a directory.
18264finish_cmds=$lt_finish_cmds
18265
18266# Same as above, but a single script fragment to be evaled but not shown.
18267finish_eval=$lt_finish_eval
18268
18269# Take the output of nm and produce a listing of raw symbols and C names.
18270global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18271
18272# Transform the output of nm in a proper C declaration
18273global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18274
18275# Transform the output of nm in a C name address pair
18276global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18277
18278# This is the shared library runtime path variable.
18279runpath_var=$runpath_var
18280
18281# This is the shared library path variable.
18282shlibpath_var=$shlibpath_var
18283
18284# Is shlibpath searched before the hard-coded library search path?
18285shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18286
18287# How to hardcode a shared library path into an executable.
18288hardcode_action=$hardcode_action_RC
18289
18290# Whether we should hardcode library paths into libraries.
18291hardcode_into_libs=$hardcode_into_libs
18292
18293# Flag to hardcode \$libdir into a binary during linking.
18294# This must work even if \$libdir does not exist.
18295hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18296
18297# If ld is used when linking, flag to hardcode \$libdir into
18298# a binary during linking. This must work even if \$libdir does
18299# not exist.
18300hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18301
18302# Whether we need a single -rpath flag with a separated argument.
18303hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18304
18305# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18306# resulting binary.
18307hardcode_direct=$hardcode_direct_RC
18308
18309# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18310# resulting binary.
18311hardcode_minus_L=$hardcode_minus_L_RC
18312
18313# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18314# the resulting binary.
18315hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18316
18317# Set to yes if building a shared library automatically hardcodes DIR into the library
18318# and all subsequent libraries and executables linked against it.
18319hardcode_automatic=$hardcode_automatic_RC
18320
18321# Variables whose values should be saved in libtool wrapper scripts and
18322# restored at relink time.
18323variables_saved_for_relink="$variables_saved_for_relink"
18324
18325# Whether libtool must link a program against all its dependency libraries.
18326link_all_deplibs=$link_all_deplibs_RC
18327
18328# Compile-time system search path for libraries
18329sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18330
18331# Run-time system search path for libraries
18332sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18333
18334# Fix the shell variable \$srcfile for the compiler.
18335fix_srcfile_path="$fix_srcfile_path_RC"
18336
18337# Set to yes if exported symbols are required.
18338always_export_symbols=$always_export_symbols_RC
18339
18340# The commands to list exported symbols.
18341export_symbols_cmds=$lt_export_symbols_cmds_RC
18342
18343# The commands to extract the exported symbol list from a shared archive.
18344extract_expsyms_cmds=$lt_extract_expsyms_cmds
18345
18346# Symbols that should not be listed in the preloaded symbols.
18347exclude_expsyms=$lt_exclude_expsyms_RC
18348
18349# Symbols that must always be exported.
18350include_expsyms=$lt_include_expsyms_RC
18351
18352# ### END LIBTOOL TAG CONFIG: $tagname
18353
18354__EOF__
18355
18356
18357else
18358 # If there is no Makefile yet, we rely on a make rule to execute
18359 # `config.status --recheck' to rerun these tests and create the
18360 # libtool script then.
18361 test -f Makefile && make "$ltmain"
18362fi
18363
18364
18365ac_ext=c
18366ac_cpp='$CPP $CPPFLAGS'
18367ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18368ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18369ac_compiler_gnu=$ac_cv_c_compiler_gnu
18370
18371CC="$lt_save_CC"
18372
18373 ;;
18374
18375 *)
18376 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18377echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18378 { (exit 1); exit 1; }; }
18379 ;;
18380 esac
18381
18382 # Append the new tag name to the list of available tags.
18383 if test -n "$tagname" ; then
18384 available_tags="$available_tags $tagname"
18385 fi
18386 fi
18387 done
18388 IFS="$lt_save_ifs"
18389
18390 # Now substitute the updated list of available tags.
18391 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18392 mv "${ofile}T" "$ofile"
18393 chmod +x "$ofile"
18394 else
18395 rm -f "${ofile}T"
18396 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18397echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18398 { (exit 1); exit 1; }; }
18399 fi
18400fi
John Criswell7a73b802003-06-30 21:59:07 +000018401
18402
18403
18404# This can be used to rebuild libtool when needed
18405LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18406
18407# Always use our own libtool.
John Criswell8d4221e2003-07-23 16:52:50 +000018408LIBTOOL='$(SHELL) $(top_builddir)/mklib'
John Criswell7a73b802003-06-30 21:59:07 +000018409
18410# Prevent multiple expansion
18411
18412
18413
John Criswell47fdd832003-07-14 16:52:07 +000018414
18415
18416
18417
18418
18419
18420
18421
18422
18423
18424
18425
18426
18427
18428
18429
18430
18431
John Criswellde00db22003-08-25 16:49:54 +000018432# Extract the first word of "pwd", so it can be a program name with args.
18433set dummy pwd; ac_word=$2
18434echo "$as_me:$LINENO: checking for $ac_word" >&5
18435echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18436if test "${ac_cv_path_RPWD+set}" = set; then
18437 echo $ECHO_N "(cached) $ECHO_C" >&6
18438else
18439 case $RPWD in
18440 [\\/]* | ?:[\\/]*)
18441 ac_cv_path_RPWD="$RPWD" # Let the user override the test with a path.
18442 ;;
18443 *)
18444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18445for as_dir in $PATH
18446do
18447 IFS=$as_save_IFS
18448 test -z "$as_dir" && as_dir=.
18449 for ac_exec_ext in '' $ac_executable_extensions; do
18450 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18451 ac_cv_path_RPWD="$as_dir/$ac_word$ac_exec_ext"
18452 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18453 break 2
18454 fi
18455done
18456done
18457
18458 ;;
18459esac
18460fi
18461RPWD=$ac_cv_path_RPWD
18462
18463if test -n "$RPWD"; then
18464 echo "$as_me:$LINENO: result: $RPWD" >&5
18465echo "${ECHO_T}$RPWD" >&6
18466else
18467 echo "$as_me:$LINENO: result: no" >&5
18468echo "${ECHO_T}no" >&6
18469fi
18470
John Criswell7a73b802003-06-30 21:59:07 +000018471# Extract the first word of "ar", so it can be a program name with args.
18472set dummy ar; ac_word=$2
18473echo "$as_me:$LINENO: checking for $ac_word" >&5
18474echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18475if test "${ac_cv_path_AR+set}" = set; then
18476 echo $ECHO_N "(cached) $ECHO_C" >&6
18477else
18478 case $AR in
18479 [\\/]* | ?:[\\/]*)
18480 ac_cv_path_AR="$AR" # Let the user override the test with a path.
18481 ;;
18482 *)
18483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18484for as_dir in $PATH
18485do
18486 IFS=$as_save_IFS
18487 test -z "$as_dir" && as_dir=.
18488 for ac_exec_ext in '' $ac_executable_extensions; do
18489 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18490 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
18491 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18492 break 2
18493 fi
18494done
18495done
18496
18497 ;;
18498esac
18499fi
18500AR=$ac_cv_path_AR
18501
18502if test -n "$AR"; then
18503 echo "$as_me:$LINENO: result: $AR" >&5
18504echo "${ECHO_T}$AR" >&6
18505else
18506 echo "$as_me:$LINENO: result: no" >&5
18507echo "${ECHO_T}no" >&6
18508fi
18509
18510# Extract the first word of "sed", so it can be a program name with args.
18511set dummy sed; ac_word=$2
18512echo "$as_me:$LINENO: checking for $ac_word" >&5
18513echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18514if test "${ac_cv_path_SED+set}" = set; then
18515 echo $ECHO_N "(cached) $ECHO_C" >&6
18516else
18517 case $SED in
18518 [\\/]* | ?:[\\/]*)
18519 ac_cv_path_SED="$SED" # Let the user override the test with a path.
18520 ;;
18521 *)
18522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18523for as_dir in $PATH
18524do
18525 IFS=$as_save_IFS
18526 test -z "$as_dir" && as_dir=.
18527 for ac_exec_ext in '' $ac_executable_extensions; do
18528 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18529 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
18530 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18531 break 2
18532 fi
18533done
18534done
18535
18536 ;;
18537esac
18538fi
18539SED=$ac_cv_path_SED
18540
18541if test -n "$SED"; then
18542 echo "$as_me:$LINENO: result: $SED" >&5
18543echo "${ECHO_T}$SED" >&6
18544else
18545 echo "$as_me:$LINENO: result: no" >&5
18546echo "${ECHO_T}no" >&6
18547fi
18548
18549# Extract the first word of "rm", so it can be a program name with args.
18550set dummy rm; ac_word=$2
18551echo "$as_me:$LINENO: checking for $ac_word" >&5
18552echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18553if test "${ac_cv_path_RM+set}" = set; then
18554 echo $ECHO_N "(cached) $ECHO_C" >&6
18555else
18556 case $RM in
18557 [\\/]* | ?:[\\/]*)
18558 ac_cv_path_RM="$RM" # Let the user override the test with a path.
18559 ;;
18560 *)
18561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18562for as_dir in $PATH
18563do
18564 IFS=$as_save_IFS
18565 test -z "$as_dir" && as_dir=.
18566 for ac_exec_ext in '' $ac_executable_extensions; do
18567 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18568 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
18569 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18570 break 2
18571 fi
18572done
18573done
18574
18575 ;;
18576esac
18577fi
18578RM=$ac_cv_path_RM
18579
18580if test -n "$RM"; then
18581 echo "$as_me:$LINENO: result: $RM" >&5
18582echo "${ECHO_T}$RM" >&6
18583else
18584 echo "$as_me:$LINENO: result: no" >&5
18585echo "${ECHO_T}no" >&6
18586fi
18587
18588# Extract the first word of "echo", so it can be a program name with args.
18589set dummy echo; ac_word=$2
18590echo "$as_me:$LINENO: checking for $ac_word" >&5
18591echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18592if test "${ac_cv_path_ECHO+set}" = set; then
18593 echo $ECHO_N "(cached) $ECHO_C" >&6
18594else
18595 case $ECHO in
18596 [\\/]* | ?:[\\/]*)
18597 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
18598 ;;
18599 *)
18600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18601for as_dir in $PATH
18602do
18603 IFS=$as_save_IFS
18604 test -z "$as_dir" && as_dir=.
18605 for ac_exec_ext in '' $ac_executable_extensions; do
18606 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18607 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
18608 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18609 break 2
18610 fi
18611done
18612done
18613
18614 ;;
18615esac
18616fi
18617ECHO=$ac_cv_path_ECHO
18618
18619if test -n "$ECHO"; then
18620 echo "$as_me:$LINENO: result: $ECHO" >&5
18621echo "${ECHO_T}$ECHO" >&6
18622else
18623 echo "$as_me:$LINENO: result: no" >&5
18624echo "${ECHO_T}no" >&6
18625fi
18626
18627# Extract the first word of "mkdir", so it can be a program name with args.
18628set dummy mkdir; ac_word=$2
18629echo "$as_me:$LINENO: checking for $ac_word" >&5
18630echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18631if test "${ac_cv_path_MKDIR+set}" = set; then
18632 echo $ECHO_N "(cached) $ECHO_C" >&6
18633else
18634 case $MKDIR in
18635 [\\/]* | ?:[\\/]*)
18636 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
18637 ;;
18638 *)
18639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18640for as_dir in $PATH
18641do
18642 IFS=$as_save_IFS
18643 test -z "$as_dir" && as_dir=.
18644 for ac_exec_ext in '' $ac_executable_extensions; do
18645 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18646 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
18647 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18648 break 2
18649 fi
18650done
18651done
18652
18653 ;;
18654esac
18655fi
18656MKDIR=$ac_cv_path_MKDIR
18657
18658if test -n "$MKDIR"; then
18659 echo "$as_me:$LINENO: result: $MKDIR" >&5
18660echo "${ECHO_T}$MKDIR" >&6
18661else
18662 echo "$as_me:$LINENO: result: no" >&5
18663echo "${ECHO_T}no" >&6
18664fi
18665
18666# Extract the first word of "date", so it can be a program name with args.
18667set dummy date; ac_word=$2
18668echo "$as_me:$LINENO: checking for $ac_word" >&5
18669echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18670if test "${ac_cv_path_DATE+set}" = set; then
18671 echo $ECHO_N "(cached) $ECHO_C" >&6
18672else
18673 case $DATE in
18674 [\\/]* | ?:[\\/]*)
18675 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
18676 ;;
18677 *)
18678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18679for as_dir in $PATH
18680do
18681 IFS=$as_save_IFS
18682 test -z "$as_dir" && as_dir=.
18683 for ac_exec_ext in '' $ac_executable_extensions; do
18684 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18685 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
18686 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18687 break 2
18688 fi
18689done
18690done
18691
18692 ;;
18693esac
18694fi
18695DATE=$ac_cv_path_DATE
18696
18697if test -n "$DATE"; then
18698 echo "$as_me:$LINENO: result: $DATE" >&5
18699echo "${ECHO_T}$DATE" >&6
18700else
18701 echo "$as_me:$LINENO: result: no" >&5
18702echo "${ECHO_T}no" >&6
18703fi
18704
18705# Extract the first word of "mv", so it can be a program name with args.
18706set dummy mv; ac_word=$2
18707echo "$as_me:$LINENO: checking for $ac_word" >&5
18708echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18709if test "${ac_cv_path_MV+set}" = set; then
18710 echo $ECHO_N "(cached) $ECHO_C" >&6
18711else
18712 case $MV in
18713 [\\/]* | ?:[\\/]*)
18714 ac_cv_path_MV="$MV" # Let the user override the test with a path.
18715 ;;
18716 *)
18717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18718for as_dir in $PATH
18719do
18720 IFS=$as_save_IFS
18721 test -z "$as_dir" && as_dir=.
18722 for ac_exec_ext in '' $ac_executable_extensions; do
18723 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18724 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
18725 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18726 break 2
18727 fi
18728done
18729done
18730
18731 ;;
18732esac
18733fi
18734MV=$ac_cv_path_MV
18735
18736if test -n "$MV"; then
18737 echo "$as_me:$LINENO: result: $MV" >&5
18738echo "${ECHO_T}$MV" >&6
18739else
18740 echo "$as_me:$LINENO: result: no" >&5
18741echo "${ECHO_T}no" >&6
18742fi
18743
18744# Extract the first word of "dot", so it can be a program name with args.
18745set dummy dot; ac_word=$2
18746echo "$as_me:$LINENO: checking for $ac_word" >&5
18747echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18748if test "${ac_cv_path_DOT+set}" = set; then
18749 echo $ECHO_N "(cached) $ECHO_C" >&6
18750else
18751 case $DOT in
18752 [\\/]* | ?:[\\/]*)
18753 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
18754 ;;
18755 *)
18756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18757for as_dir in $PATH
18758do
18759 IFS=$as_save_IFS
18760 test -z "$as_dir" && as_dir=.
18761 for ac_exec_ext in '' $ac_executable_extensions; do
18762 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18763 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
18764 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18765 break 2
18766 fi
18767done
18768done
18769
18770 ;;
18771esac
18772fi
18773DOT=$ac_cv_path_DOT
18774
18775if test -n "$DOT"; then
18776 echo "$as_me:$LINENO: result: $DOT" >&5
18777echo "${ECHO_T}$DOT" >&6
18778else
18779 echo "$as_me:$LINENO: result: no" >&5
18780echo "${ECHO_T}no" >&6
18781fi
18782
18783# Extract the first word of "etags", so it can be a program name with args.
18784set dummy etags; ac_word=$2
18785echo "$as_me:$LINENO: checking for $ac_word" >&5
18786echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18787if test "${ac_cv_path_ETAGS+set}" = set; then
18788 echo $ECHO_N "(cached) $ECHO_C" >&6
18789else
18790 case $ETAGS in
18791 [\\/]* | ?:[\\/]*)
18792 ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
18793 ;;
18794 *)
18795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18796for as_dir in $PATH
18797do
18798 IFS=$as_save_IFS
18799 test -z "$as_dir" && as_dir=.
18800 for ac_exec_ext in '' $ac_executable_extensions; do
18801 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18802 ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
18803 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18804 break 2
18805 fi
18806done
18807done
18808
18809 ;;
18810esac
18811fi
18812ETAGS=$ac_cv_path_ETAGS
18813
18814if test -n "$ETAGS"; then
18815 echo "$as_me:$LINENO: result: $ETAGS" >&5
18816echo "${ECHO_T}$ETAGS" >&6
18817else
18818 echo "$as_me:$LINENO: result: no" >&5
18819echo "${ECHO_T}no" >&6
18820fi
18821
18822# Extract the first word of "purify", so it can be a program name with args.
18823set dummy purify; ac_word=$2
18824echo "$as_me:$LINENO: checking for $ac_word" >&5
18825echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18826if test "${ac_cv_path_PURIFY+set}" = set; then
18827 echo $ECHO_N "(cached) $ECHO_C" >&6
18828else
18829 case $PURIFY in
18830 [\\/]* | ?:[\\/]*)
18831 ac_cv_path_PURIFY="$PURIFY" # Let the user override the test with a path.
18832 ;;
18833 *)
18834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18835for as_dir in $PATH
18836do
18837 IFS=$as_save_IFS
18838 test -z "$as_dir" && as_dir=.
18839 for ac_exec_ext in '' $ac_executable_extensions; do
18840 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18841 ac_cv_path_PURIFY="$as_dir/$ac_word$ac_exec_ext"
18842 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18843 break 2
18844 fi
18845done
18846done
18847
18848 ;;
18849esac
18850fi
18851PURIFY=$ac_cv_path_PURIFY
18852
18853if test -n "$PURIFY"; then
18854 echo "$as_me:$LINENO: result: $PURIFY" >&5
18855echo "${ECHO_T}$PURIFY" >&6
18856else
18857 echo "$as_me:$LINENO: result: no" >&5
18858echo "${ECHO_T}no" >&6
18859fi
18860
John Criswellde00db22003-08-25 16:49:54 +000018861# Extract the first word of "python", so it can be a program name with args.
18862set dummy python; ac_word=$2
18863echo "$as_me:$LINENO: checking for $ac_word" >&5
18864echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18865if test "${ac_cv_path_PYTHON+set}" = set; then
18866 echo $ECHO_N "(cached) $ECHO_C" >&6
18867else
18868 case $PYTHON in
18869 [\\/]* | ?:[\\/]*)
18870 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
18871 ;;
18872 *)
18873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18874for as_dir in $PATH
18875do
18876 IFS=$as_save_IFS
18877 test -z "$as_dir" && as_dir=.
18878 for ac_exec_ext in '' $ac_executable_extensions; do
18879 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18880 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
18881 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18882 break 2
18883 fi
18884done
18885done
18886
18887 ;;
18888esac
18889fi
18890PYTHON=$ac_cv_path_PYTHON
18891
18892if test -n "$PYTHON"; then
18893 echo "$as_me:$LINENO: result: $PYTHON" >&5
18894echo "${ECHO_T}$PYTHON" >&6
18895else
18896 echo "$as_me:$LINENO: result: no" >&5
18897echo "${ECHO_T}no" >&6
18898fi
18899
18900# Extract the first word of "qmtest", so it can be a program name with args.
18901set dummy qmtest; ac_word=$2
18902echo "$as_me:$LINENO: checking for $ac_word" >&5
18903echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18904if test "${ac_cv_path_QMTEST+set}" = set; then
18905 echo $ECHO_N "(cached) $ECHO_C" >&6
18906else
18907 case $QMTEST in
18908 [\\/]* | ?:[\\/]*)
18909 ac_cv_path_QMTEST="$QMTEST" # Let the user override the test with a path.
18910 ;;
18911 *)
18912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18913for as_dir in $PATH
18914do
18915 IFS=$as_save_IFS
18916 test -z "$as_dir" && as_dir=.
18917 for ac_exec_ext in '' $ac_executable_extensions; do
18918 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18919 ac_cv_path_QMTEST="$as_dir/$ac_word$ac_exec_ext"
18920 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18921 break 2
18922 fi
18923done
18924done
18925
18926 ;;
18927esac
18928fi
18929QMTEST=$ac_cv_path_QMTEST
18930
18931if test -n "$QMTEST"; then
18932 echo "$as_me:$LINENO: result: $QMTEST" >&5
18933echo "${ECHO_T}$QMTEST" >&6
18934else
18935 echo "$as_me:$LINENO: result: no" >&5
18936echo "${ECHO_T}no" >&6
18937fi
18938
18939
18940pyversion=`$PYTHON -V 2>&1 | cut -d\ -f2`
18941pymajor=`echo $pyversion | cut -d. -f1`
18942pyminor=`echo $pyversion | cut -d. -f2`
18943
18944if test "$pymajor" -ge "2"
18945then
18946 if test "$pymajor" -eq "2"
18947 then
18948 if test "$pyminor" -lt "2"
18949 then
18950 { { echo "$as_me:$LINENO: error: Python 2.2 or greater required" >&5
18951echo "$as_me: error: Python 2.2 or greater required" >&2;}
18952 { (exit 1); exit 1; }; }
18953 fi
18954 fi
18955else
18956 { { echo "$as_me:$LINENO: error: Python 2.2 or greater required" >&5
18957echo "$as_me: error: Python 2.2 or greater required" >&2;}
18958 { (exit 1); exit 1; }; }
18959fi
John Criswell7a73b802003-06-30 21:59:07 +000018960
18961
18962
18963
18964
18965echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
18966echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
18967if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
18968 echo $ECHO_N "(cached) $ECHO_C" >&6
18969else
18970 ac_check_lib_save_LIBS=$LIBS
18971LIBS="-lelf $LIBS"
18972cat >conftest.$ac_ext <<_ACEOF
18973#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000018974/* confdefs.h. */
18975_ACEOF
18976cat confdefs.h >>conftest.$ac_ext
18977cat >>conftest.$ac_ext <<_ACEOF
18978/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000018979
18980/* Override any gcc2 internal prototype to avoid an error. */
18981#ifdef __cplusplus
18982extern "C"
18983#endif
18984/* We use char because int might match the return type of a gcc2
18985 builtin and then its argument prototype would still apply. */
18986char elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000018987int
18988main ()
18989{
18990elf_begin ();
18991 ;
18992 return 0;
18993}
18994_ACEOF
18995rm -f conftest.$ac_objext conftest$ac_exeext
18996if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18997 (eval $ac_link) 2>&5
18998 ac_status=$?
18999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19000 (exit $ac_status); } &&
19001 { ac_try='test -s conftest$ac_exeext'
19002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19003 (eval $ac_try) 2>&5
19004 ac_status=$?
19005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19006 (exit $ac_status); }; }; then
19007 ac_cv_lib_elf_elf_begin=yes
19008else
19009 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000019010sed 's/^/| /' conftest.$ac_ext >&5
19011
John Criswell7a73b802003-06-30 21:59:07 +000019012ac_cv_lib_elf_elf_begin=no
19013fi
19014rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19015LIBS=$ac_check_lib_save_LIBS
19016fi
19017echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
19018echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
19019if test $ac_cv_lib_elf_elf_begin = yes; then
19020 cat >>confdefs.h <<_ACEOF
19021#define HAVE_LIBELF 1
19022_ACEOF
19023
19024 LIBS="-lelf $LIBS"
19025
19026fi
19027
19028
19029echo "$as_me:$LINENO: checking for library containing dlopen" >&5
19030echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
19031if test "${ac_cv_search_dlopen+set}" = set; then
19032 echo $ECHO_N "(cached) $ECHO_C" >&6
19033else
19034 ac_func_search_save_LIBS=$LIBS
19035ac_cv_search_dlopen=no
19036cat >conftest.$ac_ext <<_ACEOF
19037#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000019038/* confdefs.h. */
19039_ACEOF
19040cat confdefs.h >>conftest.$ac_ext
19041cat >>conftest.$ac_ext <<_ACEOF
19042/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019043
19044/* Override any gcc2 internal prototype to avoid an error. */
19045#ifdef __cplusplus
19046extern "C"
19047#endif
19048/* We use char because int might match the return type of a gcc2
19049 builtin and then its argument prototype would still apply. */
19050char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000019051int
19052main ()
19053{
19054dlopen ();
19055 ;
19056 return 0;
19057}
19058_ACEOF
19059rm -f conftest.$ac_objext conftest$ac_exeext
19060if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19061 (eval $ac_link) 2>&5
19062 ac_status=$?
19063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19064 (exit $ac_status); } &&
19065 { ac_try='test -s conftest$ac_exeext'
19066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19067 (eval $ac_try) 2>&5
19068 ac_status=$?
19069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19070 (exit $ac_status); }; }; then
19071 ac_cv_search_dlopen="none required"
19072else
19073 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000019074sed 's/^/| /' conftest.$ac_ext >&5
19075
John Criswell7a73b802003-06-30 21:59:07 +000019076fi
19077rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19078if test "$ac_cv_search_dlopen" = no; then
19079 for ac_lib in dl; do
19080 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19081 cat >conftest.$ac_ext <<_ACEOF
19082#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000019083/* confdefs.h. */
19084_ACEOF
19085cat confdefs.h >>conftest.$ac_ext
19086cat >>conftest.$ac_ext <<_ACEOF
19087/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019088
19089/* Override any gcc2 internal prototype to avoid an error. */
19090#ifdef __cplusplus
19091extern "C"
19092#endif
19093/* We use char because int might match the return type of a gcc2
19094 builtin and then its argument prototype would still apply. */
19095char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000019096int
19097main ()
19098{
19099dlopen ();
19100 ;
19101 return 0;
19102}
19103_ACEOF
19104rm -f conftest.$ac_objext conftest$ac_exeext
19105if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19106 (eval $ac_link) 2>&5
19107 ac_status=$?
19108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19109 (exit $ac_status); } &&
19110 { ac_try='test -s conftest$ac_exeext'
19111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19112 (eval $ac_try) 2>&5
19113 ac_status=$?
19114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19115 (exit $ac_status); }; }; then
19116 ac_cv_search_dlopen="-l$ac_lib"
19117break
19118else
19119 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000019120sed 's/^/| /' conftest.$ac_ext >&5
19121
John Criswell7a73b802003-06-30 21:59:07 +000019122fi
19123rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19124 done
19125fi
19126LIBS=$ac_func_search_save_LIBS
19127fi
19128echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
19129echo "${ECHO_T}$ac_cv_search_dlopen" >&6
19130if test "$ac_cv_search_dlopen" != no; then
19131 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
19132
19133else
19134 { { echo "$as_me:$LINENO: error: dlopen() required but not found" >&5
19135echo "$as_me: error: dlopen() required but not found" >&2;}
19136 { (exit 1); exit 1; }; }
19137fi
19138
19139
19140echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
19141echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
19142if test "${ac_cv_search_mallinfo+set}" = set; then
19143 echo $ECHO_N "(cached) $ECHO_C" >&6
19144else
19145 ac_func_search_save_LIBS=$LIBS
19146ac_cv_search_mallinfo=no
19147cat >conftest.$ac_ext <<_ACEOF
19148#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000019149/* confdefs.h. */
19150_ACEOF
19151cat confdefs.h >>conftest.$ac_ext
19152cat >>conftest.$ac_ext <<_ACEOF
19153/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019154
19155/* Override any gcc2 internal prototype to avoid an error. */
19156#ifdef __cplusplus
19157extern "C"
19158#endif
19159/* We use char because int might match the return type of a gcc2
19160 builtin and then its argument prototype would still apply. */
19161char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000019162int
19163main ()
19164{
19165mallinfo ();
19166 ;
19167 return 0;
19168}
19169_ACEOF
19170rm -f conftest.$ac_objext conftest$ac_exeext
19171if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19172 (eval $ac_link) 2>&5
19173 ac_status=$?
19174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19175 (exit $ac_status); } &&
19176 { ac_try='test -s conftest$ac_exeext'
19177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19178 (eval $ac_try) 2>&5
19179 ac_status=$?
19180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19181 (exit $ac_status); }; }; then
19182 ac_cv_search_mallinfo="none required"
19183else
19184 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000019185sed 's/^/| /' conftest.$ac_ext >&5
19186
John Criswell7a73b802003-06-30 21:59:07 +000019187fi
19188rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19189if test "$ac_cv_search_mallinfo" = no; then
19190 for ac_lib in malloc; do
19191 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19192 cat >conftest.$ac_ext <<_ACEOF
19193#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000019194/* confdefs.h. */
19195_ACEOF
19196cat confdefs.h >>conftest.$ac_ext
19197cat >>conftest.$ac_ext <<_ACEOF
19198/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019199
19200/* Override any gcc2 internal prototype to avoid an error. */
19201#ifdef __cplusplus
19202extern "C"
19203#endif
19204/* We use char because int might match the return type of a gcc2
19205 builtin and then its argument prototype would still apply. */
19206char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000019207int
19208main ()
19209{
19210mallinfo ();
19211 ;
19212 return 0;
19213}
19214_ACEOF
19215rm -f conftest.$ac_objext conftest$ac_exeext
19216if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19217 (eval $ac_link) 2>&5
19218 ac_status=$?
19219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19220 (exit $ac_status); } &&
19221 { ac_try='test -s conftest$ac_exeext'
19222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19223 (eval $ac_try) 2>&5
19224 ac_status=$?
19225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19226 (exit $ac_status); }; }; then
19227 ac_cv_search_mallinfo="-l$ac_lib"
19228break
19229else
19230 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000019231sed 's/^/| /' conftest.$ac_ext >&5
19232
John Criswell7a73b802003-06-30 21:59:07 +000019233fi
19234rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19235 done
19236fi
19237LIBS=$ac_func_search_save_LIBS
19238fi
19239echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
19240echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
19241if test "$ac_cv_search_mallinfo" != no; then
19242 test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
19243 cat >>confdefs.h <<\_ACEOF
19244#define HAVE_MALLINFO 1
19245_ACEOF
19246
19247fi
19248
19249
19250
19251echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19252echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19253if test "${ac_cv_header_stdc+set}" = set; then
19254 echo $ECHO_N "(cached) $ECHO_C" >&6
19255else
19256 cat >conftest.$ac_ext <<_ACEOF
19257#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000019258/* confdefs.h. */
19259_ACEOF
19260cat confdefs.h >>conftest.$ac_ext
19261cat >>conftest.$ac_ext <<_ACEOF
19262/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019263#include <stdlib.h>
19264#include <stdarg.h>
19265#include <string.h>
19266#include <float.h>
19267
John Criswell392aaa32003-07-22 19:18:09 +000019268int
19269main ()
19270{
19271
19272 ;
19273 return 0;
19274}
John Criswell7a73b802003-06-30 21:59:07 +000019275_ACEOF
John Criswell392aaa32003-07-22 19:18:09 +000019276rm -f conftest.$ac_objext
19277if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19278 (eval $ac_compile) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000019279 ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +000019280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell392aaa32003-07-22 19:18:09 +000019281 (exit $ac_status); } &&
19282 { ac_try='test -s conftest.$ac_objext'
19283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19284 (eval $ac_try) 2>&5
19285 ac_status=$?
19286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19287 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000019288 ac_cv_header_stdc=yes
19289else
19290 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000019291sed 's/^/| /' conftest.$ac_ext >&5
19292
19293ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000019294fi
John Criswell392aaa32003-07-22 19:18:09 +000019295rm -f conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000019296
19297if test $ac_cv_header_stdc = yes; then
19298 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19299 cat >conftest.$ac_ext <<_ACEOF
19300#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000019301/* confdefs.h. */
19302_ACEOF
19303cat confdefs.h >>conftest.$ac_ext
19304cat >>conftest.$ac_ext <<_ACEOF
19305/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019306#include <string.h>
19307
19308_ACEOF
19309if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell392aaa32003-07-22 19:18:09 +000019310 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000019311 :
19312else
19313 ac_cv_header_stdc=no
19314fi
19315rm -f conftest*
19316
19317fi
19318
19319if test $ac_cv_header_stdc = yes; then
19320 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19321 cat >conftest.$ac_ext <<_ACEOF
19322#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000019323/* confdefs.h. */
19324_ACEOF
19325cat confdefs.h >>conftest.$ac_ext
19326cat >>conftest.$ac_ext <<_ACEOF
19327/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019328#include <stdlib.h>
19329
19330_ACEOF
19331if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell392aaa32003-07-22 19:18:09 +000019332 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000019333 :
19334else
19335 ac_cv_header_stdc=no
19336fi
19337rm -f conftest*
19338
19339fi
19340
19341if test $ac_cv_header_stdc = yes; then
19342 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19343 if test "$cross_compiling" = yes; then
19344 :
19345else
19346 cat >conftest.$ac_ext <<_ACEOF
19347#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000019348/* confdefs.h. */
19349_ACEOF
19350cat confdefs.h >>conftest.$ac_ext
19351cat >>conftest.$ac_ext <<_ACEOF
19352/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019353#include <ctype.h>
19354#if ((' ' & 0x0FF) == 0x020)
19355# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19356# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19357#else
John Criswell392aaa32003-07-22 19:18:09 +000019358# define ISLOWER(c) \
19359 (('a' <= (c) && (c) <= 'i') \
John Criswell7a73b802003-06-30 21:59:07 +000019360 || ('j' <= (c) && (c) <= 'r') \
19361 || ('s' <= (c) && (c) <= 'z'))
19362# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19363#endif
19364
19365#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19366int
19367main ()
19368{
19369 int i;
19370 for (i = 0; i < 256; i++)
19371 if (XOR (islower (i), ISLOWER (i))
19372 || toupper (i) != TOUPPER (i))
19373 exit(2);
19374 exit (0);
19375}
19376_ACEOF
19377rm -f conftest$ac_exeext
19378if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19379 (eval $ac_link) 2>&5
19380 ac_status=$?
19381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19382 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19384 (eval $ac_try) 2>&5
19385 ac_status=$?
19386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19387 (exit $ac_status); }; }; then
19388 :
19389else
19390 echo "$as_me: program exited with status $ac_status" >&5
19391echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000019392sed 's/^/| /' conftest.$ac_ext >&5
19393
John Criswell7a73b802003-06-30 21:59:07 +000019394( exit $ac_status )
19395ac_cv_header_stdc=no
19396fi
John Criswell392aaa32003-07-22 19:18:09 +000019397rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000019398fi
19399fi
19400fi
19401echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19402echo "${ECHO_T}$ac_cv_header_stdc" >&6
19403if test $ac_cv_header_stdc = yes; then
19404
19405cat >>confdefs.h <<\_ACEOF
19406#define STDC_HEADERS 1
19407_ACEOF
19408
19409fi
19410
19411echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
19412echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
19413if test "${ac_cv_header_sys_wait_h+set}" = set; then
19414 echo $ECHO_N "(cached) $ECHO_C" >&6
19415else
19416 cat >conftest.$ac_ext <<_ACEOF
19417#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000019418/* confdefs.h. */
19419_ACEOF
19420cat confdefs.h >>conftest.$ac_ext
19421cat >>conftest.$ac_ext <<_ACEOF
19422/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019423#include <sys/types.h>
19424#include <sys/wait.h>
19425#ifndef WEXITSTATUS
19426# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
19427#endif
19428#ifndef WIFEXITED
19429# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
19430#endif
19431
John Criswell7a73b802003-06-30 21:59:07 +000019432int
19433main ()
19434{
19435 int s;
19436 wait (&s);
19437 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
19438 ;
19439 return 0;
19440}
19441_ACEOF
19442rm -f conftest.$ac_objext
19443if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19444 (eval $ac_compile) 2>&5
19445 ac_status=$?
19446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19447 (exit $ac_status); } &&
19448 { ac_try='test -s conftest.$ac_objext'
19449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19450 (eval $ac_try) 2>&5
19451 ac_status=$?
19452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19453 (exit $ac_status); }; }; then
19454 ac_cv_header_sys_wait_h=yes
19455else
19456 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000019457sed 's/^/| /' conftest.$ac_ext >&5
19458
John Criswell7a73b802003-06-30 21:59:07 +000019459ac_cv_header_sys_wait_h=no
19460fi
19461rm -f conftest.$ac_objext conftest.$ac_ext
19462fi
19463echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
19464echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
19465if test $ac_cv_header_sys_wait_h = yes; then
19466
19467cat >>confdefs.h <<\_ACEOF
19468#define HAVE_SYS_WAIT_H 1
19469_ACEOF
19470
19471fi
19472
19473
19474
19475
19476
19477
19478
19479
19480
19481
19482for ac_header in assert.h fcntl.h limits.h sys/time.h unistd.h errno.h signal.h math.h
19483do
19484as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19485if eval "test \"\${$as_ac_Header+set}\" = set"; then
19486 echo "$as_me:$LINENO: checking for $ac_header" >&5
19487echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19488if eval "test \"\${$as_ac_Header+set}\" = set"; then
19489 echo $ECHO_N "(cached) $ECHO_C" >&6
19490fi
19491echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19492echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19493else
19494 # Is the header compilable?
19495echo "$as_me:$LINENO: checking $ac_header usability" >&5
19496echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19497cat >conftest.$ac_ext <<_ACEOF
19498#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000019499/* confdefs.h. */
19500_ACEOF
19501cat confdefs.h >>conftest.$ac_ext
19502cat >>conftest.$ac_ext <<_ACEOF
19503/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019504$ac_includes_default
19505#include <$ac_header>
19506_ACEOF
19507rm -f conftest.$ac_objext
19508if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19509 (eval $ac_compile) 2>&5
19510 ac_status=$?
19511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19512 (exit $ac_status); } &&
19513 { ac_try='test -s conftest.$ac_objext'
19514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19515 (eval $ac_try) 2>&5
19516 ac_status=$?
19517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19518 (exit $ac_status); }; }; then
19519 ac_header_compiler=yes
19520else
19521 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000019522sed 's/^/| /' conftest.$ac_ext >&5
19523
John Criswell7a73b802003-06-30 21:59:07 +000019524ac_header_compiler=no
19525fi
19526rm -f conftest.$ac_objext conftest.$ac_ext
19527echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19528echo "${ECHO_T}$ac_header_compiler" >&6
19529
19530# Is the header present?
19531echo "$as_me:$LINENO: checking $ac_header presence" >&5
19532echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19533cat >conftest.$ac_ext <<_ACEOF
19534#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000019535/* confdefs.h. */
19536_ACEOF
19537cat confdefs.h >>conftest.$ac_ext
19538cat >>conftest.$ac_ext <<_ACEOF
19539/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019540#include <$ac_header>
19541_ACEOF
19542if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19543 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19544 ac_status=$?
John Criswell392aaa32003-07-22 19:18:09 +000019545 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000019546 rm -f conftest.er1
19547 cat conftest.err >&5
19548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19549 (exit $ac_status); } >/dev/null; then
19550 if test -s conftest.err; then
19551 ac_cpp_err=$ac_c_preproc_warn_flag
19552 else
19553 ac_cpp_err=
19554 fi
19555else
19556 ac_cpp_err=yes
19557fi
19558if test -z "$ac_cpp_err"; then
19559 ac_header_preproc=yes
19560else
19561 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000019562sed 's/^/| /' conftest.$ac_ext >&5
19563
John Criswell7a73b802003-06-30 21:59:07 +000019564 ac_header_preproc=no
19565fi
19566rm -f conftest.err conftest.$ac_ext
19567echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19568echo "${ECHO_T}$ac_header_preproc" >&6
19569
19570# So? What about this header?
19571case $ac_header_compiler:$ac_header_preproc in
19572 yes:no )
19573 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19574echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19575 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell392aaa32003-07-22 19:18:09 +000019576echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19577 (
19578 cat <<\_ASBOX
19579## ------------------------------------ ##
19580## Report this to bug-autoconf@gnu.org. ##
19581## ------------------------------------ ##
19582_ASBOX
19583 ) |
19584 sed "s/^/$as_me: WARNING: /" >&2
19585 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019586 no:yes )
19587 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19588echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19589 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19590echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19591 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell392aaa32003-07-22 19:18:09 +000019592echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19593 (
19594 cat <<\_ASBOX
19595## ------------------------------------ ##
19596## Report this to bug-autoconf@gnu.org. ##
19597## ------------------------------------ ##
19598_ASBOX
19599 ) |
19600 sed "s/^/$as_me: WARNING: /" >&2
19601 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019602esac
19603echo "$as_me:$LINENO: checking for $ac_header" >&5
19604echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19605if eval "test \"\${$as_ac_Header+set}\" = set"; then
19606 echo $ECHO_N "(cached) $ECHO_C" >&6
19607else
19608 eval "$as_ac_Header=$ac_header_preproc"
19609fi
19610echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19611echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19612
19613fi
19614if test `eval echo '${'$as_ac_Header'}'` = yes; then
19615 cat >>confdefs.h <<_ACEOF
19616#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19617_ACEOF
19618
19619fi
19620
19621done
19622
19623
19624
19625
19626
19627
19628for ac_header in malloc.h strings.h sys/mman.h sys/resource.h
19629do
19630as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19631if eval "test \"\${$as_ac_Header+set}\" = set"; then
19632 echo "$as_me:$LINENO: checking for $ac_header" >&5
19633echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19634if eval "test \"\${$as_ac_Header+set}\" = set"; then
19635 echo $ECHO_N "(cached) $ECHO_C" >&6
19636fi
19637echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19638echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19639else
19640 # Is the header compilable?
19641echo "$as_me:$LINENO: checking $ac_header usability" >&5
19642echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19643cat >conftest.$ac_ext <<_ACEOF
19644#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000019645/* confdefs.h. */
19646_ACEOF
19647cat confdefs.h >>conftest.$ac_ext
19648cat >>conftest.$ac_ext <<_ACEOF
19649/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019650$ac_includes_default
19651#include <$ac_header>
19652_ACEOF
19653rm -f conftest.$ac_objext
19654if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19655 (eval $ac_compile) 2>&5
19656 ac_status=$?
19657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19658 (exit $ac_status); } &&
19659 { ac_try='test -s conftest.$ac_objext'
19660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19661 (eval $ac_try) 2>&5
19662 ac_status=$?
19663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19664 (exit $ac_status); }; }; then
19665 ac_header_compiler=yes
19666else
19667 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000019668sed 's/^/| /' conftest.$ac_ext >&5
19669
John Criswell7a73b802003-06-30 21:59:07 +000019670ac_header_compiler=no
19671fi
19672rm -f conftest.$ac_objext conftest.$ac_ext
19673echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19674echo "${ECHO_T}$ac_header_compiler" >&6
19675
19676# Is the header present?
19677echo "$as_me:$LINENO: checking $ac_header presence" >&5
19678echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19679cat >conftest.$ac_ext <<_ACEOF
19680#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000019681/* confdefs.h. */
19682_ACEOF
19683cat confdefs.h >>conftest.$ac_ext
19684cat >>conftest.$ac_ext <<_ACEOF
19685/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019686#include <$ac_header>
19687_ACEOF
19688if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19689 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19690 ac_status=$?
John Criswell392aaa32003-07-22 19:18:09 +000019691 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000019692 rm -f conftest.er1
19693 cat conftest.err >&5
19694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19695 (exit $ac_status); } >/dev/null; then
19696 if test -s conftest.err; then
19697 ac_cpp_err=$ac_c_preproc_warn_flag
19698 else
19699 ac_cpp_err=
19700 fi
19701else
19702 ac_cpp_err=yes
19703fi
19704if test -z "$ac_cpp_err"; then
19705 ac_header_preproc=yes
19706else
19707 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000019708sed 's/^/| /' conftest.$ac_ext >&5
19709
John Criswell7a73b802003-06-30 21:59:07 +000019710 ac_header_preproc=no
19711fi
19712rm -f conftest.err conftest.$ac_ext
19713echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19714echo "${ECHO_T}$ac_header_preproc" >&6
19715
19716# So? What about this header?
19717case $ac_header_compiler:$ac_header_preproc in
19718 yes:no )
19719 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19720echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19721 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell392aaa32003-07-22 19:18:09 +000019722echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19723 (
19724 cat <<\_ASBOX
19725## ------------------------------------ ##
19726## Report this to bug-autoconf@gnu.org. ##
19727## ------------------------------------ ##
19728_ASBOX
19729 ) |
19730 sed "s/^/$as_me: WARNING: /" >&2
19731 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019732 no:yes )
19733 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19734echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19735 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19736echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19737 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell392aaa32003-07-22 19:18:09 +000019738echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19739 (
19740 cat <<\_ASBOX
19741## ------------------------------------ ##
19742## Report this to bug-autoconf@gnu.org. ##
19743## ------------------------------------ ##
19744_ASBOX
19745 ) |
19746 sed "s/^/$as_me: WARNING: /" >&2
19747 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019748esac
19749echo "$as_me:$LINENO: checking for $ac_header" >&5
19750echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19751if eval "test \"\${$as_ac_Header+set}\" = set"; then
19752 echo $ECHO_N "(cached) $ECHO_C" >&6
19753else
19754 eval "$as_ac_Header=$ac_header_preproc"
19755fi
19756echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19757echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19758
19759fi
19760if test `eval echo '${'$as_ac_Header'}'` = yes; then
19761 cat >>confdefs.h <<_ACEOF
19762#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19763_ACEOF
19764
19765fi
19766
19767done
19768
19769
19770
19771
19772for ac_header in dlfcn.h link.h
19773do
19774as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19775if eval "test \"\${$as_ac_Header+set}\" = set"; then
19776 echo "$as_me:$LINENO: checking for $ac_header" >&5
19777echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19778if eval "test \"\${$as_ac_Header+set}\" = set"; then
19779 echo $ECHO_N "(cached) $ECHO_C" >&6
19780fi
19781echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19782echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19783else
19784 # Is the header compilable?
19785echo "$as_me:$LINENO: checking $ac_header usability" >&5
19786echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19787cat >conftest.$ac_ext <<_ACEOF
19788#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000019789/* confdefs.h. */
19790_ACEOF
19791cat confdefs.h >>conftest.$ac_ext
19792cat >>conftest.$ac_ext <<_ACEOF
19793/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019794$ac_includes_default
19795#include <$ac_header>
19796_ACEOF
19797rm -f conftest.$ac_objext
19798if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19799 (eval $ac_compile) 2>&5
19800 ac_status=$?
19801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19802 (exit $ac_status); } &&
19803 { ac_try='test -s conftest.$ac_objext'
19804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19805 (eval $ac_try) 2>&5
19806 ac_status=$?
19807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19808 (exit $ac_status); }; }; then
19809 ac_header_compiler=yes
19810else
19811 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000019812sed 's/^/| /' conftest.$ac_ext >&5
19813
John Criswell7a73b802003-06-30 21:59:07 +000019814ac_header_compiler=no
19815fi
19816rm -f conftest.$ac_objext conftest.$ac_ext
19817echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19818echo "${ECHO_T}$ac_header_compiler" >&6
19819
19820# Is the header present?
19821echo "$as_me:$LINENO: checking $ac_header presence" >&5
19822echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19823cat >conftest.$ac_ext <<_ACEOF
19824#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000019825/* confdefs.h. */
19826_ACEOF
19827cat confdefs.h >>conftest.$ac_ext
19828cat >>conftest.$ac_ext <<_ACEOF
19829/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019830#include <$ac_header>
19831_ACEOF
19832if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19833 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19834 ac_status=$?
John Criswell392aaa32003-07-22 19:18:09 +000019835 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000019836 rm -f conftest.er1
19837 cat conftest.err >&5
19838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19839 (exit $ac_status); } >/dev/null; then
19840 if test -s conftest.err; then
19841 ac_cpp_err=$ac_c_preproc_warn_flag
19842 else
19843 ac_cpp_err=
19844 fi
19845else
19846 ac_cpp_err=yes
19847fi
19848if test -z "$ac_cpp_err"; then
19849 ac_header_preproc=yes
19850else
19851 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000019852sed 's/^/| /' conftest.$ac_ext >&5
19853
John Criswell7a73b802003-06-30 21:59:07 +000019854 ac_header_preproc=no
19855fi
19856rm -f conftest.err conftest.$ac_ext
19857echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19858echo "${ECHO_T}$ac_header_preproc" >&6
19859
19860# So? What about this header?
19861case $ac_header_compiler:$ac_header_preproc in
19862 yes:no )
19863 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19864echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19865 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell392aaa32003-07-22 19:18:09 +000019866echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19867 (
19868 cat <<\_ASBOX
19869## ------------------------------------ ##
19870## Report this to bug-autoconf@gnu.org. ##
19871## ------------------------------------ ##
19872_ASBOX
19873 ) |
19874 sed "s/^/$as_me: WARNING: /" >&2
19875 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019876 no:yes )
19877 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19878echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19879 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19880echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19881 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell392aaa32003-07-22 19:18:09 +000019882echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19883 (
19884 cat <<\_ASBOX
19885## ------------------------------------ ##
19886## Report this to bug-autoconf@gnu.org. ##
19887## ------------------------------------ ##
19888_ASBOX
19889 ) |
19890 sed "s/^/$as_me: WARNING: /" >&2
19891 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019892esac
19893echo "$as_me:$LINENO: checking for $ac_header" >&5
19894echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19895if eval "test \"\${$as_ac_Header+set}\" = set"; then
19896 echo $ECHO_N "(cached) $ECHO_C" >&6
19897else
19898 eval "$as_ac_Header=$ac_header_preproc"
19899fi
19900echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19901echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19902
19903fi
19904if test `eval echo '${'$as_ac_Header'}'` = yes; then
19905 cat >>confdefs.h <<_ACEOF
19906#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19907_ACEOF
19908
19909fi
19910
19911done
19912
19913
19914
John Criswell7a73b802003-06-30 21:59:07 +000019915echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
19916echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
19917if test "${ac_cv_c_const+set}" = set; then
19918 echo $ECHO_N "(cached) $ECHO_C" >&6
19919else
19920 cat >conftest.$ac_ext <<_ACEOF
19921#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +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 +000019927
John Criswell7a73b802003-06-30 21:59:07 +000019928int
19929main ()
19930{
19931/* FIXME: Include the comments suggested by Paul. */
19932#ifndef __cplusplus
19933 /* Ultrix mips cc rejects this. */
19934 typedef int charset[2];
19935 const charset x;
19936 /* SunOS 4.1.1 cc rejects this. */
19937 char const *const *ccp;
19938 char **p;
19939 /* NEC SVR4.0.2 mips cc rejects this. */
19940 struct point {int x, y;};
19941 static struct point const zero = {0,0};
19942 /* AIX XL C 1.02.0.0 rejects this.
19943 It does not let you subtract one const X* pointer from another in
19944 an arm of an if-expression whose if-part is not a constant
19945 expression */
19946 const char *g = "string";
19947 ccp = &g + (g ? g-g : 0);
19948 /* HPUX 7.0 cc rejects these. */
19949 ++ccp;
19950 p = (char**) ccp;
19951 ccp = (char const *const *) p;
19952 { /* SCO 3.2v4 cc rejects this. */
19953 char *t;
19954 char const *s = 0 ? (char *) 0 : (char const *) 0;
19955
19956 *t++ = 0;
19957 }
19958 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
19959 int x[] = {25, 17};
19960 const int *foo = &x[0];
19961 ++foo;
19962 }
19963 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19964 typedef const int *iptr;
19965 iptr p = 0;
19966 ++p;
19967 }
19968 { /* AIX XL C 1.02.0.0 rejects this saying
19969 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19970 struct s { int j; const int *ap[3]; };
19971 struct s *b; b->j = 5;
19972 }
19973 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19974 const int foo = 10;
19975 }
19976#endif
19977
19978 ;
19979 return 0;
19980}
19981_ACEOF
19982rm -f conftest.$ac_objext
19983if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19984 (eval $ac_compile) 2>&5
19985 ac_status=$?
19986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19987 (exit $ac_status); } &&
19988 { ac_try='test -s conftest.$ac_objext'
19989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19990 (eval $ac_try) 2>&5
19991 ac_status=$?
19992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19993 (exit $ac_status); }; }; then
19994 ac_cv_c_const=yes
19995else
19996 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000019997sed 's/^/| /' conftest.$ac_ext >&5
19998
John Criswell7a73b802003-06-30 21:59:07 +000019999ac_cv_c_const=no
20000fi
20001rm -f conftest.$ac_objext conftest.$ac_ext
20002fi
20003echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20004echo "${ECHO_T}$ac_cv_c_const" >&6
20005if test $ac_cv_c_const = no; then
20006
20007cat >>confdefs.h <<\_ACEOF
20008#define const
20009_ACEOF
20010
20011fi
20012
20013echo "$as_me:$LINENO: checking for inline" >&5
20014echo $ECHO_N "checking for inline... $ECHO_C" >&6
20015if test "${ac_cv_c_inline+set}" = set; then
20016 echo $ECHO_N "(cached) $ECHO_C" >&6
20017else
20018 ac_cv_c_inline=no
20019for ac_kw in inline __inline__ __inline; do
20020 cat >conftest.$ac_ext <<_ACEOF
20021#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000020022/* confdefs.h. */
20023_ACEOF
20024cat confdefs.h >>conftest.$ac_ext
20025cat >>conftest.$ac_ext <<_ACEOF
20026/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020027#ifndef __cplusplus
John Criswell392aaa32003-07-22 19:18:09 +000020028typedef int foo_t;
20029static $ac_kw foo_t static_foo () {return 0; }
20030$ac_kw foo_t foo () {return 0; }
John Criswell7a73b802003-06-30 21:59:07 +000020031#endif
20032
20033_ACEOF
20034rm -f conftest.$ac_objext
20035if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20036 (eval $ac_compile) 2>&5
20037 ac_status=$?
20038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20039 (exit $ac_status); } &&
20040 { ac_try='test -s conftest.$ac_objext'
20041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20042 (eval $ac_try) 2>&5
20043 ac_status=$?
20044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20045 (exit $ac_status); }; }; then
20046 ac_cv_c_inline=$ac_kw; break
20047else
20048 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000020049sed 's/^/| /' conftest.$ac_ext >&5
20050
John Criswell7a73b802003-06-30 21:59:07 +000020051fi
20052rm -f conftest.$ac_objext conftest.$ac_ext
20053done
20054
20055fi
20056echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
20057echo "${ECHO_T}$ac_cv_c_inline" >&6
20058case $ac_cv_c_inline in
20059 inline | yes) ;;
20060 no)
20061cat >>confdefs.h <<\_ACEOF
20062#define inline
20063_ACEOF
20064 ;;
20065 *) cat >>confdefs.h <<_ACEOF
20066#define inline $ac_cv_c_inline
20067_ACEOF
20068 ;;
20069esac
20070
20071
20072echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20073echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
20074if test "${ac_cv_c_bigendian+set}" = set; then
20075 echo $ECHO_N "(cached) $ECHO_C" >&6
20076else
20077 # See if sys/param.h defines the BYTE_ORDER macro.
20078cat >conftest.$ac_ext <<_ACEOF
20079#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000020080/* confdefs.h. */
20081_ACEOF
20082cat confdefs.h >>conftest.$ac_ext
20083cat >>conftest.$ac_ext <<_ACEOF
20084/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020085#include <sys/types.h>
20086#include <sys/param.h>
20087
John Criswell7a73b802003-06-30 21:59:07 +000020088int
20089main ()
20090{
20091#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
20092 bogus endian macros
20093#endif
20094
20095 ;
20096 return 0;
20097}
20098_ACEOF
20099rm -f conftest.$ac_objext
20100if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20101 (eval $ac_compile) 2>&5
20102 ac_status=$?
20103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20104 (exit $ac_status); } &&
20105 { ac_try='test -s conftest.$ac_objext'
20106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20107 (eval $ac_try) 2>&5
20108 ac_status=$?
20109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20110 (exit $ac_status); }; }; then
20111 # It does; now see whether it defined to BIG_ENDIAN or not.
20112cat >conftest.$ac_ext <<_ACEOF
20113#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000020114/* confdefs.h. */
20115_ACEOF
20116cat confdefs.h >>conftest.$ac_ext
20117cat >>conftest.$ac_ext <<_ACEOF
20118/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020119#include <sys/types.h>
20120#include <sys/param.h>
20121
John Criswell7a73b802003-06-30 21:59:07 +000020122int
20123main ()
20124{
20125#if BYTE_ORDER != BIG_ENDIAN
20126 not big endian
20127#endif
20128
20129 ;
20130 return 0;
20131}
20132_ACEOF
20133rm -f conftest.$ac_objext
20134if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20135 (eval $ac_compile) 2>&5
20136 ac_status=$?
20137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20138 (exit $ac_status); } &&
20139 { ac_try='test -s conftest.$ac_objext'
20140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20141 (eval $ac_try) 2>&5
20142 ac_status=$?
20143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20144 (exit $ac_status); }; }; then
20145 ac_cv_c_bigendian=yes
20146else
20147 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000020148sed 's/^/| /' conftest.$ac_ext >&5
20149
John Criswell7a73b802003-06-30 21:59:07 +000020150ac_cv_c_bigendian=no
20151fi
20152rm -f conftest.$ac_objext conftest.$ac_ext
20153else
20154 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000020155sed 's/^/| /' conftest.$ac_ext >&5
20156
John Criswell7a73b802003-06-30 21:59:07 +000020157# It does not; compile a test program.
20158if test "$cross_compiling" = yes; then
John Criswell392aaa32003-07-22 19:18:09 +000020159 # try to guess the endianness by grepping values into an object file
John Criswell7a73b802003-06-30 21:59:07 +000020160 ac_cv_c_bigendian=unknown
20161 cat >conftest.$ac_ext <<_ACEOF
20162#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000020163/* confdefs.h. */
20164_ACEOF
20165cat confdefs.h >>conftest.$ac_ext
20166cat >>conftest.$ac_ext <<_ACEOF
20167/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020168short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20169short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20170void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
20171short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20172short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20173void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
John Criswell7a73b802003-06-30 21:59:07 +000020174int
20175main ()
20176{
20177 _ascii (); _ebcdic ();
20178 ;
20179 return 0;
20180}
20181_ACEOF
20182rm -f conftest.$ac_objext
20183if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20184 (eval $ac_compile) 2>&5
20185 ac_status=$?
20186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20187 (exit $ac_status); } &&
20188 { ac_try='test -s conftest.$ac_objext'
20189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20190 (eval $ac_try) 2>&5
20191 ac_status=$?
20192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20193 (exit $ac_status); }; }; then
John Criswell392aaa32003-07-22 19:18:09 +000020194 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
John Criswell7a73b802003-06-30 21:59:07 +000020195 ac_cv_c_bigendian=yes
20196fi
John Criswell392aaa32003-07-22 19:18:09 +000020197if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
John Criswell7a73b802003-06-30 21:59:07 +000020198 if test "$ac_cv_c_bigendian" = unknown; then
20199 ac_cv_c_bigendian=no
20200 else
20201 # finding both strings is unlikely to happen, but who knows?
20202 ac_cv_c_bigendian=unknown
20203 fi
20204fi
20205else
20206 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000020207sed 's/^/| /' conftest.$ac_ext >&5
20208
John Criswell7a73b802003-06-30 21:59:07 +000020209fi
20210rm -f conftest.$ac_objext conftest.$ac_ext
20211else
20212 cat >conftest.$ac_ext <<_ACEOF
20213#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000020214/* confdefs.h. */
20215_ACEOF
20216cat confdefs.h >>conftest.$ac_ext
20217cat >>conftest.$ac_ext <<_ACEOF
20218/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020219int
20220main ()
20221{
20222 /* Are we little or big endian? From Harbison&Steele. */
20223 union
20224 {
20225 long l;
20226 char c[sizeof (long)];
20227 } u;
20228 u.l = 1;
20229 exit (u.c[sizeof (long) - 1] == 1);
20230}
20231_ACEOF
20232rm -f conftest$ac_exeext
20233if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20234 (eval $ac_link) 2>&5
20235 ac_status=$?
20236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20237 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20239 (eval $ac_try) 2>&5
20240 ac_status=$?
20241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20242 (exit $ac_status); }; }; then
20243 ac_cv_c_bigendian=no
20244else
20245 echo "$as_me: program exited with status $ac_status" >&5
20246echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000020247sed 's/^/| /' conftest.$ac_ext >&5
20248
John Criswell7a73b802003-06-30 21:59:07 +000020249( exit $ac_status )
20250ac_cv_c_bigendian=yes
20251fi
John Criswell392aaa32003-07-22 19:18:09 +000020252rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000020253fi
20254fi
20255rm -f conftest.$ac_objext conftest.$ac_ext
20256fi
20257echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20258echo "${ECHO_T}$ac_cv_c_bigendian" >&6
20259case $ac_cv_c_bigendian in
20260 yes)
20261 cat >>confdefs.h <<\_ACEOF
20262#define ENDIAN_BIG 1
20263_ACEOF
20264 ;;
20265 no)
20266 cat >>confdefs.h <<\_ACEOF
20267#define ENDIAN_LITTLE 1
20268_ACEOF
20269 ;;
20270 *)
John Criswell392aaa32003-07-22 19:18:09 +000020271 { { echo "$as_me:$LINENO: error: unknown endianness
John Criswell7a73b802003-06-30 21:59:07 +000020272presetting ac_cv_c_bigendian=no (or yes) will help" >&5
John Criswell392aaa32003-07-22 19:18:09 +000020273echo "$as_me: error: unknown endianness
John Criswell7a73b802003-06-30 21:59:07 +000020274presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
20275 { (exit 1); exit 1; }; } ;;
20276esac
20277
20278
20279echo "$as_me:$LINENO: checking for pid_t" >&5
20280echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
20281if test "${ac_cv_type_pid_t+set}" = set; then
20282 echo $ECHO_N "(cached) $ECHO_C" >&6
20283else
20284 cat >conftest.$ac_ext <<_ACEOF
20285#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +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$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000020292int
20293main ()
20294{
20295if ((pid_t *) 0)
20296 return 0;
20297if (sizeof (pid_t))
20298 return 0;
20299 ;
20300 return 0;
20301}
20302_ACEOF
20303rm -f conftest.$ac_objext
20304if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20305 (eval $ac_compile) 2>&5
20306 ac_status=$?
20307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20308 (exit $ac_status); } &&
20309 { ac_try='test -s conftest.$ac_objext'
20310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20311 (eval $ac_try) 2>&5
20312 ac_status=$?
20313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20314 (exit $ac_status); }; }; then
20315 ac_cv_type_pid_t=yes
20316else
20317 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000020318sed 's/^/| /' conftest.$ac_ext >&5
20319
John Criswell7a73b802003-06-30 21:59:07 +000020320ac_cv_type_pid_t=no
20321fi
20322rm -f conftest.$ac_objext conftest.$ac_ext
20323fi
20324echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
20325echo "${ECHO_T}$ac_cv_type_pid_t" >&6
20326if test $ac_cv_type_pid_t = yes; then
20327 :
20328else
20329
20330cat >>confdefs.h <<_ACEOF
20331#define pid_t int
20332_ACEOF
20333
20334fi
20335
20336echo "$as_me:$LINENO: checking for size_t" >&5
20337echo $ECHO_N "checking for size_t... $ECHO_C" >&6
20338if test "${ac_cv_type_size_t+set}" = set; then
20339 echo $ECHO_N "(cached) $ECHO_C" >&6
20340else
20341 cat >conftest.$ac_ext <<_ACEOF
20342#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000020343/* confdefs.h. */
20344_ACEOF
20345cat confdefs.h >>conftest.$ac_ext
20346cat >>conftest.$ac_ext <<_ACEOF
20347/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020348$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000020349int
20350main ()
20351{
20352if ((size_t *) 0)
20353 return 0;
20354if (sizeof (size_t))
20355 return 0;
20356 ;
20357 return 0;
20358}
20359_ACEOF
20360rm -f conftest.$ac_objext
20361if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20362 (eval $ac_compile) 2>&5
20363 ac_status=$?
20364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20365 (exit $ac_status); } &&
20366 { ac_try='test -s conftest.$ac_objext'
20367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20368 (eval $ac_try) 2>&5
20369 ac_status=$?
20370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20371 (exit $ac_status); }; }; then
20372 ac_cv_type_size_t=yes
20373else
20374 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000020375sed 's/^/| /' conftest.$ac_ext >&5
20376
John Criswell7a73b802003-06-30 21:59:07 +000020377ac_cv_type_size_t=no
20378fi
20379rm -f conftest.$ac_objext conftest.$ac_ext
20380fi
20381echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20382echo "${ECHO_T}$ac_cv_type_size_t" >&6
20383if test $ac_cv_type_size_t = yes; then
20384 :
20385else
20386
20387cat >>confdefs.h <<_ACEOF
20388#define size_t unsigned
20389_ACEOF
20390
20391fi
20392
20393echo "$as_me:$LINENO: checking for int64_t" >&5
20394echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
20395if test "${ac_cv_type_int64_t+set}" = set; then
20396 echo $ECHO_N "(cached) $ECHO_C" >&6
20397else
20398 cat >conftest.$ac_ext <<_ACEOF
20399#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000020400/* confdefs.h. */
20401_ACEOF
20402cat confdefs.h >>conftest.$ac_ext
20403cat >>conftest.$ac_ext <<_ACEOF
20404/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020405$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000020406int
20407main ()
20408{
20409if ((int64_t *) 0)
20410 return 0;
20411if (sizeof (int64_t))
20412 return 0;
20413 ;
20414 return 0;
20415}
20416_ACEOF
20417rm -f conftest.$ac_objext
20418if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20419 (eval $ac_compile) 2>&5
20420 ac_status=$?
20421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20422 (exit $ac_status); } &&
20423 { ac_try='test -s conftest.$ac_objext'
20424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20425 (eval $ac_try) 2>&5
20426 ac_status=$?
20427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20428 (exit $ac_status); }; }; then
20429 ac_cv_type_int64_t=yes
20430else
20431 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000020432sed 's/^/| /' conftest.$ac_ext >&5
20433
John Criswell7a73b802003-06-30 21:59:07 +000020434ac_cv_type_int64_t=no
20435fi
20436rm -f conftest.$ac_objext conftest.$ac_ext
20437fi
20438echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
20439echo "${ECHO_T}$ac_cv_type_int64_t" >&6
20440if test $ac_cv_type_int64_t = yes; then
20441
20442cat >>confdefs.h <<_ACEOF
20443#define HAVE_INT64_T 1
20444_ACEOF
20445
20446
20447else
20448 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
20449echo "$as_me: error: Type int64_t required but not found" >&2;}
20450 { (exit 1); exit 1; }; }
20451fi
20452
20453echo "$as_me:$LINENO: checking for uint64_t" >&5
20454echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
20455if test "${ac_cv_type_uint64_t+set}" = set; then
20456 echo $ECHO_N "(cached) $ECHO_C" >&6
20457else
20458 cat >conftest.$ac_ext <<_ACEOF
20459#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000020460/* confdefs.h. */
20461_ACEOF
20462cat confdefs.h >>conftest.$ac_ext
20463cat >>conftest.$ac_ext <<_ACEOF
20464/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020465$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000020466int
20467main ()
20468{
20469if ((uint64_t *) 0)
20470 return 0;
20471if (sizeof (uint64_t))
20472 return 0;
20473 ;
20474 return 0;
20475}
20476_ACEOF
20477rm -f conftest.$ac_objext
20478if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20479 (eval $ac_compile) 2>&5
20480 ac_status=$?
20481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20482 (exit $ac_status); } &&
20483 { ac_try='test -s conftest.$ac_objext'
20484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20485 (eval $ac_try) 2>&5
20486 ac_status=$?
20487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20488 (exit $ac_status); }; }; then
20489 ac_cv_type_uint64_t=yes
20490else
20491 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000020492sed 's/^/| /' conftest.$ac_ext >&5
20493
John Criswell7a73b802003-06-30 21:59:07 +000020494ac_cv_type_uint64_t=no
20495fi
20496rm -f conftest.$ac_objext conftest.$ac_ext
20497fi
20498echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
20499echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
20500if test $ac_cv_type_uint64_t = yes; then
20501
20502cat >>confdefs.h <<_ACEOF
20503#define HAVE_UINT64_T 1
20504_ACEOF
20505
20506
20507else
20508 { { echo "$as_me:$LINENO: error: Type uint64_t required but not found" >&5
20509echo "$as_me: error: Type uint64_t required but not found" >&2;}
20510 { (exit 1); exit 1; }; }
20511fi
20512
20513echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20514echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
20515if test "${ac_cv_header_time+set}" = set; then
20516 echo $ECHO_N "(cached) $ECHO_C" >&6
20517else
20518 cat >conftest.$ac_ext <<_ACEOF
20519#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000020520/* confdefs.h. */
20521_ACEOF
20522cat confdefs.h >>conftest.$ac_ext
20523cat >>conftest.$ac_ext <<_ACEOF
20524/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020525#include <sys/types.h>
20526#include <sys/time.h>
20527#include <time.h>
20528
John Criswell7a73b802003-06-30 21:59:07 +000020529int
20530main ()
20531{
20532if ((struct tm *) 0)
20533return 0;
20534 ;
20535 return 0;
20536}
20537_ACEOF
20538rm -f conftest.$ac_objext
20539if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20540 (eval $ac_compile) 2>&5
20541 ac_status=$?
20542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20543 (exit $ac_status); } &&
20544 { ac_try='test -s conftest.$ac_objext'
20545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20546 (eval $ac_try) 2>&5
20547 ac_status=$?
20548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20549 (exit $ac_status); }; }; then
20550 ac_cv_header_time=yes
20551else
20552 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000020553sed 's/^/| /' conftest.$ac_ext >&5
20554
John Criswell7a73b802003-06-30 21:59:07 +000020555ac_cv_header_time=no
20556fi
20557rm -f conftest.$ac_objext conftest.$ac_ext
20558fi
20559echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20560echo "${ECHO_T}$ac_cv_header_time" >&6
20561if test $ac_cv_header_time = yes; then
20562
20563cat >>confdefs.h <<\_ACEOF
20564#define TIME_WITH_SYS_TIME 1
20565_ACEOF
20566
20567fi
20568
20569echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20570echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
20571if test "${ac_cv_struct_tm+set}" = set; then
20572 echo $ECHO_N "(cached) $ECHO_C" >&6
20573else
20574 cat >conftest.$ac_ext <<_ACEOF
20575#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000020576/* confdefs.h. */
20577_ACEOF
20578cat confdefs.h >>conftest.$ac_ext
20579cat >>conftest.$ac_ext <<_ACEOF
20580/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020581#include <sys/types.h>
20582#include <time.h>
20583
John Criswell7a73b802003-06-30 21:59:07 +000020584int
20585main ()
20586{
20587struct tm *tp; tp->tm_sec;
20588 ;
20589 return 0;
20590}
20591_ACEOF
20592rm -f conftest.$ac_objext
20593if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20594 (eval $ac_compile) 2>&5
20595 ac_status=$?
20596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20597 (exit $ac_status); } &&
20598 { ac_try='test -s conftest.$ac_objext'
20599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20600 (eval $ac_try) 2>&5
20601 ac_status=$?
20602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20603 (exit $ac_status); }; }; then
20604 ac_cv_struct_tm=time.h
20605else
20606 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000020607sed 's/^/| /' conftest.$ac_ext >&5
20608
John Criswell7a73b802003-06-30 21:59:07 +000020609ac_cv_struct_tm=sys/time.h
20610fi
20611rm -f conftest.$ac_objext conftest.$ac_ext
20612fi
20613echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
20614echo "${ECHO_T}$ac_cv_struct_tm" >&6
20615if test $ac_cv_struct_tm = sys/time.h; then
20616
20617cat >>confdefs.h <<\_ACEOF
20618#define TM_IN_SYS_TIME 1
20619_ACEOF
20620
20621fi
20622
20623
John Criswell7a73b802003-06-30 21:59:07 +000020624echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
20625echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
20626if test "${ac_cv_cxx_namespaces+set}" = set; then
20627 echo $ECHO_N "(cached) $ECHO_C" >&6
20628else
20629
20630
20631 ac_ext=cc
20632ac_cpp='$CXXCPP $CPPFLAGS'
20633ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20634ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20635ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20636
20637 cat >conftest.$ac_ext <<_ACEOF
20638#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000020639/* confdefs.h. */
20640_ACEOF
20641cat confdefs.h >>conftest.$ac_ext
20642cat >>conftest.$ac_ext <<_ACEOF
20643/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020644namespace Outer { namespace Inner { int i = 0; }}
John Criswell7a73b802003-06-30 21:59:07 +000020645int
20646main ()
20647{
20648using namespace Outer::Inner; return i;
20649 ;
20650 return 0;
20651}
20652_ACEOF
20653rm -f conftest.$ac_objext
20654if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20655 (eval $ac_compile) 2>&5
20656 ac_status=$?
20657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20658 (exit $ac_status); } &&
20659 { ac_try='test -s conftest.$ac_objext'
20660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20661 (eval $ac_try) 2>&5
20662 ac_status=$?
20663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20664 (exit $ac_status); }; }; then
20665 ac_cv_cxx_namespaces=yes
20666else
20667 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000020668sed 's/^/| /' conftest.$ac_ext >&5
20669
John Criswell7a73b802003-06-30 21:59:07 +000020670ac_cv_cxx_namespaces=no
20671fi
20672rm -f conftest.$ac_objext conftest.$ac_ext
20673 ac_ext=c
20674ac_cpp='$CPP $CPPFLAGS'
20675ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20676ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20677ac_compiler_gnu=$ac_cv_c_compiler_gnu
20678
20679
20680fi
20681echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
20682echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
20683if test "$ac_cv_cxx_namespaces" = yes; then
20684
20685cat >>confdefs.h <<\_ACEOF
20686#define HAVE_NAMESPACES
20687_ACEOF
20688
20689fi
20690
20691echo "$as_me:$LINENO: checking whether the compiler has ext/hash_map" >&5
20692echo $ECHO_N "checking whether the compiler has ext/hash_map... $ECHO_C" >&6
20693if test "${ac_cv_cxx_have_ext_hash_map+set}" = set; then
20694 echo $ECHO_N "(cached) $ECHO_C" >&6
20695else
20696
20697
20698
20699 ac_ext=cc
20700ac_cpp='$CXXCPP $CPPFLAGS'
20701ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20702ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20703ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20704
20705 cat >conftest.$ac_ext <<_ACEOF
20706#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000020707/* confdefs.h. */
20708_ACEOF
20709cat confdefs.h >>conftest.$ac_ext
20710cat >>conftest.$ac_ext <<_ACEOF
20711/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020712#include <ext/hash_map>
20713#ifdef HAVE_NAMESPACES
20714using namespace std;
20715#endif
John Criswell7a73b802003-06-30 21:59:07 +000020716int
20717main ()
20718{
20719hash_map<int, int> t; return 0;
20720 ;
20721 return 0;
20722}
20723_ACEOF
20724rm -f conftest.$ac_objext
20725if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20726 (eval $ac_compile) 2>&5
20727 ac_status=$?
20728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20729 (exit $ac_status); } &&
20730 { ac_try='test -s conftest.$ac_objext'
20731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20732 (eval $ac_try) 2>&5
20733 ac_status=$?
20734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20735 (exit $ac_status); }; }; then
20736 ac_cv_cxx_have_ext_hash_map=std
20737else
20738 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000020739sed 's/^/| /' conftest.$ac_ext >&5
20740
John Criswell7a73b802003-06-30 21:59:07 +000020741ac_cv_cxx_have_ext_hash_map=no
20742fi
20743rm -f conftest.$ac_objext conftest.$ac_ext
20744 cat >conftest.$ac_ext <<_ACEOF
20745#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000020746/* confdefs.h. */
20747_ACEOF
20748cat confdefs.h >>conftest.$ac_ext
20749cat >>conftest.$ac_ext <<_ACEOF
20750/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020751#include <ext/hash_map>
20752#ifdef HAVE_NAMESPACES
20753using namespace __gnu_cxx;
20754#endif
John Criswell7a73b802003-06-30 21:59:07 +000020755int
20756main ()
20757{
20758hash_map<int, int> t; return 0;
20759 ;
20760 return 0;
20761}
20762_ACEOF
20763rm -f conftest.$ac_objext
20764if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20765 (eval $ac_compile) 2>&5
20766 ac_status=$?
20767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20768 (exit $ac_status); } &&
20769 { ac_try='test -s conftest.$ac_objext'
20770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20771 (eval $ac_try) 2>&5
20772 ac_status=$?
20773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20774 (exit $ac_status); }; }; then
20775 ac_cv_cxx_have_ext_hash_map=gnu
20776else
20777 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000020778sed 's/^/| /' conftest.$ac_ext >&5
20779
John Criswell7a73b802003-06-30 21:59:07 +000020780ac_cv_cxx_have_ext_hash_map=no
20781fi
20782rm -f conftest.$ac_objext conftest.$ac_ext
20783 ac_ext=c
20784ac_cpp='$CPP $CPPFLAGS'
20785ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20786ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20787ac_compiler_gnu=$ac_cv_c_compiler_gnu
20788
20789
20790fi
20791echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_hash_map" >&5
20792echo "${ECHO_T}$ac_cv_cxx_have_ext_hash_map" >&6
20793if test "$ac_cv_cxx_have_ext_hash_map" = std; then
20794
20795cat >>confdefs.h <<\_ACEOF
20796#define HAVE_STD_EXT_HASH_MAP
20797_ACEOF
20798
20799fi
20800if test "$ac_cv_cxx_have_ext_hash_map" = gnu; then
20801
20802cat >>confdefs.h <<\_ACEOF
20803#define HAVE_GNU_EXT_HASH_MAP
20804_ACEOF
20805
20806fi
20807
20808echo "$as_me:$LINENO: checking whether the compiler has ext/hash_set" >&5
20809echo $ECHO_N "checking whether the compiler has ext/hash_set... $ECHO_C" >&6
20810if test "${ac_cv_cxx_have_ext_hash_set+set}" = set; then
20811 echo $ECHO_N "(cached) $ECHO_C" >&6
20812else
20813
20814
20815
20816 ac_ext=cc
20817ac_cpp='$CXXCPP $CPPFLAGS'
20818ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20819ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20820ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20821
20822 cat >conftest.$ac_ext <<_ACEOF
20823#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000020824/* confdefs.h. */
20825_ACEOF
20826cat confdefs.h >>conftest.$ac_ext
20827cat >>conftest.$ac_ext <<_ACEOF
20828/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020829#include <ext/hash_set>
20830#ifdef HAVE_NAMESPACES
20831using namespace std;
20832#endif
John Criswell7a73b802003-06-30 21:59:07 +000020833int
20834main ()
20835{
20836hash_set<int> t; return 0;
20837 ;
20838 return 0;
20839}
20840_ACEOF
20841rm -f conftest.$ac_objext
20842if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20843 (eval $ac_compile) 2>&5
20844 ac_status=$?
20845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20846 (exit $ac_status); } &&
20847 { ac_try='test -s conftest.$ac_objext'
20848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20849 (eval $ac_try) 2>&5
20850 ac_status=$?
20851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20852 (exit $ac_status); }; }; then
20853 ac_cv_cxx_have_ext_hash_set=std
20854else
20855 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000020856sed 's/^/| /' conftest.$ac_ext >&5
20857
John Criswell7a73b802003-06-30 21:59:07 +000020858ac_cv_cxx_have_ext_hash_set=no
20859fi
20860rm -f conftest.$ac_objext conftest.$ac_ext
20861 cat >conftest.$ac_ext <<_ACEOF
20862#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000020863/* confdefs.h. */
20864_ACEOF
20865cat confdefs.h >>conftest.$ac_ext
20866cat >>conftest.$ac_ext <<_ACEOF
20867/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020868#include <ext/hash_set>
20869#ifdef HAVE_NAMESPACES
20870using namespace __gnu_cxx;
20871#endif
John Criswell7a73b802003-06-30 21:59:07 +000020872int
20873main ()
20874{
20875hash_set<int> t; return 0;
20876 ;
20877 return 0;
20878}
20879_ACEOF
20880rm -f conftest.$ac_objext
20881if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20882 (eval $ac_compile) 2>&5
20883 ac_status=$?
20884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20885 (exit $ac_status); } &&
20886 { ac_try='test -s conftest.$ac_objext'
20887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20888 (eval $ac_try) 2>&5
20889 ac_status=$?
20890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20891 (exit $ac_status); }; }; then
20892 ac_cv_cxx_have_ext_hash_set=gnu
20893else
20894 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000020895sed 's/^/| /' conftest.$ac_ext >&5
20896
John Criswell7a73b802003-06-30 21:59:07 +000020897ac_cv_cxx_have_ext_hash_set=no
20898fi
20899rm -f conftest.$ac_objext conftest.$ac_ext
20900 ac_ext=c
20901ac_cpp='$CPP $CPPFLAGS'
20902ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20903ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20904ac_compiler_gnu=$ac_cv_c_compiler_gnu
20905
20906
20907fi
20908echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_hash_set" >&5
20909echo "${ECHO_T}$ac_cv_cxx_have_ext_hash_set" >&6
20910if test "$ac_cv_cxx_have_ext_hash_set" = std; then
20911
20912cat >>confdefs.h <<\_ACEOF
20913#define HAVE_STD_EXT_HASH_SET
20914_ACEOF
20915
20916fi
20917if test "$ac_cv_cxx_have_ext_hash_set" = gnu; then
20918
20919cat >>confdefs.h <<\_ACEOF
20920#define HAVE_GNU_EXT_HASH_SET
20921_ACEOF
20922
20923fi
20924
20925echo "$as_me:$LINENO: checking whether the compiler has ext/slist" >&5
20926echo $ECHO_N "checking whether the compiler has ext/slist... $ECHO_C" >&6
20927if test "${ac_cv_cxx_have_ext_slist+set}" = set; then
20928 echo $ECHO_N "(cached) $ECHO_C" >&6
20929else
20930
20931
20932
20933 ac_ext=cc
20934ac_cpp='$CXXCPP $CPPFLAGS'
20935ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20936ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20937ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20938
20939 cat >conftest.$ac_ext <<_ACEOF
20940#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000020941/* confdefs.h. */
20942_ACEOF
20943cat confdefs.h >>conftest.$ac_ext
20944cat >>conftest.$ac_ext <<_ACEOF
20945/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020946#include <ext/slist>
20947#ifdef HAVE_NAMESPACES
20948using namespace std;
20949#endif
John Criswell7a73b802003-06-30 21:59:07 +000020950int
20951main ()
20952{
20953slist<int> s; return 0;
20954 ;
20955 return 0;
20956}
20957_ACEOF
20958rm -f conftest.$ac_objext
20959if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20960 (eval $ac_compile) 2>&5
20961 ac_status=$?
20962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20963 (exit $ac_status); } &&
20964 { ac_try='test -s conftest.$ac_objext'
20965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20966 (eval $ac_try) 2>&5
20967 ac_status=$?
20968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20969 (exit $ac_status); }; }; then
20970 ac_cv_cxx_have_ext_slist=std
20971else
20972 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000020973sed 's/^/| /' conftest.$ac_ext >&5
20974
John Criswell7a73b802003-06-30 21:59:07 +000020975ac_cv_cxx_have_ext_slist=no
20976fi
20977rm -f conftest.$ac_objext conftest.$ac_ext
20978 cat >conftest.$ac_ext <<_ACEOF
20979#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000020980/* confdefs.h. */
20981_ACEOF
20982cat confdefs.h >>conftest.$ac_ext
20983cat >>conftest.$ac_ext <<_ACEOF
20984/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020985#include <ext/slist>
20986#ifdef HAVE_NAMESPACES
20987using namespace __gnu_cxx;
20988#endif
John Criswell7a73b802003-06-30 21:59:07 +000020989int
20990main ()
20991{
20992slist<int> s; return 0;
20993 ;
20994 return 0;
20995}
20996_ACEOF
20997rm -f conftest.$ac_objext
20998if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20999 (eval $ac_compile) 2>&5
21000 ac_status=$?
21001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21002 (exit $ac_status); } &&
21003 { ac_try='test -s conftest.$ac_objext'
21004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21005 (eval $ac_try) 2>&5
21006 ac_status=$?
21007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21008 (exit $ac_status); }; }; then
21009 ac_cv_cxx_have_ext_slist=gnu
21010else
21011 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000021012sed 's/^/| /' conftest.$ac_ext >&5
21013
John Criswell7a73b802003-06-30 21:59:07 +000021014ac_cv_cxx_have_ext_slist=no
21015fi
21016rm -f conftest.$ac_objext conftest.$ac_ext
21017
21018 ac_ext=c
21019ac_cpp='$CPP $CPPFLAGS'
21020ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21021ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21022ac_compiler_gnu=$ac_cv_c_compiler_gnu
21023
21024
21025fi
21026echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_slist" >&5
21027echo "${ECHO_T}$ac_cv_cxx_have_ext_slist" >&6
21028if test "$ac_cv_cxx_have_ext_slist" = std; then
21029
21030cat >>confdefs.h <<\_ACEOF
21031#define HAVE_EXT_SLIST std
21032_ACEOF
21033
21034fi
21035if test "$ac_cv_cxx_have_ext_slist" = gnu; then
21036
21037cat >>confdefs.h <<\_ACEOF
21038#define HAVE_EXT_SLIST gnu
21039_ACEOF
21040
21041fi
21042
21043echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
21044echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
21045if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
21046 echo $ECHO_N "(cached) $ECHO_C" >&6
21047else
21048
21049
21050
21051 ac_ext=cc
21052ac_cpp='$CXXCPP $CPPFLAGS'
21053ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21054ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21055ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21056
21057 cat >conftest.$ac_ext <<_ACEOF
21058#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000021059/* confdefs.h. */
21060_ACEOF
21061cat confdefs.h >>conftest.$ac_ext
21062cat >>conftest.$ac_ext <<_ACEOF
21063/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021064#include <iterator>
21065#ifdef HAVE_NAMESPACES
21066using namespace std;
21067#endif
John Criswell7a73b802003-06-30 21:59:07 +000021068int
21069main ()
21070{
21071iterator<int,int,int> t; return 0;
21072 ;
21073 return 0;
21074}
21075_ACEOF
21076rm -f conftest.$ac_objext
21077if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21078 (eval $ac_compile) 2>&5
21079 ac_status=$?
21080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21081 (exit $ac_status); } &&
21082 { ac_try='test -s conftest.$ac_objext'
21083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21084 (eval $ac_try) 2>&5
21085 ac_status=$?
21086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21087 (exit $ac_status); }; }; then
21088 ac_cv_cxx_have_std_iterator=yes
21089else
21090 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000021091sed 's/^/| /' conftest.$ac_ext >&5
21092
John Criswell7a73b802003-06-30 21:59:07 +000021093ac_cv_cxx_have_std_iterator=no
21094fi
21095rm -f conftest.$ac_objext conftest.$ac_ext
21096 ac_ext=c
21097ac_cpp='$CPP $CPPFLAGS'
21098ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21099ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21100ac_compiler_gnu=$ac_cv_c_compiler_gnu
21101
21102
21103fi
21104echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
21105echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
21106if test "$ac_cv_cxx_have_std_iterator" = yes; then
21107
21108cat >>confdefs.h <<\_ACEOF
21109#define HAVE_STD_ITERATOR
21110_ACEOF
21111
21112fi
21113
21114echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
21115echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
21116if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
21117 echo $ECHO_N "(cached) $ECHO_C" >&6
21118else
21119
21120
21121
21122 ac_ext=cc
21123ac_cpp='$CXXCPP $CPPFLAGS'
21124ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21125ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21126ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21127
21128 cat >conftest.$ac_ext <<_ACEOF
21129#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000021130/* confdefs.h. */
21131_ACEOF
21132cat confdefs.h >>conftest.$ac_ext
21133cat >>conftest.$ac_ext <<_ACEOF
21134/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021135#include <iterator>
21136#ifdef HAVE_NAMESPACES
21137using namespace std;
21138#endif
John Criswell7a73b802003-06-30 21:59:07 +000021139int
21140main ()
21141{
John Criswellc78022e2003-07-29 19:11:58 +000021142bidirectional_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000021143 ;
21144 return 0;
21145}
21146_ACEOF
21147rm -f conftest.$ac_objext
21148if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21149 (eval $ac_compile) 2>&5
21150 ac_status=$?
21151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21152 (exit $ac_status); } &&
21153 { ac_try='test -s conftest.$ac_objext'
21154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21155 (eval $ac_try) 2>&5
21156 ac_status=$?
21157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21158 (exit $ac_status); }; }; then
21159 ac_cv_cxx_have_bi_iterator=yes
21160else
21161 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000021162sed 's/^/| /' conftest.$ac_ext >&5
21163
John Criswell7a73b802003-06-30 21:59:07 +000021164ac_cv_cxx_have_bi_iterator=no
21165fi
21166rm -f conftest.$ac_objext conftest.$ac_ext
21167 ac_ext=c
21168ac_cpp='$CPP $CPPFLAGS'
21169ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21170ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21171ac_compiler_gnu=$ac_cv_c_compiler_gnu
21172
21173
21174fi
21175echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
21176echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
21177if test "$ac_cv_cxx_have_bi_iterator" = yes; then
21178
21179cat >>confdefs.h <<\_ACEOF
21180#define HAVE_BI_ITERATOR
21181_ACEOF
21182
21183fi
21184
21185echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
21186echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
21187if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
21188 echo $ECHO_N "(cached) $ECHO_C" >&6
21189else
21190
21191
21192
21193 ac_ext=cc
21194ac_cpp='$CXXCPP $CPPFLAGS'
21195ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21196ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21197ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21198
21199 cat >conftest.$ac_ext <<_ACEOF
21200#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000021201/* confdefs.h. */
21202_ACEOF
21203cat confdefs.h >>conftest.$ac_ext
21204cat >>conftest.$ac_ext <<_ACEOF
21205/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021206#include <iterator>
21207#ifdef HAVE_NAMESPACES
21208using namespace std;
21209#endif
John Criswell7a73b802003-06-30 21:59:07 +000021210int
21211main ()
21212{
John Criswellc78022e2003-07-29 19:11:58 +000021213forward_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000021214 ;
21215 return 0;
21216}
21217_ACEOF
21218rm -f conftest.$ac_objext
21219if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21220 (eval $ac_compile) 2>&5
21221 ac_status=$?
21222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21223 (exit $ac_status); } &&
21224 { ac_try='test -s conftest.$ac_objext'
21225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21226 (eval $ac_try) 2>&5
21227 ac_status=$?
21228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21229 (exit $ac_status); }; }; then
21230 ac_cv_cxx_have_fwd_iterator=yes
21231else
21232 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000021233sed 's/^/| /' conftest.$ac_ext >&5
21234
John Criswell7a73b802003-06-30 21:59:07 +000021235ac_cv_cxx_have_fwd_iterator=no
21236fi
21237rm -f conftest.$ac_objext conftest.$ac_ext
21238 ac_ext=c
21239ac_cpp='$CPP $CPPFLAGS'
21240ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21241ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21242ac_compiler_gnu=$ac_cv_c_compiler_gnu
21243
21244
21245fi
21246echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
21247echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
21248if test "$ac_cv_cxx_have_fwd_iterator" = yes; then
21249
21250cat >>confdefs.h <<\_ACEOF
21251#define HAVE_FWD_ITERATOR
21252_ACEOF
21253
21254fi
21255
21256
21257# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
21258# for constant arguments. Useless!
21259echo "$as_me:$LINENO: checking for working alloca.h" >&5
21260echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
21261if test "${ac_cv_working_alloca_h+set}" = set; then
21262 echo $ECHO_N "(cached) $ECHO_C" >&6
21263else
21264 cat >conftest.$ac_ext <<_ACEOF
21265#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000021266/* confdefs.h. */
21267_ACEOF
21268cat confdefs.h >>conftest.$ac_ext
21269cat >>conftest.$ac_ext <<_ACEOF
21270/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021271#include <alloca.h>
John Criswell7a73b802003-06-30 21:59:07 +000021272int
21273main ()
21274{
21275char *p = (char *) alloca (2 * sizeof (int));
21276 ;
21277 return 0;
21278}
21279_ACEOF
21280rm -f conftest.$ac_objext conftest$ac_exeext
21281if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21282 (eval $ac_link) 2>&5
21283 ac_status=$?
21284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21285 (exit $ac_status); } &&
21286 { ac_try='test -s conftest$ac_exeext'
21287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21288 (eval $ac_try) 2>&5
21289 ac_status=$?
21290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21291 (exit $ac_status); }; }; then
21292 ac_cv_working_alloca_h=yes
21293else
21294 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000021295sed 's/^/| /' conftest.$ac_ext >&5
21296
John Criswell7a73b802003-06-30 21:59:07 +000021297ac_cv_working_alloca_h=no
21298fi
21299rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21300fi
21301echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
21302echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
21303if test $ac_cv_working_alloca_h = yes; then
21304
21305cat >>confdefs.h <<\_ACEOF
21306#define HAVE_ALLOCA_H 1
21307_ACEOF
21308
21309fi
21310
21311echo "$as_me:$LINENO: checking for alloca" >&5
21312echo $ECHO_N "checking for alloca... $ECHO_C" >&6
21313if test "${ac_cv_func_alloca_works+set}" = set; then
21314 echo $ECHO_N "(cached) $ECHO_C" >&6
21315else
21316 cat >conftest.$ac_ext <<_ACEOF
21317#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000021318/* confdefs.h. */
21319_ACEOF
21320cat confdefs.h >>conftest.$ac_ext
21321cat >>conftest.$ac_ext <<_ACEOF
21322/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021323#ifdef __GNUC__
21324# define alloca __builtin_alloca
21325#else
21326# ifdef _MSC_VER
21327# include <malloc.h>
21328# define alloca _alloca
21329# else
21330# if HAVE_ALLOCA_H
21331# include <alloca.h>
21332# else
21333# ifdef _AIX
21334 #pragma alloca
21335# else
21336# ifndef alloca /* predefined by HP cc +Olibcalls */
21337char *alloca ();
21338# endif
21339# endif
21340# endif
21341# endif
21342#endif
21343
John Criswell7a73b802003-06-30 21:59:07 +000021344int
21345main ()
21346{
21347char *p = (char *) alloca (1);
21348 ;
21349 return 0;
21350}
21351_ACEOF
21352rm -f conftest.$ac_objext conftest$ac_exeext
21353if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21354 (eval $ac_link) 2>&5
21355 ac_status=$?
21356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21357 (exit $ac_status); } &&
21358 { ac_try='test -s conftest$ac_exeext'
21359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21360 (eval $ac_try) 2>&5
21361 ac_status=$?
21362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21363 (exit $ac_status); }; }; then
21364 ac_cv_func_alloca_works=yes
21365else
21366 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000021367sed 's/^/| /' conftest.$ac_ext >&5
21368
John Criswell7a73b802003-06-30 21:59:07 +000021369ac_cv_func_alloca_works=no
21370fi
21371rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21372fi
21373echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
21374echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
21375
21376if test $ac_cv_func_alloca_works = yes; then
21377
21378cat >>confdefs.h <<\_ACEOF
21379#define HAVE_ALLOCA 1
21380_ACEOF
21381
21382else
21383 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
21384# that cause trouble. Some versions do not even contain alloca or
21385# contain a buggy version. If you still want to use their alloca,
21386# use ar to extract alloca.o from them instead of compiling alloca.c.
21387
21388ALLOCA=alloca.$ac_objext
21389
21390cat >>confdefs.h <<\_ACEOF
21391#define C_ALLOCA 1
21392_ACEOF
21393
21394
21395echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
21396echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
21397if test "${ac_cv_os_cray+set}" = set; then
21398 echo $ECHO_N "(cached) $ECHO_C" >&6
21399else
21400 cat >conftest.$ac_ext <<_ACEOF
21401#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000021402/* confdefs.h. */
21403_ACEOF
21404cat confdefs.h >>conftest.$ac_ext
21405cat >>conftest.$ac_ext <<_ACEOF
21406/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021407#if defined(CRAY) && ! defined(CRAY2)
21408webecray
21409#else
21410wenotbecray
21411#endif
21412
21413_ACEOF
21414if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell392aaa32003-07-22 19:18:09 +000021415 $EGREP "webecray" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000021416 ac_cv_os_cray=yes
21417else
21418 ac_cv_os_cray=no
21419fi
21420rm -f conftest*
21421
21422fi
21423echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
21424echo "${ECHO_T}$ac_cv_os_cray" >&6
21425if test $ac_cv_os_cray = yes; then
21426 for ac_func in _getb67 GETB67 getb67; do
21427 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21428echo "$as_me:$LINENO: checking for $ac_func" >&5
21429echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21430if eval "test \"\${$as_ac_var+set}\" = set"; then
21431 echo $ECHO_N "(cached) $ECHO_C" >&6
21432else
21433 cat >conftest.$ac_ext <<_ACEOF
21434#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000021435/* confdefs.h. */
21436_ACEOF
21437cat confdefs.h >>conftest.$ac_ext
21438cat >>conftest.$ac_ext <<_ACEOF
21439/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021440/* System header to define __stub macros and hopefully few prototypes,
John Criswell392aaa32003-07-22 19:18:09 +000021441 which can conflict with char $ac_func (); below.
21442 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21443 <limits.h> exists even on freestanding compilers. */
21444#ifdef __STDC__
21445# include <limits.h>
21446#else
21447# include <assert.h>
21448#endif
John Criswell7a73b802003-06-30 21:59:07 +000021449/* Override any gcc2 internal prototype to avoid an error. */
21450#ifdef __cplusplus
21451extern "C"
John Criswell392aaa32003-07-22 19:18:09 +000021452{
John Criswell7a73b802003-06-30 21:59:07 +000021453#endif
21454/* We use char because int might match the return type of a gcc2
21455 builtin and then its argument prototype would still apply. */
21456char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000021457/* The GNU C library defines this for functions which it implements
21458 to always fail with ENOSYS. Some functions are actually named
21459 something starting with __ and the normal name is an alias. */
21460#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21461choke me
21462#else
John Criswell392aaa32003-07-22 19:18:09 +000021463char (*f) () = $ac_func;
21464#endif
21465#ifdef __cplusplus
21466}
John Criswell7a73b802003-06-30 21:59:07 +000021467#endif
21468
John Criswell392aaa32003-07-22 19:18:09 +000021469int
21470main ()
21471{
21472return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000021473 ;
21474 return 0;
21475}
21476_ACEOF
21477rm -f conftest.$ac_objext conftest$ac_exeext
21478if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21479 (eval $ac_link) 2>&5
21480 ac_status=$?
21481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21482 (exit $ac_status); } &&
21483 { ac_try='test -s conftest$ac_exeext'
21484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21485 (eval $ac_try) 2>&5
21486 ac_status=$?
21487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21488 (exit $ac_status); }; }; then
21489 eval "$as_ac_var=yes"
21490else
21491 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000021492sed 's/^/| /' conftest.$ac_ext >&5
21493
John Criswell7a73b802003-06-30 21:59:07 +000021494eval "$as_ac_var=no"
21495fi
21496rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21497fi
21498echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21499echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21500if test `eval echo '${'$as_ac_var'}'` = yes; then
21501
21502cat >>confdefs.h <<_ACEOF
21503#define CRAY_STACKSEG_END $ac_func
21504_ACEOF
21505
21506 break
21507fi
21508
21509 done
21510fi
21511
21512echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
21513echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
21514if test "${ac_cv_c_stack_direction+set}" = set; then
21515 echo $ECHO_N "(cached) $ECHO_C" >&6
21516else
21517 if test "$cross_compiling" = yes; then
21518 ac_cv_c_stack_direction=0
21519else
21520 cat >conftest.$ac_ext <<_ACEOF
21521#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000021522/* confdefs.h. */
21523_ACEOF
21524cat confdefs.h >>conftest.$ac_ext
21525cat >>conftest.$ac_ext <<_ACEOF
21526/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021527int
21528find_stack_direction ()
21529{
21530 static char *addr = 0;
21531 auto char dummy;
21532 if (addr == 0)
21533 {
21534 addr = &dummy;
21535 return find_stack_direction ();
21536 }
21537 else
21538 return (&dummy > addr) ? 1 : -1;
21539}
21540
21541int
21542main ()
21543{
21544 exit (find_stack_direction () < 0);
21545}
21546_ACEOF
21547rm -f conftest$ac_exeext
21548if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21549 (eval $ac_link) 2>&5
21550 ac_status=$?
21551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21552 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21554 (eval $ac_try) 2>&5
21555 ac_status=$?
21556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21557 (exit $ac_status); }; }; then
21558 ac_cv_c_stack_direction=1
21559else
21560 echo "$as_me: program exited with status $ac_status" >&5
21561echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000021562sed 's/^/| /' conftest.$ac_ext >&5
21563
John Criswell7a73b802003-06-30 21:59:07 +000021564( exit $ac_status )
21565ac_cv_c_stack_direction=-1
21566fi
John Criswell392aaa32003-07-22 19:18:09 +000021567rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021568fi
21569fi
21570echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
21571echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
21572
21573cat >>confdefs.h <<_ACEOF
21574#define STACK_DIRECTION $ac_cv_c_stack_direction
21575_ACEOF
21576
21577
21578fi
21579
21580if test $ac_cv_c_compiler_gnu = yes; then
21581 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
21582echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
21583if test "${ac_cv_prog_gcc_traditional+set}" = set; then
21584 echo $ECHO_N "(cached) $ECHO_C" >&6
21585else
21586 ac_pattern="Autoconf.*'x'"
21587 cat >conftest.$ac_ext <<_ACEOF
21588#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000021589/* confdefs.h. */
21590_ACEOF
21591cat confdefs.h >>conftest.$ac_ext
21592cat >>conftest.$ac_ext <<_ACEOF
21593/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021594#include <sgtty.h>
21595Autoconf TIOCGETP
21596_ACEOF
21597if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell392aaa32003-07-22 19:18:09 +000021598 $EGREP "$ac_pattern" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000021599 ac_cv_prog_gcc_traditional=yes
21600else
21601 ac_cv_prog_gcc_traditional=no
21602fi
21603rm -f conftest*
21604
21605
21606 if test $ac_cv_prog_gcc_traditional = no; then
21607 cat >conftest.$ac_ext <<_ACEOF
21608#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000021609/* confdefs.h. */
21610_ACEOF
21611cat confdefs.h >>conftest.$ac_ext
21612cat >>conftest.$ac_ext <<_ACEOF
21613/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021614#include <termio.h>
21615Autoconf TCGETA
21616_ACEOF
21617if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell392aaa32003-07-22 19:18:09 +000021618 $EGREP "$ac_pattern" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000021619 ac_cv_prog_gcc_traditional=yes
21620fi
21621rm -f conftest*
21622
21623 fi
21624fi
21625echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
21626echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
21627 if test $ac_cv_prog_gcc_traditional = yes; then
21628 CC="$CC -traditional"
21629 fi
21630fi
21631
21632echo "$as_me:$LINENO: checking for working memcmp" >&5
21633echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
21634if test "${ac_cv_func_memcmp_working+set}" = set; then
21635 echo $ECHO_N "(cached) $ECHO_C" >&6
21636else
21637 if test "$cross_compiling" = yes; then
21638 ac_cv_func_memcmp_working=no
21639else
21640 cat >conftest.$ac_ext <<_ACEOF
21641#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000021642/* confdefs.h. */
21643_ACEOF
21644cat confdefs.h >>conftest.$ac_ext
21645cat >>conftest.$ac_ext <<_ACEOF
21646/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021647
John Criswell7a73b802003-06-30 21:59:07 +000021648int
21649main ()
21650{
21651
21652 /* Some versions of memcmp are not 8-bit clean. */
21653 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
21654 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
21655 exit (1);
21656
21657 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
21658 or more and with at least one buffer not starting on a 4-byte boundary.
21659 William Lewis provided this test program. */
21660 {
21661 char foo[21];
21662 char bar[21];
21663 int i;
21664 for (i = 0; i < 4; i++)
21665 {
21666 char *a = foo + i;
21667 char *b = bar + i;
21668 strcpy (a, "--------01111111");
21669 strcpy (b, "--------10000000");
21670 if (memcmp (a, b, 16) >= 0)
21671 exit (1);
21672 }
21673 exit (0);
21674 }
21675
21676 ;
21677 return 0;
21678}
21679_ACEOF
21680rm -f conftest$ac_exeext
21681if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21682 (eval $ac_link) 2>&5
21683 ac_status=$?
21684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21685 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21687 (eval $ac_try) 2>&5
21688 ac_status=$?
21689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21690 (exit $ac_status); }; }; then
21691 ac_cv_func_memcmp_working=yes
21692else
21693 echo "$as_me: program exited with status $ac_status" >&5
21694echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000021695sed 's/^/| /' conftest.$ac_ext >&5
21696
John Criswell7a73b802003-06-30 21:59:07 +000021697( exit $ac_status )
21698ac_cv_func_memcmp_working=no
21699fi
John Criswell392aaa32003-07-22 19:18:09 +000021700rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021701fi
21702fi
21703echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
21704echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
21705test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
21706
21707
21708
21709for ac_header in stdlib.h unistd.h
21710do
21711as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21712if eval "test \"\${$as_ac_Header+set}\" = set"; then
21713 echo "$as_me:$LINENO: checking for $ac_header" >&5
21714echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21715if eval "test \"\${$as_ac_Header+set}\" = set"; then
21716 echo $ECHO_N "(cached) $ECHO_C" >&6
21717fi
21718echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21719echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21720else
21721 # Is the header compilable?
21722echo "$as_me:$LINENO: checking $ac_header usability" >&5
21723echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21724cat >conftest.$ac_ext <<_ACEOF
21725#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000021726/* confdefs.h. */
21727_ACEOF
21728cat confdefs.h >>conftest.$ac_ext
21729cat >>conftest.$ac_ext <<_ACEOF
21730/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021731$ac_includes_default
21732#include <$ac_header>
21733_ACEOF
21734rm -f conftest.$ac_objext
21735if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21736 (eval $ac_compile) 2>&5
21737 ac_status=$?
21738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21739 (exit $ac_status); } &&
21740 { ac_try='test -s conftest.$ac_objext'
21741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21742 (eval $ac_try) 2>&5
21743 ac_status=$?
21744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21745 (exit $ac_status); }; }; then
21746 ac_header_compiler=yes
21747else
21748 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000021749sed 's/^/| /' conftest.$ac_ext >&5
21750
John Criswell7a73b802003-06-30 21:59:07 +000021751ac_header_compiler=no
21752fi
21753rm -f conftest.$ac_objext conftest.$ac_ext
21754echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21755echo "${ECHO_T}$ac_header_compiler" >&6
21756
21757# Is the header present?
21758echo "$as_me:$LINENO: checking $ac_header presence" >&5
21759echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21760cat >conftest.$ac_ext <<_ACEOF
21761#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000021762/* confdefs.h. */
21763_ACEOF
21764cat confdefs.h >>conftest.$ac_ext
21765cat >>conftest.$ac_ext <<_ACEOF
21766/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021767#include <$ac_header>
21768_ACEOF
21769if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21770 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21771 ac_status=$?
John Criswell392aaa32003-07-22 19:18:09 +000021772 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000021773 rm -f conftest.er1
21774 cat conftest.err >&5
21775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21776 (exit $ac_status); } >/dev/null; then
21777 if test -s conftest.err; then
21778 ac_cpp_err=$ac_c_preproc_warn_flag
21779 else
21780 ac_cpp_err=
21781 fi
21782else
21783 ac_cpp_err=yes
21784fi
21785if test -z "$ac_cpp_err"; then
21786 ac_header_preproc=yes
21787else
21788 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000021789sed 's/^/| /' conftest.$ac_ext >&5
21790
John Criswell7a73b802003-06-30 21:59:07 +000021791 ac_header_preproc=no
21792fi
21793rm -f conftest.err conftest.$ac_ext
21794echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21795echo "${ECHO_T}$ac_header_preproc" >&6
21796
21797# So? What about this header?
21798case $ac_header_compiler:$ac_header_preproc in
21799 yes:no )
21800 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21801echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21802 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell392aaa32003-07-22 19:18:09 +000021803echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21804 (
21805 cat <<\_ASBOX
21806## ------------------------------------ ##
21807## Report this to bug-autoconf@gnu.org. ##
21808## ------------------------------------ ##
21809_ASBOX
21810 ) |
21811 sed "s/^/$as_me: WARNING: /" >&2
21812 ;;
John Criswell7a73b802003-06-30 21:59:07 +000021813 no:yes )
21814 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21815echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21816 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21817echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21818 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell392aaa32003-07-22 19:18:09 +000021819echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21820 (
21821 cat <<\_ASBOX
21822## ------------------------------------ ##
21823## Report this to bug-autoconf@gnu.org. ##
21824## ------------------------------------ ##
21825_ASBOX
21826 ) |
21827 sed "s/^/$as_me: WARNING: /" >&2
21828 ;;
John Criswell7a73b802003-06-30 21:59:07 +000021829esac
21830echo "$as_me:$LINENO: checking for $ac_header" >&5
21831echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21832if eval "test \"\${$as_ac_Header+set}\" = set"; then
21833 echo $ECHO_N "(cached) $ECHO_C" >&6
21834else
21835 eval "$as_ac_Header=$ac_header_preproc"
21836fi
21837echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21838echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21839
21840fi
21841if test `eval echo '${'$as_ac_Header'}'` = yes; then
21842 cat >>confdefs.h <<_ACEOF
21843#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21844_ACEOF
21845
21846fi
21847
21848done
21849
21850
21851for ac_func in getpagesize
21852do
21853as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21854echo "$as_me:$LINENO: checking for $ac_func" >&5
21855echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21856if eval "test \"\${$as_ac_var+set}\" = set"; then
21857 echo $ECHO_N "(cached) $ECHO_C" >&6
21858else
21859 cat >conftest.$ac_ext <<_ACEOF
21860#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000021861/* confdefs.h. */
21862_ACEOF
21863cat confdefs.h >>conftest.$ac_ext
21864cat >>conftest.$ac_ext <<_ACEOF
21865/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021866/* System header to define __stub macros and hopefully few prototypes,
John Criswell392aaa32003-07-22 19:18:09 +000021867 which can conflict with char $ac_func (); below.
21868 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21869 <limits.h> exists even on freestanding compilers. */
21870#ifdef __STDC__
21871# include <limits.h>
21872#else
21873# include <assert.h>
21874#endif
John Criswell7a73b802003-06-30 21:59:07 +000021875/* Override any gcc2 internal prototype to avoid an error. */
21876#ifdef __cplusplus
21877extern "C"
John Criswell392aaa32003-07-22 19:18:09 +000021878{
John Criswell7a73b802003-06-30 21:59:07 +000021879#endif
21880/* We use char because int might match the return type of a gcc2
21881 builtin and then its argument prototype would still apply. */
21882char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000021883/* The GNU C library defines this for functions which it implements
21884 to always fail with ENOSYS. Some functions are actually named
21885 something starting with __ and the normal name is an alias. */
21886#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21887choke me
21888#else
John Criswell392aaa32003-07-22 19:18:09 +000021889char (*f) () = $ac_func;
21890#endif
21891#ifdef __cplusplus
21892}
John Criswell7a73b802003-06-30 21:59:07 +000021893#endif
21894
John Criswell392aaa32003-07-22 19:18:09 +000021895int
21896main ()
21897{
21898return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000021899 ;
21900 return 0;
21901}
21902_ACEOF
21903rm -f conftest.$ac_objext conftest$ac_exeext
21904if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21905 (eval $ac_link) 2>&5
21906 ac_status=$?
21907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21908 (exit $ac_status); } &&
21909 { ac_try='test -s conftest$ac_exeext'
21910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21911 (eval $ac_try) 2>&5
21912 ac_status=$?
21913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21914 (exit $ac_status); }; }; then
21915 eval "$as_ac_var=yes"
21916else
21917 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000021918sed 's/^/| /' conftest.$ac_ext >&5
21919
John Criswell7a73b802003-06-30 21:59:07 +000021920eval "$as_ac_var=no"
21921fi
21922rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21923fi
21924echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21925echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21926if test `eval echo '${'$as_ac_var'}'` = yes; then
21927 cat >>confdefs.h <<_ACEOF
21928#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21929_ACEOF
21930
21931fi
21932done
21933
21934echo "$as_me:$LINENO: checking for working mmap" >&5
21935echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
21936if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
21937 echo $ECHO_N "(cached) $ECHO_C" >&6
21938else
21939 if test "$cross_compiling" = yes; then
21940 ac_cv_func_mmap_fixed_mapped=no
21941else
21942 cat >conftest.$ac_ext <<_ACEOF
21943#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000021944/* confdefs.h. */
21945_ACEOF
21946cat confdefs.h >>conftest.$ac_ext
21947cat >>conftest.$ac_ext <<_ACEOF
21948/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021949$ac_includes_default
21950/* malloc might have been renamed as rpl_malloc. */
21951#undef malloc
21952
21953/* Thanks to Mike Haertel and Jim Avera for this test.
21954 Here is a matrix of mmap possibilities:
21955 mmap private not fixed
21956 mmap private fixed at somewhere currently unmapped
21957 mmap private fixed at somewhere already mapped
21958 mmap shared not fixed
21959 mmap shared fixed at somewhere currently unmapped
21960 mmap shared fixed at somewhere already mapped
21961 For private mappings, we should verify that changes cannot be read()
21962 back from the file, nor mmap's back from the file at a different
21963 address. (There have been systems where private was not correctly
21964 implemented like the infamous i386 svr4.0, and systems where the
21965 VM page cache was not coherent with the file system buffer cache
21966 like early versions of FreeBSD and possibly contemporary NetBSD.)
21967 For shared mappings, we should conversely verify that changes get
21968 propagated back to all the places they're supposed to be.
21969
21970 Grep wants private fixed already mapped.
21971 The main things grep needs to know about mmap are:
21972 * does it exist and is it safe to write into the mmap'd area
21973 * how to use it (BSD variants) */
21974
21975#include <fcntl.h>
21976#include <sys/mman.h>
21977
21978#if !STDC_HEADERS && !HAVE_STDLIB_H
21979char *malloc ();
21980#endif
21981
21982/* This mess was copied from the GNU getpagesize.h. */
21983#if !HAVE_GETPAGESIZE
21984/* Assume that all systems that can run configure have sys/param.h. */
21985# if !HAVE_SYS_PARAM_H
21986# define HAVE_SYS_PARAM_H 1
21987# endif
21988
21989# ifdef _SC_PAGESIZE
21990# define getpagesize() sysconf(_SC_PAGESIZE)
21991# else /* no _SC_PAGESIZE */
21992# if HAVE_SYS_PARAM_H
21993# include <sys/param.h>
21994# ifdef EXEC_PAGESIZE
21995# define getpagesize() EXEC_PAGESIZE
21996# else /* no EXEC_PAGESIZE */
21997# ifdef NBPG
21998# define getpagesize() NBPG * CLSIZE
21999# ifndef CLSIZE
22000# define CLSIZE 1
22001# endif /* no CLSIZE */
22002# else /* no NBPG */
22003# ifdef NBPC
22004# define getpagesize() NBPC
22005# else /* no NBPC */
22006# ifdef PAGESIZE
22007# define getpagesize() PAGESIZE
22008# endif /* PAGESIZE */
22009# endif /* no NBPC */
22010# endif /* no NBPG */
22011# endif /* no EXEC_PAGESIZE */
22012# else /* no HAVE_SYS_PARAM_H */
22013# define getpagesize() 8192 /* punt totally */
22014# endif /* no HAVE_SYS_PARAM_H */
22015# endif /* no _SC_PAGESIZE */
22016
22017#endif /* no HAVE_GETPAGESIZE */
22018
22019int
22020main ()
22021{
22022 char *data, *data2, *data3;
22023 int i, pagesize;
22024 int fd;
22025
22026 pagesize = getpagesize ();
22027
22028 /* First, make a file with some known garbage in it. */
22029 data = (char *) malloc (pagesize);
22030 if (!data)
22031 exit (1);
22032 for (i = 0; i < pagesize; ++i)
22033 *(data + i) = rand ();
22034 umask (0);
22035 fd = creat ("conftest.mmap", 0600);
22036 if (fd < 0)
22037 exit (1);
22038 if (write (fd, data, pagesize) != pagesize)
22039 exit (1);
22040 close (fd);
22041
22042 /* Next, try to mmap the file at a fixed address which already has
22043 something else allocated at it. If we can, also make sure that
22044 we see the same garbage. */
22045 fd = open ("conftest.mmap", O_RDWR);
22046 if (fd < 0)
22047 exit (1);
22048 data2 = (char *) malloc (2 * pagesize);
22049 if (!data2)
22050 exit (1);
22051 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
22052 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
22053 MAP_PRIVATE | MAP_FIXED, fd, 0L))
22054 exit (1);
22055 for (i = 0; i < pagesize; ++i)
22056 if (*(data + i) != *(data2 + i))
22057 exit (1);
22058
22059 /* Finally, make sure that changes to the mapped area do not
22060 percolate back to the file as seen by read(). (This is a bug on
22061 some variants of i386 svr4.0.) */
22062 for (i = 0; i < pagesize; ++i)
22063 *(data2 + i) = *(data2 + i) + 1;
22064 data3 = (char *) malloc (pagesize);
22065 if (!data3)
22066 exit (1);
22067 if (read (fd, data3, pagesize) != pagesize)
22068 exit (1);
22069 for (i = 0; i < pagesize; ++i)
22070 if (*(data + i) != *(data3 + i))
22071 exit (1);
22072 close (fd);
22073 exit (0);
22074}
22075_ACEOF
22076rm -f conftest$ac_exeext
22077if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22078 (eval $ac_link) 2>&5
22079 ac_status=$?
22080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22081 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22083 (eval $ac_try) 2>&5
22084 ac_status=$?
22085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22086 (exit $ac_status); }; }; then
22087 ac_cv_func_mmap_fixed_mapped=yes
22088else
22089 echo "$as_me: program exited with status $ac_status" >&5
22090echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000022091sed 's/^/| /' conftest.$ac_ext >&5
22092
John Criswell7a73b802003-06-30 21:59:07 +000022093( exit $ac_status )
22094ac_cv_func_mmap_fixed_mapped=no
22095fi
John Criswell392aaa32003-07-22 19:18:09 +000022096rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000022097fi
22098fi
22099echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
22100echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
22101if test $ac_cv_func_mmap_fixed_mapped = yes; then
22102
22103cat >>confdefs.h <<\_ACEOF
22104#define HAVE_MMAP 1
22105_ACEOF
22106
22107fi
22108rm -f conftest.mmap
22109
22110echo "$as_me:$LINENO: checking for mmap of files" >&5
22111echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
22112if test "${ac_cv_func_mmap_file+set}" = set; then
22113 echo $ECHO_N "(cached) $ECHO_C" >&6
22114else
22115
22116
22117 ac_ext=c
22118ac_cpp='$CPP $CPPFLAGS'
22119ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22120ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22121ac_compiler_gnu=$ac_cv_c_compiler_gnu
22122
22123 if test "$cross_compiling" = yes; then
John Criswell392aaa32003-07-22 19:18:09 +000022124 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22125See \`config.log' for more details." >&5
22126echo "$as_me: error: cannot run test program while cross compiling
22127See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000022128 { (exit 1); exit 1; }; }
22129else
22130 cat >conftest.$ac_ext <<_ACEOF
22131#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000022132/* confdefs.h. */
22133_ACEOF
22134cat confdefs.h >>conftest.$ac_ext
22135cat >>conftest.$ac_ext <<_ACEOF
22136/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022137
22138#ifdef HAVE_SYS_MMAN_H
22139#include <sys/mman.h>
22140#endif
22141
22142#ifdef HAVE_SYS_TYPES_H
22143#include <sys/types.h>
22144#endif
22145
22146#ifdef HAVE_FCNTL_H
22147#include <fcntl.h>
22148#endif
22149
22150 int fd;
22151 int main () {
22152 fd = creat ("foo",0777); fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); unlink ("foo"); return (fd != MAP_FAILED);}
22153_ACEOF
22154rm -f conftest$ac_exeext
22155if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22156 (eval $ac_link) 2>&5
22157 ac_status=$?
22158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22159 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22161 (eval $ac_try) 2>&5
22162 ac_status=$?
22163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22164 (exit $ac_status); }; }; then
22165 ac_cv_func_mmap_file=yes
22166else
22167 echo "$as_me: program exited with status $ac_status" >&5
22168echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000022169sed 's/^/| /' conftest.$ac_ext >&5
22170
John Criswell7a73b802003-06-30 21:59:07 +000022171( exit $ac_status )
22172ac_cv_func_mmap_file=no
22173fi
John Criswell392aaa32003-07-22 19:18:09 +000022174rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000022175fi
22176 ac_ext=c
22177ac_cpp='$CPP $CPPFLAGS'
22178ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22179ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22180ac_compiler_gnu=$ac_cv_c_compiler_gnu
22181
22182
22183fi
22184echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
22185echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
22186if test "$ac_cv_func_mmap_file" = yes; then
22187 cat >>confdefs.h <<\_ACEOF
22188#define HAVE_MMAP_FILE 1
22189_ACEOF
22190
22191 MMAP_FILE=yes
22192
22193fi
22194
22195if test ${ac_cv_func_mmap_file} = "no"
22196then
22197 { { echo "$as_me:$LINENO: error: mmap() of files required but not found" >&5
22198echo "$as_me: error: mmap() of files required but not found" >&2;}
22199 { (exit 1); exit 1; }; }
22200fi
22201echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
22202echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
22203if test "${ac_cv_header_mmap_anon+set}" = set; then
22204 echo $ECHO_N "(cached) $ECHO_C" >&6
22205else
22206
22207
22208 ac_ext=c
22209ac_cpp='$CPP $CPPFLAGS'
22210ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22211ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22212ac_compiler_gnu=$ac_cv_c_compiler_gnu
22213
22214 cat >conftest.$ac_ext <<_ACEOF
22215#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000022216/* confdefs.h. */
22217_ACEOF
22218cat confdefs.h >>conftest.$ac_ext
22219cat >>conftest.$ac_ext <<_ACEOF
22220/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022221#include <sys/mman.h>
22222 #include <unistd.h>
22223 #include <fcntl.h>
John Criswell7a73b802003-06-30 21:59:07 +000022224int
22225main ()
22226{
22227mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
22228 ;
22229 return 0;
22230}
22231_ACEOF
22232rm -f conftest.$ac_objext
22233if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22234 (eval $ac_compile) 2>&5
22235 ac_status=$?
22236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22237 (exit $ac_status); } &&
22238 { ac_try='test -s conftest.$ac_objext'
22239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22240 (eval $ac_try) 2>&5
22241 ac_status=$?
22242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22243 (exit $ac_status); }; }; then
22244 ac_cv_header_mmap_anon=yes
22245else
22246 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000022247sed 's/^/| /' conftest.$ac_ext >&5
22248
John Criswell7a73b802003-06-30 21:59:07 +000022249ac_cv_header_mmap_anon=no
22250fi
22251rm -f conftest.$ac_objext conftest.$ac_ext
22252 ac_ext=c
22253ac_cpp='$CPP $CPPFLAGS'
22254ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22255ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22256ac_compiler_gnu=$ac_cv_c_compiler_gnu
22257
22258
22259fi
22260echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
22261echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
22262if test "$ac_cv_header_mmap_anon" = yes; then
22263 cat >>confdefs.h <<\_ACEOF
22264#define HAVE_MMAP_ANONYMOUS 1
22265_ACEOF
22266
22267fi
22268
22269echo "$as_me:$LINENO: checking return type of signal handlers" >&5
22270echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
22271if test "${ac_cv_type_signal+set}" = set; then
22272 echo $ECHO_N "(cached) $ECHO_C" >&6
22273else
22274 cat >conftest.$ac_ext <<_ACEOF
22275#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000022276/* confdefs.h. */
22277_ACEOF
22278cat confdefs.h >>conftest.$ac_ext
22279cat >>conftest.$ac_ext <<_ACEOF
22280/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022281#include <sys/types.h>
22282#include <signal.h>
22283#ifdef signal
22284# undef signal
22285#endif
22286#ifdef __cplusplus
22287extern "C" void (*signal (int, void (*)(int)))(int);
22288#else
22289void (*signal ()) ();
22290#endif
22291
John Criswell7a73b802003-06-30 21:59:07 +000022292int
22293main ()
22294{
22295int i;
22296 ;
22297 return 0;
22298}
22299_ACEOF
22300rm -f conftest.$ac_objext
22301if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22302 (eval $ac_compile) 2>&5
22303 ac_status=$?
22304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22305 (exit $ac_status); } &&
22306 { ac_try='test -s conftest.$ac_objext'
22307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22308 (eval $ac_try) 2>&5
22309 ac_status=$?
22310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22311 (exit $ac_status); }; }; then
22312 ac_cv_type_signal=void
22313else
22314 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000022315sed 's/^/| /' conftest.$ac_ext >&5
22316
John Criswell7a73b802003-06-30 21:59:07 +000022317ac_cv_type_signal=int
22318fi
22319rm -f conftest.$ac_objext conftest.$ac_ext
22320fi
22321echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
22322echo "${ECHO_T}$ac_cv_type_signal" >&6
22323
22324cat >>confdefs.h <<_ACEOF
22325#define RETSIGTYPE $ac_cv_type_signal
22326_ACEOF
22327
22328
22329
22330
22331
22332
22333
22334
22335
22336
22337
22338for ac_func in getcwd gettimeofday strcspn strdup strerror strspn strstr strtod strtol
22339do
22340as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22341echo "$as_me:$LINENO: checking for $ac_func" >&5
22342echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22343if eval "test \"\${$as_ac_var+set}\" = set"; then
22344 echo $ECHO_N "(cached) $ECHO_C" >&6
22345else
22346 cat >conftest.$ac_ext <<_ACEOF
22347#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000022348/* confdefs.h. */
22349_ACEOF
22350cat confdefs.h >>conftest.$ac_ext
22351cat >>conftest.$ac_ext <<_ACEOF
22352/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022353/* System header to define __stub macros and hopefully few prototypes,
John Criswell392aaa32003-07-22 19:18:09 +000022354 which can conflict with char $ac_func (); below.
22355 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22356 <limits.h> exists even on freestanding compilers. */
22357#ifdef __STDC__
22358# include <limits.h>
22359#else
22360# include <assert.h>
22361#endif
John Criswell7a73b802003-06-30 21:59:07 +000022362/* Override any gcc2 internal prototype to avoid an error. */
22363#ifdef __cplusplus
22364extern "C"
John Criswell392aaa32003-07-22 19:18:09 +000022365{
John Criswell7a73b802003-06-30 21:59:07 +000022366#endif
22367/* We use char because int might match the return type of a gcc2
22368 builtin and then its argument prototype would still apply. */
22369char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000022370/* The GNU C library defines this for functions which it implements
22371 to always fail with ENOSYS. Some functions are actually named
22372 something starting with __ and the normal name is an alias. */
22373#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22374choke me
22375#else
John Criswell392aaa32003-07-22 19:18:09 +000022376char (*f) () = $ac_func;
22377#endif
22378#ifdef __cplusplus
22379}
John Criswell7a73b802003-06-30 21:59:07 +000022380#endif
22381
John Criswell392aaa32003-07-22 19:18:09 +000022382int
22383main ()
22384{
22385return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000022386 ;
22387 return 0;
22388}
22389_ACEOF
22390rm -f conftest.$ac_objext conftest$ac_exeext
22391if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22392 (eval $ac_link) 2>&5
22393 ac_status=$?
22394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22395 (exit $ac_status); } &&
22396 { ac_try='test -s conftest$ac_exeext'
22397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22398 (eval $ac_try) 2>&5
22399 ac_status=$?
22400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22401 (exit $ac_status); }; }; then
22402 eval "$as_ac_var=yes"
22403else
22404 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000022405sed 's/^/| /' conftest.$ac_ext >&5
22406
John Criswell7a73b802003-06-30 21:59:07 +000022407eval "$as_ac_var=no"
22408fi
22409rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22410fi
22411echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22412echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22413if test `eval echo '${'$as_ac_var'}'` = yes; then
22414 cat >>confdefs.h <<_ACEOF
22415#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22416_ACEOF
22417
22418fi
22419done
22420
22421
22422
22423echo "$as_me:$LINENO: checking for mmap" >&5
22424echo $ECHO_N "checking for mmap... $ECHO_C" >&6
22425if test "${ac_cv_func_mmap+set}" = set; then
22426 echo $ECHO_N "(cached) $ECHO_C" >&6
22427else
22428 cat >conftest.$ac_ext <<_ACEOF
22429#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000022430/* confdefs.h. */
22431_ACEOF
22432cat confdefs.h >>conftest.$ac_ext
22433cat >>conftest.$ac_ext <<_ACEOF
22434/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022435/* System header to define __stub macros and hopefully few prototypes,
John Criswell392aaa32003-07-22 19:18:09 +000022436 which can conflict with char mmap (); below.
22437 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22438 <limits.h> exists even on freestanding compilers. */
22439#ifdef __STDC__
22440# include <limits.h>
22441#else
22442# include <assert.h>
22443#endif
John Criswell7a73b802003-06-30 21:59:07 +000022444/* Override any gcc2 internal prototype to avoid an error. */
22445#ifdef __cplusplus
22446extern "C"
John Criswell392aaa32003-07-22 19:18:09 +000022447{
John Criswell7a73b802003-06-30 21:59:07 +000022448#endif
22449/* We use char because int might match the return type of a gcc2
22450 builtin and then its argument prototype would still apply. */
22451char mmap ();
John Criswell7a73b802003-06-30 21:59:07 +000022452/* The GNU C library defines this for functions which it implements
22453 to always fail with ENOSYS. Some functions are actually named
22454 something starting with __ and the normal name is an alias. */
22455#if defined (__stub_mmap) || defined (__stub___mmap)
22456choke me
22457#else
John Criswell392aaa32003-07-22 19:18:09 +000022458char (*f) () = mmap;
22459#endif
22460#ifdef __cplusplus
22461}
John Criswell7a73b802003-06-30 21:59:07 +000022462#endif
22463
John Criswell392aaa32003-07-22 19:18:09 +000022464int
22465main ()
22466{
22467return f != mmap;
John Criswell7a73b802003-06-30 21:59:07 +000022468 ;
22469 return 0;
22470}
22471_ACEOF
22472rm -f conftest.$ac_objext conftest$ac_exeext
22473if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22474 (eval $ac_link) 2>&5
22475 ac_status=$?
22476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22477 (exit $ac_status); } &&
22478 { ac_try='test -s conftest$ac_exeext'
22479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22480 (eval $ac_try) 2>&5
22481 ac_status=$?
22482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22483 (exit $ac_status); }; }; then
22484 ac_cv_func_mmap=yes
22485else
22486 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000022487sed 's/^/| /' conftest.$ac_ext >&5
22488
John Criswell7a73b802003-06-30 21:59:07 +000022489ac_cv_func_mmap=no
22490fi
22491rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22492fi
22493echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
22494echo "${ECHO_T}$ac_cv_func_mmap" >&6
22495if test $ac_cv_func_mmap = yes; then
22496 :
22497else
22498 { { echo "$as_me:$LINENO: error: Function mmap() required but not found" >&5
22499echo "$as_me: error: Function mmap() required but not found" >&2;}
22500 { (exit 1); exit 1; }; }
22501fi
22502
22503echo "$as_me:$LINENO: checking for mprotect" >&5
22504echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
22505if test "${ac_cv_func_mprotect+set}" = set; then
22506 echo $ECHO_N "(cached) $ECHO_C" >&6
22507else
22508 cat >conftest.$ac_ext <<_ACEOF
22509#line $LINENO "configure"
John Criswell392aaa32003-07-22 19:18:09 +000022510/* confdefs.h. */
22511_ACEOF
22512cat confdefs.h >>conftest.$ac_ext
22513cat >>conftest.$ac_ext <<_ACEOF
22514/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022515/* System header to define __stub macros and hopefully few prototypes,
John Criswell392aaa32003-07-22 19:18:09 +000022516 which can conflict with char mprotect (); below.
22517 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22518 <limits.h> exists even on freestanding compilers. */
22519#ifdef __STDC__
22520# include <limits.h>
22521#else
22522# include <assert.h>
22523#endif
John Criswell7a73b802003-06-30 21:59:07 +000022524/* Override any gcc2 internal prototype to avoid an error. */
22525#ifdef __cplusplus
22526extern "C"
John Criswell392aaa32003-07-22 19:18:09 +000022527{
John Criswell7a73b802003-06-30 21:59:07 +000022528#endif
22529/* We use char because int might match the return type of a gcc2
22530 builtin and then its argument prototype would still apply. */
22531char mprotect ();
John Criswell7a73b802003-06-30 21:59:07 +000022532/* The GNU C library defines this for functions which it implements
22533 to always fail with ENOSYS. Some functions are actually named
22534 something starting with __ and the normal name is an alias. */
22535#if defined (__stub_mprotect) || defined (__stub___mprotect)
22536choke me
22537#else
John Criswell392aaa32003-07-22 19:18:09 +000022538char (*f) () = mprotect;
22539#endif
22540#ifdef __cplusplus
22541}
John Criswell7a73b802003-06-30 21:59:07 +000022542#endif
22543
John Criswell392aaa32003-07-22 19:18:09 +000022544int
22545main ()
22546{
22547return f != mprotect;
John Criswell7a73b802003-06-30 21:59:07 +000022548 ;
22549 return 0;
22550}
22551_ACEOF
22552rm -f conftest.$ac_objext conftest$ac_exeext
22553if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22554 (eval $ac_link) 2>&5
22555 ac_status=$?
22556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22557 (exit $ac_status); } &&
22558 { ac_try='test -s conftest$ac_exeext'
22559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22560 (eval $ac_try) 2>&5
22561 ac_status=$?
22562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22563 (exit $ac_status); }; }; then
22564 ac_cv_func_mprotect=yes
22565else
22566 echo "$as_me: failed program was:" >&5
John Criswell392aaa32003-07-22 19:18:09 +000022567sed 's/^/| /' conftest.$ac_ext >&5
22568
John Criswell7a73b802003-06-30 21:59:07 +000022569ac_cv_func_mprotect=no
22570fi
22571rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22572fi
22573echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
22574echo "${ECHO_T}$ac_cv_func_mprotect" >&6
22575if test $ac_cv_func_mprotect = yes; then
22576 :
22577else
22578 { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
22579echo "$as_me: error: Function mprotect() required but not found" >&2;}
22580 { (exit 1); exit 1; }; }
22581fi
22582
22583
John Criswellb13092b2003-07-22 21:00:24 +000022584
John Criswell7a73b802003-06-30 21:59:07 +000022585# Check whether --enable-purify or --disable-purify was given.
22586if test "${enable_purify+set}" = set; then
22587 enableval="$enable_purify"
John Criswell7a73b802003-06-30 21:59:07 +000022588
22589else
John Criswellb13092b2003-07-22 21:00:24 +000022590 enableval="no"
John Criswell7a73b802003-06-30 21:59:07 +000022591fi;
John Criswellb13092b2003-07-22 21:00:24 +000022592if test ${enableval} = "no"
22593then
22594 ENABLE_PURIFY=
22595
22596else
22597 ENABLE_PURIFY=ENABLE_PURIFY=1
22598
22599fi
22600
John Criswell7a73b802003-06-30 21:59:07 +000022601# Check whether --enable-optimized or --disable-optimized was given.
22602if test "${enable_optimized+set}" = set; then
22603 enableval="$enable_optimized"
John Criswell7a73b802003-06-30 21:59:07 +000022604
22605else
John Criswellb13092b2003-07-22 21:00:24 +000022606 enableval=no
John Criswell7a73b802003-06-30 21:59:07 +000022607fi;
John Criswellb13092b2003-07-22 21:00:24 +000022608if test ${enableval} = "no"
22609then
22610 ENABLE_OPTIMIZED=
22611
22612else
22613 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
22614
22615fi
22616
John Criswell7a73b802003-06-30 21:59:07 +000022617# Check whether --enable-spec or --disable-spec was given.
22618if test "${enable_spec+set}" = set; then
22619 enableval="$enable_spec"
John Criswell7a73b802003-06-30 21:59:07 +000022620
22621else
John Criswellb13092b2003-07-22 21:00:24 +000022622 enableval=no
John Criswell7a73b802003-06-30 21:59:07 +000022623fi;
John Criswellb13092b2003-07-22 21:00:24 +000022624if test ${enableval} = "no"
22625then
22626 USE_SPEC=
22627
22628else
22629 USE_SPEC=USE_SPEC=1
22630
22631fi
22632
John Criswell7a73b802003-06-30 21:59:07 +000022633# Check whether --enable-precompiled_bytecode or --disable-precompiled_bytecode was given.
22634if test "${enable_precompiled_bytecode+set}" = set; then
22635 enableval="$enable_precompiled_bytecode"
John Criswell7a73b802003-06-30 21:59:07 +000022636
22637else
John Criswellb13092b2003-07-22 21:00:24 +000022638 enableval=no
John Criswell7a73b802003-06-30 21:59:07 +000022639fi;
John Criswellb13092b2003-07-22 21:00:24 +000022640if test ${enableval} = "no"
22641then
22642 UPB=
John Criswellf02dbf02003-07-22 20:07:49 +000022643
John Criswellb13092b2003-07-22 21:00:24 +000022644else
22645 UPB=USE_PRECOMPILED_BYTECODE=1
22646
22647fi
John Criswellf02dbf02003-07-22 20:07:49 +000022648
22649
22650# Check whether --enable-llc_diffs or --disable-llc_diffs was given.
22651if test "${enable_llc_diffs+set}" = set; then
22652 enableval="$enable_llc_diffs"
John Criswellf02dbf02003-07-22 20:07:49 +000022653
22654else
John Criswellb13092b2003-07-22 21:00:24 +000022655 enableval=yes
John Criswellf02dbf02003-07-22 20:07:49 +000022656fi;
John Criswellb13092b2003-07-22 21:00:24 +000022657if test ${enableval} = "no"
22658then
22659 DISABLE_LLC_DIFFS=DISABLE_LLC_DIFFS:=1
John Criswellf02dbf02003-07-22 20:07:49 +000022660
John Criswellb13092b2003-07-22 21:00:24 +000022661else
22662 DISABLE_LLC_DIFFS=
22663
22664fi
22665
22666# Check whether --enable-jit or --disable-jit was given.
John Criswell7a73b802003-06-30 21:59:07 +000022667if test "${enable_jit+set}" = set; then
22668 enableval="$enable_jit"
John Criswell7a73b802003-06-30 21:59:07 +000022669
22670else
John Criswellc78022e2003-07-29 19:11:58 +000022671 enableval=default
John Criswell7a73b802003-06-30 21:59:07 +000022672fi;
John Criswellb13092b2003-07-22 21:00:24 +000022673
22674if test ${enableval} = "no"
22675then
22676 JIT=
22677
22678else
John Criswellc78022e2003-07-29 19:11:58 +000022679 case $target in
22680 *i*86*)
22681 JIT=TARGET_HAS_JIT=1
John Criswellb13092b2003-07-22 21:00:24 +000022682
John Criswellc78022e2003-07-29 19:11:58 +000022683 ;;
22684 *sparc*)
22685 JIT=TARGET_HAS_JIT=1
22686
22687 ;;
22688 *)
22689 JIT=
22690
22691 ;;
22692 esac
John Criswellb13092b2003-07-22 21:00:24 +000022693fi
John Criswell7a73b802003-06-30 21:59:07 +000022694
22695
John Criswellc78022e2003-07-29 19:11:58 +000022696
John Criswell7a73b802003-06-30 21:59:07 +000022697# Check whether --with-spec or --without-spec was given.
22698if test "${with_spec+set}" = set; then
22699 withval="$with_spec"
22700 SPEC_ROOT=$withval
22701
22702else
22703 SPEC_ROOT=/home/vadve/shared/benchmarks/speccpu2000/benchspec
22704
22705fi;
22706
John Criswellc78022e2003-07-29 19:11:58 +000022707
John Criswell7a73b802003-06-30 21:59:07 +000022708# Check whether --with-llvmgccdir or --without-llvmgccdir was given.
22709if test "${with_llvmgccdir+set}" = set; then
22710 withval="$with_llvmgccdir"
22711 LLVMGCCDIR=$withval
22712
22713fi;
22714
John Criswellc78022e2003-07-29 19:11:58 +000022715
John Criswell7a73b802003-06-30 21:59:07 +000022716# Check whether --with-bcrepos or --without-bcrepos was given.
22717if test "${with_bcrepos+set}" = set; then
22718 withval="$with_bcrepos"
22719 BCR=$withval
22720
22721else
22722 BCR=/home/vadve/lattner/LLVMPrograms
22723
22724fi;
22725
John Criswellc78022e2003-07-29 19:11:58 +000022726
John Criswell7a73b802003-06-30 21:59:07 +000022727# Check whether --with-papi or --without-papi was given.
22728if test "${with_papi+set}" = set; then
22729 withval="$with_papi"
22730 PAPIDIR=$withval
22731
22732else
John Criswellde00db22003-08-25 16:49:54 +000022733 PAPIDIR=/home/vadve/shared/Sparc/papi-2.3.4.1
John Criswell7a73b802003-06-30 21:59:07 +000022734
22735fi;
22736
John Criswell7a73b802003-06-30 21:59:07 +000022737
22738# Check whether --with-purify or --without-purify was given.
22739if test "${with_purify+set}" = set; then
22740 withval="$with_purify"
22741 PURIFY=$withval
22742
22743fi;
22744
John Criswellde00db22003-08-25 16:49:54 +000022745
John Criswell392aaa32003-07-22 19:18:09 +000022746 ac_config_files="$ac_config_files Makefile.config"
John Criswell7a73b802003-06-30 21:59:07 +000022747cat >confcache <<\_ACEOF
22748# This file is a shell script that caches the results of configure
22749# tests run on this system so they can be shared between configure
22750# scripts and configure runs, see configure's option --config-cache.
22751# It is not useful on other systems. If it contains results you don't
22752# want to keep, you may remove or edit it.
22753#
22754# config.status only pays attention to the cache file if you give it
22755# the --recheck option to rerun configure.
22756#
John Criswell392aaa32003-07-22 19:18:09 +000022757# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000022758# loading this file, other *unset* `ac_cv_foo' will be assigned the
22759# following values.
22760
22761_ACEOF
22762
22763# The following way of writing the cache mishandles newlines in values,
22764# but we know of no workaround that is simple, portable, and efficient.
22765# So, don't put newlines in cache variables' values.
22766# Ultrix sh set writes to stderr and can't be redirected directly,
22767# and sets the high bit in the cache file unless we assign to the vars.
22768{
22769 (set) 2>&1 |
22770 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22771 *ac_space=\ *)
22772 # `set' does not quote correctly, so add quotes (double-quote
22773 # substitution turns \\\\ into \\, and sed turns \\ into \).
22774 sed -n \
22775 "s/'/'\\\\''/g;
22776 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22777 ;;
22778 *)
22779 # `set' quotes correctly as required by POSIX, so do not add quotes.
22780 sed -n \
22781 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22782 ;;
22783 esac;
22784} |
22785 sed '
22786 t clear
22787 : clear
22788 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22789 t end
22790 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22791 : end' >>confcache
John Criswell392aaa32003-07-22 19:18:09 +000022792if diff $cache_file confcache >/dev/null 2>&1; then :; else
John Criswell7a73b802003-06-30 21:59:07 +000022793 if test -w $cache_file; then
22794 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22795 cat confcache >$cache_file
22796 else
22797 echo "not updating unwritable cache $cache_file"
22798 fi
22799fi
22800rm -f confcache
22801
22802test "x$prefix" = xNONE && prefix=$ac_default_prefix
22803# Let make expand exec_prefix.
22804test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22805
22806# VPATH may cause trouble with some makes, so we remove $(srcdir),
22807# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22808# trailing colons and then remove the whole line if VPATH becomes empty
22809# (actually we leave an empty line to preserve line numbers).
22810if test "x$srcdir" = x.; then
22811 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22812s/:*\$(srcdir):*/:/;
22813s/:*\${srcdir}:*/:/;
22814s/:*@srcdir@:*/:/;
22815s/^\([^=]*=[ ]*\):*/\1/;
22816s/:*$//;
22817s/^[^=]*=[ ]*$//;
22818}'
22819fi
22820
22821DEFS=-DHAVE_CONFIG_H
22822
John Criswell392aaa32003-07-22 19:18:09 +000022823ac_libobjs=
22824ac_ltlibobjs=
22825for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22826 # 1. Remove the extension, and $U if already installed.
22827 ac_i=`echo "$ac_i" |
22828 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22829 # 2. Add them.
22830 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22831 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22832done
22833LIBOBJS=$ac_libobjs
22834
22835LTLIBOBJS=$ac_ltlibobjs
22836
22837
John Criswell7a73b802003-06-30 21:59:07 +000022838
22839: ${CONFIG_STATUS=./config.status}
22840ac_clean_files_save=$ac_clean_files
22841ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22842{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22843echo "$as_me: creating $CONFIG_STATUS" >&6;}
22844cat >$CONFIG_STATUS <<_ACEOF
22845#! $SHELL
22846# Generated by $as_me.
22847# Run this file to recreate the current configuration.
22848# Compiler output produced by configure, useful for debugging
22849# configure, is in config.log if it exists.
22850
22851debug=false
John Criswell392aaa32003-07-22 19:18:09 +000022852ac_cs_recheck=false
22853ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000022854SHELL=\${CONFIG_SHELL-$SHELL}
22855_ACEOF
22856
22857cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022858## --------------------- ##
22859## M4sh Initialization. ##
22860## --------------------- ##
22861
22862# Be Bourne compatible
22863if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22864 emulate sh
22865 NULLCMD=:
John Criswell392aaa32003-07-22 19:18:09 +000022866 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22867 # is contrary to our usage. Disable this feature.
22868 alias -g '${1+"$@"}'='"$@"'
John Criswell7a73b802003-06-30 21:59:07 +000022869elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22870 set -o posix
22871fi
22872
John Criswell7a73b802003-06-30 21:59:07 +000022873# Support unset when possible.
22874if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
22875 as_unset=unset
22876else
22877 as_unset=false
22878fi
22879
John Criswell392aaa32003-07-22 19:18:09 +000022880
22881# Work around bugs in pre-3.0 UWIN ksh.
22882$as_unset ENV MAIL MAILPATH
22883PS1='$ '
22884PS2='> '
22885PS4='+ '
22886
22887# NLS nuisances.
22888for as_var in \
22889 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22890 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22891 LC_TELEPHONE LC_TIME
22892do
22893 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
22894 eval $as_var=C; export $as_var
22895 else
22896 $as_unset $as_var
22897 fi
22898done
22899
22900# Required to use basename.
22901if expr a : '\(a\)' >/dev/null 2>&1; then
22902 as_expr=expr
22903else
22904 as_expr=false
22905fi
22906
22907if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
22908 as_basename=basename
22909else
22910 as_basename=false
22911fi
John Criswell7a73b802003-06-30 21:59:07 +000022912
22913
22914# Name of the executable.
John Criswell392aaa32003-07-22 19:18:09 +000022915as_me=`$as_basename "$0" ||
John Criswell7a73b802003-06-30 21:59:07 +000022916$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22917 X"$0" : 'X\(//\)$' \| \
22918 X"$0" : 'X\(/\)$' \| \
22919 . : '\(.\)' 2>/dev/null ||
22920echo X/"$0" |
22921 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22922 /^X\/\(\/\/\)$/{ s//\1/; q; }
22923 /^X\/\(\/\).*/{ s//\1/; q; }
22924 s/.*/./; q'`
22925
John Criswell392aaa32003-07-22 19:18:09 +000022926
John Criswell7a73b802003-06-30 21:59:07 +000022927# PATH needs CR, and LINENO needs CR and PATH.
22928# Avoid depending upon Character Ranges.
22929as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22930as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22931as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22932as_cr_digits='0123456789'
22933as_cr_alnum=$as_cr_Letters$as_cr_digits
22934
22935# The user is always right.
22936if test "${PATH_SEPARATOR+set}" != set; then
John Criswell392aaa32003-07-22 19:18:09 +000022937 echo "#! /bin/sh" >conf$$.sh
22938 echo "exit 0" >>conf$$.sh
22939 chmod +x conf$$.sh
22940 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000022941 PATH_SEPARATOR=';'
22942 else
22943 PATH_SEPARATOR=:
22944 fi
John Criswell392aaa32003-07-22 19:18:09 +000022945 rm -f conf$$.sh
John Criswell7a73b802003-06-30 21:59:07 +000022946fi
22947
22948
22949 as_lineno_1=$LINENO
22950 as_lineno_2=$LINENO
22951 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22952 test "x$as_lineno_1" != "x$as_lineno_2" &&
22953 test "x$as_lineno_3" = "x$as_lineno_2" || {
22954 # Find who we are. Look in the path if we contain no path at all
22955 # relative or not.
22956 case $0 in
22957 *[\\/]* ) as_myself=$0 ;;
22958 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22959for as_dir in $PATH
22960do
22961 IFS=$as_save_IFS
22962 test -z "$as_dir" && as_dir=.
22963 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22964done
22965
22966 ;;
22967 esac
22968 # We did not find ourselves, most probably we were run as `sh COMMAND'
22969 # in which case we are not to be found in the path.
22970 if test "x$as_myself" = x; then
22971 as_myself=$0
22972 fi
22973 if test ! -f "$as_myself"; then
22974 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22975echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22976 { (exit 1); exit 1; }; }
22977 fi
22978 case $CONFIG_SHELL in
22979 '')
22980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22981for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
22982do
22983 IFS=$as_save_IFS
22984 test -z "$as_dir" && as_dir=.
22985 for as_base in sh bash ksh sh5; do
22986 case $as_dir in
22987 /*)
22988 if ("$as_dir/$as_base" -c '
22989 as_lineno_1=$LINENO
22990 as_lineno_2=$LINENO
22991 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22992 test "x$as_lineno_1" != "x$as_lineno_2" &&
22993 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
John Criswell392aaa32003-07-22 19:18:09 +000022994 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
22995 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
John Criswell7a73b802003-06-30 21:59:07 +000022996 CONFIG_SHELL=$as_dir/$as_base
22997 export CONFIG_SHELL
22998 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22999 fi;;
23000 esac
23001 done
23002done
23003;;
23004 esac
23005
23006 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23007 # uniformly replaced by the line number. The first 'sed' inserts a
23008 # line-number line before each line; the second 'sed' does the real
23009 # work. The second script uses 'N' to pair each line-number line
23010 # with the numbered line, and appends trailing '-' during
23011 # substitution so that $LINENO is not a special case at line end.
23012 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23013 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
23014 sed '=' <$as_myself |
23015 sed '
23016 N
23017 s,$,-,
23018 : loop
23019 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
23020 t loop
23021 s,-$,,
23022 s,^['$as_cr_digits']*\n,,
23023 ' >$as_me.lineno &&
23024 chmod +x $as_me.lineno ||
23025 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
23026echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
23027 { (exit 1); exit 1; }; }
23028
23029 # Don't try to exec as it changes $[0], causing all sort of problems
23030 # (the dirname of $[0] is not the place where we might find the
23031 # original and so on. Autoconf is especially sensible to this).
23032 . ./$as_me.lineno
23033 # Exit status is that of the last command.
23034 exit
23035}
23036
23037
23038case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
23039 *c*,-n*) ECHO_N= ECHO_C='
23040' ECHO_T=' ' ;;
23041 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
23042 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
23043esac
23044
23045if expr a : '\(a\)' >/dev/null 2>&1; then
23046 as_expr=expr
23047else
23048 as_expr=false
23049fi
23050
23051rm -f conf$$ conf$$.exe conf$$.file
23052echo >conf$$.file
23053if ln -s conf$$.file conf$$ 2>/dev/null; then
23054 # We could just check for DJGPP; but this test a) works b) is more generic
23055 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23056 if test -f conf$$.exe; then
23057 # Don't use ln at all; we don't have any links
23058 as_ln_s='cp -p'
23059 else
23060 as_ln_s='ln -s'
23061 fi
23062elif ln conf$$.file conf$$ 2>/dev/null; then
23063 as_ln_s=ln
23064else
23065 as_ln_s='cp -p'
23066fi
23067rm -f conf$$ conf$$.exe conf$$.file
23068
John Criswell392aaa32003-07-22 19:18:09 +000023069if mkdir -p . 2>/dev/null; then
23070 as_mkdir_p=:
23071else
23072 as_mkdir_p=false
23073fi
23074
John Criswell7a73b802003-06-30 21:59:07 +000023075as_executable_p="test -f"
23076
23077# Sed expression to map a string onto a valid CPP name.
23078as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
23079
23080# Sed expression to map a string onto a valid variable name.
23081as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
23082
23083
23084# IFS
23085# We need space, tab and new line, in precisely that order.
23086as_nl='
23087'
23088IFS=" $as_nl"
23089
23090# CDPATH.
John Criswell392aaa32003-07-22 19:18:09 +000023091$as_unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000023092
23093exec 6>&1
23094
23095# Open the log real soon, to keep \$[0] and so on meaningful, and to
23096# report actual input values of CONFIG_FILES etc. instead of their
23097# values after options handling. Logging --version etc. is OK.
23098exec 5>>config.log
23099{
23100 echo
23101 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23102## Running $as_me. ##
23103_ASBOX
23104} >&5
23105cat >&5 <<_CSEOF
23106
23107This file was extended by [LLVM] $as_me [1.0], which was
John Criswell392aaa32003-07-22 19:18:09 +000023108generated by GNU Autoconf 2.57. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000023109
23110 CONFIG_FILES = $CONFIG_FILES
23111 CONFIG_HEADERS = $CONFIG_HEADERS
23112 CONFIG_LINKS = $CONFIG_LINKS
23113 CONFIG_COMMANDS = $CONFIG_COMMANDS
23114 $ $0 $@
23115
23116_CSEOF
23117echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23118echo >&5
23119_ACEOF
23120
23121# Files that config.status was made for.
23122if test -n "$ac_config_files"; then
23123 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23124fi
23125
23126if test -n "$ac_config_headers"; then
23127 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23128fi
23129
23130if test -n "$ac_config_links"; then
23131 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23132fi
23133
23134if test -n "$ac_config_commands"; then
23135 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23136fi
23137
23138cat >>$CONFIG_STATUS <<\_ACEOF
23139
23140ac_cs_usage="\
23141\`$as_me' instantiates files from templates according to the
23142current configuration.
23143
23144Usage: $0 [OPTIONS] [FILE]...
23145
23146 -h, --help print this help, then exit
23147 -V, --version print version number, then exit
John Criswell392aaa32003-07-22 19:18:09 +000023148 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000023149 -d, --debug don't remove temporary files
23150 --recheck update $as_me by reconfiguring in the same conditions
23151 --file=FILE[:TEMPLATE]
23152 instantiate the configuration file FILE
23153 --header=FILE[:TEMPLATE]
23154 instantiate the configuration header FILE
23155
23156Configuration files:
23157$config_files
23158
23159Configuration headers:
23160$config_headers
23161
John Criswellc764fbc2003-09-06 15:17:13 +000023162Configuration commands:
23163$config_commands
23164
John Criswell7a73b802003-06-30 21:59:07 +000023165Report bugs to <bug-autoconf@gnu.org>."
23166_ACEOF
23167
23168cat >>$CONFIG_STATUS <<_ACEOF
23169ac_cs_version="\\
23170[LLVM] config.status [1.0]
John Criswell392aaa32003-07-22 19:18:09 +000023171configured by $0, generated by GNU Autoconf 2.57,
John Criswell7a73b802003-06-30 21:59:07 +000023172 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23173
23174Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
23175Free Software Foundation, Inc.
23176This config.status script is free software; the Free Software Foundation
23177gives unlimited permission to copy, distribute and modify it."
23178srcdir=$srcdir
23179INSTALL="$INSTALL"
23180_ACEOF
23181
23182cat >>$CONFIG_STATUS <<\_ACEOF
23183# If no file are specified by the user, then we need to provide default
23184# value. By we need to know if files were specified by the user.
23185ac_need_defaults=:
23186while test $# != 0
23187do
23188 case $1 in
23189 --*=*)
23190 ac_option=`expr "x$1" : 'x\([^=]*\)='`
23191 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
John Criswell392aaa32003-07-22 19:18:09 +000023192 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000023193 ;;
John Criswell392aaa32003-07-22 19:18:09 +000023194 -*)
23195 ac_option=$1
23196 ac_optarg=$2
23197 ac_shift=shift
23198 ;;
John Criswell7a73b802003-06-30 21:59:07 +000023199 *) # This is not an option, so the user has probably given explicit
23200 # arguments.
John Criswell392aaa32003-07-22 19:18:09 +000023201 ac_option=$1
John Criswell7a73b802003-06-30 21:59:07 +000023202 ac_need_defaults=false;;
23203 esac
23204
John Criswell392aaa32003-07-22 19:18:09 +000023205 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000023206 # Handling of the options.
23207_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000023208cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell392aaa32003-07-22 19:18:09 +000023209 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23210 ac_cs_recheck=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000023211 --version | --vers* | -V )
23212 echo "$ac_cs_version"; exit 0 ;;
23213 --he | --h)
23214 # Conflict between --help and --header
23215 { { echo "$as_me:$LINENO: error: ambiguous option: $1
23216Try \`$0 --help' for more information." >&5
23217echo "$as_me: error: ambiguous option: $1
23218Try \`$0 --help' for more information." >&2;}
23219 { (exit 1); exit 1; }; };;
23220 --help | --hel | -h )
23221 echo "$ac_cs_usage"; exit 0 ;;
23222 --debug | --d* | -d )
23223 debug=: ;;
23224 --file | --fil | --fi | --f )
John Criswell392aaa32003-07-22 19:18:09 +000023225 $ac_shift
23226 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000023227 ac_need_defaults=false;;
23228 --header | --heade | --head | --hea )
John Criswell392aaa32003-07-22 19:18:09 +000023229 $ac_shift
23230 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000023231 ac_need_defaults=false;;
John Criswell392aaa32003-07-22 19:18:09 +000023232 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23233 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23234 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000023235
23236 # This is an error.
23237 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23238Try \`$0 --help' for more information." >&5
23239echo "$as_me: error: unrecognized option: $1
23240Try \`$0 --help' for more information." >&2;}
23241 { (exit 1); exit 1; }; } ;;
23242
23243 *) ac_config_targets="$ac_config_targets $1" ;;
23244
23245 esac
23246 shift
23247done
23248
John Criswell392aaa32003-07-22 19:18:09 +000023249ac_configure_extra_args=
23250
23251if $ac_cs_silent; then
23252 exec 6>/dev/null
23253 ac_configure_extra_args="$ac_configure_extra_args --silent"
23254fi
23255
23256_ACEOF
23257cat >>$CONFIG_STATUS <<_ACEOF
23258if \$ac_cs_recheck; then
23259 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23260 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23261fi
23262
John Criswell7a73b802003-06-30 21:59:07 +000023263_ACEOF
23264
John Criswellc764fbc2003-09-06 15:17:13 +000023265cat >>$CONFIG_STATUS <<_ACEOF
23266#
23267# INIT-COMMANDS section.
23268#
John Criswell7a73b802003-06-30 21:59:07 +000023269
John Criswellc764fbc2003-09-06 15:17:13 +000023270${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
23271${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common`
23272${srcdir}/autoconf/mkinstalldirs `dirname Makefile.rules`
23273${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
23274${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/Makefile`
23275${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/DataStructure/Makefile`
23276${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/IPA/Makefile`
23277${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/LiveVar/Makefile`
23278${srcdir}/autoconf/mkinstalldirs `dirname lib/AsmParser/Makefile`
23279${srcdir}/autoconf/mkinstalldirs `dirname lib/Bytecode/Makefile`
23280${srcdir}/autoconf/mkinstalldirs `dirname lib/Bytecode/Reader/Makefile`
23281${srcdir}/autoconf/mkinstalldirs `dirname lib/Bytecode/Writer/Makefile`
23282${srcdir}/autoconf/mkinstalldirs `dirname lib/CWriter/Makefile`
23283${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/Makefile`
23284${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/InstrSched/Makefile`
23285${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/InstrSelection/Makefile`
23286${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/ModuloScheduling/Makefile`
23287${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/PostOpts/Makefile`
23288${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/PreOpts/Makefile`
23289${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/RegAlloc/Makefile`
23290${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/SelectionDAG/Makefile`
23291${srcdir}/autoconf/mkinstalldirs `dirname lib/ExecutionEngine/Makefile`
23292${srcdir}/autoconf/mkinstalldirs `dirname lib/ExecutionEngine/Interpreter/Makefile`
23293${srcdir}/autoconf/mkinstalldirs `dirname lib/ExecutionEngine/JIT/Makefile`
23294${srcdir}/autoconf/mkinstalldirs `dirname lib/Support/Makefile`
23295${srcdir}/autoconf/mkinstalldirs `dirname lib/Target/Makefile`
23296${srcdir}/autoconf/mkinstalldirs `dirname lib/Target/Sparc/Makefile`
23297${srcdir}/autoconf/mkinstalldirs `dirname lib/Target/X86/Makefile`
23298${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Makefile`
23299${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Hello/Makefile`
23300${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/IPO/Makefile`
23301${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Instrumentation/Makefile`
23302${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Instrumentation/ProfilePaths/Makefile`
23303${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Scalar/Makefile`
23304${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Utils/Makefile`
23305${srcdir}/autoconf/mkinstalldirs `dirname lib/VMCore/Makefile`
23306${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile`
23307${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/Makefile`
23308${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/crtend/Makefile`
23309${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libc/Makefile`
23310${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libg/Makefile`
23311${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libgcc/Makefile`
23312${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libm/Makefile`
23313${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libmalloc/Makefile`
23314${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libucb/Makefile`
23315${srcdir}/autoconf/mkinstalldirs `dirname runtime/libdummy/Makefile`
23316${srcdir}/autoconf/mkinstalldirs `dirname runtime/libtrace/Makefile`
23317${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile`
23318${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
23319${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile`
23320${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile.programs`
23321${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.Makefile`
23322${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.report`
23323${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.micro.report`
23324${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.report`
23325${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.example.Makefile`
23326${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.Makefile`
23327${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.buildrepo.Makefile`
23328${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.Makefile`
23329${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.report`
23330${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.Makefile`
23331${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.report`
23332${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.typesafe.Makefile`
23333${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.gnuplot`
23334${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.micro.Makefile`
23335${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/Makefile`
23336${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile`
23337${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/Makefile`
23338${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/179.art/Makefile`
23339${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/183.equake/Makefile`
23340${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/188.ammp/Makefile`
23341${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/Makefile`
23342${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/164.gzip/Makefile`
23343${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/175.vpr/Makefile`
23344${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/176.gcc/Makefile`
23345${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/181.mcf/Makefile`
23346${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/186.crafty/Makefile`
23347${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/197.parser/Makefile`
23348${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/254.gap/Makefile`
23349${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/255.vortex/Makefile`
23350${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile`
23351${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/300.twolf/Makefile`
23352${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/LLVMSource/Makefile`
23353${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile`
23354${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile.multisrc`
23355${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Burg/Makefile`
23356${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Fhourstones/Makefile`
23357${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/McCat/Makefile`
23358${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/McCat/01-qbsort/Makefile`
23359${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/McCat/03-testtrie/Makefile`
23360${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/McCat/04-bisect/Makefile`
23361${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/McCat/05-eks/Makefile`
23362${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/McCat/08-main/Makefile`
23363${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/McCat/09-vor/Makefile`
23364${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/McCat/12-IOtest/Makefile`
23365${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/McCat/15-trie/Makefile`
23366${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/McCat/17-bintr/Makefile`
23367${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/McCat/18-imp/Makefile`
23368${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Olden/Makefile`
23369${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Olden/bh/Makefile`
23370${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Olden/bisort/Makefile`
23371${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Olden/em3d/Makefile`
23372${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Olden/health/Makefile`
23373${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Olden/mst/Makefile`
23374${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Olden/perimeter/Makefile`
23375${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Olden/power/Makefile`
23376${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Olden/treeadd/Makefile`
23377${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Olden/tsp/Makefile`
23378${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Olden/voronoi/Makefile`
23379${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/OptimizerEval/Makefile`
23380${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Ptrdist/Makefile`
23381${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Ptrdist/anagram/Makefile`
23382${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Ptrdist/bc/Makefile`
23383${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Ptrdist/ft/Makefile`
23384${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Ptrdist/ks/Makefile`
23385${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Ptrdist/yacr2/Makefile`
23386${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/aha/Makefile`
23387${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/llubenchmark/Makefile`
23388${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/sgefa/Makefile`
23389${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/sim/Makefile`
23390${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Makefile`
23391${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Flex/Makefile`
23392${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Larn/Makefile`
23393${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Moria-5.5.2/Makefile`
23394${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Povray31/Makefile`
23395${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/SPEC/Makefile`
23396${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/SPEC/CINT2000/Makefile`
23397${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/SPEC/CINT2000/164.gzip/Makefile`
23398${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/SPEC/CINT2000/181.mcf/Makefile`
23399${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/SPEC/CINT2000/197.parser/Makefile`
23400${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/SPEC/CINT2000/254.gap/Makefile`
23401${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/SPEC/CINT2000/255.vortex/Makefile`
23402${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/SPEC/CINT2000/256.bzip2/Makefile`
23403${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/SPEC/CINT2000/300.twolf/Makefile`
23404${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/m4/Makefile`
23405${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile`
23406${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile.singlesrc`
23407${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/CustomChecked/Makefile`
23408${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Shootout/Makefile`
23409${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Stanford/Makefile`
23410${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/UnitTests/Makefile`
23411${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
23412${srcdir}/autoconf/mkinstalldirs `dirname tools/analyze/Makefile`
23413${srcdir}/autoconf/mkinstalldirs `dirname tools/as/Makefile`
23414${srcdir}/autoconf/mkinstalldirs `dirname tools/bugpoint/Makefile`
23415${srcdir}/autoconf/mkinstalldirs `dirname tools/dis/Makefile`
23416${srcdir}/autoconf/mkinstalldirs `dirname tools/extract/Makefile`
23417${srcdir}/autoconf/mkinstalldirs `dirname tools/gccas/Makefile`
23418${srcdir}/autoconf/mkinstalldirs `dirname tools/gccld/Makefile`
23419${srcdir}/autoconf/mkinstalldirs `dirname tools/link/Makefile`
23420${srcdir}/autoconf/mkinstalldirs `dirname tools/llc/Makefile`
23421${srcdir}/autoconf/mkinstalldirs `dirname tools/lli/Makefile`
23422${srcdir}/autoconf/mkinstalldirs `dirname tools/opt/Makefile`
23423${srcdir}/autoconf/mkinstalldirs `dirname tools/llee/Makefile`
23424${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-as/Makefile`
23425${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-dis/Makefile`
23426${srcdir}/autoconf/mkinstalldirs `dirname utils/Makefile`
23427${srcdir}/autoconf/mkinstalldirs `dirname utils/Burg/Makefile`
23428${srcdir}/autoconf/mkinstalldirs `dirname utils/Burg/Doc/Makefile`
23429${srcdir}/autoconf/mkinstalldirs `dirname utils/TableGen/Makefile`
23430${srcdir}/autoconf/mkinstalldirs `dirname www/docs/Makefile`
23431${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile`
23432${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/Makefile`
23433${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/Makefile.common`
23434${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/Makefile.config`
23435${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/lib/Makefile`
23436${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/lib/sample/Makefile`
23437${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/tools/Makefile`
23438${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/tools/sample/Makefile`
23439${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/Makefile`
23440${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/Makefile.common`
23441${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/tools/Makefile`
23442${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/tools/ModuleMaker/Makefile`
23443
23444_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000023445
23446
23447
23448cat >>$CONFIG_STATUS <<\_ACEOF
23449for ac_config_target in $ac_config_targets
23450do
23451 case "$ac_config_target" in
23452 # Handling of arguments.
23453 "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023454 "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
23455 "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
23456 "Makefile.rules" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.rules" ;;
23457 "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
23458 "lib/Analysis/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/Makefile" ;;
23459 "lib/Analysis/DataStructure/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/DataStructure/Makefile" ;;
23460 "lib/Analysis/IPA/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/IPA/Makefile" ;;
23461 "lib/Analysis/LiveVar/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/LiveVar/Makefile" ;;
23462 "lib/AsmParser/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/AsmParser/Makefile" ;;
23463 "lib/Bytecode/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Bytecode/Makefile" ;;
23464 "lib/Bytecode/Reader/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Bytecode/Reader/Makefile" ;;
23465 "lib/Bytecode/Writer/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Bytecode/Writer/Makefile" ;;
23466 "lib/CWriter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CWriter/Makefile" ;;
23467 "lib/CodeGen/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/Makefile" ;;
23468 "lib/CodeGen/InstrSched/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/InstrSched/Makefile" ;;
23469 "lib/CodeGen/InstrSelection/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/InstrSelection/Makefile" ;;
23470 "lib/CodeGen/ModuloScheduling/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/ModuloScheduling/Makefile" ;;
23471 "lib/CodeGen/PostOpts/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/PostOpts/Makefile" ;;
23472 "lib/CodeGen/PreOpts/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/PreOpts/Makefile" ;;
23473 "lib/CodeGen/RegAlloc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/RegAlloc/Makefile" ;;
23474 "lib/CodeGen/SelectionDAG/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/SelectionDAG/Makefile" ;;
23475 "lib/ExecutionEngine/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/ExecutionEngine/Makefile" ;;
23476 "lib/ExecutionEngine/Interpreter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/ExecutionEngine/Interpreter/Makefile" ;;
23477 "lib/ExecutionEngine/JIT/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/ExecutionEngine/JIT/Makefile" ;;
23478 "lib/Support/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Support/Makefile" ;;
23479 "lib/Target/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Target/Makefile" ;;
23480 "lib/Target/Sparc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Target/Sparc/Makefile" ;;
23481 "lib/Target/X86/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Target/X86/Makefile" ;;
23482 "lib/Transforms/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Makefile" ;;
23483 "lib/Transforms/Hello/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Hello/Makefile" ;;
23484 "lib/Transforms/IPO/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/IPO/Makefile" ;;
23485 "lib/Transforms/Instrumentation/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Instrumentation/Makefile" ;;
23486 "lib/Transforms/Instrumentation/ProfilePaths/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Instrumentation/ProfilePaths/Makefile" ;;
23487 "lib/Transforms/Scalar/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Scalar/Makefile" ;;
23488 "lib/Transforms/Utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Utils/Makefile" ;;
23489 "lib/VMCore/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/VMCore/Makefile" ;;
23490 "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
23491 "runtime/GCCLibraries/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/Makefile" ;;
23492 "runtime/GCCLibraries/crtend/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/crtend/Makefile" ;;
23493 "runtime/GCCLibraries/libc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libc/Makefile" ;;
23494 "runtime/GCCLibraries/libg/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libg/Makefile" ;;
23495 "runtime/GCCLibraries/libgcc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libgcc/Makefile" ;;
23496 "runtime/GCCLibraries/libm/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libm/Makefile" ;;
23497 "runtime/GCCLibraries/libmalloc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libmalloc/Makefile" ;;
23498 "runtime/GCCLibraries/libucb/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libucb/Makefile" ;;
23499 "runtime/libdummy/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/libdummy/Makefile" ;;
23500 "runtime/libtrace/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/libtrace/Makefile" ;;
23501 "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
23502 "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
23503 "test/Programs/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile" ;;
23504 "test/Programs/Makefile.programs" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile.programs" ;;
23505 "test/Programs/TEST.aa.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.Makefile" ;;
23506 "test/Programs/TEST.dsgraph.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.report" ;;
23507 "test/Programs/TEST.micro.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.micro.report" ;;
23508 "test/Programs/TEST.aa.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.report" ;;
23509 "test/Programs/TEST.example.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.example.Makefile" ;;
23510 "test/Programs/TEST.nightly.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.Makefile" ;;
23511 "test/Programs/TEST.buildrepo.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.buildrepo.Makefile" ;;
23512 "test/Programs/TEST.jit.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.Makefile" ;;
23513 "test/Programs/TEST.nightly.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.report" ;;
23514 "test/Programs/TEST.dsgraph.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.Makefile" ;;
23515 "test/Programs/TEST.jit.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.report" ;;
23516 "test/Programs/TEST.typesafe.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.typesafe.Makefile" ;;
23517 "test/Programs/TEST.dsgraph.gnuplot" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.gnuplot" ;;
23518 "test/Programs/TEST.micro.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.micro.Makefile" ;;
23519 "test/Programs/External/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/Makefile" ;;
23520 "test/Programs/External/SPEC/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile" ;;
23521 "test/Programs/External/SPEC/CFP2000/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/Makefile" ;;
23522 "test/Programs/External/SPEC/CFP2000/179.art/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/179.art/Makefile" ;;
23523 "test/Programs/External/SPEC/CFP2000/183.equake/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/183.equake/Makefile" ;;
23524 "test/Programs/External/SPEC/CFP2000/188.ammp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/188.ammp/Makefile" ;;
23525 "test/Programs/External/SPEC/CINT2000/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/Makefile" ;;
23526 "test/Programs/External/SPEC/CINT2000/164.gzip/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/164.gzip/Makefile" ;;
23527 "test/Programs/External/SPEC/CINT2000/175.vpr/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/175.vpr/Makefile" ;;
23528 "test/Programs/External/SPEC/CINT2000/176.gcc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/176.gcc/Makefile" ;;
23529 "test/Programs/External/SPEC/CINT2000/181.mcf/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/181.mcf/Makefile" ;;
23530 "test/Programs/External/SPEC/CINT2000/186.crafty/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/186.crafty/Makefile" ;;
23531 "test/Programs/External/SPEC/CINT2000/197.parser/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/197.parser/Makefile" ;;
23532 "test/Programs/External/SPEC/CINT2000/254.gap/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/254.gap/Makefile" ;;
23533 "test/Programs/External/SPEC/CINT2000/255.vortex/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/255.vortex/Makefile" ;;
23534 "test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile" ;;
23535 "test/Programs/External/SPEC/CINT2000/300.twolf/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/300.twolf/Makefile" ;;
23536 "test/Programs/LLVMSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/LLVMSource/Makefile" ;;
23537 "test/Programs/MultiSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile" ;;
23538 "test/Programs/MultiSource/Makefile.multisrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile.multisrc" ;;
23539 "test/Programs/MultiSource/Burg/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Burg/Makefile" ;;
23540 "test/Programs/MultiSource/Fhourstones/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Fhourstones/Makefile" ;;
23541 "test/Programs/MultiSource/McCat/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/McCat/Makefile" ;;
23542 "test/Programs/MultiSource/McCat/01-qbsort/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/McCat/01-qbsort/Makefile" ;;
23543 "test/Programs/MultiSource/McCat/03-testtrie/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/McCat/03-testtrie/Makefile" ;;
23544 "test/Programs/MultiSource/McCat/04-bisect/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/McCat/04-bisect/Makefile" ;;
23545 "test/Programs/MultiSource/McCat/05-eks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/McCat/05-eks/Makefile" ;;
23546 "test/Programs/MultiSource/McCat/08-main/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/McCat/08-main/Makefile" ;;
23547 "test/Programs/MultiSource/McCat/09-vor/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/McCat/09-vor/Makefile" ;;
23548 "test/Programs/MultiSource/McCat/12-IOtest/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/McCat/12-IOtest/Makefile" ;;
23549 "test/Programs/MultiSource/McCat/15-trie/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/McCat/15-trie/Makefile" ;;
23550 "test/Programs/MultiSource/McCat/17-bintr/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/McCat/17-bintr/Makefile" ;;
23551 "test/Programs/MultiSource/McCat/18-imp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/McCat/18-imp/Makefile" ;;
23552 "test/Programs/MultiSource/Olden/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Olden/Makefile" ;;
23553 "test/Programs/MultiSource/Olden/bh/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Olden/bh/Makefile" ;;
23554 "test/Programs/MultiSource/Olden/bisort/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Olden/bisort/Makefile" ;;
23555 "test/Programs/MultiSource/Olden/em3d/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Olden/em3d/Makefile" ;;
23556 "test/Programs/MultiSource/Olden/health/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Olden/health/Makefile" ;;
23557 "test/Programs/MultiSource/Olden/mst/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Olden/mst/Makefile" ;;
23558 "test/Programs/MultiSource/Olden/perimeter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Olden/perimeter/Makefile" ;;
23559 "test/Programs/MultiSource/Olden/power/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Olden/power/Makefile" ;;
23560 "test/Programs/MultiSource/Olden/treeadd/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Olden/treeadd/Makefile" ;;
23561 "test/Programs/MultiSource/Olden/tsp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Olden/tsp/Makefile" ;;
23562 "test/Programs/MultiSource/Olden/voronoi/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Olden/voronoi/Makefile" ;;
23563 "test/Programs/MultiSource/OptimizerEval/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/OptimizerEval/Makefile" ;;
23564 "test/Programs/MultiSource/Ptrdist/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Ptrdist/Makefile" ;;
23565 "test/Programs/MultiSource/Ptrdist/anagram/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Ptrdist/anagram/Makefile" ;;
23566 "test/Programs/MultiSource/Ptrdist/bc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Ptrdist/bc/Makefile" ;;
23567 "test/Programs/MultiSource/Ptrdist/ft/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Ptrdist/ft/Makefile" ;;
23568 "test/Programs/MultiSource/Ptrdist/ks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Ptrdist/ks/Makefile" ;;
23569 "test/Programs/MultiSource/Ptrdist/yacr2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Ptrdist/yacr2/Makefile" ;;
23570 "test/Programs/MultiSource/aha/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/aha/Makefile" ;;
23571 "test/Programs/MultiSource/llubenchmark/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/llubenchmark/Makefile" ;;
23572 "test/Programs/MultiSource/sgefa/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/sgefa/Makefile" ;;
23573 "test/Programs/MultiSource/sim/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/sim/Makefile" ;;
23574 "test/Programs/NoSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Makefile" ;;
23575 "test/Programs/NoSource/Flex/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Flex/Makefile" ;;
23576 "test/Programs/NoSource/Larn/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Larn/Makefile" ;;
23577 "test/Programs/NoSource/Moria-5.5.2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Moria-5.5.2/Makefile" ;;
23578 "test/Programs/NoSource/Povray31/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Povray31/Makefile" ;;
23579 "test/Programs/NoSource/SPEC/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/SPEC/Makefile" ;;
23580 "test/Programs/NoSource/SPEC/CINT2000/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/SPEC/CINT2000/Makefile" ;;
23581 "test/Programs/NoSource/SPEC/CINT2000/164.gzip/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/SPEC/CINT2000/164.gzip/Makefile" ;;
23582 "test/Programs/NoSource/SPEC/CINT2000/181.mcf/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/SPEC/CINT2000/181.mcf/Makefile" ;;
23583 "test/Programs/NoSource/SPEC/CINT2000/197.parser/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/SPEC/CINT2000/197.parser/Makefile" ;;
23584 "test/Programs/NoSource/SPEC/CINT2000/254.gap/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/SPEC/CINT2000/254.gap/Makefile" ;;
23585 "test/Programs/NoSource/SPEC/CINT2000/255.vortex/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/SPEC/CINT2000/255.vortex/Makefile" ;;
23586 "test/Programs/NoSource/SPEC/CINT2000/256.bzip2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/SPEC/CINT2000/256.bzip2/Makefile" ;;
23587 "test/Programs/NoSource/SPEC/CINT2000/300.twolf/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/SPEC/CINT2000/300.twolf/Makefile" ;;
23588 "test/Programs/NoSource/m4/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/m4/Makefile" ;;
23589 "test/Programs/SingleSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile" ;;
23590 "test/Programs/SingleSource/Makefile.singlesrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile.singlesrc" ;;
23591 "test/Programs/SingleSource/CustomChecked/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/CustomChecked/Makefile" ;;
23592 "test/Programs/SingleSource/Shootout/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Shootout/Makefile" ;;
23593 "test/Programs/SingleSource/Stanford/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Stanford/Makefile" ;;
23594 "test/Programs/SingleSource/UnitTests/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/UnitTests/Makefile" ;;
23595 "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
23596 "tools/analyze/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/analyze/Makefile" ;;
23597 "tools/as/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/as/Makefile" ;;
23598 "tools/bugpoint/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/bugpoint/Makefile" ;;
23599 "tools/dis/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/dis/Makefile" ;;
23600 "tools/extract/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/extract/Makefile" ;;
23601 "tools/gccas/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/gccas/Makefile" ;;
23602 "tools/gccld/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/gccld/Makefile" ;;
23603 "tools/link/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/link/Makefile" ;;
23604 "tools/llc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llc/Makefile" ;;
23605 "tools/lli/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/lli/Makefile" ;;
23606 "tools/opt/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/opt/Makefile" ;;
23607 "tools/llee/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llee/Makefile" ;;
23608 "tools/llvm-as/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-as/Makefile" ;;
23609 "tools/llvm-dis/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-dis/Makefile" ;;
23610 "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
23611 "utils/Burg/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Burg/Makefile" ;;
23612 "utils/Burg/Doc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Burg/Doc/Makefile" ;;
23613 "utils/TableGen/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/TableGen/Makefile" ;;
23614 "www/docs/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS www/docs/Makefile" ;;
23615 "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
23616 "projects/sample/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/Makefile" ;;
23617 "projects/sample/Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/Makefile.common" ;;
23618 "projects/sample/Makefile.config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/Makefile.config" ;;
23619 "projects/sample/lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/lib/Makefile" ;;
23620 "projects/sample/lib/sample/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/lib/sample/Makefile" ;;
23621 "projects/sample/tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/tools/Makefile" ;;
23622 "projects/sample/tools/sample/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/tools/sample/Makefile" ;;
23623 "projects/ModuleMaker/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/Makefile" ;;
23624 "projects/ModuleMaker/Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/Makefile.common" ;;
23625 "projects/ModuleMaker/tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/tools/Makefile" ;;
23626 "projects/ModuleMaker/tools/ModuleMaker/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/tools/ModuleMaker/Makefile" ;;
John Criswell7a73b802003-06-30 21:59:07 +000023627 "include/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/Config/config.h" ;;
23628 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23629echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23630 { (exit 1); exit 1; }; };;
23631 esac
23632done
23633
23634# If the user did not use the arguments to specify the items to instantiate,
23635# then the envvar interface is used. Set only those that are not.
23636# We use the long form for the default assignment because of an extremely
23637# bizarre bug on SunOS 4.1.3.
23638if $ac_need_defaults; then
23639 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23640 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000023641 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000023642fi
23643
John Criswell392aaa32003-07-22 19:18:09 +000023644# Have a temporary directory for convenience. Make it in the build tree
23645# simply because there is no reason to put it here, and in addition,
23646# creating and moving files from /tmp can sometimes cause problems.
John Criswell7a73b802003-06-30 21:59:07 +000023647# Create a temporary directory, and hook for its removal unless debugging.
23648$debug ||
23649{
23650 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23651 trap '{ (exit 1); exit 1; }' 1 2 13 15
23652}
23653
23654# Create a (secure) tmp directory for tmp files.
John Criswell392aaa32003-07-22 19:18:09 +000023655
John Criswell7a73b802003-06-30 21:59:07 +000023656{
John Criswell392aaa32003-07-22 19:18:09 +000023657 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000023658 test -n "$tmp" && test -d "$tmp"
23659} ||
23660{
John Criswell392aaa32003-07-22 19:18:09 +000023661 tmp=./confstat$$-$RANDOM
John Criswell7a73b802003-06-30 21:59:07 +000023662 (umask 077 && mkdir $tmp)
23663} ||
23664{
John Criswell392aaa32003-07-22 19:18:09 +000023665 echo "$me: cannot create a temporary directory in ." >&2
John Criswell7a73b802003-06-30 21:59:07 +000023666 { (exit 1); exit 1; }
23667}
23668
23669_ACEOF
23670
23671cat >>$CONFIG_STATUS <<_ACEOF
23672
23673#
23674# CONFIG_FILES section.
23675#
23676
23677# No need to generate the scripts if there are no CONFIG_FILES.
23678# This happens for instance when ./config.status config.h
23679if test -n "\$CONFIG_FILES"; then
23680 # Protect against being on the right side of a sed subst in config.status.
23681 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23682 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23683s,@SHELL@,$SHELL,;t t
23684s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23685s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23686s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23687s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23688s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23689s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23690s,@exec_prefix@,$exec_prefix,;t t
23691s,@prefix@,$prefix,;t t
23692s,@program_transform_name@,$program_transform_name,;t t
23693s,@bindir@,$bindir,;t t
23694s,@sbindir@,$sbindir,;t t
23695s,@libexecdir@,$libexecdir,;t t
23696s,@datadir@,$datadir,;t t
23697s,@sysconfdir@,$sysconfdir,;t t
23698s,@sharedstatedir@,$sharedstatedir,;t t
23699s,@localstatedir@,$localstatedir,;t t
23700s,@libdir@,$libdir,;t t
23701s,@includedir@,$includedir,;t t
23702s,@oldincludedir@,$oldincludedir,;t t
23703s,@infodir@,$infodir,;t t
23704s,@mandir@,$mandir,;t t
23705s,@build_alias@,$build_alias,;t t
23706s,@host_alias@,$host_alias,;t t
23707s,@target_alias@,$target_alias,;t t
23708s,@DEFS@,$DEFS,;t t
23709s,@ECHO_C@,$ECHO_C,;t t
23710s,@ECHO_N@,$ECHO_N,;t t
23711s,@ECHO_T@,$ECHO_T,;t t
23712s,@LIBS@,$LIBS,;t t
23713s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23714s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23715s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23716s,@build@,$build,;t t
23717s,@build_cpu@,$build_cpu,;t t
23718s,@build_vendor@,$build_vendor,;t t
23719s,@build_os@,$build_os,;t t
23720s,@host@,$host,;t t
23721s,@host_cpu@,$host_cpu,;t t
23722s,@host_vendor@,$host_vendor,;t t
23723s,@host_os@,$host_os,;t t
23724s,@target@,$target,;t t
23725s,@target_cpu@,$target_cpu,;t t
23726s,@target_vendor@,$target_vendor,;t t
23727s,@target_os@,$target_os,;t t
23728s,@OS@,$OS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023729s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
John Criswell76595452003-07-01 22:07:39 +000023730s,@ARCH@,$ARCH,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023731s,@CXX@,$CXX,;t t
23732s,@CXXFLAGS@,$CXXFLAGS,;t t
23733s,@LDFLAGS@,$LDFLAGS,;t t
23734s,@CPPFLAGS@,$CPPFLAGS,;t t
23735s,@ac_ct_CXX@,$ac_ct_CXX,;t t
23736s,@EXEEXT@,$EXEEXT,;t t
23737s,@OBJEXT@,$OBJEXT,;t t
23738s,@CC@,$CC,;t t
23739s,@CFLAGS@,$CFLAGS,;t t
23740s,@ac_ct_CC@,$ac_ct_CC,;t t
23741s,@CPP@,$CPP,;t t
23742s,@ifGNUmake@,$ifGNUmake,;t t
23743s,@LEX@,$LEX,;t t
23744s,@LEXLIB@,$LEXLIB,;t t
23745s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
23746s,@YACC@,$YACC,;t t
John Criswell47fdd832003-07-14 16:52:07 +000023747s,@EGREP@,$EGREP,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023748s,@LN_S@,$LN_S,;t t
23749s,@ECHO@,$ECHO,;t t
John Criswell47fdd832003-07-14 16:52:07 +000023750s,@AR@,$AR,;t t
23751s,@ac_ct_AR@,$ac_ct_AR,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023752s,@RANLIB@,$RANLIB,;t t
23753s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23754s,@STRIP@,$STRIP,;t t
23755s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
John Criswell47fdd832003-07-14 16:52:07 +000023756s,@CXXCPP@,$CXXCPP,;t t
23757s,@F77@,$F77,;t t
23758s,@FFLAGS@,$FFLAGS,;t t
23759s,@ac_ct_F77@,$ac_ct_F77,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023760s,@LIBTOOL@,$LIBTOOL,;t t
John Criswellde00db22003-08-25 16:49:54 +000023761s,@RPWD@,$RPWD,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023762s,@SED@,$SED,;t t
23763s,@RM@,$RM,;t t
23764s,@MKDIR@,$MKDIR,;t t
23765s,@DATE@,$DATE,;t t
23766s,@MV@,$MV,;t t
23767s,@DOT@,$DOT,;t t
23768s,@ETAGS@,$ETAGS,;t t
23769s,@PURIFY@,$PURIFY,;t t
John Criswellde00db22003-08-25 16:49:54 +000023770s,@PYTHON@,$PYTHON,;t t
23771s,@QMTEST@,$QMTEST,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023772s,@ALLOCA@,$ALLOCA,;t t
23773s,@LIBOBJS@,$LIBOBJS,;t t
23774s,@MMAP_FILE@,$MMAP_FILE,;t t
23775s,@ENABLE_PURIFY@,$ENABLE_PURIFY,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023776s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
23777s,@USE_SPEC@,$USE_SPEC,;t t
23778s,@UPB@,$UPB,;t t
John Criswellf02dbf02003-07-22 20:07:49 +000023779s,@DISABLE_LLC_DIFFS@,$DISABLE_LLC_DIFFS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023780s,@JIT@,$JIT,;t t
23781s,@SPEC_ROOT@,$SPEC_ROOT,;t t
23782s,@BCR@,$BCR,;t t
23783s,@PAPIDIR@,$PAPIDIR,;t t
John Criswell392aaa32003-07-22 19:18:09 +000023784s,@LTLIBOBJS@,$LTLIBOBJS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023785CEOF
23786
23787_ACEOF
23788
23789 cat >>$CONFIG_STATUS <<\_ACEOF
23790 # Split the substitutions into bite-sized pieces for seds with
23791 # small command number limits, like on Digital OSF/1 and HP-UX.
23792 ac_max_sed_lines=48
23793 ac_sed_frag=1 # Number of current file.
23794 ac_beg=1 # First line for current file.
23795 ac_end=$ac_max_sed_lines # Line after last line for current file.
23796 ac_more_lines=:
23797 ac_sed_cmds=
23798 while $ac_more_lines; do
23799 if test $ac_beg -gt 1; then
23800 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23801 else
23802 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23803 fi
23804 if test ! -s $tmp/subs.frag; then
23805 ac_more_lines=false
23806 else
23807 # The purpose of the label and of the branching condition is to
23808 # speed up the sed processing (if there are no `@' at all, there
23809 # is no need to browse any of the substitutions).
23810 # These are the two extra sed commands mentioned above.
23811 (echo ':t
23812 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
23813 if test -z "$ac_sed_cmds"; then
23814 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
23815 else
23816 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23817 fi
23818 ac_sed_frag=`expr $ac_sed_frag + 1`
23819 ac_beg=$ac_end
23820 ac_end=`expr $ac_end + $ac_max_sed_lines`
23821 fi
23822 done
23823 if test -z "$ac_sed_cmds"; then
23824 ac_sed_cmds=cat
23825 fi
23826fi # test -n "$CONFIG_FILES"
23827
23828_ACEOF
23829cat >>$CONFIG_STATUS <<\_ACEOF
23830for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
23831 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23832 case $ac_file in
23833 - | *:- | *:-:* ) # input from stdin
23834 cat >$tmp/stdin
23835 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23836 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23837 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23838 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23839 * ) ac_file_in=$ac_file.in ;;
23840 esac
23841
23842 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23843 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23844$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23845 X"$ac_file" : 'X\(//\)[^/]' \| \
23846 X"$ac_file" : 'X\(//\)$' \| \
23847 X"$ac_file" : 'X\(/\)' \| \
23848 . : '\(.\)' 2>/dev/null ||
23849echo X"$ac_file" |
23850 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23851 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23852 /^X\(\/\/\)$/{ s//\1/; q; }
23853 /^X\(\/\).*/{ s//\1/; q; }
23854 s/.*/./; q'`
John Criswell392aaa32003-07-22 19:18:09 +000023855 { if $as_mkdir_p; then
23856 mkdir -p "$ac_dir"
23857 else
23858 as_dir="$ac_dir"
23859 as_dirs=
23860 while test ! -d "$as_dir"; do
23861 as_dirs="$as_dir $as_dirs"
23862 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23863$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23864 X"$as_dir" : 'X\(//\)[^/]' \| \
23865 X"$as_dir" : 'X\(//\)$' \| \
23866 X"$as_dir" : 'X\(/\)' \| \
23867 . : '\(.\)' 2>/dev/null ||
23868echo X"$as_dir" |
23869 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23870 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23871 /^X\(\/\/\)$/{ s//\1/; q; }
23872 /^X\(\/\).*/{ s//\1/; q; }
23873 s/.*/./; q'`
23874 done
23875 test ! -n "$as_dirs" || mkdir $as_dirs
23876 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23877echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23878 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000023879
23880 ac_builddir=.
23881
23882if test "$ac_dir" != .; then
23883 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23884 # A "../" for each directory in $ac_dir_suffix.
23885 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23886else
23887 ac_dir_suffix= ac_top_builddir=
23888fi
23889
23890case $srcdir in
23891 .) # No --srcdir option. We are building in place.
23892 ac_srcdir=.
23893 if test -z "$ac_top_builddir"; then
23894 ac_top_srcdir=.
23895 else
23896 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23897 fi ;;
23898 [\\/]* | ?:[\\/]* ) # Absolute path.
23899 ac_srcdir=$srcdir$ac_dir_suffix;
23900 ac_top_srcdir=$srcdir ;;
23901 *) # Relative path.
23902 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23903 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23904esac
23905# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
23906# absolute.
23907ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
John Criswell392aaa32003-07-22 19:18:09 +000023908ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
John Criswell7a73b802003-06-30 21:59:07 +000023909ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
23910ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
23911
23912
23913 case $INSTALL in
23914 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23915 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
23916 esac
23917
23918 if test x"$ac_file" != x-; then
23919 { echo "$as_me:$LINENO: creating $ac_file" >&5
23920echo "$as_me: creating $ac_file" >&6;}
23921 rm -f "$ac_file"
23922 fi
23923 # Let's still pretend it is `configure' which instantiates (i.e., don't
23924 # use $as_me), people would be surprised to read:
23925 # /* config.h. Generated by config.status. */
23926 if test x"$ac_file" = x-; then
23927 configure_input=
23928 else
23929 configure_input="$ac_file. "
23930 fi
23931 configure_input=$configure_input"Generated from `echo $ac_file_in |
23932 sed 's,.*/,,'` by configure."
23933
23934 # First look for the input files in the build tree, otherwise in the
23935 # src tree.
23936 ac_file_inputs=`IFS=:
23937 for f in $ac_file_in; do
23938 case $f in
23939 -) echo $tmp/stdin ;;
23940 [\\/$]*)
23941 # Absolute (can't be DOS-style, as IFS=:)
23942 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23943echo "$as_me: error: cannot find input file: $f" >&2;}
23944 { (exit 1); exit 1; }; }
23945 echo $f;;
23946 *) # Relative
23947 if test -f "$f"; then
23948 # Build tree
23949 echo $f
23950 elif test -f "$srcdir/$f"; then
23951 # Source tree
23952 echo $srcdir/$f
23953 else
23954 # /dev/null tree
23955 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23956echo "$as_me: error: cannot find input file: $f" >&2;}
23957 { (exit 1); exit 1; }; }
23958 fi;;
23959 esac
23960 done` || { (exit 1); exit 1; }
23961_ACEOF
23962cat >>$CONFIG_STATUS <<_ACEOF
23963 sed "$ac_vpsub
23964$extrasub
23965_ACEOF
23966cat >>$CONFIG_STATUS <<\_ACEOF
23967:t
23968/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23969s,@configure_input@,$configure_input,;t t
23970s,@srcdir@,$ac_srcdir,;t t
23971s,@abs_srcdir@,$ac_abs_srcdir,;t t
23972s,@top_srcdir@,$ac_top_srcdir,;t t
23973s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
23974s,@builddir@,$ac_builddir,;t t
23975s,@abs_builddir@,$ac_abs_builddir,;t t
23976s,@top_builddir@,$ac_top_builddir,;t t
23977s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
23978s,@INSTALL@,$ac_INSTALL,;t t
23979" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23980 rm -f $tmp/stdin
23981 if test x"$ac_file" != x-; then
23982 mv $tmp/out $ac_file
23983 else
23984 cat $tmp/out
23985 rm -f $tmp/out
23986 fi
23987
23988done
23989_ACEOF
23990cat >>$CONFIG_STATUS <<\_ACEOF
23991
23992#
23993# CONFIG_HEADER section.
23994#
23995
23996# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
23997# NAME is the cpp macro being defined and VALUE is the value it is being given.
23998#
23999# ac_d sets the value in "#define NAME VALUE" lines.
24000ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
24001ac_dB='[ ].*$,\1#\2'
24002ac_dC=' '
24003ac_dD=',;t'
24004# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24005ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24006ac_uB='$,\1#\2define\3'
24007ac_uC=' '
24008ac_uD=',;t'
24009
24010for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
24011 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24012 case $ac_file in
24013 - | *:- | *:-:* ) # input from stdin
24014 cat >$tmp/stdin
24015 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24016 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24017 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24018 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24019 * ) ac_file_in=$ac_file.in ;;
24020 esac
24021
24022 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
24023echo "$as_me: creating $ac_file" >&6;}
24024
24025 # First look for the input files in the build tree, otherwise in the
24026 # src tree.
24027 ac_file_inputs=`IFS=:
24028 for f in $ac_file_in; do
24029 case $f in
24030 -) echo $tmp/stdin ;;
24031 [\\/$]*)
24032 # Absolute (can't be DOS-style, as IFS=:)
24033 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24034echo "$as_me: error: cannot find input file: $f" >&2;}
24035 { (exit 1); exit 1; }; }
24036 echo $f;;
24037 *) # Relative
24038 if test -f "$f"; then
24039 # Build tree
24040 echo $f
24041 elif test -f "$srcdir/$f"; then
24042 # Source tree
24043 echo $srcdir/$f
24044 else
24045 # /dev/null tree
24046 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24047echo "$as_me: error: cannot find input file: $f" >&2;}
24048 { (exit 1); exit 1; }; }
24049 fi;;
24050 esac
24051 done` || { (exit 1); exit 1; }
24052 # Remove the trailing spaces.
24053 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
24054
24055_ACEOF
24056
24057# Transform confdefs.h into two sed scripts, `conftest.defines' and
24058# `conftest.undefs', that substitutes the proper values into
24059# config.h.in to produce config.h. The first handles `#define'
24060# templates, and the second `#undef' templates.
24061# And first: Protect against being on the right side of a sed subst in
24062# config.status. Protect against being in an unquoted here document
24063# in config.status.
24064rm -f conftest.defines conftest.undefs
24065# Using a here document instead of a string reduces the quoting nightmare.
24066# Putting comments in sed scripts is not portable.
24067#
24068# `end' is used to avoid that the second main sed command (meant for
24069# 0-ary CPP macros) applies to n-ary macro definitions.
24070# See the Autoconf documentation for `clear'.
24071cat >confdef2sed.sed <<\_ACEOF
24072s/[\\&,]/\\&/g
24073s,[\\$`],\\&,g
24074t clear
24075: clear
24076s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24077t end
24078s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24079: end
24080_ACEOF
24081# If some macros were called several times there might be several times
24082# the same #defines, which is useless. Nevertheless, we may not want to
24083# sort them, since we want the *last* AC-DEFINE to be honored.
24084uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24085sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24086rm -f confdef2sed.sed
24087
24088# This sed command replaces #undef with comments. This is necessary, for
24089# example, in the case of _POSIX_SOURCE, which is predefined and required
24090# on some systems where configure will not decide to define it.
24091cat >>conftest.undefs <<\_ACEOF
24092s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24093_ACEOF
24094
24095# Break up conftest.defines because some shells have a limit on the size
24096# of here documents, and old seds have small limits too (100 cmds).
24097echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
John Criswell392aaa32003-07-22 19:18:09 +000024098echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000024099echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24100echo ' :' >>$CONFIG_STATUS
24101rm -f conftest.tail
24102while grep . conftest.defines >/dev/null
24103do
24104 # Write a limited-size here document to $tmp/defines.sed.
24105 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24106 # Speed up: don't consider the non `#define' lines.
24107 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
24108 # Work around the forget-to-reset-the-flag bug.
24109 echo 't clr' >>$CONFIG_STATUS
24110 echo ': clr' >>$CONFIG_STATUS
24111 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
24112 echo 'CEOF
24113 sed -f $tmp/defines.sed $tmp/in >$tmp/out
24114 rm -f $tmp/in
24115 mv $tmp/out $tmp/in
24116' >>$CONFIG_STATUS
24117 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
24118 rm -f conftest.defines
24119 mv conftest.tail conftest.defines
24120done
24121rm -f conftest.defines
John Criswell392aaa32003-07-22 19:18:09 +000024122echo ' fi # grep' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000024123echo >>$CONFIG_STATUS
24124
24125# Break up conftest.undefs because some shells have a limit on the size
24126# of here documents, and old seds have small limits too (100 cmds).
24127echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
24128rm -f conftest.tail
24129while grep . conftest.undefs >/dev/null
24130do
24131 # Write a limited-size here document to $tmp/undefs.sed.
24132 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24133 # Speed up: don't consider the non `#undef'
24134 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
24135 # Work around the forget-to-reset-the-flag bug.
24136 echo 't clr' >>$CONFIG_STATUS
24137 echo ': clr' >>$CONFIG_STATUS
24138 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
24139 echo 'CEOF
24140 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24141 rm -f $tmp/in
24142 mv $tmp/out $tmp/in
24143' >>$CONFIG_STATUS
24144 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24145 rm -f conftest.undefs
24146 mv conftest.tail conftest.undefs
24147done
24148rm -f conftest.undefs
24149
24150cat >>$CONFIG_STATUS <<\_ACEOF
24151 # Let's still pretend it is `configure' which instantiates (i.e., don't
24152 # use $as_me), people would be surprised to read:
24153 # /* config.h. Generated by config.status. */
24154 if test x"$ac_file" = x-; then
24155 echo "/* Generated by configure. */" >$tmp/config.h
24156 else
24157 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
24158 fi
24159 cat $tmp/in >>$tmp/config.h
24160 rm -f $tmp/in
24161 if test x"$ac_file" != x-; then
John Criswell392aaa32003-07-22 19:18:09 +000024162 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000024163 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24164echo "$as_me: $ac_file is unchanged" >&6;}
24165 else
24166 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24167$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24168 X"$ac_file" : 'X\(//\)[^/]' \| \
24169 X"$ac_file" : 'X\(//\)$' \| \
24170 X"$ac_file" : 'X\(/\)' \| \
24171 . : '\(.\)' 2>/dev/null ||
24172echo X"$ac_file" |
24173 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24174 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24175 /^X\(\/\/\)$/{ s//\1/; q; }
24176 /^X\(\/\).*/{ s//\1/; q; }
24177 s/.*/./; q'`
John Criswell392aaa32003-07-22 19:18:09 +000024178 { if $as_mkdir_p; then
24179 mkdir -p "$ac_dir"
24180 else
24181 as_dir="$ac_dir"
24182 as_dirs=
24183 while test ! -d "$as_dir"; do
24184 as_dirs="$as_dir $as_dirs"
24185 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24186$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24187 X"$as_dir" : 'X\(//\)[^/]' \| \
24188 X"$as_dir" : 'X\(//\)$' \| \
24189 X"$as_dir" : 'X\(/\)' \| \
24190 . : '\(.\)' 2>/dev/null ||
24191echo X"$as_dir" |
24192 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24193 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24194 /^X\(\/\/\)$/{ s//\1/; q; }
24195 /^X\(\/\).*/{ s//\1/; q; }
24196 s/.*/./; q'`
24197 done
24198 test ! -n "$as_dirs" || mkdir $as_dirs
24199 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24200echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24201 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000024202
24203 rm -f $ac_file
24204 mv $tmp/config.h $ac_file
24205 fi
24206 else
24207 cat $tmp/config.h
24208 rm -f $tmp/config.h
24209 fi
24210done
24211_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000024212cat >>$CONFIG_STATUS <<\_ACEOF
24213
24214#
24215# CONFIG_COMMANDS section.
24216#
24217for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
24218 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
24219 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
24220 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
24221$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24222 X"$ac_dest" : 'X\(//\)[^/]' \| \
24223 X"$ac_dest" : 'X\(//\)$' \| \
24224 X"$ac_dest" : 'X\(/\)' \| \
24225 . : '\(.\)' 2>/dev/null ||
24226echo X"$ac_dest" |
24227 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24228 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24229 /^X\(\/\/\)$/{ s//\1/; q; }
24230 /^X\(\/\).*/{ s//\1/; q; }
24231 s/.*/./; q'`
24232 ac_builddir=.
24233
24234if test "$ac_dir" != .; then
24235 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24236 # A "../" for each directory in $ac_dir_suffix.
24237 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24238else
24239 ac_dir_suffix= ac_top_builddir=
24240fi
24241
24242case $srcdir in
24243 .) # No --srcdir option. We are building in place.
24244 ac_srcdir=.
24245 if test -z "$ac_top_builddir"; then
24246 ac_top_srcdir=.
24247 else
24248 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24249 fi ;;
24250 [\\/]* | ?:[\\/]* ) # Absolute path.
24251 ac_srcdir=$srcdir$ac_dir_suffix;
24252 ac_top_srcdir=$srcdir ;;
24253 *) # Relative path.
24254 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24255 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24256esac
24257# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
24258# absolute.
24259ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
24260ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
24261ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
24262ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
24263
24264
24265 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
24266echo "$as_me: executing $ac_dest commands" >&6;}
24267 case $ac_dest in
24268 Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
24269 Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
24270 Makefile.rules ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.rules Makefile.rules ;;
24271 lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
24272 lib/Analysis/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/Makefile lib/Analysis/Makefile ;;
24273 lib/Analysis/DataStructure/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/DataStructure/Makefile lib/Analysis/DataStructure/Makefile ;;
24274 lib/Analysis/IPA/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/IPA/Makefile lib/Analysis/IPA/Makefile ;;
24275 lib/Analysis/LiveVar/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/LiveVar/Makefile lib/Analysis/LiveVar/Makefile ;;
24276 lib/AsmParser/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/AsmParser/Makefile lib/AsmParser/Makefile ;;
24277 lib/Bytecode/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Bytecode/Makefile lib/Bytecode/Makefile ;;
24278 lib/Bytecode/Reader/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Bytecode/Reader/Makefile lib/Bytecode/Reader/Makefile ;;
24279 lib/Bytecode/Writer/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Bytecode/Writer/Makefile lib/Bytecode/Writer/Makefile ;;
24280 lib/CWriter/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CWriter/Makefile lib/CWriter/Makefile ;;
24281 lib/CodeGen/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/Makefile lib/CodeGen/Makefile ;;
24282 lib/CodeGen/InstrSched/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/InstrSched/Makefile lib/CodeGen/InstrSched/Makefile ;;
24283 lib/CodeGen/InstrSelection/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/InstrSelection/Makefile lib/CodeGen/InstrSelection/Makefile ;;
24284 lib/CodeGen/ModuloScheduling/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/ModuloScheduling/Makefile lib/CodeGen/ModuloScheduling/Makefile ;;
24285 lib/CodeGen/PostOpts/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/PostOpts/Makefile lib/CodeGen/PostOpts/Makefile ;;
24286 lib/CodeGen/PreOpts/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/PreOpts/Makefile lib/CodeGen/PreOpts/Makefile ;;
24287 lib/CodeGen/RegAlloc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/RegAlloc/Makefile lib/CodeGen/RegAlloc/Makefile ;;
24288 lib/CodeGen/SelectionDAG/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/SelectionDAG/Makefile lib/CodeGen/SelectionDAG/Makefile ;;
24289 lib/ExecutionEngine/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/ExecutionEngine/Makefile lib/ExecutionEngine/Makefile ;;
24290 lib/ExecutionEngine/Interpreter/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/ExecutionEngine/Interpreter/Makefile lib/ExecutionEngine/Interpreter/Makefile ;;
24291 lib/ExecutionEngine/JIT/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/ExecutionEngine/JIT/Makefile lib/ExecutionEngine/JIT/Makefile ;;
24292 lib/Support/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Support/Makefile lib/Support/Makefile ;;
24293 lib/Target/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Target/Makefile lib/Target/Makefile ;;
24294 lib/Target/Sparc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Target/Sparc/Makefile lib/Target/Sparc/Makefile ;;
24295 lib/Target/X86/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Target/X86/Makefile lib/Target/X86/Makefile ;;
24296 lib/Transforms/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Makefile lib/Transforms/Makefile ;;
24297 lib/Transforms/Hello/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Hello/Makefile lib/Transforms/Hello/Makefile ;;
24298 lib/Transforms/IPO/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/IPO/Makefile lib/Transforms/IPO/Makefile ;;
24299 lib/Transforms/Instrumentation/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Instrumentation/Makefile lib/Transforms/Instrumentation/Makefile ;;
24300 lib/Transforms/Instrumentation/ProfilePaths/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Instrumentation/ProfilePaths/Makefile lib/Transforms/Instrumentation/ProfilePaths/Makefile ;;
24301 lib/Transforms/Scalar/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Scalar/Makefile lib/Transforms/Scalar/Makefile ;;
24302 lib/Transforms/Utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Utils/Makefile lib/Transforms/Utils/Makefile ;;
24303 lib/VMCore/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/VMCore/Makefile lib/VMCore/Makefile ;;
24304 runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
24305 runtime/GCCLibraries/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/Makefile runtime/GCCLibraries/Makefile ;;
24306 runtime/GCCLibraries/crtend/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/crtend/Makefile runtime/GCCLibraries/crtend/Makefile ;;
24307 runtime/GCCLibraries/libc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libc/Makefile runtime/GCCLibraries/libc/Makefile ;;
24308 runtime/GCCLibraries/libg/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libg/Makefile runtime/GCCLibraries/libg/Makefile ;;
24309 runtime/GCCLibraries/libgcc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libgcc/Makefile runtime/GCCLibraries/libgcc/Makefile ;;
24310 runtime/GCCLibraries/libm/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libm/Makefile runtime/GCCLibraries/libm/Makefile ;;
24311 runtime/GCCLibraries/libmalloc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libmalloc/Makefile runtime/GCCLibraries/libmalloc/Makefile ;;
24312 runtime/GCCLibraries/libucb/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libucb/Makefile runtime/GCCLibraries/libucb/Makefile ;;
24313 runtime/libdummy/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/libdummy/Makefile runtime/libdummy/Makefile ;;
24314 runtime/libtrace/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/libtrace/Makefile runtime/libtrace/Makefile ;;
24315 test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
24316 test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
24317 test/Programs/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile test/Programs/Makefile ;;
24318 test/Programs/Makefile.programs ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile.programs test/Programs/Makefile.programs ;;
24319 test/Programs/TEST.aa.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.Makefile test/Programs/TEST.aa.Makefile ;;
24320 test/Programs/TEST.dsgraph.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.report test/Programs/TEST.dsgraph.report ;;
24321 test/Programs/TEST.micro.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.micro.report test/Programs/TEST.micro.report ;;
24322 test/Programs/TEST.aa.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.report test/Programs/TEST.aa.report ;;
24323 test/Programs/TEST.example.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.example.Makefile test/Programs/TEST.example.Makefile ;;
24324 test/Programs/TEST.nightly.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.Makefile test/Programs/TEST.nightly.Makefile ;;
24325 test/Programs/TEST.buildrepo.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.buildrepo.Makefile test/Programs/TEST.buildrepo.Makefile ;;
24326 test/Programs/TEST.jit.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.Makefile test/Programs/TEST.jit.Makefile ;;
24327 test/Programs/TEST.nightly.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.report test/Programs/TEST.nightly.report ;;
24328 test/Programs/TEST.dsgraph.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.Makefile test/Programs/TEST.dsgraph.Makefile ;;
24329 test/Programs/TEST.jit.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.report test/Programs/TEST.jit.report ;;
24330 test/Programs/TEST.typesafe.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.typesafe.Makefile test/Programs/TEST.typesafe.Makefile ;;
24331 test/Programs/TEST.dsgraph.gnuplot ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.gnuplot test/Programs/TEST.dsgraph.gnuplot ;;
24332 test/Programs/TEST.micro.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.micro.Makefile test/Programs/TEST.micro.Makefile ;;
24333 test/Programs/External/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/Makefile test/Programs/External/Makefile ;;
24334 test/Programs/External/SPEC/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/Makefile test/Programs/External/SPEC/Makefile ;;
24335 test/Programs/External/SPEC/CFP2000/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CFP2000/Makefile test/Programs/External/SPEC/CFP2000/Makefile ;;
24336 test/Programs/External/SPEC/CFP2000/179.art/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CFP2000/179.art/Makefile test/Programs/External/SPEC/CFP2000/179.art/Makefile ;;
24337 test/Programs/External/SPEC/CFP2000/183.equake/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CFP2000/183.equake/Makefile test/Programs/External/SPEC/CFP2000/183.equake/Makefile ;;
24338 test/Programs/External/SPEC/CFP2000/188.ammp/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CFP2000/188.ammp/Makefile test/Programs/External/SPEC/CFP2000/188.ammp/Makefile ;;
24339 test/Programs/External/SPEC/CINT2000/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CINT2000/Makefile test/Programs/External/SPEC/CINT2000/Makefile ;;
24340 test/Programs/External/SPEC/CINT2000/164.gzip/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CINT2000/164.gzip/Makefile test/Programs/External/SPEC/CINT2000/164.gzip/Makefile ;;
24341 test/Programs/External/SPEC/CINT2000/175.vpr/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CINT2000/175.vpr/Makefile test/Programs/External/SPEC/CINT2000/175.vpr/Makefile ;;
24342 test/Programs/External/SPEC/CINT2000/176.gcc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CINT2000/176.gcc/Makefile test/Programs/External/SPEC/CINT2000/176.gcc/Makefile ;;
24343 test/Programs/External/SPEC/CINT2000/181.mcf/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CINT2000/181.mcf/Makefile test/Programs/External/SPEC/CINT2000/181.mcf/Makefile ;;
24344 test/Programs/External/SPEC/CINT2000/186.crafty/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CINT2000/186.crafty/Makefile test/Programs/External/SPEC/CINT2000/186.crafty/Makefile ;;
24345 test/Programs/External/SPEC/CINT2000/197.parser/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CINT2000/197.parser/Makefile test/Programs/External/SPEC/CINT2000/197.parser/Makefile ;;
24346 test/Programs/External/SPEC/CINT2000/254.gap/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CINT2000/254.gap/Makefile test/Programs/External/SPEC/CINT2000/254.gap/Makefile ;;
24347 test/Programs/External/SPEC/CINT2000/255.vortex/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CINT2000/255.vortex/Makefile test/Programs/External/SPEC/CINT2000/255.vortex/Makefile ;;
24348 test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile ;;
24349 test/Programs/External/SPEC/CINT2000/300.twolf/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CINT2000/300.twolf/Makefile test/Programs/External/SPEC/CINT2000/300.twolf/Makefile ;;
24350 test/Programs/LLVMSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/LLVMSource/Makefile test/Programs/LLVMSource/Makefile ;;
24351 test/Programs/MultiSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile test/Programs/MultiSource/Makefile ;;
24352 test/Programs/MultiSource/Makefile.multisrc ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile.multisrc test/Programs/MultiSource/Makefile.multisrc ;;
24353 test/Programs/MultiSource/Burg/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Burg/Makefile test/Programs/MultiSource/Burg/Makefile ;;
24354 test/Programs/MultiSource/Fhourstones/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Fhourstones/Makefile test/Programs/MultiSource/Fhourstones/Makefile ;;
24355 test/Programs/MultiSource/McCat/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/McCat/Makefile test/Programs/MultiSource/McCat/Makefile ;;
24356 test/Programs/MultiSource/McCat/01-qbsort/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/McCat/01-qbsort/Makefile test/Programs/MultiSource/McCat/01-qbsort/Makefile ;;
24357 test/Programs/MultiSource/McCat/03-testtrie/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/McCat/03-testtrie/Makefile test/Programs/MultiSource/McCat/03-testtrie/Makefile ;;
24358 test/Programs/MultiSource/McCat/04-bisect/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/McCat/04-bisect/Makefile test/Programs/MultiSource/McCat/04-bisect/Makefile ;;
24359 test/Programs/MultiSource/McCat/05-eks/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/McCat/05-eks/Makefile test/Programs/MultiSource/McCat/05-eks/Makefile ;;
24360 test/Programs/MultiSource/McCat/08-main/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/McCat/08-main/Makefile test/Programs/MultiSource/McCat/08-main/Makefile ;;
24361 test/Programs/MultiSource/McCat/09-vor/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/McCat/09-vor/Makefile test/Programs/MultiSource/McCat/09-vor/Makefile ;;
24362 test/Programs/MultiSource/McCat/12-IOtest/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/McCat/12-IOtest/Makefile test/Programs/MultiSource/McCat/12-IOtest/Makefile ;;
24363 test/Programs/MultiSource/McCat/15-trie/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/McCat/15-trie/Makefile test/Programs/MultiSource/McCat/15-trie/Makefile ;;
24364 test/Programs/MultiSource/McCat/17-bintr/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/McCat/17-bintr/Makefile test/Programs/MultiSource/McCat/17-bintr/Makefile ;;
24365 test/Programs/MultiSource/McCat/18-imp/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/McCat/18-imp/Makefile test/Programs/MultiSource/McCat/18-imp/Makefile ;;
24366 test/Programs/MultiSource/Olden/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Olden/Makefile test/Programs/MultiSource/Olden/Makefile ;;
24367 test/Programs/MultiSource/Olden/bh/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Olden/bh/Makefile test/Programs/MultiSource/Olden/bh/Makefile ;;
24368 test/Programs/MultiSource/Olden/bisort/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Olden/bisort/Makefile test/Programs/MultiSource/Olden/bisort/Makefile ;;
24369 test/Programs/MultiSource/Olden/em3d/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Olden/em3d/Makefile test/Programs/MultiSource/Olden/em3d/Makefile ;;
24370 test/Programs/MultiSource/Olden/health/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Olden/health/Makefile test/Programs/MultiSource/Olden/health/Makefile ;;
24371 test/Programs/MultiSource/Olden/mst/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Olden/mst/Makefile test/Programs/MultiSource/Olden/mst/Makefile ;;
24372 test/Programs/MultiSource/Olden/perimeter/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Olden/perimeter/Makefile test/Programs/MultiSource/Olden/perimeter/Makefile ;;
24373 test/Programs/MultiSource/Olden/power/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Olden/power/Makefile test/Programs/MultiSource/Olden/power/Makefile ;;
24374 test/Programs/MultiSource/Olden/treeadd/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Olden/treeadd/Makefile test/Programs/MultiSource/Olden/treeadd/Makefile ;;
24375 test/Programs/MultiSource/Olden/tsp/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Olden/tsp/Makefile test/Programs/MultiSource/Olden/tsp/Makefile ;;
24376 test/Programs/MultiSource/Olden/voronoi/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Olden/voronoi/Makefile test/Programs/MultiSource/Olden/voronoi/Makefile ;;
24377 test/Programs/MultiSource/OptimizerEval/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/OptimizerEval/Makefile test/Programs/MultiSource/OptimizerEval/Makefile ;;
24378 test/Programs/MultiSource/Ptrdist/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Ptrdist/Makefile test/Programs/MultiSource/Ptrdist/Makefile ;;
24379 test/Programs/MultiSource/Ptrdist/anagram/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Ptrdist/anagram/Makefile test/Programs/MultiSource/Ptrdist/anagram/Makefile ;;
24380 test/Programs/MultiSource/Ptrdist/bc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Ptrdist/bc/Makefile test/Programs/MultiSource/Ptrdist/bc/Makefile ;;
24381 test/Programs/MultiSource/Ptrdist/ft/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Ptrdist/ft/Makefile test/Programs/MultiSource/Ptrdist/ft/Makefile ;;
24382 test/Programs/MultiSource/Ptrdist/ks/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Ptrdist/ks/Makefile test/Programs/MultiSource/Ptrdist/ks/Makefile ;;
24383 test/Programs/MultiSource/Ptrdist/yacr2/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Ptrdist/yacr2/Makefile test/Programs/MultiSource/Ptrdist/yacr2/Makefile ;;
24384 test/Programs/MultiSource/aha/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/aha/Makefile test/Programs/MultiSource/aha/Makefile ;;
24385 test/Programs/MultiSource/llubenchmark/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/llubenchmark/Makefile test/Programs/MultiSource/llubenchmark/Makefile ;;
24386 test/Programs/MultiSource/sgefa/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/sgefa/Makefile test/Programs/MultiSource/sgefa/Makefile ;;
24387 test/Programs/MultiSource/sim/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/sim/Makefile test/Programs/MultiSource/sim/Makefile ;;
24388 test/Programs/NoSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/Makefile test/Programs/NoSource/Makefile ;;
24389 test/Programs/NoSource/Flex/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/Flex/Makefile test/Programs/NoSource/Flex/Makefile ;;
24390 test/Programs/NoSource/Larn/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/Larn/Makefile test/Programs/NoSource/Larn/Makefile ;;
24391 test/Programs/NoSource/Moria-5.5.2/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/Moria-5.5.2/Makefile test/Programs/NoSource/Moria-5.5.2/Makefile ;;
24392 test/Programs/NoSource/Povray31/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/Povray31/Makefile test/Programs/NoSource/Povray31/Makefile ;;
24393 test/Programs/NoSource/SPEC/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/SPEC/Makefile test/Programs/NoSource/SPEC/Makefile ;;
24394 test/Programs/NoSource/SPEC/CINT2000/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/SPEC/CINT2000/Makefile test/Programs/NoSource/SPEC/CINT2000/Makefile ;;
24395 test/Programs/NoSource/SPEC/CINT2000/164.gzip/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/SPEC/CINT2000/164.gzip/Makefile test/Programs/NoSource/SPEC/CINT2000/164.gzip/Makefile ;;
24396 test/Programs/NoSource/SPEC/CINT2000/181.mcf/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/SPEC/CINT2000/181.mcf/Makefile test/Programs/NoSource/SPEC/CINT2000/181.mcf/Makefile ;;
24397 test/Programs/NoSource/SPEC/CINT2000/197.parser/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/SPEC/CINT2000/197.parser/Makefile test/Programs/NoSource/SPEC/CINT2000/197.parser/Makefile ;;
24398 test/Programs/NoSource/SPEC/CINT2000/254.gap/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/SPEC/CINT2000/254.gap/Makefile test/Programs/NoSource/SPEC/CINT2000/254.gap/Makefile ;;
24399 test/Programs/NoSource/SPEC/CINT2000/255.vortex/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/SPEC/CINT2000/255.vortex/Makefile test/Programs/NoSource/SPEC/CINT2000/255.vortex/Makefile ;;
24400 test/Programs/NoSource/SPEC/CINT2000/256.bzip2/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/SPEC/CINT2000/256.bzip2/Makefile test/Programs/NoSource/SPEC/CINT2000/256.bzip2/Makefile ;;
24401 test/Programs/NoSource/SPEC/CINT2000/300.twolf/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/SPEC/CINT2000/300.twolf/Makefile test/Programs/NoSource/SPEC/CINT2000/300.twolf/Makefile ;;
24402 test/Programs/NoSource/m4/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/m4/Makefile test/Programs/NoSource/m4/Makefile ;;
24403 test/Programs/SingleSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile test/Programs/SingleSource/Makefile ;;
24404 test/Programs/SingleSource/Makefile.singlesrc ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile.singlesrc test/Programs/SingleSource/Makefile.singlesrc ;;
24405 test/Programs/SingleSource/CustomChecked/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/CustomChecked/Makefile test/Programs/SingleSource/CustomChecked/Makefile ;;
24406 test/Programs/SingleSource/Shootout/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Shootout/Makefile test/Programs/SingleSource/Shootout/Makefile ;;
24407 test/Programs/SingleSource/Stanford/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Stanford/Makefile test/Programs/SingleSource/Stanford/Makefile ;;
24408 test/Programs/SingleSource/UnitTests/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/UnitTests/Makefile test/Programs/SingleSource/UnitTests/Makefile ;;
24409 tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
24410 tools/analyze/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/analyze/Makefile tools/analyze/Makefile ;;
24411 tools/as/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/as/Makefile tools/as/Makefile ;;
24412 tools/bugpoint/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/bugpoint/Makefile tools/bugpoint/Makefile ;;
24413 tools/dis/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/dis/Makefile tools/dis/Makefile ;;
24414 tools/extract/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/extract/Makefile tools/extract/Makefile ;;
24415 tools/gccas/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/gccas/Makefile tools/gccas/Makefile ;;
24416 tools/gccld/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/gccld/Makefile tools/gccld/Makefile ;;
24417 tools/link/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/link/Makefile tools/link/Makefile ;;
24418 tools/llc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llc/Makefile tools/llc/Makefile ;;
24419 tools/lli/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/lli/Makefile tools/lli/Makefile ;;
24420 tools/opt/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/opt/Makefile tools/opt/Makefile ;;
24421 tools/llee/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llee/Makefile tools/llee/Makefile ;;
24422 tools/llvm-as/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llvm-as/Makefile tools/llvm-as/Makefile ;;
24423 tools/llvm-dis/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llvm-dis/Makefile tools/llvm-dis/Makefile ;;
24424 utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
24425 utils/Burg/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Burg/Makefile utils/Burg/Makefile ;;
24426 utils/Burg/Doc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Burg/Doc/Makefile utils/Burg/Doc/Makefile ;;
24427 utils/TableGen/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/TableGen/Makefile utils/TableGen/Makefile ;;
24428 www/docs/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/www/docs/Makefile www/docs/Makefile ;;
24429 projects/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
24430 projects/sample/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/Makefile projects/sample/Makefile ;;
24431 projects/sample/Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/Makefile.common projects/sample/Makefile.common ;;
24432 projects/sample/Makefile.config ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/Makefile.config projects/sample/Makefile.config ;;
24433 projects/sample/lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/lib/Makefile projects/sample/lib/Makefile ;;
24434 projects/sample/lib/sample/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/lib/sample/Makefile projects/sample/lib/sample/Makefile ;;
24435 projects/sample/tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/tools/Makefile projects/sample/tools/Makefile ;;
24436 projects/sample/tools/sample/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/tools/sample/Makefile projects/sample/tools/sample/Makefile ;;
24437 projects/ModuleMaker/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/Makefile projects/ModuleMaker/Makefile ;;
24438 projects/ModuleMaker/Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/Makefile.common projects/ModuleMaker/Makefile.common ;;
24439 projects/ModuleMaker/tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/tools/Makefile projects/ModuleMaker/tools/Makefile ;;
24440 projects/ModuleMaker/tools/ModuleMaker/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/tools/ModuleMaker/Makefile projects/ModuleMaker/tools/ModuleMaker/Makefile ;;
24441 esac
24442done
24443_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000024444
24445cat >>$CONFIG_STATUS <<\_ACEOF
24446
24447{ (exit 0); exit 0; }
24448_ACEOF
24449chmod +x $CONFIG_STATUS
24450ac_clean_files=$ac_clean_files_save
24451
24452
24453# configure is writing to config.log, and then calls config.status.
24454# config.status does its own redirection, appending to config.log.
24455# Unfortunately, on DOS this fails, as config.log is still kept open
24456# by configure, so config.status won't be able to write to it; its
24457# output is simply discarded. So we exec the FD to /dev/null,
24458# effectively closing config.log, so it can be properly (re)opened and
24459# appended to by config.status. When coming back to configure, we
24460# need to make the FD available again.
24461if test "$no_create" != yes; then
24462 ac_cs_success=:
John Criswell392aaa32003-07-22 19:18:09 +000024463 ac_config_status_args=
24464 test "$silent" = yes &&
24465 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000024466 exec 5>/dev/null
John Criswell392aaa32003-07-22 19:18:09 +000024467 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000024468 exec 5>>config.log
24469 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24470 # would make configure fail if this is the last instruction.
24471 $ac_cs_success || { (exit 1); exit 1; }
24472fi
24473